chainlit 0.4.0__py3-none-any.whl → 0.4.2__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 +30 -7
- chainlit/action.py +2 -4
- chainlit/cache.py +24 -1
- chainlit/cli/__init__.py +64 -21
- chainlit/client/base.py +152 -0
- chainlit/client/cloud.py +440 -0
- chainlit/client/local.py +257 -0
- chainlit/client/utils.py +23 -0
- chainlit/config.py +92 -29
- chainlit/context.py +29 -0
- chainlit/db/__init__.py +35 -0
- chainlit/db/prisma/schema.prisma +48 -0
- chainlit/element.py +54 -41
- chainlit/emitter.py +1 -30
- chainlit/frontend/dist/assets/index-995e21ad.js +11 -0
- chainlit/frontend/dist/assets/index-f93cc942.css +1 -0
- chainlit/frontend/dist/assets/index-fb1e167a.js +523 -0
- chainlit/frontend/dist/index.html +2 -2
- chainlit/lc/agent.py +1 -0
- chainlit/lc/callbacks.py +6 -21
- chainlit/logger.py +7 -2
- chainlit/message.py +22 -16
- chainlit/server.py +169 -59
- chainlit/session.py +1 -3
- chainlit/sync.py +16 -28
- chainlit/types.py +26 -1
- chainlit/user_session.py +1 -1
- {chainlit-0.4.0.dist-info → chainlit-0.4.2.dist-info}/METADATA +8 -3
- chainlit-0.4.2.dist-info/RECORD +44 -0
- chainlit/client.py +0 -287
- chainlit/frontend/dist/assets/index-0cc9e355.css +0 -1
- chainlit/frontend/dist/assets/index-9e4bccd1.js +0 -717
- chainlit-0.4.0.dist-info/RECORD +0 -37
- {chainlit-0.4.0.dist-info → chainlit-0.4.2.dist-info}/WHEEL +0 -0
- {chainlit-0.4.0.dist-info → chainlit-0.4.2.dist-info}/entry_points.txt +0 -0
|
@@ -0,0 +1,523 @@
|
|
|
1
|
+
var JY=Object.defineProperty;var QY=(e,t,n)=>t in e?JY(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var lr=(e,t,n)=>(QY(e,typeof t!="symbol"?t+"":t,n),n);function eX(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 Ui=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ha(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function EB(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 kB={exports:{}},P1={},TB={exports:{}},qt={};/**
|
|
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 Wg=Symbol.for("react.element"),tX=Symbol.for("react.portal"),nX=Symbol.for("react.fragment"),rX=Symbol.for("react.strict_mode"),iX=Symbol.for("react.profiler"),oX=Symbol.for("react.provider"),aX=Symbol.for("react.context"),sX=Symbol.for("react.forward_ref"),lX=Symbol.for("react.suspense"),uX=Symbol.for("react.memo"),cX=Symbol.for("react.lazy"),mD=Symbol.iterator;function fX(e){return e===null||typeof e!="object"?null:(e=mD&&e[mD]||e["@@iterator"],typeof e=="function"?e:null)}var RB={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},AB=Object.assign,OB={};function Od(e,t,n){this.props=e,this.context=t,this.refs=OB,this.updater=n||RB}Od.prototype.isReactComponent={};Od.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")};Od.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function DB(){}DB.prototype=Od.prototype;function Bk(e,t,n){this.props=e,this.context=t,this.refs=OB,this.updater=n||RB}var zk=Bk.prototype=new DB;zk.constructor=Bk;AB(zk,Od.prototype);zk.isPureReactComponent=!0;var vD=Array.isArray,$B=Object.prototype.hasOwnProperty,jk={current:null},IB={key:!0,ref:!0,__self:!0,__source:!0};function PB(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)$B.call(t,r)&&!IB.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),c=0;c<s;c++)l[c]=arguments[c+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:Wg,type:e,key:o,ref:a,props:i,_owner:jk.current}}function dX(e,t){return{$$typeof:Wg,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Uk(e){return typeof e=="object"&&e!==null&&e.$$typeof===Wg}function pX(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var yD=/\/+/g;function rS(e,t){return typeof e=="object"&&e!==null&&e.key!=null?pX(""+e.key):t.toString(36)}function Wy(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 Wg:case tX:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+rS(a,0):r,vD(i)?(n="",e!=null&&(n=e.replace(yD,"$&/")+"/"),Wy(i,t,n,"",function(c){return c})):i!=null&&(Uk(i)&&(i=dX(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(yD,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",vD(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+rS(o,s);a+=Wy(o,t,n,l,i)}else if(l=fX(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+rS(o,s++),a+=Wy(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 Mv(e,t,n){if(e==null)return e;var r=[],i=0;return Wy(e,r,"","",function(o){return t.call(n,o,i++)}),r}function hX(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},Vy={transition:null},gX={ReactCurrentDispatcher:li,ReactCurrentBatchConfig:Vy,ReactCurrentOwner:jk};qt.Children={map:Mv,forEach:function(e,t,n){Mv(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Mv(e,function(){t++}),t},toArray:function(e){return Mv(e,function(t){return t})||[]},only:function(e){if(!Uk(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};qt.Component=Od;qt.Fragment=nX;qt.Profiler=iX;qt.PureComponent=Bk;qt.StrictMode=rX;qt.Suspense=lX;qt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=gX;qt.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=AB({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=jk.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)$B.call(t,l)&&!IB.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 c=0;c<l;c++)s[c]=arguments[c+2];r.children=s}return{$$typeof:Wg,type:e.type,key:i,ref:o,props:r,_owner:a}};qt.createContext=function(e){return e={$$typeof:aX,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:oX,_context:e},e.Consumer=e};qt.createElement=PB;qt.createFactory=function(e){var t=PB.bind(null,e);return t.type=e,t};qt.createRef=function(){return{current:null}};qt.forwardRef=function(e){return{$$typeof:sX,render:e}};qt.isValidElement=Uk;qt.lazy=function(e){return{$$typeof:cX,_payload:{_status:-1,_result:e},_init:hX}};qt.memo=function(e,t){return{$$typeof:uX,type:e,compare:t===void 0?null:t}};qt.startTransition=function(e){var t=Vy.transition;Vy.transition={};try{e()}finally{Vy.transition=t}};qt.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};qt.useCallback=function(e,t){return li.current.useCallback(e,t)};qt.useContext=function(e){return li.current.useContext(e)};qt.useDebugValue=function(){};qt.useDeferredValue=function(e){return li.current.useDeferredValue(e)};qt.useEffect=function(e,t){return li.current.useEffect(e,t)};qt.useId=function(){return li.current.useId()};qt.useImperativeHandle=function(e,t,n){return li.current.useImperativeHandle(e,t,n)};qt.useInsertionEffect=function(e,t){return li.current.useInsertionEffect(e,t)};qt.useLayoutEffect=function(e,t){return li.current.useLayoutEffect(e,t)};qt.useMemo=function(e,t){return li.current.useMemo(e,t)};qt.useReducer=function(e,t,n){return li.current.useReducer(e,t,n)};qt.useRef=function(e){return li.current.useRef(e)};qt.useState=function(e){return li.current.useState(e)};qt.useSyncExternalStore=function(e,t,n){return li.current.useSyncExternalStore(e,t,n)};qt.useTransition=function(){return li.current.useTransition()};qt.version="18.2.0";TB.exports=qt;var T=TB.exports;const pt=Ha(T),Qu=eX({__proto__:null,default:pt},[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 mX=T,vX=Symbol.for("react.element"),yX=Symbol.for("react.fragment"),bX=Object.prototype.hasOwnProperty,xX=mX.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,wX={key:!0,ref:!0,__self:!0,__source:!0};function LB(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)bX.call(t,r)&&!wX.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:vX,type:e,key:o,ref:a,props:i,_owner:xX.current}}P1.Fragment=yX;P1.jsx=LB;P1.jsxs=LB;kB.exports=P1;var k=kB.exports,hC={},FB={exports:{}},Zi={},MB={exports:{}},NB={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/(function(e){function t(Z,ee){var Y=Z.length;Z.push(ee);e:for(;0<Y;){var M=Y-1>>>1,A=Z[M];if(0<i(A,ee))Z[M]=ee,Z[Y]=A,Y=M;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],Y=Z.pop();if(Y!==ee){Z[0]=Y;e:for(var M=0,A=Z.length,ne=A>>>1;M<ne;){var oe=2*(M+1)-1,ce=Z[oe],re=oe+1,Se=Z[re];if(0>i(ce,Y))re<A&&0>i(Se,ce)?(Z[M]=Se,Z[re]=Y,M=re):(Z[M]=ce,Z[oe]=Y,M=oe);else if(re<A&&0>i(Se,Y))Z[M]=Se,Z[re]=Y,M=re;else break e}}return ee}function i(Z,ee){var Y=Z.sortIndex-ee.sortIndex;return Y!==0?Y: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=[],c=[],f=1,h=null,p=3,y=!1,m=!1,v=!1,S=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,w=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(c);ee!==null;){if(ee.callback===null)r(c);else if(ee.startTime<=Z)r(c),ee.sortIndex=ee.expirationTime,t(l,ee);else break;ee=n(c)}}function E(Z){if(v=!1,C(Z),!m)if(n(l)!==null)m=!0,L(O);else{var ee=n(c);ee!==null&&te(E,ee.startTime-Z)}}function O(Z,ee){m=!1,v&&(v=!1,x(W),W=-1),y=!0;var Y=p;try{for(C(ee),h=n(l);h!==null&&(!(h.expirationTime>ee)||Z&&!U());){var M=h.callback;if(typeof M=="function"){h.callback=null,p=h.priorityLevel;var A=M(h.expirationTime<=ee);ee=e.unstable_now(),typeof A=="function"?h.callback=A:h===n(l)&&r(l),C(ee)}else r(l);h=n(l)}if(h!==null)var ne=!0;else{var oe=n(c);oe!==null&&te(E,oe.startTime-ee),ne=!1}return ne}finally{h=null,p=Y,y=!1}}var $=!1,I=null,W=-1,H=5,j=-1;function U(){return!(e.unstable_now()-j<H)}function le(){if(I!==null){var Z=e.unstable_now();j=Z;var ee=!0;try{ee=I(!0,Z)}finally{ee?se():($=!1,I=null)}}else $=!1}var se;if(typeof w=="function")se=function(){w(le)};else if(typeof MessageChannel<"u"){var ie=new MessageChannel,Q=ie.port2;ie.port1.onmessage=le,se=function(){Q.postMessage(null)}}else se=function(){S(le,0)};function L(Z){I=Z,$||($=!0,se())}function te(Z,ee){W=S(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(){m||y||(m=!0,L(O))},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"):H=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 Y=p;p=ee;try{return Z()}finally{p=Y}},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 Y=p;p=Z;try{return ee()}finally{p=Y}},e.unstable_scheduleCallback=function(Z,ee,Y){var M=e.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?M+Y:M):Y=M,Z){case 1:var A=-1;break;case 2:A=250;break;case 5:A=1073741823;break;case 4:A=1e4;break;default:A=5e3}return A=Y+A,Z={id:f++,callback:ee,priorityLevel:Z,startTime:Y,expirationTime:A,sortIndex:-1},Y>M?(Z.sortIndex=Y,t(c,Z),n(l)===null&&Z===n(c)&&(v?(x(W),W=-1):v=!0,te(E,Y-M))):(Z.sortIndex=A,t(l,Z),m||y||(m=!0,L(O))),Z},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(Z){var ee=p;return function(){var Y=p;p=ee;try{return Z.apply(this,arguments)}finally{p=Y}}}})(NB);MB.exports=NB;var SX=MB.exports;/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.min.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var BB=T,Yi=SX;function Ye(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 zB=new Set,ug={};function fc(e,t){sd(e,t),sd(e+"Capture",t)}function sd(e,t){for(ug[e]=t,e=0;e<t.length;e++)zB.add(t[e])}var Ds=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gC=Object.prototype.hasOwnProperty,_X=/^[: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]*$/,bD={},xD={};function CX(e){return gC.call(xD,e)?!0:gC.call(bD,e)?!1:_X.test(e)?xD[e]=!0:(bD[e]=!0,!1)}function EX(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 kX(e,t,n,r){if(t===null||typeof t>"u"||EX(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 ui(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 zr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){zr[e]=new ui(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];zr[t]=new ui(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){zr[e]=new ui(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){zr[e]=new ui(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){zr[e]=new ui(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){zr[e]=new ui(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){zr[e]=new ui(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){zr[e]=new ui(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){zr[e]=new ui(e,5,!1,e.toLowerCase(),null,!1,!1)});var Kk=/[\-:]([a-z])/g;function Wk(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(Kk,Wk);zr[t]=new ui(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(Kk,Wk);zr[t]=new ui(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(Kk,Wk);zr[t]=new ui(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){zr[e]=new ui(e,1,!1,e.toLowerCase(),null,!1,!1)});zr.xlinkHref=new ui("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){zr[e]=new ui(e,1,!1,e.toLowerCase(),null,!0,!0)});function Vk(e,t,n,r){var i=zr.hasOwnProperty(t)?zr[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(kX(t,n,i,r)&&(n=null),r||i===null?CX(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 Ns=BB.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Nv=Symbol.for("react.element"),Tf=Symbol.for("react.portal"),Rf=Symbol.for("react.fragment"),Hk=Symbol.for("react.strict_mode"),mC=Symbol.for("react.profiler"),jB=Symbol.for("react.provider"),UB=Symbol.for("react.context"),qk=Symbol.for("react.forward_ref"),vC=Symbol.for("react.suspense"),yC=Symbol.for("react.suspense_list"),Gk=Symbol.for("react.memo"),bl=Symbol.for("react.lazy"),KB=Symbol.for("react.offscreen"),wD=Symbol.iterator;function zp(e){return e===null||typeof e!="object"?null:(e=wD&&e[wD]||e["@@iterator"],typeof e=="function"?e:null)}var Hn=Object.assign,iS;function Eh(e){if(iS===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);iS=t&&t[1]||""}return`
|
|
34
|
+
`+iS+e}var oS=!1;function aS(e,t){if(!e||oS)return"";oS=!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(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var i=c.stack.split(`
|
|
35
|
+
`),o=r.stack.split(`
|
|
36
|
+
`),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=`
|
|
37
|
+
`+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{oS=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Eh(e):""}function TX(e){switch(e.tag){case 5:return Eh(e.type);case 16:return Eh("Lazy");case 13:return Eh("Suspense");case 19:return Eh("SuspenseList");case 0:case 2:case 15:return e=aS(e.type,!1),e;case 11:return e=aS(e.type.render,!1),e;case 1:return e=aS(e.type,!0),e;default:return""}}function bC(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 Rf:return"Fragment";case Tf:return"Portal";case mC:return"Profiler";case Hk:return"StrictMode";case vC:return"Suspense";case yC:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case UB:return(e.displayName||"Context")+".Consumer";case jB:return(e._context.displayName||"Context")+".Provider";case qk:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Gk:return t=e.displayName||null,t!==null?t:bC(e.type)||"Memo";case bl:t=e._payload,e=e._init;try{return bC(e(t))}catch{}}return null}function RX(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 bC(t);case 8:return t===Hk?"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 zl(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function WB(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function AX(e){var t=WB(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 Bv(e){e._valueTracker||(e._valueTracker=AX(e))}function VB(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=WB(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function T0(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 xC(e,t){var n=t.checked;return Hn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function SD(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=zl(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 HB(e,t){t=t.checked,t!=null&&Vk(e,"checked",t,!1)}function wC(e,t){HB(e,t);var n=zl(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")?SC(e,t.type,n):t.hasOwnProperty("defaultValue")&&SC(e,t.type,zl(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function _D(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 SC(e,t,n){(t!=="number"||T0(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var kh=Array.isArray;function Wf(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=""+zl(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 _C(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Ye(91));return Hn({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function CD(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Ye(92));if(kh(n)){if(1<n.length)throw Error(Ye(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:zl(n)}}function qB(e,t){var n=zl(t.value),r=zl(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 ED(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function GB(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 CC(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?GB(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var zv,YB=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(zv=zv||document.createElement("div"),zv.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=zv.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function cg(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Nh={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},OX=["Webkit","ms","Moz","O"];Object.keys(Nh).forEach(function(e){OX.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Nh[t]=Nh[e]})});function XB(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Nh.hasOwnProperty(e)&&Nh[e]?(""+t).trim():t+"px"}function ZB(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=XB(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var DX=Hn({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 EC(e,t){if(t){if(DX[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Ye(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Ye(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Ye(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Ye(62))}}function kC(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 TC=null;function Yk(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var RC=null,Vf=null,Hf=null;function kD(e){if(e=qg(e)){if(typeof RC!="function")throw Error(Ye(280));var t=e.stateNode;t&&(t=B1(t),RC(e.stateNode,e.type,t))}}function JB(e){Vf?Hf?Hf.push(e):Hf=[e]:Vf=e}function QB(){if(Vf){var e=Vf,t=Hf;if(Hf=Vf=null,kD(e),t)for(e=0;e<t.length;e++)kD(t[e])}}function e3(e,t){return e(t)}function t3(){}var sS=!1;function n3(e,t,n){if(sS)return e(t,n);sS=!0;try{return e3(e,t,n)}finally{sS=!1,(Vf!==null||Hf!==null)&&(t3(),QB())}}function fg(e,t){var n=e.stateNode;if(n===null)return null;var r=B1(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(Ye(231,t,typeof n));return n}var AC=!1;if(Ds)try{var jp={};Object.defineProperty(jp,"passive",{get:function(){AC=!0}}),window.addEventListener("test",jp,jp),window.removeEventListener("test",jp,jp)}catch{AC=!1}function $X(e,t,n,r,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(f){this.onError(f)}}var Bh=!1,R0=null,A0=!1,OC=null,IX={onError:function(e){Bh=!0,R0=e}};function PX(e,t,n,r,i,o,a,s,l){Bh=!1,R0=null,$X.apply(IX,arguments)}function LX(e,t,n,r,i,o,a,s,l){if(PX.apply(this,arguments),Bh){if(Bh){var c=R0;Bh=!1,R0=null}else throw Error(Ye(198));A0||(A0=!0,OC=c)}}function dc(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 r3(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 TD(e){if(dc(e)!==e)throw Error(Ye(188))}function FX(e){var t=e.alternate;if(!t){if(t=dc(e),t===null)throw Error(Ye(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 TD(i),e;if(o===r)return TD(i),t;o=o.sibling}throw Error(Ye(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(Ye(189))}}if(n.alternate!==r)throw Error(Ye(190))}if(n.tag!==3)throw Error(Ye(188));return n.stateNode.current===n?e:t}function i3(e){return e=FX(e),e!==null?o3(e):null}function o3(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=o3(e);if(t!==null)return t;e=e.sibling}return null}var a3=Yi.unstable_scheduleCallback,RD=Yi.unstable_cancelCallback,MX=Yi.unstable_shouldYield,NX=Yi.unstable_requestPaint,ar=Yi.unstable_now,BX=Yi.unstable_getCurrentPriorityLevel,Xk=Yi.unstable_ImmediatePriority,s3=Yi.unstable_UserBlockingPriority,O0=Yi.unstable_NormalPriority,zX=Yi.unstable_LowPriority,l3=Yi.unstable_IdlePriority,L1=null,Ma=null;function jX(e){if(Ma&&typeof Ma.onCommitFiberRoot=="function")try{Ma.onCommitFiberRoot(L1,e,void 0,(e.current.flags&128)===128)}catch{}}var aa=Math.clz32?Math.clz32:WX,UX=Math.log,KX=Math.LN2;function WX(e){return e>>>=0,e===0?32:31-(UX(e)/KX|0)|0}var jv=64,Uv=4194304;function Th(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 D0(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=Th(s):(o&=a,o!==0&&(r=Th(o)))}else a=n&~i,a!==0?r=Th(a):o!==0&&(r=Th(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-aa(t),i=1<<n,r|=e[n],t&=~i;return r}function VX(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 HX(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-aa(o),s=1<<a,l=i[a];l===-1?(!(s&n)||s&r)&&(i[a]=VX(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}function DC(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function u3(){var e=jv;return jv<<=1,!(jv&4194240)&&(jv=64),e}function lS(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Vg(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-aa(t),e[t]=n}function qX(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-aa(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function Zk(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-aa(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var hn=0;function c3(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var f3,Jk,d3,p3,h3,$C=!1,Kv=[],$l=null,Il=null,Pl=null,dg=new Map,pg=new Map,_l=[],GX="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 AD(e,t){switch(e){case"focusin":case"focusout":$l=null;break;case"dragenter":case"dragleave":Il=null;break;case"mouseover":case"mouseout":Pl=null;break;case"pointerover":case"pointerout":dg.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":pg.delete(t.pointerId)}}function Up(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=qg(t),t!==null&&Jk(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function YX(e,t,n,r,i){switch(t){case"focusin":return $l=Up($l,e,t,n,r,i),!0;case"dragenter":return Il=Up(Il,e,t,n,r,i),!0;case"mouseover":return Pl=Up(Pl,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return dg.set(o,Up(dg.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,pg.set(o,Up(pg.get(o)||null,e,t,n,r,i)),!0}return!1}function g3(e){var t=zu(e.target);if(t!==null){var n=dc(t);if(n!==null){if(t=n.tag,t===13){if(t=r3(n),t!==null){e.blockedOn=t,h3(e.priority,function(){d3(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 Hy(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=IC(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);TC=r,n.target.dispatchEvent(r),TC=null}else return t=qg(n),t!==null&&Jk(t),e.blockedOn=n,!1;t.shift()}return!0}function OD(e,t,n){Hy(e)&&n.delete(t)}function XX(){$C=!1,$l!==null&&Hy($l)&&($l=null),Il!==null&&Hy(Il)&&(Il=null),Pl!==null&&Hy(Pl)&&(Pl=null),dg.forEach(OD),pg.forEach(OD)}function Kp(e,t){e.blockedOn===t&&(e.blockedOn=null,$C||($C=!0,Yi.unstable_scheduleCallback(Yi.unstable_NormalPriority,XX)))}function hg(e){function t(i){return Kp(i,e)}if(0<Kv.length){Kp(Kv[0],e);for(var n=1;n<Kv.length;n++){var r=Kv[n];r.blockedOn===e&&(r.blockedOn=null)}}for($l!==null&&Kp($l,e),Il!==null&&Kp(Il,e),Pl!==null&&Kp(Pl,e),dg.forEach(t),pg.forEach(t),n=0;n<_l.length;n++)r=_l[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<_l.length&&(n=_l[0],n.blockedOn===null);)g3(n),n.blockedOn===null&&_l.shift()}var qf=Ns.ReactCurrentBatchConfig,$0=!0;function ZX(e,t,n,r){var i=hn,o=qf.transition;qf.transition=null;try{hn=1,Qk(e,t,n,r)}finally{hn=i,qf.transition=o}}function JX(e,t,n,r){var i=hn,o=qf.transition;qf.transition=null;try{hn=4,Qk(e,t,n,r)}finally{hn=i,qf.transition=o}}function Qk(e,t,n,r){if($0){var i=IC(e,t,n,r);if(i===null)yS(e,t,r,I0,n),AD(e,r);else if(YX(i,e,t,n,r))r.stopPropagation();else if(AD(e,r),t&4&&-1<GX.indexOf(e)){for(;i!==null;){var o=qg(i);if(o!==null&&f3(o),o=IC(e,t,n,r),o===null&&yS(e,t,r,I0,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else yS(e,t,r,null,n)}}var I0=null;function IC(e,t,n,r){if(I0=null,e=Yk(r),e=zu(e),e!==null)if(t=dc(e),t===null)e=null;else if(n=t.tag,n===13){if(e=r3(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 I0=e,null}function m3(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(BX()){case Xk:return 1;case s3:return 4;case O0:case zX:return 16;case l3:return 536870912;default:return 16}default:return 16}}var kl=null,eT=null,qy=null;function v3(){if(qy)return qy;var e,t=eT,n=t.length,r,i="value"in kl?kl.value:kl.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 qy=i.slice(e,1<r?1-r:void 0)}function Gy(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 Wv(){return!0}function DD(){return!1}function Ji(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)?Wv:DD,this.isPropagationStopped=DD,this}return Hn(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=Wv)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Wv)},persist:function(){},isPersistent:Wv}),t}var Dd={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},tT=Ji(Dd),Hg=Hn({},Dd,{view:0,detail:0}),QX=Ji(Hg),uS,cS,Wp,F1=Hn({},Hg,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nT,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!==Wp&&(Wp&&e.type==="mousemove"?(uS=e.screenX-Wp.screenX,cS=e.screenY-Wp.screenY):cS=uS=0,Wp=e),uS)},movementY:function(e){return"movementY"in e?e.movementY:cS}}),$D=Ji(F1),eZ=Hn({},F1,{dataTransfer:0}),tZ=Ji(eZ),nZ=Hn({},Hg,{relatedTarget:0}),fS=Ji(nZ),rZ=Hn({},Dd,{animationName:0,elapsedTime:0,pseudoElement:0}),iZ=Ji(rZ),oZ=Hn({},Dd,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),aZ=Ji(oZ),sZ=Hn({},Dd,{data:0}),ID=Ji(sZ),lZ={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},uZ={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"},cZ={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function fZ(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=cZ[e])?!!t[e]:!1}function nT(){return fZ}var dZ=Hn({},Hg,{key:function(e){if(e.key){var t=lZ[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Gy(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?uZ[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nT,charCode:function(e){return e.type==="keypress"?Gy(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Gy(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),pZ=Ji(dZ),hZ=Hn({},F1,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),PD=Ji(hZ),gZ=Hn({},Hg,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nT}),mZ=Ji(gZ),vZ=Hn({},Dd,{propertyName:0,elapsedTime:0,pseudoElement:0}),yZ=Ji(vZ),bZ=Hn({},F1,{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}),xZ=Ji(bZ),wZ=[9,13,27,32],rT=Ds&&"CompositionEvent"in window,zh=null;Ds&&"documentMode"in document&&(zh=document.documentMode);var SZ=Ds&&"TextEvent"in window&&!zh,y3=Ds&&(!rT||zh&&8<zh&&11>=zh),LD=String.fromCharCode(32),FD=!1;function b3(e,t){switch(e){case"keyup":return wZ.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function x3(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Af=!1;function _Z(e,t){switch(e){case"compositionend":return x3(t);case"keypress":return t.which!==32?null:(FD=!0,LD);case"textInput":return e=t.data,e===LD&&FD?null:e;default:return null}}function CZ(e,t){if(Af)return e==="compositionend"||!rT&&b3(e,t)?(e=v3(),qy=eT=kl=null,Af=!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 y3&&t.locale!=="ko"?null:t.data;default:return null}}var EZ={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 MD(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!EZ[e.type]:t==="textarea"}function w3(e,t,n,r){JB(r),t=P0(t,"onChange"),0<t.length&&(n=new tT("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var jh=null,gg=null;function kZ(e){$3(e,0)}function M1(e){var t=$f(e);if(VB(t))return e}function TZ(e,t){if(e==="change")return t}var S3=!1;if(Ds){var dS;if(Ds){var pS="oninput"in document;if(!pS){var ND=document.createElement("div");ND.setAttribute("oninput","return;"),pS=typeof ND.oninput=="function"}dS=pS}else dS=!1;S3=dS&&(!document.documentMode||9<document.documentMode)}function BD(){jh&&(jh.detachEvent("onpropertychange",_3),gg=jh=null)}function _3(e){if(e.propertyName==="value"&&M1(gg)){var t=[];w3(t,gg,e,Yk(e)),n3(kZ,t)}}function RZ(e,t,n){e==="focusin"?(BD(),jh=t,gg=n,jh.attachEvent("onpropertychange",_3)):e==="focusout"&&BD()}function AZ(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return M1(gg)}function OZ(e,t){if(e==="click")return M1(t)}function DZ(e,t){if(e==="input"||e==="change")return M1(t)}function $Z(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ua=typeof Object.is=="function"?Object.is:$Z;function mg(e,t){if(ua(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(!gC.call(t,i)||!ua(e[i],t[i]))return!1}return!0}function zD(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function jD(e,t){var n=zD(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=zD(n)}}function C3(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?C3(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function E3(){for(var e=window,t=T0();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=T0(e.document)}return t}function iT(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 IZ(e){var t=E3(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&C3(n.ownerDocument.documentElement,n)){if(r!==null&&iT(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=jD(n,o);var a=jD(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 PZ=Ds&&"documentMode"in document&&11>=document.documentMode,Of=null,PC=null,Uh=null,LC=!1;function UD(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;LC||Of==null||Of!==T0(r)||(r=Of,"selectionStart"in r&&iT(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}),Uh&&mg(Uh,r)||(Uh=r,r=P0(PC,"onSelect"),0<r.length&&(t=new tT("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Of)))}function Vv(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Df={animationend:Vv("Animation","AnimationEnd"),animationiteration:Vv("Animation","AnimationIteration"),animationstart:Vv("Animation","AnimationStart"),transitionend:Vv("Transition","TransitionEnd")},hS={},k3={};Ds&&(k3=document.createElement("div").style,"AnimationEvent"in window||(delete Df.animationend.animation,delete Df.animationiteration.animation,delete Df.animationstart.animation),"TransitionEvent"in window||delete Df.transitionend.transition);function N1(e){if(hS[e])return hS[e];if(!Df[e])return e;var t=Df[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in k3)return hS[e]=t[n];return e}var T3=N1("animationend"),R3=N1("animationiteration"),A3=N1("animationstart"),O3=N1("transitionend"),D3=new Map,KD="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 ql(e,t){D3.set(e,t),fc(t,[e])}for(var gS=0;gS<KD.length;gS++){var mS=KD[gS],LZ=mS.toLowerCase(),FZ=mS[0].toUpperCase()+mS.slice(1);ql(LZ,"on"+FZ)}ql(T3,"onAnimationEnd");ql(R3,"onAnimationIteration");ql(A3,"onAnimationStart");ql("dblclick","onDoubleClick");ql("focusin","onFocus");ql("focusout","onBlur");ql(O3,"onTransitionEnd");sd("onMouseEnter",["mouseout","mouseover"]);sd("onMouseLeave",["mouseout","mouseover"]);sd("onPointerEnter",["pointerout","pointerover"]);sd("onPointerLeave",["pointerout","pointerover"]);fc("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));fc("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));fc("onBeforeInput",["compositionend","keypress","textInput","paste"]);fc("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));fc("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));fc("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Rh="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(" "),MZ=new Set("cancel close invalid load scroll toggle".split(" ").concat(Rh));function WD(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,LX(r,t,void 0,e),e.currentTarget=null}function $3(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,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;WD(i,s,c),o=l}else for(a=0;a<r.length;a++){if(s=r[a],l=s.instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;WD(i,s,c),o=l}}}if(A0)throw e=OC,A0=!1,OC=null,e}function Rn(e,t){var n=t[zC];n===void 0&&(n=t[zC]=new Set);var r=e+"__bubble";n.has(r)||(I3(t,e,2,!1),n.add(r))}function vS(e,t,n){var r=0;t&&(r|=4),I3(n,e,r,t)}var Hv="_reactListening"+Math.random().toString(36).slice(2);function vg(e){if(!e[Hv]){e[Hv]=!0,zB.forEach(function(n){n!=="selectionchange"&&(MZ.has(n)||vS(n,!1,e),vS(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Hv]||(t[Hv]=!0,vS("selectionchange",!1,t))}}function I3(e,t,n,r){switch(m3(t)){case 1:var i=ZX;break;case 4:i=JX;break;default:i=Qk}n=i.bind(null,t,n,e),i=void 0,!AC||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 yS(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=zu(s),a===null)return;if(l=a.tag,l===5||l===6){r=o=a;continue e}s=s.parentNode}}r=r.return}n3(function(){var c=o,f=Yk(n),h=[];e:{var p=D3.get(e);if(p!==void 0){var y=tT,m=e;switch(e){case"keypress":if(Gy(n)===0)break e;case"keydown":case"keyup":y=pZ;break;case"focusin":m="focus",y=fS;break;case"focusout":m="blur",y=fS;break;case"beforeblur":case"afterblur":y=fS;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":y=$D;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=tZ;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=mZ;break;case T3:case R3:case A3:y=iZ;break;case O3:y=yZ;break;case"scroll":y=QX;break;case"wheel":y=xZ;break;case"copy":case"cut":case"paste":y=aZ;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=PD}var v=(t&4)!==0,S=!v&&e==="scroll",x=v?p!==null?p+"Capture":null:p;v=[];for(var w=c,C;w!==null;){C=w;var E=C.stateNode;if(C.tag===5&&E!==null&&(C=E,x!==null&&(E=fg(w,x),E!=null&&v.push(yg(w,E,C)))),S)break;w=w.return}0<v.length&&(p=new y(p,m,null,n,f),h.push({event:p,listeners:v}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",p&&n!==TC&&(m=n.relatedTarget||n.fromElement)&&(zu(m)||m[$s]))break e;if((y||p)&&(p=f.window===f?f:(p=f.ownerDocument)?p.defaultView||p.parentWindow:window,y?(m=n.relatedTarget||n.toElement,y=c,m=m?zu(m):null,m!==null&&(S=dc(m),m!==S||m.tag!==5&&m.tag!==6)&&(m=null)):(y=null,m=c),y!==m)){if(v=$D,E="onMouseLeave",x="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(v=PD,E="onPointerLeave",x="onPointerEnter",w="pointer"),S=y==null?p:$f(y),C=m==null?p:$f(m),p=new v(E,w+"leave",y,n,f),p.target=S,p.relatedTarget=C,E=null,zu(f)===c&&(v=new v(x,w+"enter",m,n,f),v.target=C,v.relatedTarget=S,E=v),S=E,y&&m)t:{for(v=y,x=m,w=0,C=v;C;C=of(C))w++;for(C=0,E=x;E;E=of(E))C++;for(;0<w-C;)v=of(v),w--;for(;0<C-w;)x=of(x),C--;for(;w--;){if(v===x||x!==null&&v===x.alternate)break t;v=of(v),x=of(x)}v=null}else v=null;y!==null&&VD(h,p,y,v,!1),m!==null&&S!==null&&VD(h,S,m,v,!0)}}e:{if(p=c?$f(c):window,y=p.nodeName&&p.nodeName.toLowerCase(),y==="select"||y==="input"&&p.type==="file")var O=TZ;else if(MD(p))if(S3)O=DZ;else{O=AZ;var $=RZ}else(y=p.nodeName)&&y.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(O=OZ);if(O&&(O=O(e,c))){w3(h,O,n,f);break e}$&&$(e,p,c),e==="focusout"&&($=p._wrapperState)&&$.controlled&&p.type==="number"&&SC(p,"number",p.value)}switch($=c?$f(c):window,e){case"focusin":(MD($)||$.contentEditable==="true")&&(Of=$,PC=c,Uh=null);break;case"focusout":Uh=PC=Of=null;break;case"mousedown":LC=!0;break;case"contextmenu":case"mouseup":case"dragend":LC=!1,UD(h,n,f);break;case"selectionchange":if(PZ)break;case"keydown":case"keyup":UD(h,n,f)}var I;if(rT)e:{switch(e){case"compositionstart":var W="onCompositionStart";break e;case"compositionend":W="onCompositionEnd";break e;case"compositionupdate":W="onCompositionUpdate";break e}W=void 0}else Af?b3(e,n)&&(W="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(W="onCompositionStart");W&&(y3&&n.locale!=="ko"&&(Af||W!=="onCompositionStart"?W==="onCompositionEnd"&&Af&&(I=v3()):(kl=f,eT="value"in kl?kl.value:kl.textContent,Af=!0)),$=P0(c,W),0<$.length&&(W=new ID(W,e,null,n,f),h.push({event:W,listeners:$}),I?W.data=I:(I=x3(n),I!==null&&(W.data=I)))),(I=SZ?_Z(e,n):CZ(e,n))&&(c=P0(c,"onBeforeInput"),0<c.length&&(f=new ID("onBeforeInput","beforeinput",null,n,f),h.push({event:f,listeners:c}),f.data=I))}$3(h,t)})}function yg(e,t,n){return{instance:e,listener:t,currentTarget:n}}function P0(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=fg(e,n),o!=null&&r.unshift(yg(e,o,i)),o=fg(e,t),o!=null&&r.push(yg(e,o,i))),e=e.return}return r}function of(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function VD(e,t,n,r,i){for(var o=t._reactName,a=[];n!==null&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(l!==null&&l===r)break;s.tag===5&&c!==null&&(s=c,i?(l=fg(n,o),l!=null&&a.unshift(yg(n,l,s))):i||(l=fg(n,o),l!=null&&a.push(yg(n,l,s)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var NZ=/\r\n?/g,BZ=/\u0000|\uFFFD/g;function HD(e){return(typeof e=="string"?e:""+e).replace(NZ,`
|
|
38
|
+
`).replace(BZ,"")}function qv(e,t,n){if(t=HD(t),HD(e)!==t&&n)throw Error(Ye(425))}function L0(){}var FC=null,MC=null;function NC(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 BC=typeof setTimeout=="function"?setTimeout:void 0,zZ=typeof clearTimeout=="function"?clearTimeout:void 0,qD=typeof Promise=="function"?Promise:void 0,jZ=typeof queueMicrotask=="function"?queueMicrotask:typeof qD<"u"?function(e){return qD.resolve(null).then(e).catch(UZ)}:BC;function UZ(e){setTimeout(function(){throw e})}function bS(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),hg(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);hg(t)}function Ll(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 GD(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 $d=Math.random().toString(36).slice(2),Ia="__reactFiber$"+$d,bg="__reactProps$"+$d,$s="__reactContainer$"+$d,zC="__reactEvents$"+$d,KZ="__reactListeners$"+$d,WZ="__reactHandles$"+$d;function zu(e){var t=e[Ia];if(t)return t;for(var n=e.parentNode;n;){if(t=n[$s]||n[Ia]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=GD(e);e!==null;){if(n=e[Ia])return n;e=GD(e)}return t}e=n,n=e.parentNode}return null}function qg(e){return e=e[Ia]||e[$s],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function $f(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Ye(33))}function B1(e){return e[bg]||null}var jC=[],If=-1;function Gl(e){return{current:e}}function Dn(e){0>If||(e.current=jC[If],jC[If]=null,If--)}function kn(e,t){If++,jC[If]=e.current,e.current=t}var jl={},Xr=Gl(jl),bi=Gl(!1),ec=jl;function ld(e,t){var n=e.type.contextTypes;if(!n)return jl;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 xi(e){return e=e.childContextTypes,e!=null}function F0(){Dn(bi),Dn(Xr)}function YD(e,t,n){if(Xr.current!==jl)throw Error(Ye(168));kn(Xr,t),kn(bi,n)}function P3(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(Ye(108,RX(e)||"Unknown",i));return Hn({},n,r)}function M0(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||jl,ec=Xr.current,kn(Xr,e),kn(bi,bi.current),!0}function XD(e,t,n){var r=e.stateNode;if(!r)throw Error(Ye(169));n?(e=P3(e,t,ec),r.__reactInternalMemoizedMergedChildContext=e,Dn(bi),Dn(Xr),kn(Xr,e)):Dn(bi),kn(bi,n)}var Cs=null,z1=!1,xS=!1;function L3(e){Cs===null?Cs=[e]:Cs.push(e)}function VZ(e){z1=!0,L3(e)}function Yl(){if(!xS&&Cs!==null){xS=!0;var e=0,t=hn;try{var n=Cs;for(hn=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Cs=null,z1=!1}catch(i){throw Cs!==null&&(Cs=Cs.slice(e+1)),a3(Xk,Yl),i}finally{hn=t,xS=!1}}return null}var Pf=[],Lf=0,N0=null,B0=0,vo=[],yo=0,tc=null,Es=1,ks="";function Ru(e,t){Pf[Lf++]=B0,Pf[Lf++]=N0,N0=e,B0=t}function F3(e,t,n){vo[yo++]=Es,vo[yo++]=ks,vo[yo++]=tc,tc=e;var r=Es;e=ks;var i=32-aa(r)-1;r&=~(1<<i),n+=1;var o=32-aa(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Es=1<<32-aa(t)+i|n<<i|r,ks=o+e}else Es=1<<o|n<<i|r,ks=e}function oT(e){e.return!==null&&(Ru(e,1),F3(e,1,0))}function aT(e){for(;e===N0;)N0=Pf[--Lf],Pf[Lf]=null,B0=Pf[--Lf],Pf[Lf]=null;for(;e===tc;)tc=vo[--yo],vo[yo]=null,ks=vo[--yo],vo[yo]=null,Es=vo[--yo],vo[yo]=null}var Vi=null,Wi=null,Mn=!1,ia=null;function M3(e,t){var n=So(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 ZD(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,Vi=e,Wi=Ll(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Vi=e,Wi=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=tc!==null?{id:Es,overflow:ks}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=So(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Vi=e,Wi=null,!0):!1;default:return!1}}function UC(e){return(e.mode&1)!==0&&(e.flags&128)===0}function KC(e){if(Mn){var t=Wi;if(t){var n=t;if(!ZD(e,t)){if(UC(e))throw Error(Ye(418));t=Ll(n.nextSibling);var r=Vi;t&&ZD(e,t)?M3(r,n):(e.flags=e.flags&-4097|2,Mn=!1,Vi=e)}}else{if(UC(e))throw Error(Ye(418));e.flags=e.flags&-4097|2,Mn=!1,Vi=e}}}function JD(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Vi=e}function Gv(e){if(e!==Vi)return!1;if(!Mn)return JD(e),Mn=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!NC(e.type,e.memoizedProps)),t&&(t=Wi)){if(UC(e))throw N3(),Error(Ye(418));for(;t;)M3(e,t),t=Ll(t.nextSibling)}if(JD(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Ye(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Wi=Ll(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Wi=null}}else Wi=Vi?Ll(e.stateNode.nextSibling):null;return!0}function N3(){for(var e=Wi;e;)e=Ll(e.nextSibling)}function ud(){Wi=Vi=null,Mn=!1}function sT(e){ia===null?ia=[e]:ia.push(e)}var HZ=Ns.ReactCurrentBatchConfig;function ea(e,t){if(e&&e.defaultProps){t=Hn({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var z0=Gl(null),j0=null,Ff=null,lT=null;function uT(){lT=Ff=j0=null}function cT(e){var t=z0.current;Dn(z0),e._currentValue=t}function WC(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 Gf(e,t){j0=e,lT=Ff=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(yi=!0),e.firstContext=null)}function Ro(e){var t=e._currentValue;if(lT!==e)if(e={context:e,memoizedValue:t,next:null},Ff===null){if(j0===null)throw Error(Ye(308));Ff=e,j0.dependencies={lanes:0,firstContext:e}}else Ff=Ff.next=e;return t}var ju=null;function fT(e){ju===null?ju=[e]:ju.push(e)}function B3(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,fT(t)):(n.next=i.next,i.next=n),t.interleaved=n,Is(e,r)}function Is(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 xl=!1;function dT(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function z3(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 Ts(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Fl(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Qt&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Is(e,n)}return i=r.interleaved,i===null?(t.next=t,fT(r)):(t.next=i.next,i.next=t),r.interleaved=t,Is(e,n)}function Yy(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,Zk(e,n)}}function QD(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 U0(e,t,n,r){var i=e.updateQueue;xl=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?o=c:a.next=c,a=l;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==a&&(s===null?f.firstBaseUpdate=c:s.next=c,f.lastBaseUpdate=l))}if(o!==null){var h=i.baseState;a=0,f=c=l=null,s=o;do{var p=s.lane,y=s.eventTime;if((r&p)===p){f!==null&&(f=f.next={eventTime:y,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,v=s;switch(p=t,y=n,v.tag){case 1:if(m=v.payload,typeof m=="function"){h=m.call(y,h,p);break e}h=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=v.payload,p=typeof m=="function"?m.call(y,h,p):m,p==null)break e;h=Hn({},h,p);break e;case 2:xl=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[s]:p.push(s))}else y={eventTime:y,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(c=f=y,l=h):f=f.next=y,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=h),i.baseState=l,i.firstBaseUpdate=c,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);rc|=a,e.lanes=a,e.memoizedState=h}}function e$(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(Ye(191,i));i.call(r)}}}var j3=new BB.Component().refs;function VC(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Hn({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var j1={isMounted:function(e){return(e=e._reactInternals)?dc(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=si(),i=Nl(e),o=Ts(r,i);o.payload=t,n!=null&&(o.callback=n),t=Fl(e,o,i),t!==null&&(sa(t,e,i,r),Yy(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=si(),i=Nl(e),o=Ts(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Fl(e,o,i),t!==null&&(sa(t,e,i,r),Yy(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=si(),r=Nl(e),i=Ts(n,r);i.tag=2,t!=null&&(i.callback=t),t=Fl(e,i,r),t!==null&&(sa(t,e,r,n),Yy(t,e,r))}};function t$(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?!mg(n,r)||!mg(i,o):!0}function U3(e,t,n){var r=!1,i=jl,o=t.contextType;return typeof o=="object"&&o!==null?o=Ro(o):(i=xi(t)?ec:Xr.current,r=t.contextTypes,o=(r=r!=null)?ld(e,i):jl),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=j1,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function n$(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&&j1.enqueueReplaceState(t,t.state,null)}function HC(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=j3,dT(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=Ro(o):(o=xi(t)?ec:Xr.current,i.context=ld(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(VC(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&&j1.enqueueReplaceState(i,i.state,null),U0(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Vp(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(Ye(309));var r=n.stateNode}if(!r)throw Error(Ye(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===j3&&(s=i.refs={}),a===null?delete s[o]:s[o]=a},t._stringRef=o,t)}if(typeof e!="string")throw Error(Ye(284));if(!n._owner)throw Error(Ye(290,e))}return e}function Yv(e,t){throw e=Object.prototype.toString.call(t),Error(Ye(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function r$(e){var t=e._init;return t(e._payload)}function K3(e){function t(x,w){if(e){var C=x.deletions;C===null?(x.deletions=[w],x.flags|=16):C.push(w)}}function n(x,w){if(!e)return null;for(;w!==null;)t(x,w),w=w.sibling;return null}function r(x,w){for(x=new Map;w!==null;)w.key!==null?x.set(w.key,w):x.set(w.index,w),w=w.sibling;return x}function i(x,w){return x=Bl(x,w),x.index=0,x.sibling=null,x}function o(x,w,C){return x.index=C,e?(C=x.alternate,C!==null?(C=C.index,C<w?(x.flags|=2,w):C):(x.flags|=2,w)):(x.flags|=1048576,w)}function a(x){return e&&x.alternate===null&&(x.flags|=2),x}function s(x,w,C,E){return w===null||w.tag!==6?(w=TS(C,x.mode,E),w.return=x,w):(w=i(w,C),w.return=x,w)}function l(x,w,C,E){var O=C.type;return O===Rf?f(x,w,C.props.children,E,C.key):w!==null&&(w.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===bl&&r$(O)===w.type)?(E=i(w,C.props),E.ref=Vp(x,w,C),E.return=x,E):(E=t0(C.type,C.key,C.props,null,x.mode,E),E.ref=Vp(x,w,C),E.return=x,E)}function c(x,w,C,E){return w===null||w.tag!==4||w.stateNode.containerInfo!==C.containerInfo||w.stateNode.implementation!==C.implementation?(w=RS(C,x.mode,E),w.return=x,w):(w=i(w,C.children||[]),w.return=x,w)}function f(x,w,C,E,O){return w===null||w.tag!==7?(w=Gu(C,x.mode,E,O),w.return=x,w):(w=i(w,C),w.return=x,w)}function h(x,w,C){if(typeof w=="string"&&w!==""||typeof w=="number")return w=TS(""+w,x.mode,C),w.return=x,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Nv:return C=t0(w.type,w.key,w.props,null,x.mode,C),C.ref=Vp(x,null,w),C.return=x,C;case Tf:return w=RS(w,x.mode,C),w.return=x,w;case bl:var E=w._init;return h(x,E(w._payload),C)}if(kh(w)||zp(w))return w=Gu(w,x.mode,C,null),w.return=x,w;Yv(x,w)}return null}function p(x,w,C,E){var O=w!==null?w.key:null;if(typeof C=="string"&&C!==""||typeof C=="number")return O!==null?null:s(x,w,""+C,E);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case Nv:return C.key===O?l(x,w,C,E):null;case Tf:return C.key===O?c(x,w,C,E):null;case bl:return O=C._init,p(x,w,O(C._payload),E)}if(kh(C)||zp(C))return O!==null?null:f(x,w,C,E,null);Yv(x,C)}return null}function y(x,w,C,E,O){if(typeof E=="string"&&E!==""||typeof E=="number")return x=x.get(C)||null,s(w,x,""+E,O);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case Nv:return x=x.get(E.key===null?C:E.key)||null,l(w,x,E,O);case Tf:return x=x.get(E.key===null?C:E.key)||null,c(w,x,E,O);case bl:var $=E._init;return y(x,w,C,$(E._payload),O)}if(kh(E)||zp(E))return x=x.get(C)||null,f(w,x,E,O,null);Yv(w,E)}return null}function m(x,w,C,E){for(var O=null,$=null,I=w,W=w=0,H=null;I!==null&&W<C.length;W++){I.index>W?(H=I,I=null):H=I.sibling;var j=p(x,I,C[W],E);if(j===null){I===null&&(I=H);break}e&&I&&j.alternate===null&&t(x,I),w=o(j,w,W),$===null?O=j:$.sibling=j,$=j,I=H}if(W===C.length)return n(x,I),Mn&&Ru(x,W),O;if(I===null){for(;W<C.length;W++)I=h(x,C[W],E),I!==null&&(w=o(I,w,W),$===null?O=I:$.sibling=I,$=I);return Mn&&Ru(x,W),O}for(I=r(x,I);W<C.length;W++)H=y(I,x,W,C[W],E),H!==null&&(e&&H.alternate!==null&&I.delete(H.key===null?W:H.key),w=o(H,w,W),$===null?O=H:$.sibling=H,$=H);return e&&I.forEach(function(U){return t(x,U)}),Mn&&Ru(x,W),O}function v(x,w,C,E){var O=zp(C);if(typeof O!="function")throw Error(Ye(150));if(C=O.call(C),C==null)throw Error(Ye(151));for(var $=O=null,I=w,W=w=0,H=null,j=C.next();I!==null&&!j.done;W++,j=C.next()){I.index>W?(H=I,I=null):H=I.sibling;var U=p(x,I,j.value,E);if(U===null){I===null&&(I=H);break}e&&I&&U.alternate===null&&t(x,I),w=o(U,w,W),$===null?O=U:$.sibling=U,$=U,I=H}if(j.done)return n(x,I),Mn&&Ru(x,W),O;if(I===null){for(;!j.done;W++,j=C.next())j=h(x,j.value,E),j!==null&&(w=o(j,w,W),$===null?O=j:$.sibling=j,$=j);return Mn&&Ru(x,W),O}for(I=r(x,I);!j.done;W++,j=C.next())j=y(I,x,W,j.value,E),j!==null&&(e&&j.alternate!==null&&I.delete(j.key===null?W:j.key),w=o(j,w,W),$===null?O=j:$.sibling=j,$=j);return e&&I.forEach(function(le){return t(x,le)}),Mn&&Ru(x,W),O}function S(x,w,C,E){if(typeof C=="object"&&C!==null&&C.type===Rf&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case Nv:e:{for(var O=C.key,$=w;$!==null;){if($.key===O){if(O=C.type,O===Rf){if($.tag===7){n(x,$.sibling),w=i($,C.props.children),w.return=x,x=w;break e}}else if($.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===bl&&r$(O)===$.type){n(x,$.sibling),w=i($,C.props),w.ref=Vp(x,$,C),w.return=x,x=w;break e}n(x,$);break}else t(x,$);$=$.sibling}C.type===Rf?(w=Gu(C.props.children,x.mode,E,C.key),w.return=x,x=w):(E=t0(C.type,C.key,C.props,null,x.mode,E),E.ref=Vp(x,w,C),E.return=x,x=E)}return a(x);case Tf:e:{for($=C.key;w!==null;){if(w.key===$)if(w.tag===4&&w.stateNode.containerInfo===C.containerInfo&&w.stateNode.implementation===C.implementation){n(x,w.sibling),w=i(w,C.children||[]),w.return=x,x=w;break e}else{n(x,w);break}else t(x,w);w=w.sibling}w=RS(C,x.mode,E),w.return=x,x=w}return a(x);case bl:return $=C._init,S(x,w,$(C._payload),E)}if(kh(C))return m(x,w,C,E);if(zp(C))return v(x,w,C,E);Yv(x,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,w!==null&&w.tag===6?(n(x,w.sibling),w=i(w,C),w.return=x,x=w):(n(x,w),w=TS(C,x.mode,E),w.return=x,x=w),a(x)):n(x,w)}return S}var cd=K3(!0),W3=K3(!1),Gg={},Na=Gl(Gg),xg=Gl(Gg),wg=Gl(Gg);function Uu(e){if(e===Gg)throw Error(Ye(174));return e}function pT(e,t){switch(kn(wg,t),kn(xg,e),kn(Na,Gg),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:CC(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=CC(t,e)}Dn(Na),kn(Na,t)}function fd(){Dn(Na),Dn(xg),Dn(wg)}function V3(e){Uu(wg.current);var t=Uu(Na.current),n=CC(t,e.type);t!==n&&(kn(xg,e),kn(Na,n))}function hT(e){xg.current===e&&(Dn(Na),Dn(xg))}var Kn=Gl(0);function K0(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 wS=[];function gT(){for(var e=0;e<wS.length;e++)wS[e]._workInProgressVersionPrimary=null;wS.length=0}var Xy=Ns.ReactCurrentDispatcher,SS=Ns.ReactCurrentBatchConfig,nc=0,Wn=null,vr=null,Cr=null,W0=!1,Kh=!1,Sg=0,qZ=0;function Wr(){throw Error(Ye(321))}function mT(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ua(e[n],t[n]))return!1;return!0}function vT(e,t,n,r,i,o){if(nc=o,Wn=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Xy.current=e===null||e.memoizedState===null?ZZ:JZ,e=n(r,i),Kh){o=0;do{if(Kh=!1,Sg=0,25<=o)throw Error(Ye(301));o+=1,Cr=vr=null,t.updateQueue=null,Xy.current=QZ,e=n(r,i)}while(Kh)}if(Xy.current=V0,t=vr!==null&&vr.next!==null,nc=0,Cr=vr=Wn=null,W0=!1,t)throw Error(Ye(300));return e}function yT(){var e=Sg!==0;return Sg=0,e}function Ta(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Cr===null?Wn.memoizedState=Cr=e:Cr=Cr.next=e,Cr}function Ao(){if(vr===null){var e=Wn.alternate;e=e!==null?e.memoizedState:null}else e=vr.next;var t=Cr===null?Wn.memoizedState:Cr.next;if(t!==null)Cr=t,vr=e;else{if(e===null)throw Error(Ye(310));vr=e,e={memoizedState:vr.memoizedState,baseState:vr.baseState,baseQueue:vr.baseQueue,queue:vr.queue,next:null},Cr===null?Wn.memoizedState=Cr=e:Cr=Cr.next=e}return Cr}function _g(e,t){return typeof t=="function"?t(e):t}function _S(e){var t=Ao(),n=t.queue;if(n===null)throw Error(Ye(311));n.lastRenderedReducer=e;var r=vr,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,c=o;do{var f=c.lane;if((nc&f)===f)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var h={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(s=l=h,a=r):l=l.next=h,Wn.lanes|=f,rc|=f}c=c.next}while(c!==null&&c!==o);l===null?a=r:l.next=s,ua(r,t.memoizedState)||(yi=!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,Wn.lanes|=o,rc|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function CS(e){var t=Ao(),n=t.queue;if(n===null)throw Error(Ye(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);ua(o,t.memoizedState)||(yi=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function H3(){}function q3(e,t){var n=Wn,r=Ao(),i=t(),o=!ua(r.memoizedState,i);if(o&&(r.memoizedState=i,yi=!0),r=r.queue,bT(X3.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Cr!==null&&Cr.memoizedState.tag&1){if(n.flags|=2048,Cg(9,Y3.bind(null,n,r,i,t),void 0,null),kr===null)throw Error(Ye(349));nc&30||G3(n,t,i)}return i}function G3(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Wn.updateQueue,t===null?(t={lastEffect:null,stores:null},Wn.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Y3(e,t,n,r){t.value=n,t.getSnapshot=r,Z3(t)&&J3(e)}function X3(e,t,n){return n(function(){Z3(t)&&J3(e)})}function Z3(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ua(e,n)}catch{return!0}}function J3(e){var t=Is(e,1);t!==null&&sa(t,e,1,-1)}function i$(e){var t=Ta();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:_g,lastRenderedState:e},t.queue=e,e=e.dispatch=XZ.bind(null,Wn,e),[t.memoizedState,e]}function Cg(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Wn.updateQueue,t===null?(t={lastEffect:null,stores:null},Wn.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 Q3(){return Ao().memoizedState}function Zy(e,t,n,r){var i=Ta();Wn.flags|=e,i.memoizedState=Cg(1|t,n,void 0,r===void 0?null:r)}function U1(e,t,n,r){var i=Ao();r=r===void 0?null:r;var o=void 0;if(vr!==null){var a=vr.memoizedState;if(o=a.destroy,r!==null&&mT(r,a.deps)){i.memoizedState=Cg(t,n,o,r);return}}Wn.flags|=e,i.memoizedState=Cg(1|t,n,o,r)}function o$(e,t){return Zy(8390656,8,e,t)}function bT(e,t){return U1(2048,8,e,t)}function e4(e,t){return U1(4,2,e,t)}function t4(e,t){return U1(4,4,e,t)}function n4(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 r4(e,t,n){return n=n!=null?n.concat([e]):null,U1(4,4,n4.bind(null,t,e),n)}function xT(){}function i4(e,t){var n=Ao();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&mT(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function o4(e,t){var n=Ao();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&mT(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function a4(e,t,n){return nc&21?(ua(n,t)||(n=u3(),Wn.lanes|=n,rc|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,yi=!0),e.memoizedState=n)}function GZ(e,t){var n=hn;hn=n!==0&&4>n?n:4,e(!0);var r=SS.transition;SS.transition={};try{e(!1),t()}finally{hn=n,SS.transition=r}}function s4(){return Ao().memoizedState}function YZ(e,t,n){var r=Nl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},l4(e))u4(t,n);else if(n=B3(e,t,n,r),n!==null){var i=si();sa(n,e,r,i),c4(n,t,r)}}function XZ(e,t,n){var r=Nl(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(l4(e))u4(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,ua(s,a)){var l=t.interleaved;l===null?(i.next=i,fT(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=B3(e,t,i,r),n!==null&&(i=si(),sa(n,e,r,i),c4(n,t,r))}}function l4(e){var t=e.alternate;return e===Wn||t!==null&&t===Wn}function u4(e,t){Kh=W0=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function c4(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Zk(e,n)}}var V0={readContext:Ro,useCallback:Wr,useContext:Wr,useEffect:Wr,useImperativeHandle:Wr,useInsertionEffect:Wr,useLayoutEffect:Wr,useMemo:Wr,useReducer:Wr,useRef:Wr,useState:Wr,useDebugValue:Wr,useDeferredValue:Wr,useTransition:Wr,useMutableSource:Wr,useSyncExternalStore:Wr,useId:Wr,unstable_isNewReconciler:!1},ZZ={readContext:Ro,useCallback:function(e,t){return Ta().memoizedState=[e,t===void 0?null:t],e},useContext:Ro,useEffect:o$,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Zy(4194308,4,n4.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Zy(4194308,4,e,t)},useInsertionEffect:function(e,t){return Zy(4,2,e,t)},useMemo:function(e,t){var n=Ta();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ta();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=YZ.bind(null,Wn,e),[r.memoizedState,e]},useRef:function(e){var t=Ta();return e={current:e},t.memoizedState=e},useState:i$,useDebugValue:xT,useDeferredValue:function(e){return Ta().memoizedState=e},useTransition:function(){var e=i$(!1),t=e[0];return e=GZ.bind(null,e[1]),Ta().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Wn,i=Ta();if(Mn){if(n===void 0)throw Error(Ye(407));n=n()}else{if(n=t(),kr===null)throw Error(Ye(349));nc&30||G3(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,o$(X3.bind(null,r,o,e),[e]),r.flags|=2048,Cg(9,Y3.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Ta(),t=kr.identifierPrefix;if(Mn){var n=ks,r=Es;n=(r&~(1<<32-aa(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Sg++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=qZ++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},JZ={readContext:Ro,useCallback:i4,useContext:Ro,useEffect:bT,useImperativeHandle:r4,useInsertionEffect:e4,useLayoutEffect:t4,useMemo:o4,useReducer:_S,useRef:Q3,useState:function(){return _S(_g)},useDebugValue:xT,useDeferredValue:function(e){var t=Ao();return a4(t,vr.memoizedState,e)},useTransition:function(){var e=_S(_g)[0],t=Ao().memoizedState;return[e,t]},useMutableSource:H3,useSyncExternalStore:q3,useId:s4,unstable_isNewReconciler:!1},QZ={readContext:Ro,useCallback:i4,useContext:Ro,useEffect:bT,useImperativeHandle:r4,useInsertionEffect:e4,useLayoutEffect:t4,useMemo:o4,useReducer:CS,useRef:Q3,useState:function(){return CS(_g)},useDebugValue:xT,useDeferredValue:function(e){var t=Ao();return vr===null?t.memoizedState=e:a4(t,vr.memoizedState,e)},useTransition:function(){var e=CS(_g)[0],t=Ao().memoizedState;return[e,t]},useMutableSource:H3,useSyncExternalStore:q3,useId:s4,unstable_isNewReconciler:!1};function dd(e,t){try{var n="",r=t;do n+=TX(r),r=r.return;while(r);var i=n}catch(o){i=`
|
|
39
|
+
Error generating stack: `+o.message+`
|
|
40
|
+
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function ES(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function qC(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var eJ=typeof WeakMap=="function"?WeakMap:Map;function f4(e,t,n){n=Ts(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){q0||(q0=!0,rE=r),qC(e,t)},n}function d4(e,t,n){n=Ts(-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(){qC(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){qC(e,t),typeof r!="function"&&(Ml===null?Ml=new Set([this]):Ml.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function a$(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new eJ;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=hJ.bind(null,e,t,n),t.then(e,e))}function s$(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 l$(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=Ts(-1,1),t.tag=2,Fl(n,t,1))),n.lanes|=1),e)}var tJ=Ns.ReactCurrentOwner,yi=!1;function oi(e,t,n,r){t.child=e===null?W3(t,null,n,r):cd(t,e.child,n,r)}function u$(e,t,n,r,i){n=n.render;var o=t.ref;return Gf(t,i),r=vT(e,t,n,r,o,i),n=yT(),e!==null&&!yi?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ps(e,t,i)):(Mn&&n&&oT(t),t.flags|=1,oi(e,t,r,i),t.child)}function c$(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!RT(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,p4(e,t,o,r,i)):(e=t0(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:mg,n(a,r)&&e.ref===t.ref)return Ps(e,t,i)}return t.flags|=1,e=Bl(o,r),e.ref=t.ref,e.return=t,t.child=e}function p4(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(mg(o,r)&&e.ref===t.ref)if(yi=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(yi=!0);else return t.lanes=e.lanes,Ps(e,t,i)}return GC(e,t,n,r,i)}function h4(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},kn(Nf,zi),zi|=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,kn(Nf,zi),zi|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,kn(Nf,zi),zi|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,kn(Nf,zi),zi|=r;return oi(e,t,i,n),t.child}function g4(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function GC(e,t,n,r,i){var o=xi(n)?ec:Xr.current;return o=ld(t,o),Gf(t,i),n=vT(e,t,n,r,o,i),r=yT(),e!==null&&!yi?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ps(e,t,i)):(Mn&&r&&oT(t),t.flags|=1,oi(e,t,n,i),t.child)}function f$(e,t,n,r,i){if(xi(n)){var o=!0;M0(t)}else o=!1;if(Gf(t,i),t.stateNode===null)Jy(e,t),U3(t,n,r),HC(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;typeof c=="object"&&c!==null?c=Ro(c):(c=xi(n)?ec:Xr.current,c=ld(t,c));var f=n.getDerivedStateFromProps,h=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function";h||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==c)&&n$(t,a,r,c),xl=!1;var p=t.memoizedState;a.state=p,U0(t,r,a,i),l=t.memoizedState,s!==r||p!==l||bi.current||xl?(typeof f=="function"&&(VC(t,n,f,r),l=t.memoizedState),(s=xl||t$(t,n,s,r,p,l,c))?(h||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=c,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,z3(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:ea(t.type,s),a.props=c,h=t.pendingProps,p=a.context,l=n.contextType,typeof l=="object"&&l!==null?l=Ro(l):(l=xi(n)?ec:Xr.current,l=ld(t,l));var y=n.getDerivedStateFromProps;(f=typeof y=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==h||p!==l)&&n$(t,a,r,l),xl=!1,p=t.memoizedState,a.state=p,U0(t,r,a,i);var m=t.memoizedState;s!==h||p!==m||bi.current||xl?(typeof y=="function"&&(VC(t,n,y,r),m=t.memoizedState),(c=xl||t$(t,n,c,r,p,m,l)||!1)?(f||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,m,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,m,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=m),a.props=r,a.state=m,a.context=l,r=c):(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 YC(e,t,n,r,o,i)}function YC(e,t,n,r,i,o){g4(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&XD(t,n,!1),Ps(e,t,o);r=t.stateNode,tJ.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=cd(t,e.child,null,o),t.child=cd(t,null,s,o)):oi(e,t,s,o),t.memoizedState=r.state,i&&XD(t,n,!0),t.child}function m4(e){var t=e.stateNode;t.pendingContext?YD(e,t.pendingContext,t.pendingContext!==t.context):t.context&&YD(e,t.context,!1),pT(e,t.containerInfo)}function d$(e,t,n,r,i){return ud(),sT(i),t.flags|=256,oi(e,t,n,r),t.child}var XC={dehydrated:null,treeContext:null,retryLane:0};function ZC(e){return{baseLanes:e,cachePool:null,transitions:null}}function v4(e,t,n){var r=t.pendingProps,i=Kn.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),kn(Kn,i&1),e===null)return KC(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=V1(a,r,0,null),e=Gu(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=ZC(n),t.memoizedState=XC,e):wT(t,a));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return nJ(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=Bl(i,l),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=Bl(s,o):(o=Gu(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?ZC(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=XC,r}return o=e.child,e=o.sibling,r=Bl(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 wT(e,t){return t=V1({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Xv(e,t,n,r){return r!==null&&sT(r),cd(t,e.child,null,n),e=wT(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function nJ(e,t,n,r,i,o,a){if(n)return t.flags&256?(t.flags&=-257,r=ES(Error(Ye(422))),Xv(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=V1({mode:"visible",children:r.children},i,0,null),o=Gu(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&cd(t,e.child,null,a),t.child.memoizedState=ZC(a),t.memoizedState=XC,o);if(!(t.mode&1))return Xv(e,t,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,o=Error(Ye(419)),r=ES(o,r,void 0),Xv(e,t,a,r)}if(s=(a&e.childLanes)!==0,yi||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,Is(e,i),sa(r,e,i,-1))}return TT(),r=ES(Error(Ye(421))),Xv(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=gJ.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Wi=Ll(i.nextSibling),Vi=t,Mn=!0,ia=null,e!==null&&(vo[yo++]=Es,vo[yo++]=ks,vo[yo++]=tc,Es=e.id,ks=e.overflow,tc=t),t=wT(t,r.children),t.flags|=4096,t)}function p$(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),WC(e.return,t,n)}function kS(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 y4(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(oi(e,t,r.children,n),r=Kn.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&&p$(e,n,t);else if(e.tag===19)p$(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(kn(Kn,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&&K0(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),kS(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&&K0(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}kS(t,!0,n,null,o);break;case"together":kS(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Jy(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ps(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),rc|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Ye(153));if(t.child!==null){for(e=t.child,n=Bl(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Bl(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function rJ(e,t,n){switch(t.tag){case 3:m4(t),ud();break;case 5:V3(t);break;case 1:xi(t.type)&&M0(t);break;case 4:pT(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;kn(z0,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(kn(Kn,Kn.current&1),t.flags|=128,null):n&t.child.childLanes?v4(e,t,n):(kn(Kn,Kn.current&1),e=Ps(e,t,n),e!==null?e.sibling:null);kn(Kn,Kn.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return y4(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),kn(Kn,Kn.current),r)break;return null;case 22:case 23:return t.lanes=0,h4(e,t,n)}return Ps(e,t,n)}var b4,JC,x4,w4;b4=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}};JC=function(){};x4=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Uu(Na.current);var o=null;switch(n){case"input":i=xC(e,i),r=xC(e,r),o=[];break;case"select":i=Hn({},i,{value:void 0}),r=Hn({},r,{value:void 0}),o=[];break;case"textarea":i=_C(e,i),r=_C(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=L0)}EC(n,r);var a;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var s=i[c];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(ug.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var l=r[c];if(s=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(l!=null||s!=null))if(c==="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(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(o=o||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(ug.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Rn("scroll",e),o||s===l||(o=[])):(o=o||[]).push(c,l))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}};w4=function(e,t,n,r){n!==r&&(t.flags|=4)};function Hp(e,t){if(!Mn)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 Vr(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 iJ(e,t,n){var r=t.pendingProps;switch(aT(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vr(t),null;case 1:return xi(t.type)&&F0(),Vr(t),null;case 3:return r=t.stateNode,fd(),Dn(bi),Dn(Xr),gT(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Gv(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ia!==null&&(aE(ia),ia=null))),JC(e,t),Vr(t),null;case 5:hT(t);var i=Uu(wg.current);if(n=t.type,e!==null&&t.stateNode!=null)x4(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Ye(166));return Vr(t),null}if(e=Uu(Na.current),Gv(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Ia]=t,r[bg]=o,e=(t.mode&1)!==0,n){case"dialog":Rn("cancel",r),Rn("close",r);break;case"iframe":case"object":case"embed":Rn("load",r);break;case"video":case"audio":for(i=0;i<Rh.length;i++)Rn(Rh[i],r);break;case"source":Rn("error",r);break;case"img":case"image":case"link":Rn("error",r),Rn("load",r);break;case"details":Rn("toggle",r);break;case"input":SD(r,o),Rn("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Rn("invalid",r);break;case"textarea":CD(r,o),Rn("invalid",r)}EC(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&&qv(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&qv(r.textContent,s,e),i=["children",""+s]):ug.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&Rn("scroll",r)}switch(n){case"input":Bv(r),_D(r,o,!0);break;case"textarea":Bv(r),ED(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=L0)}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=GB(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[Ia]=t,e[bg]=r,b4(e,t,!1,!1),t.stateNode=e;e:{switch(a=kC(n,r),n){case"dialog":Rn("cancel",e),Rn("close",e),i=r;break;case"iframe":case"object":case"embed":Rn("load",e),i=r;break;case"video":case"audio":for(i=0;i<Rh.length;i++)Rn(Rh[i],e);i=r;break;case"source":Rn("error",e),i=r;break;case"img":case"image":case"link":Rn("error",e),Rn("load",e),i=r;break;case"details":Rn("toggle",e),i=r;break;case"input":SD(e,r),i=xC(e,r),Rn("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Hn({},r,{value:void 0}),Rn("invalid",e);break;case"textarea":CD(e,r),i=_C(e,r),Rn("invalid",e);break;default:i=r}EC(n,i),s=i;for(o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="style"?ZB(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&YB(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&cg(e,l):typeof l=="number"&&cg(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(ug.hasOwnProperty(o)?l!=null&&o==="onScroll"&&Rn("scroll",e):l!=null&&Vk(e,o,l,a))}switch(n){case"input":Bv(e),_D(e,r,!1);break;case"textarea":Bv(e),ED(e);break;case"option":r.value!=null&&e.setAttribute("value",""+zl(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Wf(e,!!r.multiple,o,!1):r.defaultValue!=null&&Wf(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=L0)}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 Vr(t),null;case 6:if(e&&t.stateNode!=null)w4(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Ye(166));if(n=Uu(wg.current),Uu(Na.current),Gv(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ia]=t,(o=r.nodeValue!==n)&&(e=Vi,e!==null))switch(e.tag){case 3:qv(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&qv(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ia]=t,t.stateNode=r}return Vr(t),null;case 13:if(Dn(Kn),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Mn&&Wi!==null&&t.mode&1&&!(t.flags&128))N3(),ud(),t.flags|=98560,o=!1;else if(o=Gv(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(Ye(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(Ye(317));o[Ia]=t}else ud(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Vr(t),o=!1}else ia!==null&&(aE(ia),ia=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||Kn.current&1?yr===0&&(yr=3):TT())),t.updateQueue!==null&&(t.flags|=4),Vr(t),null);case 4:return fd(),JC(e,t),e===null&&vg(t.stateNode.containerInfo),Vr(t),null;case 10:return cT(t.type._context),Vr(t),null;case 17:return xi(t.type)&&F0(),Vr(t),null;case 19:if(Dn(Kn),o=t.memoizedState,o===null)return Vr(t),null;if(r=(t.flags&128)!==0,a=o.rendering,a===null)if(r)Hp(o,!1);else{if(yr!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=K0(e),a!==null){for(t.flags|=128,Hp(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 kn(Kn,Kn.current&1|2),t.child}e=e.sibling}o.tail!==null&&ar()>pd&&(t.flags|=128,r=!0,Hp(o,!1),t.lanes=4194304)}else{if(!r)if(e=K0(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Hp(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Mn)return Vr(t),null}else 2*ar()-o.renderingStartTime>pd&&n!==1073741824&&(t.flags|=128,r=!0,Hp(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=ar(),t.sibling=null,n=Kn.current,kn(Kn,r?n&1|2:n&1),t):(Vr(t),null);case 22:case 23:return kT(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?zi&1073741824&&(Vr(t),t.subtreeFlags&6&&(t.flags|=8192)):Vr(t),null;case 24:return null;case 25:return null}throw Error(Ye(156,t.tag))}function oJ(e,t){switch(aT(t),t.tag){case 1:return xi(t.type)&&F0(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fd(),Dn(bi),Dn(Xr),gT(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return hT(t),null;case 13:if(Dn(Kn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Ye(340));ud()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Dn(Kn),null;case 4:return fd(),null;case 10:return cT(t.type._context),null;case 22:case 23:return kT(),null;case 24:return null;default:return null}}var Zv=!1,Yr=!1,aJ=typeof WeakSet=="function"?WeakSet:Set,ct=null;function Mf(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Jn(e,t,r)}else n.current=null}function QC(e,t,n){try{n()}catch(r){Jn(e,t,r)}}var h$=!1;function sJ(e,t){if(FC=$0,e=E3(),iT(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,c=0,f=0,h=e,p=null;t:for(;;){for(var y;h!==n||i!==0&&h.nodeType!==3||(s=a+i),h!==o||r!==0&&h.nodeType!==3||(l=a+r),h.nodeType===3&&(a+=h.nodeValue.length),(y=h.firstChild)!==null;)p=h,h=y;for(;;){if(h===e)break t;if(p===n&&++c===i&&(s=a),p===o&&++f===r&&(l=a),(y=h.nextSibling)!==null)break;h=p,p=h.parentNode}h=y}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(MC={focusedElem:e,selectionRange:n},$0=!1,ct=t;ct!==null;)if(t=ct,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ct=e;else for(;ct!==null;){t=ct;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var v=m.memoizedProps,S=m.memoizedState,x=t.stateNode,w=x.getSnapshotBeforeUpdate(t.elementType===t.type?v:ea(t.type,v),S);x.__reactInternalSnapshotBeforeUpdate=w}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(Ye(163))}}catch(E){Jn(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,ct=e;break}ct=t.return}return m=h$,h$=!1,m}function Wh(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&&QC(t,n,o)}i=i.next}while(i!==r)}}function K1(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 eE(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 S4(e){var t=e.alternate;t!==null&&(e.alternate=null,S4(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ia],delete t[bg],delete t[zC],delete t[KZ],delete t[WZ])),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 _4(e){return e.tag===5||e.tag===3||e.tag===4}function g$(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_4(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 tE(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=L0));else if(r!==4&&(e=e.child,e!==null))for(tE(e,t,n),e=e.sibling;e!==null;)tE(e,t,n),e=e.sibling}function nE(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(nE(e,t,n),e=e.sibling;e!==null;)nE(e,t,n),e=e.sibling}var Pr=null,na=!1;function ll(e,t,n){for(n=n.child;n!==null;)C4(e,t,n),n=n.sibling}function C4(e,t,n){if(Ma&&typeof Ma.onCommitFiberUnmount=="function")try{Ma.onCommitFiberUnmount(L1,n)}catch{}switch(n.tag){case 5:Yr||Mf(n,t);case 6:var r=Pr,i=na;Pr=null,ll(e,t,n),Pr=r,na=i,Pr!==null&&(na?(e=Pr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Pr.removeChild(n.stateNode));break;case 18:Pr!==null&&(na?(e=Pr,n=n.stateNode,e.nodeType===8?bS(e.parentNode,n):e.nodeType===1&&bS(e,n),hg(e)):bS(Pr,n.stateNode));break;case 4:r=Pr,i=na,Pr=n.stateNode.containerInfo,na=!0,ll(e,t,n),Pr=r,na=i;break;case 0:case 11:case 14:case 15:if(!Yr&&(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)&&QC(n,t,a),i=i.next}while(i!==r)}ll(e,t,n);break;case 1:if(!Yr&&(Mf(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Jn(n,t,s)}ll(e,t,n);break;case 21:ll(e,t,n);break;case 22:n.mode&1?(Yr=(r=Yr)||n.memoizedState!==null,ll(e,t,n),Yr=r):ll(e,t,n);break;default:ll(e,t,n)}}function m$(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new aJ),t.forEach(function(r){var i=mJ.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Yo(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:Pr=s.stateNode,na=!1;break e;case 3:Pr=s.stateNode.containerInfo,na=!0;break e;case 4:Pr=s.stateNode.containerInfo,na=!0;break e}s=s.return}if(Pr===null)throw Error(Ye(160));C4(o,a,i),Pr=null,na=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(c){Jn(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)E4(t,e),t=t.sibling}function E4(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Yo(t,e),xa(e),r&4){try{Wh(3,e,e.return),K1(3,e)}catch(v){Jn(e,e.return,v)}try{Wh(5,e,e.return)}catch(v){Jn(e,e.return,v)}}break;case 1:Yo(t,e),xa(e),r&512&&n!==null&&Mf(n,n.return);break;case 5:if(Yo(t,e),xa(e),r&512&&n!==null&&Mf(n,n.return),e.flags&32){var i=e.stateNode;try{cg(i,"")}catch(v){Jn(e,e.return,v)}}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&&HB(i,o),kC(s,a);var c=kC(s,o);for(a=0;a<l.length;a+=2){var f=l[a],h=l[a+1];f==="style"?ZB(i,h):f==="dangerouslySetInnerHTML"?YB(i,h):f==="children"?cg(i,h):Vk(i,f,h,c)}switch(s){case"input":wC(i,o);break;case"textarea":qB(i,o);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var y=o.value;y!=null?Wf(i,!!o.multiple,y,!1):p!==!!o.multiple&&(o.defaultValue!=null?Wf(i,!!o.multiple,o.defaultValue,!0):Wf(i,!!o.multiple,o.multiple?[]:"",!1))}i[bg]=o}catch(v){Jn(e,e.return,v)}}break;case 6:if(Yo(t,e),xa(e),r&4){if(e.stateNode===null)throw Error(Ye(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(v){Jn(e,e.return,v)}}break;case 3:if(Yo(t,e),xa(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{hg(t.containerInfo)}catch(v){Jn(e,e.return,v)}break;case 4:Yo(t,e),xa(e);break;case 13:Yo(t,e),xa(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(CT=ar())),r&4&&m$(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(Yr=(c=Yr)||f,Yo(t,e),Yr=c):Yo(t,e),xa(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!f&&e.mode&1)for(ct=e,f=e.child;f!==null;){for(h=ct=f;ct!==null;){switch(p=ct,y=p.child,p.tag){case 0:case 11:case 14:case 15:Wh(4,p,p.return);break;case 1:Mf(p,p.return);var m=p.stateNode;if(typeof m.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(v){Jn(r,n,v)}}break;case 5:Mf(p,p.return);break;case 22:if(p.memoizedState!==null){y$(h);continue}}y!==null?(y.return=p,ct=y):y$(h)}f=f.sibling}e:for(f=null,h=e;;){if(h.tag===5){if(f===null){f=h;try{i=h.stateNode,c?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(s=h.stateNode,l=h.memoizedProps.style,a=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=XB("display",a))}catch(v){Jn(e,e.return,v)}}}else if(h.tag===6){if(f===null)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(v){Jn(e,e.return,v)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;f===h&&(f=null),h=h.return}f===h&&(f=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:Yo(t,e),xa(e),r&4&&m$(e);break;case 21:break;default:Yo(t,e),xa(e)}}function xa(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(_4(n)){var r=n;break e}n=n.return}throw Error(Ye(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(cg(i,""),r.flags&=-33);var o=g$(e);nE(e,o,i);break;case 3:case 4:var a=r.stateNode.containerInfo,s=g$(e);tE(e,s,a);break;default:throw Error(Ye(161))}}catch(l){Jn(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function lJ(e,t,n){ct=e,k4(e)}function k4(e,t,n){for(var r=(e.mode&1)!==0;ct!==null;){var i=ct,o=i.child;if(i.tag===22&&r){var a=i.memoizedState!==null||Zv;if(!a){var s=i.alternate,l=s!==null&&s.memoizedState!==null||Yr;s=Zv;var c=Yr;if(Zv=a,(Yr=l)&&!c)for(ct=i;ct!==null;)a=ct,l=a.child,a.tag===22&&a.memoizedState!==null?b$(i):l!==null?(l.return=a,ct=l):b$(i);for(;o!==null;)ct=o,k4(o),o=o.sibling;ct=i,Zv=s,Yr=c}v$(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,ct=o):v$(e)}}function v$(e){for(;ct!==null;){var t=ct;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Yr||K1(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Yr)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:ea(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&e$(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}e$(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 c=t.alternate;if(c!==null){var f=c.memoizedState;if(f!==null){var h=f.dehydrated;h!==null&&hg(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Ye(163))}Yr||t.flags&512&&eE(t)}catch(p){Jn(t,t.return,p)}}if(t===e){ct=null;break}if(n=t.sibling,n!==null){n.return=t.return,ct=n;break}ct=t.return}}function y$(e){for(;ct!==null;){var t=ct;if(t===e){ct=null;break}var n=t.sibling;if(n!==null){n.return=t.return,ct=n;break}ct=t.return}}function b$(e){for(;ct!==null;){var t=ct;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{K1(4,t)}catch(l){Jn(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){Jn(t,i,l)}}var o=t.return;try{eE(t)}catch(l){Jn(t,o,l)}break;case 5:var a=t.return;try{eE(t)}catch(l){Jn(t,a,l)}}}catch(l){Jn(t,t.return,l)}if(t===e){ct=null;break}var s=t.sibling;if(s!==null){s.return=t.return,ct=s;break}ct=t.return}}var uJ=Math.ceil,H0=Ns.ReactCurrentDispatcher,ST=Ns.ReactCurrentOwner,Co=Ns.ReactCurrentBatchConfig,Qt=0,kr=null,pr=null,Nr=0,zi=0,Nf=Gl(0),yr=0,Eg=null,rc=0,W1=0,_T=0,Vh=null,vi=null,CT=0,pd=1/0,xs=null,q0=!1,rE=null,Ml=null,Jv=!1,Tl=null,G0=0,Hh=0,iE=null,Qy=-1,e0=0;function si(){return Qt&6?ar():Qy!==-1?Qy:Qy=ar()}function Nl(e){return e.mode&1?Qt&2&&Nr!==0?Nr&-Nr:HZ.transition!==null?(e0===0&&(e0=u3()),e0):(e=hn,e!==0||(e=window.event,e=e===void 0?16:m3(e.type)),e):1}function sa(e,t,n,r){if(50<Hh)throw Hh=0,iE=null,Error(Ye(185));Vg(e,n,r),(!(Qt&2)||e!==kr)&&(e===kr&&(!(Qt&2)&&(W1|=n),yr===4&&Cl(e,Nr)),wi(e,r),n===1&&Qt===0&&!(t.mode&1)&&(pd=ar()+500,z1&&Yl()))}function wi(e,t){var n=e.callbackNode;HX(e,t);var r=D0(e,e===kr?Nr:0);if(r===0)n!==null&&RD(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&RD(n),t===1)e.tag===0?VZ(x$.bind(null,e)):L3(x$.bind(null,e)),jZ(function(){!(Qt&6)&&Yl()}),n=null;else{switch(c3(r)){case 1:n=Xk;break;case 4:n=s3;break;case 16:n=O0;break;case 536870912:n=l3;break;default:n=O0}n=P4(n,T4.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function T4(e,t){if(Qy=-1,e0=0,Qt&6)throw Error(Ye(327));var n=e.callbackNode;if(Yf()&&e.callbackNode!==n)return null;var r=D0(e,e===kr?Nr:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Y0(e,r);else{t=r;var i=Qt;Qt|=2;var o=A4();(kr!==e||Nr!==t)&&(xs=null,pd=ar()+500,qu(e,t));do try{dJ();break}catch(s){R4(e,s)}while(1);uT(),H0.current=o,Qt=i,pr!==null?t=0:(kr=null,Nr=0,t=yr)}if(t!==0){if(t===2&&(i=DC(e),i!==0&&(r=i,t=oE(e,i))),t===1)throw n=Eg,qu(e,0),Cl(e,r),wi(e,ar()),n;if(t===6)Cl(e,r);else{if(i=e.current.alternate,!(r&30)&&!cJ(i)&&(t=Y0(e,r),t===2&&(o=DC(e),o!==0&&(r=o,t=oE(e,o))),t===1))throw n=Eg,qu(e,0),Cl(e,r),wi(e,ar()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(Ye(345));case 2:Au(e,vi,xs);break;case 3:if(Cl(e,r),(r&130023424)===r&&(t=CT+500-ar(),10<t)){if(D0(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){si(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=BC(Au.bind(null,e,vi,xs),t);break}Au(e,vi,xs);break;case 4:if(Cl(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-aa(r);o=1<<a,a=t[a],a>i&&(i=a),r&=~o}if(r=i,r=ar()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*uJ(r/1960))-r,10<r){e.timeoutHandle=BC(Au.bind(null,e,vi,xs),r);break}Au(e,vi,xs);break;case 5:Au(e,vi,xs);break;default:throw Error(Ye(329))}}}return wi(e,ar()),e.callbackNode===n?T4.bind(null,e):null}function oE(e,t){var n=Vh;return e.current.memoizedState.isDehydrated&&(qu(e,t).flags|=256),e=Y0(e,t),e!==2&&(t=vi,vi=n,t!==null&&aE(t)),e}function aE(e){vi===null?vi=e:vi.push.apply(vi,e)}function cJ(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(!ua(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 Cl(e,t){for(t&=~_T,t&=~W1,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-aa(t),r=1<<n;e[n]=-1,t&=~r}}function x$(e){if(Qt&6)throw Error(Ye(327));Yf();var t=D0(e,0);if(!(t&1))return wi(e,ar()),null;var n=Y0(e,t);if(e.tag!==0&&n===2){var r=DC(e);r!==0&&(t=r,n=oE(e,r))}if(n===1)throw n=Eg,qu(e,0),Cl(e,t),wi(e,ar()),n;if(n===6)throw Error(Ye(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Au(e,vi,xs),wi(e,ar()),null}function ET(e,t){var n=Qt;Qt|=1;try{return e(t)}finally{Qt=n,Qt===0&&(pd=ar()+500,z1&&Yl())}}function ic(e){Tl!==null&&Tl.tag===0&&!(Qt&6)&&Yf();var t=Qt;Qt|=1;var n=Co.transition,r=hn;try{if(Co.transition=null,hn=1,e)return e()}finally{hn=r,Co.transition=n,Qt=t,!(Qt&6)&&Yl()}}function kT(){zi=Nf.current,Dn(Nf)}function qu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,zZ(n)),pr!==null)for(n=pr.return;n!==null;){var r=n;switch(aT(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&F0();break;case 3:fd(),Dn(bi),Dn(Xr),gT();break;case 5:hT(r);break;case 4:fd();break;case 13:Dn(Kn);break;case 19:Dn(Kn);break;case 10:cT(r.type._context);break;case 22:case 23:kT()}n=n.return}if(kr=e,pr=e=Bl(e.current,null),Nr=zi=t,yr=0,Eg=null,_T=W1=rc=0,vi=Vh=null,ju!==null){for(t=0;t<ju.length;t++)if(n=ju[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}ju=null}return e}function R4(e,t){do{var n=pr;try{if(uT(),Xy.current=V0,W0){for(var r=Wn.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}W0=!1}if(nc=0,Cr=vr=Wn=null,Kh=!1,Sg=0,ST.current=null,n===null||n.return===null){yr=1,Eg=t,pr=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=Nr,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,f=s,h=f.tag;if(!(f.mode&1)&&(h===0||h===11||h===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 y=s$(a);if(y!==null){y.flags&=-257,l$(y,a,s,o,t),y.mode&1&&a$(o,c,t),t=y,l=c;var m=t.updateQueue;if(m===null){var v=new Set;v.add(l),t.updateQueue=v}else m.add(l);break e}else{if(!(t&1)){a$(o,c,t),TT();break e}l=Error(Ye(426))}}else if(Mn&&s.mode&1){var S=s$(a);if(S!==null){!(S.flags&65536)&&(S.flags|=256),l$(S,a,s,o,t),sT(dd(l,s));break e}}o=l=dd(l,s),yr!==4&&(yr=2),Vh===null?Vh=[o]:Vh.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var x=f4(o,l,t);QD(o,x);break e;case 1:s=l;var w=o.type,C=o.stateNode;if(!(o.flags&128)&&(typeof w.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(Ml===null||!Ml.has(C)))){o.flags|=65536,t&=-t,o.lanes|=t;var E=d4(o,s,t);QD(o,E);break e}}o=o.return}while(o!==null)}D4(n)}catch(O){t=O,pr===n&&n!==null&&(pr=n=n.return);continue}break}while(1)}function A4(){var e=H0.current;return H0.current=V0,e===null?V0:e}function TT(){(yr===0||yr===3||yr===2)&&(yr=4),kr===null||!(rc&268435455)&&!(W1&268435455)||Cl(kr,Nr)}function Y0(e,t){var n=Qt;Qt|=2;var r=A4();(kr!==e||Nr!==t)&&(xs=null,qu(e,t));do try{fJ();break}catch(i){R4(e,i)}while(1);if(uT(),Qt=n,H0.current=r,pr!==null)throw Error(Ye(261));return kr=null,Nr=0,yr}function fJ(){for(;pr!==null;)O4(pr)}function dJ(){for(;pr!==null&&!MX();)O4(pr)}function O4(e){var t=I4(e.alternate,e,zi);e.memoizedProps=e.pendingProps,t===null?D4(e):pr=t,ST.current=null}function D4(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=oJ(n,t),n!==null){n.flags&=32767,pr=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{yr=6,pr=null;return}}else if(n=iJ(n,t,zi),n!==null){pr=n;return}if(t=t.sibling,t!==null){pr=t;return}pr=t=e}while(t!==null);yr===0&&(yr=5)}function Au(e,t,n){var r=hn,i=Co.transition;try{Co.transition=null,hn=1,pJ(e,t,n,r)}finally{Co.transition=i,hn=r}return null}function pJ(e,t,n,r){do Yf();while(Tl!==null);if(Qt&6)throw Error(Ye(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(Ye(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(qX(e,o),e===kr&&(pr=kr=null,Nr=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Jv||(Jv=!0,P4(O0,function(){return Yf(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Co.transition,Co.transition=null;var a=hn;hn=1;var s=Qt;Qt|=4,ST.current=null,sJ(e,n),E4(n,e),IZ(MC),$0=!!FC,MC=FC=null,e.current=n,lJ(n),NX(),Qt=s,hn=a,Co.transition=o}else e.current=n;if(Jv&&(Jv=!1,Tl=e,G0=i),o=e.pendingLanes,o===0&&(Ml=null),jX(n.stateNode),wi(e,ar()),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(q0)throw q0=!1,e=rE,rE=null,e;return G0&1&&e.tag!==0&&Yf(),o=e.pendingLanes,o&1?e===iE?Hh++:(Hh=0,iE=e):Hh=0,Yl(),null}function Yf(){if(Tl!==null){var e=c3(G0),t=Co.transition,n=hn;try{if(Co.transition=null,hn=16>e?16:e,Tl===null)var r=!1;else{if(e=Tl,Tl=null,G0=0,Qt&6)throw Error(Ye(331));var i=Qt;for(Qt|=4,ct=e.current;ct!==null;){var o=ct,a=o.child;if(ct.flags&16){var s=o.deletions;if(s!==null){for(var l=0;l<s.length;l++){var c=s[l];for(ct=c;ct!==null;){var f=ct;switch(f.tag){case 0:case 11:case 15:Wh(8,f,o)}var h=f.child;if(h!==null)h.return=f,ct=h;else for(;ct!==null;){f=ct;var p=f.sibling,y=f.return;if(S4(f),f===c){ct=null;break}if(p!==null){p.return=y,ct=p;break}ct=y}}}var m=o.alternate;if(m!==null){var v=m.child;if(v!==null){m.child=null;do{var S=v.sibling;v.sibling=null,v=S}while(v!==null)}}ct=o}}if(o.subtreeFlags&2064&&a!==null)a.return=o,ct=a;else e:for(;ct!==null;){if(o=ct,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Wh(9,o,o.return)}var x=o.sibling;if(x!==null){x.return=o.return,ct=x;break e}ct=o.return}}var w=e.current;for(ct=w;ct!==null;){a=ct;var C=a.child;if(a.subtreeFlags&2064&&C!==null)C.return=a,ct=C;else e:for(a=w;ct!==null;){if(s=ct,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:K1(9,s)}}catch(O){Jn(s,s.return,O)}if(s===a){ct=null;break e}var E=s.sibling;if(E!==null){E.return=s.return,ct=E;break e}ct=s.return}}if(Qt=i,Yl(),Ma&&typeof Ma.onPostCommitFiberRoot=="function")try{Ma.onPostCommitFiberRoot(L1,e)}catch{}r=!0}return r}finally{hn=n,Co.transition=t}}return!1}function w$(e,t,n){t=dd(n,t),t=f4(e,t,1),e=Fl(e,t,1),t=si(),e!==null&&(Vg(e,1,t),wi(e,t))}function Jn(e,t,n){if(e.tag===3)w$(e,e,n);else for(;t!==null;){if(t.tag===3){w$(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ml===null||!Ml.has(r))){e=dd(n,e),e=d4(t,e,1),t=Fl(t,e,1),e=si(),t!==null&&(Vg(t,1,e),wi(t,e));break}}t=t.return}}function hJ(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=si(),e.pingedLanes|=e.suspendedLanes&n,kr===e&&(Nr&n)===n&&(yr===4||yr===3&&(Nr&130023424)===Nr&&500>ar()-CT?qu(e,0):_T|=n),wi(e,t)}function $4(e,t){t===0&&(e.mode&1?(t=Uv,Uv<<=1,!(Uv&130023424)&&(Uv=4194304)):t=1);var n=si();e=Is(e,t),e!==null&&(Vg(e,t,n),wi(e,n))}function gJ(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),$4(e,n)}function mJ(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(Ye(314))}r!==null&&r.delete(t),$4(e,n)}var I4;I4=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||bi.current)yi=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return yi=!1,rJ(e,t,n);yi=!!(e.flags&131072)}else yi=!1,Mn&&t.flags&1048576&&F3(t,B0,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Jy(e,t),e=t.pendingProps;var i=ld(t,Xr.current);Gf(t,n),i=vT(null,t,r,e,i,n);var o=yT();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,xi(r)?(o=!0,M0(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,dT(t),i.updater=j1,t.stateNode=i,i._reactInternals=t,HC(t,r,e,n),t=YC(null,t,r,!0,o,n)):(t.tag=0,Mn&&o&&oT(t),oi(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Jy(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=yJ(r),e=ea(r,e),i){case 0:t=GC(null,t,r,e,n);break e;case 1:t=f$(null,t,r,e,n);break e;case 11:t=u$(null,t,r,e,n);break e;case 14:t=c$(null,t,r,ea(r.type,e),n);break e}throw Error(Ye(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ea(r,i),GC(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ea(r,i),f$(e,t,r,i,n);case 3:e:{if(m4(t),e===null)throw Error(Ye(387));r=t.pendingProps,o=t.memoizedState,i=o.element,z3(e,t),U0(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=dd(Error(Ye(423)),t),t=d$(e,t,r,n,i);break e}else if(r!==i){i=dd(Error(Ye(424)),t),t=d$(e,t,r,n,i);break e}else for(Wi=Ll(t.stateNode.containerInfo.firstChild),Vi=t,Mn=!0,ia=null,n=W3(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ud(),r===i){t=Ps(e,t,n);break e}oi(e,t,r,n)}t=t.child}return t;case 5:return V3(t),e===null&&KC(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,NC(r,i)?a=null:o!==null&&NC(r,o)&&(t.flags|=32),g4(e,t),oi(e,t,a,n),t.child;case 6:return e===null&&KC(t),null;case 13:return v4(e,t,n);case 4:return pT(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=cd(t,null,r,n):oi(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ea(r,i),u$(e,t,r,i,n);case 7:return oi(e,t,t.pendingProps,n),t.child;case 8:return oi(e,t,t.pendingProps.children,n),t.child;case 12:return oi(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,kn(z0,r._currentValue),r._currentValue=a,o!==null)if(ua(o.value,a)){if(o.children===i.children&&!bi.current){t=Ps(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=Ts(-1,n&-n),l.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?l.next=l:(l.next=f.next,f.next=l),c.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),WC(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(Ye(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),WC(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}oi(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Gf(t,n),i=Ro(i),r=r(i),t.flags|=1,oi(e,t,r,n),t.child;case 14:return r=t.type,i=ea(r,t.pendingProps),i=ea(r.type,i),c$(e,t,r,i,n);case 15:return p4(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ea(r,i),Jy(e,t),t.tag=1,xi(r)?(e=!0,M0(t)):e=!1,Gf(t,n),U3(t,r,i),HC(t,r,i,n),YC(null,t,r,!0,e,n);case 19:return y4(e,t,n);case 22:return h4(e,t,n)}throw Error(Ye(156,t.tag))};function P4(e,t){return a3(e,t)}function vJ(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 So(e,t,n,r){return new vJ(e,t,n,r)}function RT(e){return e=e.prototype,!(!e||!e.isReactComponent)}function yJ(e){if(typeof e=="function")return RT(e)?1:0;if(e!=null){if(e=e.$$typeof,e===qk)return 11;if(e===Gk)return 14}return 2}function Bl(e,t){var n=e.alternate;return n===null?(n=So(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 t0(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")RT(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Rf:return Gu(n.children,i,o,t);case Hk:a=8,i|=8;break;case mC:return e=So(12,n,t,i|2),e.elementType=mC,e.lanes=o,e;case vC:return e=So(13,n,t,i),e.elementType=vC,e.lanes=o,e;case yC:return e=So(19,n,t,i),e.elementType=yC,e.lanes=o,e;case KB:return V1(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case jB:a=10;break e;case UB:a=9;break e;case qk:a=11;break e;case Gk:a=14;break e;case bl:a=16,r=null;break e}throw Error(Ye(130,e==null?e:typeof e,""))}return t=So(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Gu(e,t,n,r){return e=So(7,e,r,t),e.lanes=n,e}function V1(e,t,n,r){return e=So(22,e,r,t),e.elementType=KB,e.lanes=n,e.stateNode={isHidden:!1},e}function TS(e,t,n){return e=So(6,e,null,t),e.lanes=n,e}function RS(e,t,n){return t=So(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function bJ(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=lS(0),this.expirationTimes=lS(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=lS(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function AT(e,t,n,r,i,o,a,s,l){return e=new bJ(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=So(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},dT(o),e}function xJ(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Tf,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function L4(e){if(!e)return jl;e=e._reactInternals;e:{if(dc(e)!==e||e.tag!==1)throw Error(Ye(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(xi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Ye(171))}if(e.tag===1){var n=e.type;if(xi(n))return P3(e,n,t)}return t}function F4(e,t,n,r,i,o,a,s,l){return e=AT(n,r,!0,e,i,o,a,s,l),e.context=L4(null),n=e.current,r=si(),i=Nl(n),o=Ts(r,i),o.callback=t??null,Fl(n,o,i),e.current.lanes=i,Vg(e,i,r),wi(e,r),e}function H1(e,t,n,r){var i=t.current,o=si(),a=Nl(i);return n=L4(n),t.context===null?t.context=n:t.pendingContext=n,t=Ts(o,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Fl(i,t,a),e!==null&&(sa(e,i,a,o),Yy(e,i,a)),a}function X0(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 S$(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function OT(e,t){S$(e,t),(e=e.alternate)&&S$(e,t)}function wJ(){return null}var M4=typeof reportError=="function"?reportError:function(e){console.error(e)};function DT(e){this._internalRoot=e}q1.prototype.render=DT.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Ye(409));H1(e,t,null,null)};q1.prototype.unmount=DT.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ic(function(){H1(null,e,null,null)}),t[$s]=null}};function q1(e){this._internalRoot=e}q1.prototype.unstable_scheduleHydration=function(e){if(e){var t=p3();e={blockedOn:null,target:e,priority:t};for(var n=0;n<_l.length&&t!==0&&t<_l[n].priority;n++);_l.splice(n,0,e),n===0&&g3(e)}};function $T(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function G1(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function _$(){}function SJ(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var c=X0(a);o.call(c)}}var a=F4(t,r,e,0,null,!1,!1,"",_$);return e._reactRootContainer=a,e[$s]=a.current,vg(e.nodeType===8?e.parentNode:e),ic(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var c=X0(l);s.call(c)}}var l=AT(e,0,!1,null,null,!1,!1,"",_$);return e._reactRootContainer=l,e[$s]=l.current,vg(e.nodeType===8?e.parentNode:e),ic(function(){H1(t,l,n,r)}),l}function Y1(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=X0(a);s.call(l)}}H1(t,a,e,i)}else a=SJ(n,t,e,i,r);return X0(a)}f3=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Th(t.pendingLanes);n!==0&&(Zk(t,n|1),wi(t,ar()),!(Qt&6)&&(pd=ar()+500,Yl()))}break;case 13:ic(function(){var r=Is(e,1);if(r!==null){var i=si();sa(r,e,1,i)}}),OT(e,1)}};Jk=function(e){if(e.tag===13){var t=Is(e,134217728);if(t!==null){var n=si();sa(t,e,134217728,n)}OT(e,134217728)}};d3=function(e){if(e.tag===13){var t=Nl(e),n=Is(e,t);if(n!==null){var r=si();sa(n,e,t,r)}OT(e,t)}};p3=function(){return hn};h3=function(e,t){var n=hn;try{return hn=e,t()}finally{hn=n}};RC=function(e,t,n){switch(t){case"input":if(wC(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=B1(r);if(!i)throw Error(Ye(90));VB(r),wC(r,i)}}}break;case"textarea":qB(e,n);break;case"select":t=n.value,t!=null&&Wf(e,!!n.multiple,t,!1)}};e3=ET;t3=ic;var _J={usingClientEntryPoint:!1,Events:[qg,$f,B1,JB,QB,ET]},qp={findFiberByHostInstance:zu,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},CJ={bundleType:qp.bundleType,version:qp.version,rendererPackageName:qp.rendererPackageName,rendererConfig:qp.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ns.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=i3(e),e===null?null:e.stateNode},findFiberByHostInstance:qp.findFiberByHostInstance||wJ,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 Qv=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qv.isDisabled&&Qv.supportsFiber)try{L1=Qv.inject(CJ),Ma=Qv}catch{}}Zi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_J;Zi.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!$T(t))throw Error(Ye(200));return xJ(e,t,null,n)};Zi.createRoot=function(e,t){if(!$T(e))throw Error(Ye(299));var n=!1,r="",i=M4;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=AT(e,1,!1,null,null,n,!1,r,i),e[$s]=t.current,vg(e.nodeType===8?e.parentNode:e),new DT(t)};Zi.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(Ye(188)):(e=Object.keys(e).join(","),Error(Ye(268,e)));return e=i3(t),e=e===null?null:e.stateNode,e};Zi.flushSync=function(e){return ic(e)};Zi.hydrate=function(e,t,n){if(!G1(t))throw Error(Ye(200));return Y1(null,e,t,!0,n)};Zi.hydrateRoot=function(e,t,n){if(!$T(e))throw Error(Ye(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",a=M4;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=F4(t,null,e,1,n??null,i,!1,o,a),e[$s]=t.current,vg(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 q1(t)};Zi.render=function(e,t,n){if(!G1(t))throw Error(Ye(200));return Y1(null,e,t,!1,n)};Zi.unmountComponentAtNode=function(e){if(!G1(e))throw Error(Ye(40));return e._reactRootContainer?(ic(function(){Y1(null,null,e,!1,function(){e._reactRootContainer=null,e[$s]=null})}),!0):!1};Zi.unstable_batchedUpdates=ET;Zi.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!G1(n))throw Error(Ye(200));if(e==null||e._reactInternals===void 0)throw Error(Ye(38));return Y1(e,t,n,!1,r)};Zi.version="18.2.0-next-9e3b772b8-20220608";function N4(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(N4)}catch(e){console.error(e)}}N4(),FB.exports=Zi;var pc=FB.exports;const Ah=Ha(pc);var C$=pc;hC.createRoot=C$.createRoot,hC.hydrateRoot=C$.hydrateRoot;function EJ(e){const t=new Error(e);if(t.stack===void 0)try{throw t}catch{}return t}var kJ=EJ,Bt=kJ;function TJ(e){return!!e&&typeof e.then=="function"}var Nn=TJ;function RJ(e,t){if(e!=null)return e;throw Bt(t??"Got unexpected null or undefined")}var Bn=RJ;function $t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class X1{getValue(){throw Bt("BaseLoadable")}toPromise(){throw Bt("BaseLoadable")}valueMaybe(){throw Bt("BaseLoadable")}valueOrThrow(){throw Bt(`Loadable expected value, but in "${this.state}" state`)}promiseMaybe(){throw Bt("BaseLoadable")}promiseOrThrow(){throw Bt(`Loadable expected promise, but in "${this.state}" state`)}errorMaybe(){throw Bt("BaseLoadable")}errorOrThrow(){throw Bt(`Loadable expected error, but in "${this.state}" state`)}is(t){return t.state===this.state&&t.contents===this.contents}map(t){throw Bt("BaseLoadable")}}class AJ extends X1{constructor(t){super(),$t(this,"state","hasValue"),$t(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 Nn(n)?oc(n):hd(n)?n:Yg(n)}catch(n){return Nn(n)?oc(n.next(()=>this.map(t))):Z1(n)}}}class OJ extends X1{constructor(t){super(),$t(this,"state","hasError"),$t(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 B4 extends X1{constructor(t){super(),$t(this,"state","loading"),$t(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 oc(this.contents.then(n=>{const r=t(n);if(hd(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(Nn(n))return n.then(()=>this.map(t).contents);throw n}))}}function Yg(e){return Object.freeze(new AJ(e))}function Z1(e){return Object.freeze(new OJ(e))}function oc(e){return Object.freeze(new B4(e))}function z4(){return Object.freeze(new B4(new Promise(()=>{})))}function DJ(e){return e.every(t=>t.state==="hasValue")?Yg(e.map(t=>t.contents)):e.some(t=>t.state==="hasError")?Z1(Bn(e.find(t=>t.state==="hasError"),"Invalid loadable passed to loadableAll").contents):oc(Promise.all(e.map(t=>t.contents)))}function j4(e){const n=(Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(i=>e[i])).map(i=>hd(i)?i:Nn(i)?oc(i):Yg(i)),r=DJ(n);return Array.isArray(e)?r:r.map(i=>Object.getOwnPropertyNames(e).reduce((o,a,s)=>({...o,[a]:i[s]}),{}))}function hd(e){return e instanceof X1}const $J={of:e=>Nn(e)?oc(e):hd(e)?e:Yg(e),error:e=>Z1(e),loading:()=>z4(),all:j4,isLoadable:hd};var hc={loadableWithValue:Yg,loadableWithError:Z1,loadableWithPromise:oc,loadableLoading:z4,loadableAll:j4,isLoadable:hd,RecoilLoadable:$J},IJ=hc.loadableWithValue,PJ=hc.loadableWithError,LJ=hc.loadableWithPromise,FJ=hc.loadableLoading,MJ=hc.loadableAll,NJ=hc.isLoadable,BJ=hc.RecoilLoadable,Xg=Object.freeze({__proto__:null,loadableWithValue:IJ,loadableWithError:PJ,loadableWithPromise:LJ,loadableLoading:FJ,loadableAll:MJ,isLoadable:NJ,RecoilLoadable:BJ});const J1=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 Q1(e){var t;return(t=J1.get(e))!==null&&t!==void 0?t:!1}Q1.setPass=e=>{J1.set(e,!0)};Q1.setFail=e=>{J1.set(e,!1)};Q1.clear=()=>{J1.clear()};var Sn=Q1;function zJ(e,t,{error:n}={}){return null}var jJ=zJ,IT=jJ,AS,OS,DS;const UJ=(AS=pt.createMutableSource)!==null&&AS!==void 0?AS:pt.unstable_createMutableSource,U4=(OS=pt.useMutableSource)!==null&&OS!==void 0?OS:pt.unstable_useMutableSource,K4=(DS=pt.useSyncExternalStore)!==null&&DS!==void 0?DS:pt.unstable_useSyncExternalStore;function KJ(){var e;const{ReactCurrentDispatcher:t,ReactCurrentOwner:n}=pt.__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 WJ(){return Sn("recoil_transition_support")?{mode:"TRANSITION_SUPPORT",early:!0,concurrent:!0}:Sn("recoil_sync_external_store")&&K4!=null?{mode:"SYNC_EXTERNAL_STORE",early:!0,concurrent:!1}:Sn("recoil_mutable_source")&&U4!=null&&typeof window<"u"&&!window.$disableRecoilValueMutableSource_TEMP_HACK_DO_NOT_USE?Sn("recoil_suppress_rerender_in_callback")?{mode:"MUTABLE_SOURCE",early:!0,concurrent:!0}:{mode:"MUTABLE_SOURCE",early:!1,concurrent:!1}:Sn("recoil_suppress_rerender_in_callback")?{mode:"LEGACY",early:!0,concurrent:!1}:{mode:"LEGACY",early:!1,concurrent:!1}}function VJ(){return!1}var Zg={createMutableSource:UJ,useMutableSource:U4,useSyncExternalStore:K4,currentRendererSupportsUseSyncExternalStore:KJ,reactMode:WJ,isFastRefreshEnabled:VJ};const W4={RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED:!0};function HJ(){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 Bt(`({}).RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED value must be 'true', 'false', or empty: ${r}`);W4.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=r==="true"}HJ();var V4=W4;class PT{constructor(t){$t(this,"key",void 0),this.key=t}toJSON(){return{key:this.key}}}class H4 extends PT{}class q4 extends PT{}function qJ(e){return e instanceof H4||e instanceof q4}var eb={AbstractRecoilValue:PT,RecoilState:H4,RecoilValueReadOnly:q4,isRecoilValue:qJ},GJ=eb.AbstractRecoilValue,YJ=eb.RecoilState,XJ=eb.RecoilValueReadOnly,ZJ=eb.isRecoilValue,gd=Object.freeze({__proto__:null,AbstractRecoilValue:GJ,RecoilState:YJ,RecoilValueReadOnly:XJ,isRecoilValue:ZJ});function JJ(e,t){return function*(){let n=0;for(const r of e)yield t(r,n++)}()}var tb=JJ;class G4{}const QJ=new G4,ac=new Map,LT=new Map;function eQ(e){return tb(e,t=>Bn(LT.get(t)))}function tQ(e){if(ac.has(e)){const t=`Duplicate atom key "${e}". This is a FATAL ERROR in
|
|
41
|
+
production. But it is safe to ignore this warning if it occurred because of
|
|
42
|
+
hot module replacement.`;console.warn(t)}}function nQ(e){V4.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&tQ(e.key),ac.set(e.key,e);const t=e.set==null?new gd.RecoilValueReadOnly(e.key):new gd.RecoilState(e.key);return LT.set(e.key,t),t}class Y4 extends Error{}function rQ(e){const t=ac.get(e);if(t==null)throw new Y4(`Missing definition for RecoilValue: "${e}""`);return t}function iQ(e){return ac.get(e)}const Z0=new Map;function oQ(e){var t;if(!Sn("recoil_memory_managament_2020"))return;const n=ac.get(e);if(n!=null&&(t=n.shouldDeleteConfigOnRelease)!==null&&t!==void 0&&t.call(n)){var r;ac.delete(e),(r=X4(e))===null||r===void 0||r(),Z0.delete(e)}}function aQ(e,t){Sn("recoil_memory_managament_2020")&&(t===void 0?Z0.delete(e):Z0.set(e,t))}function X4(e){return Z0.get(e)}var Ti={nodes:ac,recoilValues:LT,registerNode:nQ,getNode:rQ,getNodeMaybe:iQ,deleteNodeConfigIfPossible:oQ,setConfigDeletionHandler:aQ,getConfigDeletionHandler:X4,recoilValuesForKeys:eQ,NodeMissingError:Y4,DefaultValue:G4,DEFAULT_VALUE:QJ};function sQ(e,t){t()}var lQ={enqueueExecution:sQ};function uQ(e,t){return t={exports:{}},e(t,t.exports),t.exports}var cQ=uQ(function(e){var t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(pe){return typeof pe}:function(pe){return pe&&typeof Symbol=="function"&&pe.constructor===Symbol&&pe!==Symbol.prototype?"symbol":typeof pe},n={},r=5,i=Math.pow(2,r),o=i-1,a=i/2,s=i/4,l={},c=function(me){return function(){return me}},f=n.hash=function(pe){var me=typeof pe>"u"?"undefined":t(pe);if(me==="number")return pe;me!=="string"&&(pe+="");for(var _e=0,Ue=0,Ke=pe.length;Ue<Ke;++Ue){var Ge=pe.charCodeAt(Ue);_e=(_e<<5)-_e+Ge|0}return _e},h=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},y=function(me){return 1<<me},m=function(me,_e){return h(me&_e-1)},v=function(me,_e,Ue,Ke){var Ge=Ke;if(!me){var ut=Ke.length;Ge=new Array(ut);for(var st=0;st<ut;++st)Ge[st]=Ke[st]}return Ge[_e]=Ue,Ge},S=function(me,_e,Ue){var Ke=Ue.length-1,Ge=0,ut=0,st=Ue;if(me)Ge=ut=_e;else for(st=new Array(Ke);Ge<_e;)st[ut++]=Ue[Ge++];for(++Ge;Ge<=Ke;)st[ut++]=Ue[Ge++];return me&&(st.length=Ke),st},x=function(me,_e,Ue,Ke){var Ge=Ke.length;if(me){for(var ut=Ge;ut>=_e;)Ke[ut--]=Ke[ut];return Ke[_e]=Ue,Ke}for(var st=0,nt=0,ft=new Array(Ge+1);st<_e;)ft[nt++]=Ke[st++];for(ft[_e]=Ue;st<Ge;)ft[++nt]=Ke[st++];return ft},w=1,C=2,E=3,O=4,$={__hamt_isEmpty:!0},I=function(me){return me===$||me&&me.__hamt_isEmpty},W=function(me,_e,Ue,Ke){return{type:w,edit:me,hash:_e,key:Ue,value:Ke,_modify:Z}},H=function(me,_e,Ue){return{type:C,edit:me,hash:_e,children:Ue,_modify:ee}},j=function(me,_e,Ue){return{type:E,edit:me,mask:_e,children:Ue,_modify:Y}},U=function(me,_e,Ue){return{type:O,edit:me,size:_e,children:Ue,_modify:M}},le=function(me){return me===$||me.type===w||me.type===C},se=function(me,_e,Ue,Ke,Ge){for(var ut=[],st=Ke,nt=0,ft=0;st;++ft)st&1&&(ut[ft]=Ge[nt++]),st>>>=1;return ut[_e]=Ue,U(me,nt+1,ut)},ie=function(me,_e,Ue,Ke){for(var Ge=new Array(_e-1),ut=0,st=0,nt=0,ft=Ke.length;nt<ft;++nt)if(nt!==Ue){var Ot=Ke[nt];Ot&&!I(Ot)&&(Ge[ut++]=Ot,st|=1<<nt)}return j(me,st,Ge)},Q=function pe(me,_e,Ue,Ke,Ge,ut){if(Ue===Ge)return H(me,Ue,[ut,Ke]);var st=p(_e,Ue),nt=p(_e,Ge);return j(me,y(st)|y(nt),st===nt?[pe(me,_e+r,Ue,Ke,Ge,ut)]:st<nt?[Ke,ut]:[ut,Ke])},L=function(me,_e,Ue,Ke,Ge,ut,st,nt){for(var ft=Ge.length,Ot=0;Ot<ft;++Ot){var Zt=Ge[Ot];if(Ue(st,Zt.key)){var Gt=Zt.value,Vt=ut(Gt);return Vt===Gt?Ge:Vt===l?(--nt.value,S(me,Ot,Ge)):v(me,Ot,W(_e,Ke,st,Vt),Ge)}}var tr=ut();return tr===l?Ge:(++nt.value,v(me,ft,W(_e,Ke,st,tr),Ge))},te=function(me,_e){return me===_e.edit},Z=function(me,_e,Ue,Ke,Ge,ut,st){if(_e(ut,this.key)){var nt=Ke(this.value);return nt===this.value?this:nt===l?(--st.value,$):te(me,this)?(this.value=nt,this):W(me,Ge,ut,nt)}var ft=Ke();return ft===l?this:(++st.value,Q(me,Ue,this.hash,this,Ge,W(me,Ge,ut,ft)))},ee=function(me,_e,Ue,Ke,Ge,ut,st){if(Ge===this.hash){var nt=te(me,this),ft=L(nt,me,_e,this.hash,this.children,Ke,ut,st);return ft===this.children?this:ft.length>1?H(me,this.hash,ft):ft[0]}var Ot=Ke();return Ot===l?this:(++st.value,Q(me,Ue,this.hash,this,Ge,W(me,Ge,ut,Ot)))},Y=function(me,_e,Ue,Ke,Ge,ut,st){var nt=this.mask,ft=this.children,Ot=p(Ue,Ge),Zt=y(Ot),Gt=m(nt,Zt),Vt=nt&Zt,tr=Vt?ft[Gt]:$,vn=tr._modify(me,_e,Ue+r,Ke,Ge,ut,st);if(tr===vn)return this;var br=te(me,this),nr=nt,sr=void 0;if(Vt&&I(vn)){if(nr&=~Zt,!nr)return $;if(ft.length<=2&&le(ft[Gt^1]))return ft[Gt^1];sr=S(br,Gt,ft)}else if(!Vt&&!I(vn)){if(ft.length>=a)return se(me,Ot,vn,nt,ft);nr|=Zt,sr=x(br,Gt,vn,ft)}else sr=v(br,Gt,vn,ft);return br?(this.mask=nr,this.children=sr,this):j(me,nr,sr)},M=function(me,_e,Ue,Ke,Ge,ut,st){var nt=this.size,ft=this.children,Ot=p(Ue,Ge),Zt=ft[Ot],Gt=(Zt||$)._modify(me,_e,Ue+r,Ke,Ge,ut,st);if(Zt===Gt)return this;var Vt=te(me,this),tr=void 0;if(I(Zt)&&!I(Gt))++nt,tr=v(Vt,Ot,Gt,ft);else if(!I(Zt)&&I(Gt)){if(--nt,nt<=s)return ie(me,nt,Ot,ft);tr=v(Vt,Ot,$,ft)}else tr=v(Vt,Ot,Gt,ft);return Vt?(this.size=nt,this.children=tr,this):U(me,nt,tr)};$._modify=function(pe,me,_e,Ue,Ke,Ge,ut){var st=Ue();return st===l?$:(++ut.value,W(pe,Ke,Ge,st))};function A(pe,me,_e,Ue,Ke){this._editable=pe,this._edit=me,this._config=_e,this._root=Ue,this._size=Ke}A.prototype.setTree=function(pe,me){return this._editable?(this._root=pe,this._size=me,this):pe===this._root?this:new A(this._editable,this._edit,this._config,pe,me)};var ne=n.tryGetHash=function(pe,me,_e,Ue){for(var Ke=Ue._root,Ge=0,ut=Ue._config.keyEq;;)switch(Ke.type){case w:return ut(_e,Ke.key)?Ke.value:pe;case C:{if(me===Ke.hash)for(var st=Ke.children,nt=0,ft=st.length;nt<ft;++nt){var Ot=st[nt];if(ut(_e,Ot.key))return Ot.value}return pe}case E:{var Zt=p(Ge,me),Gt=y(Zt);if(Ke.mask&Gt){Ke=Ke.children[m(Ke.mask,Gt)],Ge+=r;break}return pe}case O:{if(Ke=Ke.children[p(Ge,me)],Ke){Ge+=r;break}return pe}default:return pe}};A.prototype.tryGetHash=function(pe,me,_e){return ne(pe,me,_e,this)};var oe=n.tryGet=function(pe,me,_e){return ne(pe,_e._config.hash(me),me,_e)};A.prototype.tryGet=function(pe,me){return oe(pe,me,this)};var ce=n.getHash=function(pe,me,_e){return ne(void 0,pe,me,_e)};A.prototype.getHash=function(pe,me){return ce(pe,me,this)},n.get=function(pe,me){return ne(void 0,me._config.hash(pe),pe,me)},A.prototype.get=function(pe,me){return oe(me,pe,this)};var re=n.has=function(pe,me,_e){return ne(l,pe,me,_e)!==l};A.prototype.hasHash=function(pe,me){return re(pe,me,this)};var Se=n.has=function(pe,me){return re(me._config.hash(pe),pe,me)};A.prototype.has=function(pe){return Se(pe,this)};var ke=function(me,_e){return me===_e};n.make=function(pe){return new A(0,0,{keyEq:pe&&pe.keyEq||ke,hash:pe&&pe.hash||f},$,0)},n.empty=n.make();var Ce=n.isEmpty=function(pe){return pe&&!!I(pe._root)};A.prototype.isEmpty=function(){return Ce(this)};var Pe=n.modifyHash=function(pe,me,_e,Ue){var Ke={value:Ue._size},Ge=Ue._root._modify(Ue._editable?Ue._edit:NaN,Ue._config.keyEq,0,pe,me,_e,Ke);return Ue.setTree(Ge,Ke.value)};A.prototype.modifyHash=function(pe,me,_e){return Pe(_e,pe,me,this)};var Le=n.modify=function(pe,me,_e){return Pe(pe,_e._config.hash(me),me,_e)};A.prototype.modify=function(pe,me){return Le(me,pe,this)};var ze=n.setHash=function(pe,me,_e,Ue){return Pe(c(_e),pe,me,Ue)};A.prototype.setHash=function(pe,me,_e){return ze(pe,me,_e,this)};var We=n.set=function(pe,me,_e){return ze(_e._config.hash(pe),pe,me,_e)};A.prototype.set=function(pe,me){return We(pe,me,this)};var qe=c(l),Ve=n.removeHash=function(pe,me,_e){return Pe(qe,pe,me,_e)};A.prototype.removeHash=A.prototype.deleteHash=function(pe,me){return Ve(pe,me,this)};var at=n.remove=function(pe,me){return Ve(me._config.hash(pe),pe,me)};A.prototype.remove=A.prototype.delete=function(pe){return at(pe,this)};var Ze=n.beginMutation=function(pe){return new A(pe._editable+1,pe._edit+1,pe._config,pe._root,pe._size)};A.prototype.beginMutation=function(){return Ze(this)};var tt=n.endMutation=function(pe){return pe._editable=pe._editable&&pe._editable-1,pe};A.prototype.endMutation=function(){return tt(this)};var gt=n.mutate=function(pe,me){var _e=Ze(me);return pe(_e),tt(_e)};A.prototype.mutate=function(pe){return gt(pe,this)};var ge=function(me){return me&&Te(me[0],me[1],me[2],me[3],me[4])},Te=function(me,_e,Ue,Ke,Ge){for(;Ue<me;){var ut=_e[Ue++];if(ut&&!I(ut))return Ee(ut,Ke,[me,_e,Ue,Ke,Ge])}return ge(Ge)},Ee=function(me,_e,Ue){switch(me.type){case w:return{value:_e(me),rest:Ue};case C:case O:case E:var Ke=me.children;return Te(Ke.length,Ke,0,_e,Ue);default:return ge(Ue)}},Ae={done:!0};function B(pe){this.v=pe}B.prototype.next=function(){if(!this.v)return Ae;var pe=this.v;return this.v=ge(pe.rest),pe},B.prototype[Symbol.iterator]=function(){return this};var V=function(me,_e){return new B(Ee(me._root,_e))},he=function(me){return[me.key,me.value]},G=n.entries=function(pe){return V(pe,he)};A.prototype.entries=A.prototype[Symbol.iterator]=function(){return G(this)};var fe=function(me){return me.key},ae=n.keys=function(pe){return V(pe,fe)};A.prototype.keys=function(){return ae(this)};var Re=function(me){return me.value},Ie=n.values=A.prototype.values=function(pe){return V(pe,Re)};A.prototype.values=function(){return Ie(this)};var $e=n.fold=function(pe,me,_e){var Ue=_e._root;if(Ue.type===w)return pe(me,Ue.value,Ue.key);for(var Ke=[Ue.children],Ge=void 0;Ge=Ke.pop();)for(var ut=0,st=Ge.length;ut<st;){var nt=Ge[ut++];nt&&nt.type&&(nt.type===w?me=pe(me,nt.value,nt.key):Ke.push(nt.children))}return me};A.prototype.fold=function(pe,me){return $e(pe,me,this)};var dt=n.forEach=function(pe,me){return $e(function(_e,Ue,Ke){return pe(Ue,Ke,me)},null,me)};A.prototype.forEach=function(pe){return dt(pe,this)};var ot=n.count=function(pe){return pe._size};A.prototype.count=function(){return ot(this)},Object.defineProperty(A.prototype,"size",{get:A.prototype.count}),e.exports?e.exports=n:(void 0).hamt=n});class fQ{constructor(t){$t(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 MT(this)}toMap(){return new Map(this._map)}}class FT{constructor(t){if($t(this,"_hamt",cQ.empty.beginMutation()),t instanceof FT){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 MT(this)}toMap(){return new Map(this._hamt)}}function MT(e){return Sn("recoil_hamt_2020")?new FT(e):new fQ(e)}var dQ={persistentMap:MT},pQ=dQ.persistentMap,hQ=Object.freeze({__proto__:null,persistentMap:pQ});function gQ(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 qh=gQ;function mQ(e,t){const n=new Map;return e.forEach((r,i)=>{n.set(i,t(r,i))}),n}var J0=mQ;function vQ(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}}function yQ(e){return{nodeDeps:J0(e.nodeDeps,t=>new Set(t)),nodeToNodeSubscriptions:J0(e.nodeToNodeSubscriptions,t=>new Set(t))}}function $S(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:qh(t,a);for(const l of s)o.has(l)||o.set(l,new Set),Bn(o.get(l)).add(e);if(a){const l=qh(a,t);for(const c of l){if(!o.has(c))return;const f=Bn(o.get(c));f.delete(e),f.size===0&&o.delete(c)}}}function bQ(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 c=n.getGraph(r);if($S(e,t,c),r===((a=l.previousTree)===null||a===void 0?void 0:a.version)){const h=n.getGraph(l.currentTree.version);$S(e,t,h,c)}if(r===((s=l.previousTree)===null||s===void 0?void 0:s.version)||r===l.currentTree.version){var f;const h=(f=l.nextTree)===null||f===void 0?void 0:f.version;if(h!==void 0){const p=n.getGraph(h);$S(e,t,p,c)}}}var Jg={cloneGraph:yQ,graph:vQ,saveDepsToStore:bQ};let xQ=0;const wQ=()=>xQ++;let SQ=0;const _Q=()=>SQ++;let CQ=0;const EQ=()=>CQ++;var nb={getNextTreeStateVersion:wQ,getNextStoreID:_Q,getNextComponentID:EQ};const{persistentMap:E$}=hQ,{graph:kQ}=Jg,{getNextTreeStateVersion:Z4}=nb;function J4(){const e=Z4();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:E$(),nonvalidatedAtoms:E$()}}function TQ(){const e=J4();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,kQ()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}}var Q4={makeEmptyTreeState:J4,makeEmptyStoreState:TQ,getNextTreeStateVersion:Z4};class ez{}function RQ(){return new ez}var rb={RetentionZone:ez,retentionZone:RQ};function AQ(e,t){const n=new Set(e);return n.add(t),n}function OQ(e,t){const n=new Set(e);return n.delete(t),n}function DQ(e,t,n){const r=new Map(e);return r.set(t,n),r}function $Q(e,t,n){const r=new Map(e);return r.set(t,n(r.get(t))),r}function IQ(e,t){const n=new Map(e);return n.delete(t),n}function PQ(e,t){const n=new Map(e);return t.forEach(r=>n.delete(r)),n}var tz={setByAddingToSet:AQ,setByDeletingFromSet:OQ,mapBySettingInMap:DQ,mapByUpdatingInMap:$Q,mapByDeletingFromMap:IQ,mapByDeletingMultipleFromMap:PQ};function*LQ(e,t){let n=0;for(const r of e)t(r,n++)&&(yield r)}var NT=LQ;function FQ(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 nz=FQ;const{getNode:Qg,getNodeMaybe:MQ,recoilValuesForKeys:k$}=Ti,{RetentionZone:T$}=rb,{setByAddingToSet:NQ}=tz,BQ=Object.freeze(new Set);class zQ extends Error{}function jQ(e,t,n){if(!Sn("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 T$)i(n);else if(Array.isArray(n))for(const o of n)i(o);return()=>{if(!Sn("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 T$)a(n);else if(Array.isArray(n))for(const s of n)a(s)}}function BT(e,t,n,r){const i=e.getState();if(i.nodeCleanupFunctions.has(n))return;const o=Qg(n),a=jQ(e,n,o.retainedBy),s=o.init(e,t,r);i.nodeCleanupFunctions.set(n,()=>{s(),a()})}function UQ(e,t,n){BT(e,e.getState().currentTree,t,n)}function KQ(e,t){var n;const r=e.getState();(n=r.nodeCleanupFunctions.get(t))===null||n===void 0||n(),r.nodeCleanupFunctions.delete(t)}function WQ(e,t,n){return BT(e,t,n,"get"),Qg(n).get(e,t)}function rz(e,t,n){return Qg(n).peek(e,t)}function VQ(e,t,n){var r;const i=MQ(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:NQ(e.dirtyAtoms,t)}}function HQ(e,t,n,r){const i=Qg(n);if(i.set==null)throw new zQ(`Attempt to set read-only RecoilValue: ${n}`);const o=i.set;return BT(e,t,n,"set"),o(e,t,r)}function qQ(e,t,n){const r=e.getState(),i=e.getGraph(t.version),o=Qg(n).nodeType;return nz({type:o},{loadable:()=>rz(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 k$((a=i.nodeDeps.get(n))!==null&&a!==void 0?a:[])},subscribers:()=>{var a,s;return{nodes:k$(NT(iz(e,t,new Set([n])),l=>l!==n)),components:tb((a=(s=r.nodeToComponentSubscriptions.get(n))===null||s===void 0?void 0:s.values())!==null&&a!==void 0?a:[],([l])=>({name:l}))}}})}function iz(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:BQ;for(const c of l)r.has(c)||i.push(c)}return r}var Xl={getNodeLoadable:WQ,peekNodeLoadable:rz,setNodeValue:HQ,initializeNode:UQ,cleanUpNode:KQ,setUnvalidatedAtomValue_DEPRECATED:VQ,peekNodeInfo:qQ,getDownstreamNodes:iz};let oz=null;function GQ(e){oz=e}function YQ(){var e;(e=oz)===null||e===void 0||e()}var az={setInvalidateMemoizedSnapshot:GQ,invalidateMemoizedSnapshot:YQ};const{getDownstreamNodes:XQ,getNodeLoadable:sz,setNodeValue:ZQ}=Xl,{getNextComponentID:JQ}=nb,{getNode:QQ,getNodeMaybe:lz}=Ti,{DefaultValue:zT}=Ti,{reactMode:eee}=Zg,{AbstractRecoilValue:tee,RecoilState:nee,RecoilValueReadOnly:ree,isRecoilValue:iee}=gd,{invalidateMemoizedSnapshot:oee}=az;function aee(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=sz(e,n,t);return a.state==="loading"&&a.contents.catch(()=>{}),a}function see(e,t){const n=e.clone();return t.forEach((r,i)=>{r.state==="hasValue"&&r.contents instanceof zT?n.delete(i):n.set(i,r)}),n}function lee(e,t,{key:n},r){if(typeof r=="function"){const i=sz(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 Bt(o)}else if(i.state==="hasError")throw i.contents;return r(i.contents)}else return r}function uee(e,t,n){if(n.type==="set"){const{recoilValue:i,valueOrUpdater:o}=n,a=lee(e,t,i,o),s=ZQ(e,t,i.key,a);for(const[l,c]of s.entries())sE(t,l,c)}else if(n.type==="setLoadable"){const{recoilValue:{key:i},loadable:o}=n;sE(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=lz(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 IT(`Unknown action ${n.type}`)}function sE(e,t,n){n.state==="hasValue"&&n.contents instanceof zT?e.atomValues.delete(t):e.atomValues.set(t,n),e.dirtyAtoms.add(t),e.nonvalidatedAtoms.delete(t)}function uz(e,t){e.replaceState(n=>{const r=cz(n);for(const i of t)uee(e,r,i);return fz(e,r),oee(),r})}function ib(e,t){if(Gh.length){const n=Gh[Gh.length-1];let r=n.get(e);r||n.set(e,r=[]),r.push(t)}else uz(e,[t])}const Gh=[];function cee(){const e=new Map;return Gh.push(e),()=>{for(const[t,n]of e)uz(t,n);Gh.pop()}}function cz(e){return{...e,atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)}}function fz(e,t){const n=XQ(e,t,t.dirtyAtoms);for(const o of n){var r,i;(r=lz(o))===null||r===void 0||(i=r.invalidate)===null||i===void 0||i.call(r,t)}}function dz(e,t,n){ib(e,{type:"set",recoilValue:t,valueOrUpdater:n})}function fee(e,t,n){if(n instanceof zT)return dz(e,t,n);ib(e,{type:"setLoadable",recoilValue:t,loadable:n})}function dee(e,t){ib(e,{type:"markModified",recoilValue:t})}function pee(e,t,n){ib(e,{type:"setUnvalidated",recoilValue:t,unvalidatedValue:n})}function hee(e,{key:t},n,r=null){const i=JQ(),o=e.getState();o.nodeToComponentSubscriptions.has(t)||o.nodeToComponentSubscriptions.set(t,new Map),Bn(o.nodeToComponentSubscriptions.get(t)).set(i,[r??"<not captured>",n]);const a=eee();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 gee(e,t){var n;const{currentTree:r}=e.getState(),i=QQ(t.key);(n=i.clearCache)===null||n===void 0||n.call(i,e,r)}var qa={RecoilValueReadOnly:ree,AbstractRecoilValue:tee,RecoilState:nee,getRecoilValueAsLoadable:aee,setRecoilValue:dz,setRecoilValueLoadable:fee,markRecoilValueModified:dee,setUnvalidatedRecoilValue:pee,subscribeToRecoilValue:hee,isRecoilValue:iee,applyAtomValueWrites:see,batchStart:cee,writeLoadableToTreeState:sE,invalidateDownstreams:fz,copyTreeState:cz,refreshRecoilValue:gee};function mee(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 vee=mee;const{cleanUpNode:yee}=Xl,{deleteNodeConfigIfPossible:bee,getNode:pz}=Ti,{RetentionZone:hz}=rb,xee=12e4,gz=new Set;function mz(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 hz)for(const s of Cee(n,a))i.add(s);else i.add(a);const o=wee(e,i);for(const a of o)_ee(e,r,a)}function wee(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 c=new Set,f=See(e,r,l,o,a);for(const m of f){var h;if(pz(m).retainedBy==="recoilRoot"){a.add(m);continue}if(((h=n.retention.referenceCounts.get(m))!==null&&h!==void 0?h:0)>0){a.add(m);continue}if(vz(m).some(S=>n.retention.referenceCounts.get(S))){a.add(m);continue}const v=i.nodeToNodeSubscriptions.get(m);if(v&&vee(v,S=>a.has(S))){a.add(m);continue}o.add(m),c.add(m)}const p=new Set;for(const m of c)for(const v of(y=i.nodeDeps.get(m))!==null&&y!==void 0?y:gz){var y;o.has(v)||p.add(v)}p.size&&s(p)}}function See(e,t,n,r,i){const o=e.getGraph(t.version),a=[],s=new Set;for(;n.size>0;)l(Bn(n.values().next().value));return a;function l(c){if(r.has(c)||i.has(c)){n.delete(c);return}if(s.has(c))return;const f=o.nodeToNodeSubscriptions.get(c);if(f)for(const h of f)l(h);s.add(c),n.delete(c),a.push(c)}}function _ee(e,t,n){if(!Sn("recoil_memory_managament_2020"))return;yee(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=vz(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 c of l){var s;(s=a.nodeToNodeSubscriptions.get(c))===null||s===void 0||s.delete(n)}}a.nodeToNodeSubscriptions.delete(n)}bee(n)}function Cee(e,t){var n;return(n=e.retention.nodesRetainedByZone.get(t))!==null&&n!==void 0?n:gz}function vz(e){const t=pz(e).retainedBy;return t===void 0||t==="components"||t==="recoilRoot"?[]:t instanceof hz?[t]:t}function Eee(e,t){const n=e.getState();n.nextTree?n.retention.retainablesToCheckForRelease.add(t):mz(e,new Set([t]))}function kee(e,t,n){var r;if(!Sn("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?yz(e,t):i.set(t,o)}function yz(e,t){if(!Sn("recoil_memory_managament_2020"))return;e.getState().retention.referenceCounts.delete(t),Eee(e,t)}function Tee(e){if(!Sn("recoil_memory_managament_2020"))return;const t=e.getState();mz(e,t.retention.retainablesToCheckForRelease),t.retention.retainablesToCheckForRelease.clear()}function Ree(e){return e===void 0?"recoilRoot":e}var gc={SUSPENSE_TIMEOUT_MS:xee,updateRetainCount:kee,updateRetainCountToZero:yz,releaseScheduledRetainablesNow:Tee,retainedByOptionWithDefault:Ree};const{unstable_batchedUpdates:Aee}=Ah;var Oee={unstable_batchedUpdates:Aee};const{unstable_batchedUpdates:Dee}=Oee;var $ee={unstable_batchedUpdates:Dee};const{batchStart:Iee}=qa,{unstable_batchedUpdates:Pee}=$ee;let jT=Pee;const Lee=e=>{jT=e},Fee=()=>jT,Mee=e=>{jT(()=>{let t=()=>{};try{t=Iee(),e()}finally{t()}})};var ob={getBatcher:Fee,setBatcher:Lee,batchUpdates:Mee};function*Nee(e){for(const t of e)for(const n of t)yield n}var bz=Nee;const xz=typeof Window>"u"||typeof window>"u",Bee=e=>!xz&&(e===window||e instanceof Window),zee=typeof navigator<"u"&&navigator.product==="ReactNative";var UT={isSSR:xz,isReactNative:zee,isWindow:Bee};function jee(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 Uee(e,t){let n,r;return(...o)=>{const a=t(...o);return n===a||(n=a,r=e(...o)),r}}function Kee(e,t){let n,r;return[(...a)=>{const s=t(...a);return n===s||(n=s,r=e(...a)),r},()=>{n=null}]}var Wee={memoizeWithArgsHash:jee,memoizeOneWithArgsHash:Uee,memoizeOneWithArgsHashAndInvalidation:Kee};const{batchUpdates:lE}=ob,{initializeNode:Vee,peekNodeInfo:Hee}=Xl,{graph:qee}=Jg,{getNextStoreID:Gee}=nb,{DEFAULT_VALUE:Yee,recoilValues:R$,recoilValuesForKeys:A$}=Ti,{AbstractRecoilValue:Xee,getRecoilValueAsLoadable:Zee,setRecoilValue:O$,setUnvalidatedRecoilValue:Jee}=qa,{updateRetainCount:n0}=gc,{setInvalidateMemoizedSnapshot:Qee}=az,{getNextTreeStateVersion:ete,makeEmptyStoreState:tte}=Q4,{isSSR:nte}=UT,{memoizeOneWithArgsHashAndInvalidation:rte}=Wee;class ab{constructor(t,n){$t(this,"_store",void 0),$t(this,"_refCount",1),$t(this,"getLoadable",r=>(this.checkRefCount_INTERNAL(),Zee(this._store,r))),$t(this,"getPromise",r=>(this.checkRefCount_INTERNAL(),this.getLoadable(r).toPromise())),$t(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 A$(a.dirtyAtoms)}const i=this._store.getState().knownAtoms,o=this._store.getState().knownSelectors;return(r==null?void 0:r.isInitialized)==null?R$.values():r.isInitialized===!0?A$(bz([i,o])):NT(R$.values(),({key:a})=>!i.has(a)&&!o.has(a))}),$t(this,"getInfo_UNSTABLE",({key:r})=>(this.checkRefCount_INTERNAL(),Hee(this._store,this._store.getState().currentTree,r))),$t(this,"map",r=>{this.checkRefCount_INTERNAL();const i=new uE(this,lE);return r(i),i}),$t(this,"asyncMap",async r=>{this.checkRefCount_INTERNAL();const i=new uE(this,lE);return i.retain(),await r(i),i.autoRelease_INTERNAL(),i}),this._store={storeID:Gee(),parentStoreID:n,getState:()=>t,replaceState:r=>{t.currentTree=r(t.currentTree)},getGraph:r=>{const i=t.graphsByVersion;if(i.has(r))return Bn(i.get(r));const o=qee();return i.set(r,o),o},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw Bt("Cannot subscribe to Snapshots")}};for(const r of this._store.getState().knownAtoms)Vee(this._store,r,"get"),n0(this._store,r,1);this.autoRelease_INTERNAL()}retain(){this._refCount<=0,this._refCount++;let t=!1;return()=>{t||(t=!0,this._release())}}autoRelease_INTERNAL(){nte||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(),!Sn("recoil_memory_managament_2020"))return}else this._refCount<0}isRetained(){return this._refCount>0}checkRefCount_INTERNAL(){Sn("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 wz(e,t,n=!1){const r=e.getState(),i=n?ete():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(tb(r.nodeCleanupFunctions.entries(),([o])=>[o,()=>{}]))}}function ite(e){const t=new ab(tte());return e!=null?t.map(e):t}const[D$,Sz]=rte((e,t)=>{var n;const r=e.getState(),i=t==="latest"?(n=r.nextTree)!==null&&n!==void 0?n:r.currentTree:Bn(r.previousTree);return new ab(wz(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)});Qee(Sz);function ote(e,t="latest"){const n=D$(e,t);return n.isRetained()?n:(Sz(),D$(e,t))}class uE extends ab{constructor(t,n){super(wz(t.getStore_INTERNAL(),t.getStore_INTERNAL().getState().currentTree,!0),t.getStoreID()),$t(this,"_batch",void 0),$t(this,"set",(r,i)=>{this.checkRefCount_INTERNAL();const o=this.getStore_INTERNAL();this._batch(()=>{n0(o,r.key,1),O$(this.getStore_INTERNAL(),r,i)})}),$t(this,"reset",r=>{this.checkRefCount_INTERNAL();const i=this.getStore_INTERNAL();this._batch(()=>{n0(i,r.key,1),O$(this.getStore_INTERNAL(),r,Yee)})}),$t(this,"setUnvalidatedAtomValues_DEPRECATED",r=>{this.checkRefCount_INTERNAL();const i=this.getStore_INTERNAL();lE(()=>{for(const[o,a]of r.entries())n0(i,o,1),Jee(i,new Xee(o),a)})}),this._batch=n}}var sb={Snapshot:ab,MutableSnapshot:uE,freshSnapshot:ite,cloneSnapshot:ote},ate=sb.Snapshot,ste=sb.MutableSnapshot,lte=sb.freshSnapshot,ute=sb.cloneSnapshot,lb=Object.freeze({__proto__:null,Snapshot:ate,MutableSnapshot:ste,freshSnapshot:lte,cloneSnapshot:ute});function cte(...e){const t=new Set;for(const n of e)for(const r of n)t.add(r);return t}var fte=cte;const{useRef:dte}=pt;function pte(e){const t=dte(e);return t.current===e&&typeof e=="function"&&(t.current=e()),t}var $$=pte;const{getNextTreeStateVersion:hte,makeEmptyStoreState:_z}=Q4,{cleanUpNode:gte,getDownstreamNodes:mte,initializeNode:vte,setNodeValue:yte,setUnvalidatedAtomValue_DEPRECATED:bte}=Xl,{graph:xte}=Jg,{cloneGraph:wte}=Jg,{getNextStoreID:Cz}=nb,{createMutableSource:IS,reactMode:Ez}=Zg,{applyAtomValueWrites:Ste}=qa,{releaseScheduledRetainablesNow:kz}=gc,{freshSnapshot:_te}=lb,{useCallback:Cte,useContext:Tz,useEffect:cE,useMemo:Ete,useRef:kte,useState:Tte}=pt;function Gp(){throw Bt("This component must be used inside a <RecoilRoot> component.")}const Rz=Object.freeze({storeID:Cz(),getState:Gp,replaceState:Gp,getGraph:Gp,subscribeToTransactions:Gp,addTransactionMetadata:Gp});let fE=!1;function I$(e){if(fE)throw Bt("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){Sn("recoil_memory_managament_2020")&&Sn("recoil_release_on_cascading_update_killswitch_2021")&&t.commitDepth>0&&kz(e);const n=t.currentTree.version,r=hte();t.nextTree={...t.currentTree,version:r,stateID:r,dirtyAtoms:new Set,transactionMetadata:{}},t.graphsByVersion.set(r,wte(Bn(t.graphsByVersion.get(n))))}}const Az=pt.createContext({current:Rz}),ub=()=>Tz(Az),Oz=pt.createContext(null);function Rte(){return Tz(Oz)}function KT(e,t,n){const r=mte(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 Dz(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);(!Ez().early||t.suspendedComponentResolvers.size>0)&&(KT(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 Ate(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,Dz(e),t.previousTree!=null?t.graphsByVersion.delete(t.previousTree.version):IT("Ended batch with no previous state, which is unexpected","recoil"),t.previousTree=null,Sn("recoil_memory_managament_2020")&&n==null&&kz(e)}finally{t.commitDepth--}}function Ote({setNotifyBatcherOfChange:e}){const t=ub(),[,n]=Tte([]);return e(()=>n({})),cE(()=>(e(()=>n({})),()=>{e(()=>{})}),[e]),cE(()=>{lQ.enqueueExecution("Batcher",()=>{Ate(t.current)})}),null}function Dte(e,t){const n=_z();return t({set:(r,i)=>{const o=n.currentTree,a=yte(e,o,r.key,i),s=new Set(a.keys()),l=o.nonvalidatedAtoms.clone();for(const c of s)l.delete(c);n.currentTree={...o,dirtyAtoms:fte(o.dirtyAtoms,s),atomValues:Ste(o.atomValues,a),nonvalidatedAtoms:l}},setUnvalidatedAtomValues:r=>{r.forEach((i,o)=>{n.currentTree=bte(n.currentTree,o,i)})}}),n}function $te(e){const t=_te(e),n=t.getStore_INTERNAL().getState();return t.retain(),n.nodeCleanupFunctions.forEach(r=>r()),n.nodeCleanupFunctions.clear(),n}let P$=0;function Ite({initializeState_DEPRECATED:e,initializeState:t,store_INTERNAL:n,children:r}){let i;const o=y=>{const m=i.current.graphsByVersion;if(m.has(y))return Bn(m.get(y));const v=xte();return m.set(y,v),v},a=(y,m)=>{if(m==null){const{transactionSubscriptions:v}=h.current.getState(),S=P$++;return v.set(S,y),{release:()=>{v.delete(S)}}}else{const{nodeTransactionSubscriptions:v}=h.current.getState();v.has(m)||v.set(m,new Map);const S=P$++;return Bn(v.get(m)).set(S,y),{release:()=>{const x=v.get(m);x&&(x.delete(S),x.size===0&&v.delete(m))}}}},s=y=>{I$(h.current);for(const m of Object.keys(y))Bn(h.current.getState().nextTree).transactionMetadata[m]=y[m]},l=y=>{I$(h.current);const m=Bn(i.current.nextTree);let v;try{fE=!0,v=y(m)}finally{fE=!1}v!==m&&(i.current.nextTree=v,Ez().early&&KT(h.current,i.current,v),Bn(c.current)())},c=kte(null),f=Cte(y=>{c.current=y},[c]),h=$$(()=>n??{storeID:Cz(),getState:()=>i.current,replaceState:l,getGraph:o,subscribeToTransactions:a,addTransactionMetadata:s});n!=null&&(h.current=n),i=$$(()=>e!=null?Dte(h.current,e):t!=null?$te(t):_z());const p=Ete(()=>IS==null?void 0:IS(i,()=>i.current.currentTree.version),[i]);return cE(()=>{const y=h.current;for(const m of new Set(y.getState().knownAtoms))vte(y,m,"get");return()=>{for(const m of y.getState().knownAtoms)gte(y,m)}},[h]),pt.createElement(Az.Provider,{value:h},pt.createElement(Oz.Provider,{value:p},pt.createElement(Ote,{setNotifyBatcherOfChange:f}),r))}function Pte(e){const{override:t,...n}=e,r=ub();return t===!1&&r.current!==Rz?e.children:pt.createElement(Ite,n)}function Lte(){return ub().current.storeID}var Bs={RecoilRoot:Pte,useStoreRef:ub,useRecoilMutableSource:Rte,useRecoilStoreID:Lte,notifyComponents_FOR_TESTING:KT,sendEndOfBatchNotifications_FOR_TESTING:Dz};function Fte(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 Mte=Fte;const{useEffect:Nte,useRef:Bte}=pt;function zte(e){const t=Bte();return Nte(()=>{t.current=e}),t.current}var $z=zte;const{useStoreRef:jte}=Bs,{SUSPENSE_TIMEOUT_MS:Ute}=gc,{updateRetainCount:Yp}=gc,{RetentionZone:Kte}=rb,{useEffect:Wte,useRef:Vte}=pt,{isSSR:L$}=UT;function Hte(e){if(Sn("recoil_memory_managament_2020"))return qte(e)}function qte(e){const n=(Array.isArray(e)?e:[e]).map(a=>a instanceof Kte?a:a.key),r=jte();Wte(()=>{if(!Sn("recoil_memory_managament_2020"))return;const a=r.current;if(i.current&&!L$)window.clearTimeout(i.current),i.current=null;else for(const s of n)Yp(a,s,1);return()=>{for(const s of n)Yp(a,s,-1)}},[r,...n]);const i=Vte(),o=$z(n);if(!L$&&(o===void 0||!Mte(o,n))){const a=r.current;for(const s of n)Yp(a,s,1);if(o)for(const s of o)Yp(a,s,-1);i.current&&window.clearTimeout(i.current),i.current=window.setTimeout(()=>{i.current=null;for(const s of n)Yp(a,s,-1)},Ute)}}var WT=Hte;function Gte(){return"<component name not available>"}var em=Gte;const{batchUpdates:Yte}=ob,{DEFAULT_VALUE:Iz}=Ti,{currentRendererSupportsUseSyncExternalStore:Xte,reactMode:Id,useMutableSource:Zte,useSyncExternalStore:Jte}=Zg,{useRecoilMutableSource:Qte,useStoreRef:Ga}=Bs,{AbstractRecoilValue:dE,getRecoilValueAsLoadable:tm,setRecoilValue:Q0,setUnvalidatedRecoilValue:ene,subscribeToRecoilValue:md}=qa,{useCallback:Si,useEffect:vd,useMemo:Pz,useRef:Yh,useState:VT}=pt,{setByAddingToSet:tne}=tz;function HT(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:Bt(`Invalid value of loadable atom "${t.key}"`)}function nne(){const e=em(),t=Ga(),[,n]=VT([]),r=Yh(new Set);r.current=new Set;const i=Yh(new Set),o=Yh(new Map),a=Si(l=>{const c=o.current.get(l);c&&(c.release(),o.current.delete(l))},[o]),s=Si((l,c)=>{o.current.has(c)&&n([])},[]);return vd(()=>{const l=t.current;qh(r.current,i.current).forEach(c=>{if(o.current.has(c))return;const f=md(l,new dE(c),p=>s(p,c),e);o.current.set(c,f),l.getState().nextTree?l.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{s(l.getState(),c)}):s(l.getState(),c)}),qh(i.current,r.current).forEach(c=>{a(c)}),i.current=r.current}),vd(()=>{const l=o.current;return qh(r.current,new Set(l.keys())).forEach(c=>{const f=md(t.current,new dE(c),h=>s(h,c),e);l.set(c,f)}),()=>l.forEach((c,f)=>a(f))},[e,t,a,s]),Pz(()=>{function l(m){return v=>{Q0(t.current,m,v)}}function c(m){return()=>Q0(t.current,m,Iz)}function f(m){var v;r.current.has(m.key)||(r.current=tne(r.current,m.key));const S=t.current.getState();return tm(t.current,m,Id().early&&(v=S.nextTree)!==null&&v!==void 0?v:S.currentTree)}function h(m){const v=f(m);return HT(v,m,t)}function p(m){return[h(m),l(m)]}function y(m){return[f(m),l(m)]}return{getRecoilValue:h,getRecoilValueLoadable:f,getRecoilState:p,getRecoilStateLoadable:y,getSetRecoilState:l,getResetRecoilState:c}},[r,t])}const rne={current:0};function ine(e){const t=Ga(),n=em(),r=Si(()=>{var s;const l=t.current,c=l.getState(),f=Id().early&&(s=c.nextTree)!==null&&s!==void 0?s:c.currentTree;return{loadable:tm(l,e,f),key:e.key}},[t,e]),i=Si(s=>{let l;return()=>{var c,f;const h=s();return(c=l)!==null&&c!==void 0&&c.loadable.is(h.loadable)&&((f=l)===null||f===void 0?void 0:f.key)===h.key?l:(l=h,h)}},[]),o=Pz(()=>i(r),[r,i]),a=Si(s=>{const l=t.current;return md(l,e,s,n).release},[t,e,n]);return Jte(a,o,o).loadable}function one(e){const t=Ga(),n=Si(()=>{var c;const f=t.current,h=f.getState(),p=Id().early&&(c=h.nextTree)!==null&&c!==void 0?c:h.currentTree;return tm(f,e,p)},[t,e]),r=Si(()=>n(),[n]),i=em(),o=Si((c,f)=>{const h=t.current;return md(h,e,()=>{if(!Sn("recoil_suppress_rerender_in_callback"))return f();const y=n();l.current.is(y)||f(),l.current=y},i).release},[t,e,i,n]),a=Qte();if(a==null)throw Bt("Recoil hooks must be used in components contained within a <RecoilRoot> component.");const s=Zte(a,r,o),l=Yh(s);return vd(()=>{l.current=s}),s}function pE(e){const t=Ga(),n=em(),r=Si(()=>{var l;const c=t.current,f=c.getState(),h=Id().early&&(l=f.nextTree)!==null&&l!==void 0?l:f.currentTree;return tm(c,e,h)},[t,e]),i=Si(()=>({loadable:r(),key:e.key}),[r,e.key]),o=Si(l=>{const c=i();return l.loadable.is(c.loadable)&&l.key===c.key?l:c},[i]);vd(()=>{const l=md(t.current,e,c=>{s(o)},n);return s(o),l.release},[n,e,t,o]);const[a,s]=VT(i);return a.key!==e.key?i().loadable:a.loadable}function ane(e){const t=Ga(),[,n]=VT([]),r=em(),i=Si(()=>{var s;const l=t.current,c=l.getState(),f=Id().early&&(s=c.nextTree)!==null&&s!==void 0?s:c.currentTree;return tm(l,e,f)},[t,e]),o=i(),a=Yh(o);return vd(()=>{a.current=o}),vd(()=>{const s=t.current,l=s.getState(),c=md(s,e,h=>{var p;if(!Sn("recoil_suppress_rerender_in_callback"))return n([]);const y=i();(p=a.current)!==null&&p!==void 0&&p.is(y)||n(y),a.current=y},r);if(l.nextTree)s.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{a.current=null,n([])});else{var f;if(!Sn("recoil_suppress_rerender_in_callback"))return n([]);const h=i();(f=a.current)!==null&&f!==void 0&&f.is(h)||n(h),a.current=h}return c.release},[r,i,e,t]),o}function qT(e){return Sn("recoil_memory_managament_2020")&&WT(e),{TRANSITION_SUPPORT:pE,SYNC_EXTERNAL_STORE:Xte()?ine:pE,MUTABLE_SOURCE:one,LEGACY:ane}[Id().mode](e)}function Lz(e){const t=Ga(),n=qT(e);return HT(n,e,t)}function cb(e){const t=Ga();return Si(n=>{Q0(t.current,e,n)},[t,e])}function sne(e){const t=Ga();return Si(()=>{Q0(t.current,e,Iz)},[t,e])}function lne(e){return[Lz(e),cb(e)]}function une(e){return[qT(e),cb(e)]}function cne(){const e=Ga();return(t,n={})=>{Yte(()=>{e.current.addTransactionMetadata(n),t.forEach((r,i)=>ene(e.current,new dE(i),r))})}}function Fz(e){return Sn("recoil_memory_managament_2020")&&WT(e),pE(e)}function Mz(e){const t=Ga(),n=Fz(e);return HT(n,e,t)}function fne(e){return[Mz(e),cb(e)]}var dne={recoilComponentGetRecoilValueCount_FOR_TESTING:rne,useRecoilInterface:nne,useRecoilState:lne,useRecoilStateLoadable:une,useRecoilValue:Lz,useRecoilValueLoadable:qT,useResetRecoilState:sne,useSetRecoilState:cb,useSetUnvalidatedAtomValues:cne,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Fz,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Mz,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:fne};function pne(e,t){const n=new Map;for(const[r,i]of e)t(i,r)&&n.set(r,i);return n}var hne=pne;function gne(e,t){const n=new Set;for(const r of e)t(r)&&n.add(r);return n}var mne=gne;function vne(...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 yne=vne;const{batchUpdates:bne}=ob,{DEFAULT_VALUE:xne,getNode:Nz,nodes:wne}=Ti,{useStoreRef:GT}=Bs,{AbstractRecoilValue:Sne,setRecoilValueLoadable:_ne}=qa,{SUSPENSE_TIMEOUT_MS:Cne}=gc,{cloneSnapshot:e1}=lb,{useCallback:fb,useEffect:Bz,useRef:F$,useState:Ene}=pt,{isSSR:M$}=UT;function db(e){const t=GT();Bz(()=>t.current.subscribeToTransactions(e).release,[e,t])}function N$(e){const t=e.atomValues.toMap(),n=J0(hne(t,(r,i)=>{const a=Nz(i).persistence_UNSTABLE;return a!=null&&a.type!=="none"&&r.state==="hasValue"}),r=>r.contents);return yne(e.nonvalidatedAtoms.toMap(),n)}function kne(e){db(fb(t=>{let n=t.getState().previousTree;const r=t.getState().currentTree;n||(n=t.getState().currentTree);const i=N$(r),o=N$(n),a=J0(wne,l=>{var c,f,h,p;return{persistence_UNSTABLE:{type:(c=(f=l.persistence_UNSTABLE)===null||f===void 0?void 0:f.type)!==null&&c!==void 0?c:"none",backButton:(h=(p=l.persistence_UNSTABLE)===null||p===void 0?void 0:p.backButton)!==null&&h!==void 0?h:!1}}}),s=mne(r.dirtyAtoms,l=>i.has(l)||o.has(l));e({atomValues:i,previousAtomValues:o,atomInfo:a,modifiedAtoms:s,transactionMetadata:{...r.transactionMetadata}})},[e]))}function Tne(e){db(fb(t=>{const n=e1(t,"latest"),r=e1(t,"previous");e({snapshot:n,previousSnapshot:r})},[e]))}function Rne(){const e=GT(),[t,n]=Ene(()=>e1(e.current)),r=$z(t),i=F$(),o=F$();if(db(fb(s=>n(e1(s)),[])),Bz(()=>{const s=t.retain();if(i.current&&!M$){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&&!M$){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},Cne)}return t}function zz(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;bne(()=>{const a=new Set;for(const c of[i.atomValues.keys(),o.atomValues.keys()])for(const f of c){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)&&Nz(f).shouldRestoreFromSnapshots&&a.add(f)}a.forEach(c=>{_ne(e,new Sne(c),o.atomValues.has(c)?Bn(o.atomValues.get(c)):xne)}),e.replaceState(c=>({...c,stateID:t.getID()}))})}function Ane(){const e=GT();return fb(t=>zz(e.current,t),[e])}var jz={useRecoilSnapshot:Rne,gotoSnapshot:zz,useGotoRecoilSnapshot:Ane,useRecoilTransactionObserver:Tne,useTransactionObservation_DEPRECATED:kne,useTransactionSubscription_DEPRECATED:db};const{peekNodeInfo:One}=Xl,{useStoreRef:Dne}=Bs;function $ne(){const e=Dne();return({key:t})=>One(e.current,e.current.getState().currentTree,t)}var Ine=$ne;const{reactMode:Pne}=Zg,{RecoilRoot:Lne,useStoreRef:Fne}=Bs,{useMemo:Mne}=pt;function Nne(){Pne().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=Fne().current;return Mne(()=>{function t({children:n}){return pt.createElement(Lne,{store_INTERNAL:e},n)}return t},[e])}var Bne=Nne;const{loadableWithValue:zne}=Xg,{initializeNode:jne}=Xl,{DEFAULT_VALUE:Une,getNode:Kne}=Ti,{copyTreeState:Wne,getRecoilValueAsLoadable:Vne,invalidateDownstreams:Hne,writeLoadableToTreeState:qne}=qa;function B$(e){return Kne(e.key).nodeType==="atom"}class Gne{constructor(t,n){$t(this,"_store",void 0),$t(this,"_treeState",void 0),$t(this,"_changes",void 0),$t(this,"get",r=>{if(this._changes.has(r.key))return this._changes.get(r.key);if(!B$(r))throw Bt("Reading selectors within atomicUpdate is not supported");const i=Vne(this._store,r,this._treeState);if(i.state==="hasValue")return i.contents;throw i.state==="hasError"?i.contents:Bt(`Expected Recoil atom ${r.key} to have a value, but it is in a loading state.`)}),$t(this,"set",(r,i)=>{if(!B$(r))throw Bt("Setting selectors within atomicUpdate is not supported");if(typeof i=="function"){const o=this.get(r);this._changes.set(r.key,i(o))}else jne(this._store,r.key,"set"),this._changes.set(r.key,i)}),$t(this,"reset",r=>{this.set(r,Une)}),this._store=t,this._treeState=n,this._changes=new Map}newTreeState_INTERNAL(){if(this._changes.size===0)return this._treeState;const t=Wne(this._treeState);for(const[n,r]of this._changes)qne(t,n,zne(r));return Hne(this._store,t),t}}function Yne(e){return t=>{e.replaceState(n=>{const r=new Gne(e,n);return t(r),r.newTreeState_INTERNAL()})}}var Xne={atomicUpdater:Yne},Zne=Xne.atomicUpdater,Uz=Object.freeze({__proto__:null,atomicUpdater:Zne});function Jne(e,t){if(!e)throw new Error(t)}var Qne=Jne,Oh=Qne;const{atomicUpdater:ere}=Uz,{batchUpdates:tre}=ob,{DEFAULT_VALUE:nre}=Ti,{useStoreRef:rre}=Bs,{refreshRecoilValue:ire,setRecoilValue:z$}=qa,{cloneSnapshot:ore}=lb,{gotoSnapshot:are}=jz,{useCallback:sre}=pt;class Kz{}const lre=new Kz;function Wz(e,t,n,r){let i=lre,o;if(tre(()=>{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 Bt(s);const l=nz({...r??{},set:(f,h)=>z$(e,f,h),reset:f=>z$(e,f,nre),refresh:f=>ire(e,f),gotoSnapshot:f=>are(e,f),transact_UNSTABLE:f=>ere(e)(f)},{snapshot:()=>{const f=ore(e);return o=f.retain(),f}}),c=t(l);if(typeof c!="function")throw Bt(s);i=c(...n)}),i instanceof Kz&&Oh(!1),Nn(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 ure(e,t){const n=rre();return sre((...r)=>Wz(n.current,e,r),t!=null?[...t,n]:void 0)}var Vz={recoilCallback:Wz,useRecoilCallback:ure};const{useStoreRef:cre}=Bs,{refreshRecoilValue:fre}=qa,{useCallback:dre}=pt;function pre(e){const t=cre();return dre(()=>{const n=t.current;fre(n,e)},[e,t])}var hre=pre;const{atomicUpdater:gre}=Uz,{useStoreRef:mre}=Bs,{useMemo:vre}=pt;function yre(e,t){const n=mre();return vre(()=>(...r)=>{gre(n.current)(o=>{e(o)(...r)})},t!=null?[...t,n]:void 0)}var bre=yre;class xre{constructor(t){$t(this,"value",void 0),this.value=t}}var wre={WrappedValue:xre},Sre=wre.WrappedValue,Hz=Object.freeze({__proto__:null,WrappedValue:Sre});const{isFastRefreshEnabled:_re}=Zg;class j$ extends Error{}class Cre{constructor(t){var n,r,i;$t(this,"_name",void 0),$t(this,"_numLeafs",void 0),$t(this,"_root",void 0),$t(this,"_onHit",void 0),$t(this,"_onSet",void 0),$t(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 c,f;for(const[S,x]of t){var h,p,y;const w=this._root;if((w==null?void 0:w.type)==="leaf")throw this.invalidCacheError();const C=c;if(c=C?C.branches.get(f):w,c=(h=c)!==null&&h!==void 0?h:{type:"branch",nodeKey:S,parent:C,branches:new Map,branchKey:f},c.type!=="branch"||c.nodeKey!==S)throw this.invalidCacheError();C==null||C.branches.set(f,c),r==null||(p=r.onNodeVisit)===null||p===void 0||p.call(r,c),f=this._mapNodeValue(x),this._root=(y=this._root)!==null&&y!==void 0?y:c}const m=c?(o=c)===null||o===void 0?void 0:o.branches.get(f):this._root;if(m!=null&&(m.type!=="leaf"||m.branchKey!==f))throw this.invalidCacheError();const v={type:"leaf",value:n,parent:c,branchKey:f};(a=c)===null||a===void 0||a.branches.set(f,v),this._root=(s=this._root)!==null&&s!==void 0?s:v,this._numLeafs++,this._onSet(v),r==null||(l=r.onNodeVisit)===null||l===void 0||l.call(r,v)};try{i()}catch(o){if(o instanceof j$)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=_re()?"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 IT(t+(this._name!=null?` - ${this._name}`:"")),new j$}}var Ere={TreeCache:Cre},kre=Ere.TreeCache,qz=Object.freeze({__proto__:null,TreeCache:kre});class Tre{constructor(t){var n;$t(this,"_maxSize",void 0),$t(this,"_size",void 0),$t(this,"_head",void 0),$t(this,"_tail",void 0),$t(this,"_map",void 0),$t(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=Bn(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 Rre={LRUCache:Tre},Are=Rre.LRUCache,Gz=Object.freeze({__proto__:null,LRUCache:Are});const{LRUCache:Ore}=Gz,{TreeCache:Dre}=qz;function $re({name:e,maxSize:t,mapNodeValue:n=r=>r}){const r=new Ore({maxSize:t}),i=new Dre({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 U$=$re;function Xo(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 Bt("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(Nn(e))return"__PROMISE__";if(Array.isArray(e))return`[${e.map((i,o)=>Xo(i,t,o.toString()))}]`;if(typeof e.toJSON=="function")return Xo(e.toJSON(n),t,n);if(e instanceof Map){const i={};for(const[o,a]of e)i[typeof o=="string"?o:Xo(o,t)]=a;return Xo(i,t,n)}return e instanceof Set?Xo(Array.from(e).sort((i,o)=>Xo(i,t).localeCompare(Xo(o,t))),t,n):Symbol!==void 0&&e[Symbol.iterator]!=null&&typeof e[Symbol.iterator]=="function"?Xo(Array.from(e),t,n):`{${Object.keys(e).filter(i=>e[i]!==void 0).sort().map(i=>`${Xo(i,t)}:${Xo(e[i],t,i)}`).join(",")}}`}function Ire(e,t={allowFunctions:!1}){return Xo(e,t)}var pb=Ire;const{TreeCache:Pre}=qz,ey={equality:"reference",eviction:"keep-all",maxSize:1/0};function Lre({equality:e=ey.equality,eviction:t=ey.eviction,maxSize:n=ey.maxSize}=ey,r){const i=Fre(e);return Mre(t,n,i,r)}function Fre(e){switch(e){case"reference":return t=>t;case"value":return t=>pb(t)}throw Bt(`Unrecognized equality policy ${e}`)}function Mre(e,t,n,r){switch(e){case"keep-all":return new Pre({name:r,mapNodeValue:n});case"lru":return U$({name:r,maxSize:Bn(t),mapNodeValue:n});case"most-recent":return U$({name:r,maxSize:1,mapNodeValue:n})}throw Bt(`Unrecognized eviction policy ${e}`)}var Nre=Lre;function Bre(e){return()=>null}var zre={startPerfBlock:Bre};const{isLoadable:jre,loadableWithError:ty,loadableWithPromise:Ure,loadableWithValue:PS}=Xg,{WrappedValue:Yz}=Hz,{getNodeLoadable:ny,peekNodeLoadable:Kre,setNodeValue:Wre}=Xl,{saveDepsToStore:Vre}=Jg,{DEFAULT_VALUE:Hre,getConfigDeletionHandler:qre,getNode:Gre,registerNode:K$}=Ti,{isRecoilValue:Yre}=gd,{markRecoilValueModified:W$}=qa,{retainedByOptionWithDefault:Xre}=gc,{recoilCallback:Zre}=Vz,{startPerfBlock:Jre}=zre;class Xz{}const Xp=new Xz,Zp=[],ry=new Map,Qre=(()=>{let e=0;return()=>e++})();function Zz(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=Nre(i??{equality:"reference",eviction:"keep-all"},n),l=Xre(e.retainedBy_UNSTABLE),c=new Map;let f=0;function h(){return!Sn("recoil_memory_managament_2020")||f>0}function p(A){return A.getState().knownSelectors.add(n),f++,()=>{f--}}function y(){return qre(n)!==void 0&&!h()}function m(A,ne,oe,ce,re){L(ne,ce,re),v(A,oe)}function v(A,ne){ie(A,ne)&&se(A),x(ne,!0)}function S(A,ne){ie(A,ne)&&(Bn(j(A)).stateVersions.clear(),x(ne,!1))}function x(A,ne){const oe=ry.get(A);if(oe!=null){for(const ce of oe)W$(ce,Bn(t));ne&&ry.delete(A)}}function w(A,ne){let oe=ry.get(ne);oe==null&&ry.set(ne,oe=new Set),oe.add(A)}function C(A,ne,oe,ce,re,Se){return ne.then(ke=>{if(!h())throw se(A),Xp;const Ce=PS(ke);return m(A,oe,re,Ce,ce),ke}).catch(ke=>{if(!h())throw se(A),Xp;if(Nn(ke))return E(A,ke,oe,ce,re,Se);const Ce=ty(ke);throw m(A,oe,re,Ce,ce),ke})}function E(A,ne,oe,ce,re,Se){return ne.then(ke=>{if(!h())throw se(A),Xp;Se.loadingDepKey!=null&&Se.loadingDepPromise===ne?oe.atomValues.set(Se.loadingDepKey,PS(ke)):A.getState().knownSelectors.forEach(ze=>{oe.atomValues.delete(ze)});const Ce=I(A,oe);if(Ce&&Ce.state!=="loading"){if((ie(A,re)||j(A)==null)&&v(A,re),Ce.state==="hasValue")return Ce.contents;throw Ce.contents}if(!ie(A,re)){const ze=H(A,oe);if(ze!=null)return ze.loadingLoadable.contents}const[Pe,Le]=$(A,oe,re);if(Pe.state!=="loading"&&m(A,oe,re,Pe,Le),Pe.state==="hasError")throw Pe.contents;return Pe.contents}).catch(ke=>{if(ke instanceof Xz)throw Xp;if(!h())throw se(A),Xp;const Ce=ty(ke);throw m(A,oe,re,Ce,ce),ke})}function O(A,ne,oe,ce){var re,Se,ke,Ce;if(ie(A,ce)||ne.version===((re=A.getState())===null||re===void 0||(Se=re.currentTree)===null||Se===void 0?void 0:Se.version)||ne.version===((ke=A.getState())===null||ke===void 0||(Ce=ke.nextTree)===null||Ce===void 0?void 0:Ce.version)){var Pe,Le,ze;Vre(n,oe,A,(Pe=(Le=A.getState())===null||Le===void 0||(ze=Le.nextTree)===null||ze===void 0?void 0:ze.version)!==null&&Pe!==void 0?Pe:A.getState().currentTree.version)}for(const We of oe)a.add(We)}function $(A,ne,oe){const ce=Jre(n);let re=!0,Se=!0;const ke=()=>{ce(),Se=!1};let Ce,Pe=!1,Le;const ze={loadingDepKey:null,loadingDepPromise:null},We=new Map;function qe({key:at}){const Ze=ny(A,ne,at);switch(We.set(at,Ze),re||(O(A,ne,new Set(We.keys()),oe),S(A,oe)),Ze.state){case"hasValue":return Ze.contents;case"hasError":throw Ze.contents;case"loading":throw ze.loadingDepKey=at,ze.loadingDepPromise=Ze.contents,Ze.contents}throw Bt("Invalid Loadable state")}const Ve=at=>(...Ze)=>{if(Se)throw Bt("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&&Oh(!1),Zre(A,at,Ze,{node:t})};try{Ce=r({get:qe,getCallback:Ve}),Ce=Yre(Ce)?qe(Ce):Ce,jre(Ce)&&(Ce.state==="hasError"&&(Pe=!0),Ce=Ce.contents),Nn(Ce)?Ce=C(A,Ce,ne,We,oe,ze).finally(ke):ke(),Ce=Ce instanceof Yz?Ce.value:Ce}catch(at){Ce=at,Nn(Ce)?Ce=E(A,Ce,ne,We,oe,ze).finally(ke):(Pe=!0,ke())}return Pe?Le=ty(Ce):Nn(Ce)?Le=Ure(Ce):Le=PS(Ce),re=!1,le(A,oe,We),O(A,ne,new Set(We.keys()),oe),[Le,We]}function I(A,ne){let oe=ne.atomValues.get(n);if(oe!=null)return oe;const ce=new Set;try{oe=s.get(Se=>(typeof Se!="string"&&Oh(!1),ny(A,ne,Se).contents),{onNodeVisit:Se=>{Se.type==="branch"&&Se.nodeKey!==n&&ce.add(Se.nodeKey)}})}catch(Se){throw Bt(`Problem with cache lookup for selector "${n}": ${Se.message}`)}if(oe){var re;ne.atomValues.set(n,oe),O(A,ne,ce,(re=j(A))===null||re===void 0?void 0:re.executionID)}return oe}function W(A,ne){const oe=I(A,ne);if(oe!=null)return se(A),oe;const ce=H(A,ne);if(ce!=null){var re;return((re=ce.loadingLoadable)===null||re===void 0?void 0:re.state)==="loading"&&w(A,ce.executionID),ce.loadingLoadable}const Se=Qre(),[ke,Ce]=$(A,ne,Se);return ke.state==="loading"?(U(A,Se,ke,Ce,ne),w(A,Se)):(se(A),L(ne,ke,Ce)),ke}function H(A,ne){const oe=bz([c.has(A)?[Bn(c.get(A))]:[],tb(NT(c,([re])=>re!==A),([,re])=>re)]);function ce(re){for(const[Se,ke]of re)if(!ny(A,ne,Se).is(ke))return!0;return!1}for(const re of oe){if(re.stateVersions.get(ne.version)||!ce(re.depValuesDiscoveredSoFarDuringAsyncWork))return re.stateVersions.set(ne.version,!0),re;re.stateVersions.set(ne.version,!1)}}function j(A){return c.get(A)}function U(A,ne,oe,ce,re){c.set(A,{depValuesDiscoveredSoFarDuringAsyncWork:ce,executionID:ne,loadingLoadable:oe,stateVersions:new Map([[re.version,!0]])})}function le(A,ne,oe){if(ie(A,ne)){const ce=j(A);ce!=null&&(ce.depValuesDiscoveredSoFarDuringAsyncWork=oe)}}function se(A){c.delete(A)}function ie(A,ne){var oe;return ne===((oe=j(A))===null||oe===void 0?void 0:oe.executionID)}function Q(A){return Array.from(A.entries()).map(([ne,oe])=>[ne,oe.contents])}function L(A,ne,oe){A.atomValues.set(n,ne);try{s.set(Q(oe),ne)}catch(ce){throw Bt(`Problem with setting cache for selector "${n}": ${ce.message}`)}}function te(A){if(Zp.includes(n)){const ne=`Recoil selector has circular dependencies: ${Zp.slice(Zp.indexOf(n)).join(" → ")}`;return ty(Bt(ne))}Zp.push(n);try{return A()}finally{Zp.pop()}}function Z(A,ne){const oe=ne.atomValues.get(n);return oe??s.get(ce=>{var re;return typeof ce!="string"&&Oh(!1),(re=Kre(A,ne,ce))===null||re===void 0?void 0:re.contents})}function ee(A,ne){return te(()=>W(A,ne))}function Y(A){A.atomValues.delete(n)}function M(A,ne){t==null&&Oh(!1);for(const ce of a){var oe;const re=Gre(ce);(oe=re.clearCache)===null||oe===void 0||oe.call(re,A,ne)}a.clear(),Y(ne),s.clear(),W$(A,t)}return o!=null?t=K$({key:n,nodeType:"selector",peek:Z,get:ee,set:(ne,oe,ce)=>{let re=!1;const Se=new Map;function ke({key:ze}){if(re)throw Bt("Recoil: Async selector sets are not currently supported.");const We=ny(ne,oe,ze);if(We.state==="hasValue")return We.contents;if(We.state==="loading"){const qe=`Getting value of asynchronous atom or selector "${ze}" in a pending state while setting selector "${n}" is not yet supported.`;throw Bt(qe)}else throw We.contents}function Ce(ze,We){if(re)throw Bt("Recoil: Async selector sets are not currently supported.");const qe=typeof We=="function"?We(ke(ze)):We;Wre(ne,oe,ze.key,qe).forEach((at,Ze)=>Se.set(Ze,at))}function Pe(ze){Ce(ze,Hre)}const Le=o({set:Ce,get:ke,reset:Pe},ce);if(Le!==void 0)throw Nn(Le)?Bt("Recoil: Async selector sets are not currently supported."):Bt("Recoil: selector set should be a void function.");return re=!0,Se},init:p,invalidate:Y,clearCache:M,shouldDeleteConfigOnRelease:y,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:l}):t=K$({key:n,nodeType:"selector",peek:Z,get:ee,init:p,invalidate:Y,clearCache:M,shouldDeleteConfigOnRelease:y,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:l})}Zz.value=e=>new Yz(e);var yd=Zz;const{isLoadable:eie,loadableWithError:LS,loadableWithPromise:FS,loadableWithValue:af}=Xg,{WrappedValue:Jz}=Hz,{peekNodeInfo:tie}=Xl,{DEFAULT_VALUE:Lu,DefaultValue:wl,getConfigDeletionHandler:Qz,registerNode:nie,setConfigDeletionHandler:rie}=Ti,{isRecoilValue:iie}=gd,{getRecoilValueAsLoadable:oie,markRecoilValueModified:aie,setRecoilValue:V$,setRecoilValueLoadable:sie}=qa,{retainedByOptionWithDefault:lie}=gc,Jp=e=>e instanceof Jz?e.value:e;function uie(e){const{key:t,persistence_UNSTABLE:n}=e,r=lie(e.retainedBy_UNSTABLE);let i=0;function o(w){return FS(w.then(C=>(a=af(C),C)).catch(C=>{throw a=LS(C),C}))}let a=Nn(e.default)?o(e.default):eie(e.default)?e.default.state==="loading"?o(e.default.contents):e.default:af(Jp(e.default));a.contents;let s;const l=new Map;function c(w){return w}function f(w,C){const E=C.then(O=>{var $,I;return((I=(($=w.getState().nextTree)!==null&&$!==void 0?$:w.getState().currentTree).atomValues.get(t))===null||I===void 0?void 0:I.contents)===E&&V$(w,x,O),O}).catch(O=>{var $,I;throw((I=(($=w.getState().nextTree)!==null&&$!==void 0?$:w.getState().currentTree).atomValues.get(t))===null||I===void 0?void 0:I.contents)===E&&sie(w,x,LS(O)),O});return E}function h(w,C,E){var O;i++;const $=()=>{var j;i--,(j=l.get(w))===null||j===void 0||j.forEach(U=>U()),l.delete(w)};if(w.getState().knownAtoms.add(t),a.state==="loading"){const j=()=>{var U;((U=w.getState().nextTree)!==null&&U!==void 0?U:w.getState().currentTree).atomValues.has(t)||aie(w,x)};a.contents.finally(j)}const I=(O=e.effects)!==null&&O!==void 0?O:e.effects_UNSTABLE;if(I!=null){let ie=function(Y){if(U&&Y.key===t){const M=j;return M instanceof wl?p(w,C):Nn(M)?FS(M.then(A=>A instanceof wl?a.toPromise():A)):af(M)}return oie(w,Y)},Q=function(Y){return ie(Y).toPromise()},L=function(Y){var M;const A=tie(w,(M=w.getState().nextTree)!==null&&M!==void 0?M:w.getState().currentTree,Y.key);return U&&Y.key===t&&!(j instanceof wl)?{...A,isSet:!0,loadable:ie(Y)}:A},j=Lu,U=!0,le=!1,se=null;const te=Y=>M=>{if(U){const A=ie(x),ne=A.state==="hasValue"?A.contents:Lu;j=typeof M=="function"?M(ne):M,Nn(j)&&(j=j.then(oe=>(se={effect:Y,value:oe},oe)))}else{if(Nn(M))throw Bt("Setting atoms to async values is not implemented.");typeof M!="function"&&(se={effect:Y,value:Jp(M)}),V$(w,x,typeof M=="function"?A=>{const ne=Jp(M(A));return se={effect:Y,value:ne},ne}:Jp(M))}},Z=Y=>()=>te(Y)(Lu),ee=Y=>M=>{var A;const{release:ne}=w.subscribeToTransactions(oe=>{var ce;let{currentTree:re,previousTree:Se}=oe.getState();Se||(Se=re);const ke=(ce=re.atomValues.get(t))!==null&&ce!==void 0?ce:a;if(ke.state==="hasValue"){var Ce,Pe,Le,ze;const We=ke.contents,qe=(Ce=Se.atomValues.get(t))!==null&&Ce!==void 0?Ce:a,Ve=qe.state==="hasValue"?qe.contents:Lu;((Pe=se)===null||Pe===void 0?void 0:Pe.effect)!==Y||((Le=se)===null||Le===void 0?void 0:Le.value)!==We?M(We,Ve,!re.atomValues.has(t)):((ze=se)===null||ze===void 0?void 0:ze.effect)===Y&&(se=null)}},t);l.set(w,[...(A=l.get(w))!==null&&A!==void 0?A:[],ne])};for(const Y of I)try{const M=Y({node:x,storeID:w.storeID,parentStoreID_UNSTABLE:w.parentStoreID,trigger:E,setSelf:te(Y),resetSelf:Z(Y),onSet:ee(Y),getPromise:Q,getLoadable:ie,getInfo_UNSTABLE:L});if(M!=null){var W;l.set(w,[...(W=l.get(w))!==null&&W!==void 0?W:[],M])}}catch(M){j=M,le=!0}if(U=!1,!(j instanceof wl)){var H;const Y=le?LS(j):Nn(j)?FS(f(w,j)):af(Jp(j));Y.contents,C.atomValues.set(t,Y),(H=w.getState().nextTree)===null||H===void 0||H.atomValues.set(t,Y)}}return $}function p(w,C){var E,O;return(E=(O=C.atomValues.get(t))!==null&&O!==void 0?O:s)!==null&&E!==void 0?E:a}function y(w,C){if(C.atomValues.has(t))return Bn(C.atomValues.get(t));if(C.nonvalidatedAtoms.has(t)){if(s!=null)return s;if(n==null)return a;const E=C.nonvalidatedAtoms.get(t),O=n.validator(E,Lu);return s=O instanceof wl?a:af(O),s}else return a}function m(){s=void 0}function v(w,C,E){if(C.atomValues.has(t)){const O=Bn(C.atomValues.get(t));if(O.state==="hasValue"&&E===O.contents)return new Map}else if(!C.nonvalidatedAtoms.has(t)&&E instanceof wl)return new Map;return s=void 0,new Map().set(t,af(E))}function S(){return Qz(t)!==void 0&&i<=0}const x=nie({key:t,nodeType:"atom",peek:p,get:y,set:v,init:h,invalidate:m,shouldDeleteConfigOnRelease:S,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 x}function YT(e){const{...t}=e,n="default"in e?e.default:new Promise(()=>{});return iie(n)?cie({...t,default:n}):uie({...t,default:n})}function cie(e){const t=YT({...e,default:Lu,persistence_UNSTABLE:e.persistence_UNSTABLE===void 0?void 0:{...e.persistence_UNSTABLE,validator:r=>r instanceof wl?r:Bn(e.persistence_UNSTABLE).validator(r,Lu)},effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE}),n=yd({key:`${e.key}__withFallback`,get:({get:r})=>{const i=r(t);return i instanceof wl?e.default:i},set:({set:r},i)=>r(t,i),cachePolicy_UNSTABLE:{eviction:"most-recent"},dangerouslyAllowMutability:e.dangerouslyAllowMutability});return rie(n.key,Qz(e.key)),n}YT.value=e=>new Jz(e);var ej=YT;let fie=class{constructor(t){var n;$t(this,"_map",void 0),$t(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 die={MapCache:fie},pie=die.MapCache,hie=Object.freeze({__proto__:null,MapCache:pie});const{LRUCache:H$}=Gz,{MapCache:gie}=hie,iy={equality:"reference",eviction:"none",maxSize:1/0};function mie({equality:e=iy.equality,eviction:t=iy.eviction,maxSize:n=iy.maxSize}=iy){const r=vie(e);return yie(t,n,r)}function vie(e){switch(e){case"reference":return t=>t;case"value":return t=>pb(t)}throw Bt(`Unrecognized equality policy ${e}`)}function yie(e,t,n){switch(e){case"keep-all":return new gie({mapKey:n});case"lru":return new H$({mapKey:n,maxSize:Bn(t)});case"most-recent":return new H$({mapKey:n,maxSize:1})}throw Bt(`Unrecognized eviction policy ${e}`)}var tj=mie;const{setConfigDeletionHandler:bie}=Ti;function xie(e){var t,n;const r=tj({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,...c}=e,f="default"in e?e.default:new Promise(()=>{}),h=ej({...c,key:`${e.key}__${(o=pb(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,h),bie(h.key,()=>{r.delete(i)}),h}}var wie=xie;const{setConfigDeletionHandler:Sie}=Ti;let _ie=0;function Cie(e){var t,n;const r=tj({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 Bt(`Problem with cache lookup for selector ${e.key}: ${p.message}`)}if(a!=null)return a;const s=`${e.key}__selectorFamily/${(o=pb(i,{allowFunctions:!0}))!==null&&o!==void 0?o:"void"}/${_ie++}`,l=p=>e.get(i)(p),c=e.cachePolicy_UNSTABLE,f=typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(i):e.retainedBy_UNSTABLE;let h;if(e.set!=null){const p=e.set;h=yd({key:s,get:l,set:(m,v)=>p(i)(m,v),cachePolicy_UNSTABLE:c,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:f})}else h=yd({key:s,get:l,cachePolicy_UNSTABLE:c,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:f});return r.set(i,h),Sie(h.key,()=>{r.delete(i)}),h}}var Zl=Cie;const Eie=Zl({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}});function kie(e){return Eie(e)}var Tie=kie;const Rie=Zl({key:"__error",get:e=>()=>{throw Bt(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});function Aie(e){return Rie(e)}var Oie=Aie;function Die(e){return e}var $ie=Die;const{loadableWithError:nj,loadableWithPromise:rj,loadableWithValue:ij}=Xg;function hb(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 Iie(e){return e!=null&&!Nn(e)}function gb(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(t=>e[t])}function hE(e,t){return Array.isArray(e)?t:Object.getOwnPropertyNames(e).reduce((n,r,i)=>({...n,[r]:t[i]}),{})}function Xf(e,t,n){const r=n.map((i,o)=>i==null?ij(t[o]):Nn(i)?rj(i):nj(i));return hE(e,r)}function Pie(e,t){return t.map((n,r)=>n===void 0?e[r]:n)}const Lie=Zl({key:"__waitForNone",get:e=>({get:t})=>{const n=gb(e),[r,i]=hb(t,n);return Xf(e,r,i)},dangerouslyAllowMutability:!0}),Fie=Zl({key:"__waitForAny",get:e=>({get:t})=>{const n=gb(e),[r,i]=hb(t,n);return i.some(o=>!Nn(o))?Xf(e,r,i):new Promise(o=>{for(const[a,s]of i.entries())Nn(s)&&s.then(l=>{r[a]=l,i[a]=void 0,o(Xf(e,r,i))}).catch(l=>{i[a]=l,o(Xf(e,r,i))})})},dangerouslyAllowMutability:!0}),Mie=Zl({key:"__waitForAll",get:e=>({get:t})=>{const n=gb(e),[r,i]=hb(t,n);if(i.every(a=>a==null))return hE(e,r);const o=i.find(Iie);if(o!=null)throw o;return Promise.all(i).then(a=>hE(e,Pie(r,a)))},dangerouslyAllowMutability:!0}),Nie=Zl({key:"__waitForAllSettled",get:e=>({get:t})=>{const n=gb(e),[r,i]=hb(t,n);return i.every(o=>!Nn(o))?Xf(e,r,i):Promise.all(i.map((o,a)=>Nn(o)?o.then(s=>{r[a]=s,i[a]=void 0}).catch(s=>{r[a]=void 0,i[a]=s}):null)).then(()=>Xf(e,r,i))},dangerouslyAllowMutability:!0}),Bie=Zl({key:"__noWait",get:e=>({get:t})=>{try{return yd.value(ij(t(e)))}catch(n){return yd.value(Nn(n)?rj(n):nj(n))}},dangerouslyAllowMutability:!0});var zie={waitForNone:Lie,waitForAny:Fie,waitForAll:Mie,waitForAllSettled:Nie,noWait:Bie};const{RecoilLoadable:jie}=Xg,{DefaultValue:Uie}=Ti,{RecoilRoot:Kie,useRecoilStoreID:Wie}=Bs,{isRecoilValue:Vie}=gd,{retentionZone:Hie}=rb,{freshSnapshot:qie}=lb,{useRecoilState:Gie,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:Yie,useRecoilStateLoadable:Xie,useRecoilValue:Zie,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Jie,useRecoilValueLoadable:Qie,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:eoe,useResetRecoilState:toe,useSetRecoilState:noe}=dne,{useGotoRecoilSnapshot:roe,useRecoilSnapshot:ioe,useRecoilTransactionObserver:ooe}=jz,{useRecoilCallback:aoe}=Vz,{noWait:soe,waitForAll:loe,waitForAllSettled:uoe,waitForAny:coe,waitForNone:foe}=zie;var nm={DefaultValue:Uie,isRecoilValue:Vie,RecoilLoadable:jie,RecoilEnv:V4,RecoilRoot:Kie,useRecoilStoreID:Wie,useRecoilBridgeAcrossReactRoots_UNSTABLE:Bne,atom:ej,selector:yd,atomFamily:wie,selectorFamily:Zl,constSelector:Tie,errorSelector:Oie,readOnlySelector:$ie,noWait:soe,waitForNone:foe,waitForAny:coe,waitForAll:loe,waitForAllSettled:uoe,useRecoilValue:Zie,useRecoilValueLoadable:Qie,useRecoilState:Gie,useRecoilStateLoadable:Xie,useSetRecoilState:noe,useResetRecoilState:toe,useGetRecoilValueInfo_UNSTABLE:Ine,useRecoilRefresher_UNSTABLE:hre,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:eoe,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Jie,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:Yie,useRecoilCallback:aoe,useRecoilTransaction_UNSTABLE:bre,useGotoRecoilSnapshot:roe,useRecoilSnapshot:ioe,useRecoilTransactionObserver_UNSTABLE:ooe,snapshot_UNSTABLE:qie,useRetain:WT,retentionZone:Hie},doe=nm.RecoilRoot,Tr=nm.atom,Tt=nm.useRecoilValue,Qi=nm.useRecoilState,fr=nm.useSetRecoilState;const poe={black:"#000",white:"#fff"},kg=poe,hoe={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"},sf=hoe,goe={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"},lf=goe,moe={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"},uf=moe,voe={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"},cf=voe,yoe={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"},ff=yoe,boe={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"},Qp=boe,xoe={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"},woe=xoe;function z(){return z=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},z.apply(this,arguments)}function Fu(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function oj(e){if(!Fu(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=oj(e[n])}),t}function _i(e,t,n={clone:!0}){const r=n.clone?z({},e):e;return Fu(e)&&Fu(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(Fu(t[i])&&i in e&&Fu(e[i])?r[i]=_i(e[i],t[i],n):n.clone?r[i]=Fu(t[i])?oj(t[i]):t[i]:r[i]=t[i])}),r}var aj={exports:{}},Soe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",_oe=Soe,Coe=_oe;function sj(){}function lj(){}lj.resetWarningCache=sj;var Eoe=function(){function e(r,i,o,a,s,l){if(l!==Coe){var c=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 c.name="Invariant Violation",c}}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:lj,resetWarningCache:sj};return n.PropTypes=n,n};aj.exports=Eoe();var rm=aj.exports;const lt=Ha(rm);function Ul(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 uj={exports:{}},gn={};/**
|
|
43
|
+
* @license React
|
|
44
|
+
* react-is.production.min.js
|
|
45
|
+
*
|
|
46
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
47
|
+
*
|
|
48
|
+
* This source code is licensed under the MIT license found in the
|
|
49
|
+
* LICENSE file in the root directory of this source tree.
|
|
50
|
+
*/var XT=Symbol.for("react.element"),ZT=Symbol.for("react.portal"),mb=Symbol.for("react.fragment"),vb=Symbol.for("react.strict_mode"),yb=Symbol.for("react.profiler"),bb=Symbol.for("react.provider"),xb=Symbol.for("react.context"),koe=Symbol.for("react.server_context"),wb=Symbol.for("react.forward_ref"),Sb=Symbol.for("react.suspense"),_b=Symbol.for("react.suspense_list"),Cb=Symbol.for("react.memo"),Eb=Symbol.for("react.lazy"),Toe=Symbol.for("react.offscreen"),cj;cj=Symbol.for("react.module.reference");function Io(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case XT:switch(e=e.type,e){case mb:case yb:case vb:case Sb:case _b:return e;default:switch(e=e&&e.$$typeof,e){case koe:case xb:case wb:case Eb:case Cb:case bb:return e;default:return t}}case ZT:return t}}}gn.ContextConsumer=xb;gn.ContextProvider=bb;gn.Element=XT;gn.ForwardRef=wb;gn.Fragment=mb;gn.Lazy=Eb;gn.Memo=Cb;gn.Portal=ZT;gn.Profiler=yb;gn.StrictMode=vb;gn.Suspense=Sb;gn.SuspenseList=_b;gn.isAsyncMode=function(){return!1};gn.isConcurrentMode=function(){return!1};gn.isContextConsumer=function(e){return Io(e)===xb};gn.isContextProvider=function(e){return Io(e)===bb};gn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===XT};gn.isForwardRef=function(e){return Io(e)===wb};gn.isFragment=function(e){return Io(e)===mb};gn.isLazy=function(e){return Io(e)===Eb};gn.isMemo=function(e){return Io(e)===Cb};gn.isPortal=function(e){return Io(e)===ZT};gn.isProfiler=function(e){return Io(e)===yb};gn.isStrictMode=function(e){return Io(e)===vb};gn.isSuspense=function(e){return Io(e)===Sb};gn.isSuspenseList=function(e){return Io(e)===_b};gn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===mb||e===yb||e===vb||e===Sb||e===_b||e===Toe||typeof e=="object"&&e!==null&&(e.$$typeof===Eb||e.$$typeof===Cb||e.$$typeof===bb||e.$$typeof===xb||e.$$typeof===wb||e.$$typeof===cj||e.getModuleId!==void 0)};gn.typeOf=Io;uj.exports=gn;var Roe=uj.exports;const Aoe=Ha(Roe);function Be(e){if(typeof e!="string")throw new Error(Ul(7));return e.charAt(0).toUpperCase()+e.slice(1)}function gE(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function JT(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 Ooe(e,t){return()=>null}function Zf(e,t){return T.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function Vn(e){return e&&e.ownerDocument||document}function Kl(e){return Vn(e).defaultView||window}function Doe(e,t){return()=>null}function t1(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const $oe=typeof window<"u"?T.useLayoutEffect:T.useEffect,Xi=$oe;let q$=0;function Ioe(e){const[t,n]=T.useState(e),r=e||t;return T.useEffect(()=>{t==null&&(q$+=1,n(`mui-${q$}`))},[t]),r}const G$=Qu["useId"];function im(e){if(G$!==void 0){const t=G$();return e??t}return Ioe(e)}function Poe(e,t,n,r,i){return null}function bd({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(c=>{i||a(c)},[]);return[s,l]}function _o(e){const t=T.useRef(e);return Xi(()=>{t.current=e}),T.useCallback((...n)=>(0,t.current)(...n),[])}function $n(...e){return T.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{t1(n,t)})},e)}let kb=!0,mE=!1,Y$;const Loe={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 Foe(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Loe[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Moe(e){e.metaKey||e.altKey||e.ctrlKey||(kb=!0)}function MS(){kb=!1}function Noe(){this.visibilityState==="hidden"&&mE&&(kb=!0)}function Boe(e){e.addEventListener("keydown",Moe,!0),e.addEventListener("mousedown",MS,!0),e.addEventListener("pointerdown",MS,!0),e.addEventListener("touchstart",MS,!0),e.addEventListener("visibilitychange",Noe,!0)}function zoe(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return kb||Foe(t)}function om(){const e=T.useCallback(i=>{i!=null&&Boe(i.ownerDocument)},[]),t=T.useRef(!1);function n(){return t.current?(mE=!0,window.clearTimeout(Y$),Y$=window.setTimeout(()=>{mE=!1},100),t.current=!1,!0):!1}function r(i){return zoe(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function fj(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const joe={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},Uoe=joe;function QT(e,t){const n=z({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=z({},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]=z({},o),Object.keys(i).forEach(a=>{n[r][a]=QT(i[a],o[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function _t(e,t,n){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((o,a)=>(a&&(o.push(t(a)),n&&n[a]&&o.push(n[a])),o),[]).join(" ")}),r}const X$=e=>e,Koe=()=>{let e=X$;return{configure(t){e=t},generate(t){return e(t)},reset(){e=X$}}},Woe=Koe(),eR=Woe,Voe={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function wt(e,t,n="Mui"){const r=Voe[t];return r?`${n}-${r}`:`${eR.generate(e)}-${t}`}function bt(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=wt(e,i,n)}),r}function et(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 dj(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Hoe=/^((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)-.*))$/,qoe=dj(function(e){return Hoe.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Goe(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 Yoe(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 Xoe=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(Yoe(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=Goe(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}(),qr="-ms-",n1="-moz-",an="-webkit-",pj="comm",tR="rule",nR="decl",Zoe="@import",hj="@keyframes",Joe=Math.abs,Tb=String.fromCharCode,Qoe=Object.assign;function eae(e,t){return Mr(e,0)^45?(((t<<2^Mr(e,0))<<2^Mr(e,1))<<2^Mr(e,2))<<2^Mr(e,3):0}function gj(e){return e.trim()}function tae(e,t){return(e=t.exec(e))?e[0]:e}function cn(e,t,n){return e.replace(t,n)}function vE(e,t){return e.indexOf(t)}function Mr(e,t){return e.charCodeAt(t)|0}function Tg(e,t,n){return e.slice(t,n)}function Aa(e){return e.length}function rR(e){return e.length}function oy(e,t){return t.push(e),e}function nae(e,t){return e.map(t).join("")}var Rb=1,xd=1,mj=0,ki=0,dr=0,Pd="";function Ab(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Rb,column:xd,length:a,return:""}}function eh(e,t){return Qoe(Ab("",null,null,"",null,null,0),e,{length:-e.length},t)}function rae(){return dr}function iae(){return dr=ki>0?Mr(Pd,--ki):0,xd--,dr===10&&(xd=1,Rb--),dr}function Hi(){return dr=ki<mj?Mr(Pd,ki++):0,xd++,dr===10&&(xd=1,Rb++),dr}function Ba(){return Mr(Pd,ki)}function r0(){return ki}function am(e,t){return Tg(Pd,e,t)}function Rg(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 vj(e){return Rb=xd=1,mj=Aa(Pd=e),ki=0,[]}function yj(e){return Pd="",e}function i0(e){return gj(am(ki-1,yE(e===91?e+2:e===40?e+1:e)))}function oae(e){for(;(dr=Ba())&&dr<33;)Hi();return Rg(e)>2||Rg(dr)>3?"":" "}function aae(e,t){for(;--t&&Hi()&&!(dr<48||dr>102||dr>57&&dr<65||dr>70&&dr<97););return am(e,r0()+(t<6&&Ba()==32&&Hi()==32))}function yE(e){for(;Hi();)switch(dr){case e:return ki;case 34:case 39:e!==34&&e!==39&&yE(dr);break;case 40:e===41&&yE(e);break;case 92:Hi();break}return ki}function sae(e,t){for(;Hi()&&e+dr!==47+10;)if(e+dr===42+42&&Ba()===47)break;return"/*"+am(t,ki-1)+"*"+Tb(e===47?e:Hi())}function lae(e){for(;!Rg(Ba());)Hi();return am(e,ki)}function uae(e){return yj(o0("",null,null,null,[""],e=vj(e),0,[0],e))}function o0(e,t,n,r,i,o,a,s,l){for(var c=0,f=0,h=a,p=0,y=0,m=0,v=1,S=1,x=1,w=0,C="",E=i,O=o,$=r,I=C;S;)switch(m=w,w=Hi()){case 40:if(m!=108&&Mr(I,h-1)==58){vE(I+=cn(i0(w),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:I+=i0(w);break;case 9:case 10:case 13:case 32:I+=oae(m);break;case 92:I+=aae(r0()-1,7);continue;case 47:switch(Ba()){case 42:case 47:oy(cae(sae(Hi(),r0()),t,n),l);break;default:I+="/"}break;case 123*v:s[c++]=Aa(I)*x;case 125*v:case 59:case 0:switch(w){case 0:case 125:S=0;case 59+f:y>0&&Aa(I)-h&&oy(y>32?J$(I+";",r,n,h-1):J$(cn(I," ","")+";",r,n,h-2),l);break;case 59:I+=";";default:if(oy($=Z$(I,t,n,c,f,i,s,C,E=[],O=[],h),o),w===123)if(f===0)o0(I,t,$,$,E,o,h,s,O);else switch(p===99&&Mr(I,3)===110?100:p){case 100:case 109:case 115:o0(e,$,$,r&&oy(Z$(e,$,$,0,0,i,s,C,i,E=[],h),O),i,O,h,s,r?E:O);break;default:o0(I,$,$,$,[""],O,0,s,O)}}c=f=y=0,v=x=1,C=I="",h=a;break;case 58:h=1+Aa(I),y=m;default:if(v<1){if(w==123)--v;else if(w==125&&v++==0&&iae()==125)continue}switch(I+=Tb(w),w*v){case 38:x=f>0?1:(I+="\f",-1);break;case 44:s[c++]=(Aa(I)-1)*x,x=1;break;case 64:Ba()===45&&(I+=i0(Hi())),p=Ba(),f=h=Aa(C=I+=lae(r0())),w++;break;case 45:m===45&&Aa(I)==2&&(v=0)}}return o}function Z$(e,t,n,r,i,o,a,s,l,c,f){for(var h=i-1,p=i===0?o:[""],y=rR(p),m=0,v=0,S=0;m<r;++m)for(var x=0,w=Tg(e,h+1,h=Joe(v=a[m])),C=e;x<y;++x)(C=gj(v>0?p[x]+" "+w:cn(w,/&\f/g,p[x])))&&(l[S++]=C);return Ab(e,t,n,i===0?tR:s,l,c,f)}function cae(e,t,n){return Ab(e,t,n,pj,Tb(rae()),Tg(e,2,-2),0)}function J$(e,t,n,r){return Ab(e,t,n,nR,Tg(e,0,r),Tg(e,r+1,-1),r)}function Jf(e,t){for(var n="",r=rR(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function fae(e,t,n,r){switch(e.type){case Zoe:case nR:return e.return=e.return||e.value;case pj:return"";case hj:return e.return=e.value+"{"+Jf(e.children,r)+"}";case tR:e.value=e.props.join(",")}return Aa(n=Jf(e.children,r))?e.return=e.value+"{"+n+"}":""}function dae(e){var t=rR(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 pae(e){return function(t){t.root||(t=t.return)&&e(t)}}var hae=function(t,n,r){for(var i=0,o=0;i=o,o=Ba(),i===38&&o===12&&(n[r]=1),!Rg(o);)Hi();return am(t,ki)},gae=function(t,n){var r=-1,i=44;do switch(Rg(i)){case 0:i===38&&Ba()===12&&(n[r]=1),t[r]+=hae(ki-1,n,r);break;case 2:t[r]+=i0(i);break;case 4:if(i===44){t[++r]=Ba()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Tb(i)}while(i=Hi());return t},mae=function(t,n){return yj(gae(vj(t),n))},Q$=new WeakMap,vae=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&&!Q$.get(r))&&!i){Q$.set(t,!0);for(var o=[],a=mae(n,o),s=r.props,l=0,c=0;l<a.length;l++)for(var f=0;f<s.length;f++,c++)t.props[c]=o[l]?a[l].replace(/&\f/g,s[f]):s[f]+" "+a[l]}}},yae=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function bj(e,t){switch(eae(e,t)){case 5103:return an+"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 an+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return an+e+n1+e+qr+e+e;case 6828:case 4268:return an+e+qr+e+e;case 6165:return an+e+qr+"flex-"+e+e;case 5187:return an+e+cn(e,/(\w+).+(:[^]+)/,an+"box-$1$2"+qr+"flex-$1$2")+e;case 5443:return an+e+qr+"flex-item-"+cn(e,/flex-|-self/,"")+e;case 4675:return an+e+qr+"flex-line-pack"+cn(e,/align-content|flex-|-self/,"")+e;case 5548:return an+e+qr+cn(e,"shrink","negative")+e;case 5292:return an+e+qr+cn(e,"basis","preferred-size")+e;case 6060:return an+"box-"+cn(e,"-grow","")+an+e+qr+cn(e,"grow","positive")+e;case 4554:return an+cn(e,/([^-])(transform)/g,"$1"+an+"$2")+e;case 6187:return cn(cn(cn(e,/(zoom-|grab)/,an+"$1"),/(image-set)/,an+"$1"),e,"")+e;case 5495:case 3959:return cn(e,/(image-set\([^]*)/,an+"$1$`$1");case 4968:return cn(cn(e,/(.+:)(flex-)?(.*)/,an+"box-pack:$3"+qr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+an+e+e;case 4095:case 3583:case 4068:case 2532:return cn(e,/(.+)-inline(.+)/,an+"$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(Aa(e)-1-t>6)switch(Mr(e,t+1)){case 109:if(Mr(e,t+4)!==45)break;case 102:return cn(e,/(.+:)(.+)-([^]+)/,"$1"+an+"$2-$3$1"+n1+(Mr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~vE(e,"stretch")?bj(cn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Mr(e,t+1)!==115)break;case 6444:switch(Mr(e,Aa(e)-3-(~vE(e,"!important")&&10))){case 107:return cn(e,":",":"+an)+e;case 101:return cn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+an+(Mr(e,14)===45?"inline-":"")+"box$3$1"+an+"$2$3$1"+qr+"$2box$3")+e}break;case 5936:switch(Mr(e,t+11)){case 114:return an+e+qr+cn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return an+e+qr+cn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return an+e+qr+cn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return an+e+qr+e+e}return e}var bae=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case nR:t.return=bj(t.value,t.length);break;case hj:return Jf([eh(t,{value:cn(t.value,"@","@"+an)})],i);case tR:if(t.length)return nae(t.props,function(o){switch(tae(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Jf([eh(t,{props:[cn(o,/:(read-\w+)/,":"+n1+"$1")]})],i);case"::placeholder":return Jf([eh(t,{props:[cn(o,/:(plac\w+)/,":"+an+"input-$1")]}),eh(t,{props:[cn(o,/:(plac\w+)/,":"+n1+"$1")]}),eh(t,{props:[cn(o,/:(plac\w+)/,qr+"input-$1")]})],i)}return""})}},xae=[bae],wae=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(v){var S=v.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var i=t.stylisPlugins||xae,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var S=v.getAttribute("data-emotion").split(" "),x=1;x<S.length;x++)o[S[x]]=!0;s.push(v)});var l,c=[vae,yae];{var f,h=[fae,pae(function(v){f.insert(v)})],p=dae(c.concat(i,h)),y=function(S){return Jf(uae(S),p)};l=function(S,x,w,C){f=w,y(S?S+"{"+x.styles+"}":x.styles),C&&(m.inserted[x.name]=!0)}}var m={key:n,sheet:new Xoe({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 m.sheet.hydrate(s),m},xj={exports:{}},mn={};/** @license React v16.13.1
|
|
51
|
+
* react-is.production.min.js
|
|
52
|
+
*
|
|
53
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
54
|
+
*
|
|
55
|
+
* This source code is licensed under the MIT license found in the
|
|
56
|
+
* LICENSE file in the root directory of this source tree.
|
|
57
|
+
*/var Rr=typeof Symbol=="function"&&Symbol.for,iR=Rr?Symbol.for("react.element"):60103,oR=Rr?Symbol.for("react.portal"):60106,Ob=Rr?Symbol.for("react.fragment"):60107,Db=Rr?Symbol.for("react.strict_mode"):60108,$b=Rr?Symbol.for("react.profiler"):60114,Ib=Rr?Symbol.for("react.provider"):60109,Pb=Rr?Symbol.for("react.context"):60110,aR=Rr?Symbol.for("react.async_mode"):60111,Lb=Rr?Symbol.for("react.concurrent_mode"):60111,Fb=Rr?Symbol.for("react.forward_ref"):60112,Mb=Rr?Symbol.for("react.suspense"):60113,Sae=Rr?Symbol.for("react.suspense_list"):60120,Nb=Rr?Symbol.for("react.memo"):60115,Bb=Rr?Symbol.for("react.lazy"):60116,_ae=Rr?Symbol.for("react.block"):60121,Cae=Rr?Symbol.for("react.fundamental"):60117,Eae=Rr?Symbol.for("react.responder"):60118,kae=Rr?Symbol.for("react.scope"):60119;function eo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case iR:switch(e=e.type,e){case aR:case Lb:case Ob:case $b:case Db:case Mb:return e;default:switch(e=e&&e.$$typeof,e){case Pb:case Fb:case Bb:case Nb:case Ib:return e;default:return t}}case oR:return t}}}function wj(e){return eo(e)===Lb}mn.AsyncMode=aR;mn.ConcurrentMode=Lb;mn.ContextConsumer=Pb;mn.ContextProvider=Ib;mn.Element=iR;mn.ForwardRef=Fb;mn.Fragment=Ob;mn.Lazy=Bb;mn.Memo=Nb;mn.Portal=oR;mn.Profiler=$b;mn.StrictMode=Db;mn.Suspense=Mb;mn.isAsyncMode=function(e){return wj(e)||eo(e)===aR};mn.isConcurrentMode=wj;mn.isContextConsumer=function(e){return eo(e)===Pb};mn.isContextProvider=function(e){return eo(e)===Ib};mn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===iR};mn.isForwardRef=function(e){return eo(e)===Fb};mn.isFragment=function(e){return eo(e)===Ob};mn.isLazy=function(e){return eo(e)===Bb};mn.isMemo=function(e){return eo(e)===Nb};mn.isPortal=function(e){return eo(e)===oR};mn.isProfiler=function(e){return eo(e)===$b};mn.isStrictMode=function(e){return eo(e)===Db};mn.isSuspense=function(e){return eo(e)===Mb};mn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ob||e===Lb||e===$b||e===Db||e===Mb||e===Sae||typeof e=="object"&&e!==null&&(e.$$typeof===Bb||e.$$typeof===Nb||e.$$typeof===Ib||e.$$typeof===Pb||e.$$typeof===Fb||e.$$typeof===Cae||e.$$typeof===Eae||e.$$typeof===kae||e.$$typeof===_ae)};mn.typeOf=eo;xj.exports=mn;var Tae=xj.exports,Sj=Tae,Rae={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Aae={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},_j={};_j[Sj.ForwardRef]=Rae;_j[Sj.Memo]=Aae;var Oae=!0;function Dae(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var Cj=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||Oae===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},Ej=function(t,n,r){Cj(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 $ae(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 Iae={animationIterationCount: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},Pae=/[A-Z]|^ms/g,Lae=/_EMO_([^_]+?)_([^]*?)_EMO_/g,kj=function(t){return t.charCodeAt(1)===45},eI=function(t){return t!=null&&typeof t!="boolean"},NS=dj(function(e){return kj(e)?e:e.replace(Pae,"-$&").toLowerCase()}),tI=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Lae,function(r,i,o){return Oa={name:i,styles:o,next:Oa},i})}return Iae[t]!==1&&!kj(t)&&typeof n=="number"&&n!==0?n+"px":n};function Ag(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 Oa={name:n.name,styles:n.styles,next:Oa},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Oa={name:r.name,styles:r.styles,next:Oa},r=r.next;var i=n.styles+";";return i}return Fae(e,t,n)}case"function":{if(e!==void 0){var o=Oa,a=n(e);return Oa=o,Ag(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function Fae(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Ag(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]+"}":eI(a)&&(r+=NS(o)+":"+tI(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++)eI(a[s])&&(r+=NS(o)+":"+tI(o,a[s])+";");else{var l=Ag(e,t,a);switch(o){case"animation":case"animationName":{r+=NS(o)+":"+l+";";break}default:r+=o+"{"+l+"}"}}}return r}var nI=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Oa,sR=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="";Oa=void 0;var a=t[0];a==null||a.raw===void 0?(i=!1,o+=Ag(r,n,a)):o+=a[0];for(var s=1;s<t.length;s++)o+=Ag(r,n,t[s]),i&&(o+=a[s]);nI.lastIndex=0;for(var l="",c;(c=nI.exec(o))!==null;)l+="-"+c[1];var f=$ae(o)+l;return{name:f,styles:o,next:Oa}},Mae=function(t){return t()},Tj=Qu["useInsertionEffect"]?Qu["useInsertionEffect"]:!1,Nae=Tj||Mae,rI=Tj||T.useLayoutEffect,Rj=T.createContext(typeof HTMLElement<"u"?wae({key:"css"}):null);Rj.Provider;var Aj=function(t){return T.forwardRef(function(n,r){var i=T.useContext(Rj);return t(n,i,r)})},lR=T.createContext({}),Bae=Aj(function(e,t){var n=e.styles,r=sR([n],void 0,T.useContext(lR)),i=T.useRef();return rI(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]),rI(function(){var o=i.current,a=o[0],s=o[1];if(s){o[1]=!1;return}if(r.next!==void 0&&Ej(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 uR(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return sR(t)}var sm=function(){var t=uR.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_"}}},zae=qoe,jae=function(t){return t!=="theme"},iI=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?zae:jae},oI=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},Uae=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Cj(n,r,i),Nae(function(){return Ej(n,r,i)}),null},Kae=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=oI(t,n,r),l=s||iI(i),c=!l("as");return function(){var f=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&h.push("label:"+o+";"),f[0]==null||f[0].raw===void 0)h.push.apply(h,f);else{h.push(f[0][0]);for(var p=f.length,y=1;y<p;y++)h.push(f[y],f[0][y])}var m=Aj(function(v,S,x){var w=c&&v.as||i,C="",E=[],O=v;if(v.theme==null){O={};for(var $ in v)O[$]=v[$];O.theme=T.useContext(lR)}typeof v.className=="string"?C=Dae(S.registered,E,v.className):v.className!=null&&(C=v.className+" ");var I=sR(h.concat(E),S.registered,O);C+=S.key+"-"+I.name,a!==void 0&&(C+=" "+a);var W=c&&s===void 0?iI(w):l,H={};for(var j in v)c&&j==="as"||W(j)&&(H[j]=v[j]);return H.className=C,H.ref=x,T.createElement(T.Fragment,null,T.createElement(Uae,{cache:S,serialized:I,isStringTag:typeof w=="string"}),T.createElement(w,H))});return m.displayName=o!==void 0?o:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=i,m.__emotion_styles=h,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+a}}),m.withComponent=function(v,S){return e(v,z({},n,S,{shouldForwardProp:oI(m,S,!0)})).apply(void 0,h)},m}};const Wae=Kae;var Vae=["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"],bE=Wae.bind();Vae.forEach(function(e){bE[e]=bE(e)});const Hae=bE;function qae(e){return e==null||Object.keys(e).length===0}function Gae(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?i=>t(qae(i)?n:i):t;return k.jsx(Bae,{styles:r})}/**
|
|
58
|
+
* @mui/styled-engine v5.11.11
|
|
59
|
+
*
|
|
60
|
+
* @license MIT
|
|
61
|
+
* This source code is licensed under the MIT license found in the
|
|
62
|
+
* LICENSE file in the root directory of this source tree.
|
|
63
|
+
*/function Oj(e,t){return Hae(e,t)}const Yae=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};function Xh(e,t){return t?_i(e,t,{clone:!1}):e}const cR={xs:0,sm:600,md:900,lg:1200,xl:1536},aI={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${cR[e]}px)`};function ca(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||aI;return t.reduce((a,s,l)=>(a[o.up(o.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const o=r.breakpoints||aI;return Object.keys(t).reduce((a,s)=>{if(Object.keys(o.values||cR).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 Dj(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function $j(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function Xae(e,...t){const n=Dj(e),r=[n,...t].reduce((i,o)=>_i(i,o),{});return $j(Object.keys(n),r)}function Zae(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 BS({values:e,breakpoints:t,base:n}){const r=n||Zae(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 wd(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 r1(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=wd(e,n)||r,t&&(i=t(i,r,e)),i}function dn(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,c=wd(l,r)||{};return ca(a,s,h=>{let p=r1(c,i,h);return h===p&&typeof h=="string"&&(p=r1(c,i,`${t}${h==="default"?"":Be(h)}`,h)),n===!1?p:{[n]:p}})};return o.propTypes={},o.filterProps=[t],o}function zb(...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]?Xh(i,t[o](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Jae(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Qae={m:"margin",p:"padding"},ese={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},sI={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},tse=Jae(e=>{if(e.length>2)if(sI[e])e=sI[e];else return[e];const[t,n]=e.split(""),r=Qae[t],i=ese[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),fR=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],dR=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...fR,...dR];function lm(e,t,n,r){var i;const o=(i=wd(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 pR(e){return lm(e,"spacing",8)}function Ld(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 nse(e,t){return n=>e.reduce((r,i)=>(r[i]=Ld(t,n),r),{})}function rse(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=tse(n),o=nse(i,r),a=e[n];return ca(e,a,o)}function Ij(e,t){const n=pR(e.theme);return Object.keys(e).map(r=>rse(e,t,r,n)).reduce(Xh,{})}function Xn(e){return Ij(e,fR)}Xn.propTypes={};Xn.filterProps=fR;function Zn(e){return Ij(e,dR)}Zn.propTypes={};Zn.filterProps=dR;function Pa(e){return typeof e!="number"?e:`${e}px solid`}const ise=dn({prop:"border",themeKey:"borders",transform:Pa}),ose=dn({prop:"borderTop",themeKey:"borders",transform:Pa}),ase=dn({prop:"borderRight",themeKey:"borders",transform:Pa}),sse=dn({prop:"borderBottom",themeKey:"borders",transform:Pa}),lse=dn({prop:"borderLeft",themeKey:"borders",transform:Pa}),use=dn({prop:"borderColor",themeKey:"palette"}),cse=dn({prop:"borderTopColor",themeKey:"palette"}),fse=dn({prop:"borderRightColor",themeKey:"palette"}),dse=dn({prop:"borderBottomColor",themeKey:"palette"}),pse=dn({prop:"borderLeftColor",themeKey:"palette"}),jb=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=lm(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Ld(t,r)});return ca(e,e.borderRadius,n)}return null};jb.propTypes={};jb.filterProps=["borderRadius"];zb(ise,ose,ase,sse,lse,use,cse,fse,dse,pse,jb);const Ub=e=>{if(e.gap!==void 0&&e.gap!==null){const t=lm(e.theme,"spacing",8),n=r=>({gap:Ld(t,r)});return ca(e,e.gap,n)}return null};Ub.propTypes={};Ub.filterProps=["gap"];const Kb=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=lm(e.theme,"spacing",8),n=r=>({columnGap:Ld(t,r)});return ca(e,e.columnGap,n)}return null};Kb.propTypes={};Kb.filterProps=["columnGap"];const Wb=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=lm(e.theme,"spacing",8),n=r=>({rowGap:Ld(t,r)});return ca(e,e.rowGap,n)}return null};Wb.propTypes={};Wb.filterProps=["rowGap"];const hse=dn({prop:"gridColumn"}),gse=dn({prop:"gridRow"}),mse=dn({prop:"gridAutoFlow"}),vse=dn({prop:"gridAutoColumns"}),yse=dn({prop:"gridAutoRows"}),bse=dn({prop:"gridTemplateColumns"}),xse=dn({prop:"gridTemplateRows"}),wse=dn({prop:"gridTemplateAreas"}),Sse=dn({prop:"gridArea"});zb(Ub,Kb,Wb,hse,gse,mse,vse,yse,bse,xse,wse,Sse);function Qf(e,t){return t==="grey"?t:e}const _se=dn({prop:"color",themeKey:"palette",transform:Qf}),Cse=dn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Qf}),Ese=dn({prop:"backgroundColor",themeKey:"palette",transform:Qf});zb(_se,Cse,Ese);function Ki(e){return e<=1&&e!==0?`${e*100}%`:e}const kse=dn({prop:"width",transform:Ki}),hR=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i,o;return{maxWidth:((r=e.theme)==null||(i=r.breakpoints)==null||(o=i.values)==null?void 0:o[n])||cR[n]||Ki(n)}};return ca(e,e.maxWidth,t)}return null};hR.filterProps=["maxWidth"];const Tse=dn({prop:"minWidth",transform:Ki}),Rse=dn({prop:"height",transform:Ki}),Ase=dn({prop:"maxHeight",transform:Ki}),Ose=dn({prop:"minHeight",transform:Ki});dn({prop:"size",cssProperty:"width",transform:Ki});dn({prop:"size",cssProperty:"height",transform:Ki});const Dse=dn({prop:"boxSizing"});zb(kse,hR,Tse,Rse,Ase,Ose,Dse);const $se={border:{themeKey:"borders",transform:Pa},borderTop:{themeKey:"borders",transform:Pa},borderRight:{themeKey:"borders",transform:Pa},borderBottom:{themeKey:"borders",transform:Pa},borderLeft:{themeKey:"borders",transform:Pa},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:jb},color:{themeKey:"palette",transform:Qf},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Qf},backgroundColor:{themeKey:"palette",transform:Qf},p:{style:Zn},pt:{style:Zn},pr:{style:Zn},pb:{style:Zn},pl:{style:Zn},px:{style:Zn},py:{style:Zn},padding:{style:Zn},paddingTop:{style:Zn},paddingRight:{style:Zn},paddingBottom:{style:Zn},paddingLeft:{style:Zn},paddingX:{style:Zn},paddingY:{style:Zn},paddingInline:{style:Zn},paddingInlineStart:{style:Zn},paddingInlineEnd:{style:Zn},paddingBlock:{style:Zn},paddingBlockStart:{style:Zn},paddingBlockEnd:{style:Zn},m:{style:Xn},mt:{style:Xn},mr:{style:Xn},mb:{style:Xn},ml:{style:Xn},mx:{style:Xn},my:{style:Xn},margin:{style:Xn},marginTop:{style:Xn},marginRight:{style:Xn},marginBottom:{style:Xn},marginLeft:{style:Xn},marginX:{style:Xn},marginY:{style:Xn},marginInline:{style:Xn},marginInlineStart:{style:Xn},marginInlineEnd:{style:Xn},marginBlock:{style:Xn},marginBlockStart:{style:Xn},marginBlockEnd:{style:Xn},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:Ub},rowGap:{style:Wb},columnGap:{style:Kb},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ki},maxWidth:{style:hR},minWidth:{transform:Ki},height:{transform:Ki},maxHeight:{transform:Ki},minHeight:{transform:Ki},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Vb=$se;function Ise(...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 Pse(e,t){return typeof e=="function"?e(t):e}function Lse(){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:c,transform:f,style:h}=s;if(r==null)return null;const p=wd(i,c)||{};return h?h(a):ca(a,r,m=>{let v=r1(p,f,m);return m===v&&typeof m=="string"&&(v=r1(p,f,`${n}${m==="default"?"":Be(m)}`,m)),l===!1?v:{[l]:v}})}function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const a=(r=o.unstable_sxConfig)!=null?r:Vb;function s(l){let c=l;if(typeof l=="function")c=l(o);else if(typeof l!="object")return l;if(!c)return null;const f=Dj(o.breakpoints),h=Object.keys(f);let p=f;return Object.keys(c).forEach(y=>{const m=Pse(c[y],o);if(m!=null)if(typeof m=="object")if(a[y])p=Xh(p,e(y,m,o,a));else{const v=ca({theme:o},m,S=>({[y]:S}));Ise(v,m)?p[y]=t({sx:m,theme:o}):p=Xh(p,v)}else p=Xh(p,e(y,m,o,a))}),$j(h,p)}return Array.isArray(i)?i.map(s):s(i)}return t}const Pj=Lse();Pj.filterProps=["sx"];const Hb=Pj,Fse=["sx"],Mse=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Vb;return Object.keys(e).forEach(o=>{i[o]?r.systemProps[o]=e[o]:r.otherProps[o]=e[o]}),r};function gR(e){const{sx:t}=e,n=et(e,Fse),{systemProps:r,otherProps:i}=Mse(n);let o;return Array.isArray(t)?o=[r,...t]:typeof t=="function"?o=(...a)=>{const s=t(...a);return Fu(s)?z({},r,s):r}:o=z({},r,t),z({},i,{sx:o})}function Lj(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=Lj(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Qe(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Lj(e))&&(r&&(r+=" "),r+=t);return r}const Nse=Object.freeze(Object.defineProperty({__proto__:null,clsx:Qe,default:Qe},Symbol.toStringTag,{value:"Module"})),Bse=["values","unit","step"],zse=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)=>z({},n,{[r.key]:r.val}),{})};function jse(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=et(e,Bse),o=zse(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 c(p,y){const m=a.indexOf(y);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(m!==-1&&typeof t[a[m]]=="number"?t[a[m]]:y)-r/100}${n})`}function f(p){return a.indexOf(p)+1<a.length?c(p,a[a.indexOf(p)+1]):s(p)}function h(p){const y=a.indexOf(p);return y===0?s(a[1]):y===a.length-1?l(a[y]):c(p,a[a.indexOf(p)+1]).replace("@media","@media not all and")}return z({keys:a,values:o,up:s,down:l,between:c,only:f,not:h,unit:n},i)}const Use={borderRadius:4},Kse=Use;function Wse(e=8){if(e.mui)return e;const t=pR({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}const Vse=["breakpoints","palette","spacing","shape"];function mR(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,a=et(e,Vse),s=jse(n),l=Wse(i);let c=_i({breakpoints:s,direction:"ltr",components:{},palette:z({mode:"light"},r),spacing:l,shape:z({},Kse,o)},a);return c=t.reduce((f,h)=>_i(f,h),c),c.unstable_sxConfig=z({},Vb,a==null?void 0:a.unstable_sxConfig),c.unstable_sx=function(h){return Hb({sx:h,theme:this})},c}const Hse=T.createContext(null),Fj=Hse;function Mj(){return T.useContext(Fj)}const qse=typeof Symbol=="function"&&Symbol.for,Gse=qse?Symbol.for("mui.nested"):"__THEME_NESTED__";function Yse(e,t){return typeof t=="function"?t(e):z({},e,t)}function Xse(e){const{children:t,theme:n}=e,r=Mj(),i=T.useMemo(()=>{const o=r===null?n:Yse(r,n);return o!=null&&(o[Gse]=r!==null),o},[n,r]);return k.jsx(Fj.Provider,{value:i,children:t})}function Zse(e){return Object.keys(e).length===0}function vR(e=null){const t=Mj();return!t||Zse(t)?e:t}const Jse=mR();function qb(e=Jse){return vR(e)}const Qse=["className","component"];function ele(e={}){const{defaultTheme:t,defaultClassName:n="MuiBox-root",generateClassName:r}=e,i=Oj("div",{shouldForwardProp:a=>a!=="theme"&&a!=="sx"&&a!=="as"})(Hb);return T.forwardRef(function(s,l){const c=qb(t),f=gR(s),{className:h,component:p="div"}=f,y=et(f,Qse);return k.jsx(i,z({as:p,ref:l,className:Qe(h,r?r(n):n),theme:c},y))})}const tle=["variant"];function lI(e){return e.length===0}function Nj(e){const{variant:t}=e,n=et(e,tle);let r=t||"";return Object.keys(n).sort().forEach(i=>{i==="color"?r+=lI(r)?e[i]:Be(e[i]):r+=`${lI(r)?i:Be(i)}${Be(e[i].toString())}`}),r}const nle=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],rle=["theme"],ile=["theme"];function th(e){return Object.keys(e).length===0}function ole(e){return typeof e=="string"&&e.charCodeAt(0)>96}const ale=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,sle=(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=Nj(i.props);r[o]=i.style}),r},lle=(e,t,n,r)=>{var i,o;const{ownerState:a={}}=e,s=[],l=n==null||(i=n.components)==null||(o=i[r])==null?void 0:o.variants;return l&&l.forEach(c=>{let f=!0;Object.keys(c.props).forEach(h=>{a[h]!==c.props[h]&&e[h]!==c.props[h]&&(f=!1)}),f&&s.push(t[Nj(c.props)])}),s};function Zh(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const ule=mR();function cle(e={}){const{defaultTheme:t=ule,rootShouldForwardProp:n=Zh,slotShouldForwardProp:r=Zh}=e,i=o=>{const a=th(o.theme)?t:o.theme;return Hb(z({},o,{theme:a}))};return i.__mui_systemSx=!0,(o,a={})=>{Yae(o,C=>C.filter(E=>!(E!=null&&E.__mui_systemSx)));const{name:s,slot:l,skipVariantsResolver:c,skipSx:f,overridesResolver:h}=a,p=et(a,nle),y=c!==void 0?c:l&&l!=="Root"||!1,m=f||!1;let v,S=Zh;l==="Root"?S=n:l?S=r:ole(o)&&(S=void 0);const x=Oj(o,z({shouldForwardProp:S,label:v},p)),w=(C,...E)=>{const O=E?E.map(H=>typeof H=="function"&&H.__emotion_real!==H?j=>{let{theme:U}=j,le=et(j,rle);return H(z({theme:th(U)?t:U},le))}:H):[];let $=C;s&&h&&O.push(H=>{const j=th(H.theme)?t:H.theme,U=ale(s,j);if(U){const le={};return Object.entries(U).forEach(([se,ie])=>{le[se]=typeof ie=="function"?ie(z({},H,{theme:j})):ie}),h(H,le)}return null}),s&&!y&&O.push(H=>{const j=th(H.theme)?t:H.theme;return lle(H,sle(s,j),j,s)}),m||O.push(i);const I=O.length-E.length;if(Array.isArray(C)&&I>0){const H=new Array(I).fill("");$=[...C,...H],$.raw=[...C.raw,...H]}else typeof C=="function"&&C.__emotion_real!==C&&($=H=>{let{theme:j}=H,U=et(H,ile);return C(z({theme:th(j)?t:j},U))});return x($,...O)};return x.withConfig&&(w.withConfig=x.withConfig),w}}function Bj(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:QT(t.components[n].defaultProps,r)}function fle({props:e,name:t,defaultTheme:n}){const r=qb(n);return Bj({theme:r,name:t,props:e})}function yR(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function dle(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 sc(e){if(e.type)return e;if(e.charAt(0)==="#")return sc(dle(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Ul(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(Ul(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}function Gb(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 ple(e){e=sc(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(c,f=(c+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])),Gb({type:s,values:l})}function uI(e){e=sc(e);let t=e.type==="hsl"||e.type==="hsla"?sc(ple(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 hle(e,t){const n=uI(e),r=uI(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Jt(e,t){return e=sc(e),t=yR(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Gb(e)}function Og(e,t){if(e=sc(e),t=yR(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 Gb(e)}function Dg(e,t){if(e=sc(e),t=yR(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 Gb(e)}const gle={};function mle(e){const t=qb();return k.jsx(lR.Provider,{value:typeof t=="object"?t:gle,children:e.children})}function zj(e){const{children:t,theme:n}=e;return k.jsx(Xse,{theme:n,children:k.jsx(mle,{children:t})})}function vle(e,t){return z({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const yle=["mode","contrastThreshold","tonalOffset"],cI={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:kg.white,default:kg.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}},zS={text:{primary:kg.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:kg.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 fI(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=Dg(e.main,i):t==="dark"&&(e.dark=Og(e.main,o)))}function ble(e="light"){return e==="dark"?{main:uf[200],light:uf[50],dark:uf[400]}:{main:uf[700],light:uf[400],dark:uf[800]}}function xle(e="light"){return e==="dark"?{main:lf[200],light:lf[50],dark:lf[400]}:{main:lf[500],light:lf[300],dark:lf[700]}}function wle(e="light"){return e==="dark"?{main:sf[500],light:sf[300],dark:sf[700]}:{main:sf[700],light:sf[400],dark:sf[800]}}function Sle(e="light"){return e==="dark"?{main:cf[400],light:cf[300],dark:cf[700]}:{main:cf[700],light:cf[500],dark:cf[900]}}function _le(e="light"){return e==="dark"?{main:ff[400],light:ff[300],dark:ff[700]}:{main:ff[800],light:ff[500],dark:ff[900]}}function Cle(e="light"){return e==="dark"?{main:Qp[400],light:Qp[300],dark:Qp[700]}:{main:"#ed6c02",light:Qp[500],dark:Qp[900]}}function Ele(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=et(e,yle),o=e.primary||ble(t),a=e.secondary||xle(t),s=e.error||wle(t),l=e.info||Sle(t),c=e.success||_le(t),f=e.warning||Cle(t);function h(v){return hle(v,zS.text.primary)>=n?zS.text.primary:cI.text.primary}const p=({color:v,name:S,mainShade:x=500,lightShade:w=300,darkShade:C=700})=>{if(v=z({},v),!v.main&&v[x]&&(v.main=v[x]),!v.hasOwnProperty("main"))throw new Error(Ul(11,S?` (${S})`:"",x));if(typeof v.main!="string")throw new Error(Ul(12,S?` (${S})`:"",JSON.stringify(v.main)));return fI(v,"light",w,r),fI(v,"dark",C,r),v.contrastText||(v.contrastText=h(v.main)),v},y={dark:zS,light:cI};return _i(z({common:z({},kg),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:c,name:"success"}),grey:woe,contrastThreshold:n,getContrastText:h,augmentColor:p,tonalOffset:r},y[t]),i)}const kle=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Tle(e){return Math.round(e*1e5)/1e5}const dI={textTransform:"uppercase"},pI='"Roboto", "Helvetica", "Arial", sans-serif';function Rle(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=pI,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:f,pxToRem:h}=n,p=et(n,kle),y=i/14,m=h||(x=>`${x/c*y}rem`),v=(x,w,C,E,O)=>z({fontFamily:r,fontWeight:x,fontSize:m(w),lineHeight:C},r===pI?{letterSpacing:`${Tle(E/w)}em`}:{},O,f),S={h1:v(o,96,1.167,-1.5),h2:v(o,60,1.2,-.5),h3:v(a,48,1.167,0),h4:v(a,34,1.235,.25),h5:v(a,24,1.334,0),h6:v(s,20,1.6,.15),subtitle1:v(a,16,1.75,.15),subtitle2:v(s,14,1.57,.1),body1:v(a,16,1.5,.15),body2:v(a,14,1.43,.15),button:v(s,14,1.75,.4,dI),caption:v(a,12,1.66,.4),overline:v(a,12,2.66,1,dI)};return _i(z({htmlFontSize:c,pxToRem:m,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},S),p,{clone:!1})}const Ale=.2,Ole=.14,Dle=.12;function Fn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Ale})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Ole})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Dle})`].join(",")}const $le=["none",Fn(0,2,1,-1,0,1,1,0,0,1,3,0),Fn(0,3,1,-2,0,2,2,0,0,1,5,0),Fn(0,3,3,-2,0,3,4,0,0,1,8,0),Fn(0,2,4,-1,0,4,5,0,0,1,10,0),Fn(0,3,5,-1,0,5,8,0,0,1,14,0),Fn(0,3,5,-1,0,6,10,0,0,1,18,0),Fn(0,4,5,-2,0,7,10,1,0,2,16,1),Fn(0,5,5,-3,0,8,10,1,0,3,14,2),Fn(0,5,6,-3,0,9,12,1,0,3,16,2),Fn(0,6,6,-3,0,10,14,1,0,4,18,3),Fn(0,6,7,-4,0,11,15,1,0,4,20,3),Fn(0,7,8,-4,0,12,17,2,0,5,22,4),Fn(0,7,8,-4,0,13,19,2,0,5,24,4),Fn(0,7,9,-4,0,14,21,2,0,5,26,4),Fn(0,8,9,-5,0,15,22,2,0,6,28,5),Fn(0,8,10,-5,0,16,24,2,0,6,30,5),Fn(0,8,11,-5,0,17,26,2,0,6,32,5),Fn(0,9,11,-5,0,18,28,2,0,7,34,6),Fn(0,9,12,-6,0,19,29,2,0,7,36,6),Fn(0,10,13,-6,0,20,31,3,0,8,38,7),Fn(0,10,13,-6,0,21,33,3,0,8,40,7),Fn(0,10,14,-6,0,22,35,3,0,8,42,7),Fn(0,11,14,-7,0,23,36,3,0,9,44,8),Fn(0,11,15,-7,0,24,38,3,0,9,46,8)],Ile=$le,Ple=["duration","easing","delay"],Lle={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)"},Fle={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function hI(e){return`${Math.round(e)}ms`}function Mle(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Nle(e){const t=z({},Lle,e.easing),n=z({},Fle,e.duration);return z({getAutoHeightDuration:Mle,create:(i=["all"],o={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0}=o;return et(o,Ple),(Array.isArray(i)?i:[i]).map(c=>`${c} ${typeof a=="string"?a:hI(a)} ${s} ${typeof l=="string"?l:hI(l)}`).join(",")}},e,{easing:t,duration:n})}const Ble={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},zle=Ble,jle=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Fd(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,a=et(e,jle);if(e.vars)throw new Error(Ul(18));const s=Ele(r),l=mR(e);let c=_i(l,{mixins:vle(l.breakpoints,n),palette:s,shadows:Ile.slice(),typography:Rle(s,o),transitions:Nle(i),zIndex:z({},zle)});return c=_i(c,a),c=t.reduce((f,h)=>_i(f,h),c),c.unstable_sxConfig=z({},Vb,a==null?void 0:a.unstable_sxConfig),c.unstable_sx=function(h){return Hb({sx:h,theme:this})},c}const Ule=Fd(),Yb=Ule;function fa(){return qb(Yb)}function Ct({props:e,name:t}){return fle({props:e,name:t,defaultTheme:Yb})}const da=e=>Zh(e)&&e!=="classes",bR=Zh,Kle=cle({defaultTheme:Yb,rootShouldForwardProp:da}),je=Kle,Wle=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},gI=Wle;function za(e){return typeof e=="string"}function Dh(e,t,n){return e===void 0||za(e)?t:z({},t,{ownerState:z({},t.ownerState,n)})}function Vle(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 xE(e,t){return typeof e=="function"?e(t):e}function mI(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 Hle(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const y=Qe(i==null?void 0:i.className,r==null?void 0:r.className,o,n==null?void 0:n.className),m=z({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),v=z({},n,i,r);return y.length>0&&(v.className=y),Object.keys(m).length>0&&(v.style=m),{props:v,internalRef:void 0}}const a=Vle(z({},i,r)),s=mI(r),l=mI(i),c=t(a),f=Qe(c==null?void 0:c.className,n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),h=z({},c==null?void 0:c.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),p=z({},c,n,l,s);return f.length>0&&(p.className=f),Object.keys(h).length>0&&(p.style=h),{props:p,internalRef:c.ref}}const qle=["elementType","externalSlotProps","ownerState"];function ta(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i}=e,o=et(e,qle),a=xE(r,i),{props:s,internalRef:l}=Hle(z({},o,{externalSlotProps:a})),c=$n(l,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return Dh(n,z({},s,{ref:c}),i)}function vI(e){return e.substring(2).toLowerCase()}function Gle(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function Yle(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),c=T.useRef(!1);T.useEffect(()=>(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const f=$n(t.ref,s),h=_o(m=>{const v=c.current;c.current=!1;const S=Vn(s.current);if(!l.current||!s.current||"clientX"in m&&Gle(m,S))return;if(a.current){a.current=!1;return}let x;m.composedPath?x=m.composedPath().indexOf(s.current)>-1:x=!S.documentElement.contains(m.target)||s.current.contains(m.target),!x&&(n||!v)&&i(m)}),p=m=>v=>{c.current=!0;const S=t.props[m];S&&S(v)},y={ref:f};return o!==!1&&(y[o]=p(o)),T.useEffect(()=>{if(o!==!1){const m=vI(o),v=Vn(s.current),S=()=>{a.current=!0};return v.addEventListener(m,h),v.addEventListener("touchmove",S),()=>{v.removeEventListener(m,h),v.removeEventListener("touchmove",S)}}},[h,o]),r!==!1&&(y[r]=p(r)),T.useEffect(()=>{if(r!==!1){const m=vI(r),v=Vn(s.current);return v.addEventListener(m,h),()=>{v.removeEventListener(m,h)}}},[h,r]),k.jsx(T.Fragment,{children:T.cloneElement(t,y)})}const Xle=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Zle(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 Jle(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 Qle(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Jle(e))}function eue(e){const t=[],n=[];return Array.from(e.querySelectorAll(Xle)).forEach((r,i)=>{const o=Zle(r);o===-1||!Qle(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 tue(){return!0}function nue(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=eue,isEnabled:a=tue,open:s}=e,l=T.useRef(!1),c=T.useRef(null),f=T.useRef(null),h=T.useRef(null),p=T.useRef(null),y=T.useRef(!1),m=T.useRef(null),v=$n(t.ref,m),S=T.useRef(null);T.useEffect(()=>{!s||!m.current||(y.current=!n)},[n,s]),T.useEffect(()=>{if(!s||!m.current)return;const C=Vn(m.current);return m.current.contains(C.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),y.current&&m.current.focus()),()=>{i||(h.current&&h.current.focus&&(l.current=!0,h.current.focus()),h.current=null)}},[s]),T.useEffect(()=>{if(!s||!m.current)return;const C=Vn(m.current),E=I=>{const{current:W}=m;if(W!==null){if(!C.hasFocus()||r||!a()||l.current){l.current=!1;return}if(!W.contains(C.activeElement)){if(I&&p.current!==I.target||C.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!y.current)return;let U=[];if((C.activeElement===c.current||C.activeElement===f.current)&&(U=o(m.current)),U.length>0){var H,j;const le=!!((H=S.current)!=null&&H.shiftKey&&((j=S.current)==null?void 0:j.key)==="Tab"),se=U[0],ie=U[U.length-1];typeof se!="string"&&typeof ie!="string"&&(le?ie.focus():se.focus())}else W.focus()}}},O=I=>{S.current=I,!(r||!a()||I.key!=="Tab")&&C.activeElement===m.current&&I.shiftKey&&(l.current=!0,f.current&&f.current.focus())};C.addEventListener("focusin",E),C.addEventListener("keydown",O,!0);const $=setInterval(()=>{C.activeElement&&C.activeElement.tagName==="BODY"&&E(null)},50);return()=>{clearInterval($),C.removeEventListener("focusin",E),C.removeEventListener("keydown",O,!0)}},[n,r,i,a,s,o]);const x=C=>{h.current===null&&(h.current=C.relatedTarget),y.current=!0,p.current=C.target;const E=t.props.onFocus;E&&E(C)},w=C=>{h.current===null&&(h.current=C.relatedTarget),y.current=!0};return k.jsxs(T.Fragment,{children:[k.jsx("div",{tabIndex:s?0:-1,onFocus:w,ref:c,"data-testid":"sentinelStart"}),T.cloneElement(t,{ref:v,onFocus:x}),k.jsx("div",{tabIndex:s?0:-1,onFocus:w,ref:f,"data-testid":"sentinelEnd"})]})}var Ci="top",Oo="bottom",Do="right",Ei="left",xR="auto",um=[Ci,Oo,Do,Ei],Sd="start",$g="end",rue="clippingParents",jj="viewport",nh="popper",iue="reference",yI=um.reduce(function(e,t){return e.concat([t+"-"+Sd,t+"-"+$g])},[]),Uj=[].concat(um,[xR]).reduce(function(e,t){return e.concat([t,t+"-"+Sd,t+"-"+$g])},[]),oue="beforeRead",aue="read",sue="afterRead",lue="beforeMain",uue="main",cue="afterMain",fue="beforeWrite",due="write",pue="afterWrite",hue=[oue,aue,sue,lue,uue,cue,fue,due,pue];function Ka(e){return e?(e.nodeName||"").toLowerCase():null}function Po(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function lc(e){var t=Po(e).Element;return e instanceof t||e instanceof Element}function Eo(e){var t=Po(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function wR(e){if(typeof ShadowRoot>"u")return!1;var t=Po(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function gue(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];!Eo(o)||!Ka(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 mue(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,c){return l[c]="",l},{});!Eo(i)||!Ka(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const vue={name:"applyStyles",enabled:!0,phase:"write",fn:gue,effect:mue,requires:["computeStyles"]};function ja(e){return e.split("-")[0]}var Yu=Math.max,i1=Math.min,_d=Math.round;function wE(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Kj(){return!/^((?!chrome|android).)*safari/i.test(wE())}function Cd(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Eo(e)&&(i=e.offsetWidth>0&&_d(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&_d(r.height)/e.offsetHeight||1);var a=lc(e)?Po(e):window,s=a.visualViewport,l=!Kj()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/i,f=(r.top+(l&&s?s.offsetTop:0))/o,h=r.width/i,p=r.height/o;return{width:h,height:p,top:f,right:c+h,bottom:f+p,left:c,x:c,y:f}}function SR(e){var t=Cd(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 Wj(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&wR(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ls(e){return Po(e).getComputedStyle(e)}function yue(e){return["table","td","th"].indexOf(Ka(e))>=0}function Jl(e){return((lc(e)?e.ownerDocument:e.document)||window.document).documentElement}function Xb(e){return Ka(e)==="html"?e:e.assignedSlot||e.parentNode||(wR(e)?e.host:null)||Jl(e)}function bI(e){return!Eo(e)||Ls(e).position==="fixed"?null:e.offsetParent}function bue(e){var t=/firefox/i.test(wE()),n=/Trident/i.test(wE());if(n&&Eo(e)){var r=Ls(e);if(r.position==="fixed")return null}var i=Xb(e);for(wR(i)&&(i=i.host);Eo(i)&&["html","body"].indexOf(Ka(i))<0;){var o=Ls(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 cm(e){for(var t=Po(e),n=bI(e);n&&yue(n)&&Ls(n).position==="static";)n=bI(n);return n&&(Ka(n)==="html"||Ka(n)==="body"&&Ls(n).position==="static")?t:n||bue(e)||t}function _R(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Jh(e,t,n){return Yu(e,i1(t,n))}function xue(e,t,n){var r=Jh(e,t,n);return r>n?n:r}function Vj(){return{top:0,right:0,bottom:0,left:0}}function Hj(e){return Object.assign({},Vj(),e)}function qj(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var wue=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Hj(typeof t!="number"?t:qj(t,um))};function Sue(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=ja(n.placement),l=_R(s),c=[Ei,Do].indexOf(s)>=0,f=c?"height":"width";if(!(!o||!a)){var h=wue(i.padding,n),p=SR(o),y=l==="y"?Ci:Ei,m=l==="y"?Oo:Do,v=n.rects.reference[f]+n.rects.reference[l]-a[l]-n.rects.popper[f],S=a[l]-n.rects.reference[l],x=cm(o),w=x?l==="y"?x.clientHeight||0:x.clientWidth||0:0,C=v/2-S/2,E=h[y],O=w-p[f]-h[m],$=w/2-p[f]/2+C,I=Jh(E,$,O),W=l;n.modifiersData[r]=(t={},t[W]=I,t.centerOffset=I-$,t)}}function _ue(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)||Wj(t.elements.popper,i)&&(t.elements.arrow=i))}const Cue={name:"arrow",enabled:!0,phase:"main",fn:Sue,effect:_ue,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ed(e){return e.split("-")[1]}var Eue={top:"auto",right:"auto",bottom:"auto",left:"auto"};function kue(e){var t=e.x,n=e.y,r=window,i=r.devicePixelRatio||1;return{x:_d(t*i)/i||0,y:_d(n*i)/i||0}}function xI(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,h=e.isFixed,p=a.x,y=p===void 0?0:p,m=a.y,v=m===void 0?0:m,S=typeof f=="function"?f({x:y,y:v}):{x:y,y:v};y=S.x,v=S.y;var x=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),C=Ei,E=Ci,O=window;if(c){var $=cm(n),I="clientHeight",W="clientWidth";if($===Po(n)&&($=Jl(n),Ls($).position!=="static"&&s==="absolute"&&(I="scrollHeight",W="scrollWidth")),$=$,i===Ci||(i===Ei||i===Do)&&o===$g){E=Oo;var H=h&&$===O&&O.visualViewport?O.visualViewport.height:$[I];v-=H-r.height,v*=l?1:-1}if(i===Ei||(i===Ci||i===Oo)&&o===$g){C=Do;var j=h&&$===O&&O.visualViewport?O.visualViewport.width:$[W];y-=j-r.width,y*=l?1:-1}}var U=Object.assign({position:s},c&&Eue),le=f===!0?kue({x:y,y:v}):{x:y,y:v};if(y=le.x,v=le.y,l){var se;return Object.assign({},U,(se={},se[E]=w?"0":"",se[C]=x?"0":"",se.transform=(O.devicePixelRatio||1)<=1?"translate("+y+"px, "+v+"px)":"translate3d("+y+"px, "+v+"px, 0)",se))}return Object.assign({},U,(t={},t[E]=w?v+"px":"",t[C]=x?y+"px":"",t.transform="",t))}function Tue(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,c={placement:ja(t.placement),variation:Ed(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,xI(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,xI(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Rue={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Tue,data:{}};var ay={passive:!0};function Aue(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=Po(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(f){f.addEventListener("scroll",n.update,ay)}),s&&l.addEventListener("resize",n.update,ay),function(){o&&c.forEach(function(f){f.removeEventListener("scroll",n.update,ay)}),s&&l.removeEventListener("resize",n.update,ay)}}const Oue={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Aue,data:{}};var Due={left:"right",right:"left",bottom:"top",top:"bottom"};function a0(e){return e.replace(/left|right|bottom|top/g,function(t){return Due[t]})}var $ue={start:"end",end:"start"};function wI(e){return e.replace(/start|end/g,function(t){return $ue[t]})}function CR(e){var t=Po(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function ER(e){return Cd(Jl(e)).left+CR(e).scrollLeft}function Iue(e,t){var n=Po(e),r=Jl(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=Kj();(c||!c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+ER(e),y:l}}function Pue(e){var t,n=Jl(e),r=CR(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Yu(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Yu(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+ER(e),l=-r.scrollTop;return Ls(i||n).direction==="rtl"&&(s+=Yu(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function kR(e){var t=Ls(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Gj(e){return["html","body","#document"].indexOf(Ka(e))>=0?e.ownerDocument.body:Eo(e)&&kR(e)?e:Gj(Xb(e))}function Qh(e,t){var n;t===void 0&&(t=[]);var r=Gj(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Po(r),a=i?[o].concat(o.visualViewport||[],kR(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(Qh(Xb(a)))}function SE(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Lue(e,t){var n=Cd(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 SI(e,t,n){return t===jj?SE(Iue(e,n)):lc(t)?Lue(t,n):SE(Pue(Jl(e)))}function Fue(e){var t=Qh(Xb(e)),n=["absolute","fixed"].indexOf(Ls(e).position)>=0,r=n&&Eo(e)?cm(e):e;return lc(r)?t.filter(function(i){return lc(i)&&Wj(i,r)&&Ka(i)!=="body"}):[]}function Mue(e,t,n,r){var i=t==="clippingParents"?Fue(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,c){var f=SI(e,c,r);return l.top=Yu(f.top,l.top),l.right=i1(f.right,l.right),l.bottom=i1(f.bottom,l.bottom),l.left=Yu(f.left,l.left),l},SI(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 Yj(e){var t=e.reference,n=e.element,r=e.placement,i=r?ja(r):null,o=r?Ed(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case Ci:l={x:a,y:t.y-n.height};break;case Oo:l={x:a,y:t.y+t.height};break;case Do:l={x:t.x+t.width,y:s};break;case Ei:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=i?_R(i):null;if(c!=null){var f=c==="y"?"height":"width";switch(o){case Sd:l[c]=l[c]-(t[f]/2-n[f]/2);break;case $g:l[c]=l[c]+(t[f]/2-n[f]/2);break}}return l}function Ig(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?rue:s,c=n.rootBoundary,f=c===void 0?jj:c,h=n.elementContext,p=h===void 0?nh:h,y=n.altBoundary,m=y===void 0?!1:y,v=n.padding,S=v===void 0?0:v,x=Hj(typeof S!="number"?S:qj(S,um)),w=p===nh?iue:nh,C=e.rects.popper,E=e.elements[m?w:p],O=Mue(lc(E)?E:E.contextElement||Jl(e.elements.popper),l,f,a),$=Cd(e.elements.reference),I=Yj({reference:$,element:C,strategy:"absolute",placement:i}),W=SE(Object.assign({},C,I)),H=p===nh?W:$,j={top:O.top-H.top+x.top,bottom:H.bottom-O.bottom+x.bottom,left:O.left-H.left+x.left,right:H.right-O.right+x.right},U=e.modifiersData.offset;if(p===nh&&U){var le=U[i];Object.keys(j).forEach(function(se){var ie=[Do,Oo].indexOf(se)>=0?1:-1,Q=[Ci,Oo].indexOf(se)>=0?"y":"x";j[se]+=le[Q]*ie})}return j}function Nue(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,c=l===void 0?Uj:l,f=Ed(r),h=f?s?yI:yI.filter(function(m){return Ed(m)===f}):um,p=h.filter(function(m){return c.indexOf(m)>=0});p.length===0&&(p=h);var y=p.reduce(function(m,v){return m[v]=Ig(e,{placement:v,boundary:i,rootBoundary:o,padding:a})[ja(v)],m},{});return Object.keys(y).sort(function(m,v){return y[m]-y[v]})}function Bue(e){if(ja(e)===xR)return[];var t=a0(e);return[wI(e),t,wI(t)]}function zue(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,c=n.padding,f=n.boundary,h=n.rootBoundary,p=n.altBoundary,y=n.flipVariations,m=y===void 0?!0:y,v=n.allowedAutoPlacements,S=t.options.placement,x=ja(S),w=x===S,C=l||(w||!m?[a0(S)]:Bue(S)),E=[S].concat(C).reduce(function(oe,ce){return oe.concat(ja(ce)===xR?Nue(t,{placement:ce,boundary:f,rootBoundary:h,padding:c,flipVariations:m,allowedAutoPlacements:v}):ce)},[]),O=t.rects.reference,$=t.rects.popper,I=new Map,W=!0,H=E[0],j=0;j<E.length;j++){var U=E[j],le=ja(U),se=Ed(U)===Sd,ie=[Ci,Oo].indexOf(le)>=0,Q=ie?"width":"height",L=Ig(t,{placement:U,boundary:f,rootBoundary:h,altBoundary:p,padding:c}),te=ie?se?Do:Ei:se?Oo:Ci;O[Q]>$[Q]&&(te=a0(te));var Z=a0(te),ee=[];if(o&&ee.push(L[le]<=0),s&&ee.push(L[te]<=0,L[Z]<=0),ee.every(function(oe){return oe})){H=U,W=!1;break}I.set(U,ee)}if(W)for(var Y=m?3:1,M=function(ce){var re=E.find(function(Se){var ke=I.get(Se);if(ke)return ke.slice(0,ce).every(function(Ce){return Ce})});if(re)return H=re,"break"},A=Y;A>0;A--){var ne=M(A);if(ne==="break")break}t.placement!==H&&(t.modifiersData[r]._skip=!0,t.placement=H,t.reset=!0)}}const jue={name:"flip",enabled:!0,phase:"main",fn:zue,requiresIfExists:["offset"],data:{_skip:!1}};function _I(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 CI(e){return[Ci,Do,Oo,Ei].some(function(t){return e[t]>=0})}function Uue(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Ig(t,{elementContext:"reference"}),s=Ig(t,{altBoundary:!0}),l=_I(a,r),c=_I(s,i,o),f=CI(l),h=CI(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":h})}const Kue={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Uue};function Wue(e,t,n){var r=ja(e),i=[Ei,Ci].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,[Ei,Do].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function Vue(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=Uj.reduce(function(f,h){return f[h]=Wue(h,t.rects,o),f},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}const Hue={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Vue};function que(e){var t=e.state,n=e.name;t.modifiersData[n]=Yj({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Gue={name:"popperOffsets",enabled:!0,phase:"read",fn:que,data:{}};function Yue(e){return e==="x"?"y":"x"}function Xue(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,c=n.rootBoundary,f=n.altBoundary,h=n.padding,p=n.tether,y=p===void 0?!0:p,m=n.tetherOffset,v=m===void 0?0:m,S=Ig(t,{boundary:l,rootBoundary:c,padding:h,altBoundary:f}),x=ja(t.placement),w=Ed(t.placement),C=!w,E=_R(x),O=Yue(E),$=t.modifiersData.popperOffsets,I=t.rects.reference,W=t.rects.popper,H=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,j=typeof H=="number"?{mainAxis:H,altAxis:H}:Object.assign({mainAxis:0,altAxis:0},H),U=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,le={x:0,y:0};if($){if(o){var se,ie=E==="y"?Ci:Ei,Q=E==="y"?Oo:Do,L=E==="y"?"height":"width",te=$[E],Z=te+S[ie],ee=te-S[Q],Y=y?-W[L]/2:0,M=w===Sd?I[L]:W[L],A=w===Sd?-W[L]:-I[L],ne=t.elements.arrow,oe=y&&ne?SR(ne):{width:0,height:0},ce=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Vj(),re=ce[ie],Se=ce[Q],ke=Jh(0,I[L],oe[L]),Ce=C?I[L]/2-Y-ke-re-j.mainAxis:M-ke-re-j.mainAxis,Pe=C?-I[L]/2+Y+ke+Se+j.mainAxis:A+ke+Se+j.mainAxis,Le=t.elements.arrow&&cm(t.elements.arrow),ze=Le?E==="y"?Le.clientTop||0:Le.clientLeft||0:0,We=(se=U==null?void 0:U[E])!=null?se:0,qe=te+Ce-We-ze,Ve=te+Pe-We,at=Jh(y?i1(Z,qe):Z,te,y?Yu(ee,Ve):ee);$[E]=at,le[E]=at-te}if(s){var Ze,tt=E==="x"?Ci:Ei,gt=E==="x"?Oo:Do,ge=$[O],Te=O==="y"?"height":"width",Ee=ge+S[tt],Ae=ge-S[gt],B=[Ci,Ei].indexOf(x)!==-1,V=(Ze=U==null?void 0:U[O])!=null?Ze:0,he=B?Ee:ge-I[Te]-W[Te]-V+j.altAxis,G=B?ge+I[Te]+W[Te]-V-j.altAxis:Ae,fe=y&&B?xue(he,ge,G):Jh(y?he:Ee,ge,y?G:Ae);$[O]=fe,le[O]=fe-ge}t.modifiersData[r]=le}}const Zue={name:"preventOverflow",enabled:!0,phase:"main",fn:Xue,requiresIfExists:["offset"]};function Jue(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Que(e){return e===Po(e)||!Eo(e)?CR(e):Jue(e)}function ece(e){var t=e.getBoundingClientRect(),n=_d(t.width)/e.offsetWidth||1,r=_d(t.height)/e.offsetHeight||1;return n!==1||r!==1}function tce(e,t,n){n===void 0&&(n=!1);var r=Eo(t),i=Eo(t)&&ece(t),o=Jl(t),a=Cd(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Ka(t)!=="body"||kR(o))&&(s=Que(t)),Eo(t)?(l=Cd(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=ER(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function nce(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 rce(e){var t=nce(e);return hue.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function ice(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function oce(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 EI={placement:"bottom",modifiers:[],strategy:"absolute"};function kI(){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 ace(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?EI:i;return function(s,l,c){c===void 0&&(c=o);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},EI,o),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},h=[],p=!1,y={state:f,setOptions:function(x){var w=typeof x=="function"?x(f.options):x;v(),f.options=Object.assign({},o,f.options,w),f.scrollParents={reference:lc(s)?Qh(s):s.contextElement?Qh(s.contextElement):[],popper:Qh(l)};var C=rce(oce([].concat(r,f.options.modifiers)));return f.orderedModifiers=C.filter(function(E){return E.enabled}),m(),y.update()},forceUpdate:function(){if(!p){var x=f.elements,w=x.reference,C=x.popper;if(kI(w,C)){f.rects={reference:tce(w,cm(C),f.options.strategy==="fixed"),popper:SR(C)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(j){return f.modifiersData[j.name]=Object.assign({},j.data)});for(var E=0;E<f.orderedModifiers.length;E++){if(f.reset===!0){f.reset=!1,E=-1;continue}var O=f.orderedModifiers[E],$=O.fn,I=O.options,W=I===void 0?{}:I,H=O.name;typeof $=="function"&&(f=$({state:f,options:W,name:H,instance:y})||f)}}}},update:ice(function(){return new Promise(function(S){y.forceUpdate(),S(f)})}),destroy:function(){v(),p=!0}};if(!kI(s,l))return y;y.setOptions(c).then(function(S){!p&&c.onFirstUpdate&&c.onFirstUpdate(S)});function m(){f.orderedModifiers.forEach(function(S){var x=S.name,w=S.options,C=w===void 0?{}:w,E=S.effect;if(typeof E=="function"){var O=E({state:f,name:x,instance:y,options:C}),$=function(){};h.push(O||$)}})}function v(){h.forEach(function(S){return S()}),h=[]}return y}}var sce=[Oue,Gue,Rue,vue,Hue,jue,Zue,Cue,Kue],lce=ace({defaultModifiers:sce});function uce(e){return typeof e=="function"?e():e}const cce=T.forwardRef(function(t,n){const{children:r,container:i,disablePortal:o=!1}=t,[a,s]=T.useState(null),l=$n(T.isValidElement(r)?r.ref:null,n);if(Xi(()=>{o||s(uce(i)||document.body)},[i,o]),Xi(()=>{if(a&&!o)return t1(n,a),()=>{t1(n,null)}},[n,a,o]),o){if(T.isValidElement(r)){const c={ref:l};return T.cloneElement(r,c)}return k.jsx(T.Fragment,{children:r})}return k.jsx(T.Fragment,{children:a&&pc.createPortal(r,a)})}),Xj=cce;function fce(e){return wt("MuiPopperUnstyled",e)}bt("MuiPopperUnstyled",["root"]);const dce=["anchorEl","children","component","direction","disablePortal","modifiers","open","ownerState","placement","popperOptions","popperRef","slotProps","slots","TransitionProps"],pce=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function hce(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 _E(e){return typeof e=="function"?e():e}function gce(e){return e.nodeType!==void 0}const mce=()=>_t({root:["root"]},fce,{}),vce={},yce=T.forwardRef(function(t,n){var r;const{anchorEl:i,children:o,component:a,direction:s,disablePortal:l,modifiers:c,open:f,ownerState:h,placement:p,popperOptions:y,popperRef:m,slotProps:v={},slots:S={},TransitionProps:x}=t,w=et(t,dce),C=T.useRef(null),E=$n(C,n),O=T.useRef(null),$=$n(O,m),I=T.useRef($);Xi(()=>{I.current=$},[$]),T.useImperativeHandle(m,()=>O.current,[]);const W=hce(p,s),[H,j]=T.useState(W),[U,le]=T.useState(_E(i));T.useEffect(()=>{O.current&&O.current.forceUpdate()}),T.useEffect(()=>{i&&le(_E(i))},[i]),Xi(()=>{if(!U||!f)return;const te=Y=>{j(Y.placement)};let Z=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:Y})=>{te(Y)}}];c!=null&&(Z=Z.concat(c)),y&&y.modifiers!=null&&(Z=Z.concat(y.modifiers));const ee=lce(U,C.current,z({placement:W},y,{modifiers:Z}));return I.current(ee),()=>{ee.destroy(),I.current(null)}},[U,l,c,f,y,W]);const se={placement:H};x!==null&&(se.TransitionProps=x);const ie=mce(),Q=(r=a??S.root)!=null?r:"div",L=ta({elementType:Q,externalSlotProps:v.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:E},ownerState:z({},t,h),className:ie.root});return k.jsx(Q,z({},L,{children:typeof o=="function"?o(se):o}))}),bce=T.forwardRef(function(t,n){const{anchorEl:r,children:i,container:o,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:f,placement:h="bottom",popperOptions:p=vce,popperRef:y,style:m,transition:v=!1,slotProps:S={},slots:x={}}=t,w=et(t,pce),[C,E]=T.useState(!0),O=()=>{E(!1)},$=()=>{E(!0)};if(!l&&!f&&(!v||C))return null;let I;if(o)I=o;else if(r){const j=_E(r);I=j&&gce(j)?Vn(j).body:Vn(null).body}const W=!f&&l&&(!v||C)?"none":void 0,H=v?{in:f,onEnter:O,onExited:$}:void 0;return k.jsx(Xj,{disablePortal:s,container:I,children:k.jsx(yce,z({anchorEl:r,direction:a,disablePortal:s,modifiers:c,ref:n,open:v?!C:f,placement:h,popperOptions:p,popperRef:y,slotProps:S,slots:x},w,{style:z({position:"fixed",top:0,left:0,display:W},m),TransitionProps:H,children:i}))})}),xce=bce;function wce(e){const t=Vn(e);return t.body===e?Kl(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function eg(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function TI(e){return parseInt(Kl(e).getComputedStyle(e).paddingRight,10)||0}function Sce(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 RI(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,a=>{const s=o.indexOf(a)===-1,l=!Sce(a);s&&l&&eg(a,i)})}function jS(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function _ce(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(wce(r)){const a=fj(Vn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${TI(r)+a}px`;const s=Vn(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${TI(l)+a}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=Vn(r).body;else{const a=r.parentElement,s=Kl(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 Cce(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Ece{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&&eg(t.modalRef,!1);const i=Cce(n);RI(n,t.mount,t.modalRef,i,!0);const o=jS(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=jS(this.containers,o=>o.modals.indexOf(t)!==-1),i=this.containers[r];i.restore||(i.restore=_ce(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=jS(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&&eg(t.modalRef,n),RI(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&&eg(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function kce(e){return wt("MuiModal",e)}bt("MuiModal",["root","hidden"]);const Tce=["children","classes","closeAfterTransition","component","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"],Rce=e=>{const{open:t,exited:n,classes:r}=e;return _t({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},kce,r)};function Ace(e){return typeof e=="function"?e():e}function Oce(e){return e?e.props.hasOwnProperty("in"):!1}const Dce=new Ece,$ce=T.forwardRef(function(t,n){var r,i;const{children:o,classes:a,closeAfterTransition:s=!1,component:l,container:c,disableAutoFocus:f=!1,disableEnforceFocus:h=!1,disableEscapeKeyDown:p=!1,disablePortal:y=!1,disableRestoreFocus:m=!1,disableScrollLock:v=!1,hideBackdrop:S=!1,keepMounted:x=!1,manager:w=Dce,onBackdropClick:C,onClose:E,onKeyDown:O,open:$,onTransitionEnter:I,onTransitionExited:W,slotProps:H={},slots:j={}}=t,U=et(t,Tce),[le,se]=T.useState(!$),ie=T.useRef({}),Q=T.useRef(null),L=T.useRef(null),te=$n(L,n),Z=Oce(o),ee=(r=t["aria-hidden"])!=null?r:!0,Y=()=>Vn(Q.current),M=()=>(ie.current.modalRef=L.current,ie.current.mountNode=Q.current,ie.current),A=()=>{w.mount(M(),{disableScrollLock:v}),L.current&&(L.current.scrollTop=0)},ne=_o(()=>{const tt=Ace(c)||Y().body;w.add(M(),tt),L.current&&A()}),oe=T.useCallback(()=>w.isTopModal(M()),[w]),ce=_o(tt=>{Q.current=tt,!(!tt||!L.current)&&($&&oe()?A():eg(L.current,ee))}),re=T.useCallback(()=>{w.remove(M(),ee)},[w,ee]);T.useEffect(()=>()=>{re()},[re]),T.useEffect(()=>{$?ne():(!Z||!s)&&re()},[$,re,Z,s,ne]);const Se=z({},t,{classes:a,closeAfterTransition:s,disableAutoFocus:f,disableEnforceFocus:h,disableEscapeKeyDown:p,disablePortal:y,disableRestoreFocus:m,disableScrollLock:v,exited:le,hideBackdrop:S,keepMounted:x}),ke=Rce(Se),Ce=()=>{se(!1),I&&I()},Pe=()=>{se(!0),W&&W(),s&&re()},Le=tt=>{tt.target===tt.currentTarget&&(C&&C(tt),E&&E(tt,"backdropClick"))},ze=tt=>{O&&O(tt),!(tt.key!=="Escape"||!oe())&&(p||(tt.stopPropagation(),E&&E(tt,"escapeKeyDown")))},We={};o.props.tabIndex===void 0&&(We.tabIndex="-1"),Z&&(We.onEnter=gE(Ce,o.props.onEnter),We.onExited=gE(Pe,o.props.onExited));const qe=(i=l??j.root)!=null?i:"div",Ve=ta({elementType:qe,externalSlotProps:H.root,externalForwardedProps:U,additionalProps:{ref:te,role:"presentation",onKeyDown:ze},className:ke.root,ownerState:Se}),at=j.backdrop,Ze=ta({elementType:at,externalSlotProps:H.backdrop,additionalProps:{"aria-hidden":!0,onClick:Le,open:$},className:ke.backdrop,ownerState:Se});return!x&&!$&&(!Z||le)?null:k.jsx(Xj,{ref:ce,container:c,disablePortal:y,children:k.jsxs(qe,z({},Ve,{children:[!S&&at?k.jsx(at,z({},Ze)):null,k.jsx(nue,{disableEnforceFocus:h,disableAutoFocus:f,disableRestoreFocus:m,isEnabled:oe,open:$,children:T.cloneElement(o,We)})]}))})}),Ice=$ce,Pce=2;function Zj(e,t){return e-t}function rh(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function AI(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 sy(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 OI(e,t,n){return(e-t)*100/(n-t)}function Lce(e,t,n){return(n-t)*e+t}function Fce(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 Mce(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(Fce(t)))}function DI({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(Zj)}function ly({sliderRef:e,activeIndex:t,setActive:n}){var r,i;const o=Vn(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 Nce={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}%`})}},Bce=e=>e;let uy;function US(){return uy===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?uy=CSS.supports("touch-action","none"):uy=!0),uy}function zce(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:c,onChange:f,onChangeCommitted:h,orientation:p="horizontal",ref:y,scale:m=Bce,step:v=1,tabIndex:S,value:x}=e,w=T.useRef(),[C,E]=T.useState(-1),[O,$]=T.useState(-1),[I,W]=T.useState(!1),H=T.useRef(0),[j,U]=bd({controlled:x,default:n??l,name:"Slider"}),le=f&&((B,V,he)=>{const G=B.nativeEvent||B,fe=new G.constructor(G.type,G);Object.defineProperty(fe,"target",{writable:!0,value:{value:V,name:c}}),f(fe,V,he)}),se=Array.isArray(j);let ie=se?j.slice().sort(Zj):[j];ie=ie.map(B=>rh(B,l,s));const Q=a===!0&&v!==null?[...Array(Math.floor((s-l)/v)+1)].map((B,V)=>({value:l+v*V})):a||[],L=Q.map(B=>B.value),{isFocusVisibleRef:te,onBlur:Z,onFocus:ee,ref:Y}=om(),[M,A]=T.useState(-1),ne=T.useRef(),oe=$n(Y,ne),ce=$n(y,oe),re=B=>V=>{var he;const G=Number(V.currentTarget.getAttribute("data-index"));ee(V),te.current===!0&&A(G),$(G),B==null||(he=B.onFocus)==null||he.call(B,V)},Se=B=>V=>{var he;Z(V),te.current===!1&&A(-1),$(-1),B==null||(he=B.onBlur)==null||he.call(B,V)};Xi(()=>{if(r&&ne.current.contains(document.activeElement)){var B;(B=document.activeElement)==null||B.blur()}},[r]),r&&C!==-1&&E(-1),r&&M!==-1&&A(-1);const ke=B=>V=>{var he;(he=B.onChange)==null||he.call(B,V);const G=Number(V.currentTarget.getAttribute("data-index")),fe=ie[G],ae=L.indexOf(fe);let Re=V.target.valueAsNumber;if(Q&&v==null&&(Re=Re<fe?L[ae-1]:L[ae+1]),Re=rh(Re,l,s),Q&&v==null){const Ie=L.indexOf(ie[G]);Re=Re<ie[G]?L[Ie-1]:L[Ie+1]}if(se){i&&(Re=rh(Re,ie[G-1]||-1/0,ie[G+1]||1/0));const Ie=Re;Re=DI({values:ie,newValue:Re,index:G});let $e=G;i||($e=Re.indexOf(Ie)),ly({sliderRef:ne,activeIndex:$e})}U(Re),A(G),le&&le(V,Re,G),h&&h(V,Re)},Ce=T.useRef();let Pe=p;o&&p==="horizontal"&&(Pe+="-reverse");const Le=({finger:B,move:V=!1})=>{const{current:he}=ne,{width:G,height:fe,bottom:ae,left:Re}=he.getBoundingClientRect();let Ie;Pe.indexOf("vertical")===0?Ie=(ae-B.y)/fe:Ie=(B.x-Re)/G,Pe.indexOf("-reverse")!==-1&&(Ie=1-Ie);let $e;if($e=Lce(Ie,l,s),v)$e=Mce($e,v,l);else{const ot=AI(L,$e);$e=L[ot]}$e=rh($e,l,s);let dt=0;if(se){V?dt=Ce.current:dt=AI(ie,$e),i&&($e=rh($e,ie[dt-1]||-1/0,ie[dt+1]||1/0));const ot=$e;$e=DI({values:ie,newValue:$e,index:dt}),i&&V||(dt=$e.indexOf(ot),Ce.current=dt)}return{newValue:$e,activeIndex:dt}},ze=_o(B=>{const V=sy(B,w);if(!V)return;if(H.current+=1,B.type==="mousemove"&&B.buttons===0){We(B);return}const{newValue:he,activeIndex:G}=Le({finger:V,move:!0});ly({sliderRef:ne,activeIndex:G,setActive:E}),U(he),!I&&H.current>Pce&&W(!0),le&&he!==j&&le(B,he,G)}),We=_o(B=>{const V=sy(B,w);if(W(!1),!V)return;const{newValue:he}=Le({finger:V,move:!0});E(-1),B.type==="touchend"&&$(-1),h&&h(B,he),w.current=void 0,Ve()}),qe=_o(B=>{if(r)return;US()||B.preventDefault();const V=B.changedTouches[0];V!=null&&(w.current=V.identifier);const he=sy(B,w);if(he!==!1){const{newValue:fe,activeIndex:ae}=Le({finger:he});ly({sliderRef:ne,activeIndex:ae,setActive:E}),U(fe),le&&le(B,fe,ae)}H.current=0;const G=Vn(ne.current);G.addEventListener("touchmove",ze),G.addEventListener("touchend",We)}),Ve=T.useCallback(()=>{const B=Vn(ne.current);B.removeEventListener("mousemove",ze),B.removeEventListener("mouseup",We),B.removeEventListener("touchmove",ze),B.removeEventListener("touchend",We)},[We,ze]);T.useEffect(()=>{const{current:B}=ne;return B.addEventListener("touchstart",qe,{passive:US()}),()=>{B.removeEventListener("touchstart",qe,{passive:US()}),Ve()}},[Ve,qe]),T.useEffect(()=>{r&&Ve()},[r,Ve]);const at=B=>V=>{var he;if((he=B.onMouseDown)==null||he.call(B,V),r||V.defaultPrevented||V.button!==0)return;V.preventDefault();const G=sy(V,w);if(G!==!1){const{newValue:ae,activeIndex:Re}=Le({finger:G});ly({sliderRef:ne,activeIndex:Re,setActive:E}),U(ae),le&&le(V,ae,Re)}H.current=0;const fe=Vn(ne.current);fe.addEventListener("mousemove",ze),fe.addEventListener("mouseup",We)},Ze=OI(se?ie[0]:l,l,s),tt=OI(ie[ie.length-1],l,s)-Ze,gt=(B={})=>{const V={onMouseDown:at(B||{})},he=z({},B,V);return z({ref:ce},he)},ge=B=>V=>{var he;(he=B.onMouseOver)==null||he.call(B,V);const G=Number(V.currentTarget.getAttribute("data-index"));$(G)},Te=B=>V=>{var he;(he=B.onMouseLeave)==null||he.call(B,V),$(-1)};return{active:C,axis:Pe,axisProps:Nce,dragging:I,focusedThumbIndex:M,getHiddenInputProps:(B={})=>{var V;const he={onChange:ke(B||{}),onFocus:re(B||{}),onBlur:Se(B||{})},G=z({},B,he);return z({tabIndex:S,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":m(s),"aria-valuemin":m(l),name:c,type:"range",min:e.min,max:e.max,step:(V=e.step)!=null?V:void 0,disabled:r},G,{style:z({},Uoe,{direction:o?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:gt,getThumbProps:(B={})=>{const V={onMouseOver:ge(B||{}),onMouseLeave:Te(B||{})};return z({},B,V)},marks:Q,open:O,range:se,trackLeap:tt,trackOffset:Ze,values:ie}}const jce=["onChange","maxRows","minRows","style","value"];function cy(e,t){return parseInt(e[t],10)||0}const Uce={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function $I(e){return e==null||Object.keys(e).length===0}const Kce=T.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:o=1,style:a,value:s}=t,l=et(t,jce),{current:c}=T.useRef(s!=null),f=T.useRef(null),h=$n(n,f),p=T.useRef(null),y=T.useRef(0),[m,v]=T.useState({}),S=T.useCallback(()=>{const O=f.current,I=Kl(O).getComputedStyle(O);if(I.width==="0px")return{};const W=p.current;W.style.width=I.width,W.value=O.value||t.placeholder||"x",W.value.slice(-1)===`
|
|
64
|
+
`&&(W.value+=" ");const H=I["box-sizing"],j=cy(I,"padding-bottom")+cy(I,"padding-top"),U=cy(I,"border-bottom-width")+cy(I,"border-top-width"),le=W.scrollHeight;W.value="x";const se=W.scrollHeight;let ie=le;o&&(ie=Math.max(Number(o)*se,ie)),i&&(ie=Math.min(Number(i)*se,ie)),ie=Math.max(ie,se);const Q=ie+(H==="border-box"?j+U:0),L=Math.abs(ie-le)<=1;return{outerHeightStyle:Q,overflow:L}},[i,o,t.placeholder]),x=(O,$)=>{const{outerHeightStyle:I,overflow:W}=$;return y.current<20&&(I>0&&Math.abs((O.outerHeightStyle||0)-I)>1||O.overflow!==W)?(y.current+=1,{overflow:W,outerHeightStyle:I}):O},w=T.useCallback(()=>{const O=S();$I(O)||v($=>x($,O))},[S]),C=()=>{const O=S();$I(O)||pc.flushSync(()=>{v($=>x($,O))})};T.useEffect(()=>{const O=JT(()=>{y.current=0,f.current&&C()}),$=Kl(f.current);$.addEventListener("resize",O);let I;return typeof ResizeObserver<"u"&&(I=new ResizeObserver(O),I.observe(f.current)),()=>{O.clear(),$.removeEventListener("resize",O),I&&I.disconnect()}}),Xi(()=>{w()}),T.useEffect(()=>{y.current=0},[s]);const E=O=>{y.current=0,c||w(),r&&r(O)};return k.jsxs(T.Fragment,{children:[k.jsx("textarea",z({value:s,onChange:E,ref:h,rows:o,style:z({height:m.outerHeightStyle,overflow:m.overflow?"hidden":null},a)},l)),k.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:z({},Uce.shadow,a,{padding:0})})]})}),Wce=Kce;function Vce(e){return wt("MuiSvgIcon",e)}bt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Hce=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],qce=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${Be(t)}`,`fontSize${Be(n)}`]};return _t(i,Vce,r)},Gce=je("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Be(n.color)}`],t[`fontSize${Be(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,o,a,s,l,c,f,h,p,y,m,v,S,x,w;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||(c=l.pxToRem)==null?void 0:c.call(l,24))||"1.5rem",large:((f=e.typography)==null||(h=f.pxToRem)==null?void 0:h.call(f,35))||"2.1875rem"}[t.fontSize],color:(p=(y=(e.vars||e).palette)==null||(m=y[t.color])==null?void 0:m.main)!=null?p:{action:(v=(e.vars||e).palette)==null||(S=v.action)==null?void 0:S.active,disabled:(x=(e.vars||e).palette)==null||(w=x.action)==null?void 0:w.disabled,inherit:void 0}[t.color]}}),Jj=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:f=!1,titleAccess:h,viewBox:p="0 0 24 24"}=r,y=et(r,Hce),m=z({},r,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:p}),v={};f||(v.viewBox=p);const S=qce(m);return k.jsxs(Gce,z({as:s,className:Qe(S.root,o),focusable:"false",color:c,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n},v,y,{ownerState:m,children:[i,h?k.jsx("title",{children:h}):null]}))});Jj.muiName="SvgIcon";const CE=Jj;function zs(e,t){function n(r,i){return k.jsx(CE,z({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return n.muiName=CE.muiName,T.memo(T.forwardRef(n))}const Yce={configure:e=>{eR.configure(e)}},Xce=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Be,createChainedFunction:gE,createSvgIcon:zs,debounce:JT,deprecatedPropType:Ooe,isMuiElement:Zf,ownerDocument:Vn,ownerWindow:Kl,requirePropFactory:Doe,setRef:t1,unstable_ClassNameGenerator:Yce,unstable_useEnhancedEffect:Xi,unstable_useId:im,unsupportedProp:Poe,useControlled:bd,useEventCallback:_o,useForkRef:$n,useIsFocusVisible:om},Symbol.toStringTag,{value:"Module"}));function o1(e,t){return o1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},o1(e,t)}function TR(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o1(e,t)}const II={disabled:!1},a1=pt.createContext(null);var Zce=function(t){return t.scrollTop},$h="unmounted",Ou="exited",Du="entering",Sf="entered",EE="exiting",js=function(e){TR(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=Ou,o.appearStatus=Du):l=Sf:r.unmountOnExit||r.mountOnEnter?l=$h:l=Ou,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===$h?{status:Ou}: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!==Du&&a!==Sf&&(o=Du):(a===Du||a===Sf)&&(o=EE)}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===Du){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Ah.findDOMNode(this);a&&Zce(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ou&&this.setState({status:$h})},n.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[Ah.findDOMNode(this),s],c=l[0],f=l[1],h=this.getTimeouts(),p=s?h.appear:h.enter;if(!i&&!a||II.disabled){this.safeSetState({status:Sf},function(){o.props.onEntered(c)});return}this.props.onEnter(c,f),this.safeSetState({status:Du},function(){o.props.onEntering(c,f),o.onTransitionEnd(p,function(){o.safeSetState({status:Sf},function(){o.props.onEntered(c,f)})})})},n.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:Ah.findDOMNode(this);if(!o||II.disabled){this.safeSetState({status:Ou},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:EE},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:Ou},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:Ah.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],c=l[0],f=l[1];this.props.addEndListener(c,f)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===$h)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=et(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return pt.createElement(a1.Provider,{value:null},typeof a=="function"?a(i,s):pt.cloneElement(pt.Children.only(a),s))},t}(pt.Component);js.contextType=a1;js.propTypes={};function df(){}js.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:df,onEntering:df,onEntered:df,onExit:df,onExiting:df,onExited:df};js.UNMOUNTED=$h;js.EXITED=Ou;js.ENTERING=Du;js.ENTERED=Sf;js.EXITING=EE;const Qj=js;function s1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function RR(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 Jce(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 c=r[l][a];s[r[l][a]]=n(c)}s[l]=n(l)}for(a=0;a<i.length;a++)s[i[a]]=n(i[a]);return s}function Ku(e,t,n){return n[t]!=null?n[t]:e.props[t]}function Qce(e,t){return RR(e.children,function(n){return T.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Ku(n,"appear",e),enter:Ku(n,"enter",e),exit:Ku(n,"exit",e)})})}function efe(e,t,n){var r=RR(e.children),i=Jce(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,c=t[o],f=T.isValidElement(c)&&!c.props.in;l&&(!s||f)?i[o]=T.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:Ku(a,"exit",e),enter:Ku(a,"enter",e)}):!l&&s&&!f?i[o]=T.cloneElement(a,{in:!1}):l&&s&&T.isValidElement(c)&&(i[o]=T.cloneElement(a,{onExited:n.bind(null,a),in:c.props.in,exit:Ku(a,"exit",e),enter:Ku(a,"enter",e)}))}}),i}var tfe=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},nfe={component:"div",childFactory:function(t){return t}},AR=function(e){TR(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=o.handleExited.bind(s1(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?Qce(i,s):efe(i,a,s),firstRender:!1}},n.handleExited=function(i,o){var a=RR(this.props.children);i.key in a||(i.props.onExited&&i.props.onExited(o),this.mounted&&this.setState(function(s){var l=z({},s.children);return delete l[i.key],{children:l}}))},n.render=function(){var i=this.props,o=i.component,a=i.childFactory,s=et(i,["component","childFactory"]),l=this.state.contextValue,c=tfe(this.state.children).map(a);return delete s.appear,delete s.enter,delete s.exit,o===null?pt.createElement(a1.Provider,{value:l},c):pt.createElement(a1.Provider,{value:l},pt.createElement(o,s,c))},t}(pt.Component);AR.propTypes={};AR.defaultProps=nfe;const rfe=AR,e5=e=>e.scrollTop;function l1(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 ife(e){return wt("MuiPaper",e)}bt("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 ofe=["className","component","elevation","square","variant"],afe=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,o={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return _t(o,ife,i)},sfe=je("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 z({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"&&z({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Jt("#fff",gI(t.elevation))}, ${Jt("#fff",gI(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),lfe=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiPaper"}),{className:i,component:o="div",elevation:a=1,square:s=!1,variant:l="elevation"}=r,c=et(r,ofe),f=z({},r,{component:o,elevation:a,square:s,variant:l}),h=afe(f);return k.jsx(sfe,z({as:o,ownerState:f,className:Qe(h.root,i),ref:n},c))}),Md=lfe;function ufe(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:a,in:s,onExited:l,timeout:c}=e,[f,h]=T.useState(!1),p=Qe(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),y={width:a,height:a,top:-(a/2)+o,left:-(a/2)+i},m=Qe(n.child,f&&n.childLeaving,r&&n.childPulsate);return!s&&!f&&h(!0),T.useEffect(()=>{if(!s&&l!=null){const v=setTimeout(l,c);return()=>{clearTimeout(v)}}},[l,s,c]),k.jsx("span",{className:p,style:y,children:k.jsx("span",{className:m})})}const cfe=bt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),mo=cfe,ffe=["center","classes","className"];let Zb=e=>e,PI,LI,FI,MI;const kE=550,dfe=80,pfe=sm(PI||(PI=Zb`
|
|
65
|
+
0% {
|
|
66
|
+
transform: scale(0);
|
|
67
|
+
opacity: 0.1;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
100% {
|
|
71
|
+
transform: scale(1);
|
|
72
|
+
opacity: 0.3;
|
|
73
|
+
}
|
|
74
|
+
`)),hfe=sm(LI||(LI=Zb`
|
|
75
|
+
0% {
|
|
76
|
+
opacity: 1;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
100% {
|
|
80
|
+
opacity: 0;
|
|
81
|
+
}
|
|
82
|
+
`)),gfe=sm(FI||(FI=Zb`
|
|
83
|
+
0% {
|
|
84
|
+
transform: scale(1);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
50% {
|
|
88
|
+
transform: scale(0.92);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
100% {
|
|
92
|
+
transform: scale(1);
|
|
93
|
+
}
|
|
94
|
+
`)),mfe=je("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),vfe=je(ufe,{name:"MuiTouchRipple",slot:"Ripple"})(MI||(MI=Zb`
|
|
95
|
+
opacity: 0;
|
|
96
|
+
position: absolute;
|
|
97
|
+
|
|
98
|
+
&.${0} {
|
|
99
|
+
opacity: 0.3;
|
|
100
|
+
transform: scale(1);
|
|
101
|
+
animation-name: ${0};
|
|
102
|
+
animation-duration: ${0}ms;
|
|
103
|
+
animation-timing-function: ${0};
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&.${0} {
|
|
107
|
+
animation-duration: ${0}ms;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
& .${0} {
|
|
111
|
+
opacity: 1;
|
|
112
|
+
display: block;
|
|
113
|
+
width: 100%;
|
|
114
|
+
height: 100%;
|
|
115
|
+
border-radius: 50%;
|
|
116
|
+
background-color: currentColor;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
& .${0} {
|
|
120
|
+
opacity: 0;
|
|
121
|
+
animation-name: ${0};
|
|
122
|
+
animation-duration: ${0}ms;
|
|
123
|
+
animation-timing-function: ${0};
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
& .${0} {
|
|
127
|
+
position: absolute;
|
|
128
|
+
/* @noflip */
|
|
129
|
+
left: 0px;
|
|
130
|
+
top: 0;
|
|
131
|
+
animation-name: ${0};
|
|
132
|
+
animation-duration: 2500ms;
|
|
133
|
+
animation-timing-function: ${0};
|
|
134
|
+
animation-iteration-count: infinite;
|
|
135
|
+
animation-delay: 200ms;
|
|
136
|
+
}
|
|
137
|
+
`),mo.rippleVisible,pfe,kE,({theme:e})=>e.transitions.easing.easeInOut,mo.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,mo.child,mo.childLeaving,hfe,kE,({theme:e})=>e.transitions.easing.easeInOut,mo.childPulsate,gfe,({theme:e})=>e.transitions.easing.easeInOut),yfe=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:a}=r,s=et(r,ffe),[l,c]=T.useState([]),f=T.useRef(0),h=T.useRef(null);T.useEffect(()=>{h.current&&(h.current(),h.current=null)},[l]);const p=T.useRef(!1),y=T.useRef(null),m=T.useRef(null),v=T.useRef(null);T.useEffect(()=>()=>{clearTimeout(y.current)},[]);const S=T.useCallback(E=>{const{pulsate:O,rippleX:$,rippleY:I,rippleSize:W,cb:H}=E;c(j=>[...j,k.jsx(vfe,{classes:{ripple:Qe(o.ripple,mo.ripple),rippleVisible:Qe(o.rippleVisible,mo.rippleVisible),ripplePulsate:Qe(o.ripplePulsate,mo.ripplePulsate),child:Qe(o.child,mo.child),childLeaving:Qe(o.childLeaving,mo.childLeaving),childPulsate:Qe(o.childPulsate,mo.childPulsate)},timeout:kE,pulsate:O,rippleX:$,rippleY:I,rippleSize:W},f.current)]),f.current+=1,h.current=H},[o]),x=T.useCallback((E={},O={},$=()=>{})=>{const{pulsate:I=!1,center:W=i||O.pulsate,fakeElement:H=!1}=O;if((E==null?void 0:E.type)==="mousedown"&&p.current){p.current=!1;return}(E==null?void 0:E.type)==="touchstart"&&(p.current=!0);const j=H?null:v.current,U=j?j.getBoundingClientRect():{width:0,height:0,left:0,top:0};let le,se,ie;if(W||E===void 0||E.clientX===0&&E.clientY===0||!E.clientX&&!E.touches)le=Math.round(U.width/2),se=Math.round(U.height/2);else{const{clientX:Q,clientY:L}=E.touches&&E.touches.length>0?E.touches[0]:E;le=Math.round(Q-U.left),se=Math.round(L-U.top)}if(W)ie=Math.sqrt((2*U.width**2+U.height**2)/3),ie%2===0&&(ie+=1);else{const Q=Math.max(Math.abs((j?j.clientWidth:0)-le),le)*2+2,L=Math.max(Math.abs((j?j.clientHeight:0)-se),se)*2+2;ie=Math.sqrt(Q**2+L**2)}E!=null&&E.touches?m.current===null&&(m.current=()=>{S({pulsate:I,rippleX:le,rippleY:se,rippleSize:ie,cb:$})},y.current=setTimeout(()=>{m.current&&(m.current(),m.current=null)},dfe)):S({pulsate:I,rippleX:le,rippleY:se,rippleSize:ie,cb:$})},[i,S]),w=T.useCallback(()=>{x({},{pulsate:!0})},[x]),C=T.useCallback((E,O)=>{if(clearTimeout(y.current),(E==null?void 0:E.type)==="touchend"&&m.current){m.current(),m.current=null,y.current=setTimeout(()=>{C(E,O)});return}m.current=null,c($=>$.length>0?$.slice(1):$),h.current=O},[]);return T.useImperativeHandle(n,()=>({pulsate:w,start:x,stop:C}),[w,x,C]),k.jsx(mfe,z({className:Qe(mo.root,o.root,a),ref:v},s,{children:k.jsx(rfe,{component:null,exit:!0,children:l})}))}),bfe=yfe;function xfe(e){return wt("MuiButtonBase",e)}const wfe=bt("MuiButtonBase",["root","disabled","focusVisible"]),Sfe=wfe,_fe=["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"],Cfe=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=_t({root:["root",t&&"disabled",n&&"focusVisible"]},xfe,i);return n&&r&&(a.root+=` ${r}`),a},Efe=je("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"},[`&.${Sfe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),kfe=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:a,className:s,component:l="button",disabled:c=!1,disableRipple:f=!1,disableTouchRipple:h=!1,focusRipple:p=!1,LinkComponent:y="a",onBlur:m,onClick:v,onContextMenu:S,onDragLeave:x,onFocus:w,onFocusVisible:C,onKeyDown:E,onKeyUp:O,onMouseDown:$,onMouseLeave:I,onMouseUp:W,onTouchEnd:H,onTouchMove:j,onTouchStart:U,tabIndex:le=0,TouchRippleProps:se,touchRippleRef:ie,type:Q}=r,L=et(r,_fe),te=T.useRef(null),Z=T.useRef(null),ee=$n(Z,ie),{isFocusVisibleRef:Y,onFocus:M,onBlur:A,ref:ne}=om(),[oe,ce]=T.useState(!1);c&&oe&&ce(!1),T.useImperativeHandle(i,()=>({focusVisible:()=>{ce(!0),te.current.focus()}}),[]);const[re,Se]=T.useState(!1);T.useEffect(()=>{Se(!0)},[]);const ke=re&&!f&&!c;T.useEffect(()=>{oe&&p&&!f&&re&&Z.current.pulsate()},[f,p,oe,re]);function Ce(ae,Re,Ie=h){return _o($e=>(Re&&Re($e),!Ie&&Z.current&&Z.current[ae]($e),!0))}const Pe=Ce("start",$),Le=Ce("stop",S),ze=Ce("stop",x),We=Ce("stop",W),qe=Ce("stop",ae=>{oe&&ae.preventDefault(),I&&I(ae)}),Ve=Ce("start",U),at=Ce("stop",H),Ze=Ce("stop",j),tt=Ce("stop",ae=>{A(ae),Y.current===!1&&ce(!1),m&&m(ae)},!1),gt=_o(ae=>{te.current||(te.current=ae.currentTarget),M(ae),Y.current===!0&&(ce(!0),C&&C(ae)),w&&w(ae)}),ge=()=>{const ae=te.current;return l&&l!=="button"&&!(ae.tagName==="A"&&ae.href)},Te=T.useRef(!1),Ee=_o(ae=>{p&&!Te.current&&oe&&Z.current&&ae.key===" "&&(Te.current=!0,Z.current.stop(ae,()=>{Z.current.start(ae)})),ae.target===ae.currentTarget&&ge()&&ae.key===" "&&ae.preventDefault(),E&&E(ae),ae.target===ae.currentTarget&&ge()&&ae.key==="Enter"&&!c&&(ae.preventDefault(),v&&v(ae))}),Ae=_o(ae=>{p&&ae.key===" "&&Z.current&&oe&&!ae.defaultPrevented&&(Te.current=!1,Z.current.stop(ae,()=>{Z.current.pulsate(ae)})),O&&O(ae),v&&ae.target===ae.currentTarget&&ge()&&ae.key===" "&&!ae.defaultPrevented&&v(ae)});let B=l;B==="button"&&(L.href||L.to)&&(B=y);const V={};B==="button"?(V.type=Q===void 0?"button":Q,V.disabled=c):(!L.href&&!L.to&&(V.role="button"),c&&(V["aria-disabled"]=c));const he=$n(n,ne,te),G=z({},r,{centerRipple:o,component:l,disabled:c,disableRipple:f,disableTouchRipple:h,focusRipple:p,tabIndex:le,focusVisible:oe}),fe=Cfe(G);return k.jsxs(Efe,z({as:B,className:Qe(fe.root,s),ownerState:G,onBlur:tt,onClick:v,onContextMenu:Le,onFocus:gt,onKeyDown:Ee,onKeyUp:Ae,onMouseDown:Pe,onMouseLeave:qe,onMouseUp:We,onDragLeave:ze,onTouchEnd:at,onTouchMove:Ze,onTouchStart:Ve,ref:he,tabIndex:c?-1:le,type:Q},V,L,{children:[a,ke?k.jsx(bfe,z({ref:ee,center:o},se)):null]}))}),uc=kfe;function Tfe(e){return wt("MuiAlert",e)}const Rfe=bt("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),NI=Rfe;function Afe(e){return wt("MuiIconButton",e)}const Ofe=bt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Dfe=Ofe,$fe=["edge","children","className","color","disabled","disableFocusRipple","size"],Ife=e=>{const{classes:t,disabled:n,color:r,edge:i,size:o}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${Be(r)}`,i&&`edge${Be(i)}`,`size${Be(o)}`]};return _t(a,Afe,t)},Pfe=je(uc,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Be(n.color)}`],n.edge&&t[`edge${Be(n.edge)}`],t[`size${Be(n.size)}`]]}})(({theme:e,ownerState:t})=>z({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})`:Jt(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 z({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&z({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":z({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Jt(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)},{[`&.${Dfe.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Lfe=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiIconButton"}),{edge:i=!1,children:o,className:a,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:f="medium"}=r,h=et(r,$fe),p=z({},r,{edge:i,color:s,disabled:l,disableFocusRipple:c,size:f}),y=Ife(p);return k.jsx(Pfe,z({className:Qe(y.root,a),centerRipple:!0,focusRipple:!c,disabled:l,ref:n,ownerState:p},h,{children:o}))}),Br=Lfe,Ffe=zs(k.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"),Mfe=zs(k.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),Nfe=zs(k.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"),Bfe=zs(k.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"),zfe=zs(k.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"),jfe=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],Ufe=e=>{const{variant:t,color:n,severity:r,classes:i}=e,o={root:["root",`${t}${Be(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return _t(o,Tfe,i)},Kfe=je(Md,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Be(n.color||n.severity)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?Og:Dg,r=e.palette.mode==="light"?Dg:Og,i=t.color||t.severity;return z({},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),[`& .${NI.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}`,[`& .${NI.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}},i&&t.variant==="filled"&&z({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)}))}),Wfe=je("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),Vfe=je("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),BI=je("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),zI={success:k.jsx(Ffe,{fontSize:"inherit"}),warning:k.jsx(Mfe,{fontSize:"inherit"}),error:k.jsx(Nfe,{fontSize:"inherit"}),info:k.jsx(Bfe,{fontSize:"inherit"})},Hfe=T.forwardRef(function(t,n){var r,i,o,a,s,l;const c=Ct({props:t,name:"MuiAlert"}),{action:f,children:h,className:p,closeText:y="Close",color:m,components:v={},componentsProps:S={},icon:x,iconMapping:w=zI,onClose:C,role:E="alert",severity:O="success",slotProps:$={},slots:I={},variant:W="standard"}=c,H=et(c,jfe),j=z({},c,{color:m,severity:O,variant:W}),U=Ufe(j),le=(r=(i=I.closeButton)!=null?i:v.CloseButton)!=null?r:Br,se=(o=(a=I.closeIcon)!=null?a:v.CloseIcon)!=null?o:zfe,ie=(s=$.closeButton)!=null?s:S.closeButton,Q=(l=$.closeIcon)!=null?l:S.closeIcon;return k.jsxs(Kfe,z({role:E,elevation:0,ownerState:j,className:Qe(U.root,p),ref:n},H,{children:[x!==!1?k.jsx(Wfe,{ownerState:j,className:U.icon,children:x||w[O]||zI[O]}):null,k.jsx(Vfe,{ownerState:j,className:U.message,children:h}),f!=null?k.jsx(BI,{ownerState:j,className:U.action,children:f}):null,f==null&&C?k.jsx(BI,{ownerState:j,className:U.action,children:k.jsx(le,z({size:"small","aria-label":y,title:y,color:"inherit",onClick:C},ie,{children:k.jsx(se,z({fontSize:"small"},Q))}))}):null]}))}),Wl=Hfe;function qfe(e){return wt("MuiTypography",e)}bt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Gfe=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Yfe=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:a}=e,s={root:["root",o,e.align!=="inherit"&&`align${Be(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return _t(s,qfe,a)},Xfe=je("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${Be(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>z({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})),jI={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Zfe={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Jfe=e=>Zfe[e]||e,Qfe=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiTypography"}),i=Jfe(r.color),o=gR(z({},r,{color:i})),{align:a="inherit",className:s,component:l,gutterBottom:c=!1,noWrap:f=!1,paragraph:h=!1,variant:p="body1",variantMapping:y=jI}=o,m=et(o,Gfe),v=z({},o,{align:a,color:i,className:s,component:l,gutterBottom:c,noWrap:f,paragraph:h,variant:p,variantMapping:y}),S=l||(h?"p":y[p]||jI[p])||"span",x=Yfe(v);return k.jsx(Xfe,z({as:S,ref:n,ownerState:v,className:Qe(x.root,s)},m))}),fn=Qfe;function ede(e){return wt("MuiAlertTitle",e)}bt("MuiAlertTitle",["root"]);const tde=["className"],nde=e=>{const{classes:t}=e;return _t({root:["root"]},ede,t)},rde=je(fn,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2})),ide=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiAlertTitle"}),{className:i}=r,o=et(r,tde),a=r,s=nde(a);return k.jsx(rde,z({gutterBottom:!0,component:"div",ownerState:a,ref:n,className:Qe(s.root,i)},o))}),ode=ide;function ade(e){return wt("MuiAppBar",e)}bt("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const sde=["className","color","enableColorOnDark","position"],lde=e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${Be(t)}`,`position${Be(n)}`]};return _t(i,ade,r)},fy=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,ude=je(Md,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Be(n.position)}`],t[`color${Be(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return z({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&&z({},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"&&z({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&z({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:fy(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:fy(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:fy(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:fy(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"}))}),cde=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiAppBar"}),{className:i,color:o="primary",enableColorOnDark:a=!1,position:s="fixed"}=r,l=et(r,sde),c=z({},r,{color:o,position:s,enableColorOnDark:a}),f=lde(c);return k.jsx(ude,z({square:!0,component:"header",ownerState:c,elevation:4,className:Qe(f.root,i,s==="fixed"&&"mui-fixed"),ref:n},l))}),fde=cde,dde=["components","componentsProps","slots","slotProps"],pde=je(xce,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),hde=T.forwardRef(function(t,n){var r;const i=vR(),o=Ct({props:t,name:"MuiPopper"}),{components:a,componentsProps:s,slots:l,slotProps:c}=o,f=et(o,dde),h=(r=l==null?void 0:l.root)!=null?r:a==null?void 0:a.Root;return k.jsx(pde,z({direction:i==null?void 0:i.direction,slots:{root:h},slotProps:c??s},f,{ref:n}))}),t5=hde;function gde(e){return wt("MuiListSubheader",e)}bt("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const mde=["className","color","component","disableGutters","disableSticky","inset"],vde=e=>{const{classes:t,color:n,disableGutters:r,inset:i,disableSticky:o}=e,a={root:["root",n!=="default"&&`color${Be(n)}`,!r&&"gutters",i&&"inset",!o&&"sticky"]};return _t(a,gde,t)},yde=je("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Be(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>z({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})),bde=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiListSubheader"}),{className:i,color:o="default",component:a="li",disableGutters:s=!1,disableSticky:l=!1,inset:c=!1}=r,f=et(r,mde),h=z({},r,{color:o,component:a,disableGutters:s,disableSticky:l,inset:c}),p=vde(h);return k.jsx(yde,z({as:a,className:Qe(p.root,i),ref:n,ownerState:h},f))}),n5=bde,xde=zs(k.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 wde(e){return wt("MuiChip",e)}const Sde=bt("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"]),rn=Sde,_de=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],Cde=e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:o,onDelete:a,clickable:s,variant:l}=e,c={root:["root",l,n&&"disabled",`size${Be(r)}`,`color${Be(i)}`,s&&"clickable",s&&`clickableColor${Be(i)}`,a&&"deletable",a&&`deletableColor${Be(i)}`,`${l}${Be(i)}`],label:["label",`label${Be(r)}`],avatar:["avatar",`avatar${Be(r)}`,`avatarColor${Be(i)}`],icon:["icon",`icon${Be(r)}`,`iconColor${Be(o)}`],deleteIcon:["deleteIcon",`deleteIcon${Be(r)}`,`deleteIconColor${Be(i)}`,`deleteIcon${Be(l)}Color${Be(i)}`]};return _t(c,wde,t)},Ede=je("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[{[`& .${rn.avatar}`]:t.avatar},{[`& .${rn.avatar}`]:t[`avatar${Be(s)}`]},{[`& .${rn.avatar}`]:t[`avatarColor${Be(r)}`]},{[`& .${rn.icon}`]:t.icon},{[`& .${rn.icon}`]:t[`icon${Be(s)}`]},{[`& .${rn.icon}`]:t[`iconColor${Be(i)}`]},{[`& .${rn.deleteIcon}`]:t.deleteIcon},{[`& .${rn.deleteIcon}`]:t[`deleteIcon${Be(s)}`]},{[`& .${rn.deleteIcon}`]:t[`deleteIconColor${Be(r)}`]},{[`& .${rn.deleteIcon}`]:t[`deleteIcon${Be(l)}Color${Be(r)}`]},t.root,t[`size${Be(s)}`],t[`color${Be(r)}`],o&&t.clickable,o&&r!=="default"&&t[`clickableColor${Be(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${Be(r)}`],t[l],t[`${l}${Be(r)}`]]}})(({theme:e,ownerState:t})=>{const n=Jt(e.palette.text.primary,.26),r=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return z({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",[`&.${rn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${rn.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:r,fontSize:e.typography.pxToRem(12)},[`& .${rn.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${rn.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${rn.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${rn.icon}`]:z({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&z({color:e.vars?e.vars.palette.Chip.defaultIconColor:r},t.color!=="default"&&{color:"inherit"})),[`& .${rn.deleteIcon}`]:z({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)`:Jt(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)`:Jt(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&&{[`&.${rn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Jt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${rn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>z({},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}))`:Jt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${rn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Jt(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, &.${rn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>z({},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]}`,[`&.${rn.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${rn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${rn.avatar}`]:{marginLeft:4},[`& .${rn.avatarSmall}`]:{marginLeft:2},[`& .${rn.icon}`]:{marginLeft:4},[`& .${rn.iconSmall}`]:{marginLeft:2},[`& .${rn.deleteIcon}`]:{marginRight:5},[`& .${rn.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)`:Jt(e.palette[t.color].main,.7)}`,[`&.${rn.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Jt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${rn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Jt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${rn.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Jt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),kde=je("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Be(r)}`]]}})(({ownerState:e})=>z({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.size==="small"&&{paddingLeft:8,paddingRight:8}));function UI(e){return e.key==="Backspace"||e.key==="Delete"}const Tde=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiChip"}),{avatar:i,className:o,clickable:a,color:s="default",component:l,deleteIcon:c,disabled:f=!1,icon:h,label:p,onClick:y,onDelete:m,onKeyDown:v,onKeyUp:S,size:x="medium",variant:w="filled",tabIndex:C,skipFocusWhenDisabled:E=!1}=r,O=et(r,_de),$=T.useRef(null),I=$n($,n),W=ee=>{ee.stopPropagation(),m&&m(ee)},H=ee=>{ee.currentTarget===ee.target&&UI(ee)&&ee.preventDefault(),v&&v(ee)},j=ee=>{ee.currentTarget===ee.target&&(m&&UI(ee)?m(ee):ee.key==="Escape"&&$.current&&$.current.blur()),S&&S(ee)},U=a!==!1&&y?!0:a,le=U||m?uc:l||"div",se=z({},r,{component:le,disabled:f,size:x,color:s,iconColor:T.isValidElement(h)&&h.props.color||s,onDelete:!!m,clickable:U,variant:w}),ie=Cde(se),Q=le===uc?z({component:l||"div",focusVisibleClassName:ie.focusVisible},m&&{disableRipple:!0}):{};let L=null;m&&(L=c&&T.isValidElement(c)?T.cloneElement(c,{className:Qe(c.props.className,ie.deleteIcon),onClick:W}):k.jsx(xde,{className:Qe(ie.deleteIcon),onClick:W}));let te=null;i&&T.isValidElement(i)&&(te=T.cloneElement(i,{className:Qe(ie.avatar,i.props.className)}));let Z=null;return h&&T.isValidElement(h)&&(Z=T.cloneElement(h,{className:Qe(ie.icon,h.props.className)})),k.jsxs(Ede,z({as:le,className:Qe(ie.root,o),disabled:U&&f?!0:void 0,onClick:y,onKeyDown:H,onKeyUp:j,ref:I,tabIndex:E&&f?-1:C,ownerState:se},Q,O,{children:[te||Z,k.jsx(kde,{className:Qe(ie.label),ownerState:se,children:p}),L]}))}),r5=Tde;function Nd({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 Rde=T.createContext(void 0),Jb=Rde;function Ql(){return T.useContext(Jb)}function Ade(e){return k.jsx(Gae,z({},e,{defaultTheme:Yb}))}function KI(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function OR(e,t=!1){return e&&(KI(e.value)&&e.value!==""||t&&KI(e.defaultValue)&&e.defaultValue!=="")}function Ode(e){return e.startAdornment}function Dde(e){return wt("MuiInputBase",e)}const $de=bt("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),kd=$de,Ide=["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"],Qb=(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${Be(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},ex=(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]},Pde=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:o,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:f,readOnly:h,size:p,startAdornment:y,type:m}=e,v={root:["root",`color${Be(n)}`,r&&"disabled",i&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p==="small"&&"sizeSmall",f&&"multiline",y&&"adornedStart",o&&"adornedEnd",c&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",m==="search"&&"inputTypeSearch",f&&"inputMultiline",p==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",y&&"inputAdornedStart",o&&"inputAdornedEnd",h&&"readOnly"]};return _t(v,Dde,t)},tx=je("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Qb})(({theme:e,ownerState:t})=>z({},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",[`&.${kd.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&z({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),nx=je("input",{name:"MuiInputBase",slot:"Input",overridesResolver:ex})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=z({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 z({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] + .${kd.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},[`&.${kd.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"})}),Lde=k.jsx(Ade,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Fde=T.forwardRef(function(t,n){var r;const i=Ct({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:s,className:l,components:c={},componentsProps:f={},defaultValue:h,disabled:p,disableInjectingGlobalStyles:y,endAdornment:m,fullWidth:v=!1,id:S,inputComponent:x="input",inputProps:w={},inputRef:C,maxRows:E,minRows:O,multiline:$=!1,name:I,onBlur:W,onChange:H,onClick:j,onFocus:U,onKeyDown:le,onKeyUp:se,placeholder:ie,readOnly:Q,renderSuffix:L,rows:te,slotProps:Z={},slots:ee={},startAdornment:Y,type:M="text",value:A}=i,ne=et(i,Ide),oe=w.value!=null?w.value:A,{current:ce}=T.useRef(oe!=null),re=T.useRef(),Se=T.useCallback(fe=>{},[]),ke=$n(re,C,w.ref,Se),[Ce,Pe]=T.useState(!1),Le=Ql(),ze=Nd({props:i,muiFormControl:Le,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ze.focused=Le?Le.focused:Ce,T.useEffect(()=>{!Le&&p&&Ce&&(Pe(!1),W&&W())},[Le,p,Ce,W]);const We=Le&&Le.onFilled,qe=Le&&Le.onEmpty,Ve=T.useCallback(fe=>{OR(fe)?We&&We():qe&&qe()},[We,qe]);Xi(()=>{ce&&Ve({value:oe})},[oe,Ve,ce]);const at=fe=>{if(ze.disabled){fe.stopPropagation();return}U&&U(fe),w.onFocus&&w.onFocus(fe),Le&&Le.onFocus?Le.onFocus(fe):Pe(!0)},Ze=fe=>{W&&W(fe),w.onBlur&&w.onBlur(fe),Le&&Le.onBlur?Le.onBlur(fe):Pe(!1)},tt=(fe,...ae)=>{if(!ce){const Re=fe.target||re.current;if(Re==null)throw new Error(Ul(1));Ve({value:Re.value})}w.onChange&&w.onChange(fe,...ae),H&&H(fe,...ae)};T.useEffect(()=>{Ve(re.current)},[]);const gt=fe=>{re.current&&fe.currentTarget===fe.target&&re.current.focus(),j&&j(fe)};let ge=x,Te=w;$&&ge==="input"&&(te?Te=z({type:void 0,minRows:te,maxRows:te},Te):Te=z({type:void 0,maxRows:E,minRows:O},Te),ge=Wce);const Ee=fe=>{Ve(fe.animationName==="mui-auto-fill-cancel"?re.current:{value:"x"})};T.useEffect(()=>{Le&&Le.setAdornedStart(!!Y)},[Le,Y]);const Ae=z({},i,{color:ze.color||"primary",disabled:ze.disabled,endAdornment:m,error:ze.error,focused:ze.focused,formControl:Le,fullWidth:v,hiddenLabel:ze.hiddenLabel,multiline:$,size:ze.size,startAdornment:Y,type:M}),B=Pde(Ae),V=ee.root||c.Root||tx,he=Z.root||f.root||{},G=ee.input||c.Input||nx;return Te=z({},Te,(r=Z.input)!=null?r:f.input),k.jsxs(T.Fragment,{children:[!y&&Lde,k.jsxs(V,z({},he,!za(V)&&{ownerState:z({},Ae,he.ownerState)},{ref:n,onClick:gt},ne,{className:Qe(B.root,he.className,l),children:[Y,k.jsx(Jb.Provider,{value:null,children:k.jsx(G,z({ownerState:Ae,"aria-invalid":ze.error,"aria-describedby":o,autoComplete:a,autoFocus:s,defaultValue:h,disabled:ze.disabled,id:S,onAnimationStart:Ee,name:I,placeholder:ie,readOnly:Q,required:ze.required,rows:te,value:oe,onKeyDown:le,onKeyUp:se,type:M},Te,!za(G)&&{as:ge,ownerState:z({},Ae,Te.ownerState)},{ref:ke,className:Qe(B.input,Te.className),onBlur:Ze,onChange:tt,onFocus:at}))}),m,L?L(z({},ze,{startAdornment:Y})):null]}))]})}),rx=Fde;function Mde(e){return wt("MuiInput",e)}const Nde=z({},kd,bt("MuiInput",["root","underline","input"])),ih=Nde;function Bde(e){return wt("MuiOutlinedInput",e)}const zde=z({},kd,bt("MuiOutlinedInput",["root","notchedOutline","input"])),ul=zde;function jde(e){return wt("MuiFilledInput",e)}const Ude=z({},kd,bt("MuiFilledInput",["root","underline","input"])),Su=Ude,Kde=zs(k.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Wde=zs(k.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 Vde(e){return wt("MuiAvatar",e)}bt("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const Hde=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],qde=e=>{const{classes:t,variant:n,colorDefault:r}=e;return _t({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},Vde,t)},Gde=je("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})=>z({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&&z({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]}))),Yde=je("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Xde=je(Wde,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function Zde({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 Jde=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiAvatar"}),{alt:i,children:o,className:a,component:s="div",imgProps:l,sizes:c,src:f,srcSet:h,variant:p="circular"}=r,y=et(r,Hde);let m=null;const v=Zde(z({},l,{src:f,srcSet:h})),S=f||h,x=S&&v!=="error",w=z({},r,{colorDefault:!x,component:s,variant:p}),C=qde(w);return x?m=k.jsx(Yde,z({alt:i,src:f,srcSet:h,sizes:c,ownerState:w,className:C.img},l)):o!=null?m=o:S&&i?m=i[0]:m=k.jsx(Xde,{ownerState:w,className:C.fallback}),k.jsx(Gde,z({as:s,ownerState:w,className:Qe(C.root,a),ref:n},y,{children:m}))}),TE=Jde,Qde=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],epe={entering:{opacity:1},entered:{opacity:1}},tpe=T.forwardRef(function(t,n){const r=fa(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:s,easing:l,in:c,onEnter:f,onEntered:h,onEntering:p,onExit:y,onExited:m,onExiting:v,style:S,timeout:x=i,TransitionComponent:w=Qj}=t,C=et(t,Qde),E=T.useRef(null),O=$n(E,s.ref,n),$=ie=>Q=>{if(ie){const L=E.current;Q===void 0?ie(L):ie(L,Q)}},I=$(p),W=$((ie,Q)=>{e5(ie);const L=l1({style:S,timeout:x,easing:l},{mode:"enter"});ie.style.webkitTransition=r.transitions.create("opacity",L),ie.style.transition=r.transitions.create("opacity",L),f&&f(ie,Q)}),H=$(h),j=$(v),U=$(ie=>{const Q=l1({style:S,timeout:x,easing:l},{mode:"exit"});ie.style.webkitTransition=r.transitions.create("opacity",Q),ie.style.transition=r.transitions.create("opacity",Q),y&&y(ie)}),le=$(m),se=ie=>{o&&o(E.current,ie)};return k.jsx(w,z({appear:a,in:c,nodeRef:E,onEnter:W,onEntered:H,onEntering:I,onExit:U,onExited:le,onExiting:j,addEndListener:se,timeout:x},C,{children:(ie,Q)=>T.cloneElement(s,z({style:z({opacity:0,visibility:ie==="exited"&&!c?"hidden":void 0},epe[ie],S,s.props.style),ref:O},Q))}))}),i5=tpe;function npe(e){return wt("MuiBackdrop",e)}bt("MuiBackdrop",["root","invisible"]);const rpe=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],ipe=e=>{const{classes:t,invisible:n}=e;return _t({root:["root",n&&"invisible"]},npe,t)},ope=je("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>z({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"})),ape=T.forwardRef(function(t,n){var r,i,o;const a=Ct({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:c="div",components:f={},componentsProps:h={},invisible:p=!1,open:y,slotProps:m={},slots:v={},TransitionComponent:S=i5,transitionDuration:x}=a,w=et(a,rpe),C=z({},a,{component:c,invisible:p}),E=ipe(C),O=(r=m.root)!=null?r:h.root;return k.jsx(S,z({in:y,timeout:x},w,{children:k.jsx(ope,z({"aria-hidden":!0},O,{as:(i=(o=v.root)!=null?o:f.Root)!=null?i:c,className:Qe(E.root,l,O==null?void 0:O.className),ownerState:z({},C,O==null?void 0:O.ownerState),classes:E,ref:n,children:s}))}))}),o5=ape,spe=Fd(),lpe=ele({defaultTheme:spe,defaultClassName:"MuiBox-root",generateClassName:eR.generate}),At=lpe;function upe(e){return wt("MuiButton",e)}const cpe=bt("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"]),dy=cpe,fpe=T.createContext({}),dpe=fpe,ppe=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],hpe=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:a}=e,s={root:["root",o,`${o}${Be(t)}`,`size${Be(i)}`,`${o}Size${Be(i)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Be(i)}`],endIcon:["endIcon",`iconSize${Be(i)}`]},l=_t(s,upe,a);return z({},a,l)},a5=e=>z({},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}}),gpe=je(uc,{shouldForwardProp:e=>da(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Be(n.color)}`],t[`size${Be(n.size)}`],t[`${n.variant}Size${Be(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;return z({},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":z({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Jt(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})`:Jt(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})`:Jt(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":z({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${dy.focusVisible}`]:z({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${dy.disabled}`]:z({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 ${Jt(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"},[`&.${dy.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${dy.disabled}`]:{boxShadow:"none"}}),mpe=je("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Be(n.size)}`]]}})(({ownerState:e})=>z({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},a5(e))),vpe=je("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Be(n.size)}`]]}})(({ownerState:e})=>z({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},a5(e))),ype=T.forwardRef(function(t,n){const r=T.useContext(dpe),i=QT(r,t),o=Ct({props:i,name:"MuiButton"}),{children:a,color:s="primary",component:l="button",className:c,disabled:f=!1,disableElevation:h=!1,disableFocusRipple:p=!1,endIcon:y,focusVisibleClassName:m,fullWidth:v=!1,size:S="medium",startIcon:x,type:w,variant:C="text"}=o,E=et(o,ppe),O=z({},o,{color:s,component:l,disabled:f,disableElevation:h,disableFocusRipple:p,fullWidth:v,size:S,type:w,variant:C}),$=hpe(O),I=x&&k.jsx(mpe,{className:$.startIcon,ownerState:O,children:x}),W=y&&k.jsx(vpe,{className:$.endIcon,ownerState:O,children:y});return k.jsxs(gpe,z({ownerState:O,className:Qe(r.className,$.root,c),component:l,disabled:f,focusRipple:!p,focusVisibleClassName:Qe($.focusVisible,m),ref:n,type:w},E,{classes:$,children:[I,a,W]}))}),mc=ype;function bpe(e){return wt("PrivateSwitchBase",e)}bt("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const xpe=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],wpe=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,o={root:["root",n&&"checked",r&&"disabled",i&&`edge${Be(i)}`],input:["input"]};return _t(o,bpe,t)},Spe=je(uc)(({ownerState:e})=>z({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),_pe=je("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Cpe=T.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:o,className:a,defaultChecked:s,disabled:l,disableFocusRipple:c=!1,edge:f=!1,icon:h,id:p,inputProps:y,inputRef:m,name:v,onBlur:S,onChange:x,onFocus:w,readOnly:C,required:E=!1,tabIndex:O,type:$,value:I}=t,W=et(t,xpe),[H,j]=bd({controlled:i,default:!!s,name:"SwitchBase",state:"checked"}),U=Ql(),le=ee=>{w&&w(ee),U&&U.onFocus&&U.onFocus(ee)},se=ee=>{S&&S(ee),U&&U.onBlur&&U.onBlur(ee)},ie=ee=>{if(ee.nativeEvent.defaultPrevented)return;const Y=ee.target.checked;j(Y),x&&x(ee,Y)};let Q=l;U&&typeof Q>"u"&&(Q=U.disabled);const L=$==="checkbox"||$==="radio",te=z({},t,{checked:H,disabled:Q,disableFocusRipple:c,edge:f}),Z=wpe(te);return k.jsxs(Spe,z({component:"span",className:Qe(Z.root,a),centerRipple:!0,focusRipple:!c,disabled:Q,tabIndex:null,role:void 0,onFocus:le,onBlur:se,ownerState:te,ref:n},W,{children:[k.jsx(_pe,z({autoFocus:r,checked:i,defaultChecked:s,className:Z.input,disabled:Q,id:L?p:void 0,name:v,onChange:ie,readOnly:C,ref:m,required:E,ownerState:te,tabIndex:O,type:$},$==="checkbox"&&I===void 0?{}:{value:I},y)),H?o:h]}))}),Epe=Cpe;function kpe(e){return wt("MuiCircularProgress",e)}bt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Tpe=["className","color","disableShrink","size","style","thickness","value","variant"];let ix=e=>e,WI,VI,HI,qI;const cl=44,Rpe=sm(WI||(WI=ix`
|
|
138
|
+
0% {
|
|
139
|
+
transform: rotate(0deg);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
100% {
|
|
143
|
+
transform: rotate(360deg);
|
|
144
|
+
}
|
|
145
|
+
`)),Ape=sm(VI||(VI=ix`
|
|
146
|
+
0% {
|
|
147
|
+
stroke-dasharray: 1px, 200px;
|
|
148
|
+
stroke-dashoffset: 0;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
50% {
|
|
152
|
+
stroke-dasharray: 100px, 200px;
|
|
153
|
+
stroke-dashoffset: -15px;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
100% {
|
|
157
|
+
stroke-dasharray: 100px, 200px;
|
|
158
|
+
stroke-dashoffset: -125px;
|
|
159
|
+
}
|
|
160
|
+
`)),Ope=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,o={root:["root",n,`color${Be(r)}`],svg:["svg"],circle:["circle",`circle${Be(n)}`,i&&"circleDisableShrink"]};return _t(o,kpe,t)},Dpe=je("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Be(n.color)}`]]}})(({ownerState:e,theme:t})=>z({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"&&uR(HI||(HI=ix`
|
|
161
|
+
animation: ${0} 1.4s linear infinite;
|
|
162
|
+
`),Rpe)),$pe=je("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Ipe=je("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Be(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>z({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&&uR(qI||(qI=ix`
|
|
163
|
+
animation: ${0} 1.4s ease-in-out infinite;
|
|
164
|
+
`),Ape)),Ppe=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:a=!1,size:s=40,style:l,thickness:c=3.6,value:f=0,variant:h="indeterminate"}=r,p=et(r,Tpe),y=z({},r,{color:o,disableShrink:a,size:s,thickness:c,value:f,variant:h}),m=Ope(y),v={},S={},x={};if(h==="determinate"){const w=2*Math.PI*((cl-c)/2);v.strokeDasharray=w.toFixed(3),x["aria-valuenow"]=Math.round(f),v.strokeDashoffset=`${((100-f)/100*w).toFixed(3)}px`,S.transform="rotate(-90deg)"}return k.jsx(Dpe,z({className:Qe(m.root,i),style:z({width:s,height:s},S,l),ownerState:y,ref:n,role:"progressbar"},x,p,{children:k.jsx($pe,{className:m.svg,ownerState:y,viewBox:`${cl/2} ${cl/2} ${cl} ${cl}`,children:k.jsx(Ipe,{className:m.circle,style:v,ownerState:y,cx:cl,cy:cl,r:(cl-c)/2,fill:"none",strokeWidth:c})})}))}),s5=Ppe,Lpe=["BackdropComponent","BackdropProps","closeAfterTransition","children","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","slotProps","slots","theme"],Fpe=e=>e.classes,Mpe=je("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})=>z({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Npe=je(o5,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Bpe=T.forwardRef(function(t,n){var r,i,o,a,s,l;const c=Ct({name:"MuiModal",props:t}),{BackdropComponent:f=Npe,BackdropProps:h,closeAfterTransition:p=!1,children:y,component:m,components:v={},componentsProps:S={},disableAutoFocus:x=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:C=!1,disablePortal:E=!1,disableRestoreFocus:O=!1,disableScrollLock:$=!1,hideBackdrop:I=!1,keepMounted:W=!1,slotProps:H,slots:j,theme:U}=c,le=et(c,Lpe),[se,ie]=T.useState(!0),Q={closeAfterTransition:p,disableAutoFocus:x,disableEnforceFocus:w,disableEscapeKeyDown:C,disablePortal:E,disableRestoreFocus:O,disableScrollLock:$,hideBackdrop:I,keepMounted:W},L=z({},c,Q,{exited:se}),te=Fpe(L),Z=(r=(i=j==null?void 0:j.root)!=null?i:v.Root)!=null?r:Mpe,ee=(o=(a=j==null?void 0:j.backdrop)!=null?a:v.Backdrop)!=null?o:f,Y=(s=H==null?void 0:H.root)!=null?s:S.root,M=(l=H==null?void 0:H.backdrop)!=null?l:S.backdrop;return k.jsx(Ice,z({slots:{root:Z,backdrop:ee},slotProps:{root:()=>z({},xE(Y,L),!za(Z)&&{as:m,theme:U}),backdrop:()=>z({},h,xE(M,L))},onTransitionEnter:()=>ie(!1),onTransitionExited:()=>ie(!0),ref:n},le,{classes:te},Q,{children:y}))}),l5=Bpe;function zpe(e){return wt("MuiDialog",e)}const jpe=bt("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),KS=jpe,Upe=T.createContext({}),u5=Upe,Kpe=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],Wpe=je(o5,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Vpe=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:o}=e,a={root:["root"],container:["container",`scroll${Be(n)}`],paper:["paper",`paperScroll${Be(n)}`,`paperWidth${Be(String(r))}`,i&&"paperFullWidth",o&&"paperFullScreen"]};return _t(a,zpe,t)},Hpe=je(l5,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),qpe=je("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Be(n.scroll)}`]]}})(({ownerState:e})=>z({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"}})),Gpe=je(Md,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Be(n.scroll)}`],t[`paperWidth${Be(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>z({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}`,[`&.${KS.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}`,[`&.${KS.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,[`&.${KS.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Ype=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiDialog"}),i=fa(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":s,BackdropComponent:l,BackdropProps:c,children:f,className:h,disableEscapeKeyDown:p=!1,fullScreen:y=!1,fullWidth:m=!1,maxWidth:v="sm",onBackdropClick:S,onClose:x,open:w,PaperComponent:C=Md,PaperProps:E={},scroll:O="paper",TransitionComponent:$=i5,transitionDuration:I=o,TransitionProps:W}=r,H=et(r,Kpe),j=z({},r,{disableEscapeKeyDown:p,fullScreen:y,fullWidth:m,maxWidth:v,scroll:O}),U=Vpe(j),le=T.useRef(),se=te=>{le.current=te.target===te.currentTarget},ie=te=>{le.current&&(le.current=null,S&&S(te),x&&x(te,"backdropClick"))},Q=im(s),L=T.useMemo(()=>({titleId:Q}),[Q]);return k.jsx(Hpe,z({className:Qe(U.root,h),closeAfterTransition:!0,components:{Backdrop:Wpe},componentsProps:{backdrop:z({transitionDuration:I,as:l},c)},disableEscapeKeyDown:p,onClose:x,open:w,ref:n,onClick:ie,ownerState:j},H,{children:k.jsx($,z({appear:!0,in:w,timeout:I,role:"presentation"},W,{children:k.jsx(qpe,{className:Qe(U.container),onMouseDown:se,ownerState:j,children:k.jsx(Gpe,z({as:C,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":Q},E,{className:Qe(U.paper,E.className),ownerState:j,children:k.jsx(u5.Provider,{value:L,children:f})}))})}))}))}),ox=Ype;function Xpe(e){return wt("MuiDialogActions",e)}bt("MuiDialogActions",["root","spacing"]);const Zpe=["className","disableSpacing"],Jpe=e=>{const{classes:t,disableSpacing:n}=e;return _t({root:["root",!n&&"spacing"]},Xpe,t)},Qpe=je("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>z({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}})),ehe=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:o=!1}=r,a=et(r,Zpe),s=z({},r,{disableSpacing:o}),l=Jpe(s);return k.jsx(Qpe,z({className:Qe(l.root,i),ownerState:s,ref:n},a))}),c5=ehe;function the(e){return wt("MuiDialogContent",e)}bt("MuiDialogContent",["root","dividers"]);function nhe(e){return wt("MuiDialogTitle",e)}const rhe=bt("MuiDialogTitle",["root"]),ihe=rhe,ohe=["className","dividers"],ahe=e=>{const{classes:t,dividers:n}=e;return _t({root:["root",n&&"dividers"]},the,t)},she=je("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>z({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}`}:{[`.${ihe.root} + &`]:{paddingTop:0}})),lhe=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiDialogContent"}),{className:i,dividers:o=!1}=r,a=et(r,ohe),s=z({},r,{dividers:o}),l=ahe(s);return k.jsx(she,z({className:Qe(l.root,i),ownerState:s,ref:n},a))}),ax=lhe;function uhe(e){return wt("MuiDialogContentText",e)}bt("MuiDialogContentText",["root"]);const che=["children","className"],fhe=e=>{const{classes:t}=e,r=_t({root:["root"]},uhe,t);return z({},t,r)},dhe=je(fn,{shouldForwardProp:e=>da(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),phe=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiDialogContentText"}),{className:i}=r,o=et(r,che),a=fhe(o);return k.jsx(dhe,z({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:o,className:Qe(a.root,i)},r,{classes:a}))}),f5=phe,hhe=["className","id"],ghe=e=>{const{classes:t}=e;return _t({root:["root"]},nhe,t)},mhe=je(fn,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),vhe=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiDialogTitle"}),{className:i,id:o}=r,a=et(r,hhe),s=r,l=ghe(s),{titleId:c=o}=T.useContext(u5);return k.jsx(mhe,z({component:"h2",className:Qe(l.root,i),ownerState:s,ref:n,variant:"h6",id:c},a))}),DR=vhe;function yhe(e){return wt("MuiDivider",e)}const bhe=bt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),GI=bhe,xhe=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],whe=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:a,textAlign:s,variant:l}=e;return _t({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"]},yhe,r)},She=je("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})=>z({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)`:Jt(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})=>z({},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})=>z({},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})=>z({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),_he=je("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>z({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)`})),Che=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiDivider"}),{absolute:i=!1,children:o,className:a,component:s=o?"div":"hr",flexItem:l=!1,light:c=!1,orientation:f="horizontal",role:h=s!=="hr"?"separator":void 0,textAlign:p="center",variant:y="fullWidth"}=r,m=et(r,xhe),v=z({},r,{absolute:i,component:s,flexItem:l,light:c,orientation:f,role:h,textAlign:p,variant:y}),S=whe(v);return k.jsx(She,z({as:s,className:Qe(S.root,a),role:h,ref:n,ownerState:v},m,{children:o?k.jsx(_he,{className:S.wrapper,ownerState:v,children:o}):null}))}),Ehe=Che,khe=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],The=e=>{const{classes:t,disableUnderline:n}=e,i=_t({root:["root",!n&&"underline"],input:["input"]},jde,t);return z({},t,i)},Rhe=je(tx,{shouldForwardProp:e=>da(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Qb(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 z({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}},[`&.${Su.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${Su.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"},[`&.${Su.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Su.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(.${Su.disabled}, .${Su.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Su.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&z({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),Ahe=je(nx,{name:"MuiFilledInput",slot:"Input",overridesResolver:ex})(({theme:e,ownerState:t})=>z({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})),d5=T.forwardRef(function(t,n){var r,i,o,a;const s=Ct({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:c,fullWidth:f=!1,inputComponent:h="input",multiline:p=!1,slotProps:y,slots:m={},type:v="text"}=s,S=et(s,khe),x=z({},s,{fullWidth:f,inputComponent:h,multiline:p,type:v}),w=The(s),C={root:{ownerState:x},input:{ownerState:x}},E=y??c?_i(y??c,C):C,O=(r=(i=m.root)!=null?i:l.Root)!=null?r:Rhe,$=(o=(a=m.input)!=null?a:l.Input)!=null?o:Ahe;return k.jsx(rx,z({slots:{root:O,input:$},componentsProps:E,fullWidth:f,inputComponent:h,multiline:p,ref:n,type:v},S,{classes:w}))});d5.muiName="Input";const p5=d5;function Ohe(e){return wt("MuiFormControl",e)}bt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Dhe=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],$he=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${Be(n)}`,r&&"fullWidth"]};return _t(i,Ohe,t)},Ihe=je("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>z({},t.root,t[`margin${Be(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>z({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%"})),Phe=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiFormControl"}),{children:i,className:o,color:a="primary",component:s="div",disabled:l=!1,error:c=!1,focused:f,fullWidth:h=!1,hiddenLabel:p=!1,margin:y="none",required:m=!1,size:v="medium",variant:S="outlined"}=r,x=et(r,Dhe),w=z({},r,{color:a,component:s,disabled:l,error:c,fullWidth:h,hiddenLabel:p,margin:y,required:m,size:v,variant:S}),C=$he(w),[E,O]=T.useState(()=>{let se=!1;return i&&T.Children.forEach(i,ie=>{if(!Zf(ie,["Input","Select"]))return;const Q=Zf(ie,["Select"])?ie.props.input:ie;Q&&Ode(Q.props)&&(se=!0)}),se}),[$,I]=T.useState(()=>{let se=!1;return i&&T.Children.forEach(i,ie=>{Zf(ie,["Input","Select"])&&OR(ie.props,!0)&&(se=!0)}),se}),[W,H]=T.useState(!1);l&&W&&H(!1);const j=f!==void 0&&!l?f:W;let U;const le=T.useMemo(()=>({adornedStart:E,setAdornedStart:O,color:a,disabled:l,error:c,filled:$,focused:j,fullWidth:h,hiddenLabel:p,size:v,onBlur:()=>{H(!1)},onEmpty:()=>{I(!1)},onFilled:()=>{I(!0)},onFocus:()=>{H(!0)},registerEffect:U,required:m,variant:S}),[E,a,l,c,$,j,h,p,U,m,v,S]);return k.jsx(Jb.Provider,{value:le,children:k.jsx(Ihe,z({as:s,ownerState:w,className:Qe(C.root,o),ref:n},x,{children:i}))})}),$R=Phe;function Lhe(e){return wt("MuiFormHelperText",e)}const Fhe=bt("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),YI=Fhe;var XI;const Mhe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Nhe=e=>{const{classes:t,contained:n,size:r,disabled:i,error:o,filled:a,focused:s,required:l}=e,c={root:["root",i&&"disabled",o&&"error",r&&`size${Be(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return _t(c,Lhe,t)},Bhe=je("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Be(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>z({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${YI.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${YI.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),zhe=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiFormHelperText"}),{children:i,className:o,component:a="p"}=r,s=et(r,Mhe),l=Ql(),c=Nd({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),f=z({},r,{component:a,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),h=Nhe(f);return k.jsx(Bhe,z({as:a,ownerState:f,className:Qe(h.root,o),ref:n},s,{children:i===" "?XI||(XI=k.jsx("span",{className:"notranslate",children:""})):i}))}),jhe=zhe;function Uhe(e){return wt("MuiFormLabel",e)}const Khe=bt("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),tg=Khe,Whe=["children","className","color","component","disabled","error","filled","focused","required"],Vhe=e=>{const{classes:t,color:n,focused:r,disabled:i,error:o,filled:a,required:s}=e,l={root:["root",`color${Be(n)}`,i&&"disabled",o&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",o&&"error"]};return _t(l,Uhe,t)},Hhe=je("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>z({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>z({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${tg.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${tg.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${tg.error}`]:{color:(e.vars||e).palette.error.main}})),qhe=je("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${tg.error}`]:{color:(e.vars||e).palette.error.main}})),Ghe=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiFormLabel"}),{children:i,className:o,component:a="label"}=r,s=et(r,Whe),l=Ql(),c=Nd({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),f=z({},r,{color:c.color||"primary",component:a,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),h=Vhe(f);return k.jsxs(Hhe,z({as:a,ownerState:f,className:Qe(h.root,o),ref:n},s,{children:[i,c.required&&k.jsxs(qhe,{ownerState:f,"aria-hidden":!0,className:h.asterisk,children:[" ","*"]})]}))}),Yhe=Ghe,Xhe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function RE(e){return`scale(${e}, ${e**2})`}const Zhe={entering:{opacity:1,transform:RE(1)},entered:{opacity:1,transform:"none"}},WS=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),h5=T.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:o,easing:a,in:s,onEnter:l,onEntered:c,onEntering:f,onExit:h,onExited:p,onExiting:y,style:m,timeout:v="auto",TransitionComponent:S=Qj}=t,x=et(t,Xhe),w=T.useRef(),C=T.useRef(),E=fa(),O=T.useRef(null),$=$n(O,o.ref,n),I=Q=>L=>{if(Q){const te=O.current;L===void 0?Q(te):Q(te,L)}},W=I(f),H=I((Q,L)=>{e5(Q);const{duration:te,delay:Z,easing:ee}=l1({style:m,timeout:v,easing:a},{mode:"enter"});let Y;v==="auto"?(Y=E.transitions.getAutoHeightDuration(Q.clientHeight),C.current=Y):Y=te,Q.style.transition=[E.transitions.create("opacity",{duration:Y,delay:Z}),E.transitions.create("transform",{duration:WS?Y:Y*.666,delay:Z,easing:ee})].join(","),l&&l(Q,L)}),j=I(c),U=I(y),le=I(Q=>{const{duration:L,delay:te,easing:Z}=l1({style:m,timeout:v,easing:a},{mode:"exit"});let ee;v==="auto"?(ee=E.transitions.getAutoHeightDuration(Q.clientHeight),C.current=ee):ee=L,Q.style.transition=[E.transitions.create("opacity",{duration:ee,delay:te}),E.transitions.create("transform",{duration:WS?ee:ee*.666,delay:WS?te:te||ee*.333,easing:Z})].join(","),Q.style.opacity=0,Q.style.transform=RE(.75),h&&h(Q)}),se=I(p),ie=Q=>{v==="auto"&&(w.current=setTimeout(Q,C.current||0)),r&&r(O.current,Q)};return T.useEffect(()=>()=>{clearTimeout(w.current)},[]),k.jsx(S,z({appear:i,in:s,nodeRef:O,onEnter:H,onEntered:j,onEntering:W,onExit:le,onExited:se,onExiting:U,addEndListener:ie,timeout:v==="auto"?null:v},x,{children:(Q,L)=>T.cloneElement(o,z({style:z({opacity:0,transform:RE(.75),visibility:Q==="exited"&&!s?"hidden":void 0},Zhe[Q],m,o.props.style),ref:$},L))}))});h5.muiSupportAuto=!0;const AE=h5;function Jhe(e,t,n,r,i){const[o,a]=T.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return Xi(()=>{let s=!0;if(!n)return;const l=n(e),c=()=>{s&&a(l.matches)};return c(),l.addListener(c),()=>{s=!1,l.removeListener(c)}},[e,n]),o}const g5=Qu["useSyncExternalStore"];function Qhe(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,h=>(f.addListener(h),()=>{f.removeListener(h)})]},[o,n,e]);return g5(l,s,a)}function ege(e,t={}){const n=vR(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:o=r?window.matchMedia:null,ssrMatchMedia:a=null,noSsr:s=!1}=Bj({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(g5!==void 0?Qhe:Jhe)(l,i,o,a,s)}function tge(e){return wt("MuiImageList",e)}bt("MuiImageList",["root","masonry","quilted","standard","woven"]);const nge=T.createContext({}),m5=nge,rge=["children","className","cols","component","rowHeight","gap","style","variant"],ige=e=>{const{classes:t,variant:n}=e;return _t({root:["root",n]},tge,t)},oge=je("ul",{name:"MuiImageList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant]]}})(({ownerState:e})=>z({display:"grid",overflowY:"auto",listStyle:"none",padding:0,WebkitOverflowScrolling:"touch"},e.variant==="masonry"&&{display:"block"})),age=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiImageList"}),{children:i,className:o,cols:a=2,component:s="ul",rowHeight:l="auto",gap:c=4,style:f,variant:h="standard"}=r,p=et(r,rge),y=T.useMemo(()=>({rowHeight:l,gap:c,variant:h}),[l,c,h]);T.useEffect(()=>{},[]);const m=z(h==="masonry"?{columnCount:a,columnGap:c}:{gridTemplateColumns:`repeat(${a}, 1fr)`,gap:c},f),v=z({},r,{component:s,gap:c,rowHeight:l,variant:h}),S=ige(v);return k.jsx(oge,z({as:s,className:Qe(S.root,S[h],o),ref:n,style:m,ownerState:v},p,{children:k.jsx(m5.Provider,{value:y,children:i})}))}),sge=age;function lge(e){return wt("MuiImageListItem",e)}const uge=bt("MuiImageListItem",["root","img","standard","woven","masonry","quilted"]),ZI=uge,cge=["children","className","cols","component","rows","style"],fge=e=>{const{classes:t,variant:n}=e;return _t({root:["root",n],img:["img"]},lge,t)},dge=je("li",{name:"MuiImageListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ZI.img}`]:t.img},t.root,t[n.variant]]}})(({ownerState:e})=>z({display:"block",position:"relative"},e.variant==="standard"&&{display:"flex",flexDirection:"column"},e.variant==="woven"&&{height:"100%",alignSelf:"center","&:nth-of-type(even)":{height:"70%"}},{[`& .${ZI.img}`]:z({objectFit:"cover",width:"100%",height:"100%",display:"block"},e.variant==="standard"&&{height:"auto",flexGrow:1})})),pge=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiImageListItem"}),{children:i,className:o,cols:a=1,component:s="li",rows:l=1,style:c}=r,f=et(r,cge),{rowHeight:h="auto",gap:p,variant:y}=T.useContext(m5);let m="auto";y==="woven"?m=void 0:h!=="auto"&&(m=h*l+p*(l-1));const v=z({},r,{cols:a,component:s,gap:p,rowHeight:h,rows:l,variant:y}),S=fge(v);return k.jsx(dge,z({as:s,className:Qe(S.root,S[y],o),ref:n,style:z({height:m,gridColumnEnd:y!=="masonry"?`span ${a}`:void 0,gridRowEnd:y!=="masonry"?`span ${l}`:void 0,marginBottom:y==="masonry"?p:void 0},c),ownerState:v},f,{children:T.Children.map(i,x=>T.isValidElement(x)?x.type==="img"||Zf(x,["Image"])?T.cloneElement(x,{className:Qe(S.img,x.props.className)}):x:null)}))}),hge=pge,gge=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],mge=e=>{const{classes:t,disableUnderline:n}=e,i=_t({root:["root",!n&&"underline"],input:["input"]},Mde,t);return z({},t,i)},vge=je(tx,{shouldForwardProp:e=>da(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Qb(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})`),z({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"},[`&.${ih.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ih.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(.${ih.disabled}, .${ih.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${ih.disabled}:before`]:{borderBottomStyle:"dotted"}})}),yge=je(nx,{name:"MuiInput",slot:"Input",overridesResolver:ex})({}),v5=T.forwardRef(function(t,n){var r,i,o,a;const s=Ct({props:t,name:"MuiInput"}),{disableUnderline:l,components:c={},componentsProps:f,fullWidth:h=!1,inputComponent:p="input",multiline:y=!1,slotProps:m,slots:v={},type:S="text"}=s,x=et(s,gge),w=mge(s),E={root:{ownerState:{disableUnderline:l}}},O=m??f?_i(m??f,E):E,$=(r=(i=v.root)!=null?i:c.Root)!=null?r:vge,I=(o=(a=v.input)!=null?a:c.Input)!=null?o:yge;return k.jsx(rx,z({slots:{root:$,input:I},slotProps:O,fullWidth:h,inputComponent:p,multiline:y,ref:n,type:S},x,{classes:w}))});v5.muiName="Input";const y5=v5;function bge(e){return wt("MuiInputAdornment",e)}const xge=bt("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),JI=xge;var QI;const wge=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Sge=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Be(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},_ge=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:o,variant:a}=e,s={root:["root",n&&"disablePointerEvents",i&&`position${Be(i)}`,a,r&&"hiddenLabel",o&&`size${Be(o)}`]};return _t(s,bge,t)},Cge=je("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Sge})(({theme:e,ownerState:t})=>z({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${JI.positionStart}&:not(.${JI.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),Ege=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiInputAdornment"}),{children:i,className:o,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:f}=r,h=et(r,wge),p=Ql()||{};let y=f;f&&p.variant,p&&!y&&(y=p.variant);const m=z({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:c,variant:y}),v=_ge(m);return k.jsx(Jb.Provider,{value:null,children:k.jsx(Cge,z({as:a,ownerState:m,className:Qe(v.root,o),ref:n},h,{children:typeof i=="string"&&!l?k.jsx(fn,{color:"text.secondary",children:i}):k.jsxs(T.Fragment,{children:[c==="start"?QI||(QI=k.jsx("span",{className:"notranslate",children:""})):null,i]})}))})}),eP=Ege;function kge(e){return wt("MuiInputLabel",e)}bt("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Tge=["disableAnimation","margin","shrink","variant","className"],Rge=e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:o,variant:a,required:s}=e,c=_t({root:["root",n&&"formControl",!o&&"animated",i&&"shrink",r==="small"&&"sizeSmall",a],asterisk:[s&&"asterisk"]},kge,t);return z({},t,c)},Age=je(Yhe,{shouldForwardProp:e=>da(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${tg.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})=>z({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"&&z({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&&z({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"&&z({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)"}))),Oge=T.forwardRef(function(t,n){const r=Ct({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:o,className:a}=r,s=et(r,Tge),l=Ql();let c=o;typeof c>"u"&&l&&(c=l.filled||l.focused||l.adornedStart);const f=Nd({props:r,muiFormControl:l,states:["size","variant","required"]}),h=z({},r,{disableAnimation:i,formControl:l,shrink:c,size:f.size,variant:f.variant,required:f.required}),p=Rge(h);return k.jsx(Age,z({"data-shrink":c,ownerState:h,ref:n,className:Qe(p.root,a)},s,{classes:p}))}),Vl=Oge;function Dge(e){return wt("MuiLink",e)}const $ge=bt("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Ige=$ge,b5={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Pge=e=>b5[e]||e,Lge=({theme:e,ownerState:t})=>{const n=Pge(t.color),r=wd(e,`palette.${n}`,!1)||t.color,i=wd(e,`palette.${n}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:Jt(r,.4)},Fge=Lge,Mge=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Nge=e=>{const{classes:t,component:n,focusVisible:r,underline:i}=e,o={root:["root",`underline${Be(i)}`,n==="button"&&"button",r&&"focusVisible"]};return _t(o,Dge,t)},Bge=je(fn,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${Be(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>z({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&z({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:Fge({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"},[`&.${Ige.focusVisible}`]:{outline:"auto"}})),zge=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiLink"}),{className:i,color:o="primary",component:a="a",onBlur:s,onFocus:l,TypographyClasses:c,underline:f="always",variant:h="inherit",sx:p}=r,y=et(r,Mge),{isFocusVisibleRef:m,onBlur:v,onFocus:S,ref:x}=om(),[w,C]=T.useState(!1),E=$n(n,x),O=H=>{v(H),m.current===!1&&C(!1),s&&s(H)},$=H=>{S(H),m.current===!0&&C(!0),l&&l(H)},I=z({},r,{color:o,component:a,focusVisible:w,underline:f,variant:h}),W=Nge(I);return k.jsx(Bge,z({color:o,className:Qe(W.root,i),classes:c,component:a,onBlur:O,onFocus:$,ref:E,ownerState:I,variant:h,sx:[...Object.keys(b5).includes(o)?[]:[{color:o}],...Array.isArray(p)?p:[p]]},y))}),IR=zge,jge=T.createContext({}),Rs=jge;function Uge(e){return wt("MuiList",e)}bt("MuiList",["root","padding","dense","subheader"]);const Kge=["children","className","component","dense","disablePadding","subheader"],Wge=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return _t({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},Uge,t)},Vge=je("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})=>z({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Hge=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiList"}),{children:i,className:o,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:c}=r,f=et(r,Kge),h=T.useMemo(()=>({dense:s}),[s]),p=z({},r,{component:a,dense:s,disablePadding:l}),y=Wge(p);return k.jsx(Rs.Provider,{value:h,children:k.jsxs(Vge,z({as:a,className:Qe(y.root,o),ref:n,ownerState:p},f,{children:[c,i]}))})}),x5=Hge;function qge(e){return wt("MuiListItem",e)}const Gge=bt("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),_f=Gge,Yge=bt("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Xge=Yge;function Zge(e){return wt("MuiListItemSecondaryAction",e)}bt("MuiListItemSecondaryAction",["root","disableGutters"]);const Jge=["className"],Qge=e=>{const{disableGutters:t,classes:n}=e;return _t({root:["root",t&&"disableGutters"]},Zge,n)},eme=je("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>z({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),w5=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=r,o=et(r,Jge),a=T.useContext(Rs),s=z({},r,{disableGutters:a.disableGutters}),l=Qge(s);return k.jsx(eme,z({className:Qe(l.root,i),ownerState:s,ref:n},o))});w5.muiName="ListItemSecondaryAction";const tme=w5,nme=["className"],rme=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],ime=(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]},ome=e=>{const{alignItems:t,button:n,classes:r,dense:i,disabled:o,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:c,selected:f}=e;return _t({root:["root",i&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",o&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction",f&&"selected"],container:["container"]},qge,r)},ame=je("div",{name:"MuiListItem",slot:"Root",overridesResolver:ime})(({theme:e,ownerState:t})=>z({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&z({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Xge.root}`]:{paddingRight:48}},{[`&.${_f.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${_f.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Jt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${_f.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Jt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${_f.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"}},[`&.${_f.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Jt(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})`:Jt(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),sme=je("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),lme=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiListItem"}),{alignItems:i="center",autoFocus:o=!1,button:a=!1,children:s,className:l,component:c,components:f={},componentsProps:h={},ContainerComponent:p="li",ContainerProps:{className:y}={},dense:m=!1,disabled:v=!1,disableGutters:S=!1,disablePadding:x=!1,divider:w=!1,focusVisibleClassName:C,secondaryAction:E,selected:O=!1,slotProps:$={},slots:I={}}=r,W=et(r.ContainerProps,nme),H=et(r,rme),j=T.useContext(Rs),U=T.useMemo(()=>({dense:m||j.dense||!1,alignItems:i,disableGutters:S}),[i,j.dense,m,S]),le=T.useRef(null);Xi(()=>{o&&le.current&&le.current.focus()},[o]);const se=T.Children.toArray(s),ie=se.length&&Zf(se[se.length-1],["ListItemSecondaryAction"]),Q=z({},r,{alignItems:i,autoFocus:o,button:a,dense:U.dense,disabled:v,disableGutters:S,disablePadding:x,divider:w,hasSecondaryAction:ie,selected:O}),L=ome(Q),te=$n(le,n),Z=I.root||f.Root||ame,ee=$.root||h.root||{},Y=z({className:Qe(L.root,ee.className,l),disabled:v},H);let M=c||"li";return a&&(Y.component=c||"div",Y.focusVisibleClassName=Qe(_f.focusVisible,C),M=uc),ie?(M=!Y.component&&!c?"div":M,p==="li"&&(M==="li"?M="div":Y.component==="li"&&(Y.component="div")),k.jsx(Rs.Provider,{value:U,children:k.jsxs(sme,z({as:p,className:Qe(L.container,y),ref:te,ownerState:Q},W,{children:[k.jsx(Z,z({},ee,!za(Z)&&{as:M,ownerState:z({},Q,ee.ownerState)},Y,{children:se})),se.pop()]}))})):k.jsx(Rs.Provider,{value:U,children:k.jsxs(Z,z({},ee,{as:M,ref:te},!za(Z)&&{ownerState:z({},Q,ee.ownerState)},Y,{children:[se,E&&k.jsx(tme,{children:E})]}))})}),s0=lme;function ume(e){return wt("MuiListItemIcon",e)}const cme=bt("MuiListItemIcon",["root","alignItemsFlexStart"]),tP=cme,fme=["className"],dme=e=>{const{alignItems:t,classes:n}=e;return _t({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},ume,n)},pme=je("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})=>z({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),hme=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiListItemIcon"}),{className:i}=r,o=et(r,fme),a=T.useContext(Rs),s=z({},r,{alignItems:a.alignItems}),l=dme(s);return k.jsx(pme,z({className:Qe(l.root,i),ownerState:s,ref:n},o))}),ed=hme;function gme(e){return wt("MuiListItemText",e)}const mme=bt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),u1=mme,vme=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],yme=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:o}=e;return _t({root:["root",n&&"inset",o&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},gme,t)},bme=je("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${u1.primary}`]:t.primary},{[`& .${u1.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>z({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),xme=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiListItemText"}),{children:i,className:o,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:f,secondaryTypographyProps:h}=r,p=et(r,vme),{dense:y}=T.useContext(Rs);let m=l??i,v=f;const S=z({},r,{disableTypography:a,inset:s,primary:!!m,secondary:!!v,dense:y}),x=yme(S);return m!=null&&m.type!==fn&&!a&&(m=k.jsx(fn,z({variant:y?"body2":"body1",className:x.primary,component:c!=null&&c.variant?void 0:"span",display:"block"},c,{children:m}))),v!=null&&v.type!==fn&&!a&&(v=k.jsx(fn,z({variant:"body2",className:x.secondary,color:"text.secondary",display:"block"},h,{children:v}))),k.jsxs(bme,z({className:Qe(x.root,o),ownerState:S,ref:n},p,{children:[m,v]}))}),l0=xme,wme=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function VS(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function nP(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function S5(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 oh(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")||!S5(s,o)||l)s=i(e,s,n);else return s.focus(),!0}return!1}const Sme=T.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:o=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:f,variant:h="selectedMenu"}=t,p=et(t,wme),y=T.useRef(null),m=T.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Xi(()=>{i&&y.current.focus()},[i]),T.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(C,E)=>{const O=!y.current.style.width;if(C.clientHeight<y.current.clientHeight&&O){const $=`${fj(Vn(C))}px`;y.current.style[E.direction==="rtl"?"paddingLeft":"paddingRight"]=$,y.current.style.width=`calc(100% + ${$})`}return y.current}}),[]);const v=C=>{const E=y.current,O=C.key,$=Vn(E).activeElement;if(O==="ArrowDown")C.preventDefault(),oh(E,$,c,l,VS);else if(O==="ArrowUp")C.preventDefault(),oh(E,$,c,l,nP);else if(O==="Home")C.preventDefault(),oh(E,null,c,l,VS);else if(O==="End")C.preventDefault(),oh(E,null,c,l,nP);else if(O.length===1){const I=m.current,W=O.toLowerCase(),H=performance.now();I.keys.length>0&&(H-I.lastTime>500?(I.keys=[],I.repeating=!0,I.previousKeyMatched=!0):I.repeating&&W!==I.keys[0]&&(I.repeating=!1)),I.lastTime=H,I.keys.push(W);const j=$&&!I.repeating&&S5($,I);I.previousKeyMatched&&(j||oh(E,$,!1,l,VS,I))?C.preventDefault():I.previousKeyMatched=!1}f&&f(C)},S=$n(y,n);let x=-1;T.Children.forEach(a,(C,E)=>{T.isValidElement(C)&&(C.props.disabled||(h==="selectedMenu"&&C.props.selected||x===-1)&&(x=E))});const w=T.Children.map(a,(C,E)=>{if(E===x){const O={};return o&&(O.autoFocus=!0),C.props.tabIndex===void 0&&h==="selectedMenu"&&(O.tabIndex=0),T.cloneElement(C,O)}return C});return k.jsx(x5,z({role:"menu",ref:S,className:s,onKeyDown:v,tabIndex:i?0:-1},p,{children:w}))}),_me=Sme;function Cme(e){return wt("MuiPopover",e)}bt("MuiPopover",["root","paper"]);const Eme=["onEntering"],kme=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function rP(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function iP(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function oP(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function HS(e){return typeof e=="function"?e():e}const Tme=e=>{const{classes:t}=e;return _t({root:["root"],paper:["paper"]},Cme,t)},Rme=je(l5,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ame=je(Md,{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}),Ome=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiPopover"}),{action:i,anchorEl:o,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:l="anchorEl",children:c,className:f,container:h,elevation:p=8,marginThreshold:y=16,open:m,PaperProps:v={},transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:x=AE,transitionDuration:w="auto",TransitionProps:{onEntering:C}={}}=r,E=et(r.TransitionProps,Eme),O=et(r,kme),$=T.useRef(),I=$n($,v.ref),W=z({},r,{anchorOrigin:a,anchorReference:l,elevation:p,marginThreshold:y,PaperProps:v,transformOrigin:S,TransitionComponent:x,transitionDuration:w,TransitionProps:E}),H=Tme(W),j=T.useCallback(()=>{if(l==="anchorPosition")return s;const Y=HS(o),A=(Y&&Y.nodeType===1?Y:Vn($.current).body).getBoundingClientRect();return{top:A.top+rP(A,a.vertical),left:A.left+iP(A,a.horizontal)}},[o,a.horizontal,a.vertical,s,l]),U=T.useCallback(Y=>({vertical:rP(Y,S.vertical),horizontal:iP(Y,S.horizontal)}),[S.horizontal,S.vertical]),le=T.useCallback(Y=>{const M={width:Y.offsetWidth,height:Y.offsetHeight},A=U(M);if(l==="none")return{top:null,left:null,transformOrigin:oP(A)};const ne=j();let oe=ne.top-A.vertical,ce=ne.left-A.horizontal;const re=oe+M.height,Se=ce+M.width,ke=Kl(HS(o)),Ce=ke.innerHeight-y,Pe=ke.innerWidth-y;if(oe<y){const Le=oe-y;oe-=Le,A.vertical+=Le}else if(re>Ce){const Le=re-Ce;oe-=Le,A.vertical+=Le}if(ce<y){const Le=ce-y;ce-=Le,A.horizontal+=Le}else if(Se>Pe){const Le=Se-Pe;ce-=Le,A.horizontal+=Le}return{top:`${Math.round(oe)}px`,left:`${Math.round(ce)}px`,transformOrigin:oP(A)}},[o,l,j,U,y]),[se,ie]=T.useState(m),Q=T.useCallback(()=>{const Y=$.current;if(!Y)return;const M=le(Y);M.top!==null&&(Y.style.top=M.top),M.left!==null&&(Y.style.left=M.left),Y.style.transformOrigin=M.transformOrigin,ie(!0)},[le]),L=(Y,M)=>{C&&C(Y,M),Q()},te=()=>{ie(!1)};T.useEffect(()=>{m&&Q()}),T.useImperativeHandle(i,()=>m?{updatePosition:()=>{Q()}}:null,[m,Q]),T.useEffect(()=>{if(!m)return;const Y=JT(()=>{Q()}),M=Kl(o);return M.addEventListener("resize",Y),()=>{Y.clear(),M.removeEventListener("resize",Y)}},[o,m,Q]);let Z=w;w==="auto"&&!x.muiSupportAuto&&(Z=void 0);const ee=h||(o?Vn(HS(o)).body:void 0);return k.jsx(Rme,z({BackdropProps:{invisible:!0},className:Qe(H.root,f),container:ee,open:m,ref:n,ownerState:W},O,{children:k.jsx(x,z({appear:!0,in:m,onEntering:L,onExited:te,timeout:Z},E,{children:k.jsx(Ame,z({elevation:p},v,{ref:I,className:Qe(H.paper,v.className)},se?void 0:{style:z({},v.style,{opacity:0})},{ownerState:W,children:c}))}))}))}),Dme=Ome;function $me(e){return wt("MuiMenu",e)}bt("MuiMenu",["root","paper","list"]);const Ime=["onEntering"],Pme=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],Lme={vertical:"top",horizontal:"right"},Fme={vertical:"top",horizontal:"left"},Mme=e=>{const{classes:t}=e;return _t({root:["root"],paper:["paper"],list:["list"]},$me,t)},Nme=je(Dme,{shouldForwardProp:e=>da(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Bme=je(Md,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),zme=je(_me,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),jme=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:o,disableAutoFocusItem:a=!1,MenuListProps:s={},onClose:l,open:c,PaperProps:f={},PopoverClasses:h,transitionDuration:p="auto",TransitionProps:{onEntering:y}={},variant:m="selectedMenu"}=r,v=et(r.TransitionProps,Ime),S=et(r,Pme),x=fa(),w=x.direction==="rtl",C=z({},r,{autoFocus:i,disableAutoFocusItem:a,MenuListProps:s,onEntering:y,PaperProps:f,transitionDuration:p,TransitionProps:v,variant:m}),E=Mme(C),O=i&&!a&&c,$=T.useRef(null),I=(j,U)=>{$.current&&$.current.adjustStyleForScrollbar(j,x),y&&y(j,U)},W=j=>{j.key==="Tab"&&(j.preventDefault(),l&&l(j,"tabKeyDown"))};let H=-1;return T.Children.map(o,(j,U)=>{T.isValidElement(j)&&(j.props.disabled||(m==="selectedMenu"&&j.props.selected||H===-1)&&(H=U))}),k.jsx(Nme,z({onClose:l,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?Lme:Fme,PaperProps:z({component:Bme},f,{classes:z({},f.classes,{root:E.paper})}),className:E.root,open:c,ref:n,transitionDuration:p,TransitionProps:z({onEntering:I},v),ownerState:C},S,{classes:h,children:k.jsx(zme,z({onKeyDown:W,actions:$,autoFocus:i&&(H===-1||a),autoFocusItem:O,variant:m},s,{className:Qe(E.list,s.className),children:o}))}))}),sx=jme;function Ume(e){return wt("MuiMenuItem",e)}const Kme=bt("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),ah=Kme,Wme=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Vme=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Hme=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:o,classes:a}=e,l=_t({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},Ume,a);return z({},a,l)},qme=je(uc,{shouldForwardProp:e=>da(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Vme})(({theme:e,ownerState:t})=>z({},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"}},[`&.${ah.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Jt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ah.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Jt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ah.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Jt(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})`:Jt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ah.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ah.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${GI.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${GI.inset}`]:{marginLeft:52},[`& .${u1.root}`]:{marginTop:0,marginBottom:0},[`& .${u1.inset}`]:{paddingLeft:36},[`& .${tP.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&z({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${tP.root} svg`]:{fontSize:"1.25rem"}}))),Gme=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:o="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:f="menuitem",tabIndex:h,className:p}=r,y=et(r,Wme),m=T.useContext(Rs),v=T.useMemo(()=>({dense:a||m.dense||!1,disableGutters:l}),[m.dense,a,l]),S=T.useRef(null);Xi(()=>{i&&S.current&&S.current.focus()},[i]);const x=z({},r,{dense:v.dense,divider:s,disableGutters:l}),w=Hme(r),C=$n(S,n);let E;return r.disabled||(E=h!==void 0?h:-1),k.jsx(Rs.Provider,{value:v,children:k.jsx(qme,z({ref:C,role:f,tabIndex:E,component:o,focusVisibleClassName:Qe(w.focusVisible,c),className:Qe(w.root,p)},y,{ownerState:x,classes:w}))})}),Ua=Gme;function Yme(e){return wt("MuiNativeSelect",e)}const Xme=bt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),PR=Xme,Zme=["className","disabled","IconComponent","inputRef","variant"],Jme=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o}=e,a={select:["select",n,r&&"disabled",i&&"multiple"],icon:["icon",`icon${Be(n)}`,o&&"iconOpen",r&&"disabled"]};return _t(a,Yme,t)},_5=({ownerState:e,theme:t})=>z({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":z({},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"},[`&.${PR.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}}),Qme=je("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:da,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],{[`&.${PR.multiple}`]:t.multiple}]}})(_5),C5=({ownerState:e,theme:t})=>z({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${PR.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),eve=je("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Be(n.variant)}`],n.open&&t.iconOpen]}})(C5),tve=T.forwardRef(function(t,n){const{className:r,disabled:i,IconComponent:o,inputRef:a,variant:s="standard"}=t,l=et(t,Zme),c=z({},t,{disabled:i,variant:s}),f=Jme(c);return k.jsxs(T.Fragment,{children:[k.jsx(Qme,z({ownerState:c,className:Qe(f.select,r),disabled:i,ref:a||n},l)),t.multiple?null:k.jsx(eve,{as:o,ownerState:c,className:f.icon})]})}),nve=tve;var aP;const rve=["children","classes","className","label","notched"],ive=je("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%"}),ove=je("legend")(({ownerState:e,theme:t})=>z({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&&z({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 ave(e){const{className:t,label:n,notched:r}=e,i=et(e,rve),o=n!=null&&n!=="",a=z({},e,{notched:r,withLabel:o});return k.jsx(ive,z({"aria-hidden":!0,className:t,ownerState:a},i,{children:k.jsx(ove,{ownerState:a,children:o?k.jsx("span",{children:n}):aP||(aP=k.jsx("span",{className:"notranslate",children:""}))})}))}const sve=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],lve=e=>{const{classes:t}=e,r=_t({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Bde,t);return z({},t,r)},uve=je(tx,{shouldForwardProp:e=>da(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Qb})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return z({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ul.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ul.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${ul.focused} .${ul.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${ul.error} .${ul.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ul.disabled} .${ul.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&z({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),cve=je(ave,{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}}),fve=je(nx,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:ex})(({theme:e,ownerState:t})=>z({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})),E5=T.forwardRef(function(t,n){var r,i,o,a,s;const l=Ct({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:f=!1,inputComponent:h="input",label:p,multiline:y=!1,notched:m,slots:v={},type:S="text"}=l,x=et(l,sve),w=lve(l),C=Ql(),E=Nd({props:l,muiFormControl:C,states:["required"]}),O=z({},l,{color:E.color||"primary",disabled:E.disabled,error:E.error,focused:E.focused,formControl:C,fullWidth:f,hiddenLabel:E.hiddenLabel,multiline:y,size:E.size,type:S}),$=(r=(i=v.root)!=null?i:c.Root)!=null?r:uve,I=(o=(a=v.input)!=null?a:c.Input)!=null?o:fve;return k.jsx(rx,z({slots:{root:$,input:I},renderSuffix:W=>k.jsx(cve,{ownerState:O,className:w.notchedOutline,label:p!=null&&p!==""&&E.required?s||(s=k.jsxs(T.Fragment,{children:[p," ","*"]})):p,notched:typeof m<"u"?m:!!(W.startAdornment||W.filled||W.focused)}),fullWidth:f,inputComponent:h,multiline:y,ref:n,type:S},x,{classes:z({},w,{notchedOutline:null})}))});E5.muiName="Input";const k5=E5;function dve(e){return wt("MuiSelect",e)}const pve=bt("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),py=pve;var sP;const hve=["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"],gve=je("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${py.select}`]:t.select},{[`&.${py.select}`]:t[n.variant]},{[`&.${py.multiple}`]:t.multiple}]}})(_5,{[`&.${py.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),mve=je("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Be(n.variant)}`],n.open&&t.iconOpen]}})(C5),vve=je("input",{shouldForwardProp:e=>bR(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 lP(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function yve(e){return e==null||typeof e=="string"&&!e.trim()}const bve=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o}=e,a={select:["select",n,r&&"disabled",i&&"multiple"],icon:["icon",`icon${Be(n)}`,o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return _t(a,dve,t)},xve=T.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":i,autoFocus:o,autoWidth:a,children:s,className:l,defaultOpen:c,defaultValue:f,disabled:h,displayEmpty:p,IconComponent:y,inputRef:m,labelId:v,MenuProps:S={},multiple:x,name:w,onBlur:C,onChange:E,onClose:O,onFocus:$,onOpen:I,open:W,readOnly:H,renderValue:j,SelectDisplayProps:U={},tabIndex:le,value:se,variant:ie="standard"}=t,Q=et(t,hve),[L,te]=bd({controlled:se,default:f,name:"Select"}),[Z,ee]=bd({controlled:W,default:c,name:"Select"}),Y=T.useRef(null),M=T.useRef(null),[A,ne]=T.useState(null),{current:oe}=T.useRef(W!=null),[ce,re]=T.useState(),Se=$n(n,m),ke=T.useCallback(ae=>{M.current=ae,ae&&ne(ae)},[]),Ce=A==null?void 0:A.parentNode;T.useImperativeHandle(Se,()=>({focus:()=>{M.current.focus()},node:Y.current,value:L}),[L]),T.useEffect(()=>{c&&Z&&A&&!oe&&(re(a?null:Ce.clientWidth),M.current.focus())},[A,a]),T.useEffect(()=>{o&&M.current.focus()},[o]),T.useEffect(()=>{if(!v)return;const ae=Vn(M.current).getElementById(v);if(ae){const Re=()=>{getSelection().isCollapsed&&M.current.focus()};return ae.addEventListener("click",Re),()=>{ae.removeEventListener("click",Re)}}},[v]);const Pe=(ae,Re)=>{ae?I&&I(Re):O&&O(Re),oe||(re(a?null:Ce.clientWidth),ee(ae))},Le=ae=>{ae.button===0&&(ae.preventDefault(),M.current.focus(),Pe(!0,ae))},ze=ae=>{Pe(!1,ae)},We=T.Children.toArray(s),qe=ae=>{const Re=We.map($e=>$e.props.value).indexOf(ae.target.value);if(Re===-1)return;const Ie=We[Re];te(Ie.props.value),E&&E(ae,Ie)},Ve=ae=>Re=>{let Ie;if(Re.currentTarget.hasAttribute("tabindex")){if(x){Ie=Array.isArray(L)?L.slice():[];const $e=L.indexOf(ae.props.value);$e===-1?Ie.push(ae.props.value):Ie.splice($e,1)}else Ie=ae.props.value;if(ae.props.onClick&&ae.props.onClick(Re),L!==Ie&&(te(Ie),E)){const $e=Re.nativeEvent||Re,dt=new $e.constructor($e.type,$e);Object.defineProperty(dt,"target",{writable:!0,value:{value:Ie,name:w}}),E(dt,ae)}x||Pe(!1,Re)}},at=ae=>{H||[" ","ArrowUp","ArrowDown","Enter"].indexOf(ae.key)!==-1&&(ae.preventDefault(),Pe(!0,ae))},Ze=A!==null&&Z,tt=ae=>{!Ze&&C&&(Object.defineProperty(ae,"target",{writable:!0,value:{value:L,name:w}}),C(ae))};delete Q["aria-invalid"];let gt,ge;const Te=[];let Ee=!1;(OR({value:L})||p)&&(j?gt=j(L):Ee=!0);const Ae=We.map((ae,Re,Ie)=>{var $e,dt,ot,pe;if(!T.isValidElement(ae))return null;let me;if(x){if(!Array.isArray(L))throw new Error(Ul(2));me=L.some(Ue=>lP(Ue,ae.props.value)),me&&Ee&&Te.push(ae.props.children)}else me=lP(L,ae.props.value),me&&Ee&&(ge=ae.props.children);if(ae.props.value===void 0)return T.cloneElement(ae,{"aria-readonly":!0,role:"option"});const _e=()=>{if(L)return me;const Ue=Ie.find(Ke=>{var Ge;return(Ke==null||(Ge=Ke.props)==null?void 0:Ge.value)!==void 0&&Ke.props.disabled!==!0});return ae===Ue?!0:me};return T.cloneElement(ae,{"aria-selected":me?"true":"false",onClick:Ve(ae),onKeyUp:Ue=>{Ue.key===" "&&Ue.preventDefault(),ae.props.onKeyUp&&ae.props.onKeyUp(Ue)},role:"option",selected:(($e=Ie[0])==null||(dt=$e.props)==null?void 0:dt.value)===void 0||((ot=Ie[0])==null||(pe=ot.props)==null?void 0:pe.disabled)===!0?_e():me,value:void 0,"data-value":ae.props.value})});Ee&&(x?Te.length===0?gt=null:gt=Te.reduce((ae,Re,Ie)=>(ae.push(Re),Ie<Te.length-1&&ae.push(", "),ae),[]):gt=ge);let B=ce;!a&&oe&&A&&(B=Ce.clientWidth);let V;typeof le<"u"?V=le:V=h?null:0;const he=U.id||(w?`mui-component-select-${w}`:void 0),G=z({},t,{variant:ie,value:L,open:Ze}),fe=bve(G);return k.jsxs(T.Fragment,{children:[k.jsx(gve,z({ref:ke,tabIndex:V,role:"button","aria-disabled":h?"true":void 0,"aria-expanded":Ze?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[v,he].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:at,onMouseDown:h||H?null:Le,onBlur:tt,onFocus:$},U,{ownerState:G,className:Qe(U.className,fe.select,l),id:he,children:yve(gt)?sP||(sP=k.jsx("span",{className:"notranslate",children:""})):gt})),k.jsx(vve,z({value:Array.isArray(L)?L.join(","):L,name:w,ref:Y,"aria-hidden":!0,onChange:qe,tabIndex:-1,disabled:h,className:fe.nativeInput,autoFocus:o,ownerState:G},Q)),k.jsx(mve,{as:y,className:fe.icon,ownerState:G}),k.jsx(sx,z({id:`menu-${w||""}`,anchorEl:Ce,open:Ze,onClose:ze,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},S,{MenuListProps:z({"aria-labelledby":v,role:"listbox",disableListWrap:!0},S.MenuListProps),PaperProps:z({},S.PaperProps,{style:z({minWidth:B},S.PaperProps!=null?S.PaperProps.style:null)}),children:Ae}))]})}),wve=xve;var uP,cP;const Sve=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],_ve=e=>{const{classes:t}=e;return t},LR={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>da(e)&&e!=="variant",slot:"Root"},Cve=je(y5,LR)(""),Eve=je(k5,LR)(""),kve=je(p5,LR)(""),T5=T.forwardRef(function(t,n){const r=Ct({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:o,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:f=Kde,id:h,input:p,inputProps:y,label:m,labelId:v,MenuProps:S,multiple:x=!1,native:w=!1,onClose:C,onOpen:E,open:O,renderValue:$,SelectDisplayProps:I,variant:W="outlined"}=r,H=et(r,Sve),j=w?nve:wve,U=Ql(),se=Nd({props:r,muiFormControl:U,states:["variant"]}).variant||W,ie=p||{standard:uP||(uP=k.jsx(Cve,{})),outlined:k.jsx(Eve,{label:m}),filled:cP||(cP=k.jsx(kve,{}))}[se],Q=z({},r,{variant:se,classes:a}),L=_ve(Q),te=$n(n,ie.ref);return k.jsx(T.Fragment,{children:T.cloneElement(ie,z({inputComponent:j,inputProps:z({children:o,IconComponent:f,variant:se,type:void 0,multiple:x},w?{id:h}:{autoWidth:i,defaultOpen:l,displayEmpty:c,labelId:v,MenuProps:S,onClose:C,onOpen:E,open:O,renderValue:$,SelectDisplayProps:z({id:h},I)},y,{classes:y?_i(L,y.classes):L},p?p.props.inputProps:{})},x&&w&&se==="outlined"?{notched:!0}:{},{ref:te,className:Qe(ie.props.className,s)},!p&&{variant:se},H))})});T5.muiName="Select";const lx=T5,Tve=e=>!e||!za(e),Rve=Tve;function Ave(e){return wt("MuiSlider",e)}const Ove=bt("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"]),oa=Ove,Dve=e=>{const{open:t}=e;return{offset:Qe(t&&oa.valueLabelOpen),circle:oa.valueLabelCircle,label:oa.valueLabelLabel}};function $ve(e){const{children:t,className:n,value:r}=e,i=Dve(e);return t?T.cloneElement(t,{className:Qe(t.props.className)},k.jsxs(T.Fragment,{children:[t.props.children,k.jsx("span",{className:Qe(i.offset,n),"aria-hidden":!0,children:k.jsx("span",{className:i.circle,children:k.jsx("span",{className:i.label,children:r})})})]})):null}const Ive=["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"],fP=(e,t,n)=>(e-t)*100/(n-t);function dP(e){return e}const Pve=je("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Be(n.color)}`],n.size!=="medium"&&t[`size${Be(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})=>z({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"&&z({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"&&z({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"},[`&.${oa.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${oa.dragging}`]:{[`& .${oa.thumb}, & .${oa.track}`]:{transition:"none"}}})),Lve=je("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>z({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})),Fve=je("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?Dg(e.palette[t.color].main,.62):Og(e.palette[t.color].main,.5);return z({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})}),Mve=je("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${Be(n.color)}`],n.size!=="medium"&&t[`thumbSize${Be(n.size)}`]]}})(({theme:e,ownerState:t})=>z({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":z({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, &.${oa.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Jt(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${oa.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Jt(e.palette[t.color].main,.16)}`},[`&.${oa.disabled}`]:{"&:hover":{boxShadow:"none"}}})),Nve=je($ve,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>z({[`&.${oa.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"})),Bve=je("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>bR(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>z({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})),zve=je("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>bR(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>z({},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})),jve=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:o,classes:a,color:s,size:l}=e,c={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",o==="inverted"&&"trackInverted",o===!1&&"trackFalse",s&&`color${Be(s)}`,l&&`size${Be(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${Be(l)}`,s&&`thumbColor${Be(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return _t(c,Ave,a)},Uve=({children:e})=>e,Kve=T.forwardRef(function(t,n){var r,i,o,a,s,l,c,f,h,p,y,m,v,S,x,w,C,E,O,$,I,W,H,j;const U=Ct({props:t,name:"MuiSlider"}),se=fa().direction==="rtl",{"aria-label":ie,"aria-valuetext":Q,"aria-labelledby":L,component:te="span",components:Z={},componentsProps:ee={},color:Y="primary",classes:M,className:A,disableSwap:ne=!1,disabled:oe=!1,getAriaLabel:ce,getAriaValueText:re,marks:Se=!1,max:ke=100,min:Ce=0,orientation:Pe="horizontal",size:Le="medium",step:ze=1,scale:We=dP,slotProps:qe,slots:Ve,track:at="normal",valueLabelDisplay:Ze="off",valueLabelFormat:tt=dP}=U,gt=et(U,Ive),ge=z({},U,{isRtl:se,max:ke,min:Ce,classes:M,disabled:oe,disableSwap:ne,orientation:Pe,marks:Se,color:Y,size:Le,step:ze,scale:We,track:at,valueLabelDisplay:Ze,valueLabelFormat:tt}),{axisProps:Te,getRootProps:Ee,getHiddenInputProps:Ae,getThumbProps:B,open:V,active:he,axis:G,focusedThumbIndex:fe,range:ae,dragging:Re,marks:Ie,values:$e,trackOffset:dt,trackLeap:ot}=zce(z({},ge,{ref:n}));ge.marked=Ie.length>0&&Ie.some(xn=>xn.label),ge.dragging=Re,ge.focusedThumbIndex=fe;const pe=jve(ge),me=(r=(i=Ve==null?void 0:Ve.root)!=null?i:Z.Root)!=null?r:Pve,_e=(o=(a=Ve==null?void 0:Ve.rail)!=null?a:Z.Rail)!=null?o:Lve,Ue=(s=(l=Ve==null?void 0:Ve.track)!=null?l:Z.Track)!=null?s:Fve,Ke=(c=(f=Ve==null?void 0:Ve.thumb)!=null?f:Z.Thumb)!=null?c:Mve,Ge=(h=(p=Ve==null?void 0:Ve.valueLabel)!=null?p:Z.ValueLabel)!=null?h:Nve,ut=(y=(m=Ve==null?void 0:Ve.mark)!=null?m:Z.Mark)!=null?y:Bve,st=(v=(S=Ve==null?void 0:Ve.markLabel)!=null?S:Z.MarkLabel)!=null?v:zve,nt=(x=(w=Ve==null?void 0:Ve.input)!=null?w:Z.Input)!=null?x:"input",ft=(C=qe==null?void 0:qe.root)!=null?C:ee.root,Ot=(E=qe==null?void 0:qe.rail)!=null?E:ee.rail,Zt=(O=qe==null?void 0:qe.track)!=null?O:ee.track,Gt=($=qe==null?void 0:qe.thumb)!=null?$:ee.thumb,Vt=(I=qe==null?void 0:qe.valueLabel)!=null?I:ee.valueLabel,tr=(W=qe==null?void 0:qe.mark)!=null?W:ee.mark,vn=(H=qe==null?void 0:qe.markLabel)!=null?H:ee.markLabel,br=(j=qe==null?void 0:qe.input)!=null?j:ee.input,nr=ta({elementType:me,getSlotProps:Ee,externalSlotProps:ft,externalForwardedProps:gt,additionalProps:z({},Rve(me)&&{as:te}),ownerState:z({},ge,ft==null?void 0:ft.ownerState),className:[pe.root,A]}),sr=ta({elementType:_e,externalSlotProps:Ot,ownerState:ge,className:pe.rail}),Ar=ta({elementType:Ue,externalSlotProps:Zt,additionalProps:{style:z({},Te[G].offset(dt),Te[G].leap(ot))},ownerState:z({},ge,Zt==null?void 0:Zt.ownerState),className:pe.track}),Zr=ta({elementType:Ke,getSlotProps:B,externalSlotProps:Gt,ownerState:z({},ge,Gt==null?void 0:Gt.ownerState)}),es=ta({elementType:Ge,externalSlotProps:Vt,ownerState:z({},ge,Vt==null?void 0:Vt.ownerState),className:pe.valueLabel}),Jr=ta({elementType:ut,externalSlotProps:tr,ownerState:ge,className:pe.mark}),Or=ta({elementType:st,externalSlotProps:vn,ownerState:ge}),qs=ta({elementType:nt,getSlotProps:Ae,externalSlotProps:br,ownerState:ge});return k.jsxs(me,z({},nr,{children:[k.jsx(_e,z({},sr)),k.jsx(Ue,z({},Ar)),Ie.filter(xn=>xn.value>=Ce&&xn.value<=ke).map((xn,wn)=>{const Di=fP(xn.value,Ce,ke),qn=Te[G].offset(Di);let Rt;return at===!1?Rt=$e.indexOf(xn.value)!==-1:Rt=at==="normal"&&(ae?xn.value>=$e[0]&&xn.value<=$e[$e.length-1]:xn.value<=$e[0])||at==="inverted"&&(ae?xn.value<=$e[0]||xn.value>=$e[$e.length-1]:xn.value>=$e[0]),k.jsxs(T.Fragment,{children:[k.jsx(ut,z({"data-index":wn},Jr,!za(ut)&&{markActive:Rt},{style:z({},qn,Jr.style),className:Qe(Jr.className,Rt&&pe.markActive)})),xn.label!=null?k.jsx(st,z({"aria-hidden":!0,"data-index":wn},Or,!za(st)&&{markLabelActive:Rt},{style:z({},qn,Or.style),className:Qe(pe.markLabel,Or.className,Rt&&pe.markLabelActive),children:xn.label})):null]},wn)}),$e.map((xn,wn)=>{const Di=fP(xn,Ce,ke),qn=Te[G].offset(Di),Rt=Ze==="off"?Uve:Ge;return k.jsx(T.Fragment,{children:k.jsx(Rt,z({},!za(Rt)&&{valueLabelFormat:tt,valueLabelDisplay:Ze,value:typeof tt=="function"?tt(We(xn),wn):tt,index:wn,open:V===wn||he===wn||Ze==="on",disabled:oe},es,{children:k.jsx(Ke,z({"data-index":wn,"data-focusvisible":fe===wn},Zr,{className:Qe(pe.thumb,Zr.className,he===wn&&pe.active,fe===wn&&pe.focusVisible),style:z({},qn,{pointerEvents:ne&&he!==wn?"none":void 0},Zr.style),children:k.jsx(nt,z({"data-index":wn,"aria-label":ce?ce(wn):ie,"aria-valuenow":We(xn),"aria-labelledby":L,"aria-valuetext":re?re(We(xn),wn):Q,value:$e[wn]},qs))}))}))},wn)})]}))}),Wve=Kve;function Vve(e){return wt("MuiTooltip",e)}const Hve=bt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Rl=Hve,qve=["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 Gve(e){return Math.round(e*1e5)/1e5}const Yve=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${Be(o.split("-")[0])}`],arrow:["arrow"]};return _t(a,Vve,t)},Xve=je(t5,{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})=>z({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Rl.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Rl.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Rl.arrow}`]:z({},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"] .${Rl.arrow}`]:z({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Zve=je("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${Be(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>z({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Jt(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:`${Gve(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Rl.popper}[data-popper-placement*="left"] &`]:z({transformOrigin:"right center"},t.isRtl?z({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):z({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Rl.popper}[data-popper-placement*="right"] &`]:z({transformOrigin:"left center"},t.isRtl?z({marginRight:"14px"},t.touch&&{marginRight:"24px"}):z({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Rl.popper}[data-popper-placement*="top"] &`]:z({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Rl.popper}[data-popper-placement*="bottom"] &`]:z({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),Jve=je("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:Jt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let hy=!1,qS=null,sh={x:0,y:0};function gy(e,t){return n=>{t&&t(n),e(n)}}const Qve=T.forwardRef(function(t,n){var r,i,o,a,s,l,c,f,h,p,y,m,v,S,x,w,C,E,O;const $=Ct({props:t,name:"MuiTooltip"}),{arrow:I=!1,children:W,components:H={},componentsProps:j={},describeChild:U=!1,disableFocusListener:le=!1,disableHoverListener:se=!1,disableInteractive:ie=!1,disableTouchListener:Q=!1,enterDelay:L=100,enterNextDelay:te=0,enterTouchDelay:Z=700,followCursor:ee=!1,id:Y,leaveDelay:M=0,leaveTouchDelay:A=1500,onClose:ne,onOpen:oe,open:ce,placement:re="bottom",PopperComponent:Se,PopperProps:ke={},slotProps:Ce={},slots:Pe={},title:Le,TransitionComponent:ze=AE,TransitionProps:We}=$,qe=et($,qve),Ve=fa(),at=Ve.direction==="rtl",[Ze,tt]=T.useState(),[gt,ge]=T.useState(null),Te=T.useRef(!1),Ee=ie||ee,Ae=T.useRef(),B=T.useRef(),V=T.useRef(),he=T.useRef(),[G,fe]=bd({controlled:ce,default:!1,name:"Tooltip",state:"open"});let ae=G;const Re=im(Y),Ie=T.useRef(),$e=T.useCallback(()=>{Ie.current!==void 0&&(document.body.style.WebkitUserSelect=Ie.current,Ie.current=void 0),clearTimeout(he.current)},[]);T.useEffect(()=>()=>{clearTimeout(Ae.current),clearTimeout(B.current),clearTimeout(V.current),$e()},[$e]);const dt=rt=>{clearTimeout(qS),hy=!0,fe(!0),oe&&!ae&&oe(rt)},ot=_o(rt=>{clearTimeout(qS),qS=setTimeout(()=>{hy=!1},800+M),fe(!1),ne&&ae&&ne(rt),clearTimeout(Ae.current),Ae.current=setTimeout(()=>{Te.current=!1},Ve.transitions.duration.shortest)}),pe=rt=>{Te.current&&rt.type!=="touchstart"||(Ze&&Ze.removeAttribute("title"),clearTimeout(B.current),clearTimeout(V.current),L||hy&&te?B.current=setTimeout(()=>{dt(rt)},hy?te:L):dt(rt))},me=rt=>{clearTimeout(B.current),clearTimeout(V.current),V.current=setTimeout(()=>{ot(rt)},M)},{isFocusVisibleRef:_e,onBlur:Ue,onFocus:Ke,ref:Ge}=om(),[,ut]=T.useState(!1),st=rt=>{Ue(rt),_e.current===!1&&(ut(!1),me(rt))},nt=rt=>{Ze||tt(rt.currentTarget),Ke(rt),_e.current===!0&&(ut(!0),pe(rt))},ft=rt=>{Te.current=!0;const rr=W.props;rr.onTouchStart&&rr.onTouchStart(rt)},Ot=pe,Zt=me,Gt=rt=>{ft(rt),clearTimeout(V.current),clearTimeout(Ae.current),$e(),Ie.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",he.current=setTimeout(()=>{document.body.style.WebkitUserSelect=Ie.current,pe(rt)},Z)},Vt=rt=>{W.props.onTouchEnd&&W.props.onTouchEnd(rt),$e(),clearTimeout(V.current),V.current=setTimeout(()=>{ot(rt)},A)};T.useEffect(()=>{if(!ae)return;function rt(rr){(rr.key==="Escape"||rr.key==="Esc")&&ot(rr)}return document.addEventListener("keydown",rt),()=>{document.removeEventListener("keydown",rt)}},[ot,ae]);const tr=$n(W.ref,Ge,tt,n);!Le&&Le!==0&&(ae=!1);const vn=T.useRef(),br=rt=>{const rr=W.props;rr.onMouseMove&&rr.onMouseMove(rt),sh={x:rt.clientX,y:rt.clientY},vn.current&&vn.current.update()},nr={},sr=typeof Le=="string";U?(nr.title=!ae&&sr&&!se?Le:null,nr["aria-describedby"]=ae?Re:null):(nr["aria-label"]=sr?Le:null,nr["aria-labelledby"]=ae&&!sr?Re:null);const Ar=z({},nr,qe,W.props,{className:Qe(qe.className,W.props.className),onTouchStart:ft,ref:tr},ee?{onMouseMove:br}:{}),Zr={};Q||(Ar.onTouchStart=Gt,Ar.onTouchEnd=Vt),se||(Ar.onMouseOver=gy(Ot,Ar.onMouseOver),Ar.onMouseLeave=gy(Zt,Ar.onMouseLeave),Ee||(Zr.onMouseOver=Ot,Zr.onMouseLeave=Zt)),le||(Ar.onFocus=gy(nt,Ar.onFocus),Ar.onBlur=gy(st,Ar.onBlur),Ee||(Zr.onFocus=nt,Zr.onBlur=st));const es=T.useMemo(()=>{var rt;let rr=[{name:"arrow",enabled:!!gt,options:{element:gt,padding:4}}];return(rt=ke.popperOptions)!=null&&rt.modifiers&&(rr=rr.concat(ke.popperOptions.modifiers)),z({},ke.popperOptions,{modifiers:rr})},[gt,ke]),Jr=z({},$,{isRtl:at,arrow:I,disableInteractive:Ee,placement:re,PopperComponentProp:Se,touch:Te.current}),Or=Yve(Jr),qs=(r=(i=Pe.popper)!=null?i:H.Popper)!=null?r:Xve,xn=(o=(a=(s=Pe.transition)!=null?s:H.Transition)!=null?a:ze)!=null?o:AE,wn=(l=(c=Pe.tooltip)!=null?c:H.Tooltip)!=null?l:Zve,Di=(f=(h=Pe.arrow)!=null?h:H.Arrow)!=null?f:Jve,qn=Dh(qs,z({},ke,(p=Ce.popper)!=null?p:j.popper,{className:Qe(Or.popper,ke==null?void 0:ke.className,(y=(m=Ce.popper)!=null?m:j.popper)==null?void 0:y.className)}),Jr),Rt=Dh(xn,z({},We,(v=Ce.transition)!=null?v:j.transition),Jr),au=Dh(wn,z({},(S=Ce.tooltip)!=null?S:j.tooltip,{className:Qe(Or.tooltip,(x=(w=Ce.tooltip)!=null?w:j.tooltip)==null?void 0:x.className)}),Jr),Pc=Dh(Di,z({},(C=Ce.arrow)!=null?C:j.arrow,{className:Qe(Or.arrow,(E=(O=Ce.arrow)!=null?O:j.arrow)==null?void 0:E.className)}),Jr);return k.jsxs(T.Fragment,{children:[T.cloneElement(W,Ar),k.jsx(qs,z({as:Se??t5,placement:re,anchorEl:ee?{getBoundingClientRect:()=>({top:sh.y,left:sh.x,right:sh.x,bottom:sh.y,width:0,height:0})}:Ze,popperRef:vn,open:Ze?ae:!1,id:Re,transition:!0},Zr,qn,{popperOptions:es,children:({TransitionProps:rt})=>k.jsx(xn,z({timeout:Ve.transitions.duration.shorter},rt,Rt,{children:k.jsxs(wn,z({},au,{children:[Le,I?k.jsx(Di,z({},Pc,{ref:ge})):null]}))}))}))]})}),Wa=Qve,eye=["component","direction","spacing","divider","children"];function tye(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 nye=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],rye=({ownerState:e,theme:t})=>{let n=z({display:"flex",flexDirection:"column"},ca({theme:t},BS({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=pR(t),i=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),o=BS({values:e.direction,base:i}),a=BS({values:e.spacing,base:i});typeof o=="object"&&Object.keys(o).forEach((l,c,f)=>{if(!o[l]){const p=c>0?o[f[c-1]]:"column";o[l]=p}}),n=_i(n,ca({theme:t},a,(l,c)=>({"& > :not(style) + :not(style)":{margin:0,[`margin${nye(c?o[c]:e.direction)}`]:Ld(r,l)}})))}return n=Xae(t.breakpoints,n),n},iye=je("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>[t.root]})(rye),oye=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiStack"}),i=gR(r),{component:o="div",direction:a="column",spacing:s=0,divider:l,children:c}=i,f=et(i,eye),h={direction:a,spacing:s};return k.jsx(iye,z({as:o,ownerState:h,ref:n},f,{children:l?tye(c,l):c}))}),In=oye;function aye(e){return wt("MuiSwitch",e)}const sye=bt("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),ii=sye,lye=["className","color","edge","size","sx"],uye=e=>{const{classes:t,edge:n,size:r,color:i,checked:o,disabled:a}=e,s={root:["root",n&&`edge${Be(n)}`,`size${Be(r)}`],switchBase:["switchBase",`color${Be(i)}`,o&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=_t(s,aye,t);return z({},t,l)},cye=je("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Be(n.edge)}`],t[`size${Be(n.size)}`]]}})(({ownerState:e})=>z({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,[`& .${ii.thumb}`]:{width:16,height:16},[`& .${ii.switchBase}`]:{padding:4,[`&.${ii.checked}`]:{transform:"translateX(16px)"}}})),fye=je(Epe,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${ii.input}`]:t.input},n.color!=="default"&&t[`color${Be(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}),[`&.${ii.checked}`]:{transform:"translateX(20px)"},[`&.${ii.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${ii.checked} + .${ii.track}`]:{opacity:.5},[`&.${ii.disabled} + .${ii.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${ii.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>z({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Jt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${ii.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})`:Jt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ii.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?Dg(e.palette[t.color].main,.62):Og(e.palette[t.color].main,.55)}`}},[`&.${ii.checked} + .${ii.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),dye=je("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}`})),pye=je("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%"})),hye=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiSwitch"}),{className:i,color:o="primary",edge:a=!1,size:s="medium",sx:l}=r,c=et(r,lye),f=z({},r,{color:o,edge:a,size:s}),h=uye(f),p=k.jsx(pye,{className:h.thumb,ownerState:f});return k.jsxs(cye,{className:Qe(h.root,i),sx:l,ownerState:f,children:[k.jsx(fye,z({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:f},c,{classes:z({},h,{root:h.switchBase})})),k.jsx(dye,{className:h.track,ownerState:f})]})}),GS=hye;function gye(e){return wt("MuiToolbar",e)}bt("MuiToolbar",["root","gutters","regular","dense"]);const mye=["className","component","disableGutters","variant"],vye=e=>{const{classes:t,disableGutters:n,variant:r}=e;return _t({root:["root",!n&&"gutters",r]},gye,t)},yye=je("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})=>z({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),bye=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiToolbar"}),{className:i,component:o="div",disableGutters:a=!1,variant:s="regular"}=r,l=et(r,mye),c=z({},r,{component:o,disableGutters:a,variant:s}),f=vye(c);return k.jsx(yye,z({as:o,className:Qe(f.root,i),ref:n,ownerState:c},l))}),xye=bye;function wye(e){return wt("MuiTextField",e)}bt("MuiTextField",["root"]);const Sye=["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"],_ye={standard:y5,filled:p5,outlined:k5},Cye=e=>{const{classes:t}=e;return _t({root:["root"]},wye,t)},Eye=je($R,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),kye=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:o=!1,children:a,className:s,color:l="primary",defaultValue:c,disabled:f=!1,error:h=!1,FormHelperTextProps:p,fullWidth:y=!1,helperText:m,id:v,InputLabelProps:S,inputProps:x,InputProps:w,inputRef:C,label:E,maxRows:O,minRows:$,multiline:I=!1,name:W,onBlur:H,onChange:j,onFocus:U,placeholder:le,required:se=!1,rows:ie,select:Q=!1,SelectProps:L,type:te,value:Z,variant:ee="outlined"}=r,Y=et(r,Sye),M=z({},r,{autoFocus:o,color:l,disabled:f,error:h,fullWidth:y,multiline:I,required:se,select:Q,variant:ee}),A=Cye(M),ne={};ee==="outlined"&&(S&&typeof S.shrink<"u"&&(ne.notched=S.shrink),ne.label=E),Q&&((!L||!L.native)&&(ne.id=void 0),ne["aria-describedby"]=void 0);const oe=im(v),ce=m&&oe?`${oe}-helper-text`:void 0,re=E&&oe?`${oe}-label`:void 0,Se=_ye[ee],ke=k.jsx(Se,z({"aria-describedby":ce,autoComplete:i,autoFocus:o,defaultValue:c,fullWidth:y,multiline:I,name:W,rows:ie,maxRows:O,minRows:$,type:te,value:Z,id:oe,inputRef:C,onBlur:H,onChange:j,onFocus:U,placeholder:le,inputProps:x},ne,w));return k.jsxs(Eye,z({className:Qe(A.root,s),disabled:f,error:h,fullWidth:y,ref:n,required:se,color:l,variant:ee,ownerState:M},Y,{children:[E!=null&&E!==""&&k.jsx(Vl,z({htmlFor:oe,id:re},S,{children:E})),Q?k.jsx(lx,z({"aria-describedby":ce,id:oe,labelId:re,value:Z,input:ke},L,{children:a})):ke,m&&k.jsx(jhe,z({id:ce},p,{children:m}))]}))}),FR=kye;/**
|
|
165
|
+
* @remix-run/router v1.3.2
|
|
166
|
+
*
|
|
167
|
+
* Copyright (c) Remix Software Inc.
|
|
168
|
+
*
|
|
169
|
+
* This source code is licensed under the MIT license found in the
|
|
170
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
171
|
+
*
|
|
172
|
+
* @license MIT
|
|
173
|
+
*/function sn(){return sn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sn.apply(this,arguments)}var cr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(cr||(cr={}));const pP="popstate";function Tye(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:a,hash:s}=r.location;return Pg("",{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:Fs(i)}return Aye(t,n,null,e)}function Ft(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Rye(){return Math.random().toString(36).substr(2,8)}function hP(e,t){return{usr:e.state,key:e.key,idx:t}}function Pg(e,t,n,r){return n===void 0&&(n=null),sn({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Us(t):t,{state:n,key:t&&t.key||r||Rye()})}function Fs(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 Us(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 Aye(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=cr.Pop,l=null,c=f();c==null&&(c=0,a.replaceState(sn({},a.state,{idx:c}),""));function f(){return(a.state||{idx:null}).idx}function h(){s=cr.Pop;let S=f(),x=S==null?null:S-c;c=S,l&&l({action:s,location:v.location,delta:x})}function p(S,x){s=cr.Push;let w=Pg(v.location,S,x);n&&n(w,S),c=f()+1;let C=hP(w,c),E=v.createHref(w);try{a.pushState(C,"",E)}catch{i.location.assign(E)}o&&l&&l({action:s,location:v.location,delta:1})}function y(S,x){s=cr.Replace;let w=Pg(v.location,S,x);n&&n(w,S),c=f();let C=hP(w,c),E=v.createHref(w);a.replaceState(C,"",E),o&&l&&l({action:s,location:v.location,delta:0})}function m(S){let x=i.location.origin!=="null"?i.location.origin:i.location.href,w=typeof S=="string"?S:Fs(S);return Ft(x,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,x)}let v={get action(){return s},get location(){return e(i,a)},listen(S){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(pP,h),l=S,()=>{i.removeEventListener(pP,h),l=null}},createHref(S){return t(i,S)},createURL:m,encodeLocation(S){let x=m(S);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:p,replace:y,go(S){return a.go(S)}};return v}var Fr;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Fr||(Fr={}));function Oye(e){return e.index===!0}function R5(e,t,n){return t===void 0&&(t=[]),n===void 0&&(n=new Set),e.map((r,i)=>{let o=[...t,i],a=typeof r.id=="string"?r.id:o.join("-");return Ft(r.index!==!0||!r.children,"Cannot specify children on an index route"),Ft(!n.has(a),'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),n.add(a),Oye(r)?sn({},r,{id:a}):sn({},r,{id:a,children:r.children?R5(r.children,o,n):void 0})})}function Ih(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Us(t):t,i=D5(r.pathname||"/",n);if(i==null)return null;let o=A5(e);Dye(o);let a=null;for(let s=0;a==null&&s<o.length;++s)a=zye(o[s],Kye(i));return a}function A5(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,a,s)=>{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};l.relativePath.startsWith("/")&&(Ft(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=As([r,l.relativePath]),f=n.concat(l);o.children&&o.children.length>0&&(Ft(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),A5(o.children,t,f,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:Nye(c,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 O5(o.path))i(o,a,l)}),t}function O5(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=O5(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 Dye(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Bye(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const $ye=/^:\w+$/,Iye=3,Pye=2,Lye=1,Fye=10,Mye=-2,gP=e=>e==="*";function Nye(e,t){let n=e.split("/"),r=n.length;return n.some(gP)&&(r+=Mye),t&&(r+=Pye),n.filter(i=>!gP(i)).reduce((i,o)=>i+($ye.test(o)?Iye:o===""?Lye:Fye),r)}function Bye(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 zye(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,c=i==="/"?t:t.slice(i.length)||"/",f=jye({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},c);if(!f)return null;Object.assign(r,f.params);let h=s.route;o.push({params:r,pathname:As([i,f.pathname]),pathnameBase:qye(As([i,f.pathnameBase])),route:h}),f.pathnameBase!=="/"&&(i=As([i,f.pathnameBase]))}return o}function jye(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Uye(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((c,f,h)=>{if(f==="*"){let p=s[h]||"";a=o.slice(0,o.length-p.length).replace(/(.)\/+$/,"$1")}return c[f]=Wye(s[h]||"",f),c},{}),pathname:o,pathnameBase:a,pattern:e}}function Uye(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Lg(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 Kye(e){try{return decodeURI(e)}catch(t){return Lg(!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 Wye(e,t){try{return decodeURIComponent(e)}catch(n){return Lg(!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 D5(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 Lg(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Vye(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Us(e):e;return{pathname:n?n.startsWith("/")?n:Hye(n,t):t,search:Gye(r),hash:Yye(i)}}function Hye(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 YS(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 ux(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function MR(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Us(e):(i=sn({},e),Ft(!i.pathname||!i.pathname.includes("?"),YS("?","pathname","search",i)),Ft(!i.pathname||!i.pathname.includes("#"),YS("#","pathname","hash",i)),Ft(!i.search||!i.search.includes("#"),YS("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(r||a==null)s=n;else{let h=t.length-1;if(a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),h-=1;i.pathname=p.join("/")}s=h>=0?t[h]:"/"}let l=Vye(i,s),c=a&&a!=="/"&&a.endsWith("/"),f=(o||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||f)&&(l.pathname+="/"),l}const As=e=>e.join("/").replace(/\/\/+/g,"/"),qye=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Gye=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Yye=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class mP extends Error{}class Xye{constructor(t,n){this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],Ft(t&&typeof t=="object"&&!Array.isArray(t),"defer() only accepts plain objects");let r;this.abortPromise=new Promise((o,a)=>r=a),this.controller=new AbortController;let i=()=>r(new mP("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 mP?(this.unlistenAbortSignal(),Object.defineProperty(t,"_error",{get:()=>r}),Promise.reject(r)):(this.pendingKeysSet.delete(n),this.done&&this.unlistenAbortSignal(),r?(Object.defineProperty(t,"_error",{get:()=>r}),this.emit(!1,n),Promise.reject(r)):(Object.defineProperty(t,"_data",{get:()=>i}),this.emit(!1,n),i))}emit(t,n){this.subscribers.forEach(r=>r(t,n))}subscribe(t){return this.subscribers.add(t),()=>this.subscribers.delete(t)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((t,n)=>this.pendingKeysSet.delete(n)),this.emit(!0)}async resolveData(t){let n=!1;if(!this.done){let r=()=>this.cancel();t.addEventListener("abort",r),n=await new Promise(i=>{this.subscribe(o=>{t.removeEventListener("abort",r),(o||this.done)&&i(o)})})}return n}get done(){return this.pendingKeysSet.size===0}get unwrappedData(){return Ft(this.data!==null&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((t,n)=>{let[r,i]=n;return Object.assign(t,{[r]:Jye(i)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function Zye(e){return e instanceof Promise&&e._tracked===!0}function Jye(e){if(!Zye(e))return e;if(e._error)throw e._error;return e._data}class NR{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 $5(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const I5=["post","put","patch","delete"],Qye=new Set(I5),e0e=["get",...I5],t0e=new Set(e0e),n0e=new Set([301,302,303,307,308]),r0e=new Set([307,308]),XS={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},i0e={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},vP={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},P5=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,L5=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",o0e=!L5;function a0e(e){Ft(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let t=R5(e.routes),n=null,r=new Set,i=null,o=null,a=null,s=e.hydrationData!=null,l=Ih(t,e.history.location,e.basename),c=null;if(l==null){let B=ml(404,{pathname:e.history.location.pathname}),{matches:V,route:he}=_P(t);l=V,c={[he.id]:B}}let f=!l.some(B=>B.route.loader)||e.hydrationData!=null,h,p={historyAction:e.history.action,location:e.history.location,matches:l,initialized:f,navigation:XS,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||c,fetchers:new Map,blockers:new Map},y=cr.Pop,m=!1,v,S=!1,x=!1,w=[],C=[],E=new Map,O=0,$=-1,I=new Map,W=new Set,H=new Map,j=new Map,U=new Map,le=!1;function se(){return n=e.history.listen(B=>{let{action:V,location:he,delta:G}=B;if(le){le=!1;return}Lg(U.size===0||G!=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 fe=gt({currentLocation:p.location,nextLocation:he,historyAction:V});if(fe&&G!=null){le=!0,e.history.go(G*-1),tt(fe,{state:"blocked",location:he,proceed(){tt(fe,{state:"proceeding",proceed:void 0,reset:void 0,location:he}),e.history.go(G)},reset(){Ze(fe),L({blockers:new Map(h.state.blockers)})}});return}return Y(V,he)}),p.initialized||Y(cr.Pop,p.location),h}function ie(){n&&n(),r.clear(),v&&v.abort(),p.fetchers.forEach((B,V)=>Le(V)),p.blockers.forEach((B,V)=>Ze(V))}function Q(B){return r.add(B),()=>r.delete(B)}function L(B){p=sn({},p,B),r.forEach(V=>V(p))}function te(B,V){var he,G;let fe=p.actionData!=null&&p.navigation.formMethod!=null&&ws(p.navigation.formMethod)&&p.navigation.state==="loading"&&((he=B.state)==null?void 0:he._isRedirect)!==!0,ae;V.actionData?Object.keys(V.actionData).length>0?ae=V.actionData:ae=null:fe?ae=p.actionData:ae=null;let Re=V.loaderData?SP(p.loaderData,V.loaderData,V.matches||[],V.errors):p.loaderData;for(let[$e]of U)Ze($e);let Ie=m===!0||p.navigation.formMethod!=null&&ws(p.navigation.formMethod)&&((G=B.state)==null?void 0:G._isRedirect)!==!0;L(sn({},V,{actionData:ae,loaderData:Re,historyAction:y,location:B,initialized:!0,navigation:XS,revalidation:"idle",restoreScrollPosition:Ae(B,V.matches||p.matches),preventScrollReset:Ie,blockers:new Map(p.blockers)})),S||y===cr.Pop||(y===cr.Push?e.history.push(B,B.state):y===cr.Replace&&e.history.replace(B,B.state)),y=cr.Pop,m=!1,S=!1,x=!1,w=[],C=[]}async function Z(B,V){if(typeof B=="number"){e.history.go(B);return}let{path:he,submission:G,error:fe}=yP(B,V),ae=p.location,Re=Pg(p.location,he,V&&V.state);Re=sn({},Re,e.history.encodeLocation(Re));let Ie=V&&V.replace!=null?V.replace:void 0,$e=cr.Push;Ie===!0?$e=cr.Replace:Ie===!1||G!=null&&ws(G.formMethod)&&G.formAction===p.location.pathname+p.location.search&&($e=cr.Replace);let dt=V&&"preventScrollReset"in V?V.preventScrollReset===!0:void 0,ot=gt({currentLocation:ae,nextLocation:Re,historyAction:$e});if(ot){tt(ot,{state:"blocked",location:Re,proceed(){tt(ot,{state:"proceeding",proceed:void 0,reset:void 0,location:Re}),Z(B,V)},reset(){Ze(ot),L({blockers:new Map(p.blockers)})}});return}return await Y($e,Re,{submission:G,pendingError:fe,preventScrollReset:dt,replace:V&&V.replace})}function ee(){if(Ce(),L({revalidation:"loading"}),p.navigation.state!=="submitting"){if(p.navigation.state==="idle"){Y(p.historyAction,p.location,{startUninterruptedRevalidation:!0});return}Y(y||p.historyAction,p.navigation.location,{overrideNavigation:p.navigation})}}async function Y(B,V,he){v&&v.abort(),v=null,y=B,S=(he&&he.startUninterruptedRevalidation)===!0,Ee(p.location,p.matches),m=(he&&he.preventScrollReset)===!0;let G=he&&he.overrideNavigation,fe=Ih(t,V,e.basename);if(!fe){let pe=ml(404,{pathname:V.pathname}),{matches:me,route:_e}=_P(t);ge(),te(V,{matches:me,loaderData:{},errors:{[_e.id]:pe}});return}if(f0e(p.location,V)&&!(he&&he.submission&&ws(he.submission.formMethod))){te(V,{matches:fe});return}v=new AbortController;let ae=uh(e.history,V,v.signal,he&&he.submission),Re,Ie;if(he&&he.pendingError)Ie={[Bf(fe).route.id]:he.pendingError};else if(he&&he.submission&&ws(he.submission.formMethod)){let pe=await M(ae,V,he.submission,fe,{replace:he.replace});if(pe.shortCircuited)return;Re=pe.pendingActionData,Ie=pe.pendingActionError,G=sn({state:"loading",location:V},he.submission),ae=new Request(ae.url,{signal:ae.signal})}let{shortCircuited:$e,loaderData:dt,errors:ot}=await A(ae,V,fe,G,he&&he.submission,he&&he.replace,Re,Ie);$e||(v=null,te(V,sn({matches:fe},Re?{actionData:Re}:{},{loaderData:dt,errors:ot})))}async function M(B,V,he,G,fe){Ce();let ae=sn({state:"submitting",location:V},he);L({navigation:ae});let Re,Ie=TP(G,V);if(!Ie.route.action)Re={type:Fr.error,error:ml(405,{method:B.method,pathname:V.pathname,routeId:Ie.route.id})};else if(Re=await lh("action",B,Ie,G,h.basename),B.signal.aborted)return{shortCircuited:!0};if(td(Re)){let $e;return fe&&fe.replace!=null?$e=fe.replace:$e=Re.location===p.location.pathname+p.location.search,await Se(p,Re,{submission:he,replace:$e}),{shortCircuited:!0}}if(ng(Re)){let $e=Bf(G,Ie.route.id);return(fe&&fe.replace)!==!0&&(y=cr.Push),{pendingActionData:{},pendingActionError:{[$e.route.id]:Re.error}}}if(Wu(Re))throw ml(400,{type:"defer-action"});return{pendingActionData:{[Ie.route.id]:Re.data}}}async function A(B,V,he,G,fe,ae,Re,Ie){let $e=G;$e||($e=sn({state:"loading",location:V,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},fe));let dt=fe||($e.formMethod&&$e.formAction&&$e.formData&&$e.formEncType?{formMethod:$e.formMethod,formAction:$e.formAction,formData:$e.formData,formEncType:$e.formEncType}:void 0),[ot,pe]=bP(e.history,p,he,dt,V,x,w,C,Re,Ie,H);if(ge(nt=>!(he&&he.some(ft=>ft.route.id===nt))||ot&&ot.some(ft=>ft.route.id===nt)),ot.length===0&&pe.length===0)return te(V,sn({matches:he,loaderData:{},errors:Ie||null},Re?{actionData:Re}:{})),{shortCircuited:!0};if(!S){pe.forEach(ft=>{let Ot=p.fetchers.get(ft.key),Zt={state:"loading",data:Ot&&Ot.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};p.fetchers.set(ft.key,Zt)});let nt=Re||p.actionData;L(sn({navigation:$e},nt?Object.keys(nt).length===0?{actionData:null}:{actionData:nt}:{},pe.length>0?{fetchers:new Map(p.fetchers)}:{}))}$=++O,pe.forEach(nt=>E.set(nt.key,v));let{results:me,loaderResults:_e,fetcherResults:Ue}=await ke(p.matches,he,ot,pe,B);if(B.signal.aborted)return{shortCircuited:!0};pe.forEach(nt=>E.delete(nt.key));let Ke=CP(me);if(Ke)return await Se(p,Ke,{replace:ae}),{shortCircuited:!0};let{loaderData:Ge,errors:ut}=wP(p,he,ot,_e,Ie,pe,Ue,j);j.forEach((nt,ft)=>{nt.subscribe(Ot=>{(Ot||nt.done)&&j.delete(ft)})}),qe();let st=Ve($);return sn({loaderData:Ge,errors:ut},st||pe.length>0?{fetchers:new Map(p.fetchers)}:{})}function ne(B){return p.fetchers.get(B)||i0e}function oe(B,V,he,G){if(o0e)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.");E.has(B)&&ze(B);let fe=Ih(t,he,e.basename);if(!fe){Pe(B,V,ml(404,{pathname:he}));return}let{path:ae,submission:Re}=yP(he,G,!0),Ie=TP(fe,ae);if(m=(G&&G.preventScrollReset)===!0,Re&&ws(Re.formMethod)){ce(B,V,ae,Ie,fe,Re);return}H.set(B,{routeId:V,path:ae,match:Ie,matches:fe}),re(B,V,ae,Ie,fe,Re)}async function ce(B,V,he,G,fe,ae){if(Ce(),H.delete(B),!G.route.action){let vn=ml(405,{method:ae.formMethod,pathname:he,routeId:V});Pe(B,V,vn);return}let Re=p.fetchers.get(B),Ie=sn({state:"submitting"},ae,{data:Re&&Re.data," _hasFetcherDoneAnything ":!0});p.fetchers.set(B,Ie),L({fetchers:new Map(p.fetchers)});let $e=new AbortController,dt=uh(e.history,he,$e.signal,ae);E.set(B,$e);let ot=await lh("action",dt,G,fe,h.basename);if(dt.signal.aborted){E.get(B)===$e&&E.delete(B);return}if(td(ot)){E.delete(B),W.add(B);let vn=sn({state:"loading"},ae,{data:void 0," _hasFetcherDoneAnything ":!0});return p.fetchers.set(B,vn),L({fetchers:new Map(p.fetchers)}),Se(p,ot,{isFetchActionRedirect:!0})}if(ng(ot)){Pe(B,V,ot.error);return}if(Wu(ot))throw ml(400,{type:"defer-action"});let pe=p.navigation.location||p.location,me=uh(e.history,pe,$e.signal),_e=p.navigation.state!=="idle"?Ih(t,p.navigation.location,e.basename):p.matches;Ft(_e,"Didn't find any matches after fetcher action");let Ue=++O;I.set(B,Ue);let Ke=sn({state:"loading",data:ot.data},ae,{" _hasFetcherDoneAnything ":!0});p.fetchers.set(B,Ke);let[Ge,ut]=bP(e.history,p,_e,ae,pe,x,w,C,{[G.route.id]:ot.data},void 0,H);ut.filter(vn=>vn.key!==B).forEach(vn=>{let br=vn.key,nr=p.fetchers.get(br),sr={state:"loading",data:nr&&nr.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};p.fetchers.set(br,sr),E.set(br,$e)}),L({fetchers:new Map(p.fetchers)});let{results:st,loaderResults:nt,fetcherResults:ft}=await ke(p.matches,_e,Ge,ut,me);if($e.signal.aborted)return;I.delete(B),E.delete(B),ut.forEach(vn=>E.delete(vn.key));let Ot=CP(st);if(Ot)return Se(p,Ot);let{loaderData:Zt,errors:Gt}=wP(p,p.matches,Ge,nt,void 0,ut,ft,j),Vt={state:"idle",data:ot.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};p.fetchers.set(B,Vt);let tr=Ve(Ue);p.navigation.state==="loading"&&Ue>$?(Ft(y,"Expected pending action"),v&&v.abort(),te(p.navigation.location,{matches:_e,loaderData:Zt,errors:Gt,fetchers:new Map(p.fetchers)})):(L(sn({errors:Gt,loaderData:SP(p.loaderData,Zt,_e,Gt)},tr?{fetchers:new Map(p.fetchers)}:{})),x=!1)}async function re(B,V,he,G,fe,ae){let Re=p.fetchers.get(B),Ie=sn({state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},ae,{data:Re&&Re.data," _hasFetcherDoneAnything ":!0});p.fetchers.set(B,Ie),L({fetchers:new Map(p.fetchers)});let $e=new AbortController,dt=uh(e.history,he,$e.signal);E.set(B,$e);let ot=await lh("loader",dt,G,fe,h.basename);if(Wu(ot)&&(ot=await B5(ot,dt.signal,!0)||ot),E.get(B)===$e&&E.delete(B),dt.signal.aborted)return;if(td(ot)){await Se(p,ot);return}if(ng(ot)){let me=Bf(p.matches,V);p.fetchers.delete(B),L({fetchers:new Map(p.fetchers),errors:{[me.route.id]:ot.error}});return}Ft(!Wu(ot),"Unhandled fetcher deferred data");let pe={state:"idle",data:ot.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};p.fetchers.set(B,pe),L({fetchers:new Map(p.fetchers)})}async function Se(B,V,he){var G;let{submission:fe,replace:ae,isFetchActionRedirect:Re}=he===void 0?{}:he;V.revalidate&&(x=!0);let Ie=Pg(B.location,V.location,sn({_isRedirect:!0},Re?{_isFetchActionRedirect:!0}:{}));if(Ft(Ie,"Expected a location on the redirect navigation"),P5.test(V.location)&&L5&&typeof((G=window)==null?void 0:G.location)<"u"){let _e=e.history.createURL(V.location).origin;if(window.location.origin!==_e){ae?window.location.replace(V.location):window.location.assign(V.location);return}}v=null;let $e=ae===!0?cr.Replace:cr.Push,{formMethod:dt,formAction:ot,formEncType:pe,formData:me}=B.navigation;!fe&&dt&&ot&&me&&pe&&(fe={formMethod:dt,formAction:ot,formEncType:pe,formData:me}),r0e.has(V.status)&&fe&&ws(fe.formMethod)?await Y($e,Ie,{submission:sn({},fe,{formAction:V.location}),preventScrollReset:m}):await Y($e,Ie,{overrideNavigation:{state:"loading",location:Ie,formMethod:fe?fe.formMethod:void 0,formAction:fe?fe.formAction:void 0,formEncType:fe?fe.formEncType:void 0,formData:fe?fe.formData:void 0},preventScrollReset:m})}async function ke(B,V,he,G,fe){let ae=await Promise.all([...he.map($e=>lh("loader",fe,$e,V,h.basename)),...G.map($e=>lh("loader",uh(e.history,$e.path,fe.signal),$e.match,$e.matches,h.basename))]),Re=ae.slice(0,he.length),Ie=ae.slice(he.length);return await Promise.all([EP(B,he,Re,fe.signal,!1,p.loaderData),EP(B,G.map($e=>$e.match),Ie,fe.signal,!0)]),{results:ae,loaderResults:Re,fetcherResults:Ie}}function Ce(){x=!0,w.push(...ge()),H.forEach((B,V)=>{E.has(V)&&(C.push(V),ze(V))})}function Pe(B,V,he){let G=Bf(p.matches,V);Le(B),L({errors:{[G.route.id]:he},fetchers:new Map(p.fetchers)})}function Le(B){E.has(B)&&ze(B),H.delete(B),I.delete(B),W.delete(B),p.fetchers.delete(B)}function ze(B){let V=E.get(B);Ft(V,"Expected fetch controller: "+B),V.abort(),E.delete(B)}function We(B){for(let V of B){let G={state:"idle",data:ne(V).data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};p.fetchers.set(V,G)}}function qe(){let B=[];for(let V of W){let he=p.fetchers.get(V);Ft(he,"Expected fetcher: "+V),he.state==="loading"&&(W.delete(V),B.push(V))}We(B)}function Ve(B){let V=[];for(let[he,G]of I)if(G<B){let fe=p.fetchers.get(he);Ft(fe,"Expected fetcher: "+he),fe.state==="loading"&&(ze(he),I.delete(he),V.push(he))}return We(V),V.length>0}function at(B,V){let he=p.blockers.get(B)||vP;return U.get(B)!==V&&U.set(B,V),he}function Ze(B){p.blockers.delete(B),U.delete(B)}function tt(B,V){let he=p.blockers.get(B)||vP;Ft(he.state==="unblocked"&&V.state==="blocked"||he.state==="blocked"&&V.state==="blocked"||he.state==="blocked"&&V.state==="proceeding"||he.state==="blocked"&&V.state==="unblocked"||he.state==="proceeding"&&V.state==="unblocked","Invalid blocker state transition: "+he.state+" -> "+V.state),p.blockers.set(B,V),L({blockers:new Map(p.blockers)})}function gt(B){let{currentLocation:V,nextLocation:he,historyAction:G}=B;if(U.size===0)return;U.size>1&&Lg(!1,"A router only supports one blocker at a time");let fe=Array.from(U.entries()),[ae,Re]=fe[fe.length-1],Ie=p.blockers.get(ae);if(!(Ie&&Ie.state==="proceeding")&&Re({currentLocation:V,nextLocation:he,historyAction:G}))return ae}function ge(B){let V=[];return j.forEach((he,G)=>{(!B||B(G))&&(he.cancel(),V.push(G),j.delete(G))}),V}function Te(B,V,he){if(i=B,a=V,o=he||(G=>G.key),!s&&p.navigation===XS){s=!0;let G=Ae(p.location,p.matches);G!=null&&L({restoreScrollPosition:G})}return()=>{i=null,a=null,o=null}}function Ee(B,V){if(i&&o&&a){let he=V.map(fe=>kP(fe,p.loaderData)),G=o(B,he)||B.key;i[G]=a()}}function Ae(B,V){if(i&&o&&a){let he=V.map(ae=>kP(ae,p.loaderData)),G=o(B,he)||B.key,fe=i[G];if(typeof fe=="number")return fe}return null}return h={get basename(){return e.basename},get state(){return p},get routes(){return t},initialize:se,subscribe:Q,enableScrollRestoration:Te,navigate:Z,fetch:oe,revalidate:ee,createHref:B=>e.history.createHref(B),encodeLocation:B=>e.history.encodeLocation(B),getFetcher:ne,deleteFetcher:Le,dispose:ie,getBlocker:at,deleteBlocker:Ze,_internalFetchControllers:E,_internalActiveDeferreds:j},h}function s0e(e){return e!=null&&"formData"in e}function yP(e,t,n){n===void 0&&(n=!1);let r=typeof e=="string"?e:Fs(e);if(!t||!s0e(t))return{path:r};if(t.formMethod&&!p0e(t.formMethod))return{path:r,error:ml(405,{method:t.formMethod})};let i;if(t.formData&&(i={formMethod:t.formMethod||"get",formAction:N5(r),formEncType:t&&t.formEncType||"application/x-www-form-urlencoded",formData:t.formData},ws(i.formMethod)))return{path:r,submission:i};let o=Us(r),a=M5(t.formData);return n&&o.search&&z5(o.search)&&a.append("index",""),o.search="?"+a,{path:Fs(o),submission:i}}function l0e(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 bP(e,t,n,r,i,o,a,s,l,c,f){let h=c?Object.values(c)[0]:l?Object.values(l)[0]:void 0,p=e.createURL(t.location),y=e.createURL(i),m=o||p.toString()===y.toString()||p.search!==y.search,v=c?Object.keys(c)[0]:void 0,x=l0e(n,v).filter((C,E)=>{if(C.route.loader==null)return!1;if(u0e(t.loaderData,t.matches[E],C)||a.some(I=>I===C.route.id))return!0;let O=t.matches[E],$=C;return xP(C,sn({currentUrl:p,currentParams:O.params,nextUrl:y,nextParams:$.params},r,{actionResult:h,defaultShouldRevalidate:m||F5(O,$)}))}),w=[];return f&&f.forEach((C,E)=>{if(n.some(O=>O.route.id===C.routeId))s.includes(E)?w.push(sn({key:E},C)):xP(C.match,sn({currentUrl:p,currentParams:t.matches[t.matches.length-1].params,nextUrl:y,nextParams:n[n.length-1].params},r,{actionResult:h,defaultShouldRevalidate:m}))&&w.push(sn({key:E},C));else return}),[x,w]}function u0e(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function F5(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function xP(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function lh(e,t,n,r,i,o,a,s){i===void 0&&(i="/"),o===void 0&&(o=!1),a===void 0&&(a=!1);let l,c,f,h=new Promise((y,m)=>f=m),p=()=>f();t.signal.addEventListener("abort",p);try{let y=n.route[e];Ft(y,"Could not find the "+e+' to run on the "'+n.route.id+'" route'),c=await Promise.race([y({request:t,params:n.params,context:s}),h]),Ft(c!==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(y){l=Fr.error,c=y}finally{t.signal.removeEventListener("abort",p)}if(d0e(c)){let y=c.status;if(n0e.has(y)){let S=c.headers.get("Location");if(Ft(S,"Redirects returned/thrown from loaders/actions must have a Location header"),P5.test(S)){if(!o){let x=new URL(t.url),w=S.startsWith("//")?new URL(x.protocol+S):new URL(S);w.origin===x.origin&&(S=w.pathname+w.search+w.hash)}}else{let x=r.slice(0,r.indexOf(n)+1),w=ux(x).map(E=>E.pathnameBase),C=MR(S,w,new URL(t.url).pathname);if(Ft(Fs(C),"Unable to resolve redirect location: "+S),i){let E=C.pathname;C.pathname=E==="/"?i:As([i,E])}S=Fs(C)}if(o)throw c.headers.set("Location",S),c;return{type:Fr.redirect,status:y,location:S,revalidate:c.headers.get("X-Remix-Revalidate")!==null}}if(a)throw{type:l||Fr.data,response:c};let m,v=c.headers.get("Content-Type");return v&&/\bapplication\/json\b/.test(v)?m=await c.json():m=await c.text(),l===Fr.error?{type:l,error:new NR(y,c.statusText,m),headers:c.headers}:{type:Fr.data,data:m,statusCode:c.status,headers:c.headers}}return l===Fr.error?{type:l,error:c}:c instanceof Xye?{type:Fr.deferred,deferredData:c}:{type:Fr.data,data:c}}function uh(e,t,n,r){let i=e.createURL(N5(t)).toString(),o={signal:n};if(r&&ws(r.formMethod)){let{formMethod:a,formEncType:s,formData:l}=r;o.method=a.toUpperCase(),o.body=s==="application/x-www-form-urlencoded"?M5(l):l}return new Request(i,o)}function M5(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,r instanceof File?r.name:r);return t}function c0e(e,t,n,r,i){let o={},a=null,s,l=!1,c={};return n.forEach((f,h)=>{let p=t[h].route.id;if(Ft(!td(f),"Cannot handle redirect results in processLoaderData"),ng(f)){let y=Bf(e,p),m=f.error;r&&(m=Object.values(r)[0],r=void 0),a=a||{},a[y.route.id]==null&&(a[y.route.id]=m),o[p]=void 0,l||(l=!0,s=$5(f.error)?f.error.status:500),f.headers&&(c[p]=f.headers)}else Wu(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&&(c[p]=f.headers)}),r&&(a=r,o[Object.keys(r)[0]]=void 0),{loaderData:o,errors:a,statusCode:s||200,loaderHeaders:c}}function wP(e,t,n,r,i,o,a,s){let{loaderData:l,errors:c}=c0e(t,n,r,i,s);for(let f=0;f<o.length;f++){let{key:h,match:p}=o[f];Ft(a!==void 0&&a[f]!==void 0,"Did not find corresponding fetcher result");let y=a[f];if(ng(y)){let m=Bf(e.matches,p.route.id);c&&c[m.route.id]||(c=sn({},c,{[m.route.id]:y.error})),e.fetchers.delete(h)}else if(td(y))Ft(!1,"Unhandled fetcher revalidation redirect");else if(Wu(y))Ft(!1,"Unhandled fetcher deferred data");else{let m={state:"idle",data:y.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};e.fetchers.set(h,m)}}return{loaderData:l,errors:c}}function SP(e,t,n,r){let i=sn({},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 Bf(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 _P(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 ml(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 NR(e||500,a,new Error(s),!0)}function CP(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(td(n))return n}}function N5(e){let t=typeof e=="string"?Us(e):e;return Fs(sn({},t,{hash:""}))}function f0e(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash!==t.hash}function Wu(e){return e.type===Fr.deferred}function ng(e){return e.type===Fr.error}function td(e){return(e&&e.type)===Fr.redirect}function d0e(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function p0e(e){return t0e.has(e)}function ws(e){return Qye.has(e)}async function EP(e,t,n,r,i,o){for(let a=0;a<n.length;a++){let s=n[a],l=t[a],c=e.find(h=>h.route.id===l.route.id),f=c!=null&&!F5(c,l)&&(o&&o[l.route.id])!==void 0;Wu(s)&&(i||f)&&await B5(s,r,i).then(h=>{h&&(n[a]=h||n[a])})}}async function B5(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Fr.data,data:e.deferredData.unwrappedData}}catch(i){return{type:Fr.error,error:i}}return{type:Fr.data,data:e.deferredData.data}}}function z5(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function kP(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 TP(e,t){let n=typeof t=="string"?Us(t).search:t.search;if(e[e.length-1].route.index&&z5(n||""))return e[e.length-1];let r=ux(e);return r[r.length-1]}/**
|
|
174
|
+
* React Router v6.8.1
|
|
175
|
+
*
|
|
176
|
+
* Copyright (c) Remix Software Inc.
|
|
177
|
+
*
|
|
178
|
+
* This source code is licensed under the MIT license found in the
|
|
179
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
180
|
+
*
|
|
181
|
+
* @license MIT
|
|
182
|
+
*/function c1(){return c1=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},c1.apply(this,arguments)}function h0e(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const g0e=typeof Object.is=="function"?Object.is:h0e,{useState:m0e,useEffect:v0e,useLayoutEffect:y0e,useDebugValue:b0e}=Qu;function x0e(e,t,n){const r=t(),[{inst:i},o]=m0e({inst:{value:r,getSnapshot:t}});return y0e(()=>{i.value=r,i.getSnapshot=t,ZS(i)&&o({inst:i})},[e,r,t]),v0e(()=>(ZS(i)&&o({inst:i}),e(()=>{ZS(i)&&o({inst:i})})),[e]),b0e(r),r}function ZS(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!g0e(n,r)}catch{return!0}}function w0e(e,t,n){return t()}const S0e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",_0e=!S0e,C0e=_0e?w0e:x0e,E0e="useSyncExternalStore"in Qu?(e=>e.useSyncExternalStore)(Qu):C0e,BR=T.createContext(null),cx=T.createContext(null),fx=T.createContext(null),dx=T.createContext(null),vc=T.createContext({outlet:null,matches:[]}),j5=T.createContext(null);function k0e(e,t){let{relative:n}=t===void 0?{}:t;Bd()||Ft(!1);let{basename:r,navigator:i}=T.useContext(fx),{hash:o,pathname:a,search:s}=K5(e,{relative:n}),l=a;return r!=="/"&&(l=a==="/"?r:As([r,a])),i.createHref({pathname:l,search:s,hash:o})}function Bd(){return T.useContext(dx)!=null}function zd(){return Bd()||Ft(!1),T.useContext(dx).location}function yc(){Bd()||Ft(!1);let{basename:e,navigator:t}=T.useContext(fx),{matches:n}=T.useContext(vc),{pathname:r}=zd(),i=JSON.stringify(ux(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 c=MR(s,JSON.parse(i),r,l.relative==="path");e!=="/"&&(c.pathname=c.pathname==="/"?e:As([e,c.pathname])),(l.replace?t.replace:t.push)(c,l.state,l)},[e,t,i,r])}function U5(){let{matches:e}=T.useContext(vc),t=e[e.length-1];return t?t.params:{}}function K5(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=T.useContext(vc),{pathname:i}=zd(),o=JSON.stringify(ux(r).map(a=>a.pathnameBase));return T.useMemo(()=>MR(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function T0e(e,t){Bd()||Ft(!1);let{navigator:n}=T.useContext(fx),r=T.useContext(cx),{matches:i}=T.useContext(vc),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let s=o?o.pathnameBase:"/";o&&o.route;let l=zd(),c;if(t){var f;let v=typeof t=="string"?Us(t):t;s==="/"||(f=v.pathname)!=null&&f.startsWith(s)||Ft(!1),c=v}else c=l;let h=c.pathname||"/",p=s==="/"?h:h.slice(s.length)||"/",y=Ih(e,{pathname:p}),m=D0e(y&&y.map(v=>Object.assign({},v,{params:Object.assign({},a,v.params),pathname:As([s,n.encodeLocation?n.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?s:As([s,n.encodeLocation?n.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),i,r||void 0);return t&&m?T.createElement(dx.Provider,{value:{location:c1({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:cr.Pop}},m):m}function R0e(){let e=L0e(),t=$5(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 A0e 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(vc.Provider,{value:this.props.routeContext},T.createElement(j5.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function O0e(e){let{routeContext:t,match:n,children:r}=e,i=T.useContext(BR);return i&&i.static&&i.staticContext&&n.route.errorElement&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),T.createElement(vc.Provider,{value:t},r)}function D0e(e,t,n){if(t===void 0&&(t=[]),e==null)if(n!=null&&n.errors)e=n.matches;else return null;let r=e,i=n==null?void 0:n.errors;if(i!=null){let o=r.findIndex(a=>a.route.id&&(i==null?void 0:i[a.route.id]));o>=0||Ft(!1),r=r.slice(0,Math.min(r.length,o+1))}return r.reduceRight((o,a,s)=>{let l=a.route.id?i==null?void 0:i[a.route.id]:null,c=n?a.route.errorElement||T.createElement(R0e,null):null,f=t.concat(r.slice(0,s+1)),h=()=>T.createElement(O0e,{match:a,routeContext:{outlet:o,matches:f}},l?c:a.route.element!==void 0?a.route.element:o);return n&&(a.route.errorElement||s===0)?T.createElement(A0e,{location:n.location,component:c,error:l,children:h(),routeContext:{outlet:null,matches:f}}):h()},null)}var RP;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator"})(RP||(RP={}));var f1;(function(e){e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"})(f1||(f1={}));function $0e(e){let t=T.useContext(cx);return t||Ft(!1),t}function I0e(e){let t=T.useContext(vc);return t||Ft(!1),t}function P0e(e){let t=I0e(),n=t.matches[t.matches.length-1];return n.route.id||Ft(!1),n.route.id}function L0e(){var e;let t=T.useContext(j5),n=$0e(f1.UseRouteError),r=P0e(f1.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function F0e(e){let{fallbackElement:t,router:n}=e,r=E0e(n.subscribe,()=>n.state,()=>n.state),i=T.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:a=>n.navigate(a),push:(a,s,l)=>n.navigate(a,{state:s,preventScrollReset:l==null?void 0:l.preventScrollReset}),replace:(a,s,l)=>n.navigate(a,{replace:!0,state:s,preventScrollReset:l==null?void 0:l.preventScrollReset})}),[n]),o=n.basename||"/";return T.createElement(T.Fragment,null,T.createElement(BR.Provider,{value:{router:n,navigator:i,static:!1,basename:o}},T.createElement(cx.Provider,{value:r},T.createElement(B0e,{basename:n.basename,location:n.state.location,navigationType:n.state.historyAction,navigator:i},n.state.initialized?T.createElement(z0e,null):t))),null)}function M0e(e){let{to:t,replace:n,state:r,relative:i}=e;Bd()||Ft(!1);let o=T.useContext(cx),a=yc();return T.useEffect(()=>{o&&o.navigation.state!=="idle"||a(t,{replace:n,state:r,relative:i})}),null}function N0e(e){Ft(!1)}function B0e(e){let{basename:t="/",children:n=null,location:r,navigationType:i=cr.Pop,navigator:o,static:a=!1}=e;Bd()&&Ft(!1);let s=t.replace(/^\/*/,"/"),l=T.useMemo(()=>({basename:s,navigator:o,static:a}),[s,o,a]);typeof r=="string"&&(r=Us(r));let{pathname:c="/",search:f="",hash:h="",state:p=null,key:y="default"}=r,m=T.useMemo(()=>{let v=D5(c,s);return v==null?null:{pathname:v,search:f,hash:h,state:p,key:y}},[s,c,f,h,p,y]);return m==null?null:T.createElement(fx.Provider,{value:l},T.createElement(dx.Provider,{children:n,value:{location:m,navigationType:i}}))}function z0e(e){let{children:t,location:n}=e,r=T.useContext(BR),i=r&&!t?r.router.routes:OE(t);return T0e(i,n)}var AP;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(AP||(AP={}));new Promise(()=>{});function OE(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,OE(r.props.children,t));return}r.type!==N0e&&Ft(!1),!r.props.index||!r.props.children||Ft(!1);let o=[...t,i],a={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,hasErrorBoundary:r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle};r.props.children&&(a.children=OE(r.props.children,o)),n.push(a)}),n}function W5(e){return e.map(t=>{let n=c1({},t);return n.hasErrorBoundary==null&&(n.hasErrorBoundary=n.errorElement!=null),n.children&&(n.children=W5(n.children)),n})}/**
|
|
183
|
+
* React Router DOM v6.8.1
|
|
184
|
+
*
|
|
185
|
+
* Copyright (c) Remix Software Inc.
|
|
186
|
+
*
|
|
187
|
+
* This source code is licensed under the MIT license found in the
|
|
188
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
189
|
+
*
|
|
190
|
+
* @license MIT
|
|
191
|
+
*/function d1(){return d1=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},d1.apply(this,arguments)}function j0e(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 U0e(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function K0e(e,t){return e.button===0&&(!t||t==="_self")&&!U0e(e)}const W0e=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function V0e(e,t){return a0e({basename:t==null?void 0:t.basename,history:Tye({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||H0e(),routes:W5(e)}).initialize()}function H0e(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=d1({},t,{errors:q0e(t.errors)})),t}function q0e(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 NR(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 G0e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",fm=T.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:l,to:c,preventScrollReset:f}=t,h=j0e(t,W0e),p,y=!1;if(G0e&&typeof c=="string"&&/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i.test(c)){p=c;let x=new URL(window.location.href),w=c.startsWith("//")?new URL(x.protocol+c):new URL(c);w.origin===x.origin?c=w.pathname+w.search+w.hash:y=!0}let m=k0e(c,{relative:i}),v=Y0e(c,{replace:a,state:s,target:l,preventScrollReset:f,relative:i});function S(x){r&&r(x),x.defaultPrevented||v(x)}return T.createElement("a",d1({},h,{href:p||m,onClick:y||o?r:S,ref:n,target:l}))});var OP;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(OP||(OP={}));var DP;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(DP||(DP={}));function Y0e(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a}=t===void 0?{}:t,s=yc(),l=zd(),c=K5(e,{relative:a});return T.useCallback(f=>{if(K0e(f,n)){f.preventDefault();let h=r!==void 0?r:Fs(l)===Fs(c);s(e,{replace:h,state:i,preventScrollReset:o,relative:a})}},[l,s,c,r,i,n,e,o,a])}const V5=Tr({key:"AccessToken",default:void 0}),zR=Tr({key:"Role",default:void 0}),$P=localStorage.getItem("userEnv"),px=Tr({key:"UserEnv",default:$P?JSON.parse($P):{}}),hx={fontFamily:["Inter","sans-serif"].join(",")},gx={MuiButton:{defaultProps:{disableElevation:!0,disableRipple:!0,sx:{textTransform:"none"}}},MuiLink:{defaultProps:{fontWeight:500}}},mx={borderRadius:8},H5={main:"rgba(25, 195, 125, 1)",contrastText:"#fff"},q5={main:"rgba(239, 65, 70, 1)",contrastText:"#fff"},X0e=Fd({typography:hx,components:gx,shape:mx,palette:{mode:"dark",success:H5,error:q5,background:{default:"#303030",paperVariant:"#616161",paper:"#212121"},primary:{main:"#F80061",dark:"#980039",light:"#FFE7EB",contrastText:"#fff"},secondary:{main:"#9757D7",dark:"#763FB8",light:"#B87FE7",contrastText:"#fff"},divider:"#424242",text:{primary:"#EEEEEE",secondary:"#BDBDBD"}}}),Z0e=Fd({typography:hx,components:gx,shape:mx,palette:{mode:"light",success:H5,error:q5,background:{default:"#FAFAFA",paperVariant:"#EEEEEE",paper:"#FFF"},primary:{main:"#F80061",dark:"#980039",light:"#FFE7EB",contrastText:"#fff"},secondary:{main:"#9757D7",dark:"#763FB8",light:"#B87FE7",contrastText:"#fff"},divider:"#EEEEEE",text:{primary:"#212121",secondary:"#616161"}}}),J0e=e=>e==="dark"?X0e:Z0e,Q0e=Fd({typography:hx,components:gx,shape:mx,palette:{primary:{main:"#616161",contrastText:"#F5F5F5"}}}),e1e=Fd({typography:hx,components:gx,shape:mx,palette:{primary:{main:"#EEEEEE",contrastText:"#616161"}}}),jd=Tr({key:"Session",dangerouslyAllowMutability:!0,default:void 0}),vx=Tr({key:"Messages",dangerouslyAllowMutability:!0,default:[]}),G5=Tr({key:"TokenCount",default:0}),dm=Tr({key:"Loading",default:!1}),Y5=Tr({key:"HistoryOpened",default:!1}),yx=Tr({key:"AskUser",default:void 0});var jR={},X5={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})(X5);var Pn=X5.exports,JS={};const t1e=EB(Xce);var IP;function Ln(){return IP||(IP=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=t1e}(JS)),JS}var n1e=Pn;Object.defineProperty(jR,"__esModule",{value:!0});var Z5=jR.default=void 0,r1e=n1e(Ln()),i1e=k,o1e=(0,r1e.default)((0,i1e.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");Z5=jR.default=o1e;var UR={},a1e=Pn;Object.defineProperty(UR,"__esModule",{value:!0});var J5=UR.default=void 0,s1e=a1e(Ln()),l1e=k,u1e=(0,s1e.default)((0,l1e.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess");J5=UR.default=u1e;function Q5(e){const n=fa().palette.mode==="dark"?Q0e:e1e;return k.jsx(zj,{theme:n,children:k.jsx(mc,{...e})})}const c1e="light",PP=localStorage.getItem("themeVariant"),f1e=PP||c1e,Ks=Tr({key:"AppSettings",default:{open:!1,expandAll:!1,hideCot:!1,theme:f1e}});function d1e({message:e,opened:t,onClick:n,loading:r}){var m;const{hideCot:i}=Tt(Ks),o=(m=e.subMessages)==null?void 0:m.length,a=!!o,s=a?e.subMessages[o-1].author:void 0,l=r&&!e.content,c=r&&e.authorIsUser;if(!(a||l||c)||i)return null;const h=o?e.subMessages.filter(v=>!!v.content).length:0,p=r?s?`Using ${s}`:"Running":`Took ${h} step${h<=1?"":"s"}`;let y="";return s&&(y=s.trim().toLowerCase().replaceAll(" ","-")),r?y+="-loading":y+="-done",k.jsx(Q5,{id:y,disableElevation:!0,disableRipple:!0,sx:{textTransform:"none"},color:"primary",startIcon:r?k.jsx(s5,{color:"inherit",size:16}):void 0,variant:"contained",endIcon:a&&s?t?k.jsx(J5,{}):k.jsx(Z5,{}):void 0,onClick:s?n:void 0,children:p})}/*!
|
|
192
|
+
* Determine if an object is a Buffer
|
|
193
|
+
*
|
|
194
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
195
|
+
* @license MIT
|
|
196
|
+
*/var p1e=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)};const e6=Ha(p1e);function rg(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?LP(e.position):"start"in e||"end"in e?LP(e):"line"in e||"column"in e?DE(e):""}function DE(e){return FP(e&&e.line)+":"+FP(e&&e.column)}function LP(e){return DE(e&&e.start)+"-"+DE(e&&e.end)}function FP(e){return e&&typeof e=="number"?e:1}class Lo 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=rg(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}}Lo.prototype.file="";Lo.prototype.name="";Lo.prototype.reason="";Lo.prototype.message="";Lo.prototype.stack="";Lo.prototype.fatal=null;Lo.prototype.column=null;Lo.prototype.line=null;Lo.prototype.source=null;Lo.prototype.ruleId=null;Lo.prototype.position=null;const Ra={basename:h1e,dirname:g1e,extname:m1e,join:v1e,sep:"/"};function h1e(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');pm(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 g1e(e){if(pm(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 m1e(e){pm(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 v1e(...e){let t=-1,n;for(;++t<e.length;)pm(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":y1e(n)}function y1e(e){pm(e);const t=e.charCodeAt(0)===47;let n=b1e(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.charCodeAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function b1e(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 pm(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const x1e={cwd:w1e};function w1e(){return"/"}function $E(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function S1e(e){if(typeof e=="string")e=new URL(e);else if(!$E(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 _1e(e)}function _1e(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 QS=["history","path","basename","stem","extname","dirname"];class t6{constructor(t){let n;t?typeof t=="string"||C1e(t)?n={value:t}:$E(t)?n={path:t}:n=t:n={},this.data={},this.messages=[],this.history=[],this.cwd=x1e.cwd(),this.value,this.stored,this.result,this.map;let r=-1;for(;++r<QS.length;){const o=QS[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)QS.includes(i)||(this[i]=n[i])}get path(){return this.history[this.history.length-1]}set path(t){$E(t)&&(t=S1e(t)),t_(t,"path"),this.path!==t&&this.history.push(t)}get dirname(){return typeof this.path=="string"?Ra.dirname(this.path):void 0}set dirname(t){MP(this.basename,"dirname"),this.path=Ra.join(t||"",this.basename)}get basename(){return typeof this.path=="string"?Ra.basename(this.path):void 0}set basename(t){t_(t,"basename"),e_(t,"basename"),this.path=Ra.join(this.dirname||"",t)}get extname(){return typeof this.path=="string"?Ra.extname(this.path):void 0}set extname(t){if(e_(t,"extname"),MP(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=Ra.join(this.dirname,this.stem+(t||""))}get stem(){return typeof this.path=="string"?Ra.basename(this.path,this.extname):void 0}set stem(t){t_(t,"stem"),e_(t,"stem"),this.path=Ra.join(this.dirname||"",t+(this.extname||""))}toString(t){return(this.value||"").toString(t||void 0)}message(t,n,r){const i=new Lo(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 e_(e,t){if(e&&e.includes(Ra.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Ra.sep+"`")}function t_(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function MP(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function C1e(e){return e6(e)}function NP(e){if(e)throw e}var u0=Object.prototype.hasOwnProperty,n6=Object.prototype.toString,BP=Object.defineProperty,zP=Object.getOwnPropertyDescriptor,jP=function(t){return typeof Array.isArray=="function"?Array.isArray(t):n6.call(t)==="[object Array]"},UP=function(t){if(!t||n6.call(t)!=="[object Object]")return!1;var n=u0.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&u0.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||u0.call(t,i)},KP=function(t,n){BP&&n.name==="__proto__"?BP(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},WP=function(t,n){if(n==="__proto__")if(u0.call(t,n)){if(zP)return zP(t,n).value}else return;return t[n]},E1e=function e(){var t,n,r,i,o,a,s=arguments[0],l=1,c=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<c;++l)if(t=arguments[l],t!=null)for(n in t)r=WP(s,n),i=WP(t,n),s!==i&&(f&&i&&(UP(i)||(o=jP(i)))?(o?(o=!1,a=r&&jP(r)?r:[]):a=r&&UP(r)?r:{},KP(s,{name:n,newValue:e(f,a,i)})):typeof i<"u"&&KP(s,{name:n,newValue:i}));return s};const VP=Ha(E1e);function IE(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 k1e(){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,...c){const f=e[++o];let h=-1;if(l){a(l);return}for(;++h<i.length;)(c[h]===null||c[h]===void 0)&&(c[h]=i[h]);i=c,f?T1e(f,s)(...c):a(null,...c)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function T1e(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(c){const f=c;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 R1e=i6().freeze(),r6={}.hasOwnProperty;function i6(){const e=k1e(),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=c,o.stringify=f,o.run=h,o.runSync=p,o.process=y,o.processSync=m,o;function o(){const v=i6();let S=-1;for(;++S<t.length;)v.use(...t[S]);return v.data(VP(!0,{},n)),v}function a(v,S){return typeof v=="string"?arguments.length===2?(i_("data",r),n[v]=S,o):r6.call(n,v)&&n[v]||null:v?(i_("data",r),n=v,o):n}function s(){if(r)return o;for(;++i<t.length;){const[v,...S]=t[i];if(S[0]===!1)continue;S[0]===!0&&(S[0]=void 0);const x=v.call(o,...S);typeof x=="function"&&e.use(x)}return r=!0,i=Number.POSITIVE_INFINITY,o}function l(v,...S){let x;if(i_("use",r),v!=null)if(typeof v=="function")O(v,...S);else if(typeof v=="object")Array.isArray(v)?E(v):C(v);else throw new TypeError("Expected usable value, not `"+v+"`");return x&&(n.settings=Object.assign(n.settings||{},x)),o;function w($){if(typeof $=="function")O($);else if(typeof $=="object")if(Array.isArray($)){const[I,...W]=$;O(I,...W)}else C($);else throw new TypeError("Expected usable value, not `"+$+"`")}function C($){E($.plugins),$.settings&&(x=Object.assign(x||{},$.settings))}function E($){let I=-1;if($!=null)if(Array.isArray($))for(;++I<$.length;){const W=$[I];w(W)}else throw new TypeError("Expected a list of plugins, not `"+$+"`")}function O($,I){let W=-1,H;for(;++W<t.length;)if(t[W][0]===$){H=t[W];break}H?(IE(H[1])&&IE(I)&&(I=VP(!0,H[1],I)),H[1]=I):t.push([...arguments])}}function c(v){o.freeze();const S=ch(v),x=o.Parser;return n_("parse",x),HP(x,"parse")?new x(String(S),S).parse():x(String(S),S)}function f(v,S){o.freeze();const x=ch(S),w=o.Compiler;return r_("stringify",w),qP(v),HP(w,"compile")?new w(v,x).compile():w(v,x)}function h(v,S,x){if(qP(v),o.freeze(),!x&&typeof S=="function"&&(x=S,S=void 0),!x)return new Promise(w);w(null,x);function w(C,E){e.run(v,ch(S),O);function O($,I,W){I=I||v,$?E($):C?C(I):x(null,I,W)}}}function p(v,S){let x,w;return o.run(v,S,C),GP("runSync","run",w),x;function C(E,O){NP(E),x=O,w=!0}}function y(v,S){if(o.freeze(),n_("process",o.Parser),r_("process",o.Compiler),!S)return new Promise(x);x(null,S);function x(w,C){const E=ch(v);o.run(o.parse(E),E,($,I,W)=>{if($||!I||!W)O($);else{const H=o.stringify(I,W);H==null||(D1e(H)?W.value=H:W.result=H),O($,W)}});function O($,I){$||!I?C($):w?w(I):S(null,I)}}}function m(v){let S;o.freeze(),n_("processSync",o.Parser),r_("processSync",o.Compiler);const x=ch(v);return o.process(x,w),GP("processSync","process",S),x;function w(C){S=!0,NP(C)}}}function HP(e,t){return typeof e=="function"&&e.prototype&&(A1e(e.prototype)||t in e.prototype)}function A1e(e){let t;for(t in e)if(r6.call(e,t))return!0;return!1}function n_(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Parser`")}function r_(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Compiler`")}function i_(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 qP(e){if(!IE(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function GP(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ch(e){return O1e(e)?e:new t6(e)}function O1e(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function D1e(e){return typeof e=="string"||e6(e)}function $1e(e,t){const n=(t||{}).includeImageAlt;return o6(e,typeof n=="boolean"?n:!0)}function o6(e,t){return I1e(e)&&("value"in e&&e.value||t&&"alt"in e&&e.alt||"children"in e&&YP(e.children,t))||Array.isArray(e)&&YP(e,t)||""}function YP(e,t){const n=[];let r=-1;for(;++r<e.length;)n[r]=o6(e[r],t);return n.join("")}function I1e(e){return!!(e&&typeof e=="object")}function qi(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),[].splice.apply(e,a);else for(n&&[].splice.apply(e,[t,n]);o<r.length;)a=r.slice(o,o+1e4),a.unshift(t,0),[].splice.apply(e,a),o+=1e4,t+=1e4}function bo(e,t){return e.length>0?(qi(e,e.length,0,t),e):t}const XP={}.hasOwnProperty;function a6(e){const t={};let n=-1;for(;++n<e.length;)P1e(t,e[n]);return t}function P1e(e,t){let n;for(n in t){const i=(XP.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let a;for(a in o){XP.call(i,a)||(i[a]=[]);const s=o[a];L1e(i[a],Array.isArray(s)?s:s?[s]:[])}}}function L1e(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);qi(e,0,0,r)}const F1e=/[!-/:-@[-`{-~\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\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\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\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]/,wo=eu(/[A-Za-z]/),p1=eu(/\d/),M1e=eu(/[\dA-Fa-f]/),ai=eu(/[\dA-Za-z]/),N1e=eu(/[!-/:-@[-`{-~]/),ZP=eu(/[#-'*+\--9=?A-Z^-~]/);function Fg(e){return e!==null&&(e<32||e===127)}function Qn(e){return e!==null&&(e<0||e===32)}function xt(e){return e!==null&&e<-2}function bn(e){return e===-2||e===-1||e===32}const bx=eu(/\s/),xx=eu(F1e);function eu(e){return t;function t(n){return n!==null&&e.test(String.fromCharCode(n))}}function en(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(l){return bn(l)?(e.enter(n),s(l)):t(l)}function s(l){return bn(l)&&o++<i?(e.consume(l),s):(e.exit(n),t(l))}}const B1e={tokenize:z1e};function z1e(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"),en(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 xt(s)?(e.consume(s),e.exit("chunkText"),o):(e.consume(s),a)}}const j1e={tokenize:U1e},JP={tokenize:K1e};function U1e(e){const t=this,n=[];let r=0,i,o,a;return s;function s(C){if(r<n.length){const E=n[r];return t.containerState=E[1],e.attempt(E[0].continuation,l,c)(C)}return c(C)}function l(C){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&w();const E=t.events.length;let O=E,$;for(;O--;)if(t.events[O][0]==="exit"&&t.events[O][1].type==="chunkFlow"){$=t.events[O][1].end;break}x(r);let I=E;for(;I<t.events.length;)t.events[I][1].end=Object.assign({},$),I++;return qi(t.events,O+1,0,t.events.slice(E)),t.events.length=I,c(C)}return s(C)}function c(C){if(r===n.length){if(!i)return p(C);if(i.currentConstruct&&i.currentConstruct.concrete)return m(C);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(JP,f,h)(C)}function f(C){return i&&w(),x(r),p(C)}function h(C){return t.parser.lazy[t.now().line]=r!==n.length,a=t.now().offset,m(C)}function p(C){return t.containerState={},e.attempt(JP,y,m)(C)}function y(C){return r++,n.push([t.currentConstruct,t.containerState]),p(C)}function m(C){if(C===null){i&&w(),x(0),e.consume(C);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:o,_tokenizer:i}),v(C)}function v(C){if(C===null){S(e.exit("chunkFlow"),!0),x(0),e.consume(C);return}return xt(C)?(e.consume(C),S(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(C),v)}function S(C,E){const O=t.sliceStream(C);if(E&&O.push(null),C.previous=o,o&&(o.next=C),o=C,i.defineSkip(C.start),i.write(O),t.parser.lazy[C.start.line]){let $=i.events.length;for(;$--;)if(i.events[$][1].start.offset<a&&(!i.events[$][1].end||i.events[$][1].end.offset>a))return;const I=t.events.length;let W=I,H,j;for(;W--;)if(t.events[W][0]==="exit"&&t.events[W][1].type==="chunkFlow"){if(H){j=t.events[W][1].end;break}H=!0}for(x(r),$=I;$<t.events.length;)t.events[$][1].end=Object.assign({},j),$++;qi(t.events,W+1,0,t.events.slice(I)),t.events.length=$}}function x(C){let E=n.length;for(;E-- >C;){const O=n[E];t.containerState=O[1],O[0].exit.call(t,e)}n.length=C}function w(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function K1e(e,t,n){return en(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function h1(e){if(e===null||Qn(e)||bx(e))return 1;if(xx(e))return 2}function wx(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 PE={name:"attention",tokenize:V1e,resolveAll:W1e};function W1e(e,t){let n=-1,r,i,o,a,s,l,c,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 h=Object.assign({},e[r][1].end),p=Object.assign({},e[n][1].start);QP(h,-l),QP(p,l),a={type:l>1?"strongSequence":"emphasisSequence",start:h,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),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=bo(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=bo(c,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",o,t]]),c=bo(c,wx(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=bo(c,[["exit",o,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,c=bo(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,qi(e,r-1,n-r+3,c),n=r+c.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function V1e(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=h1(r);let o;return a;function a(l){return e.enter("attentionSequence"),o=l,s(l)}function s(l){if(l===o)return e.consume(l),s;const c=e.exit("attentionSequence"),f=h1(l),h=!f||f===2&&i||n.includes(l),p=!i||i===2&&f||n.includes(r);return c._open=!!(o===42?h:h&&(i||!p)),c._close=!!(o===42?p:p&&(f||!h)),t(l)}}function QP(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const H1e={name:"autolink",tokenize:q1e};function q1e(e,t,n){let r=1;return i;function i(m){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(m){return wo(m)?(e.consume(m),a):ZP(m)?c(m):n(m)}function a(m){return m===43||m===45||m===46||ai(m)?s(m):c(m)}function s(m){return m===58?(e.consume(m),l):(m===43||m===45||m===46||ai(m))&&r++<32?(e.consume(m),s):c(m)}function l(m){return m===62?(e.exit("autolinkProtocol"),y(m)):m===null||m===32||m===60||Fg(m)?n(m):(e.consume(m),l)}function c(m){return m===64?(e.consume(m),r=0,f):ZP(m)?(e.consume(m),c):n(m)}function f(m){return ai(m)?h(m):n(m)}function h(m){return m===46?(e.consume(m),r=0,f):m===62?(e.exit("autolinkProtocol").type="autolinkEmail",y(m)):p(m)}function p(m){return(m===45||ai(m))&&r++<63?(e.consume(m),m===45?p:h):n(m)}function y(m){return e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t}}const hm={tokenize:G1e,partial:!0};function G1e(e,t,n){return en(e,r,"linePrefix");function r(i){return i===null||xt(i)?t(i):n(i)}}const s6={name:"blockQuote",tokenize:Y1e,continuation:{tokenize:X1e},exit:Z1e};function Y1e(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 bn(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function X1e(e,t,n){return en(e,e.attempt(s6,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Z1e(e){e.exit("blockQuote")}const l6={name:"characterEscape",tokenize:J1e};function J1e(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 N1e(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const eL=document.createElement("i");function KR(e){const t="&"+e+";";eL.innerHTML=t;const n=eL.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}const u6={name:"characterReference",tokenize:Q1e};function Q1e(e,t,n){const r=this;let i=0,o,a;return s;function s(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),l}function l(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),o=31,a=ai,f(h))}function c(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,a=M1e,f):(e.enter("characterReferenceValue"),o=7,a=p1,f(h))}function f(h){let p;return h===59&&i?(p=e.exit("characterReferenceValue"),a===ai&&!KR(r.sliceSerialize(p))?n(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)):a(h)&&i++<o?(e.consume(h),f):n(h)}}const tL={name:"codeFenced",tokenize:ebe,concrete:!0};function ebe(e,t,n){const r=this,i={tokenize:O,partial:!0},o={tokenize:E,partial:!0},a=this.events[this.events.length-1],s=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0;let l=0,c;return f;function f($){return e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c=$,h($)}function h($){return $===c?(e.consume($),l++,h):(e.exit("codeFencedFenceSequence"),l<3?n($):en(e,p,"whitespace")($))}function p($){return $===null||xt($)?S($):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),y($))}function y($){return $===null||Qn($)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),en(e,m,"whitespace")($)):$===96&&$===c?n($):(e.consume($),y)}function m($){return $===null||xt($)?S($):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),v($))}function v($){return $===null||xt($)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),S($)):$===96&&$===c?n($):(e.consume($),v)}function S($){return e.exit("codeFencedFence"),r.interrupt?t($):x($)}function x($){return $===null?C($):xt($)?e.attempt(o,e.attempt(i,C,s?en(e,x,"linePrefix",s+1):x),C)($):(e.enter("codeFlowValue"),w($))}function w($){return $===null||xt($)?(e.exit("codeFlowValue"),x($)):(e.consume($),w)}function C($){return e.exit("codeFenced"),t($)}function E($,I,W){const H=this;return j;function j(le){return $.enter("lineEnding"),$.consume(le),$.exit("lineEnding"),U}function U(le){return H.parser.lazy[H.now().line]?W(le):I(le)}}function O($,I,W){let H=0;return en($,j,"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function j(se){return $.enter("codeFencedFence"),$.enter("codeFencedFenceSequence"),U(se)}function U(se){return se===c?($.consume(se),H++,U):H<l?W(se):($.exit("codeFencedFenceSequence"),en($,le,"whitespace")(se))}function le(se){return se===null||xt(se)?($.exit("codeFencedFence"),I(se)):W(se)}}}const o_={name:"codeIndented",tokenize:nbe},tbe={tokenize:rbe,partial:!0};function nbe(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),en(e,o,"linePrefix",4+1)(c)}function o(c){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?a(c):n(c)}function a(c){return c===null?l(c):xt(c)?e.attempt(tbe,a,l)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||xt(c)?(e.exit("codeFlowValue"),a(c)):(e.consume(c),s)}function l(c){return e.exit("codeIndented"),t(c)}}function rbe(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):xt(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):en(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):xt(a)?i(a):n(a)}}const ibe={name:"codeText",tokenize:sbe,resolve:obe,previous:abe};function obe(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 abe(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function sbe(e,t,n){let r=0,i,o;return a;function a(h){return e.enter("codeText"),e.enter("codeTextSequence"),s(h)}function s(h){return h===96?(e.consume(h),r++,s):(e.exit("codeTextSequence"),l(h))}function l(h){return h===null?n(h):h===96?(o=e.enter("codeTextSequence"),i=0,f(h)):h===32?(e.enter("space"),e.consume(h),e.exit("space"),l):xt(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(h))}function c(h){return h===null||h===32||h===96||xt(h)?(e.exit("codeTextData"),l(h)):(e.consume(h),c)}function f(h){return h===96?(e.consume(h),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(h)):(o.type="codeTextData",c(h))}}function c6(e){const t={};let n=-1,r,i,o,a,s,l,c;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,lbe(e,n)),n=t[n],c=!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),qi(e,i,n-i+1,s))}}return!c}function lbe(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=[],c={};let f,h,p=-1,y=n,m=0,v=0;const S=[v];for(;y;){for(;e[++i][1]!==y;);o.push(i),y._tokenizer||(f=r.sliceStream(y),y.next||f.push(null),h&&a.defineSkip(y.start),y._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(f),y._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),h=y,y=y.next}for(y=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&&(v=p+1,S.push(v),y._tokenizer=void 0,y.previous=void 0,y=y.next);for(a.events=[],y?(y._tokenizer=void 0,y.previous=void 0):S.pop(),p=S.length;p--;){const x=s.slice(S[p],S[p+1]),w=o.pop();l.unshift([w,w+x.length-1]),qi(e,w,2,x)}for(p=-1;++p<l.length;)c[m+l[p][0]]=m+l[p][1],m+=l[p][1]-l[p][0]-1;return c}const ube={tokenize:dbe,resolve:fbe},cbe={tokenize:pbe,partial:!0};function fbe(e){return c6(e),e}function dbe(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):xt(s)?e.check(cbe,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 pbe(e,t,n){const r=this;return i;function i(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),en(e,o,"linePrefix")}function o(a){if(a===null||xt(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 f6(e,t,n,r,i,o,a,s,l){const c=l||Number.POSITIVE_INFINITY;let f=0;return h;function h(x){return x===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(x),e.exit(o),p):x===null||x===41||Fg(x)?n(x):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),v(x))}function p(x){return x===62?(e.enter(o),e.consume(x),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),y(x))}function y(x){return x===62?(e.exit("chunkString"),e.exit(s),p(x)):x===null||x===60||xt(x)?n(x):(e.consume(x),x===92?m:y)}function m(x){return x===60||x===62||x===92?(e.consume(x),y):y(x)}function v(x){return x===40?++f>c?n(x):(e.consume(x),v):x===41?f--?(e.consume(x),v):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(x)):x===null||Qn(x)?f?n(x):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(x)):Fg(x)?n(x):(e.consume(x),x===92?S:v)}function S(x){return x===40||x===41||x===92?(e.consume(x),v):v(x)}}function d6(e,t,n,r,i,o){const a=this;let s=0,l;return c;function c(y){return e.enter(r),e.enter(i),e.consume(y),e.exit(i),e.enter(o),f}function f(y){return y===null||y===91||y===93&&!l||y===94&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs||s>999?n(y):y===93?(e.exit(o),e.enter(i),e.consume(y),e.exit(i),e.exit(r),t):xt(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===null||y===91||y===93||xt(y)||s++>999?(e.exit("chunkString"),f(y)):(e.consume(y),l=l||!bn(y),y===92?p:h)}function p(y){return y===91||y===92||y===93?(e.consume(y),s++,h):h(y)}}function p6(e,t,n,r,i,o){let a;return s;function s(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),a=p===40?41:p,l}function l(p){return p===a?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(o),c(p))}function c(p){return p===a?(e.exit(o),l(a)):p===null?n(p):xt(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),en(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===a||p===null||xt(p)?(e.exit("chunkString"),c(p)):(e.consume(p),p===92?h:f)}function h(p){return p===a||p===92?(e.consume(p),f):f(p)}}function ig(e,t){let n;return r;function r(i){return xt(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):bn(i)?en(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function la(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const hbe={name:"definition",tokenize:mbe},gbe={tokenize:vbe,partial:!0};function mbe(e,t,n){const r=this;let i;return o;function o(l){return e.enter("definition"),d6.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(l)}function a(l){return i=la(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),l===58?(e.enter("definitionMarker"),e.consume(l),e.exit("definitionMarker"),ig(e,f6(e,e.attempt(gbe,en(e,s,"whitespace"),en(e,s,"whitespace")),n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):n(l)}function s(l){return l===null||xt(l)?(e.exit("definition"),r.parser.defined.includes(i)||r.parser.defined.push(i),t(l)):n(l)}}function vbe(e,t,n){return r;function r(a){return Qn(a)?ig(e,i)(a):n(a)}function i(a){return a===34||a===39||a===40?p6(e,en(e,o,"whitespace"),n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a):n(a)}function o(a){return a===null||xt(a)?t(a):n(a)}}const ybe={name:"hardBreakEscape",tokenize:bbe};function bbe(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(o),i}function i(o){return xt(o)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(o)):n(o)}}const xbe={name:"headingAtx",tokenize:Sbe,resolve:wbe};function wbe(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"},qi(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function Sbe(e,t,n){const r=this;let i=0;return o;function o(f){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),a(f)}function a(f){return f===35&&i++<6?(e.consume(f),a):f===null||Qn(f)?(e.exit("atxHeadingSequence"),r.interrupt?t(f):s(f)):n(f)}function s(f){return f===35?(e.enter("atxHeadingSequence"),l(f)):f===null||xt(f)?(e.exit("atxHeading"),t(f)):bn(f)?en(e,s,"whitespace")(f):(e.enter("atxHeadingText"),c(f))}function l(f){return f===35?(e.consume(f),l):(e.exit("atxHeadingSequence"),s(f))}function c(f){return f===null||f===35||Qn(f)?(e.exit("atxHeadingText"),s(f)):(e.consume(f),c)}}const _be=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],nL=["pre","script","style","textarea"],Cbe={name:"htmlFlow",tokenize:Tbe,resolveTo:kbe,concrete:!0},Ebe={tokenize:Rbe,partial:!0};function kbe(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 Tbe(e,t,n){const r=this;let i,o,a,s,l;return c;function c(A){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(A),f}function f(A){return A===33?(e.consume(A),h):A===47?(e.consume(A),m):A===63?(e.consume(A),i=3,r.interrupt?t:ee):wo(A)?(e.consume(A),a=String.fromCharCode(A),o=!0,v):n(A)}function h(A){return A===45?(e.consume(A),i=2,p):A===91?(e.consume(A),i=5,a="CDATA[",s=0,y):wo(A)?(e.consume(A),i=4,r.interrupt?t:ee):n(A)}function p(A){return A===45?(e.consume(A),r.interrupt?t:ee):n(A)}function y(A){return A===a.charCodeAt(s++)?(e.consume(A),s===a.length?r.interrupt?t:U:y):n(A)}function m(A){return wo(A)?(e.consume(A),a=String.fromCharCode(A),v):n(A)}function v(A){return A===null||A===47||A===62||Qn(A)?A!==47&&o&&nL.includes(a.toLowerCase())?(i=1,r.interrupt?t(A):U(A)):_be.includes(a.toLowerCase())?(i=6,A===47?(e.consume(A),S):r.interrupt?t(A):U(A)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(A):o?w(A):x(A)):A===45||ai(A)?(e.consume(A),a+=String.fromCharCode(A),v):n(A)}function S(A){return A===62?(e.consume(A),r.interrupt?t:U):n(A)}function x(A){return bn(A)?(e.consume(A),x):H(A)}function w(A){return A===47?(e.consume(A),H):A===58||A===95||wo(A)?(e.consume(A),C):bn(A)?(e.consume(A),w):H(A)}function C(A){return A===45||A===46||A===58||A===95||ai(A)?(e.consume(A),C):E(A)}function E(A){return A===61?(e.consume(A),O):bn(A)?(e.consume(A),E):w(A)}function O(A){return A===null||A===60||A===61||A===62||A===96?n(A):A===34||A===39?(e.consume(A),l=A,$):bn(A)?(e.consume(A),O):(l=null,I(A))}function $(A){return A===null||xt(A)?n(A):A===l?(e.consume(A),W):(e.consume(A),$)}function I(A){return A===null||A===34||A===39||A===60||A===61||A===62||A===96||Qn(A)?E(A):(e.consume(A),I)}function W(A){return A===47||A===62||bn(A)?w(A):n(A)}function H(A){return A===62?(e.consume(A),j):n(A)}function j(A){return bn(A)?(e.consume(A),j):A===null||xt(A)?U(A):n(A)}function U(A){return A===45&&i===2?(e.consume(A),Q):A===60&&i===1?(e.consume(A),L):A===62&&i===4?(e.consume(A),Y):A===63&&i===3?(e.consume(A),ee):A===93&&i===5?(e.consume(A),Z):xt(A)&&(i===6||i===7)?e.check(Ebe,Y,le)(A):A===null||xt(A)?le(A):(e.consume(A),U)}function le(A){return e.exit("htmlFlowData"),se(A)}function se(A){return A===null?M(A):xt(A)?e.attempt({tokenize:ie,partial:!0},se,M)(A):(e.enter("htmlFlowData"),U(A))}function ie(A,ne,oe){return ce;function ce(Se){return A.enter("lineEnding"),A.consume(Se),A.exit("lineEnding"),re}function re(Se){return r.parser.lazy[r.now().line]?oe(Se):ne(Se)}}function Q(A){return A===45?(e.consume(A),ee):U(A)}function L(A){return A===47?(e.consume(A),a="",te):U(A)}function te(A){return A===62&&nL.includes(a.toLowerCase())?(e.consume(A),Y):wo(A)&&a.length<8?(e.consume(A),a+=String.fromCharCode(A),te):U(A)}function Z(A){return A===93?(e.consume(A),ee):U(A)}function ee(A){return A===62?(e.consume(A),Y):A===45&&i===2?(e.consume(A),ee):U(A)}function Y(A){return A===null||xt(A)?(e.exit("htmlFlowData"),M(A)):(e.consume(A),Y)}function M(A){return e.exit("htmlFlow"),t(A)}}function Rbe(e,t,n){return r;function r(i){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),e.attempt(hm,t,n)}}const Abe={name:"htmlText",tokenize:Obe};function Obe(e,t,n){const r=this;let i,o,a,s;return l;function l(M){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(M),c}function c(M){return M===33?(e.consume(M),f):M===47?(e.consume(M),I):M===63?(e.consume(M),O):wo(M)?(e.consume(M),j):n(M)}function f(M){return M===45?(e.consume(M),h):M===91?(e.consume(M),o="CDATA[",a=0,S):wo(M)?(e.consume(M),E):n(M)}function h(M){return M===45?(e.consume(M),p):n(M)}function p(M){return M===null||M===62?n(M):M===45?(e.consume(M),y):m(M)}function y(M){return M===null||M===62?n(M):m(M)}function m(M){return M===null?n(M):M===45?(e.consume(M),v):xt(M)?(s=m,Z(M)):(e.consume(M),m)}function v(M){return M===45?(e.consume(M),Y):m(M)}function S(M){return M===o.charCodeAt(a++)?(e.consume(M),a===o.length?x:S):n(M)}function x(M){return M===null?n(M):M===93?(e.consume(M),w):xt(M)?(s=x,Z(M)):(e.consume(M),x)}function w(M){return M===93?(e.consume(M),C):x(M)}function C(M){return M===62?Y(M):M===93?(e.consume(M),C):x(M)}function E(M){return M===null||M===62?Y(M):xt(M)?(s=E,Z(M)):(e.consume(M),E)}function O(M){return M===null?n(M):M===63?(e.consume(M),$):xt(M)?(s=O,Z(M)):(e.consume(M),O)}function $(M){return M===62?Y(M):O(M)}function I(M){return wo(M)?(e.consume(M),W):n(M)}function W(M){return M===45||ai(M)?(e.consume(M),W):H(M)}function H(M){return xt(M)?(s=H,Z(M)):bn(M)?(e.consume(M),H):Y(M)}function j(M){return M===45||ai(M)?(e.consume(M),j):M===47||M===62||Qn(M)?U(M):n(M)}function U(M){return M===47?(e.consume(M),Y):M===58||M===95||wo(M)?(e.consume(M),le):xt(M)?(s=U,Z(M)):bn(M)?(e.consume(M),U):Y(M)}function le(M){return M===45||M===46||M===58||M===95||ai(M)?(e.consume(M),le):se(M)}function se(M){return M===61?(e.consume(M),ie):xt(M)?(s=se,Z(M)):bn(M)?(e.consume(M),se):U(M)}function ie(M){return M===null||M===60||M===61||M===62||M===96?n(M):M===34||M===39?(e.consume(M),i=M,Q):xt(M)?(s=ie,Z(M)):bn(M)?(e.consume(M),ie):(e.consume(M),i=void 0,te)}function Q(M){return M===i?(e.consume(M),L):M===null?n(M):xt(M)?(s=Q,Z(M)):(e.consume(M),Q)}function L(M){return M===62||M===47||Qn(M)?U(M):n(M)}function te(M){return M===null||M===34||M===39||M===60||M===61||M===96?n(M):M===62||Qn(M)?U(M):(e.consume(M),te)}function Z(M){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),en(e,ee,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ee(M){return e.enter("htmlTextData"),s(M)}function Y(M){return M===62?(e.consume(M),e.exit("htmlTextData"),e.exit("htmlText"),t):n(M)}}const WR={name:"labelEnd",tokenize:Fbe,resolveTo:Lbe,resolveAll:Pbe},Dbe={tokenize:Mbe},$be={tokenize:Nbe},Ibe={tokenize:Bbe};function Pbe(e){let t=-1,n;for(;++t<e.length;)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 Lbe(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)},c={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",c,t]],s=bo(s,e.slice(o+1,o+r+3)),s=bo(s,[["enter",f,t]]),s=bo(s,wx(t.parser.constructs.insideSpan.null,e.slice(o+r+4,a-3),t)),s=bo(s,[["exit",f,t],e[a-2],e[a-1],["exit",c,t]]),s=bo(s,e.slice(a+1)),s=bo(s,[["exit",l,t]]),qi(e,o,e.length,s),e}function Fbe(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(f){return o?o._inactive?c(f):(a=r.parser.defined.includes(la(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),l):n(f)}function l(f){return f===40?e.attempt(Dbe,t,a?t:c)(f):f===91?e.attempt($be,t,a?e.attempt(Ibe,t,c):c)(f):a?t(f):c(f)}function c(f){return o._balanced=!0,n(f)}}function Mbe(e,t,n){return r;function r(l){return e.enter("resource"),e.enter("resourceMarker"),e.consume(l),e.exit("resourceMarker"),ig(e,i)}function i(l){return l===41?s(l):f6(e,o,n,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(l)}function o(l){return Qn(l)?ig(e,a)(l):s(l)}function a(l){return l===34||l===39||l===40?p6(e,ig(e,s),n,"resourceTitle","resourceTitleMarker","resourceTitleString")(l):s(l)}function s(l){return l===41?(e.enter("resourceMarker"),e.consume(l),e.exit("resourceMarker"),e.exit("resource"),t):n(l)}}function Nbe(e,t,n){const r=this;return i;function i(a){return d6.call(r,e,o,n,"reference","referenceMarker","referenceString")(a)}function o(a){return r.parser.defined.includes(la(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}}function Bbe(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 zbe={name:"labelStartImage",tokenize:jbe,resolveAll:WR.resolveAll};function jbe(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 Ube={name:"labelStartLink",tokenize:Kbe,resolveAll:WR.resolveAll};function Kbe(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 a_={name:"lineEnding",tokenize:Wbe};function Wbe(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),en(e,t,"linePrefix")}}const c0={name:"thematicBreak",tokenize:Vbe};function Vbe(e,t,n){let r=0,i;return o;function o(l){return e.enter("thematicBreak"),i=l,a(l)}function a(l){return l===i?(e.enter("thematicBreakSequence"),s(l)):bn(l)?en(e,a,"whitespace")(l):r<3||l!==null&&!xt(l)?n(l):(e.exit("thematicBreak"),t(l))}function s(l){return l===i?(e.consume(l),r++,s):(e.exit("thematicBreakSequence"),a(l))}}const mi={name:"list",tokenize:Gbe,continuation:{tokenize:Ybe},exit:Zbe},Hbe={tokenize:Jbe,partial:!0},qbe={tokenize:Xbe,partial:!0};function Gbe(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(y){const m=r.containerState.type||(y===42||y===43||y===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||y===r.containerState.marker:p1(y)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),y===42||y===45?e.check(c0,n,c)(y):c(y);if(!r.interrupt||y===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(y)}return n(y)}function l(y){return p1(y)&&++a<10?(e.consume(y),l):(!r.interrupt||a<2)&&(r.containerState.marker?y===r.containerState.marker:y===41||y===46)?(e.exit("listItemValue"),c(y)):n(y)}function c(y){return e.enter("listItemMarker"),e.consume(y),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||y,e.check(hm,r.interrupt?n:f,e.attempt(Hbe,p,h))}function f(y){return r.containerState.initialBlankLine=!0,o++,p(y)}function h(y){return bn(y)?(e.enter("listItemPrefixWhitespace"),e.consume(y),e.exit("listItemPrefixWhitespace"),p):n(y)}function p(y){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(y)}}function Ybe(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(hm,i,o);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,en(e,t,"listItemIndent",r.containerState.size+1)(s)}function o(s){return r.containerState.furtherBlankLines||!bn(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(qbe,t,a)(s))}function a(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,en(e,e.attempt(mi,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function Xbe(e,t,n){const r=this;return en(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 Zbe(e){e.exit(this.containerState.type)}function Jbe(e,t,n){const r=this;return en(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!bn(o)&&a&&a[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const rL={name:"setextUnderline",tokenize:exe,resolveTo:Qbe};function Qbe(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 exe(e,t,n){const r=this;let i=r.events.length,o,a;for(;i--;)if(r.events[i][1].type!=="lineEnding"&&r.events[i][1].type!=="linePrefix"&&r.events[i][1].type!=="content"){a=r.events[i][1].type==="paragraph";break}return s;function s(f){return!r.parser.lazy[r.now().line]&&(r.interrupt||a)?(e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),o=f,l(f)):n(f)}function l(f){return f===o?(e.consume(f),l):(e.exit("setextHeadingLineSequence"),en(e,c,"lineSuffix")(f))}function c(f){return f===null||xt(f)?(e.exit("setextHeadingLine"),t(f)):n(f)}}const txe={tokenize:nxe};function nxe(e){const t=this,n=e.attempt(hm,r,e.attempt(this.parser.constructs.flowInitial,i,en(e,e.attempt(this.parser.constructs.flow,i,e.attempt(ube,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 rxe={resolveAll:g6()},ixe=h6("string"),oxe=h6("text");function h6(e){return{tokenize:t,resolveAll:g6(e==="text"?axe: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 c(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 c(f)?(n.exit("data"),o(f)):(n.consume(f),l)}function c(f){if(f===null)return!0;const h=i[f];let p=-1;if(h)for(;++p<h.length;){const y=h[p];if(!y.previous||y.previous.call(r,r.previous))return!0}return!1}}}function g6(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 axe(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 c=i[o];if(typeof c=="string"){for(a=c.length;c.charCodeAt(a-1)===32;)s++,a--;if(a)break;a=-1}else if(c===-2)l=!0,s++;else if(c!==-1){o++;break}}if(s){const c={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({},c.start),r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}function sxe(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:w,enter:C,exit:E,attempt:I(O),check:I($),interrupt:I($,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:y,sliceSerialize:p,now:m,defineSkip:v,write:h};let f=t.tokenize.call(c,l);return t.resolveAll&&o.push(t),c;function h(U){return a=bo(a,U),S(),a[a.length-1]!==null?[]:(W(t,0),c.events=wx(o,c.events,c),c.events)}function p(U,le){return uxe(y(U),le)}function y(U){return lxe(a,U)}function m(){return Object.assign({},r)}function v(U){i[U.line]=U.column,j()}function S(){let U;for(;r._index<a.length;){const le=a[r._index];if(typeof le=="string")for(U=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===U&&r._bufferIndex<le.length;)x(le.charCodeAt(r._bufferIndex));else x(le)}}function x(U){f=f(U)}function w(U){xt(U)?(r.line++,r.column=1,r.offset+=U===-3?2:1,j()):U!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=U}function C(U,le){const se=le||{};return se.type=U,se.start=m(),c.events.push(["enter",se,c]),s.push(se),se}function E(U){const le=s.pop();return le.end=m(),c.events.push(["exit",le,c]),le}function O(U,le){W(U,le.from)}function $(U,le){le.restore()}function I(U,le){return se;function se(ie,Q,L){let te,Z,ee,Y;return Array.isArray(ie)?A(ie):"tokenize"in ie?A([ie]):M(ie);function M(re){return Se;function Se(ke){const Ce=ke!==null&&re[ke],Pe=ke!==null&&re.null,Le=[...Array.isArray(Ce)?Ce:Ce?[Ce]:[],...Array.isArray(Pe)?Pe:Pe?[Pe]:[]];return A(Le)(ke)}}function A(re){return te=re,Z=0,re.length===0?L:ne(re[Z])}function ne(re){return Se;function Se(ke){return Y=H(),ee=re,re.partial||(c.currentConstruct=re),re.name&&c.parser.constructs.disable.null.includes(re.name)?ce():re.tokenize.call(le?Object.assign(Object.create(c),le):c,l,oe,ce)(ke)}}function oe(re){return U(ee,Y),Q}function ce(re){return Y.restore(),++Z<te.length?ne(te[Z]):L}}}function W(U,le){U.resolveAll&&!o.includes(U)&&o.push(U),U.resolve&&qi(c.events,le,c.events.length-le,U.resolve(c.events.slice(le),c)),U.resolveTo&&(c.events=U.resolveTo(c.events,c))}function H(){const U=m(),le=c.previous,se=c.currentConstruct,ie=c.events.length,Q=Array.from(s);return{restore:L,from:ie};function L(){r=U,c.previous=le,c.currentConstruct=se,c.events.length=ie,s=Q,j()}}function j(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function lxe(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let a;return n===i?a=[e[n].slice(r,o)]:(a=e.slice(n,i),r>-1&&(a[0]=a[0].slice(r)),o>0&&a.push(e[i].slice(0,o))),a}function uxe(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=`
|
|
197
|
+
`;break}case-3:{a=`\r
|
|
198
|
+
`;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 cxe={[42]:mi,[43]:mi,[45]:mi,[48]:mi,[49]:mi,[50]:mi,[51]:mi,[52]:mi,[53]:mi,[54]:mi,[55]:mi,[56]:mi,[57]:mi,[62]:s6},fxe={[91]:hbe},dxe={[-2]:o_,[-1]:o_,[32]:o_},pxe={[35]:xbe,[42]:c0,[45]:[rL,c0],[60]:Cbe,[61]:rL,[95]:c0,[96]:tL,[126]:tL},hxe={[38]:u6,[92]:l6},gxe={[-5]:a_,[-4]:a_,[-3]:a_,[33]:zbe,[38]:u6,[42]:PE,[60]:[H1e,Abe],[91]:Ube,[92]:[ybe,l6],[93]:WR,[95]:PE,[96]:ibe},mxe={null:[PE,rxe]},vxe={null:[42,95]},yxe={null:[]},bxe=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:vxe,contentInitial:fxe,disable:yxe,document:cxe,flow:pxe,flowInitial:dxe,insideSpan:mxe,string:hxe,text:gxe},Symbol.toStringTag,{value:"Module"}));function xxe(e={}){const t=a6([bxe].concat(e.extensions||[])),n={defined:[],lazy:{},constructs:t,content:r(B1e),document:r(j1e),flow:r(txe),string:r(ixe),text:r(oxe)};return n;function r(i){return o;function o(a){return sxe(n,i,a)}}}const iL=/[\0\t\n\r]/g;function wxe(){let e=1,t="",n=!0,r;return i;function i(o,a,s){const l=[];let c,f,h,p,y;for(o=t+o.toString(a),h=0,t="",n&&(o.charCodeAt(0)===65279&&h++,n=void 0);h<o.length;){if(iL.lastIndex=h,c=iL.exec(o),p=c&&c.index!==void 0?c.index:o.length,y=o.charCodeAt(p),!c){t=o.slice(h);break}if(y===10&&h===p&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),h<p&&(l.push(o.slice(h,p)),e+=p-h),y){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}h=p+1}return s&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}function Sxe(e){for(;!c6(e););return e}function m6(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 _xe=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function v6(e){return e.replace(_xe,Cxe)}function Cxe(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return m6(n.slice(o?2:1),o?16:10)}return KR(n)||e}const y6={}.hasOwnProperty,Exe=function(e,t,n){return typeof t!="string"&&(n=t,t=void 0),kxe(n)(Sxe(xxe(n).document().write(wxe()(e,t,!0))))};function kxe(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(ge),autolinkProtocol:U,autolinkEmail:U,atxHeading:s(at),blockQuote:s(Le),characterEscape:U,characterReference:U,codeFenced:s(ze),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:s(ze,l),codeText:s(We,l),codeTextData:U,data:U,codeFlowValue:U,definition:s(qe),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:s(Ve),hardBreakEscape:s(Ze),hardBreakTrailing:s(Ze),htmlFlow:s(tt,l),htmlFlowData:U,htmlText:s(tt,l),htmlTextData:U,image:s(gt),label:l,link:s(ge),listItem:s(Ee),listItemValue:m,listOrdered:s(Te,y),listUnordered:s(Te),paragraph:s(Ae),reference:ce,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:s(at),strong:s(B),thematicBreak:s(he)},exit:{atxHeading:f(),atxHeadingSequence:I,autolink:f(),autolinkEmail:Pe,autolinkProtocol:Ce,blockQuote:f(),characterEscapeValue:le,characterReferenceMarkerHexadecimal:Se,characterReferenceMarkerNumeric:Se,characterReferenceValue:ke,codeFenced:f(w),codeFencedFence:x,codeFencedFenceInfo:v,codeFencedFenceMeta:S,codeFlowValue:le,codeIndented:f(C),codeText:f(te),codeTextData:le,data:le,definition:f(),definitionDestinationString:$,definitionLabelString:E,definitionTitleString:O,emphasis:f(),hardBreakEscape:f(ie),hardBreakTrailing:f(ie),htmlFlow:f(Q),htmlFlowData:le,htmlText:f(L),htmlTextData:le,image:f(ee),label:M,labelText:Y,lineEnding:se,link:f(Z),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:re,resourceDestinationString:A,resourceTitleString:ne,resource:oe,setextHeading:f(j),setextHeadingLineSequence:H,setextHeadingText:W,strong:f(),thematicBreak:f()}};b6(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(G){let fe={type:"root",children:[]};const ae={stack:[fe],tokenStack:[],config:t,enter:c,exit:h,buffer:l,resume:p,setData:o,getData:a},Re=[];let Ie=-1;for(;++Ie<G.length;)if(G[Ie][1].type==="listOrdered"||G[Ie][1].type==="listUnordered")if(G[Ie][0]==="enter")Re.push(Ie);else{const $e=Re.pop();Ie=i(G,$e,Ie)}for(Ie=-1;++Ie<G.length;){const $e=t[G[Ie][0]];y6.call($e,G[Ie][1].type)&&$e[G[Ie][1].type].call(Object.assign({sliceSerialize:G[Ie][2].sliceSerialize},ae),G[Ie][1])}if(ae.tokenStack.length>0){const $e=ae.tokenStack[ae.tokenStack.length-1];($e[1]||oL).call(ae,void 0,$e[0])}for(fe.position={start:fl(G.length>0?G[0][1].start:{line:1,column:1,offset:0}),end:fl(G.length>0?G[G.length-2][1].end:{line:1,column:1,offset:0})},Ie=-1;++Ie<t.transforms.length;)fe=t.transforms[Ie](fe)||fe;return fe}function i(G,fe,ae){let Re=fe-1,Ie=-1,$e=!1,dt,ot,pe,me;for(;++Re<=ae;){const _e=G[Re];if(_e[1].type==="listUnordered"||_e[1].type==="listOrdered"||_e[1].type==="blockQuote"?(_e[0]==="enter"?Ie++:Ie--,me=void 0):_e[1].type==="lineEndingBlank"?_e[0]==="enter"&&(dt&&!me&&!Ie&&!pe&&(pe=Re),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),!Ie&&_e[0]==="enter"&&_e[1].type==="listItemPrefix"||Ie===-1&&_e[0]==="exit"&&(_e[1].type==="listUnordered"||_e[1].type==="listOrdered")){if(dt){let Ue=Re;for(ot=void 0;Ue--;){const Ke=G[Ue];if(Ke[1].type==="lineEnding"||Ke[1].type==="lineEndingBlank"){if(Ke[0]==="exit")continue;ot&&(G[ot][1].type="lineEndingBlank",$e=!0),Ke[1].type="lineEnding",ot=Ue}else if(!(Ke[1].type==="linePrefix"||Ke[1].type==="blockQuotePrefix"||Ke[1].type==="blockQuotePrefixWhitespace"||Ke[1].type==="blockQuoteMarker"||Ke[1].type==="listItemIndent"))break}pe&&(!ot||pe<ot)&&(dt._spread=!0),dt.end=Object.assign({},ot?G[ot][1].start:_e[1].end),G.splice(ot||Re,0,["exit",dt,_e[2]]),Re++,ae++}_e[1].type==="listItemPrefix"&&(dt={type:"listItem",_spread:!1,start:Object.assign({},_e[1].start)},G.splice(Re,0,["enter",dt,_e[2]]),Re++,ae++,pe=void 0,me=!0)}}return G[fe][1]._spread=$e,ae}function o(G,fe){n[G]=fe}function a(G){return n[G]}function s(G,fe){return ae;function ae(Re){c.call(this,G(Re),Re),fe&&fe.call(this,Re)}}function l(){this.stack.push({type:"fragment",children:[]})}function c(G,fe,ae){return this.stack[this.stack.length-1].children.push(G),this.stack.push(G),this.tokenStack.push([fe,ae]),G.position={start:fl(fe.start)},G}function f(G){return fe;function fe(ae){G&&G.call(this,ae),h.call(this,ae)}}function h(G,fe){const ae=this.stack.pop(),Re=this.tokenStack.pop();if(Re)Re[0].type!==G.type&&(fe?fe.call(this,G,Re[0]):(Re[1]||oL).call(this,G,Re[0]));else throw new Error("Cannot close `"+G.type+"` ("+rg({start:G.start,end:G.end})+"): it’s not open");return ae.position.end=fl(G.end),ae}function p(){return $1e(this.stack.pop())}function y(){o("expectingFirstListItemValue",!0)}function m(G){if(a("expectingFirstListItemValue")){const fe=this.stack[this.stack.length-2];fe.start=Number.parseInt(this.sliceSerialize(G),10),o("expectingFirstListItemValue")}}function v(){const G=this.resume(),fe=this.stack[this.stack.length-1];fe.lang=G}function S(){const G=this.resume(),fe=this.stack[this.stack.length-1];fe.meta=G}function x(){a("flowCodeInside")||(this.buffer(),o("flowCodeInside",!0))}function w(){const G=this.resume(),fe=this.stack[this.stack.length-1];fe.value=G.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),o("flowCodeInside")}function C(){const G=this.resume(),fe=this.stack[this.stack.length-1];fe.value=G.replace(/(\r?\n|\r)$/g,"")}function E(G){const fe=this.resume(),ae=this.stack[this.stack.length-1];ae.label=fe,ae.identifier=la(this.sliceSerialize(G)).toLowerCase()}function O(){const G=this.resume(),fe=this.stack[this.stack.length-1];fe.title=G}function $(){const G=this.resume(),fe=this.stack[this.stack.length-1];fe.url=G}function I(G){const fe=this.stack[this.stack.length-1];if(!fe.depth){const ae=this.sliceSerialize(G).length;fe.depth=ae}}function W(){o("setextHeadingSlurpLineEnding",!0)}function H(G){const fe=this.stack[this.stack.length-1];fe.depth=this.sliceSerialize(G).charCodeAt(0)===61?1:2}function j(){o("setextHeadingSlurpLineEnding")}function U(G){const fe=this.stack[this.stack.length-1];let ae=fe.children[fe.children.length-1];(!ae||ae.type!=="text")&&(ae=V(),ae.position={start:fl(G.start)},fe.children.push(ae)),this.stack.push(ae)}function le(G){const fe=this.stack.pop();fe.value+=this.sliceSerialize(G),fe.position.end=fl(G.end)}function se(G){const fe=this.stack[this.stack.length-1];if(a("atHardBreak")){const ae=fe.children[fe.children.length-1];ae.position.end=fl(G.end),o("atHardBreak");return}!a("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(fe.type)&&(U.call(this,G),le.call(this,G))}function ie(){o("atHardBreak",!0)}function Q(){const G=this.resume(),fe=this.stack[this.stack.length-1];fe.value=G}function L(){const G=this.resume(),fe=this.stack[this.stack.length-1];fe.value=G}function te(){const G=this.resume(),fe=this.stack[this.stack.length-1];fe.value=G}function Z(){const G=this.stack[this.stack.length-1];if(a("inReference")){const fe=a("referenceType")||"shortcut";G.type+="Reference",G.referenceType=fe,delete G.url,delete G.title}else delete G.identifier,delete G.label;o("referenceType")}function ee(){const G=this.stack[this.stack.length-1];if(a("inReference")){const fe=a("referenceType")||"shortcut";G.type+="Reference",G.referenceType=fe,delete G.url,delete G.title}else delete G.identifier,delete G.label;o("referenceType")}function Y(G){const fe=this.sliceSerialize(G),ae=this.stack[this.stack.length-2];ae.label=v6(fe),ae.identifier=la(fe).toLowerCase()}function M(){const G=this.stack[this.stack.length-1],fe=this.resume(),ae=this.stack[this.stack.length-1];if(o("inReference",!0),ae.type==="link"){const Re=G.children;ae.children=Re}else ae.alt=fe}function A(){const G=this.resume(),fe=this.stack[this.stack.length-1];fe.url=G}function ne(){const G=this.resume(),fe=this.stack[this.stack.length-1];fe.title=G}function oe(){o("inReference")}function ce(){o("referenceType","collapsed")}function re(G){const fe=this.resume(),ae=this.stack[this.stack.length-1];ae.label=fe,ae.identifier=la(this.sliceSerialize(G)).toLowerCase(),o("referenceType","full")}function Se(G){o("characterReferenceType",G.type)}function ke(G){const fe=this.sliceSerialize(G),ae=a("characterReferenceType");let Re;ae?(Re=m6(fe,ae==="characterReferenceMarkerNumeric"?10:16),o("characterReferenceType")):Re=KR(fe);const Ie=this.stack.pop();Ie.value+=Re,Ie.position.end=fl(G.end)}function Ce(G){le.call(this,G);const fe=this.stack[this.stack.length-1];fe.url=this.sliceSerialize(G)}function Pe(G){le.call(this,G);const fe=this.stack[this.stack.length-1];fe.url="mailto:"+this.sliceSerialize(G)}function Le(){return{type:"blockquote",children:[]}}function ze(){return{type:"code",lang:null,meta:null,value:""}}function We(){return{type:"inlineCode",value:""}}function qe(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ve(){return{type:"emphasis",children:[]}}function at(){return{type:"heading",depth:void 0,children:[]}}function Ze(){return{type:"break"}}function tt(){return{type:"html",value:""}}function gt(){return{type:"image",title:null,url:"",alt:null}}function ge(){return{type:"link",title:null,url:"",children:[]}}function Te(G){return{type:"list",ordered:G.type==="listOrdered",start:null,spread:G._spread,children:[]}}function Ee(G){return{type:"listItem",spread:G._spread,checked:null,children:[]}}function Ae(){return{type:"paragraph",children:[]}}function B(){return{type:"strong",children:[]}}function V(){return{type:"text",value:""}}function he(){return{type:"thematicBreak"}}}function fl(e){return{line:e.line,column:e.column,offset:e.offset}}function b6(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?b6(e,r):Txe(e,r)}}function Txe(e,t){let n;for(n in t)if(y6.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 oL(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+rg({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+rg({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+rg({start:t.start,end:t.end})+") is still open")}function Rxe(e){Object.assign(this,{Parser:n=>{const r=this.data("settings");return Exe(n,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function Axe(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 Oxe(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
199
|
+
`}]}function Dxe(e,t){const n=t.value?t.value+`
|
|
200
|
+
`:"",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 $xe(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ixe(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ud(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let a="";if(o===37&&ai(e.charCodeAt(n+1))&&ai(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 x6(e,t){const n=String(t.identifier).toUpperCase(),r=Ud(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 Pxe(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},x6(e,{type:"footnoteReference",identifier:i,position:t.position})}function Lxe(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 Fxe(e,t){if(e.dangerous){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null}function w6(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 Mxe(e,t){const n=e.definition(t.identifier);if(!n)return w6(e,t);const r={src:Ud(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 Nxe(e,t){const n={src:Ud(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 Bxe(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 zxe(e,t){const n=e.definition(t.identifier);if(!n)return w6(e,t);const r={href:Ud(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 jxe(e,t){const n={href:Ud(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 Uxe(e,t,n){const r=e.all(t),i=n?Kxe(n):S6(t),o={},a=[];if(typeof t.checked=="boolean"){const f=r[0];let h;f&&f.type==="element"&&f.tagName==="p"?h=f:(h={type:"element",tagName:"p",properties:{},children:[]},r.unshift(h)),h.children.length>0&&h.children.unshift({type:"text",value:" "}),h.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:`
|
|
201
|
+
`}),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:`
|
|
202
|
+
`});const c={type:"element",tagName:"li",properties:o,children:a};return e.patch(t,c),e.applyData(t,c)}function Kxe(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=S6(n[r])}return t}function S6(e){const t=e.spread;return t??e.children.length>1}function Wxe(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 Vxe(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Hxe(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function qxe(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const VR=_6("start"),HR=_6("end");function Gxe(e){return{start:VR(e),end:HR(e)}}function _6(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 Yxe(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=VR(t.children[1]),l=HR(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 Xxe(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 c=[];for(;++l<s;){const h=t.children[l],p={},y=a?a[l]:void 0;y&&(p.align=y);let m={type:"element",tagName:o,properties:p,children:[]};h&&(m.children=e.all(h),e.patch(h,m),m=e.applyData(t,m)),c.push(m)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,f),e.applyData(t,f)}function Zxe(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const aL=9,sL=32;function Jxe(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(lL(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(lL(t.slice(i),i>0,!1)),o.join("")}function lL(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===aL||o===sL;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===aL||o===sL;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Qxe(e,t){const n={type:"text",value:Jxe(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function ewe(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const twe={blockquote:Axe,break:Oxe,code:Dxe,delete:$xe,emphasis:Ixe,footnoteReference:x6,footnote:Pxe,heading:Lxe,html:Fxe,imageReference:Mxe,image:Nxe,inlineCode:Bxe,linkReference:zxe,link:jxe,listItem:Uxe,list:Wxe,paragraph:Vxe,root:Hxe,strong:qxe,table:Yxe,tableCell:Zxe,tableRow:Xxe,text:Qxe,thematicBreak:ewe,toml:my,yaml:my,definition:my,footnoteDefinition:my};function my(){return null}const qR=function(e){if(e==null)return owe;if(typeof e=="string")return iwe(e);if(typeof e=="object")return Array.isArray(e)?nwe(e):rwe(e);if(typeof e=="function")return Sx(e);throw new Error("Expected function, string, or object as test")};function nwe(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=qR(e[n]);return Sx(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].call(this,...i))return!0;return!1}}function rwe(e){return Sx(t);function t(n){let r;for(r in e)if(n[r]!==e[r])return!1;return!0}}function iwe(e){return Sx(t);function t(n){return n&&n.type===e}}function Sx(e){return t;function t(n,...r){return!!(n&&typeof n=="object"&&"type"in n&&e.call(this,n,...r))}}function owe(){return!0}const awe=!0,uL=!1,swe="skip",C6=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null);const i=qR(t),o=r?-1:1;a(e,void 0,[])();function a(s,l,c){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(h,"name",{value:"node ("+(s.type+(p?"<"+p+">":""))+")"})}return h;function h(){let p=[],y,m,v;if((!t||i(s,l,c[c.length-1]||null))&&(p=lwe(n(s,c)),p[0]===uL))return p;if(s.children&&p[0]!==swe)for(m=(r?s.children.length:-1)+o,v=c.concat(s);m>-1&&m<s.children.length;){if(y=a(s.children[m],m,v)(),y[0]===uL)return y;m=typeof y[1]=="number"?y[1]:m+o}return p}}};function lwe(e){return Array.isArray(e)?e:typeof e=="number"?[awe,e]:[e]}const GR=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null),C6(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 uwe(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 cL={}.hasOwnProperty;function cwe(e){const t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return GR(e,"definition",r=>{const i=fL(r.identifier);i&&!cL.call(t,i)&&(t[i]=r)}),n;function n(r){const i=fL(r);return i&&cL.call(t,i)?t[i]:null}}function fL(e){return String(e||"").toUpperCase()}const g1={}.hasOwnProperty;function fwe(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={...twe,...n.handlers},a.definition=cwe(e),a.footnoteById=i,a.footnoteOrder=[],a.footnoteCounts={},a.patch=dwe,a.applyData=pwe,a.one=s,a.all=l,a.wrap=gwe,a.augment=o,GR(e,"footnoteDefinition",c=>{const f=String(c.identifier).toUpperCase();g1.call(i,f)||(i[f]=c)}),a;function o(c,f){if(c&&"data"in c&&c.data){const h=c.data;h.hName&&(f.type!=="element"&&(f={type:"element",tagName:"",properties:{},children:[]}),f.tagName=h.hName),f.type==="element"&&h.hProperties&&(f.properties={...f.properties,...h.hProperties}),"children"in f&&f.children&&h.hChildren&&(f.children=h.hChildren)}if(c){const h="type"in c?c:{position:c};uwe(h)||(f.position={start:VR(h),end:HR(h)})}return f}function a(c,f,h,p){return Array.isArray(h)&&(p=h,h={}),o(c,{type:"element",tagName:f,properties:h||{},children:p||[]})}function s(c,f){return E6(a,c,f)}function l(c){return YR(a,c)}}function dwe(e,t){e.position&&(t.position=Gxe(e))}function pwe(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 E6(e,t,n){const r=t&&t.type;if(!r)throw new Error("Expected node, got `"+t+"`");return g1.call(e.handlers,r)?e.handlers[r](e,t,n):e.passThrough&&e.passThrough.includes(r)?"children"in t?{...t,children:YR(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,n):hwe(e,t)}function YR(e,t){const n=[];if("children"in t){const r=t.children;let i=-1;for(;++i<r.length;){const o=E6(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 hwe(e,t){const n=t.data||{},r="value"in t&&!(g1.call(n,"hProperties")||g1.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:YR(e,t)};return e.patch(t,r),e.applyData(t,r)}function gwe(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
203
|
+
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
204
|
+
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
205
|
+
`}),n}function mwe(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=Ud(o.toLowerCase());let s=0;const l=[];for(;++s<=e.footnoteCounts[o];){const h={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&&h.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(s)}]}),l.length>0&&l.push({type:"text",value:" "}),l.push(h)}const c=i[i.length-1];if(c&&c.type==="element"&&c.tagName==="p"){const h=c.children[c.children.length-1];h&&h.type==="text"?h.value+=" ":c.children.push({type:"text",value:" "}),c.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:`
|
|
206
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:`
|
|
207
|
+
`}]}}function k6(e,t){const n=fwe(e,t),r=n.one(e,null),i=mwe(n);return i&&r.children.push({type:"text",value:`
|
|
208
|
+
`},i),Array.isArray(r)?{type:"root",children:r}:r}const vwe=function(e,t){return e&&"run"in e?bwe(e,t):xwe(e||t)},ywe=vwe;function bwe(e,t){return(n,r,i)=>{e.run(k6(n,t),r,o=>{i(o)})}}function xwe(e){return t=>k6(t,e)}let gm=class{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}};gm.prototype.property={};gm.prototype.normal={};gm.prototype.space=null;function T6(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 gm(n,r,t)}function LE(e){return e.toLowerCase()}class Fo{constructor(t,n){this.property=t,this.attribute=n}}Fo.prototype.space=null;Fo.prototype.boolean=!1;Fo.prototype.booleanish=!1;Fo.prototype.overloadedBoolean=!1;Fo.prototype.number=!1;Fo.prototype.commaSeparated=!1;Fo.prototype.spaceSeparated=!1;Fo.prototype.commaOrSpaceSeparated=!1;Fo.prototype.mustUseProperty=!1;Fo.prototype.defined=!1;let wwe=0;const Nt=bc(),ur=bc(),R6=bc(),Xe=bc(),An=bc(),nd=bc(),Ni=bc();function bc(){return 2**++wwe}const FE=Object.freeze(Object.defineProperty({__proto__:null,boolean:Nt,booleanish:ur,commaOrSpaceSeparated:Ni,commaSeparated:nd,number:Xe,overloadedBoolean:R6,spaceSeparated:An},Symbol.toStringTag,{value:"Module"})),s_=Object.keys(FE);class XR extends Fo{constructor(t,n,r,i){let o=-1;if(super(t,n),dL(this,"space",i),typeof r=="number")for(;++o<s_.length;){const a=s_[o];dL(this,s_[o],(r&FE[a])===FE[a])}}}XR.prototype.defined=!0;function dL(e,t,n){n&&(e[t]=n)}const Swe={}.hasOwnProperty;function Kd(e){const t={},n={};let r;for(r in e.properties)if(Swe.call(e.properties,r)){const i=e.properties[r],o=new XR(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[LE(r)]=r,n[LE(o.attribute)]=r}return new gm(t,n,e.space)}const A6=Kd({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}}),O6=Kd({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function D6(e,t){return t in e?e[t]:t}function $6(e,t){return D6(e,t.toLowerCase())}const I6=Kd({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:$6,properties:{xmlns:null,xmlnsXLink:null}}),P6=Kd({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:ur,ariaAutoComplete:null,ariaBusy:ur,ariaChecked:ur,ariaColCount:Xe,ariaColIndex:Xe,ariaColSpan:Xe,ariaControls:An,ariaCurrent:null,ariaDescribedBy:An,ariaDetails:null,ariaDisabled:ur,ariaDropEffect:An,ariaErrorMessage:null,ariaExpanded:ur,ariaFlowTo:An,ariaGrabbed:ur,ariaHasPopup:null,ariaHidden:ur,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:An,ariaLevel:Xe,ariaLive:null,ariaModal:ur,ariaMultiLine:ur,ariaMultiSelectable:ur,ariaOrientation:null,ariaOwns:An,ariaPlaceholder:null,ariaPosInSet:Xe,ariaPressed:ur,ariaReadOnly:ur,ariaRelevant:null,ariaRequired:ur,ariaRoleDescription:An,ariaRowCount:Xe,ariaRowIndex:Xe,ariaRowSpan:Xe,ariaSelected:ur,ariaSetSize:Xe,ariaSort:null,ariaValueMax:Xe,ariaValueMin:Xe,ariaValueNow:Xe,ariaValueText:null,role:null}}),_we=Kd({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:$6,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:nd,acceptCharset:An,accessKey:An,action:null,allow:null,allowFullScreen:Nt,allowPaymentRequest:Nt,allowUserMedia:Nt,alt:null,as:null,async:Nt,autoCapitalize:null,autoComplete:An,autoFocus:Nt,autoPlay:Nt,capture:Nt,charSet:null,checked:Nt,cite:null,className:An,cols:Xe,colSpan:null,content:null,contentEditable:ur,controls:Nt,controlsList:An,coords:Xe|nd,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Nt,defer:Nt,dir:null,dirName:null,disabled:Nt,download:R6,draggable:ur,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Nt,formTarget:null,headers:An,height:Xe,hidden:Nt,high:Xe,href:null,hrefLang:null,htmlFor:An,httpEquiv:An,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:Nt,itemId:null,itemProp:An,itemRef:An,itemScope:Nt,itemType:An,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Nt,low:Xe,manifest:null,max:null,maxLength:Xe,media:null,method:null,min:null,minLength:Xe,multiple:Nt,muted:Nt,name:null,nonce:null,noModule:Nt,noValidate:Nt,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:Nt,optimum:Xe,pattern:null,ping:An,placeholder:null,playsInline:Nt,poster:null,preload:null,readOnly:Nt,referrerPolicy:null,rel:An,required:Nt,reversed:Nt,rows:Xe,rowSpan:Xe,sandbox:An,scope:null,scoped:Nt,seamless:Nt,selected:Nt,shape:null,size:Xe,sizes:null,slot:null,span:Xe,spellCheck:ur,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Xe,step:null,style:null,tabIndex:Xe,target:null,title:null,translate:null,type:null,typeMustMatch:Nt,useMap:null,value:ur,width:Xe,wrap:null,align:null,aLink:null,archive:An,axis:null,background:null,bgColor:null,border:Xe,borderColor:null,bottomMargin:Xe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Nt,declare:Nt,event:null,face:null,frame:null,frameBorder:null,hSpace:Xe,leftMargin:Xe,link:null,longDesc:null,lowSrc:null,marginHeight:Xe,marginWidth:Xe,noResize:Nt,noHref:Nt,noShade:Nt,noWrap:Nt,object:null,profile:null,prompt:null,rev:null,rightMargin:Xe,rules:null,scheme:null,scrolling:ur,standby:null,summary:null,text:null,topMargin:Xe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Xe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Nt,disableRemotePlayback:Nt,prefix:null,property:null,results:Xe,security:null,unselectable:null}}),Cwe=Kd({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:D6,properties:{about:Ni,accentHeight:Xe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Xe,amplitude:Xe,arabicForm:null,ascent:Xe,attributeName:null,attributeType:null,azimuth:Xe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Xe,by:null,calcMode:null,capHeight:Xe,className:An,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:Xe,diffuseConstant:Xe,direction:null,display:null,dur:null,divisor:Xe,dominantBaseline:null,download:Nt,dx:null,dy:null,edgeMode:null,editable:null,elevation:Xe,enableBackground:null,end:null,event:null,exponent:Xe,externalResourcesRequired:null,fill:null,fillOpacity:Xe,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:nd,g2:nd,glyphName:nd,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Xe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Xe,horizOriginX:Xe,horizOriginY:Xe,id:null,ideographic:Xe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Xe,k:Xe,k1:Xe,k2:Xe,k3:Xe,k4:Xe,kernelMatrix:Ni,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Xe,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:Xe,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:Xe,overlineThickness:Xe,paintOrder:null,panose1:null,path:null,pathLength:Xe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:An,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Xe,pointsAtY:Xe,pointsAtZ:Xe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ni,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ni,rev:Ni,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ni,requiredFeatures:Ni,requiredFonts:Ni,requiredFormats:Ni,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:Xe,specularExponent:Xe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Xe,strikethroughThickness:Xe,string:null,stroke:null,strokeDashArray:Ni,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Xe,strokeOpacity:Xe,strokeWidth:null,style:null,surfaceScale:Xe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ni,tabIndex:Xe,tableValues:null,target:null,targetX:Xe,targetY:Xe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ni,to:null,transform:null,u1:null,u2:null,underlinePosition:Xe,underlineThickness:Xe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Xe,values:null,vAlphabetic:Xe,vMathematical:Xe,vectorEffect:null,vHanging:Xe,vIdeographic:Xe,version:null,vertAdvY:Xe,vertOriginX:Xe,vertOriginY:Xe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Xe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Ewe=/^data[-\w.:]+$/i,pL=/-[a-z]/g,kwe=/[A-Z]/g;function Twe(e,t){const n=LE(t);let r=t,i=Fo;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Ewe.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(pL,Awe);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!pL.test(o)){let a=o.replace(kwe,Rwe);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=XR}return new i(r,t)}function Rwe(e){return"-"+e.toLowerCase()}function Awe(e){return e.charAt(1).toUpperCase()}const hL={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"},Owe=T6([O6,A6,I6,P6,_we],"html"),Dwe=T6([O6,A6,I6,P6,Cwe],"svg");function $we(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=>{GR(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 Iwe(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 Pwe(e){return e.join(" ").trim()}function Lwe(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}var ZR={exports:{}},gL=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Fwe=/\n/g,Mwe=/^\s*/,Nwe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Bwe=/^:\s*/,zwe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,jwe=/^[;\s]*/,Uwe=/^\s+|\s+$/g,Kwe=`
|
|
209
|
+
`,mL="/",vL="*",Mu="",Wwe="comment",Vwe="declaration",Hwe=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(m){var v=m.match(Fwe);v&&(n+=v.length);var S=m.lastIndexOf(Kwe);r=~S?m.length-S:r+m.length}function o(){var m={line:n,column:r};return function(v){return v.position=new a(m),c(),v}}function a(m){this.start=m,this.end={line:n,column:r},this.source=t.source}a.prototype.content=e;function s(m){var v=new Error(t.source+":"+n+":"+r+": "+m);if(v.reason=m,v.filename=t.source,v.line=n,v.column=r,v.source=e,!t.silent)throw v}function l(m){var v=m.exec(e);if(v){var S=v[0];return i(S),e=e.slice(S.length),v}}function c(){l(Mwe)}function f(m){var v;for(m=m||[];v=h();)v!==!1&&m.push(v);return m}function h(){var m=o();if(!(mL!=e.charAt(0)||vL!=e.charAt(1))){for(var v=2;Mu!=e.charAt(v)&&(vL!=e.charAt(v)||mL!=e.charAt(v+1));)++v;if(v+=2,Mu===e.charAt(v-1))return s("End of comment missing");var S=e.slice(2,v-2);return r+=2,i(S),e=e.slice(v),r+=2,m({type:Wwe,comment:S})}}function p(){var m=o(),v=l(Nwe);if(v){if(h(),!l(Bwe))return s("property missing ':'");var S=l(zwe),x=m({type:Vwe,property:yL(v[0].replace(gL,Mu)),value:S?yL(S[0].replace(gL,Mu)):Mu});return l(jwe),x}}function y(){var m=[];f(m);for(var v;v=p();)v!==!1&&(m.push(v),f(m));return m}return c(),y()};function yL(e){return e?e.replace(Uwe,Mu):Mu}var qwe=Hwe;function L6(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,i=qwe(e),o=typeof t=="function",a,s,l=0,c=i.length;l<c;l++)r=i[l],a=r.property,s=r.value,o?t(a,s,r):s&&(n||(n={}),n[a]=s);return n}ZR.exports=L6;ZR.exports.default=L6;var Gwe=ZR.exports;const Ywe=Ha(Gwe),bL=["http","https","mailto","tel"];function Xwe(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<bL.length;){const o=bL[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 ME={}.hasOwnProperty,Zwe=new Set(["table","thead","tbody","tfoot","tr"]);function F6(e,t){const n=[];let r=-1,i;for(;++r<t.children.length;)i=t.children[r],i.type==="element"?n.push(Jwe(e,i,r,t)):i.type==="text"?(t.type!=="element"||!Zwe.has(t.tagName)||!Iwe(i))&&n.push(i.value):i.type==="raw"&&!e.options.skipHtml&&n.push(i.value);return n}function Jwe(e,t,n,r){const i=e.options,o=i.transformLinkUri===void 0?Xwe:i.transformLinkUri,a=e.schema,s=t.tagName,l={};let c=a,f;if(a.space==="html"&&s==="svg"&&(c=Dwe,e.schema=c),t.properties)for(f in t.properties)ME.call(t.properties,f)&&eSe(l,f,t.properties[f],e);(s==="ol"||s==="ul")&&e.listDepth++;const h=F6(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}},y=i.components&&ME.call(i.components,s)?i.components[s]:s,m=typeof y=="string"||y===pt.Fragment;if(!Aoe.isValidElementType(y))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)),!m&&s==="code"&&r.type==="element"&&r.tagName!=="pre"&&(l.inline=!0),!m&&(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)),!m&&s==="li"&&r.type==="element"){const v=Qwe(t);l.checked=v&&v.properties?!!v.properties.checked:null,l.index=l_(r,t),l.ordered=r.tagName==="ol"}return!m&&(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),m||(l.isHeader=s==="th")),!m&&s==="tr"&&r.type==="element"&&(l.isHeader=r.tagName==="thead"),i.sourcePos&&(l["data-sourcepos"]=rSe(p)),!m&&i.rawSourcePos&&(l.sourcePosition=t.position),!m&&i.includeElementIndex&&(l.index=l_(r,t),l.siblingCount=l_(r)),m||(l.node=t),h.length>0?pt.createElement(y,l,h):pt.createElement(y,l)}function Qwe(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 l_(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 eSe(e,t,n,r){const i=Twe(r.schema,t);let o=n;o==null||o!==o||(Array.isArray(o)&&(o=i.commaSeparated?Lwe(o):Pwe(o)),i.property==="style"&&typeof o=="string"&&(o=tSe(o)),i.space&&i.property?e[ME.call(hL,i.property)?hL[i.property]:i.property]=o:i.attribute&&(e[i.attribute]=o))}function tSe(e){const t={};try{Ywe(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,nSe)]=i}}function nSe(e,t){return t.toUpperCase()}function rSe(e){return[e.start.line,":",e.start.column,"-",e.end.line,":",e.end.column].map(String).join("")}const xL={}.hasOwnProperty,iSe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",vy={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 _x(e){for(const o in vy)if(xL.call(vy,o)&&xL.call(e,o)){const a=vy[o];console.warn(`[react-markdown] Warning: please ${a.to?`use \`${a.to}\` instead of`:"remove"} \`${o}\` (see <${iSe}#${a.id}> for more info)`),delete vy[o]}const t=R1e().use(Rxe).use(e.remarkPlugins||[]).use(ywe,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use($we,e),n=new t6;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=pt.createElement(pt.Fragment,{},F6({options:e,schema:Owe,listDepth:0},r));return e.className&&(i=pt.createElement("div",{className:e.className},i)),i}_x.propTypes={children:lt.string,className:lt.string,allowElement:lt.func,allowedElements:lt.arrayOf(lt.string),disallowedElements:lt.arrayOf(lt.string),unwrapDisallowed:lt.bool,remarkPlugins:lt.arrayOf(lt.oneOfType([lt.object,lt.func,lt.arrayOf(lt.oneOfType([lt.bool,lt.string,lt.object,lt.func,lt.arrayOf(lt.any)]))])),rehypePlugins:lt.arrayOf(lt.oneOfType([lt.object,lt.func,lt.arrayOf(lt.oneOfType([lt.bool,lt.string,lt.object,lt.func,lt.arrayOf(lt.any)]))])),sourcePos:lt.bool,rawSourcePos:lt.bool,skipHtml:lt.bool,includeElementIndex:lt.bool,transformLinkUri:lt.oneOfType([lt.func,lt.bool]),linkTarget:lt.oneOfType([lt.func,lt.string]),transformImageUri:lt.func,components:lt.object};const oSe={tokenize:cSe,partial:!0},M6={tokenize:fSe,partial:!0},N6={tokenize:dSe,partial:!0},rd={tokenize:hSe,partial:!0},B6={tokenize:pSe,partial:!0},z6={tokenize:lSe,previous:K6},j6={tokenize:uSe,previous:QR},Ws={tokenize:sSe,previous:W6},Ya={},aSe={text:Ya};let _u=48;for(;_u<123;)Ya[_u]=Ws,_u++,_u===58?_u=65:_u===91&&(_u=97);Ya[43]=Ws;Ya[45]=Ws;Ya[46]=Ws;Ya[95]=Ws;Ya[72]=[Ws,j6];Ya[104]=[Ws,j6];Ya[87]=[Ws,z6];Ya[119]=[Ws,z6];function sSe(e,t,n){const r=this;let i,o;return a;function a(y){return!wL(y)||!W6(r.previous)||eA(r.events)?n(y):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(y))}function s(y){return wL(y)?(e.consume(y),s):y===64?(e.consume(y),l):n(y)}function l(y){return y===46?e.check(rd,p,c)(y):y===45||y===95?e.check(rd,n,f)(y):ai(y)?(!o&&p1(y)&&(o=!0),e.consume(y),l):p(y)}function c(y){return e.consume(y),i=!0,o=void 0,l}function f(y){return e.consume(y),h}function h(y){return y===46?e.check(rd,n,c)(y):l(y)}function p(y){return i&&!o?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(y)):n(y)}}function lSe(e,t,n){const r=this;return i;function i(a){return a!==87&&a!==119||!K6(r.previous)||eA(r.events)?n(a):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(oSe,e.attempt(M6,e.attempt(N6,o),n),n)(a))}function o(a){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(a)}}function uSe(e,t,n){const r=this;return i;function i(m){return m!==72&&m!==104||!QR(r.previous)||eA(r.events)?n(m):(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),e.consume(m),o)}function o(m){return m===84||m===116?(e.consume(m),a):n(m)}function a(m){return m===84||m===116?(e.consume(m),s):n(m)}function s(m){return m===80||m===112?(e.consume(m),l):n(m)}function l(m){return m===83||m===115?(e.consume(m),c):c(m)}function c(m){return m===58?(e.consume(m),f):n(m)}function f(m){return m===47?(e.consume(m),h):n(m)}function h(m){return m===47?(e.consume(m),p):n(m)}function p(m){return m===null||Fg(m)||bx(m)||xx(m)?n(m):e.attempt(M6,e.attempt(N6,y),n)(m)}function y(m){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(m)}}function cSe(e,t,n){return r;function r(l){return e.consume(l),i}function i(l){return l===87||l===119?(e.consume(l),o):n(l)}function o(l){return l===87||l===119?(e.consume(l),a):n(l)}function a(l){return l===46?(e.consume(l),s):n(l)}function s(l){return l===null||xt(l)?n(l):t(l)}}function fSe(e,t,n){let r,i;return o;function o(l){return l===38?e.check(B6,s,a)(l):l===46||l===95?e.check(rd,s,a)(l):l===null||Fg(l)||bx(l)||l!==45&&xx(l)?s(l):(e.consume(l),o)}function a(l){return l===46?(i=r,r=void 0,e.consume(l),o):(l===95&&(r=!0),e.consume(l),o)}function s(l){return!i&&!r?t(l):n(l)}}function dSe(e,t){let n=0;return r;function r(a){return a===38?e.check(B6,t,i)(a):(a===40&&n++,a===41?e.check(rd,o,i)(a):JR(a)?t(a):U6(a)?e.check(rd,t,i)(a):(e.consume(a),r))}function i(a){return e.consume(a),r}function o(a){return n--,n<0?t(a):i(a)}}function pSe(e,t,n){return r;function r(a){return e.consume(a),i}function i(a){return wo(a)?(e.consume(a),i):a===59?(e.consume(a),o):n(a)}function o(a){return JR(a)?t(a):n(a)}}function hSe(e,t,n){return r;function r(o){return e.consume(o),i}function i(o){return U6(o)?(e.consume(o),i):JR(o)?t(o):n(o)}}function U6(e){return e===33||e===34||e===39||e===41||e===42||e===44||e===46||e===58||e===59||e===60||e===63||e===95||e===126}function JR(e){return e===null||e===60||Qn(e)}function wL(e){return e===43||e===45||e===46||e===95||ai(e)}function K6(e){return e===null||e===40||e===42||e===95||e===126||Qn(e)}function QR(e){return e===null||!wo(e)}function W6(e){return e!==47&&QR(e)}function eA(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 gSe={tokenize:_Se,partial:!0};function mSe(){return{document:{[91]:{tokenize:xSe,continuation:{tokenize:wSe},exit:SSe}},text:{[91]:{tokenize:bSe},[93]:{add:"after",tokenize:vSe,resolveTo:ySe}}}}function vSe(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 c=la(r.sliceSerialize({start:a.end,end:r.now()}));return c.codePointAt(0)!==94||!o.includes(c.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function ySe(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 bSe(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,a;return s;function s(h){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),l}function l(h){return h!==94?n(h):(e.enter("gfmFootnoteCallMarker"),e.consume(h),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(h){if(o>999||h===93&&!a||h===null||h===91||Qn(h))return n(h);if(h===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(la(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(h)}return Qn(h)||(a=!0),o++,e.consume(h),h===92?f:c}function f(h){return h===91||h===92||h===93?(e.consume(h),o++,c):c(h)}}function xSe(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a=0,s;return l;function l(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(m)}function f(m){if(a>999||m===93&&!s||m===null||m===91||Qn(m))return n(m);if(m===93){e.exit("chunkString");const v=e.exit("gfmFootnoteDefinitionLabelString");return o=la(r.sliceSerialize(v)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return Qn(m)||(s=!0),a++,e.consume(m),m===92?h:f}function h(m){return m===91||m===92||m===93?(e.consume(m),a++,f):f(m)}function p(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),i.includes(o)||i.push(o),en(e,y,"gfmFootnoteDefinitionWhitespace")):n(m)}function y(m){return t(m)}}function wSe(e,t,n){return e.check(hm,t,e.attempt(gSe,t,n))}function SSe(e){e.exit("gfmFootnoteDefinition")}function _Se(e,t,n){const r=this;return en(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 CSe(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 c=l;for(;c--;)if(a[c][0]==="exit"&&a[c][1].type==="strikethroughSequenceTemporary"&&a[c][1]._open&&a[l][1].end.offset-a[l][1].start.offset===a[c][1].end.offset-a[c][1].start.offset){a[l][1].type="strikethroughSequence",a[c][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},a[c][1].start),end:Object.assign({},a[l][1].end)},h={type:"strikethroughText",start:Object.assign({},a[c][1].end),end:Object.assign({},a[l][1].start)},p=[["enter",f,s],["enter",a[c][1],s],["exit",a[c][1],s],["enter",h,s]],y=s.parser.constructs.insideSpan.null;y&&qi(p,p.length,0,wx(y,a.slice(c+1,l),s)),qi(p,p.length,0,[["exit",h,s],["enter",a[l][1],s],["exit",a[l][1],s],["exit",f,s]]),qi(a,c-1,l-c+3,p),l=c+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 c=this.previous,f=this.events;let h=0;return p;function p(m){return c===126&&f[f.length-1][1].type!=="characterEscape"?l(m):(a.enter("strikethroughSequenceTemporary"),y(m))}function y(m){const v=h1(c);if(m===126)return h>1?l(m):(a.consume(m),h++,y);if(h<2&&!n)return l(m);const S=a.exit("strikethroughSequenceTemporary"),x=h1(m);return S._open=!x||x===2&&!!v,S._close=!v||v===2&&!!x,s(m)}}}const ESe={flow:{null:{tokenize:TSe,resolve:kSe}}},SL={tokenize:RSe,partial:!0};function kSe(e,t){let n=-1,r,i,o,a,s,l,c;for(;++n<e.length;){const f=e[n][1];if(o&&(f.type==="temporaryTableCellContent"&&(a=a||n,s=n),(f.type==="tableCellDivider"||f.type==="tableRow")&&s)){const h={type:"tableContent",start:e[a][1].start,end:e[s][1].end},p={type:"chunkText",start:h.start,end:h.end,contentType:"text"};e.splice(a,s-a+1,["enter",h,t],["enter",p,t],["exit",p,t],["exit",h,t]),n-=s-a-3,a=void 0,s=void 0}if(e[n][0]==="exit"&&l!==void 0&&l+(c?0:1)<n&&(f.type==="tableCellDivider"||f.type==="tableRow"&&(l+3<n||e[l][1].type!=="whitespace"))){const h={type:i?"tableDelimiter":r?"tableHeader":"tableData",start:e[l][1].start,end:e[n][1].end};e.splice(n+(f.type==="tableCellDivider"?1:0),0,["exit",h,t]),e.splice(l,0,["enter",h,t]),n+=2,l=n+1,c=!0}f.type==="tableRow"&&(o=e[n][0]==="enter",o&&(l=n+1,c=!1)),f.type==="tableDelimiterRow"&&(i=e[n][0]==="enter",i&&(l=n+1,c=!1)),f.type==="tableHead"&&(r=e[n][0]==="enter")}return e}function TSe(e,t,n){const r=this,i=[];let o=0,a,s;return l;function l(L){return e.enter("table")._align=i,e.enter("tableHead"),e.enter("tableRow"),L===124?c(L):(o++,e.enter("temporaryTableCellContent"),p(L))}function c(L){return e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),a=!0,f}function f(L){return L===null||xt(L)?m(L):bn(L)?(e.enter("whitespace"),e.consume(L),h):(a&&(a=void 0,o++),L===124?c(L):(e.enter("temporaryTableCellContent"),p(L)))}function h(L){return bn(L)?(e.consume(L),h):(e.exit("whitespace"),f(L))}function p(L){return L===null||L===124||Qn(L)?(e.exit("temporaryTableCellContent"),f(L)):(e.consume(L),L===92?y:p)}function y(L){return L===92||L===124?(e.consume(L),p):p(L)}function m(L){if(L===null)return n(L);e.exit("tableRow"),e.exit("tableHead");const te=r.interrupt;return r.interrupt=!0,e.attempt({tokenize:Q,partial:!0},function(Z){return r.interrupt=te,e.enter("tableDelimiterRow"),v(Z)},function(Z){return r.interrupt=te,n(Z)})(L)}function v(L){return L===null||xt(L)?E(L):bn(L)?(e.enter("whitespace"),e.consume(L),S):L===45?(e.enter("tableDelimiterFiller"),e.consume(L),s=!0,i.push("none"),x):L===58?(e.enter("tableDelimiterAlignment"),e.consume(L),e.exit("tableDelimiterAlignment"),i.push("left"),w):L===124?(e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),v):n(L)}function S(L){return bn(L)?(e.consume(L),S):(e.exit("whitespace"),v(L))}function x(L){return L===45?(e.consume(L),x):(e.exit("tableDelimiterFiller"),L===58?(e.enter("tableDelimiterAlignment"),e.consume(L),e.exit("tableDelimiterAlignment"),i[i.length-1]=i[i.length-1]==="left"?"center":"right",C):v(L))}function w(L){return L===45?(e.enter("tableDelimiterFiller"),e.consume(L),s=!0,x):n(L)}function C(L){return L===null||xt(L)?E(L):bn(L)?(e.enter("whitespace"),e.consume(L),S):L===124?(e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),v):n(L)}function E(L){return e.exit("tableDelimiterRow"),!s||o!==i.length?n(L):L===null?O(L):e.check(SL,O,e.attempt({tokenize:Q,partial:!0},en(e,$,"linePrefix",4),O))(L)}function O(L){return e.exit("table"),t(L)}function $(L){return e.enter("tableBody"),I(L)}function I(L){return e.enter("tableRow"),L===124?W(L):(e.enter("temporaryTableCellContent"),U(L))}function W(L){return e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),H}function H(L){return L===null||xt(L)?se(L):bn(L)?(e.enter("whitespace"),e.consume(L),j):L===124?W(L):(e.enter("temporaryTableCellContent"),U(L))}function j(L){return bn(L)?(e.consume(L),j):(e.exit("whitespace"),H(L))}function U(L){return L===null||L===124||Qn(L)?(e.exit("temporaryTableCellContent"),H(L)):(e.consume(L),L===92?le:U)}function le(L){return L===92||L===124?(e.consume(L),U):U(L)}function se(L){return e.exit("tableRow"),L===null?ie(L):e.check(SL,ie,e.attempt({tokenize:Q,partial:!0},en(e,I,"linePrefix",4),ie))(L)}function ie(L){return e.exit("tableBody"),O(L)}function Q(L,te,Z){return ee;function ee(M){return L.enter("lineEnding"),L.consume(M),L.exit("lineEnding"),en(L,Y,"linePrefix")}function Y(M){if(r.parser.lazy[r.now().line]||M===null||xt(M))return Z(M);const A=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&A&&A[1].type==="linePrefix"&&A[2].sliceSerialize(A[1],!0).length>=4?Z(M):(r._gfmTableDynamicInterruptHack=!0,L.check(r.parser.constructs.flow,function(ne){return r._gfmTableDynamicInterruptHack=!1,Z(ne)},function(ne){return r._gfmTableDynamicInterruptHack=!1,te(ne)})(M))}}}function RSe(e,t,n){let r=0;return i;function i(a){return e.enter("check"),e.consume(a),o}function o(a){return a===-1||a===32?(e.consume(a),r++,r===4?t:o):a===null||Qn(a)?t(a):n(a)}}const ASe={tokenize:DSe},OSe={text:{[91]:ASe}};function DSe(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 Qn(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 xt(l)?t(l):bn(l)?e.check({tokenize:$Se},t,n)(l):n(l)}}function $Se(e,t,n){return en(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function ISe(e){return a6([aSe,mSe(),CSe(e),ESe,OSe])}function _L(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 PSe(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const LSe={}.hasOwnProperty,FSe=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=qR(i.ignore||[]),s=MSe(o);let l=-1;for(;++l<s.length;)C6(e,"text",c);return e;function c(h,p){let y=-1,m;for(;++y<p.length;){const v=p[y];if(a(v,m?m.children.indexOf(v):void 0,m))return;m=v}if(m)return f(h,p)}function f(h,p){const y=p[p.length-1],m=s[l][0],v=s[l][1];let S=0;const x=y.children.indexOf(h);let w=!1,C=[];m.lastIndex=0;let E=m.exec(h.value);for(;E;){const O=E.index,$={index:E.index,input:E.input,stack:[...p,h]};let I=v(...E,$);if(typeof I=="string"&&(I=I.length>0?{type:"text",value:I}:void 0),I!==!1&&(S!==O&&C.push({type:"text",value:h.value.slice(S,O)}),Array.isArray(I)?C.push(...I):I&&C.push(I),S=O+E[0].length,w=!0),!m.global)break;E=m.exec(h.value)}return w?(S<h.value.length&&C.push({type:"text",value:h.value.slice(S)}),y.children.splice(x,1,...C)):C=[h],x+C.length}};function MSe(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([CL(e[n][0]),EL(e[n][1])])}else{let n;for(n in e)LSe.call(e,n)&&t.push([CL(n),EL(e[n])])}return t}function CL(e){return typeof e=="string"?new RegExp(PSe(e),"g"):e}function EL(e){return typeof e=="function"?e:()=>e}const u_="phrasing",c_=["autolink","link","image","label"],NSe={transforms:[VSe],enter:{literalAutolink:zSe,literalAutolinkEmail:f_,literalAutolinkHttp:f_,literalAutolinkWww:f_},exit:{literalAutolink:WSe,literalAutolinkEmail:KSe,literalAutolinkHttp:jSe,literalAutolinkWww:USe}},BSe={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:u_,notInConstruct:c_},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:u_,notInConstruct:c_},{character:":",before:"[ps]",after:"\\/",inConstruct:u_,notInConstruct:c_}]};function zSe(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function f_(e){this.config.enter.autolinkProtocol.call(this,e)}function jSe(e){this.config.exit.autolinkProtocol.call(this,e)}function USe(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}function KSe(e){this.config.exit.autolinkEmail.call(this,e)}function WSe(e){this.exit(e)}function VSe(e){FSe(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,HSe],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,qSe]],{ignore:["link","linkReference"]})}function HSe(e,t,n,r,i){let o="";if(!V6(i)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!GSe(n)))return!1;const a=YSe(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 qSe(e,t,n,r){return!V6(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function GSe(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 YSe(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=_L(e,"(");let o=_L(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 V6(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||bx(n)||xx(n))&&(!t||n!==47)}function H6(e){return e.label||!e.identifier?e.label||"":v6(e.identifier)}function XSe(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:`
|
|
210
|
+
`,after:`
|
|
211
|
+
`,...o.current()}))),l.type!=="list"&&(t.bulletLastUsed=void 0),s<i.length-1&&a.push(o.move(ZSe(l,i[s+1],e,t)))}return r.pop(),a.join("")}function ZSe(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`
|
|
212
|
+
`.repeat(1+o);if(o===!1)return`
|
|
213
|
+
|
|
214
|
+
<!---->
|
|
215
|
+
|
|
216
|
+
`}return`
|
|
217
|
+
|
|
218
|
+
`}const JSe=/\r?\n|\r/g;function QSe(e,t){const n=[];let r=0,i=0,o;for(;o=JSe.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 q6(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 e_e(e,t){return kL(e,t.inConstruct,!0)&&!kL(e,t.notInConstruct,!1)}function kL(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 G6(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(!e_e(e.stack,f))continue;const h=q6(f);let p;for(;p=h.exec(r);){const y="before"in f||!!f.atBreak,m="after"in f,v=p.index+(y?p[1].length:0);i.includes(v)?(a[v].before&&!y&&(a[v].before=!1),a[v].after&&!m&&(a[v].after=!1)):(i.push(v),a[v]={before:y,after:m})}}i.sort(t_e);let l=n.before?n.before.length:0;const c=r.length-(n.after?n.after.length:0);for(s=-1;++s<i.length;){const f=i[s];f<l||f>=c||f+1<c&&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(TL(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(TL(r.slice(l,c),n.after)),o.join("")}function t_e(e,t){return e-t}function TL(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 Cx(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(c){r+=c}function l(c){const f=c||"",h=f.split(/\r?\n|\r/g),p=h[h.length-1];return i+=h.length-1,o=h.length===1?o+p.length:1+p.length+r,f}}Y6.peek=d_e;function n_e(){return{enter:{gfmFootnoteDefinition:i_e,gfmFootnoteDefinitionLabelString:o_e,gfmFootnoteCall:l_e,gfmFootnoteCallString:u_e},exit:{gfmFootnoteDefinition:s_e,gfmFootnoteDefinitionLabelString:a_e,gfmFootnoteCall:f_e,gfmFootnoteCallString:c_e}}}function r_e(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:p_e,footnoteReference:Y6}}}function i_e(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function o_e(){this.buffer()}function a_e(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=la(this.sliceSerialize(e)).toLowerCase()}function s_e(e){this.exit(e)}function l_e(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function u_e(){this.buffer()}function c_e(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=la(this.sliceSerialize(e)).toLowerCase()}function f_e(e){this.exit(e)}function Y6(e,t,n,r){const i=Cx(r);let o=i.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference");return o+=i.move(G6(n,H6(e),{...i.current(),before:o,after:"]"})),s(),a(),o+=i.move("]"),o}function d_e(){return"["}function p_e(e,t,n,r){const i=Cx(r);let o=i.move("[^");const a=n.enter("footnoteDefinition"),s=n.enter("label");return o+=i.move(G6(n,H6(e),{...i.current(),before:o,after:"]"})),s(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(QSe(XSe(e,n,i.current()),h_e)),a(),o}function h_e(e,t,n){return t===0?e:(n?"":" ")+e}function X6(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 c=i[a];let f;if(r[r.length-1]=a,a+1<i.length){let h=t.handle.handlers[i[a+1].type];h&&h.peek&&(h=h.peek),f=h?h(i[a+1],e,t,{before:"",after:"",...l.current()}).charAt(0):""}else f=n.after;o.length>0&&(s==="\r"||s===`
|
|
219
|
+
`)&&c.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(c,e,t,{...l.current(),before:s,after:f}))),s=o[o.length-1].slice(-1)}return r.pop(),o.join("")}const g_e=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Z6.peek=x_e;const m_e={canContainEols:["delete"],enter:{strikethrough:y_e},exit:{strikethrough:b_e}},v_e={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:g_e}],handlers:{delete:Z6}};function y_e(e){this.enter({type:"delete",children:[]},e)}function b_e(e){this.exit(e)}function Z6(e,t,n,r){const i=Cx(r),o=n.enter("strikethrough");let a=i.move("~~");return a+=X6(e,n,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function x_e(){return"~"}J6.peek=w_e;function J6(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=q6(a);let l;if(a.atBreak)for(;l=s.exec(r);){let c=l.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(l.index+1)}}return i+r+i}function w_e(){return"`"}function S_e(e,t={}){const n=(t.align||[]).concat(),r=t.stringLength||C_e,i=[],o=[],a=[],s=[];let l=0,c=-1;for(;++c<e.length;){const m=[],v=[];let S=-1;for(e[c].length>l&&(l=e[c].length);++S<e[c].length;){const x=__e(e[c][S]);if(t.alignDelimiters!==!1){const w=r(x);v[S]=w,(s[S]===void 0||w>s[S])&&(s[S]=w)}m.push(x)}o[c]=m,a[c]=v}let f=-1;if(typeof n=="object"&&"length"in n)for(;++f<l;)i[f]=RL(n[f]);else{const m=RL(n);for(;++f<l;)i[f]=m}f=-1;const h=[],p=[];for(;++f<l;){const m=i[f];let v="",S="";m===99?(v=":",S=":"):m===108?v=":":m===114&&(S=":");let x=t.alignDelimiters===!1?1:Math.max(1,s[f]-v.length-S.length);const w=v+"-".repeat(x)+S;t.alignDelimiters!==!1&&(x=v.length+x+S.length,x>s[f]&&(s[f]=x),p[f]=x),h[f]=w}o.splice(1,0,h),a.splice(1,0,p),c=-1;const y=[];for(;++c<o.length;){const m=o[c],v=a[c];f=-1;const S=[];for(;++f<l;){const x=m[f]||"";let w="",C="";if(t.alignDelimiters!==!1){const E=s[f]-(v[f]||0),O=i[f];O===114?w=" ".repeat(E):O===99?E%2?(w=" ".repeat(E/2+.5),C=" ".repeat(E/2-.5)):(w=" ".repeat(E/2),C=w):C=" ".repeat(E)}t.delimiterStart!==!1&&!f&&S.push("|"),t.padding!==!1&&!(t.alignDelimiters===!1&&x==="")&&(t.delimiterStart!==!1||f)&&S.push(" "),t.alignDelimiters!==!1&&S.push(w),S.push(x),t.alignDelimiters!==!1&&S.push(C),t.padding!==!1&&S.push(" "),(t.delimiterEnd!==!1||f!==l-1)&&S.push("|")}y.push(t.delimiterEnd===!1?S.join("").replace(/ +$/,""):S.join(""))}return y.join(`
|
|
220
|
+
`)}function __e(e){return e==null?"":String(e)}function C_e(e){return e.length}function RL(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 E_e={enter:{table:k_e,tableData:AL,tableHeader:AL,tableRow:R_e},exit:{codeText:A_e,table:T_e,tableData:d_,tableHeader:d_,tableRow:d_}};function k_e(e){const t=e._align;this.enter({type:"table",align:t.map(n=>n==="none"?null:n),children:[]},e),this.setData("inTable",!0)}function T_e(e){this.exit(e),this.setData("inTable")}function R_e(e){this.enter({type:"tableRow",children:[]},e)}function d_(e){this.exit(e)}function AL(e){this.enter({type:"tableCell",children:[]},e)}function A_e(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,O_e));const n=this.stack[this.stack.length-1];n.value=t,this.exit(e)}function O_e(e,t){return t==="|"?t:e}function D_e(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
221
|
+
`,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(y,m,v,S){return c(f(y,v,S),y.align)}function s(y,m,v,S){const x=h(y,v,S),w=c([x]);return w.slice(0,w.indexOf(`
|
|
222
|
+
`))}function l(y,m,v,S){const x=v.enter("tableCell"),w=v.enter("phrasing"),C=X6(y,v,{...S,before:o,after:o});return w(),x(),C}function c(y,m){return S_e(y,{align:m,alignDelimiters:r,padding:n,stringLength:i})}function f(y,m,v){const S=y.children;let x=-1;const w=[],C=m.enter("table");for(;++x<S.length;)w[x]=h(S[x],m,v);return C(),w}function h(y,m,v){const S=y.children;let x=-1;const w=[],C=m.enter("tableRow");for(;++x<S.length;)w[x]=l(S[x],y,m,v);return C(),w}function p(y,m,v){let S=J6(y,m,v);return v.stack.includes("tableCell")&&(S=S.replace(/\|/g,"\\$&")),S}}function $_e(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 I_e(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 P_e(e,t,n,r){const i=I_e(n);let o=n.bulletCurrent||$_e(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"),c=n.indentLines(n.containerFlow(e,s.current()),f);return l(),c;function f(h,p,y){return p?(y?"":" ".repeat(a))+h:(y?o:o+" ".repeat(a-o.length))+h}}const L_e={exit:{taskListCheckValueChecked:OL,taskListCheckValueUnchecked:OL,paragraph:M_e}},F_e={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:N_e}};function OL(e){const t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function M_e(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 N_e(e,t,n,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",a="["+(e.checked?"x":" ")+"] ",s=Cx(r);o&&s.move(a);let l=P_e(e,t,n,{...r,...s.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),l;function c(f){return f+a}}function B_e(){return[NSe,n_e(),m_e,E_e,L_e]}function z_e(e){return{extensions:[BSe,r_e(),v_e,D_e(e),F_e]}}function tA(e={}){const t=this.data();n("micromarkExtensions",ISe(e)),n("fromMarkdownExtensions",B_e()),n("toMarkdownExtensions",z_e(e));function n(r,i){(t[r]?t[r]:t[r]=[]).push(i)}}const mm=Tr({key:"Elements",default:[]}),nA=Tr({key:"SideView",default:void 0});function j_e({element:e}){const t=fr(nA);if(e.display==="inline")return k.jsx("span",{style:{fontWeight:700},children:e.name});let r=`/element/${e.id||e.tempId}`;return e.conversationId&&(r+=`?conversation=${e.conversationId}`),k.jsx(IR,{className:"element-link",onClick:()=>{e.display==="side"&&t(e)},component:fm,to:e.display==="page"?r:"#",children:e.name})}function U_e(e,t){if(e==null)return{};var n=et(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 NE(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 K_e(e){if(Array.isArray(e))return NE(e)}function W_e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function V_e(e,t){if(e){if(typeof e=="string")return NE(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 NE(e,t)}}function H_e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
223
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function q_e(e){return K_e(e)||W_e(e)||V_e(e)||H_e()}function Td(e){"@babel/helpers - typeof";return Td=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},Td(e)}function G_e(e,t){if(Td(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Td(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Q6(e){var t=G_e(e,"string");return Td(t)==="symbol"?t:String(t)}function Ss(e,t,n){return t=Q6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DL(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 zf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?DL(Object(n),!0).forEach(function(r){Ss(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Y_e(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 p_={};function X_e(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return p_[t]||(p_[t]=Y_e(e)),p_[t]}function Z_e(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=X_e(r);return i.reduce(function(o,a){return zf(zf({},o),n[a])},t)}function $L(e){return e.join(" ")}function J_e(e,t){var n=0;return function(r){return n+=1,r.map(function(i,o){return eU({node:i,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(o)})})}}function eU(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,c=t.tagName,f=t.value;if(l==="text")return f;if(c){var h=J_e(n,o),p;if(!o)p=zf(zf({},s),{},{className:$L(s.className)});else{var y=Object.keys(n).reduce(function(x,w){return w.split(".").forEach(function(C){x.includes(C)||x.push(C)}),x},[]),m=s.className&&s.className.includes("token")?["token"]:[],v=s.className&&m.concat(s.className.filter(function(x){return!y.includes(x)}));p=zf(zf({},s),{},{className:$L(v)||void 0,style:Z_e(s.className,Object.assign({},s.style,i),n)})}var S=h(t.children);return pt.createElement(c,z({key:a},p),S)}}const Q_e=function(e,t){var n=e.listLanguages();return n.indexOf(t)!==-1};var eCe=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function IL(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 Da(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?IL(Object(n),!0).forEach(function(r){Ss(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var tCe=/\n/g;function nCe(e){return e.match(tCe)}function rCe(e){var t=e.lines,n=e.startingLineNumber,r=e.style;return t.map(function(i,o){var a=o+n;return pt.createElement("span",{key:"line-".concat(o),className:"react-syntax-highlighter-line-number",style:typeof r=="function"?r(a):r},"".concat(a,`
|
|
224
|
+
`))})}function iCe(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 pt.createElement("code",{style:Object.assign({},n,i)},rCe({lines:t.replace(/\n$/,"").split(`
|
|
225
|
+
`),style:a,startingLineNumber:s}))}function oCe(e){return"".concat(e.toString().length,".25em")}function tU(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 nU(e,t,n){var r={display:"inline-block",minWidth:oCe(n),paddingRight:"1em",textAlign:"right",userSelect:"none"},i=typeof e=="function"?e(t):e,o=Da(Da({},r),i);return o}function f0(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,c=l===void 0?[]:l,f=e.showLineNumbers,h=e.wrapLongLines,p=typeof s=="function"?s(n):s;if(p.className=c,n&&o){var y=nU(r,n,i);t.unshift(tU(n,y))}return h&f&&(p.style=Da(Da({},p.style),{},{display:"flex"})),{type:"element",tagName:"span",properties:p,children:t}}function rU(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(f0({children:[i],className:q_e(new Set(t))}));else if(i.children){var o=t.concat(i.properties.className);rU(i.children,o).forEach(function(a){return n.push(a)})}}return n}function aCe(e,t,n,r,i,o,a,s,l){var c,f=rU(e.value),h=[],p=-1,y=0;function m(O,$){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return f0({children:O,lineNumber:$,lineNumberStyle:s,largestLineNumber:a,showInlineLineNumbers:i,lineProps:n,className:I,showLineNumbers:r,wrapLongLines:l})}function v(O,$){if(r&&$&&i){var I=nU(s,$,a);O.unshift(tU($,I))}return O}function S(O,$){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||I.length>0?m(O,$,I):v(O,$)}for(var x=function(){var $=f[y],I=$.children[0].value,W=nCe(I);if(W){var H=I.split(`
|
|
226
|
+
`);H.forEach(function(j,U){var le=r&&h.length+o,se={type:"text",value:"".concat(j,`
|
|
227
|
+
`)};if(U===0){var ie=f.slice(p+1,y).concat(f0({children:[se],className:$.properties.className})),Q=S(ie,le);h.push(Q)}else if(U===H.length-1){var L=f[y+1]&&f[y+1].children&&f[y+1].children[0],te={type:"text",value:"".concat(j)};if(L){var Z=f0({children:[te],className:$.properties.className});f.splice(y+1,0,Z)}else{var ee=[te],Y=S(ee,le,$.properties.className);h.push(Y)}}else{var M=[se],A=S(M,le,$.properties.className);h.push(A)}}),p=y}y++};y<f.length;)x();if(p!==f.length-1){var w=f.slice(p+1,f.length);if(w&&w.length){var C=r&&h.length+o,E=S(w,C);h.push(E)}}return t?h:(c=[]).concat.apply(c,h)}function sCe(e){var t=e.rows,n=e.stylesheet,r=e.useInlineStyles;return t.map(function(i,o){return eU({node:i,stylesheet:n,useInlineStyles:r,key:"code-segement".concat(o)})})}function iU(e){return e&&typeof e.highlightAuto<"u"}function lCe(e){var t=e.astGenerator,n=e.language,r=e.code,i=e.defaultCodeValue;if(iU(t)){var o=Q_e(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 uCe(e,t){return function(r){var i=r.language,o=r.children,a=r.style,s=a===void 0?t:a,l=r.customStyle,c=l===void 0?{}:l,f=r.codeTagProps,h=f===void 0?{className:i?"language-".concat(i):void 0,style:Da(Da({},s['code[class*="language-"]']),s['code[class*="language-'.concat(i,'"]')])}:f,p=r.useInlineStyles,y=p===void 0?!0:p,m=r.showLineNumbers,v=m===void 0?!1:m,S=r.showInlineLineNumbers,x=S===void 0?!0:S,w=r.startingLineNumber,C=w===void 0?1:w,E=r.lineNumberContainerStyle,O=r.lineNumberStyle,$=O===void 0?{}:O,I=r.wrapLines,W=r.wrapLongLines,H=W===void 0?!1:W,j=r.lineProps,U=j===void 0?{}:j,le=r.renderer,se=r.PreTag,ie=se===void 0?"pre":se,Q=r.CodeTag,L=Q===void 0?"code":Q,te=r.code,Z=te===void 0?(Array.isArray(o)?o[0]:o)||"":te,ee=r.astGenerator,Y=U_e(r,eCe);ee=ee||e;var M=v?pt.createElement(iCe,{containerStyle:E,codeStyle:h.style||{},numberStyle:$,startingLineNumber:C,codeString:Z}):null,A=s.hljs||s['pre[class*="language-"]']||{backgroundColor:"#fff"},ne=iU(ee)?"hljs":"prismjs",oe=y?Object.assign({},Y,{style:Object.assign({},A,c)}):Object.assign({},Y,{className:Y.className?"".concat(ne," ").concat(Y.className):ne,style:Object.assign({},c)});if(H?h.style=Da(Da({},h.style),{},{whiteSpace:"pre-wrap"}):h.style=Da(Da({},h.style),{},{whiteSpace:"pre"}),!ee)return pt.createElement(ie,oe,M,pt.createElement(L,h,Z));(I===void 0&&le||H)&&(I=!0),le=le||sCe;var ce=[{type:"text",value:Z}],re=lCe({astGenerator:ee,language:i,code:Z,defaultCodeValue:ce});re.language===null&&(re.value=ce);var Se=re.value.length+C,ke=aCe(re,I,U,v,x,C,Se,$,H);return pt.createElement(ie,oe,pt.createElement(L,h,!x&&M,le({rows:ke,stylesheet:s,useInlineStyles:y})))}}const cCe="modulepreload",fCe=function(e){return"/"+e},PL={},dCe=function(t,n,r){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=fCe(o),o in PL)return;PL[o]=!0;const a=o.endsWith(".css"),s=a?'[rel="stylesheet"]':"";if(!!r)for(let f=i.length-1;f>=0;f--){const h=i[f];if(h.href===o&&(!a||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${s}`))return;const c=document.createElement("link");if(c.rel=a?"stylesheet":cCe,a||(c.as="script",c.crossOrigin=""),c.href=o,document.head.appendChild(c),a)return new Promise((f,h)=>{c.addEventListener("load",f),c.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t())};function LL(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(c){n(c);return}s.done?t(l):Promise.resolve(l).then(r,i)}function pCe(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(l){LL(o,r,i,a,s,"next",l)}function s(l){LL(o,r,i,a,s,"throw",l)}a(void 0)})}}function hCe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FL(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,Q6(r.key),r)}}function gCe(e,t,n){return t&&FL(e.prototype,t),n&&FL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function mCe(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&&o1(e,t)}function vCe(e,t){if(t&&(Td(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return s1(e)}function m1(e){return m1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},m1(e)}var oU={exports:{}},aU={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})(aU);var yCe=aU.exports;(function(e){var t=yCe.default;function n(){e.exports=n=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var r={},i=Object.prototype,o=i.hasOwnProperty,a=Object.defineProperty||function(Q,L,te){Q[L]=te.value},s=typeof Symbol=="function"?Symbol:{},l=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",f=s.toStringTag||"@@toStringTag";function h(Q,L,te){return Object.defineProperty(Q,L,{value:te,enumerable:!0,configurable:!0,writable:!0}),Q[L]}try{h({},"")}catch{h=function(te,Z,ee){return te[Z]=ee}}function p(Q,L,te,Z){var ee=L&&L.prototype instanceof v?L:v,Y=Object.create(ee.prototype),M=new le(Z||[]);return a(Y,"_invoke",{value:W(Q,te,M)}),Y}function y(Q,L,te){try{return{type:"normal",arg:Q.call(L,te)}}catch(Z){return{type:"throw",arg:Z}}}r.wrap=p;var m={};function v(){}function S(){}function x(){}var w={};h(w,l,function(){return this});var C=Object.getPrototypeOf,E=C&&C(C(se([])));E&&E!==i&&o.call(E,l)&&(w=E);var O=x.prototype=v.prototype=Object.create(w);function $(Q){["next","throw","return"].forEach(function(L){h(Q,L,function(te){return this._invoke(L,te)})})}function I(Q,L){function te(ee,Y,M,A){var ne=y(Q[ee],Q,Y);if(ne.type!=="throw"){var oe=ne.arg,ce=oe.value;return ce&&t(ce)=="object"&&o.call(ce,"__await")?L.resolve(ce.__await).then(function(re){te("next",re,M,A)},function(re){te("throw",re,M,A)}):L.resolve(ce).then(function(re){oe.value=re,M(oe)},function(re){return te("throw",re,M,A)})}A(ne.arg)}var Z;a(this,"_invoke",{value:function(Y,M){function A(){return new L(function(ne,oe){te(Y,M,ne,oe)})}return Z=Z?Z.then(A,A):A()}})}function W(Q,L,te){var Z="suspendedStart";return function(ee,Y){if(Z==="executing")throw new Error("Generator is already running");if(Z==="completed"){if(ee==="throw")throw Y;return ie()}for(te.method=ee,te.arg=Y;;){var M=te.delegate;if(M){var A=H(M,te);if(A){if(A===m)continue;return A}}if(te.method==="next")te.sent=te._sent=te.arg;else if(te.method==="throw"){if(Z==="suspendedStart")throw Z="completed",te.arg;te.dispatchException(te.arg)}else te.method==="return"&&te.abrupt("return",te.arg);Z="executing";var ne=y(Q,L,te);if(ne.type==="normal"){if(Z=te.done?"completed":"suspendedYield",ne.arg===m)continue;return{value:ne.arg,done:te.done}}ne.type==="throw"&&(Z="completed",te.method="throw",te.arg=ne.arg)}}}function H(Q,L){var te=L.method,Z=Q.iterator[te];if(Z===void 0)return L.delegate=null,te==="throw"&&Q.iterator.return&&(L.method="return",L.arg=void 0,H(Q,L),L.method==="throw")||te!=="return"&&(L.method="throw",L.arg=new TypeError("The iterator does not provide a '"+te+"' method")),m;var ee=y(Z,Q.iterator,L.arg);if(ee.type==="throw")return L.method="throw",L.arg=ee.arg,L.delegate=null,m;var Y=ee.arg;return Y?Y.done?(L[Q.resultName]=Y.value,L.next=Q.nextLoc,L.method!=="return"&&(L.method="next",L.arg=void 0),L.delegate=null,m):Y:(L.method="throw",L.arg=new TypeError("iterator result is not an object"),L.delegate=null,m)}function j(Q){var L={tryLoc:Q[0]};1 in Q&&(L.catchLoc=Q[1]),2 in Q&&(L.finallyLoc=Q[2],L.afterLoc=Q[3]),this.tryEntries.push(L)}function U(Q){var L=Q.completion||{};L.type="normal",delete L.arg,Q.completion=L}function le(Q){this.tryEntries=[{tryLoc:"root"}],Q.forEach(j,this),this.reset(!0)}function se(Q){if(Q){var L=Q[l];if(L)return L.call(Q);if(typeof Q.next=="function")return Q;if(!isNaN(Q.length)){var te=-1,Z=function ee(){for(;++te<Q.length;)if(o.call(Q,te))return ee.value=Q[te],ee.done=!1,ee;return ee.value=void 0,ee.done=!0,ee};return Z.next=Z}}return{next:ie}}function ie(){return{value:void 0,done:!0}}return S.prototype=x,a(O,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:S,configurable:!0}),S.displayName=h(x,f,"GeneratorFunction"),r.isGeneratorFunction=function(Q){var L=typeof Q=="function"&&Q.constructor;return!!L&&(L===S||(L.displayName||L.name)==="GeneratorFunction")},r.mark=function(Q){return Object.setPrototypeOf?Object.setPrototypeOf(Q,x):(Q.__proto__=x,h(Q,f,"GeneratorFunction")),Q.prototype=Object.create(O),Q},r.awrap=function(Q){return{__await:Q}},$(I.prototype),h(I.prototype,c,function(){return this}),r.AsyncIterator=I,r.async=function(Q,L,te,Z,ee){ee===void 0&&(ee=Promise);var Y=new I(p(Q,L,te,Z),ee);return r.isGeneratorFunction(L)?Y:Y.next().then(function(M){return M.done?M.value:Y.next()})},$(O),h(O,f,"Generator"),h(O,l,function(){return this}),h(O,"toString",function(){return"[object Generator]"}),r.keys=function(Q){var L=Object(Q),te=[];for(var Z in L)te.push(Z);return te.reverse(),function ee(){for(;te.length;){var Y=te.pop();if(Y in L)return ee.value=Y,ee.done=!1,ee}return ee.done=!0,ee}},r.values=se,le.prototype={constructor:le,reset:function(L){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(U),!L)for(var te in this)te.charAt(0)==="t"&&o.call(this,te)&&!isNaN(+te.slice(1))&&(this[te]=void 0)},stop:function(){this.done=!0;var L=this.tryEntries[0].completion;if(L.type==="throw")throw L.arg;return this.rval},dispatchException:function(L){if(this.done)throw L;var te=this;function Z(oe,ce){return M.type="throw",M.arg=L,te.next=oe,ce&&(te.method="next",te.arg=void 0),!!ce}for(var ee=this.tryEntries.length-1;ee>=0;--ee){var Y=this.tryEntries[ee],M=Y.completion;if(Y.tryLoc==="root")return Z("end");if(Y.tryLoc<=this.prev){var A=o.call(Y,"catchLoc"),ne=o.call(Y,"finallyLoc");if(A&&ne){if(this.prev<Y.catchLoc)return Z(Y.catchLoc,!0);if(this.prev<Y.finallyLoc)return Z(Y.finallyLoc)}else if(A){if(this.prev<Y.catchLoc)return Z(Y.catchLoc,!0)}else{if(!ne)throw new Error("try statement without catch or finally");if(this.prev<Y.finallyLoc)return Z(Y.finallyLoc)}}}},abrupt:function(L,te){for(var Z=this.tryEntries.length-1;Z>=0;--Z){var ee=this.tryEntries[Z];if(ee.tryLoc<=this.prev&&o.call(ee,"finallyLoc")&&this.prev<ee.finallyLoc){var Y=ee;break}}Y&&(L==="break"||L==="continue")&&Y.tryLoc<=te&&te<=Y.finallyLoc&&(Y=null);var M=Y?Y.completion:{};return M.type=L,M.arg=te,Y?(this.method="next",this.next=Y.finallyLoc,m):this.complete(M)},complete:function(L,te){if(L.type==="throw")throw L.arg;return L.type==="break"||L.type==="continue"?this.next=L.arg:L.type==="return"?(this.rval=this.arg=L.arg,this.method="return",this.next="end"):L.type==="normal"&&te&&(this.next=te),m},finish:function(L){for(var te=this.tryEntries.length-1;te>=0;--te){var Z=this.tryEntries[te];if(Z.finallyLoc===L)return this.complete(Z.completion,Z.afterLoc),U(Z),m}},catch:function(L){for(var te=this.tryEntries.length-1;te>=0;--te){var Z=this.tryEntries[te];if(Z.tryLoc===L){var ee=Z.completion;if(ee.type==="throw"){var Y=ee.arg;U(Z)}return Y}}throw new Error("illegal catch attempt")},delegateYield:function(L,te,Z){return this.delegate={iterator:se(L),resultName:te,nextLoc:Z},this.method==="next"&&(this.arg=void 0),m}},r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(oU);var bCe=oU.exports,d0=bCe(),xCe=d0;try{regeneratorRuntime=d0}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=d0:Function("r","regeneratorRuntime = r")(d0)}const ML=Ha(xCe);function wCe(e){var t=SCe();return function(){var r=m1(e),i;if(t){var o=m1(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return vCe(this,i)}}function SCe(){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 _Ce=function(e){var t=e.loader,n=e.isLanguageRegistered,r=e.registerLanguage,i=e.languageLoaders,o=e.noAsyncLoadingLanguages,a=function(s){mCe(c,s);var l=wCe(c);function c(){return hCe(this,c),l.apply(this,arguments)}return gCe(c,[{key:"componentDidUpdate",value:function(){!c.isRegistered(this.props.language)&&i&&this.loadLanguage()}},{key:"componentDidMount",value:function(){var h=this;c.astGeneratorPromise||c.loadAstGenerator(),c.astGenerator||c.astGeneratorPromise.then(function(){h.forceUpdate()}),!c.isRegistered(this.props.language)&&i&&this.loadLanguage()}},{key:"loadLanguage",value:function(){var h=this,p=this.props.language;p!=="text"&&c.loadLanguage(p).then(function(){return h.forceUpdate()}).catch(function(){})}},{key:"normalizeLanguage",value:function(h){return c.isSupportedLanguage(h)?h:"text"}},{key:"render",value:function(){return pt.createElement(c.highlightInstance,z({},this.props,{language:this.normalizeLanguage(this.props.language),astGenerator:c.astGenerator}))}}],[{key:"preload",value:function(){return c.loadAstGenerator()}},{key:"loadLanguage",value:function(){var f=pCe(ML.mark(function p(y){var m;return ML.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:if(m=i[y],typeof m!="function"){S.next=5;break}return S.abrupt("return",m(c.registerLanguage));case 5:throw new Error("Language ".concat(y," not supported"));case 6:case"end":return S.stop()}},p)}));function h(p){return f.apply(this,arguments)}return h}()},{key:"isSupportedLanguage",value:function(h){return c.isRegistered(h)||typeof i[h]=="function"}},{key:"loadAstGenerator",value:function(){return c.astGeneratorPromise=t().then(function(h){c.astGenerator=h,r&&c.languages.forEach(function(p,y){return r(h,y,p)})}),c.astGeneratorPromise}}]),c}(pt.PureComponent);return Ss(a,"astGenerator",null),Ss(a,"highlightInstance",uCe(null,{})),Ss(a,"astGeneratorPromise",null),Ss(a,"languages",new Map),Ss(a,"supportedLanguages",e.supportedLanguages||Object.keys(i||{})),Ss(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)}),Ss(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},CCe=["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"],ECe=_Ce({loader:function(){return dCe(()=>import("./index-995e21ad.js").then(t=>t.i),[]).then(function(t){return t.default||t})},noAsyncLoadingLanguages:!0,supportedLanguages:CCe}),kCe={'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 rA({inline:e,children:t,...n}){const r=fa(),i=/language-(\w+)/.exec(n.className||"");return!e&&i?k.jsx(ECe,{...n,children:String(t).replace(/\n$/,""),style:kCe,wrapLongLines:!0,language:i[1],PreTag:"div"}):e?k.jsx("code",{...n,style:{background:r.palette.divider,borderRadius:"4px",padding:"0.2em 0.4em",overflowX:"auto"},children:t}):k.jsx(At,{sx:{background:r.palette.divider,borderRadius:"4px",padding:r.spacing(1),overflowX:"auto"},children:k.jsx("code",{...n,style:{whiteSpace:"pre-wrap"},children:t})})}function TCe(e){return k.jsx(At,{sx:{p:1,boxSizing:"border-box",bgcolor:t=>t.palette.mode==="light"?"#EEEEEE":"#212121",borderRadius:"4px",display:"flex"},children:e.children})}const RCe=(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 sU({element:e}){const t=e.url||URL.createObjectURL(new Blob([e.content])),n=`${e.display}-image`;return k.jsx(TCe,{children:k.jsx("img",{className:n,src:t,onClick:()=>{if(e.display==="inline"){const r=`${e.name}.png`;RCe(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 NL(e){return e.size==="small"?1:e.size==="medium"?2:e.size==="large"?4:2}function ACe({items:e}){return k.jsx(sge,{sx:{margin:0,transform:"translateZ(0)",width:"100%",maxWidth:600,maxHeight:400},variant:"quilted",cols:4,gap:8,children:e.map((t,n)=>{const r=NL(t),i=NL(t);return k.jsx(hge,{cols:r,rows:i,children:k.jsx(sU,{element:t})},n)})})}function lU({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}
|
|
228
|
+
${s}
|
|
229
|
+
\`\`\``),k.jsx(_x,{remarkPlugins:[tA],className:"markdown-body",components:{code({...l}){return k.jsx(rA,{...l})}},children:s})}function OCe({items:e}){return k.jsx(In,{spacing:1,children:e.map((t,n)=>k.jsxs(Wl,{color:"info",icon:!1,children:[k.jsx(ode,{children:t.name}),k.jsx(lU,{element:t})]},n))})}function DCe(e){return wt("MuiLoadingButton",e)}const $Ce=bt("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),ps=$Ce,ICe=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],PCe=e=>{const{loading:t,loadingPosition:n,classes:r}=e,i={root:["root",t&&"loading"],startIcon:[t&&`startIconLoading${Be(n)}`],endIcon:[t&&`endIconLoading${Be(n)}`],loadingIndicator:["loadingIndicator",t&&`loadingIndicator${Be(n)}`]},o=_t(i,DCe,r);return z({},r,o)},LCe=e=>e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"&&e!=="classes",FCe=je(mc,{shouldForwardProp:e=>LCe(e)||e==="classes",name:"MuiLoadingButton",slot:"Root",overridesResolver:(e,t)=>[t.root,t.startIconLoadingStart&&{[`& .${ps.startIconLoadingStart}`]:t.startIconLoadingStart},t.endIconLoadingEnd&&{[`& .${ps.endIconLoadingEnd}`]:t.endIconLoadingEnd}]})(({ownerState:e,theme:t})=>z({[`& .${ps.startIconLoadingStart}, & .${ps.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}),[`&.${ps.loading}`]:{color:"transparent"}},e.loadingPosition==="start"&&e.fullWidth&&{[`& .${ps.startIconLoadingStart}, & .${ps.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginRight:-8}},e.loadingPosition==="end"&&e.fullWidth&&{[`& .${ps.startIconLoadingStart}, & .${ps.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginLeft:-8}})),MCe=je("div",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.loadingIndicator,t[`loadingIndicator${Be(n.loadingPosition)}`]]}})(({theme:e,ownerState:t})=>z({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})),NCe=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiLoadingButton"}),{children:i,disabled:o=!1,id:a,loading:s=!1,loadingIndicator:l,loadingPosition:c="center",variant:f="text"}=r,h=et(r,ICe),p=im(a),y=l??k.jsx(s5,{"aria-labelledby":p,color:"inherit",size:16}),m=z({},r,{disabled:o,loading:s,loadingIndicator:y,loadingPosition:c,variant:f}),v=PCe(m),S=s?k.jsx(MCe,{className:v.loadingIndicator,ownerState:m,children:y}):null;return k.jsxs(FCe,z({disabled:o||s,id:p,ref:n},h,{variant:f,classes:v,ownerState:m,children:[m.loadingPosition==="end"?i:S,m.loadingPosition==="end"?S:i]}))}),Ex=NCe;let BCe={data:""},zCe=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||BCe,jCe=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,UCe=/\/\*[^]*?\*\/| +/g,BL=/\n+/g,El=(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"?El(a,o):o+"{"+El(a,o[1]=="k"?"":t)+"}":typeof a=="object"?r+=El(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+=El.p?El.p(o,a):o+":"+a+";")}return n+(t&&i?t+"{"+i+"}":i)+r},hs={},uU=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+uU(e[n]);return t}return e},KCe=(e,t,n,r,i)=>{let o=uU(e),a=hs[o]||(hs[o]=(l=>{let c=0,f=11;for(;c<l.length;)f=101*f+l.charCodeAt(c++)>>>0;return"go"+f})(o));if(!hs[a]){let l=o!==e?e:(c=>{let f,h,p=[{}];for(;f=jCe.exec(c.replace(UCe,""));)f[4]?p.shift():f[3]?(h=f[3].replace(BL," ").trim(),p.unshift(p[0][h]=p[0][h]||{})):p[0][f[1]]=f[2].replace(BL," ").trim();return p[0]})(e);hs[a]=El(i?{["@keyframes "+a]:l}:l,n?"":"."+a)}let s=n&&hs.g?hs.g:null;return n&&(hs.g=hs[a]),((l,c,f,h)=>{h?c.data=c.data.replace(h,l):c.data.indexOf(l)===-1&&(c.data=f?l+c.data:c.data+l)})(hs[a],t,r,s),a},WCe=(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?"":El(s,""):s===!1?"":s}return r+i+(a??"")},"");function kx(e){let t=this||{},n=e.call?e(t.p):e;return KCe(n.unshift?n.raw?WCe(n,[].slice.call(arguments,1),t.p):n.reduce((r,i)=>Object.assign(r,i&&i.call?i(t.p):i),{}):n,zCe(t.target),t.g,t.o,t.k)}let cU,BE,zE;kx.bind({g:1});let Ms=kx.bind({k:1});function VCe(e,t,n,r){El.p=t,cU=e,BE=n,zE=r}function tu(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:BE&&BE()},s),n.o=/ *go\d+/.test(l),s.className=kx.apply(n,r)+(l?" "+l:""),t&&(s.ref=a);let c=e;return e[0]&&(c=s.as||e,delete s.as),zE&&c[0]&&zE(s),cU(c,s)}return t?t(i):i}}var HCe=e=>typeof e=="function",v1=(e,t)=>HCe(e)?e(t):e,qCe=(()=>{let e=0;return()=>(++e).toString()})(),fU=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),GCe=20,p0=new Map,YCe=1e3,zL=e=>{if(p0.has(e))return;let t=setTimeout(()=>{p0.delete(e),xc({type:4,toastId:e})},YCe);p0.set(e,t)},XCe=e=>{let t=p0.get(e);t&&clearTimeout(t)},jE=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,GCe)};case 1:return t.toast.id&&XCe(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)?jE(e,{type:1,toast:n}):jE(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?zL(r):e.toasts.forEach(o=>{zL(o.id)}),{...e,toasts:e.toasts.map(o=>o.id===r||r===void 0?{...o,visible:!1}:o)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(o=>o.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(o=>({...o,pauseDuration:o.pauseDuration+i}))}}},h0=[],g0={toasts:[],pausedAt:void 0},xc=e=>{g0=jE(g0,e),h0.forEach(t=>{t(g0)})},ZCe={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},JCe=(e={})=>{let[t,n]=T.useState(g0);T.useEffect(()=>(h0.push(n),()=>{let i=h0.indexOf(n);i>-1&&h0.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)||ZCe[i.type],style:{...e.style,...(a=e[i.type])==null?void 0:a.style,...i.style}}});return{...t,toasts:r}},QCe=(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)||qCe()}),vm=e=>(t,n)=>{let r=QCe(t,e,n);return xc({type:2,toast:r}),r.id},Er=(e,t)=>vm("blank")(e,t);Er.error=vm("error");Er.success=vm("success");Er.loading=vm("loading");Er.custom=vm("custom");Er.dismiss=e=>{xc({type:3,toastId:e})};Er.remove=e=>xc({type:4,toastId:e});Er.promise=(e,t,n)=>{let r=Er.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(i=>(Er.success(v1(t.success,i),{id:r,...n,...n==null?void 0:n.success}),i)).catch(i=>{Er.error(v1(t.error,i),{id:r,...n,...n==null?void 0:n.error})}),e};var eEe=(e,t)=>{xc({type:1,toast:{id:e,height:t}})},tEe=()=>{xc({type:5,time:Date.now()})},nEe=e=>{let{toasts:t,pausedAt:n}=JCe(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&&Er.dismiss(s.id);return}return setTimeout(()=>Er.dismiss(s.id),l)});return()=>{a.forEach(s=>s&&clearTimeout(s))}},[t,n]);let r=T.useCallback(()=>{n&&xc({type:6,time:Date.now()})},[n]),i=T.useCallback((o,a)=>{let{reverseOrder:s=!1,gutter:l=8,defaultPosition:c}=a||{},f=t.filter(y=>(y.position||c)===(o.position||c)&&y.height),h=f.findIndex(y=>y.id===o.id),p=f.filter((y,m)=>m<h&&y.visible).length;return f.filter(y=>y.visible).slice(...s?[p+1]:[0,p]).reduce((y,m)=>y+(m.height||0)+l,0)},[t]);return{toasts:t,handlers:{updateHeight:eEe,startPause:tEe,endPause:r,calculateOffset:i}}},rEe=Ms`
|
|
230
|
+
from {
|
|
231
|
+
transform: scale(0) rotate(45deg);
|
|
232
|
+
opacity: 0;
|
|
233
|
+
}
|
|
234
|
+
to {
|
|
235
|
+
transform: scale(1) rotate(45deg);
|
|
236
|
+
opacity: 1;
|
|
237
|
+
}`,iEe=Ms`
|
|
238
|
+
from {
|
|
239
|
+
transform: scale(0);
|
|
240
|
+
opacity: 0;
|
|
241
|
+
}
|
|
242
|
+
to {
|
|
243
|
+
transform: scale(1);
|
|
244
|
+
opacity: 1;
|
|
245
|
+
}`,oEe=Ms`
|
|
246
|
+
from {
|
|
247
|
+
transform: scale(0) rotate(90deg);
|
|
248
|
+
opacity: 0;
|
|
249
|
+
}
|
|
250
|
+
to {
|
|
251
|
+
transform: scale(1) rotate(90deg);
|
|
252
|
+
opacity: 1;
|
|
253
|
+
}`,aEe=tu("div")`
|
|
254
|
+
width: 20px;
|
|
255
|
+
opacity: 0;
|
|
256
|
+
height: 20px;
|
|
257
|
+
border-radius: 10px;
|
|
258
|
+
background: ${e=>e.primary||"#ff4b4b"};
|
|
259
|
+
position: relative;
|
|
260
|
+
transform: rotate(45deg);
|
|
261
|
+
|
|
262
|
+
animation: ${rEe} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
263
|
+
forwards;
|
|
264
|
+
animation-delay: 100ms;
|
|
265
|
+
|
|
266
|
+
&:after,
|
|
267
|
+
&:before {
|
|
268
|
+
content: '';
|
|
269
|
+
animation: ${iEe} 0.15s ease-out forwards;
|
|
270
|
+
animation-delay: 150ms;
|
|
271
|
+
position: absolute;
|
|
272
|
+
border-radius: 3px;
|
|
273
|
+
opacity: 0;
|
|
274
|
+
background: ${e=>e.secondary||"#fff"};
|
|
275
|
+
bottom: 9px;
|
|
276
|
+
left: 4px;
|
|
277
|
+
height: 2px;
|
|
278
|
+
width: 12px;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
&:before {
|
|
282
|
+
animation: ${oEe} 0.15s ease-out forwards;
|
|
283
|
+
animation-delay: 180ms;
|
|
284
|
+
transform: rotate(90deg);
|
|
285
|
+
}
|
|
286
|
+
`,sEe=Ms`
|
|
287
|
+
from {
|
|
288
|
+
transform: rotate(0deg);
|
|
289
|
+
}
|
|
290
|
+
to {
|
|
291
|
+
transform: rotate(360deg);
|
|
292
|
+
}
|
|
293
|
+
`,lEe=tu("div")`
|
|
294
|
+
width: 12px;
|
|
295
|
+
height: 12px;
|
|
296
|
+
box-sizing: border-box;
|
|
297
|
+
border: 2px solid;
|
|
298
|
+
border-radius: 100%;
|
|
299
|
+
border-color: ${e=>e.secondary||"#e0e0e0"};
|
|
300
|
+
border-right-color: ${e=>e.primary||"#616161"};
|
|
301
|
+
animation: ${sEe} 1s linear infinite;
|
|
302
|
+
`,uEe=Ms`
|
|
303
|
+
from {
|
|
304
|
+
transform: scale(0) rotate(45deg);
|
|
305
|
+
opacity: 0;
|
|
306
|
+
}
|
|
307
|
+
to {
|
|
308
|
+
transform: scale(1) rotate(45deg);
|
|
309
|
+
opacity: 1;
|
|
310
|
+
}`,cEe=Ms`
|
|
311
|
+
0% {
|
|
312
|
+
height: 0;
|
|
313
|
+
width: 0;
|
|
314
|
+
opacity: 0;
|
|
315
|
+
}
|
|
316
|
+
40% {
|
|
317
|
+
height: 0;
|
|
318
|
+
width: 6px;
|
|
319
|
+
opacity: 1;
|
|
320
|
+
}
|
|
321
|
+
100% {
|
|
322
|
+
opacity: 1;
|
|
323
|
+
height: 10px;
|
|
324
|
+
}`,fEe=tu("div")`
|
|
325
|
+
width: 20px;
|
|
326
|
+
opacity: 0;
|
|
327
|
+
height: 20px;
|
|
328
|
+
border-radius: 10px;
|
|
329
|
+
background: ${e=>e.primary||"#61d345"};
|
|
330
|
+
position: relative;
|
|
331
|
+
transform: rotate(45deg);
|
|
332
|
+
|
|
333
|
+
animation: ${uEe} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
334
|
+
forwards;
|
|
335
|
+
animation-delay: 100ms;
|
|
336
|
+
&:after {
|
|
337
|
+
content: '';
|
|
338
|
+
box-sizing: border-box;
|
|
339
|
+
animation: ${cEe} 0.2s ease-out forwards;
|
|
340
|
+
opacity: 0;
|
|
341
|
+
animation-delay: 200ms;
|
|
342
|
+
position: absolute;
|
|
343
|
+
border-right: 2px solid;
|
|
344
|
+
border-bottom: 2px solid;
|
|
345
|
+
border-color: ${e=>e.secondary||"#fff"};
|
|
346
|
+
bottom: 6px;
|
|
347
|
+
left: 6px;
|
|
348
|
+
height: 10px;
|
|
349
|
+
width: 6px;
|
|
350
|
+
}
|
|
351
|
+
`,dEe=tu("div")`
|
|
352
|
+
position: absolute;
|
|
353
|
+
`,pEe=tu("div")`
|
|
354
|
+
position: relative;
|
|
355
|
+
display: flex;
|
|
356
|
+
justify-content: center;
|
|
357
|
+
align-items: center;
|
|
358
|
+
min-width: 20px;
|
|
359
|
+
min-height: 20px;
|
|
360
|
+
`,hEe=Ms`
|
|
361
|
+
from {
|
|
362
|
+
transform: scale(0.6);
|
|
363
|
+
opacity: 0.4;
|
|
364
|
+
}
|
|
365
|
+
to {
|
|
366
|
+
transform: scale(1);
|
|
367
|
+
opacity: 1;
|
|
368
|
+
}`,gEe=tu("div")`
|
|
369
|
+
position: relative;
|
|
370
|
+
transform: scale(0.6);
|
|
371
|
+
opacity: 0.4;
|
|
372
|
+
min-width: 20px;
|
|
373
|
+
animation: ${hEe} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
374
|
+
forwards;
|
|
375
|
+
`,mEe=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?T.createElement(gEe,null,t):t:n==="blank"?null:T.createElement(pEe,null,T.createElement(lEe,{...r}),n!=="loading"&&T.createElement(dEe,null,n==="error"?T.createElement(aEe,{...r}):T.createElement(fEe,{...r})))},vEe=e=>`
|
|
376
|
+
0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
|
|
377
|
+
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
|
|
378
|
+
`,yEe=e=>`
|
|
379
|
+
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
|
|
380
|
+
100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
|
|
381
|
+
`,bEe="0%{opacity:0;} 100%{opacity:1;}",xEe="0%{opacity:1;} 100%{opacity:0;}",wEe=tu("div")`
|
|
382
|
+
display: flex;
|
|
383
|
+
align-items: center;
|
|
384
|
+
background: #fff;
|
|
385
|
+
color: #363636;
|
|
386
|
+
line-height: 1.3;
|
|
387
|
+
will-change: transform;
|
|
388
|
+
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
|
|
389
|
+
max-width: 350px;
|
|
390
|
+
pointer-events: auto;
|
|
391
|
+
padding: 8px 10px;
|
|
392
|
+
border-radius: 8px;
|
|
393
|
+
`,SEe=tu("div")`
|
|
394
|
+
display: flex;
|
|
395
|
+
justify-content: center;
|
|
396
|
+
margin: 4px 10px;
|
|
397
|
+
color: inherit;
|
|
398
|
+
flex: 1 1 auto;
|
|
399
|
+
white-space: pre-line;
|
|
400
|
+
`,_Ee=(e,t)=>{let n=e.includes("top")?1:-1,[r,i]=fU()?[bEe,xEe]:[vEe(n),yEe(n)];return{animation:t?`${Ms(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Ms(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},CEe=T.memo(({toast:e,position:t,style:n,children:r})=>{let i=e.height?_Ee(e.position||t||"top-center",e.visible):{opacity:0},o=T.createElement(mEe,{toast:e}),a=T.createElement(SEe,{...e.ariaProps},v1(e.message,e));return T.createElement(wEe,{className:e.className,style:{...i,...n,...e.style}},typeof r=="function"?r({icon:o,message:a}):T.createElement(T.Fragment,null,o,a))});VCe(T.createElement);var EEe=({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)},kEe=(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:fU()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...i}},TEe=kx`
|
|
401
|
+
z-index: 9999;
|
|
402
|
+
> * {
|
|
403
|
+
pointer-events: auto;
|
|
404
|
+
}
|
|
405
|
+
`,yy=16,REe=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:i,containerStyle:o,containerClassName:a})=>{let{toasts:s,handlers:l}=nEe(n);return T.createElement("div",{style:{position:"fixed",zIndex:9999,top:yy,left:yy,right:yy,bottom:yy,pointerEvents:"none",...o},className:a,onMouseEnter:l.startPause,onMouseLeave:l.endPause},s.map(c=>{let f=c.position||t,h=l.calculateOffset(c,{reverseOrder:e,gutter:r,defaultPosition:t}),p=kEe(f,h);return T.createElement(EEe,{id:c.id,key:c.id,onHeightUpdate:l.updateHeight,className:c.visible?TEe:"",style:p},c.type==="custom"?v1(c.message,c):i?i(c):T.createElement(CEe,{toast:c,position:f}))}))},dU=Er;function AEe({action:e}){const t=Tt(dm),n=Tt(jd),r=T.useCallback(async()=>{try{if(!(n==null?void 0:n.socket.id))return;n==null||n.socket.emit("action_call",e)}catch(s){s instanceof Error&&Er.error(s.message)}},[n]),o=`action-${e.name.trim().toLowerCase().replaceAll(" ","-")}`,a=k.jsx(Ex,{id:o,onClick:r,disabled:t,children:e.label||e.name});return e.description?k.jsx(Wa,{title:e.description,placement:"top",children:a}):a}function OEe({actions:e}){return k.jsx(In,{direction:"row",spacing:1,children:e.map(t=>k.jsx(AEe,{action:t},t.name))})}function pU({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 k.jsx("iframe",{className:t,src:n,style:{border:"none"},width:"100%",height:"100%"})}function DEe({items:e}){return k.jsx(In,{spacing:1,children:e.map((t,n)=>k.jsx("div",{style:{maxWidth:"600px",height:"400px"},children:k.jsx(pU,{element:t})},n))})}function $Ee({elements:e,actions:t}){var r,i,o;if(!e.length&&!t.length)return null;const n=e.reduce((a,s)=>(a[s.type]||(a[s.type]=[]),a[s.type].push(s),a),{});return k.jsxs(In,{gap:1,mt:1,children:[(r=n.image)!=null&&r.length?k.jsx(ACe,{items:n.image}):null,(i=n.text)!=null&&i.length?k.jsx(OCe,{items:n.text}):null,(o=n.pdf)!=null&&o.length?k.jsx(DEe,{items:n.pdf}):null,t.length?k.jsx(OEe,{actions:t}):null]})}const jL=(e,t)=>!t||!t.length||!e?!1:t.includes(e.toString()),IEe=e=>!e||!e.length;function PEe({id:e,elements:t,actions:n,content:r,language:i}){const o=t.map(h=>h.name);o.sort((h,p)=>p.length-h.length);const a=o.length?new RegExp(`(${o.join("|")})`,"g"):void 0,s=n.filter(h=>h.forId?h.forId===e:!0);let l=r?r.trim():"";const c=t.filter(h=>jL(e,h==null?void 0:h.forIds)&&h.display==="inline"),f=[];return a&&(l=l.replaceAll(a,h=>{const p=t.find(v=>{const S=v.name===h,x=IEe(v==null?void 0:v.forIds)||jL(e,v==null?void 0:v.forIds);return S&&x}),y=!!p,m=(p==null?void 0:p.display)==="inline";return y?m?(c.indexOf(p)===-1&&c.push(p),h):(f.push(p),`[${h}](${h.replaceAll(" ","_")})`):h})),i&&(l=`\`\`\`${i}
|
|
406
|
+
${l}
|
|
407
|
+
\`\`\``),{preparedContent:l,inlinedElements:c,refElements:f,scopedActions:s}}const LEe=T.memo(function({id:t,content:n,elements:r,actions:i,language:o,authorIsUser:a}){const{preparedContent:s,inlinedElements:l,refElements:c,scopedActions:f}=PEe({id:t,content:n,language:o,elements:r,actions:i});return s?k.jsxs(In,{width:"100%",children:[k.jsx(fn,{sx:{width:"100%",minHeight:"20px",fontSize:"1rem",lineHeight:"1.5rem",fontFamily:"Inter",fontWeight:a?500:300},component:"div",children:k.jsx(_x,{remarkPlugins:[tA],className:"markdown-body",components:{a({children:h,...p}){const y=h[0],m=c.find(v=>v.name===y);return m?k.jsx(j_e,{element:m}):k.jsx(IR,{...p,target:"_blank",children:h})},code({...h}){return k.jsx(rA,{...h})}},children:s})}),k.jsx($Ee,{elements:l,actions:f})]}):null});function Wd(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{c(r.next(f))}catch(h){a(h)}}function l(f){try{c(r.throw(f))}catch(h){a(h)}}function c(f){f.done?o(f.value):i(f.value).then(s,l)}c((r=r.apply(e,t||[])).next())})}function Vd(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(c){return function(f){return l([c,f])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(n=0)),n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(f){c=[6,f],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function UL(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 KL(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 FEe=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 ym(e,t){var n=MEe(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 MEe(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),i=FEe.get(r);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}var NEe=[".DS_Store","Thumbs.db"];function BEe(e){return Wd(this,void 0,void 0,function(){return Vd(this,function(t){return y1(e)&&zEe(e.dataTransfer)?[2,WEe(e.dataTransfer,e.type)]:jEe(e)?[2,UEe(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,KEe(e)]:[2,[]]})})}function zEe(e){return y1(e)}function jEe(e){return y1(e)&&y1(e.target)}function y1(e){return typeof e=="object"&&e!==null}function UEe(e){return UE(e.target.files).map(function(t){return ym(t)})}function KEe(e){return Wd(this,void 0,void 0,function(){var t;return Vd(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 ym(r)})]}})})}function WEe(e,t){return Wd(this,void 0,void 0,function(){var n,r;return Vd(this,function(i){switch(i.label){case 0:return e.items?(n=UE(e.items).filter(function(o){return o.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(VEe))]):[3,2];case 1:return r=i.sent(),[2,WL(hU(r))];case 2:return[2,WL(UE(e.files).map(function(o){return ym(o)}))]}})})}function WL(e){return e.filter(function(t){return NEe.indexOf(t.name)===-1})}function UE(e){if(e===null)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function VEe(e){if(typeof e.webkitGetAsEntry!="function")return VL(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?gU(t):VL(e)}function hU(e){return e.reduce(function(t,n){return KL(KL([],UL(t),!1),UL(Array.isArray(n)?hU(n):[n]),!1)},[])}function VL(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=ym(t);return Promise.resolve(n)}function HEe(e){return Wd(this,void 0,void 0,function(){return Vd(this,function(t){return[2,e.isDirectory?gU(e):qEe(e)]})})}function gU(e){var t=e.createReader();return new Promise(function(n,r){var i=[];function o(){var a=this;t.readEntries(function(s){return Wd(a,void 0,void 0,function(){var l,c,f;return Vd(this,function(h){switch(h.label){case 0:if(s.length)return[3,5];h.label=1;case 1:return h.trys.push([1,3,,4]),[4,Promise.all(i)];case 2:return l=h.sent(),n(l),[3,4];case 3:return c=h.sent(),r(c),[3,4];case 4:return[3,6];case 5:f=Promise.all(s.map(HEe)),i.push(f),o(),h.label=6;case 6:return[2]}})})},function(s){r(s)})}o()})}function qEe(e){return Wd(this,void 0,void 0,function(){return Vd(this,function(t){return[2,new Promise(function(n,r){e.file(function(i){var o=ym(i,e.fullPath);n(o)},function(i){r(i)})})]})})}var GEe=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 HL(e){return ZEe(e)||XEe(e)||vU(e)||YEe()}function YEe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
408
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XEe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ZEe(e){if(Array.isArray(e))return KE(e)}function qL(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 GL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qL(Object(n),!0).forEach(function(r){mU(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mU(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mg(e,t){return eke(e)||QEe(e,t)||vU(e,t)||JEe()}function JEe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
409
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vU(e,t){if(e){if(typeof e=="string")return KE(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 KE(e,t)}}function KE(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 QEe(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 eke(e){if(Array.isArray(e))return e}var tke="file-invalid-type",nke="file-too-large",rke="file-too-small",ike="too-many-files",oke=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:tke,message:"File type must be ".concat(n)}},YL=function(t){return{code:nke,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},XL=function(t){return{code:rke,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},ake={code:ike,message:"Too many files"};function yU(e,t){var n=e.type==="application/x-moz-file"||GEe(e,t);return[n,n?null:oke(t)]}function bU(e,t,n){if(Nu(e.size))if(Nu(t)&&Nu(n)){if(e.size>n)return[!1,YL(n)];if(e.size<t)return[!1,XL(t)]}else{if(Nu(t)&&e.size<t)return[!1,XL(t)];if(Nu(n)&&e.size>n)return[!1,YL(n)]}return[!0,null]}function Nu(e){return e!=null}function ske(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 c=yU(l,n),f=Mg(c,1),h=f[0],p=bU(l,r,i),y=Mg(p,1),m=y[0],v=s?s(l):null;return h&&m&&!v})}function b1(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function by(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 ZL(e){e.preventDefault()}function lke(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function uke(e){return e.indexOf("Edge/")!==-1}function cke(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return lke(e)||uke(e)}function wa(){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!b1(r)&&s&&s.apply(void 0,[r].concat(o)),b1(r)})}}function fke(){return"showOpenFilePicker"in window}function dke(e){if(Nu(e)){var t=Object.entries(e).filter(function(n){var r=Mg(n,2),i=r[0],o=r[1],a=!0;return xU(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(wU))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(n,r){var i=Mg(r,2),o=i[0],a=i[1];return GL(GL({},n),{},mU({},o,a))},{});return[{description:"Files",accept:t}]}return e}function pke(e){if(Nu(e))return Object.entries(e).reduce(function(t,n){var r=Mg(n,2),i=r[0],o=r[1];return[].concat(HL(t),[i],HL(o))},[]).filter(function(t){return xU(t)||wU(t)}).join(",")}function hke(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function gke(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function xU(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function wU(e){return/^.*\.[\w]+$/.test(e)}var mke=["children"],vke=["open"],yke=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],bke=["refKey","onChange","onClick"];function xke(e){return _ke(e)||Ske(e)||SU(e)||wke()}function wke(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
410
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ske(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _ke(e){if(Array.isArray(e))return WE(e)}function h_(e,t){return kke(e)||Eke(e,t)||SU(e,t)||Cke()}function Cke(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
411
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function SU(e,t){if(e){if(typeof e=="string")return WE(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 WE(e,t)}}function WE(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 Eke(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 kke(e){if(Array.isArray(e))return e}function JL(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 Un(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JL(Object(n),!0).forEach(function(r){VE(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}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}function x1(e,t){if(e==null)return{};var n=Tke(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 Tke(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 iA=T.forwardRef(function(e,t){var n=e.children,r=x1(e,mke),i=CU(r),o=i.open,a=x1(i,vke);return T.useImperativeHandle(t,function(){return{open:o}},[o]),pt.createElement(T.Fragment,null,n(Un(Un({},a),{},{open:o})))});iA.displayName="Dropzone";var _U={disabled:!1,getFilesFromEvent:BEe,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};iA.defaultProps=_U;iA.propTypes={children:lt.func,accept:lt.objectOf(lt.arrayOf(lt.string)),multiple:lt.bool,preventDropOnDocument:lt.bool,noClick:lt.bool,noKeyboard:lt.bool,noDrag:lt.bool,noDragEventsBubbling:lt.bool,minSize:lt.number,maxSize:lt.number,maxFiles:lt.number,disabled:lt.bool,getFilesFromEvent:lt.func,onFileDialogCancel:lt.func,onFileDialogOpen:lt.func,useFsAccessApi:lt.bool,autoFocus:lt.bool,onDragEnter:lt.func,onDragLeave:lt.func,onDragOver:lt.func,onDrop:lt.func,onDropAccepted:lt.func,onDropRejected:lt.func,onError:lt.func,validator:lt.func};var HE={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function CU(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Un(Un({},_U),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,o=t.maxSize,a=t.minSize,s=t.multiple,l=t.maxFiles,c=t.onDragEnter,f=t.onDragLeave,h=t.onDragOver,p=t.onDrop,y=t.onDropAccepted,m=t.onDropRejected,v=t.onFileDialogCancel,S=t.onFileDialogOpen,x=t.useFsAccessApi,w=t.autoFocus,C=t.preventDropOnDocument,E=t.noClick,O=t.noKeyboard,$=t.noDrag,I=t.noDragEventsBubbling,W=t.onError,H=t.validator,j=T.useMemo(function(){return pke(n)},[n]),U=T.useMemo(function(){return dke(n)},[n]),le=T.useMemo(function(){return typeof S=="function"?S:QL},[S]),se=T.useMemo(function(){return typeof v=="function"?v:QL},[v]),ie=T.useRef(null),Q=T.useRef(null),L=T.useReducer(Rke,HE),te=h_(L,2),Z=te[0],ee=te[1],Y=Z.isFocused,M=Z.isFileDialogActive,A=T.useRef(typeof window<"u"&&window.isSecureContext&&x&&fke()),ne=function(){!A.current&&M&&setTimeout(function(){if(Q.current){var V=Q.current.files;V.length||(ee({type:"closeDialog"}),se())}},300)};T.useEffect(function(){return window.addEventListener("focus",ne,!1),function(){window.removeEventListener("focus",ne,!1)}},[Q,M,se,A]);var oe=T.useRef([]),ce=function(V){ie.current&&ie.current.contains(V.target)||(V.preventDefault(),oe.current=[])};T.useEffect(function(){return C&&(document.addEventListener("dragover",ZL,!1),document.addEventListener("drop",ce,!1)),function(){C&&(document.removeEventListener("dragover",ZL),document.removeEventListener("drop",ce))}},[ie,C]),T.useEffect(function(){return!r&&w&&ie.current&&ie.current.focus(),function(){}},[ie,w,r]);var re=T.useCallback(function(B){W?W(B):console.error(B)},[W]),Se=T.useCallback(function(B){B.preventDefault(),B.persist(),ge(B),oe.current=[].concat(xke(oe.current),[B.target]),by(B)&&Promise.resolve(i(B)).then(function(V){if(!(b1(B)&&!I)){var he=V.length,G=he>0&&ske({files:V,accept:j,minSize:a,maxSize:o,multiple:s,maxFiles:l,validator:H}),fe=he>0&&!G;ee({isDragAccept:G,isDragReject:fe,isDragActive:!0,type:"setDraggedFiles"}),c&&c(B)}}).catch(function(V){return re(V)})},[i,c,re,I,j,a,o,s,l,H]),ke=T.useCallback(function(B){B.preventDefault(),B.persist(),ge(B);var V=by(B);if(V&&B.dataTransfer)try{B.dataTransfer.dropEffect="copy"}catch{}return V&&h&&h(B),!1},[h,I]),Ce=T.useCallback(function(B){B.preventDefault(),B.persist(),ge(B);var V=oe.current.filter(function(G){return ie.current&&ie.current.contains(G)}),he=V.indexOf(B.target);he!==-1&&V.splice(he,1),oe.current=V,!(V.length>0)&&(ee({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),by(B)&&f&&f(B))},[ie,f,I]),Pe=T.useCallback(function(B,V){var he=[],G=[];B.forEach(function(fe){var ae=yU(fe,j),Re=h_(ae,2),Ie=Re[0],$e=Re[1],dt=bU(fe,a,o),ot=h_(dt,2),pe=ot[0],me=ot[1],_e=H?H(fe):null;if(Ie&&pe&&!_e)he.push(fe);else{var Ue=[$e,me];_e&&(Ue=Ue.concat(_e)),G.push({file:fe,errors:Ue.filter(function(Ke){return Ke})})}}),(!s&&he.length>1||s&&l>=1&&he.length>l)&&(he.forEach(function(fe){G.push({file:fe,errors:[ake]})}),he.splice(0)),ee({acceptedFiles:he,fileRejections:G,type:"setFiles"}),p&&p(he,G,V),G.length>0&&m&&m(G,V),he.length>0&&y&&y(he,V)},[ee,s,j,a,o,l,p,y,m,H]),Le=T.useCallback(function(B){B.preventDefault(),B.persist(),ge(B),oe.current=[],by(B)&&Promise.resolve(i(B)).then(function(V){b1(B)&&!I||Pe(V,B)}).catch(function(V){return re(V)}),ee({type:"reset"})},[i,Pe,re,I]),ze=T.useCallback(function(){if(A.current){ee({type:"openDialog"}),le();var B={multiple:s,types:U};window.showOpenFilePicker(B).then(function(V){return i(V)}).then(function(V){Pe(V,null),ee({type:"closeDialog"})}).catch(function(V){hke(V)?(se(V),ee({type:"closeDialog"})):gke(V)?(A.current=!1,Q.current?(Q.current.value=null,Q.current.click()):re(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."))):re(V)});return}Q.current&&(ee({type:"openDialog"}),le(),Q.current.value=null,Q.current.click())},[ee,le,se,x,Pe,re,U,s]),We=T.useCallback(function(B){!ie.current||!ie.current.isEqualNode(B.target)||(B.key===" "||B.key==="Enter"||B.keyCode===32||B.keyCode===13)&&(B.preventDefault(),ze())},[ie,ze]),qe=T.useCallback(function(){ee({type:"focus"})},[]),Ve=T.useCallback(function(){ee({type:"blur"})},[]),at=T.useCallback(function(){E||(cke()?setTimeout(ze,0):ze())},[E,ze]),Ze=function(V){return r?null:V},tt=function(V){return O?null:Ze(V)},gt=function(V){return $?null:Ze(V)},ge=function(V){I&&V.stopPropagation()},Te=T.useMemo(function(){return function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},V=B.refKey,he=V===void 0?"ref":V,G=B.role,fe=B.onKeyDown,ae=B.onFocus,Re=B.onBlur,Ie=B.onClick,$e=B.onDragEnter,dt=B.onDragOver,ot=B.onDragLeave,pe=B.onDrop,me=x1(B,yke);return Un(Un(VE({onKeyDown:tt(wa(fe,We)),onFocus:tt(wa(ae,qe)),onBlur:tt(wa(Re,Ve)),onClick:Ze(wa(Ie,at)),onDragEnter:gt(wa($e,Se)),onDragOver:gt(wa(dt,ke)),onDragLeave:gt(wa(ot,Ce)),onDrop:gt(wa(pe,Le)),role:typeof G=="string"&&G!==""?G:"presentation"},he,ie),!r&&!O?{tabIndex:0}:{}),me)}},[ie,We,qe,Ve,at,Se,ke,Ce,Le,O,$,r]),Ee=T.useCallback(function(B){B.stopPropagation()},[]),Ae=T.useMemo(function(){return function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},V=B.refKey,he=V===void 0?"ref":V,G=B.onChange,fe=B.onClick,ae=x1(B,bke),Re=VE({accept:j,multiple:s,type:"file",style:{display:"none"},onChange:Ze(wa(G,Le)),onClick:Ze(wa(fe,Ee)),tabIndex:-1},he,Q);return Un(Un({},Re),ae)}},[Q,n,s,Le,r]);return Un(Un({},Z),{},{isFocused:Y&&!r,getRootProps:Te,getInputProps:Ae,rootRef:ie,inputRef:Q,open:Ze(ze)})}function Rke(e,t){switch(t.type){case"focus":return Un(Un({},e),{},{isFocused:!0});case"blur":return Un(Un({},e),{},{isFocused:!1});case"openDialog":return Un(Un({},HE),{},{isFileDialogActive:!0});case"closeDialog":return Un(Un({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Un(Un({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Un(Un({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Un({},HE);default:return e}}function QL(){}var oA={},Ake=Pn;Object.defineProperty(oA,"__esModule",{value:!0});var EU=oA.default=void 0,Oke=Ake(Ln()),Dke=k,$ke=(0,Oke.default)((0,Dke.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");EU=oA.default=$ke;function Ike({askUser:e}){const[t,n]=T.useState(!1),r=T.useCallback((c,f)=>{if(f.length>0){Er.error(f[0].errors[0].message);return}if(!c.length)return;n(!0);const h=c.map(p=>new Promise((y,m)=>{const v=new FileReader;v.onload=function(S){var C;const x=(C=S.target)==null?void 0:C.result,w={path:p.path,name:p.name,size:p.size,type:p.type,content:x};y(w)},v.onerror=function(){v.error&&m(v.error.message)},v.readAsArrayBuffer(p)}));Promise.all(h).then(p=>{e==null||e.callback(p)}).catch(p=>{Er.error(p),n(!1)})},[e]);if(!e.spec.accept||!e.spec.max_size_mb)return null;let i={};const o=e.spec.accept;Array.isArray(o)?o.forEach(c=>{typeof c=="string"&&(i[c]=[])}):typeof o=="object"&&(i=o);const a=e.spec.max_size_mb,{getRootProps:s,getInputProps:l}=CU({onDrop:r,maxFiles:e.spec.max_files||1,accept:i,maxSize:a*1e6});return k.jsxs(In,{sx:{width:"100%",borderRadius:1,backgroundColor:c=>c.palette.divider,boxSizing:"border-box"},direction:"row",alignItems:"center",padding:2,...s({className:"dropzone"}),children:[k.jsx("input",{...l()}),k.jsx(EU,{fontSize:"large"}),k.jsxs(In,{ml:2,children:[k.jsx(fn,{color:"text.primary",children:"Drag and drop files here"}),k.jsxs(fn,{variant:"caption",color:"text.secondary",children:["Limit ",a,"mb."]})]}),k.jsx(Ex,{id:t?"upload-button-loading":"upload-button",loading:t,sx:{ml:"auto !important"},variant:"contained",children:"Browse Files"})]})}function Pke(){const e=Tt(yx);return(e==null?void 0:e.spec.type)!=="file"?null:k.jsx(Ike,{askUser:e})}function Lke({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 k.jsx(fn,{lineHeight:"24px",color:"#9E9E9E",fontSize:"11px",children:n})}const Mo=Tr({key:"ProjectSettings",default:void 0}),Fke=["#066DEB","#04857C","#FF9900","#F34F3C","#E86004","#2D8C26","#5E5BFE","#A132FE"],Mke=["#67A0F8","#25B1A7","#FFC266","#F09691","#FA7F54","#59C654","#9695F8","#B889F8"];function Nke(e){return e.split("").reduce((n,r)=>n=r.charCodeAt(0)+(n<<6)+(n<<16)-n,0)}function Bke(){const e=Tt(Mo),{theme:t}=Tt(Ks),n=t==="dark"?Mke:Fke;return function(r,i,o){var s;if(o)return"error.main";if(r===((s=e==null?void 0:e.ui)==null?void 0:s.name))return"primary.main";if(i)return"text.primary";const a=Math.abs(Nke(r))%n.length;return n[a]}}function zke({element:e,author:t}){const n=e.url||URL.createObjectURL(new Blob([e.content])),r="message-avatar";return k.jsx(Wa,{title:t,children:k.jsx("span",{className:r,children:k.jsx(TE,{sx:{width:38,height:38,mt:"-4px"},src:n})})})}const qE=70;function jke({message:e,show:t}){const n=Bke(),o=Tt(mm).filter(c=>c.type==="avatar").find(c=>c.name===e.author),a=t&&o&&k.jsx(zke,{element:o,author:e.author}),s=t&&k.jsx(Wa,{title:e.author,children:k.jsx(fn,{noWrap:!0,lineHeight:"24px",sx:{mb:"-5px",width:qE,fontSize:"12px",fontWeight:500,color:n(e.author,e.authorIsUser,e.isError)},children:e.author})}),l=a||s;return k.jsxs(k.Fragment,{children:[k.jsxs(At,{width:qE,pr:2,children:[l,k.jsx(Lke,{timestamp:e.createdAt})]}),!!e.indent&&k.jsx(At,{width:"2px",borderRadius:"13px",bgcolor:n(e.author,e.authorIsUser),mr:2})]})}var aA={},Uke=Pn;Object.defineProperty(aA,"__esModule",{value:!0});var kU=aA.default=void 0,Kke=Uke(Ln()),Wke=k,Vke=(0,Kke.default)((0,Wke.jsx)("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92l9.06-9.06M17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29zm-3.6 3.19L3 17.25V21h3.75L17.81 9.94l-3.75-3.75z"}),"EditOutlined");kU=aA.default=Vke;var sA={},Hke=Pn;Object.defineProperty(sA,"__esModule",{value:!0});var TU=sA.default=void 0,qke=Hke(Ln()),Gke=k,Yke=(0,qke.default)((0,Gke.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");TU=sA.default=Yke;var lA={},Xke=Pn;Object.defineProperty(lA,"__esModule",{value:!0});var RU=lA.default=void 0,Zke=Xke(Ln()),Jke=k,Qke=(0,Zke.default)((0,Jke.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");RU=lA.default=Qke;var uA={},eTe=Pn;Object.defineProperty(uA,"__esModule",{value:!0});var AU=uA.default=void 0,tTe=eTe(Ln()),nTe=k,rTe=(0,tTe.default)((0,nTe.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");AU=uA.default=rTe;var cA={},iTe=Pn;Object.defineProperty(cA,"__esModule",{value:!0});var OU=cA.default=void 0,oTe=iTe(Ln()),aTe=k,sTe=(0,oTe.default)((0,aTe.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");OU=cA.default=sTe;const w1=new URL(window.origin),gs=`${w1.protocol}//${w1.host}`,lTe=`${w1.protocol==="https:"?"wss":"ws"}://${w1.host}`;class fA{constructor(t){lr(this,"headers");lr(this,"setAccessToken",t=>{this.headers.set("Authorization",t)});lr(this,"getCompletion",async(t,n,r={})=>{const i=await fetch(`${gs}/completion`,{headers:this.headers,method:"POST",body:JSON.stringify({prompt:t,settings:n,userEnv:r})});if(!i.ok)throw new Error(i.statusText);return await i.text()});lr(this,"getRole",async()=>{const t=await fetch(`${gs}/project/role`,{headers:this.headers,method:"GET"});if(!t.ok)throw new Error(t.statusText);return await t.text()});lr(this,"setHumanFeedback",async(t,n)=>{const r=await fetch(`${gs}/message/feedback`,{headers:this.headers,method:"PUT",body:JSON.stringify({messageId:t,feedback:n})});if(!r.ok)throw new Error(r.statusText)});lr(this,"getProjectMembers",async()=>{const t=await fetch(`${gs}/project/members`,{headers:this.headers,method:"GET"});if(!t.ok)throw new Error(t.statusText);return t.json()});lr(this,"getConversations",async(t,n)=>{const r=await fetch(`${gs}/project/conversations`,{headers:this.headers,method:"POST",body:JSON.stringify({pagination:t,filter:n})});if(!r.ok)throw new Error(r.statusText);return r.json()});lr(this,"getConversation",async t=>{const n=await fetch(`${gs}/project/conversation/${t}`,{headers:this.headers,method:"GET"});if(!n.ok)throw new Error(n.statusText);return n.json()});lr(this,"getElement",async(t,n)=>{const r=await fetch(`${gs}/project/conversation/${t}/element/${n}`,{headers:this.headers,method:"GET"});if(!r.ok)throw new Error(r.statusText);return r.json()});lr(this,"deleteConversation",async t=>{const n=await fetch(`${gs}/project/conversation`,{headers:this.headers,method:"DELETE",body:JSON.stringify({conversationId:t})});if(!n.ok)throw new Error(n.statusText);return n.json()});this.headers=new Headers({"content-type":"application/json",Authorization:t||""})}}lr(fA,"getProjectSettings",async()=>(await fetch(`${gs}/project/settings`,{headers:{"content-type":"application/json"},method:"GET"})).json());const nu=Tr({key:"Client",default:new fA}),xy="16px";function uTe({message:e}){const t=Tt(vx),[n,r]=T.useState(e.humanFeedback||0),i=Tt(nu),o=n===-1?TU:RU,a=n===1?AU:OU,s=async l=>{try{await dU.promise(i.setHumanFeedback(e.id,l),{loading:"Updating...",success:"Feedback updated!",error:f=>k.jsx("span",{children:f.message})});const c=t.find(f=>f.id===e.id);c&&(c.humanFeedback=l),r(l)}catch(c){console.log(c)}};return k.jsxs(In,{direction:"row",spacing:1,children:[k.jsx(Wa,{title:"Negative feedback",children:k.jsx(Br,{className:`negative-feedback-${n===-1?"on":"off"}`,onClick:()=>s(n===-1?0:-1),size:"small",children:k.jsx(o,{sx:{width:xy,height:xy}})})}),k.jsx(Wa,{title:"Positive feedback",children:k.jsx(Br,{className:`positive-feedback-${n===1?"on":"off"}`,onClick:()=>s(n===1?0:1),size:"small",children:k.jsx(a,{sx:{width:xy,height:xy}})})})]})}const GE=Tr({key:"Playground",default:void 0}),YE=Tr({key:"PlaygroundSettings",default:void 0});function cTe({message:e}){const t=fr(GE),n=!!e.prompt&&!!e.content,r=n&&k.jsx(Wa,{title:"Open in prompt playground",children:k.jsx(Br,{size:"small",className:"playground-button",onClick:()=>{e.prompt&&t({llmSettings:e.llmSettings,prompt:e.prompt,completion:e.content})},children:k.jsx(kU,{sx:{width:"16px",height:"16px"}})})}),i=!!e.id&&!e.authorIsUser&&!e.waitForAnswer&&!!e.content;return!n&&!i?null:k.jsxs(In,{direction:"row",spacing:1,children:[r,i&&k.jsx(uTe,{message:e})]})}const fTe=({message:e,elements:t,actions:n,indent:r,showAvatar:i,showBorder:o,isRunning:a,isLast:s})=>{const l=Tt(Ks),[c,f]=T.useState(l.expandAll);return T.useEffect(()=>{f(l.expandAll)},[l.expandAll]),l.hideCot&&r?null:k.jsxs(At,{sx:{color:"text.primary",backgroundColor:"transparent"},className:"message",children:[k.jsx(At,{sx:{boxSizing:"border-box",mx:"auto",maxWidth:"60rem",display:"flex",flexDirection:"column",position:"relative"},children:k.jsxs(In,{direction:"row",ml:r?`${r*(qE+16)}px`:0,sx:{py:2,borderBottom:h=>o?`1px solid ${h.palette.divider}`:"none"},children:[k.jsx(jke,{message:e,show:i}),k.jsxs(In,{alignItems:"flex-start",width:0,flexGrow:1,spacing:1,children:[k.jsx(LEe,{authorIsUser:e.authorIsUser,actions:n,elements:t,id:e.id?e.id.toString():e.tempId,content:e.content,language:e.language}),k.jsx(d1e,{message:e,opened:c,onClick:()=>f(!c),loading:a}),!a&&s&&e.waitForAnswer&&k.jsx(Pke,{}),k.jsx(cTe,{message:e})]})]})}),e.subMessages&&c&&k.jsx(DU,{messages:e.subMessages,actions:n,elements:t,indent:r+1,isRunning:a})]})};function DU({messages:e,elements:t,actions:n,indent:r,isRunning:i}){const o=Tt(dm);let a="";const s=e.filter((l,c)=>{var m;const f=!!l.content,h=!!((m=l.subMessages)!=null&&m.length),p=c===e.length-1;return f||h||!f&&(i===void 0?o&&p:i&&p)});return k.jsx(k.Fragment,{children:s.map((l,c)=>{const f=c===s.length-1,h=i===void 0?o&&f:i&&f,p=l.author!==a,y=!1;return a=l.author,k.jsx(fTe,{message:l,elements:t,actions:n,showAvatar:p,showBorder:y,indent:r,isRunning:h,isLast:f},c)})})}function dTe(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 $U=({messages:e,elements:t,actions:n,autoScroll:r,setAutoSroll:i})=>{const o=T.useRef(),a=dTe(e);return T.useEffect(()=>{!o.current||!r||(o.current.scrollTop=o.current.scrollHeight)},[e,r]),T.useEffect(()=>{if(!o.current||!i)return;const s=()=>{if(!o.current)return;const{scrollTop:l,scrollHeight:c,clientHeight:f}=o.current,h=l+f>=c-10;i(h)};return o.current.addEventListener("scroll",s),()=>{var l;(l=o.current)==null||l.removeEventListener("scroll",s)}},[]),k.jsx(At,{ref:o,position:"relative",display:"flex",flexDirection:"column",overflow:"auto",flexGrow:1,children:k.jsx(DU,{indent:0,messages:a,elements:t,actions:n})})};var IU={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ui,function(){var n=Array.prototype.slice;function r(g,_){_&&(g.prototype=Object.create(_.prototype)),g.prototype.constructor=g}function i(g){return l(g)?g:We(g)}r(o,i);function o(g){return c(g)?g:qe(g)}r(a,i);function a(g){return f(g)?g:Ve(g)}r(s,i);function s(g){return l(g)&&!h(g)?g:at(g)}function l(g){return!!(g&&g[y])}function c(g){return!!(g&&g[m])}function f(g){return!!(g&&g[v])}function h(g){return c(g)||f(g)}function p(g){return!!(g&&g[S])}i.isIterable=l,i.isKeyed=c,i.isIndexed=f,i.isAssociative=h,i.isOrdered=p,i.Keyed=o,i.Indexed=a,i.Set=s;var y="@@__IMMUTABLE_ITERABLE__@@",m="@@__IMMUTABLE_KEYED__@@",v="@@__IMMUTABLE_INDEXED__@@",S="@@__IMMUTABLE_ORDERED__@@",x="delete",w=5,C=1<<w,E=C-1,O={},$={value:!1},I={value:!1};function W(g){return g.value=!1,g}function H(g){g&&(g.value=!0)}function j(){}function U(g,_){_=_||0;for(var D=Math.max(0,g.length-_),P=new Array(D),N=0;N<D;N++)P[N]=g[N+_];return P}function le(g){return g.size===void 0&&(g.size=g.__iterate(ie)),g.size}function se(g,_){if(typeof _!="number"){var D=_>>>0;if(""+D!==_||D===4294967295)return NaN;_=D}return _<0?le(g)+_:_}function ie(){return!0}function Q(g,_,D){return(g===0||D!==void 0&&g<=-D)&&(_===void 0||D!==void 0&&_>=D)}function L(g,_){return Z(g,_,0)}function te(g,_){return Z(g,_,_)}function Z(g,_,D){return g===void 0?D:g<0?Math.max(0,_+g):_===void 0?g:Math.min(_,g)}var ee=0,Y=1,M=2,A=typeof Symbol=="function"&&Symbol.iterator,ne="@@iterator",oe=A||ne;function ce(g){this.next=g}ce.prototype.toString=function(){return"[Iterator]"},ce.KEYS=ee,ce.VALUES=Y,ce.ENTRIES=M,ce.prototype.inspect=ce.prototype.toSource=function(){return this.toString()},ce.prototype[oe]=function(){return this};function re(g,_,D,P){var N=g===0?_:g===1?D:[_,D];return P?P.value=N:P={value:N,done:!1},P}function Se(){return{value:void 0,done:!0}}function ke(g){return!!Le(g)}function Ce(g){return g&&typeof g.next=="function"}function Pe(g){var _=Le(g);return _&&_.call(g)}function Le(g){var _=g&&(A&&g[A]||g[ne]);if(typeof _=="function")return _}function ze(g){return g&&typeof g.length=="number"}r(We,i);function We(g){return g==null?B():l(g)?g.toSeq():G(g)}We.of=function(){return We(arguments)},We.prototype.toSeq=function(){return this},We.prototype.toString=function(){return this.__toString("Seq {","}")},We.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},We.prototype.__iterate=function(g,_){return ae(this,g,_,!0)},We.prototype.__iterator=function(g,_){return Re(this,g,_,!0)},r(qe,We);function qe(g){return g==null?B().toKeyedSeq():l(g)?c(g)?g.toSeq():g.fromEntrySeq():V(g)}qe.prototype.toKeyedSeq=function(){return this},r(Ve,We);function Ve(g){return g==null?B():l(g)?c(g)?g.entrySeq():g.toIndexedSeq():he(g)}Ve.of=function(){return Ve(arguments)},Ve.prototype.toIndexedSeq=function(){return this},Ve.prototype.toString=function(){return this.__toString("Seq [","]")},Ve.prototype.__iterate=function(g,_){return ae(this,g,_,!1)},Ve.prototype.__iterator=function(g,_){return Re(this,g,_,!1)},r(at,We);function at(g){return(g==null?B():l(g)?c(g)?g.entrySeq():g:he(g)).toSetSeq()}at.of=function(){return at(arguments)},at.prototype.toSetSeq=function(){return this},We.isSeq=Ee,We.Keyed=qe,We.Set=at,We.Indexed=Ve;var Ze="@@__IMMUTABLE_SEQ__@@";We.prototype[Ze]=!0,r(tt,Ve);function tt(g){this._array=g,this.size=g.length}tt.prototype.get=function(g,_){return this.has(g)?this._array[se(this,g)]:_},tt.prototype.__iterate=function(g,_){for(var D=this._array,P=D.length-1,N=0;N<=P;N++)if(g(D[_?P-N:N],N,this)===!1)return N+1;return N},tt.prototype.__iterator=function(g,_){var D=this._array,P=D.length-1,N=0;return new ce(function(){return N>P?Se():re(g,N,D[_?P-N++:N++])})},r(gt,qe);function gt(g){var _=Object.keys(g);this._object=g,this._keys=_,this.size=_.length}gt.prototype.get=function(g,_){return _!==void 0&&!this.has(g)?_:this._object[g]},gt.prototype.has=function(g){return this._object.hasOwnProperty(g)},gt.prototype.__iterate=function(g,_){for(var D=this._object,P=this._keys,N=P.length-1,J=0;J<=N;J++){var de=P[_?N-J:J];if(g(D[de],de,this)===!1)return J+1}return J},gt.prototype.__iterator=function(g,_){var D=this._object,P=this._keys,N=P.length-1,J=0;return new ce(function(){var de=P[_?N-J:J];return J++>N?Se():re(g,de,D[de])})},gt.prototype[S]=!0,r(ge,Ve);function ge(g){this._iterable=g,this.size=g.length||g.size}ge.prototype.__iterateUncached=function(g,_){if(_)return this.cacheResult().__iterate(g,_);var D=this._iterable,P=Pe(D),N=0;if(Ce(P))for(var J;!(J=P.next()).done&&g(J.value,N++,this)!==!1;);return N},ge.prototype.__iteratorUncached=function(g,_){if(_)return this.cacheResult().__iterator(g,_);var D=this._iterable,P=Pe(D);if(!Ce(P))return new ce(Se);var N=0;return new ce(function(){var J=P.next();return J.done?J:re(g,N++,J.value)})},r(Te,Ve);function Te(g){this._iterator=g,this._iteratorCache=[]}Te.prototype.__iterateUncached=function(g,_){if(_)return this.cacheResult().__iterate(g,_);for(var D=this._iterator,P=this._iteratorCache,N=0;N<P.length;)if(g(P[N],N++,this)===!1)return N;for(var J;!(J=D.next()).done;){var de=J.value;if(P[N]=de,g(de,N++,this)===!1)break}return N},Te.prototype.__iteratorUncached=function(g,_){if(_)return this.cacheResult().__iterator(g,_);var D=this._iterator,P=this._iteratorCache,N=0;return new ce(function(){if(N>=P.length){var J=D.next();if(J.done)return J;P[N]=J.value}return re(g,N,P[N++])})};function Ee(g){return!!(g&&g[Ze])}var Ae;function B(){return Ae||(Ae=new tt([]))}function V(g){var _=Array.isArray(g)?new tt(g).fromEntrySeq():Ce(g)?new Te(g).fromEntrySeq():ke(g)?new ge(g).fromEntrySeq():typeof g=="object"?new gt(g):void 0;if(!_)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+g);return _}function he(g){var _=fe(g);if(!_)throw new TypeError("Expected Array or iterable object of values: "+g);return _}function G(g){var _=fe(g)||typeof g=="object"&&new gt(g);if(!_)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+g);return _}function fe(g){return ze(g)?new tt(g):Ce(g)?new Te(g):ke(g)?new ge(g):void 0}function ae(g,_,D,P){var N=g._cache;if(N){for(var J=N.length-1,de=0;de<=J;de++){var xe=N[D?J-de:de];if(_(xe[1],P?xe[0]:de,g)===!1)return de+1}return de}return g.__iterateUncached(_,D)}function Re(g,_,D,P){var N=g._cache;if(N){var J=N.length-1,de=0;return new ce(function(){var xe=N[D?J-de:de];return de++>J?Se():re(_,P?xe[0]:de-1,xe[1])})}return g.__iteratorUncached(_,D)}function Ie(g,_){return _?$e(_,g,"",{"":g}):dt(g)}function $e(g,_,D,P){return Array.isArray(_)?g.call(P,D,Ve(_).map(function(N,J){return $e(g,N,J,_)})):ot(_)?g.call(P,D,qe(_).map(function(N,J){return $e(g,N,J,_)})):_}function dt(g){return Array.isArray(g)?Ve(g).map(dt).toList():ot(g)?qe(g).map(dt).toMap():g}function ot(g){return g&&(g.constructor===Object||g.constructor===void 0)}function pe(g,_){if(g===_||g!==g&&_!==_)return!0;if(!g||!_)return!1;if(typeof g.valueOf=="function"&&typeof _.valueOf=="function"){if(g=g.valueOf(),_=_.valueOf(),g===_||g!==g&&_!==_)return!0;if(!g||!_)return!1}return!!(typeof g.equals=="function"&&typeof _.equals=="function"&&g.equals(_))}function me(g,_){if(g===_)return!0;if(!l(_)||g.size!==void 0&&_.size!==void 0&&g.size!==_.size||g.__hash!==void 0&&_.__hash!==void 0&&g.__hash!==_.__hash||c(g)!==c(_)||f(g)!==f(_)||p(g)!==p(_))return!1;if(g.size===0&&_.size===0)return!0;var D=!h(g);if(p(g)){var P=g.entries();return _.every(function(Oe,De){var X=P.next().value;return X&&pe(X[1],Oe)&&(D||pe(X[0],De))})&&P.next().done}var N=!1;if(g.size===void 0)if(_.size===void 0)typeof g.cacheResult=="function"&&g.cacheResult();else{N=!0;var J=g;g=_,_=J}var de=!0,xe=_.__iterate(function(Oe,De){if(D?!g.has(Oe):N?!pe(Oe,g.get(De,O)):!pe(g.get(De,O),Oe))return de=!1,!1});return de&&g.size===xe}r(_e,Ve);function _e(g,_){if(!(this instanceof _e))return new _e(g,_);if(this._value=g,this.size=_===void 0?1/0:Math.max(0,_),this.size===0){if(Ue)return Ue;Ue=this}}_e.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},_e.prototype.get=function(g,_){return this.has(g)?this._value:_},_e.prototype.includes=function(g){return pe(this._value,g)},_e.prototype.slice=function(g,_){var D=this.size;return Q(g,_,D)?this:new _e(this._value,te(_,D)-L(g,D))},_e.prototype.reverse=function(){return this},_e.prototype.indexOf=function(g){return pe(this._value,g)?0:-1},_e.prototype.lastIndexOf=function(g){return pe(this._value,g)?this.size:-1},_e.prototype.__iterate=function(g,_){for(var D=0;D<this.size;D++)if(g(this._value,D,this)===!1)return D+1;return D},_e.prototype.__iterator=function(g,_){var D=this,P=0;return new ce(function(){return P<D.size?re(g,P++,D._value):Se()})},_e.prototype.equals=function(g){return g instanceof _e?pe(this._value,g._value):me(g)};var Ue;function Ke(g,_){if(!g)throw new Error(_)}r(Ge,Ve);function Ge(g,_,D){if(!(this instanceof Ge))return new Ge(g,_,D);if(Ke(D!==0,"Cannot step a Range by 0"),g=g||0,_===void 0&&(_=1/0),D=D===void 0?1:Math.abs(D),_<g&&(D=-D),this._start=g,this._end=_,this._step=D,this.size=Math.max(0,Math.ceil((_-g)/D-1)+1),this.size===0){if(ut)return ut;ut=this}}Ge.prototype.toString=function(){return this.size===0?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},Ge.prototype.get=function(g,_){return this.has(g)?this._start+se(this,g)*this._step:_},Ge.prototype.includes=function(g){var _=(g-this._start)/this._step;return _>=0&&_<this.size&&_===Math.floor(_)},Ge.prototype.slice=function(g,_){return Q(g,_,this.size)?this:(g=L(g,this.size),_=te(_,this.size),_<=g?new Ge(0,0):new Ge(this.get(g,this._end),this.get(_,this._end),this._step))},Ge.prototype.indexOf=function(g){var _=g-this._start;if(_%this._step===0){var D=_/this._step;if(D>=0&&D<this.size)return D}return-1},Ge.prototype.lastIndexOf=function(g){return this.indexOf(g)},Ge.prototype.__iterate=function(g,_){for(var D=this.size-1,P=this._step,N=_?this._start+D*P:this._start,J=0;J<=D;J++){if(g(N,J,this)===!1)return J+1;N+=_?-P:P}return J},Ge.prototype.__iterator=function(g,_){var D=this.size-1,P=this._step,N=_?this._start+D*P:this._start,J=0;return new ce(function(){var de=N;return N+=_?-P:P,J>D?Se():re(g,J++,de)})},Ge.prototype.equals=function(g){return g instanceof Ge?this._start===g._start&&this._end===g._end&&this._step===g._step:me(this,g)};var ut;r(st,i);function st(){throw TypeError("Abstract")}r(nt,st);function nt(){}r(ft,st);function ft(){}r(Ot,st);function Ot(){}st.Keyed=nt,st.Indexed=ft,st.Set=Ot;var Zt=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(_,D){_=_|0,D=D|0;var P=_&65535,N=D&65535;return P*N+((_>>>16)*N+P*(D>>>16)<<16>>>0)|0};function Gt(g){return g>>>1&1073741824|g&3221225471}function Vt(g){if(g===!1||g===null||g===void 0||typeof g.valueOf=="function"&&(g=g.valueOf(),g===!1||g===null||g===void 0))return 0;if(g===!0)return 1;var _=typeof g;if(_==="number"){var D=g|0;for(D!==g&&(D^=g*4294967295);g>4294967295;)g/=4294967295,D^=g;return Gt(D)}if(_==="string")return g.length>qs?tr(g):vn(g);if(typeof g.hashCode=="function")return g.hashCode();if(_==="object")return br(g);if(typeof g.toString=="function")return vn(g.toString());throw new Error("Value type "+_+" cannot be hashed.")}function tr(g){var _=Di[g];return _===void 0&&(_=vn(g),wn===xn&&(wn=0,Di={}),wn++,Di[g]=_),_}function vn(g){for(var _=0,D=0;D<g.length;D++)_=31*_+g.charCodeAt(D)|0;return Gt(_)}function br(g){var _;if(Zr&&(_=es.get(g),_!==void 0)||(_=g[Or],_!==void 0)||!sr&&(_=g.propertyIsEnumerable&&g.propertyIsEnumerable[Or],_!==void 0||(_=Ar(g),_!==void 0)))return _;if(_=++Jr,Jr&1073741824&&(Jr=0),Zr)es.set(g,_);else{if(nr!==void 0&&nr(g)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(sr)Object.defineProperty(g,Or,{enumerable:!1,configurable:!1,writable:!1,value:_});else if(g.propertyIsEnumerable!==void 0&&g.propertyIsEnumerable===g.constructor.prototype.propertyIsEnumerable)g.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},g.propertyIsEnumerable[Or]=_;else if(g.nodeType!==void 0)g[Or]=_;else throw new Error("Unable to set a non-enumerable property on object.")}return _}var nr=Object.isExtensible,sr=function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}}();function Ar(g){if(g&&g.nodeType>0)switch(g.nodeType){case 1:return g.uniqueID;case 9:return g.documentElement&&g.documentElement.uniqueID}}var Zr=typeof WeakMap=="function",es;Zr&&(es=new WeakMap);var Jr=0,Or="__immutablehash__";typeof Symbol=="function"&&(Or=Symbol(Or));var qs=16,xn=255,wn=0,Di={};function qn(g){Ke(g!==1/0,"Cannot perform this action with an infinite size.")}r(Rt,nt);function Rt(g){return g==null?to():au(g)&&!p(g)?g:to().withMutations(function(_){var D=o(g);qn(D.size),D.forEach(function(P,N){return _.set(N,P)})})}Rt.prototype.toString=function(){return this.__toString("Map {","}")},Rt.prototype.get=function(g,_){return this._root?this._root.get(0,void 0,g,_):_},Rt.prototype.set=function(g,_){return Im(this,g,_)},Rt.prototype.setIn=function(g,_){return this.updateIn(g,O,function(){return _})},Rt.prototype.remove=function(g){return Im(this,g,O)},Rt.prototype.deleteIn=function(g){return this.updateIn(g,function(){return O})},Rt.prototype.update=function(g,_,D){return arguments.length===1?g(this):this.updateIn([g],_,D)},Rt.prototype.updateIn=function(g,_,D){D||(D=_,_=void 0);var P=Mm(this,Uc(g),_,D);return P===O?void 0:P},Rt.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):to()},Rt.prototype.merge=function(){return Mc(this,void 0,arguments)},Rt.prototype.mergeWith=function(g){var _=n.call(arguments,1);return Mc(this,g,_)},Rt.prototype.mergeIn=function(g){var _=n.call(arguments,1);return this.updateIn(g,to(),function(D){return typeof D.merge=="function"?D.merge.apply(D,_):_[_.length-1]})},Rt.prototype.mergeDeep=function(){return Mc(this,tp,arguments)},Rt.prototype.mergeDeepWith=function(g){var _=n.call(arguments,1);return Mc(this,lu(g),_)},Rt.prototype.mergeDeepIn=function(g){var _=n.call(arguments,1);return this.updateIn(g,to(),function(D){return typeof D.mergeDeep=="function"?D.mergeDeep.apply(D,_):_[_.length-1]})},Rt.prototype.sort=function(g){return zn(rs(this,g))},Rt.prototype.sortBy=function(g,_){return zn(rs(this,_,g))},Rt.prototype.withMutations=function(g){var _=this.asMutable();return g(_),_.wasAltered()?_.__ensureOwner(this.__ownerID):this},Rt.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new j)},Rt.prototype.asImmutable=function(){return this.__ensureOwner()},Rt.prototype.wasAltered=function(){return this.__altered},Rt.prototype.__iterator=function(g,_){return new Yd(this,g,_)},Rt.prototype.__iterate=function(g,_){var D=this,P=0;return this._root&&this._root.iterate(function(N){return P++,g(N[1],N[0],D)},_),P},Rt.prototype.__ensureOwner=function(g){return g===this.__ownerID?this:g?Lc(this.size,this._root,g,this.__hash):(this.__ownerID=g,this.__altered=!1,this)};function au(g){return!!(g&&g[Pc])}Rt.isMap=au;var Pc="@@__IMMUTABLE_MAP__@@",rt=Rt.prototype;rt[Pc]=!0,rt[x]=rt.remove,rt.removeIn=rt.deleteIn;function rr(g,_){this.ownerID=g,this.entries=_}rr.prototype.get=function(g,_,D,P){for(var N=this.entries,J=0,de=N.length;J<de;J++)if(pe(D,N[J][0]))return N[J][1];return P},rr.prototype.update=function(g,_,D,P,N,J,de){for(var xe=N===O,Oe=this.entries,De=0,X=Oe.length;De<X&&!pe(P,Oe[De][0]);De++);var be=De<X;if(be?Oe[De][1]===N:xe)return this;if(H(de),(xe||!be)&&H(J),!(xe&&Oe.length===1)){if(!be&&!xe&&Oe.length>=Nm)return Lm(g,Oe,P,N);var ye=g&&g===this.ownerID,Ne=ye?Oe:U(Oe);return be?xe?De===X-1?Ne.pop():Ne[De]=Ne.pop():Ne[De]=[P,N]:Ne.push([P,N]),ye?(this.entries=Ne,this):new rr(g,Ne)}};function zo(g,_,D){this.ownerID=g,this.bitmap=_,this.nodes=D}zo.prototype.get=function(g,_,D,P){_===void 0&&(_=Vt(D));var N=1<<((g===0?_:_>>>g)&E),J=this.bitmap;return J&N?this.nodes[rp(J&N-1)].get(g+w,_,D,P):P},zo.prototype.update=function(g,_,D,P,N,J,de){D===void 0&&(D=Vt(P));var xe=(_===0?D:D>>>_)&E,Oe=1<<xe,De=this.bitmap,X=(De&Oe)!==0;if(!X&&N===O)return this;var be=rp(De&Oe-1),ye=this.nodes,Ne=X?ye[be]:void 0,Je=Qd(Ne,g,_+w,D,P,N,J,de);if(Je===Ne)return this;if(!X&&Je&&ye.length>=ap)return ep(g,ye,De,xe,Je);if(X&&!Je&&ye.length===2&&Pm(ye[be^1]))return ye[be^1];if(X&&Je&&ye.length===1&&Pm(Je))return Je;var mt=g&&g===this.ownerID,on=X?Je?De:De^Oe:De|Oe,Kt=X?Je?ip(ye,be,Je,mt):rw(ye,be,mt):op(ye,be,Je,mt);return mt?(this.bitmap=on,this.nodes=Kt,this):new zo(g,on,Kt)};function su(g,_,D){this.ownerID=g,this.count=_,this.nodes=D}su.prototype.get=function(g,_,D,P){_===void 0&&(_=Vt(D));var N=(g===0?_:_>>>g)&E,J=this.nodes[N];return J?J.get(g+w,_,D,P):P},su.prototype.update=function(g,_,D,P,N,J,de){D===void 0&&(D=Vt(P));var xe=(_===0?D:D>>>_)&E,Oe=N===O,De=this.nodes,X=De[xe];if(Oe&&!X)return this;var be=Qd(X,g,_+w,D,P,N,J,de);if(be===X)return this;var ye=this.count;if(!X)ye++;else if(!be&&(ye--,ye<sp))return Fm(g,De,ye,xe);var Ne=g&&g===this.ownerID,Je=ip(De,xe,be,Ne);return Ne?(this.count=ye,this.nodes=Je,this):new su(g,ye,Je)};function jo(g,_,D){this.ownerID=g,this.keyHash=_,this.entries=D}jo.prototype.get=function(g,_,D,P){for(var N=this.entries,J=0,de=N.length;J<de;J++)if(pe(D,N[J][0]))return N[J][1];return P},jo.prototype.update=function(g,_,D,P,N,J,de){D===void 0&&(D=Vt(P));var xe=N===O;if(D!==this.keyHash)return xe?this:(H(de),H(J),Fc(this,g,_,D,[P,N]));for(var Oe=this.entries,De=0,X=Oe.length;De<X&&!pe(P,Oe[De][0]);De++);var be=De<X;if(be?Oe[De][1]===N:xe)return this;if(H(de),(xe||!be)&&H(J),xe&&X===2)return new Uo(g,this.keyHash,Oe[De^1]);var ye=g&&g===this.ownerID,Ne=ye?Oe:U(Oe);return be?xe?De===X-1?Ne.pop():Ne[De]=Ne.pop():Ne[De]=[P,N]:Ne.push([P,N]),ye?(this.entries=Ne,this):new jo(g,this.keyHash,Ne)};function Uo(g,_,D){this.ownerID=g,this.keyHash=_,this.entry=D}Uo.prototype.get=function(g,_,D,P){return pe(D,this.entry[0])?this.entry[1]:P},Uo.prototype.update=function(g,_,D,P,N,J,de){var xe=N===O,Oe=pe(P,this.entry[0]);if(Oe?N===this.entry[1]:xe)return this;if(H(de),xe){H(J);return}return Oe?g&&g===this.ownerID?(this.entry[1]=N,this):new Uo(g,this.keyHash,[P,N]):(H(J),Fc(this,g,_,Vt(P),[P,N]))},rr.prototype.iterate=jo.prototype.iterate=function(g,_){for(var D=this.entries,P=0,N=D.length-1;P<=N;P++)if(g(D[_?N-P:P])===!1)return!1},zo.prototype.iterate=su.prototype.iterate=function(g,_){for(var D=this.nodes,P=0,N=D.length-1;P<=N;P++){var J=D[_?N-P:P];if(J&&J.iterate(g,_)===!1)return!1}},Uo.prototype.iterate=function(g,_){return g(this.entry)},r(Yd,ce);function Yd(g,_,D){this._type=_,this._reverse=D,this._stack=g._root&&Zd(g._root)}Yd.prototype.next=function(){for(var g=this._type,_=this._stack;_;){var D=_.node,P=_.index++,N;if(D.entry){if(P===0)return Xd(g,D.entry)}else if(D.entries){if(N=D.entries.length-1,P<=N)return Xd(g,D.entries[this._reverse?N-P:P])}else if(N=D.nodes.length-1,P<=N){var J=D.nodes[this._reverse?N-P:P];if(J){if(J.entry)return Xd(g,J.entry);_=this._stack=Zd(J,_)}continue}_=this._stack=this._stack.__prev}return Se()};function Xd(g,_){return re(g,_[0],_[1])}function Zd(g,_){return{node:g,index:0,__prev:_}}function Lc(g,_,D,P){var N=Object.create(rt);return N.size=g,N._root=_,N.__ownerID=D,N.__hash=P,N.__altered=!1,N}var Jd;function to(){return Jd||(Jd=Lc(0))}function Im(g,_,D){var P,N;if(g._root){var J=W($),de=W(I);if(P=Qd(g._root,g.__ownerID,0,void 0,_,D,J,de),!de.value)return g;N=g.size+(J.value?D===O?-1:1:0)}else{if(D===O)return g;N=1,P=new rr(g.__ownerID,[[_,D]])}return g.__ownerID?(g.size=N,g._root=P,g.__hash=void 0,g.__altered=!0,g):P?Lc(N,P):to()}function Qd(g,_,D,P,N,J,de,xe){return g?g.update(_,D,P,N,J,de,xe):J===O?g:(H(xe),H(de),new Uo(_,P,[N,J]))}function Pm(g){return g.constructor===Uo||g.constructor===jo}function Fc(g,_,D,P,N){if(g.keyHash===P)return new jo(_,P,[g.entry,N]);var J=(D===0?g.keyHash:g.keyHash>>>D)&E,de=(D===0?P:P>>>D)&E,xe,Oe=J===de?[Fc(g,_,D+w,P,N)]:(xe=new Uo(_,P,N),J<de?[g,xe]:[xe,g]);return new zo(_,1<<J|1<<de,Oe)}function Lm(g,_,D,P){g||(g=new j);for(var N=new Uo(g,Vt(D),[D,P]),J=0;J<_.length;J++){var de=_[J];N=N.update(g,0,void 0,de[0],de[1])}return N}function Fm(g,_,D,P){for(var N=0,J=0,de=new Array(D),xe=0,Oe=1,De=_.length;xe<De;xe++,Oe<<=1){var X=_[xe];X!==void 0&&xe!==P&&(N|=Oe,de[J++]=X)}return new zo(g,N,de)}function ep(g,_,D,P,N){for(var J=0,de=new Array(C),xe=0;D!==0;xe++,D>>>=1)de[xe]=D&1?_[J++]:void 0;return de[P]=N,new su(g,J+1,de)}function Mc(g,_,D){for(var P=[],N=0;N<D.length;N++){var J=D[N],de=o(J);l(J)||(de=de.map(function(xe){return Ie(xe)})),P.push(de)}return np(g,_,P)}function tp(g,_,D){return g&&g.mergeDeep&&l(_)?g.mergeDeep(_):pe(g,_)?g:_}function lu(g){return function(_,D,P){if(_&&_.mergeDeepWith&&l(D))return _.mergeDeepWith(g,D);var N=g(_,D,P);return pe(_,N)?_:N}}function np(g,_,D){return D=D.filter(function(P){return P.size!==0}),D.length===0?g:g.size===0&&!g.__ownerID&&D.length===1?g.constructor(D[0]):g.withMutations(function(P){for(var N=_?function(de,xe){P.update(xe,O,function(Oe){return Oe===O?de:_(Oe,de,xe)})}:function(de,xe){P.set(xe,de)},J=0;J<D.length;J++)D[J].forEach(N)})}function Mm(g,_,D,P){var N=g===O,J=_.next();if(J.done){var de=N?D:g,xe=P(de);return xe===de?g:xe}Ke(N||g&&g.set,"invalid keyPath");var Oe=J.value,De=N?O:g.get(Oe,O),X=Mm(De,_,D,P);return X===De?g:X===O?g.remove(Oe):(N?to():g).set(Oe,X)}function rp(g){return g=g-(g>>1&1431655765),g=(g&858993459)+(g>>2&858993459),g=g+(g>>4)&252645135,g=g+(g>>8),g=g+(g>>16),g&127}function ip(g,_,D,P){var N=P?g:U(g);return N[_]=D,N}function op(g,_,D,P){var N=g.length+1;if(P&&_+1===N)return g[_]=D,g;for(var J=new Array(N),de=0,xe=0;xe<N;xe++)xe===_?(J[xe]=D,de=-1):J[xe]=g[xe+de];return J}function rw(g,_,D){var P=g.length-1;if(D&&_===P)return g.pop(),g;for(var N=new Array(P),J=0,de=0;de<P;de++)de===_&&(J=1),N[de]=g[de+J];return N}var Nm=C/4,ap=C/2,sp=C/4;r(nn,ft);function nn(g){var _=fp();if(g==null)return _;if(lp(g))return g;var D=a(g),P=D.size;return P===0?_:(qn(P),P>0&&P<C?Ys(0,P,w,null,new Ko(D.toArray())):_.withMutations(function(N){N.setSize(P),D.forEach(function(J,de){return N.set(de,J)})}))}nn.of=function(){return this(arguments)},nn.prototype.toString=function(){return this.__toString("List [","]")},nn.prototype.get=function(g,_){if(g=se(this,g),g>=0&&g<this.size){g+=this._origin;var D=zm(this,g);return D&&D.array[g&E]}return _},nn.prototype.set=function(g,_){return iw(this,g,_)},nn.prototype.remove=function(g){return this.has(g)?g===0?this.shift():g===this.size-1?this.pop():this.splice(g,1):this},nn.prototype.insert=function(g,_){return this.splice(g,0,_)},nn.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=w,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):fp()},nn.prototype.push=function(){var g=arguments,_=this.size;return this.withMutations(function(D){pa(D,0,_+g.length);for(var P=0;P<g.length;P++)D.set(_+P,g[P])})},nn.prototype.pop=function(){return pa(this,0,-1)},nn.prototype.unshift=function(){var g=arguments;return this.withMutations(function(_){pa(_,-g.length);for(var D=0;D<g.length;D++)_.set(D,g[D])})},nn.prototype.shift=function(){return pa(this,1)},nn.prototype.merge=function(){return Bc(this,void 0,arguments)},nn.prototype.mergeWith=function(g){var _=n.call(arguments,1);return Bc(this,g,_)},nn.prototype.mergeDeep=function(){return Bc(this,tp,arguments)},nn.prototype.mergeDeepWith=function(g){var _=n.call(arguments,1);return Bc(this,lu(g),_)},nn.prototype.setSize=function(g){return pa(this,0,g)},nn.prototype.slice=function(g,_){var D=this.size;return Q(g,_,D)?this:pa(this,L(g,D),te(_,D))},nn.prototype.__iterator=function(g,_){var D=0,P=cp(this,_);return new ce(function(){var N=P();return N===Gs?Se():re(g,D++,N)})},nn.prototype.__iterate=function(g,_){for(var D=0,P=cp(this,_),N;(N=P())!==Gs&&g(N,D++,this)!==!1;);return D},nn.prototype.__ensureOwner=function(g){return g===this.__ownerID?this:g?Ys(this._origin,this._capacity,this._level,this._root,this._tail,g,this.__hash):(this.__ownerID=g,this)};function lp(g){return!!(g&&g[up])}nn.isList=lp;var up="@@__IMMUTABLE_LIST__@@",Dr=nn.prototype;Dr[up]=!0,Dr[x]=Dr.remove,Dr.setIn=rt.setIn,Dr.deleteIn=Dr.removeIn=rt.removeIn,Dr.update=rt.update,Dr.updateIn=rt.updateIn,Dr.mergeIn=rt.mergeIn,Dr.mergeDeepIn=rt.mergeDeepIn,Dr.withMutations=rt.withMutations,Dr.asMutable=rt.asMutable,Dr.asImmutable=rt.asImmutable,Dr.wasAltered=rt.wasAltered;function Ko(g,_){this.array=g,this.ownerID=_}Ko.prototype.removeBefore=function(g,_,D){if(D===_?1<<_:this.array.length===0)return this;var P=D>>>_&E;if(P>=this.array.length)return new Ko([],g);var N=P===0,J;if(_>0){var de=this.array[P];if(J=de&&de.removeBefore(g,_-w,D),J===de&&N)return this}if(N&&!J)return this;var xe=Xs(this,g);if(!N)for(var Oe=0;Oe<P;Oe++)xe.array[Oe]=void 0;return J&&(xe.array[P]=J),xe},Ko.prototype.removeAfter=function(g,_,D){if(D===(_?1<<_:0)||this.array.length===0)return this;var P=D-1>>>_&E;if(P>=this.array.length)return this;var N;if(_>0){var J=this.array[P];if(N=J&&J.removeAfter(g,_-w,D),N===J&&P===this.array.length-1)return this}var de=Xs(this,g);return de.array.splice(P+1),N&&(de.array[P]=N),de};var Gs={};function cp(g,_){var D=g._origin,P=g._capacity,N=ts(P),J=g._tail;return de(g._root,g._level,0);function de(De,X,be){return X===0?xe(De,be):Oe(De,X,be)}function xe(De,X){var be=X===N?J&&J.array:De&&De.array,ye=X>D?0:D-X,Ne=P-X;return Ne>C&&(Ne=C),function(){if(ye===Ne)return Gs;var Je=_?--Ne:ye++;return be&&be[Je]}}function Oe(De,X,be){var ye,Ne=De&&De.array,Je=be>D?0:D-be>>X,mt=(P-be>>X)+1;return mt>C&&(mt=C),function(){do{if(ye){var on=ye();if(on!==Gs)return on;ye=null}if(Je===mt)return Gs;var Kt=_?--mt:Je++;ye=de(Ne&&Ne[Kt],X-w,be+(Kt<<X))}while(!0)}}}function Ys(g,_,D,P,N,J,de){var xe=Object.create(Dr);return xe.size=_-g,xe._origin=g,xe._capacity=_,xe._level=D,xe._root=P,xe._tail=N,xe.__ownerID=J,xe.__hash=de,xe.__altered=!1,xe}var Bm;function fp(){return Bm||(Bm=Ys(0,0,w))}function iw(g,_,D){if(_=se(g,_),_!==_)return g;if(_>=g.size||_<0)return g.withMutations(function(de){_<0?pa(de,_).set(0,D):pa(de,0,_+1).set(_,D)});_+=g._origin;var P=g._tail,N=g._root,J=W(I);return _>=ts(g._capacity)?P=Nc(P,g.__ownerID,0,_,D,J):N=Nc(N,g.__ownerID,g._level,_,D,J),J.value?g.__ownerID?(g._root=N,g._tail=P,g.__hash=void 0,g.__altered=!0,g):Ys(g._origin,g._capacity,g._level,N,P):g}function Nc(g,_,D,P,N,J){var de=P>>>D&E,xe=g&&de<g.array.length;if(!xe&&N===void 0)return g;var Oe;if(D>0){var De=g&&g.array[de],X=Nc(De,_,D-w,P,N,J);return X===De?g:(Oe=Xs(g,_),Oe.array[de]=X,Oe)}return xe&&g.array[de]===N?g:(H(J),Oe=Xs(g,_),N===void 0&&de===Oe.array.length-1?Oe.array.pop():Oe.array[de]=N,Oe)}function Xs(g,_){return _&&g&&_===g.ownerID?g:new Ko(g?g.array.slice():[],_)}function zm(g,_){if(_>=ts(g._capacity))return g._tail;if(_<1<<g._level+w){for(var D=g._root,P=g._level;D&&P>0;)D=D.array[_>>>P&E],P-=w;return D}}function pa(g,_,D){_!==void 0&&(_=_|0),D!==void 0&&(D=D|0);var P=g.__ownerID||new j,N=g._origin,J=g._capacity,de=N+_,xe=D===void 0?J:D<0?J+D:N+D;if(de===N&&xe===J)return g;if(de>=xe)return g.clear();for(var Oe=g._level,De=g._root,X=0;de+X<0;)De=new Ko(De&&De.array.length?[void 0,De]:[],P),Oe+=w,X+=1<<Oe;X&&(de+=X,N+=X,xe+=X,J+=X);for(var be=ts(J),ye=ts(xe);ye>=1<<Oe+w;)De=new Ko(De&&De.array.length?[De]:[],P),Oe+=w;var Ne=g._tail,Je=ye<be?zm(g,xe-1):ye>be?new Ko([],P):Ne;if(Ne&&ye>be&&de<J&&Ne.array.length){De=Xs(De,P);for(var mt=De,on=Oe;on>w;on-=w){var Kt=be>>>on&E;mt=mt.array[Kt]=Xs(mt.array[Kt],P)}mt.array[be>>>w&E]=Ne}if(xe<J&&(Je=Je&&Je.removeAfter(P,0,xe)),de>=ye)de-=ye,xe-=ye,Oe=w,De=null,Je=Je&&Je.removeBefore(P,0,de);else if(de>N||ye<be){for(X=0;De;){var tl=de>>>Oe&E;if(tl!==ye>>>Oe&E)break;tl&&(X+=(1<<Oe)*tl),Oe-=w,De=De.array[tl]}De&&de>N&&(De=De.removeBefore(P,Oe,de-X)),De&&ye<be&&(De=De.removeAfter(P,Oe,ye-X)),X&&(de-=X,xe-=X)}return g.__ownerID?(g.size=xe-de,g._origin=de,g._capacity=xe,g._level=Oe,g._root=De,g._tail=Je,g.__hash=void 0,g.__altered=!0,g):Ys(de,xe,Oe,De,Je)}function Bc(g,_,D){for(var P=[],N=0,J=0;J<D.length;J++){var de=D[J],xe=a(de);xe.size>N&&(N=xe.size),l(de)||(xe=xe.map(function(Oe){return Ie(Oe)})),P.push(xe)}return N>g.size&&(g=g.setSize(N)),np(g,_,P)}function ts(g){return g<C?0:g-1>>>w<<w}r(zn,Rt);function zn(g){return g==null?zc():jm(g)?g:zc().withMutations(function(_){var D=o(g);qn(D.size),D.forEach(function(P,N){return _.set(N,P)})})}zn.of=function(){return this(arguments)},zn.prototype.toString=function(){return this.__toString("OrderedMap {","}")},zn.prototype.get=function(g,_){var D=this._map.get(g);return D!==void 0?this._list.get(D)[1]:_},zn.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):zc()},zn.prototype.set=function(g,_){return yn(this,g,_)},zn.prototype.remove=function(g){return yn(this,g,O)},zn.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},zn.prototype.__iterate=function(g,_){var D=this;return this._list.__iterate(function(P){return P&&g(P[1],P[0],D)},_)},zn.prototype.__iterator=function(g,_){return this._list.fromEntrySeq().__iterator(g,_)},zn.prototype.__ensureOwner=function(g){if(g===this.__ownerID)return this;var _=this._map.__ensureOwner(g),D=this._list.__ensureOwner(g);return g?dp(_,D,g,this.__hash):(this.__ownerID=g,this._map=_,this._list=D,this)};function jm(g){return au(g)&&p(g)}zn.isOrderedMap=jm,zn.prototype[S]=!0,zn.prototype[x]=zn.prototype.remove;function dp(g,_,D,P){var N=Object.create(zn.prototype);return N.size=g?g.size:0,N._map=g,N._list=_,N.__ownerID=D,N.__hash=P,N}var Um;function zc(){return Um||(Um=dp(to(),fp()))}function yn(g,_,D){var P=g._map,N=g._list,J=P.get(_),de=J!==void 0,xe,Oe;if(D===O){if(!de)return g;N.size>=C&&N.size>=P.size*2?(Oe=N.filter(function(De,X){return De!==void 0&&J!==X}),xe=Oe.toKeyedSeq().map(function(De){return De[0]}).flip().toMap(),g.__ownerID&&(xe.__ownerID=Oe.__ownerID=g.__ownerID)):(xe=P.remove(_),Oe=J===N.size-1?N.pop():N.set(J,void 0))}else if(de){if(D===N.get(J)[1])return g;xe=P,Oe=N.set(J,[_,D])}else xe=P.set(_,N.size),Oe=N.set(N.size,[_,D]);return g.__ownerID?(g.size=xe.size,g._map=xe,g._list=Oe,g.__hash=void 0,g):dp(xe,Oe)}r(zt,qe);function zt(g,_){this._iter=g,this._useKeys=_,this.size=g.size}zt.prototype.get=function(g,_){return this._iter.get(g,_)},zt.prototype.has=function(g){return this._iter.has(g)},zt.prototype.valueSeq=function(){return this._iter.valueSeq()},zt.prototype.reverse=function(){var g=this,_=pp(this,!0);return this._useKeys||(_.valueSeq=function(){return g._iter.toSeq().reverse()}),_},zt.prototype.map=function(g,_){var D=this,P=Wm(this,g,_);return this._useKeys||(P.valueSeq=function(){return D._iter.toSeq().map(g,_)}),P},zt.prototype.__iterate=function(g,_){var D=this,P;return this._iter.__iterate(this._useKeys?function(N,J){return g(N,J,D)}:(P=_?ei(this):0,function(N){return g(N,_?--P:P++,D)}),_)},zt.prototype.__iterator=function(g,_){if(this._useKeys)return this._iter.__iterator(g,_);var D=this._iter.__iterator(Y,_),P=_?ei(this):0;return new ce(function(){var N=D.next();return N.done?N:re(g,_?--P:P++,N.value,N)})},zt.prototype[S]=!0,r(Zs,Ve);function Zs(g){this._iter=g,this.size=g.size}Zs.prototype.includes=function(g){return this._iter.includes(g)},Zs.prototype.__iterate=function(g,_){var D=this,P=0;return this._iter.__iterate(function(N){return g(N,P++,D)},_)},Zs.prototype.__iterator=function(g,_){var D=this._iter.__iterator(Y,_),P=0;return new ce(function(){var N=D.next();return N.done?N:re(g,P++,N.value,N)})},r(Js,at);function Js(g){this._iter=g,this.size=g.size}Js.prototype.has=function(g){return this._iter.includes(g)},Js.prototype.__iterate=function(g,_){var D=this;return this._iter.__iterate(function(P){return g(P,P,D)},_)},Js.prototype.__iterator=function(g,_){var D=this._iter.__iterator(Y,_);return new ce(function(){var P=D.next();return P.done?P:re(g,P.value,P.value,P)})},r(Qs,qe);function Qs(g){this._iter=g,this.size=g.size}Qs.prototype.entrySeq=function(){return this._iter.toSeq()},Qs.prototype.__iterate=function(g,_){var D=this;return this._iter.__iterate(function(P){if(P){qm(P);var N=l(P);return g(N?P.get(1):P[1],N?P.get(0):P[0],D)}},_)},Qs.prototype.__iterator=function(g,_){var D=this._iter.__iterator(Y,_);return new ce(function(){for(;;){var P=D.next();if(P.done)return P;var N=P.value;if(N){qm(N);var J=l(N);return re(g,J?N.get(0):N[0],J?N.get(1):N[1],P)}}})},Zs.prototype.cacheResult=zt.prototype.cacheResult=Js.prototype.cacheResult=Qs.prototype.cacheResult=no;function Km(g){var _=$i(g);return _._iter=g,_.size=g.size,_.flip=function(){return g},_.reverse=function(){var D=g.reverse.apply(this);return D.flip=function(){return g.reverse()},D},_.has=function(D){return g.includes(D)},_.includes=function(D){return g.has(D)},_.cacheResult=no,_.__iterateUncached=function(D,P){var N=this;return g.__iterate(function(J,de){return D(de,J,N)!==!1},P)},_.__iteratorUncached=function(D,P){if(D===M){var N=g.__iterator(D,P);return new ce(function(){var J=N.next();if(!J.done){var de=J.value[0];J.value[0]=J.value[1],J.value[1]=de}return J})}return g.__iterator(D===Y?ee:Y,P)},_}function Wm(g,_,D){var P=$i(g);return P.size=g.size,P.has=function(N){return g.has(N)},P.get=function(N,J){var de=g.get(N,O);return de===O?J:_.call(D,de,N,g)},P.__iterateUncached=function(N,J){var de=this;return g.__iterate(function(xe,Oe,De){return N(_.call(D,xe,Oe,De),Oe,de)!==!1},J)},P.__iteratorUncached=function(N,J){var de=g.__iterator(M,J);return new ce(function(){var xe=de.next();if(xe.done)return xe;var Oe=xe.value,De=Oe[0];return re(N,De,_.call(D,Oe[1],De,g),xe)})},P}function pp(g,_){var D=$i(g);return D._iter=g,D.size=g.size,D.reverse=function(){return g},g.flip&&(D.flip=function(){var P=Km(g);return P.reverse=function(){return g.flip()},P}),D.get=function(P,N){return g.get(_?P:-1-P,N)},D.has=function(P){return g.has(_?P:-1-P)},D.includes=function(P){return g.includes(P)},D.cacheResult=no,D.__iterate=function(P,N){var J=this;return g.__iterate(function(de,xe){return P(de,xe,J)},!N)},D.__iterator=function(P,N){return g.__iterator(P,!N)},D}function hp(g,_,D,P){var N=$i(g);return P&&(N.has=function(J){var de=g.get(J,O);return de!==O&&!!_.call(D,de,J,g)},N.get=function(J,de){var xe=g.get(J,O);return xe!==O&&_.call(D,xe,J,g)?xe:de}),N.__iterateUncached=function(J,de){var xe=this,Oe=0;return g.__iterate(function(De,X,be){if(_.call(D,De,X,be))return Oe++,J(De,P?X:Oe-1,xe)},de),Oe},N.__iteratorUncached=function(J,de){var xe=g.__iterator(M,de),Oe=0;return new ce(function(){for(;;){var De=xe.next();if(De.done)return De;var X=De.value,be=X[0],ye=X[1];if(_.call(D,ye,be,g))return re(J,P?be:Oe++,ye,De)}})},N}function ow(g,_,D){var P=Rt().asMutable();return g.__iterate(function(N,J){P.update(_.call(D,N,J,g),0,function(de){return de+1})}),P.asImmutable()}function gr(g,_,D){var P=c(g),N=(p(g)?zn():Rt()).asMutable();g.__iterate(function(de,xe){N.update(_.call(D,de,xe,g),function(Oe){return Oe=Oe||[],Oe.push(P?[xe,de]:de),Oe})});var J=Gm(g);return N.map(function(de){return It(g,J(de))})}function uu(g,_,D,P){var N=g.size;if(_!==void 0&&(_=_|0),D!==void 0&&(D=D|0),Q(_,D,N))return g;var J=L(_,N),de=te(D,N);if(J!==J||de!==de)return uu(g.toSeq().cacheResult(),_,D,P);var xe=de-J,Oe;xe===xe&&(Oe=xe<0?0:xe);var De=$i(g);return De.size=Oe===0?Oe:g.size&&Oe||void 0,!P&&Ee(g)&&Oe>=0&&(De.get=function(X,be){return X=se(this,X),X>=0&&X<Oe?g.get(X+J,be):be}),De.__iterateUncached=function(X,be){var ye=this;if(Oe===0)return 0;if(be)return this.cacheResult().__iterate(X,be);var Ne=0,Je=!0,mt=0;return g.__iterate(function(on,Kt){if(!(Je&&(Je=Ne++<J)))return mt++,X(on,P?Kt:mt-1,ye)!==!1&&mt!==Oe}),mt},De.__iteratorUncached=function(X,be){if(Oe!==0&&be)return this.cacheResult().__iterator(X,be);var ye=Oe!==0&&g.__iterator(X,be),Ne=0,Je=0;return new ce(function(){for(;Ne++<J;)ye.next();if(++Je>Oe)return Se();var mt=ye.next();return P||X===Y?mt:X===ee?re(X,Je-1,void 0,mt):re(X,Je-1,mt.value[1],mt)})},De}function ns(g,_,D){var P=$i(g);return P.__iterateUncached=function(N,J){var de=this;if(J)return this.cacheResult().__iterate(N,J);var xe=0;return g.__iterate(function(Oe,De,X){return _.call(D,Oe,De,X)&&++xe&&N(Oe,De,de)}),xe},P.__iteratorUncached=function(N,J){var de=this;if(J)return this.cacheResult().__iterator(N,J);var xe=g.__iterator(M,J),Oe=!0;return new ce(function(){if(!Oe)return Se();var De=xe.next();if(De.done)return De;var X=De.value,be=X[0],ye=X[1];return _.call(D,ye,be,de)?N===M?De:re(N,be,ye,De):(Oe=!1,Se())})},P}function gp(g,_,D,P){var N=$i(g);return N.__iterateUncached=function(J,de){var xe=this;if(de)return this.cacheResult().__iterate(J,de);var Oe=!0,De=0;return g.__iterate(function(X,be,ye){if(!(Oe&&(Oe=_.call(D,X,be,ye))))return De++,J(X,P?be:De-1,xe)}),De},N.__iteratorUncached=function(J,de){var xe=this;if(de)return this.cacheResult().__iterator(J,de);var Oe=g.__iterator(M,de),De=!0,X=0;return new ce(function(){var be,ye,Ne;do{if(be=Oe.next(),be.done)return P||J===Y?be:J===ee?re(J,X++,void 0,be):re(J,X++,be.value[1],be);var Je=be.value;ye=Je[0],Ne=Je[1],De&&(De=_.call(D,Ne,ye,xe))}while(De);return J===M?be:re(J,ye,Ne,be)})},N}function mp(g,_){var D=c(g),P=[g].concat(_).map(function(de){return l(de)?D&&(de=o(de)):de=D?V(de):he(Array.isArray(de)?de:[de]),de}).filter(function(de){return de.size!==0});if(P.length===0)return g;if(P.length===1){var N=P[0];if(N===g||D&&c(N)||f(g)&&f(N))return N}var J=new tt(P);return D?J=J.toKeyedSeq():f(g)||(J=J.toSetSeq()),J=J.flatten(!0),J.size=P.reduce(function(de,xe){if(de!==void 0){var Oe=xe.size;if(Oe!==void 0)return de+Oe}},0),J}function Qr(g,_,D){var P=$i(g);return P.__iterateUncached=function(N,J){var de=0,xe=!1;function Oe(De,X){var be=this;De.__iterate(function(ye,Ne){return(!_||X<_)&&l(ye)?Oe(ye,X+1):N(ye,D?Ne:de++,be)===!1&&(xe=!0),!xe},J)}return Oe(g,0),de},P.__iteratorUncached=function(N,J){var de=g.__iterator(N,J),xe=[],Oe=0;return new ce(function(){for(;de;){var De=de.next();if(De.done!==!1){de=xe.pop();continue}var X=De.value;if(N===M&&(X=X[1]),(!_||xe.length<_)&&l(X))xe.push(de),de=X.__iterator(N,J);else return D?De:re(N,Oe++,X,De)}return Se()})},P}function Vm(g,_,D){var P=Gm(g);return g.toSeq().map(function(N,J){return P(_.call(D,N,J,g))}).flatten(!0)}function Hm(g,_){var D=$i(g);return D.size=g.size&&g.size*2-1,D.__iterateUncached=function(P,N){var J=this,de=0;return g.__iterate(function(xe,Oe){return(!de||P(_,de++,J)!==!1)&&P(xe,de++,J)!==!1},N),de},D.__iteratorUncached=function(P,N){var J=g.__iterator(Y,N),de=0,xe;return new ce(function(){return(!xe||de%2)&&(xe=J.next(),xe.done)?xe:de%2?re(P,de++,_):re(P,de++,xe.value,xe)})},D}function rs(g,_,D){_||(_=fu);var P=c(g),N=0,J=g.toSeq().map(function(de,xe){return[xe,de,N++,D?D(de,xe,g):de]}).toArray();return J.sort(function(de,xe){return _(de[3],xe[3])||de[2]-xe[2]}).forEach(P?function(de,xe){J[xe].length=2}:function(de,xe){J[xe]=de[1]}),P?qe(J):f(g)?Ve(J):at(J)}function cu(g,_,D){if(_||(_=fu),D){var P=g.toSeq().map(function(N,J){return[N,D(N,J,g)]}).reduce(function(N,J){return vp(_,N[1],J[1])?J:N});return P&&P[0]}else return g.reduce(function(N,J){return vp(_,N,J)?J:N})}function vp(g,_,D){var P=g(D,_);return P===0&&D!==_&&(D==null||D!==D)||P>0}function jc(g,_,D){var P=$i(g);return P.size=new tt(D).map(function(N){return N.size}).min(),P.__iterate=function(N,J){for(var de=this.__iterator(Y,J),xe,Oe=0;!(xe=de.next()).done&&N(xe.value,Oe++,this)!==!1;);return Oe},P.__iteratorUncached=function(N,J){var de=D.map(function(De){return De=i(De),Pe(J?De.reverse():De)}),xe=0,Oe=!1;return new ce(function(){var De;return Oe||(De=de.map(function(X){return X.next()}),Oe=De.some(function(X){return X.done})),Oe?Se():re(N,xe++,_.apply(null,De.map(function(X){return X.value})))})},P}function It(g,_){return Ee(g)?_:g.constructor(_)}function qm(g){if(g!==Object(g))throw new TypeError("Expected [K, V] tuple: "+g)}function ei(g){return qn(g.size),le(g)}function Gm(g){return c(g)?o:f(g)?a:s}function $i(g){return Object.create((c(g)?qe:f(g)?Ve:at).prototype)}function no(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):We.prototype.cacheResult.call(this)}function fu(g,_){return g>_?1:g<_?-1:0}function Uc(g){var _=Pe(g);if(!_){if(!ze(g))throw new TypeError("Expected iterable or array-like: "+g);_=Pe(i(g))}return _}r(Ut,nt);function Ut(g,_){var D,P=function(de){if(de instanceof P)return de;if(!(this instanceof P))return new P(de);if(!D){D=!0;var xe=Object.keys(g);yp(N,xe),N.size=xe.length,N._name=_,N._keys=xe,N._defaultValues=g}this._map=Rt(de)},N=P.prototype=Object.create(_n);return N.constructor=P,P}Ut.prototype.toString=function(){return this.__toString(Ym(this)+" {","}")},Ut.prototype.has=function(g){return this._defaultValues.hasOwnProperty(g)},Ut.prototype.get=function(g,_){if(!this.has(g))return _;var D=this._defaultValues[g];return this._map?this._map.get(g,D):D},Ut.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var g=this.constructor;return g._empty||(g._empty=el(this,to()))},Ut.prototype.set=function(g,_){if(!this.has(g))throw new Error('Cannot set unknown key "'+g+'" on '+Ym(this));var D=this._map&&this._map.set(g,_);return this.__ownerID||D===this._map?this:el(this,D)},Ut.prototype.remove=function(g){if(!this.has(g))return this;var _=this._map&&this._map.remove(g);return this.__ownerID||_===this._map?this:el(this,_)},Ut.prototype.wasAltered=function(){return this._map.wasAltered()},Ut.prototype.__iterator=function(g,_){var D=this;return o(this._defaultValues).map(function(P,N){return D.get(N)}).__iterator(g,_)},Ut.prototype.__iterate=function(g,_){var D=this;return o(this._defaultValues).map(function(P,N){return D.get(N)}).__iterate(g,_)},Ut.prototype.__ensureOwner=function(g){if(g===this.__ownerID)return this;var _=this._map&&this._map.__ensureOwner(g);return g?el(this,_,g):(this.__ownerID=g,this._map=_,this)};var _n=Ut.prototype;_n[x]=_n.remove,_n.deleteIn=_n.removeIn=rt.removeIn,_n.merge=rt.merge,_n.mergeWith=rt.mergeWith,_n.mergeIn=rt.mergeIn,_n.mergeDeep=rt.mergeDeep,_n.mergeDeepWith=rt.mergeDeepWith,_n.mergeDeepIn=rt.mergeDeepIn,_n.setIn=rt.setIn,_n.update=rt.update,_n.updateIn=rt.updateIn,_n.withMutations=rt.withMutations,_n.asMutable=rt.asMutable,_n.asImmutable=rt.asImmutable;function el(g,_,D){var P=Object.create(Object.getPrototypeOf(g));return P._map=_,P.__ownerID=D,P}function Ym(g){return g._name||g.constructor.name||"Record"}function yp(g,_){try{_.forEach(aw.bind(void 0,g))}catch{}}function aw(g,_){Object.defineProperty(g,_,{get:function(){return this.get(_)},set:function(D){Ke(this.__ownerID,"Cannot set on an immutable record."),this.set(_,D)}})}r(Cn,Ot);function Cn(g){return g==null?Kc():bp(g)&&!p(g)?g:Kc().withMutations(function(_){var D=s(g);qn(D.size),D.forEach(function(P){return _.add(P)})})}Cn.of=function(){return this(arguments)},Cn.fromKeys=function(g){return this(o(g).keySeq())},Cn.prototype.toString=function(){return this.__toString("Set {","}")},Cn.prototype.has=function(g){return this._map.has(g)},Cn.prototype.add=function(g){return ha(this,this._map.set(g,!0))},Cn.prototype.remove=function(g){return ha(this,this._map.remove(g))},Cn.prototype.clear=function(){return ha(this,this._map.clear())},Cn.prototype.union=function(){var g=n.call(arguments,0);return g=g.filter(function(_){return _.size!==0}),g.length===0?this:this.size===0&&!this.__ownerID&&g.length===1?this.constructor(g[0]):this.withMutations(function(_){for(var D=0;D<g.length;D++)s(g[D]).forEach(function(P){return _.add(P)})})},Cn.prototype.intersect=function(){var g=n.call(arguments,0);if(g.length===0)return this;g=g.map(function(D){return s(D)});var _=this;return this.withMutations(function(D){_.forEach(function(P){g.every(function(N){return N.includes(P)})||D.remove(P)})})},Cn.prototype.subtract=function(){var g=n.call(arguments,0);if(g.length===0)return this;g=g.map(function(D){return s(D)});var _=this;return this.withMutations(function(D){_.forEach(function(P){g.some(function(N){return N.includes(P)})&&D.remove(P)})})},Cn.prototype.merge=function(){return this.union.apply(this,arguments)},Cn.prototype.mergeWith=function(g){var _=n.call(arguments,1);return this.union.apply(this,_)},Cn.prototype.sort=function(g){return ci(rs(this,g))},Cn.prototype.sortBy=function(g,_){return ci(rs(this,_,g))},Cn.prototype.wasAltered=function(){return this._map.wasAltered()},Cn.prototype.__iterate=function(g,_){var D=this;return this._map.__iterate(function(P,N){return g(N,N,D)},_)},Cn.prototype.__iterator=function(g,_){return this._map.map(function(D,P){return P}).__iterator(g,_)},Cn.prototype.__ensureOwner=function(g){if(g===this.__ownerID)return this;var _=this._map.__ensureOwner(g);return g?this.__make(_,g):(this.__ownerID=g,this._map=_,this)};function bp(g){return!!(g&&g[xp])}Cn.isSet=bp;var xp="@@__IMMUTABLE_SET__@@",xr=Cn.prototype;xr[xp]=!0,xr[x]=xr.remove,xr.mergeDeep=xr.merge,xr.mergeDeepWith=xr.mergeWith,xr.withMutations=rt.withMutations,xr.asMutable=rt.asMutable,xr.asImmutable=rt.asImmutable,xr.__empty=Kc,xr.__make=Xm;function ha(g,_){return g.__ownerID?(g.size=_.size,g._map=_,g):_===g._map?g:_.size===0?g.__empty():g.__make(_)}function Xm(g,_){var D=Object.create(xr);return D.size=g?g.size:0,D._map=g,D.__ownerID=_,D}var wp;function Kc(){return wp||(wp=Xm(to()))}r(ci,Cn);function ci(g){return g==null?pu():Wc(g)?g:pu().withMutations(function(_){var D=s(g);qn(D.size),D.forEach(function(P){return _.add(P)})})}ci.of=function(){return this(arguments)},ci.fromKeys=function(g){return this(o(g).keySeq())},ci.prototype.toString=function(){return this.__toString("OrderedSet {","}")};function Wc(g){return bp(g)&&p(g)}ci.isOrderedSet=Wc;var du=ci.prototype;du[S]=!0,du.__empty=pu,du.__make=Zm;function Zm(g,_){var D=Object.create(du);return D.size=g?g.size:0,D._map=g,D.__ownerID=_,D}var Vc;function pu(){return Vc||(Vc=Zm(zc()))}r(Gn,ft);function Gn(g){return g==null?Hc():Sp(g)?g:Hc().unshiftAll(g)}Gn.of=function(){return this(arguments)},Gn.prototype.toString=function(){return this.__toString("Stack [","]")},Gn.prototype.get=function(g,_){var D=this._head;for(g=se(this,g);D&&g--;)D=D.next;return D?D.value:_},Gn.prototype.peek=function(){return this._head&&this._head.value},Gn.prototype.push=function(){if(arguments.length===0)return this;for(var g=this.size+arguments.length,_=this._head,D=arguments.length-1;D>=0;D--)_={value:arguments[D],next:_};return this.__ownerID?(this.size=g,this._head=_,this.__hash=void 0,this.__altered=!0,this):Wo(g,_)},Gn.prototype.pushAll=function(g){if(g=a(g),g.size===0)return this;qn(g.size);var _=this.size,D=this._head;return g.reverse().forEach(function(P){_++,D={value:P,next:D}}),this.__ownerID?(this.size=_,this._head=D,this.__hash=void 0,this.__altered=!0,this):Wo(_,D)},Gn.prototype.pop=function(){return this.slice(1)},Gn.prototype.unshift=function(){return this.push.apply(this,arguments)},Gn.prototype.unshiftAll=function(g){return this.pushAll(g)},Gn.prototype.shift=function(){return this.pop.apply(this,arguments)},Gn.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):Hc()},Gn.prototype.slice=function(g,_){if(Q(g,_,this.size))return this;var D=L(g,this.size),P=te(_,this.size);if(P!==this.size)return ft.prototype.slice.call(this,g,_);for(var N=this.size-D,J=this._head;D--;)J=J.next;return this.__ownerID?(this.size=N,this._head=J,this.__hash=void 0,this.__altered=!0,this):Wo(N,J)},Gn.prototype.__ensureOwner=function(g){return g===this.__ownerID?this:g?Wo(this.size,this._head,g,this.__hash):(this.__ownerID=g,this.__altered=!1,this)},Gn.prototype.__iterate=function(g,_){if(_)return this.reverse().__iterate(g);for(var D=0,P=this._head;P&&g(P.value,D++,this)!==!1;)P=P.next;return D},Gn.prototype.__iterator=function(g,_){if(_)return this.reverse().__iterator(g);var D=0,P=this._head;return new ce(function(){if(P){var N=P.value;return P=P.next,re(g,D++,N)}return Se()})};function Sp(g){return!!(g&&g[jr])}Gn.isStack=Sp;var jr="@@__IMMUTABLE_STACK__@@",ga=Gn.prototype;ga[jr]=!0,ga.withMutations=rt.withMutations,ga.asMutable=rt.asMutable,ga.asImmutable=rt.asImmutable,ga.wasAltered=rt.wasAltered;function Wo(g,_,D,P){var N=Object.create(ga);return N.size=g,N._head=_,N.__ownerID=D,N.__hash=P,N.__altered=!1,N}var _p;function Hc(){return _p||(_p=Wo(0))}function ro(g,_){var D=function(P){g.prototype[P]=_[P]};return Object.keys(_).forEach(D),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(_).forEach(D),g}i.Iterator=ce,ro(i,{toArray:function(){qn(this.size);var g=new Array(this.size||0);return this.valueSeq().__iterate(function(_,D){g[D]=_}),g},toIndexedSeq:function(){return new Zs(this)},toJS:function(){return this.toSeq().map(function(g){return g&&typeof g.toJS=="function"?g.toJS():g}).__toJS()},toJSON:function(){return this.toSeq().map(function(g){return g&&typeof g.toJSON=="function"?g.toJSON():g}).__toJS()},toKeyedSeq:function(){return new zt(this,!0)},toMap:function(){return Rt(this.toKeyedSeq())},toObject:function(){qn(this.size);var g={};return this.__iterate(function(_,D){g[D]=_}),g},toOrderedMap:function(){return zn(this.toKeyedSeq())},toOrderedSet:function(){return ci(c(this)?this.valueSeq():this)},toSet:function(){return Cn(c(this)?this.valueSeq():this)},toSetSeq:function(){return new Js(this)},toSeq:function(){return f(this)?this.toIndexedSeq():c(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Gn(c(this)?this.valueSeq():this)},toList:function(){return nn(c(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(g,_){return this.size===0?g+_:g+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+_},concat:function(){var g=n.call(arguments,0);return It(this,mp(this,g))},includes:function(g){return this.some(function(_){return pe(_,g)})},entries:function(){return this.__iterator(M)},every:function(g,_){qn(this.size);var D=!0;return this.__iterate(function(P,N,J){if(!g.call(_,P,N,J))return D=!1,!1}),D},filter:function(g,_){return It(this,hp(this,g,_,!0))},find:function(g,_,D){var P=this.findEntry(g,_);return P?P[1]:D},findEntry:function(g,_){var D;return this.__iterate(function(P,N,J){if(g.call(_,P,N,J))return D=[N,P],!1}),D},findLastEntry:function(g,_){return this.toSeq().reverse().findEntry(g,_)},forEach:function(g,_){return qn(this.size),this.__iterate(_?g.bind(_):g)},join:function(g){qn(this.size),g=g!==void 0?""+g:",";var _="",D=!0;return this.__iterate(function(P){D?D=!1:_+=g,_+=P!=null?P.toString():""}),_},keys:function(){return this.__iterator(ee)},map:function(g,_){return It(this,Wm(this,g,_))},reduce:function(g,_,D){qn(this.size);var P,N;return arguments.length<2?N=!0:P=_,this.__iterate(function(J,de,xe){N?(N=!1,P=J):P=g.call(D,P,J,de,xe)}),P},reduceRight:function(g,_,D){var P=this.toKeyedSeq().reverse();return P.reduce.apply(P,arguments)},reverse:function(){return It(this,pp(this,!0))},slice:function(g,_){return It(this,uu(this,g,_,!0))},some:function(g,_){return!this.every(Vo(g),_)},sort:function(g){return It(this,rs(this,g))},values:function(){return this.__iterator(Y)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size!==void 0?this.size===0:!this.some(function(){return!0})},count:function(g,_){return le(g?this.toSeq().filter(g,_):this)},countBy:function(g,_){return ow(this,g,_)},equals:function(g){return me(this,g)},entrySeq:function(){var g=this;if(g._cache)return new tt(g._cache);var _=g.toSeq().map(lw).toIndexedSeq();return _.fromEntrySeq=function(){return g.toSeq()},_},filterNot:function(g,_){return this.filter(Vo(g),_)},findLast:function(g,_,D){return this.toKeyedSeq().reverse().find(g,_,D)},first:function(){return this.find(ie)},flatMap:function(g,_){return It(this,Vm(this,g,_))},flatten:function(g){return It(this,Qr(this,g,!0))},fromEntrySeq:function(){return new Qs(this)},get:function(g,_){return this.find(function(D,P){return pe(P,g)},void 0,_)},getIn:function(g,_){for(var D=this,P=Uc(g),N;!(N=P.next()).done;){var J=N.value;if(D=D&&D.get?D.get(J,O):O,D===O)return _}return D},groupBy:function(g,_){return gr(this,g,_)},has:function(g){return this.get(g,O)!==O},hasIn:function(g){return this.getIn(g,O)!==O},isSubset:function(g){return g=typeof g.includes=="function"?g:i(g),this.every(function(_){return g.includes(_)})},isSuperset:function(g){return g=typeof g.isSubset=="function"?g:i(g),g.isSubset(this)},keySeq:function(){return this.toSeq().map(sw).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(g){return cu(this,g)},maxBy:function(g,_){return cu(this,_,g)},min:function(g){return cu(this,g?Jm(g):Ep)},minBy:function(g,_){return cu(this,_?Jm(_):Ep,g)},rest:function(){return this.slice(1)},skip:function(g){return this.slice(Math.max(0,g))},skipLast:function(g){return It(this,this.toSeq().reverse().skip(g).reverse())},skipWhile:function(g,_){return It(this,gp(this,g,_,!0))},skipUntil:function(g,_){return this.skipWhile(Vo(g),_)},sortBy:function(g,_){return It(this,rs(this,_,g))},take:function(g){return this.slice(0,Math.max(0,g))},takeLast:function(g){return It(this,this.toSeq().reverse().take(g).reverse())},takeWhile:function(g,_){return It(this,ns(this,g,_))},takeUntil:function(g,_){return this.takeWhile(Vo(g),_)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=ma(this))}});var wr=i.prototype;wr[y]=!0,wr[oe]=wr.values,wr.__toJS=wr.toArray,wr.__toStringMapper=Qm,wr.inspect=wr.toSource=function(){return this.toString()},wr.chain=wr.flatMap,wr.contains=wr.includes,function(){try{Object.defineProperty(wr,"length",{get:function(){if(!i.noLengthWarning){var g;try{throw new Error}catch(_){g=_.stack}if(g.indexOf("_wrapObject")===-1)return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+g),this.size}}})}catch{}}(),ro(o,{flip:function(){return It(this,Km(this))},findKey:function(g,_){var D=this.findEntry(g,_);return D&&D[0]},findLastKey:function(g,_){return this.toSeq().reverse().findKey(g,_)},keyOf:function(g){return this.findKey(function(_){return pe(_,g)})},lastKeyOf:function(g){return this.findLastKey(function(_){return pe(_,g)})},mapEntries:function(g,_){var D=this,P=0;return It(this,this.toSeq().map(function(N,J){return g.call(_,[J,N],P++,D)}).fromEntrySeq())},mapKeys:function(g,_){var D=this;return It(this,this.toSeq().flip().map(function(P,N){return g.call(_,P,N,D)}).flip())}});var qc=o.prototype;qc[m]=!0,qc[oe]=wr.entries,qc.__toJS=wr.toObject,qc.__toStringMapper=function(g,_){return JSON.stringify(_)+": "+Qm(g)},ro(a,{toKeyedSeq:function(){return new zt(this,!1)},filter:function(g,_){return It(this,hp(this,g,_,!1))},findIndex:function(g,_){var D=this.findEntry(g,_);return D?D[0]:-1},indexOf:function(g){var _=this.toKeyedSeq().keyOf(g);return _===void 0?-1:_},lastIndexOf:function(g){var _=this.toKeyedSeq().reverse().keyOf(g);return _===void 0?-1:_},reverse:function(){return It(this,pp(this,!1))},slice:function(g,_){return It(this,uu(this,g,_,!1))},splice:function(g,_){var D=arguments.length;if(_=Math.max(_|0,0),D===0||D===2&&!_)return this;g=L(g,g<0?this.count():this.size);var P=this.slice(0,g);return It(this,D===1?P:P.concat(U(arguments,2),this.slice(g+_)))},findLastIndex:function(g,_){var D=this.toKeyedSeq().findLastKey(g,_);return D===void 0?-1:D},first:function(){return this.get(0)},flatten:function(g){return It(this,Qr(this,g,!1))},get:function(g,_){return g=se(this,g),g<0||this.size===1/0||this.size!==void 0&&g>this.size?_:this.find(function(D,P){return P===g},void 0,_)},has:function(g){return g=se(this,g),g>=0&&(this.size!==void 0?this.size===1/0||g<this.size:this.indexOf(g)!==-1)},interpose:function(g){return It(this,Hm(this,g))},interleave:function(){var g=[this].concat(U(arguments)),_=jc(this.toSeq(),Ve.of,g),D=_.flatten(!0);return _.size&&(D.size=_.size*g.length),It(this,D)},last:function(){return this.get(-1)},skipWhile:function(g,_){return It(this,gp(this,g,_,!1))},zip:function(){var g=[this].concat(U(arguments));return It(this,jc(this,Cp,g))},zipWith:function(g){var _=U(arguments);return _[0]=this,It(this,jc(this,g,_))}}),a.prototype[v]=!0,a.prototype[S]=!0,ro(s,{get:function(g,_){return this.has(g)?g:_},includes:function(g){return this.has(g)},keySeq:function(){return this.valueSeq()}}),s.prototype.has=wr.includes,ro(qe,o.prototype),ro(Ve,a.prototype),ro(at,s.prototype),ro(nt,o.prototype),ro(ft,a.prototype),ro(Ot,s.prototype);function sw(g,_){return _}function lw(g,_){return[_,g]}function Vo(g){return function(){return!g.apply(this,arguments)}}function Jm(g){return function(){return-g.apply(this,arguments)}}function Qm(g){return typeof g=="string"?JSON.stringify(g):g}function Cp(){return U(arguments)}function Ep(g,_){return g<_?1:g>_?-1:0}function ma(g){if(g.size===1/0)return 0;var _=p(g),D=c(g),P=_?1:0,N=g.__iterate(D?_?function(J,de){P=31*P+ev(Vt(J),Vt(de))|0}:function(J,de){P=P+ev(Vt(J),Vt(de))|0}:_?function(J){P=31*P+Vt(J)|0}:function(J){P=P+Vt(J)|0});return Gc(N,P)}function Gc(g,_){return _=Zt(_,3432918353),_=Zt(_<<15|_>>>-15,461845907),_=Zt(_<<13|_>>>-13,5),_=(_+3864292196|0)^g,_=Zt(_^_>>>16,2246822507),_=Zt(_^_>>>13,3266489909),_=Gt(_^_>>>16),_}function ev(g,_){return g^_+2654435769+(g<<6)+(g>>2)|0}var uw={Iterable:i,Seq:We,Collection:st,Map:Rt,OrderedMap:zn,List:nn,Stack:Gn,Set:Cn,OrderedSet:ci,Record:Ut,Range:Ge,Repeat:_e,is:pe,fromJS:Ie};return uw})})(IU);var tn=IU.exports,pTe=tn,hTe=pTe.OrderedMap,gTe={createFromArray:function(t){return hTe(t.map(function(n){return[n.getKey(),n]}))}},bm=gTe;function mTe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var dA=tn,XE=dA.Map,ZE=dA.OrderedSet,vTe=dA.Record,PU=ZE(),LU={style:PU,entity:null},yTe=vTe(LU),pA=function(e){mTe(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 hA;var o={style:PU,entity:null},a=XE(o).merge(i),s=g_.get(a);if(s)return s;var l=new t(a);return g_=g_.set(a,l),l},t.fromJS=function(i){var o=i.style,a=i.entity;return new t({style:Array.isArray(o)?ZE(o):o,entity:Array.isArray(a)?ZE(a):a})},t}(yTe),hA=new pA,g_=XE([[XE(LU),hA]]);pA.EMPTY=hA;var No=pA;function bTe(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 xm=bTe;function xTe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var wTe=No,eF=xm,wm=tn,FU=wm.List,STe=wm.Map,_Te=wm.OrderedSet,CTe=wm.Record,ETe=wm.Repeat,kTe=_Te(),TTe={key:"",type:"unstyled",text:"",characterList:FU(),depth:0,data:STe()},RTe=CTe(TTe),ATe=function(t){if(!t)return t;var n=t.characterList,r=t.text;return r&&!n&&(t.characterList=FU(ETe(wTe.EMPTY,r.length))),t},OTe=function(e){xTe(t,e);function t(r){return e.call(this,ATe(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():kTe},n.getEntityAt=function(i){var o=this.getCharacterList().get(i);return o?o.getEntity():null},n.findStyleRanges=function(i,o){eF(this.getCharacterList(),DTe,i,o)},n.findEntityRanges=function(i,o){eF(this.getCharacterList(),$Te,i,o)},t}(RTe);function DTe(e,t){return e.getStyle()===t.getStyle()}function $Te(e,t){return e.getEntity()===t.getEntity()}var wc=OTe;function ITe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var PTe=No,tF=xm,Sm=tn,JE=Sm.List,LTe=Sm.Map,FTe=Sm.OrderedSet,MTe=Sm.Record,NTe=Sm.Repeat,BTe=FTe(),nF={parent:null,characterList:JE(),data:LTe(),depth:0,key:"",text:"",type:"unstyled",children:JE(),prevSibling:null,nextSibling:null},zTe=function(t,n){return t.getStyle()===n.getStyle()},jTe=function(t,n){return t.getEntity()===n.getEntity()},UTe=function(t){if(!t)return t;var n=t.characterList,r=t.text;return r&&!n&&(t.characterList=JE(NTe(PTe.EMPTY,r.length))),t},KTe=function(e){ITe(t,e);function t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:nF;return e.call(this,UTe(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():BTe},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){tF(this.getCharacterList(),zTe,i,o)},n.findEntityRanges=function(i,o){tF(this.getCharacterList(),jTe,i,o)},t}(MTe(nF)),Bo=KTe,rF=No,WTe=tn,VTe=WTe.Map,HTe={add:function(t,n,r){return iF(t,n,r,!0)},remove:function(t,n,r){return iF(t,n,r,!1)}};function iF(e,t,n,r){var i=e.getBlockMap(),o=t.getStartKey(),a=t.getStartOffset(),s=t.getEndKey(),l=t.getEndOffset(),c=i.skipUntil(function(f,h){return h===o}).takeUntil(function(f,h){return h===s}).concat(VTe([[s,i.get(s)]])).map(function(f,h){var p,y;o===s?(p=a,y=l):(p=h===o?a:0,y=h===s?l:f.getLength());for(var m=f.getCharacterList(),v;p<y;)v=m.get(p),m=m.set(p,r?rF.applyStyle(v,n):rF.removeStyle(v,n)),p++;return f.set("characterList",m)});return e.merge({blockMap:i.merge(c),selectionBefore:t,selectionAfter:t})}var qTe=HTe,GTe=No;function YTe(e,t,n,r){for(var i=t,o=e.getCharacterList();i<n;)o=o.set(i,GTe.applyEntity(o.get(i),r)),i++;return e.set("characterList",o)}var XTe=YTe,ZTe=XTe,JTe=tn;function QTe(e,t,n){var r=e.getBlockMap(),i=t.getStartKey(),o=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),l=r.skipUntil(function(c,f){return f===i}).takeUntil(function(c,f){return f===a}).toOrderedMap().merge(JTe.OrderedMap([[a,r.get(a)]])).map(function(c,f){var h=f===i?o:0,p=f===a?s:c.getLength();return ZTe(c,h,p,n)});return e.merge({blockMap:r.merge(l),selectionBefore:t,selectionAfter:t})}var eRe=QTe,tRe={getRemovalRange:function(t,n,r,i,o){var a=r.split(" ");a=a.map(function(S,x){if(o==="forward"){if(x>0)return" "+S}else if(x<a.length-1)return S+" ";return S});for(var s=i,l,c,f=null,h=null,p=0;p<a.length;p++){if(c=a[p],l=s+c.length,t<l&&s<n)f!==null||(f=s),h=l;else if(f!==null)break;s=l}var y=i+r.length,m=f===i,v=h===y;return(!m&&v||m&&!v)&&(o==="forward"?h!==y&&h++:f!==i&&f--),{start:f,end:h}}},nRe=tRe;function rRe(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 ln=rRe,iRe=ln;function oRe(e,t){var n=[];return e.findEntityRanges(function(r){return r.getEntity()===t},function(r,i){n.push({start:r,end:i})}),n.length||iRe(!1),n}var aRe=oRe,sRe=nRe,lRe=aRe,uRe=ln;function cRe(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 c=r;if(s&&s===l)c=fh(e,t,c,i,s,!0,!0);else if(s&&l){var f=fh(e,t,c,i,s,!1,!0),h=fh(e,n,c,i,l,!1,!1);c=c.merge({anchorOffset:f.getAnchorOffset(),focusOffset:h.getFocusOffset(),isBackward:!1})}else if(s){var p=fh(e,t,c,i,s,!1,!0);c=c.merge({anchorOffset:p.getStartOffset(),isBackward:!1})}else if(l){var y=fh(e,n,c,i,l,!1,!1);c=c.merge({focusOffset:y.getEndOffset(),isBackward:!1})}return c}function fh(e,t,n,r,i,o,a){var s=n.getStartOffset(),l=n.getEndOffset(),c=e.__get(i),f=c.getMutability(),h=a?s:l;if(f==="MUTABLE")return n;var p=lRe(t,i).filter(function(v){return h<=v.end&&h>=v.start});p.length!=1&&uRe(!1);var y=p[0];if(f==="IMMUTABLE")return n.merge({anchorOffset:y.start,focusOffset:y.end,isBackward:!1});o||(a?l=y.end:s=y.start);var m=sRe.getRemovalRange(s,l,t.getText().slice(y.start,y.end),y.start,r);return n.merge({anchorOffset:m.start,focusOffset:m.end,isBackward:!1})}var fRe=cRe,oF={},dRe=Math.pow(2,24);function pRe(){for(var e;e===void 0||oF.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*dRe).toString(32);return oF[e]=!0,e}var Xa=pRe,hRe=Bo,MU=Xa,gRe=tn,NU=gRe.OrderedMap,mRe=function(t){var n={},r;return NU(t.withMutations(function(i){i.forEach(function(o,a){var s=o.getKey(),l=o.getNextSiblingKey(),c=o.getPrevSiblingKey(),f=o.getChildKeys(),h=o.getParentKey(),p=MU();if(n[s]=p,l){var y=i.get(l);y?i.setIn([l,"prevSibling"],p):i.setIn([s,"nextSibling"],null)}if(c){var m=i.get(c);m?i.setIn([c,"nextSibling"],p):i.setIn([s,"prevSibling"],null)}if(h&&i.get(h)){var v=i.get(h),S=v.getChildKeys();i.setIn([h,"children"],S.set(S.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(x){var w=i.get(x);w?i.setIn([x,"parent"],p):i.setIn([s,"children"],o.getChildKeys().filter(function(C){return C!==x}))})})}).toArray().map(function(i){return[n[i.getKey()],i.set("key",n[i.getKey()])]}))},vRe=function(t){return NU(t.toArray().map(function(n){var r=MU();return[r,n.set("key",r)]}))},yRe=function(t){var n=t.first()instanceof hRe;return n?mRe(t):vRe(t)},BU=yRe,bRe=No,xRe=xm,wRe=ln;function SRe(e,t){var n=e.getBlockMap(),r=e.getEntityMap(),i={},o=t.getStartKey(),a=t.getStartOffset(),s=n.get(o),l=aF(r,s,a);l!==s&&(i[o]=l);var c=t.getEndKey(),f=t.getEndOffset(),h=n.get(c);o===c&&(h=l);var p=aF(r,h,f);return p!==h&&(i[c]=p),Object.keys(i).length?e.merge({blockMap:n.merge(i),selectionAfter:t}):e.set("selectionAfter",t)}function _Re(e,t,n){var r;return xRe(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"&&wRe(!1),r}function aF(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 c=_Re(r,s,n),f=c.start,h=c.end,p;f<h;)p=r.get(f),r=r.set(f,bRe.applyEntity(p,null)),f++;return t.set("characterList",r)}}return t}var zU=SRe,CRe=BU,ERe=zU,kRe=function(t,n){var r=n.getStartKey(),i=n.getStartOffset(),o=n.getEndKey(),a=n.getEndOffset(),s=ERe(t,n),l=s.getBlockMap(),c=l.keySeq(),f=c.indexOf(r),h=c.indexOf(o)+1;return CRe(l.slice(f,h).map(function(p,y){var m=p.getText(),v=p.getCharacterList();return r===o?p.merge({text:m.slice(i,a),characterList:v.slice(i,a)}):y===r?p.merge({text:m.slice(i),characterList:v.slice(i)}):y===o?p.merge({text:m.slice(0,a),characterList:v.slice(0,a)}):p}))},Tx=kRe;function TRe(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 jU=TRe,RRe=bm,UU=Bo,ARe=tn,ORe=jU,sF=ln,DRe=BU,$Re=ARe.List,IRe=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),c=l.getText(),f=l.getCharacterList(),h=o,p=a+i.getText().length,y=null;switch(s){case"MERGE_OLD_DATA_TO_NEW_DATA":y=i.getData().merge(l.getData());break;case"REPLACE_WITH_NEW_DATA":y=i.getData();break}var m=l.getType();c&&m==="unstyled"&&(m=i.getType());var v=l.merge({text:c.slice(0,a)+i.getText()+c.slice(a),characterList:ORe(f,i.getCharacterList(),a),type:m,data:y});return t.merge({blockMap:r.set(o,v),selectionBefore:n,selectionAfter:n.merge({anchorKey:h,anchorOffset:p,focusKey:h,focusOffset:p,isBackward:!1})})},PRe=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()})},LRe=function(t,n,r){var i=t.getText(),o=t.getCharacterList(),a=i.length,s=i.slice(n,a),l=o.slice(n,a),c=r.last();return c.merge({text:c.getText()+s,characterList:c.getCharacterList().concat(l),data:c.getData()})},FRe=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},MRe=function(t,n,r,i){return t.withMutations(function(o){var a=r.getKey(),s=i.getKey(),l=r.getNextSiblingKey(),c=r.getParentKey(),f=FRe(i,t),h=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([h,"nextSibling"],l),l&&o.setIn([l,"prevSibling"],h),f.forEach(function(x){return o.setIn([x,"parent"],c)}),c){var p=t.get(c),y=p.getChildKeys(),m=y.indexOf(a),v=m+1,S=y.toArray();S.splice.apply(S,[v,0].concat(f)),o.setIn([c,"children"],$Re(S))}})},NRe=function(t,n,r,i,o,a){var s=r.first()instanceof UU,l=[],c=i.size,f=r.get(o),h=i.first(),p=i.last(),y=p.getLength(),m=p.getKey(),v=s&&(!f.getChildKeys().isEmpty()||!h.getChildKeys().isEmpty());r.forEach(function(x,w){if(w!==o){l.push(x);return}v?l.push(x):l.push(PRe(x,a,i)),i.slice(v?0:1,c-1).forEach(function(C){return l.push(C)}),l.push(LRe(x,a,i))});var S=RRe.createFromArray(l);return s&&(S=MRe(S,r,f,h)),t.merge({blockMap:S,selectionBefore:n,selectionAfter:n.merge({anchorKey:m,anchorOffset:y,focusKey:m,focusOffset:y,isBackward:!1})})},BRe=function(t,n,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"REPLACE_WITH_NEW_DATA";n.isCollapsed()||sF(!1);var o=t.getBlockMap(),a=DRe(r),s=n.getStartKey(),l=n.getStartOffset(),c=o.get(s);return c instanceof UU&&(c.getChildKeys().isEmpty()||sF(!1)),a.size===1?IRe(t,n,o,a.first(),s,l,i):NRe(t,n,o,a,s,l)},zRe=BRe,jRe=tn,URe=jU,KRe=ln,WRe=jRe.Repeat;function VRe(e,t,n,r){t.isCollapsed()||KRe(!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),c=l.getText(),f=l.merge({text:c.slice(0,s)+n+c.slice(s,l.getLength()),characterList:URe(l.getCharacterList(),WRe(r,i).toList(),s)}),h=s+i;return e.merge({blockMap:o.set(a,f),selectionAfter:t.merge({anchorOffset:h,focusOffset:h})})}var HRe=VRe,qRe=tn,GRe=qRe.Map;function YRe(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(GRe([[i,o.get(i)]])).map(n);return e.merge({blockMap:o.merge(a),selectionBefore:t,selectionAfter:t})}var KU=YRe,XRe=Bo,ZRe=function(t,n){var r=t instanceof XRe;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},WU=ZRe,JRe=Bo,QE=WU,VU=tn;VU.List;var lF=VU.Map,gi=function(t,n,r){if(t){var i=n.get(t);i&&n.set(t,r(i))}},S1=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},QRe=function(t,n){var r=[];if(!t)return r;for(var i=QE(t,n);i&&n.get(i);){var o=n.get(i);r.push(i),i=o.getParentKey()?QE(o,n):null}return r},pf=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},hf=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},eAe=function(t,n,r,i){return t.withMutations(function(o){if(gi(n.getKey(),o,function(f){return f.merge({nextSibling:pf(f,o,i),prevSibling:hf(f,o,i)})}),gi(r.getKey(),o,function(f){return f.merge({nextSibling:pf(f,o,i),prevSibling:hf(f,o,i)})}),S1(n.getKey(),i).forEach(function(f){return gi(f,o,function(h){return h.merge({children:h.getChildKeys().filter(function(p){return o.get(p)}),nextSibling:pf(h,o,i),prevSibling:hf(h,o,i)})})}),gi(n.getNextSiblingKey(),o,function(f){return f.merge({prevSibling:n.getPrevSiblingKey()})}),gi(n.getPrevSiblingKey(),o,function(f){return f.merge({nextSibling:pf(f,o,i)})}),gi(r.getNextSiblingKey(),o,function(f){return f.merge({prevSibling:hf(f,o,i)})}),gi(r.getPrevSiblingKey(),o,function(f){return f.merge({nextSibling:r.getNextSiblingKey()})}),S1(r.getKey(),i).forEach(function(f){gi(f,o,function(h){return h.merge({children:h.getChildKeys().filter(function(p){return o.get(p)}),nextSibling:pf(h,o,i),prevSibling:hf(h,o,i)})})}),QRe(r,i).forEach(function(f){return gi(f,o,function(h){return h.merge({nextSibling:pf(h,o,i),prevSibling:hf(h,o,i)})})}),t.get(n.getKey())==null&&t.get(r.getKey())!=null&&r.getParentKey()===n.getKey()&&r.getPrevSiblingKey()==null){var a=n.getPrevSiblingKey();gi(r.getKey(),o,function(f){return f.merge({prevSibling:a})}),gi(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){gi(f,o,function(h){return h.merge({parent:l})})}),l!=null){var c=t.get(l);gi(l,o,function(f){return f.merge({children:c.getChildKeys().concat(n.getChildKeys())})})}gi(n.getChildKeys().find(function(f){var h=t.get(f);return h.getNextSiblingKey()===null}),o,function(f){return f.merge({nextSibling:n.getNextSiblingKey()})})}})},tAe=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),c=r.get(a),f=l instanceof JRe,h=[];if(f){var p=c.getChildKeys(),y=S1(a,r);c.getNextSiblingKey()&&(h=h.concat(y)),p.isEmpty()||(h=h.concat(y.concat([a]))),h=h.concat(S1(QE(c,r),r))}var m;l===c?m=nAe(l.getCharacterList(),o,s):m=l.getCharacterList().slice(0,o).concat(c.getCharacterList().slice(s));var v=l.merge({text:l.getText().slice(0,o)+c.getText().slice(s),characterList:m}),S=f&&o===0&&s===0&&c.getParentKey()===i&&c.getPrevSiblingKey()==null,x=S?lF([[i,null]]):r.toSeq().skipUntil(function(C,E){return E===i}).takeUntil(function(C,E){return E===a}).filter(function(C,E){return h.indexOf(E)===-1}).concat(lF([[a,null]])).map(function(C,E){return E===i?v:null}),w=r.merge(x).filter(function(C){return!!C});return f&&l!==c&&(w=eAe(w,l,c,r)),t.merge({blockMap:w,selectionBefore:n,selectionAfter:n.merge({anchorKey:i,anchorOffset:o,focusKey:i,focusOffset:o,isBackward:!1})})},nAe=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},rAe=tAe,iAe=Bo,oAe=Xa,HU=tn,uF=ln,aAe=KU,sAe=HU.List,lAe=HU.Map,wy=function(t,n,r){if(t){var i=n.get(t);i&&n.set(t,r(i))}},uAe=function(t,n,r){return t.withMutations(function(i){var o=n.getKey(),a=r.getKey();wy(n.getParentKey(),i,function(s){var l=s.getChildKeys(),c=l.indexOf(o)+1,f=l.toArray();return f.splice(c,0,a),s.merge({children:sAe(f)})}),wy(n.getNextSiblingKey(),i,function(s){return s.merge({prevSibling:a})}),wy(o,i,function(s){return s.merge({nextSibling:a})}),wy(a,i,function(s){return s.merge({prevSibling:o})})})},cAe=function(t,n){n.isCollapsed()||uF(!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 aAe(t,n,function(x){return x.merge({type:"unstyled",depth:0})})}var l=n.getAnchorOffset(),c=o.getCharacterList(),f=oAe(),h=o instanceof iAe,p=o.merge({text:a.slice(0,l),characterList:c.slice(0,l)}),y=p.merge({key:f,text:a.slice(l),characterList:c.slice(l),data:lAe()}),m=i.toSeq().takeUntil(function(x){return x===o}),v=i.toSeq().skipUntil(function(x){return x===o}).rest(),S=m.concat([[r,p],[f,y]],v).toOrderedMap();return h&&(o.getChildKeys().isEmpty()||uF(!1),S=uAe(S,p,y)),t.merge({blockMap:S,selectionBefore:n,selectionAfter:n.merge({anchorKey:f,anchorOffset:0,focusKey:f,focusOffset:0,isBackward:!1})})},fAe=cAe,dAe=No,cF=qTe,pAe=eRe,hAe=fRe,gAe=Tx,mAe=tn,vAe=zRe,yAe=HRe,bAe=ln,m_=KU,dh=zU,ph=rAe,xAe=fAe,wAe=mAe.OrderedSet,m0={replaceText:function(t,n,r,i,o){var a=dh(t,n),s=ph(a,n),l=dAe.create({style:i||wAe(),entity:o||null});return yAe(s,s.getSelectionAfter(),r,l)},insertText:function(t,n,r,i,o){return n.isCollapsed()||bAe(!1),m0.replaceText(t,n,r,i,o)},moveText:function(t,n,r){var i=gAe(t,n),o=m0.removeRange(t,n,"backward");return m0.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=dh(t,n),a=ph(o,n);return vAe(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(),c=n.getEndOffset(),f=a.getEntityAt(l),h=s.getEntityAt(c-1);if(i===o&&f&&f===h){var p=hAe(t.getEntityMap(),a,s,n,r);return ph(t,p)}var y=dh(t,n);return ph(y,n)},splitBlock:function(t,n){var r=dh(t,n),i=ph(r,n);return xAe(i,i.getSelectionAfter())},applyInlineStyle:function(t,n,r){return cF.add(t,n,r)},removeInlineStyle:function(t,n,r){return cF.remove(t,n,r)},setBlockType:function(t,n,r){return m_(t,n,function(i){return i.merge({type:r,depth:0})})},setBlockData:function(t,n,r){return m_(t,n,function(i){return i.merge({data:r})})},mergeBlockData:function(t,n,r){return m_(t,n,function(i){return i.merge({data:i.getData().merge(r)})})},applyEntity:function(t,n,r){var i=dh(t,n);return pAe(i,n,r)}},Ri=m0;function SAe(e){return Object.keys(e).map(function(t){return e[t]})}var qU=SAe;function _Ae(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){CAe(e,i,n[i])})}return e}function CAe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EAe(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 GU=xm,kAe=qU,gA=tn,Cf=gA.List,TAe=gA.Repeat,YU=gA.Record,XU=function(){return!0},RAe={start:null,end:null},ek=YU(RAe),AAe={start:null,end:null,decoratorKey:null,leaves:null},v_=YU(AAe),OAe={generate:function(t,n,r){var i=n.getLength();if(!i)return Cf.of(new v_({start:0,end:0,decoratorKey:null,leaves:Cf.of(new ek({start:0,end:0}))}));var o=[],a=r?r.getDecorations(n,t):Cf(TAe(null,i)),s=n.getCharacterList();return GU(a,ZU,XU,function(l,c){o.push(new v_({start:l,end:c,decoratorKey:a.get(l),leaves:DAe(s.slice(l,c).toList(),l)}))}),Cf(o)},fromJS:function(t){var n=t.leaves,r=EAe(t,["leaves"]);return new v_(_Ae({},r,{leaves:n!=null?Cf(Array.isArray(n)?n:kAe(n)).map(function(i){return ek(i)}):null}))}};function DAe(e,t){var n=[],r=e.map(function(i){return i.getStyle()}).toList();return GU(r,ZU,XU,function(i,o){n.push(new ek({start:i+t,end:o+t}))}),Cf(n)}function ZU(e,t){return e===t}var $Ae=OAe;function IAe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var PAe=tn,LAe=PAe.Record,FAe=LAe({type:"TOKEN",mutability:"IMMUTABLE",data:Object}),MAe=function(e){IAe(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}(FAe),JU=MAe;function NAe(){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 BAe=NAe;function zAe(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){jAe(e,i,n[i])})}return e}function jAe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var UAe=JU,KAe=tn,WAe=ln,tk=BAe,VAe=KAe.Map,ms=VAe(),hh=tk();function gf(e,t){console.warn("WARNING: "+e+` will be deprecated soon!
|
|
412
|
+
Please use "`+t+'" instead.')}var Ca={getLastCreatedEntityKey:function(){return gf("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),Ca.__getLastCreatedEntityKey()},create:function(t,n,r){return gf("DraftEntity.create","contentState.createEntity"),Ca.__create(t,n,r)},add:function(t){return gf("DraftEntity.add","contentState.addEntity"),Ca.__add(t)},get:function(t){return gf("DraftEntity.get","contentState.getEntity"),Ca.__get(t)},__getAll:function(){return ms},__loadWithEntities:function(t){ms=t,hh=tk()},mergeData:function(t,n){return gf("DraftEntity.mergeData","contentState.mergeEntityData"),Ca.__mergeData(t,n)},replaceData:function(t,n){return gf("DraftEntity.replaceData","contentState.replaceEntityData"),Ca.__replaceData(t,n)},__getLastCreatedEntityKey:function(){return hh},__create:function(t,n,r){return Ca.__add(new UAe({type:t,mutability:n,data:r||{}}))},__add:function(t){return hh=tk(),ms=ms.set(hh,t),hh},__get:function(t){var n=ms.get(t);return n||WAe(!1),n},__mergeData:function(t,n){var r=Ca.__get(t),i=zAe({},r.getData(),n),o=r.set("data",i);return ms=ms.set(t,o),o},__replaceData:function(t,n){var r=Ca.__get(t),i=r.set("data",n);return ms=ms.set(t,i),i}},Rx=Ca;function HAe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var qAe=tn,GAe=qAe.Record,YAe={anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1},XAe=GAe(YAe),ZAe=function(e){HAe(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 c=this.getStartOffset(),f=this.getEndOffset();return o<=c&&c<=a||o<=f&&f<=a}if(i!==s&&i!==l)return!1;var h=i===s?this.getAnchorOffset():this.getFocusOffset();return o<=h&&a>=h},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}(XAe),Ax=ZAe,ru=function(e){return typeof window<"u"&&window.__DRAFT_GKX?!!window.__DRAFT_GKX[e]:!1},JAe=new RegExp("\r","g");function QAe(e){return e.replace(JAe,"")}var QU=QAe;function fF(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){e2e(e,i,n[i])})}return e}function e2e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t2e(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var n2e=bm,dF=No,r2e=wc,i2e=Bo,Sa=Rx,Sy=Ax,o2e=Xa,a2e=qU,s2e=ru,_m=tn,l2e=QU,pF=_m.List,u2e=_m.Record,c2e=_m.Repeat,f2e=_m.Map,d2e=_m.OrderedMap,p2e={entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null},h2e=u2e(p2e),hF=s2e("draft_tree_data_support")?i2e:r2e,g2e=function(e){t2e(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.getEntityMap=function(){return Sa},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||`
|
|
413
|
+
`)},n.getLastCreatedEntityKey=function(){return Sa.__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 Sa.__create(i,o,a),this},n.mergeEntityData=function(i,o){return Sa.__mergeData(i,o),this},n.replaceEntityData=function(i,o){return Sa.__replaceData(i,o),this},n.addEntity=function(i){return Sa.__add(i),this},n.getEntity=function(i){return Sa.__get(i)},n.getAllEntities=function(){return Sa.__getAll()},n.loadWithEntities=function(i){return Sa.__loadWithEntities(i)},t.createFromBlockArray=function(i,o){var a=Array.isArray(i)?i:i.contentBlocks,s=n2e.createFromArray(a),l=s.isEmpty()?new Sy:Sy.createEmpty(s.first().getKey());return new t({blockMap:s,entityMap:o||Sa,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=l2e(l),new hF({key:o2e(),text:l,type:"unstyled",characterList:pF(c2e(dF.EMPTY,l.length))})});return t.createFromBlockArray(s)},t.fromJS=function(i){return new t(fF({},i,{blockMap:d2e(i.blockMap).map(t.createContentBlockFromJS),selectionBefore:new Sy(i.selectionBefore),selectionAfter:new Sy(i.selectionAfter)}))},t.createContentBlockFromJS=function(i){var o=i.characterList;return new hF(fF({},i,{data:f2e(i.data),characterList:o!=null?pF((Array.isArray(o)?o:a2e(o)).map(function(a){return dF.fromJS(a)})):void 0}))},t}(h2e),mA=g2e,_1=ln,m2e="NEUTRAL",Ox="LTR",e9="RTL",v0=null;function C1(e){return e===Ox||e===e9}function t9(e){return C1(e)||_1(!1),e===Ox?"ltr":"rtl"}function v2e(e,t){return C1(e)||_1(!1),C1(t)||_1(!1),e===t?null:t9(e)}function n9(e){v0=e}function y2e(){n9(Ox)}function b2e(){return v0||this.initGlobalDir(),v0||_1(!1),v0}var x2e={NEUTRAL:m2e,LTR:Ox,RTL:e9,isStrong:C1,getHTMLDir:t9,getHTMLDirIfDifferent:v2e,setGlobalDir:n9,initGlobalDir:y2e,getGlobalDir:b2e},Dx=x2e,Os=Dx,w2e=ln,og={L:"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",R:"־׀׃׆-א-ת-ׯװ-ײ׳-״-߀-߉ߊ-ߪߴ-ߵߺ-߿ࠀ-ࠕࠚࠤࠨ-࠰-࠾ࡀ-ࡘ-࡞-࢟יִײַ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﭏ",AL:"؈؋؍؛؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍ܐܒ-ܯ-ݍ-ޥޱ-ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-ﯓ-ﴽ﵀-﵏ﵐ-ﶏ-ﶒ-ﷇ-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴﹶ-ﻼ-"},S2e=new RegExp("["+og.L+og.R+og.AL+"]"),_2e=new RegExp("["+og.R+og.AL+"]");function r9(e){var t=S2e.exec(e);return t==null?null:t[0]}function i9(e){var t=r9(e);return t==null?Os.NEUTRAL:_2e.exec(t)?Os.RTL:Os.LTR}function o9(e,t){if(t=t||Os.NEUTRAL,!e.length)return t;var n=i9(e);return n===Os.NEUTRAL?t:n}function vA(e,t){return t||(t=Os.getGlobalDir()),Os.isStrong(t)||w2e(!1),o9(e,t)}function C2e(e,t){return vA(e,t)===Os.LTR}function E2e(e,t){return vA(e,t)===Os.RTL}var k2e={firstStrongChar:r9,firstStrongCharDir:i9,resolveBlockDir:o9,getDirection:vA,isDirectionLTR:C2e,isDirectionRTL:E2e},yA=k2e;function gF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var T2e=yA,mF=Dx,R2e=ln,A2e=function(){function e(n){gF(this,"_defaultDir",void 0),gF(this,"_lastDir",void 0),n?mF.isStrong(n)||R2e(!1):n=mF.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=T2e.getDirection(r,this._lastDir),this._lastDir},e}(),O2e=A2e,D2e=function(t){if(t!=null)return t;throw new Error("Got unexpected null or undefined")},Ai=D2e,$2e=O2e,a9=tn,I2e=Ai,P2e=a9.OrderedMap,_y,L2e={getDirectionMap:function(t,n){_y?_y.reset():_y=new $2e;var r=t.getBlockMap(),i=r.valueSeq().map(function(a){return I2e(_y).getDirection(a.getText())}),o=P2e(r.keySeq().zip(i));return n!=null&&a9.is(n,o)?n:o}},F2e=L2e;function vF(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){s9(e,i,n[i])})}return e}function s9(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $x=$Ae,gh=mA,Cy=F2e,y_=Ax,Cm=tn,l9=Cm.OrderedSet,M2e=Cm.Record,Bu=Cm.Stack,yF=Cm.OrderedMap,N2e=Cm.List,B2e={allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:Bu(),selection:null,treeMap:null,undoStack:Bu()},bF=M2e(B2e),u9=function(){t.createEmpty=function(r){return this.createWithText("",r)},t.createWithText=function(r,i){return t.createWithContent(gh.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:Bu(),redoStack:Bu(),decorator:i||null,selection:y_.createEmpty(o)})},t.create=function(r){var i=r.currentContent,o=r.decorator,a=vF({},r,{treeMap:wF(i,o),directionMap:Cy.getDirectionMap(i)});return new t(new bF(a))},t.fromJS=function(r){return new t(new bF(vF({},r,{directionMap:r.directionMap!=null?yF(r.directionMap):r.directionMap,inlineStyleOverride:r.inlineStyleOverride!=null?l9(r.inlineStyleOverride):r.inlineStyleOverride,nativelyRenderedContent:r.nativelyRenderedContent!=null?gh.fromJS(r.nativelyRenderedContent):r.nativelyRenderedContent,redoStack:r.redoStack!=null?Bu(r.redoStack.map(function(i){return gh.fromJS(i)})):r.redoStack,selection:r.selection!=null?new y_(r.selection):r.selection,treeMap:r.treeMap!=null?yF(r.treeMap).map(function(i){return N2e(i).map(function(o){return $x.fromJS(o)})}):r.treeMap,undoStack:r.undoStack!=null?Bu(r.undoStack.map(function(i){return gh.fromJS(i)})):r.undoStack,currentContent:gh.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 c=i.currentContent||r.getCurrentContent();if(l!==s){var f=a.get("treeMap"),h;l&&s?h=j2e(c,c.getBlockMap(),f,l,s):h=wF(c,l),a.merge({decorator:l,treeMap:h,nativelyRenderedContent:null});return}var p=r.getCurrentContent();c!==p&&a.set("treeMap",z2e(r,c.getBlockMap(),c.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()?K2e(i,o):W2e(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 xF(r,i,!1)},t.forceSelection=function(r,i){return i.getHasFocus()||(i=i.set("hasFocus",!0)),xF(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 y_({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=Cy.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(),c=r.getCurrentContent(),f=r.getUndoStack(),h=i;l!==c.getSelectionAfter()||U2e(r,o)?(f=f.push(c),h=h.set("selectionBefore",l)):(o==="insert-characters"||o==="backspace-character"||o==="delete-character")&&(h=h.set("selectionBefore",c.getSelectionBefore()));var p=r.getInlineStyleOverride(),y=["adjust-depth","change-block-type","split-block"];y.indexOf(o)===-1&&(p=null);var m={currentContent:h,directionMap:s,undoStack:f,redoStack:Bu(),lastChangeType:o,selection:i.getSelectionAfter(),forceSelection:a,inlineStyleOverride:p};return t.set(r,m)},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=Cy.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=Cy.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){s9(this,"_immutable",void 0),this._immutable=n}return e.getImmutable=function(){return this._immutable},t}();function xF(e,t,n){return u9.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function wF(e,t){return e.getBlockMap().map(function(n){return $x.generate(e,n,t)}).toOrderedMap()}function z2e(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 $x.generate(i,s,r)}))}function j2e(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 $x.generate(e,o,r)}))}function U2e(e,t){var n=e.getLastChangeType();return t!==n||t!=="insert-characters"&&t!=="backspace-character"&&t!=="delete-character"}function K2e(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):c9(e,n)}function W2e(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):c9(e,n)}function c9(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):l9()}var Tn=u9,V2e=Bo,H2e=WU,f9=tn,Ey=ln,q2e=f9.OrderedMap,G2e=f9.List,Cu=function(t,n,r){if(t){var i=n.get(t);i&&n.set(t,r(i))}},Y2e=function(t,n,r,i,o){if(!o)return t;var a=i==="after",s=n.getKey(),l=r.getKey(),c=n.getParentKey(),f=n.getNextSiblingKey(),h=n.getPrevSiblingKey(),p=r.getParentKey(),y=a?r.getNextSiblingKey():l,m=a?l:r.getPrevSiblingKey();return t.withMutations(function(v){Cu(c,v,function(S){var x=S.getChildKeys();return S.merge({children:x.delete(x.indexOf(s))})}),Cu(h,v,function(S){return S.merge({nextSibling:f})}),Cu(f,v,function(S){return S.merge({prevSibling:h})}),Cu(y,v,function(S){return S.merge({prevSibling:s})}),Cu(m,v,function(S){return S.merge({nextSibling:s})}),Cu(p,v,function(S){var x=S.getChildKeys(),w=x.indexOf(l),C=a?w+1:w!==0?w-1:0,E=x.toArray();return E.splice(C,0,s),S.merge({children:G2e(E)})}),Cu(s,v,function(S){return S.merge({nextSibling:y,prevSibling:m,parent:p})})})},X2e=function(t,n,r,i){i==="replace"&&Ey(!1);var o=r.getKey(),a=n.getKey();a===o&&Ey(!1);var s=t.getBlockMap(),l=n instanceof V2e,c=[n],f=s.delete(a);l&&(c=[],f=s.withMutations(function(x){var w=n.getNextSiblingKey(),C=H2e(n,x);x.toSeq().skipUntil(function(E){return E.getKey()===a}).takeWhile(function(E){var O=E.getKey(),$=O===a,I=w&&O!==w,W=!w&&E.getParentKey()&&(!C||O!==C);return!!($||I||W)}).forEach(function(E){c.push(E),x.delete(E.getKey())})}));var h=f.toSeq().takeUntil(function(x){return x===r}),p=f.toSeq().skipUntil(function(x){return x===r}).skip(1),y=c.map(function(x){return[x.getKey(),x]}),m=q2e();if(i==="before"){var v=t.getBlockBefore(o);!v||v.getKey()!==n.getKey()||Ey(!1),m=h.concat([].concat(y,[[o,r]]),p).toOrderedMap()}else if(i==="after"){var S=t.getBlockAfter(o);!S||S.getKey()!==a||Ey(!1),m=h.concat([[o,r]].concat(y),p).toOrderedMap()}return t.merge({blockMap:Y2e(m,n,r,i,l),selectionBefore:t.getSelectionAfter(),selectionAfter:t.getSelectionAfter().merge({anchorKey:a,focusKey:a})})},Z2e=X2e;function SF(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){J2e(e,i,n[i])})}return e}function J2e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Q2e=bm,eOe=No,tOe=wc,nOe=Bo,mf=Ri,_F=Tn,CF=Xa,rOe=ru,d9=tn,ky=Z2e,p9=rOe("draft_tree_data_support"),EF=p9?nOe:tOe,iOe=d9.List,oOe=d9.Repeat,aOe={insertAtomicBlock:function(t,n,r){var i=t.getCurrentContent(),o=t.getSelection(),a=mf.removeRange(i,o,"backward"),s=a.getSelectionAfter(),l=mf.splitBlock(a,s),c=l.getSelectionAfter(),f=mf.setBlockType(l,c,"atomic"),h=eOe.create({entity:n}),p={key:CF(),type:"atomic",text:r,characterList:iOe(oOe(h,r.length))},y={key:CF(),type:"unstyled"};p9&&(p=SF({},p,{nextSibling:y.key}),y=SF({},y,{prevSibling:p.key}));var m=[new EF(p),new EF(y)],v=Q2e.createFromArray(m),S=mf.replaceWithFragment(f,c,v),x=S.merge({selectionBefore:o,selectionAfter:S.getSelectionAfter().set("hasFocus",!0)});return _F.push(t,x,"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=ky(o,n,l,i)}else{var c=mf.removeRange(o,r,"backward"),f=c.getSelectionAfter(),h=c.getBlockForKey(f.getFocusKey());if(f.getStartOffset()===0)s=ky(c,n,h,"before");else if(f.getEndOffset()===h.getLength())s=ky(c,n,h,"after");else{var p=mf.splitBlock(c,f),y=p.getSelectionAfter(),m=p.getBlockForKey(y.getFocusKey());s=ky(p,n,m,"before")}}var v=s.merge({selectionBefore:a,selectionAfter:s.getSelectionAfter().set("hasFocus",!0)});return _F.push(t,v,"move-block")}},sOe=aOe;function lOe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var uOe=tn,cOe=uOe.List,b_=".",fOe=function(){function e(n){lOe(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,c=a.strategy,f=function(p,y){dOe(o,p,y)&&(pOe(o,p,y,s+b_+l),l++)};c(r,f,i)}),cOe(o)},t.getComponentForKey=function(r){var i=parseInt(r.split(b_)[0],10);return this._decorators[i].component},t.getPropsForKey=function(r){var i=parseInt(r.split(b_)[0],10);return this._decorators[i].props},e}();function dOe(e,t,n){for(var r=t;r<n;r++)if(e[r]!=null)return!1;return!0}function pOe(e,t,n,r){for(var i=t;i<n;i++)e[i]=r}var hOe=fOe;function gOe(e){return typeof e=="object"?Object.keys(e).filter(function(t){return e[t]}).map(kF).join(" "):Array.prototype.map.call(arguments,kF).join(" ")}function kF(e){return e.replace(/\//g,"-")}var Sc=gOe,bA=T,xA=Sc,mOe=tn,vOe=mOe.Map,yOe=bA.createElement("ul",{className:xA("public/DraftStyleDefault/ul")}),bOe=bA.createElement("ol",{className:xA("public/DraftStyleDefault/ol")}),xOe=bA.createElement("pre",{className:xA("public/DraftStyleDefault/pre")}),wOe=vOe({"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:yOe},"ordered-list-item":{element:"li",wrapper:bOe},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:xOe},unstyled:{element:"div",aliasedElements:["p"]}}),wA=wOe,h9={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}};/*
|
|
414
|
+
object-assign
|
|
415
|
+
(c) Sindre Sorhus
|
|
416
|
+
@license MIT
|
|
417
|
+
*/var TF=Object.getOwnPropertySymbols,SOe=Object.prototype.hasOwnProperty,_Oe=Object.prototype.propertyIsEnumerable;function COe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function EOe(){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 _c=EOe()?Object.assign:function(e,t){for(var n,r=COe(e),i,o=1;o<arguments.length;o++){n=Object(arguments[o]);for(var a in n)SOe.call(n,a)&&(r[a]=n[a]);if(TF){i=TF(n);for(var s=0;s<i.length;s++)_Oe.call(n,i[s])&&(r[i[s]]=n[i[s]])}}return r},nk={exports:{}};(function(e,t){(function(n,r){var i="0.7.33",o="",a="?",s="function",l="undefined",c="object",f="string",h="major",p="model",y="name",m="type",v="vendor",S="version",x="architecture",w="console",C="mobile",E="tablet",O="smarttv",$="wearable",I="embedded",W=350,H="Amazon",j="Apple",U="ASUS",le="BlackBerry",se="Browser",ie="Chrome",Q="Edge",L="Firefox",te="Google",Z="Huawei",ee="LG",Y="Microsoft",M="Motorola",A="Opera",ne="Samsung",oe="Sharp",ce="Sony",re="Xiaomi",Se="Zebra",ke="Facebook",Ce=function(Ae,B){var V={};for(var he in Ae)B[he]&&B[he].length%2===0?V[he]=B[he].concat(Ae[he]):V[he]=Ae[he];return V},Pe=function(Ae){for(var B={},V=0;V<Ae.length;V++)B[Ae[V].toUpperCase()]=Ae[V];return B},Le=function(Ae,B){return typeof Ae===f?ze(B).indexOf(ze(Ae))!==-1:!1},ze=function(Ae){return Ae.toLowerCase()},We=function(Ae){return typeof Ae===f?Ae.replace(/[^\d\.]/g,o).split(".")[0]:r},qe=function(Ae,B){if(typeof Ae===f)return Ae=Ae.replace(/^\s\s*/,o),typeof B===l?Ae:Ae.substring(0,W)},Ve=function(Ae,B){for(var V=0,he,G,fe,ae,Re,Ie;V<B.length&&!Re;){var $e=B[V],dt=B[V+1];for(he=G=0;he<$e.length&&!Re;)if(Re=$e[he++].exec(Ae),Re)for(fe=0;fe<dt.length;fe++)Ie=Re[++G],ae=dt[fe],typeof ae===c&&ae.length>0?ae.length===2?typeof ae[1]==s?this[ae[0]]=ae[1].call(this,Ie):this[ae[0]]=ae[1]:ae.length===3?typeof ae[1]===s&&!(ae[1].exec&&ae[1].test)?this[ae[0]]=Ie?ae[1].call(this,Ie,ae[2]):r:this[ae[0]]=Ie?Ie.replace(ae[1],ae[2]):r:ae.length===4&&(this[ae[0]]=Ie?ae[3].call(this,Ie.replace(ae[1],ae[2])):r):this[ae]=Ie||r;V+=2}},at=function(Ae,B){for(var V in B)if(typeof B[V]===c&&B[V].length>0){for(var he=0;he<B[V].length;he++)if(Le(B[V][he],Ae))return V===a?r:V}else if(Le(B[V],Ae))return V===a?r:V;return Ae},Ze={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},tt={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"},gt={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[S,[y,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[S,[y,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[y,S],[/opios[\/ ]+([\w\.]+)/i],[S,[y,A+" Mini"]],[/\bopr\/([\w\.]+)/i],[S,[y,A]],[/(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|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[y,S],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[S,[y,"UC"+se]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[S,[y,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[S,[y,"WeChat"]],[/konqueror\/([\w\.]+)/i],[S,[y,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[S,[y,"IE"]],[/yabrowser\/([\w\.]+)/i],[S,[y,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[y,/(.+)/,"$1 Secure "+se],S],[/\bfocus\/([\w\.]+)/i],[S,[y,L+" Focus"]],[/\bopt\/([\w\.]+)/i],[S,[y,A+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[S,[y,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[S,[y,"Dolphin"]],[/coast\/([\w\.]+)/i],[S,[y,A+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[S,[y,"MIUI "+se]],[/fxios\/([-\w\.]+)/i],[S,[y,L]],[/\bqihu|(qi?ho?o?|360)browser/i],[[y,"360 "+se]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[y,/(.+)/,"$1 "+se],S],[/(comodo_dragon)\/([\w\.]+)/i],[[y,/_/g," "],S],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[y,S],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[y],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[y,ke],S],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[y,S],[/\bgsa\/([\w\.]+) .*safari\//i],[S,[y,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[S,[y,ie+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[y,ie+" WebView"],S],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[S,[y,"Android "+se]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[y,S],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[S,[y,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[S,y],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[y,[S,at,Ze]],[/(webkit|khtml)\/([\w\.]+)/i],[y,S],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[y,"Netscape"],S],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[S,[y,L+" 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],[y,S],[/(cobalt)\/([\w\.]+)/i],[y,[S,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[x,"amd64"]],[/(ia32(?=;))/i],[[x,ze]],[/((?:i[346]|x)86)[;\)]/i],[[x,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[x,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[x,"armhf"]],[/windows (ce|mobile); ppc;/i],[[x,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[x,/ower/,o,ze]],[/(sun4\w)[;\)]/i],[[x,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[x,ze]]],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,[v,ne],[m,E]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[p,[v,ne],[m,C]],[/\((ip(?:hone|od)[\w ]*);/i],[p,[v,j],[m,C]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[p,[v,j],[m,E]],[/(macintosh);/i],[p,[v,j]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[p,[v,Z],[m,E]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[p,[v,Z],[m,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," "],[v,re],[m,C]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[p,/_/g," "],[v,re],[m,E]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[p,[v,"OPPO"],[m,C]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[p,[v,"Vivo"],[m,C]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[p,[v,"Realme"],[m,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,[v,M],[m,C]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[p,[v,M],[m,E]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[p,[v,ee],[m,E]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[p,[v,ee],[m,C]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[p,[v,"Lenovo"],[m,E]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[p,/_/g," "],[v,"Nokia"],[m,C]],[/(pixel c)\b/i],[p,[v,te],[m,E]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[p,[v,te],[m,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,[v,ce],[m,C]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[p,"Xperia Tablet"],[v,ce],[m,E]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[p,[v,"OnePlus"],[m,C]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[p,[v,H],[m,E]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[p,/(.+)/g,"Fire Phone $1"],[v,H],[m,C]],[/(playbook);[-\w\),; ]+(rim)/i],[p,v,[m,E]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[p,[v,le],[m,C]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[p,[v,U],[m,E]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[p,[v,U],[m,C]],[/(nexus 9)/i],[p,[v,"HTC"],[m,E]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[v,[p,/_/g," "],[m,C]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[p,[v,"Acer"],[m,E]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[p,[v,"Meizu"],[m,C]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[p,[v,oe],[m,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],[v,p,[m,C]],[/(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],[v,p,[m,E]],[/(surface duo)/i],[p,[v,Y],[m,E]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[p,[v,"Fairphone"],[m,C]],[/(u304aa)/i],[p,[v,"AT&T"],[m,C]],[/\bsie-(\w*)/i],[p,[v,"Siemens"],[m,C]],[/\b(rct\w+) b/i],[p,[v,"RCA"],[m,E]],[/\b(venue[\d ]{2,7}) b/i],[p,[v,"Dell"],[m,E]],[/\b(q(?:mv|ta)\w+) b/i],[p,[v,"Verizon"],[m,E]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[p,[v,"Barnes & Noble"],[m,E]],[/\b(tm\d{3}\w+) b/i],[p,[v,"NuVision"],[m,E]],[/\b(k88) b/i],[p,[v,"ZTE"],[m,E]],[/\b(nx\d{3}j) b/i],[p,[v,"ZTE"],[m,C]],[/\b(gen\d{3}) b.+49h/i],[p,[v,"Swiss"],[m,C]],[/\b(zur\d{3}) b/i],[p,[v,"Swiss"],[m,E]],[/\b((zeki)?tb.*\b) b/i],[p,[v,"Zeki"],[m,E]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[v,"Dragon Touch"],p,[m,E]],[/\b(ns-?\w{0,9}) b/i],[p,[v,"Insignia"],[m,E]],[/\b((nxa|next)-?\w{0,9}) b/i],[p,[v,"NextBook"],[m,E]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[v,"Voice"],p,[m,C]],[/\b(lvtel\-)?(v1[12]) b/i],[[v,"LvTel"],p,[m,C]],[/\b(ph-1) /i],[p,[v,"Essential"],[m,C]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[p,[v,"Envizen"],[m,E]],[/\b(trio[-\w\. ]+) b/i],[p,[v,"MachSpeed"],[m,E]],[/\btu_(1491) b/i],[p,[v,"Rotor"],[m,E]],[/(shield[\w ]+) b/i],[p,[v,"Nvidia"],[m,E]],[/(sprint) (\w+)/i],[v,p,[m,C]],[/(kin\.[onetw]{3})/i],[[p,/\./g," "],[v,Y],[m,C]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[p,[v,Se],[m,E]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[p,[v,Se],[m,C]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[v,p,[m,w]],[/droid.+; (shield) bui/i],[p,[v,"Nvidia"],[m,w]],[/(playstation [345portablevi]+)/i],[p,[v,ce],[m,w]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[p,[v,Y],[m,w]],[/smart-tv.+(samsung)/i],[v,[m,O]],[/hbbtv.+maple;(\d+)/i],[[p,/^/,"SmartTV"],[v,ne],[m,O]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[v,ee],[m,O]],[/(apple) ?tv/i],[v,[p,j+" TV"],[m,O]],[/crkey/i],[[p,ie+"cast"],[v,te],[m,O]],[/droid.+aft(\w)( bui|\))/i],[p,[v,H],[m,O]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[p,[v,oe],[m,O]],[/(bravia[\w ]+)( bui|\))/i],[p,[v,ce],[m,O]],[/(mitv-\w{5}) bui/i],[p,[v,re],[m,O]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[v,qe],[p,qe],[m,O]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[m,O]],[/((pebble))app/i],[v,p,[m,$]],[/droid.+; (glass) \d/i],[p,[v,te],[m,$]],[/droid.+; (wt63?0{2,3})\)/i],[p,[v,Se],[m,$]],[/(quest( 2)?)/i],[p,[v,ke],[m,$]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[v,[m,I]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[p,[m,C]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[p,[m,E]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[m,E]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[m,C]],[/(android[-\w\. ]{0,9});.+buil/i],[p,[v,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[S,[y,Q+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[S,[y,"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],[y,S],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[S,y]],os:[[/microsoft (windows) (vista|xp)/i],[y,S],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[y,[S,at,tt]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[y,"Windows"],[S,at,tt]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[S,/_/g,"."],[y,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[y,"Mac OS"],[S,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[S,y],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[y,S],[/\(bb(10);/i],[S,[y,le]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[S,[y,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[S,[y,L+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[S,[y,"webOS"]],[/crkey\/([\d\.]+)/i],[S,[y,ie+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[y,"Chromium OS"],S],[/(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],[y,S],[/(sunos) ?([\w\.\d]*)/i],[[y,"Solaris"],S],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[y,S]]},ge=function(Ae,B){if(typeof Ae===c&&(B=Ae,Ae=r),!(this instanceof ge))return new ge(Ae,B).getResult();var V=Ae||(typeof n!==l&&n.navigator&&n.navigator.userAgent?n.navigator.userAgent:o),he=B?Ce(gt,B):gt;return this.getBrowser=function(){var G={};return G[y]=r,G[S]=r,Ve.call(G,V,he.browser),G.major=We(G.version),G},this.getCPU=function(){var G={};return G[x]=r,Ve.call(G,V,he.cpu),G},this.getDevice=function(){var G={};return G[v]=r,G[p]=r,G[m]=r,Ve.call(G,V,he.device),G},this.getEngine=function(){var G={};return G[y]=r,G[S]=r,Ve.call(G,V,he.engine),G},this.getOS=function(){var G={};return G[y]=r,G[S]=r,Ve.call(G,V,he.os),G},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 V},this.setUA=function(G){return V=typeof G===f&&G.length>W?qe(G,W):G,this},this.setUA(V),this};ge.VERSION=i,ge.BROWSER=Pe([y,S,h]),ge.CPU=Pe([x]),ge.DEVICE=Pe([p,v,m,w,C,O,E,$,I]),ge.ENGINE=ge.OS=Pe([y,S]),e.exports&&(t=e.exports=ge),t.UAParser=ge;var Te=typeof n!==l&&(n.jQuery||n.Zepto);if(Te&&!Te.ua){var Ee=new ge;Te.ua=Ee.getResult(),Te.ua.get=function(){return Ee.getUA()},Te.ua.set=function(Ae){Ee.setUA(Ae);var B=Ee.getResult();for(var V in B)Te.ua[V]=B[V]}}})(typeof window=="object"?window:Ui)})(nk,nk.exports);var kOe=nk.exports,TOe=kOe,co="Unknown",ROe={"Mac OS":"Mac OS X"};function AOe(e){return ROe[e]||e}function OOe(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}var DOe=new TOe,po=DOe.getResult(),$Oe=OOe(po.browser.version),IOe={browserArchitecture:po.cpu.architecture||co,browserFullVersion:po.browser.version||co,browserMinorVersion:$Oe.minor||co,browserName:po.browser.name||co,browserVersion:po.browser.major||co,deviceName:po.device.model||co,engineName:po.engine.name||co,engineVersion:po.engine.version||co,platformArchitecture:po.cpu.architecture||co,platformName:AOe(po.os.name)||co,platformVersion:po.os.version||co,platformFullVersion:po.os.version||co},POe=IOe,E1=ln,g9=/\./,LOe=/\|\|/,FOe=/\s+\-\s+/,MOe=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,RF=/^(\d*)(.*)/;function NOe(e,t){var n=e.split(LOe);return n.length>1?n.some(function(r){return b9.contains(r,t)}):(e=n[0].trim(),BOe(e,t))}function BOe(e,t){var n=e.split(FOe);if(n.length>0&&n.length<=2||E1(!1),n.length===1)return x_(n[0],t);var r=n[0],i=n[1];return AF(r)&&AF(i)||E1(!1),x_(">="+r,t)&&x_("<="+i,t)}function x_(e,t){if(e=e.trim(),e==="")return!0;var n=t.split(g9),r=y9(e),i=r.modifier,o=r.rangeComponents;switch(i){case"<":return m9(n,o);case"<=":return zOe(n,o);case">=":return v9(n,o);case">":return UOe(n,o);case"~":case"~>":return KOe(n,o);default:return jOe(n,o)}}function m9(e,t){return Em(e,t)===-1}function zOe(e,t){var n=Em(e,t);return n===-1||n===0}function jOe(e,t){return Em(e,t)===0}function v9(e,t){var n=Em(e,t);return n===1||n===0}function UOe(e,t){return Em(e,t)===1}function KOe(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 rk(o)&&(r[i]=o+1+""),v9(e,n)&&m9(e,r)}function y9(e){var t=e.split(g9),n=t[0].match(MOe);return n||E1(!1),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function rk(e){return!isNaN(e)&&isFinite(e)}function AF(e){return!y9(e).modifier}function OF(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function WOe(e,t){e=e.slice(),t=t.slice(),OF(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 OF(t,e.length),[e,t]}function VOe(e,t){var n=e.match(RF)[1],r=t.match(RF)[1],i=parseInt(n,10),o=parseInt(r,10);return rk(i)&&rk(o)&&i!==o?DF(i,o):DF(e,t)}function DF(e,t){return typeof e!=typeof t&&E1(!1),e>t?1:e<t?-1:0}function Em(e,t){for(var n=WOe(e,t),r=n[0],i=n[1],o=0;o<i.length;o++){var a=VOe(r[o],i[o]);if(a)return a}return 0}var b9={contains:function(t,n){return NOe(t.trim(),n.trim())}},HOe=b9,qOe=Object.prototype.hasOwnProperty;function GOe(e,t,n){if(!e)return null;var r={};for(var i in e)qOe.call(e,i)&&(r[i]=t.call(n,e[i],i,e));return r}var YOe=GOe;function XOe(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}var ZOe=XOe,Ea=POe,JOe=HOe,QOe=YOe,eDe=ZOe;function vf(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,JOe.contains(i,t)):!1}function tDe(e){return Ea.platformName==="Windows"?e.replace(/^\s*NT/,""):e}var nDe={isBrowser:function(t){return vf(Ea.browserName,Ea.browserFullVersion,t)},isBrowserArchitecture:function(t){return vf(Ea.browserArchitecture,null,t)},isDevice:function(t){return vf(Ea.deviceName,null,t)},isEngine:function(t){return vf(Ea.engineName,Ea.engineVersion,t)},isPlatform:function(t){return vf(Ea.platformName,Ea.platformFullVersion,t,tDe)},isPlatformArchitecture:function(t){return vf(Ea.platformArchitecture,null,t)}},Oi=QOe(nDe,eDe);function rDe(e){return!e||!e.ownerDocument?document:e.ownerDocument}var Ix=rDe;function iDe(e){return!e||!e.ownerDocument?!1:e.nodeType===Node.ELEMENT_NODE}var Cc=iDe,oDe=Cc;function x9(e){if(oDe(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=x9(t.childNodes[r]);if(i)return i}}return null}var w9=x9,aDe=Ix,sDe=w9;function lDe(e){for(var t=e;t&&t!==aDe(e).documentElement;){var n=sDe(t);if(n!=null)return n;t=t.parentNode}return null}var Px=lDe;function uDe(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}var S9=uDe;function Ty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cDe=Oi,fDe=Px,dDe=S9,pDe=tn,hDe=ln,gDe=Ai,$F=pDe.Map,mDe={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},IF=cDe.isBrowser("IE <= 11"),vDe=function(){function e(n){var r=this;Ty(this,"observer",void 0),Ty(this,"container",void 0),Ty(this,"mutations",void 0),Ty(this,"onCharData",void 0),this.container=n,this.mutations=$F();var i=dDe(n);i.MutationObserver&&!IF?this.observer=new i.MutationObserver(function(o){return r.registerMutations(o)}):this.onCharData=function(o){o.target instanceof Node||hDe(!1),r.registerMutation({type:"characterData",target:o.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,mDe):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=$F(),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 IF?o.textContent.replace(`
|
|
418
|
+
`,""):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=gDe(fDe(r.target));this.mutations=this.mutations.set(o,i)}},e}(),yDe=vDe,Ry="-",bDe={encode:function(t,n,r){return t+Ry+n+Ry+r},decode:function(t){var n=t.split(Ry).reverse(),r=n[0],i=n[1],o=n.slice(2);return{blockKey:o.reverse().join(Ry),decoratorKey:parseInt(i,10),leafKey:parseInt(r,10)}}},Vs=bDe,Lx={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},_9={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}};function xDe(e){return!e||!e.ownerDocument?!1:e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement}var km=xDe,PF=ln,wDe=km;function SDe(e){var t=e.editorContainer;t||PF(!1),wDe(t.firstChild)||PF(!1);var n=t.firstChild;return n}var C9=SDe,LF=Vs,_De=Ai;function CDe(e,t,n,r,i){var o=_De(e.getSelection());if(!t||!r)return o;var a=LF.decode(t),s=a.blockKey,l=e.getBlockTree(s),c=l&&l.getIn([a.decoratorKey,"leaves",a.leafKey]),f=LF.decode(r),h=f.blockKey,p=e.getBlockTree(h),y=p&&p.getIn([f.decoratorKey,"leaves",f.leafKey]);if(!c||!y)return o;var m=c.get("start"),v=y.get("start"),S=c?m+n:null,x=y?v+i:null,w=o.getAnchorKey()===s&&o.getAnchorOffset()===S&&o.getFocusKey()===h&&o.getFocusOffset()===x;if(w)return o;var C=!1;if(s===h){var E=c.get("end"),O=y.get("end");v===m&&O===E?C=i<n:C=v<m}else{var $=e.getCurrentContent().getBlockMap().keySeq().skipUntil(function(I){return I===s||I===h}).first();C=$===h}return o.merge({anchorKey:s,anchorOffset:S,focusKey:h,focusOffset:x,isBackward:C})}var E9=CDe,Ph=Px,ag=w9,FF=E9,w_=ln,SA=Cc,Vu=Ai;function EDe(e,t,n,r,i,o){var a=n.nodeType===Node.TEXT_NODE,s=i.nodeType===Node.TEXT_NODE;if(a&&s)return{selectionState:FF(e,Vu(Ph(n)),r,Vu(Ph(i)),o),needsRecovery:!1};var l=null,c=null,f=!0;return a?(l={key:Vu(Ph(n)),offset:r},c=Ay(t,i,o)):s?(c={key:Vu(Ph(i)),offset:o},l=Ay(t,n,r)):(l=Ay(t,n,r),c=Ay(t,i,o),n===i&&r===o&&(f=!!n.firstChild&&n.firstChild.nodeName!=="BR")),{selectionState:FF(e,l.key,l.offset,c.key,c.offset),needsRecovery:f}}function kDe(e){for(;e.firstChild&&(SA(e.firstChild)&&e.firstChild.getAttribute("data-blocks")==="true"||ag(e.firstChild));)e=e.firstChild;return e}function TDe(e){for(;e.lastChild&&(SA(e.lastChild)&&e.lastChild.getAttribute("data-blocks")==="true"||ag(e.lastChild));)e=e.lastChild;return e}function Ay(e,t,n){var r=t,i=Ph(r);if(i!=null||e&&(e===r||e.firstChild===r)||w_(!1),e===r){r=r.firstChild,SA(r)||w_(!1);var o=r;r=o,r.getAttribute("data-contents")!=="true"&&w_(!1),n>0&&(n=r.childNodes.length)}if(n===0){var a=null;if(i!=null)a=i;else{var s=kDe(r);a=Vu(ag(s))}return{key:a,offset:0}}var l=r.childNodes[n-1],c=null,f=null;if(!ag(l))c=Vu(i),f=MF(l);else{var h=TDe(l);c=Vu(ag(h)),f=MF(h)}return{key:c,offset:f}}function MF(e){var t=e.textContent;return t===`
|
|
419
|
+
`?0:t.length}var k9=EDe,RDe=k9;function ADe(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}:RDe(e,t,r,i,o,a)}var T9=ADe,ODe=_9,NF=Tn,DDe=C9,$De=T9;function IDe(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState,n=t.getSelection();ODe.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:new Error().stack}),selectionState:JSON.stringify(n.toJS())})}return}var r=e.props.editorState,i=$De(r,DDe(e)),o=i.selectionState;o!==r.getSelection()&&(i.needsRecovery?r=NF.forceSelection(r,o):r=NF.acceptSelection(r,o),e.update(r))}var R9=IDe;function PDe(e){return e!=null&&e!=""}var A9={notEmptyKey:PDe},LDe=A9,FDe=LDe.notEmptyKey;function MDe(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:BF(e.getEntityMap(),n)):null}var o=t.getStartKey(),a=t.getStartOffset(),s=e.getBlockForKey(o);return n=a===s.getLength()?null:s.getEntityAt(a),BF(e.getEntityMap(),n)}function BF(e,t){if(FDe(t)){var n=e.__get(t);return n.getMutability()==="MUTABLE"?t:null}return null}var _A=MDe,NDe=yDe,BDe=Ri,zDe=Vs,mh=Tn,S_=Lx,jDe=Oi,UDe=R9,O9=C9,KDe=T9,WDe=_A,VDe=Ai,HDe=jDe.isBrowser("IE"),qDe=20,__=!1,Oy=!1,sg=null;function GDe(e){sg||(sg=new NDe(O9(e)),sg.start())}var ik={onCompositionStart:function(t){Oy=!0,GDe(t)},onCompositionEnd:function(t){__=!1,Oy=!1,setTimeout(function(){__||ik.resolveComposition(t)},qDe)},onSelect:UDe,onKeyDown:function(t,n){if(!Oy){ik.resolveComposition(t),t._onKeyDown(n);return}(n.which===S_.RIGHT||n.which===S_.LEFT)&&n.preventDefault()},onKeyPress:function(t,n){n.which===S_.RETURN&&n.preventDefault()},resolveComposition:function(t){if(!Oy){var n=VDe(sg).stopAndFlushMutations();sg=null,__=!0;var r=mh.set(t._latestEditorState,{inCompositionMode:!1});if(t.exitCurrentMode(),!n.size){t.update(r);return}var i=r.getCurrentContent();n.forEach(function(l,c){var f=zDe.decode(c),h=f.blockKey,p=f.decoratorKey,y=f.leafKey,m=r.getBlockTree(h).getIn([p,"leaves",y]),v=m.start,S=m.end,x=r.getSelection().merge({anchorKey:h,focusKey:h,anchorOffset:v,focusOffset:S,isBackward:!1}),w=WDe(i,x),C=i.getBlockForKey(h).getInlineStyleAt(v);i=BDe.replaceText(i,x,l,C,w),r=mh.set(r,{currentContent:i})});var o=KDe(r,O9(t)),a=o.selectionState;t.restoreEditorDOM();var s=HDe?mh.forceSelection(r,a):mh.acceptSelection(r,a);t.update(mh.push(s,i,"insert-characters"))}}},YDe=ik,C_,zF;function XDe(){if(zF)return C_;zF=1;var e=_c;function t(){return t=e||function(l){for(var c=1;c<arguments.length;c++){var f=arguments[c];for(var h in f)Object.prototype.hasOwnProperty.call(f,h)&&(l[h]=f[h])}return l},t.apply(this,arguments)}function n(l,c){l.prototype=Object.create(c.prototype),l.prototype.constructor=l,l.__proto__=c}var r=Vs,i=T,o=yA,a=Dx,s=function(l){n(c,l);function c(){return l.apply(this,arguments)||this}var f=c.prototype;return f.render=function(){var p=this.props,y=p.block,m=p.children,v=p.contentState,S=p.decorator,x=p.decoratorKey,w=p.direction,C=p.leafSet,E=p.text,O=y.getKey(),$=C.get("leaves"),I=S.getComponentForKey(x),W=S.getPropsForKey(x),H=r.encode(O,parseInt(x,10),0),j=E.slice($.first().get("start"),$.last().get("end")),U=a.getHTMLDirIfDifferent(o.getDirection(j),w);return i.createElement(I,t({},W,{contentState:v,decoratedText:j,dir:U,key:H,entityKey:y.getEntityAt(C.get("start")),offsetKey:H}),m)},c}(i.Component);return C_=s,C_}function jF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ZDe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function UF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Rd=T,JDe=Oi,QDe=ln,e$e=Cc,CA=JDe.isBrowser("IE <= 11");function t$e(e){return CA?e.textContent===`
|
|
420
|
+
`:e.tagName==="BR"}var n$e=function(t){return CA?Rd.createElement("span",{key:"A","data-text":"true",ref:t},`
|
|
421
|
+
`):Rd.createElement("br",{key:"A","data-text":"true",ref:t})},r$e=function(t){return CA?Rd.createElement("span",{key:"B","data-text":"true",ref:t},`
|
|
422
|
+
`):Rd.createElement("br",{key:"B","data-text":"true",ref:t})},i$e=function(e){ZDe(t,e);function t(r){var i;return i=e.call(this,r)||this,UF(jF(i),"_forceFlag",void 0),UF(jF(i),"_node",void 0),i._forceFlag=!1,i}var n=t.prototype;return n.shouldComponentUpdate=function(i){var o=this._node,a=i.children==="";e$e(o)||QDe(!1);var s=o;return a?!t$e(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?n$e(function(o){return i._node=o}):r$e(function(o){return i._node=o}):Rd.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(a){return i._node=a}},this.props.children)},t}(Rd.Component),o$e=i$e,a$e=Cc;function s$e(e){return!e||!e.ownerDocument?!1:a$e(e)&&e.nodeName==="BR"}var D9=s$e,$9={initODS:function(){},handleExtensionCausedError:function(){}};function l$e(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 u$e=l$e,c$e=u$e;function f$e(e){return c$e(e)&&e.nodeType==3}var d$e=f$e,KF=d$e;function I9(e,t){return!e||!t?!1:e===t?!0:KF(e)?!1:KF(t)?I9(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1}var EA=I9;function p$e(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 P9=p$e,h$e=$9,ok=_9,g$e=Oi,L9=EA,m$e=P9,kA=Ix,v$e=ln,F9=Cc,y$e=g$e.isBrowser("IE");function b$e(e,t){if(!e)return"[empty]";var n=M9(e,t);if(n.nodeType===Node.TEXT_NODE)return n.textContent;F9(n)||v$e(!1);var r=n;return r.outerHTML}function M9(e,t){var n=t!==void 0?t(e):[];if(e.nodeType===Node.TEXT_NODE){var r=e.textContent.length;return kA(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(M9(o[a],t));return i}function ak(e,t){for(var n=e,r=n;n;){if(F9(n)&&r.hasAttribute("contenteditable"))return b$e(n,t);n=n.parentNode,r=n}return"Could not find contentEditable parent of node"}function N9(e){return e.nodeValue===null?e.childNodes.length:e.nodeValue.length}function x$e(e,t,n,r,i){var o=kA(t);if(L9(o.documentElement,t)){var a=o.defaultView.getSelection(),s=e.getAnchorKey(),l=e.getAnchorOffset(),c=e.getFocusKey(),f=e.getFocusOffset(),h=e.getIsBackward();if(!a.extend&&h){var p=s,y=l;s=c,l=f,c=p,f=y,h=!1}var m=s===n&&r<=l&&i>=l,v=c===n&&r<=f&&i>=f;if(m&&v){a.removeAllRanges(),Dy(a,t,l-r,e),y0(a,t,f-r,e);return}if(!h)m&&(a.removeAllRanges(),Dy(a,t,l-r,e)),v&&y0(a,t,f-r,e);else if(v&&(a.removeAllRanges(),Dy(a,t,f-r,e)),m){var S=a.focusNode,x=a.focusOffset;a.removeAllRanges(),Dy(a,t,l-r,e),y0(a,S,x,e)}}}function y0(e,t,n,r){var i=m$e(),o=e.extend;if(o&&t!=null&&L9(i,t)){n>N9(t)&&ok.logSelectionStateFailure({anonymizedDom:ak(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 ok.logSelectionStateFailure({anonymizedDom:ak(t,function(c){var f=[];return c===i&&f.push("active element"),c===e.anchorNode&&f.push("selection anchor node"),c===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 Dy(e,t,n,r){var i=kA(t).createRange();if(n>N9(t)&&(ok.logSelectionStateFailure({anonymizedDom:ak(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())}),h$e.handleExtensionCausedError()),i.setStart(t,n),y$e)try{e.addRange(i)}catch{}else e.addRange(i)}var w$e={setDraftEditorSelection:x$e,addFocusToSelection:y0},WF=_c;function S$e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _$e(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function C$e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E$e=o$e,E_=T,$y=ln,k$e=D9,T$e=w$e.setDraftEditorSelection,R$e=function(e){_$e(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,C$e(S$e(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,c=a.getKey(),f=s+l.length;if(i.hasEdgeWithin(c,s,f)){var h=this.leaf;h||$y(!1);var p=h.firstChild;p||$y(!1);var y;p.nodeType===Node.TEXT_NODE?y=p:k$e(p)?y=h:(y=p.firstChild,y||$y(!1)),T$e(i,y,c,s,f)}}},n.shouldComponentUpdate=function(i){var o=this.leaf;o||$y(!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(`
|
|
423
|
+
`)&&this.props.isLast&&(a+=`
|
|
424
|
+
`);var s=this.props,l=s.customStyleMap,c=s.customStyleFn,f=s.offsetKey,h=s.styleSet,p=h.reduce(function(m,v){var S={},x=l[v];return x!==void 0&&m.textDecoration!==x.textDecoration&&(S.textDecoration=[m.textDecoration,x.textDecoration].join(" ").trim()),WF(m,x,S)},{});if(c){var y=c(h,o);p=WF(p,y)}return E_.createElement("span",{"data-offset-key":f,ref:function(v){return i.leaf=v},style:p},E_.createElement(E$e,null,a))},t}(E_.Component),B9=R$e,k_,VF;function A$e(){if(VF)return k_;VF=1;function e(l,c){l.prototype=Object.create(c.prototype),l.prototype.constructor=l,l.__proto__=c}var t=XDe(),n=B9,r=Vs,i=tn,o=T,a=Sc;i.List;var s=function(l){e(c,l);function c(){return l.apply(this,arguments)||this}var f=c.prototype;return f.render=function(){var p=this.props,y=p.block,m=p.contentState,v=p.customStyleFn,S=p.customStyleMap,x=p.decorator,w=p.direction,C=p.forceSelection,E=p.hasSelection,O=p.selection,$=p.tree,I=y.getKey(),W=y.getText(),H=$.size-1,j=this.props.children||$.map(function(U,le){var se=U.get("decoratorKey"),ie=U.get("leaves"),Q=ie.size-1,L=ie.map(function(te,Z){var ee=r.encode(I,le,Z),Y=te.get("start"),M=te.get("end");return o.createElement(n,{key:ee,offsetKey:ee,block:y,start:Y,selection:E?O:null,forceSelection:C,text:W.slice(Y,M),styleSet:y.getInlineStyleAt(Y),customStyleMap:S,customStyleFn:v,isLast:se===H&&Z===Q})}).toArray();return!se||!x?L:o.createElement(t,{block:y,children:L,contentState:m,decorator:x,decoratorKey:se,direction:w,leafSet:U,text:W,key:le})}).toArray();return o.createElement("div",{"data-offset-key":r.encode(I,0,0),className:a({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":w==="LTR","public/DraftStyleDefault/rtl":w==="RTL"})},j)},c}(o.Component);return k_=s,k_}function Iy(e,t){return!!t&&(e===t.documentElement||e===t.body)}var O$e={getTop:function(t){var n=t.ownerDocument;return Iy(t,n)?n.body.scrollTop||n.documentElement.scrollTop:t.scrollTop},setTop:function(t,n){var r=t.ownerDocument;Iy(t,r)?r.body.scrollTop=r.documentElement.scrollTop=n:t.scrollTop=n},getLeft:function(t){var n=t.ownerDocument;return Iy(t,n)?n.body.scrollLeft||n.documentElement.scrollLeft:t.scrollLeft},setLeft:function(t,n){var r=t.ownerDocument;Iy(t,r)?r.body.scrollLeft=r.documentElement.scrollLeft=n:t.scrollLeft=n}},TA=O$e,D$e=/-(.)/g;function $$e(e){return e.replace(D$e,function(t,n){return n.toUpperCase()})}var I$e=$$e,P$e=/([A-Z])/g;function L$e(e){return e.replace(P$e,"-$1").toLowerCase()}var F$e=L$e,HF=I$e,qF=F$e;function vh(e){return e==null?e:String(e)}function M$e(e,t){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null),n))return vh(n.getPropertyValue(qF(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null),n)return vh(n.getPropertyValue(qF(t)));if(t==="display")return"none"}return e.currentStyle?vh(t==="float"?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[HF(t)]):vh(e.style&&e.style[HF(t)])}var N$e=M$e,B$e=N$e;function T_(e,t){var n=z9.get(e,t);return n==="auto"||n==="scroll"}var z9={get:B$e,getScrollParent:function(t){if(!t)return null;for(var n=t.ownerDocument;t&&t!==n.body;){if(T_(t,"overflow")||T_(t,"overflowY")||T_(t,"overflowX"))return t;t=t.parentNode}return n.defaultView||n.parentWindow}},Fx=z9,z$e=EA;function j$e(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!z$e(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 U$e=j$e,K$e=U$e;function W$e(e){var t=K$e(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}}var j9=W$e,V$e=typeof navigator<"u"&&navigator.userAgent.indexOf("AppleWebKit")>-1;function H$e(e){return e=e||document,e.scrollingElement?e.scrollingElement:!V$e&&e.compatMode==="CSS1Compat"?e.documentElement:e.body}var q$e=H$e;function G$e(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 Y$e=G$e,X$e=q$e,Z$e=Y$e;function J$e(e){var t=X$e(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=Z$e(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 Mx=J$e;function U9(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function K9(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function W9(){return{width:window.innerWidth||U9(),height:window.innerHeight||K9()}}W9.withoutScrollbars=function(){return{width:U9(),height:K9()}};var V9=W9,R_,GF;function Q$e(){if(GF)return R_;GF=1;var e=_c;function t(){return t=e||function(H){for(var j=1;j<arguments.length;j++){var U=arguments[j];for(var le in U)Object.prototype.hasOwnProperty.call(U,le)&&(H[le]=U[le])}return H},t.apply(this,arguments)}function n(H){if(H===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return H}function r(H,j){H.prototype=Object.create(j.prototype),H.prototype.constructor=H,H.__proto__=j}function i(H){for(var j=1;j<arguments.length;j++){var U=arguments[j]!=null?arguments[j]:{},le=Object.keys(U);typeof Object.getOwnPropertySymbols=="function"&&(le=le.concat(Object.getOwnPropertySymbols(U).filter(function(se){return Object.getOwnPropertyDescriptor(U,se).enumerable}))),le.forEach(function(se){o(H,se,U[se])})}return H}function o(H,j,U){return j in H?Object.defineProperty(H,j,{value:U,enumerable:!0,configurable:!0,writable:!0}):H[j]=U,H}var a=A$e(),s=Vs,l=T,c=TA,f=Fx,h=j9,p=Mx,y=V9,m=tn,v=ln,S=km,x=10;m.List;var w=function(j,U){return j.getAnchorKey()===U||j.getFocusKey()===U},C=function(j,U){var le=j.getNextSiblingKey();return le?U.getBlockForKey(le).getType()===j.getType():!1},E=function(j,U,le){var se=[],ie=!0,Q=!1,L=void 0;try{for(var te=le.reverse()[Symbol.iterator](),Z;!(ie=(Z=te.next()).done);ie=!0){var ee=Z.value;if(ee.type!==U)break;se.push(ee)}}catch(A){Q=!0,L=A}finally{try{!ie&&te.return!=null&&te.return()}finally{if(Q)throw L}}le.splice(le.indexOf(se[0]),se.length+1);var Y=se.reverse(),M=Y[0].key;return le.push(l.cloneElement(j,{key:"".concat(M,"-wrap"),"data-offset-key":s.encode(M,0,0)},Y)),le},O=function(j,U){var le=U.get(j.getType())||U.get("unstyled"),se=le.wrapper,ie=le.element||U.get("unstyled").element;return{Element:ie,wrapperTemplate:se}},$=function(j,U){var le=U(j);if(!le)return{};var se=le.component,ie=le.props,Q=le.editable;return{CustomComponent:se,customProps:ie,customEditable:Q}},I=function(j,U,le,se,ie,Q){var L={"data-block":!0,"data-editor":U,"data-offset-key":le,key:j.getKey(),ref:Q},te=se(j);return te&&(L.className=te),ie.customEditable!==void 0&&(L=i({},L,{contentEditable:ie.customEditable,suppressContentEditableWarning:!0})),L},W=function(H){r(j,H);function j(){for(var le,se=arguments.length,ie=new Array(se),Q=0;Q<se;Q++)ie[Q]=arguments[Q];return le=H.call.apply(H,[this].concat(ie))||this,o(n(le),"wrapperRef",l.createRef()),le}var U=j.prototype;return U.shouldComponentUpdate=function(se){var ie=this.props,Q=ie.block,L=ie.direction,te=ie.tree,Z=!Q.getChildKeys().isEmpty(),ee=Q!==se.block||te!==se.tree||L!==se.direction||w(se.selection,se.block.getKey())&&se.forceSelection;return Z||ee},U.componentDidMount=function(){var se=this.props.selection,ie=se.getEndKey();if(!(!se.getHasFocus()||ie!==this.props.block.getKey())){var Q=this.wrapperRef.current;if(Q){var L=f.getScrollParent(Q),te=p(L),Z;if(L===window){var ee=h(Q),Y=ee.y+ee.height,M=y().height;Z=Y-M,Z>0&&window.scrollTo(te.x,te.y+Z+x)}else{S(Q)||v(!1);var A=Q,ne=A.offsetHeight+A.offsetTop,oe=L.offsetHeight+te.y;Z=ne-oe,Z>0&&c.setTop(L,c.getTop(L)+Z+x)}}}},U.render=function(){var se=this,ie=this.props,Q=ie.block,L=ie.blockRenderMap,te=ie.blockRendererFn,Z=ie.blockStyleFn,ee=ie.contentState,Y=ie.decorator,M=ie.editorKey,A=ie.editorState,ne=ie.customStyleFn,oe=ie.customStyleMap,ce=ie.direction,re=ie.forceSelection,Se=ie.selection,ke=ie.tree,Ce=null;Q.children.size&&(Ce=Q.children.reduce(function(tt,gt){var ge=s.encode(gt,0,0),Te=ee.getBlockForKey(gt),Ee=$(Te,te),Ae=Ee.CustomComponent||j,B=O(Te,L),V=B.Element,he=B.wrapperTemplate,G=I(Te,M,ge,Z,Ee,null),fe=i({},se.props,{tree:A.getBlockTree(gt),blockProps:Ee.customProps,offsetKey:ge,block:Te});return tt.push(l.createElement(V,G,l.createElement(Ae,fe))),!he||C(Te,ee)||E(he,V,tt),tt},[]));var Pe=Q.getKey(),Le=s.encode(Pe,0,0),ze=$(Q,te),We=ze.CustomComponent,qe=We!=null?l.createElement(We,t({},this.props,{tree:A.getBlockTree(Pe),blockProps:ze.customProps,offsetKey:Le,block:Q})):l.createElement(a,{block:Q,children:Ce,contentState:ee,customStyleFn:ne,customStyleMap:oe,decorator:Y,direction:ce,forceSelection:re,hasSelection:w(Se,Pe),selection:Se,tree:ke});if(Q.getParentKey())return qe;var Ve=O(Q,L),at=Ve.Element,Ze=I(Q,M,Le,Z,ze,this.wrapperRef);return l.createElement(at,Ze,qe)},j}(l.Component);return R_=W,R_}var A_,YF;function eIe(){if(YF)return A_;YF=1;var e=_c;function t(){return t=e||function(l){for(var c=1;c<arguments.length;c++){var f=arguments[c];for(var h in f)Object.prototype.hasOwnProperty.call(f,h)&&(l[h]=f[h])}return l},t.apply(this,arguments)}function n(l,c){l.prototype=Object.create(c.prototype),l.prototype.constructor=l,l.__proto__=c}var r=Q$e(),i=Vs,o=T,a=Ai,s=function(l){n(c,l);function c(){return l.apply(this,arguments)||this}var f=c.prototype;return f.shouldComponentUpdate=function(p){var y=this.props.editorState,m=p.editorState,v=y.getDirectionMap(),S=m.getDirectionMap();if(v!==S)return!0;var x=y.getSelection().getHasFocus(),w=m.getSelection().getHasFocus();if(x!==w)return!0;var C=m.getNativelyRenderedContent(),E=y.isInCompositionMode(),O=m.isInCompositionMode();if(y===m||C!==null&&m.getCurrentContent()===C||E&&O)return!1;var $=y.getCurrentContent(),I=m.getCurrentContent(),W=y.getDecorator(),H=m.getDecorator();return E!==O||$!==I||W!==H||m.mustForceSelection()},f.render=function(){for(var p=this.props,y=p.blockRenderMap,m=p.blockRendererFn,v=p.blockStyleFn,S=p.customStyleMap,x=p.customStyleFn,w=p.editorState,C=p.editorKey,E=p.textDirectionality,O=w.getCurrentContent(),$=w.getSelection(),I=w.mustForceSelection(),W=w.getDecorator(),H=a(w.getDirectionMap()),j=O.getBlocksAsArray(),U=j[0],le=[],se=U;se;){var ie=se.getKey(),Q={blockRenderMap:y,blockRendererFn:m,blockStyleFn:v,contentState:O,customStyleFn:x,customStyleMap:S,decorator:W,editorKey:C,editorState:w,forceSelection:I,selection:$,block:se,direction:E||H.get(ie),tree:w.getBlockTree(ie)},L=y.get(se.getType())||y.get("unstyled"),te=L.wrapper;le.push({block:o.createElement(r,t({key:ie},Q)),wrapperTemplate:te,key:ie,offsetKey:i.encode(ie,0,0)});var Z=se.getNextSiblingKey();se=Z?O.getBlockForKey(Z):null}for(var ee=[],Y=0;Y<le.length;){var M=le[Y];if(M.wrapperTemplate){var A=[];do A.push(le[Y].block),Y++;while(Y<le.length&&le[Y].wrapperTemplate===M.wrapperTemplate);var ne=o.cloneElement(M.wrapperTemplate,{key:M.key+"-wrap","data-offset-key":M.offsetKey},A);ee.push(ne)}else ee.push(M.block),Y++}return o.createElement("div",{"data-contents":"true"},ee)},c}(o.Component);return A_=s,A_}var tIe=_c;function sk(){return sk=tIe||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},sk.apply(this,arguments)}function nIe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rIe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function iIe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oIe=B9,XF=Vs,Py=T,ZF=TA,aIe=Fx,sIe=yA,lIe=Dx,uIe=Sc,cIe=j9,fIe=Mx,dIe=V9,pIe=ln,hIe=km,gIe=Ai,JF=10,QF=function(t,n){return t.getAnchorKey()===n||t.getFocusKey()===n},mIe=function(e){rIe(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,iIe(nIe(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||QF(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=aIe.getScrollParent(a),l=fIe(s),c;if(s===window){var f=cIe(a),h=f.y+f.height,p=dIe().height;c=h-p,c>0&&window.scrollTo(l.x,l.y+c+JF)}else{hIe(a)||pIe(!1);var y=a.offsetHeight+a.offsetTop,m=s.offsetTop+s.offsetHeight,v=m+l.y;c=y-v,c>0&&ZF.setTop(s,ZF.getTop(s)+c+JF)}}}}},n._renderChildren=function(){var i=this,o=this.props.block,a=o.getKey(),s=o.getText(),l=this.props.tree.size-1,c=QF(this.props.selection,a);return this.props.tree.map(function(f,h){var p=f.get("leaves");if(p.size===0)return null;var y=p.size-1,m=p.map(function(j,U){var le=XF.encode(a,h,U),se=j.get("start"),ie=j.get("end");return Py.createElement(oIe,{key:le,offsetKey:le,block:o,start:se,selection:c?i.props.selection:null,forceSelection:i.props.forceSelection,text:s.slice(se,ie),styleSet:o.getInlineStyleAt(se),customStyleMap:i.props.customStyleMap,customStyleFn:i.props.customStyleFn,isLast:h===l&&U===y})}).toArray(),v=f.get("decoratorKey");if(v==null||!i.props.decorator)return m;var S=gIe(i.props.decorator),x=S.getComponentForKey(v);if(!x)return m;var w=S.getPropsForKey(v),C=XF.encode(a,h,0),E=p.first().get("start"),O=p.last().get("end"),$=s.slice(E,O),I=o.getEntityAt(f.get("start")),W=lIe.getHTMLDirIfDifferent(sIe.getDirection($),i.props.direction),H={contentState:i.props.contentState,decoratedText:$,dir:W,start:E,end:O,blockKey:a,entityKey:I,offsetKey:C};return Py.createElement(x,sk({},w,H,{key:C}),m)}).toArray()},n.render=function(){var i=this,o=this.props,a=o.direction,s=o.offsetKey,l=uIe({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":a==="LTR","public/DraftStyleDefault/rtl":a==="RTL"});return Py.createElement("div",{"data-offset-key":s,className:l,ref:function(f){return i._node=f}},this._renderChildren())},t}(Py.Component),H9=mIe,O_,eM;function vIe(){if(eM)return O_;eM=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 O_=e,O_}var D_,tM;function yIe(){if(tM)return D_;tM=1;var e=_c;function t(){return t=e||function(y){for(var m=1;m<arguments.length;m++){var v=arguments[m];for(var S in v)Object.prototype.hasOwnProperty.call(v,S)&&(y[S]=v[S])}return y},t.apply(this,arguments)}function n(y){for(var m=1;m<arguments.length;m++){var v=arguments[m]!=null?arguments[m]:{},S=Object.keys(v);typeof Object.getOwnPropertySymbols=="function"&&(S=S.concat(Object.getOwnPropertySymbols(v).filter(function(x){return Object.getOwnPropertyDescriptor(v,x).enumerable}))),S.forEach(function(x){r(y,x,v[x])})}return y}function r(y,m,v){return m in y?Object.defineProperty(y,m,{value:v,enumerable:!0,configurable:!0,writable:!0}):y[m]=v,y}function i(y,m){y.prototype=Object.create(m.prototype),y.prototype.constructor=y,y.__proto__=m}var o=H9,a=Vs,s=T,l=Sc,c=vIe(),f=Ai,h=function(m,v,S,x){return l({"public/DraftStyleDefault/unorderedListItem":m==="unordered-list-item","public/DraftStyleDefault/orderedListItem":m==="ordered-list-item","public/DraftStyleDefault/reset":S,"public/DraftStyleDefault/depth0":v===0,"public/DraftStyleDefault/depth1":v===1,"public/DraftStyleDefault/depth2":v===2,"public/DraftStyleDefault/depth3":v===3,"public/DraftStyleDefault/depth4":v>=4,"public/DraftStyleDefault/listLTR":x==="LTR","public/DraftStyleDefault/listRTL":x==="RTL"})},p=function(y){i(m,y);function m(){return y.apply(this,arguments)||this}var v=m.prototype;return v.shouldComponentUpdate=function(x){var w=this.props.editorState,C=x.editorState,E=w.getDirectionMap(),O=C.getDirectionMap();if(E!==O)return!0;var $=w.getSelection().getHasFocus(),I=C.getSelection().getHasFocus();if($!==I)return!0;var W=C.getNativelyRenderedContent(),H=w.isInCompositionMode(),j=C.isInCompositionMode();if(w===C||W!==null&&C.getCurrentContent()===W||H&&j)return!1;var U=w.getCurrentContent(),le=C.getCurrentContent(),se=w.getDecorator(),ie=C.getDecorator();return H!==j||U!==le||se!==ie||C.mustForceSelection()},v.render=function(){for(var x=this.props,w=x.blockRenderMap,C=x.blockRendererFn,E=x.blockStyleFn,O=x.customStyleMap,$=x.customStyleFn,I=x.editorState,W=x.editorKey,H=x.preventScroll,j=x.textDirectionality,U=I.getCurrentContent(),le=I.getSelection(),se=I.mustForceSelection(),ie=I.getDecorator(),Q=f(I.getDirectionMap()),L=U.getBlocksAsArray(),te=[],Z=null,ee=null,Y=0;Y<L.length;Y++){var M=L[Y],A=M.getKey(),ne=M.getType(),oe=C(M),ce=void 0,re=void 0,Se=void 0;oe&&(ce=oe.component,re=oe.props,Se=oe.editable);var ke=j||Q.get(A),Ce=a.encode(A,0,0),Pe={contentState:U,block:M,blockProps:re,blockStyleFn:E,customStyleMap:O,customStyleFn:$,decorator:ie,direction:ke,forceSelection:se,offsetKey:Ce,preventScroll:H,selection:le,tree:I.getBlockTree(A)},Le=w.get(ne)||w.get("unstyled"),ze=Le.wrapper,We=Le.element||w.get("unstyled").element,qe=M.getDepth(),Ve="";if(E&&(Ve=E(M)),We==="li"){var at=ee!==ze||Z===null||qe>Z;Ve=c(Ve,h(ne,qe,at,ke))}var Ze=ce||o,tt={className:Ve,"data-block":!0,"data-editor":W,"data-offset-key":Ce,key:A};Se!==void 0&&(tt=n({},tt,{contentEditable:Se,suppressContentEditableWarning:!0}));var gt=s.createElement(We,tt,s.createElement(Ze,t({},Pe,{key:A})));te.push({block:gt,wrapperTemplate:ze,key:A,offsetKey:Ce}),ze?Z=M.getDepth():Z=null,ee=ze}for(var ge=[],Te=0;Te<te.length;){var Ee=te[Te];if(Ee.wrapperTemplate){var Ae=[];do Ae.push(te[Te].block),Te++;while(Te<te.length&&te[Te].wrapperTemplate===Ee.wrapperTemplate);var B=s.cloneElement(Ee.wrapperTemplate,{key:Ee.key+"-wrap","data-offset-key":Ee.offsetKey},Ae);ge.push(B)}else ge.push(Ee.block),Te++}return s.createElement("div",{"data-contents":"true"},ge)},m}(s.Component);return D_=p,D_}var bIe=ru,xIe=bIe("draft_tree_data_support"),wIe=xIe?eIe():yIe(),q9={isImage:function(t){return nM(t)[0]==="image"},isJpeg:function(t){var n=nM(t);return q9.isImage(t)&&(n[1]==="jpeg"||n[1]==="pjpeg")}};function nM(e){return e.split("/")}var SIe=q9,Ly=ln;function _Ie(e){var t=e.length;if(!Array.isArray(e)&&(typeof e=="object"||typeof e=="function")||Ly(!1),typeof t!="number"&&Ly(!1),t===0||t-1 in e||Ly(!1),typeof e.callee=="function"&&Ly(!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 CIe(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 EIe(e){return CIe(e)?Array.isArray(e)?e.slice():_Ie(e):[e]}var kIe=EIe;function Nx(e){return function(){return e}}var Ec=function(){};Ec.thatReturns=Nx;Ec.thatReturnsFalse=Nx(!1);Ec.thatReturnsTrue=Nx(!0);Ec.thatReturnsNull=Nx(null);Ec.thatReturnsThis=function(){return this};Ec.thatReturnsArgument=function(e){return e};var TIe=Ec,RIe=SIe,AIe=kIe,OIe=TIe,DIe=new RegExp(`\r
|
|
425
|
+
`,"g"),$Ie=`
|
|
426
|
+
`,IIe={"text/rtf":1,"text/html":1};function PIe(e){if(e.kind=="file")return e.getAsFile()}var LIe=function(){function e(n){this.data=n,this.types=n.types?AIe(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 IIe[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(DIe,$Ie):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(`
|
|
427
|
+
`);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(!RIe.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(PIe).filter(OIe.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},t.hasFiles=function(){return this.getFiles().length>0},e}(),G9=LIe,FIe=ln,rM=/\.textClipping$/,MIe={"text/plain":!0,"text/html":!0,"text/rtf":!0},NIe=5e3;function BIe(e,t){var n=0,r=[];e.forEach(function(i){zIe(i,function(o){n++,o&&r.push(o.slice(0,NIe)),n==e.length&&t(r.join("\r"))})})}function zIe(e,t){if(!Ui.FileReader||e.type&&!(e.type in MIe)){t("");return}if(e.type===""){var n="";rM.test(e.name)&&(n=e.name.replace(rM,"")),t(n);return}var r=new FileReader;r.onload=function(){var i=r.result;typeof i!="string"&&FIe(!1),t(i)},r.onerror=function(){t("")},r.readAsText(e)}var Y9=BIe;function jIe(e){return e==="handled"||e===!0}var Bx=jIe,UIe=G9,X9=Ri,Z9=Tn,KIe=Px,WIe=Ix,VIe=Y9,HIe=E9,qIe=S9,iM=Bx,$_=Ai;function GIe(e,t){var n=null,r=null,i=WIe(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=$_(n),r=$_(r);var a=$_(KIe(n));return HIe(t,a,r,a,r)}var YIe={onDragEnd:function(t){t.exitCurrentMode(),oM(t)},onDrop:function(t,n){var r=new UIe(n.nativeEvent.dataTransfer),i=t._latestEditorState,o=GIe(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&&iM(t.props.handleDroppedFiles(o,a)))return;VIe(a,function(l){l&&t.update(aM(i,o,l))});return}var s=t._internalDrag?"internal":"external";t.props.handleDrop&&iM(t.props.handleDrop(o,r,s))||(t._internalDrag?t.update(XIe(i,o)):t.update(aM(i,o,r.getText()))),oM(t)}}};function oM(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:qIe(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function XIe(e,t){var n=X9.moveText(e.getCurrentContent(),e.getSelection(),t);return Z9.push(e,n,"insert-fragment")}function aM(e,t,n){var r=X9.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return Z9.push(e,r,"insert-fragment")}var ZIe=YIe;function JIe(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 QIe=JIe;(function(e,t){if(e.setImmediate)return;var n=1,r={},i=!1,o=e.document,a;function s(w){typeof w!="function"&&(w=new Function(""+w));for(var C=new Array(arguments.length-1),E=0;E<C.length;E++)C[E]=arguments[E+1];var O={callback:w,args:C};return r[n]=O,a(n),n++}function l(w){delete r[w]}function c(w){var C=w.callback,E=w.args;switch(E.length){case 0:C();break;case 1:C(E[0]);break;case 2:C(E[0],E[1]);break;case 3:C(E[0],E[1],E[2]);break;default:C.apply(t,E);break}}function f(w){if(i)setTimeout(f,0,w);else{var C=r[w];if(C){i=!0;try{c(C)}finally{l(w),i=!1}}}}function h(){a=function(w){process.nextTick(function(){f(w)})}}function p(){if(e.postMessage&&!e.importScripts){var w=!0,C=e.onmessage;return e.onmessage=function(){w=!1},e.postMessage("","*"),e.onmessage=C,w}}function y(){var w="setImmediate$"+Math.random()+"$",C=function(E){E.source===e&&typeof E.data=="string"&&E.data.indexOf(w)===0&&f(+E.data.slice(w.length))};e.addEventListener?e.addEventListener("message",C,!1):e.attachEvent("onmessage",C),a=function(E){e.postMessage(w+E,"*")}}function m(){var w=new MessageChannel;w.port1.onmessage=function(C){var E=C.data;f(E)},a=function(C){w.port2.postMessage(C)}}function v(){var w=o.documentElement;a=function(C){var E=o.createElement("script");E.onreadystatechange=function(){f(C),E.onreadystatechange=null,w.removeChild(E),E=null},w.appendChild(E)}}function S(){a=function(w){setTimeout(f,0,w)}}var x=Object.getPrototypeOf&&Object.getPrototypeOf(e);x=x&&x.setTimeout?x:e,{}.toString.call(e.process)==="[object process]"?h():p()?y():e.MessageChannel?m():o&&"onreadystatechange"in o.createElement("script")?v():S(),x.setImmediate=s,x.clearImmediate=l})(typeof self>"u"?Ui:self);var ePe=Ui.setImmediate,tPe=Ri,lk=Tn,nPe=Oi,sM=_A,rPe=Bx,iPe=QIe,lM=Ai,oPe=ePe,aPe="'",sPe="/",lPe=nPe.isBrowser("Firefox");function uPe(e){return lPe&&(e==aPe||e==sPe)}function uM(e,t,n,r,i){var o=tPe.replaceText(e.getCurrentContent(),e.getSelection(),t,n,r);return lk.push(e,o,"insert-characters",i)}function cPe(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&&rPe(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(uM(n,r,n.getCurrentInlineStyle(),sM(n.getCurrentContent(),n.getSelection()),!0));return}var s=uM(n,r,n.getCurrentInlineStyle(),sM(n.getCurrentContent(),n.getSelection()),!1),l=!1;if(l||(l=iPe(e._latestCommittedEditorState)),!l){var c=n.getBlockTree(a),f=s.getBlockTree(a);l=c.size!==f.size||c.zip(f).some(function(h){var p=h[0],y=h[1],m=p.get("start"),v=m+(m>=o?r.length:0),S=p.get("end"),x=S+(S>=o?r.length:0),w=y.get("start"),C=y.get("end"),E=y.get("decoratorKey");return p.get("decoratorKey")!==E||p.get("leaves").size!==y.get("leaves").size||v!==w||x!==C||E!=null&&C-w!==S-m})}if(l||(l=uPe(r)),l||(l=lM(s.getDirectionMap()).get(a)!==lM(n.getDirectionMap()).get(a)),l){t.preventDefault(),s=lk.set(s,{forceSelection:!0}),e.update(s);return}s=lk.set(s,{nativelyRenderedContent:s.getCurrentContent()}),e._pendingStateFromBeforeInput=s,oPe(function(){e._pendingStateFromBeforeInput!==void 0&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)})}}var fPe=cPe,dPe=Tn,cM=EA,pPe=P9;function hPe(e,t){var n=t.currentTarget.ownerDocument;if(!e.props.preserveSelectionOnBlur&&pPe(n)===n.body){var r=n.defaultView.getSelection(),i=e.editor;r.rangeCount===1&&cM(i,r.anchorNode)&&cM(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(dPe.acceptSelection(o,s))}}var gPe=hPe,mPe=Tn;function vPe(e,t){e.setMode("composite"),e.update(mPe.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)}var yPe=vPe,bPe=Tx;function xPe(e){var t=e.getSelection();return t.isCollapsed()?null:bPe(e.getCurrentContent(),t)}var J9=xPe,wPe=J9;function SPe(e,t){var n=e._latestEditorState,r=n.getSelection();if(r.isCollapsed()){t.preventDefault();return}e.setClipboard(wPe(e._latestEditorState))}var _Pe=SPe;function CPe(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 EPe=CPe,kPe=Ri,TPe=Tn,RPe=Fx,APe=J9,OPe=Mx,DPe=EPe;function $Pe(e,t){var n=e._latestEditorState,r=n.getSelection(),i=t.target,o;if(r.isCollapsed()){t.preventDefault();return}if(DPe(i)){var a=i;o=OPe(RPe.getScrollParent(a))}var s=APe(n);e.setClipboard(s),e.setMode("cut"),setTimeout(function(){e.restoreEditorDOM(o),e.exitCurrentMode(),e.update(IPe(n))},0)}function IPe(e){var t=kPe.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return TPe.push(e,t,"remove-range")}var PPe=$Pe;function LPe(e,t){e.setMode("drag"),t.preventDefault()}var FPe=LPe;function MPe(e){e._internalDrag=!0,e.setMode("drag")}var NPe=MPe,fM=Tn,BPe=Oi;function zPe(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),BPe.isBrowser("Chrome < 60.0.3081.0")?e.update(fM.forceSelection(n,i)):e.update(fM.acceptSelection(n,i))}}var jPe=zPe,UPe=ln,Q9=55296,KPe=56319,WPe=56320,e8=57343,VPe=/[\uD800-\uDFFF]/;function t8(e){return Q9<=e&&e<=e8}function HPe(e,t){if(0<=t&&t<e.length||UPe(!1),t+1===e.length)return!1;var n=e.charCodeAt(t),r=e.charCodeAt(t+1);return Q9<=n&&n<=KPe&&WPe<=r&&r<=e8}function RA(e){return VPe.test(e)}function id(e,t){return 1+t8(e.charCodeAt(t))}function qPe(e){if(!RA(e))return e.length;for(var t=0,n=0;n<e.length;n+=id(e,n))t++;return t}function n8(e,t,n){if(t=t||0,n=n===void 0?1/0:n||0,!RA(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+=id(e,i);if(i>=r)return""}else if(t<0){for(i=r;t<0&&0<i;t++)i-=id(e,i-1);i<0&&(i=0)}var o=r;if(n<r)for(o=i;n>0&&o<r;n--)o+=id(e,o);return e.substring(i,o)}function GPe(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,n8(e,t,r)}function YPe(e){for(var t=[],n=0;n<e.length;n+=id(e,n))t.push(e.codePointAt(n));return t}var XPe={getCodePoints:YPe,getUTF16Length:id,hasSurrogateUnit:RA,isCodeUnitInSurrogateRange:t8,isSurrogatePair:HPe,strlen:qPe,substring:GPe,substr:n8},kc=XPe;function ZPe(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 c=r.getBlockForKey(l);s=c.getText().length}}else s=o-t;return n.merge({focusKey:a,focusOffset:s,isBackward:!0})}var AA=ZPe,JPe=Ri,QPe=ru,dM=QPe("draft_tree_data_support");function eLe(e,t,n){var r=e.getSelection(),i=e.getCurrentContent(),o=r,a=r.getAnchorKey(),s=r.getFocusKey(),l=i.getBlockForKey(a);if(dM&&n==="forward"&&a!==s)return i;if(r.isCollapsed()){if(n==="forward"){if(e.isSelectionAtEndOfContent())return i;if(dM){var c=r.getAnchorOffset()===i.getBlockForKey(a).getLength();if(c){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 JPe.removeRange(i,o,n)}var Tm=eLe,tLe=Tn,nLe=kc,rLe=AA,iLe=Tm;function oLe(e){var t=iLe(e,function(r){var i=r.getSelection(),o=r.getCurrentContent(),a=i.getAnchorKey(),s=i.getAnchorOffset(),l=o.getBlockForKey(a).getText()[s-1];return rLe(r,l?nLe.getUTF16Length(l,0):1)},"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return tLe.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")}var r8=oLe,aLe=Ri,sLe=Vs,lLe=Tn,uLe=Oi,cLe=A9,fLe=cLe.notEmptyKey,dLe=Px,pLe=r8,hLe=Ai,gLe=uLe.isEngine("Gecko"),mLe=`
|
|
428
|
+
|
|
429
|
+
`;function vLe(e,t){switch(e){case"deleteContentBackward":return pLe(t)}return t}function yLe(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 c=i.textContent,f=e._latestEditorState,h=hLe(dLe(i)),p=sLe.decode(h),y=p.blockKey,m=p.decoratorKey,v=p.leafKey,S=f.getBlockTree(y).getIn([m,"leaves",v]),x=S.start,w=S.end,C=f.getCurrentContent(),E=C.getBlockForKey(y),O=E.getText().slice(x,w);if(c.endsWith(mLe)&&(c=c.slice(0,-1)),c===O){var $=t.nativeEvent.inputType;if($){var I=vLe($,f);if(I!==f){e.restoreEditorDOM(),e.update(I);return}}return}var W=f.getSelection(),H=W.merge({anchorOffset:x,focusOffset:w,isBackward:!1}),j=E.getEntityAt(x),U=fLe(j)?C.getEntity(j):null,le=U!=null?U.getMutability():null,se=le==="MUTABLE",ie=se?"spellcheck-change":"apply-entity",Q=aLe.replaceText(C,H,c,E.getInlineStyleAt(x),se?E.getEntityAt(x):null),L,te,Z,ee;if(gLe)L=r.anchorOffset,te=r.focusOffset,Z=x+Math.min(L,te),ee=Z+Math.abs(L-te),L=Z,te=ee;else{var Y=c.length-O.length;Z=W.getStartOffset(),ee=W.getEndOffset(),L=o?ee+Y:Z,te=ee+Y}var M=Q.merge({selectionBefore:C.getSelectionAfter(),selectionAfter:W.merge({anchorOffset:L,focusOffset:te})});e.update(lLe.push(f,M,ie))}}var bLe=yLe,xLe=Lx;function wLe(e){return e.which===xLe.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))}var SLe=wLe,_Le=Oi,CLe=SLe,I_=_Le.isPlatform("Mac OS X"),i8={isCtrlKeyCommand:function(t){return!!t.ctrlKey&&!t.altKey},isOptionKeyCommand:function(t){return I_&&t.altKey},usesMacOSHeuristics:function(){return I_},hasCommandModifier:function(t){return I_?!!t.metaKey&&!t.altKey:i8.isCtrlKeyCommand(t)},isSoftNewlineEvent:CLe},OA=i8,pM=Ri,hM=Tn,ELe=Tx,kLe=Ai,P_=null,TLe={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=kLe(i),P_=ELe(n,i);var l=pM.removeRange(n,i,"forward");return l===n?t:hM.push(t,l,"remove-range")},paste:function(t){if(!P_)return t;var n=pM.replaceWithFragment(t.getCurrentContent(),t.getSelection(),P_);return hM.push(t,n,"insert-fragment")}},RLe=TLe,ALe=Oi,OLe=ln,DLe=ALe.isBrowser("Chrome");function $Le(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)}OLe(!1)}var ILe=DLe?$Le:function(e){return Array.from(e.getClientRects())},o8=ILe,PLe=kc,LLe=Ix,gM=o8,uk=ln;function FLe(e){var t=getComputedStyle(e),n=LLe(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||uk(!1),i.appendChild(r);var o=r.getBoundingClientRect();return i.removeChild(r),o.height}function mM(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 MLe(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 NLe(e){e.collapsed||uk(!1),e=e.cloneRange();var t=e.startContainer;t.nodeType!==1&&(t=t.parentNode);var n=FLe(t),r=e.endContainer,i=e.endOffset;for(e.setStart(e.startContainer,0);mM(gM(e),n)&&(r=e.startContainer,i=e.startOffset,r.parentNode||uk(!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&&PLe.isSurrogatePair(s,l-1)))if(e.setStart(o,l),mM(gM(e),n))r=o,i=l;else break;if(l===-1||o.childNodes.length===0)break;o=o.childNodes[l],a=MLe(o)}while(!0);return e.setStart(r,i),e}var BLe=NLe,zLe=Tn,jLe=BLe,ULe=k9,KLe=AA,WLe=Tm;function VLe(e,t){var n=WLe(e,function(r){var i=r.getSelection();if(i.isCollapsed()&&i.getAnchorOffset()===0)return KLe(r,1);var o=t.currentTarget.ownerDocument,a=o.defaultView.getSelection(),s=a.getRangeAt(0);return s=jLe(s),ULe(r,null,s.endContainer,s.endOffset,s.startContainer,s.startOffset).selectionState},"backward");return n===e.getCurrentContent()?e:zLe.push(e,n,"remove-range")}var HLe=VLe,qLe=`[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]`,GLe={getPunctuation:function(){return qLe}},YLe=GLe,XLe=YLe.getPunctuation(),a8="['‘’]",od="\\s|(?![_])"+XLe,ZLe="^(?:"+od+")*(?:"+a8+"|(?!"+od+").)*(?:(?!"+od+").)",JLe=new RegExp(ZLe),QLe="(?:(?!"+od+").)(?:"+a8+"|(?!"+od+").)*(?:"+od+")*$",eFe=new RegExp(QLe);function vM(e,t){var n=t?eFe.exec(e):JLe.exec(e);return n?n[0]:e}var tFe={getBackward:function(t){return vM(t,!0)},getForward:function(t){return vM(t,!1)}},s8=tFe,nFe=s8,rFe=Tn,yM=AA,iFe=Tm;function oFe(e){var t=iFe(e,function(n){var r=n.getSelection(),i=r.getStartOffset();if(i===0)return yM(n,1);var o=r.getStartKey(),a=n.getCurrentContent(),s=a.getBlockForKey(o).getText().slice(0,i),l=nFe.getBackward(s);return yM(n,l.length||1)},"backward");return t===e.getCurrentContent()?e:rFe.push(e,t,"remove-range")}var aFe=oFe;function sFe(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 l8=sFe,lFe=s8,uFe=Tn,cFe=l8,fFe=Tm;function dFe(e){var t=fFe(e,function(n){var r=n.getSelection(),i=r.getStartOffset(),o=r.getStartKey(),a=n.getCurrentContent(),s=a.getBlockForKey(o).getText().slice(i),l=lFe.getForward(s);return cFe(n,l.length||1)},"forward");return t===e.getCurrentContent()?e:uFe.push(e,t,"remove-range")}var pFe=dFe,hFe=Ri,gFe=Tn;function mFe(e){var t=hFe.splitBlock(e.getCurrentContent(),e.getSelection());return gFe.push(e,t,"split-block")}var vFe=mFe,yFe=Tn;function bFe(e){var t=e.getSelection(),n=t.getEndKey(),r=e.getCurrentContent(),i=r.getBlockForKey(n).getLength();return yFe.set(e,{selection:t.merge({anchorKey:n,anchorOffset:i,focusKey:n,focusOffset:i,isBackward:!1}),forceSelection:!0})}var xFe=bFe,wFe=Tn;function SFe(e){var t=e.getSelection(),n=t.getStartKey();return wFe.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})}var _Fe=SFe,CFe=Tn,EFe=kc,kFe=l8,TFe=Tm;function RFe(e){var t=TFe(e,function(r){var i=r.getSelection(),o=r.getCurrentContent(),a=i.getAnchorKey(),s=i.getAnchorOffset(),l=o.getBlockForKey(a).getText()[s];return kFe(r,l?EFe.getUTF16Length(l,0):1)},"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return CFe.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")}var AFe=RFe,bM=Ri,xM=Tn,OFe=Tx;function DFe(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 c=OFe(i,s),f=bM.removeRange(i,s,"backward"),h=f.getSelectionAfter(),p=h.getAnchorOffset()-1,y=h.merge({anchorOffset:p,focusOffset:p}),m=bM.replaceWithFragment(f,y,c),v=xM.push(e,m,"insert-fragment");return xM.acceptSelection(v,l)}var $Fe=DFe,L_=Tn;function IFe(e,t,n){var r=L_.undo(t);if(t.getLastChangeType()==="spellcheck-change"){var i=r.getCurrentContent();n(L_.set(r,{nativelyRenderedContent:i}));return}if(e.preventDefault(),!t.getNativelyRenderedContent()){n(r);return}n(L_.set(t,{nativelyRenderedContent:null})),setTimeout(function(){n(r)},0)}var PFe=IFe,LFe=Ri,u8=Tn,FFe=OA,vs=Lx,wM=RLe,MFe=Oi,SM=Bx,NFe=HLe,BFe=aFe,zFe=pFe,jFe=vFe,UFe=xFe,KFe=_Fe,WFe=r8,VFe=AFe,HFe=$Fe,qFe=PFe,_M=FFe.isOptionKeyCommand,CM=MFe.isBrowser("Chrome");function GFe(e,t,n){switch(e){case"redo":return u8.redo(t);case"delete":return VFe(t);case"delete-word":return zFe(t);case"backspace":return WFe(t);case"backspace-word":return BFe(t);case"backspace-to-start-of-line":return NFe(t,n);case"split-block":return jFe(t);case"transpose-characters":return HFe(t);case"move-selection-to-start-of-block":return KFe(t);case"move-selection-to-end-of-block":return UFe(t);case"secondary-cut":return wM.cut(t);case"secondary-paste":return wM.paste(t);default:return t}}function YFe(e,t){var n=t.which,r=e._latestEditorState;function i(l){var c=e.props[l];return c?(c(t),!0):!1}switch(n){case vs.RETURN:if(t.preventDefault(),e.props.handleReturn&&SM(e.props.handleReturn(t,r)))return;break;case vs.ESC:if(t.preventDefault(),i("onEscape"))return;break;case vs.TAB:if(i("onTab"))return;break;case vs.UP:if(i("onUpArrow"))return;break;case vs.RIGHT:if(i("onRightArrow"))return;break;case vs.DOWN:if(i("onDownArrow"))return;break;case vs.LEFT:if(i("onLeftArrow"))return;break;case vs.SPACE:CM&&_M(t)&&t.preventDefault()}var o=e.props.keyBindingFn(t);if(o==null||o===""){if(n===vs.SPACE&&CM&&_M(t)){var a=LFe.replaceText(r.getCurrentContent(),r.getSelection()," ");e.update(u8.push(r,a,"insert-characters"))}return}if(o==="undo"){qFe(t,r,e.update);return}if(t.preventDefault(),!(e.props.handleKeyCommand&&SM(e.props.handleKeyCommand(o,r,t.timeStamp)))){var s=GFe(o,r,t);s!==r&&e.update(s)}}var XFe=YFe;function ZFe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var JFe=function(){function e(n){ZFe(this,"_uri",void 0),this._uri=n}var t=e.prototype;return t.toString=function(){return this._uri},e}(),QFe=JFe,eMe=Oi,tMe=ln,nMe=eMe.isBrowser("IE <= 9");function rMe(e){var t,n=null;return!nMe&&document.implementation&&document.implementation.createHTMLDocument&&(t=document.implementation.createHTMLDocument("foo"),t.documentElement||tMe(!1),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}var c8=rMe,iMe=Cc;function oMe(e){return!e||!e.ownerDocument?!1:iMe(e)&&e.nodeName==="A"}var aMe=oMe,sMe=Cc;function lMe(e){return!e||!e.ownerDocument?!1:sMe(e)&&e.nodeName==="IMG"}var uMe=lMe,Eu;function F_(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){Lr(e,i,n[i])})}return e}function Lr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cMe=No,fMe=wc,dMe=Bo,pMe=wA,EM=Rx,f8=QFe,yh=Sc,kM=Xa,hMe=c8,d8=ru,DA=tn,dl=DA.List,p8=DA.Map,gMe=DA.OrderedSet,h8=aMe,mMe=D9,$A=km,g8=uMe,TM=d8("draft_tree_data_support"),vMe=" ",m8=" ",yMe=new RegExp("\r","g"),bMe=new RegExp(`
|
|
430
|
+
`,"g"),xMe=new RegExp(`^
|
|
431
|
+
`,"g"),wMe=new RegExp(vMe,"g"),SMe=new RegExp(" ?","g"),_Me=new RegExp("​?","g"),CMe=["bold","bolder","500","600","700","800","900"],EMe=["light","lighter","normal","100","200","300","400"],kMe=["className","href","rel","target","title"],TMe=["alt","className","height","src","width"],RM=(Eu={},Lr(Eu,yh("public/DraftStyleDefault/depth0"),0),Lr(Eu,yh("public/DraftStyleDefault/depth1"),1),Lr(Eu,yh("public/DraftStyleDefault/depth2"),2),Lr(Eu,yh("public/DraftStyleDefault/depth3"),3),Lr(Eu,yh("public/DraftStyleDefault/depth4"),4),Eu),AM=p8({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),RMe=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)})}),p8(n)},AMe=function(t){if($A(t)){var n=t;if(n.style.fontFamily.includes("monospace"))return"CODE"}return null},OMe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Object.keys(RM).some(function(r){t.classList.contains(r)&&(n=RM[r])}),n},DMe=function(t){if(!h8(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 f8(n.href);return!0}catch{return!1}},$Me=function(t){if(!g8(t))return!1;var n=t;return!!(n.attributes.getNamedItem("src")&&n.attributes.getNamedItem("src").value)},IMe=function(t,n){if(!$A(t))return n;var r=t,i=r.style.fontWeight,o=r.style.fontStyle,a=r.style.textDecoration;return n.withMutations(function(s){CMe.indexOf(i)>=0?s.add("BOLD"):EMe.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"))})},M_=function(t){return t==="ul"||t==="ol"},PMe=function(){function e(n,r){Lr(this,"characterList",dl()),Lr(this,"currentBlockType","unstyled"),Lr(this,"currentDepth",0),Lr(this,"currentEntity",null),Lr(this,"currentText",""),Lr(this,"wrapper",null),Lr(this,"blockConfigs",[]),Lr(this,"contentBlocks",[]),Lr(this,"entityMap",EM),Lr(this,"blockTypeMap",void 0),Lr(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=n,this.disambiguate=r}var t=e.prototype;return t.clear=function(){this.characterList=dl(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=EM,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],gMe())),this._trimCurrentText(),this.currentText!==""&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return this.contentBlocks.length===0&&(TM?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||kM(),o=F_({key:i,type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:dl(),prevSibling:null,nextSibling:null,childConfigs:[]},r);return this.characterList=dl(),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"||M_(l)){this._trimCurrentText(),this.currentText!==""&&o.push(this._makeBlockConfig());var c=this.currentDepth,f=this.wrapper;M_(l)&&(this.wrapper=l,M_(f)&&this.currentDepth++),o.push.apply(o,this._toBlockConfigs(Array.from(s.childNodes),i)),this.currentDepth=c,this.wrapper=f;continue}var h=this.blockTypeMap.get(l);if(h!==void 0){this._trimCurrentText(),this.currentText!==""&&o.push(this._makeBlockConfig());var p=this.currentDepth,y=this.wrapper;if(this.wrapper=l==="pre"?"pre":this.wrapper,typeof h!="string"&&(h=this.disambiguate(l,this.wrapper)||h[0]||"unstyled"),!TM&&$A(s)&&(h==="unordered-list-item"||h==="ordered-list-item")){var m=s;this.currentDepth=OMe(m,this.currentDepth)}var v=kM(),S=this._toBlockConfigs(Array.from(s.childNodes),i);this._trimCurrentText(),o.push(this._makeBlockConfig({key:v,childConfigs:S,type:h})),this.currentDepth=p,this.wrapper=y;continue}if(l==="#text"){this._addTextNode(s,i);continue}if(l==="br"){this._addBreakNode(s,i);continue}if($Me(s)){this._addImgNode(s,i);continue}if(DMe(s)){this._addAnchorNode(s,o,i);continue}var x=i;AM.has(l)&&(x=x.add(AM.get(l))),x=IMe(s,x);var w=AMe(s);w!=null&&(x=x.add(w)),o.push.apply(o,this._toBlockConfigs(Array.from(s.childNodes),x))}return o},t._appendText=function(r,i){var o;this.currentText+=r;var a=cMe.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=dl()):(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(xMe,""),o=o.replace(bMe,m8)),this._appendText(o,i)},t._addBreakNode=function(r,i){mMe(r)&&this._appendText(`
|
|
432
|
+
`,i)},t._addImgNode=function(r,i){if(g8(r)){var o=r,a={};TMe.forEach(function(s){var l=o.getAttribute(s);l&&(a[s]=l)}),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",a),d8("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(h8(r)){var a=r,s={};kMe.forEach(function(l){var c=a.getAttribute(l);c&&(s[l]=c)}),s.url=new f8(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=dl(s.childConfigs.map(function(l){return l.key})),this.contentBlocks.push(new dMe(F_({},s))),this._toContentBlocks(s.childConfigs,s.key)}},t._hoistContainersInBlockConfigs=function(r){var i=this,o=dl(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,c=s.characterList;i.contentBlocks.push(new fMe(F_({},a,{text:a.text+l,characterList:a.characterList.concat(c)})))})},t._extractTextFromBlockConfigs=function(r){for(var i=r.length-1,o="",a=dl(),s=0;s<=i;s++){var l=r[s];o+=l.text,a=a.concat(l.characterList),o!==""&&l.type!=="unstyled"&&(o+=`
|
|
433
|
+
`,a=a.push(a.last()));var c=this._extractTextFromBlockConfigs(l.childConfigs);o+=c.text,a=a.concat(c.characterList)}return{text:o,characterList:a}},e}(),LMe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:hMe,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:pMe;t=t.trim().replace(yMe,"").replace(wMe,m8).replace(SMe,"").replace(_Me,"");var i=n(t);if(!i)return null;var o=RMe(r),a=function(l,c){return l==="li"?c==="ol"?"ordered-list-item":"unordered-list-item":null};return new PMe(o,a).addDOMNode(i).getContentBlocks()},v8=LMe;function FMe(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){MMe(e,i,n[i])})}return e}function MMe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var NMe=wc,BMe=Bo,zMe=v8,jMe=Xa,UMe=c8,KMe=ru,y8=tn,WMe=QU,VMe=y8.List,HMe=y8.Repeat,b8=KMe("draft_tree_data_support"),qMe=b8?BMe:NMe,GMe={processHTML:function(t,n){return zMe(t,UMe,n)},processText:function(t,n,r){return t.reduce(function(i,o,a){o=WMe(o);var s=jMe(),l={key:s,type:r,text:o,characterList:VMe(HMe(n,o.length))};if(b8&&a!==0){var c=a-1,f=i[c]=i[c].merge({nextSibling:s});l=FMe({},l,{prevSibling:f.getKey()})}return i.push(new qMe(l)),i},[])}},YMe=GMe;function XMe(e,t,n,r){var i=t.getStartKey(),o=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil(function(l,c){return c===i}).takeUntil(function(l,c){return c===o}).concat([[o,a.get(o)]]).map(function(l){var c=l.getDepth()+n;return c=Math.max(0,Math.min(c,r)),l.set("depth",c)});return a=a.merge(s),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})}var ZMe=XMe,ku=Ri,_a=Tn,JMe=ZMe,QMe=Ai,ka={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 ka.toggleInlineStyle(t,"BOLD");case"italic":return ka.toggleInlineStyle(t,"ITALIC");case"underline":return ka.toggleInlineStyle(t,"UNDERLINE");case"code":return ka.toggleCode(t);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return ka.onBackspace(t);case"delete":case"delete-word":case"delete-to-end-of-block":return ka.onDelete(t);default:return null}},insertSoftNewline:function(t){var n=ku.insertText(t.getCurrentContent(),t.getSelection(),`
|
|
434
|
+
`,t.getCurrentInlineStyle(),null),r=_a.push(t,n,"insert-characters");return _a.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 _a.push(t,s,"remove-range")}var l=ka.tryToRemoveBlockStyle(t);return l?_a.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()}),c=ku.removeRange(r,l,"forward");return c!==r?_a.push(t,c,"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 c=s.getDepth();if(!t.shiftKey&&c===r)return n;var f=JMe(a,i,t.shiftKey?-1:1,r);return _a.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=QMe(a.getBlockBefore(o));o=l.getKey(),s=s.merge({anchorKey:i,anchorOffset:r.getStartOffset(),focusKey:o,focusOffset:l.getLength(),isBackward:!1})}var c=a.getBlockMap().skipWhile(function(h,p){return p!==i}).reverse().skipWhile(function(h,p){return p!==o}).some(function(h){return h.getType()==="atomic"});if(c)return t;var f=a.getBlockForKey(i).getType()===n?"unstyled":n;return _a.push(t,ku.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?ka.toggleBlockType(t,"code-block"):ka.toggleInlineStyle(t,"CODE")},toggleInlineStyle:function(t,n){var r=t.getSelection(),i=t.getCurrentInlineStyle();if(r.isCollapsed())return _a.setInlineStyleOverride(t,i.has(n)?i.remove(n):i.add(n));var o=t.getCurrentContent(),a;return i.has(n)?a=ku.removeInlineStyle(o,r,n):a=ku.applyInlineStyle(o,r,n),_a.push(t,a,"change-inline-style")},toggleLink:function(t,n,r){var i=ku.applyEntity(t.getCurrentContent(),n,r);return _a.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 ku.setBlockType(o,n,"unstyled")}return null}},x8=ka,eNe=/\r\n?|\n/g;function tNe(e){return e.split(eNe)}var nNe=tNe,N_=bm,OM=No,rNe=G9,w8=Ri,B_=YMe,S8=Tn,DM=x8,$M=_A,iNe=Y9,IM=Bx,PM=nNe;function oNe(e,t){t.preventDefault();var n=new rNe(t.clipboardData);if(!n.isRichText()){var r=n.getFiles(),i=n.getText();if(r.length>0){if(e.props.handlePastedFiles&&IM(e.props.handlePastedFiles(r)))return;iNe(r,function($){if($=$||i,!!$){var I=e._latestEditorState,W=PM($),H=OM.create({style:I.getCurrentInlineStyle(),entity:$M(I.getCurrentContent(),I.getSelection())}),j=DM.getCurrentBlockType(I),U=B_.processText(W,H,j),le=N_.createFromArray(U),se=w8.replaceWithFragment(I.getCurrentContent(),I.getSelection(),le);e.update(S8.push(I,se,"insert-fragment"))}});return}}var o=[],a=n.getText(),s=n.getHTML(),l=e._latestEditorState;if(e.props.formatPastedText){var c=e.props.formatPastedText(a,s),f=c.text,h=c.html;a=f,s=h}if(!(e.props.handlePastedText&&IM(e.props.handlePastedText(a,s,l)))){if(a&&(o=PM(a)),!e.props.stripPastedStyles){var p=e.getClipboard();if(!e.props.formatPastedText&&n.isRichText()&&p){var y;if(((y=s)===null||y===void 0?void 0:y.indexOf(e.getEditorKey()))!==-1||o.length===1&&p.size===1&&p.first().getText()===a){e.update(Fy(e._latestEditorState,p));return}}else if(p&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&aNe(o,p)){e.update(Fy(e._latestEditorState,p));return}if(s){var m=B_.processHTML(s,e.props.blockRenderMap);if(m){var v=m.contentBlocks,S=m.entityMap;if(v){var x=N_.createFromArray(v);e.update(Fy(e._latestEditorState,x,S));return}}}e.setClipboard(null)}if(o.length){var w=OM.create({style:l.getCurrentInlineStyle(),entity:$M(l.getCurrentContent(),l.getSelection())}),C=DM.getCurrentBlockType(l),E=B_.processText(o,w,C),O=N_.createFromArray(E);e.update(Fy(e._latestEditorState,O))}}}function Fy(e,t,n){var r=w8.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return S8.push(e,r.set("entityMap",n),"insert-fragment")}function aNe(e,t){return e.length===t.size&&t.valueSeq().every(function(n,r){return n.getText()===e[r]})}var sNe=oNe,_8=Oi,lNe=fPe,uNe=gPe,cNe=yPe,fNe=_Pe,dNe=PPe,pNe=FPe,hNe=NPe,gNe=jPe,mNe=bLe,vNe=XFe,yNe=sNe,C8=R9,bNe=_8.isBrowser("Chrome"),xNe=_8.isBrowser("Firefox"),LM=bNe||xNe?C8:function(e){},wNe={onBeforeInput:lNe,onBlur:uNe,onCompositionStart:cNe,onCopy:fNe,onCut:dNe,onDragOver:pNe,onDragStart:hNe,onFocus:gNe,onInput:mNe,onKeyDown:vNe,onPaste:yNe,onSelect:C8,onMouseUp:LM,onKeyUp:LM},SNe=wNe,_Ne=pc,CNe=_Ne.unstable_flushControlled,ENe=CNe;function kNe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var z_=T,FM=Sc,TNe=function(e){kNe(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=FM({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":i}),a={whiteSpace:"pre-wrap"};return z_.createElement("div",{className:o},z_.createElement("div",{className:FM("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:a},this.props.text))},t}(z_.Component),RNe=TNe,E8=OA,bh=Lx,k8=Oi,Al=k8.isPlatform("Mac OS X"),MM=Al&&k8.isBrowser("Firefox < 29"),Sl=E8.hasCommandModifier,bs=E8.isCtrlKeyCommand;function T8(e){return Al&&e.altKey||bs(e)}function ANe(e){return Sl(e)?e.shiftKey?"redo":"undo":null}function ONe(e){return!Al&&e.shiftKey?null:T8(e)?"delete-word":"delete"}function DNe(e){return Sl(e)&&Al?"backspace-to-start-of-line":T8(e)?"backspace-word":"backspace"}function $Ne(e){switch(e.keyCode){case 66:return Sl(e)?"bold":null;case 68:return bs(e)?"delete":null;case 72:return bs(e)?"backspace":null;case 73:return Sl(e)?"italic":null;case 74:return Sl(e)?"code":null;case 75:return Al&&bs(e)?"secondary-cut":null;case 77:return bs(e)?"split-block":null;case 79:return bs(e)?"split-block":null;case 84:return Al&&bs(e)?"transpose-characters":null;case 85:return Sl(e)?"underline":null;case 87:return Al&&bs(e)?"backspace-word":null;case 89:return bs(e)?Al?"secondary-paste":"redo":null;case 90:return ANe(e)||null;case bh.RETURN:return"split-block";case bh.DELETE:return ONe(e);case bh.BACKSPACE:return DNe(e);case bh.LEFT:return MM&&Sl(e)?"move-selection-to-start-of-block":null;case bh.RIGHT:return MM&&Sl(e)?"move-selection-to-end-of-block":null;default:return null}}var R8=$Ne,INe=_c;function ck(){return ck=INe||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},ck.apply(this,arguments)}function j_(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){vt(e,i,n[i])})}return e}function yt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A8(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var PNe=wA,LNe=h9,FNe=YDe,MNe=wIe,NNe=ZIe,BNe=SNe,NM=ENe,zNe=RNe,jNe=$9,UNe=Tn,vl=T,KNe=TA,WNe=Fx,VNe=Oi,U_=Sc,HNe=Xa,qNe=R8,GNe=Mx,YNe=ru,BM=ln,zM=km,XNe=Ai,O8=VNe.isBrowser("IE"),ZNe=!O8,jM={edit:BNe,composite:FNe,drag:NNe,cut:null,render:null},UM=!1,JNe=function(e){A8(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}(vl.Component),D8=function(e){A8(t,e);function t(r){var i;return i=e.call(this,r)||this,vt(yt(i),"_blockSelectEvents",void 0),vt(yt(i),"_clipboard",void 0),vt(yt(i),"_handler",void 0),vt(yt(i),"_dragCount",void 0),vt(yt(i),"_internalDrag",void 0),vt(yt(i),"_editorKey",void 0),vt(yt(i),"_placeholderAccessibilityID",void 0),vt(yt(i),"_latestEditorState",void 0),vt(yt(i),"_latestCommittedEditorState",void 0),vt(yt(i),"_pendingStateFromBeforeInput",void 0),vt(yt(i),"_onBeforeInput",void 0),vt(yt(i),"_onBlur",void 0),vt(yt(i),"_onCharacterData",void 0),vt(yt(i),"_onCompositionEnd",void 0),vt(yt(i),"_onCompositionStart",void 0),vt(yt(i),"_onCopy",void 0),vt(yt(i),"_onCut",void 0),vt(yt(i),"_onDragEnd",void 0),vt(yt(i),"_onDragOver",void 0),vt(yt(i),"_onDragStart",void 0),vt(yt(i),"_onDrop",void 0),vt(yt(i),"_onInput",void 0),vt(yt(i),"_onFocus",void 0),vt(yt(i),"_onKeyDown",void 0),vt(yt(i),"_onKeyPress",void 0),vt(yt(i),"_onKeyUp",void 0),vt(yt(i),"_onMouseDown",void 0),vt(yt(i),"_onMouseUp",void 0),vt(yt(i),"_onPaste",void 0),vt(yt(i),"_onSelect",void 0),vt(yt(i),"editor",void 0),vt(yt(i),"editorContainer",void 0),vt(yt(i),"focus",void 0),vt(yt(i),"blur",void 0),vt(yt(i),"setMode",void 0),vt(yt(i),"exitCurrentMode",void 0),vt(yt(i),"restoreEditorDOM",void 0),vt(yt(i),"setClipboard",void 0),vt(yt(i),"getClipboard",void 0),vt(yt(i),"getEditorKey",void 0),vt(yt(i),"update",void 0),vt(yt(i),"onDragEnter",void 0),vt(yt(i),"onDragLeave",void 0),vt(yt(i),"_handleEditorContainerRef",function(o){i.editorContainer=o,i.editor=o!==null?o.firstChild:null}),vt(yt(i),"focus",function(o){var a=i.props.editorState,s=a.getSelection().getHasFocus(),l=i.editor;if(l){var c=WNe.getScrollParent(l),f=o||GNe(c),h=f.x,p=f.y;zM(l)||BM(!1),l.focus(),c===window?window.scrollTo(h,p):KNe.setTop(c,p),s||i.update(UNe.forceSelection(a,a.getSelection()))}}),vt(yt(i),"blur",function(){var o=i.editor;o&&(zM(o)||BM(!1),o.blur())}),vt(yt(i),"setMode",function(o){var a=i.props,s=a.onPaste,l=a.onCut,c=a.onCopy,f=j_({},jM.edit);s&&(f.onPaste=s),l&&(f.onCut=l),c&&(f.onCopy=c);var h=j_({},jM,{edit:f});i._handler=h[o]}),vt(yt(i),"exitCurrentMode",function(){i.setMode("edit")}),vt(yt(i),"restoreEditorDOM",function(o){i.setState({contentsKey:i.state.contentsKey+1},function(){i.focus(o)})}),vt(yt(i),"setClipboard",function(o){i._clipboard=o}),vt(yt(i),"getClipboard",function(){return i._clipboard}),vt(yt(i),"update",function(o){i._latestEditorState=o,i.props.onChange(o)}),vt(yt(i),"onDragEnter",function(){i._dragCount++}),vt(yt(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||HNe(),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&&(NM?NM(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:XNe(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return vl.createElement(zNe,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,c=i.customStyleMap,f=i.editorState,h=i.preventScroll,p=i.readOnly,y=i.textAlignment,m=i.textDirectionality,v=U_({"DraftEditor/root":!0,"DraftEditor/alignLeft":y==="left","DraftEditor/alignRight":y==="right","DraftEditor/alignCenter":y==="center"}),S={outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},x=this.props.role||"textbox",w=x==="combobox"?!!this.props.ariaExpanded:null,C={blockRenderMap:o,blockRendererFn:a,blockStyleFn:s,customStyleMap:j_({},LNe,c),customStyleFn:l,editorKey:this._editorKey,editorState:f,preventScroll:h,textDirectionality:m};return vl.createElement("div",{className:v},this._renderPlaceholder(),vl.createElement("div",{className:U_("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},vl.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:w,"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:U_({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:x,spellCheck:ZNe&&this.props.spellCheck,style:S,suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},vl.createElement(JNe,{editor:this,editorState:f}),vl.createElement(MNe,ck({},C,{key:"contents"+this.state.contentsKey})))))},n.componentDidMount=function(){this._blockSelectEvents=!1,!UM&&YNe("draft_ods_enabled")&&(UM=!0,jNe.initODS()),this.setMode("edit"),O8&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):Ui.execCommand("AutoUrlDetect",!1,!1))},n.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},t}(vl.Component);vt(D8,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:PNe,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:qNe,readOnly:!1,spellCheck:!1,stripPastedStyles:!1});var QNe=D8,eBe={},tBe={stringify:function(t){return"_"+String(t)},unstringify:function(t){return t.slice(1)}},$8=tBe,nBe=$8,rBe=kc,KM=rBe.strlen;function iBe(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:KM(o.slice(0,r)),length:KM(o.slice(r,i)),key:Number(t[nBe.stringify(a)])})}),n}var oBe=iBe,WM=kc,aBe=xm,sBe=function(t,n){return t===n},lBe=function(t){return!!t},uBe=[];function cBe(e,t,n){var r=[],i=t.map(function(o){return o.has(n)}).toList();return aBe(i,sBe,lBe,function(o,a){var s=e.getText();r.push({offset:WM.strlen(s.slice(0,o)),length:WM.strlen(s.slice(o,a)),style:n})}),r}function fBe(e){var t=e.getCharacterList().map(function(r){return r.getStyle()}).toList(),n=t.flatten().toSet().map(function(r){return cBe(e,t,r)});return Array.prototype.concat.apply(uBe,n.toJS())}var dBe=fBe;function pBe(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){hBe(e,i,n[i])})}return e}function hBe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gBe=wc,mBe=Bo,I8=$8,vBe=oBe,yBe=dBe,bBe=ln,VM=function(t,n){return{key:t.getKey(),text:t.getText(),type:t.getType(),depth:t.getDepth(),inlineStyleRanges:yBe(t),entityRanges:vBe(t,n),data:t.getData().toObject()}},xBe=function(t,n,r,i){if(t instanceof gBe){r.push(VM(t,n));return}t instanceof mBe||bBe(!1);var o=t.getParentKey(),a=i[t.getKey()]=pBe({},VM(t,n),{children:[]});if(o){i[o].children.push(a);return}r.push(a)},wBe=function(t,n){var r=n.entityMap,i=[],o={},a={},s=0;return t.getBlockMap().forEach(function(l){l.findEntityRanges(function(c){return c.getEntity()!==null},function(c){var f=l.getEntityAt(c),h=I8.stringify(f);a[h]||(a[h]=f,r[h]="".concat(s),s++)}),xBe(l,r,i,o)}),{blocks:i,entityMap:r}},SBe=function(t,n){var r=n.blocks,i=n.entityMap,o={};return Object.keys(i).forEach(function(a,s){var l=t.getEntity(I8.unstringify(a));o[s]={type:l.getType(),mutability:l.getMutability(),data:l.getData()}}),{blocks:r,entityMap:o}},_Be=function(t){var n={entityMap:{},blocks:[]};return n=wBe(t,n),n=SBe(t,n),n},CBe=_Be;function Lh(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){EBe(e,i,n[i])})}return e}function EBe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kBe=Xa,P8=ln,TBe=function(t,n){for(var r=[].concat(t).reverse();r.length;){var i=r.pop();n(i);var o=i.children;Array.isArray(o)||P8(!1),r=r.concat([].concat(o.reverse()))}},HM=function(t){if(!(t&&t.type))return!1;var n=t.type;return n==="unordered-list-item"||n==="ordered-list-item"},RBe=function(t){Array.isArray(t.children)&&(t.children=t.children.map(function(n){return n.type===t.type?Lh({},n,{depth:(t.depth||0)+1}):n}))},ABe={fromRawTreeStateToRawState:function(t){var n=t.blocks,r=[];return Array.isArray(n)||P8(!1),!Array.isArray(n)||!n.length?t:(TBe(n,function(i){var o=Lh({},i);HM(i)&&(o.depth=o.depth||0,RBe(i),i.children!=null&&i.children.length>0)||(delete o.children,r.push(o))}),t.blocks=r,Lh({},t,{blocks:r}))},fromRawStateToRawTreeState:function(t){var n=[],r=[];return t.blocks.forEach(function(i){var o=HM(i),a=i.depth||0,s=Lh({},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 c={key:kBe(),text:"",depth:a-1,type:i.type,children:[],entityRanges:[],inlineStyleRanges:[]};r.unshift(c),a===1?n.push(c):l!=null&&l.children.push(c),c.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)}}),Lh({},t,{blocks:n})}},OBe=ABe,DBe=No,$Be=tn,IBe=$Be.List;function PBe(e,t){var n=e.map(function(r,i){var o=t[i];return DBe.create({style:r,entity:o})});return IBe(n)}var LBe=PBe,FBe=kc,qM=FBe.substr;function MBe(e,t){var n=Array(e.length).fill(null);return t&&t.forEach(function(r){for(var i=qM(e,0,r.offset).length,o=i+qM(e,r.offset,r.length).length,a=i;a<o;a++)n[a]=r.key}),n}var NBe=MBe,BBe=kc,zBe=tn,jBe=zBe.OrderedSet,GM=BBe.substr,UBe=jBe();function KBe(e,t){var n=Array(e.length).fill(UBe);return t&&t.forEach(function(r){for(var i=GM(e,0,r.offset).length,o=i+GM(e,r.offset,r.length).length;i<o;)n[i]=n[i].add(r.style),i++}),n}var WBe=KBe;function Ng(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){VBe(e,i,n[i])})}return e}function VBe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var HBe=wc,YM=Bo,qBe=mA,GBe=Rx,XM=OBe,ZM=Ax,YBe=LBe,XBe=NBe,ZBe=WBe,L8=Xa,JBe=ru,IA=tn,fk=ln,JM=JBe("draft_tree_data_support"),QM=IA.List,QBe=IA.Map,F8=IA.OrderedMap,dk=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||L8(),data:QBe(o),characterList:e3e(t,n)};return l},e3e=function(t,n){var r=t.text,i=t.entityRanges,o=t.inlineStyleRanges,a=i||[],s=o||[];return YBe(ZBe(r,s),XBe(r,a.filter(function(l){return n.hasOwnProperty(l.key)}).map(function(l){return Ng({},l,{key:n[l.key]})})))},K_=function(t){return Ng({},t,{key:t.key||L8()})},eN=function(t,n,r){var i=n.map(function(o){return Ng({},o,{parentRef:r})});return t.concat(i.reverse())},t3e=function(t,n){return t.map(K_).reduce(function(r,i,o){Array.isArray(i.children)||fk(!1);var a=i.children.map(K_),s=new YM(Ng({},dk(i,n),{prevSibling:o===0?null:t[o-1].key,nextSibling:o===t.length-1?null:t[o+1].key,children:QM(a.map(function(S){return S.key}))}));r=r.set(s.getKey(),s);for(var l=eN([],a,s);l.length>0;){var c=l.pop(),f=c.parentRef,h=f.getChildKeys(),p=h.indexOf(c.key),y=Array.isArray(c.children);if(!y){y||fk(!1);break}var m=c.children.map(K_),v=new YM(Ng({},dk(c,n),{parent:f.getKey(),children:QM(m.map(function(S){return S.key})),prevSibling:p===0?null:h.get(p-1),nextSibling:p===h.size-1?null:h.get(p+1)}));r=r.set(v.getKey(),v),l=eN(l,m,v)}return r},F8())},n3e=function(t,n){return F8(t.map(function(r){var i=new HBe(dk(r,n));return[i.getKey(),i]}))},r3e=function(t,n){var r=t.blocks.find(function(a){return Array.isArray(a.children)&&a.children.length>0}),i=JM&&!r?XM.fromRawStateToRawTreeState(t).blocks:t.blocks;if(!JM)return n3e(r?XM.fromRawTreeStateToRawState(t).blocks:i,n);var o=t3e(i,n);return o},i3e=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]=GBe.__create(a,s,l||{})}),r},o3e=function(t){Array.isArray(t.blocks)||fk(!1);var n=i3e(t),r=r3e(t,n),i=r.isEmpty()?new ZM:ZM.createEmpty(r.first().getKey());return new qBe({blockMap:r,entityMap:n,selectionBefore:i,selectionAfter:i})},a3e=o3e,s3e=o8;function l3e(e){var t=s3e(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 c=t[l];c.height!==0&&c.width!==0&&(n=Math.min(n,c.top),r=Math.max(r,c.right),i=Math.max(i,c.bottom),o=Math.min(o,c.left))}}return{top:n,right:r,bottom:i,left:o,width:r-o,height:i-n}}var u3e=l3e,c3e=u3e;function f3e(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),r=c3e(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 d3e=f3e,p3e=sOe,h3e=bm,g3e=No,m3e=hOe,v3e=wc,y3e=mA,b3e=wA,x3e=h9,w3e=QNe,S3e=H9,_3e=Rx,C3e=Ri,E3e=JU,k3e=Tn,T3e=OA,R3e=eBe,A3e=x8,O3e=Ax,D3e=CBe,$3e=a3e,I3e=Xa,P3e=R8,L3e=d3e,F3e=v8,M3e={Editor:w3e,EditorBlock:S3e,EditorState:k3e,CompositeDecorator:m3e,Entity:_3e,EntityInstance:E3e,BlockMapBuilder:h3e,CharacterMetadata:g3e,ContentBlock:v3e,ContentState:y3e,RawDraftContentState:R3e,SelectionState:O3e,AtomicBlockUtils:p3e,KeyBindingUtil:T3e,Modifier:C3e,RichUtils:A3e,DefaultDraftBlockRenderMap:b3e,DefaultDraftInlineStyle:x3e,convertFromHTML:F3e,convertFromRaw:$3e,convertToRaw:D3e,genKey:I3e,getDefaultKeyBinding:P3e,getVisibleSelectionRect:L3e},pl=M3e;var PA={},N3e=Pn;Object.defineProperty(PA,"__esModule",{value:!0});var Hd=PA.default=void 0,B3e=N3e(Ln()),z3e=k,j3e=(0,B3e.default)((0,z3e.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");Hd=PA.default=j3e;var LA={},U3e=Pn;Object.defineProperty(LA,"__esModule",{value:!0});var M8=LA.default=void 0,K3e=U3e(Ln()),W3e=k,V3e=(0,K3e.default)((0,W3e.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");M8=LA.default=V3e;function Tc(e){this._maxSize=e,this.clear()}Tc.prototype.clear=function(){this._size=0,this._values=Object.create(null)};Tc.prototype.get=function(e){return this._values[e]};Tc.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var H3e=/[^.^\]^[]+|(?=\[\]|\.\.)/g,N8=/^\d+$/,q3e=/^\d/,G3e=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,Y3e=/^\s*(['"]?)(.*?)(\1)\s*$/,FA=512,tN=new Tc(FA),nN=new Tc(FA),rN=new Tc(FA),Xu={Cache:Tc,split:pk,normalizePath:W_,setter:function(e){var t=W_(e);return nN.get(e)||nN.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=W_(e);return rN.get(e)||rN.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+(MA(n)||N8.test(n)?"["+n+"]":(t?".":"")+n)},"")},forEach:function(e,t,n){X3e(Array.isArray(e)?e:pk(e),t,n)}};function W_(e){return tN.get(e)||tN.set(e,pk(e).map(function(t){return t.replace(Y3e,"$2")}))}function pk(e){return e.match(H3e)||[""]}function X3e(e,t,n){var r=e.length,i,o,a,s;for(o=0;o<r;o++)i=e[o],i&&(Q3e(i)&&(i='"'+i+'"'),s=MA(i),a=!s&&/^\d+$/.test(i),t.call(n,i,s,a,o,e))}function MA(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function Z3e(e){return e.match(q3e)&&!e.match(N8)}function J3e(e){return G3e.test(e)}function Q3e(e){return!MA(e)&&(Z3e(e)||J3e(e))}const e4e=/[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,zx=e=>e.match(e4e)||[],jx=e=>e[0].toUpperCase()+e.slice(1),NA=(e,t)=>zx(e).join(t).toLowerCase(),B8=e=>zx(e).reduce((t,n)=>`${t}${t?n[0].toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}`,""),t4e=e=>jx(B8(e)),n4e=e=>NA(e,"_"),r4e=e=>NA(e,"-"),i4e=e=>jx(NA(e," ")),o4e=e=>zx(e).map(jx).join(" ");var V_={words:zx,upperFirst:jx,camelCase:B8,pascalCase:t4e,snakeCase:n4e,kebabCase:r4e,sentenceCase:i4e,titleCase:o4e},BA={exports:{}};BA.exports=function(e){return z8(a4e(e),e)};BA.exports.array=z8;function z8(e,t){var n=e.length,r=new Array(n),i={},o=n,a=s4e(t),s=l4e(e);for(t.forEach(function(c){if(!s.has(c[0])||!s.has(c[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(c,f,h){if(h.has(c)){var p;try{p=", node was:"+JSON.stringify(c)}catch{p=""}throw new Error("Cyclic dependency"+p)}if(!s.has(c))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(c));if(!i[f]){i[f]=!0;var y=a.get(c)||new Set;if(y=Array.from(y),f=y.length){h.add(c);do{var m=y[--f];l(m,s.get(m),h)}while(f);h.delete(c)}r[--n]=c}}}function a4e(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 s4e(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 l4e(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}var u4e=BA.exports;const c4e=Ha(u4e),f4e=Object.prototype.toString,d4e=Error.prototype.toString,p4e=RegExp.prototype.toString,h4e=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",g4e=/^Symbol\((.*)\)(.*)$/;function m4e(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function iN(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return m4e(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return h4e.call(e).replace(g4e,"Symbol($1)");const r=f4e.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+d4e.call(e)+"]":r==="RegExp"?p4e.call(e):null}function Zu(e,t){let n=iN(e,t);return n!==null?n:JSON.stringify(e,function(r,i){let o=iN(this[r],t);return o!==null?o:i},2)}function j8(e){return e==null?[]:[].concat(e)}let v4e=/\$\{\s*(\w+)\s*\}/g;class ji 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(v4e,(i,o)=>Zu(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=[],j8(t).forEach(o=>{ji.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,ji)}}let _s={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 \`${Zu(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${Zu(n,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${Zu(n,!0)}\``+i}},Zo={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"},yl={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"},hk={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},y4e={isValue:"${path} field must be ${value}"},gk={noUnknown:"${path} field has unspecified keys: ${unknown}"},b0={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:_s,string:Zo,number:yl,date:hk,object:gk,array:b0,boolean:y4e});const Ux=e=>e&&e.__isYupSchema__;class k1{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 k1(t,(s,l)=>{var c;let f=a(...s)?i:o;return(c=f==null?void 0:f(l))!=null?c: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(!Ux(i))throw new TypeError("conditions must return a schema object");return i.resolve(n)}}const My={context:"$",value:"."};class Rc{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]===My.context,this.isValue=this.key[0]===My.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?My.context:this.isValue?My.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&Xu.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}}Rc.prototype.__isYupRef=!0;const La=e=>e==null;function yf(e){function t({value:n,path:r="",options:i,originalValue:o,schema:a},s,l){const{name:c,test:f,params:h,message:p,skipAbsent:y}=e;let{parent:m,context:v,abortEarly:S=a.spec.abortEarly}=i;function x(j){return Rc.isRef(j)?j.getValue(n,m,v):j}function w(j={}){const U=Object.assign({value:n,originalValue:o,label:a.spec.label,path:j.path||r,spec:a.spec},h,j.params);for(const se of Object.keys(U))U[se]=x(U[se]);const le=new ji(ji.formatError(j.message||p,U),n,U.path,j.type||c);return le.params=U,le}const C=S?s:l;let E={path:r,parent:m,type:c,from:i.from,createError:w,resolve:x,options:i,originalValue:o,schema:a};const O=j=>{ji.isError(j)?C(j):j?l(null):C(w())},$=j=>{ji.isError(j)?C(j):s(j)},I=y&&La(n);if(!i.sync){try{Promise.resolve(I?!0:f.call(E,n,E)).then(O,$)}catch(j){$(j)}return}let W;try{var H;if(W=I?!0:f.call(E,n,E),typeof((H=W)==null?void 0:H.then)=="function")throw new Error(`Validation test of type: "${E.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(j){$(j);return}O(W)}return t.OPTIONS=e,t}function b4e(e,t,n,r=n){let i,o,a;return t?(Xu.forEach(t,(s,l,c)=>{let f=l?s.slice(1,s.length-1):s;e=e.resolve({context:r,parent:i,value:n});let h=e.type==="tuple",p=c?parseInt(f,10):0;if(e.innerType||h){if(h&&!c)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=h?e.spec.types[p]:e.innerType}if(!c){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 T1 extends Set{describe(){const t=[];for(const n of this.values())t.push(Rc.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 T1(this.values())}merge(t,n){const r=this.clone();return t.forEach(i=>r.add(i)),n.forEach(i=>r.delete(i)),r}}function jf(e,t=new Map){if(Ux(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]=jf(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,jf(i,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(jf(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,i]of Object.entries(e))n[r]=jf(i,t)}else throw Error(`Unable to clone ${e}`);return n}class $o{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 T1,this._blacklist=new T1,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(_s.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=jf(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&&La(o))return o;let a=Zu(t),s=Zu(o);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
|
|
435
|
+
|
|
436
|
+
attempted value: ${a}
|
|
437
|
+
`+(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 c=[];for(let f of Object.values(this.internalTests))f&&c.push(f);this.runTests({path:o,value:l,originalValue:a,options:n,tests:c},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:c}=t,f=v=>{i||(i=!0,n(v,a))},h=v=>{i||(i=!0,r(v,a))},p=o.length,y=[];if(!p)return h([]);let m={value:a,originalValue:s,path:l,options:c,schema:this};for(let v=0;v<o.length;v++){const S=o[v];S(m,f,function(w){w&&(y=y.concat(w)),--p<=0&&h(y)})}}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 c=r[s];const f=Object.assign({},a,{strict:!0,parent:r,value:c,originalValue:o[s],key:void 0,[l?"index":"key"]:s,path:l||s.includes(".")?`${i||""}[${c?s:`"${s}"`}]`:(i?`${i}.`:"")+t});return(h,p,y)=>this.resolve(f)._validate(c,f,p,y)}validate(t,n){let r=this.resolve(Object.assign({},n,{value:t}));return new Promise((i,o)=>r._validate(t,n,(a,s)=>{ji.isError(a)&&(a.value=s),o(a)},(a,s)=>{a.length?o(new ji(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 ji.isError(o)&&(o.value=a),o},(o,a)=>{if(o.length)throw new ji(o,t);i=a}),i}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(ji.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(ji.isError(r))return!1;throw r}}_getDefault(){let t=this.spec.default;return t==null?t:typeof t=="function"?t.call(this):jf(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=yf({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=yf({message:n,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=_s.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=_s.notNull){return this.nullability(!1,t)}required(t=_s.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=_s.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),i=yf(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=j8(t).map(o=>new Rc(o));return i.forEach(o=>{o.isSibling&&r.deps.push(o.key)}),r.conditions.push(typeof n=="function"?new k1(i,n):k1.fromOptions(i,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=yf({message:t,name:"typeError",test(r){return!La(r)&&!this.schema._typeCheck(r)?this.createError({params:{type:this.schema.type}}):!0}}),n}oneOf(t,n=_s.oneOf){let r=this.clone();return t.forEach(i=>{r._whitelist.add(i),r._blacklist.delete(i)}),r.internalTests.whiteList=yf({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=_s.notOneOf){let r=this.clone();return t.forEach(i=>{r._blacklist.add(i),r._whitelist.delete(i)}),r.internalTests.blacklist=yf({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,c,f)=>f.findIndex(h=>h.name===l.name)===c)}}}$o.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])$o.prototype[`${e}At`]=function(t,n,r={}){const{parent:i,parentPath:o,schema:a}=b4e(this,t,n,r.context);return a[e](i&&i[o],Object.assign({},r,{parent:i,path:t}))};for(const e of["equals","is"])$o.prototype[e]=$o.prototype.oneOf;for(const e of["not","nope"])$o.prototype[e]=$o.prototype.notOneOf;let x4e=/^[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])?)*$/,w4e=/^((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,S4e=/^(?:[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,_4e=e=>La(e)||e===e.trim(),C4e={}.toString();function R1(){return new U8}class U8 extends $o{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===C4e?t:i})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||_s.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=Zo.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=Zo.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=Zo.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||Zo.matches,params:{regex:t},skipAbsent:!0,test:a=>a===""&&r||a.search(t)!==-1})}email(t=Zo.email){return this.matches(x4e,{name:"email",message:t,excludeEmptyString:!0})}url(t=Zo.url){return this.matches(w4e,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=Zo.uuid){return this.matches(S4e,{name:"uuid",message:t,excludeEmptyString:!1})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=Zo.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:_4e})}lowercase(t=Zo.lowercase){return this.transform(n=>La(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>La(n)||n===n.toLowerCase()})}uppercase(t=Zo.uppercase){return this.transform(n=>La(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>La(n)||n===n.toUpperCase()})}}R1.prototype=U8.prototype;let E4e=e=>e!=+e;function Fh(){return new K8}class K8 extends $o{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!E4e(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=yl.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=yl.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=yl.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=yl.moreThan){return this.test({message:n,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test(r){return r>this.resolve(t)}})}positive(t=yl.positive){return this.moreThan(0,t)}negative(t=yl.negative){return this.lessThan(0,t)}integer(t=yl.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:n=>Number.isInteger(n)})}truncate(){return this.transform(t=>La(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=>La(i)?i:Math[t](i))}}Fh.prototype=K8.prototype;var k4e=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;function T4e(e){var t=[1,4,5,6,7,10,11],n=0,r,i;if(i=k4e.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 R4e=new Date(""),A4e=e=>Object.prototype.toString.call(e)==="[object Date]";class Kx extends $o{constructor(){super({type:"date",check(t){return A4e(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)?t:(t=T4e(t),isNaN(t)?Kx.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(Rc.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=hk.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=hk.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)}})}}Kx.INVALID_DATE=R4e;Kx.prototype;function O4e(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([a,s])=>`${a}-${s}`));function o(a,s){let l=Xu.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),Rc.isRef(s)&&s.isSibling?o(s.path,a):Ux(s)&&"deps"in s&&s.deps.forEach(l=>o(l,a))}return c4e.array(Array.from(r),n).reverse()}function oN(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 W8(e){return(t,n)=>oN(e,t)-oN(e,n)}const V8=(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 x0(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=x0(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=x0(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(x0)}):"optional"in e?e.optional():e}const D4e=(e,t)=>{const n=[...Xu.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),i=Xu.getter(Xu.join(n),!0)(e);return!!(i&&r in i)};let aN=e=>Object.prototype.toString.call(e)==="[object Object]";function $4e(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const I4e=W8([]);function zA(e){return new H8(e)}class H8 extends $o{constructor(t){super({type:"object",check(n){return aN(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=I4e,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(h=>!this._nodes.includes(h))),l={},c=Object.assign({},n,{parent:l,__validating:n.__validating||!1}),f=!1;for(const h of s){let p=o[h],y=h in i;if(p){let m,v=i[h];c.path=(n.path?`${n.path}.`:"")+h,p=p.resolve({value:v,context:n.context,parent:l});let S=p instanceof $o?p.spec:void 0,x=S==null?void 0:S.strict;if(S!=null&&S.strip){f=f||h in i;continue}m=!n.__validating||!x?p.cast(i[h],c):i[h],m!==void 0&&(l[h]=m)}else y&&!a&&(l[h]=i[h]);(y!==h in l||l[h]!==i[h])&&(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,c)=>{if(!s||!aN(c)){i(l,c);return}a=a||c;let f=[];for(let h of this._nodes){let p=this.fields[h];!p||Rc.isRef(p)||f.push(p.asNestedTest({options:n,key:h,parent:c,parentPath:n.path,originalParent:a}))}this.runTests({tests:f,value:c,originalValue:a,options:n},r,h=>{i(h.sort(this._sortErrors).concat(l),c)})})}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=O4e(t,n),r._sortErrors=W8(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 x0(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=Xu.getter(t,!0);return this.transform(o=>{if(!o)return o;let a=o;return D4e(o,t)&&(a=Object.assign({},o),r||delete a[t],a[n]=i(o)),a})}json(){return this.transform(V8)}noUnknown(t=!0,n=gk.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=$4e(this.schema,i);return!t||o.length===0||this.createError({params:{unknown:o.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=gk.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(V_.camelCase)}snakeCase(){return this.transformKeys(V_.snakeCase)}constantCase(){return this.transformKeys(t=>V_.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}}zA.prototype=H8.prototype;function q8(e){return new G8(e)}class G8 extends $o{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,c)=>{var f;if(!s||!a||!this._typeCheck(c)){i(l,c);return}let h=new Array(c.length);for(let y=0;y<c.length;y++){var p;h[y]=a.asNestedTest({options:n,index:y,parent:c,parentPath:n.path,originalParent:(p=n.originalValue)!=null?p:t})}this.runTests({value:c,tests:h,originalValue:(f=n.originalValue)!=null?f:t,options:n},r,y=>i(y.concat(l),c))})}clone(t){const n=super.clone(t);return n.innerType=this.innerType,n}json(){return this.transform(V8)}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(!Ux(t))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+Zu(t));return n.innerType=t,n}length(t,n=b0.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||b0.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||b0.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}}q8.prototype=G8.prototype;var sN=Array.isArray,lN=Object.keys,P4e=Object.prototype.hasOwnProperty,L4e=typeof Element<"u";function mk(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var n=sN(e),r=sN(t),i,o,a;if(n&&r){if(o=e.length,o!=t.length)return!1;for(i=o;i--!==0;)if(!mk(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 c=e instanceof RegExp,f=t instanceof RegExp;if(c!=f)return!1;if(c&&f)return e.toString()==t.toString();var h=lN(e);if(o=h.length,o!==lN(t).length)return!1;for(i=o;i--!==0;)if(!P4e.call(t,h[i]))return!1;if(L4e&&e instanceof Element&&t instanceof Element)return e===t;for(i=o;i--!==0;)if(a=h[i],!(a==="_owner"&&e.$$typeof)&&!mk(e[a],t[a]))return!1;return!0}return e!==e&&t!==t}var F4e=function(t,n){try{return mk(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 $u=Ha(F4e);var M4e=function(t){return N4e(t)&&!B4e(t)};function N4e(e){return!!e&&typeof e=="object"}function B4e(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||U4e(e)}var z4e=typeof Symbol=="function"&&Symbol.for,j4e=z4e?Symbol.for("react.element"):60103;function U4e(e){return e.$$typeof===j4e}function K4e(e){return Array.isArray(e)?[]:{}}function A1(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Bg(K4e(e),e,t):e}function W4e(e,t,n){return e.concat(t).map(function(r){return A1(r,n)})}function V4e(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(i){r[i]=A1(e[i],n)}),Object.keys(t).forEach(function(i){!n.isMergeableObject(t[i])||!e[i]?r[i]=A1(t[i],n):r[i]=Bg(e[i],t[i],n)}),r}function Bg(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||W4e,n.isMergeableObject=n.isMergeableObject||M4e;var r=Array.isArray(t),i=Array.isArray(e),o=r===i;return o?r?n.arrayMerge(e,t,n):V4e(e,t,n):A1(t,n)}Bg.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return Bg(r,i,n)},{})};var vk=Bg,H4e=typeof global=="object"&&global&&global.Object===Object&&global;const Y8=H4e;var q4e=typeof self=="object"&&self&&self.Object===Object&&self,G4e=Y8||q4e||Function("return this")();const Za=G4e;var Y4e=Za.Symbol;const Hl=Y4e;var X8=Object.prototype,X4e=X8.hasOwnProperty,Z4e=X8.toString,xh=Hl?Hl.toStringTag:void 0;function J4e(e){var t=X4e.call(e,xh),n=e[xh];try{e[xh]=void 0;var r=!0}catch{}var i=Z4e.call(e);return r&&(t?e[xh]=n:delete e[xh]),i}var Q4e=Object.prototype,eze=Q4e.toString;function tze(e){return eze.call(e)}var nze="[object Null]",rze="[object Undefined]",uN=Hl?Hl.toStringTag:void 0;function Ac(e){return e==null?e===void 0?rze:nze:uN&&uN in Object(e)?J4e(e):tze(e)}function Z8(e,t){return function(n){return e(t(n))}}var ize=Z8(Object.getPrototypeOf,Object);const jA=ize;function Oc(e){return e!=null&&typeof e=="object"}var oze="[object Object]",aze=Function.prototype,sze=Object.prototype,J8=aze.toString,lze=sze.hasOwnProperty,uze=J8.call(Object);function cN(e){if(!Oc(e)||Ac(e)!=oze)return!1;var t=jA(e);if(t===null)return!0;var n=lze.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&J8.call(n)==uze}function cze(){this.__data__=[],this.size=0}function Q8(e,t){return e===t||e!==e&&t!==t}function Wx(e,t){for(var n=e.length;n--;)if(Q8(e[n][0],t))return n;return-1}var fze=Array.prototype,dze=fze.splice;function pze(e){var t=this.__data__,n=Wx(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():dze.call(t,n,1),--this.size,!0}function hze(e){var t=this.__data__,n=Wx(t,e);return n<0?void 0:t[n][1]}function gze(e){return Wx(this.__data__,e)>-1}function mze(e,t){var n=this.__data__,r=Wx(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Hs(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])}}Hs.prototype.clear=cze;Hs.prototype.delete=pze;Hs.prototype.get=hze;Hs.prototype.has=gze;Hs.prototype.set=mze;function vze(){this.__data__=new Hs,this.size=0}function yze(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function bze(e){return this.__data__.get(e)}function xze(e){return this.__data__.has(e)}function Rm(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var wze="[object AsyncFunction]",Sze="[object Function]",_ze="[object GeneratorFunction]",Cze="[object Proxy]";function e7(e){if(!Rm(e))return!1;var t=Ac(e);return t==Sze||t==_ze||t==wze||t==Cze}var Eze=Za["__core-js_shared__"];const H_=Eze;var fN=function(){var e=/[^.]+$/.exec(H_&&H_.keys&&H_.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function kze(e){return!!fN&&fN in e}var Tze=Function.prototype,Rze=Tze.toString;function Dc(e){if(e!=null){try{return Rze.call(e)}catch{}try{return e+""}catch{}}return""}var Aze=/[\\^$.*+?()[\]{}|]/g,Oze=/^\[object .+?Constructor\]$/,Dze=Function.prototype,$ze=Object.prototype,Ize=Dze.toString,Pze=$ze.hasOwnProperty,Lze=RegExp("^"+Ize.call(Pze).replace(Aze,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Fze(e){if(!Rm(e)||kze(e))return!1;var t=e7(e)?Lze:Oze;return t.test(Dc(e))}function Mze(e,t){return e==null?void 0:e[t]}function $c(e,t){var n=Mze(e,t);return Fze(n)?n:void 0}var Nze=$c(Za,"Map");const zg=Nze;var Bze=$c(Object,"create");const jg=Bze;function zze(){this.__data__=jg?jg(null):{},this.size=0}function jze(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Uze="__lodash_hash_undefined__",Kze=Object.prototype,Wze=Kze.hasOwnProperty;function Vze(e){var t=this.__data__;if(jg){var n=t[e];return n===Uze?void 0:n}return Wze.call(t,e)?t[e]:void 0}var Hze=Object.prototype,qze=Hze.hasOwnProperty;function Gze(e){var t=this.__data__;return jg?t[e]!==void 0:qze.call(t,e)}var Yze="__lodash_hash_undefined__";function Xze(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=jg&&t===void 0?Yze:t,this}function cc(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])}}cc.prototype.clear=zze;cc.prototype.delete=jze;cc.prototype.get=Vze;cc.prototype.has=Gze;cc.prototype.set=Xze;function Zze(){this.size=0,this.__data__={hash:new cc,map:new(zg||Hs),string:new cc}}function Jze(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Vx(e,t){var n=e.__data__;return Jze(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Qze(e){var t=Vx(this,e).delete(e);return this.size-=t?1:0,t}function eje(e){return Vx(this,e).get(e)}function tje(e){return Vx(this,e).has(e)}function nje(e,t){var n=Vx(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function iu(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])}}iu.prototype.clear=Zze;iu.prototype.delete=Qze;iu.prototype.get=eje;iu.prototype.has=tje;iu.prototype.set=nje;var rje=200;function ije(e,t){var n=this.__data__;if(n instanceof Hs){var r=n.__data__;if(!zg||r.length<rje-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new iu(r)}return n.set(e,t),this.size=n.size,this}function qd(e){var t=this.__data__=new Hs(e);this.size=t.size}qd.prototype.clear=vze;qd.prototype.delete=yze;qd.prototype.get=bze;qd.prototype.has=xze;qd.prototype.set=ije;function oje(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var aje=function(){try{var e=$c(Object,"defineProperty");return e({},"",{}),e}catch{}}();const dN=aje;function t7(e,t,n){t=="__proto__"&&dN?dN(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var sje=Object.prototype,lje=sje.hasOwnProperty;function n7(e,t,n){var r=e[t];(!(lje.call(e,t)&&Q8(r,n))||n===void 0&&!(t in e))&&t7(e,t,n)}function Hx(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?t7(n,s,l):n7(n,s,l)}return n}function uje(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var cje="[object Arguments]";function pN(e){return Oc(e)&&Ac(e)==cje}var r7=Object.prototype,fje=r7.hasOwnProperty,dje=r7.propertyIsEnumerable,pje=pN(function(){return arguments}())?pN:function(e){return Oc(e)&&fje.call(e,"callee")&&!dje.call(e,"callee")};const hje=pje;var gje=Array.isArray;const Am=gje;function mje(){return!1}var i7=typeof exports=="object"&&exports&&!exports.nodeType&&exports,hN=i7&&typeof module=="object"&&module&&!module.nodeType&&module,vje=hN&&hN.exports===i7,gN=vje?Za.Buffer:void 0,yje=gN?gN.isBuffer:void 0,bje=yje||mje;const o7=bje;var xje=9007199254740991,wje=/^(?:0|[1-9]\d*)$/;function Sje(e,t){var n=typeof e;return t=t??xje,!!t&&(n=="number"||n!="symbol"&&wje.test(e))&&e>-1&&e%1==0&&e<t}var _je=9007199254740991;function a7(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=_je}var Cje="[object Arguments]",Eje="[object Array]",kje="[object Boolean]",Tje="[object Date]",Rje="[object Error]",Aje="[object Function]",Oje="[object Map]",Dje="[object Number]",$je="[object Object]",Ije="[object RegExp]",Pje="[object Set]",Lje="[object String]",Fje="[object WeakMap]",Mje="[object ArrayBuffer]",Nje="[object DataView]",Bje="[object Float32Array]",zje="[object Float64Array]",jje="[object Int8Array]",Uje="[object Int16Array]",Kje="[object Int32Array]",Wje="[object Uint8Array]",Vje="[object Uint8ClampedArray]",Hje="[object Uint16Array]",qje="[object Uint32Array]",On={};On[Bje]=On[zje]=On[jje]=On[Uje]=On[Kje]=On[Wje]=On[Vje]=On[Hje]=On[qje]=!0;On[Cje]=On[Eje]=On[Mje]=On[kje]=On[Nje]=On[Tje]=On[Rje]=On[Aje]=On[Oje]=On[Dje]=On[$je]=On[Ije]=On[Pje]=On[Lje]=On[Fje]=!1;function Gje(e){return Oc(e)&&a7(e.length)&&!!On[Ac(e)]}function UA(e){return function(t){return e(t)}}var s7=typeof exports=="object"&&exports&&!exports.nodeType&&exports,lg=s7&&typeof module=="object"&&module&&!module.nodeType&&module,Yje=lg&&lg.exports===s7,q_=Yje&&Y8.process,Xje=function(){try{var e=lg&&lg.require&&lg.require("util").types;return e||q_&&q_.binding&&q_.binding("util")}catch{}}();const Ad=Xje;var mN=Ad&&Ad.isTypedArray,Zje=mN?UA(mN):Gje;const Jje=Zje;var Qje=Object.prototype,e5e=Qje.hasOwnProperty;function l7(e,t){var n=Am(e),r=!n&&hje(e),i=!n&&!r&&o7(e),o=!n&&!r&&!i&&Jje(e),a=n||r||i||o,s=a?uje(e.length,String):[],l=s.length;for(var c in e)(t||e5e.call(e,c))&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Sje(c,l)))&&s.push(c);return s}var t5e=Object.prototype;function KA(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||t5e;return e===n}var n5e=Z8(Object.keys,Object);const r5e=n5e;var i5e=Object.prototype,o5e=i5e.hasOwnProperty;function a5e(e){if(!KA(e))return r5e(e);var t=[];for(var n in Object(e))o5e.call(e,n)&&n!="constructor"&&t.push(n);return t}function u7(e){return e!=null&&a7(e.length)&&!e7(e)}function WA(e){return u7(e)?l7(e):a5e(e)}function s5e(e,t){return e&&Hx(t,WA(t),e)}function l5e(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var u5e=Object.prototype,c5e=u5e.hasOwnProperty;function f5e(e){if(!Rm(e))return l5e(e);var t=KA(e),n=[];for(var r in e)r=="constructor"&&(t||!c5e.call(e,r))||n.push(r);return n}function VA(e){return u7(e)?l7(e,!0):f5e(e)}function d5e(e,t){return e&&Hx(t,VA(t),e)}var c7=typeof exports=="object"&&exports&&!exports.nodeType&&exports,vN=c7&&typeof module=="object"&&module&&!module.nodeType&&module,p5e=vN&&vN.exports===c7,yN=p5e?Za.Buffer:void 0,bN=yN?yN.allocUnsafe:void 0;function h5e(e,t){if(t)return e.slice();var n=e.length,r=bN?bN(n):new e.constructor(n);return e.copy(r),r}function f7(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function g5e(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 d7(){return[]}var m5e=Object.prototype,v5e=m5e.propertyIsEnumerable,xN=Object.getOwnPropertySymbols,y5e=xN?function(e){return e==null?[]:(e=Object(e),g5e(xN(e),function(t){return v5e.call(e,t)}))}:d7;const HA=y5e;function b5e(e,t){return Hx(e,HA(e),t)}function p7(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var x5e=Object.getOwnPropertySymbols,w5e=x5e?function(e){for(var t=[];e;)p7(t,HA(e)),e=jA(e);return t}:d7;const h7=w5e;function S5e(e,t){return Hx(e,h7(e),t)}function g7(e,t,n){var r=t(e);return Am(e)?r:p7(r,n(e))}function _5e(e){return g7(e,WA,HA)}function C5e(e){return g7(e,VA,h7)}var E5e=$c(Za,"DataView");const yk=E5e;var k5e=$c(Za,"Promise");const bk=k5e;var T5e=$c(Za,"Set");const xk=T5e;var R5e=$c(Za,"WeakMap");const wk=R5e;var wN="[object Map]",A5e="[object Object]",SN="[object Promise]",_N="[object Set]",CN="[object WeakMap]",EN="[object DataView]",O5e=Dc(yk),D5e=Dc(zg),$5e=Dc(bk),I5e=Dc(xk),P5e=Dc(wk),Iu=Ac;(yk&&Iu(new yk(new ArrayBuffer(1)))!=EN||zg&&Iu(new zg)!=wN||bk&&Iu(bk.resolve())!=SN||xk&&Iu(new xk)!=_N||wk&&Iu(new wk)!=CN)&&(Iu=function(e){var t=Ac(e),n=t==A5e?e.constructor:void 0,r=n?Dc(n):"";if(r)switch(r){case O5e:return EN;case D5e:return wN;case $5e:return SN;case I5e:return _N;case P5e:return CN}return t});const qA=Iu;var L5e=Object.prototype,F5e=L5e.hasOwnProperty;function M5e(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&F5e.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var N5e=Za.Uint8Array;const kN=N5e;function GA(e){var t=new e.constructor(e.byteLength);return new kN(t).set(new kN(e)),t}function B5e(e,t){var n=t?GA(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var z5e=/\w*$/;function j5e(e){var t=new e.constructor(e.source,z5e.exec(e));return t.lastIndex=e.lastIndex,t}var TN=Hl?Hl.prototype:void 0,RN=TN?TN.valueOf:void 0;function U5e(e){return RN?Object(RN.call(e)):{}}function K5e(e,t){var n=t?GA(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var W5e="[object Boolean]",V5e="[object Date]",H5e="[object Map]",q5e="[object Number]",G5e="[object RegExp]",Y5e="[object Set]",X5e="[object String]",Z5e="[object Symbol]",J5e="[object ArrayBuffer]",Q5e="[object DataView]",e6e="[object Float32Array]",t6e="[object Float64Array]",n6e="[object Int8Array]",r6e="[object Int16Array]",i6e="[object Int32Array]",o6e="[object Uint8Array]",a6e="[object Uint8ClampedArray]",s6e="[object Uint16Array]",l6e="[object Uint32Array]";function u6e(e,t,n){var r=e.constructor;switch(t){case J5e:return GA(e);case W5e:case V5e:return new r(+e);case Q5e:return B5e(e,n);case e6e:case t6e:case n6e:case r6e:case i6e:case o6e:case a6e:case s6e:case l6e:return K5e(e,n);case H5e:return new r;case q5e:case X5e:return new r(e);case G5e:return j5e(e);case Y5e:return new r;case Z5e:return U5e(e)}}var AN=Object.create,c6e=function(){function e(){}return function(t){if(!Rm(t))return{};if(AN)return AN(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const f6e=c6e;function d6e(e){return typeof e.constructor=="function"&&!KA(e)?f6e(jA(e)):{}}var p6e="[object Map]";function h6e(e){return Oc(e)&&qA(e)==p6e}var ON=Ad&&Ad.isMap,g6e=ON?UA(ON):h6e;const m6e=g6e;var v6e="[object Set]";function y6e(e){return Oc(e)&&qA(e)==v6e}var DN=Ad&&Ad.isSet,b6e=DN?UA(DN):y6e;const x6e=b6e;var w6e=1,S6e=2,_6e=4,m7="[object Arguments]",C6e="[object Array]",E6e="[object Boolean]",k6e="[object Date]",T6e="[object Error]",v7="[object Function]",R6e="[object GeneratorFunction]",A6e="[object Map]",O6e="[object Number]",y7="[object Object]",D6e="[object RegExp]",$6e="[object Set]",I6e="[object String]",P6e="[object Symbol]",L6e="[object WeakMap]",F6e="[object ArrayBuffer]",M6e="[object DataView]",N6e="[object Float32Array]",B6e="[object Float64Array]",z6e="[object Int8Array]",j6e="[object Int16Array]",U6e="[object Int32Array]",K6e="[object Uint8Array]",W6e="[object Uint8ClampedArray]",V6e="[object Uint16Array]",H6e="[object Uint32Array]",En={};En[m7]=En[C6e]=En[F6e]=En[M6e]=En[E6e]=En[k6e]=En[N6e]=En[B6e]=En[z6e]=En[j6e]=En[U6e]=En[A6e]=En[O6e]=En[y7]=En[D6e]=En[$6e]=En[I6e]=En[P6e]=En[K6e]=En[W6e]=En[V6e]=En[H6e]=!0;En[T6e]=En[v7]=En[L6e]=!1;function w0(e,t,n,r,i,o){var a,s=t&w6e,l=t&S6e,c=t&_6e;if(n&&(a=i?n(e,r,i,o):n(e)),a!==void 0)return a;if(!Rm(e))return e;var f=Am(e);if(f){if(a=M5e(e),!s)return f7(e,a)}else{var h=qA(e),p=h==v7||h==R6e;if(o7(e))return h5e(e,s);if(h==y7||h==m7||p&&!i){if(a=l||p?{}:d6e(e),!s)return l?S5e(e,d5e(a,e)):b5e(e,s5e(a,e))}else{if(!En[h])return i?e:{};a=u6e(e,h,s)}}o||(o=new qd);var y=o.get(e);if(y)return y;o.set(e,a),x6e(e)?e.forEach(function(S){a.add(w0(S,t,n,S,e,o))}):m6e(e)&&e.forEach(function(S,x){a.set(x,w0(S,t,n,x,e,o))});var m=c?l?C5e:_5e:l?VA:WA,v=f?void 0:m(e);return oje(v||e,function(S,x){v&&(x=S,S=e[x]),n7(a,x,w0(S,t,n,x,e,o))}),a}var q6e=4;function $N(e){return w0(e,q6e)}function b7(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 G6e="[object Symbol]";function YA(e){return typeof e=="symbol"||Oc(e)&&Ac(e)==G6e}var Y6e="Expected a function";function XA(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Y6e);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(XA.Cache||iu),n}XA.Cache=iu;var X6e=500;function Z6e(e){var t=XA(e,function(r){return n.size===X6e&&n.clear(),r}),n=t.cache;return t}var J6e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Q6e=/\\(\\)?/g,eUe=Z6e(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(J6e,function(n,r,i,o){t.push(i?o.replace(Q6e,"$1"):r||n)}),t});const tUe=eUe;var nUe=1/0;function rUe(e){if(typeof e=="string"||YA(e))return e;var t=e+"";return t=="0"&&1/e==-nUe?"-0":t}var iUe=1/0,IN=Hl?Hl.prototype:void 0,PN=IN?IN.toString:void 0;function x7(e){if(typeof e=="string")return e;if(Am(e))return b7(e,x7)+"";if(YA(e))return PN?PN.call(e):"";var t=e+"";return t=="0"&&1/e==-iUe?"-0":t}function oUe(e){return e==null?"":x7(e)}function w7(e){return Am(e)?b7(e,rUe):YA(e)?[e]:f7(tUe(oUe(e)))}var aUe=!0;function sUe(e,t){if(!aUe){if(e)return;var n="Warning: "+t;typeof console<"u"&&console.warn(n);try{throw Error(n)}catch{}}}function Ir(){return Ir=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},Ir.apply(this,arguments)}function S7(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 Jo=function(t){return typeof t=="function"},qx=function(t){return t!==null&&typeof t=="object"},lUe=function(t){return String(Math.floor(Number(t)))===t},G_=function(t){return Object.prototype.toString.call(t)==="[object String]"},Y_=function(t){return qx(t)&&Jo(t.then)};function ho(e,t,n,r){r===void 0&&(r=0);for(var i=w7(t);e&&r<i.length;)e=e[i[r++]];return e===void 0?n:e}function Ju(e,t,n){for(var r=$N(e),i=r,o=0,a=w7(t);o<a.length-1;o++){var s=a[o],l=ho(e,a.slice(0,o+1));if(l&&(qx(l)||Array.isArray(l)))i=i[s]=$N(l);else{var c=a[o+1];i=i[s]=lUe(c)&&Number(c)>=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 _7(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];qx(s)?n.get(s)||(n.set(s,!0),r[a]=Array.isArray(s)?[]:{},_7(s,t,n,r[a])):r[a]=t}return r}var Gx=T.createContext(void 0);Gx.displayName="FormikContext";Gx.Provider;Gx.Consumer;function uUe(){var e=T.useContext(Gx);return e||sUe(!1),e}function cUe(e,t){switch(t.type){case"SET_VALUES":return Ir({},e,{values:t.payload});case"SET_TOUCHED":return Ir({},e,{touched:t.payload});case"SET_ERRORS":return $u(e.errors,t.payload)?e:Ir({},e,{errors:t.payload});case"SET_STATUS":return Ir({},e,{status:t.payload});case"SET_ISSUBMITTING":return Ir({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return Ir({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return Ir({},e,{values:Ju(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return Ir({},e,{touched:Ju(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return Ir({},e,{errors:Ju(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return Ir({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return Ir({},e,{touched:_7(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return Ir({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return Ir({},e,{isSubmitting:!1});default:return e}}var Tu={},Ny={};function C7(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,c=l===void 0?!1:l,f=e.onSubmit,h=S7(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),p=Ir({validateOnChange:n,validateOnBlur:i,validateOnMount:a,onSubmit:f},h),y=T.useRef(p.initialValues),m=T.useRef(p.initialErrors||Tu),v=T.useRef(p.initialTouched||Ny),S=T.useRef(p.initialStatus),x=T.useRef(!1),w=T.useRef({});T.useEffect(function(){return x.current=!0,function(){x.current=!1}},[]);var C=T.useReducer(cUe,{values:p.initialValues,errors:p.initialErrors||Tu,touched:p.initialTouched||Ny,status:p.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),E=C[0],O=C[1],$=T.useCallback(function(ge,Te){return new Promise(function(Ee,Ae){var B=p.validate(ge,Te);B==null?Ee(Tu):Y_(B)?B.then(function(V){Ee(V||Tu)},function(V){Ae(V)}):Ee(B)})},[p.validate]),I=T.useCallback(function(ge,Te){var Ee=p.validationSchema,Ae=Jo(Ee)?Ee(Te):Ee,B=Te&&Ae.validateAt?Ae.validateAt(Te,ge):dUe(ge,Ae);return new Promise(function(V,he){B.then(function(){V(Tu)},function(G){G.name==="ValidationError"?V(fUe(G)):he(G)})})},[p.validationSchema]),W=T.useCallback(function(ge,Te){return new Promise(function(Ee){return Ee(w.current[ge].validate(Te))})},[]),H=T.useCallback(function(ge){var Te=Object.keys(w.current).filter(function(Ae){return Jo(w.current[Ae].validate)}),Ee=Te.length>0?Te.map(function(Ae){return W(Ae,ho(ge,Ae))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(Ee).then(function(Ae){return Ae.reduce(function(B,V,he){return V==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||V&&(B=Ju(B,Te[he],V)),B},{})})},[W]),j=T.useCallback(function(ge){return Promise.all([H(ge),p.validationSchema?I(ge):{},p.validate?$(ge):{}]).then(function(Te){var Ee=Te[0],Ae=Te[1],B=Te[2],V=vk.all([Ee,Ae,B],{arrayMerge:pUe});return V})},[p.validate,p.validationSchema,H,$,I]),U=fo(function(ge){return ge===void 0&&(ge=E.values),O({type:"SET_ISVALIDATING",payload:!0}),j(ge).then(function(Te){return x.current&&(O({type:"SET_ISVALIDATING",payload:!1}),O({type:"SET_ERRORS",payload:Te})),Te})});T.useEffect(function(){a&&x.current===!0&&$u(y.current,p.initialValues)&&U(y.current)},[a,U]);var le=T.useCallback(function(ge){var Te=ge&&ge.values?ge.values:y.current,Ee=ge&&ge.errors?ge.errors:m.current?m.current:p.initialErrors||{},Ae=ge&&ge.touched?ge.touched:v.current?v.current:p.initialTouched||{},B=ge&&ge.status?ge.status:S.current?S.current:p.initialStatus;y.current=Te,m.current=Ee,v.current=Ae,S.current=B;var V=function(){O({type:"RESET_FORM",payload:{isSubmitting:!!ge&&!!ge.isSubmitting,errors:Ee,touched:Ae,status:B,values:Te,isValidating:!!ge&&!!ge.isValidating,submitCount:ge&&ge.submitCount&&typeof ge.submitCount=="number"?ge.submitCount:0}})};if(p.onReset){var he=p.onReset(E.values,Le);Y_(he)?he.then(V):V()}else V()},[p.initialErrors,p.initialStatus,p.initialTouched]);T.useEffect(function(){x.current===!0&&!$u(y.current,p.initialValues)&&(c&&(y.current=p.initialValues,le()),a&&U(y.current))},[c,p.initialValues,le,a,U]),T.useEffect(function(){c&&x.current===!0&&!$u(m.current,p.initialErrors)&&(m.current=p.initialErrors||Tu,O({type:"SET_ERRORS",payload:p.initialErrors||Tu}))},[c,p.initialErrors]),T.useEffect(function(){c&&x.current===!0&&!$u(v.current,p.initialTouched)&&(v.current=p.initialTouched||Ny,O({type:"SET_TOUCHED",payload:p.initialTouched||Ny}))},[c,p.initialTouched]),T.useEffect(function(){c&&x.current===!0&&!$u(S.current,p.initialStatus)&&(S.current=p.initialStatus,O({type:"SET_STATUS",payload:p.initialStatus}))},[c,p.initialStatus,p.initialTouched]);var se=fo(function(ge){if(w.current[ge]&&Jo(w.current[ge].validate)){var Te=ho(E.values,ge),Ee=w.current[ge].validate(Te);return Y_(Ee)?(O({type:"SET_ISVALIDATING",payload:!0}),Ee.then(function(Ae){return Ae}).then(function(Ae){O({type:"SET_FIELD_ERROR",payload:{field:ge,value:Ae}}),O({type:"SET_ISVALIDATING",payload:!1})})):(O({type:"SET_FIELD_ERROR",payload:{field:ge,value:Ee}}),Promise.resolve(Ee))}else if(p.validationSchema)return O({type:"SET_ISVALIDATING",payload:!0}),I(E.values,ge).then(function(Ae){return Ae}).then(function(Ae){O({type:"SET_FIELD_ERROR",payload:{field:ge,value:Ae[ge]}}),O({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),ie=T.useCallback(function(ge,Te){var Ee=Te.validate;w.current[ge]={validate:Ee}},[]),Q=T.useCallback(function(ge){delete w.current[ge]},[]),L=fo(function(ge,Te){O({type:"SET_TOUCHED",payload:ge});var Ee=Te===void 0?i:Te;return Ee?U(E.values):Promise.resolve()}),te=T.useCallback(function(ge){O({type:"SET_ERRORS",payload:ge})},[]),Z=fo(function(ge,Te){var Ee=Jo(ge)?ge(E.values):ge;O({type:"SET_VALUES",payload:Ee});var Ae=Te===void 0?n:Te;return Ae?U(Ee):Promise.resolve()}),ee=T.useCallback(function(ge,Te){O({type:"SET_FIELD_ERROR",payload:{field:ge,value:Te}})},[]),Y=fo(function(ge,Te,Ee){O({type:"SET_FIELD_VALUE",payload:{field:ge,value:Te}});var Ae=Ee===void 0?n:Ee;return Ae?U(Ju(E.values,ge,Te)):Promise.resolve()}),M=T.useCallback(function(ge,Te){var Ee=Te,Ae=ge,B;if(!G_(ge)){ge.persist&&ge.persist();var V=ge.target?ge.target:ge.currentTarget,he=V.type,G=V.name,fe=V.id,ae=V.value,Re=V.checked,Ie=V.outerHTML,$e=V.options,dt=V.multiple;Ee=Te||G||fe,Ae=/number|range/.test(he)?(B=parseFloat(ae),isNaN(B)?"":B):/checkbox/.test(he)?gUe(ho(E.values,Ee),Re,ae):$e&&dt?hUe($e):ae}Ee&&Y(Ee,Ae)},[Y,E.values]),A=fo(function(ge){if(G_(ge))return function(Te){return M(Te,ge)};M(ge)}),ne=fo(function(ge,Te,Ee){Te===void 0&&(Te=!0),O({type:"SET_FIELD_TOUCHED",payload:{field:ge,value:Te}});var Ae=Ee===void 0?i:Ee;return Ae?U(E.values):Promise.resolve()}),oe=T.useCallback(function(ge,Te){ge.persist&&ge.persist();var Ee=ge.target,Ae=Ee.name,B=Ee.id,V=Ee.outerHTML,he=Te||Ae||B;ne(he,!0)},[ne]),ce=fo(function(ge){if(G_(ge))return function(Te){return oe(Te,ge)};oe(ge)}),re=T.useCallback(function(ge){Jo(ge)?O({type:"SET_FORMIK_STATE",payload:ge}):O({type:"SET_FORMIK_STATE",payload:function(){return ge}})},[]),Se=T.useCallback(function(ge){O({type:"SET_STATUS",payload:ge})},[]),ke=T.useCallback(function(ge){O({type:"SET_ISSUBMITTING",payload:ge})},[]),Ce=fo(function(){return O({type:"SUBMIT_ATTEMPT"}),U().then(function(ge){var Te=ge instanceof Error,Ee=!Te&&Object.keys(ge).length===0;if(Ee){var Ae;try{if(Ae=ze(),Ae===void 0)return}catch(B){throw B}return Promise.resolve(Ae).then(function(B){return x.current&&O({type:"SUBMIT_SUCCESS"}),B}).catch(function(B){if(x.current)throw O({type:"SUBMIT_FAILURE"}),B})}else if(x.current&&(O({type:"SUBMIT_FAILURE"}),Te))throw ge})}),Pe=fo(function(ge){ge&&ge.preventDefault&&Jo(ge.preventDefault)&&ge.preventDefault(),ge&&ge.stopPropagation&&Jo(ge.stopPropagation)&&ge.stopPropagation(),Ce().catch(function(Te){console.warn("Warning: An unhandled error was caught from submitForm()",Te)})}),Le={resetForm:le,validateForm:U,validateField:se,setErrors:te,setFieldError:ee,setFieldTouched:ne,setFieldValue:Y,setStatus:Se,setSubmitting:ke,setTouched:L,setValues:Z,setFormikState:re,submitForm:Ce},ze=fo(function(){return f(E.values,Le)}),We=fo(function(ge){ge&&ge.preventDefault&&Jo(ge.preventDefault)&&ge.preventDefault(),ge&&ge.stopPropagation&&Jo(ge.stopPropagation)&&ge.stopPropagation(),le()}),qe=T.useCallback(function(ge){return{value:ho(E.values,ge),error:ho(E.errors,ge),touched:!!ho(E.touched,ge),initialValue:ho(y.current,ge),initialTouched:!!ho(v.current,ge),initialError:ho(m.current,ge)}},[E.errors,E.touched,E.values]),Ve=T.useCallback(function(ge){return{setValue:function(Ee,Ae){return Y(ge,Ee,Ae)},setTouched:function(Ee,Ae){return ne(ge,Ee,Ae)},setError:function(Ee){return ee(ge,Ee)}}},[Y,ne,ee]),at=T.useCallback(function(ge){var Te=qx(ge),Ee=Te?ge.name:ge,Ae=ho(E.values,Ee),B={name:Ee,value:Ae,onChange:A,onBlur:ce};if(Te){var V=ge.type,he=ge.value,G=ge.as,fe=ge.multiple;V==="checkbox"?he===void 0?B.checked=!!Ae:(B.checked=!!(Array.isArray(Ae)&&~Ae.indexOf(he)),B.value=he):V==="radio"?(B.checked=Ae===he,B.value=he):G==="select"&&fe&&(B.value=B.value||[],B.multiple=!0)}return B},[ce,A,E.values]),Ze=T.useMemo(function(){return!$u(y.current,E.values)},[y.current,E.values]),tt=T.useMemo(function(){return typeof s<"u"?Ze?E.errors&&Object.keys(E.errors).length===0:s!==!1&&Jo(s)?s(p):s:E.errors&&Object.keys(E.errors).length===0},[s,Ze,E.errors,p]),gt=Ir({},E,{initialValues:y.current,initialErrors:m.current,initialTouched:v.current,initialStatus:S.current,handleBlur:ce,handleChange:A,handleReset:We,handleSubmit:Pe,resetForm:le,setErrors:te,setFormikState:re,setFieldTouched:ne,setFieldValue:Y,setFieldError:ee,setStatus:Se,setSubmitting:ke,setTouched:L,setValues:Z,submitForm:Ce,validateForm:U,validateField:se,isValid:tt,dirty:Ze,unregisterField:Q,registerField:ie,getFieldProps:at,getFieldMeta:qe,getFieldHelpers:Ve,validateOnBlur:i,validateOnChange:n,validateOnMount:a});return gt}function fUe(e){var t={};if(e.inner){if(e.inner.length===0)return Ju(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;ho(t,a.path)||(t=Ju(t,a.path,a.message))}}return t}function dUe(e,t,n,r){n===void 0&&(n=!1),r===void 0&&(r={});var i=Sk(e);return t[n?"validateSync":"validate"](i,{abortEarly:!1,context:r})}function Sk(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||cN(i)?Sk(i):i!==""?i:void 0}):cN(e[r])?t[r]=Sk(e[r]):t[r]=e[r]!==""?e[r]:void 0}return t}function pUe(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?vk(Array.isArray(o)?[]:{},o,n):o}else n.isMergeableObject(o)?r[a]=vk(e[a],o,n):e.indexOf(o)===-1&&r.push(o)}),r}function hUe(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function gUe(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 mUe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?T.useLayoutEffect:T.useEffect;function fo(e){var t=T.useRef(e);return mUe(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 vUe=T.forwardRef(function(e,t){var n=e.action,r=S7(e,["action"]),i=n??"#",o=uUe(),a=o.handleReset,s=o.handleSubmit;return T.createElement("form",Object.assign({onSubmit:s,ref:t,onReset:a,action:i},r))});vUe.displayName="Form";const yUe=je(Wve)({width:"calc(100% - 7px)",color:"#c5c5d2",height:3,"& .MuiSlider-track":{border:"none"},"& .MuiSlider-thumb":{height:14,width:14,backgroundColor:"#fff",border:"2px solid currentColor","&: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)"}}}),By=({label:e,...t})=>k.jsxs(In,{mr:1,children:[k.jsxs(In,{direction:"row",justifyContent:"space-between",children:[k.jsx(Vl,{children:e}),k.jsx(Vl,{children:t.value})]}),k.jsx(yUe,{...t})]}),Ug={enter:"Enter",backspace:"Backspace"},bUe={ime:229},xUe=je(r5)(({theme:e,size:t})=>`
|
|
438
|
+
max-width: 100%;
|
|
439
|
+
margin: 2px 4px;
|
|
440
|
+
height: ${t==="small"?"26px":"32px"};
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
&[aria-disabled="true"] > svg {
|
|
444
|
+
color: ${e.palette.action.disabled};
|
|
445
|
+
cursor: default;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
&.MuiChipsInput-Chip-Editing {
|
|
449
|
+
background-color: ${e.palette.primary.light};
|
|
450
|
+
color: ${e.palette.primary.contrastText};
|
|
451
|
+
}
|
|
452
|
+
`),wUe={ChipStyled:xUe},LN=e=>{const{className:t,index:n,onDelete:r,disabled:i,onEdit:o,isEditing:a,disableEdition:s,...l}=e,c=p=>{p.key===Ug.enter&&r(n)},f=p=>{var y,m;(y=p==null?void 0:p.preventDefault)==null||y.call(p),(m=p==null?void 0:p.stopPropagation)==null||m.call(p),r(n)},h=p=>{p.target.textContent===l.label&&(i||o(n))};return k.jsx(wUe.ChipStyled,{className:`MuiChipsInput-Chip ${a?"MuiChipsInput-Chip-Editing":""} ${t||""}`,onKeyDown:c,disabled:i,onDoubleClick:s?void 0:h,tabIndex:i?-1:0,"aria-disabled":i,onDelete:f,...l})};function SUe(e){return typeof e=="boolean"}function _Ue(e){return typeof e=="object"&&!Array.isArray(e)&&e!==null}function CUe(e,t){typeof t=="function"?t(e):t&&_Ue(t)&&"current"in t&&(t.current=e)}const EUe=je("div")`
|
|
453
|
+
top: 50%;
|
|
454
|
+
transform: translateY(-50%);
|
|
455
|
+
right: 10px;
|
|
456
|
+
position: absolute;
|
|
457
|
+
`,kUe=je(FR)(e=>{var t;return`
|
|
458
|
+
max-width: 100%;
|
|
459
|
+
|
|
460
|
+
.MuiInputBase-root {
|
|
461
|
+
display: flex;
|
|
462
|
+
flex-wrap: wrap;
|
|
463
|
+
align-items: flex-start;
|
|
464
|
+
row-gap: 5px;
|
|
465
|
+
padding-top: ${e.size==="small"?"5px":"9px"};
|
|
466
|
+
padding-right: ${(t=e.InputProps)!=null&&t.endAdornment?"30px":"9px"};
|
|
467
|
+
padding-bottom: ${e.size==="small"?"5px":"9px"};
|
|
468
|
+
padding-left: 10px;
|
|
469
|
+
|
|
470
|
+
input {
|
|
471
|
+
min-width: 30px;
|
|
472
|
+
width: auto;
|
|
473
|
+
flex-grow: 1;
|
|
474
|
+
text-overflow: ellipsis;
|
|
475
|
+
padding: ${e.size==="small"?"3.5px 4px":"7.5px 4px"};
|
|
476
|
+
align-self: center;
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
`}),TUe=je(r5)(({theme:e,size:t})=>`
|
|
480
|
+
max-width: 100%;
|
|
481
|
+
margin: 2px 4px;
|
|
482
|
+
height: ${t==="small"?"26px":"32px"};
|
|
483
|
+
|
|
484
|
+
&[aria-disabled="true"] > svg.MuiChip-deleteIcon {
|
|
485
|
+
color: ${e.palette.action.disabled};
|
|
486
|
+
cursor: default;
|
|
487
|
+
}
|
|
488
|
+
`),FN={ChipStyled:TUe,TextFieldStyled:kUe,EndAdornmentClose:EUe},E7=pt.forwardRef((e,t)=>{const{chips:n,onAddChip:r,onEditChip:i,onDeleteChip:o,onDeleteAllChips:a,InputProps:s,onInputChange:l,disabled:c,clearInputOnBlur:f,validate:h,error:p,helperText:y,hideClearAll:m,inputProps:v,size:S,disableDeleteOnBackspace:x,disableEdition:w,className:C,renderChip:E,addOnWhichKey:O,onFocus:$,inputValue:I,...W}=e,[H,j]=pt.useState(""),[U,le]=pt.useState(""),se=pt.useRef(null),ie=pt.useRef(!1),Q=pt.useRef(typeof I=="string"),[L,te]=pt.useState(null),{onKeyDown:Z,...ee}=v||{},{inputRef:Y,...M}=s||{},A=()=>{le("")},ne=Q.current,oe=ne?I:H,ce=Ee=>{l==null||l(Ee),ne||j(Ee)},re=Ee=>{ce(n[Ee]),te(Ee),A()},Se=()=>{te(null)},ke=()=>{A(),ce("")},Ce=Ee=>{ce(Ee.target.value)},Pe=()=>{!ie.current||(L!==null?(Se(),ke()):f&&ke(),ie.current=!1)},Le=Ee=>{se.current=Ee,t&&CUe(Ee,t)},ze=(Ee,Ae)=>B=>{if(typeof h=="function"){const V=h(Ee);if(V===!1){Ae.preventDefault();return}if(!SUe(V)&&V.isError){Ae.preventDefault(),le(V.textError);return}}B()},We=(Ee,Ae,B)=>{ze(Ee,B)(()=>{i==null||i(Ee,Ae),Se(),ke()})},qe=(Ee,Ae)=>{ze(Ee,Ae)(()=>{r==null||r(oe.trim()),ke()})},Ve=(Ee,Ae)=>Ae===bUe.ime?!1:O?Array.isArray(O)?O.some(B=>B===Ee):O===Ee:Ee===Ug.enter,at=Ee=>{const Ae=Ve(Ee.key,Ee.keyCode),B=Ee.key===Ug.backspace,V=oe.trim();if(Ee.code==="Tab"){Pe();return}if(Ae&&Ee.preventDefault(),oe.length>0&&Ae)V.length===0?ke():L!==null?We(V,L,Ee):qe(V,Ee);else if(B&&oe.length===0&&n.length>0&&!x){const he=n.length-1;o==null||o(he),L===he&&Se()}Z==null||Z(Ee)},Ze=Ee=>{Ee.preventDefault(),$==null||$(Ee),ie.current=!0},tt=Ee=>{Ee.preventDefault(),!m&&!c&&(a==null||a(),ke(),Se())},gt=Ee=>{var Ae;Ee===L?(ke(),Se()):re(Ee),(Ae=se.current)==null||Ae.focus()},ge=Ee=>{c||(o==null||o(Ee),L!==null&&(Se(),ke()))},Te=n.length>0;return k.jsx(Yle,{onClickAway:Pe,children:k.jsx(FN.TextFieldStyled,{value:oe,onChange:Ce,ref:t,className:`MuiChipsInput-TextField ${C||""}`,size:S,placeholder:"Type and press enter",onFocus:Ze,inputProps:{onKeyDown:at,...ee},disabled:c,error:!!U||p,helperText:U||y,InputProps:{inputRef:Le,startAdornment:Te?n.map((Ee,Ae)=>{const B=`chip-${Ae}`,V={index:Ae,onEdit:gt,label:Ee,title:Ee,isEditing:Ae===L,size:S,disabled:c,disableEdition:w,onDelete:ge};return E?E(LN,B,V):T.createElement(LN,{...V,key:B})}):null,endAdornment:m?null:k.jsx(FN.EndAdornmentClose,{style:{visibility:Te?"visible":"hidden"},children:k.jsx(Br,{"aria-label":"Clear",title:"Clear",disabled:c,size:"small",onClick:tt,children:k.jsx(Hd,{fontSize:"small"})})}),...M},...W})})});E7.defaultProps={onInputChange:()=>{},clearInputOnBlur:!1,hideClearAll:!1,disableDeleteOnBackspace:!1,disableEdition:!1,addOnWhichKey:Ug.enter,onDeleteChip:()=>{},onAddChip:()=>{},inputValue:void 0,onEditChip:()=>{},renderChip:void 0,onDeleteAllChips:()=>{},validate:()=>!0};function RUe(e,t){return[...e,t]}function AUe(e,t){return e.filter((n,r)=>t!==r)}function OUe(e,t,n){return e.map((r,i)=>t===i?n:r)}const k7=pt.forwardRef((e,t)=>{const{value:n,onChange:r,onAddChip:i,onInputChange:o,onDeleteChip:a,disabled:s,validate:l,clearInputOnBlur:c,hideClearAll:f,disableDeleteOnBackspace:h,onEditChip:p,renderChip:y,disableEdition:m,addOnWhichKey:v,inputValue:S,...x}=e;return k.jsx(E7,{chips:n,onAddChip:w=>{if(s)return;const C=RUe(n,w),E=C.length-1;i==null||i(w,E),r==null||r(C)},onInputChange:o,disableDeleteOnBackspace:h,onDeleteChip:w=>{if(s)return;const C=n[w];r==null||r(AUe(n,w)),a==null||a(C,w)},onEditChip:(w,C)=>{s||m||(r==null||r(OUe(n,C,w)),p==null||p(w,C))},renderChip:y,onDeleteAllChips:()=>{r==null||r([])},clearInputOnBlur:c,disabled:s,disableEdition:m,validate:l,inputValue:S,hideClearAll:f,addOnWhichKey:v,...x,ref:t})});k7.defaultProps={value:[],onChange:()=>{},onAddChip:()=>{},onDeleteChip:()=>{},onInputChange:()=>{},onEditChip:()=>{},addOnWhichKey:Ug.enter,clearInputOnBlur:!1,disableEdition:!1,hideClearAll:!1,disableDeleteOnBackspace:!1,validate:()=>!0};const DUe={GPT4:["gpt-4"],"Chat GPT":["gpt-3.5-turbo"],GPT3:["text-davinci-003","text-davinci-002"]},$Ue=()=>{const[e,t]=Qi(YE),n=zA({model_name:R1(),stop:q8().of(R1()),temperature:Fh().min(0).max(1),top_p:Fh().min(0).max(1),frequency_penalty:Fh().min(0).max(1),presence_penalty:Fh().min(0).max(1)}),r=C7({initialValues:e||{},validationSchema:n,onSubmit:async()=>{}});T.useEffect(()=>{e&&r.setValues(e)},[e]),T.useEffect(()=>{t(r.values)},[r.values]);const i=k.jsxs(At,{children:[k.jsx(Vl,{children:"Model"}),k.jsx(lx,{fullWidth:!0,size:"small",name:"model_name",value:r.values.model_name,onChange:r.handleChange,children:Object.entries(DUe).map(([f,h])=>{const p=k.jsx(n5,{children:f}),y=h.map((m,v)=>k.jsx(Ua,{value:m,children:m},v));return[p,...y]})})]}),o=k.jsx(By,{label:"Temperature",name:"temperature",value:r.values.temperature,onChange:r.handleChange,min:0,max:1,step:.1}),a=k.jsxs(At,{children:[k.jsx(Vl,{children:"Stop sequences"}),k.jsx(k7,{size:"small",placeholder:"",value:Array.isArray(r.values.stop)?r.values.stop:[r.values.stop],onChange:f=>r.setFieldValue("stop",f)})]}),s=k.jsx(By,{label:"Top P",name:"top_p",value:r.values.top_p,onChange:r.handleChange,min:0,max:1,step:.1}),l=k.jsx(By,{label:"Frequency penalty",name:"frequency_penalty",value:r.values.frequency_penalty,onChange:r.handleChange,min:0,max:1,step:.1}),c=k.jsx(By,{label:"Presence penalty",name:"presence_penalty",value:r.values.presence_penalty,onChange:r.handleChange,min:0,max:1,step:.1});return k.jsxs(In,{spacing:2,sx:{width:"250px"},children:[i,o,a,s,l,c]})};var ZA={},IUe=Pn;Object.defineProperty(ZA,"__esModule",{value:!0});var T7=ZA.default=void 0,PUe=IUe(Ln()),LUe=k,FUe=(0,PUe.default)((0,LUe.jsx)("path",{d:"M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z"}),"HelpOutline");T7=ZA.default=FUe;const MUe={COMPLETION:{backgroundColor:"#d2f4d3",color:"black"}};function R7(){const e=Tt(nu),t=Tt(GE),n=fr(GE),r=Tt(YE),i=Tt(px),o=fr(YE),[a,s]=T.useState(pl.EditorState.createEmpty()),[l,c]=T.useState(!1);T.useEffect(()=>{if(t!=null&&t.prompt){const m=pl.EditorState.createWithContent(pl.ContentState.createFromText(t.prompt));s(h(m,t.completion))}t!=null&&t.llmSettings&&o({...t.llmSettings})},[t]);const f=()=>{t&&n({...t})},h=(m,v)=>{const S=m.getCurrentContent(),x=S.getBlockMap(),w=x.last().getKey(),C=x.last().getLength(),E=new pl.SelectionState({anchorKey:w,anchorOffset:C,focusKey:w,focusOffset:C}),O=pl.Modifier.insertText(S,E,`
|
|
489
|
+
`+v,tn.OrderedSet.of("COMPLETION")),$=pl.EditorState.push(m,O,"insert-characters");return pl.EditorState.forceSelection($,O.getSelectionAfter())},p=()=>{n(void 0)},y=async()=>{if(!r)return;const m=a.getCurrentContent().getPlainText();try{c(!0);const v=await e.getCompletion(m,r,i);s(h(a,v))}catch(v){v instanceof Error&&Er.error(v.message)}finally{c(!1)}};return k.jsxs(ox,{open:!!t,fullScreen:!0,PaperProps:{style:{backgroundImage:"none"}},onClose:p,id:"playground","aria-labelledby":"playground","aria-describedby":"playground",children:[k.jsxs(DR,{sx:{display:"flex",alignItems:"center"},children:[k.jsx(fn,{fontSize:"18px",fontWeight:700,children:"Prompt playground"}),k.jsx(Br,{href:"https://docs.chainlit.io/concepts/prompt-playground",target:"_blank",children:k.jsx(Wa,{title:"Help",children:k.jsx(T7,{})})}),k.jsx(Br,{edge:"end",id:"close-playground",sx:{ml:"auto"},onClick:p,children:k.jsx(Hd,{})})]}),k.jsxs(ax,{sx:{display:"flex",flexDirection:"column"},children:[k.jsxs(In,{direction:"row",spacing:2,sx:{overflowY:"auto",overflowX:"hidden",flexGrow:1},children:[k.jsx(At,{sx:{fontFamily:"Inter",fontSize:"16px",lineHeight:"24px",padding:"0.75rem",border:m=>`1px solid ${m.palette.divider}`,borderRadius:"0.375rem",overflowY:"auto",width:"100%",flexGrow:1,caretColor:m=>m.palette.text.primary},children:k.jsx(pl.Editor,{customStyleMap:MUe,editorState:a,onChange:s})}),k.jsx($Ue,{})]}),k.jsxs(In,{direction:"row",alignItems:"center",mt:1,spacing:2,children:[k.jsx(Ex,{onClick:y,variant:"contained",sx:{padding:"6px 12px",height:"35px"},loading:l,children:"Submit"}),k.jsx(Wa,{title:"Restore original",children:k.jsx(Br,{onClick:f,children:k.jsx(M8,{})})})]})]})]})}function NUe(){const{search:e}=zd();return T.useMemo(()=>new URLSearchParams(e),[e])}const A7=e=>{switch(e.type){case"image":return k.jsx(sU,{element:e});case"text":return k.jsx(lU,{element:e});case"pdf":return k.jsx(pU,{element:e});default:return null}},BUe=()=>{const{id:e}=U5(),t=NUe(),n=Tt(mm),r=Tt(nu),[i,o]=T.useState(null),[a,s]=T.useState(),l=t.get("conversation");return T.useEffect(()=>{if(e)if(l)r.getElement(l,e).then(c=>{o(c)}).catch(c=>{s(c.message)});else{const c=n.find(f=>f.id==Number(e)||f.tempId==e);c&&o(c)}},[e,l]),!i||a?null:k.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:[k.jsx(fn,{fontWeight:700,fontSize:"25px",children:i.name}),A7(i)]})};var JA={exports:{}},Om={},Yx={exports:{}},O7={};const zUe=EB(Nse);var er={},Ja={};Object.defineProperty(Ja,"__esModule",{value:!0});Ja.dontSetMe=VUe;Ja.findInArray=jUe;Ja.int=WUe;Ja.isFunction=UUe;Ja.isNum=KUe;function jUe(e,t){for(var n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]}function UUe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"}function KUe(e){return typeof e=="number"&&!isNaN(e)}function WUe(e){return parseInt(e,10)}function VUe(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 Ic={};Object.defineProperty(Ic,"__esModule",{value:!0});Ic.browserPrefixToKey=$7;Ic.browserPrefixToStyle=HUe;Ic.default=void 0;Ic.getPrefix=D7;var X_=["Moz","Webkit","O","ms"];function D7(){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<X_.length;i++)if($7(n,X_[i])in r)return X_[i];return""}function $7(e,t){return t?"".concat(t).concat(qUe(e)):e}function HUe(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e}function qUe(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 GUe=D7();Ic.default=GUe;function _k(e){"@babel/helpers - typeof";return _k=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},_k(e)}Object.defineProperty(er,"__esModule",{value:!0});er.addClassName=M7;er.addEvent=ZUe;er.addUserSelectStyles=l9e;er.createCSSTransform=i9e;er.createSVGTransform=o9e;er.getTouch=a9e;er.getTouchIdentifier=s9e;er.getTranslation=QA;er.innerHeight=t9e;er.innerWidth=n9e;er.matchesSelector=F7;er.matchesSelectorAndParentsTo=XUe;er.offsetXYFromParent=r9e;er.outerHeight=QUe;er.outerWidth=e9e;er.removeClassName=N7;er.removeEvent=JUe;er.removeUserSelectStyles=u9e;var Gi=Ja,MN=YUe(Ic);function I7(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(I7=function(i){return i?n:t})(e)}function YUe(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||_k(e)!=="object"&&typeof e!="function")return{default:e};var n=I7(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 NN(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 P7(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?NN(Object(n),!0).forEach(function(r){L7(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function L7(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zy="";function F7(e,t){return zy||(zy=(0,Gi.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(n){return(0,Gi.isFunction)(e[n])})),(0,Gi.isFunction)(e[zy])?e[zy](t):!1}function XUe(e,t,n){var r=e;do{if(F7(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1}function ZUe(e,t,n,r){if(e){var i=P7({capture:!0},r);e.addEventListener?e.addEventListener(t,n,i):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n}}function JUe(e,t,n,r){if(e){var i=P7({capture:!0},r);e.removeEventListener?e.removeEventListener(t,n,i):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null}}function QUe(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,Gi.int)(n.borderTopWidth),t+=(0,Gi.int)(n.borderBottomWidth),t}function e9e(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,Gi.int)(n.borderLeftWidth),t+=(0,Gi.int)(n.borderRightWidth),t}function t9e(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,Gi.int)(n.paddingTop),t-=(0,Gi.int)(n.paddingBottom),t}function n9e(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,Gi.int)(n.paddingLeft),t-=(0,Gi.int)(n.paddingRight),t}function r9e(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 i9e(e,t){var n=QA(e,t,"px");return L7({},(0,MN.browserPrefixToKey)("transform",MN.default),n)}function o9e(e,t){var n=QA(e,t,"");return n}function QA(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 a9e(e,t){return e.targetTouches&&(0,Gi.findInArray)(e.targetTouches,function(n){return t===n.identifier})||e.changedTouches&&(0,Gi.findInArray)(e.changedTouches,function(n){return t===n.identifier})}function s9e(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier}function l9e(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;}
|
|
490
|
+
`,t.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
|
|
491
|
+
`,e.getElementsByTagName("head")[0].appendChild(t)),e.body&&M7(e.body,"react-draggable-transparent-selection")}}function u9e(e){if(e)try{if(e.body&&N7(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 M7(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function N7(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}var Qa={};Object.defineProperty(Qa,"__esModule",{value:!0});Qa.canDragX=d9e;Qa.canDragY=p9e;Qa.createCoreData=g9e;Qa.createDraggableData=m9e;Qa.getBoundPosition=c9e;Qa.getControlPosition=h9e;Qa.snapToGrid=f9e;var Bi=Ja,Uf=er;function c9e(e,t,n){if(!e.props.bounds)return[t,n];var r=e.props.bounds;r=typeof r=="string"?r:v9e(r);var i=e2(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,c=a.getComputedStyle(i),f=a.getComputedStyle(l);r={left:-i.offsetLeft+(0,Bi.int)(f.paddingLeft)+(0,Bi.int)(c.marginLeft),top:-i.offsetTop+(0,Bi.int)(f.paddingTop)+(0,Bi.int)(c.marginTop),right:(0,Uf.innerWidth)(l)-(0,Uf.outerWidth)(i)-i.offsetLeft+(0,Bi.int)(f.paddingRight)-(0,Bi.int)(c.marginRight),bottom:(0,Uf.innerHeight)(l)-(0,Uf.outerHeight)(i)-i.offsetTop+(0,Bi.int)(f.paddingBottom)-(0,Bi.int)(c.marginBottom)}}return(0,Bi.isNum)(r.right)&&(t=Math.min(t,r.right)),(0,Bi.isNum)(r.bottom)&&(n=Math.min(n,r.bottom)),(0,Bi.isNum)(r.left)&&(t=Math.max(t,r.left)),(0,Bi.isNum)(r.top)&&(n=Math.max(n,r.top)),[t,n]}function f9e(e,t,n){var r=Math.round(t/e[0])*e[0],i=Math.round(n/e[1])*e[1];return[r,i]}function d9e(e){return e.props.axis==="both"||e.props.axis==="x"}function p9e(e){return e.props.axis==="both"||e.props.axis==="y"}function h9e(e,t,n){var r=typeof t=="number"?(0,Uf.getTouch)(e,t):null;if(typeof t=="number"&&!r)return null;var i=e2(n),o=n.props.offsetParent||i.offsetParent||i.ownerDocument.body;return(0,Uf.offsetXYFromParent)(r||e,o,n.props.scale)}function g9e(e,t,n){var r=e.state,i=!(0,Bi.isNum)(r.lastX),o=e2(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 m9e(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 v9e(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function e2(e){var t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}var Xx={},Zx={};Object.defineProperty(Zx,"__esModule",{value:!0});Zx.default=y9e;function y9e(){}function O1(e){"@babel/helpers - typeof";return O1=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},O1(e)}Object.defineProperty(Xx,"__esModule",{value:!0});Xx.default=void 0;var Z_=x9e(T),Mi=t2(rm),b9e=t2(pc),Hr=er,hl=Qa,J_=Ja,wh=t2(Zx);function t2(e){return e&&e.__esModule?e:{default:e}}function B7(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(B7=function(i){return i?n:t})(e)}function x9e(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||O1(e)!=="object"&&typeof e!="function")return{default:e};var n=B7(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 BN(e,t){return C9e(e)||_9e(e,t)||S9e(e,t)||w9e()}function w9e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
492
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function S9e(e,t){if(e){if(typeof e=="string")return zN(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 zN(e,t)}}function zN(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 _9e(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 C9e(e){if(Array.isArray(e))return e}function E9e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jN(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 k9e(e,t,n){return t&&jN(e.prototype,t),n&&jN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function T9e(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&&Ck(e,t)}function Ck(e,t){return Ck=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Ck(e,t)}function R9e(e){var t=O9e();return function(){var r=D1(e),i;if(t){var o=D1(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return A9e(this,i)}}function A9e(e,t){if(t&&(O1(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Gr(e)}function Gr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O9e(){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 D1(e){return D1=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},D1(e)}function go(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qo={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},gl=Qo.mouse,Jx=function(e){T9e(n,e);var t=R9e(n);function n(){var r;E9e(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)),go(Gr(r),"state",{dragging:!1,lastX:NaN,lastY:NaN,touchIdentifier:null}),go(Gr(r),"mounted",!1),go(Gr(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 c=l.ownerDocument;if(!(r.props.disabled||!(s.target instanceof c.defaultView.Node)||r.props.handle&&!(0,Hr.matchesSelectorAndParentsTo)(s.target,r.props.handle,l)||r.props.cancel&&(0,Hr.matchesSelectorAndParentsTo)(s.target,r.props.cancel,l))){s.type==="touchstart"&&s.preventDefault();var f=(0,Hr.getTouchIdentifier)(s);r.setState({touchIdentifier:f});var h=(0,hl.getControlPosition)(s,f,Gr(r));if(h!=null){var p=h.x,y=h.y,m=(0,hl.createCoreData)(Gr(r),p,y);(0,wh.default)("DraggableCore: handleDragStart: %j",m),(0,wh.default)("calling",r.props.onStart);var v=r.props.onStart(s,m);v===!1||r.mounted===!1||(r.props.enableUserSelectHack&&(0,Hr.addUserSelectStyles)(c),r.setState({dragging:!0,lastX:p,lastY:y}),(0,Hr.addEvent)(c,gl.move,r.handleDrag),(0,Hr.addEvent)(c,gl.stop,r.handleDragStop))}}}),go(Gr(r),"handleDrag",function(s){var l=(0,hl.getControlPosition)(s,r.state.touchIdentifier,Gr(r));if(l!=null){var c=l.x,f=l.y;if(Array.isArray(r.props.grid)){var h=c-r.state.lastX,p=f-r.state.lastY,y=(0,hl.snapToGrid)(r.props.grid,h,p),m=BN(y,2);if(h=m[0],p=m[1],!h&&!p)return;c=r.state.lastX+h,f=r.state.lastY+p}var v=(0,hl.createCoreData)(Gr(r),c,f);(0,wh.default)("DraggableCore: handleDrag: %j",v);var S=r.props.onDrag(s,v);if(S===!1||r.mounted===!1){try{r.handleDragStop(new MouseEvent("mouseup"))}catch{var x=document.createEvent("MouseEvents");x.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),r.handleDragStop(x)}return}r.setState({lastX:c,lastY:f})}}),go(Gr(r),"handleDragStop",function(s){if(r.state.dragging){var l=(0,hl.getControlPosition)(s,r.state.touchIdentifier,Gr(r));if(l!=null){var c=l.x,f=l.y;if(Array.isArray(r.props.grid)){var h=c-r.state.lastX||0,p=f-r.state.lastY||0,y=(0,hl.snapToGrid)(r.props.grid,h,p),m=BN(y,2);h=m[0],p=m[1],c=r.state.lastX+h,f=r.state.lastY+p}var v=(0,hl.createCoreData)(Gr(r),c,f),S=r.props.onStop(s,v);if(S===!1||r.mounted===!1)return!1;var x=r.findDOMNode();x&&r.props.enableUserSelectHack&&(0,Hr.removeUserSelectStyles)(x.ownerDocument),(0,wh.default)("DraggableCore: handleDragStop: %j",v),r.setState({dragging:!1,lastX:NaN,lastY:NaN}),x&&((0,wh.default)("DraggableCore: Removing handlers"),(0,Hr.removeEvent)(x.ownerDocument,gl.move,r.handleDrag),(0,Hr.removeEvent)(x.ownerDocument,gl.stop,r.handleDragStop))}}}),go(Gr(r),"onMouseDown",function(s){return gl=Qo.mouse,r.handleDragStart(s)}),go(Gr(r),"onMouseUp",function(s){return gl=Qo.mouse,r.handleDragStop(s)}),go(Gr(r),"onTouchStart",function(s){return gl=Qo.touch,r.handleDragStart(s)}),go(Gr(r),"onTouchEnd",function(s){return gl=Qo.touch,r.handleDragStop(s)}),r}return k9e(n,[{key:"componentDidMount",value:function(){this.mounted=!0;var i=this.findDOMNode();i&&(0,Hr.addEvent)(i,Qo.touch.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.findDOMNode();if(i){var o=i.ownerDocument;(0,Hr.removeEvent)(o,Qo.mouse.move,this.handleDrag),(0,Hr.removeEvent)(o,Qo.touch.move,this.handleDrag),(0,Hr.removeEvent)(o,Qo.mouse.stop,this.handleDragStop),(0,Hr.removeEvent)(o,Qo.touch.stop,this.handleDragStop),(0,Hr.removeEvent)(i,Qo.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,Hr.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:b9e.default.findDOMNode(this)}},{key:"render",value:function(){return Z_.cloneElement(Z_.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}]),n}(Z_.Component);Xx.default=Jx;go(Jx,"displayName","DraggableCore");go(Jx,"propTypes",{allowAnyClick:Mi.default.bool,disabled:Mi.default.bool,enableUserSelectHack:Mi.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:Mi.default.arrayOf(Mi.default.number),handle:Mi.default.string,cancel:Mi.default.string,nodeRef:Mi.default.object,onStart:Mi.default.func,onDrag:Mi.default.func,onStop:Mi.default.func,onMouseDown:Mi.default.func,scale:Mi.default.number,className:J_.dontSetMe,style:J_.dontSetMe,transform:J_.dontSetMe});go(Jx,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1});(function(e){function t(A){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ne){return typeof ne}:function(ne){return ne&&typeof Symbol=="function"&&ne.constructor===Symbol&&ne!==Symbol.prototype?"symbol":typeof ne},t(A)}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return c.default}}),e.default=void 0;var n=m(T),r=p(rm),i=p(pc),o=p(zUe),a=er,s=Qa,l=Ja,c=p(Xx),f=p(Zx),h=["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"];function p(A){return A&&A.__esModule?A:{default:A}}function y(A){if(typeof WeakMap!="function")return null;var ne=new WeakMap,oe=new WeakMap;return(y=function(re){return re?oe:ne})(A)}function m(A,ne){if(!ne&&A&&A.__esModule)return A;if(A===null||t(A)!=="object"&&typeof A!="function")return{default:A};var oe=y(ne);if(oe&&oe.has(A))return oe.get(A);var ce={},re=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Se in A)if(Se!=="default"&&Object.prototype.hasOwnProperty.call(A,Se)){var ke=re?Object.getOwnPropertyDescriptor(A,Se):null;ke&&(ke.get||ke.set)?Object.defineProperty(ce,Se,ke):ce[Se]=A[Se]}return ce.default=A,oe&&oe.set(A,ce),ce}function v(){return v=Object.assign||function(A){for(var ne=1;ne<arguments.length;ne++){var oe=arguments[ne];for(var ce in oe)Object.prototype.hasOwnProperty.call(oe,ce)&&(A[ce]=oe[ce])}return A},v.apply(this,arguments)}function S(A,ne){if(A==null)return{};var oe=x(A,ne),ce,re;if(Object.getOwnPropertySymbols){var Se=Object.getOwnPropertySymbols(A);for(re=0;re<Se.length;re++)ce=Se[re],!(ne.indexOf(ce)>=0)&&Object.prototype.propertyIsEnumerable.call(A,ce)&&(oe[ce]=A[ce])}return oe}function x(A,ne){if(A==null)return{};var oe={},ce=Object.keys(A),re,Se;for(Se=0;Se<ce.length;Se++)re=ce[Se],!(ne.indexOf(re)>=0)&&(oe[re]=A[re]);return oe}function w(A,ne){var oe=Object.keys(A);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(A);ne&&(ce=ce.filter(function(re){return Object.getOwnPropertyDescriptor(A,re).enumerable})),oe.push.apply(oe,ce)}return oe}function C(A){for(var ne=1;ne<arguments.length;ne++){var oe=arguments[ne]!=null?arguments[ne]:{};ne%2?w(Object(oe),!0).forEach(function(ce){Y(A,ce,oe[ce])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(oe)):w(Object(oe)).forEach(function(ce){Object.defineProperty(A,ce,Object.getOwnPropertyDescriptor(oe,ce))})}return A}function E(A,ne){return H(A)||W(A,ne)||$(A,ne)||O()}function O(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
493
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $(A,ne){if(A){if(typeof A=="string")return I(A,ne);var oe=Object.prototype.toString.call(A).slice(8,-1);if(oe==="Object"&&A.constructor&&(oe=A.constructor.name),oe==="Map"||oe==="Set")return Array.from(A);if(oe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(oe))return I(A,ne)}}function I(A,ne){(ne==null||ne>A.length)&&(ne=A.length);for(var oe=0,ce=new Array(ne);oe<ne;oe++)ce[oe]=A[oe];return ce}function W(A,ne){var oe=A==null?null:typeof Symbol<"u"&&A[Symbol.iterator]||A["@@iterator"];if(oe!=null){var ce=[],re=!0,Se=!1,ke,Ce;try{for(oe=oe.call(A);!(re=(ke=oe.next()).done)&&(ce.push(ke.value),!(ne&&ce.length===ne));re=!0);}catch(Pe){Se=!0,Ce=Pe}finally{try{!re&&oe.return!=null&&oe.return()}finally{if(Se)throw Ce}}return ce}}function H(A){if(Array.isArray(A))return A}function j(A,ne){if(!(A instanceof ne))throw new TypeError("Cannot call a class as a function")}function U(A,ne){for(var oe=0;oe<ne.length;oe++){var ce=ne[oe];ce.enumerable=ce.enumerable||!1,ce.configurable=!0,"value"in ce&&(ce.writable=!0),Object.defineProperty(A,ce.key,ce)}}function le(A,ne,oe){return ne&&U(A.prototype,ne),oe&&U(A,oe),Object.defineProperty(A,"prototype",{writable:!1}),A}function se(A,ne){if(typeof ne!="function"&&ne!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(ne&&ne.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),ne&&ie(A,ne)}function ie(A,ne){return ie=Object.setPrototypeOf||function(ce,re){return ce.__proto__=re,ce},ie(A,ne)}function Q(A){var ne=Z();return function(){var ce=ee(A),re;if(ne){var Se=ee(this).constructor;re=Reflect.construct(ce,arguments,Se)}else re=ce.apply(this,arguments);return L(this,re)}}function L(A,ne){if(ne&&(t(ne)==="object"||typeof ne=="function"))return ne;if(ne!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return te(A)}function te(A){if(A===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}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(A){return ee=Object.setPrototypeOf?Object.getPrototypeOf:function(oe){return oe.__proto__||Object.getPrototypeOf(oe)},ee(A)}function Y(A,ne,oe){return ne in A?Object.defineProperty(A,ne,{value:oe,enumerable:!0,configurable:!0,writable:!0}):A[ne]=oe,A}var M=function(A){se(oe,A);var ne=Q(oe);function oe(ce){var re;return j(this,oe),re=ne.call(this,ce),Y(te(re),"onDragStart",function(Se,ke){(0,f.default)("Draggable: onDragStart: %j",ke);var Ce=re.props.onStart(Se,(0,s.createDraggableData)(te(re),ke));if(Ce===!1)return!1;re.setState({dragging:!0,dragged:!0})}),Y(te(re),"onDrag",function(Se,ke){if(!re.state.dragging)return!1;(0,f.default)("Draggable: onDrag: %j",ke);var Ce=(0,s.createDraggableData)(te(re),ke),Pe={x:Ce.x,y:Ce.y};if(re.props.bounds){var Le=Pe.x,ze=Pe.y;Pe.x+=re.state.slackX,Pe.y+=re.state.slackY;var We=(0,s.getBoundPosition)(te(re),Pe.x,Pe.y),qe=E(We,2),Ve=qe[0],at=qe[1];Pe.x=Ve,Pe.y=at,Pe.slackX=re.state.slackX+(Le-Pe.x),Pe.slackY=re.state.slackY+(ze-Pe.y),Ce.x=Pe.x,Ce.y=Pe.y,Ce.deltaX=Pe.x-re.state.x,Ce.deltaY=Pe.y-re.state.y}var Ze=re.props.onDrag(Se,Ce);if(Ze===!1)return!1;re.setState(Pe)}),Y(te(re),"onDragStop",function(Se,ke){if(!re.state.dragging)return!1;var Ce=re.props.onStop(Se,(0,s.createDraggableData)(te(re),ke));if(Ce===!1)return!1;(0,f.default)("Draggable: onDragStop: %j",ke);var Pe={dragging:!1,slackX:0,slackY:0},Le=!!re.props.position;if(Le){var ze=re.props.position,We=ze.x,qe=ze.y;Pe.x=We,Pe.y=qe}re.setState(Pe)}),re.state={dragging:!1,dragged:!1,x:ce.position?ce.position.x:ce.defaultPosition.x,y:ce.position?ce.position.y:ce.defaultPosition.y,prevPropsPosition:C({},ce.position),slackX:0,slackY:0,isElementSVG:!1},ce.position&&!(ce.onDrag||ce.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."),re}return le(oe,[{key:"componentDidMount",value:function(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"findDOMNode",value:function(){var re,Se,ke;return(re=(Se=this.props)===null||Se===void 0||(ke=Se.nodeRef)===null||ke===void 0?void 0:ke.current)!==null&&re!==void 0?re:i.default.findDOMNode(this)}},{key:"render",value:function(){var re,Se=this.props;Se.axis,Se.bounds;var ke=Se.children,Ce=Se.defaultPosition,Pe=Se.defaultClassName,Le=Se.defaultClassNameDragging,ze=Se.defaultClassNameDragged,We=Se.position,qe=Se.positionOffset;Se.scale;var Ve=S(Se,h),at={},Ze=null,tt=!!We,gt=!tt||this.state.dragging,ge=We||Ce,Te={x:(0,s.canDragX)(this)&>?this.state.x:ge.x,y:(0,s.canDragY)(this)&>?this.state.y:ge.y};this.state.isElementSVG?Ze=(0,a.createSVGTransform)(Te,qe):at=(0,a.createCSSTransform)(Te,qe);var Ee=(0,o.default)(ke.props.className||"",Pe,(re={},Y(re,Le,this.state.dragging),Y(re,ze,this.state.dragged),re));return n.createElement(c.default,v({},Ve,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),n.cloneElement(n.Children.only(ke),{className:Ee,style:C(C({},ke.props.style),at),transform:Ze}))}}],[{key:"getDerivedStateFromProps",value:function(re,Se){var ke=re.position,Ce=Se.prevPropsPosition;return ke&&(!Ce||ke.x!==Ce.x||ke.y!==Ce.y)?((0,f.default)("Draggable: getDerivedStateFromProps %j",{position:ke,prevPropsPosition:Ce}),{x:ke.x,y:ke.y,prevPropsPosition:C({},ke)}):null}}]),oe}(n.Component);e.default=M,Y(M,"displayName","Draggable"),Y(M,"propTypes",C(C({},c.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})),Y(M,"defaultProps",C(C({},c.default.defaultProps),{},{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))})(O7);var z7=O7,j7=z7.default,D9e=z7.DraggableCore;Yx.exports=j7;Yx.exports.default=j7;Yx.exports.DraggableCore=D9e;var $9e=Yx.exports,n2={};n2.__esModule=!0;n2.cloneElement=N9e;var I9e=P9e(T);function P9e(e){return e&&e.__esModule?e:{default:e}}function UN(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 KN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?UN(Object(n),!0).forEach(function(r){L9e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function L9e(e,t,n){return t=F9e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function F9e(e){var t=M9e(e,"string");return typeof t=="symbol"?t:String(t)}function M9e(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 N9e(e,t){return t.style&&e.props.style&&(t.style=KN(KN({},e.props.style),t.style)),t.className&&e.props.className&&(t.className=e.props.className+" "+t.className),I9e.default.cloneElement(e,t)}var Dm={};Dm.__esModule=!0;Dm.resizableProps=void 0;var Lt=B9e(rm);function B9e(e){return e&&e.__esModule?e:{default:e}}var z9e={axis:Lt.default.oneOf(["both","x","y","none"]),className:Lt.default.string,children:Lt.default.element.isRequired,draggableOpts:Lt.default.shape({allowAnyClick:Lt.default.bool,cancel:Lt.default.string,children:Lt.default.node,disabled:Lt.default.bool,enableUserSelectHack:Lt.default.bool,offsetParent:Lt.default.node,grid:Lt.default.arrayOf(Lt.default.number),handle:Lt.default.string,nodeRef:Lt.default.object,onStart:Lt.default.func,onDrag:Lt.default.func,onStop:Lt.default.func,onMouseDown:Lt.default.func,scale:Lt.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=Lt.default.number).isRequired.apply(o,n)}return Lt.default.number.apply(Lt.default,n)},handle:Lt.default.oneOfType([Lt.default.node,Lt.default.func]),handleSize:Lt.default.arrayOf(Lt.default.number),lockAspectRatio:Lt.default.bool,maxConstraints:Lt.default.arrayOf(Lt.default.number),minConstraints:Lt.default.arrayOf(Lt.default.number),onResizeStop:Lt.default.func,onResizeStart:Lt.default.func,onResize:Lt.default.func,resizeHandles:Lt.default.arrayOf(Lt.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:Lt.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=Lt.default.number).isRequired.apply(o,n)}return Lt.default.number.apply(Lt.default,n)}};Dm.resizableProps=z9e;Om.__esModule=!0;Om.default=void 0;var Sh=V9e(T),j9e=$9e,U9e=n2,K9e=Dm,W9e=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function U7(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(U7=function(i){return i?n:t})(e)}function V9e(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=U7(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 Ek(){return Ek=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},Ek.apply(this,arguments)}function H9e(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 WN(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 Q_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WN(Object(n),!0).forEach(function(r){q9e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function q9e(e,t,n){return t=G9e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G9e(e){var t=Y9e(e,"string");return typeof t=="symbol"?t:String(t)}function Y9e(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 X9e(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,kk(e,t)}function kk(e,t){return kk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},kk(e,t)}var r2=function(e){X9e(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,c=a.lockAspectRatio;if(!s&&!l&&!c)return[i,o];if(c){var f=this.props.width/this.props.height,h=i-this.props.width,p=o-this.props.height;Math.abs(h)>Math.abs(p*f)?o=i/f:i=o*f}var y=i,m=o,v=this.slack||[0,0],S=v[0],x=v[1];return i+=S,o+=x,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=[S+(y-i),x+(m-o)],[i,o]},n.resizeHandler=function(i,o){var a=this;return function(s,l){var c=l.node,f=l.deltaX,h=l.deltaY;i==="onResizeStart"&&a.resetData();var p=(a.props.axis==="both"||a.props.axis==="x")&&o!=="n"&&o!=="s",y=(a.props.axis==="both"||a.props.axis==="y")&&o!=="e"&&o!=="w";if(!(!p&&!y)){var m=o[0],v=o[o.length-1],S=c.getBoundingClientRect();if(a.lastHandleRect!=null){if(v==="w"){var x=S.left-a.lastHandleRect.left;f+=x}if(m==="n"){var w=S.top-a.lastHandleRect.top;h+=w}}a.lastHandleRect=S,v==="w"&&(f=-f),m==="n"&&(h=-h);var C=a.props.width+(p?f/a.props.transformScale:0),E=a.props.height+(y?h/a.props.transformScale:0),O=a.runConstraints(C,E);C=O[0],E=O[1];var $=C!==a.props.width||E!==a.props.height,I=typeof a.props[i]=="function"?a.props[i]:null,W=i==="onResize"&&!$;I&&!W&&(s.persist==null||s.persist(),I(s,{node:c,size:{width:C,height:E},handle:o})),i==="onResizeStop"&&a.resetData()}}},n.renderResizeHandle=function(i,o){var a=this.props.handle;if(!a)return Sh.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=Q_({ref:o},s?{}:{handleAxis:i});return Sh.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 c=o.resizeHandles;o.transformScale;var f=H9e(o,W9e);return(0,U9e.cloneElement)(a,Q_(Q_({},f),{},{className:(s?s+" ":"")+"react-resizable",children:[].concat(a.props.children,c.map(function(h){var p,y=(p=i.handleRefs[h])!=null?p:i.handleRefs[h]=Sh.createRef();return Sh.createElement(j9e.DraggableCore,Ek({},l,{nodeRef:y,key:"resizableHandle-"+h,onStop:i.resizeHandler("onResizeStop",h),onStart:i.resizeHandler("onResizeStart",h),onDrag:i.resizeHandler("onResize",h)}),i.renderResizeHandle(h,y))}))}))},t}(Sh.Component);Om.default=r2;r2.propTypes=K9e.resizableProps;r2.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1};var Qx={};Qx.__esModule=!0;Qx.default=void 0;var eC=t8e(T),Z9e=K7(rm),J9e=K7(Om),Q9e=Dm,e8e=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function K7(e){return e&&e.__esModule?e:{default:e}}function W7(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(W7=function(i){return i?n:t})(e)}function t8e(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=W7(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 Tk(){return Tk=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},Tk.apply(this,arguments)}function VN(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 $1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VN(Object(n),!0).forEach(function(r){n8e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function n8e(e,t,n){return t=r8e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r8e(e){var t=i8e(e,"string");return typeof t=="symbol"?t:String(t)}function i8e(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 o8e(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 a8e(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Rk(e,t)}function Rk(e,t){return Rk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Rk(e,t)}var V7=function(e){a8e(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 c=l.size;r.props.onResize?(s.persist==null||s.persist(),r.setState(c,function(){return r.props.onResize&&r.props.onResize(s,l)})):r.setState(c)},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,c=i.draggableOpts,f=i.minConstraints,h=i.maxConstraints,p=i.lockAspectRatio,y=i.axis;i.width,i.height;var m=i.resizeHandles,v=i.style,S=i.transformScale,x=o8e(i,e8e);return eC.createElement(J9e.default,{axis:y,draggableOpts:c,handle:o,handleSize:a,height:this.state.height,lockAspectRatio:p,maxConstraints:h,minConstraints:f,onResizeStart:s,onResize:this.onResize,onResizeStop:l,resizeHandles:m,transformScale:S,width:this.state.width},eC.createElement("div",Tk({},x,{style:$1($1({},v),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},t}(eC.Component);Qx.default=V7;V7.propTypes=$1($1({},Q9e.resizableProps),{},{children:Z9e.default.element});JA.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")};var s8e=JA.exports.Resizable=Om.default;JA.exports.ResizableBox=Qx.default;const l8e=T.forwardRef(function({...t},n){return delete t.handleAxis,k.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:k.jsx(At,{sx:{width:"100%",height:"100%",backgroundColor:"grey.300",borderRadius:"4px"}})})}),u8e=je(At,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t,width:n})=>({width:n,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]}`,display:t?"flex":"none",flexDirection:"column",borderRadius:0,flexShrink:0,color:e.palette.text.primary,whiteSpace:"nowrap",boxSizing:"border-box",padding:"1.5rem",paddingTop:".5rem",overflowX:"hidden"})),H7=()=>{const[e,t]=Qi(nA),[n,r]=T.useState(!1),[i,o]=T.useState(400),a=(l,c)=>{o(c.size.width)},s=T.useMemo(()=>e?A7(e):null,[e]);return k.jsx(s8e,{width:i,height:0,onResize:a,onResizeStart:()=>r(!0),onResizeStop:()=>r(!1),resizeHandles:["w"],handle:k.jsx(l8e,{}),axis:"x",minConstraints:[100,0],maxConstraints:[1e3,0],children:k.jsxs(u8e,{open:!!e,width:i,children:[k.jsxs(In,{direction:"row",alignItems:"center",children:[k.jsx(fn,{noWrap:!0,fontSize:"20px",fontWeight:500,id:"side-view-title",children:e==null?void 0:e.name}),k.jsx(Br,{edge:"end",sx:{ml:"auto"},onClick:()=>t(void 0),children:k.jsx(Hd,{})})]}),k.jsx(At,{mt:"1.5rem",id:"side-view-content",sx:{height:"100%",pointerEvents:n?"none":"auto"},children:s})]})})};function c8e(){const[e,t]=Qi(dm),n=Tt(jd);if(!e)return null;const r=()=>{t(!1),n==null||n.socket.emit("stop")};return k.jsx(At,{margin:"auto",children:k.jsx(Q5,{id:"stop-button",startIcon:k.jsx(Hd,{}),variant:"contained",onClick:r,children:"Stop task"})})}var i2={},f8e=Pn;Object.defineProperty(i2,"__esModule",{value:!0});var q7=i2.default=void 0;h8e(T);var d8e=f8e(Ln()),p8e=k;function G7(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(G7=function(r){return r?n:t})(e)}function h8e(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=G7(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 g8e=(0,d8e.default)((0,p8e.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");q7=i2.default=g8e;var o2={},m8e=Pn;Object.defineProperty(o2,"__esModule",{value:!0});var Y7=o2.default=void 0,v8e=m8e(Ln()),HN=k,y8e=(0,v8e.default)([(0,HN.jsx)("path",{d:"M6 17.59 7.41 19 12 14.42 16.59 19 18 17.59l-6-6z"},"0"),(0,HN.jsx)("path",{d:"m6 11 1.41 1.41L12 7.83l4.59 4.58L18 11l-6-6z"},"1")],"KeyboardDoubleArrowUp");Y7=o2.default=y8e;var a2={},b8e=Pn;Object.defineProperty(a2,"__esModule",{value:!0});var X7=a2.default=void 0,x8e=b8e(Ln()),w8e=k,S8e=(0,x8e.default)((0,w8e.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"}),"SearchOutlined");X7=a2.default=S8e;function _8e(e){const t={};return e==null||e.forEach(n=>{const r={day:"numeric",month:"numeric",year:"numeric"},i=new Date(n.createdAt).toLocaleDateString(void 0,r);t[i]||(t[i]=[]);const o={hour:"numeric",minute:"numeric"};t[i].push({key:n.createdAt,hour:new Date(n.createdAt).toLocaleTimeString(void 0,o),content:n.messages[0].content})}),t}function C8e({onClick:e,onOpen:t,chats:n}){const[r,i]=Qi(Y5),o=T.useRef(),[a,s]=T.useState(null);T.useEffect(()=>{r&&o.current&&(s(o.current),t())},[r]);const l=k.jsxs(In,{disabled:!0,direction:"row",p:1,justifyContent:"space-between",alignItems:"center",children:[k.jsx(fn,{color:"text.primary",sx:{fontSize:"14px",fontWeight:700},children:"Last messages"}),k.jsx(X7,{})]},"title"),c=(n==null?void 0:n.length)===0?k.jsx("div",{id:"history-empty",disabled:!0,children:k.jsx(fn,{color:"text.secondary",sx:{fontSize:"12px",fontWeight:700,padding:"16px 12px",textTransform:"uppercase"},children:"Such empty..."})},"empty"):null,h=[l,c,n?null:k.jsx("div",{id:"history-loading",disabled:!0,children:k.jsx(fn,{color:"text.secondary",sx:{fontSize:"12px",fontWeight:700,padding:"16px 12px",textTransform:"uppercase"},children:"Loading..."})},"loading")];if(n){const y=_8e(n);Object.keys(y).forEach(m=>{h.push(k.jsx("div",{disabled:!0,children:k.jsx(fn,{color:"text.primary",sx:{p:1,fontSize:"10px",fontWeight:700,color:"#9E9E9E"},children:m})},m));let v="";y[m].forEach(S=>{v!==S.content&&(v=S.content,h.push(k.jsx(Ua,{className:"history-item",onClick:x=>{x.stopPropagation(),x.preventDefault(),i(!1),e(S.content)},disableRipple:!0,sx:{p:1,alignItems:"baseline",borderRadius:"4px"},children:k.jsx(fn,{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:S.content})},S.key)))})})}const p=k.jsx(sx,{autoFocus:!0,anchorEl:a,open:r,onClose:()=>i(!1),PaperProps:{sx:{p:1,backgroundImage:"none",mt:-2,ml:-1,overflow:"visible",maxHeight:"314px",width:"334px",overflowY:"auto",border:y=>`1px solid ${y.palette.divider}`,boxShadow:y=>y.palette.mode==="light"?"0px 2px 4px 0px #0000000D":"0px 10px 10px 0px #0000000D"}},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"},children:h});return k.jsxs("div",{children:[p,k.jsx(Wa,{title:"Show history",children:k.jsx(Br,{color:"inherit",onClick:()=>i(!r),ref:o,children:k.jsx(Y7,{})})})]})}const tC="chatHistory",qN=50;function Z7(){const e=T.useCallback(()=>{const n=localStorage.getItem(tC);return n?JSON.parse(n):[]},[]);return{persistChatLocally:T.useCallback(n=>{const r={id:0,createdAt:new Date().getTime(),messages:[{content:n,author:"",createdAt:new Date().getTime()}],elements:[]},i=e();if(!i)localStorage.setItem(tC,JSON.stringify([r]));else{let o=[r,...i];o.length>qN&&(o=o.slice(0,qN)),localStorage.setItem(tC,JSON.stringify(o))}return[]},[]),getLocalChatHistory:e}}function E8e({onClick:e}){const{getLocalChatHistory:t}=Z7(),[n,r]=T.useState(t());return k.jsx(C8e,{onClick:e,onOpen:()=>r(t()),chats:n})}const k8e=T.memo(function({onClick:t}){return k.jsx(E8e,{onClick:t})});function T8e(e){const t=e.querySelector("textarea");return t?t.value.split(`
|
|
494
|
+
`).length:0}const R8e=({onSubmit:e,onReply:t})=>{const n=T.useRef(null),r=fr(Y5),i=Tt(dm),o=Tt(yx),a=Tt(jd),[s,l]=T.useState(""),[c,f]=T.useState(!1),p=!((a==null?void 0:a.socket)&&!(a!=null&&a.error))||i||(o==null?void 0:o.spec.type)==="file";T.useEffect(()=>{var C;n.current&&!i&&!p&&((C=n.current.querySelector("textarea"))==null||C.focus())},[i,p]);const y=T.useCallback(()=>{s===""||p||(o?t(s):e(s),l(""))},[s,p,l,o,e]),m=()=>{f(!0)},v=()=>{f(!1)},S=T.useCallback(C=>{C.key==="Enter"&&!C.shiftKey?c||(C.preventDefault(),y()):C.key==="ArrowUp"&&T8e(C.currentTarget)<=1&&r(!0)},[y,r,c]),x=T.useCallback(C=>{n.current&&l(C)},[]),w=k.jsx(Br,{disabled:p,color:"inherit",onClick:()=>y(),children:k.jsx(q7,{})});return k.jsx(FR,{ref:n,id:"chat-input",autoFocus:!0,multiline:!0,variant:"standard",autoComplete:"false",placeholder:"Type your message here...",disabled:p,onChange:C=>l(C.target.value),onKeyDown:S,onCompositionStart:m,onCompositionEnd:v,value:s,fullWidth:!0,InputProps:{disableUnderline:!0,startAdornment:k.jsx(eP,{sx:{ml:1,color:"text.secondary"},position:"start",children:k.jsx(k8e,{onClick:x})}),endAdornment:k.jsx(eP,{position:"end",sx:{mr:1,color:"text.secondary"},children:w})},sx:{backgroundColor:"background.paper",borderRadius:1,border:C=>`1px solid ${C.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"}}})},A8e="/assets/logo_dark-bc7401f6.svg",O8e="/assets/logo_light-f19fc2ea.svg",D8e=({width:e,style:t})=>{const{theme:n}=Tt(Ks),r=n==="light"?O8e:A8e;return k.jsx("img",{src:r,style:t,width:e||40})};function $8e(){return k.jsx(In,{mx:"auto",children:k.jsxs("a",{href:"https://github.com/Chainlit/chainlit",target:"_blank",style:{display:"flex",alignItems:"center",textDecoration:"none"},children:[k.jsx(fn,{fontSize:"12px",color:"text.secondary",children:"Built with"}),k.jsx(D8e,{width:65,style:{filter:"grayscale(1)",marginLeft:"4px"}})]})})}function I8e({onSubmit:e,onReply:t}){return k.jsxs(At,{display:"flex",flexDirection:"column",gap:1,py:2,sx:{boxSizing:"border-box",width:"100%",maxWidth:"60rem",m:"auto",justifyContent:"center"},children:[k.jsx(c8e,{}),k.jsx(At,{children:k.jsx(R8e,{onSubmit:e,onReply:t})}),k.jsx($8e,{})]})}var Ak=function(e,t){return Ak=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])},Ak(e,t)};function P8e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ak(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var _r=function(){return _r=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},_r.apply(this,arguments)};function L8e(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 bf(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{c(r.next(f))}catch(h){a(h)}}function l(f){try{c(r.throw(f))}catch(h){a(h)}}function c(f){f.done?o(f.value):i(f.value).then(s,l)}c((r=r.apply(e,t||[])).next())})}function xf(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(c){return function(f){return l([c,f])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(n=0)),n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(f){c=[6,f],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function $a(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 Kf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function s2(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function l2(e,t){return e(t={exports:{}},t.exports),t.exports}var Pu=l2(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()}});s2(Pu);var F8e=s2(l2(function(e,t){var n=Kf&&Kf.__awaiter||function(l,c,f,h){return new(f||(f=Promise))(function(p,y){function m(x){try{S(h.next(x))}catch(w){y(w)}}function v(x){try{S(h.throw(x))}catch(w){y(w)}}function S(x){x.done?p(x.value):new f(function(w){w(x.value)}).then(m,v)}S((h=h.apply(l,c||[])).next())})},r=Kf&&Kf.__generator||function(l,c){var f,h,p,y,m={label:0,sent:function(){if(1&p[0])throw p[1];return p[1]},trys:[],ops:[]};return y={next:v(0),throw:v(1),return:v(2)},typeof Symbol=="function"&&(y[Symbol.iterator]=function(){return this}),y;function v(S){return function(x){return function(w){if(f)throw new TypeError("Generator is already executing.");for(;m;)try{if(f=1,h&&(p=2&w[0]?h.return:w[0]?h.throw||((p=h.return)&&p.call(h),0):h.next)&&!(p=p.call(h,w[1])).done)return p;switch(h=0,p&&(w=[2&w[0],p.value]),w[0]){case 0:case 1:p=w;break;case 4:return m.label++,{value:w[1],done:!1};case 5:m.label++,h=w[1],w=[0];continue;case 7:w=m.ops.pop(),m.trys.pop();continue;default:if(p=m.trys,!((p=p.length>0&&p[p.length-1])||w[0]!==6&&w[0]!==2)){m=0;continue}if(w[0]===3&&(!p||w[1]>p[0]&&w[1]<p[3])){m.label=w[1];break}if(w[0]===6&&m.label<p[1]){m.label=p[1],p=w;break}if(p&&m.label<p[2]){m.label=p[2],m.ops.push(w);break}p[2]&&m.ops.pop(),m.trys.pop();continue}w=c.call(l,m)}catch(C){w=[6,C],h=0}finally{f=p=0}if(5&w[0])throw w[1];return{value:w[0]?w[1]:void 0,done:!0}}([S,x])}}};Object.defineProperty(t,"__esModule",{value:!0});var i="browser-tabs-lock-key";function o(l){return new Promise(function(c){return setTimeout(c,l)})}function a(l){for(var c="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",f="",h=0;h<l;h++)f+=c[Math.floor(Math.random()*c.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(c,f){return f===void 0&&(f=5e3),n(this,void 0,void 0,function(){var h,p,y,m,v,S;return r(this,function(x){switch(x.label){case 0:h=Date.now()+a(4),p=Date.now()+f,y=i+"-"+c,m=window.localStorage,x.label=1;case 1:return Date.now()<p?[4,o(30)]:[3,8];case 2:return x.sent(),m.getItem(y)!==null?[3,5]:(v=this.id+"-"+c+"-"+h,[4,o(Math.floor(25*Math.random()))]);case 3:return x.sent(),m.setItem(y,JSON.stringify({id:this.id,iat:h,timeoutKey:v,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,o(30)];case 4:return x.sent(),(S=m.getItem(y))!==null&&(S=JSON.parse(S)).id===this.id&&S.iat===h?(this.acquiredIatSet.add(h),this.refreshLockWhileAcquired(y,h),[2,!0]):[3,7];case 5:return l.lockCorrector(),[4,this.waitForSomethingToChange(p)];case 6:x.sent(),x.label=7;case 7:return h=Date.now()+a(4),[3,1];case 8:return[2,!1]}})})},l.prototype.refreshLockWhileAcquired=function(c,f){return n(this,void 0,void 0,function(){var h=this;return r(this,function(p){return setTimeout(function(){return n(h,void 0,void 0,function(){var y,m;return r(this,function(v){switch(v.label){case 0:return[4,Pu.default().lock(f)];case 1:return v.sent(),this.acquiredIatSet.has(f)?(y=window.localStorage,(m=y.getItem(c))===null?(Pu.default().unlock(f),[2]):((m=JSON.parse(m)).timeRefreshed=Date.now(),y.setItem(c,JSON.stringify(m)),Pu.default().unlock(f),this.refreshLockWhileAcquired(c,f),[2])):(Pu.default().unlock(f),[2])}})})},1e3),[2]})})},l.prototype.waitForSomethingToChange=function(c){return n(this,void 0,void 0,function(){return r(this,function(f){switch(f.label){case 0:return[4,new Promise(function(h){var p=!1,y=Date.now(),m=!1;function v(){if(m||(window.removeEventListener("storage",v),l.removeFromWaiting(v),clearTimeout(S),m=!0),!p){p=!0;var x=50-(Date.now()-y);x>0?setTimeout(h,x):h()}}window.addEventListener("storage",v),l.addToWaiting(v);var S=setTimeout(v,Math.max(0,c-Date.now()))})];case 1:return f.sent(),[2]}})})},l.addToWaiting=function(c){this.removeFromWaiting(c),l.waiters!==void 0&&l.waiters.push(c)},l.removeFromWaiting=function(c){l.waiters!==void 0&&(l.waiters=l.waiters.filter(function(f){return f!==c}))},l.notifyWaiters=function(){l.waiters!==void 0&&l.waiters.slice().forEach(function(c){return c()})},l.prototype.releaseLock=function(c){return n(this,void 0,void 0,function(){return r(this,function(f){switch(f.label){case 0:return[4,this.releaseLock__private__(c)];case 1:return[2,f.sent()]}})})},l.prototype.releaseLock__private__=function(c){return n(this,void 0,void 0,function(){var f,h,p;return r(this,function(y){switch(y.label){case 0:return f=window.localStorage,h=i+"-"+c,(p=f.getItem(h))===null?[2]:(p=JSON.parse(p)).id!==this.id?[3,2]:[4,Pu.default().lock(p.iat)];case 1:y.sent(),this.acquiredIatSet.delete(p.iat),f.removeItem(h),Pu.default().unlock(p.iat),l.notifyWaiters(),y.label=2;case 2:return[2]}})})},l.lockCorrector=function(){for(var c=Date.now()-5e3,f=window.localStorage,h=Object.keys(f),p=!1,y=0;y<h.length;y++){var m=h[y];if(m.includes(i)){var v=f.getItem(m);v!==null&&((v=JSON.parse(v)).timeRefreshed===void 0&&v.timeAcquired<c||v.timeRefreshed!==void 0&&v.timeRefreshed<c)&&(f.removeItem(m),p=!0)}}p&&l.notifyWaiters()},l.waiters=void 0,l}();t.default=s}));const M8e={timeoutInSeconds:60},J7={name:"auth0-spa-js",version:"2.0.4"},Q7=()=>Date.now();class ko extends Error{constructor(t,n){super(n),this.error=t,this.error_description=n,Object.setPrototypeOf(this,ko.prototype)}static fromPayload({error:t,error_description:n}){return new ko(t,n)}}class u2 extends ko{constructor(t,n,r,i=null){super(t,n),this.state=r,this.appState=i,Object.setPrototypeOf(this,u2.prototype)}}class Kg extends ko{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,Kg.prototype)}}class c2 extends Kg{constructor(t){super(),this.popup=t,Object.setPrototypeOf(this,c2.prototype)}}class f2 extends ko{constructor(t){super("cancelled","Popup closed"),this.popup=t,Object.setPrototypeOf(this,f2.prototype)}}class d2 extends ko{constructor(t,n,r){super(t,n),this.mfa_token=r,Object.setPrototypeOf(this,d2.prototype)}}class ew extends ko{constructor(t,n){super("missing_refresh_token",`Missing Refresh Token (audience: '${GN(t,["default"])}', scope: '${GN(n)}')`),this.audience=t,this.scope=n,Object.setPrototypeOf(this,ew.prototype)}}function GN(e,t=[]){return e&&!t.includes(e)?e:""}const S0=()=>window.crypto,nC=()=>{const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let t="";return Array.from(S0().getRandomValues(new Uint8Array(43))).forEach(n=>t+=e[n%e.length]),t},YN=e=>btoa(e),Ok=e=>{var{clientId:t}=e,n=$a(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()},XN=e=>(t=>decodeURIComponent(atob(t).split("").map(n=>"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)).join("")))(e.replace(/_/g,"/").replace(/-/g,"+")),N8e=async(e,t)=>{const n=await fetch(e,t);return{ok:n.ok,json:await n.json()}},B8e=async(e,t,n)=>{const r=new AbortController;let i;return t.signal=r.signal,Promise.race([N8e(e,t),new Promise((o,a)=>{i=setTimeout(()=>{r.abort(),a(new Error("Timeout when executing 'fetch'"))},n)})]).finally(()=>{clearTimeout(i)})},z8e=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(c,f){const h=new MessageChannel;h.port1.onmessage=function(p){p.data.error?f(new Error(p.data.error)):c(p.data),h.port1.close()},l.postMessage(s,[h.port2])});var s,l},j8e=async(e,t,n,r,i,o,a=1e4)=>i?z8e(e,t,n,r,a,i,o):B8e(e,r,a);async function U8e(e,t){var{baseUrl:n,timeout:r,audience:i,scope:o,auth0Client:a,useFormData:s}=e,l=$a(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);const c=s?Ok(l):JSON.stringify(l);return await async function(f,h,p,y,m,v,S){let x,w=null;for(let W=0;W<3;W++)try{x=await j8e(f,p,y,m,v,S,h),w=null;break}catch(H){w=H}if(w)throw w;const C=x.json,{error:E,error_description:O}=C,$=$a(C,["error","error_description"]),{ok:I}=x;if(!I){const W=O||`HTTP error. Unable to fetch ${f}`;throw E==="mfa_required"?new d2(E,W,$.mfa_token):E==="missing_refresh_token"?new ew(p,y):new ko(E||"request_error",W)}return $}(`${n}/oauth/token`,r,i||"default",o,{method:"POST",body:c,headers:{"Content-Type":s?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(a||J7))}},t,s)}const jy=(...e)=>{return(t=e.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(t))).join(" ");var t};class Fa{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 Fa({clientId:r,scope:o,audience:i},n)}static fromCacheEntry(t){const{scope:n,audience:r,client_id:i}=t;return new Fa({scope:n,audience:r,clientId:i})}}class K8e{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 eK{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 W8e{constructor(t,n,r){this.cache=t,this.keyManifest=n,this.nowProvider=r||Q7}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 Fa({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 Fa({clientId:t},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(t,n){return n.filter(r=>{var i;const o=Fa.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((c,f)=>c&&a.has(f),!0);return o.prefix==="@@auth0spajs@@"&&o.clientId===t.clientId&&o.audience===t.audience&&l})[0]}}class V8e{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 _h=e=>typeof e=="number",H8e=["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"],q8e=e=>{if(!e.id_token)throw new Error("ID token is required but missing");const t=(o=>{const a=o.split("."),[s,l,c]=a;if(a.length!==3||!s||!l||!c)throw new Error("ID token could not be decoded");const f=JSON.parse(XN(l)),h={__raw:o},p={};return Object.keys(f).forEach(y=>{h[y]=f[y],H8e.includes(y)||(p[y]=f[y])}),{encoded:{header:s,payload:l,signature:c},header:JSON.parse(XN(s)),claims:h,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&&!_h(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||!_h(t.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!_h(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&&_h(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&&_h(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 Hu=l2(function(e,t){var n=Kf&&Kf.__assign||function(){return n=Object.assign||function(l){for(var c,f=1,h=arguments.length;f<h;f++)for(var p in c=arguments[f])Object.prototype.hasOwnProperty.call(c,p)&&(l[p]=c[p]);return l},n.apply(this,arguments)};function r(l,c){if(!c)return"";var f="; "+l;return c===!0?f:f+"="+c}function i(l,c,f){return encodeURIComponent(l).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(c).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(h){if(typeof h.expires=="number"){var p=new Date;p.setMilliseconds(p.getMilliseconds()+864e5*h.expires),h.expires=p}return r("Expires",h.expires?h.expires.toUTCString():"")+r("Domain",h.domain)+r("Path",h.path)+r("Secure",h.secure)+r("SameSite",h.sameSite)}(f)}function o(l){for(var c={},f=l?l.split("; "):[],h=/(%[\dA-F]{2})+/gi,p=0;p<f.length;p++){var y=f[p].split("="),m=y.slice(1).join("=");m.charAt(0)==='"'&&(m=m.slice(1,-1));try{c[y[0].replace(h,decodeURIComponent)]=m.replace(h,decodeURIComponent)}catch{}}return c}function a(){return o(document.cookie)}function s(l,c,f){document.cookie=i(l,c,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,c){s(l,"",n(n({},c),{expires:-1}))}});s2(Hu),Hu.encode,Hu.parse,Hu.getAll;var G8e=Hu.get,tK=Hu.set,nK=Hu.remove;const Ef={get(e){const t=G8e(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),tK(e,JSON.stringify(t),r)},remove(e,t){let n={};t!=null&&t.cookieDomain&&(n.domain=t.cookieDomain),nK(e,n)}},Y8e={get(e){return Ef.get(e)||Ef.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),tK(`_legacy_${e}`,JSON.stringify(t),r),Ef.save(e,t,n)},remove(e,t){let n={};t!=null&&t.cookieDomain&&(n.domain=t.cookieDomain),nK(e,n),Ef.remove(e,t),Ef.remove(`_legacy_${e}`,t)}},X8e={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 Z8e(e,t,n){var r=t===void 0?null:t,i=function(l,c){var f=atob(l);if(c){for(var h=new Uint8Array(f.length),p=0,y=f.length;p<y;++p)h[p]=f.charCodeAt(p);return String.fromCharCode.apply(null,new Uint16Array(h.buffer))}return f}(e,n!==void 0&&n),o=i.indexOf(`
|
|
495
|
+
`,10)+1,a=i.substring(o)+(r?"//# sourceMappingURL="+r:""),s=new Blob([a],{type:"application/javascript"});return URL.createObjectURL(s)}var ZN,JN,QN,rC,J8e=(ZN="Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29uc3RydWN0b3IoZSxzKXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIixgTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyR7cihlLFsiZGVmYXVsdCJdKX0nLCBzY29wZTogJyR7cihzKX0nKWApLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXMsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsdC5wcm90b3R5cGUpfX1mdW5jdGlvbiByKGUsdD1bXSl7cmV0dXJuIGUmJiF0LmluY2x1ZGVzKGUpP2U6IiJ9Y29uc3Qgcz1lPT57dmFye2NsaWVudElkOnR9PWUscj1mdW5jdGlvbihlLHQpe3ZhciByPXt9O2Zvcih2YXIgcyBpbiBlKU9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbChlLHMpJiZ0LmluZGV4T2Yocyk8MCYmKHJbc109ZVtzXSk7aWYobnVsbCE9ZSYmImZ1bmN0aW9uIj09dHlwZW9mIE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMpe3ZhciBvPTA7Zm9yKHM9T2JqZWN0LmdldE93blByb3BlcnR5U3ltYm9scyhlKTtvPHMubGVuZ3RoO28rKyl0LmluZGV4T2Yoc1tvXSk8MCYmT2JqZWN0LnByb3RvdHlwZS5wcm9wZXJ0eUlzRW51bWVyYWJsZS5jYWxsKGUsc1tvXSkmJihyW3Nbb11dPWVbc1tvXV0pfXJldHVybiByfShlLFsiY2xpZW50SWQiXSk7cmV0dXJuIG5ldyBVUkxTZWFyY2hQYXJhbXMoKGU9Pk9iamVjdC5rZXlzKGUpLmZpbHRlcigodD0+dm9pZCAwIT09ZVt0XSkpLnJlZHVjZSgoKHQscik9Pk9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSx0KSx7W3JdOmVbcl19KSkse30pKShPYmplY3QuYXNzaWduKHtjbGllbnRfaWQ6dH0scikpKS50b1N0cmluZygpfTtsZXQgbz17fTtjb25zdCBuPShlLHQpPT5gJHtlfXwke3R9YDthZGRFdmVudExpc3RlbmVyKCJtZXNzYWdlIiwoYXN5bmMoe2RhdGE6e3RpbWVvdXQ6ZSxhdXRoOnIsZmV0Y2hVcmw6aSxmZXRjaE9wdGlvbnM6Yyx1c2VGb3JtRGF0YTphfSxwb3J0czpbZl19KT0+e2xldCBwO2NvbnN0e2F1ZGllbmNlOmwsc2NvcGU6dX09cnx8e307dHJ5e2NvbnN0IHI9YT8oZT0+e2NvbnN0IHQ9bmV3IFVSTFNlYXJjaFBhcmFtcyhlKSxyPXt9O3JldHVybiB0LmZvckVhY2goKChlLHQpPT57clt0XT1lfSkpLHJ9KShjLmJvZHkpOkpTT04ucGFyc2UoYy5ib2R5KTtpZighci5yZWZyZXNoX3Rva2VuJiYicmVmcmVzaF90b2tlbiI9PT1yLmdyYW50X3R5cGUpe2NvbnN0IGU9KChlLHQpPT5vW24oZSx0KV0pKGwsdSk7aWYoIWUpdGhyb3cgbmV3IHQobCx1KTtjLmJvZHk9YT9zKE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxyKSx7cmVmcmVzaF90b2tlbjplfSkpOkpTT04uc3RyaW5naWZ5KE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxyKSx7cmVmcmVzaF90b2tlbjplfSkpfWxldCBkLGc7ImZ1bmN0aW9uIj09dHlwZW9mIEFib3J0Q29udHJvbGxlciYmKGQ9bmV3IEFib3J0Q29udHJvbGxlcixjLnNpZ25hbD1kLnNpZ25hbCk7dHJ5e2c9YXdhaXQgUHJvbWlzZS5yYWNlKFsoaD1lLG5ldyBQcm9taXNlKChlPT5zZXRUaW1lb3V0KGUsaCkpKSksZmV0Y2goaSxPYmplY3QuYXNzaWduKHt9LGMpKV0pfWNhdGNoKGUpe3JldHVybiB2b2lkIGYucG9zdE1lc3NhZ2Uoe2Vycm9yOmUubWVzc2FnZX0pfWlmKCFnKXJldHVybiBkJiZkLmFib3J0KCksdm9pZCBmLnBvc3RNZXNzYWdlKHtlcnJvcjoiVGltZW91dCB3aGVuIGV4ZWN1dGluZyAnZmV0Y2gnIn0pO3A9YXdhaXQgZy5qc29uKCkscC5yZWZyZXNoX3Rva2VuPygoKGUsdCxyKT0+e29bbih0LHIpXT1lfSkocC5yZWZyZXNoX3Rva2VuLGwsdSksZGVsZXRlIHAucmVmcmVzaF90b2tlbik6KChlLHQpPT57ZGVsZXRlIG9bbihlLHQpXX0pKGwsdSksZi5wb3N0TWVzc2FnZSh7b2s6Zy5vayxqc29uOnB9KX1jYXRjaChlKXtmLnBvc3RNZXNzYWdlKHtvazohMSxqc29uOntlcnJvcjplLmVycm9yLGVycm9yX2Rlc2NyaXB0aW9uOmUubWVzc2FnZX19KX12YXIgaH0pKX0oKTsKCg==",JN=null,QN=!1,function(e){return rC=rC||Z8e(ZN,JN,QN),new Worker(rC,e)});const iC={};class Q8e{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 e7e={memory:()=>new eK().enclosedCache,localstorage:()=>new K8e},eB=e=>e7e[e],tB=e=>{const{openUrl:t,onRedirect:n}=e,r=$a(e,["openUrl","onRedirect"]);return Object.assign(Object.assign({},r),{openUrl:t===!1||t?t:n})},oC=new F8e;class t7e{constructor(t){let n,r;if(this.userCache=new eK().enclosedCache,this.defaultOptions={authorizationParams:{scope:"openid profile email"},useRefreshTokensFallback:!1,useFormData:!0},this._releaseLockOnPageHide=async()=>{await oC.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(!S0())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(S0().subtle===void 0)throw new Error(`
|
|
496
|
+
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.
|
|
497
|
+
`)})(),t.cache&&t.cacheLocation&&console.warn("Both `cache` and `cacheLocation` options have been specified in the Auth0Client configuration; ignoring `cacheLocation` and using `cache`."),t.cache)r=t.cache;else{if(n=t.cacheLocation||"memory",!eB(n))throw new Error(`Invalid cache location "${n}"`);r=eB(n)()}this.httpTimeoutMs=t.httpTimeoutInSeconds?1e3*t.httpTimeoutInSeconds:1e4,this.cookieStorage=t.legacySameSiteCookie===!1?Ef:Y8e,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:X8e;var o;this.scope=jy("openid",this.options.authorizationParams.scope,this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new V8e(i,this.options.clientId),this.nowProvider=this.options.nowProvider||Q7,this.cacheManager=new W8e(r,r.allKeys?void 0:new Q8e(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 J8e)}_url(t){const n=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||J7)));return`${this.domainUrl}${t}&auth0Client=${n}`}_authorizeUrl(t){return this._url(`/authorize?${Ok(t)}`)}async _verifyIdToken(t,n,r){const i=await this.nowProvider();return q8e({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=YN(nC()),o=YN(nC()),a=nC(),s=(f=>{const h=new Uint8Array(f);return(p=>{const y={"+":"-","/":"_","=":""};return p.replace(/[+/=]/g,m=>y[m])})(window.btoa(String.fromCharCode(...Array.from(h))))})(await(async f=>await S0().subtle.digest({name:"SHA-256"},new TextEncoder().encode(f)))(a)),l=((f,h,p,y,m,v,S,x)=>Object.assign(Object.assign(Object.assign({client_id:f.clientId},f.authorizationParams),p),{scope:jy(h,p.scope),response_type:"code",response_mode:x||"query",state:y,nonce:m,redirect_uri:S||f.authorizationParams.redirect_uri,code_challenge:v,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),c=this._authorizeUrl(l);return{nonce:o,code_verifier:a,scope:l.scope,audience:l.audience||"default",redirect_uri:l.redirect_uri,state:i,url:c}}async loginWithPopup(t,n){var r;if(t=t||{},!(n=n||{}).popup&&(n.popup=(s=>{const l=window.screenX+(window.innerWidth-400)/2,c=window.screenY+(window.innerHeight-600)/2;return window.open(s,"auth0:authorize:popup",`left=${l},top=${c},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,c)=>{let f;const h=setInterval(()=>{s.popup&&s.popup.closed&&(clearInterval(h),clearTimeout(p),window.removeEventListener("message",f,!1),c(new f2(s.popup)))},1e3),p=setTimeout(()=>{clearInterval(h),c(new c2(s.popup)),window.removeEventListener("message",f,!1)},1e3*(s.timeoutInSeconds||60));f=function(y){if(y.data&&y.data.type==="authorization_response"){if(clearTimeout(p),clearInterval(h),window.removeEventListener("message",f,!1),s.popup.close(),y.data.response.error)return c(ko.fromPayload(y.data.response));l(y.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=tB(t),{openUrl:i,fragment:o,appState:a}=r,s=$a(r,["openUrl","fragment","appState"]),l=((n=s.authorizationParams)===null||n===void 0?void 0:n.organization)||this.options.authorizationParams.organization,c=await this._prepareAuthorizeUrl(s.authorizationParams||{}),{url:f}=c,h=$a(c,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},h),{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}=(h=>{h.indexOf("#")>-1&&(h=h.substring(0,h.indexOf("#")));const p=new URLSearchParams(h);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 u2(o,a||o,r,s.appState);if(!s.code_verifier||s.state&&s.state!==r)throw new Error("Invalid state");const l=s.organizationId,c=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:c,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:jy(this.scope,(n=t.authorizationParams)===null||n===void 0?void 0:n.scope)})}),i=await((o,a)=>{let s=iC[a];return s||(s=o().finally(()=>{delete iC[a],s=null}),iC[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=$a(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})(()=>oC.acquireLock("auth0.lock.getTokenSilently",5e3),10))throw new Kg;try{if(window.addEventListener("pagehide",this._releaseLockOnPageHide),n!=="off"){const c=await this._getEntryFromCache({scope:r.authorizationParams.scope,audience:r.authorizationParams.audience||"default",clientId:this.options.clientId});if(c)return c}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 oC.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:jy(this.scope,(r=t.authorizationParams)===null||r===void 0?void 0:r.scope)})});return n=Object.assign(Object.assign({},M8e),n),await this.loginWithPopup(i,n),(await this.cacheManager.get(new Fa({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=$a(n,["federated"]),o=r?"&federated":"";return this._url(`/v2/logout?${Ok(Object.assign({clientId:t.clientId},i))}`)+o}async logout(t={}){const n=tB(t),{openUrl:r}=n,i=$a(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:c,audience:f}=await this._prepareAuthorizeUrl(n,{response_mode:"web_message"},window.location.origin);try{if(window.crossOriginIsolated)throw new ko("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");const h=t.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,p=await((m,v,S=60)=>new Promise((x,w)=>{const C=window.document.createElement("iframe");C.setAttribute("width","0"),C.setAttribute("height","0"),C.style.display="none";const E=()=>{window.document.body.contains(C)&&(window.document.body.removeChild(C),window.removeEventListener("message",O,!1))};let O;const $=setTimeout(()=>{w(new Kg),E()},1e3*S);O=function(I){if(I.origin!=v||!I.data||I.data.type!=="authorization_response")return;const W=I.source;W&&W.close(),I.data.response.error?w(ko.fromPayload(I.data.response)):x(I.data.response),clearTimeout($),window.removeEventListener("message",O,!1),setTimeout(E,2e3)},window.addEventListener("message",O,!1),window.document.body.appendChild(C),C.setAttribute("src",m)}))(i,this.domainUrl,h);if(o!==p.state)throw new Error("Invalid state");const y=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({},y),{scope:c,oauthTokenScope:y.scope,audience:f})}catch(h){throw h.error==="login_required"&&this.logout({openUrl:!1}),h}}async _getTokenUsingRefreshToken(t){const n=await this.cacheManager.get(new Fa({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 ew(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=$a(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 Fa({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 Fa({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 U8e(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 rK={isAuthenticated:!1,isLoading:!0},ys=function(){throw new Error("You forgot to wrap your component in <Auth0Provider>.")},n7e=_r(_r({},rK),{buildAuthorizeUrl:ys,buildLogoutUrl:ys,getAccessTokenSilently:ys,getAccessTokenWithPopup:ys,getIdTokenClaims:ys,loginWithRedirect:ys,loginWithPopup:ys,logout:ys,handleRedirectCallback:ys}),iK=T.createContext(n7e),r7e=function(e){P8e(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),i7e=/[?&]code=[^&]+/,o7e=/[?&]state=[^&]+/,a7e=/[?&]error=[^&]+/,s7e=function(e){return e===void 0&&(e=window.location.search),(i7e.test(e)||a7e.test(e))&&o7e.test(e)},oK=function(e){return function(t){return"error"in t?new r7e(t.error,t.error_description):t instanceof Error?t:new Error(e)}},nB=oK("Login failed"),aC=oK("Get access token failed"),aK=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)},l7e=function(e,t){switch(t.type){case"LOGIN_POPUP_STARTED":return _r(_r({},e),{isLoading:!0});case"LOGIN_POPUP_COMPLETE":case"INITIALISED":return _r(_r({},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:_r(_r({},e),{isAuthenticated:!!t.user,user:t.user});case"LOGOUT":return _r(_r({},e),{isAuthenticated:!1,user:void 0});case"ERROR":return _r(_r({},e),{isLoading:!1,error:t.error})}},u7e=function(e){return aK(e),_r(_r({},e),{auth0Client:{name:"auth0-react",version:"2.0.1"}})},c7e=function(e){window.history.replaceState({},document.title,(e==null?void 0:e.returnTo)||window.location.pathname)},f7e=function(e){var t=e.children,n=e.skipRedirectCallback,r=e.onRedirectCallback,i=r===void 0?c7e:r,o=e.context,a=o===void 0?iK:o,s=L8e(e,["children","skipRedirectCallback","onRedirectCallback","context"]),l=T.useState(function(){return new t7e(u7e(s))})[0],c=T.useReducer(l7e,rK),f=c[0],h=c[1],p=T.useRef(!1);T.useEffect(function(){p.current||(p.current=!0,function(){return bf(void 0,void 0,void 0,function(){var O,$,I;return xf(this,function(W){switch(W.label){case 0:return W.trys.push([0,7,,8]),O=void 0,s7e()&&!n?[4,l.handleRedirectCallback()]:[3,3];case 1:return $=W.sent().appState,[4,l.getUser()];case 2:return O=W.sent(),i($,O),[3,6];case 3:return[4,l.checkSession()];case 4:return W.sent(),[4,l.getUser()];case 5:O=W.sent(),W.label=6;case 6:return h({type:"INITIALISED",user:O}),[3,8];case 7:return I=W.sent(),h({type:"ERROR",error:nB(I)}),[3,8];case 8:return[2]}})})}())},[l,i,n]);var y=T.useCallback(function(O){return aK(O),l.loginWithRedirect(O)},[l]),m=T.useCallback(function(O,$){return bf(void 0,void 0,void 0,function(){var I,W;return xf(this,function(H){switch(H.label){case 0:h({type:"LOGIN_POPUP_STARTED"}),H.label=1;case 1:return H.trys.push([1,3,,4]),[4,l.loginWithPopup(O,$)];case 2:return H.sent(),[3,4];case 3:return I=H.sent(),h({type:"ERROR",error:nB(I)}),[2];case 4:return[4,l.getUser()];case 5:return W=H.sent(),h({type:"LOGIN_POPUP_COMPLETE",user:W}),[2]}})})},[l]),v=T.useCallback(function(O){return O===void 0&&(O={}),bf(void 0,void 0,void 0,function(){return xf(this,function($){switch($.label){case 0:return[4,l.logout(O)];case 1:return $.sent(),(O.openUrl||O.openUrl===!1)&&h({type:"LOGOUT"}),[2]}})})},[l]),S=T.useCallback(function(O){return bf(void 0,void 0,void 0,function(){var $,I,W,H;return xf(this,function(j){switch(j.label){case 0:return j.trys.push([0,2,3,5]),[4,l.getTokenSilently(O)];case 1:return $=j.sent(),[3,5];case 2:throw I=j.sent(),aC(I);case 3:return W=h,H={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,l.getUser()];case 4:return W.apply(void 0,[(H.user=j.sent(),H)]),[7];case 5:return[2,$]}})})},[l]),x=T.useCallback(function(O,$){return bf(void 0,void 0,void 0,function(){var I,W,H,j;return xf(this,function(U){switch(U.label){case 0:return U.trys.push([0,2,3,5]),[4,l.getTokenWithPopup(O,$)];case 1:return I=U.sent(),[3,5];case 2:throw W=U.sent(),aC(W);case 3:return H=h,j={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,l.getUser()];case 4:return H.apply(void 0,[(j.user=U.sent(),j)]),[7];case 5:return[2,I]}})})},[l]),w=T.useCallback(function(){return l.getIdTokenClaims()},[l]),C=T.useCallback(function(O){return bf(void 0,void 0,void 0,function(){var $,I,W;return xf(this,function(H){switch(H.label){case 0:return H.trys.push([0,2,3,5]),[4,l.handleRedirectCallback(O)];case 1:return[2,H.sent()];case 2:throw $=H.sent(),aC($);case 3:return I=h,W={type:"HANDLE_REDIRECT_COMPLETE"},[4,l.getUser()];case 4:return I.apply(void 0,[(W.user=H.sent(),W)]),[7];case 5:return[2]}})})},[l]),E=T.useMemo(function(){return _r(_r({},f),{getAccessTokenSilently:S,getAccessTokenWithPopup:x,getIdTokenClaims:w,loginWithRedirect:y,loginWithPopup:m,logout:v,handleRedirectCallback:C})},[f,S,x,w,y,m,v,C]);return pt.createElement(a.Provider,{value:E},t)},d7e=function(e){return e===void 0&&(e=iK),T.useContext(e)};const ou=()=>{const e=Tt(Mo),{isAuthenticated:t,isLoading:n,...r}=d7e(),i=Tt(V5),o=Tt(zR),a=t&&o&&o!=="ANONYMOUS",s=(e==null?void 0:e.project.id)&&(e==null?void 0:e.project.database)==="cloud",l=s&&n;return{role:o,accessToken:i,isAuthenticated:t,authenticating:l||t&&!i,isProjectMember:a,isLoading:l,cloudAuthRequired:s,...r}},p2=Tr({key:"Actions",default:[]}),sK=()=>{const e=Tt(Mo);return e!=null&&e.markdown?k.jsx(At,{overflow:"auto",flexGrow:1,children:k.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?k.jsx(_x,{remarkPlugins:[tA],components:{a({children:t,...n}){return k.jsx(IR,{...n,target:"_blank",children:t})},code({...t}){return k.jsx(rA,{...t})}},children:e==null?void 0:e.markdown}):null})}):k.jsx(At,{flexGrow:1})};class p7e extends T.Component{constructor(){super(...arguments);lr(this,"state",{hasError:!1})}static getDerivedStateFromError(n){return{hasError:!0}}componentDidCatch(n,r){console.error("Uncaught error:",n,r)}render(){return this.state.hasError?k.jsx(At,{flexGrow:1,children:k.jsx(Wl,{severity:"error",children:"Something went wrong."})}):this.props.children}}const h7e=()=>{const{user:e,isAuthenticated:t}=ou(),n=Tt(jd),r=Tt(yx),[i,o]=Qi(vx),a=Tt(mm),s=Tt(p2),l=Tt(Mo),{persistChatLocally:c}=Z7(),[f,h]=T.useState(!0),p=T.useCallback(async m=>{var x;if(!(n==null?void 0:n.socket.id))return;const S={author:(e==null?void 0:e.name)||"User",authorIsUser:!0,content:m,createdAt:Date.now()};(!t||!((x=l==null?void 0:l.project)!=null&&x.id))&&c(m),h(!0),o(w=>[...w,S]),n==null||n.socket.emit("ui_message",S)},[e,n,t,l]),y=T.useCallback(async m=>{if(!r)return;const v={author:(e==null?void 0:e.name)||"User",authorIsUser:!0,content:m,createdAt:Date.now()};r.callback({author:v.author,content:v.content}),h(!0),o(S=>[...S,v])},[r,e]);return k.jsxs(At,{display:"flex",width:"100%",height:"0",flexGrow:1,children:[k.jsx(R7,{}),k.jsxs(At,{display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",px:2,children:[k.jsx(At,{my:1}),(n==null?void 0:n.error)&&k.jsx(Wl,{severity:"error",children:"Could not reach the server."}),!!i.length&&k.jsx(p7e,{children:k.jsx($U,{actions:s,elements:a,messages:i,autoScroll:f,setAutoSroll:h})}),!i.length&&k.jsx(sK,{}),k.jsx(I8e,{onReply:y,onSubmit:p})]}),k.jsx(H7,{})]})};var h2={},g7e=Pn;Object.defineProperty(h2,"__esModule",{value:!0});var lK=h2.default=void 0,m7e=g7e(Ln()),v7e=k,y7e=(0,m7e.default)((0,v7e.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");lK=h2.default=y7e;var g2={},b7e=Pn;Object.defineProperty(g2,"__esModule",{value:!0});var uK=g2.default=void 0,x7e=b7e(Ln()),w7e=k,S7e=(0,x7e.default)((0,w7e.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");uK=g2.default=S7e;var m2={},_7e=Pn;Object.defineProperty(m2,"__esModule",{value:!0});var cK=m2.default=void 0,C7e=_7e(Ln()),E7e=k,k7e=(0,C7e.default)((0,E7e.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");cK=m2.default=k7e;function T7e({anchorEl:e,open:t,handleClose:n}){var m,v;const{user:r,logout:i}=ou(),o=Tt(Mo),a=fr(Ks),s=!!((v=(m=o==null?void 0:o.project)==null?void 0:m.user_env)!=null&&v.length),p=[r&&k.jsxs(s0,{sx:{display:"flex",flexDirection:"column"},children:[k.jsx(fn,{width:"100%",fontSize:"14px",fontWeight:700,children:r.name}),k.jsx(fn,{width:"100%",fontSize:"13px",fontWeight:400,children:r.email})]},"user-name"),k.jsxs(Ua,{onClick:()=>{a(S=>({...S,open:!0})),n()},children:[k.jsx(ed,{children:k.jsx(uK,{fontSize:"small"})}),k.jsx(l0,{children:"Settings"}),k.jsx(fn,{variant:"body2",color:"text.secondary",children:"S"})]},"settings"),s&&k.jsxs(Ua,{component:fm,to:"/env",children:[k.jsx(ed,{children:k.jsx(cK,{fontSize:"small"})}),"API keys"]},"env"),r&&k.jsxs(Ua,{onClick:()=>{i({logoutParams:{returnTo:window.location.origin}}),n()},children:[k.jsx(ed,{children:k.jsx(lK,{fontSize:"small"})}),"Logout"]},"logout")].filter(S=>!!S),y=p.reduce((S,x,w)=>w===p.length-1?[...S,x]:[...S,x,k.jsx(Ehe,{sx:{my:1}},`divider-${w}`)],[]);return k.jsx(sx,{anchorEl:e,id:"account-menu",open:t,onClose:n,PaperProps:{sx:{width:220,overflow:"visible",mt:1.5,backgroundImage:"none",border:S=>`1px solid ${S.palette.divider}`,boxShadow:S=>S.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:y})}function R7e(){var n;const{user:e}=ou(),t=fa();return e?k.jsx(TE,{sx:{width:32,height:32},src:e.picture||void 0,children:(n=e.name)==null?void 0:n[0]}):k.jsx(At,{color:t.palette.mode==="dark"?"text.primary":"primary.main",children:k.jsx(TE,{sx:{width:32,height:32,bgcolor:"transparent",color:"inherit"}})})}function A7e(){const[e,t]=T.useState(null),n=!!e,r=o=>{t(o.currentTarget)},i=()=>{t(null)};return k.jsxs("div",{children:[k.jsx(Br,{edge:"end",onClick:r,size:"small","aria-controls":n?"account-menu":void 0,"aria-haspopup":"true","aria-expanded":n?"true":void 0,children:k.jsx(R7e,{})}),k.jsx(T7e,{open:n,anchorEl:e,handleClose:i})]})}var v2={},O7e=Pn;Object.defineProperty(v2,"__esModule",{value:!0});var fK=v2.default=void 0,D7e=O7e(Ln()),$7e=k,I7e=(0,D7e.default)((0,$7e.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");fK=v2.default=I7e;function P7e(){const e=fr(vx),t=fr(mm),n=fr(p2),r=fr(nA),i=fr(G5),o=Tt(jd);return()=>{o==null||o.socket.disconnect(),o==null||o.socket.connect(),e([]),t([]),n([]),r(void 0),i(0)}}function rB({children:e,...t}){const n=fa();return k.jsx("span",{style:{color:n.palette.text.primary},children:k.jsx(mc,{color:n.palette.mode==="dark"?"inherit":"primary",...t,children:e})})}function dK({children:e,...t}){return k.jsx("span",{children:k.jsx(mc,{sx:{textTransform:"none",color:n=>n.palette.mode==="dark"?"text.primary":n.palette.primary.main,background:n=>n.palette.mode==="dark"?n.palette.background.paperVariant:n.palette.primary.light,"&:hover":{background:n=>n.palette.mode==="dark"?n.palette.background.paperVariant:n.palette.primary.light}},...t,children:e})})}function L7e(){const e=yc(),[t,n]=T.useState(!1),r=P7e(),i=()=>{n(!0)},o=()=>{n(!1)},a=()=>{r(),e("/"),o()};return k.jsxs(At,{children:[k.jsx(rB,{id:"new-chat-button",variant:"outlined",onClick:i,startIcon:k.jsx(fK,{}),children:"New Chat"}),k.jsxs(ox,{open:t,onClose:o,id:"new-chat-dialog",PaperProps:{sx:{backgroundImage:"none"}},children:[k.jsx(DR,{id:"alert-dialog-title",children:"Create a new chat?"}),k.jsx(ax,{children:k.jsx(f5,{id:"alert-dialog-description",children:"This will clear the current messages and start a new chat."})}),k.jsxs(c5,{sx:{p:2},children:[k.jsx(dK,{onClick:o,children:"Cancel"}),k.jsx(rB,{id:"confirm",variant:"outlined",onClick:a,autoFocus:!0,children:"Confirm"})]})]})]})}const F7e=e=>k.jsx(CE,{...e,viewBox:"0 0 98 96",children:k.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 M7e({href:e}){return e?k.jsx(Wa,{title:"See on Github",children:k.jsx(Br,{color:"inherit",href:e,target:"_blank",children:k.jsx(F7e,{})})}):null}var y2={},N7e=Pn;Object.defineProperty(y2,"__esModule",{value:!0});var pK=y2.default=void 0,B7e=N7e(Ln()),z7e=k,j7e=(0,B7e.default)((0,z7e.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");pK=y2.default=j7e;function U7e({to:e,label:t}){return k.jsx(dK,{component:fm,to:e,children:t},e)}function K7e({to:e,label:t}){return k.jsx(mc,{component:fm,to:e,sx:{textTransform:"none",color:"text.secondary","&:hover":{background:"transparent"}},children:t},e)}function W7e({hasDb:e,hasReadme:t}){const n=zd(),r=fa(),[i,o]=T.useState(!1),a=T.useRef(),[s,l]=T.useState(null);T.useEffect(()=>{i&&a.current&&l(a.current)},[i]);const c=ege(r.breakpoints.down("md")),f=[{to:"/",label:"Chat"}];e&&f.push({to:"/dataset",label:"History"}),t&&f.push({to:"/readme",label:"Readme"});const h=k.jsx(In,{direction:c?"column":"row",spacing:1,children:f.map(p=>{const y=n.pathname===p.to;return k.jsx("div",{children:y?k.jsx(U7e,{...p}):k.jsx(K7e,{...p})},p.to)})});return c?k.jsxs(k.Fragment,{children:[k.jsx(Br,{ref:a,edge:"start","aria-label":"open nav",onClick:()=>o(!0),children:k.jsx(pK,{})}),k.jsx(sx,{autoFocus:!0,anchorEl:s,open:i,onClose:()=>o(!1),PaperProps:{sx:{p:1,backgroundImage:"none",mt:-2,ml:-1,overflow:"visible",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:h})]}):h}function hK(){var t,n;const e=Tt(Mo);return k.jsx(fde,{elevation:0,color:"transparent",position:"static",children:k.jsxs(xye,{sx:{minHeight:"60px !important",borderBottomWidth:"1px",borderBottomStyle:"solid",background:r=>r.palette.background.paper,borderBottomColor:r=>r.palette.divider},children:[k.jsx(In,{alignItems:"center",direction:"row",children:k.jsx(W7e,{hasDb:!!((t=e==null?void 0:e.project)!=null&&t.database),hasReadme:!!(e!=null&&e.markdown)})}),k.jsxs(In,{alignItems:"center",sx:{ml:"auto"},direction:"row",spacing:1,color:"text.primary",children:[k.jsx(L7e,{}),k.jsx(At,{ml:1}),k.jsx(M7e,{href:(n=e==null?void 0:e.ui)==null?void 0:n.github}),k.jsx(A7e,{})]})]})})}const $m=({children:e})=>{var h;const{isProjectMember:t,authenticating:n,isAuthenticated:r,accessToken:i,role:o}=ou(),a=Tt(Mo),s=yc(),l=Tt(px),c=a&&!((h=a.project)!=null&&h.public);if(T.useEffect(()=>{c&&!r&&!n&&s("/login")},[a,r,n]),T.useEffect(()=>{var p,y;if((p=a==null?void 0:a.project)!=null&&p.user_env)for(const m of((y=a.project)==null?void 0:y.user_env)||[])l[m]||s("/env")},[a,l]),!a||c&&(!i||!o))return null;const f=c&&o&&!t;return k.jsxs(At,{sx:{display:"flex",flexDirection:"column",width:"100%"},children:[k.jsx(hK,{}),f?k.jsx(Wl,{severity:"error",children:"You are not part of this project."}):e]})};function V7e(){return k.jsx($m,{children:k.jsx(h7e,{})})}function H7e(){return k.jsx($m,{children:k.jsx(BUe,{})})}function q7e(){const{loginWithRedirect:e,isAuthenticated:t}=ou(),n=yc();return T.useEffect(()=>{t?n("/"):e({authorizationParams:{audience:"chainlit-cloud"}})},[t]),null}function G7e(){const{user:e,error:t}=ou(),n=yc();return T.useEffect(()=>{e&&n("/")},[e]),t?k.jsx(Wl,{severity:"error",children:t.message}):null}const tw=Tr({key:"DatasetFilters",default:{}});function Y7e(){const e=Tt(nu),t=Tt(zR),[n,r]=Qi(tw),[i,o]=T.useState();if(T.useEffect(()=>{e.getProjectMembers().then(s=>o(s))},[e]),!i||t==="USER")return null;const a=s=>{const l=s.target.value;r({...n,authorEmail:l==="All"?void 0:l})};return k.jsx(At,{sx:{width:200},children:k.jsxs($R,{fullWidth:!0,children:[k.jsx(Vl,{id:"author-filter-select",children:"Author"}),k.jsxs(lx,{labelId:"author-filter-select",value:n.authorEmail||"All",label:"Author",onChange:a,size:"small",children:[k.jsx(Ua,{value:"All",children:"All"}),i.map(s=>k.jsx(Ua,{value:s.email,children:s.email},s.email))]})]})})}function X7e(){const[e,t]=Qi(tw),n=r=>{const i=r.target.value;t({...e,feedback:i===0?void 0:i})};return k.jsx(At,{sx:{width:120},children:k.jsxs($R,{fullWidth:!0,children:[k.jsx(Vl,{id:"feedback-filter-select",children:"Feedback"}),k.jsxs(lx,{labelId:"feedback-filter-select",value:e.feedback?e.feedback.toString():"0",label:"Feedback",onChange:n,size:"small",children:[k.jsx(Ua,{value:0,children:"All"}),k.jsx(Ua,{value:1,children:"Good"}),k.jsx(Ua,{value:-1,children:"Bad"})]})]})})}var I1={exports:{}};/**
|
|
498
|
+
* @license
|
|
499
|
+
* Lodash <https://lodash.com/>
|
|
500
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
501
|
+
* Released under MIT license <https://lodash.com/license>
|
|
502
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
503
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
504
|
+
*/I1.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__",c=500,f="__lodash_placeholder__",h=1,p=2,y=4,m=1,v=2,S=1,x=2,w=4,C=8,E=16,O=32,$=64,I=128,W=256,H=512,j=30,U="...",le=800,se=16,ie=1,Q=2,L=3,te=1/0,Z=9007199254740991,ee=17976931348623157e292,Y=0/0,M=4294967295,A=M-1,ne=M>>>1,oe=[["ary",I],["bind",S],["bindKey",x],["curry",C],["curryRight",E],["flip",H],["partial",O],["partialRight",$],["rearg",W]],ce="[object Arguments]",re="[object Array]",Se="[object AsyncFunction]",ke="[object Boolean]",Ce="[object Date]",Pe="[object DOMException]",Le="[object Error]",ze="[object Function]",We="[object GeneratorFunction]",qe="[object Map]",Ve="[object Number]",at="[object Null]",Ze="[object Object]",tt="[object Promise]",gt="[object Proxy]",ge="[object RegExp]",Te="[object Set]",Ee="[object String]",Ae="[object Symbol]",B="[object Undefined]",V="[object WeakMap]",he="[object WeakSet]",G="[object ArrayBuffer]",fe="[object DataView]",ae="[object Float32Array]",Re="[object Float64Array]",Ie="[object Int8Array]",$e="[object Int16Array]",dt="[object Int32Array]",ot="[object Uint8Array]",pe="[object Uint8ClampedArray]",me="[object Uint16Array]",_e="[object Uint32Array]",Ue=/\b__p \+= '';/g,Ke=/\b(__p \+=) '' \+/g,Ge=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ut=/&(?:amp|lt|gt|quot|#39);/g,st=/[&<>"']/g,nt=RegExp(ut.source),ft=RegExp(st.source),Ot=/<%-([\s\S]+?)%>/g,Zt=/<%([\s\S]+?)%>/g,Gt=/<%=([\s\S]+?)%>/g,Vt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,tr=/^\w*$/,vn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,br=/[\\^$.*+?()[\]{}|]/g,nr=RegExp(br.source),sr=/^\s+/,Ar=/\s/,Zr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,es=/\{\n\/\* \[wrapped with (.+)\] \*/,Jr=/,? & /,Or=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,qs=/[()=,{}\[\]\/\s]/,xn=/\\(\\)?/g,wn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Di=/\w*$/,qn=/^[-+]0x[0-9a-f]+$/i,Rt=/^0b[01]+$/i,au=/^\[object .+?Constructor\]$/,Pc=/^0o[0-7]+$/i,rt=/^(?:0|[1-9]\d*)$/,rr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,zo=/($^)/,su=/['\n\r\u2028\u2029\\]/g,jo="\\ud800-\\udfff",Uo="\\u0300-\\u036f",Yd="\\ufe20-\\ufe2f",Xd="\\u20d0-\\u20ff",Zd=Uo+Yd+Xd,Lc="\\u2700-\\u27bf",Jd="a-z\\xdf-\\xf6\\xf8-\\xff",to="\\xac\\xb1\\xd7\\xf7",Im="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Qd="\\u2000-\\u206f",Pm=" \\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",Fc="A-Z\\xc0-\\xd6\\xd8-\\xde",Lm="\\ufe0e\\ufe0f",Fm=to+Im+Qd+Pm,ep="['’]",Mc="["+jo+"]",tp="["+Fm+"]",lu="["+Zd+"]",np="\\d+",Mm="["+Lc+"]",rp="["+Jd+"]",ip="[^"+jo+Fm+np+Lc+Jd+Fc+"]",op="\\ud83c[\\udffb-\\udfff]",rw="(?:"+lu+"|"+op+")",Nm="[^"+jo+"]",ap="(?:\\ud83c[\\udde6-\\uddff]){2}",sp="[\\ud800-\\udbff][\\udc00-\\udfff]",nn="["+Fc+"]",lp="\\u200d",up="(?:"+rp+"|"+ip+")",Dr="(?:"+nn+"|"+ip+")",Ko="(?:"+ep+"(?:d|ll|m|re|s|t|ve))?",Gs="(?:"+ep+"(?:D|LL|M|RE|S|T|VE))?",cp=rw+"?",Ys="["+Lm+"]?",Bm="(?:"+lp+"(?:"+[Nm,ap,sp].join("|")+")"+Ys+cp+")*",fp="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",iw="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Nc=Ys+cp+Bm,Xs="(?:"+[Mm,ap,sp].join("|")+")"+Nc,zm="(?:"+[Nm+lu+"?",lu,ap,sp,Mc].join("|")+")",pa=RegExp(ep,"g"),Bc=RegExp(lu,"g"),ts=RegExp(op+"(?="+op+")|"+zm+Nc,"g"),zn=RegExp([nn+"?"+rp+"+"+Ko+"(?="+[tp,nn,"$"].join("|")+")",Dr+"+"+Gs+"(?="+[tp,nn+up,"$"].join("|")+")",nn+"?"+up+"+"+Ko,nn+"+"+Gs,iw,fp,np,Xs].join("|"),"g"),jm=RegExp("["+lp+jo+Zd+Lm+"]"),dp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Um=["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"],zc=-1,yn={};yn[ae]=yn[Re]=yn[Ie]=yn[$e]=yn[dt]=yn[ot]=yn[pe]=yn[me]=yn[_e]=!0,yn[ce]=yn[re]=yn[G]=yn[ke]=yn[fe]=yn[Ce]=yn[Le]=yn[ze]=yn[qe]=yn[Ve]=yn[Ze]=yn[ge]=yn[Te]=yn[Ee]=yn[V]=!1;var zt={};zt[ce]=zt[re]=zt[G]=zt[fe]=zt[ke]=zt[Ce]=zt[ae]=zt[Re]=zt[Ie]=zt[$e]=zt[dt]=zt[qe]=zt[Ve]=zt[Ze]=zt[ge]=zt[Te]=zt[Ee]=zt[Ae]=zt[ot]=zt[pe]=zt[me]=zt[_e]=!0,zt[Le]=zt[ze]=zt[V]=!1;var Zs={À:"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"},Js={"&":"&","<":"<",">":">",'"':""","'":"'"},Qs={"&":"&","<":"<",">":">",""":'"',"'":"'"},Km={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Wm=parseFloat,pp=parseInt,hp=typeof Ui=="object"&&Ui&&Ui.Object===Object&&Ui,ow=typeof self=="object"&&self&&self.Object===Object&&self,gr=hp||ow||Function("return this")(),uu=t&&!t.nodeType&&t,ns=uu&&!0&&e&&!e.nodeType&&e,gp=ns&&ns.exports===uu,mp=gp&&hp.process,Qr=function(){try{var X=ns&&ns.require&&ns.require("util").types;return X||mp&&mp.binding&&mp.binding("util")}catch{}}(),Vm=Qr&&Qr.isArrayBuffer,Hm=Qr&&Qr.isDate,rs=Qr&&Qr.isMap,cu=Qr&&Qr.isRegExp,vp=Qr&&Qr.isSet,jc=Qr&&Qr.isTypedArray;function It(X,be,ye){switch(ye.length){case 0:return X.call(be);case 1:return X.call(be,ye[0]);case 2:return X.call(be,ye[0],ye[1]);case 3:return X.call(be,ye[0],ye[1],ye[2])}return X.apply(be,ye)}function qm(X,be,ye,Ne){for(var Je=-1,mt=X==null?0:X.length;++Je<mt;){var on=X[Je];be(Ne,on,ye(on),X)}return Ne}function ei(X,be){for(var ye=-1,Ne=X==null?0:X.length;++ye<Ne&&be(X[ye],ye,X)!==!1;);return X}function Gm(X,be){for(var ye=X==null?0:X.length;ye--&&be(X[ye],ye,X)!==!1;);return X}function $i(X,be){for(var ye=-1,Ne=X==null?0:X.length;++ye<Ne;)if(!be(X[ye],ye,X))return!1;return!0}function no(X,be){for(var ye=-1,Ne=X==null?0:X.length,Je=0,mt=[];++ye<Ne;){var on=X[ye];be(on,ye,X)&&(mt[Je++]=on)}return mt}function fu(X,be){var ye=X==null?0:X.length;return!!ye&&ha(X,be,0)>-1}function Uc(X,be,ye){for(var Ne=-1,Je=X==null?0:X.length;++Ne<Je;)if(ye(be,X[Ne]))return!0;return!1}function Ut(X,be){for(var ye=-1,Ne=X==null?0:X.length,Je=Array(Ne);++ye<Ne;)Je[ye]=be(X[ye],ye,X);return Je}function _n(X,be){for(var ye=-1,Ne=be.length,Je=X.length;++ye<Ne;)X[Je+ye]=be[ye];return X}function el(X,be,ye,Ne){var Je=-1,mt=X==null?0:X.length;for(Ne&&mt&&(ye=X[++Je]);++Je<mt;)ye=be(ye,X[Je],Je,X);return ye}function Ym(X,be,ye,Ne){var Je=X==null?0:X.length;for(Ne&&Je&&(ye=X[--Je]);Je--;)ye=be(ye,X[Je],Je,X);return ye}function yp(X,be){for(var ye=-1,Ne=X==null?0:X.length;++ye<Ne;)if(be(X[ye],ye,X))return!0;return!1}var aw=ci("length");function Cn(X){return X.split("")}function bp(X){return X.match(Or)||[]}function xp(X,be,ye){var Ne;return ye(X,function(Je,mt,on){if(be(Je,mt,on))return Ne=mt,!1}),Ne}function xr(X,be,ye,Ne){for(var Je=X.length,mt=ye+(Ne?1:-1);Ne?mt--:++mt<Je;)if(be(X[mt],mt,X))return mt;return-1}function ha(X,be,ye){return be===be?uw(X,be,ye):xr(X,wp,ye)}function Xm(X,be,ye,Ne){for(var Je=ye-1,mt=X.length;++Je<mt;)if(Ne(X[Je],be))return Je;return-1}function wp(X){return X!==X}function Kc(X,be){var ye=X==null?0:X.length;return ye?Vc(X,be)/ye:Y}function ci(X){return function(be){return be==null?n:be[X]}}function Wc(X){return function(be){return X==null?n:X[be]}}function du(X,be,ye,Ne,Je){return Je(X,function(mt,on,Kt){ye=Ne?(Ne=!1,mt):be(ye,mt,on,Kt)}),ye}function Zm(X,be){var ye=X.length;for(X.sort(be);ye--;)X[ye]=X[ye].value;return X}function Vc(X,be){for(var ye,Ne=-1,Je=X.length;++Ne<Je;){var mt=be(X[Ne]);mt!==n&&(ye=ye===n?mt:ye+mt)}return ye}function pu(X,be){for(var ye=-1,Ne=Array(X);++ye<X;)Ne[ye]=be(ye);return Ne}function Gn(X,be){return Ut(be,function(ye){return[ye,X[ye]]})}function Sp(X){return X&&X.slice(0,P(X)+1).replace(sr,"")}function jr(X){return function(be){return X(be)}}function ga(X,be){return Ut(be,function(ye){return X[ye]})}function Wo(X,be){return X.has(be)}function _p(X,be){for(var ye=-1,Ne=X.length;++ye<Ne&&ha(be,X[ye],0)>-1;);return ye}function Hc(X,be){for(var ye=X.length;ye--&&ha(be,X[ye],0)>-1;);return ye}function ro(X,be){for(var ye=X.length,Ne=0;ye--;)X[ye]===be&&++Ne;return Ne}var wr=Wc(Zs),qc=Wc(Js);function sw(X){return"\\"+Km[X]}function lw(X,be){return X==null?n:X[be]}function Vo(X){return jm.test(X)}function Jm(X){return dp.test(X)}function Qm(X){for(var be,ye=[];!(be=X.next()).done;)ye.push(be.value);return ye}function Cp(X){var be=-1,ye=Array(X.size);return X.forEach(function(Ne,Je){ye[++be]=[Je,Ne]}),ye}function Ep(X,be){return function(ye){return X(be(ye))}}function ma(X,be){for(var ye=-1,Ne=X.length,Je=0,mt=[];++ye<Ne;){var on=X[ye];(on===be||on===f)&&(X[ye]=f,mt[Je++]=ye)}return mt}function Gc(X){var be=-1,ye=Array(X.size);return X.forEach(function(Ne){ye[++be]=Ne}),ye}function ev(X){var be=-1,ye=Array(X.size);return X.forEach(function(Ne){ye[++be]=[Ne,Ne]}),ye}function uw(X,be,ye){for(var Ne=ye-1,Je=X.length;++Ne<Je;)if(X[Ne]===be)return Ne;return-1}function g(X,be,ye){for(var Ne=ye+1;Ne--;)if(X[Ne]===be)return Ne;return Ne}function _(X){return Vo(X)?J(X):aw(X)}function D(X){return Vo(X)?de(X):Cn(X)}function P(X){for(var be=X.length;be--&&Ar.test(X.charAt(be)););return be}var N=Wc(Qs);function J(X){for(var be=ts.lastIndex=0;ts.test(X);)++be;return be}function de(X){return X.match(ts)||[]}function xe(X){return X.match(zn)||[]}var Oe=function X(be){be=be==null?gr:De.defaults(gr.Object(),be,De.pick(gr,Um));var ye=be.Array,Ne=be.Date,Je=be.Error,mt=be.Function,on=be.Math,Kt=be.Object,tl=be.RegExp,VK=be.String,io=be.TypeError,tv=ye.prototype,HK=mt.prototype,Yc=Kt.prototype,nv=be["__core-js_shared__"],rv=HK.toString,pn=Yc.hasOwnProperty,qK=0,T2=function(){var u=/[^.]+$/.exec(nv&&nv.keys&&nv.keys.IE_PROTO||"");return u?"Symbol(src)_1."+u:""}(),iv=Yc.toString,GK=rv.call(Kt),YK=gr._,XK=tl("^"+rv.call(pn).replace(br,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ov=gp?be.Buffer:n,nl=be.Symbol,av=be.Uint8Array,R2=ov?ov.allocUnsafe:n,sv=Ep(Kt.getPrototypeOf,Kt),A2=Kt.create,O2=Yc.propertyIsEnumerable,lv=tv.splice,D2=nl?nl.isConcatSpreadable:n,kp=nl?nl.iterator:n,hu=nl?nl.toStringTag:n,uv=function(){try{var u=bu(Kt,"defineProperty");return u({},"",{}),u}catch{}}(),ZK=be.clearTimeout!==gr.clearTimeout&&be.clearTimeout,JK=Ne&&Ne.now!==gr.Date.now&&Ne.now,QK=be.setTimeout!==gr.setTimeout&&be.setTimeout,cv=on.ceil,fv=on.floor,cw=Kt.getOwnPropertySymbols,eW=ov?ov.isBuffer:n,$2=be.isFinite,tW=tv.join,nW=Ep(Kt.keys,Kt),mr=on.max,Ur=on.min,rW=Ne.now,iW=be.parseInt,I2=on.random,oW=tv.reverse,fw=bu(be,"DataView"),Tp=bu(be,"Map"),dw=bu(be,"Promise"),Xc=bu(be,"Set"),Rp=bu(be,"WeakMap"),Ap=bu(Kt,"create"),dv=Rp&&new Rp,Zc={},aW=xu(fw),sW=xu(Tp),lW=xu(dw),uW=xu(Xc),cW=xu(Rp),pv=nl?nl.prototype:n,Op=pv?pv.valueOf:n,P2=pv?pv.toString:n;function K(u){if(Yn(u)&&!Dt(u)&&!(u instanceof Ht)){if(u instanceof oo)return u;if(pn.call(u,"__wrapped__"))return LO(u)}return new oo(u)}var Jc=function(){function u(){}return function(d){if(!jn(d))return{};if(A2)return A2(d);u.prototype=d;var b=new u;return u.prototype=n,b}}();function hv(){}function oo(u,d){this.__wrapped__=u,this.__actions__=[],this.__chain__=!!d,this.__index__=0,this.__values__=n}K.templateSettings={escape:Ot,evaluate:Zt,interpolate:Gt,variable:"",imports:{_:K}},K.prototype=hv.prototype,K.prototype.constructor=K,oo.prototype=Jc(hv.prototype),oo.prototype.constructor=oo;function Ht(u){this.__wrapped__=u,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=M,this.__views__=[]}function fW(){var u=new Ht(this.__wrapped__);return u.__actions__=fi(this.__actions__),u.__dir__=this.__dir__,u.__filtered__=this.__filtered__,u.__iteratees__=fi(this.__iteratees__),u.__takeCount__=this.__takeCount__,u.__views__=fi(this.__views__),u}function dW(){if(this.__filtered__){var u=new Ht(this);u.__dir__=-1,u.__filtered__=!0}else u=this.clone(),u.__dir__*=-1;return u}function pW(){var u=this.__wrapped__.value(),d=this.__dir__,b=Dt(u),R=d<0,F=b?u.length:0,q=EV(0,F,this.__views__),ue=q.start,ve=q.end,we=ve-ue,Fe=R?ve:ue-1,Me=this.__iteratees__,He=Me.length,it=0,ht=Ur(we,this.__takeCount__);if(!b||!R&&F==we&&ht==we)return iO(u,this.__actions__);var Et=[];e:for(;we--&&it<ht;){Fe+=d;for(var Mt=-1,kt=u[Fe];++Mt<He;){var Wt=Me[Mt],Yt=Wt.iteratee,Li=Wt.type,ri=Yt(kt);if(Li==Q)kt=ri;else if(!ri){if(Li==ie)continue e;break e}}Et[it++]=kt}return Et}Ht.prototype=Jc(hv.prototype),Ht.prototype.constructor=Ht;function gu(u){var d=-1,b=u==null?0:u.length;for(this.clear();++d<b;){var R=u[d];this.set(R[0],R[1])}}function hW(){this.__data__=Ap?Ap(null):{},this.size=0}function gW(u){var d=this.has(u)&&delete this.__data__[u];return this.size-=d?1:0,d}function mW(u){var d=this.__data__;if(Ap){var b=d[u];return b===l?n:b}return pn.call(d,u)?d[u]:n}function vW(u){var d=this.__data__;return Ap?d[u]!==n:pn.call(d,u)}function yW(u,d){var b=this.__data__;return this.size+=this.has(u)?0:1,b[u]=Ap&&d===n?l:d,this}gu.prototype.clear=hW,gu.prototype.delete=gW,gu.prototype.get=mW,gu.prototype.has=vW,gu.prototype.set=yW;function is(u){var d=-1,b=u==null?0:u.length;for(this.clear();++d<b;){var R=u[d];this.set(R[0],R[1])}}function bW(){this.__data__=[],this.size=0}function xW(u){var d=this.__data__,b=gv(d,u);if(b<0)return!1;var R=d.length-1;return b==R?d.pop():lv.call(d,b,1),--this.size,!0}function wW(u){var d=this.__data__,b=gv(d,u);return b<0?n:d[b][1]}function SW(u){return gv(this.__data__,u)>-1}function _W(u,d){var b=this.__data__,R=gv(b,u);return R<0?(++this.size,b.push([u,d])):b[R][1]=d,this}is.prototype.clear=bW,is.prototype.delete=xW,is.prototype.get=wW,is.prototype.has=SW,is.prototype.set=_W;function os(u){var d=-1,b=u==null?0:u.length;for(this.clear();++d<b;){var R=u[d];this.set(R[0],R[1])}}function CW(){this.size=0,this.__data__={hash:new gu,map:new(Tp||is),string:new gu}}function EW(u){var d=Tv(this,u).delete(u);return this.size-=d?1:0,d}function kW(u){return Tv(this,u).get(u)}function TW(u){return Tv(this,u).has(u)}function RW(u,d){var b=Tv(this,u),R=b.size;return b.set(u,d),this.size+=b.size==R?0:1,this}os.prototype.clear=CW,os.prototype.delete=EW,os.prototype.get=kW,os.prototype.has=TW,os.prototype.set=RW;function mu(u){var d=-1,b=u==null?0:u.length;for(this.__data__=new os;++d<b;)this.add(u[d])}function AW(u){return this.__data__.set(u,l),this}function OW(u){return this.__data__.has(u)}mu.prototype.add=mu.prototype.push=AW,mu.prototype.has=OW;function Ho(u){var d=this.__data__=new is(u);this.size=d.size}function DW(){this.__data__=new is,this.size=0}function $W(u){var d=this.__data__,b=d.delete(u);return this.size=d.size,b}function IW(u){return this.__data__.get(u)}function PW(u){return this.__data__.has(u)}function LW(u,d){var b=this.__data__;if(b instanceof is){var R=b.__data__;if(!Tp||R.length<i-1)return R.push([u,d]),this.size=++b.size,this;b=this.__data__=new os(R)}return b.set(u,d),this.size=b.size,this}Ho.prototype.clear=DW,Ho.prototype.delete=$W,Ho.prototype.get=IW,Ho.prototype.has=PW,Ho.prototype.set=LW;function L2(u,d){var b=Dt(u),R=!b&&wu(u),F=!b&&!R&&sl(u),q=!b&&!R&&!F&&nf(u),ue=b||R||F||q,ve=ue?pu(u.length,VK):[],we=ve.length;for(var Fe in u)(d||pn.call(u,Fe))&&!(ue&&(Fe=="length"||F&&(Fe=="offset"||Fe=="parent")||q&&(Fe=="buffer"||Fe=="byteLength"||Fe=="byteOffset")||us(Fe,we)))&&ve.push(Fe);return ve}function F2(u){var d=u.length;return d?u[_w(0,d-1)]:n}function FW(u,d){return Rv(fi(u),vu(d,0,u.length))}function MW(u){return Rv(fi(u))}function pw(u,d,b){(b!==n&&!qo(u[d],b)||b===n&&!(d in u))&&as(u,d,b)}function Dp(u,d,b){var R=u[d];(!(pn.call(u,d)&&qo(R,b))||b===n&&!(d in u))&&as(u,d,b)}function gv(u,d){for(var b=u.length;b--;)if(qo(u[b][0],d))return b;return-1}function NW(u,d,b,R){return rl(u,function(F,q,ue){d(R,F,b(F),ue)}),R}function M2(u,d){return u&&ya(d,Sr(d),u)}function BW(u,d){return u&&ya(d,pi(d),u)}function as(u,d,b){d=="__proto__"&&uv?uv(u,d,{configurable:!0,enumerable:!0,value:b,writable:!0}):u[d]=b}function hw(u,d){for(var b=-1,R=d.length,F=ye(R),q=u==null;++b<R;)F[b]=q?n:Gw(u,d[b]);return F}function vu(u,d,b){return u===u&&(b!==n&&(u=u<=b?u:b),d!==n&&(u=u>=d?u:d)),u}function ao(u,d,b,R,F,q){var ue,ve=d&h,we=d&p,Fe=d&y;if(b&&(ue=F?b(u,R,F,q):b(u)),ue!==n)return ue;if(!jn(u))return u;var Me=Dt(u);if(Me){if(ue=TV(u),!ve)return fi(u,ue)}else{var He=Kr(u),it=He==ze||He==We;if(sl(u))return sO(u,ve);if(He==Ze||He==ce||it&&!F){if(ue=we||it?{}:kO(u),!ve)return we?mV(u,BW(ue,u)):gV(u,M2(ue,u))}else{if(!zt[He])return F?u:{};ue=RV(u,He,ve)}}q||(q=new Ho);var ht=q.get(u);if(ht)return ht;q.set(u,ue),tD(u)?u.forEach(function(kt){ue.add(ao(kt,d,b,kt,u,q))}):QO(u)&&u.forEach(function(kt,Wt){ue.set(Wt,ao(kt,d,b,Wt,u,q))});var Et=Fe?we?Pw:Iw:we?pi:Sr,Mt=Me?n:Et(u);return ei(Mt||u,function(kt,Wt){Mt&&(Wt=kt,kt=u[Wt]),Dp(ue,Wt,ao(kt,d,b,Wt,u,q))}),ue}function zW(u){var d=Sr(u);return function(b){return N2(b,u,d)}}function N2(u,d,b){var R=b.length;if(u==null)return!R;for(u=Kt(u);R--;){var F=b[R],q=d[F],ue=u[F];if(ue===n&&!(F in u)||!q(ue))return!1}return!0}function B2(u,d,b){if(typeof u!="function")throw new io(a);return Np(function(){u.apply(n,b)},d)}function $p(u,d,b,R){var F=-1,q=fu,ue=!0,ve=u.length,we=[],Fe=d.length;if(!ve)return we;b&&(d=Ut(d,jr(b))),R?(q=Uc,ue=!1):d.length>=i&&(q=Wo,ue=!1,d=new mu(d));e:for(;++F<ve;){var Me=u[F],He=b==null?Me:b(Me);if(Me=R||Me!==0?Me:0,ue&&He===He){for(var it=Fe;it--;)if(d[it]===He)continue e;we.push(Me)}else q(d,He,R)||we.push(Me)}return we}var rl=dO(va),z2=dO(mw,!0);function jW(u,d){var b=!0;return rl(u,function(R,F,q){return b=!!d(R,F,q),b}),b}function mv(u,d,b){for(var R=-1,F=u.length;++R<F;){var q=u[R],ue=d(q);if(ue!=null&&(ve===n?ue===ue&&!Pi(ue):b(ue,ve)))var ve=ue,we=q}return we}function UW(u,d,b,R){var F=u.length;for(b=Pt(b),b<0&&(b=-b>F?0:F+b),R=R===n||R>F?F:Pt(R),R<0&&(R+=F),R=b>R?0:rD(R);b<R;)u[b++]=d;return u}function j2(u,d){var b=[];return rl(u,function(R,F,q){d(R,F,q)&&b.push(R)}),b}function $r(u,d,b,R,F){var q=-1,ue=u.length;for(b||(b=OV),F||(F=[]);++q<ue;){var ve=u[q];d>0&&b(ve)?d>1?$r(ve,d-1,b,R,F):_n(F,ve):R||(F[F.length]=ve)}return F}var gw=pO(),U2=pO(!0);function va(u,d){return u&&gw(u,d,Sr)}function mw(u,d){return u&&U2(u,d,Sr)}function vv(u,d){return no(d,function(b){return cs(u[b])})}function yu(u,d){d=ol(d,u);for(var b=0,R=d.length;u!=null&&b<R;)u=u[ba(d[b++])];return b&&b==R?u:n}function K2(u,d,b){var R=d(u);return Dt(u)?R:_n(R,b(u))}function ti(u){return u==null?u===n?B:at:hu&&hu in Kt(u)?CV(u):MV(u)}function vw(u,d){return u>d}function KW(u,d){return u!=null&&pn.call(u,d)}function WW(u,d){return u!=null&&d in Kt(u)}function VW(u,d,b){return u>=Ur(d,b)&&u<mr(d,b)}function yw(u,d,b){for(var R=b?Uc:fu,F=u[0].length,q=u.length,ue=q,ve=ye(q),we=1/0,Fe=[];ue--;){var Me=u[ue];ue&&d&&(Me=Ut(Me,jr(d))),we=Ur(Me.length,we),ve[ue]=!b&&(d||F>=120&&Me.length>=120)?new mu(ue&&Me):n}Me=u[0];var He=-1,it=ve[0];e:for(;++He<F&&Fe.length<we;){var ht=Me[He],Et=d?d(ht):ht;if(ht=b||ht!==0?ht:0,!(it?Wo(it,Et):R(Fe,Et,b))){for(ue=q;--ue;){var Mt=ve[ue];if(!(Mt?Wo(Mt,Et):R(u[ue],Et,b)))continue e}it&&it.push(Et),Fe.push(ht)}}return Fe}function HW(u,d,b,R){return va(u,function(F,q,ue){d(R,b(F),q,ue)}),R}function Ip(u,d,b){d=ol(d,u),u=OO(u,d);var R=u==null?u:u[ba(lo(d))];return R==null?n:It(R,u,b)}function W2(u){return Yn(u)&&ti(u)==ce}function qW(u){return Yn(u)&&ti(u)==G}function GW(u){return Yn(u)&&ti(u)==Ce}function Pp(u,d,b,R,F){return u===d?!0:u==null||d==null||!Yn(u)&&!Yn(d)?u!==u&&d!==d:YW(u,d,b,R,Pp,F)}function YW(u,d,b,R,F,q){var ue=Dt(u),ve=Dt(d),we=ue?re:Kr(u),Fe=ve?re:Kr(d);we=we==ce?Ze:we,Fe=Fe==ce?Ze:Fe;var Me=we==Ze,He=Fe==Ze,it=we==Fe;if(it&&sl(u)){if(!sl(d))return!1;ue=!0,Me=!1}if(it&&!Me)return q||(q=new Ho),ue||nf(u)?_O(u,d,b,R,F,q):SV(u,d,we,b,R,F,q);if(!(b&m)){var ht=Me&&pn.call(u,"__wrapped__"),Et=He&&pn.call(d,"__wrapped__");if(ht||Et){var Mt=ht?u.value():u,kt=Et?d.value():d;return q||(q=new Ho),F(Mt,kt,b,R,q)}}return it?(q||(q=new Ho),_V(u,d,b,R,F,q)):!1}function XW(u){return Yn(u)&&Kr(u)==qe}function bw(u,d,b,R){var F=b.length,q=F,ue=!R;if(u==null)return!q;for(u=Kt(u);F--;){var ve=b[F];if(ue&&ve[2]?ve[1]!==u[ve[0]]:!(ve[0]in u))return!1}for(;++F<q;){ve=b[F];var we=ve[0],Fe=u[we],Me=ve[1];if(ue&&ve[2]){if(Fe===n&&!(we in u))return!1}else{var He=new Ho;if(R)var it=R(Fe,Me,we,u,d,He);if(!(it===n?Pp(Me,Fe,m|v,R,He):it))return!1}}return!0}function V2(u){if(!jn(u)||$V(u))return!1;var d=cs(u)?XK:au;return d.test(xu(u))}function ZW(u){return Yn(u)&&ti(u)==ge}function JW(u){return Yn(u)&&Kr(u)==Te}function QW(u){return Yn(u)&&Pv(u.length)&&!!yn[ti(u)]}function H2(u){return typeof u=="function"?u:u==null?hi:typeof u=="object"?Dt(u)?Y2(u[0],u[1]):G2(u):hD(u)}function xw(u){if(!Mp(u))return nW(u);var d=[];for(var b in Kt(u))pn.call(u,b)&&b!="constructor"&&d.push(b);return d}function eV(u){if(!jn(u))return FV(u);var d=Mp(u),b=[];for(var R in u)R=="constructor"&&(d||!pn.call(u,R))||b.push(R);return b}function ww(u,d){return u<d}function q2(u,d){var b=-1,R=di(u)?ye(u.length):[];return rl(u,function(F,q,ue){R[++b]=d(F,q,ue)}),R}function G2(u){var d=Fw(u);return d.length==1&&d[0][2]?RO(d[0][0],d[0][1]):function(b){return b===u||bw(b,u,d)}}function Y2(u,d){return Nw(u)&&TO(d)?RO(ba(u),d):function(b){var R=Gw(b,u);return R===n&&R===d?Yw(b,u):Pp(d,R,m|v)}}function yv(u,d,b,R,F){u!==d&&gw(d,function(q,ue){if(F||(F=new Ho),jn(q))tV(u,d,ue,b,yv,R,F);else{var ve=R?R(zw(u,ue),q,ue+"",u,d,F):n;ve===n&&(ve=q),pw(u,ue,ve)}},pi)}function tV(u,d,b,R,F,q,ue){var ve=zw(u,b),we=zw(d,b),Fe=ue.get(we);if(Fe){pw(u,b,Fe);return}var Me=q?q(ve,we,b+"",u,d,ue):n,He=Me===n;if(He){var it=Dt(we),ht=!it&&sl(we),Et=!it&&!ht&&nf(we);Me=we,it||ht||Et?Dt(ve)?Me=ve:ir(ve)?Me=fi(ve):ht?(He=!1,Me=sO(we,!0)):Et?(He=!1,Me=lO(we,!0)):Me=[]:Bp(we)||wu(we)?(Me=ve,wu(ve)?Me=iD(ve):(!jn(ve)||cs(ve))&&(Me=kO(we))):He=!1}He&&(ue.set(we,Me),F(Me,we,R,q,ue),ue.delete(we)),pw(u,b,Me)}function X2(u,d){var b=u.length;if(b)return d+=d<0?b:0,us(d,b)?u[d]:n}function Z2(u,d,b){d.length?d=Ut(d,function(q){return Dt(q)?function(ue){return yu(ue,q.length===1?q[0]:q)}:q}):d=[hi];var R=-1;d=Ut(d,jr(St()));var F=q2(u,function(q,ue,ve){var we=Ut(d,function(Fe){return Fe(q)});return{criteria:we,index:++R,value:q}});return Zm(F,function(q,ue){return hV(q,ue,b)})}function nV(u,d){return J2(u,d,function(b,R){return Yw(u,R)})}function J2(u,d,b){for(var R=-1,F=d.length,q={};++R<F;){var ue=d[R],ve=yu(u,ue);b(ve,ue)&&Lp(q,ol(ue,u),ve)}return q}function rV(u){return function(d){return yu(d,u)}}function Sw(u,d,b,R){var F=R?Xm:ha,q=-1,ue=d.length,ve=u;for(u===d&&(d=fi(d)),b&&(ve=Ut(u,jr(b)));++q<ue;)for(var we=0,Fe=d[q],Me=b?b(Fe):Fe;(we=F(ve,Me,we,R))>-1;)ve!==u&&lv.call(ve,we,1),lv.call(u,we,1);return u}function Q2(u,d){for(var b=u?d.length:0,R=b-1;b--;){var F=d[b];if(b==R||F!==q){var q=F;us(F)?lv.call(u,F,1):kw(u,F)}}return u}function _w(u,d){return u+fv(I2()*(d-u+1))}function iV(u,d,b,R){for(var F=-1,q=mr(cv((d-u)/(b||1)),0),ue=ye(q);q--;)ue[R?q:++F]=u,u+=b;return ue}function Cw(u,d){var b="";if(!u||d<1||d>Z)return b;do d%2&&(b+=u),d=fv(d/2),d&&(u+=u);while(d);return b}function jt(u,d){return jw(AO(u,d,hi),u+"")}function oV(u){return F2(rf(u))}function aV(u,d){var b=rf(u);return Rv(b,vu(d,0,b.length))}function Lp(u,d,b,R){if(!jn(u))return u;d=ol(d,u);for(var F=-1,q=d.length,ue=q-1,ve=u;ve!=null&&++F<q;){var we=ba(d[F]),Fe=b;if(we==="__proto__"||we==="constructor"||we==="prototype")return u;if(F!=ue){var Me=ve[we];Fe=R?R(Me,we,ve):n,Fe===n&&(Fe=jn(Me)?Me:us(d[F+1])?[]:{})}Dp(ve,we,Fe),ve=ve[we]}return u}var eO=dv?function(u,d){return dv.set(u,d),u}:hi,sV=uv?function(u,d){return uv(u,"toString",{configurable:!0,enumerable:!1,value:Zw(d),writable:!0})}:hi;function lV(u){return Rv(rf(u))}function so(u,d,b){var R=-1,F=u.length;d<0&&(d=-d>F?0:F+d),b=b>F?F:b,b<0&&(b+=F),F=d>b?0:b-d>>>0,d>>>=0;for(var q=ye(F);++R<F;)q[R]=u[R+d];return q}function uV(u,d){var b;return rl(u,function(R,F,q){return b=d(R,F,q),!b}),!!b}function bv(u,d,b){var R=0,F=u==null?R:u.length;if(typeof d=="number"&&d===d&&F<=ne){for(;R<F;){var q=R+F>>>1,ue=u[q];ue!==null&&!Pi(ue)&&(b?ue<=d:ue<d)?R=q+1:F=q}return F}return Ew(u,d,hi,b)}function Ew(u,d,b,R){var F=0,q=u==null?0:u.length;if(q===0)return 0;d=b(d);for(var ue=d!==d,ve=d===null,we=Pi(d),Fe=d===n;F<q;){var Me=fv((F+q)/2),He=b(u[Me]),it=He!==n,ht=He===null,Et=He===He,Mt=Pi(He);if(ue)var kt=R||Et;else Fe?kt=Et&&(R||it):ve?kt=Et&&it&&(R||!ht):we?kt=Et&&it&&!ht&&(R||!Mt):ht||Mt?kt=!1:kt=R?He<=d:He<d;kt?F=Me+1:q=Me}return Ur(q,A)}function tO(u,d){for(var b=-1,R=u.length,F=0,q=[];++b<R;){var ue=u[b],ve=d?d(ue):ue;if(!b||!qo(ve,we)){var we=ve;q[F++]=ue===0?0:ue}}return q}function nO(u){return typeof u=="number"?u:Pi(u)?Y:+u}function Ii(u){if(typeof u=="string")return u;if(Dt(u))return Ut(u,Ii)+"";if(Pi(u))return P2?P2.call(u):"";var d=u+"";return d=="0"&&1/u==-te?"-0":d}function il(u,d,b){var R=-1,F=fu,q=u.length,ue=!0,ve=[],we=ve;if(b)ue=!1,F=Uc;else if(q>=i){var Fe=d?null:xV(u);if(Fe)return Gc(Fe);ue=!1,F=Wo,we=new mu}else we=d?[]:ve;e:for(;++R<q;){var Me=u[R],He=d?d(Me):Me;if(Me=b||Me!==0?Me:0,ue&&He===He){for(var it=we.length;it--;)if(we[it]===He)continue e;d&&we.push(He),ve.push(Me)}else F(we,He,b)||(we!==ve&&we.push(He),ve.push(Me))}return ve}function kw(u,d){return d=ol(d,u),u=OO(u,d),u==null||delete u[ba(lo(d))]}function rO(u,d,b,R){return Lp(u,d,b(yu(u,d)),R)}function xv(u,d,b,R){for(var F=u.length,q=R?F:-1;(R?q--:++q<F)&&d(u[q],q,u););return b?so(u,R?0:q,R?q+1:F):so(u,R?q+1:0,R?F:q)}function iO(u,d){var b=u;return b instanceof Ht&&(b=b.value()),el(d,function(R,F){return F.func.apply(F.thisArg,_n([R],F.args))},b)}function Tw(u,d,b){var R=u.length;if(R<2)return R?il(u[0]):[];for(var F=-1,q=ye(R);++F<R;)for(var ue=u[F],ve=-1;++ve<R;)ve!=F&&(q[F]=$p(q[F]||ue,u[ve],d,b));return il($r(q,1),d,b)}function oO(u,d,b){for(var R=-1,F=u.length,q=d.length,ue={};++R<F;){var ve=R<q?d[R]:n;b(ue,u[R],ve)}return ue}function Rw(u){return ir(u)?u:[]}function Aw(u){return typeof u=="function"?u:hi}function ol(u,d){return Dt(u)?u:Nw(u,d)?[u]:PO(un(u))}var cV=jt;function al(u,d,b){var R=u.length;return b=b===n?R:b,!d&&b>=R?u:so(u,d,b)}var aO=ZK||function(u){return gr.clearTimeout(u)};function sO(u,d){if(d)return u.slice();var b=u.length,R=R2?R2(b):new u.constructor(b);return u.copy(R),R}function Ow(u){var d=new u.constructor(u.byteLength);return new av(d).set(new av(u)),d}function fV(u,d){var b=d?Ow(u.buffer):u.buffer;return new u.constructor(b,u.byteOffset,u.byteLength)}function dV(u){var d=new u.constructor(u.source,Di.exec(u));return d.lastIndex=u.lastIndex,d}function pV(u){return Op?Kt(Op.call(u)):{}}function lO(u,d){var b=d?Ow(u.buffer):u.buffer;return new u.constructor(b,u.byteOffset,u.length)}function uO(u,d){if(u!==d){var b=u!==n,R=u===null,F=u===u,q=Pi(u),ue=d!==n,ve=d===null,we=d===d,Fe=Pi(d);if(!ve&&!Fe&&!q&&u>d||q&&ue&&we&&!ve&&!Fe||R&&ue&&we||!b&&we||!F)return 1;if(!R&&!q&&!Fe&&u<d||Fe&&b&&F&&!R&&!q||ve&&b&&F||!ue&&F||!we)return-1}return 0}function hV(u,d,b){for(var R=-1,F=u.criteria,q=d.criteria,ue=F.length,ve=b.length;++R<ue;){var we=uO(F[R],q[R]);if(we){if(R>=ve)return we;var Fe=b[R];return we*(Fe=="desc"?-1:1)}}return u.index-d.index}function cO(u,d,b,R){for(var F=-1,q=u.length,ue=b.length,ve=-1,we=d.length,Fe=mr(q-ue,0),Me=ye(we+Fe),He=!R;++ve<we;)Me[ve]=d[ve];for(;++F<ue;)(He||F<q)&&(Me[b[F]]=u[F]);for(;Fe--;)Me[ve++]=u[F++];return Me}function fO(u,d,b,R){for(var F=-1,q=u.length,ue=-1,ve=b.length,we=-1,Fe=d.length,Me=mr(q-ve,0),He=ye(Me+Fe),it=!R;++F<Me;)He[F]=u[F];for(var ht=F;++we<Fe;)He[ht+we]=d[we];for(;++ue<ve;)(it||F<q)&&(He[ht+b[ue]]=u[F++]);return He}function fi(u,d){var b=-1,R=u.length;for(d||(d=ye(R));++b<R;)d[b]=u[b];return d}function ya(u,d,b,R){var F=!b;b||(b={});for(var q=-1,ue=d.length;++q<ue;){var ve=d[q],we=R?R(b[ve],u[ve],ve,b,u):n;we===n&&(we=u[ve]),F?as(b,ve,we):Dp(b,ve,we)}return b}function gV(u,d){return ya(u,Mw(u),d)}function mV(u,d){return ya(u,CO(u),d)}function wv(u,d){return function(b,R){var F=Dt(b)?qm:NW,q=d?d():{};return F(b,u,St(R,2),q)}}function Qc(u){return jt(function(d,b){var R=-1,F=b.length,q=F>1?b[F-1]:n,ue=F>2?b[2]:n;for(q=u.length>3&&typeof q=="function"?(F--,q):n,ue&&ni(b[0],b[1],ue)&&(q=F<3?n:q,F=1),d=Kt(d);++R<F;){var ve=b[R];ve&&u(d,ve,R,q)}return d})}function dO(u,d){return function(b,R){if(b==null)return b;if(!di(b))return u(b,R);for(var F=b.length,q=d?F:-1,ue=Kt(b);(d?q--:++q<F)&&R(ue[q],q,ue)!==!1;);return b}}function pO(u){return function(d,b,R){for(var F=-1,q=Kt(d),ue=R(d),ve=ue.length;ve--;){var we=ue[u?ve:++F];if(b(q[we],we,q)===!1)break}return d}}function vV(u,d,b){var R=d&S,F=Fp(u);function q(){var ue=this&&this!==gr&&this instanceof q?F:u;return ue.apply(R?b:this,arguments)}return q}function hO(u){return function(d){d=un(d);var b=Vo(d)?D(d):n,R=b?b[0]:d.charAt(0),F=b?al(b,1).join(""):d.slice(1);return R[u]()+F}}function ef(u){return function(d){return el(dD(fD(d).replace(pa,"")),u,"")}}function Fp(u){return function(){var d=arguments;switch(d.length){case 0:return new u;case 1:return new u(d[0]);case 2:return new u(d[0],d[1]);case 3:return new u(d[0],d[1],d[2]);case 4:return new u(d[0],d[1],d[2],d[3]);case 5:return new u(d[0],d[1],d[2],d[3],d[4]);case 6:return new u(d[0],d[1],d[2],d[3],d[4],d[5]);case 7:return new u(d[0],d[1],d[2],d[3],d[4],d[5],d[6])}var b=Jc(u.prototype),R=u.apply(b,d);return jn(R)?R:b}}function yV(u,d,b){var R=Fp(u);function F(){for(var q=arguments.length,ue=ye(q),ve=q,we=tf(F);ve--;)ue[ve]=arguments[ve];var Fe=q<3&&ue[0]!==we&&ue[q-1]!==we?[]:ma(ue,we);if(q-=Fe.length,q<b)return bO(u,d,Sv,F.placeholder,n,ue,Fe,n,n,b-q);var Me=this&&this!==gr&&this instanceof F?R:u;return It(Me,this,ue)}return F}function gO(u){return function(d,b,R){var F=Kt(d);if(!di(d)){var q=St(b,3);d=Sr(d),b=function(ve){return q(F[ve],ve,F)}}var ue=u(d,b,R);return ue>-1?F[q?d[ue]:ue]:n}}function mO(u){return ls(function(d){var b=d.length,R=b,F=oo.prototype.thru;for(u&&d.reverse();R--;){var q=d[R];if(typeof q!="function")throw new io(a);if(F&&!ue&&kv(q)=="wrapper")var ue=new oo([],!0)}for(R=ue?R:b;++R<b;){q=d[R];var ve=kv(q),we=ve=="wrapper"?Lw(q):n;we&&Bw(we[0])&&we[1]==(I|C|O|W)&&!we[4].length&&we[9]==1?ue=ue[kv(we[0])].apply(ue,we[3]):ue=q.length==1&&Bw(q)?ue[ve]():ue.thru(q)}return function(){var Fe=arguments,Me=Fe[0];if(ue&&Fe.length==1&&Dt(Me))return ue.plant(Me).value();for(var He=0,it=b?d[He].apply(this,Fe):Me;++He<b;)it=d[He].call(this,it);return it}})}function Sv(u,d,b,R,F,q,ue,ve,we,Fe){var Me=d&I,He=d&S,it=d&x,ht=d&(C|E),Et=d&H,Mt=it?n:Fp(u);function kt(){for(var Wt=arguments.length,Yt=ye(Wt),Li=Wt;Li--;)Yt[Li]=arguments[Li];if(ht)var ri=tf(kt),Fi=ro(Yt,ri);if(R&&(Yt=cO(Yt,R,F,ht)),q&&(Yt=fO(Yt,q,ue,ht)),Wt-=Fi,ht&&Wt<Fe){var or=ma(Yt,ri);return bO(u,d,Sv,kt.placeholder,b,Yt,or,ve,we,Fe-Wt)}var Go=He?b:this,ds=it?Go[u]:u;return Wt=Yt.length,ve?Yt=NV(Yt,ve):Et&&Wt>1&&Yt.reverse(),Me&&we<Wt&&(Yt.length=we),this&&this!==gr&&this instanceof kt&&(ds=Mt||Fp(ds)),ds.apply(Go,Yt)}return kt}function vO(u,d){return function(b,R){return HW(b,u,d(R),{})}}function _v(u,d){return function(b,R){var F;if(b===n&&R===n)return d;if(b!==n&&(F=b),R!==n){if(F===n)return R;typeof b=="string"||typeof R=="string"?(b=Ii(b),R=Ii(R)):(b=nO(b),R=nO(R)),F=u(b,R)}return F}}function Dw(u){return ls(function(d){return d=Ut(d,jr(St())),jt(function(b){var R=this;return u(d,function(F){return It(F,R,b)})})})}function Cv(u,d){d=d===n?" ":Ii(d);var b=d.length;if(b<2)return b?Cw(d,u):d;var R=Cw(d,cv(u/_(d)));return Vo(d)?al(D(R),0,u).join(""):R.slice(0,u)}function bV(u,d,b,R){var F=d&S,q=Fp(u);function ue(){for(var ve=-1,we=arguments.length,Fe=-1,Me=R.length,He=ye(Me+we),it=this&&this!==gr&&this instanceof ue?q:u;++Fe<Me;)He[Fe]=R[Fe];for(;we--;)He[Fe++]=arguments[++ve];return It(it,F?b:this,He)}return ue}function yO(u){return function(d,b,R){return R&&typeof R!="number"&&ni(d,b,R)&&(b=R=n),d=fs(d),b===n?(b=d,d=0):b=fs(b),R=R===n?d<b?1:-1:fs(R),iV(d,b,R,u)}}function Ev(u){return function(d,b){return typeof d=="string"&&typeof b=="string"||(d=uo(d),b=uo(b)),u(d,b)}}function bO(u,d,b,R,F,q,ue,ve,we,Fe){var Me=d&C,He=Me?ue:n,it=Me?n:ue,ht=Me?q:n,Et=Me?n:q;d|=Me?O:$,d&=~(Me?$:O),d&w||(d&=~(S|x));var Mt=[u,d,F,ht,He,Et,it,ve,we,Fe],kt=b.apply(n,Mt);return Bw(u)&&DO(kt,Mt),kt.placeholder=R,$O(kt,u,d)}function $w(u){var d=on[u];return function(b,R){if(b=uo(b),R=R==null?0:Ur(Pt(R),292),R&&$2(b)){var F=(un(b)+"e").split("e"),q=d(F[0]+"e"+(+F[1]+R));return F=(un(q)+"e").split("e"),+(F[0]+"e"+(+F[1]-R))}return d(b)}}var xV=Xc&&1/Gc(new Xc([,-0]))[1]==te?function(u){return new Xc(u)}:eS;function xO(u){return function(d){var b=Kr(d);return b==qe?Cp(d):b==Te?ev(d):Gn(d,u(d))}}function ss(u,d,b,R,F,q,ue,ve){var we=d&x;if(!we&&typeof u!="function")throw new io(a);var Fe=R?R.length:0;if(Fe||(d&=~(O|$),R=F=n),ue=ue===n?ue:mr(Pt(ue),0),ve=ve===n?ve:Pt(ve),Fe-=F?F.length:0,d&$){var Me=R,He=F;R=F=n}var it=we?n:Lw(u),ht=[u,d,b,R,F,Me,He,q,ue,ve];if(it&&LV(ht,it),u=ht[0],d=ht[1],b=ht[2],R=ht[3],F=ht[4],ve=ht[9]=ht[9]===n?we?0:u.length:mr(ht[9]-Fe,0),!ve&&d&(C|E)&&(d&=~(C|E)),!d||d==S)var Et=vV(u,d,b);else d==C||d==E?Et=yV(u,d,ve):(d==O||d==(S|O))&&!F.length?Et=bV(u,d,b,R):Et=Sv.apply(n,ht);var Mt=it?eO:DO;return $O(Mt(Et,ht),u,d)}function wO(u,d,b,R){return u===n||qo(u,Yc[b])&&!pn.call(R,b)?d:u}function SO(u,d,b,R,F,q){return jn(u)&&jn(d)&&(q.set(d,u),yv(u,d,n,SO,q),q.delete(d)),u}function wV(u){return Bp(u)?n:u}function _O(u,d,b,R,F,q){var ue=b&m,ve=u.length,we=d.length;if(ve!=we&&!(ue&&we>ve))return!1;var Fe=q.get(u),Me=q.get(d);if(Fe&&Me)return Fe==d&&Me==u;var He=-1,it=!0,ht=b&v?new mu:n;for(q.set(u,d),q.set(d,u);++He<ve;){var Et=u[He],Mt=d[He];if(R)var kt=ue?R(Mt,Et,He,d,u,q):R(Et,Mt,He,u,d,q);if(kt!==n){if(kt)continue;it=!1;break}if(ht){if(!yp(d,function(Wt,Yt){if(!Wo(ht,Yt)&&(Et===Wt||F(Et,Wt,b,R,q)))return ht.push(Yt)})){it=!1;break}}else if(!(Et===Mt||F(Et,Mt,b,R,q))){it=!1;break}}return q.delete(u),q.delete(d),it}function SV(u,d,b,R,F,q,ue){switch(b){case fe:if(u.byteLength!=d.byteLength||u.byteOffset!=d.byteOffset)return!1;u=u.buffer,d=d.buffer;case G:return!(u.byteLength!=d.byteLength||!q(new av(u),new av(d)));case ke:case Ce:case Ve:return qo(+u,+d);case Le:return u.name==d.name&&u.message==d.message;case ge:case Ee:return u==d+"";case qe:var ve=Cp;case Te:var we=R&m;if(ve||(ve=Gc),u.size!=d.size&&!we)return!1;var Fe=ue.get(u);if(Fe)return Fe==d;R|=v,ue.set(u,d);var Me=_O(ve(u),ve(d),R,F,q,ue);return ue.delete(u),Me;case Ae:if(Op)return Op.call(u)==Op.call(d)}return!1}function _V(u,d,b,R,F,q){var ue=b&m,ve=Iw(u),we=ve.length,Fe=Iw(d),Me=Fe.length;if(we!=Me&&!ue)return!1;for(var He=we;He--;){var it=ve[He];if(!(ue?it in d:pn.call(d,it)))return!1}var ht=q.get(u),Et=q.get(d);if(ht&&Et)return ht==d&&Et==u;var Mt=!0;q.set(u,d),q.set(d,u);for(var kt=ue;++He<we;){it=ve[He];var Wt=u[it],Yt=d[it];if(R)var Li=ue?R(Yt,Wt,it,d,u,q):R(Wt,Yt,it,u,d,q);if(!(Li===n?Wt===Yt||F(Wt,Yt,b,R,q):Li)){Mt=!1;break}kt||(kt=it=="constructor")}if(Mt&&!kt){var ri=u.constructor,Fi=d.constructor;ri!=Fi&&"constructor"in u&&"constructor"in d&&!(typeof ri=="function"&&ri instanceof ri&&typeof Fi=="function"&&Fi instanceof Fi)&&(Mt=!1)}return q.delete(u),q.delete(d),Mt}function ls(u){return jw(AO(u,n,NO),u+"")}function Iw(u){return K2(u,Sr,Mw)}function Pw(u){return K2(u,pi,CO)}var Lw=dv?function(u){return dv.get(u)}:eS;function kv(u){for(var d=u.name+"",b=Zc[d],R=pn.call(Zc,d)?b.length:0;R--;){var F=b[R],q=F.func;if(q==null||q==u)return F.name}return d}function tf(u){var d=pn.call(K,"placeholder")?K:u;return d.placeholder}function St(){var u=K.iteratee||Jw;return u=u===Jw?H2:u,arguments.length?u(arguments[0],arguments[1]):u}function Tv(u,d){var b=u.__data__;return DV(d)?b[typeof d=="string"?"string":"hash"]:b.map}function Fw(u){for(var d=Sr(u),b=d.length;b--;){var R=d[b],F=u[R];d[b]=[R,F,TO(F)]}return d}function bu(u,d){var b=lw(u,d);return V2(b)?b:n}function CV(u){var d=pn.call(u,hu),b=u[hu];try{u[hu]=n;var R=!0}catch{}var F=iv.call(u);return R&&(d?u[hu]=b:delete u[hu]),F}var Mw=cw?function(u){return u==null?[]:(u=Kt(u),no(cw(u),function(d){return O2.call(u,d)}))}:tS,CO=cw?function(u){for(var d=[];u;)_n(d,Mw(u)),u=sv(u);return d}:tS,Kr=ti;(fw&&Kr(new fw(new ArrayBuffer(1)))!=fe||Tp&&Kr(new Tp)!=qe||dw&&Kr(dw.resolve())!=tt||Xc&&Kr(new Xc)!=Te||Rp&&Kr(new Rp)!=V)&&(Kr=function(u){var d=ti(u),b=d==Ze?u.constructor:n,R=b?xu(b):"";if(R)switch(R){case aW:return fe;case sW:return qe;case lW:return tt;case uW:return Te;case cW:return V}return d});function EV(u,d,b){for(var R=-1,F=b.length;++R<F;){var q=b[R],ue=q.size;switch(q.type){case"drop":u+=ue;break;case"dropRight":d-=ue;break;case"take":d=Ur(d,u+ue);break;case"takeRight":u=mr(u,d-ue);break}}return{start:u,end:d}}function kV(u){var d=u.match(es);return d?d[1].split(Jr):[]}function EO(u,d,b){d=ol(d,u);for(var R=-1,F=d.length,q=!1;++R<F;){var ue=ba(d[R]);if(!(q=u!=null&&b(u,ue)))break;u=u[ue]}return q||++R!=F?q:(F=u==null?0:u.length,!!F&&Pv(F)&&us(ue,F)&&(Dt(u)||wu(u)))}function TV(u){var d=u.length,b=new u.constructor(d);return d&&typeof u[0]=="string"&&pn.call(u,"index")&&(b.index=u.index,b.input=u.input),b}function kO(u){return typeof u.constructor=="function"&&!Mp(u)?Jc(sv(u)):{}}function RV(u,d,b){var R=u.constructor;switch(d){case G:return Ow(u);case ke:case Ce:return new R(+u);case fe:return fV(u,b);case ae:case Re:case Ie:case $e:case dt:case ot:case pe:case me:case _e:return lO(u,b);case qe:return new R;case Ve:case Ee:return new R(u);case ge:return dV(u);case Te:return new R;case Ae:return pV(u)}}function AV(u,d){var b=d.length;if(!b)return u;var R=b-1;return d[R]=(b>1?"& ":"")+d[R],d=d.join(b>2?", ":" "),u.replace(Zr,`{
|
|
505
|
+
/* [wrapped with `+d+`] */
|
|
506
|
+
`)}function OV(u){return Dt(u)||wu(u)||!!(D2&&u&&u[D2])}function us(u,d){var b=typeof u;return d=d??Z,!!d&&(b=="number"||b!="symbol"&&rt.test(u))&&u>-1&&u%1==0&&u<d}function ni(u,d,b){if(!jn(b))return!1;var R=typeof d;return(R=="number"?di(b)&&us(d,b.length):R=="string"&&d in b)?qo(b[d],u):!1}function Nw(u,d){if(Dt(u))return!1;var b=typeof u;return b=="number"||b=="symbol"||b=="boolean"||u==null||Pi(u)?!0:tr.test(u)||!Vt.test(u)||d!=null&&u in Kt(d)}function DV(u){var d=typeof u;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?u!=="__proto__":u===null}function Bw(u){var d=kv(u),b=K[d];if(typeof b!="function"||!(d in Ht.prototype))return!1;if(u===b)return!0;var R=Lw(b);return!!R&&u===R[0]}function $V(u){return!!T2&&T2 in u}var IV=nv?cs:nS;function Mp(u){var d=u&&u.constructor,b=typeof d=="function"&&d.prototype||Yc;return u===b}function TO(u){return u===u&&!jn(u)}function RO(u,d){return function(b){return b==null?!1:b[u]===d&&(d!==n||u in Kt(b))}}function PV(u){var d=$v(u,function(R){return b.size===c&&b.clear(),R}),b=d.cache;return d}function LV(u,d){var b=u[1],R=d[1],F=b|R,q=F<(S|x|I),ue=R==I&&b==C||R==I&&b==W&&u[7].length<=d[8]||R==(I|W)&&d[7].length<=d[8]&&b==C;if(!(q||ue))return u;R&S&&(u[2]=d[2],F|=b&S?0:w);var ve=d[3];if(ve){var we=u[3];u[3]=we?cO(we,ve,d[4]):ve,u[4]=we?ma(u[3],f):d[4]}return ve=d[5],ve&&(we=u[5],u[5]=we?fO(we,ve,d[6]):ve,u[6]=we?ma(u[5],f):d[6]),ve=d[7],ve&&(u[7]=ve),R&I&&(u[8]=u[8]==null?d[8]:Ur(u[8],d[8])),u[9]==null&&(u[9]=d[9]),u[0]=d[0],u[1]=F,u}function FV(u){var d=[];if(u!=null)for(var b in Kt(u))d.push(b);return d}function MV(u){return iv.call(u)}function AO(u,d,b){return d=mr(d===n?u.length-1:d,0),function(){for(var R=arguments,F=-1,q=mr(R.length-d,0),ue=ye(q);++F<q;)ue[F]=R[d+F];F=-1;for(var ve=ye(d+1);++F<d;)ve[F]=R[F];return ve[d]=b(ue),It(u,this,ve)}}function OO(u,d){return d.length<2?u:yu(u,so(d,0,-1))}function NV(u,d){for(var b=u.length,R=Ur(d.length,b),F=fi(u);R--;){var q=d[R];u[R]=us(q,b)?F[q]:n}return u}function zw(u,d){if(!(d==="constructor"&&typeof u[d]=="function")&&d!="__proto__")return u[d]}var DO=IO(eO),Np=QK||function(u,d){return gr.setTimeout(u,d)},jw=IO(sV);function $O(u,d,b){var R=d+"";return jw(u,AV(R,BV(kV(R),b)))}function IO(u){var d=0,b=0;return function(){var R=rW(),F=se-(R-b);if(b=R,F>0){if(++d>=le)return arguments[0]}else d=0;return u.apply(n,arguments)}}function Rv(u,d){var b=-1,R=u.length,F=R-1;for(d=d===n?R:d;++b<d;){var q=_w(b,F),ue=u[q];u[q]=u[b],u[b]=ue}return u.length=d,u}var PO=PV(function(u){var d=[];return u.charCodeAt(0)===46&&d.push(""),u.replace(vn,function(b,R,F,q){d.push(F?q.replace(xn,"$1"):R||b)}),d});function ba(u){if(typeof u=="string"||Pi(u))return u;var d=u+"";return d=="0"&&1/u==-te?"-0":d}function xu(u){if(u!=null){try{return rv.call(u)}catch{}try{return u+""}catch{}}return""}function BV(u,d){return ei(oe,function(b){var R="_."+b[0];d&b[1]&&!fu(u,R)&&u.push(R)}),u.sort()}function LO(u){if(u instanceof Ht)return u.clone();var d=new oo(u.__wrapped__,u.__chain__);return d.__actions__=fi(u.__actions__),d.__index__=u.__index__,d.__values__=u.__values__,d}function zV(u,d,b){(b?ni(u,d,b):d===n)?d=1:d=mr(Pt(d),0);var R=u==null?0:u.length;if(!R||d<1)return[];for(var F=0,q=0,ue=ye(cv(R/d));F<R;)ue[q++]=so(u,F,F+=d);return ue}function jV(u){for(var d=-1,b=u==null?0:u.length,R=0,F=[];++d<b;){var q=u[d];q&&(F[R++]=q)}return F}function UV(){var u=arguments.length;if(!u)return[];for(var d=ye(u-1),b=arguments[0],R=u;R--;)d[R-1]=arguments[R];return _n(Dt(b)?fi(b):[b],$r(d,1))}var KV=jt(function(u,d){return ir(u)?$p(u,$r(d,1,ir,!0)):[]}),WV=jt(function(u,d){var b=lo(d);return ir(b)&&(b=n),ir(u)?$p(u,$r(d,1,ir,!0),St(b,2)):[]}),VV=jt(function(u,d){var b=lo(d);return ir(b)&&(b=n),ir(u)?$p(u,$r(d,1,ir,!0),n,b):[]});function HV(u,d,b){var R=u==null?0:u.length;return R?(d=b||d===n?1:Pt(d),so(u,d<0?0:d,R)):[]}function qV(u,d,b){var R=u==null?0:u.length;return R?(d=b||d===n?1:Pt(d),d=R-d,so(u,0,d<0?0:d)):[]}function GV(u,d){return u&&u.length?xv(u,St(d,3),!0,!0):[]}function YV(u,d){return u&&u.length?xv(u,St(d,3),!0):[]}function XV(u,d,b,R){var F=u==null?0:u.length;return F?(b&&typeof b!="number"&&ni(u,d,b)&&(b=0,R=F),UW(u,d,b,R)):[]}function FO(u,d,b){var R=u==null?0:u.length;if(!R)return-1;var F=b==null?0:Pt(b);return F<0&&(F=mr(R+F,0)),xr(u,St(d,3),F)}function MO(u,d,b){var R=u==null?0:u.length;if(!R)return-1;var F=R-1;return b!==n&&(F=Pt(b),F=b<0?mr(R+F,0):Ur(F,R-1)),xr(u,St(d,3),F,!0)}function NO(u){var d=u==null?0:u.length;return d?$r(u,1):[]}function ZV(u){var d=u==null?0:u.length;return d?$r(u,te):[]}function JV(u,d){var b=u==null?0:u.length;return b?(d=d===n?1:Pt(d),$r(u,d)):[]}function QV(u){for(var d=-1,b=u==null?0:u.length,R={};++d<b;){var F=u[d];R[F[0]]=F[1]}return R}function BO(u){return u&&u.length?u[0]:n}function eH(u,d,b){var R=u==null?0:u.length;if(!R)return-1;var F=b==null?0:Pt(b);return F<0&&(F=mr(R+F,0)),ha(u,d,F)}function tH(u){var d=u==null?0:u.length;return d?so(u,0,-1):[]}var nH=jt(function(u){var d=Ut(u,Rw);return d.length&&d[0]===u[0]?yw(d):[]}),rH=jt(function(u){var d=lo(u),b=Ut(u,Rw);return d===lo(b)?d=n:b.pop(),b.length&&b[0]===u[0]?yw(b,St(d,2)):[]}),iH=jt(function(u){var d=lo(u),b=Ut(u,Rw);return d=typeof d=="function"?d:n,d&&b.pop(),b.length&&b[0]===u[0]?yw(b,n,d):[]});function oH(u,d){return u==null?"":tW.call(u,d)}function lo(u){var d=u==null?0:u.length;return d?u[d-1]:n}function aH(u,d,b){var R=u==null?0:u.length;if(!R)return-1;var F=R;return b!==n&&(F=Pt(b),F=F<0?mr(R+F,0):Ur(F,R-1)),d===d?g(u,d,F):xr(u,wp,F,!0)}function sH(u,d){return u&&u.length?X2(u,Pt(d)):n}var lH=jt(zO);function zO(u,d){return u&&u.length&&d&&d.length?Sw(u,d):u}function uH(u,d,b){return u&&u.length&&d&&d.length?Sw(u,d,St(b,2)):u}function cH(u,d,b){return u&&u.length&&d&&d.length?Sw(u,d,n,b):u}var fH=ls(function(u,d){var b=u==null?0:u.length,R=hw(u,d);return Q2(u,Ut(d,function(F){return us(F,b)?+F:F}).sort(uO)),R});function dH(u,d){var b=[];if(!(u&&u.length))return b;var R=-1,F=[],q=u.length;for(d=St(d,3);++R<q;){var ue=u[R];d(ue,R,u)&&(b.push(ue),F.push(R))}return Q2(u,F),b}function Uw(u){return u==null?u:oW.call(u)}function pH(u,d,b){var R=u==null?0:u.length;return R?(b&&typeof b!="number"&&ni(u,d,b)?(d=0,b=R):(d=d==null?0:Pt(d),b=b===n?R:Pt(b)),so(u,d,b)):[]}function hH(u,d){return bv(u,d)}function gH(u,d,b){return Ew(u,d,St(b,2))}function mH(u,d){var b=u==null?0:u.length;if(b){var R=bv(u,d);if(R<b&&qo(u[R],d))return R}return-1}function vH(u,d){return bv(u,d,!0)}function yH(u,d,b){return Ew(u,d,St(b,2),!0)}function bH(u,d){var b=u==null?0:u.length;if(b){var R=bv(u,d,!0)-1;if(qo(u[R],d))return R}return-1}function xH(u){return u&&u.length?tO(u):[]}function wH(u,d){return u&&u.length?tO(u,St(d,2)):[]}function SH(u){var d=u==null?0:u.length;return d?so(u,1,d):[]}function _H(u,d,b){return u&&u.length?(d=b||d===n?1:Pt(d),so(u,0,d<0?0:d)):[]}function CH(u,d,b){var R=u==null?0:u.length;return R?(d=b||d===n?1:Pt(d),d=R-d,so(u,d<0?0:d,R)):[]}function EH(u,d){return u&&u.length?xv(u,St(d,3),!1,!0):[]}function kH(u,d){return u&&u.length?xv(u,St(d,3)):[]}var TH=jt(function(u){return il($r(u,1,ir,!0))}),RH=jt(function(u){var d=lo(u);return ir(d)&&(d=n),il($r(u,1,ir,!0),St(d,2))}),AH=jt(function(u){var d=lo(u);return d=typeof d=="function"?d:n,il($r(u,1,ir,!0),n,d)});function OH(u){return u&&u.length?il(u):[]}function DH(u,d){return u&&u.length?il(u,St(d,2)):[]}function $H(u,d){return d=typeof d=="function"?d:n,u&&u.length?il(u,n,d):[]}function Kw(u){if(!(u&&u.length))return[];var d=0;return u=no(u,function(b){if(ir(b))return d=mr(b.length,d),!0}),pu(d,function(b){return Ut(u,ci(b))})}function jO(u,d){if(!(u&&u.length))return[];var b=Kw(u);return d==null?b:Ut(b,function(R){return It(d,n,R)})}var IH=jt(function(u,d){return ir(u)?$p(u,d):[]}),PH=jt(function(u){return Tw(no(u,ir))}),LH=jt(function(u){var d=lo(u);return ir(d)&&(d=n),Tw(no(u,ir),St(d,2))}),FH=jt(function(u){var d=lo(u);return d=typeof d=="function"?d:n,Tw(no(u,ir),n,d)}),MH=jt(Kw);function NH(u,d){return oO(u||[],d||[],Dp)}function BH(u,d){return oO(u||[],d||[],Lp)}var zH=jt(function(u){var d=u.length,b=d>1?u[d-1]:n;return b=typeof b=="function"?(u.pop(),b):n,jO(u,b)});function UO(u){var d=K(u);return d.__chain__=!0,d}function jH(u,d){return d(u),u}function Av(u,d){return d(u)}var UH=ls(function(u){var d=u.length,b=d?u[0]:0,R=this.__wrapped__,F=function(q){return hw(q,u)};return d>1||this.__actions__.length||!(R instanceof Ht)||!us(b)?this.thru(F):(R=R.slice(b,+b+(d?1:0)),R.__actions__.push({func:Av,args:[F],thisArg:n}),new oo(R,this.__chain__).thru(function(q){return d&&!q.length&&q.push(n),q}))});function KH(){return UO(this)}function WH(){return new oo(this.value(),this.__chain__)}function VH(){this.__values__===n&&(this.__values__=nD(this.value()));var u=this.__index__>=this.__values__.length,d=u?n:this.__values__[this.__index__++];return{done:u,value:d}}function HH(){return this}function qH(u){for(var d,b=this;b instanceof hv;){var R=LO(b);R.__index__=0,R.__values__=n,d?F.__wrapped__=R:d=R;var F=R;b=b.__wrapped__}return F.__wrapped__=u,d}function GH(){var u=this.__wrapped__;if(u instanceof Ht){var d=u;return this.__actions__.length&&(d=new Ht(this)),d=d.reverse(),d.__actions__.push({func:Av,args:[Uw],thisArg:n}),new oo(d,this.__chain__)}return this.thru(Uw)}function YH(){return iO(this.__wrapped__,this.__actions__)}var XH=wv(function(u,d,b){pn.call(u,b)?++u[b]:as(u,b,1)});function ZH(u,d,b){var R=Dt(u)?$i:jW;return b&&ni(u,d,b)&&(d=n),R(u,St(d,3))}function JH(u,d){var b=Dt(u)?no:j2;return b(u,St(d,3))}var QH=gO(FO),eq=gO(MO);function tq(u,d){return $r(Ov(u,d),1)}function nq(u,d){return $r(Ov(u,d),te)}function rq(u,d,b){return b=b===n?1:Pt(b),$r(Ov(u,d),b)}function KO(u,d){var b=Dt(u)?ei:rl;return b(u,St(d,3))}function WO(u,d){var b=Dt(u)?Gm:z2;return b(u,St(d,3))}var iq=wv(function(u,d,b){pn.call(u,b)?u[b].push(d):as(u,b,[d])});function oq(u,d,b,R){u=di(u)?u:rf(u),b=b&&!R?Pt(b):0;var F=u.length;return b<0&&(b=mr(F+b,0)),Lv(u)?b<=F&&u.indexOf(d,b)>-1:!!F&&ha(u,d,b)>-1}var aq=jt(function(u,d,b){var R=-1,F=typeof d=="function",q=di(u)?ye(u.length):[];return rl(u,function(ue){q[++R]=F?It(d,ue,b):Ip(ue,d,b)}),q}),sq=wv(function(u,d,b){as(u,b,d)});function Ov(u,d){var b=Dt(u)?Ut:q2;return b(u,St(d,3))}function lq(u,d,b,R){return u==null?[]:(Dt(d)||(d=d==null?[]:[d]),b=R?n:b,Dt(b)||(b=b==null?[]:[b]),Z2(u,d,b))}var uq=wv(function(u,d,b){u[b?0:1].push(d)},function(){return[[],[]]});function cq(u,d,b){var R=Dt(u)?el:du,F=arguments.length<3;return R(u,St(d,4),b,F,rl)}function fq(u,d,b){var R=Dt(u)?Ym:du,F=arguments.length<3;return R(u,St(d,4),b,F,z2)}function dq(u,d){var b=Dt(u)?no:j2;return b(u,Iv(St(d,3)))}function pq(u){var d=Dt(u)?F2:oV;return d(u)}function hq(u,d,b){(b?ni(u,d,b):d===n)?d=1:d=Pt(d);var R=Dt(u)?FW:aV;return R(u,d)}function gq(u){var d=Dt(u)?MW:lV;return d(u)}function mq(u){if(u==null)return 0;if(di(u))return Lv(u)?_(u):u.length;var d=Kr(u);return d==qe||d==Te?u.size:xw(u).length}function vq(u,d,b){var R=Dt(u)?yp:uV;return b&&ni(u,d,b)&&(d=n),R(u,St(d,3))}var yq=jt(function(u,d){if(u==null)return[];var b=d.length;return b>1&&ni(u,d[0],d[1])?d=[]:b>2&&ni(d[0],d[1],d[2])&&(d=[d[0]]),Z2(u,$r(d,1),[])}),Dv=JK||function(){return gr.Date.now()};function bq(u,d){if(typeof d!="function")throw new io(a);return u=Pt(u),function(){if(--u<1)return d.apply(this,arguments)}}function VO(u,d,b){return d=b?n:d,d=u&&d==null?u.length:d,ss(u,I,n,n,n,n,d)}function HO(u,d){var b;if(typeof d!="function")throw new io(a);return u=Pt(u),function(){return--u>0&&(b=d.apply(this,arguments)),u<=1&&(d=n),b}}var Ww=jt(function(u,d,b){var R=S;if(b.length){var F=ma(b,tf(Ww));R|=O}return ss(u,R,d,b,F)}),qO=jt(function(u,d,b){var R=S|x;if(b.length){var F=ma(b,tf(qO));R|=O}return ss(d,R,u,b,F)});function GO(u,d,b){d=b?n:d;var R=ss(u,C,n,n,n,n,n,d);return R.placeholder=GO.placeholder,R}function YO(u,d,b){d=b?n:d;var R=ss(u,E,n,n,n,n,n,d);return R.placeholder=YO.placeholder,R}function XO(u,d,b){var R,F,q,ue,ve,we,Fe=0,Me=!1,He=!1,it=!0;if(typeof u!="function")throw new io(a);d=uo(d)||0,jn(b)&&(Me=!!b.leading,He="maxWait"in b,q=He?mr(uo(b.maxWait)||0,d):q,it="trailing"in b?!!b.trailing:it);function ht(or){var Go=R,ds=F;return R=F=n,Fe=or,ue=u.apply(ds,Go),ue}function Et(or){return Fe=or,ve=Np(Wt,d),Me?ht(or):ue}function Mt(or){var Go=or-we,ds=or-Fe,gD=d-Go;return He?Ur(gD,q-ds):gD}function kt(or){var Go=or-we,ds=or-Fe;return we===n||Go>=d||Go<0||He&&ds>=q}function Wt(){var or=Dv();if(kt(or))return Yt(or);ve=Np(Wt,Mt(or))}function Yt(or){return ve=n,it&&R?ht(or):(R=F=n,ue)}function Li(){ve!==n&&aO(ve),Fe=0,R=we=F=ve=n}function ri(){return ve===n?ue:Yt(Dv())}function Fi(){var or=Dv(),Go=kt(or);if(R=arguments,F=this,we=or,Go){if(ve===n)return Et(we);if(He)return aO(ve),ve=Np(Wt,d),ht(we)}return ve===n&&(ve=Np(Wt,d)),ue}return Fi.cancel=Li,Fi.flush=ri,Fi}var xq=jt(function(u,d){return B2(u,1,d)}),wq=jt(function(u,d,b){return B2(u,uo(d)||0,b)});function Sq(u){return ss(u,H)}function $v(u,d){if(typeof u!="function"||d!=null&&typeof d!="function")throw new io(a);var b=function(){var R=arguments,F=d?d.apply(this,R):R[0],q=b.cache;if(q.has(F))return q.get(F);var ue=u.apply(this,R);return b.cache=q.set(F,ue)||q,ue};return b.cache=new($v.Cache||os),b}$v.Cache=os;function Iv(u){if(typeof u!="function")throw new io(a);return function(){var d=arguments;switch(d.length){case 0:return!u.call(this);case 1:return!u.call(this,d[0]);case 2:return!u.call(this,d[0],d[1]);case 3:return!u.call(this,d[0],d[1],d[2])}return!u.apply(this,d)}}function _q(u){return HO(2,u)}var Cq=cV(function(u,d){d=d.length==1&&Dt(d[0])?Ut(d[0],jr(St())):Ut($r(d,1),jr(St()));var b=d.length;return jt(function(R){for(var F=-1,q=Ur(R.length,b);++F<q;)R[F]=d[F].call(this,R[F]);return It(u,this,R)})}),Vw=jt(function(u,d){var b=ma(d,tf(Vw));return ss(u,O,n,d,b)}),ZO=jt(function(u,d){var b=ma(d,tf(ZO));return ss(u,$,n,d,b)}),Eq=ls(function(u,d){return ss(u,W,n,n,n,d)});function kq(u,d){if(typeof u!="function")throw new io(a);return d=d===n?d:Pt(d),jt(u,d)}function Tq(u,d){if(typeof u!="function")throw new io(a);return d=d==null?0:mr(Pt(d),0),jt(function(b){var R=b[d],F=al(b,0,d);return R&&_n(F,R),It(u,this,F)})}function Rq(u,d,b){var R=!0,F=!0;if(typeof u!="function")throw new io(a);return jn(b)&&(R="leading"in b?!!b.leading:R,F="trailing"in b?!!b.trailing:F),XO(u,d,{leading:R,maxWait:d,trailing:F})}function Aq(u){return VO(u,1)}function Oq(u,d){return Vw(Aw(d),u)}function Dq(){if(!arguments.length)return[];var u=arguments[0];return Dt(u)?u:[u]}function $q(u){return ao(u,y)}function Iq(u,d){return d=typeof d=="function"?d:n,ao(u,y,d)}function Pq(u){return ao(u,h|y)}function Lq(u,d){return d=typeof d=="function"?d:n,ao(u,h|y,d)}function Fq(u,d){return d==null||N2(u,d,Sr(d))}function qo(u,d){return u===d||u!==u&&d!==d}var Mq=Ev(vw),Nq=Ev(function(u,d){return u>=d}),wu=W2(function(){return arguments}())?W2:function(u){return Yn(u)&&pn.call(u,"callee")&&!O2.call(u,"callee")},Dt=ye.isArray,Bq=Vm?jr(Vm):qW;function di(u){return u!=null&&Pv(u.length)&&!cs(u)}function ir(u){return Yn(u)&&di(u)}function zq(u){return u===!0||u===!1||Yn(u)&&ti(u)==ke}var sl=eW||nS,jq=Hm?jr(Hm):GW;function Uq(u){return Yn(u)&&u.nodeType===1&&!Bp(u)}function Kq(u){if(u==null)return!0;if(di(u)&&(Dt(u)||typeof u=="string"||typeof u.splice=="function"||sl(u)||nf(u)||wu(u)))return!u.length;var d=Kr(u);if(d==qe||d==Te)return!u.size;if(Mp(u))return!xw(u).length;for(var b in u)if(pn.call(u,b))return!1;return!0}function Wq(u,d){return Pp(u,d)}function Vq(u,d,b){b=typeof b=="function"?b:n;var R=b?b(u,d):n;return R===n?Pp(u,d,n,b):!!R}function Hw(u){if(!Yn(u))return!1;var d=ti(u);return d==Le||d==Pe||typeof u.message=="string"&&typeof u.name=="string"&&!Bp(u)}function Hq(u){return typeof u=="number"&&$2(u)}function cs(u){if(!jn(u))return!1;var d=ti(u);return d==ze||d==We||d==Se||d==gt}function JO(u){return typeof u=="number"&&u==Pt(u)}function Pv(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=Z}function jn(u){var d=typeof u;return u!=null&&(d=="object"||d=="function")}function Yn(u){return u!=null&&typeof u=="object"}var QO=rs?jr(rs):XW;function qq(u,d){return u===d||bw(u,d,Fw(d))}function Gq(u,d,b){return b=typeof b=="function"?b:n,bw(u,d,Fw(d),b)}function Yq(u){return eD(u)&&u!=+u}function Xq(u){if(IV(u))throw new Je(o);return V2(u)}function Zq(u){return u===null}function Jq(u){return u==null}function eD(u){return typeof u=="number"||Yn(u)&&ti(u)==Ve}function Bp(u){if(!Yn(u)||ti(u)!=Ze)return!1;var d=sv(u);if(d===null)return!0;var b=pn.call(d,"constructor")&&d.constructor;return typeof b=="function"&&b instanceof b&&rv.call(b)==GK}var qw=cu?jr(cu):ZW;function Qq(u){return JO(u)&&u>=-Z&&u<=Z}var tD=vp?jr(vp):JW;function Lv(u){return typeof u=="string"||!Dt(u)&&Yn(u)&&ti(u)==Ee}function Pi(u){return typeof u=="symbol"||Yn(u)&&ti(u)==Ae}var nf=jc?jr(jc):QW;function eG(u){return u===n}function tG(u){return Yn(u)&&Kr(u)==V}function nG(u){return Yn(u)&&ti(u)==he}var rG=Ev(ww),iG=Ev(function(u,d){return u<=d});function nD(u){if(!u)return[];if(di(u))return Lv(u)?D(u):fi(u);if(kp&&u[kp])return Qm(u[kp]());var d=Kr(u),b=d==qe?Cp:d==Te?Gc:rf;return b(u)}function fs(u){if(!u)return u===0?u:0;if(u=uo(u),u===te||u===-te){var d=u<0?-1:1;return d*ee}return u===u?u:0}function Pt(u){var d=fs(u),b=d%1;return d===d?b?d-b:d:0}function rD(u){return u?vu(Pt(u),0,M):0}function uo(u){if(typeof u=="number")return u;if(Pi(u))return Y;if(jn(u)){var d=typeof u.valueOf=="function"?u.valueOf():u;u=jn(d)?d+"":d}if(typeof u!="string")return u===0?u:+u;u=Sp(u);var b=Rt.test(u);return b||Pc.test(u)?pp(u.slice(2),b?2:8):qn.test(u)?Y:+u}function iD(u){return ya(u,pi(u))}function oG(u){return u?vu(Pt(u),-Z,Z):u===0?u:0}function un(u){return u==null?"":Ii(u)}var aG=Qc(function(u,d){if(Mp(d)||di(d)){ya(d,Sr(d),u);return}for(var b in d)pn.call(d,b)&&Dp(u,b,d[b])}),oD=Qc(function(u,d){ya(d,pi(d),u)}),Fv=Qc(function(u,d,b,R){ya(d,pi(d),u,R)}),sG=Qc(function(u,d,b,R){ya(d,Sr(d),u,R)}),lG=ls(hw);function uG(u,d){var b=Jc(u);return d==null?b:M2(b,d)}var cG=jt(function(u,d){u=Kt(u);var b=-1,R=d.length,F=R>2?d[2]:n;for(F&&ni(d[0],d[1],F)&&(R=1);++b<R;)for(var q=d[b],ue=pi(q),ve=-1,we=ue.length;++ve<we;){var Fe=ue[ve],Me=u[Fe];(Me===n||qo(Me,Yc[Fe])&&!pn.call(u,Fe))&&(u[Fe]=q[Fe])}return u}),fG=jt(function(u){return u.push(n,SO),It(aD,n,u)});function dG(u,d){return xp(u,St(d,3),va)}function pG(u,d){return xp(u,St(d,3),mw)}function hG(u,d){return u==null?u:gw(u,St(d,3),pi)}function gG(u,d){return u==null?u:U2(u,St(d,3),pi)}function mG(u,d){return u&&va(u,St(d,3))}function vG(u,d){return u&&mw(u,St(d,3))}function yG(u){return u==null?[]:vv(u,Sr(u))}function bG(u){return u==null?[]:vv(u,pi(u))}function Gw(u,d,b){var R=u==null?n:yu(u,d);return R===n?b:R}function xG(u,d){return u!=null&&EO(u,d,KW)}function Yw(u,d){return u!=null&&EO(u,d,WW)}var wG=vO(function(u,d,b){d!=null&&typeof d.toString!="function"&&(d=iv.call(d)),u[d]=b},Zw(hi)),SG=vO(function(u,d,b){d!=null&&typeof d.toString!="function"&&(d=iv.call(d)),pn.call(u,d)?u[d].push(b):u[d]=[b]},St),_G=jt(Ip);function Sr(u){return di(u)?L2(u):xw(u)}function pi(u){return di(u)?L2(u,!0):eV(u)}function CG(u,d){var b={};return d=St(d,3),va(u,function(R,F,q){as(b,d(R,F,q),R)}),b}function EG(u,d){var b={};return d=St(d,3),va(u,function(R,F,q){as(b,F,d(R,F,q))}),b}var kG=Qc(function(u,d,b){yv(u,d,b)}),aD=Qc(function(u,d,b,R){yv(u,d,b,R)}),TG=ls(function(u,d){var b={};if(u==null)return b;var R=!1;d=Ut(d,function(q){return q=ol(q,u),R||(R=q.length>1),q}),ya(u,Pw(u),b),R&&(b=ao(b,h|p|y,wV));for(var F=d.length;F--;)kw(b,d[F]);return b});function RG(u,d){return sD(u,Iv(St(d)))}var AG=ls(function(u,d){return u==null?{}:nV(u,d)});function sD(u,d){if(u==null)return{};var b=Ut(Pw(u),function(R){return[R]});return d=St(d),J2(u,b,function(R,F){return d(R,F[0])})}function OG(u,d,b){d=ol(d,u);var R=-1,F=d.length;for(F||(F=1,u=n);++R<F;){var q=u==null?n:u[ba(d[R])];q===n&&(R=F,q=b),u=cs(q)?q.call(u):q}return u}function DG(u,d,b){return u==null?u:Lp(u,d,b)}function $G(u,d,b,R){return R=typeof R=="function"?R:n,u==null?u:Lp(u,d,b,R)}var lD=xO(Sr),uD=xO(pi);function IG(u,d,b){var R=Dt(u),F=R||sl(u)||nf(u);if(d=St(d,4),b==null){var q=u&&u.constructor;F?b=R?new q:[]:jn(u)?b=cs(q)?Jc(sv(u)):{}:b={}}return(F?ei:va)(u,function(ue,ve,we){return d(b,ue,ve,we)}),b}function PG(u,d){return u==null?!0:kw(u,d)}function LG(u,d,b){return u==null?u:rO(u,d,Aw(b))}function FG(u,d,b,R){return R=typeof R=="function"?R:n,u==null?u:rO(u,d,Aw(b),R)}function rf(u){return u==null?[]:ga(u,Sr(u))}function MG(u){return u==null?[]:ga(u,pi(u))}function NG(u,d,b){return b===n&&(b=d,d=n),b!==n&&(b=uo(b),b=b===b?b:0),d!==n&&(d=uo(d),d=d===d?d:0),vu(uo(u),d,b)}function BG(u,d,b){return d=fs(d),b===n?(b=d,d=0):b=fs(b),u=uo(u),VW(u,d,b)}function zG(u,d,b){if(b&&typeof b!="boolean"&&ni(u,d,b)&&(d=b=n),b===n&&(typeof d=="boolean"?(b=d,d=n):typeof u=="boolean"&&(b=u,u=n)),u===n&&d===n?(u=0,d=1):(u=fs(u),d===n?(d=u,u=0):d=fs(d)),u>d){var R=u;u=d,d=R}if(b||u%1||d%1){var F=I2();return Ur(u+F*(d-u+Wm("1e-"+((F+"").length-1))),d)}return _w(u,d)}var jG=ef(function(u,d,b){return d=d.toLowerCase(),u+(b?cD(d):d)});function cD(u){return Xw(un(u).toLowerCase())}function fD(u){return u=un(u),u&&u.replace(rr,wr).replace(Bc,"")}function UG(u,d,b){u=un(u),d=Ii(d);var R=u.length;b=b===n?R:vu(Pt(b),0,R);var F=b;return b-=d.length,b>=0&&u.slice(b,F)==d}function KG(u){return u=un(u),u&&ft.test(u)?u.replace(st,qc):u}function WG(u){return u=un(u),u&&nr.test(u)?u.replace(br,"\\$&"):u}var VG=ef(function(u,d,b){return u+(b?"-":"")+d.toLowerCase()}),HG=ef(function(u,d,b){return u+(b?" ":"")+d.toLowerCase()}),qG=hO("toLowerCase");function GG(u,d,b){u=un(u),d=Pt(d);var R=d?_(u):0;if(!d||R>=d)return u;var F=(d-R)/2;return Cv(fv(F),b)+u+Cv(cv(F),b)}function YG(u,d,b){u=un(u),d=Pt(d);var R=d?_(u):0;return d&&R<d?u+Cv(d-R,b):u}function XG(u,d,b){u=un(u),d=Pt(d);var R=d?_(u):0;return d&&R<d?Cv(d-R,b)+u:u}function ZG(u,d,b){return b||d==null?d=0:d&&(d=+d),iW(un(u).replace(sr,""),d||0)}function JG(u,d,b){return(b?ni(u,d,b):d===n)?d=1:d=Pt(d),Cw(un(u),d)}function QG(){var u=arguments,d=un(u[0]);return u.length<3?d:d.replace(u[1],u[2])}var eY=ef(function(u,d,b){return u+(b?"_":"")+d.toLowerCase()});function tY(u,d,b){return b&&typeof b!="number"&&ni(u,d,b)&&(d=b=n),b=b===n?M:b>>>0,b?(u=un(u),u&&(typeof d=="string"||d!=null&&!qw(d))&&(d=Ii(d),!d&&Vo(u))?al(D(u),0,b):u.split(d,b)):[]}var nY=ef(function(u,d,b){return u+(b?" ":"")+Xw(d)});function rY(u,d,b){return u=un(u),b=b==null?0:vu(Pt(b),0,u.length),d=Ii(d),u.slice(b,b+d.length)==d}function iY(u,d,b){var R=K.templateSettings;b&&ni(u,d,b)&&(d=n),u=un(u),d=Fv({},d,R,wO);var F=Fv({},d.imports,R.imports,wO),q=Sr(F),ue=ga(F,q),ve,we,Fe=0,Me=d.interpolate||zo,He="__p += '",it=tl((d.escape||zo).source+"|"+Me.source+"|"+(Me===Gt?wn:zo).source+"|"+(d.evaluate||zo).source+"|$","g"),ht="//# sourceURL="+(pn.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++zc+"]")+`
|
|
507
|
+
`;u.replace(it,function(kt,Wt,Yt,Li,ri,Fi){return Yt||(Yt=Li),He+=u.slice(Fe,Fi).replace(su,sw),Wt&&(ve=!0,He+=`' +
|
|
508
|
+
__e(`+Wt+`) +
|
|
509
|
+
'`),ri&&(we=!0,He+=`';
|
|
510
|
+
`+ri+`;
|
|
511
|
+
__p += '`),Yt&&(He+=`' +
|
|
512
|
+
((__t = (`+Yt+`)) == null ? '' : __t) +
|
|
513
|
+
'`),Fe=Fi+kt.length,kt}),He+=`';
|
|
514
|
+
`;var Et=pn.call(d,"variable")&&d.variable;if(!Et)He=`with (obj) {
|
|
515
|
+
`+He+`
|
|
516
|
+
}
|
|
517
|
+
`;else if(qs.test(Et))throw new Je(s);He=(we?He.replace(Ue,""):He).replace(Ke,"$1").replace(Ge,"$1;"),He="function("+(Et||"obj")+`) {
|
|
518
|
+
`+(Et?"":`obj || (obj = {});
|
|
519
|
+
`)+"var __t, __p = ''"+(ve?", __e = _.escape":"")+(we?`, __j = Array.prototype.join;
|
|
520
|
+
function print() { __p += __j.call(arguments, '') }
|
|
521
|
+
`:`;
|
|
522
|
+
`)+He+`return __p
|
|
523
|
+
}`;var Mt=pD(function(){return mt(q,ht+"return "+He).apply(n,ue)});if(Mt.source=He,Hw(Mt))throw Mt;return Mt}function oY(u){return un(u).toLowerCase()}function aY(u){return un(u).toUpperCase()}function sY(u,d,b){if(u=un(u),u&&(b||d===n))return Sp(u);if(!u||!(d=Ii(d)))return u;var R=D(u),F=D(d),q=_p(R,F),ue=Hc(R,F)+1;return al(R,q,ue).join("")}function lY(u,d,b){if(u=un(u),u&&(b||d===n))return u.slice(0,P(u)+1);if(!u||!(d=Ii(d)))return u;var R=D(u),F=Hc(R,D(d))+1;return al(R,0,F).join("")}function uY(u,d,b){if(u=un(u),u&&(b||d===n))return u.replace(sr,"");if(!u||!(d=Ii(d)))return u;var R=D(u),F=_p(R,D(d));return al(R,F).join("")}function cY(u,d){var b=j,R=U;if(jn(d)){var F="separator"in d?d.separator:F;b="length"in d?Pt(d.length):b,R="omission"in d?Ii(d.omission):R}u=un(u);var q=u.length;if(Vo(u)){var ue=D(u);q=ue.length}if(b>=q)return u;var ve=b-_(R);if(ve<1)return R;var we=ue?al(ue,0,ve).join(""):u.slice(0,ve);if(F===n)return we+R;if(ue&&(ve+=we.length-ve),qw(F)){if(u.slice(ve).search(F)){var Fe,Me=we;for(F.global||(F=tl(F.source,un(Di.exec(F))+"g")),F.lastIndex=0;Fe=F.exec(Me);)var He=Fe.index;we=we.slice(0,He===n?ve:He)}}else if(u.indexOf(Ii(F),ve)!=ve){var it=we.lastIndexOf(F);it>-1&&(we=we.slice(0,it))}return we+R}function fY(u){return u=un(u),u&&nt.test(u)?u.replace(ut,N):u}var dY=ef(function(u,d,b){return u+(b?" ":"")+d.toUpperCase()}),Xw=hO("toUpperCase");function dD(u,d,b){return u=un(u),d=b?n:d,d===n?Jm(u)?xe(u):bp(u):u.match(d)||[]}var pD=jt(function(u,d){try{return It(u,n,d)}catch(b){return Hw(b)?b:new Je(b)}}),pY=ls(function(u,d){return ei(d,function(b){b=ba(b),as(u,b,Ww(u[b],u))}),u});function hY(u){var d=u==null?0:u.length,b=St();return u=d?Ut(u,function(R){if(typeof R[1]!="function")throw new io(a);return[b(R[0]),R[1]]}):[],jt(function(R){for(var F=-1;++F<d;){var q=u[F];if(It(q[0],this,R))return It(q[1],this,R)}})}function gY(u){return zW(ao(u,h))}function Zw(u){return function(){return u}}function mY(u,d){return u==null||u!==u?d:u}var vY=mO(),yY=mO(!0);function hi(u){return u}function Jw(u){return H2(typeof u=="function"?u:ao(u,h))}function bY(u){return G2(ao(u,h))}function xY(u,d){return Y2(u,ao(d,h))}var wY=jt(function(u,d){return function(b){return Ip(b,u,d)}}),SY=jt(function(u,d){return function(b){return Ip(u,b,d)}});function Qw(u,d,b){var R=Sr(d),F=vv(d,R);b==null&&!(jn(d)&&(F.length||!R.length))&&(b=d,d=u,u=this,F=vv(d,Sr(d)));var q=!(jn(b)&&"chain"in b)||!!b.chain,ue=cs(u);return ei(F,function(ve){var we=d[ve];u[ve]=we,ue&&(u.prototype[ve]=function(){var Fe=this.__chain__;if(q||Fe){var Me=u(this.__wrapped__),He=Me.__actions__=fi(this.__actions__);return He.push({func:we,args:arguments,thisArg:u}),Me.__chain__=Fe,Me}return we.apply(u,_n([this.value()],arguments))})}),u}function _Y(){return gr._===this&&(gr._=YK),this}function eS(){}function CY(u){return u=Pt(u),jt(function(d){return X2(d,u)})}var EY=Dw(Ut),kY=Dw($i),TY=Dw(yp);function hD(u){return Nw(u)?ci(ba(u)):rV(u)}function RY(u){return function(d){return u==null?n:yu(u,d)}}var AY=yO(),OY=yO(!0);function tS(){return[]}function nS(){return!1}function DY(){return{}}function $Y(){return""}function IY(){return!0}function PY(u,d){if(u=Pt(u),u<1||u>Z)return[];var b=M,R=Ur(u,M);d=St(d),u-=M;for(var F=pu(R,d);++b<u;)d(b);return F}function LY(u){return Dt(u)?Ut(u,ba):Pi(u)?[u]:fi(PO(un(u)))}function FY(u){var d=++qK;return un(u)+d}var MY=_v(function(u,d){return u+d},0),NY=$w("ceil"),BY=_v(function(u,d){return u/d},1),zY=$w("floor");function jY(u){return u&&u.length?mv(u,hi,vw):n}function UY(u,d){return u&&u.length?mv(u,St(d,2),vw):n}function KY(u){return Kc(u,hi)}function WY(u,d){return Kc(u,St(d,2))}function VY(u){return u&&u.length?mv(u,hi,ww):n}function HY(u,d){return u&&u.length?mv(u,St(d,2),ww):n}var qY=_v(function(u,d){return u*d},1),GY=$w("round"),YY=_v(function(u,d){return u-d},0);function XY(u){return u&&u.length?Vc(u,hi):0}function ZY(u,d){return u&&u.length?Vc(u,St(d,2)):0}return K.after=bq,K.ary=VO,K.assign=aG,K.assignIn=oD,K.assignInWith=Fv,K.assignWith=sG,K.at=lG,K.before=HO,K.bind=Ww,K.bindAll=pY,K.bindKey=qO,K.castArray=Dq,K.chain=UO,K.chunk=zV,K.compact=jV,K.concat=UV,K.cond=hY,K.conforms=gY,K.constant=Zw,K.countBy=XH,K.create=uG,K.curry=GO,K.curryRight=YO,K.debounce=XO,K.defaults=cG,K.defaultsDeep=fG,K.defer=xq,K.delay=wq,K.difference=KV,K.differenceBy=WV,K.differenceWith=VV,K.drop=HV,K.dropRight=qV,K.dropRightWhile=GV,K.dropWhile=YV,K.fill=XV,K.filter=JH,K.flatMap=tq,K.flatMapDeep=nq,K.flatMapDepth=rq,K.flatten=NO,K.flattenDeep=ZV,K.flattenDepth=JV,K.flip=Sq,K.flow=vY,K.flowRight=yY,K.fromPairs=QV,K.functions=yG,K.functionsIn=bG,K.groupBy=iq,K.initial=tH,K.intersection=nH,K.intersectionBy=rH,K.intersectionWith=iH,K.invert=wG,K.invertBy=SG,K.invokeMap=aq,K.iteratee=Jw,K.keyBy=sq,K.keys=Sr,K.keysIn=pi,K.map=Ov,K.mapKeys=CG,K.mapValues=EG,K.matches=bY,K.matchesProperty=xY,K.memoize=$v,K.merge=kG,K.mergeWith=aD,K.method=wY,K.methodOf=SY,K.mixin=Qw,K.negate=Iv,K.nthArg=CY,K.omit=TG,K.omitBy=RG,K.once=_q,K.orderBy=lq,K.over=EY,K.overArgs=Cq,K.overEvery=kY,K.overSome=TY,K.partial=Vw,K.partialRight=ZO,K.partition=uq,K.pick=AG,K.pickBy=sD,K.property=hD,K.propertyOf=RY,K.pull=lH,K.pullAll=zO,K.pullAllBy=uH,K.pullAllWith=cH,K.pullAt=fH,K.range=AY,K.rangeRight=OY,K.rearg=Eq,K.reject=dq,K.remove=dH,K.rest=kq,K.reverse=Uw,K.sampleSize=hq,K.set=DG,K.setWith=$G,K.shuffle=gq,K.slice=pH,K.sortBy=yq,K.sortedUniq=xH,K.sortedUniqBy=wH,K.split=tY,K.spread=Tq,K.tail=SH,K.take=_H,K.takeRight=CH,K.takeRightWhile=EH,K.takeWhile=kH,K.tap=jH,K.throttle=Rq,K.thru=Av,K.toArray=nD,K.toPairs=lD,K.toPairsIn=uD,K.toPath=LY,K.toPlainObject=iD,K.transform=IG,K.unary=Aq,K.union=TH,K.unionBy=RH,K.unionWith=AH,K.uniq=OH,K.uniqBy=DH,K.uniqWith=$H,K.unset=PG,K.unzip=Kw,K.unzipWith=jO,K.update=LG,K.updateWith=FG,K.values=rf,K.valuesIn=MG,K.without=IH,K.words=dD,K.wrap=Oq,K.xor=PH,K.xorBy=LH,K.xorWith=FH,K.zip=MH,K.zipObject=NH,K.zipObjectDeep=BH,K.zipWith=zH,K.entries=lD,K.entriesIn=uD,K.extend=oD,K.extendWith=Fv,Qw(K,K),K.add=MY,K.attempt=pD,K.camelCase=jG,K.capitalize=cD,K.ceil=NY,K.clamp=NG,K.clone=$q,K.cloneDeep=Pq,K.cloneDeepWith=Lq,K.cloneWith=Iq,K.conformsTo=Fq,K.deburr=fD,K.defaultTo=mY,K.divide=BY,K.endsWith=UG,K.eq=qo,K.escape=KG,K.escapeRegExp=WG,K.every=ZH,K.find=QH,K.findIndex=FO,K.findKey=dG,K.findLast=eq,K.findLastIndex=MO,K.findLastKey=pG,K.floor=zY,K.forEach=KO,K.forEachRight=WO,K.forIn=hG,K.forInRight=gG,K.forOwn=mG,K.forOwnRight=vG,K.get=Gw,K.gt=Mq,K.gte=Nq,K.has=xG,K.hasIn=Yw,K.head=BO,K.identity=hi,K.includes=oq,K.indexOf=eH,K.inRange=BG,K.invoke=_G,K.isArguments=wu,K.isArray=Dt,K.isArrayBuffer=Bq,K.isArrayLike=di,K.isArrayLikeObject=ir,K.isBoolean=zq,K.isBuffer=sl,K.isDate=jq,K.isElement=Uq,K.isEmpty=Kq,K.isEqual=Wq,K.isEqualWith=Vq,K.isError=Hw,K.isFinite=Hq,K.isFunction=cs,K.isInteger=JO,K.isLength=Pv,K.isMap=QO,K.isMatch=qq,K.isMatchWith=Gq,K.isNaN=Yq,K.isNative=Xq,K.isNil=Jq,K.isNull=Zq,K.isNumber=eD,K.isObject=jn,K.isObjectLike=Yn,K.isPlainObject=Bp,K.isRegExp=qw,K.isSafeInteger=Qq,K.isSet=tD,K.isString=Lv,K.isSymbol=Pi,K.isTypedArray=nf,K.isUndefined=eG,K.isWeakMap=tG,K.isWeakSet=nG,K.join=oH,K.kebabCase=VG,K.last=lo,K.lastIndexOf=aH,K.lowerCase=HG,K.lowerFirst=qG,K.lt=rG,K.lte=iG,K.max=jY,K.maxBy=UY,K.mean=KY,K.meanBy=WY,K.min=VY,K.minBy=HY,K.stubArray=tS,K.stubFalse=nS,K.stubObject=DY,K.stubString=$Y,K.stubTrue=IY,K.multiply=qY,K.nth=sH,K.noConflict=_Y,K.noop=eS,K.now=Dv,K.pad=GG,K.padEnd=YG,K.padStart=XG,K.parseInt=ZG,K.random=zG,K.reduce=cq,K.reduceRight=fq,K.repeat=JG,K.replace=QG,K.result=OG,K.round=GY,K.runInContext=X,K.sample=pq,K.size=mq,K.snakeCase=eY,K.some=vq,K.sortedIndex=hH,K.sortedIndexBy=gH,K.sortedIndexOf=mH,K.sortedLastIndex=vH,K.sortedLastIndexBy=yH,K.sortedLastIndexOf=bH,K.startCase=nY,K.startsWith=rY,K.subtract=YY,K.sum=XY,K.sumBy=ZY,K.template=iY,K.times=PY,K.toFinite=fs,K.toInteger=Pt,K.toLength=rD,K.toLower=oY,K.toNumber=uo,K.toSafeInteger=oG,K.toString=un,K.toUpper=aY,K.trim=sY,K.trimEnd=lY,K.trimStart=uY,K.truncate=cY,K.unescape=fY,K.uniqueId=FY,K.upperCase=dY,K.upperFirst=Xw,K.each=KO,K.eachRight=WO,K.first=BO,Qw(K,function(){var u={};return va(K,function(d,b){pn.call(K.prototype,b)||(u[b]=d)}),u}(),{chain:!1}),K.VERSION=r,ei(["bind","bindKey","curry","curryRight","partial","partialRight"],function(u){K[u].placeholder=K}),ei(["drop","take"],function(u,d){Ht.prototype[u]=function(b){b=b===n?1:mr(Pt(b),0);var R=this.__filtered__&&!d?new Ht(this):this.clone();return R.__filtered__?R.__takeCount__=Ur(b,R.__takeCount__):R.__views__.push({size:Ur(b,M),type:u+(R.__dir__<0?"Right":"")}),R},Ht.prototype[u+"Right"]=function(b){return this.reverse()[u](b).reverse()}}),ei(["filter","map","takeWhile"],function(u,d){var b=d+1,R=b==ie||b==L;Ht.prototype[u]=function(F){var q=this.clone();return q.__iteratees__.push({iteratee:St(F,3),type:b}),q.__filtered__=q.__filtered__||R,q}}),ei(["head","last"],function(u,d){var b="take"+(d?"Right":"");Ht.prototype[u]=function(){return this[b](1).value()[0]}}),ei(["initial","tail"],function(u,d){var b="drop"+(d?"":"Right");Ht.prototype[u]=function(){return this.__filtered__?new Ht(this):this[b](1)}}),Ht.prototype.compact=function(){return this.filter(hi)},Ht.prototype.find=function(u){return this.filter(u).head()},Ht.prototype.findLast=function(u){return this.reverse().find(u)},Ht.prototype.invokeMap=jt(function(u,d){return typeof u=="function"?new Ht(this):this.map(function(b){return Ip(b,u,d)})}),Ht.prototype.reject=function(u){return this.filter(Iv(St(u)))},Ht.prototype.slice=function(u,d){u=Pt(u);var b=this;return b.__filtered__&&(u>0||d<0)?new Ht(b):(u<0?b=b.takeRight(-u):u&&(b=b.drop(u)),d!==n&&(d=Pt(d),b=d<0?b.dropRight(-d):b.take(d-u)),b)},Ht.prototype.takeRightWhile=function(u){return this.reverse().takeWhile(u).reverse()},Ht.prototype.toArray=function(){return this.take(M)},va(Ht.prototype,function(u,d){var b=/^(?:filter|find|map|reject)|While$/.test(d),R=/^(?:head|last)$/.test(d),F=K[R?"take"+(d=="last"?"Right":""):d],q=R||/^find/.test(d);F&&(K.prototype[d]=function(){var ue=this.__wrapped__,ve=R?[1]:arguments,we=ue instanceof Ht,Fe=ve[0],Me=we||Dt(ue),He=function(Wt){var Yt=F.apply(K,_n([Wt],ve));return R&&it?Yt[0]:Yt};Me&&b&&typeof Fe=="function"&&Fe.length!=1&&(we=Me=!1);var it=this.__chain__,ht=!!this.__actions__.length,Et=q&&!it,Mt=we&&!ht;if(!q&&Me){ue=Mt?ue:new Ht(this);var kt=u.apply(ue,ve);return kt.__actions__.push({func:Av,args:[He],thisArg:n}),new oo(kt,it)}return Et&&Mt?u.apply(this,ve):(kt=this.thru(He),Et?R?kt.value()[0]:kt.value():kt)})}),ei(["pop","push","shift","sort","splice","unshift"],function(u){var d=tv[u],b=/^(?:push|sort|unshift)$/.test(u)?"tap":"thru",R=/^(?:pop|shift)$/.test(u);K.prototype[u]=function(){var F=arguments;if(R&&!this.__chain__){var q=this.value();return d.apply(Dt(q)?q:[],F)}return this[b](function(ue){return d.apply(Dt(ue)?ue:[],F)})}}),va(Ht.prototype,function(u,d){var b=K[d];if(b){var R=b.name+"";pn.call(Zc,R)||(Zc[R]=[]),Zc[R].push({name:d,func:b})}}),Zc[Sv(n,x).name]=[{name:"wrapper",func:n}],Ht.prototype.clone=fW,Ht.prototype.reverse=dW,Ht.prototype.value=pW,K.prototype.at=UH,K.prototype.chain=KH,K.prototype.commit=WH,K.prototype.next=VH,K.prototype.plant=qH,K.prototype.reverse=GH,K.prototype.toJSON=K.prototype.valueOf=K.prototype.value=YH,K.prototype.first=K.prototype.head,kp&&(K.prototype[kp]=HH),K},De=Oe();ns?((ns.exports=De)._=De,uu._=De):gr._=De}).call(Ui)})(I1,I1.exports);var Z7e=I1.exports,b2={},J7e=Pn;Object.defineProperty(b2,"__esModule",{value:!0});var gK=b2.default=void 0,Q7e=J7e(Ln()),eKe=k,tKe=(0,Q7e.default)((0,eKe.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");gK=b2.default=tKe;const nKe=je("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"}})),iB=je("div")(()=>({display:"flex",alignItems:"center",justifyContent:"center"})),rKe=je(rx)(({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 iKe(){const[e,t]=Qi(tw),n=a=>{a=a.trim(),t({...e,search:a===""?void 0:a})},r=Z7e.debounce(n,300),i=T.useRef(),o=()=>{r(""),i.current&&(i.current.value="")};return k.jsxs(nKe,{children:[k.jsx(iB,{sx:{position:"absolute",pointerEvents:"none",height:"100%",paddingX:1},children:k.jsx(gK,{})}),k.jsx(rKe,{placeholder:"Search messages...",inputProps:{"aria-label":"search",ref:i},onChange:a=>r(a.target.value)}),k.jsx(iB,{children:k.jsx(Br,{onClick:o,children:k.jsx(Hd,{})})})]})}function oKe(){return k.jsxs(In,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[k.jsx(iKe,{}),k.jsxs(In,{direction:"row",alignItems:"center",spacing:2,children:[k.jsx(X7e,{}),k.jsx(Y7e,{})]})]})}function aKe(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,r=e.startIndex,i=e.stopIndex;return!(r>n||i<t)}function sKe(e){for(var t=e.isItemLoaded,n=e.itemCount,r=e.minimumBatchSize,i=e.startIndex,o=e.stopIndex,a=[],s=null,l=null,c=i;c<=o;c++){var f=t(c);f?l!==null&&(a.push(s,l),s=l=null):(l=c,s===null&&(s=c))}if(l!==null){for(var h=Math.min(Math.max(l,s+r-1),n-1),p=l+1;p<=h&&!t(p);p++)l=p;a.push(s,l)}if(a.length)for(;a[1]-a[0]+1<r&&a[0]>0;){var y=a[0]-1;if(!t(y))a[0]=y;else break}return a}var lKe=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},uKe=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}}(),cKe=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)},oB=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},fKe=function(e){cKe(t,e);function t(){var n,r,i,o;lKe(this,t);for(var a=arguments.length,s=Array(a),l=0;l<a;l++)s[l]=arguments[l];return o=(r=(i=oB(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(c){var f=c.visibleStartIndex,h=c.visibleStopIndex;i._lastRenderedStartIndex=f,i._lastRenderedStopIndex=h,i._ensureRowsLoaded(f,h)},i._setRef=function(c){i._listRef=c},r),oB(i,o)}return uKe(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,c=l===void 0?10:l,f=o.threshold,h=f===void 0?15:f,p=sKe({isItemLoaded:a,itemCount:s,minimumBatchSize:c,startIndex:Math.max(0,r-h),stopIndex:Math.min(s-1,i+h)});(this._memoizedUnloadedRanges.length!==p.length||this._memoizedUnloadedRanges.some(function(y,m){return p[m]!==y}))&&(this._memoizedUnloadedRanges=p,this._loadUnloadedRanges(p))}},{key:"_loadUnloadedRanges",value:function(r){for(var i=this,o=this.props.loadMoreItems||this.props.loadMoreRows,a=function(c){var f=r[c],h=r[c+1],p=o(f,h);p!=null&&p.then(function(){if(aKe({lastRenderedStartIndex:i._lastRenderedStartIndex,lastRenderedStopIndex:i._lastRenderedStopIndex,startIndex:f,stopIndex:h})){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),aB=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function dKe(e,t){return!!(e===t||aB(e)&&aB(t))}function pKe(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!dKe(e[n],t[n]))return!1;return!0}function sC(e,t){t===void 0&&(t=pKe);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 hKe=typeof performance=="object"&&typeof performance.now=="function",sB=hKe?function(){return performance.now()}:function(){return Date.now()};function lB(e){cancelAnimationFrame(e.id)}function gKe(e,t){var n=sB();function r(){sB()-n>=t?e.call(null):i.id=requestAnimationFrame(r)}var i={id:requestAnimationFrame(r)};return i}var lC=-1;function uB(e){if(e===void 0&&(e=!1),lC===-1||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),lC=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return lC}var wf=null;function cB(e){if(e===void 0&&(e=!1),wf===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?wf="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?wf="negative":wf="positive-ascending"),document.body.removeChild(t),wf}return wf}var mKe=150,vKe=function(t,n){return t};function yKe(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,i=e.getItemSize,o=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,f=e.validateProps;return t=function(h){TR(p,h);function p(m){var v;return v=h.call(this,m)||this,v._instanceProps=l(v.props,s1(v)),v._outerRef=void 0,v._resetIsScrollingTimeoutId=null,v.state={instance:s1(v),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof v.props.initialScrollOffset=="number"?v.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},v._callOnItemsRendered=void 0,v._callOnItemsRendered=sC(function(S,x,w,C){return v.props.onItemsRendered({overscanStartIndex:S,overscanStopIndex:x,visibleStartIndex:w,visibleStopIndex:C})}),v._callOnScroll=void 0,v._callOnScroll=sC(function(S,x,w){return v.props.onScroll({scrollDirection:S,scrollOffset:x,scrollUpdateWasRequested:w})}),v._getItemStyle=void 0,v._getItemStyle=function(S){var x=v.props,w=x.direction,C=x.itemSize,E=x.layout,O=v._getItemStyleCache(c&&C,c&&E,c&&w),$;if(O.hasOwnProperty(S))$=O[S];else{var I=n(v.props,S,v._instanceProps),W=i(v.props,S,v._instanceProps),H=w==="horizontal"||E==="horizontal",j=w==="rtl",U=H?I:0;O[S]=$={position:"absolute",left:j?void 0:U,right:j?U:void 0,top:H?0:I,height:H?"100%":W,width:H?W:"100%"}}return $},v._getItemStyleCache=void 0,v._getItemStyleCache=sC(function(S,x,w){return{}}),v._onScrollHorizontal=function(S){var x=S.currentTarget,w=x.clientWidth,C=x.scrollLeft,E=x.scrollWidth;v.setState(function(O){if(O.scrollOffset===C)return null;var $=v.props.direction,I=C;if($==="rtl")switch(cB()){case"negative":I=-C;break;case"positive-descending":I=E-w-C;break}return I=Math.max(0,Math.min(I,E-w)),{isScrolling:!0,scrollDirection:O.scrollOffset<C?"forward":"backward",scrollOffset:I,scrollUpdateWasRequested:!1}},v._resetIsScrollingDebounced)},v._onScrollVertical=function(S){var x=S.currentTarget,w=x.clientHeight,C=x.scrollHeight,E=x.scrollTop;v.setState(function(O){if(O.scrollOffset===E)return null;var $=Math.max(0,Math.min(E,C-w));return{isScrolling:!0,scrollDirection:O.scrollOffset<$?"forward":"backward",scrollOffset:$,scrollUpdateWasRequested:!1}},v._resetIsScrollingDebounced)},v._outerRefSetter=function(S){var x=v.props.outerRef;v._outerRef=S,typeof x=="function"?x(S):x!=null&&typeof x=="object"&&x.hasOwnProperty("current")&&(x.current=S)},v._resetIsScrollingDebounced=function(){v._resetIsScrollingTimeoutId!==null&&lB(v._resetIsScrollingTimeoutId),v._resetIsScrollingTimeoutId=gKe(v._resetIsScrolling,mKe)},v._resetIsScrolling=function(){v._resetIsScrollingTimeoutId=null,v.setState({isScrolling:!1},function(){v._getItemStyleCache(-1,null)})},v}p.getDerivedStateFromProps=function(v,S){return bKe(v,S),f(v),null};var y=p.prototype;return y.scrollTo=function(v){v=Math.max(0,v),this.setState(function(S){return S.scrollOffset===v?null:{scrollDirection:S.scrollOffset<v?"forward":"backward",scrollOffset:v,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},y.scrollToItem=function(v,S){S===void 0&&(S="auto");var x=this.props,w=x.itemCount,C=x.layout,E=this.state.scrollOffset;v=Math.max(0,Math.min(v,w-1));var O=0;if(this._outerRef){var $=this._outerRef;C==="vertical"?O=$.scrollWidth>$.clientWidth?uB():0:O=$.scrollHeight>$.clientHeight?uB():0}this.scrollTo(o(this.props,v,S,E,this._instanceProps,O))},y.componentDidMount=function(){var v=this.props,S=v.direction,x=v.initialScrollOffset,w=v.layout;if(typeof x=="number"&&this._outerRef!=null){var C=this._outerRef;S==="horizontal"||w==="horizontal"?C.scrollLeft=x:C.scrollTop=x}this._callPropsCallbacks()},y.componentDidUpdate=function(){var v=this.props,S=v.direction,x=v.layout,w=this.state,C=w.scrollOffset,E=w.scrollUpdateWasRequested;if(E&&this._outerRef!=null){var O=this._outerRef;if(S==="horizontal"||x==="horizontal")if(S==="rtl")switch(cB()){case"negative":O.scrollLeft=-C;break;case"positive-ascending":O.scrollLeft=C;break;default:var $=O.clientWidth,I=O.scrollWidth;O.scrollLeft=I-$-C;break}else O.scrollLeft=C;else O.scrollTop=C}this._callPropsCallbacks()},y.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&lB(this._resetIsScrollingTimeoutId)},y.render=function(){var v=this.props,S=v.children,x=v.className,w=v.direction,C=v.height,E=v.innerRef,O=v.innerElementType,$=v.innerTagName,I=v.itemCount,W=v.itemData,H=v.itemKey,j=H===void 0?vKe:H,U=v.layout,le=v.outerElementType,se=v.outerTagName,ie=v.style,Q=v.useIsScrolling,L=v.width,te=this.state.isScrolling,Z=w==="horizontal"||U==="horizontal",ee=Z?this._onScrollHorizontal:this._onScrollVertical,Y=this._getRangeToRender(),M=Y[0],A=Y[1],ne=[];if(I>0)for(var oe=M;oe<=A;oe++)ne.push(T.createElement(S,{data:W,key:j(oe,W),index:oe,isScrolling:Q?te:void 0,style:this._getItemStyle(oe)}));var ce=r(this.props,this._instanceProps);return T.createElement(le||se||"div",{className:x,onScroll:ee,ref:this._outerRefSetter,style:z({position:"relative",height:C,width:L,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:w},ie)},T.createElement(O||$||"div",{children:ne,ref:E,style:{height:Z?"100%":ce,pointerEvents:te?"none":void 0,width:Z?ce:"100%"}}))},y._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var v=this.props.itemCount;if(v>0){var S=this._getRangeToRender(),x=S[0],w=S[1],C=S[2],E=S[3];this._callOnItemsRendered(x,w,C,E)}}if(typeof this.props.onScroll=="function"){var O=this.state,$=O.scrollDirection,I=O.scrollOffset,W=O.scrollUpdateWasRequested;this._callOnScroll($,I,W)}},y._getRangeToRender=function(){var v=this.props,S=v.itemCount,x=v.overscanCount,w=this.state,C=w.isScrolling,E=w.scrollDirection,O=w.scrollOffset;if(S===0)return[0,0,0,0];var $=a(this.props,O,this._instanceProps),I=s(this.props,$,O,this._instanceProps),W=!C||E==="backward"?Math.max(1,x):1,H=!C||E==="forward"?Math.max(1,x):1;return[Math.max(0,$-W),Math.max(0,Math.min(S-1,I+H)),$,I]},p}(T.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var bKe=function(t,n){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,n.instance},xKe=yKe({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,c=t.itemCount,f=t.itemSize,h=t.layout,p=t.width,y=s==="horizontal"||h==="horizontal",m=y?p:l,v=Math.max(0,c*f-m),S=Math.min(v,n*f),x=Math.max(0,n*f-m+f+a);switch(r==="smart"&&(i>=x-m&&i<=S+m?r="auto":r="center"),r){case"start":return S;case"end":return x;case"center":{var w=Math.round(x+(S-x)/2);return w<Math.ceil(m/2)?0:w>v+Math.floor(m/2)?v:w}case"auto":default:return i>=x&&i<=S?i:i<x?x:S}},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,c=t.width,f=i==="horizontal"||l==="horizontal",h=n*s,p=f?c:o,y=Math.ceil((p+r-h)/s);return Math.max(0,Math.min(a-1,n+y-1))},initInstanceProps:function(t){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(t){t.itemSize}}),wKe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{},mK={};let To;typeof window<"u"?To=window:typeof self<"u"?To=self:To=wKe;let Dk=null,$k=null;const fB=20,uC=To.clearTimeout,dB=To.setTimeout,cC=To.cancelAnimationFrame||To.mozCancelAnimationFrame||To.webkitCancelAnimationFrame,pB=To.requestAnimationFrame||To.mozRequestAnimationFrame||To.webkitRequestAnimationFrame;cC==null||pB==null?(Dk=uC,$k=function(t){return dB(t,fB)}):(Dk=function([t,n]){cC(t),uC(n)},$k=function(t){const n=pB(function(){uC(r),t()}),r=dB(function(){cC(n),t()},fB);return[n,r]});function SKe(e){let t,n,r,i,o,a,s;const l=typeof document<"u"&&document.attachEvent;if(!l){a=function(x){const w=x.__resizeTriggers__,C=w.firstElementChild,E=w.lastElementChild,O=C.firstElementChild;E.scrollLeft=E.scrollWidth,E.scrollTop=E.scrollHeight,O.style.width=C.offsetWidth+1+"px",O.style.height=C.offsetHeight+1+"px",C.scrollLeft=C.scrollWidth,C.scrollTop=C.scrollHeight},o=function(x){return x.offsetWidth!==x.__resizeLast__.width||x.offsetHeight!==x.__resizeLast__.height},s=function(x){if(x.target.className&&typeof x.target.className.indexOf=="function"&&x.target.className.indexOf("contract-trigger")<0&&x.target.className.indexOf("expand-trigger")<0)return;const w=this;a(this),this.__resizeRAF__&&Dk(this.__resizeRAF__),this.__resizeRAF__=$k(function(){o(w)&&(w.__resizeLast__.width=w.offsetWidth,w.__resizeLast__.height=w.offsetHeight,w.__resizeListeners__.forEach(function(O){O.call(w,x)}))})};let p=!1,y="";r="animationstart";const m="Webkit Moz O ms".split(" ");let v="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),S="";{const x=document.createElement("fakeelement");if(x.style.animationName!==void 0&&(p=!0),p===!1){for(let w=0;w<m.length;w++)if(x.style[m[w]+"AnimationName"]!==void 0){S=m[w],y="-"+S.toLowerCase()+"-",r=v[w],p=!0;break}}}n="resizeanim",t="@"+y+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",i=y+"animation: 1ms "+n+"; "}const c=function(p){if(!p.getElementById("detectElementResize")){const y=(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%; }',m=p.head||p.getElementsByTagName("head")[0],v=p.createElement("style");v.id="detectElementResize",v.type="text/css",e!=null&&v.setAttribute("nonce",e),v.styleSheet?v.styleSheet.cssText=y:v.appendChild(p.createTextNode(y)),m.appendChild(v)}};return{addResizeListener:function(p,y){if(l)p.attachEvent("onresize",y);else{if(!p.__resizeTriggers__){const m=p.ownerDocument,v=To.getComputedStyle(p);v&&v.position==="static"&&(p.style.position="relative"),c(m),p.__resizeLast__={},p.__resizeListeners__=[],(p.__resizeTriggers__=m.createElement("div")).className="resize-triggers";const S=m.createElement("div");S.className="expand-trigger",S.appendChild(m.createElement("div"));const x=m.createElement("div");x.className="contract-trigger",p.__resizeTriggers__.appendChild(S),p.__resizeTriggers__.appendChild(x),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(y)}},removeResizeListener:function(p,y){if(l)p.detachEvent("onresize",y);else if(p.__resizeListeners__.splice(p.__resizeListeners__.indexOf(y),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{}}}}}mK={createDetectElementResize:SKe};class vK extends T.Component{constructor(){super(...arguments);lr(this,"state",{height:this.props.defaultHeight||0,width:this.props.defaultWidth||0});lr(this,"_parentNode",null);lr(this,"_autoSizer",null);lr(this,"_detectElementResize",null);lr(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)||{},c=parseInt(l.paddingLeft,10)||0,f=parseInt(l.paddingRight,10)||0,h=parseInt(l.paddingTop,10)||0,p=parseInt(l.paddingBottom,10)||0,y=a-h-p,m=s-c-f;(!n&&this.state.height!==y||!r&&this.state.width!==m)&&(this.setState({height:a-h-p,width:s-c-f}),typeof i=="function"&&i({height:a,width:s}))}});lr(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,mK.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:c,tagName:f="div",...h}=this.props,{height:p,width:y}=this.state,m={overflow:"visible"},v={};let S=!1;return o||(p===0&&(S=!0),m.height=0,v.height=p),a||(y===0&&(S=!0),m.width=0,v.width=y),T.createElement(f,{ref:this._setRef,style:{...m,...c},...h},!S&&n(v))}}lr(vK,"defaultProps",{onResize:()=>{},disableHeight:!1,disableWidth:!1,style:{}});var _Ke=vK,x2={},CKe=Pn;Object.defineProperty(x2,"__esModule",{value:!0});var yK=x2.default=void 0,EKe=CKe(Ln()),kKe=k,TKe=(0,EKe.default)((0,kKe.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");yK=x2.default=TKe;function RKe({conversationId:e,onDelete:t}){const[n,r]=T.useState(!1),i=Tt(nu),o=()=>{r(!0)},a=()=>{r(!1)},s=async()=>{await dU.promise(i.deleteConversation(e),{loading:"Deleting conversation...",success:"Conversation deleted!",error:l=>l instanceof Error?k.jsx("span",{children:l.message}):k.jsx("span",{})}),t(),a()};return k.jsxs("div",{children:[k.jsx(Br,{className:"delete-conversation-button",size:"small",color:"error",onClick:o,children:k.jsx(yK,{})}),n&&k.jsxs(ox,{open:n,onClose:a,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",PaperProps:{sx:{backgroundImage:"none"}},children:[k.jsx(DR,{id:"alert-dialog-title",children:"Delete conversation?"}),k.jsx(ax,{children:k.jsx(f5,{id:"alert-dialog-description",children:"This will delete the conversation as well as it's messages and elements."})}),k.jsxs(c5,{sx:{color:"text.secondary",p:2},children:[k.jsx(mc,{variant:"outlined",color:"inherit",onClick:a,children:"Cancel"}),k.jsx(Ex,{variant:"outlined",color:"primary",onClick:s,autoFocus:!0,children:"Confirm"})]})]})]})}var w2={},AKe=Pn;Object.defineProperty(w2,"__esModule",{value:!0});var bK=w2.default=void 0,OKe=AKe(Ln()),DKe=k,$Ke=(0,OKe.default)((0,DKe.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");bK=w2.default=$Ke;function IKe({conversationId:e}){return k.jsx(Br,{className:"open-conversation-button",component:fm,to:`/conversations/${e}`,size:"small",color:"primary",children:k.jsx(bK,{})})}const PKe=30,LKe=e=>{const t={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric"};return new Date(e).toLocaleDateString(void 0,t)};function FKe(){const e=Tt(tw),[t,n]=T.useState([]),[r,i]=T.useState(),o=Tt(nu),[a,s]=T.useState(void 0),[l,c]=T.useState(!0),f=T.useCallback(async w=>{try{const{pageInfo:C,data:E}=await o.getConversations({first:PKe,cursor:w},e);i(C),s(void 0),n(O=>[...O,...E])}catch(C){C instanceof Error&&s(C.message)}finally{c(!1)}},[o,e]),h=T.useCallback(async()=>{n([]),c(!0),i(void 0),f(void 0)},[f]);T.useEffect(()=>{h()},[e,o]);const p=T.useCallback(()=>{r!=null&&r.hasNextPage&&f(r.endCursor)},[r]);if(a)return k.jsx(Wl,{severity:"error",children:a.message});if(l)return k.jsx(fn,{color:"text.primary",children:"Loading..."});const y=t.length;if(y===0)return k.jsx(Wl,{severity:"info",children:"No result"});const m={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%"}},v=({text:w,col:C})=>k.jsx(fn,{noWrap:!0,sx:{width:C.width,minWidth:C.minWidth,fontSize:"0.875rem"},color:"text.primary",children:w}),S=({index:w,style:C})=>{var O,$;const E=t[w];return k.jsxs(At,{className:"conversation-row",style:C,sx:{display:"flex",alignItems:"center",borderBottom:I=>`1px solid ${I.palette.divider}`},children:[k.jsx(v,{text:E.id,col:m.Id}),k.jsx(v,{text:((O=E.author)==null?void 0:O.email)||"LocalUser",col:m.Author}),k.jsx(v,{text:($=E.messages[0])==null?void 0:$.content,col:m.Input}),k.jsx(v,{text:LKe(E.createdAt),col:m.Date}),k.jsxs(In,{direction:"row",sx:{width:m.Actions.width,minWidth:m.Actions.minWidth},children:[k.jsx(IKe,{conversationId:E.id}),k.jsx(RKe,{conversationId:E.id,onDelete:()=>h()})]})]})},x=Object.entries(m).map(([w,C])=>k.jsx(fn,{sx:{fontSize:"0.875rem",width:C.width,minWidth:C.minWidth},color:"primary",children:w},w));return k.jsxs(At,{sx:{height:"100%",display:"flex",flexDirection:"column"},children:[k.jsx(At,{sx:{display:"flex",alignItems:"center",height:"40px",borderBottom:w=>`1px solid ${w.palette.divider}`},children:x}),k.jsx(At,{flexGrow:1,children:k.jsx(_Ke,{children:({height:w,width:C})=>k.jsx(fKe,{isItemLoaded:E=>!!t[E],itemCount:r!=null&&r.hasNextPage?y+1:y,loadMoreItems:p,children:({onItemsRendered:E,ref:O})=>k.jsx(xKe,{height:w,width:C,itemSize:55,itemCount:y,onItemsRendered:E,ref:O,children:S})})})})]})}function MKe(){return k.jsxs(At,{display:"flex",flexDirection:"column",width:"100%",maxWidth:"60rem",mx:"auto",flexGrow:1,children:[k.jsx(At,{my:2}),k.jsx(oKe,{}),k.jsx(At,{my:2}),k.jsx(FKe,{})]})}function NKe(){var t;const e=Tt(Mo);return(t=e==null?void 0:e.project)!=null&&t.database?k.jsx($m,{children:k.jsx(MKe,{})}):null}function BKe(){const{id:e}=U5(),t=Tt(nu),[n,r]=T.useState(),[i,o]=T.useState();if(T.useEffect(()=>{e&&(r(void 0),t.getConversation(parseInt(e,10)).then(l=>o(l)).catch(l=>{r(l.message)}))},[t,e]),!i||n)return null;const a=i.elements,s=[];return k.jsxs(At,{display:"flex",flexGrow:1,width:"100%",overflow:"scroll",children:[k.jsx(R7,{}),k.jsxs(At,{flexGrow:1,display:"flex",flexDirection:"column",overflow:"auto",boxSizing:"border-box",px:{xs:2,md:0},children:[k.jsx(At,{my:1}),k.jsx($U,{actions:s,elements:a,messages:i.messages})]}),k.jsx(H7,{})]})}function zKe(){const[e,t]=Qi(px),n=Tt(Mo),r=yc(),i=(n==null?void 0:n.project.user_env)||[],o={},a={};i.forEach(f=>{o[f]=e[f]||"",a[f]=R1().required()});const s=zA(a),l=C7({initialValues:o,validationSchema:s,onSubmit:async f=>{localStorage.setItem("userEnv",JSON.stringify(f)),t(f),Er.success("Saved successfully"),r("/")}});i.length===0&&r("/");const c=f=>k.jsxs(At,{my:2,children:[k.jsx(Vl,{children:f}),k.jsx(FR,{fullWidth:!0,className:f,variant:"outlined",value:l.values[f],error:!!l.errors[f],onChange:h=>l.setFieldValue(f,h.target.value)})]},f);return k.jsxs(At,{sx:{display:"flex",flexDirection:"column",flexGrow:1},children:[k.jsx(hK,{}),k.jsxs(At,{id:"env",display:"flex",flexDirection:"column",flexGrow:1,gap:2,sx:{maxWidth:"60rem",width:"100%",mx:"auto"},children:[k.jsx(fn,{mt:5,fontSize:"18px",fontWeight:700,color:"text.primary",children:"Required API keys"}),k.jsx(Wl,{severity:"info",children:"To use this app, the following API keys are required. The keys are stored on your device's local storage."}),k.jsxs("form",{onSubmit:l.handleSubmit,children:[i.map(f=>c(f)),k.jsx(mc,{id:"submit-env",fullWidth:!0,type:"submit",variant:"contained",children:"Save"})]})]})]})}const Va=Object.create(null);Va.open="0";Va.close="1";Va.ping="2";Va.pong="3";Va.message="4";Va.upgrade="5";Va.noop="6";const _0=Object.create(null);Object.keys(Va).forEach(e=>{_0[Va[e]]=e});const jKe={type:"error",data:"parser error"},UKe=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",KKe=typeof ArrayBuffer=="function",WKe=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,xK=({type:e,data:t},n,r)=>UKe&&t instanceof Blob?n?r(t):hB(t,r):KKe&&(t instanceof ArrayBuffer||WKe(t))?n?r(t):hB(new Blob([t]),r):r(Va[e]+(t||"")),hB=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)},gB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Mh=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<gB.length;e++)Mh[gB.charCodeAt(e)]=e;const VKe=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 c=new ArrayBuffer(t),f=new Uint8Array(c);for(r=0;r<n;r+=4)o=Mh[e.charCodeAt(r)],a=Mh[e.charCodeAt(r+1)],s=Mh[e.charCodeAt(r+2)],l=Mh[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 c},HKe=typeof ArrayBuffer=="function",wK=(e,t)=>{if(typeof e!="string")return{type:"message",data:SK(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:qKe(e.substring(1),t)}:_0[n]?e.length>1?{type:_0[n],data:e.substring(1)}:{type:_0[n]}:jKe},qKe=(e,t)=>{if(HKe){const n=VKe(e);return SK(n,t)}else return{base64:!0,data:e}},SK=(e,t)=>{switch(t){case"blob":return e instanceof ArrayBuffer?new Blob([e]):e;case"arraybuffer":default:return e}},_K=String.fromCharCode(30),GKe=(e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach((o,a)=>{xK(o,!1,s=>{r[a]=s,++i===n&&t(r.join(_K))})})},YKe=(e,t)=>{const n=e.split(_K),r=[];for(let i=0;i<n.length;i++){const o=wK(n[i],t);if(r.push(o),o.type==="error")break}return r},CK=4;function hr(e){if(e)return XKe(e)}function XKe(e){for(var t in hr.prototype)e[t]=hr.prototype[t];return e}hr.prototype.on=hr.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};hr.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};hr.prototype.off=hr.prototype.removeListener=hr.prototype.removeAllListeners=hr.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};hr.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};hr.prototype.emitReserved=hr.prototype.emit;hr.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};hr.prototype.hasListeners=function(e){return!!this.listeners(e).length};const xo=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function EK(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const ZKe=xo.setTimeout,JKe=xo.clearTimeout;function nw(e,t){t.useNativeTimers?(e.setTimeoutFn=ZKe.bind(xo),e.clearTimeoutFn=JKe.bind(xo)):(e.setTimeoutFn=xo.setTimeout.bind(xo),e.clearTimeoutFn=xo.clearTimeout.bind(xo))}const QKe=1.33;function eWe(e){return typeof e=="string"?tWe(e):Math.ceil((e.byteLength||e.size)*QKe)}function tWe(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 nWe extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class kK extends hr{constructor(t){super(),this.writable=!1,nw(this,t),this.opts=t,this.query=t.query,this.socket=t.socket}onError(t,n,r){return super.emitReserved("error",new nWe(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=wK(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 TK="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),Ik=64,rWe={};let mB=0,Uy=0,vB;function yB(e){let t="";do t=TK[e%Ik]+t,e=Math.floor(e/Ik);while(e>0);return t}function RK(){const e=yB(+new Date);return e!==vB?(mB=0,vB=e):e+"."+yB(mB++)}for(;Uy<Ik;Uy++)rWe[TK[Uy]]=Uy;function AK(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function iWe(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 OK=!1;try{OK=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const oWe=OK;function DK(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||oWe))return new XMLHttpRequest}catch{}if(!t)try{return new xo[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function aWe(){}const sWe=function(){return new DK({xdomain:!1}).responseType!=null}();class lWe extends kK{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=sWe&&!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)};YKe(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,GKe(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]=RK()),!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=AK(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 ad(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 ad=class C0 extends hr{constructor(t,n){super(),nw(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=EK(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 DK(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=C0.requestsCount++,C0.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=aWe,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete C0.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()}};ad.requestsCount=0;ad.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",bB);else if(typeof addEventListener=="function"){const e="onpagehide"in xo?"pagehide":"unload";addEventListener(e,bB,!1)}}function bB(){for(let e in ad.requests)ad.requests.hasOwnProperty(e)&&ad.requests[e].abort()}const $K=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0))(),Ky=xo.WebSocket||xo.MozWebSocket,xB=!0,uWe="arraybuffer",wB=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class cWe extends kK{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=wB?{}:EK(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=xB&&!wB?n?new Ky(t,n):new Ky(t):new Ky(t,n,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType||uWe,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;xK(r,this.supportsBinary,o=>{const a={};try{xB&&this.ws.send(o)}catch{}i&&$K(()=>{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]=RK()),this.supportsBinary||(t.b64=1);const i=AK(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!!Ky}}const fWe={websocket:cWe,polling:lWe},dWe=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,pWe=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Pk(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=dWe.exec(e||""),o={},a=14;for(;a--;)o[pWe[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=hWe(o,o.path),o.queryKey=gWe(o,o.query),o}function hWe(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 gWe(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,o){i&&(n[i]=o)}),n}let IK=class kf extends hr{constructor(t,n={}){super(),this.writeBuffer=[],t&&typeof t=="object"&&(n=t,t=null),t?(t=Pk(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=Pk(n.host).host),nw(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=iWe(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=CK,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 fWe[t](r)}open(){let t;if(this.opts.rememberUpgrade&&kf.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;kf.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",h=>{if(!r)if(h.type==="pong"&&h.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;kf.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=h=>{const p=new Error("probe error: "+h);p.transport=n.name,o(),this.emitReserved("upgradeError",p)};function s(){a("transport closed")}function l(){a("socket closed")}function c(h){n&&h.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",c)};n.once("open",i),n.once("error",a),n.once("close",s),this.once("close",l),this.once("upgrading",c),n.open()}onOpen(){if(this.readyState="open",kf.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+=eWe(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){kf.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}};IK.protocol=CK;function mWe(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=Pk(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 vWe=typeof ArrayBuffer=="function",yWe=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,PK=Object.prototype.toString,bWe=typeof Blob=="function"||typeof Blob<"u"&&PK.call(Blob)==="[object BlobConstructor]",xWe=typeof File=="function"||typeof File<"u"&&PK.call(File)==="[object FileConstructor]";function S2(e){return vWe&&(e instanceof ArrayBuffer||yWe(e))||bWe&&e instanceof Blob||xWe&&e instanceof File}function E0(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(E0(e[n]))return!0;return!1}if(S2(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return E0(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&E0(e[n]))return!0;return!1}function wWe(e){const t=[],n=e.data,r=e;return r.data=Lk(n,t),r.attachments=t.length,{packet:r,buffers:t}}function Lk(e,t){if(!e)return e;if(S2(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]=Lk(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]=Lk(e[r],t));return n}return e}function SWe(e,t){return e.data=Fk(e.data,t),delete e.attachments,e}function Fk(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]=Fk(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=Fk(e[n],t));return e}const _We=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],CWe=5;var Xt;(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"})(Xt||(Xt={}));class EWe{constructor(t){this.replacer=t}encode(t){return(t.type===Xt.EVENT||t.type===Xt.ACK)&&E0(t)?this.encodeAsBinary({type:t.type===Xt.EVENT?Xt.BINARY_EVENT:Xt.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===Xt.BINARY_EVENT||t.type===Xt.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=wWe(t),r=this.encodeAsString(n.packet),i=n.buffers;return i.unshift(r),i}}function SB(e){return Object.prototype.toString.call(e)==="[object Object]"}class _2 extends hr{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===Xt.BINARY_EVENT;r||n.type===Xt.BINARY_ACK?(n.type=r?Xt.EVENT:Xt.ACK,this.reconstructor=new kWe(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(S2(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(Xt[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===Xt.BINARY_EVENT||r.type===Xt.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(_2.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 Xt.CONNECT:return SB(n);case Xt.DISCONNECT:return n===void 0;case Xt.CONNECT_ERROR:return typeof n=="string"||SB(n);case Xt.EVENT:case Xt.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&_We.indexOf(n[0])===-1);case Xt.ACK:case Xt.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class kWe{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=SWe(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const TWe=Object.freeze(Object.defineProperty({__proto__:null,Decoder:_2,Encoder:EWe,get PacketType(){return Xt},protocol:CWe},Symbol.toStringTag,{value:"Module"}));function ra(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const RWe=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});let LK=class extends hr{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=[ra(t,"open",this.onopen.bind(this)),ra(t,"packet",this.onpacket.bind(this)),ra(t,"error",this.onerror.bind(this)),ra(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(RWe.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:Xt.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:Xt.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 Xt.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 Xt.EVENT:case Xt.BINARY_EVENT:this.onevent(t);break;case Xt.ACK:case Xt.BINARY_ACK:this.onack(t);break;case Xt.DISCONNECT:this.ondisconnect();break;case Xt.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:Xt.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:Xt.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 Gd(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}Gd.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};Gd.prototype.reset=function(){this.attempts=0};Gd.prototype.setMin=function(e){this.ms=e};Gd.prototype.setMax=function(e){this.max=e};Gd.prototype.setJitter=function(e){this.jitter=e};class Mk extends hr{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,nw(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 Gd({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||TWe;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 IK(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=ra(n,"open",function(){r.onopen(),t&&t()}),o=ra(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(ra(t,"ping",this.onping.bind(this)),ra(t,"data",this.ondata.bind(this)),ra(t,"error",this.onerror.bind(this)),ra(t,"close",this.onclose.bind(this)),ra(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){$K(()=>{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 LK(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 Ch={};function k0(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=mWe(e,t.path||"/socket.io"),r=n.source,i=n.id,o=n.path,a=Ch[i]&&o in Ch[i].nsps,s=t.forceNew||t["force new connection"]||t.multiplex===!1||a;let l;return s?l=new Mk(r,t):(Ch[i]||(Ch[i]=new Mk(r,t)),l=Ch[i]),n.query&&!t.query&&(t.query=n.queryKey),l.socket(n.path,t)}Object.assign(k0,{Manager:Mk,Socket:LK,io:k0,connect:k0});function _B(e){return e!=null&&typeof e=="object"}function FK(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=_B(o)&&_B(a);if(s&&!FK(o,a)||!s&&o!==a)return!1}return!0}const fC=(e,t)=>e.id&&t.id?e.id===t.id:e.tempId&&t.tempId?e.tempId===t.tempId:!1,AWe=T.memo(function(){const t=Tt(Mo),{accessToken:n,authenticating:r}=ou(),i=Tt(px),o=fr(dm),[a,s]=Qi(jd),l=fr(vx),c=fr(G5),f=fr(yx),h=fr(mm),p=fr(p2);return T.useEffect(()=>{if(r||!t)return;a!=null&&a.socket&&(a.socket.removeAllListeners(),a.socket.close());const y=k0(lTe,{path:"/ws/socket.io",extraHeaders:{Authorization:n||"","user-env":JSON.stringify(i)}});s({socket:y}),y.on("connect",()=>{console.log("connected",y.id),y.emit("connection_successful"),s(m=>({...m,error:!1}))}),y.on("connect_error",m=>{console.error("failed to connect",m),s(v=>({...v,error:!0}))}),y.on("task_start",()=>{o(!0)}),y.on("task_end",()=>{o(!1)}),y.on("reload",()=>{window.location.reload()}),y.on("new_message",m=>{l(v=>{const S=v.findIndex(x=>fC(x,m));return S===-1?[...v,m]:[...v.slice(0,S),m,...v.slice(S+1)]})}),y.on("update_message",m=>{l(v=>{const S=v.findIndex(x=>fC(x,m));return S===-1?v:[...v.slice(0,S),m,...v.slice(S+1)]})}),y.on("delete_message",m=>{l(v=>{const S=v.findIndex(x=>fC(x,m));return S===-1?v:[...v.slice(0,S),...v.slice(S+1)]})}),y.on("stream_start",m=>{l(v=>[...v,m])}),y.on("stream_token",({id:m,token:v})=>{l(S=>{const x=S.findIndex(E=>E.id&&E.id===m||E.tempId&&E.tempId===m);if(x===-1)return S;const C={...S[x]};return C.content+=v,[...S.slice(0,x),C,...S.slice(x+1)]})}),y.on("ask",({msg:m,spec:v},S)=>{f({spec:v,callback:S}),l(x=>[...x,m]),o(!1)}),y.on("ask_timeout",()=>{f(void 0),o(!1)}),y.on("clear_ask",()=>{f(void 0)}),y.on("element",m=>{h(v=>[...v,m])}),y.on("update_element",m=>{h(v=>{const S=v.findIndex(C=>C.id===m.id||C.tempId===m.id);if(S===-1)return v;const w={...v[S],forIds:m.forIds};return[...v.slice(0,S),w,...v.slice(S+1)]})}),y.on("action",m=>{p(v=>[...v,m])}),y.on("remove_action",m=>{p(v=>{const S=v.findIndex(x=>FK(x,m));return S===-1?v:[...v.slice(0,S),...v.slice(S+1)]})}),y.on("token_usage",m=>{c(v=>v+m)})},[i,r,t]),null});function OWe(){return k.jsx($m,{children:k.jsx(At,{sx:{px:2},children:k.jsx(sK,{})})})}var C2={},DWe=Pn;Object.defineProperty(C2,"__esModule",{value:!0});var MK=C2.default=void 0,$We=DWe(Ln()),IWe=k,PWe=(0,$We.default)((0,IWe.jsx)("path",{d:"M4 20h16v2H4zM4 2h16v2H4zm9 7h3l-4-4-4 4h3v6H8l4 4 4-4h-3z"}),"Expand");MK=C2.default=PWe;var E2={},LWe=Pn;Object.defineProperty(E2,"__esModule",{value:!0});var NK=E2.default=void 0,FWe=LWe(Ln()),MWe=k,NWe=(0,FWe.default)((0,MWe.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");NK=E2.default=NWe;var k2={},BWe=Pn;Object.defineProperty(k2,"__esModule",{value:!0});var BK=k2.default=void 0,zWe=BWe(Ln()),jWe=k,UWe=(0,zWe.default)((0,jWe.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");BK=k2.default=UWe;function KWe(){const[e,t]=Qi(Ks);return k.jsx(ox,{open:e.open,onClose:()=>t(n=>({...n,open:!1})),id:"settings-dialog",PaperProps:{sx:{backgroundImage:"none"}},children:k.jsx(ax,{children:k.jsxs(x5,{sx:{width:"100%",maxWidth:360},subheader:k.jsx(n5,{children:"Settings"}),children:[k.jsxs(s0,{children:[k.jsx(ed,{children:k.jsx(MK,{})}),k.jsx(l0,{id:"switch-expand-all",primary:"Expand Messages"}),k.jsx(GS,{edge:"end",onChange:()=>t(n=>({...n,expandAll:!n.expandAll})),checked:e.expandAll,inputProps:{"aria-labelledby":"switch-expand-all"}})]}),k.jsxs(s0,{children:[k.jsx(ed,{children:k.jsx(BK,{})}),k.jsx(l0,{id:"hide-cot",primary:"Hide Chain of Thought"}),k.jsx(GS,{edge:"end",onChange:()=>t(n=>({...n,hideCot:!n.hideCot})),checked:e.hideCot,inputProps:{"aria-labelledby":"hide-cot"}})]}),k.jsxs(s0,{children:[k.jsx(ed,{children:k.jsx(NK,{})}),k.jsx(l0,{id:"switch-theme",primary:"Dark mode"}),k.jsx(GS,{edge:"end",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 Nk(){return Nk=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},Nk.apply(this,arguments)}var zK=["shift","alt","meta","mod","ctrl"],WWe={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 Ol(e){return(WWe[e]||e).trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function VWe(e){return zK.includes(e)}function dC(e,t){return t===void 0&&(t=","),e.split(t)}function pC(e,t,n){t===void 0&&(t="+");var r=e.toLocaleLowerCase().split(t).map(function(a){return Ol(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!zK.includes(a)});return Nk({},i,{keys:o,description:n})}(function(){typeof document<"u"&&(document.addEventListener("keydown",function(e){e.key!==void 0&&jK([Ol(e.key),Ol(e.code)])}),document.addEventListener("keyup",function(e){e.key!==void 0&&UK([Ol(e.key),Ol(e.code)])})),typeof window<"u"&&window.addEventListener("blur",function(){Dl.clear()})})();var Dl=new Set;function HWe(e,t){t===void 0&&(t=",");var n=Array.isArray(e)?e:e.split(t);return n.every(function(r){return Dl.has(r.trim().toLowerCase())})}function jK(e){var t=Array.isArray(e)?e:[e];Dl.has("meta")&&Dl.forEach(function(n){return!VWe(n)&&Dl.delete(n.toLowerCase())}),t.forEach(function(n){return Dl.add(n.toLowerCase())})}function UK(e){var t=Array.isArray(e)?e:[e];e==="meta"?Dl.clear():t.forEach(function(n){return Dl.delete(n.toLowerCase())})}function qWe(e,t,n){(typeof n=="function"&&n(e,t)||n===!0)&&e.preventDefault()}function GWe(e,t,n){return typeof n=="function"?n(e,t):n===!0||n===void 0}function YWe(e){return KK(e,["input","textarea","select"])}function KK(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 XWe(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 ZWe=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,c=n.keys,f=t.key,h=t.code,p=t.ctrlKey,y=t.metaKey,m=t.shiftKey,v=t.altKey,S=Ol(h),x=f.toLowerCase();if(!r){if(i===!v&&x!=="alt"||s===!m&&x!=="shift")return!1;if(a){if(!y&&!p)return!1}else if(o===!y&&x!=="meta"&&x!=="os"||l===!p&&x!=="ctrl"&&x!=="control")return!1}return c&&c.length===1&&(c.includes(x)||c.includes(S))?!0:c?HWe(c):!c},JWe=T.createContext(void 0),QWe=function(){return T.useContext(JWe)};function WK(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&&WK(e[r],t[r])},!0):e===t}var eVe=T.createContext({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),tVe=function(){return T.useContext(eVe)};function nVe(e){var t=T.useRef(void 0);return WK(t.current,e)||(t.current=e),t.current}var CB=function(t){t.stopPropagation(),t.preventDefault(),t.stopImmediatePropagation()},rVe=typeof window<"u"?T.useLayoutEffect:T.useEffect;function iVe(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,c=T.useCallback(t,l??[]),f=T.useRef(c);l?f.current=c:f.current=t;var h=nVe(a),p=tVe(),y=p.enabledScopes,m=QWe();return rVe(function(){if(!((h==null?void 0:h.enabled)===!1||!XWe(y,h==null?void 0:h.scopes))){var v=function(E,O){var $;if(O===void 0&&(O=!1),!(YWe(E)&&!KK(E,h==null?void 0:h.enableOnFormTags))&&!(h!=null&&h.ignoreEventWhen!=null&&h.ignoreEventWhen(E))){if(i.current!==null&&document.activeElement!==i.current&&!i.current.contains(document.activeElement)){CB(E);return}($=E.target)!=null&&$.isContentEditable&&!(h!=null&&h.enableOnContentEditable)||dC(s,h==null?void 0:h.splitKey).forEach(function(I){var W,H=pC(I,h==null?void 0:h.combinationKey);if(ZWe(E,H,h==null?void 0:h.ignoreModifiers)||(W=H.keys)!=null&&W.includes("*")){if(O&&o.current)return;if(qWe(E,H,h==null?void 0:h.preventDefault),!GWe(E,H,h==null?void 0:h.enabled)){CB(E);return}f.current(E,H),O||(o.current=!0)}})}},S=function(E){E.key!==void 0&&(jK(Ol(E.code)),((h==null?void 0:h.keydown)===void 0&&(h==null?void 0:h.keyup)!==!0||h!=null&&h.keydown)&&v(E))},x=function(E){E.key!==void 0&&(UK(Ol(E.code)),o.current=!1,h!=null&&h.keyup&&v(E,!0))},w=i.current||(a==null?void 0:a.document)||document;return w.addEventListener("keyup",x),w.addEventListener("keydown",S),m&&dC(s,h==null?void 0:h.splitKey).forEach(function(C){return m.addHotkey(pC(C,h==null?void 0:h.combinationKey,h==null?void 0:h.description))}),function(){w.removeEventListener("keyup",x),w.removeEventListener("keydown",S),m&&dC(s,h==null?void 0:h.splitKey).forEach(function(C){return m.removeHotkey(pC(C,h==null?void 0:h.combinationKey,h==null?void 0:h.description))})}}},[s,h,y]),i}function oVe(){const e=fr(Ks);return iVe("s",()=>e(t=>({...t,open:!t.open}))),null}const aVe=V0e([{path:"/",element:k.jsx(V7e,{})},{path:"/readme",element:k.jsx(OWe,{})},{path:"/env",element:k.jsx(zKe,{})},{path:"/conversations/:id",element:k.jsx($m,{children:k.jsx(BKe,{})})},{path:"/dataset",element:k.jsx(NKe,{})},{path:"/element/:id",element:k.jsx(H7e,{})},{path:"/login",element:k.jsx(q7e,{})},{path:"/api/auth/callback",element:k.jsx(G7e,{})},{path:"*",element:k.jsx(M0e,{replace:!0,to:"/"})}]);function sVe(){const e=Tt(nu),{theme:t}=Tt(Ks),[n,r]=Qi(V5),i=fr(zR),{isAuthenticated:o,getAccessTokenSilently:a,logout:s}=ou(),l=J0e(t);return T.useEffect(()=>{document.body.style.backgroundColor=l.palette.background.default},[l]),T.useEffect(()=>{o&&n===void 0&&a({authorizationParams:{audience:"chainlit-cloud"}}).then(c=>r(c)).catch(c=>{console.error(c),s({logoutParams:{returnTo:window.location.origin}})})},[o,a,n,r]),T.useEffect(()=>{n&&(e.setAccessToken(n),e.getRole().then(async c=>{i(c)}).catch(c=>{console.log(c),i("ANONYMOUS")}))},[n]),k.jsxs(zj,{theme:l,children:[k.jsx(REe,{toastOptions:{className:"toast",style:{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"}}}),k.jsxs(At,{display:"flex",height:"100vh",width:"100vw",children:[k.jsx(AWe,{}),k.jsx(oVe,{}),k.jsx(KWe,{}),k.jsx(F0e,{router:aVe})]})]})}const lVe=T.memo(function({children:t}){var r;const n=Tt(Mo);return(r=n==null?void 0:n.project)!=null&&r.id?k.jsx(f7e,{domain:"https://auth.chainlit.io",clientId:"ADo93BBXDn8Z35lEi8arCWiR7C0ncrjx",authorizationParams:{redirect_uri:`${window.location.origin}/api/auth/callback`},useRefreshTokens:!0,cacheLocation:"localstorage",children:t}):k.jsx(k.Fragment,{children:t})});function uVe(){const[e,t]=Qi(Mo),n=fr(Ks);return T.useEffect(()=>{e===void 0&&fA.getProjectSettings().then(r=>{t(r),n(i=>({...i,expandAll:!!r.ui.default_expand_messages,hideCot:!!r.ui.hide_cot}))})},[]),k.jsx(lVe,{children:k.jsx(sVe,{})})}hC.createRoot(document.getElementById("root")).render(k.jsx(pt.StrictMode,{children:k.jsx(doe,{children:k.jsx(uVe,{})})}));export{Ui as c,Ha as g};
|