chainlit 0.4.1__py3-none-any.whl → 0.4.3__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 +41 -130
- chainlit/action.py +2 -4
- chainlit/cli/__init__.py +64 -9
- chainlit/cli/mock.py +1571 -7
- 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 +31 -5
- 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-51a1a88f.js → index-37b5009c.js} +1 -1
- chainlit/frontend/dist/assets/index-51393291.js +523 -0
- chainlit/frontend/dist/index.html +1 -1
- chainlit/langflow/__init__.py +75 -0
- chainlit/lc/__init__.py +85 -0
- chainlit/lc/agent.py +9 -5
- chainlit/lc/callbacks.py +9 -24
- chainlit/llama_index/__init__.py +34 -0
- chainlit/llama_index/callbacks.py +99 -0
- chainlit/llama_index/run.py +34 -0
- chainlit/logger.py +7 -2
- chainlit/message.py +25 -19
- chainlit/server.py +149 -38
- chainlit/session.py +3 -3
- chainlit/sync.py +20 -27
- chainlit/types.py +26 -1
- chainlit/user_session.py +1 -1
- chainlit/utils.py +51 -0
- {chainlit-0.4.1.dist-info → chainlit-0.4.3.dist-info}/METADATA +7 -3
- chainlit-0.4.3.dist-info/RECORD +49 -0
- chainlit/client.py +0 -287
- chainlit/frontend/dist/assets/index-68c36c96.js +0 -707
- chainlit-0.4.1.dist-info/RECORD +0 -38
- {chainlit-0.4.1.dist-info → chainlit-0.4.3.dist-info}/WHEEL +0 -0
- {chainlit-0.4.1.dist-info → chainlit-0.4.3.dist-info}/entry_points.txt +0 -0
|
@@ -1,707 +0,0 @@
|
|
|
1
|
-
var nte=Object.defineProperty;var rte=(e,t,n)=>t in e?nte(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ls=(e,t,n)=>(rte(e,typeof t!="symbol"?t+"":t,n),n);function ite(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 ao=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ps(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function C4(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 k4={exports:{}},uw={},T4={exports:{}},Zt={};/**
|
|
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 Jg=Symbol.for("react.element"),ote=Symbol.for("react.portal"),ate=Symbol.for("react.fragment"),ste=Symbol.for("react.strict_mode"),lte=Symbol.for("react.profiler"),ute=Symbol.for("react.provider"),cte=Symbol.for("react.context"),fte=Symbol.for("react.forward_ref"),dte=Symbol.for("react.suspense"),pte=Symbol.for("react.memo"),hte=Symbol.for("react.lazy"),h$=Symbol.iterator;function mte(e){return e===null||typeof e!="object"?null:(e=h$&&e[h$]||e["@@iterator"],typeof e=="function"?e:null)}var R4={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O4=Object.assign,A4={};function Sp(e,t,n){this.props=e,this.context=t,this.refs=A4,this.updater=n||R4}Sp.prototype.isReactComponent={};Sp.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")};Sp.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function D4(){}D4.prototype=Sp.prototype;function cO(e,t,n){this.props=e,this.context=t,this.refs=A4,this.updater=n||R4}var fO=cO.prototype=new D4;fO.constructor=cO;O4(fO,Sp.prototype);fO.isPureReactComponent=!0;var m$=Array.isArray,I4=Object.prototype.hasOwnProperty,dO={current:null},P4={key:!0,ref:!0,__self:!0,__source:!0};function $4(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)I4.call(t,r)&&!P4.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:Jg,type:e,key:o,ref:a,props:i,_owner:dO.current}}function gte(e,t){return{$$typeof:Jg,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function pO(e){return typeof e=="object"&&e!==null&&e.$$typeof===Jg}function vte(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var g$=/\/+/g;function jS(e,t){return typeof e=="object"&&e!==null&&e.key!=null?vte(""+e.key):t.toString(36)}function ab(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 Jg:case ote:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+jS(a,0):r,m$(i)?(n="",e!=null&&(n=e.replace(g$,"$&/")+"/"),ab(i,t,n,"",function(u){return u})):i!=null&&(pO(i)&&(i=gte(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(g$,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",m$(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+jS(o,s);a+=ab(o,t,n,l,i)}else if(l=mte(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+jS(o,s++),a+=ab(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 Yy(e,t,n){if(e==null)return e;var r=[],i=0;return ab(e,r,"","",function(o){return t.call(n,o,i++)}),r}function yte(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 Ci={current:null},sb={transition:null},bte={ReactCurrentDispatcher:Ci,ReactCurrentBatchConfig:sb,ReactCurrentOwner:dO};Zt.Children={map:Yy,forEach:function(e,t,n){Yy(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Yy(e,function(){t++}),t},toArray:function(e){return Yy(e,function(t){return t})||[]},only:function(e){if(!pO(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Zt.Component=Sp;Zt.Fragment=ate;Zt.Profiler=lte;Zt.PureComponent=cO;Zt.StrictMode=ste;Zt.Suspense=dte;Zt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=bte;Zt.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=O4({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=dO.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)I4.call(t,l)&&!P4.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){s=Array(l);for(var u=0;u<l;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:Jg,type:e.type,key:i,ref:o,props:r,_owner:a}};Zt.createContext=function(e){return e={$$typeof:cte,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:ute,_context:e},e.Consumer=e};Zt.createElement=$4;Zt.createFactory=function(e){var t=$4.bind(null,e);return t.type=e,t};Zt.createRef=function(){return{current:null}};Zt.forwardRef=function(e){return{$$typeof:fte,render:e}};Zt.isValidElement=pO;Zt.lazy=function(e){return{$$typeof:hte,_payload:{_status:-1,_result:e},_init:yte}};Zt.memo=function(e,t){return{$$typeof:pte,type:e,compare:t===void 0?null:t}};Zt.startTransition=function(e){var t=sb.transition;sb.transition={};try{e()}finally{sb.transition=t}};Zt.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};Zt.useCallback=function(e,t){return Ci.current.useCallback(e,t)};Zt.useContext=function(e){return Ci.current.useContext(e)};Zt.useDebugValue=function(){};Zt.useDeferredValue=function(e){return Ci.current.useDeferredValue(e)};Zt.useEffect=function(e,t){return Ci.current.useEffect(e,t)};Zt.useId=function(){return Ci.current.useId()};Zt.useImperativeHandle=function(e,t,n){return Ci.current.useImperativeHandle(e,t,n)};Zt.useInsertionEffect=function(e,t){return Ci.current.useInsertionEffect(e,t)};Zt.useLayoutEffect=function(e,t){return Ci.current.useLayoutEffect(e,t)};Zt.useMemo=function(e,t){return Ci.current.useMemo(e,t)};Zt.useReducer=function(e,t,n){return Ci.current.useReducer(e,t,n)};Zt.useRef=function(e){return Ci.current.useRef(e)};Zt.useState=function(e){return Ci.current.useState(e)};Zt.useSyncExternalStore=function(e,t,n){return Ci.current.useSyncExternalStore(e,t,n)};Zt.useTransition=function(){return Ci.current.useTransition()};Zt.version="18.2.0";T4.exports=Zt;var R=T4.exports;const yt=ps(R),mu=ite({__proto__:null,default:yt},[R]);/**
|
|
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 wte=R,_te=Symbol.for("react.element"),xte=Symbol.for("react.fragment"),Ste=Object.prototype.hasOwnProperty,Ete=wte.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Cte={key:!0,ref:!0,__self:!0,__source:!0};function F4(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)Ste.call(t,r)&&!Cte.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:_te,type:e,key:o,ref:a,props:i,_owner:Ete.current}}uw.Fragment=xte;uw.jsx=F4;uw.jsxs=F4;k4.exports=uw;var T=k4.exports,fk={},L4={exports:{}},go={},M4={exports:{}},N4={};/**
|
|
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(Y,ee){var G=Y.length;Y.push(ee);e:for(;0<G;){var L=G-1>>>1,A=Y[L];if(0<i(A,ee))Y[L]=ee,Y[G]=A,G=L;else break e}}function n(Y){return Y.length===0?null:Y[0]}function r(Y){if(Y.length===0)return null;var ee=Y[0],G=Y.pop();if(G!==ee){Y[0]=G;e:for(var L=0,A=Y.length,ie=A>>>1;L<ie;){var ae=2*(L+1)-1,ce=Y[ae],oe=ae+1,xe=Y[oe];if(0>i(ce,G))oe<A&&0>i(xe,ce)?(Y[L]=xe,Y[oe]=G,L=oe):(Y[L]=ce,Y[ae]=G,L=ae);else if(oe<A&&0>i(xe,G))Y[L]=xe,Y[oe]=G,L=oe;else break e}}return ee}function i(Y,ee){var G=Y.sortIndex-ee.sortIndex;return G!==0?G:Y.id-ee.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],f=1,p=null,d=3,v=!1,g=!1,y=!1,x=typeof setTimeout=="function"?setTimeout:null,b=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 S(Y){for(var ee=n(u);ee!==null;){if(ee.callback===null)r(u);else if(ee.startTime<=Y)r(u),ee.sortIndex=ee.expirationTime,t(l,ee);else break;ee=n(u)}}function C(Y){if(y=!1,S(Y),!g)if(n(l)!==null)g=!0,F(k);else{var ee=n(u);ee!==null&&te(C,ee.startTime-Y)}}function k(Y,ee){g=!1,y&&(y=!1,b(B),B=-1),v=!0;var G=d;try{for(S(ee),p=n(l);p!==null&&(!(p.expirationTime>ee)||Y&&!W());){var L=p.callback;if(typeof L=="function"){p.callback=null,d=p.priorityLevel;var A=L(p.expirationTime<=ee);ee=e.unstable_now(),typeof A=="function"?p.callback=A:p===n(l)&&r(l),S(ee)}else r(l);p=n(l)}if(p!==null)var ie=!0;else{var ae=n(u);ae!==null&&te(C,ae.startTime-ee),ie=!1}return ie}finally{p=null,d=G,v=!1}}var D=!1,P=null,B=-1,V=5,U=-1;function W(){return!(e.unstable_now()-U<V)}function se(){if(P!==null){var Y=e.unstable_now();U=Y;var ee=!0;try{ee=P(!0,Y)}finally{ee?ne():(D=!1,P=null)}}else D=!1}var ne;if(typeof w=="function")ne=function(){w(se)};else if(typeof MessageChannel<"u"){var re=new MessageChannel,Z=re.port2;re.port1.onmessage=se,ne=function(){Z.postMessage(null)}}else ne=function(){x(se,0)};function F(Y){P=Y,D||(D=!0,ne())}function te(Y,ee){B=x(function(){Y(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(Y){Y.callback=null},e.unstable_continueExecution=function(){g||v||(g=!0,F(k))},e.unstable_forceFrameRate=function(Y){0>Y||125<Y?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<Y?Math.floor(1e3/Y):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(Y){switch(d){case 1:case 2:case 3:var ee=3;break;default:ee=d}var G=d;d=ee;try{return Y()}finally{d=G}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(Y,ee){switch(Y){case 1:case 2:case 3:case 4:case 5:break;default:Y=3}var G=d;d=Y;try{return ee()}finally{d=G}},e.unstable_scheduleCallback=function(Y,ee,G){var L=e.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?L+G:L):G=L,Y){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=G+A,Y={id:f++,callback:ee,priorityLevel:Y,startTime:G,expirationTime:A,sortIndex:-1},G>L?(Y.sortIndex=G,t(u,Y),n(l)===null&&Y===n(u)&&(y?(b(B),B=-1):y=!0,te(C,G-L))):(Y.sortIndex=A,t(l,Y),g||v||(g=!0,F(k))),Y},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(Y){var ee=d;return function(){var G=d;d=ee;try{return Y.apply(this,arguments)}finally{d=G}}}})(N4);M4.exports=N4;var kte=M4.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 B4=R,ho=kte;function Xe(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 j4=new Set,dg={};function qc(e,t){Xd(e,t),Xd(e+"Capture",t)}function Xd(e,t){for(dg[e]=t,e=0;e<t.length;e++)j4.add(t[e])}var tl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),dk=Object.prototype.hasOwnProperty,Tte=/^[: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]*$/,v$={},y$={};function Rte(e){return dk.call(y$,e)?!0:dk.call(v$,e)?!1:Tte.test(e)?y$[e]=!0:(v$[e]=!0,!1)}function Ote(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 Ate(e,t,n,r){if(t===null||typeof t>"u"||Ote(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 ki(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 ti={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ti[e]=new ki(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ti[t]=new ki(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ti[e]=new ki(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ti[e]=new ki(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){ti[e]=new ki(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ti[e]=new ki(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ti[e]=new ki(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ti[e]=new ki(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ti[e]=new ki(e,5,!1,e.toLowerCase(),null,!1,!1)});var hO=/[\-:]([a-z])/g;function mO(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(hO,mO);ti[t]=new ki(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(hO,mO);ti[t]=new ki(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(hO,mO);ti[t]=new ki(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ti[e]=new ki(e,1,!1,e.toLowerCase(),null,!1,!1)});ti.xlinkHref=new ki("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ti[e]=new ki(e,1,!1,e.toLowerCase(),null,!0,!0)});function gO(e,t,n,r){var i=ti.hasOwnProperty(t)?ti[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Ate(t,n,i,r)&&(n=null),r||i===null?Rte(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 ul=B4.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Xy=Symbol.for("react.element"),cd=Symbol.for("react.portal"),fd=Symbol.for("react.fragment"),vO=Symbol.for("react.strict_mode"),pk=Symbol.for("react.profiler"),z4=Symbol.for("react.provider"),U4=Symbol.for("react.context"),yO=Symbol.for("react.forward_ref"),hk=Symbol.for("react.suspense"),mk=Symbol.for("react.suspense_list"),bO=Symbol.for("react.memo"),Kl=Symbol.for("react.lazy"),V4=Symbol.for("react.offscreen"),b$=Symbol.iterator;function Ph(e){return e===null||typeof e!="object"?null:(e=b$&&e[b$]||e["@@iterator"],typeof e=="function"?e:null)}var rr=Object.assign,zS;function Sm(e){if(zS===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);zS=t&&t[1]||""}return`
|
|
34
|
-
`+zS+e}var US=!1;function VS(e,t){if(!e||US)return"";US=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
|
|
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{US=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Sm(e):""}function Dte(e){switch(e.tag){case 5:return Sm(e.type);case 16:return Sm("Lazy");case 13:return Sm("Suspense");case 19:return Sm("SuspenseList");case 0:case 2:case 15:return e=VS(e.type,!1),e;case 11:return e=VS(e.type.render,!1),e;case 1:return e=VS(e.type,!0),e;default:return""}}function gk(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 fd:return"Fragment";case cd:return"Portal";case pk:return"Profiler";case vO:return"StrictMode";case hk:return"Suspense";case mk:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case U4:return(e.displayName||"Context")+".Consumer";case z4:return(e._context.displayName||"Context")+".Provider";case yO:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case bO:return t=e.displayName||null,t!==null?t:gk(e.type)||"Memo";case Kl:t=e._payload,e=e._init;try{return gk(e(t))}catch{}}return null}function Ite(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 gk(t);case 8:return t===vO?"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 gu(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function W4(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Pte(e){var t=W4(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 Jy(e){e._valueTracker||(e._valueTracker=Pte(e))}function K4(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=W4(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Qb(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 vk(e,t){var n=t.checked;return rr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function w$(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=gu(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 H4(e,t){t=t.checked,t!=null&&gO(e,"checked",t,!1)}function yk(e,t){H4(e,t);var n=gu(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")?bk(e,t.type,n):t.hasOwnProperty("defaultValue")&&bk(e,t.type,gu(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function _$(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 bk(e,t,n){(t!=="number"||Qb(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Em=Array.isArray;function Ad(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=""+gu(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 wk(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Xe(91));return rr({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function x$(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Xe(92));if(Em(n)){if(1<n.length)throw Error(Xe(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:gu(n)}}function q4(e,t){var n=gu(t.value),r=gu(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 S$(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function G4(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 _k(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?G4(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Zy,Q4=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(Zy=Zy||document.createElement("div"),Zy.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Zy.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function pg(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Nm={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},$te=["Webkit","ms","Moz","O"];Object.keys(Nm).forEach(function(e){$te.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Nm[t]=Nm[e]})});function Y4(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Nm.hasOwnProperty(e)&&Nm[e]?(""+t).trim():t+"px"}function X4(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Y4(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Fte=rr({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 xk(e,t){if(t){if(Fte[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Xe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Xe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Xe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Xe(62))}}function Sk(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 Ek=null;function wO(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ck=null,Dd=null,Id=null;function E$(e){if(e=tv(e)){if(typeof Ck!="function")throw Error(Xe(280));var t=e.stateNode;t&&(t=hw(t),Ck(e.stateNode,e.type,t))}}function J4(e){Dd?Id?Id.push(e):Id=[e]:Dd=e}function Z4(){if(Dd){var e=Dd,t=Id;if(Id=Dd=null,E$(e),t)for(e=0;e<t.length;e++)E$(t[e])}}function e5(e,t){return e(t)}function t5(){}var WS=!1;function n5(e,t,n){if(WS)return e(t,n);WS=!0;try{return e5(e,t,n)}finally{WS=!1,(Dd!==null||Id!==null)&&(t5(),Z4())}}function hg(e,t){var n=e.stateNode;if(n===null)return null;var r=hw(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(Xe(231,t,typeof n));return n}var kk=!1;if(tl)try{var $h={};Object.defineProperty($h,"passive",{get:function(){kk=!0}}),window.addEventListener("test",$h,$h),window.removeEventListener("test",$h,$h)}catch{kk=!1}function Lte(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(f){this.onError(f)}}var Bm=!1,Yb=null,Xb=!1,Tk=null,Mte={onError:function(e){Bm=!0,Yb=e}};function Nte(e,t,n,r,i,o,a,s,l){Bm=!1,Yb=null,Lte.apply(Mte,arguments)}function Bte(e,t,n,r,i,o,a,s,l){if(Nte.apply(this,arguments),Bm){if(Bm){var u=Yb;Bm=!1,Yb=null}else throw Error(Xe(198));Xb||(Xb=!0,Tk=u)}}function Gc(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 r5(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 C$(e){if(Gc(e)!==e)throw Error(Xe(188))}function jte(e){var t=e.alternate;if(!t){if(t=Gc(e),t===null)throw Error(Xe(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 C$(i),e;if(o===r)return C$(i),t;o=o.sibling}throw Error(Xe(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(Xe(189))}}if(n.alternate!==r)throw Error(Xe(190))}if(n.tag!==3)throw Error(Xe(188));return n.stateNode.current===n?e:t}function i5(e){return e=jte(e),e!==null?o5(e):null}function o5(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=o5(e);if(t!==null)return t;e=e.sibling}return null}var a5=ho.unstable_scheduleCallback,k$=ho.unstable_cancelCallback,zte=ho.unstable_shouldYield,Ute=ho.unstable_requestPaint,br=ho.unstable_now,Vte=ho.unstable_getCurrentPriorityLevel,_O=ho.unstable_ImmediatePriority,s5=ho.unstable_UserBlockingPriority,Jb=ho.unstable_NormalPriority,Wte=ho.unstable_LowPriority,l5=ho.unstable_IdlePriority,cw=null,rs=null;function Kte(e){if(rs&&typeof rs.onCommitFiberRoot=="function")try{rs.onCommitFiberRoot(cw,e,void 0,(e.current.flags&128)===128)}catch{}}var Ca=Math.clz32?Math.clz32:Gte,Hte=Math.log,qte=Math.LN2;function Gte(e){return e>>>=0,e===0?32:31-(Hte(e)/qte|0)|0}var e0=64,t0=4194304;function Cm(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 Zb(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=Cm(s):(o&=a,o!==0&&(r=Cm(o)))}else a=n&~i,a!==0?r=Cm(a):o!==0&&(r=Cm(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-Ca(t),i=1<<n,r|=e[n],t&=~i;return r}function Qte(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 Yte(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-Ca(o),s=1<<a,l=i[a];l===-1?(!(s&n)||s&r)&&(i[a]=Qte(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}function Rk(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function u5(){var e=e0;return e0<<=1,!(e0&4194240)&&(e0=64),e}function KS(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Zg(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ca(t),e[t]=n}function Xte(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-Ca(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function xO(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ca(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Sn=0;function c5(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var f5,SO,d5,p5,h5,Ok=!1,n0=[],su=null,lu=null,uu=null,mg=new Map,gg=new Map,Jl=[],Jte="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 T$(e,t){switch(e){case"focusin":case"focusout":su=null;break;case"dragenter":case"dragleave":lu=null;break;case"mouseover":case"mouseout":uu=null;break;case"pointerover":case"pointerout":mg.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":gg.delete(t.pointerId)}}function Fh(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=tv(t),t!==null&&SO(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Zte(e,t,n,r,i){switch(t){case"focusin":return su=Fh(su,e,t,n,r,i),!0;case"dragenter":return lu=Fh(lu,e,t,n,r,i),!0;case"mouseover":return uu=Fh(uu,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return mg.set(o,Fh(mg.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,gg.set(o,Fh(gg.get(o)||null,e,t,n,r,i)),!0}return!1}function m5(e){var t=bc(e.target);if(t!==null){var n=Gc(t);if(n!==null){if(t=n.tag,t===13){if(t=r5(n),t!==null){e.blockedOn=t,h5(e.priority,function(){d5(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 lb(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ak(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ek=r,n.target.dispatchEvent(r),Ek=null}else return t=tv(n),t!==null&&SO(t),e.blockedOn=n,!1;t.shift()}return!0}function R$(e,t,n){lb(e)&&n.delete(t)}function ene(){Ok=!1,su!==null&&lb(su)&&(su=null),lu!==null&&lb(lu)&&(lu=null),uu!==null&&lb(uu)&&(uu=null),mg.forEach(R$),gg.forEach(R$)}function Lh(e,t){e.blockedOn===t&&(e.blockedOn=null,Ok||(Ok=!0,ho.unstable_scheduleCallback(ho.unstable_NormalPriority,ene)))}function vg(e){function t(i){return Lh(i,e)}if(0<n0.length){Lh(n0[0],e);for(var n=1;n<n0.length;n++){var r=n0[n];r.blockedOn===e&&(r.blockedOn=null)}}for(su!==null&&Lh(su,e),lu!==null&&Lh(lu,e),uu!==null&&Lh(uu,e),mg.forEach(t),gg.forEach(t),n=0;n<Jl.length;n++)r=Jl[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Jl.length&&(n=Jl[0],n.blockedOn===null);)m5(n),n.blockedOn===null&&Jl.shift()}var Pd=ul.ReactCurrentBatchConfig,e1=!0;function tne(e,t,n,r){var i=Sn,o=Pd.transition;Pd.transition=null;try{Sn=1,EO(e,t,n,r)}finally{Sn=i,Pd.transition=o}}function nne(e,t,n,r){var i=Sn,o=Pd.transition;Pd.transition=null;try{Sn=4,EO(e,t,n,r)}finally{Sn=i,Pd.transition=o}}function EO(e,t,n,r){if(e1){var i=Ak(e,t,n,r);if(i===null)tE(e,t,r,t1,n),T$(e,r);else if(Zte(i,e,t,n,r))r.stopPropagation();else if(T$(e,r),t&4&&-1<Jte.indexOf(e)){for(;i!==null;){var o=tv(i);if(o!==null&&f5(o),o=Ak(e,t,n,r),o===null&&tE(e,t,r,t1,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else tE(e,t,r,null,n)}}var t1=null;function Ak(e,t,n,r){if(t1=null,e=wO(r),e=bc(e),e!==null)if(t=Gc(e),t===null)e=null;else if(n=t.tag,n===13){if(e=r5(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 t1=e,null}function g5(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(Vte()){case _O:return 1;case s5:return 4;case Jb:case Wte:return 16;case l5:return 536870912;default:return 16}default:return 16}}var tu=null,CO=null,ub=null;function v5(){if(ub)return ub;var e,t=CO,n=t.length,r,i="value"in tu?tu.value:tu.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 ub=i.slice(e,1<r?1-r:void 0)}function cb(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 r0(){return!0}function O$(){return!1}function vo(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)?r0:O$,this.isPropagationStopped=O$,this}return rr(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=r0)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=r0)},persist:function(){},isPersistent:r0}),t}var Ep={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},kO=vo(Ep),ev=rr({},Ep,{view:0,detail:0}),rne=vo(ev),HS,qS,Mh,fw=rr({},ev,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:TO,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!==Mh&&(Mh&&e.type==="mousemove"?(HS=e.screenX-Mh.screenX,qS=e.screenY-Mh.screenY):qS=HS=0,Mh=e),HS)},movementY:function(e){return"movementY"in e?e.movementY:qS}}),A$=vo(fw),ine=rr({},fw,{dataTransfer:0}),one=vo(ine),ane=rr({},ev,{relatedTarget:0}),GS=vo(ane),sne=rr({},Ep,{animationName:0,elapsedTime:0,pseudoElement:0}),lne=vo(sne),une=rr({},Ep,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),cne=vo(une),fne=rr({},Ep,{data:0}),D$=vo(fne),dne={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},pne={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"},hne={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function mne(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=hne[e])?!!t[e]:!1}function TO(){return mne}var gne=rr({},ev,{key:function(e){if(e.key){var t=dne[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=cb(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?pne[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:TO,charCode:function(e){return e.type==="keypress"?cb(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?cb(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),vne=vo(gne),yne=rr({},fw,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),I$=vo(yne),bne=rr({},ev,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:TO}),wne=vo(bne),_ne=rr({},Ep,{propertyName:0,elapsedTime:0,pseudoElement:0}),xne=vo(_ne),Sne=rr({},fw,{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}),Ene=vo(Sne),Cne=[9,13,27,32],RO=tl&&"CompositionEvent"in window,jm=null;tl&&"documentMode"in document&&(jm=document.documentMode);var kne=tl&&"TextEvent"in window&&!jm,y5=tl&&(!RO||jm&&8<jm&&11>=jm),P$=String.fromCharCode(32),$$=!1;function b5(e,t){switch(e){case"keyup":return Cne.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function w5(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var dd=!1;function Tne(e,t){switch(e){case"compositionend":return w5(t);case"keypress":return t.which!==32?null:($$=!0,P$);case"textInput":return e=t.data,e===P$&&$$?null:e;default:return null}}function Rne(e,t){if(dd)return e==="compositionend"||!RO&&b5(e,t)?(e=v5(),ub=CO=tu=null,dd=!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 y5&&t.locale!=="ko"?null:t.data;default:return null}}var One={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 F$(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!One[e.type]:t==="textarea"}function _5(e,t,n,r){J4(r),t=n1(t,"onChange"),0<t.length&&(n=new kO("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var zm=null,yg=null;function Ane(e){I5(e,0)}function dw(e){var t=md(e);if(K4(t))return e}function Dne(e,t){if(e==="change")return t}var x5=!1;if(tl){var QS;if(tl){var YS="oninput"in document;if(!YS){var L$=document.createElement("div");L$.setAttribute("oninput","return;"),YS=typeof L$.oninput=="function"}QS=YS}else QS=!1;x5=QS&&(!document.documentMode||9<document.documentMode)}function M$(){zm&&(zm.detachEvent("onpropertychange",S5),yg=zm=null)}function S5(e){if(e.propertyName==="value"&&dw(yg)){var t=[];_5(t,yg,e,wO(e)),n5(Ane,t)}}function Ine(e,t,n){e==="focusin"?(M$(),zm=t,yg=n,zm.attachEvent("onpropertychange",S5)):e==="focusout"&&M$()}function Pne(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return dw(yg)}function $ne(e,t){if(e==="click")return dw(t)}function Fne(e,t){if(e==="input"||e==="change")return dw(t)}function Lne(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ra=typeof Object.is=="function"?Object.is:Lne;function bg(e,t){if(Ra(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(!dk.call(t,i)||!Ra(e[i],t[i]))return!1}return!0}function N$(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function B$(e,t){var n=N$(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=N$(n)}}function E5(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?E5(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function C5(){for(var e=window,t=Qb();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Qb(e.document)}return t}function OO(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 Mne(e){var t=C5(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&E5(n.ownerDocument.documentElement,n)){if(r!==null&&OO(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=B$(n,o);var a=B$(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 Nne=tl&&"documentMode"in document&&11>=document.documentMode,pd=null,Dk=null,Um=null,Ik=!1;function j$(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ik||pd==null||pd!==Qb(r)||(r=pd,"selectionStart"in r&&OO(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}),Um&&bg(Um,r)||(Um=r,r=n1(Dk,"onSelect"),0<r.length&&(t=new kO("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=pd)))}function i0(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var hd={animationend:i0("Animation","AnimationEnd"),animationiteration:i0("Animation","AnimationIteration"),animationstart:i0("Animation","AnimationStart"),transitionend:i0("Transition","TransitionEnd")},XS={},k5={};tl&&(k5=document.createElement("div").style,"AnimationEvent"in window||(delete hd.animationend.animation,delete hd.animationiteration.animation,delete hd.animationstart.animation),"TransitionEvent"in window||delete hd.transitionend.transition);function pw(e){if(XS[e])return XS[e];if(!hd[e])return e;var t=hd[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in k5)return XS[e]=t[n];return e}var T5=pw("animationend"),R5=pw("animationiteration"),O5=pw("animationstart"),A5=pw("transitionend"),D5=new Map,z$="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 Tu(e,t){D5.set(e,t),qc(t,[e])}for(var JS=0;JS<z$.length;JS++){var ZS=z$[JS],Bne=ZS.toLowerCase(),jne=ZS[0].toUpperCase()+ZS.slice(1);Tu(Bne,"on"+jne)}Tu(T5,"onAnimationEnd");Tu(R5,"onAnimationIteration");Tu(O5,"onAnimationStart");Tu("dblclick","onDoubleClick");Tu("focusin","onFocus");Tu("focusout","onBlur");Tu(A5,"onTransitionEnd");Xd("onMouseEnter",["mouseout","mouseover"]);Xd("onMouseLeave",["mouseout","mouseover"]);Xd("onPointerEnter",["pointerout","pointerover"]);Xd("onPointerLeave",["pointerout","pointerover"]);qc("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));qc("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));qc("onBeforeInput",["compositionend","keypress","textInput","paste"]);qc("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));qc("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));qc("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var km="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(" "),zne=new Set("cancel close invalid load scroll toggle".split(" ").concat(km));function U$(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Bte(r,t,void 0,e),e.currentTarget=null}function I5(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;U$(i,s,u),o=l}else for(a=0;a<r.length;a++){if(s=r[a],l=s.instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;U$(i,s,u),o=l}}}if(Xb)throw e=Tk,Xb=!1,Tk=null,e}function Mn(e,t){var n=t[Mk];n===void 0&&(n=t[Mk]=new Set);var r=e+"__bubble";n.has(r)||(P5(t,e,2,!1),n.add(r))}function eE(e,t,n){var r=0;t&&(r|=4),P5(n,e,r,t)}var o0="_reactListening"+Math.random().toString(36).slice(2);function wg(e){if(!e[o0]){e[o0]=!0,j4.forEach(function(n){n!=="selectionchange"&&(zne.has(n)||eE(n,!1,e),eE(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[o0]||(t[o0]=!0,eE("selectionchange",!1,t))}}function P5(e,t,n,r){switch(g5(t)){case 1:var i=tne;break;case 4:i=nne;break;default:i=EO}n=i.bind(null,t,n,e),i=void 0,!kk||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 tE(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=bc(s),a===null)return;if(l=a.tag,l===5||l===6){r=o=a;continue e}s=s.parentNode}}r=r.return}n5(function(){var u=o,f=wO(n),p=[];e:{var d=D5.get(e);if(d!==void 0){var v=kO,g=e;switch(e){case"keypress":if(cb(n)===0)break e;case"keydown":case"keyup":v=vne;break;case"focusin":g="focus",v=GS;break;case"focusout":g="blur",v=GS;break;case"beforeblur":case"afterblur":v=GS;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":v=A$;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=one;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=wne;break;case T5:case R5:case O5:v=lne;break;case A5:v=xne;break;case"scroll":v=rne;break;case"wheel":v=Ene;break;case"copy":case"cut":case"paste":v=cne;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=I$}var y=(t&4)!==0,x=!y&&e==="scroll",b=y?d!==null?d+"Capture":null:d;y=[];for(var w=u,S;w!==null;){S=w;var C=S.stateNode;if(S.tag===5&&C!==null&&(S=C,b!==null&&(C=hg(w,b),C!=null&&y.push(_g(w,C,S)))),x)break;w=w.return}0<y.length&&(d=new v(d,g,null,n,f),p.push({event:d,listeners:y}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",d&&n!==Ek&&(g=n.relatedTarget||n.fromElement)&&(bc(g)||g[nl]))break e;if((v||d)&&(d=f.window===f?f:(d=f.ownerDocument)?d.defaultView||d.parentWindow:window,v?(g=n.relatedTarget||n.toElement,v=u,g=g?bc(g):null,g!==null&&(x=Gc(g),g!==x||g.tag!==5&&g.tag!==6)&&(g=null)):(v=null,g=u),v!==g)){if(y=A$,C="onMouseLeave",b="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(y=I$,C="onPointerLeave",b="onPointerEnter",w="pointer"),x=v==null?d:md(v),S=g==null?d:md(g),d=new y(C,w+"leave",v,n,f),d.target=x,d.relatedTarget=S,C=null,bc(f)===u&&(y=new y(b,w+"enter",g,n,f),y.target=S,y.relatedTarget=x,C=y),x=C,v&&g)t:{for(y=v,b=g,w=0,S=y;S;S=zf(S))w++;for(S=0,C=b;C;C=zf(C))S++;for(;0<w-S;)y=zf(y),w--;for(;0<S-w;)b=zf(b),S--;for(;w--;){if(y===b||b!==null&&y===b.alternate)break t;y=zf(y),b=zf(b)}y=null}else y=null;v!==null&&V$(p,d,v,y,!1),g!==null&&x!==null&&V$(p,x,g,y,!0)}}e:{if(d=u?md(u):window,v=d.nodeName&&d.nodeName.toLowerCase(),v==="select"||v==="input"&&d.type==="file")var k=Dne;else if(F$(d))if(x5)k=Fne;else{k=Pne;var D=Ine}else(v=d.nodeName)&&v.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(k=$ne);if(k&&(k=k(e,u))){_5(p,k,n,f);break e}D&&D(e,d,u),e==="focusout"&&(D=d._wrapperState)&&D.controlled&&d.type==="number"&&bk(d,"number",d.value)}switch(D=u?md(u):window,e){case"focusin":(F$(D)||D.contentEditable==="true")&&(pd=D,Dk=u,Um=null);break;case"focusout":Um=Dk=pd=null;break;case"mousedown":Ik=!0;break;case"contextmenu":case"mouseup":case"dragend":Ik=!1,j$(p,n,f);break;case"selectionchange":if(Nne)break;case"keydown":case"keyup":j$(p,n,f)}var P;if(RO)e:{switch(e){case"compositionstart":var B="onCompositionStart";break e;case"compositionend":B="onCompositionEnd";break e;case"compositionupdate":B="onCompositionUpdate";break e}B=void 0}else dd?b5(e,n)&&(B="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(B="onCompositionStart");B&&(y5&&n.locale!=="ko"&&(dd||B!=="onCompositionStart"?B==="onCompositionEnd"&&dd&&(P=v5()):(tu=f,CO="value"in tu?tu.value:tu.textContent,dd=!0)),D=n1(u,B),0<D.length&&(B=new D$(B,e,null,n,f),p.push({event:B,listeners:D}),P?B.data=P:(P=w5(n),P!==null&&(B.data=P)))),(P=kne?Tne(e,n):Rne(e,n))&&(u=n1(u,"onBeforeInput"),0<u.length&&(f=new D$("onBeforeInput","beforeinput",null,n,f),p.push({event:f,listeners:u}),f.data=P))}I5(p,t)})}function _g(e,t,n){return{instance:e,listener:t,currentTarget:n}}function n1(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=hg(e,n),o!=null&&r.unshift(_g(e,o,i)),o=hg(e,t),o!=null&&r.push(_g(e,o,i))),e=e.return}return r}function zf(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function V$(e,t,n,r,i){for(var o=t._reactName,a=[];n!==null&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(l!==null&&l===r)break;s.tag===5&&u!==null&&(s=u,i?(l=hg(n,o),l!=null&&a.unshift(_g(n,l,s))):i||(l=hg(n,o),l!=null&&a.push(_g(n,l,s)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var Une=/\r\n?/g,Vne=/\u0000|\uFFFD/g;function W$(e){return(typeof e=="string"?e:""+e).replace(Une,`
|
|
38
|
-
`).replace(Vne,"")}function a0(e,t,n){if(t=W$(t),W$(e)!==t&&n)throw Error(Xe(425))}function r1(){}var Pk=null,$k=null;function Fk(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 Lk=typeof setTimeout=="function"?setTimeout:void 0,Wne=typeof clearTimeout=="function"?clearTimeout:void 0,K$=typeof Promise=="function"?Promise:void 0,Kne=typeof queueMicrotask=="function"?queueMicrotask:typeof K$<"u"?function(e){return K$.resolve(null).then(e).catch(Hne)}:Lk;function Hne(e){setTimeout(function(){throw e})}function nE(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),vg(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);vg(t)}function cu(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 H$(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 Cp=Math.random().toString(36).slice(2),Za="__reactFiber$"+Cp,xg="__reactProps$"+Cp,nl="__reactContainer$"+Cp,Mk="__reactEvents$"+Cp,qne="__reactListeners$"+Cp,Gne="__reactHandles$"+Cp;function bc(e){var t=e[Za];if(t)return t;for(var n=e.parentNode;n;){if(t=n[nl]||n[Za]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=H$(e);e!==null;){if(n=e[Za])return n;e=H$(e)}return t}e=n,n=e.parentNode}return null}function tv(e){return e=e[Za]||e[nl],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function md(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Xe(33))}function hw(e){return e[xg]||null}var Nk=[],gd=-1;function Ru(e){return{current:e}}function zn(e){0>gd||(e.current=Nk[gd],Nk[gd]=null,gd--)}function Fn(e,t){gd++,Nk[gd]=e.current,e.current=t}var vu={},di=Ru(vu),Li=Ru(!1),Pc=vu;function Jd(e,t){var n=e.type.contextTypes;if(!n)return vu;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 Mi(e){return e=e.childContextTypes,e!=null}function i1(){zn(Li),zn(di)}function q$(e,t,n){if(di.current!==vu)throw Error(Xe(168));Fn(di,t),Fn(Li,n)}function $5(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(Xe(108,Ite(e)||"Unknown",i));return rr({},n,r)}function o1(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||vu,Pc=di.current,Fn(di,e),Fn(Li,Li.current),!0}function G$(e,t,n){var r=e.stateNode;if(!r)throw Error(Xe(169));n?(e=$5(e,t,Pc),r.__reactInternalMemoizedMergedChildContext=e,zn(Li),zn(di),Fn(di,e)):zn(Li),Fn(Li,n)}var qs=null,mw=!1,rE=!1;function F5(e){qs===null?qs=[e]:qs.push(e)}function Qne(e){mw=!0,F5(e)}function Ou(){if(!rE&&qs!==null){rE=!0;var e=0,t=Sn;try{var n=qs;for(Sn=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}qs=null,mw=!1}catch(i){throw qs!==null&&(qs=qs.slice(e+1)),a5(_O,Ou),i}finally{Sn=t,rE=!1}}return null}var vd=[],yd=0,a1=null,s1=0,Fo=[],Lo=0,$c=null,Qs=1,Ys="";function sc(e,t){vd[yd++]=s1,vd[yd++]=a1,a1=e,s1=t}function L5(e,t,n){Fo[Lo++]=Qs,Fo[Lo++]=Ys,Fo[Lo++]=$c,$c=e;var r=Qs;e=Ys;var i=32-Ca(r)-1;r&=~(1<<i),n+=1;var o=32-Ca(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Qs=1<<32-Ca(t)+i|n<<i|r,Ys=o+e}else Qs=1<<o|n<<i|r,Ys=e}function AO(e){e.return!==null&&(sc(e,1),L5(e,1,0))}function DO(e){for(;e===a1;)a1=vd[--yd],vd[yd]=null,s1=vd[--yd],vd[yd]=null;for(;e===$c;)$c=Fo[--Lo],Fo[Lo]=null,Ys=Fo[--Lo],Fo[Lo]=null,Qs=Fo[--Lo],Fo[Lo]=null}var uo=null,lo=null,Gn=!1,Sa=null;function M5(e,t){var n=zo(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 Q$(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,uo=e,lo=cu(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,uo=e,lo=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=$c!==null?{id:Qs,overflow:Ys}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=zo(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,uo=e,lo=null,!0):!1;default:return!1}}function Bk(e){return(e.mode&1)!==0&&(e.flags&128)===0}function jk(e){if(Gn){var t=lo;if(t){var n=t;if(!Q$(e,t)){if(Bk(e))throw Error(Xe(418));t=cu(n.nextSibling);var r=uo;t&&Q$(e,t)?M5(r,n):(e.flags=e.flags&-4097|2,Gn=!1,uo=e)}}else{if(Bk(e))throw Error(Xe(418));e.flags=e.flags&-4097|2,Gn=!1,uo=e}}}function Y$(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;uo=e}function s0(e){if(e!==uo)return!1;if(!Gn)return Y$(e),Gn=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Fk(e.type,e.memoizedProps)),t&&(t=lo)){if(Bk(e))throw N5(),Error(Xe(418));for(;t;)M5(e,t),t=cu(t.nextSibling)}if(Y$(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Xe(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){lo=cu(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}lo=null}}else lo=uo?cu(e.stateNode.nextSibling):null;return!0}function N5(){for(var e=lo;e;)e=cu(e.nextSibling)}function Zd(){lo=uo=null,Gn=!1}function IO(e){Sa===null?Sa=[e]:Sa.push(e)}var Yne=ul.ReactCurrentBatchConfig;function ba(e,t){if(e&&e.defaultProps){t=rr({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var l1=Ru(null),u1=null,bd=null,PO=null;function $O(){PO=bd=u1=null}function FO(e){var t=l1.current;zn(l1),e._currentValue=t}function zk(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 $d(e,t){u1=e,PO=bd=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Fi=!0),e.firstContext=null)}function qo(e){var t=e._currentValue;if(PO!==e)if(e={context:e,memoizedValue:t,next:null},bd===null){if(u1===null)throw Error(Xe(308));bd=e,u1.dependencies={lanes:0,firstContext:e}}else bd=bd.next=e;return t}var wc=null;function LO(e){wc===null?wc=[e]:wc.push(e)}function B5(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,LO(t)):(n.next=i.next,i.next=n),t.interleaved=n,rl(e,r)}function rl(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 Hl=!1;function MO(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function j5(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 Xs(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function fu(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,an&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,rl(e,n)}return i=r.interleaved,i===null?(t.next=t,LO(r)):(t.next=i.next,i.next=t),r.interleaved=t,rl(e,n)}function fb(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,xO(e,n)}}function X$(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 c1(e,t,n,r){var i=e.updateQueue;Hl=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,u=l.next;l.next=null,a===null?o=u:a.next=u,a=l;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==a&&(s===null?f.firstBaseUpdate=u:s.next=u,f.lastBaseUpdate=l))}if(o!==null){var p=i.baseState;a=0,f=u=l=null,s=o;do{var d=s.lane,v=s.eventTime;if((r&d)===d){f!==null&&(f=f.next={eventTime:v,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var g=e,y=s;switch(d=t,v=n,y.tag){case 1:if(g=y.payload,typeof g=="function"){p=g.call(v,p,d);break e}p=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=y.payload,d=typeof g=="function"?g.call(v,p,d):g,d==null)break e;p=rr({},p,d);break e;case 2:Hl=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[s]:d.push(s))}else v={eventTime:v,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(u=f=v,l=p):f=f.next=v,a|=d;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;d=s,s=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(1);if(f===null&&(l=p),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Lc|=a,e.lanes=a,e.memoizedState=p}}function J$(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(Xe(191,i));i.call(r)}}}var z5=new B4.Component().refs;function Uk(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:rr({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var gw={isMounted:function(e){return(e=e._reactInternals)?Gc(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ei(),i=pu(e),o=Xs(r,i);o.payload=t,n!=null&&(o.callback=n),t=fu(e,o,i),t!==null&&(ka(t,e,i,r),fb(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ei(),i=pu(e),o=Xs(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=fu(e,o,i),t!==null&&(ka(t,e,i,r),fb(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ei(),r=pu(e),i=Xs(n,r);i.tag=2,t!=null&&(i.callback=t),t=fu(e,i,r),t!==null&&(ka(t,e,r,n),fb(t,e,r))}};function Z$(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?!bg(n,r)||!bg(i,o):!0}function U5(e,t,n){var r=!1,i=vu,o=t.contextType;return typeof o=="object"&&o!==null?o=qo(o):(i=Mi(t)?Pc:di.current,r=t.contextTypes,o=(r=r!=null)?Jd(e,i):vu),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=gw,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function eF(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&gw.enqueueReplaceState(t,t.state,null)}function Vk(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=z5,MO(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=qo(o):(o=Mi(t)?Pc:di.current,i.context=Jd(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Uk(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&&gw.enqueueReplaceState(i,i.state,null),c1(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Nh(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(Xe(309));var r=n.stateNode}if(!r)throw Error(Xe(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===z5&&(s=i.refs={}),a===null?delete s[o]:s[o]=a},t._stringRef=o,t)}if(typeof e!="string")throw Error(Xe(284));if(!n._owner)throw Error(Xe(290,e))}return e}function l0(e,t){throw e=Object.prototype.toString.call(t),Error(Xe(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function tF(e){var t=e._init;return t(e._payload)}function V5(e){function t(b,w){if(e){var S=b.deletions;S===null?(b.deletions=[w],b.flags|=16):S.push(w)}}function n(b,w){if(!e)return null;for(;w!==null;)t(b,w),w=w.sibling;return null}function r(b,w){for(b=new Map;w!==null;)w.key!==null?b.set(w.key,w):b.set(w.index,w),w=w.sibling;return b}function i(b,w){return b=hu(b,w),b.index=0,b.sibling=null,b}function o(b,w,S){return b.index=S,e?(S=b.alternate,S!==null?(S=S.index,S<w?(b.flags|=2,w):S):(b.flags|=2,w)):(b.flags|=1048576,w)}function a(b){return e&&b.alternate===null&&(b.flags|=2),b}function s(b,w,S,C){return w===null||w.tag!==6?(w=cE(S,b.mode,C),w.return=b,w):(w=i(w,S),w.return=b,w)}function l(b,w,S,C){var k=S.type;return k===fd?f(b,w,S.props.children,C,S.key):w!==null&&(w.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Kl&&tF(k)===w.type)?(C=i(w,S.props),C.ref=Nh(b,w,S),C.return=b,C):(C=vb(S.type,S.key,S.props,null,b.mode,C),C.ref=Nh(b,w,S),C.return=b,C)}function u(b,w,S,C){return w===null||w.tag!==4||w.stateNode.containerInfo!==S.containerInfo||w.stateNode.implementation!==S.implementation?(w=fE(S,b.mode,C),w.return=b,w):(w=i(w,S.children||[]),w.return=b,w)}function f(b,w,S,C,k){return w===null||w.tag!==7?(w=Tc(S,b.mode,C,k),w.return=b,w):(w=i(w,S),w.return=b,w)}function p(b,w,S){if(typeof w=="string"&&w!==""||typeof w=="number")return w=cE(""+w,b.mode,S),w.return=b,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Xy:return S=vb(w.type,w.key,w.props,null,b.mode,S),S.ref=Nh(b,null,w),S.return=b,S;case cd:return w=fE(w,b.mode,S),w.return=b,w;case Kl:var C=w._init;return p(b,C(w._payload),S)}if(Em(w)||Ph(w))return w=Tc(w,b.mode,S,null),w.return=b,w;l0(b,w)}return null}function d(b,w,S,C){var k=w!==null?w.key:null;if(typeof S=="string"&&S!==""||typeof S=="number")return k!==null?null:s(b,w,""+S,C);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Xy:return S.key===k?l(b,w,S,C):null;case cd:return S.key===k?u(b,w,S,C):null;case Kl:return k=S._init,d(b,w,k(S._payload),C)}if(Em(S)||Ph(S))return k!==null?null:f(b,w,S,C,null);l0(b,S)}return null}function v(b,w,S,C,k){if(typeof C=="string"&&C!==""||typeof C=="number")return b=b.get(S)||null,s(w,b,""+C,k);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case Xy:return b=b.get(C.key===null?S:C.key)||null,l(w,b,C,k);case cd:return b=b.get(C.key===null?S:C.key)||null,u(w,b,C,k);case Kl:var D=C._init;return v(b,w,S,D(C._payload),k)}if(Em(C)||Ph(C))return b=b.get(S)||null,f(w,b,C,k,null);l0(w,C)}return null}function g(b,w,S,C){for(var k=null,D=null,P=w,B=w=0,V=null;P!==null&&B<S.length;B++){P.index>B?(V=P,P=null):V=P.sibling;var U=d(b,P,S[B],C);if(U===null){P===null&&(P=V);break}e&&P&&U.alternate===null&&t(b,P),w=o(U,w,B),D===null?k=U:D.sibling=U,D=U,P=V}if(B===S.length)return n(b,P),Gn&&sc(b,B),k;if(P===null){for(;B<S.length;B++)P=p(b,S[B],C),P!==null&&(w=o(P,w,B),D===null?k=P:D.sibling=P,D=P);return Gn&&sc(b,B),k}for(P=r(b,P);B<S.length;B++)V=v(P,b,B,S[B],C),V!==null&&(e&&V.alternate!==null&&P.delete(V.key===null?B:V.key),w=o(V,w,B),D===null?k=V:D.sibling=V,D=V);return e&&P.forEach(function(W){return t(b,W)}),Gn&&sc(b,B),k}function y(b,w,S,C){var k=Ph(S);if(typeof k!="function")throw Error(Xe(150));if(S=k.call(S),S==null)throw Error(Xe(151));for(var D=k=null,P=w,B=w=0,V=null,U=S.next();P!==null&&!U.done;B++,U=S.next()){P.index>B?(V=P,P=null):V=P.sibling;var W=d(b,P,U.value,C);if(W===null){P===null&&(P=V);break}e&&P&&W.alternate===null&&t(b,P),w=o(W,w,B),D===null?k=W:D.sibling=W,D=W,P=V}if(U.done)return n(b,P),Gn&&sc(b,B),k;if(P===null){for(;!U.done;B++,U=S.next())U=p(b,U.value,C),U!==null&&(w=o(U,w,B),D===null?k=U:D.sibling=U,D=U);return Gn&&sc(b,B),k}for(P=r(b,P);!U.done;B++,U=S.next())U=v(P,b,B,U.value,C),U!==null&&(e&&U.alternate!==null&&P.delete(U.key===null?B:U.key),w=o(U,w,B),D===null?k=U:D.sibling=U,D=U);return e&&P.forEach(function(se){return t(b,se)}),Gn&&sc(b,B),k}function x(b,w,S,C){if(typeof S=="object"&&S!==null&&S.type===fd&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case Xy:e:{for(var k=S.key,D=w;D!==null;){if(D.key===k){if(k=S.type,k===fd){if(D.tag===7){n(b,D.sibling),w=i(D,S.props.children),w.return=b,b=w;break e}}else if(D.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Kl&&tF(k)===D.type){n(b,D.sibling),w=i(D,S.props),w.ref=Nh(b,D,S),w.return=b,b=w;break e}n(b,D);break}else t(b,D);D=D.sibling}S.type===fd?(w=Tc(S.props.children,b.mode,C,S.key),w.return=b,b=w):(C=vb(S.type,S.key,S.props,null,b.mode,C),C.ref=Nh(b,w,S),C.return=b,b=C)}return a(b);case cd:e:{for(D=S.key;w!==null;){if(w.key===D)if(w.tag===4&&w.stateNode.containerInfo===S.containerInfo&&w.stateNode.implementation===S.implementation){n(b,w.sibling),w=i(w,S.children||[]),w.return=b,b=w;break e}else{n(b,w);break}else t(b,w);w=w.sibling}w=fE(S,b.mode,C),w.return=b,b=w}return a(b);case Kl:return D=S._init,x(b,w,D(S._payload),C)}if(Em(S))return g(b,w,S,C);if(Ph(S))return y(b,w,S,C);l0(b,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,w!==null&&w.tag===6?(n(b,w.sibling),w=i(w,S),w.return=b,b=w):(n(b,w),w=cE(S,b.mode,C),w.return=b,b=w),a(b)):n(b,w)}return x}var ep=V5(!0),W5=V5(!1),nv={},is=Ru(nv),Sg=Ru(nv),Eg=Ru(nv);function _c(e){if(e===nv)throw Error(Xe(174));return e}function NO(e,t){switch(Fn(Eg,t),Fn(Sg,e),Fn(is,nv),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:_k(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=_k(t,e)}zn(is),Fn(is,t)}function tp(){zn(is),zn(Sg),zn(Eg)}function K5(e){_c(Eg.current);var t=_c(is.current),n=_k(t,e.type);t!==n&&(Fn(Sg,e),Fn(is,n))}function BO(e){Sg.current===e&&(zn(is),zn(Sg))}var er=Ru(0);function f1(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 iE=[];function jO(){for(var e=0;e<iE.length;e++)iE[e]._workInProgressVersionPrimary=null;iE.length=0}var db=ul.ReactCurrentDispatcher,oE=ul.ReactCurrentBatchConfig,Fc=0,tr=null,Ar=null,Nr=null,d1=!1,Vm=!1,Cg=0,Xne=0;function ai(){throw Error(Xe(321))}function zO(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ra(e[n],t[n]))return!1;return!0}function UO(e,t,n,r,i,o){if(Fc=o,tr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,db.current=e===null||e.memoizedState===null?tre:nre,e=n(r,i),Vm){o=0;do{if(Vm=!1,Cg=0,25<=o)throw Error(Xe(301));o+=1,Nr=Ar=null,t.updateQueue=null,db.current=rre,e=n(r,i)}while(Vm)}if(db.current=p1,t=Ar!==null&&Ar.next!==null,Fc=0,Nr=Ar=tr=null,d1=!1,t)throw Error(Xe(300));return e}function VO(){var e=Cg!==0;return Cg=0,e}function qa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Nr===null?tr.memoizedState=Nr=e:Nr=Nr.next=e,Nr}function Go(){if(Ar===null){var e=tr.alternate;e=e!==null?e.memoizedState:null}else e=Ar.next;var t=Nr===null?tr.memoizedState:Nr.next;if(t!==null)Nr=t,Ar=e;else{if(e===null)throw Error(Xe(310));Ar=e,e={memoizedState:Ar.memoizedState,baseState:Ar.baseState,baseQueue:Ar.baseQueue,queue:Ar.queue,next:null},Nr===null?tr.memoizedState=Nr=e:Nr=Nr.next=e}return Nr}function kg(e,t){return typeof t=="function"?t(e):t}function aE(e){var t=Go(),n=t.queue;if(n===null)throw Error(Xe(311));n.lastRenderedReducer=e;var r=Ar,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var s=a=null,l=null,u=o;do{var f=u.lane;if((Fc&f)===f)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var p={lane:f,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(s=l=p,a=r):l=l.next=p,tr.lanes|=f,Lc|=f}u=u.next}while(u!==null&&u!==o);l===null?a=r:l.next=s,Ra(r,t.memoizedState)||(Fi=!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,tr.lanes|=o,Lc|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function sE(e){var t=Go(),n=t.queue;if(n===null)throw Error(Xe(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);Ra(o,t.memoizedState)||(Fi=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function H5(){}function q5(e,t){var n=tr,r=Go(),i=t(),o=!Ra(r.memoizedState,i);if(o&&(r.memoizedState=i,Fi=!0),r=r.queue,WO(Y5.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Nr!==null&&Nr.memoizedState.tag&1){if(n.flags|=2048,Tg(9,Q5.bind(null,n,r,i,t),void 0,null),zr===null)throw Error(Xe(349));Fc&30||G5(n,t,i)}return i}function G5(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=tr.updateQueue,t===null?(t={lastEffect:null,stores:null},tr.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Q5(e,t,n,r){t.value=n,t.getSnapshot=r,X5(t)&&J5(e)}function Y5(e,t,n){return n(function(){X5(t)&&J5(e)})}function X5(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ra(e,n)}catch{return!0}}function J5(e){var t=rl(e,1);t!==null&&ka(t,e,1,-1)}function nF(e){var t=qa();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:kg,lastRenderedState:e},t.queue=e,e=e.dispatch=ere.bind(null,tr,e),[t.memoizedState,e]}function Tg(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=tr.updateQueue,t===null?(t={lastEffect:null,stores:null},tr.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 Z5(){return Go().memoizedState}function pb(e,t,n,r){var i=qa();tr.flags|=e,i.memoizedState=Tg(1|t,n,void 0,r===void 0?null:r)}function vw(e,t,n,r){var i=Go();r=r===void 0?null:r;var o=void 0;if(Ar!==null){var a=Ar.memoizedState;if(o=a.destroy,r!==null&&zO(r,a.deps)){i.memoizedState=Tg(t,n,o,r);return}}tr.flags|=e,i.memoizedState=Tg(1|t,n,o,r)}function rF(e,t){return pb(8390656,8,e,t)}function WO(e,t){return vw(2048,8,e,t)}function eU(e,t){return vw(4,2,e,t)}function tU(e,t){return vw(4,4,e,t)}function nU(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 rU(e,t,n){return n=n!=null?n.concat([e]):null,vw(4,4,nU.bind(null,t,e),n)}function KO(){}function iU(e,t){var n=Go();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&zO(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function oU(e,t){var n=Go();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&zO(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function aU(e,t,n){return Fc&21?(Ra(n,t)||(n=u5(),tr.lanes|=n,Lc|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Fi=!0),e.memoizedState=n)}function Jne(e,t){var n=Sn;Sn=n!==0&&4>n?n:4,e(!0);var r=oE.transition;oE.transition={};try{e(!1),t()}finally{Sn=n,oE.transition=r}}function sU(){return Go().memoizedState}function Zne(e,t,n){var r=pu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},lU(e))uU(t,n);else if(n=B5(e,t,n,r),n!==null){var i=Ei();ka(n,e,r,i),cU(n,t,r)}}function ere(e,t,n){var r=pu(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(lU(e))uU(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,Ra(s,a)){var l=t.interleaved;l===null?(i.next=i,LO(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=B5(e,t,i,r),n!==null&&(i=Ei(),ka(n,e,r,i),cU(n,t,r))}}function lU(e){var t=e.alternate;return e===tr||t!==null&&t===tr}function uU(e,t){Vm=d1=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function cU(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,xO(e,n)}}var p1={readContext:qo,useCallback:ai,useContext:ai,useEffect:ai,useImperativeHandle:ai,useInsertionEffect:ai,useLayoutEffect:ai,useMemo:ai,useReducer:ai,useRef:ai,useState:ai,useDebugValue:ai,useDeferredValue:ai,useTransition:ai,useMutableSource:ai,useSyncExternalStore:ai,useId:ai,unstable_isNewReconciler:!1},tre={readContext:qo,useCallback:function(e,t){return qa().memoizedState=[e,t===void 0?null:t],e},useContext:qo,useEffect:rF,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,pb(4194308,4,nU.bind(null,t,e),n)},useLayoutEffect:function(e,t){return pb(4194308,4,e,t)},useInsertionEffect:function(e,t){return pb(4,2,e,t)},useMemo:function(e,t){var n=qa();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=qa();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=Zne.bind(null,tr,e),[r.memoizedState,e]},useRef:function(e){var t=qa();return e={current:e},t.memoizedState=e},useState:nF,useDebugValue:KO,useDeferredValue:function(e){return qa().memoizedState=e},useTransition:function(){var e=nF(!1),t=e[0];return e=Jne.bind(null,e[1]),qa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=tr,i=qa();if(Gn){if(n===void 0)throw Error(Xe(407));n=n()}else{if(n=t(),zr===null)throw Error(Xe(349));Fc&30||G5(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,rF(Y5.bind(null,r,o,e),[e]),r.flags|=2048,Tg(9,Q5.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=qa(),t=zr.identifierPrefix;if(Gn){var n=Ys,r=Qs;n=(r&~(1<<32-Ca(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Cg++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Xne++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},nre={readContext:qo,useCallback:iU,useContext:qo,useEffect:WO,useImperativeHandle:rU,useInsertionEffect:eU,useLayoutEffect:tU,useMemo:oU,useReducer:aE,useRef:Z5,useState:function(){return aE(kg)},useDebugValue:KO,useDeferredValue:function(e){var t=Go();return aU(t,Ar.memoizedState,e)},useTransition:function(){var e=aE(kg)[0],t=Go().memoizedState;return[e,t]},useMutableSource:H5,useSyncExternalStore:q5,useId:sU,unstable_isNewReconciler:!1},rre={readContext:qo,useCallback:iU,useContext:qo,useEffect:WO,useImperativeHandle:rU,useInsertionEffect:eU,useLayoutEffect:tU,useMemo:oU,useReducer:sE,useRef:Z5,useState:function(){return sE(kg)},useDebugValue:KO,useDeferredValue:function(e){var t=Go();return Ar===null?t.memoizedState=e:aU(t,Ar.memoizedState,e)},useTransition:function(){var e=sE(kg)[0],t=Go().memoizedState;return[e,t]},useMutableSource:H5,useSyncExternalStore:q5,useId:sU,unstable_isNewReconciler:!1};function np(e,t){try{var n="",r=t;do n+=Dte(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 lE(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Wk(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var ire=typeof WeakMap=="function"?WeakMap:Map;function fU(e,t,n){n=Xs(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){m1||(m1=!0,eT=r),Wk(e,t)},n}function dU(e,t,n){n=Xs(-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(){Wk(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Wk(e,t),typeof r!="function"&&(du===null?du=new Set([this]):du.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function iF(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new ire;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=yre.bind(null,e,t,n),t.then(e,e))}function oF(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function aF(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Xs(-1,1),t.tag=2,fu(n,t,1))),n.lanes|=1),e)}var ore=ul.ReactCurrentOwner,Fi=!1;function xi(e,t,n,r){t.child=e===null?W5(t,null,n,r):ep(t,e.child,n,r)}function sF(e,t,n,r,i){n=n.render;var o=t.ref;return $d(t,i),r=UO(e,t,n,r,o,i),n=VO(),e!==null&&!Fi?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,il(e,t,i)):(Gn&&n&&AO(t),t.flags|=1,xi(e,t,r,i),t.child)}function lF(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!ZO(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,pU(e,t,o,r,i)):(e=vb(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:bg,n(a,r)&&e.ref===t.ref)return il(e,t,i)}return t.flags|=1,e=hu(o,r),e.ref=t.ref,e.return=t,t.child=e}function pU(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(bg(o,r)&&e.ref===t.ref)if(Fi=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Fi=!0);else return t.lanes=e.lanes,il(e,t,i)}return Kk(e,t,n,r,i)}function hU(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},Fn(_d,io),io|=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,Fn(_d,io),io|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Fn(_d,io),io|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Fn(_d,io),io|=r;return xi(e,t,i,n),t.child}function mU(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Kk(e,t,n,r,i){var o=Mi(n)?Pc:di.current;return o=Jd(t,o),$d(t,i),n=UO(e,t,n,r,o,i),r=VO(),e!==null&&!Fi?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,il(e,t,i)):(Gn&&r&&AO(t),t.flags|=1,xi(e,t,n,i),t.child)}function uF(e,t,n,r,i){if(Mi(n)){var o=!0;o1(t)}else o=!1;if($d(t,i),t.stateNode===null)hb(e,t),U5(t,n,r),Vk(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=qo(u):(u=Mi(n)?Pc:di.current,u=Jd(t,u));var f=n.getDerivedStateFromProps,p=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function";p||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==u)&&eF(t,a,r,u),Hl=!1;var d=t.memoizedState;a.state=d,c1(t,r,a,i),l=t.memoizedState,s!==r||d!==l||Li.current||Hl?(typeof f=="function"&&(Uk(t,n,f,r),l=t.memoizedState),(s=Hl||Z$(t,n,s,r,d,l,u))?(p||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,j5(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:ba(t.type,s),a.props=u,p=t.pendingProps,d=a.context,l=n.contextType,typeof l=="object"&&l!==null?l=qo(l):(l=Mi(n)?Pc:di.current,l=Jd(t,l));var v=n.getDerivedStateFromProps;(f=typeof v=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==p||d!==l)&&eF(t,a,r,l),Hl=!1,d=t.memoizedState,a.state=d,c1(t,r,a,i);var g=t.memoizedState;s!==p||d!==g||Li.current||Hl?(typeof v=="function"&&(Uk(t,n,v,r),g=t.memoizedState),(u=Hl||Z$(t,n,u,r,d,g,l)||!1)?(f||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,g,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,g,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),a.props=r,a.state=g,a.context=l,r=u):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Hk(e,t,n,r,o,i)}function Hk(e,t,n,r,i,o){mU(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&G$(t,n,!1),il(e,t,o);r=t.stateNode,ore.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=ep(t,e.child,null,o),t.child=ep(t,null,s,o)):xi(e,t,s,o),t.memoizedState=r.state,i&&G$(t,n,!0),t.child}function gU(e){var t=e.stateNode;t.pendingContext?q$(e,t.pendingContext,t.pendingContext!==t.context):t.context&&q$(e,t.context,!1),NO(e,t.containerInfo)}function cF(e,t,n,r,i){return Zd(),IO(i),t.flags|=256,xi(e,t,n,r),t.child}var qk={dehydrated:null,treeContext:null,retryLane:0};function Gk(e){return{baseLanes:e,cachePool:null,transitions:null}}function vU(e,t,n){var r=t.pendingProps,i=er.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),Fn(er,i&1),e===null)return jk(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=ww(a,r,0,null),e=Tc(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Gk(n),t.memoizedState=qk,e):HO(t,a));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return are(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=hu(i,l),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=hu(s,o):(o=Tc(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?Gk(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=qk,r}return o=e.child,e=o.sibling,r=hu(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 HO(e,t){return t=ww({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function u0(e,t,n,r){return r!==null&&IO(r),ep(t,e.child,null,n),e=HO(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function are(e,t,n,r,i,o,a){if(n)return t.flags&256?(t.flags&=-257,r=lE(Error(Xe(422))),u0(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=ww({mode:"visible",children:r.children},i,0,null),o=Tc(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&ep(t,e.child,null,a),t.child.memoizedState=Gk(a),t.memoizedState=qk,o);if(!(t.mode&1))return u0(e,t,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,o=Error(Xe(419)),r=lE(o,r,void 0),u0(e,t,a,r)}if(s=(a&e.childLanes)!==0,Fi||s){if(r=zr,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,rl(e,i),ka(r,e,i,-1))}return JO(),r=lE(Error(Xe(421))),u0(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=bre.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,lo=cu(i.nextSibling),uo=t,Gn=!0,Sa=null,e!==null&&(Fo[Lo++]=Qs,Fo[Lo++]=Ys,Fo[Lo++]=$c,Qs=e.id,Ys=e.overflow,$c=t),t=HO(t,r.children),t.flags|=4096,t)}function fF(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),zk(e.return,t,n)}function uE(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 yU(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(xi(e,t,r.children,n),r=er.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&fF(e,n,t);else if(e.tag===19)fF(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Fn(er,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&&f1(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),uE(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&&f1(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}uE(t,!0,n,null,o);break;case"together":uE(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function hb(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function il(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Lc|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Xe(153));if(t.child!==null){for(e=t.child,n=hu(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=hu(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function sre(e,t,n){switch(t.tag){case 3:gU(t),Zd();break;case 5:K5(t);break;case 1:Mi(t.type)&&o1(t);break;case 4:NO(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Fn(l1,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Fn(er,er.current&1),t.flags|=128,null):n&t.child.childLanes?vU(e,t,n):(Fn(er,er.current&1),e=il(e,t,n),e!==null?e.sibling:null);Fn(er,er.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return yU(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Fn(er,er.current),r)break;return null;case 22:case 23:return t.lanes=0,hU(e,t,n)}return il(e,t,n)}var bU,Qk,wU,_U;bU=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}};Qk=function(){};wU=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,_c(is.current);var o=null;switch(n){case"input":i=vk(e,i),r=vk(e,r),o=[];break;case"select":i=rr({},i,{value:void 0}),r=rr({},r,{value:void 0}),o=[];break;case"textarea":i=wk(e,i),r=wk(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=r1)}xk(n,r);var a;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var s=i[u];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(dg.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var l=r[u];if(s=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==s&&(l!=null||s!=null))if(u==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(o||(o=[]),o.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(o=o||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(dg.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Mn("scroll",e),o||s===l||(o=[])):(o=o||[]).push(u,l))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};_U=function(e,t,n,r){n!==r&&(t.flags|=4)};function Bh(e,t){if(!Gn)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 si(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 lre(e,t,n){var r=t.pendingProps;switch(DO(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return si(t),null;case 1:return Mi(t.type)&&i1(),si(t),null;case 3:return r=t.stateNode,tp(),zn(Li),zn(di),jO(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(s0(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Sa!==null&&(rT(Sa),Sa=null))),Qk(e,t),si(t),null;case 5:BO(t);var i=_c(Eg.current);if(n=t.type,e!==null&&t.stateNode!=null)wU(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Xe(166));return si(t),null}if(e=_c(is.current),s0(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Za]=t,r[xg]=o,e=(t.mode&1)!==0,n){case"dialog":Mn("cancel",r),Mn("close",r);break;case"iframe":case"object":case"embed":Mn("load",r);break;case"video":case"audio":for(i=0;i<km.length;i++)Mn(km[i],r);break;case"source":Mn("error",r);break;case"img":case"image":case"link":Mn("error",r),Mn("load",r);break;case"details":Mn("toggle",r);break;case"input":w$(r,o),Mn("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Mn("invalid",r);break;case"textarea":x$(r,o),Mn("invalid",r)}xk(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&&a0(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&a0(r.textContent,s,e),i=["children",""+s]):dg.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&Mn("scroll",r)}switch(n){case"input":Jy(r),_$(r,o,!0);break;case"textarea":Jy(r),S$(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=r1)}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=G4(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[Za]=t,e[xg]=r,bU(e,t,!1,!1),t.stateNode=e;e:{switch(a=Sk(n,r),n){case"dialog":Mn("cancel",e),Mn("close",e),i=r;break;case"iframe":case"object":case"embed":Mn("load",e),i=r;break;case"video":case"audio":for(i=0;i<km.length;i++)Mn(km[i],e);i=r;break;case"source":Mn("error",e),i=r;break;case"img":case"image":case"link":Mn("error",e),Mn("load",e),i=r;break;case"details":Mn("toggle",e),i=r;break;case"input":w$(e,r),i=vk(e,r),Mn("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=rr({},r,{value:void 0}),Mn("invalid",e);break;case"textarea":x$(e,r),i=wk(e,r),Mn("invalid",e);break;default:i=r}xk(n,i),s=i;for(o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="style"?X4(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Q4(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&pg(e,l):typeof l=="number"&&pg(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(dg.hasOwnProperty(o)?l!=null&&o==="onScroll"&&Mn("scroll",e):l!=null&&gO(e,o,l,a))}switch(n){case"input":Jy(e),_$(e,r,!1);break;case"textarea":Jy(e),S$(e);break;case"option":r.value!=null&&e.setAttribute("value",""+gu(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Ad(e,!!r.multiple,o,!1):r.defaultValue!=null&&Ad(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=r1)}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 si(t),null;case 6:if(e&&t.stateNode!=null)_U(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Xe(166));if(n=_c(Eg.current),_c(is.current),s0(t)){if(r=t.stateNode,n=t.memoizedProps,r[Za]=t,(o=r.nodeValue!==n)&&(e=uo,e!==null))switch(e.tag){case 3:a0(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&a0(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Za]=t,t.stateNode=r}return si(t),null;case 13:if(zn(er),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Gn&&lo!==null&&t.mode&1&&!(t.flags&128))N5(),Zd(),t.flags|=98560,o=!1;else if(o=s0(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(Xe(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(Xe(317));o[Za]=t}else Zd(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;si(t),o=!1}else Sa!==null&&(rT(Sa),Sa=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||er.current&1?Dr===0&&(Dr=3):JO())),t.updateQueue!==null&&(t.flags|=4),si(t),null);case 4:return tp(),Qk(e,t),e===null&&wg(t.stateNode.containerInfo),si(t),null;case 10:return FO(t.type._context),si(t),null;case 17:return Mi(t.type)&&i1(),si(t),null;case 19:if(zn(er),o=t.memoizedState,o===null)return si(t),null;if(r=(t.flags&128)!==0,a=o.rendering,a===null)if(r)Bh(o,!1);else{if(Dr!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=f1(e),a!==null){for(t.flags|=128,Bh(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 Fn(er,er.current&1|2),t.child}e=e.sibling}o.tail!==null&&br()>rp&&(t.flags|=128,r=!0,Bh(o,!1),t.lanes=4194304)}else{if(!r)if(e=f1(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Bh(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Gn)return si(t),null}else 2*br()-o.renderingStartTime>rp&&n!==1073741824&&(t.flags|=128,r=!0,Bh(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=br(),t.sibling=null,n=er.current,Fn(er,r?n&1|2:n&1),t):(si(t),null);case 22:case 23:return XO(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?io&1073741824&&(si(t),t.subtreeFlags&6&&(t.flags|=8192)):si(t),null;case 24:return null;case 25:return null}throw Error(Xe(156,t.tag))}function ure(e,t){switch(DO(t),t.tag){case 1:return Mi(t.type)&&i1(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return tp(),zn(Li),zn(di),jO(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return BO(t),null;case 13:if(zn(er),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Xe(340));Zd()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return zn(er),null;case 4:return tp(),null;case 10:return FO(t.type._context),null;case 22:case 23:return XO(),null;case 24:return null;default:return null}}var c0=!1,fi=!1,cre=typeof WeakSet=="function"?WeakSet:Set,pt=null;function wd(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ur(e,t,r)}else n.current=null}function Yk(e,t,n){try{n()}catch(r){ur(e,t,r)}}var dF=!1;function fre(e,t){if(Pk=e1,e=C5(),OO(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,u=0,f=0,p=e,d=null;t:for(;;){for(var v;p!==n||i!==0&&p.nodeType!==3||(s=a+i),p!==o||r!==0&&p.nodeType!==3||(l=a+r),p.nodeType===3&&(a+=p.nodeValue.length),(v=p.firstChild)!==null;)d=p,p=v;for(;;){if(p===e)break t;if(d===n&&++u===i&&(s=a),d===o&&++f===r&&(l=a),(v=p.nextSibling)!==null)break;p=d,d=p.parentNode}p=v}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for($k={focusedElem:e,selectionRange:n},e1=!1,pt=t;pt!==null;)if(t=pt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,pt=e;else for(;pt!==null;){t=pt;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var y=g.memoizedProps,x=g.memoizedState,b=t.stateNode,w=b.getSnapshotBeforeUpdate(t.elementType===t.type?y:ba(t.type,y),x);b.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Xe(163))}}catch(C){ur(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,pt=e;break}pt=t.return}return g=dF,dF=!1,g}function Wm(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&&Yk(t,n,o)}i=i.next}while(i!==r)}}function yw(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 Xk(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 xU(e){var t=e.alternate;t!==null&&(e.alternate=null,xU(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Za],delete t[xg],delete t[Mk],delete t[qne],delete t[Gne])),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 SU(e){return e.tag===5||e.tag===3||e.tag===4}function pF(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||SU(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 Jk(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=r1));else if(r!==4&&(e=e.child,e!==null))for(Jk(e,t,n),e=e.sibling;e!==null;)Jk(e,t,n),e=e.sibling}function Zk(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(Zk(e,t,n),e=e.sibling;e!==null;)Zk(e,t,n),e=e.sibling}var Qr=null,_a=!1;function Pl(e,t,n){for(n=n.child;n!==null;)EU(e,t,n),n=n.sibling}function EU(e,t,n){if(rs&&typeof rs.onCommitFiberUnmount=="function")try{rs.onCommitFiberUnmount(cw,n)}catch{}switch(n.tag){case 5:fi||wd(n,t);case 6:var r=Qr,i=_a;Qr=null,Pl(e,t,n),Qr=r,_a=i,Qr!==null&&(_a?(e=Qr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Qr.removeChild(n.stateNode));break;case 18:Qr!==null&&(_a?(e=Qr,n=n.stateNode,e.nodeType===8?nE(e.parentNode,n):e.nodeType===1&&nE(e,n),vg(e)):nE(Qr,n.stateNode));break;case 4:r=Qr,i=_a,Qr=n.stateNode.containerInfo,_a=!0,Pl(e,t,n),Qr=r,_a=i;break;case 0:case 11:case 14:case 15:if(!fi&&(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)&&Yk(n,t,a),i=i.next}while(i!==r)}Pl(e,t,n);break;case 1:if(!fi&&(wd(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){ur(n,t,s)}Pl(e,t,n);break;case 21:Pl(e,t,n);break;case 22:n.mode&1?(fi=(r=fi)||n.memoizedState!==null,Pl(e,t,n),fi=r):Pl(e,t,n);break;default:Pl(e,t,n)}}function hF(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new cre),t.forEach(function(r){var i=wre.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function pa(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,a=t,s=a;e:for(;s!==null;){switch(s.tag){case 5:Qr=s.stateNode,_a=!1;break e;case 3:Qr=s.stateNode.containerInfo,_a=!0;break e;case 4:Qr=s.stateNode.containerInfo,_a=!0;break e}s=s.return}if(Qr===null)throw Error(Xe(160));EU(o,a,i),Qr=null,_a=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){ur(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)CU(t,e),t=t.sibling}function CU(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(pa(t,e),ja(e),r&4){try{Wm(3,e,e.return),yw(3,e)}catch(y){ur(e,e.return,y)}try{Wm(5,e,e.return)}catch(y){ur(e,e.return,y)}}break;case 1:pa(t,e),ja(e),r&512&&n!==null&&wd(n,n.return);break;case 5:if(pa(t,e),ja(e),r&512&&n!==null&&wd(n,n.return),e.flags&32){var i=e.stateNode;try{pg(i,"")}catch(y){ur(e,e.return,y)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,a=n!==null?n.memoizedProps:o,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&o.type==="radio"&&o.name!=null&&H4(i,o),Sk(s,a);var u=Sk(s,o);for(a=0;a<l.length;a+=2){var f=l[a],p=l[a+1];f==="style"?X4(i,p):f==="dangerouslySetInnerHTML"?Q4(i,p):f==="children"?pg(i,p):gO(i,f,p,u)}switch(s){case"input":yk(i,o);break;case"textarea":q4(i,o);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var v=o.value;v!=null?Ad(i,!!o.multiple,v,!1):d!==!!o.multiple&&(o.defaultValue!=null?Ad(i,!!o.multiple,o.defaultValue,!0):Ad(i,!!o.multiple,o.multiple?[]:"",!1))}i[xg]=o}catch(y){ur(e,e.return,y)}}break;case 6:if(pa(t,e),ja(e),r&4){if(e.stateNode===null)throw Error(Xe(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(y){ur(e,e.return,y)}}break;case 3:if(pa(t,e),ja(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{vg(t.containerInfo)}catch(y){ur(e,e.return,y)}break;case 4:pa(t,e),ja(e);break;case 13:pa(t,e),ja(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(QO=br())),r&4&&hF(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(fi=(u=fi)||f,pa(t,e),fi=u):pa(t,e),ja(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&e.mode&1)for(pt=e,f=e.child;f!==null;){for(p=pt=f;pt!==null;){switch(d=pt,v=d.child,d.tag){case 0:case 11:case 14:case 15:Wm(4,d,d.return);break;case 1:wd(d,d.return);var g=d.stateNode;if(typeof g.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(y){ur(r,n,y)}}break;case 5:wd(d,d.return);break;case 22:if(d.memoizedState!==null){gF(p);continue}}v!==null?(v.return=d,pt=v):gF(p)}f=f.sibling}e:for(f=null,p=e;;){if(p.tag===5){if(f===null){f=p;try{i=p.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(s=p.stateNode,l=p.memoizedProps.style,a=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=Y4("display",a))}catch(y){ur(e,e.return,y)}}}else if(p.tag===6){if(f===null)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(y){ur(e,e.return,y)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;f===p&&(f=null),p=p.return}f===p&&(f=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:pa(t,e),ja(e),r&4&&hF(e);break;case 21:break;default:pa(t,e),ja(e)}}function ja(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(SU(n)){var r=n;break e}n=n.return}throw Error(Xe(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(pg(i,""),r.flags&=-33);var o=pF(e);Zk(e,o,i);break;case 3:case 4:var a=r.stateNode.containerInfo,s=pF(e);Jk(e,s,a);break;default:throw Error(Xe(161))}}catch(l){ur(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function dre(e,t,n){pt=e,kU(e)}function kU(e,t,n){for(var r=(e.mode&1)!==0;pt!==null;){var i=pt,o=i.child;if(i.tag===22&&r){var a=i.memoizedState!==null||c0;if(!a){var s=i.alternate,l=s!==null&&s.memoizedState!==null||fi;s=c0;var u=fi;if(c0=a,(fi=l)&&!u)for(pt=i;pt!==null;)a=pt,l=a.child,a.tag===22&&a.memoizedState!==null?vF(i):l!==null?(l.return=a,pt=l):vF(i);for(;o!==null;)pt=o,kU(o),o=o.sibling;pt=i,c0=s,fi=u}mF(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,pt=o):mF(e)}}function mF(e){for(;pt!==null;){var t=pt;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:fi||yw(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!fi)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:ba(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&J$(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}J$(t,a,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var f=u.memoizedState;if(f!==null){var p=f.dehydrated;p!==null&&vg(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Xe(163))}fi||t.flags&512&&Xk(t)}catch(d){ur(t,t.return,d)}}if(t===e){pt=null;break}if(n=t.sibling,n!==null){n.return=t.return,pt=n;break}pt=t.return}}function gF(e){for(;pt!==null;){var t=pt;if(t===e){pt=null;break}var n=t.sibling;if(n!==null){n.return=t.return,pt=n;break}pt=t.return}}function vF(e){for(;pt!==null;){var t=pt;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{yw(4,t)}catch(l){ur(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){ur(t,i,l)}}var o=t.return;try{Xk(t)}catch(l){ur(t,o,l)}break;case 5:var a=t.return;try{Xk(t)}catch(l){ur(t,a,l)}}}catch(l){ur(t,t.return,l)}if(t===e){pt=null;break}var s=t.sibling;if(s!==null){s.return=t.return,pt=s;break}pt=t.return}}var pre=Math.ceil,h1=ul.ReactCurrentDispatcher,qO=ul.ReactCurrentOwner,Vo=ul.ReactCurrentBatchConfig,an=0,zr=null,kr=null,Zr=0,io=0,_d=Ru(0),Dr=0,Rg=null,Lc=0,bw=0,GO=0,Km=null,$i=null,QO=0,rp=1/0,Vs=null,m1=!1,eT=null,du=null,f0=!1,nu=null,g1=0,Hm=0,tT=null,mb=-1,gb=0;function Ei(){return an&6?br():mb!==-1?mb:mb=br()}function pu(e){return e.mode&1?an&2&&Zr!==0?Zr&-Zr:Yne.transition!==null?(gb===0&&(gb=u5()),gb):(e=Sn,e!==0||(e=window.event,e=e===void 0?16:g5(e.type)),e):1}function ka(e,t,n,r){if(50<Hm)throw Hm=0,tT=null,Error(Xe(185));Zg(e,n,r),(!(an&2)||e!==zr)&&(e===zr&&(!(an&2)&&(bw|=n),Dr===4&&Zl(e,Zr)),Ni(e,r),n===1&&an===0&&!(t.mode&1)&&(rp=br()+500,mw&&Ou()))}function Ni(e,t){var n=e.callbackNode;Yte(e,t);var r=Zb(e,e===zr?Zr:0);if(r===0)n!==null&&k$(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&k$(n),t===1)e.tag===0?Qne(yF.bind(null,e)):F5(yF.bind(null,e)),Kne(function(){!(an&6)&&Ou()}),n=null;else{switch(c5(r)){case 1:n=_O;break;case 4:n=s5;break;case 16:n=Jb;break;case 536870912:n=l5;break;default:n=Jb}n=$U(n,TU.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function TU(e,t){if(mb=-1,gb=0,an&6)throw Error(Xe(327));var n=e.callbackNode;if(Fd()&&e.callbackNode!==n)return null;var r=Zb(e,e===zr?Zr:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=v1(e,r);else{t=r;var i=an;an|=2;var o=OU();(zr!==e||Zr!==t)&&(Vs=null,rp=br()+500,kc(e,t));do try{gre();break}catch(s){RU(e,s)}while(1);$O(),h1.current=o,an=i,kr!==null?t=0:(zr=null,Zr=0,t=Dr)}if(t!==0){if(t===2&&(i=Rk(e),i!==0&&(r=i,t=nT(e,i))),t===1)throw n=Rg,kc(e,0),Zl(e,r),Ni(e,br()),n;if(t===6)Zl(e,r);else{if(i=e.current.alternate,!(r&30)&&!hre(i)&&(t=v1(e,r),t===2&&(o=Rk(e),o!==0&&(r=o,t=nT(e,o))),t===1))throw n=Rg,kc(e,0),Zl(e,r),Ni(e,br()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(Xe(345));case 2:lc(e,$i,Vs);break;case 3:if(Zl(e,r),(r&130023424)===r&&(t=QO+500-br(),10<t)){if(Zb(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Ei(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Lk(lc.bind(null,e,$i,Vs),t);break}lc(e,$i,Vs);break;case 4:if(Zl(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-Ca(r);o=1<<a,a=t[a],a>i&&(i=a),r&=~o}if(r=i,r=br()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*pre(r/1960))-r,10<r){e.timeoutHandle=Lk(lc.bind(null,e,$i,Vs),r);break}lc(e,$i,Vs);break;case 5:lc(e,$i,Vs);break;default:throw Error(Xe(329))}}}return Ni(e,br()),e.callbackNode===n?TU.bind(null,e):null}function nT(e,t){var n=Km;return e.current.memoizedState.isDehydrated&&(kc(e,t).flags|=256),e=v1(e,t),e!==2&&(t=$i,$i=n,t!==null&&rT(t)),e}function rT(e){$i===null?$i=e:$i.push.apply($i,e)}function hre(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(!Ra(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 Zl(e,t){for(t&=~GO,t&=~bw,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ca(t),r=1<<n;e[n]=-1,t&=~r}}function yF(e){if(an&6)throw Error(Xe(327));Fd();var t=Zb(e,0);if(!(t&1))return Ni(e,br()),null;var n=v1(e,t);if(e.tag!==0&&n===2){var r=Rk(e);r!==0&&(t=r,n=nT(e,r))}if(n===1)throw n=Rg,kc(e,0),Zl(e,t),Ni(e,br()),n;if(n===6)throw Error(Xe(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,lc(e,$i,Vs),Ni(e,br()),null}function YO(e,t){var n=an;an|=1;try{return e(t)}finally{an=n,an===0&&(rp=br()+500,mw&&Ou())}}function Mc(e){nu!==null&&nu.tag===0&&!(an&6)&&Fd();var t=an;an|=1;var n=Vo.transition,r=Sn;try{if(Vo.transition=null,Sn=1,e)return e()}finally{Sn=r,Vo.transition=n,an=t,!(an&6)&&Ou()}}function XO(){io=_d.current,zn(_d)}function kc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Wne(n)),kr!==null)for(n=kr.return;n!==null;){var r=n;switch(DO(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&i1();break;case 3:tp(),zn(Li),zn(di),jO();break;case 5:BO(r);break;case 4:tp();break;case 13:zn(er);break;case 19:zn(er);break;case 10:FO(r.type._context);break;case 22:case 23:XO()}n=n.return}if(zr=e,kr=e=hu(e.current,null),Zr=io=t,Dr=0,Rg=null,GO=bw=Lc=0,$i=Km=null,wc!==null){for(t=0;t<wc.length;t++)if(n=wc[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}wc=null}return e}function RU(e,t){do{var n=kr;try{if($O(),db.current=p1,d1){for(var r=tr.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}d1=!1}if(Fc=0,Nr=Ar=tr=null,Vm=!1,Cg=0,qO.current=null,n===null||n.return===null){Dr=1,Rg=t,kr=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=Zr,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,f=s,p=f.tag;if(!(f.mode&1)&&(p===0||p===11||p===15)){var d=f.alternate;d?(f.updateQueue=d.updateQueue,f.memoizedState=d.memoizedState,f.lanes=d.lanes):(f.updateQueue=null,f.memoizedState=null)}var v=oF(a);if(v!==null){v.flags&=-257,aF(v,a,s,o,t),v.mode&1&&iF(o,u,t),t=v,l=u;var g=t.updateQueue;if(g===null){var y=new Set;y.add(l),t.updateQueue=y}else g.add(l);break e}else{if(!(t&1)){iF(o,u,t),JO();break e}l=Error(Xe(426))}}else if(Gn&&s.mode&1){var x=oF(a);if(x!==null){!(x.flags&65536)&&(x.flags|=256),aF(x,a,s,o,t),IO(np(l,s));break e}}o=l=np(l,s),Dr!==4&&(Dr=2),Km===null?Km=[o]:Km.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var b=fU(o,l,t);X$(o,b);break e;case 1:s=l;var w=o.type,S=o.stateNode;if(!(o.flags&128)&&(typeof w.getDerivedStateFromError=="function"||S!==null&&typeof S.componentDidCatch=="function"&&(du===null||!du.has(S)))){o.flags|=65536,t&=-t,o.lanes|=t;var C=dU(o,s,t);X$(o,C);break e}}o=o.return}while(o!==null)}DU(n)}catch(k){t=k,kr===n&&n!==null&&(kr=n=n.return);continue}break}while(1)}function OU(){var e=h1.current;return h1.current=p1,e===null?p1:e}function JO(){(Dr===0||Dr===3||Dr===2)&&(Dr=4),zr===null||!(Lc&268435455)&&!(bw&268435455)||Zl(zr,Zr)}function v1(e,t){var n=an;an|=2;var r=OU();(zr!==e||Zr!==t)&&(Vs=null,kc(e,t));do try{mre();break}catch(i){RU(e,i)}while(1);if($O(),an=n,h1.current=r,kr!==null)throw Error(Xe(261));return zr=null,Zr=0,Dr}function mre(){for(;kr!==null;)AU(kr)}function gre(){for(;kr!==null&&!zte();)AU(kr)}function AU(e){var t=PU(e.alternate,e,io);e.memoizedProps=e.pendingProps,t===null?DU(e):kr=t,qO.current=null}function DU(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=ure(n,t),n!==null){n.flags&=32767,kr=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Dr=6,kr=null;return}}else if(n=lre(n,t,io),n!==null){kr=n;return}if(t=t.sibling,t!==null){kr=t;return}kr=t=e}while(t!==null);Dr===0&&(Dr=5)}function lc(e,t,n){var r=Sn,i=Vo.transition;try{Vo.transition=null,Sn=1,vre(e,t,n,r)}finally{Vo.transition=i,Sn=r}return null}function vre(e,t,n,r){do Fd();while(nu!==null);if(an&6)throw Error(Xe(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(Xe(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Xte(e,o),e===zr&&(kr=zr=null,Zr=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||f0||(f0=!0,$U(Jb,function(){return Fd(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Vo.transition,Vo.transition=null;var a=Sn;Sn=1;var s=an;an|=4,qO.current=null,fre(e,n),CU(n,e),Mne($k),e1=!!Pk,$k=Pk=null,e.current=n,dre(n),Ute(),an=s,Sn=a,Vo.transition=o}else e.current=n;if(f0&&(f0=!1,nu=e,g1=i),o=e.pendingLanes,o===0&&(du=null),Kte(n.stateNode),Ni(e,br()),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(m1)throw m1=!1,e=eT,eT=null,e;return g1&1&&e.tag!==0&&Fd(),o=e.pendingLanes,o&1?e===tT?Hm++:(Hm=0,tT=e):Hm=0,Ou(),null}function Fd(){if(nu!==null){var e=c5(g1),t=Vo.transition,n=Sn;try{if(Vo.transition=null,Sn=16>e?16:e,nu===null)var r=!1;else{if(e=nu,nu=null,g1=0,an&6)throw Error(Xe(331));var i=an;for(an|=4,pt=e.current;pt!==null;){var o=pt,a=o.child;if(pt.flags&16){var s=o.deletions;if(s!==null){for(var l=0;l<s.length;l++){var u=s[l];for(pt=u;pt!==null;){var f=pt;switch(f.tag){case 0:case 11:case 15:Wm(8,f,o)}var p=f.child;if(p!==null)p.return=f,pt=p;else for(;pt!==null;){f=pt;var d=f.sibling,v=f.return;if(xU(f),f===u){pt=null;break}if(d!==null){d.return=v,pt=d;break}pt=v}}}var g=o.alternate;if(g!==null){var y=g.child;if(y!==null){g.child=null;do{var x=y.sibling;y.sibling=null,y=x}while(y!==null)}}pt=o}}if(o.subtreeFlags&2064&&a!==null)a.return=o,pt=a;else e:for(;pt!==null;){if(o=pt,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Wm(9,o,o.return)}var b=o.sibling;if(b!==null){b.return=o.return,pt=b;break e}pt=o.return}}var w=e.current;for(pt=w;pt!==null;){a=pt;var S=a.child;if(a.subtreeFlags&2064&&S!==null)S.return=a,pt=S;else e:for(a=w;pt!==null;){if(s=pt,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:yw(9,s)}}catch(k){ur(s,s.return,k)}if(s===a){pt=null;break e}var C=s.sibling;if(C!==null){C.return=s.return,pt=C;break e}pt=s.return}}if(an=i,Ou(),rs&&typeof rs.onPostCommitFiberRoot=="function")try{rs.onPostCommitFiberRoot(cw,e)}catch{}r=!0}return r}finally{Sn=n,Vo.transition=t}}return!1}function bF(e,t,n){t=np(n,t),t=fU(e,t,1),e=fu(e,t,1),t=Ei(),e!==null&&(Zg(e,1,t),Ni(e,t))}function ur(e,t,n){if(e.tag===3)bF(e,e,n);else for(;t!==null;){if(t.tag===3){bF(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(du===null||!du.has(r))){e=np(n,e),e=dU(t,e,1),t=fu(t,e,1),e=Ei(),t!==null&&(Zg(t,1,e),Ni(t,e));break}}t=t.return}}function yre(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ei(),e.pingedLanes|=e.suspendedLanes&n,zr===e&&(Zr&n)===n&&(Dr===4||Dr===3&&(Zr&130023424)===Zr&&500>br()-QO?kc(e,0):GO|=n),Ni(e,t)}function IU(e,t){t===0&&(e.mode&1?(t=t0,t0<<=1,!(t0&130023424)&&(t0=4194304)):t=1);var n=Ei();e=rl(e,t),e!==null&&(Zg(e,t,n),Ni(e,n))}function bre(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),IU(e,n)}function wre(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(Xe(314))}r!==null&&r.delete(t),IU(e,n)}var PU;PU=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Li.current)Fi=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Fi=!1,sre(e,t,n);Fi=!!(e.flags&131072)}else Fi=!1,Gn&&t.flags&1048576&&L5(t,s1,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;hb(e,t),e=t.pendingProps;var i=Jd(t,di.current);$d(t,n),i=UO(null,t,r,e,i,n);var o=VO();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,Mi(r)?(o=!0,o1(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,MO(t),i.updater=gw,t.stateNode=i,i._reactInternals=t,Vk(t,r,e,n),t=Hk(null,t,r,!0,o,n)):(t.tag=0,Gn&&o&&AO(t),xi(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(hb(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=xre(r),e=ba(r,e),i){case 0:t=Kk(null,t,r,e,n);break e;case 1:t=uF(null,t,r,e,n);break e;case 11:t=sF(null,t,r,e,n);break e;case 14:t=lF(null,t,r,ba(r.type,e),n);break e}throw Error(Xe(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ba(r,i),Kk(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ba(r,i),uF(e,t,r,i,n);case 3:e:{if(gU(t),e===null)throw Error(Xe(387));r=t.pendingProps,o=t.memoizedState,i=o.element,j5(e,t),c1(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=np(Error(Xe(423)),t),t=cF(e,t,r,n,i);break e}else if(r!==i){i=np(Error(Xe(424)),t),t=cF(e,t,r,n,i);break e}else for(lo=cu(t.stateNode.containerInfo.firstChild),uo=t,Gn=!0,Sa=null,n=W5(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Zd(),r===i){t=il(e,t,n);break e}xi(e,t,r,n)}t=t.child}return t;case 5:return K5(t),e===null&&jk(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,Fk(r,i)?a=null:o!==null&&Fk(r,o)&&(t.flags|=32),mU(e,t),xi(e,t,a,n),t.child;case 6:return e===null&&jk(t),null;case 13:return vU(e,t,n);case 4:return NO(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ep(t,null,r,n):xi(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ba(r,i),sF(e,t,r,i,n);case 7:return xi(e,t,t.pendingProps,n),t.child;case 8:return xi(e,t,t.pendingProps.children,n),t.child;case 12:return xi(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,Fn(l1,r._currentValue),r._currentValue=a,o!==null)if(Ra(o.value,a)){if(o.children===i.children&&!Li.current){t=il(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=Xs(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?l.next=l:(l.next=f.next,f.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),zk(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(Xe(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),zk(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}xi(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,$d(t,n),i=qo(i),r=r(i),t.flags|=1,xi(e,t,r,n),t.child;case 14:return r=t.type,i=ba(r,t.pendingProps),i=ba(r.type,i),lF(e,t,r,i,n);case 15:return pU(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ba(r,i),hb(e,t),t.tag=1,Mi(r)?(e=!0,o1(t)):e=!1,$d(t,n),U5(t,r,i),Vk(t,r,i,n),Hk(null,t,r,!0,e,n);case 19:return yU(e,t,n);case 22:return hU(e,t,n)}throw Error(Xe(156,t.tag))};function $U(e,t){return a5(e,t)}function _re(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 zo(e,t,n,r){return new _re(e,t,n,r)}function ZO(e){return e=e.prototype,!(!e||!e.isReactComponent)}function xre(e){if(typeof e=="function")return ZO(e)?1:0;if(e!=null){if(e=e.$$typeof,e===yO)return 11;if(e===bO)return 14}return 2}function hu(e,t){var n=e.alternate;return n===null?(n=zo(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 vb(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")ZO(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case fd:return Tc(n.children,i,o,t);case vO:a=8,i|=8;break;case pk:return e=zo(12,n,t,i|2),e.elementType=pk,e.lanes=o,e;case hk:return e=zo(13,n,t,i),e.elementType=hk,e.lanes=o,e;case mk:return e=zo(19,n,t,i),e.elementType=mk,e.lanes=o,e;case V4:return ww(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case z4:a=10;break e;case U4:a=9;break e;case yO:a=11;break e;case bO:a=14;break e;case Kl:a=16,r=null;break e}throw Error(Xe(130,e==null?e:typeof e,""))}return t=zo(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Tc(e,t,n,r){return e=zo(7,e,r,t),e.lanes=n,e}function ww(e,t,n,r){return e=zo(22,e,r,t),e.elementType=V4,e.lanes=n,e.stateNode={isHidden:!1},e}function cE(e,t,n){return e=zo(6,e,null,t),e.lanes=n,e}function fE(e,t,n){return t=zo(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Sre(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=KS(0),this.expirationTimes=KS(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=KS(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function eA(e,t,n,r,i,o,a,s,l){return e=new Sre(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=zo(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},MO(o),e}function Ere(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:cd,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function FU(e){if(!e)return vu;e=e._reactInternals;e:{if(Gc(e)!==e||e.tag!==1)throw Error(Xe(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Mi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Xe(171))}if(e.tag===1){var n=e.type;if(Mi(n))return $5(e,n,t)}return t}function LU(e,t,n,r,i,o,a,s,l){return e=eA(n,r,!0,e,i,o,a,s,l),e.context=FU(null),n=e.current,r=Ei(),i=pu(n),o=Xs(r,i),o.callback=t??null,fu(n,o,i),e.current.lanes=i,Zg(e,i,r),Ni(e,r),e}function _w(e,t,n,r){var i=t.current,o=Ei(),a=pu(i);return n=FU(n),t.context===null?t.context=n:t.pendingContext=n,t=Xs(o,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=fu(i,t,a),e!==null&&(ka(e,i,a,o),fb(e,i,a)),a}function y1(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 wF(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function tA(e,t){wF(e,t),(e=e.alternate)&&wF(e,t)}function Cre(){return null}var MU=typeof reportError=="function"?reportError:function(e){console.error(e)};function nA(e){this._internalRoot=e}xw.prototype.render=nA.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Xe(409));_w(e,t,null,null)};xw.prototype.unmount=nA.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Mc(function(){_w(null,e,null,null)}),t[nl]=null}};function xw(e){this._internalRoot=e}xw.prototype.unstable_scheduleHydration=function(e){if(e){var t=p5();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Jl.length&&t!==0&&t<Jl[n].priority;n++);Jl.splice(n,0,e),n===0&&m5(e)}};function rA(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Sw(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function _F(){}function kre(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=y1(a);o.call(u)}}var a=LU(t,r,e,0,null,!1,!1,"",_F);return e._reactRootContainer=a,e[nl]=a.current,wg(e.nodeType===8?e.parentNode:e),Mc(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var u=y1(l);s.call(u)}}var l=eA(e,0,!1,null,null,!1,!1,"",_F);return e._reactRootContainer=l,e[nl]=l.current,wg(e.nodeType===8?e.parentNode:e),Mc(function(){_w(t,l,n,r)}),l}function Ew(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=y1(a);s.call(l)}}_w(t,a,e,i)}else a=kre(n,t,e,i,r);return y1(a)}f5=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Cm(t.pendingLanes);n!==0&&(xO(t,n|1),Ni(t,br()),!(an&6)&&(rp=br()+500,Ou()))}break;case 13:Mc(function(){var r=rl(e,1);if(r!==null){var i=Ei();ka(r,e,1,i)}}),tA(e,1)}};SO=function(e){if(e.tag===13){var t=rl(e,134217728);if(t!==null){var n=Ei();ka(t,e,134217728,n)}tA(e,134217728)}};d5=function(e){if(e.tag===13){var t=pu(e),n=rl(e,t);if(n!==null){var r=Ei();ka(n,e,t,r)}tA(e,t)}};p5=function(){return Sn};h5=function(e,t){var n=Sn;try{return Sn=e,t()}finally{Sn=n}};Ck=function(e,t,n){switch(t){case"input":if(yk(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=hw(r);if(!i)throw Error(Xe(90));K4(r),yk(r,i)}}}break;case"textarea":q4(e,n);break;case"select":t=n.value,t!=null&&Ad(e,!!n.multiple,t,!1)}};e5=YO;t5=Mc;var Tre={usingClientEntryPoint:!1,Events:[tv,md,hw,J4,Z4,YO]},jh={findFiberByHostInstance:bc,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},Rre={bundleType:jh.bundleType,version:jh.version,rendererPackageName:jh.rendererPackageName,rendererConfig:jh.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ul.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=i5(e),e===null?null:e.stateNode},findFiberByHostInstance:jh.findFiberByHostInstance||Cre,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 d0=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!d0.isDisabled&&d0.supportsFiber)try{cw=d0.inject(Rre),rs=d0}catch{}}go.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Tre;go.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!rA(t))throw Error(Xe(200));return Ere(e,t,null,n)};go.createRoot=function(e,t){if(!rA(e))throw Error(Xe(299));var n=!1,r="",i=MU;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=eA(e,1,!1,null,null,n,!1,r,i),e[nl]=t.current,wg(e.nodeType===8?e.parentNode:e),new nA(t)};go.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(Xe(188)):(e=Object.keys(e).join(","),Error(Xe(268,e)));return e=i5(t),e=e===null?null:e.stateNode,e};go.flushSync=function(e){return Mc(e)};go.hydrate=function(e,t,n){if(!Sw(t))throw Error(Xe(200));return Ew(null,e,t,!0,n)};go.hydrateRoot=function(e,t,n){if(!rA(e))throw Error(Xe(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",a=MU;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=LU(t,null,e,1,n??null,i,!1,o,a),e[nl]=t.current,wg(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 xw(t)};go.render=function(e,t,n){if(!Sw(t))throw Error(Xe(200));return Ew(null,e,t,!1,n)};go.unmountComponentAtNode=function(e){if(!Sw(e))throw Error(Xe(40));return e._reactRootContainer?(Mc(function(){Ew(null,null,e,!1,function(){e._reactRootContainer=null,e[nl]=null})}),!0):!1};go.unstable_batchedUpdates=YO;go.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Sw(n))throw Error(Xe(200));if(e==null||e._reactInternals===void 0)throw Error(Xe(38));return Ew(e,t,n,!1,r)};go.version="18.2.0-next-9e3b772b8-20220608";function NU(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(NU)}catch(e){console.error(e)}}NU(),L4.exports=go;var Qc=L4.exports;const Tm=ps(Qc);var xF=Qc;fk.createRoot=xF.createRoot,fk.hydrateRoot=xF.hydrateRoot;function Ore(e){const t=new Error(e);if(t.stack===void 0)try{throw t}catch{}return t}var Are=Ore,Wt=Are;function Dre(e){return!!e&&typeof e.then=="function"}var Qn=Dre;function Ire(e,t){if(e!=null)return e;throw Wt(t??"Got unexpected null or undefined")}var Yn=Ire;function Mt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Cw{getValue(){throw Wt("BaseLoadable")}toPromise(){throw Wt("BaseLoadable")}valueMaybe(){throw Wt("BaseLoadable")}valueOrThrow(){throw Wt(`Loadable expected value, but in "${this.state}" state`)}promiseMaybe(){throw Wt("BaseLoadable")}promiseOrThrow(){throw Wt(`Loadable expected promise, but in "${this.state}" state`)}errorMaybe(){throw Wt("BaseLoadable")}errorOrThrow(){throw Wt(`Loadable expected error, but in "${this.state}" state`)}is(t){return t.state===this.state&&t.contents===this.contents}map(t){throw Wt("BaseLoadable")}}class Pre extends Cw{constructor(t){super(),Mt(this,"state","hasValue"),Mt(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 Qn(n)?Nc(n):ip(n)?n:rv(n)}catch(n){return Qn(n)?Nc(n.next(()=>this.map(t))):kw(n)}}}class $re extends Cw{constructor(t){super(),Mt(this,"state","hasError"),Mt(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 BU extends Cw{constructor(t){super(),Mt(this,"state","loading"),Mt(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 Nc(this.contents.then(n=>{const r=t(n);if(ip(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(Qn(n))return n.then(()=>this.map(t).contents);throw n}))}}function rv(e){return Object.freeze(new Pre(e))}function kw(e){return Object.freeze(new $re(e))}function Nc(e){return Object.freeze(new BU(e))}function jU(){return Object.freeze(new BU(new Promise(()=>{})))}function Fre(e){return e.every(t=>t.state==="hasValue")?rv(e.map(t=>t.contents)):e.some(t=>t.state==="hasError")?kw(Yn(e.find(t=>t.state==="hasError"),"Invalid loadable passed to loadableAll").contents):Nc(Promise.all(e.map(t=>t.contents)))}function zU(e){const n=(Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(i=>e[i])).map(i=>ip(i)?i:Qn(i)?Nc(i):rv(i)),r=Fre(n);return Array.isArray(e)?r:r.map(i=>Object.getOwnPropertyNames(e).reduce((o,a,s)=>({...o,[a]:i[s]}),{}))}function ip(e){return e instanceof Cw}const Lre={of:e=>Qn(e)?Nc(e):ip(e)?e:rv(e),error:e=>kw(e),loading:()=>jU(),all:zU,isLoadable:ip};var Yc={loadableWithValue:rv,loadableWithError:kw,loadableWithPromise:Nc,loadableLoading:jU,loadableAll:zU,isLoadable:ip,RecoilLoadable:Lre},Mre=Yc.loadableWithValue,Nre=Yc.loadableWithError,Bre=Yc.loadableWithPromise,jre=Yc.loadableLoading,zre=Yc.loadableAll,Ure=Yc.isLoadable,Vre=Yc.RecoilLoadable,iv=Object.freeze({__proto__:null,loadableWithValue:Mre,loadableWithError:Nre,loadableWithPromise:Bre,loadableLoading:jre,loadableAll:zre,isLoadable:Ure,RecoilLoadable:Vre});const Tw=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 Rw(e){var t;return(t=Tw.get(e))!==null&&t!==void 0?t:!1}Rw.setPass=e=>{Tw.set(e,!0)};Rw.setFail=e=>{Tw.set(e,!1)};Rw.clear=()=>{Tw.clear()};var Dn=Rw;function Wre(e,t,{error:n}={}){return null}var Kre=Wre,iA=Kre,dE,pE,hE;const Hre=(dE=yt.createMutableSource)!==null&&dE!==void 0?dE:yt.unstable_createMutableSource,UU=(pE=yt.useMutableSource)!==null&&pE!==void 0?pE:yt.unstable_useMutableSource,VU=(hE=yt.useSyncExternalStore)!==null&&hE!==void 0?hE:yt.unstable_useSyncExternalStore;function qre(){var e;const{ReactCurrentDispatcher:t,ReactCurrentOwner:n}=yt.__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 Gre(){return Dn("recoil_transition_support")?{mode:"TRANSITION_SUPPORT",early:!0,concurrent:!0}:Dn("recoil_sync_external_store")&&VU!=null?{mode:"SYNC_EXTERNAL_STORE",early:!0,concurrent:!1}:Dn("recoil_mutable_source")&&UU!=null&&typeof window<"u"&&!window.$disableRecoilValueMutableSource_TEMP_HACK_DO_NOT_USE?Dn("recoil_suppress_rerender_in_callback")?{mode:"MUTABLE_SOURCE",early:!0,concurrent:!0}:{mode:"MUTABLE_SOURCE",early:!1,concurrent:!1}:Dn("recoil_suppress_rerender_in_callback")?{mode:"LEGACY",early:!0,concurrent:!1}:{mode:"LEGACY",early:!1,concurrent:!1}}function Qre(){return!1}var ov={createMutableSource:Hre,useMutableSource:UU,useSyncExternalStore:VU,currentRendererSupportsUseSyncExternalStore:qre,reactMode:Gre,isFastRefreshEnabled:Qre};const WU={RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED:!0};function Yre(){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 Wt(`({}).RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED value must be 'true', 'false', or empty: ${r}`);WU.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=r==="true"}Yre();var KU=WU;class oA{constructor(t){Mt(this,"key",void 0),this.key=t}toJSON(){return{key:this.key}}}class HU extends oA{}class qU extends oA{}function Xre(e){return e instanceof HU||e instanceof qU}var Ow={AbstractRecoilValue:oA,RecoilState:HU,RecoilValueReadOnly:qU,isRecoilValue:Xre},Jre=Ow.AbstractRecoilValue,Zre=Ow.RecoilState,eie=Ow.RecoilValueReadOnly,tie=Ow.isRecoilValue,op=Object.freeze({__proto__:null,AbstractRecoilValue:Jre,RecoilState:Zre,RecoilValueReadOnly:eie,isRecoilValue:tie});function nie(e,t){return function*(){let n=0;for(const r of e)yield t(r,n++)}()}var Aw=nie;class GU{}const rie=new GU,Bc=new Map,aA=new Map;function iie(e){return Aw(e,t=>Yn(aA.get(t)))}function oie(e){if(Bc.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 aie(e){KU.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&oie(e.key),Bc.set(e.key,e);const t=e.set==null?new op.RecoilValueReadOnly(e.key):new op.RecoilState(e.key);return aA.set(e.key,t),t}class QU extends Error{}function sie(e){const t=Bc.get(e);if(t==null)throw new QU(`Missing definition for RecoilValue: "${e}""`);return t}function lie(e){return Bc.get(e)}const b1=new Map;function uie(e){var t;if(!Dn("recoil_memory_managament_2020"))return;const n=Bc.get(e);if(n!=null&&(t=n.shouldDeleteConfigOnRelease)!==null&&t!==void 0&&t.call(n)){var r;Bc.delete(e),(r=YU(e))===null||r===void 0||r(),b1.delete(e)}}function cie(e,t){Dn("recoil_memory_managament_2020")&&(t===void 0?b1.delete(e):b1.set(e,t))}function YU(e){return b1.get(e)}var Ki={nodes:Bc,recoilValues:aA,registerNode:aie,getNode:sie,getNodeMaybe:lie,deleteNodeConfigIfPossible:uie,setConfigDeletionHandler:cie,getConfigDeletionHandler:YU,recoilValuesForKeys:iie,NodeMissingError:QU,DefaultValue:GU,DEFAULT_VALUE:rie};function fie(e,t){t()}var die={enqueueExecution:fie};function pie(e,t){return t={exports:{}},e(t,t.exports),t.exports}var hie=pie(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={},u=function(ge){return function(){return ge}},f=n.hash=function(pe){var ge=typeof pe>"u"?"undefined":t(pe);if(ge==="number")return pe;ge!=="string"&&(pe+="");for(var Se=0,We=0,Ke=pe.length;We<Ke;++We){var Ye=pe.charCodeAt(We);Se=(Se<<5)-Se+Ye|0}return Se},p=function(ge){return ge-=ge>>1&1431655765,ge=(ge&858993459)+(ge>>2&858993459),ge=ge+(ge>>4)&252645135,ge+=ge>>8,ge+=ge>>16,ge&127},d=function(ge,Se){return Se>>>ge&o},v=function(ge){return 1<<ge},g=function(ge,Se){return p(ge&Se-1)},y=function(ge,Se,We,Ke){var Ye=Ke;if(!ge){var dt=Ke.length;Ye=new Array(dt);for(var ct=0;ct<dt;++ct)Ye[ct]=Ke[ct]}return Ye[Se]=We,Ye},x=function(ge,Se,We){var Ke=We.length-1,Ye=0,dt=0,ct=We;if(ge)Ye=dt=Se;else for(ct=new Array(Ke);Ye<Se;)ct[dt++]=We[Ye++];for(++Ye;Ye<=Ke;)ct[dt++]=We[Ye++];return ge&&(ct.length=Ke),ct},b=function(ge,Se,We,Ke){var Ye=Ke.length;if(ge){for(var dt=Ye;dt>=Se;)Ke[dt--]=Ke[dt];return Ke[Se]=We,Ke}for(var ct=0,ot=0,ht=new Array(Ye+1);ct<Se;)ht[ot++]=Ke[ct++];for(ht[Se]=We;ct<Ye;)ht[++ot]=Ke[ct++];return ht},w=1,S=2,C=3,k=4,D={__hamt_isEmpty:!0},P=function(ge){return ge===D||ge&&ge.__hamt_isEmpty},B=function(ge,Se,We,Ke){return{type:w,edit:ge,hash:Se,key:We,value:Ke,_modify:Y}},V=function(ge,Se,We){return{type:S,edit:ge,hash:Se,children:We,_modify:ee}},U=function(ge,Se,We){return{type:C,edit:ge,mask:Se,children:We,_modify:G}},W=function(ge,Se,We){return{type:k,edit:ge,size:Se,children:We,_modify:L}},se=function(ge){return ge===D||ge.type===w||ge.type===S},ne=function(ge,Se,We,Ke,Ye){for(var dt=[],ct=Ke,ot=0,ht=0;ct;++ht)ct&1&&(dt[ht]=Ye[ot++]),ct>>>=1;return dt[Se]=We,W(ge,ot+1,dt)},re=function(ge,Se,We,Ke){for(var Ye=new Array(Se-1),dt=0,ct=0,ot=0,ht=Ke.length;ot<ht;++ot)if(ot!==We){var $t=Ke[ot];$t&&!P($t)&&(Ye[dt++]=$t,ct|=1<<ot)}return U(ge,ct,Ye)},Z=function pe(ge,Se,We,Ke,Ye,dt){if(We===Ye)return V(ge,We,[dt,Ke]);var ct=d(Se,We),ot=d(Se,Ye);return U(ge,v(ct)|v(ot),ct===ot?[pe(ge,Se+r,We,Ke,Ye,dt)]:ct<ot?[Ke,dt]:[dt,Ke])},F=function(ge,Se,We,Ke,Ye,dt,ct,ot){for(var ht=Ye.length,$t=0;$t<ht;++$t){var rn=Ye[$t];if(We(ct,rn.key)){var en=rn.value,Yt=dt(en);return Yt===en?Ye:Yt===l?(--ot.value,x(ge,$t,Ye)):y(ge,$t,B(Se,Ke,ct,Yt),Ye)}}var hr=dt();return hr===l?Ye:(++ot.value,y(ge,ht,B(Se,Ke,ct,hr),Ye))},te=function(ge,Se){return ge===Se.edit},Y=function(ge,Se,We,Ke,Ye,dt,ct){if(Se(dt,this.key)){var ot=Ke(this.value);return ot===this.value?this:ot===l?(--ct.value,D):te(ge,this)?(this.value=ot,this):B(ge,Ye,dt,ot)}var ht=Ke();return ht===l?this:(++ct.value,Z(ge,We,this.hash,this,Ye,B(ge,Ye,dt,ht)))},ee=function(ge,Se,We,Ke,Ye,dt,ct){if(Ye===this.hash){var ot=te(ge,this),ht=F(ot,ge,Se,this.hash,this.children,Ke,dt,ct);return ht===this.children?this:ht.length>1?V(ge,this.hash,ht):ht[0]}var $t=Ke();return $t===l?this:(++ct.value,Z(ge,We,this.hash,this,Ye,B(ge,Ye,dt,$t)))},G=function(ge,Se,We,Ke,Ye,dt,ct){var ot=this.mask,ht=this.children,$t=d(We,Ye),rn=v($t),en=g(ot,rn),Yt=ot&rn,hr=Yt?ht[en]:D,kn=hr._modify(ge,Se,We+r,Ke,Ye,dt,ct);if(hr===kn)return this;var Ir=te(ge,this),mr=ot,wr=void 0;if(Yt&&P(kn)){if(mr&=~rn,!mr)return D;if(ht.length<=2&&se(ht[en^1]))return ht[en^1];wr=x(Ir,en,ht)}else if(!Yt&&!P(kn)){if(ht.length>=a)return ne(ge,$t,kn,ot,ht);mr|=rn,wr=b(Ir,en,kn,ht)}else wr=y(Ir,en,kn,ht);return Ir?(this.mask=mr,this.children=wr,this):U(ge,mr,wr)},L=function(ge,Se,We,Ke,Ye,dt,ct){var ot=this.size,ht=this.children,$t=d(We,Ye),rn=ht[$t],en=(rn||D)._modify(ge,Se,We+r,Ke,Ye,dt,ct);if(rn===en)return this;var Yt=te(ge,this),hr=void 0;if(P(rn)&&!P(en))++ot,hr=y(Yt,$t,en,ht);else if(!P(rn)&&P(en)){if(--ot,ot<=s)return re(ge,ot,$t,ht);hr=y(Yt,$t,D,ht)}else hr=y(Yt,$t,en,ht);return Yt?(this.size=ot,this.children=hr,this):W(ge,ot,hr)};D._modify=function(pe,ge,Se,We,Ke,Ye,dt){var ct=We();return ct===l?D:(++dt.value,B(pe,Ke,Ye,ct))};function A(pe,ge,Se,We,Ke){this._editable=pe,this._edit=ge,this._config=Se,this._root=We,this._size=Ke}A.prototype.setTree=function(pe,ge){return this._editable?(this._root=pe,this._size=ge,this):pe===this._root?this:new A(this._editable,this._edit,this._config,pe,ge)};var ie=n.tryGetHash=function(pe,ge,Se,We){for(var Ke=We._root,Ye=0,dt=We._config.keyEq;;)switch(Ke.type){case w:return dt(Se,Ke.key)?Ke.value:pe;case S:{if(ge===Ke.hash)for(var ct=Ke.children,ot=0,ht=ct.length;ot<ht;++ot){var $t=ct[ot];if(dt(Se,$t.key))return $t.value}return pe}case C:{var rn=d(Ye,ge),en=v(rn);if(Ke.mask&en){Ke=Ke.children[g(Ke.mask,en)],Ye+=r;break}return pe}case k:{if(Ke=Ke.children[d(Ye,ge)],Ke){Ye+=r;break}return pe}default:return pe}};A.prototype.tryGetHash=function(pe,ge,Se){return ie(pe,ge,Se,this)};var ae=n.tryGet=function(pe,ge,Se){return ie(pe,Se._config.hash(ge),ge,Se)};A.prototype.tryGet=function(pe,ge){return ae(pe,ge,this)};var ce=n.getHash=function(pe,ge,Se){return ie(void 0,pe,ge,Se)};A.prototype.getHash=function(pe,ge){return ce(pe,ge,this)},n.get=function(pe,ge){return ie(void 0,ge._config.hash(pe),pe,ge)},A.prototype.get=function(pe,ge){return ae(ge,pe,this)};var oe=n.has=function(pe,ge,Se){return ie(l,pe,ge,Se)!==l};A.prototype.hasHash=function(pe,ge){return oe(pe,ge,this)};var xe=n.has=function(pe,ge){return oe(ge._config.hash(pe),pe,ge)};A.prototype.has=function(pe){return xe(pe,this)};var ke=function(ge,Se){return ge===Se};n.make=function(pe){return new A(0,0,{keyEq:pe&&pe.keyEq||ke,hash:pe&&pe.hash||f},D,0)},n.empty=n.make();var Ee=n.isEmpty=function(pe){return pe&&!!P(pe._root)};A.prototype.isEmpty=function(){return Ee(this)};var Fe=n.modifyHash=function(pe,ge,Se,We){var Ke={value:We._size},Ye=We._root._modify(We._editable?We._edit:NaN,We._config.keyEq,0,pe,ge,Se,Ke);return We.setTree(Ye,Ke.value)};A.prototype.modifyHash=function(pe,ge,Se){return Fe(Se,pe,ge,this)};var Le=n.modify=function(pe,ge,Se){return Fe(pe,Se._config.hash(ge),ge,Se)};A.prototype.modify=function(pe,ge){return Le(ge,pe,this)};var Ue=n.setHash=function(pe,ge,Se,We){return Fe(u(Se),pe,ge,We)};A.prototype.setHash=function(pe,ge,Se){return Ue(pe,ge,Se,this)};var He=n.set=function(pe,ge,Se){return Ue(Se._config.hash(pe),pe,ge,Se)};A.prototype.set=function(pe,ge){return He(pe,ge,this)};var Qe=u(l),qe=n.removeHash=function(pe,ge,Se){return Fe(Qe,pe,ge,Se)};A.prototype.removeHash=A.prototype.deleteHash=function(pe,ge){return qe(pe,ge,this)};var ut=n.remove=function(pe,ge){return qe(ge._config.hash(pe),pe,ge)};A.prototype.remove=A.prototype.delete=function(pe){return ut(pe,this)};var et=n.beginMutation=function(pe){return new A(pe._editable+1,pe._edit+1,pe._config,pe._root,pe._size)};A.prototype.beginMutation=function(){return et(this)};var it=n.endMutation=function(pe){return pe._editable=pe._editable&&pe._editable-1,pe};A.prototype.endMutation=function(){return it(this)};var wt=n.mutate=function(pe,ge){var Se=et(ge);return pe(Se),it(Se)};A.prototype.mutate=function(pe){return wt(pe,this)};var me=function(ge){return ge&&Te(ge[0],ge[1],ge[2],ge[3],ge[4])},Te=function(ge,Se,We,Ke,Ye){for(;We<ge;){var dt=Se[We++];if(dt&&!P(dt))return Ce(dt,Ke,[ge,Se,We,Ke,Ye])}return me(Ye)},Ce=function(ge,Se,We){switch(ge.type){case w:return{value:Se(ge),rest:We};case S:case k:case C:var Ke=ge.children;return Te(Ke.length,Ke,0,Se,We);default:return me(We)}},Oe={done:!0};function j(pe){this.v=pe}j.prototype.next=function(){if(!this.v)return Oe;var pe=this.v;return this.v=me(pe.rest),pe},j.prototype[Symbol.iterator]=function(){return this};var H=function(ge,Se){return new j(Ce(ge._root,Se))},he=function(ge){return[ge.key,ge.value]},Q=n.entries=function(pe){return H(pe,he)};A.prototype.entries=A.prototype[Symbol.iterator]=function(){return Q(this)};var fe=function(ge){return ge.key},le=n.keys=function(pe){return H(pe,fe)};A.prototype.keys=function(){return le(this)};var Re=function(ge){return ge.value},$e=n.values=A.prototype.values=function(pe){return H(pe,Re)};A.prototype.values=function(){return $e(this)};var Pe=n.fold=function(pe,ge,Se){var We=Se._root;if(We.type===w)return pe(ge,We.value,We.key);for(var Ke=[We.children],Ye=void 0;Ye=Ke.pop();)for(var dt=0,ct=Ye.length;dt<ct;){var ot=Ye[dt++];ot&&ot.type&&(ot.type===w?ge=pe(ge,ot.value,ot.key):Ke.push(ot.children))}return ge};A.prototype.fold=function(pe,ge){return Pe(pe,ge,this)};var mt=n.forEach=function(pe,ge){return Pe(function(Se,We,Ke){return pe(We,Ke,ge)},null,ge)};A.prototype.forEach=function(pe){return mt(pe,this)};var lt=n.count=function(pe){return pe._size};A.prototype.count=function(){return lt(this)},Object.defineProperty(A.prototype,"size",{get:A.prototype.count}),e.exports?e.exports=n:(void 0).hamt=n});class mie{constructor(t){Mt(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 lA(this)}toMap(){return new Map(this._map)}}class sA{constructor(t){if(Mt(this,"_hamt",hie.empty.beginMutation()),t instanceof sA){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 lA(this)}toMap(){return new Map(this._hamt)}}function lA(e){return Dn("recoil_hamt_2020")?new sA(e):new mie(e)}var gie={persistentMap:lA},vie=gie.persistentMap,yie=Object.freeze({__proto__:null,persistentMap:vie});function bie(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 qm=bie;function wie(e,t){const n=new Map;return e.forEach((r,i)=>{n.set(i,t(r,i))}),n}var w1=wie;function _ie(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}}function xie(e){return{nodeDeps:w1(e.nodeDeps,t=>new Set(t)),nodeToNodeSubscriptions:w1(e.nodeToNodeSubscriptions,t=>new Set(t))}}function mE(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:qm(t,a);for(const l of s)o.has(l)||o.set(l,new Set),Yn(o.get(l)).add(e);if(a){const l=qm(a,t);for(const u of l){if(!o.has(u))return;const f=Yn(o.get(u));f.delete(e),f.size===0&&o.delete(u)}}}function Sie(e,t,n,r){var i,o,a,s;const l=n.getState();r===l.currentTree.version||r===((i=l.nextTree)===null||i===void 0?void 0:i.version)||((o=l.previousTree)===null||o===void 0||o.version);const u=n.getGraph(r);if(mE(e,t,u),r===((a=l.previousTree)===null||a===void 0?void 0:a.version)){const p=n.getGraph(l.currentTree.version);mE(e,t,p,u)}if(r===((s=l.previousTree)===null||s===void 0?void 0:s.version)||r===l.currentTree.version){var f;const p=(f=l.nextTree)===null||f===void 0?void 0:f.version;if(p!==void 0){const d=n.getGraph(p);mE(e,t,d,u)}}}var av={cloneGraph:xie,graph:_ie,saveDepsToStore:Sie};let Eie=0;const Cie=()=>Eie++;let kie=0;const Tie=()=>kie++;let Rie=0;const Oie=()=>Rie++;var Dw={getNextTreeStateVersion:Cie,getNextStoreID:Tie,getNextComponentID:Oie};const{persistentMap:SF}=yie,{graph:Aie}=av,{getNextTreeStateVersion:XU}=Dw;function JU(){const e=XU();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:SF(),nonvalidatedAtoms:SF()}}function Die(){const e=JU();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,Aie()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}}var ZU={makeEmptyTreeState:JU,makeEmptyStoreState:Die,getNextTreeStateVersion:XU};class e6{}function Iie(){return new e6}var Iw={RetentionZone:e6,retentionZone:Iie};function Pie(e,t){const n=new Set(e);return n.add(t),n}function $ie(e,t){const n=new Set(e);return n.delete(t),n}function Fie(e,t,n){const r=new Map(e);return r.set(t,n),r}function Lie(e,t,n){const r=new Map(e);return r.set(t,n(r.get(t))),r}function Mie(e,t){const n=new Map(e);return n.delete(t),n}function Nie(e,t){const n=new Map(e);return t.forEach(r=>n.delete(r)),n}var t6={setByAddingToSet:Pie,setByDeletingFromSet:$ie,mapBySettingInMap:Fie,mapByUpdatingInMap:Lie,mapByDeletingFromMap:Mie,mapByDeletingMultipleFromMap:Nie};function*Bie(e,t){let n=0;for(const r of e)t(r,n++)&&(yield r)}var uA=Bie;function jie(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 n6=jie;const{getNode:sv,getNodeMaybe:zie,recoilValuesForKeys:EF}=Ki,{RetentionZone:CF}=Iw,{setByAddingToSet:Uie}=t6,Vie=Object.freeze(new Set);class Wie extends Error{}function Kie(e,t,n){if(!Dn("recoil_memory_managament_2020"))return()=>{};const{nodesRetainedByZone:r}=e.getState().retention;function i(o){let a=r.get(o);a||r.set(o,a=new Set),a.add(t)}if(n instanceof CF)i(n);else if(Array.isArray(n))for(const o of n)i(o);return()=>{if(!Dn("recoil_memory_managament_2020"))return;const{retention:o}=e.getState();function a(s){const l=o.nodesRetainedByZone.get(s);l==null||l.delete(t),l&&l.size===0&&o.nodesRetainedByZone.delete(s)}if(n instanceof CF)a(n);else if(Array.isArray(n))for(const s of n)a(s)}}function cA(e,t,n,r){const i=e.getState();if(i.nodeCleanupFunctions.has(n))return;const o=sv(n),a=Kie(e,n,o.retainedBy),s=o.init(e,t,r);i.nodeCleanupFunctions.set(n,()=>{s(),a()})}function Hie(e,t,n){cA(e,e.getState().currentTree,t,n)}function qie(e,t){var n;const r=e.getState();(n=r.nodeCleanupFunctions.get(t))===null||n===void 0||n(),r.nodeCleanupFunctions.delete(t)}function Gie(e,t,n){return cA(e,t,n,"get"),sv(n).get(e,t)}function r6(e,t,n){return sv(n).peek(e,t)}function Qie(e,t,n){var r;const i=zie(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:Uie(e.dirtyAtoms,t)}}function Yie(e,t,n,r){const i=sv(n);if(i.set==null)throw new Wie(`Attempt to set read-only RecoilValue: ${n}`);const o=i.set;return cA(e,t,n,"set"),o(e,t,r)}function Xie(e,t,n){const r=e.getState(),i=e.getGraph(t.version),o=sv(n).nodeType;return n6({type:o},{loadable:()=>r6(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 EF((a=i.nodeDeps.get(n))!==null&&a!==void 0?a:[])},subscribers:()=>{var a,s;return{nodes:EF(uA(i6(e,t,new Set([n])),l=>l!==n)),components:Aw((a=(s=r.nodeToComponentSubscriptions.get(n))===null||s===void 0?void 0:s.values())!==null&&a!==void 0?a:[],([l])=>({name:l}))}}})}function i6(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:Vie;for(const u of l)r.has(u)||i.push(u)}return r}var Au={getNodeLoadable:Gie,peekNodeLoadable:r6,setNodeValue:Yie,initializeNode:Hie,cleanUpNode:qie,setUnvalidatedAtomValue_DEPRECATED:Qie,peekNodeInfo:Xie,getDownstreamNodes:i6};let o6=null;function Jie(e){o6=e}function Zie(){var e;(e=o6)===null||e===void 0||e()}var a6={setInvalidateMemoizedSnapshot:Jie,invalidateMemoizedSnapshot:Zie};const{getDownstreamNodes:eoe,getNodeLoadable:s6,setNodeValue:toe}=Au,{getNextComponentID:noe}=Dw,{getNode:roe,getNodeMaybe:l6}=Ki,{DefaultValue:fA}=Ki,{reactMode:ioe}=ov,{AbstractRecoilValue:ooe,RecoilState:aoe,RecoilValueReadOnly:soe,isRecoilValue:loe}=op,{invalidateMemoizedSnapshot:uoe}=a6;function coe(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=s6(e,n,t);return a.state==="loading"&&a.contents.catch(()=>{}),a}function foe(e,t){const n=e.clone();return t.forEach((r,i)=>{r.state==="hasValue"&&r.contents instanceof fA?n.delete(i):n.set(i,r)}),n}function doe(e,t,{key:n},r){if(typeof r=="function"){const i=s6(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 Wt(o)}else if(i.state==="hasError")throw i.contents;return r(i.contents)}else return r}function poe(e,t,n){if(n.type==="set"){const{recoilValue:i,valueOrUpdater:o}=n,a=doe(e,t,i,o),s=toe(e,t,i.key,a);for(const[l,u]of s.entries())iT(t,l,u)}else if(n.type==="setLoadable"){const{recoilValue:{key:i},loadable:o}=n;iT(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=l6(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 iA(`Unknown action ${n.type}`)}function iT(e,t,n){n.state==="hasValue"&&n.contents instanceof fA?e.atomValues.delete(t):e.atomValues.set(t,n),e.dirtyAtoms.add(t),e.nonvalidatedAtoms.delete(t)}function u6(e,t){e.replaceState(n=>{const r=c6(n);for(const i of t)poe(e,r,i);return f6(e,r),uoe(),r})}function Pw(e,t){if(Gm.length){const n=Gm[Gm.length-1];let r=n.get(e);r||n.set(e,r=[]),r.push(t)}else u6(e,[t])}const Gm=[];function hoe(){const e=new Map;return Gm.push(e),()=>{for(const[t,n]of e)u6(t,n);Gm.pop()}}function c6(e){return{...e,atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)}}function f6(e,t){const n=eoe(e,t,t.dirtyAtoms);for(const o of n){var r,i;(r=l6(o))===null||r===void 0||(i=r.invalidate)===null||i===void 0||i.call(r,t)}}function d6(e,t,n){Pw(e,{type:"set",recoilValue:t,valueOrUpdater:n})}function moe(e,t,n){if(n instanceof fA)return d6(e,t,n);Pw(e,{type:"setLoadable",recoilValue:t,loadable:n})}function goe(e,t){Pw(e,{type:"markModified",recoilValue:t})}function voe(e,t,n){Pw(e,{type:"setUnvalidated",recoilValue:t,unvalidatedValue:n})}function yoe(e,{key:t},n,r=null){const i=noe(),o=e.getState();o.nodeToComponentSubscriptions.has(t)||o.nodeToComponentSubscriptions.set(t,new Map),Yn(o.nodeToComponentSubscriptions.get(t)).set(i,[r??"<not captured>",n]);const a=ioe();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 boe(e,t){var n;const{currentTree:r}=e.getState(),i=roe(t.key);(n=i.clearCache)===null||n===void 0||n.call(i,e,r)}var hs={RecoilValueReadOnly:soe,AbstractRecoilValue:ooe,RecoilState:aoe,getRecoilValueAsLoadable:coe,setRecoilValue:d6,setRecoilValueLoadable:moe,markRecoilValueModified:goe,setUnvalidatedRecoilValue:voe,subscribeToRecoilValue:yoe,isRecoilValue:loe,applyAtomValueWrites:foe,batchStart:hoe,writeLoadableToTreeState:iT,invalidateDownstreams:f6,copyTreeState:c6,refreshRecoilValue:boe};function woe(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 _oe=woe;const{cleanUpNode:xoe}=Au,{deleteNodeConfigIfPossible:Soe,getNode:p6}=Ki,{RetentionZone:h6}=Iw,Eoe=12e4,m6=new Set;function g6(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 h6)for(const s of Roe(n,a))i.add(s);else i.add(a);const o=Coe(e,i);for(const a of o)Toe(e,r,a)}function Coe(e,t){const n=e.getState(),r=n.currentTree,i=e.getGraph(r.version),o=new Set,a=new Set;return s(t),o;function s(l){const u=new Set,f=koe(e,r,l,o,a);for(const g of f){var p;if(p6(g).retainedBy==="recoilRoot"){a.add(g);continue}if(((p=n.retention.referenceCounts.get(g))!==null&&p!==void 0?p:0)>0){a.add(g);continue}if(v6(g).some(x=>n.retention.referenceCounts.get(x))){a.add(g);continue}const y=i.nodeToNodeSubscriptions.get(g);if(y&&_oe(y,x=>a.has(x))){a.add(g);continue}o.add(g),u.add(g)}const d=new Set;for(const g of u)for(const y of(v=i.nodeDeps.get(g))!==null&&v!==void 0?v:m6){var v;o.has(y)||d.add(y)}d.size&&s(d)}}function koe(e,t,n,r,i){const o=e.getGraph(t.version),a=[],s=new Set;for(;n.size>0;)l(Yn(n.values().next().value));return a;function l(u){if(r.has(u)||i.has(u)){n.delete(u);return}if(s.has(u))return;const f=o.nodeToNodeSubscriptions.get(u);if(f)for(const p of f)l(p);s.add(u),n.delete(u),a.push(u)}}function Toe(e,t,n){if(!Dn("recoil_memory_managament_2020"))return;xoe(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=v6(n);for(const l of i){var o;(o=r.retention.nodesRetainedByZone.get(l))===null||o===void 0||o.delete(n)}t.atomValues.delete(n),t.dirtyAtoms.delete(n),t.nonvalidatedAtoms.delete(n);const a=r.graphsByVersion.get(t.version);if(a){const l=a.nodeDeps.get(n);if(l!==void 0){a.nodeDeps.delete(n);for(const u of l){var s;(s=a.nodeToNodeSubscriptions.get(u))===null||s===void 0||s.delete(n)}}a.nodeToNodeSubscriptions.delete(n)}Soe(n)}function Roe(e,t){var n;return(n=e.retention.nodesRetainedByZone.get(t))!==null&&n!==void 0?n:m6}function v6(e){const t=p6(e).retainedBy;return t===void 0||t==="components"||t==="recoilRoot"?[]:t instanceof h6?[t]:t}function Ooe(e,t){const n=e.getState();n.nextTree?n.retention.retainablesToCheckForRelease.add(t):g6(e,new Set([t]))}function Aoe(e,t,n){var r;if(!Dn("recoil_memory_managament_2020"))return;const i=e.getState().retention.referenceCounts,o=((r=i.get(t))!==null&&r!==void 0?r:0)+n;o===0?y6(e,t):i.set(t,o)}function y6(e,t){if(!Dn("recoil_memory_managament_2020"))return;e.getState().retention.referenceCounts.delete(t),Ooe(e,t)}function Doe(e){if(!Dn("recoil_memory_managament_2020"))return;const t=e.getState();g6(e,t.retention.retainablesToCheckForRelease),t.retention.retainablesToCheckForRelease.clear()}function Ioe(e){return e===void 0?"recoilRoot":e}var Xc={SUSPENSE_TIMEOUT_MS:Eoe,updateRetainCount:Aoe,updateRetainCountToZero:y6,releaseScheduledRetainablesNow:Doe,retainedByOptionWithDefault:Ioe};const{unstable_batchedUpdates:Poe}=Tm;var $oe={unstable_batchedUpdates:Poe};const{unstable_batchedUpdates:Foe}=$oe;var Loe={unstable_batchedUpdates:Foe};const{batchStart:Moe}=hs,{unstable_batchedUpdates:Noe}=Loe;let dA=Noe;const Boe=e=>{dA=e},joe=()=>dA,zoe=e=>{dA(()=>{let t=()=>{};try{t=Moe(),e()}finally{t()}})};var $w={getBatcher:joe,setBatcher:Boe,batchUpdates:zoe};function*Uoe(e){for(const t of e)for(const n of t)yield n}var b6=Uoe;const w6=typeof Window>"u"||typeof window>"u",Voe=e=>!w6&&(e===window||e instanceof Window),Woe=typeof navigator<"u"&&navigator.product==="ReactNative";var pA={isSSR:w6,isReactNative:Woe,isWindow:Voe};function Koe(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 Hoe(e,t){let n,r;return(...o)=>{const a=t(...o);return n===a||(n=a,r=e(...o)),r}}function qoe(e,t){let n,r;return[(...a)=>{const s=t(...a);return n===s||(n=s,r=e(...a)),r},()=>{n=null}]}var Goe={memoizeWithArgsHash:Koe,memoizeOneWithArgsHash:Hoe,memoizeOneWithArgsHashAndInvalidation:qoe};const{batchUpdates:oT}=$w,{initializeNode:Qoe,peekNodeInfo:Yoe}=Au,{graph:Xoe}=av,{getNextStoreID:Joe}=Dw,{DEFAULT_VALUE:Zoe,recoilValues:kF,recoilValuesForKeys:TF}=Ki,{AbstractRecoilValue:eae,getRecoilValueAsLoadable:tae,setRecoilValue:RF,setUnvalidatedRecoilValue:nae}=hs,{updateRetainCount:yb}=Xc,{setInvalidateMemoizedSnapshot:rae}=a6,{getNextTreeStateVersion:iae,makeEmptyStoreState:oae}=ZU,{isSSR:aae}=pA,{memoizeOneWithArgsHashAndInvalidation:sae}=Goe;class Fw{constructor(t,n){Mt(this,"_store",void 0),Mt(this,"_refCount",1),Mt(this,"getLoadable",r=>(this.checkRefCount_INTERNAL(),tae(this._store,r))),Mt(this,"getPromise",r=>(this.checkRefCount_INTERNAL(),this.getLoadable(r).toPromise())),Mt(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 TF(a.dirtyAtoms)}const i=this._store.getState().knownAtoms,o=this._store.getState().knownSelectors;return(r==null?void 0:r.isInitialized)==null?kF.values():r.isInitialized===!0?TF(b6([i,o])):uA(kF.values(),({key:a})=>!i.has(a)&&!o.has(a))}),Mt(this,"getInfo_UNSTABLE",({key:r})=>(this.checkRefCount_INTERNAL(),Yoe(this._store,this._store.getState().currentTree,r))),Mt(this,"map",r=>{this.checkRefCount_INTERNAL();const i=new aT(this,oT);return r(i),i}),Mt(this,"asyncMap",async r=>{this.checkRefCount_INTERNAL();const i=new aT(this,oT);return i.retain(),await r(i),i.autoRelease_INTERNAL(),i}),this._store={storeID:Joe(),parentStoreID:n,getState:()=>t,replaceState:r=>{t.currentTree=r(t.currentTree)},getGraph:r=>{const i=t.graphsByVersion;if(i.has(r))return Yn(i.get(r));const o=Xoe();return i.set(r,o),o},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw Wt("Cannot subscribe to Snapshots")}};for(const r of this._store.getState().knownAtoms)Qoe(this._store,r,"get"),yb(this._store,r,1);this.autoRelease_INTERNAL()}retain(){this._refCount<=0,this._refCount++;let t=!1;return()=>{t||(t=!0,this._release())}}autoRelease_INTERNAL(){aae||window.setTimeout(()=>this._release(),10)}_release(){if(this._refCount--,this._refCount===0){if(this._store.getState().nodeCleanupFunctions.forEach(t=>t()),this._store.getState().nodeCleanupFunctions.clear(),!Dn("recoil_memory_managament_2020"))return}else this._refCount<0}isRetained(){return this._refCount>0}checkRefCount_INTERNAL(){Dn("recoil_memory_managament_2020")&&this._refCount<=0}getStore_INTERNAL(){return this.checkRefCount_INTERNAL(),this._store}getID(){return this.checkRefCount_INTERNAL(),this._store.getState().currentTree.stateID}getStoreID(){return this.checkRefCount_INTERNAL(),this._store.storeID}}function _6(e,t,n=!1){const r=e.getState(),i=n?iae():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(Aw(r.nodeCleanupFunctions.entries(),([o])=>[o,()=>{}]))}}function lae(e){const t=new Fw(oae());return e!=null?t.map(e):t}const[OF,x6]=sae((e,t)=>{var n;const r=e.getState(),i=t==="latest"?(n=r.nextTree)!==null&&n!==void 0?n:r.currentTree:Yn(r.previousTree);return new Fw(_6(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)});rae(x6);function uae(e,t="latest"){const n=OF(e,t);return n.isRetained()?n:(x6(),OF(e,t))}class aT extends Fw{constructor(t,n){super(_6(t.getStore_INTERNAL(),t.getStore_INTERNAL().getState().currentTree,!0),t.getStoreID()),Mt(this,"_batch",void 0),Mt(this,"set",(r,i)=>{this.checkRefCount_INTERNAL();const o=this.getStore_INTERNAL();this._batch(()=>{yb(o,r.key,1),RF(this.getStore_INTERNAL(),r,i)})}),Mt(this,"reset",r=>{this.checkRefCount_INTERNAL();const i=this.getStore_INTERNAL();this._batch(()=>{yb(i,r.key,1),RF(this.getStore_INTERNAL(),r,Zoe)})}),Mt(this,"setUnvalidatedAtomValues_DEPRECATED",r=>{this.checkRefCount_INTERNAL();const i=this.getStore_INTERNAL();oT(()=>{for(const[o,a]of r.entries())yb(i,o,1),nae(i,new eae(o),a)})}),this._batch=n}}var Lw={Snapshot:Fw,MutableSnapshot:aT,freshSnapshot:lae,cloneSnapshot:uae},cae=Lw.Snapshot,fae=Lw.MutableSnapshot,dae=Lw.freshSnapshot,pae=Lw.cloneSnapshot,Mw=Object.freeze({__proto__:null,Snapshot:cae,MutableSnapshot:fae,freshSnapshot:dae,cloneSnapshot:pae});function hae(...e){const t=new Set;for(const n of e)for(const r of n)t.add(r);return t}var mae=hae;const{useRef:gae}=yt;function vae(e){const t=gae(e);return t.current===e&&typeof e=="function"&&(t.current=e()),t}var AF=vae;const{getNextTreeStateVersion:yae,makeEmptyStoreState:S6}=ZU,{cleanUpNode:bae,getDownstreamNodes:wae,initializeNode:_ae,setNodeValue:xae,setUnvalidatedAtomValue_DEPRECATED:Sae}=Au,{graph:Eae}=av,{cloneGraph:Cae}=av,{getNextStoreID:E6}=Dw,{createMutableSource:gE,reactMode:C6}=ov,{applyAtomValueWrites:kae}=hs,{releaseScheduledRetainablesNow:k6}=Xc,{freshSnapshot:Tae}=Mw,{useCallback:Rae,useContext:T6,useEffect:sT,useMemo:Oae,useRef:Aae,useState:Dae}=yt;function zh(){throw Wt("This component must be used inside a <RecoilRoot> component.")}const R6=Object.freeze({storeID:E6(),getState:zh,replaceState:zh,getGraph:zh,subscribeToTransactions:zh,addTransactionMetadata:zh});let lT=!1;function DF(e){if(lT)throw Wt("An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.");const t=e.getState();if(t.nextTree===null){Dn("recoil_memory_managament_2020")&&Dn("recoil_release_on_cascading_update_killswitch_2021")&&t.commitDepth>0&&k6(e);const n=t.currentTree.version,r=yae();t.nextTree={...t.currentTree,version:r,stateID:r,dirtyAtoms:new Set,transactionMetadata:{}},t.graphsByVersion.set(r,Cae(Yn(t.graphsByVersion.get(n))))}}const O6=yt.createContext({current:R6}),Nw=()=>T6(O6),A6=yt.createContext(null);function Iae(){return T6(A6)}function hA(e,t,n){const r=wae(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 D6(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);(!C6().early||t.suspendedComponentResolvers.size>0)&&(hA(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 Pae(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,D6(e),t.previousTree!=null?t.graphsByVersion.delete(t.previousTree.version):iA("Ended batch with no previous state, which is unexpected","recoil"),t.previousTree=null,Dn("recoil_memory_managament_2020")&&n==null&&k6(e)}finally{t.commitDepth--}}function $ae({setNotifyBatcherOfChange:e}){const t=Nw(),[,n]=Dae([]);return e(()=>n({})),sT(()=>(e(()=>n({})),()=>{e(()=>{})}),[e]),sT(()=>{die.enqueueExecution("Batcher",()=>{Pae(t.current)})}),null}function Fae(e,t){const n=S6();return t({set:(r,i)=>{const o=n.currentTree,a=xae(e,o,r.key,i),s=new Set(a.keys()),l=o.nonvalidatedAtoms.clone();for(const u of s)l.delete(u);n.currentTree={...o,dirtyAtoms:mae(o.dirtyAtoms,s),atomValues:kae(o.atomValues,a),nonvalidatedAtoms:l}},setUnvalidatedAtomValues:r=>{r.forEach((i,o)=>{n.currentTree=Sae(n.currentTree,o,i)})}}),n}function Lae(e){const t=Tae(e),n=t.getStore_INTERNAL().getState();return t.retain(),n.nodeCleanupFunctions.forEach(r=>r()),n.nodeCleanupFunctions.clear(),n}let IF=0;function Mae({initializeState_DEPRECATED:e,initializeState:t,store_INTERNAL:n,children:r}){let i;const o=v=>{const g=i.current.graphsByVersion;if(g.has(v))return Yn(g.get(v));const y=Eae();return g.set(v,y),y},a=(v,g)=>{if(g==null){const{transactionSubscriptions:y}=p.current.getState(),x=IF++;return y.set(x,v),{release:()=>{y.delete(x)}}}else{const{nodeTransactionSubscriptions:y}=p.current.getState();y.has(g)||y.set(g,new Map);const x=IF++;return Yn(y.get(g)).set(x,v),{release:()=>{const b=y.get(g);b&&(b.delete(x),b.size===0&&y.delete(g))}}}},s=v=>{DF(p.current);for(const g of Object.keys(v))Yn(p.current.getState().nextTree).transactionMetadata[g]=v[g]},l=v=>{DF(p.current);const g=Yn(i.current.nextTree);let y;try{lT=!0,y=v(g)}finally{lT=!1}y!==g&&(i.current.nextTree=y,C6().early&&hA(p.current,i.current,y),Yn(u.current)())},u=Aae(null),f=Rae(v=>{u.current=v},[u]),p=AF(()=>n??{storeID:E6(),getState:()=>i.current,replaceState:l,getGraph:o,subscribeToTransactions:a,addTransactionMetadata:s});n!=null&&(p.current=n),i=AF(()=>e!=null?Fae(p.current,e):t!=null?Lae(t):S6());const d=Oae(()=>gE==null?void 0:gE(i,()=>i.current.currentTree.version),[i]);return sT(()=>{const v=p.current;for(const g of new Set(v.getState().knownAtoms))_ae(v,g,"get");return()=>{for(const g of v.getState().knownAtoms)bae(v,g)}},[p]),yt.createElement(O6.Provider,{value:p},yt.createElement(A6.Provider,{value:d},yt.createElement($ae,{setNotifyBatcherOfChange:f}),r))}function Nae(e){const{override:t,...n}=e,r=Nw();return t===!1&&r.current!==R6?e.children:yt.createElement(Mae,n)}function Bae(){return Nw().current.storeID}var cl={RecoilRoot:Nae,useStoreRef:Nw,useRecoilMutableSource:Iae,useRecoilStoreID:Bae,notifyComponents_FOR_TESTING:hA,sendEndOfBatchNotifications_FOR_TESTING:D6};function jae(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 zae=jae;const{useEffect:Uae,useRef:Vae}=yt;function Wae(e){const t=Vae();return Uae(()=>{t.current=e}),t.current}var I6=Wae;const{useStoreRef:Kae}=cl,{SUSPENSE_TIMEOUT_MS:Hae}=Xc,{updateRetainCount:Uh}=Xc,{RetentionZone:qae}=Iw,{useEffect:Gae,useRef:Qae}=yt,{isSSR:PF}=pA;function Yae(e){if(Dn("recoil_memory_managament_2020"))return Xae(e)}function Xae(e){const n=(Array.isArray(e)?e:[e]).map(a=>a instanceof qae?a:a.key),r=Kae();Gae(()=>{if(!Dn("recoil_memory_managament_2020"))return;const a=r.current;if(i.current&&!PF)window.clearTimeout(i.current),i.current=null;else for(const s of n)Uh(a,s,1);return()=>{for(const s of n)Uh(a,s,-1)}},[r,...n]);const i=Qae(),o=I6(n);if(!PF&&(o===void 0||!zae(o,n))){const a=r.current;for(const s of n)Uh(a,s,1);if(o)for(const s of o)Uh(a,s,-1);i.current&&window.clearTimeout(i.current),i.current=window.setTimeout(()=>{i.current=null;for(const s of n)Uh(a,s,-1)},Hae)}}var mA=Yae;function Jae(){return"<component name not available>"}var lv=Jae;const{batchUpdates:Zae}=$w,{DEFAULT_VALUE:P6}=Ki,{currentRendererSupportsUseSyncExternalStore:ese,reactMode:kp,useMutableSource:tse,useSyncExternalStore:nse}=ov,{useRecoilMutableSource:rse,useStoreRef:ms}=cl,{AbstractRecoilValue:uT,getRecoilValueAsLoadable:uv,setRecoilValue:_1,setUnvalidatedRecoilValue:ise,subscribeToRecoilValue:ap}=hs,{useCallback:Bi,useEffect:sp,useMemo:$6,useRef:Qm,useState:gA}=yt,{setByAddingToSet:ose}=t6;function vA(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:Wt(`Invalid value of loadable atom "${t.key}"`)}function ase(){const e=lv(),t=ms(),[,n]=gA([]),r=Qm(new Set);r.current=new Set;const i=Qm(new Set),o=Qm(new Map),a=Bi(l=>{const u=o.current.get(l);u&&(u.release(),o.current.delete(l))},[o]),s=Bi((l,u)=>{o.current.has(u)&&n([])},[]);return sp(()=>{const l=t.current;qm(r.current,i.current).forEach(u=>{if(o.current.has(u))return;const f=ap(l,new uT(u),d=>s(d,u),e);o.current.set(u,f),l.getState().nextTree?l.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{s(l.getState(),u)}):s(l.getState(),u)}),qm(i.current,r.current).forEach(u=>{a(u)}),i.current=r.current}),sp(()=>{const l=o.current;return qm(r.current,new Set(l.keys())).forEach(u=>{const f=ap(t.current,new uT(u),p=>s(p,u),e);l.set(u,f)}),()=>l.forEach((u,f)=>a(f))},[e,t,a,s]),$6(()=>{function l(g){return y=>{_1(t.current,g,y)}}function u(g){return()=>_1(t.current,g,P6)}function f(g){var y;r.current.has(g.key)||(r.current=ose(r.current,g.key));const x=t.current.getState();return uv(t.current,g,kp().early&&(y=x.nextTree)!==null&&y!==void 0?y:x.currentTree)}function p(g){const y=f(g);return vA(y,g,t)}function d(g){return[p(g),l(g)]}function v(g){return[f(g),l(g)]}return{getRecoilValue:p,getRecoilValueLoadable:f,getRecoilState:d,getRecoilStateLoadable:v,getSetRecoilState:l,getResetRecoilState:u}},[r,t])}const sse={current:0};function lse(e){const t=ms(),n=lv(),r=Bi(()=>{var s;const l=t.current,u=l.getState(),f=kp().early&&(s=u.nextTree)!==null&&s!==void 0?s:u.currentTree;return{loadable:uv(l,e,f),key:e.key}},[t,e]),i=Bi(s=>{let l;return()=>{var u,f;const p=s();return(u=l)!==null&&u!==void 0&&u.loadable.is(p.loadable)&&((f=l)===null||f===void 0?void 0:f.key)===p.key?l:(l=p,p)}},[]),o=$6(()=>i(r),[r,i]),a=Bi(s=>{const l=t.current;return ap(l,e,s,n).release},[t,e,n]);return nse(a,o,o).loadable}function use(e){const t=ms(),n=Bi(()=>{var u;const f=t.current,p=f.getState(),d=kp().early&&(u=p.nextTree)!==null&&u!==void 0?u:p.currentTree;return uv(f,e,d)},[t,e]),r=Bi(()=>n(),[n]),i=lv(),o=Bi((u,f)=>{const p=t.current;return ap(p,e,()=>{if(!Dn("recoil_suppress_rerender_in_callback"))return f();const v=n();l.current.is(v)||f(),l.current=v},i).release},[t,e,i,n]),a=rse();if(a==null)throw Wt("Recoil hooks must be used in components contained within a <RecoilRoot> component.");const s=tse(a,r,o),l=Qm(s);return sp(()=>{l.current=s}),s}function cT(e){const t=ms(),n=lv(),r=Bi(()=>{var l;const u=t.current,f=u.getState(),p=kp().early&&(l=f.nextTree)!==null&&l!==void 0?l:f.currentTree;return uv(u,e,p)},[t,e]),i=Bi(()=>({loadable:r(),key:e.key}),[r,e.key]),o=Bi(l=>{const u=i();return l.loadable.is(u.loadable)&&l.key===u.key?l:u},[i]);sp(()=>{const l=ap(t.current,e,u=>{s(o)},n);return s(o),l.release},[n,e,t,o]);const[a,s]=gA(i);return a.key!==e.key?i().loadable:a.loadable}function cse(e){const t=ms(),[,n]=gA([]),r=lv(),i=Bi(()=>{var s;const l=t.current,u=l.getState(),f=kp().early&&(s=u.nextTree)!==null&&s!==void 0?s:u.currentTree;return uv(l,e,f)},[t,e]),o=i(),a=Qm(o);return sp(()=>{a.current=o}),sp(()=>{const s=t.current,l=s.getState(),u=ap(s,e,p=>{var d;if(!Dn("recoil_suppress_rerender_in_callback"))return n([]);const v=i();(d=a.current)!==null&&d!==void 0&&d.is(v)||n(v),a.current=v},r);if(l.nextTree)s.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{a.current=null,n([])});else{var f;if(!Dn("recoil_suppress_rerender_in_callback"))return n([]);const p=i();(f=a.current)!==null&&f!==void 0&&f.is(p)||n(p),a.current=p}return u.release},[r,i,e,t]),o}function yA(e){return Dn("recoil_memory_managament_2020")&&mA(e),{TRANSITION_SUPPORT:cT,SYNC_EXTERNAL_STORE:ese()?lse:cT,MUTABLE_SOURCE:use,LEGACY:cse}[kp().mode](e)}function F6(e){const t=ms(),n=yA(e);return vA(n,e,t)}function Bw(e){const t=ms();return Bi(n=>{_1(t.current,e,n)},[t,e])}function fse(e){const t=ms();return Bi(()=>{_1(t.current,e,P6)},[t,e])}function dse(e){return[F6(e),Bw(e)]}function pse(e){return[yA(e),Bw(e)]}function hse(){const e=ms();return(t,n={})=>{Zae(()=>{e.current.addTransactionMetadata(n),t.forEach((r,i)=>ise(e.current,new uT(i),r))})}}function L6(e){return Dn("recoil_memory_managament_2020")&&mA(e),cT(e)}function M6(e){const t=ms(),n=L6(e);return vA(n,e,t)}function mse(e){return[M6(e),Bw(e)]}var gse={recoilComponentGetRecoilValueCount_FOR_TESTING:sse,useRecoilInterface:ase,useRecoilState:dse,useRecoilStateLoadable:pse,useRecoilValue:F6,useRecoilValueLoadable:yA,useResetRecoilState:fse,useSetRecoilState:Bw,useSetUnvalidatedAtomValues:hse,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:L6,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:M6,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:mse};function vse(e,t){const n=new Map;for(const[r,i]of e)t(i,r)&&n.set(r,i);return n}var yse=vse;function bse(e,t){const n=new Set;for(const r of e)t(r)&&n.add(r);return n}var wse=bse;function _se(...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 xse=_se;const{batchUpdates:Sse}=$w,{DEFAULT_VALUE:Ese,getNode:N6,nodes:Cse}=Ki,{useStoreRef:bA}=cl,{AbstractRecoilValue:kse,setRecoilValueLoadable:Tse}=hs,{SUSPENSE_TIMEOUT_MS:Rse}=Xc,{cloneSnapshot:x1}=Mw,{useCallback:jw,useEffect:B6,useRef:$F,useState:Ose}=yt,{isSSR:FF}=pA;function zw(e){const t=bA();B6(()=>t.current.subscribeToTransactions(e).release,[e,t])}function LF(e){const t=e.atomValues.toMap(),n=w1(yse(t,(r,i)=>{const a=N6(i).persistence_UNSTABLE;return a!=null&&a.type!=="none"&&r.state==="hasValue"}),r=>r.contents);return xse(e.nonvalidatedAtoms.toMap(),n)}function Ase(e){zw(jw(t=>{let n=t.getState().previousTree;const r=t.getState().currentTree;n||(n=t.getState().currentTree);const i=LF(r),o=LF(n),a=w1(Cse,l=>{var u,f,p,d;return{persistence_UNSTABLE:{type:(u=(f=l.persistence_UNSTABLE)===null||f===void 0?void 0:f.type)!==null&&u!==void 0?u:"none",backButton:(p=(d=l.persistence_UNSTABLE)===null||d===void 0?void 0:d.backButton)!==null&&p!==void 0?p:!1}}}),s=wse(r.dirtyAtoms,l=>i.has(l)||o.has(l));e({atomValues:i,previousAtomValues:o,atomInfo:a,modifiedAtoms:s,transactionMetadata:{...r.transactionMetadata}})},[e]))}function Dse(e){zw(jw(t=>{const n=x1(t,"latest"),r=x1(t,"previous");e({snapshot:n,previousSnapshot:r})},[e]))}function Ise(){const e=bA(),[t,n]=Ose(()=>x1(e.current)),r=I6(t),i=$F(),o=$F();if(zw(jw(s=>n(x1(s)),[])),B6(()=>{const s=t.retain();if(i.current&&!FF){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&&!FF){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},Rse)}return t}function j6(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;Sse(()=>{const a=new Set;for(const u of[i.atomValues.keys(),o.atomValues.keys()])for(const f of u){var s,l;((s=i.atomValues.get(f))===null||s===void 0?void 0:s.contents)!==((l=o.atomValues.get(f))===null||l===void 0?void 0:l.contents)&&N6(f).shouldRestoreFromSnapshots&&a.add(f)}a.forEach(u=>{Tse(e,new kse(u),o.atomValues.has(u)?Yn(o.atomValues.get(u)):Ese)}),e.replaceState(u=>({...u,stateID:t.getID()}))})}function Pse(){const e=bA();return jw(t=>j6(e.current,t),[e])}var z6={useRecoilSnapshot:Ise,gotoSnapshot:j6,useGotoRecoilSnapshot:Pse,useRecoilTransactionObserver:Dse,useTransactionObservation_DEPRECATED:Ase,useTransactionSubscription_DEPRECATED:zw};const{peekNodeInfo:$se}=Au,{useStoreRef:Fse}=cl;function Lse(){const e=Fse();return({key:t})=>$se(e.current,e.current.getState().currentTree,t)}var Mse=Lse;const{reactMode:Nse}=ov,{RecoilRoot:Bse,useStoreRef:jse}=cl,{useMemo:zse}=yt;function Use(){Nse().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=jse().current;return zse(()=>{function t({children:n}){return yt.createElement(Bse,{store_INTERNAL:e},n)}return t},[e])}var Vse=Use;const{loadableWithValue:Wse}=iv,{initializeNode:Kse}=Au,{DEFAULT_VALUE:Hse,getNode:qse}=Ki,{copyTreeState:Gse,getRecoilValueAsLoadable:Qse,invalidateDownstreams:Yse,writeLoadableToTreeState:Xse}=hs;function MF(e){return qse(e.key).nodeType==="atom"}class Jse{constructor(t,n){Mt(this,"_store",void 0),Mt(this,"_treeState",void 0),Mt(this,"_changes",void 0),Mt(this,"get",r=>{if(this._changes.has(r.key))return this._changes.get(r.key);if(!MF(r))throw Wt("Reading selectors within atomicUpdate is not supported");const i=Qse(this._store,r,this._treeState);if(i.state==="hasValue")return i.contents;throw i.state==="hasError"?i.contents:Wt(`Expected Recoil atom ${r.key} to have a value, but it is in a loading state.`)}),Mt(this,"set",(r,i)=>{if(!MF(r))throw Wt("Setting selectors within atomicUpdate is not supported");if(typeof i=="function"){const o=this.get(r);this._changes.set(r.key,i(o))}else Kse(this._store,r.key,"set"),this._changes.set(r.key,i)}),Mt(this,"reset",r=>{this.set(r,Hse)}),this._store=t,this._treeState=n,this._changes=new Map}newTreeState_INTERNAL(){if(this._changes.size===0)return this._treeState;const t=Gse(this._treeState);for(const[n,r]of this._changes)Xse(t,n,Wse(r));return Yse(this._store,t),t}}function Zse(e){return t=>{e.replaceState(n=>{const r=new Jse(e,n);return t(r),r.newTreeState_INTERNAL()})}}var ele={atomicUpdater:Zse},tle=ele.atomicUpdater,U6=Object.freeze({__proto__:null,atomicUpdater:tle});function nle(e,t){if(!e)throw new Error(t)}var rle=nle,Rm=rle;const{atomicUpdater:ile}=U6,{batchUpdates:ole}=$w,{DEFAULT_VALUE:ale}=Ki,{useStoreRef:sle}=cl,{refreshRecoilValue:lle,setRecoilValue:NF}=hs,{cloneSnapshot:ule}=Mw,{gotoSnapshot:cle}=z6,{useCallback:fle}=yt;class V6{}const dle=new V6;function W6(e,t,n,r){let i=dle,o;if(ole(()=>{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 Wt(s);const l=n6({...r??{},set:(f,p)=>NF(e,f,p),reset:f=>NF(e,f,ale),refresh:f=>lle(e,f),gotoSnapshot:f=>cle(e,f),transact_UNSTABLE:f=>ile(e)(f)},{snapshot:()=>{const f=ule(e);return o=f.retain(),f}}),u=t(l);if(typeof u!="function")throw Wt(s);i=u(...n)}),i instanceof V6&&Rm(!1),Qn(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 ple(e,t){const n=sle();return fle((...r)=>W6(n.current,e,r),t!=null?[...t,n]:void 0)}var K6={recoilCallback:W6,useRecoilCallback:ple};const{useStoreRef:hle}=cl,{refreshRecoilValue:mle}=hs,{useCallback:gle}=yt;function vle(e){const t=hle();return gle(()=>{const n=t.current;mle(n,e)},[e,t])}var yle=vle;const{atomicUpdater:ble}=U6,{useStoreRef:wle}=cl,{useMemo:_le}=yt;function xle(e,t){const n=wle();return _le(()=>(...r)=>{ble(n.current)(o=>{e(o)(...r)})},t!=null?[...t,n]:void 0)}var Sle=xle;class Ele{constructor(t){Mt(this,"value",void 0),this.value=t}}var Cle={WrappedValue:Ele},kle=Cle.WrappedValue,H6=Object.freeze({__proto__:null,WrappedValue:kle});const{isFastRefreshEnabled:Tle}=ov;class BF extends Error{}class Rle{constructor(t){var n,r,i;Mt(this,"_name",void 0),Mt(this,"_numLeafs",void 0),Mt(this,"_root",void 0),Mt(this,"_onHit",void 0),Mt(this,"_onSet",void 0),Mt(this,"_mapNodeValue",void 0),this._name=t==null?void 0:t.name,this._numLeafs=0,this._root=null,this._onHit=(n=t==null?void 0:t.onHit)!==null&&n!==void 0?n:()=>{},this._onSet=(r=t==null?void 0:t.onSet)!==null&&r!==void 0?r:()=>{},this._mapNodeValue=(i=t==null?void 0:t.mapNodeValue)!==null&&i!==void 0?i:o=>o}size(){return this._numLeafs}root(){return this._root}get(t,n){var r;return(r=this.getLeafNode(t,n))===null||r===void 0?void 0:r.value}getLeafNode(t,n){if(this._root==null)return;let r=this._root;for(;r;){if(n==null||n.onNodeVisit(r),r.type==="leaf")return this._onHit(r),r;const i=this._mapNodeValue(t(r.nodeKey));r=r.branches.get(i)}}set(t,n,r){const i=()=>{var o,a,s,l;let u,f;for(const[x,b]of t){var p,d,v;const w=this._root;if((w==null?void 0:w.type)==="leaf")throw this.invalidCacheError();const S=u;if(u=S?S.branches.get(f):w,u=(p=u)!==null&&p!==void 0?p:{type:"branch",nodeKey:x,parent:S,branches:new Map,branchKey:f},u.type!=="branch"||u.nodeKey!==x)throw this.invalidCacheError();S==null||S.branches.set(f,u),r==null||(d=r.onNodeVisit)===null||d===void 0||d.call(r,u),f=this._mapNodeValue(b),this._root=(v=this._root)!==null&&v!==void 0?v:u}const g=u?(o=u)===null||o===void 0?void 0:o.branches.get(f):this._root;if(g!=null&&(g.type!=="leaf"||g.branchKey!==f))throw this.invalidCacheError();const y={type:"leaf",value:n,parent:u,branchKey:f};(a=u)===null||a===void 0||a.branches.set(f,y),this._root=(s=this._root)!==null&&s!==void 0?s:y,this._numLeafs++,this._onSet(y),r==null||(l=r.onNodeVisit)===null||l===void 0||l.call(r,y)};try{i()}catch(o){if(o instanceof BF)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=Tle()?"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 iA(t+(this._name!=null?` - ${this._name}`:"")),new BF}}var Ole={TreeCache:Rle},Ale=Ole.TreeCache,q6=Object.freeze({__proto__:null,TreeCache:Ale});class Dle{constructor(t){var n;Mt(this,"_maxSize",void 0),Mt(this,"_size",void 0),Mt(this,"_head",void 0),Mt(this,"_tail",void 0),Mt(this,"_map",void 0),Mt(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=Yn(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 Ile={LRUCache:Dle},Ple=Ile.LRUCache,G6=Object.freeze({__proto__:null,LRUCache:Ple});const{LRUCache:$le}=G6,{TreeCache:Fle}=q6;function Lle({name:e,maxSize:t,mapNodeValue:n=r=>r}){const r=new $le({maxSize:t}),i=new Fle({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 jF=Lle;function ma(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 Wt("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(Qn(e))return"__PROMISE__";if(Array.isArray(e))return`[${e.map((i,o)=>ma(i,t,o.toString()))}]`;if(typeof e.toJSON=="function")return ma(e.toJSON(n),t,n);if(e instanceof Map){const i={};for(const[o,a]of e)i[typeof o=="string"?o:ma(o,t)]=a;return ma(i,t,n)}return e instanceof Set?ma(Array.from(e).sort((i,o)=>ma(i,t).localeCompare(ma(o,t))),t,n):Symbol!==void 0&&e[Symbol.iterator]!=null&&typeof e[Symbol.iterator]=="function"?ma(Array.from(e),t,n):`{${Object.keys(e).filter(i=>e[i]!==void 0).sort().map(i=>`${ma(i,t)}:${ma(e[i],t,i)}`).join(",")}}`}function Mle(e,t={allowFunctions:!1}){return ma(e,t)}var Uw=Mle;const{TreeCache:Nle}=q6,p0={equality:"reference",eviction:"keep-all",maxSize:1/0};function Ble({equality:e=p0.equality,eviction:t=p0.eviction,maxSize:n=p0.maxSize}=p0,r){const i=jle(e);return zle(t,n,i,r)}function jle(e){switch(e){case"reference":return t=>t;case"value":return t=>Uw(t)}throw Wt(`Unrecognized equality policy ${e}`)}function zle(e,t,n,r){switch(e){case"keep-all":return new Nle({name:r,mapNodeValue:n});case"lru":return jF({name:r,maxSize:Yn(t),mapNodeValue:n});case"most-recent":return jF({name:r,maxSize:1,mapNodeValue:n})}throw Wt(`Unrecognized eviction policy ${e}`)}var Ule=Ble;function Vle(e){return()=>null}var Wle={startPerfBlock:Vle};const{isLoadable:Kle,loadableWithError:h0,loadableWithPromise:Hle,loadableWithValue:vE}=iv,{WrappedValue:Q6}=H6,{getNodeLoadable:m0,peekNodeLoadable:qle,setNodeValue:Gle}=Au,{saveDepsToStore:Qle}=av,{DEFAULT_VALUE:Yle,getConfigDeletionHandler:Xle,getNode:Jle,registerNode:zF}=Ki,{isRecoilValue:Zle}=op,{markRecoilValueModified:UF}=hs,{retainedByOptionWithDefault:eue}=Xc,{recoilCallback:tue}=K6,{startPerfBlock:nue}=Wle;class Y6{}const Vh=new Y6,Wh=[],g0=new Map,rue=(()=>{let e=0;return()=>e++})();function X6(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=Ule(i??{equality:"reference",eviction:"keep-all"},n),l=eue(e.retainedBy_UNSTABLE),u=new Map;let f=0;function p(){return!Dn("recoil_memory_managament_2020")||f>0}function d(A){return A.getState().knownSelectors.add(n),f++,()=>{f--}}function v(){return Xle(n)!==void 0&&!p()}function g(A,ie,ae,ce,oe){F(ie,ce,oe),y(A,ae)}function y(A,ie){re(A,ie)&&ne(A),b(ie,!0)}function x(A,ie){re(A,ie)&&(Yn(U(A)).stateVersions.clear(),b(ie,!1))}function b(A,ie){const ae=g0.get(A);if(ae!=null){for(const ce of ae)UF(ce,Yn(t));ie&&g0.delete(A)}}function w(A,ie){let ae=g0.get(ie);ae==null&&g0.set(ie,ae=new Set),ae.add(A)}function S(A,ie,ae,ce,oe,xe){return ie.then(ke=>{if(!p())throw ne(A),Vh;const Ee=vE(ke);return g(A,ae,oe,Ee,ce),ke}).catch(ke=>{if(!p())throw ne(A),Vh;if(Qn(ke))return C(A,ke,ae,ce,oe,xe);const Ee=h0(ke);throw g(A,ae,oe,Ee,ce),ke})}function C(A,ie,ae,ce,oe,xe){return ie.then(ke=>{if(!p())throw ne(A),Vh;xe.loadingDepKey!=null&&xe.loadingDepPromise===ie?ae.atomValues.set(xe.loadingDepKey,vE(ke)):A.getState().knownSelectors.forEach(Ue=>{ae.atomValues.delete(Ue)});const Ee=P(A,ae);if(Ee&&Ee.state!=="loading"){if((re(A,oe)||U(A)==null)&&y(A,oe),Ee.state==="hasValue")return Ee.contents;throw Ee.contents}if(!re(A,oe)){const Ue=V(A,ae);if(Ue!=null)return Ue.loadingLoadable.contents}const[Fe,Le]=D(A,ae,oe);if(Fe.state!=="loading"&&g(A,ae,oe,Fe,Le),Fe.state==="hasError")throw Fe.contents;return Fe.contents}).catch(ke=>{if(ke instanceof Y6)throw Vh;if(!p())throw ne(A),Vh;const Ee=h0(ke);throw g(A,ae,oe,Ee,ce),ke})}function k(A,ie,ae,ce){var oe,xe,ke,Ee;if(re(A,ce)||ie.version===((oe=A.getState())===null||oe===void 0||(xe=oe.currentTree)===null||xe===void 0?void 0:xe.version)||ie.version===((ke=A.getState())===null||ke===void 0||(Ee=ke.nextTree)===null||Ee===void 0?void 0:Ee.version)){var Fe,Le,Ue;Qle(n,ae,A,(Fe=(Le=A.getState())===null||Le===void 0||(Ue=Le.nextTree)===null||Ue===void 0?void 0:Ue.version)!==null&&Fe!==void 0?Fe:A.getState().currentTree.version)}for(const He of ae)a.add(He)}function D(A,ie,ae){const ce=nue(n);let oe=!0,xe=!0;const ke=()=>{ce(),xe=!1};let Ee,Fe=!1,Le;const Ue={loadingDepKey:null,loadingDepPromise:null},He=new Map;function Qe({key:ut}){const et=m0(A,ie,ut);switch(He.set(ut,et),oe||(k(A,ie,new Set(He.keys()),ae),x(A,ae)),et.state){case"hasValue":return et.contents;case"hasError":throw et.contents;case"loading":throw Ue.loadingDepKey=ut,Ue.loadingDepPromise=et.contents,et.contents}throw Wt("Invalid Loadable state")}const qe=ut=>(...et)=>{if(xe)throw Wt("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&&Rm(!1),tue(A,ut,et,{node:t})};try{Ee=r({get:Qe,getCallback:qe}),Ee=Zle(Ee)?Qe(Ee):Ee,Kle(Ee)&&(Ee.state==="hasError"&&(Fe=!0),Ee=Ee.contents),Qn(Ee)?Ee=S(A,Ee,ie,He,ae,Ue).finally(ke):ke(),Ee=Ee instanceof Q6?Ee.value:Ee}catch(ut){Ee=ut,Qn(Ee)?Ee=C(A,Ee,ie,He,ae,Ue).finally(ke):(Fe=!0,ke())}return Fe?Le=h0(Ee):Qn(Ee)?Le=Hle(Ee):Le=vE(Ee),oe=!1,se(A,ae,He),k(A,ie,new Set(He.keys()),ae),[Le,He]}function P(A,ie){let ae=ie.atomValues.get(n);if(ae!=null)return ae;const ce=new Set;try{ae=s.get(xe=>(typeof xe!="string"&&Rm(!1),m0(A,ie,xe).contents),{onNodeVisit:xe=>{xe.type==="branch"&&xe.nodeKey!==n&&ce.add(xe.nodeKey)}})}catch(xe){throw Wt(`Problem with cache lookup for selector "${n}": ${xe.message}`)}if(ae){var oe;ie.atomValues.set(n,ae),k(A,ie,ce,(oe=U(A))===null||oe===void 0?void 0:oe.executionID)}return ae}function B(A,ie){const ae=P(A,ie);if(ae!=null)return ne(A),ae;const ce=V(A,ie);if(ce!=null){var oe;return((oe=ce.loadingLoadable)===null||oe===void 0?void 0:oe.state)==="loading"&&w(A,ce.executionID),ce.loadingLoadable}const xe=rue(),[ke,Ee]=D(A,ie,xe);return ke.state==="loading"?(W(A,xe,ke,Ee,ie),w(A,xe)):(ne(A),F(ie,ke,Ee)),ke}function V(A,ie){const ae=b6([u.has(A)?[Yn(u.get(A))]:[],Aw(uA(u,([oe])=>oe!==A),([,oe])=>oe)]);function ce(oe){for(const[xe,ke]of oe)if(!m0(A,ie,xe).is(ke))return!0;return!1}for(const oe of ae){if(oe.stateVersions.get(ie.version)||!ce(oe.depValuesDiscoveredSoFarDuringAsyncWork))return oe.stateVersions.set(ie.version,!0),oe;oe.stateVersions.set(ie.version,!1)}}function U(A){return u.get(A)}function W(A,ie,ae,ce,oe){u.set(A,{depValuesDiscoveredSoFarDuringAsyncWork:ce,executionID:ie,loadingLoadable:ae,stateVersions:new Map([[oe.version,!0]])})}function se(A,ie,ae){if(re(A,ie)){const ce=U(A);ce!=null&&(ce.depValuesDiscoveredSoFarDuringAsyncWork=ae)}}function ne(A){u.delete(A)}function re(A,ie){var ae;return ie===((ae=U(A))===null||ae===void 0?void 0:ae.executionID)}function Z(A){return Array.from(A.entries()).map(([ie,ae])=>[ie,ae.contents])}function F(A,ie,ae){A.atomValues.set(n,ie);try{s.set(Z(ae),ie)}catch(ce){throw Wt(`Problem with setting cache for selector "${n}": ${ce.message}`)}}function te(A){if(Wh.includes(n)){const ie=`Recoil selector has circular dependencies: ${Wh.slice(Wh.indexOf(n)).join(" → ")}`;return h0(Wt(ie))}Wh.push(n);try{return A()}finally{Wh.pop()}}function Y(A,ie){const ae=ie.atomValues.get(n);return ae??s.get(ce=>{var oe;return typeof ce!="string"&&Rm(!1),(oe=qle(A,ie,ce))===null||oe===void 0?void 0:oe.contents})}function ee(A,ie){return te(()=>B(A,ie))}function G(A){A.atomValues.delete(n)}function L(A,ie){t==null&&Rm(!1);for(const ce of a){var ae;const oe=Jle(ce);(ae=oe.clearCache)===null||ae===void 0||ae.call(oe,A,ie)}a.clear(),G(ie),s.clear(),UF(A,t)}return o!=null?t=zF({key:n,nodeType:"selector",peek:Y,get:ee,set:(ie,ae,ce)=>{let oe=!1;const xe=new Map;function ke({key:Ue}){if(oe)throw Wt("Recoil: Async selector sets are not currently supported.");const He=m0(ie,ae,Ue);if(He.state==="hasValue")return He.contents;if(He.state==="loading"){const Qe=`Getting value of asynchronous atom or selector "${Ue}" in a pending state while setting selector "${n}" is not yet supported.`;throw Wt(Qe)}else throw He.contents}function Ee(Ue,He){if(oe)throw Wt("Recoil: Async selector sets are not currently supported.");const Qe=typeof He=="function"?He(ke(Ue)):He;Gle(ie,ae,Ue.key,Qe).forEach((ut,et)=>xe.set(et,ut))}function Fe(Ue){Ee(Ue,Yle)}const Le=o({set:Ee,get:ke,reset:Fe},ce);if(Le!==void 0)throw Qn(Le)?Wt("Recoil: Async selector sets are not currently supported."):Wt("Recoil: selector set should be a void function.");return oe=!0,xe},init:d,invalidate:G,clearCache:L,shouldDeleteConfigOnRelease:v,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:l}):t=zF({key:n,nodeType:"selector",peek:Y,get:ee,init:d,invalidate:G,clearCache:L,shouldDeleteConfigOnRelease:v,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:l})}X6.value=e=>new Q6(e);var lp=X6;const{isLoadable:iue,loadableWithError:yE,loadableWithPromise:bE,loadableWithValue:Uf}=iv,{WrappedValue:J6}=H6,{peekNodeInfo:oue}=Au,{DEFAULT_VALUE:hc,DefaultValue:ql,getConfigDeletionHandler:Z6,registerNode:aue,setConfigDeletionHandler:sue}=Ki,{isRecoilValue:lue}=op,{getRecoilValueAsLoadable:uue,markRecoilValueModified:cue,setRecoilValue:VF,setRecoilValueLoadable:fue}=hs,{retainedByOptionWithDefault:due}=Xc,Kh=e=>e instanceof J6?e.value:e;function pue(e){const{key:t,persistence_UNSTABLE:n}=e,r=due(e.retainedBy_UNSTABLE);let i=0;function o(w){return bE(w.then(S=>(a=Uf(S),S)).catch(S=>{throw a=yE(S),S}))}let a=Qn(e.default)?o(e.default):iue(e.default)?e.default.state==="loading"?o(e.default.contents):e.default:Uf(Kh(e.default));a.contents;let s;const l=new Map;function u(w){return w}function f(w,S){const C=S.then(k=>{var D,P;return((P=((D=w.getState().nextTree)!==null&&D!==void 0?D:w.getState().currentTree).atomValues.get(t))===null||P===void 0?void 0:P.contents)===C&&VF(w,b,k),k}).catch(k=>{var D,P;throw((P=((D=w.getState().nextTree)!==null&&D!==void 0?D:w.getState().currentTree).atomValues.get(t))===null||P===void 0?void 0:P.contents)===C&&fue(w,b,yE(k)),k});return C}function p(w,S,C){var k;i++;const D=()=>{var U;i--,(U=l.get(w))===null||U===void 0||U.forEach(W=>W()),l.delete(w)};if(w.getState().knownAtoms.add(t),a.state==="loading"){const U=()=>{var W;((W=w.getState().nextTree)!==null&&W!==void 0?W:w.getState().currentTree).atomValues.has(t)||cue(w,b)};a.contents.finally(U)}const P=(k=e.effects)!==null&&k!==void 0?k:e.effects_UNSTABLE;if(P!=null){let re=function(G){if(W&&G.key===t){const L=U;return L instanceof ql?d(w,S):Qn(L)?bE(L.then(A=>A instanceof ql?a.toPromise():A)):Uf(L)}return uue(w,G)},Z=function(G){return re(G).toPromise()},F=function(G){var L;const A=oue(w,(L=w.getState().nextTree)!==null&&L!==void 0?L:w.getState().currentTree,G.key);return W&&G.key===t&&!(U instanceof ql)?{...A,isSet:!0,loadable:re(G)}:A},U=hc,W=!0,se=!1,ne=null;const te=G=>L=>{if(W){const A=re(b),ie=A.state==="hasValue"?A.contents:hc;U=typeof L=="function"?L(ie):L,Qn(U)&&(U=U.then(ae=>(ne={effect:G,value:ae},ae)))}else{if(Qn(L))throw Wt("Setting atoms to async values is not implemented.");typeof L!="function"&&(ne={effect:G,value:Kh(L)}),VF(w,b,typeof L=="function"?A=>{const ie=Kh(L(A));return ne={effect:G,value:ie},ie}:Kh(L))}},Y=G=>()=>te(G)(hc),ee=G=>L=>{var A;const{release:ie}=w.subscribeToTransactions(ae=>{var ce;let{currentTree:oe,previousTree:xe}=ae.getState();xe||(xe=oe);const ke=(ce=oe.atomValues.get(t))!==null&&ce!==void 0?ce:a;if(ke.state==="hasValue"){var Ee,Fe,Le,Ue;const He=ke.contents,Qe=(Ee=xe.atomValues.get(t))!==null&&Ee!==void 0?Ee:a,qe=Qe.state==="hasValue"?Qe.contents:hc;((Fe=ne)===null||Fe===void 0?void 0:Fe.effect)!==G||((Le=ne)===null||Le===void 0?void 0:Le.value)!==He?L(He,qe,!oe.atomValues.has(t)):((Ue=ne)===null||Ue===void 0?void 0:Ue.effect)===G&&(ne=null)}},t);l.set(w,[...(A=l.get(w))!==null&&A!==void 0?A:[],ie])};for(const G of P)try{const L=G({node:b,storeID:w.storeID,parentStoreID_UNSTABLE:w.parentStoreID,trigger:C,setSelf:te(G),resetSelf:Y(G),onSet:ee(G),getPromise:Z,getLoadable:re,getInfo_UNSTABLE:F});if(L!=null){var B;l.set(w,[...(B=l.get(w))!==null&&B!==void 0?B:[],L])}}catch(L){U=L,se=!0}if(W=!1,!(U instanceof ql)){var V;const G=se?yE(U):Qn(U)?bE(f(w,U)):Uf(Kh(U));G.contents,S.atomValues.set(t,G),(V=w.getState().nextTree)===null||V===void 0||V.atomValues.set(t,G)}}return D}function d(w,S){var C,k;return(C=(k=S.atomValues.get(t))!==null&&k!==void 0?k:s)!==null&&C!==void 0?C:a}function v(w,S){if(S.atomValues.has(t))return Yn(S.atomValues.get(t));if(S.nonvalidatedAtoms.has(t)){if(s!=null)return s;if(n==null)return a;const C=S.nonvalidatedAtoms.get(t),k=n.validator(C,hc);return s=k instanceof ql?a:Uf(k),s}else return a}function g(){s=void 0}function y(w,S,C){if(S.atomValues.has(t)){const k=Yn(S.atomValues.get(t));if(k.state==="hasValue"&&C===k.contents)return new Map}else if(!S.nonvalidatedAtoms.has(t)&&C instanceof ql)return new Map;return s=void 0,new Map().set(t,Uf(C))}function x(){return Z6(t)!==void 0&&i<=0}const b=aue({key:t,nodeType:"atom",peek:d,get:v,set:y,init:p,invalidate:g,shouldDeleteConfigOnRelease:x,dangerouslyAllowMutability:e.dangerouslyAllowMutability,persistence_UNSTABLE:e.persistence_UNSTABLE?{type:e.persistence_UNSTABLE.type,backButton:e.persistence_UNSTABLE.backButton}:void 0,shouldRestoreFromSnapshots:!0,retainedBy:r});return b}function wA(e){const{...t}=e,n="default"in e?e.default:new Promise(()=>{});return lue(n)?hue({...t,default:n}):pue({...t,default:n})}function hue(e){const t=wA({...e,default:hc,persistence_UNSTABLE:e.persistence_UNSTABLE===void 0?void 0:{...e.persistence_UNSTABLE,validator:r=>r instanceof ql?r:Yn(e.persistence_UNSTABLE).validator(r,hc)},effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE}),n=lp({key:`${e.key}__withFallback`,get:({get:r})=>{const i=r(t);return i instanceof ql?e.default:i},set:({set:r},i)=>r(t,i),cachePolicy_UNSTABLE:{eviction:"most-recent"},dangerouslyAllowMutability:e.dangerouslyAllowMutability});return sue(n.key,Z6(e.key)),n}wA.value=e=>new J6(e);var e9=wA;let mue=class{constructor(t){var n;Mt(this,"_map",void 0),Mt(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 gue={MapCache:mue},vue=gue.MapCache,yue=Object.freeze({__proto__:null,MapCache:vue});const{LRUCache:WF}=G6,{MapCache:bue}=yue,v0={equality:"reference",eviction:"none",maxSize:1/0};function wue({equality:e=v0.equality,eviction:t=v0.eviction,maxSize:n=v0.maxSize}=v0){const r=_ue(e);return xue(t,n,r)}function _ue(e){switch(e){case"reference":return t=>t;case"value":return t=>Uw(t)}throw Wt(`Unrecognized equality policy ${e}`)}function xue(e,t,n){switch(e){case"keep-all":return new bue({mapKey:n});case"lru":return new WF({mapKey:n,maxSize:Yn(t)});case"most-recent":return new WF({mapKey:n,maxSize:1})}throw Wt(`Unrecognized eviction policy ${e}`)}var t9=wue;const{setConfigDeletionHandler:Sue}=Ki;function Eue(e){var t,n;const r=t9({equality:(t=(n=e.cachePolicyForParams_UNSTABLE)===null||n===void 0?void 0:n.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return i=>{var o,a;const s=r.get(i);if(s!=null)return s;const{cachePolicyForParams_UNSTABLE:l,...u}=e,f="default"in e?e.default:new Promise(()=>{}),p=e9({...u,key:`${e.key}__${(o=Uw(i))!==null&&o!==void 0?o:"void"}`,default:typeof f=="function"?f(i):f,retainedBy_UNSTABLE:typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(i):e.retainedBy_UNSTABLE,effects:typeof e.effects=="function"?e.effects(i):typeof e.effects_UNSTABLE=="function"?e.effects_UNSTABLE(i):(a=e.effects)!==null&&a!==void 0?a:e.effects_UNSTABLE});return r.set(i,p),Sue(p.key,()=>{r.delete(i)}),p}}var Cue=Eue;const{setConfigDeletionHandler:kue}=Ki;let Tue=0;function Rue(e){var t,n;const r=t9({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(d){throw Wt(`Problem with cache lookup for selector ${e.key}: ${d.message}`)}if(a!=null)return a;const s=`${e.key}__selectorFamily/${(o=Uw(i,{allowFunctions:!0}))!==null&&o!==void 0?o:"void"}/${Tue++}`,l=d=>e.get(i)(d),u=e.cachePolicy_UNSTABLE,f=typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(i):e.retainedBy_UNSTABLE;let p;if(e.set!=null){const d=e.set;p=lp({key:s,get:l,set:(g,y)=>d(i)(g,y),cachePolicy_UNSTABLE:u,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:f})}else p=lp({key:s,get:l,cachePolicy_UNSTABLE:u,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:f});return r.set(i,p),kue(p.key,()=>{r.delete(i)}),p}}var Du=Rue;const Oue=Du({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}});function Aue(e){return Oue(e)}var Due=Aue;const Iue=Du({key:"__error",get:e=>()=>{throw Wt(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});function Pue(e){return Iue(e)}var $ue=Pue;function Fue(e){return e}var Lue=Fue;const{loadableWithError:n9,loadableWithPromise:r9,loadableWithValue:i9}=iv;function Vw(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 Mue(e){return e!=null&&!Qn(e)}function Ww(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(t=>e[t])}function fT(e,t){return Array.isArray(e)?t:Object.getOwnPropertyNames(e).reduce((n,r,i)=>({...n,[r]:t[i]}),{})}function Ld(e,t,n){const r=n.map((i,o)=>i==null?i9(t[o]):Qn(i)?r9(i):n9(i));return fT(e,r)}function Nue(e,t){return t.map((n,r)=>n===void 0?e[r]:n)}const Bue=Du({key:"__waitForNone",get:e=>({get:t})=>{const n=Ww(e),[r,i]=Vw(t,n);return Ld(e,r,i)},dangerouslyAllowMutability:!0}),jue=Du({key:"__waitForAny",get:e=>({get:t})=>{const n=Ww(e),[r,i]=Vw(t,n);return i.some(o=>!Qn(o))?Ld(e,r,i):new Promise(o=>{for(const[a,s]of i.entries())Qn(s)&&s.then(l=>{r[a]=l,i[a]=void 0,o(Ld(e,r,i))}).catch(l=>{i[a]=l,o(Ld(e,r,i))})})},dangerouslyAllowMutability:!0}),zue=Du({key:"__waitForAll",get:e=>({get:t})=>{const n=Ww(e),[r,i]=Vw(t,n);if(i.every(a=>a==null))return fT(e,r);const o=i.find(Mue);if(o!=null)throw o;return Promise.all(i).then(a=>fT(e,Nue(r,a)))},dangerouslyAllowMutability:!0}),Uue=Du({key:"__waitForAllSettled",get:e=>({get:t})=>{const n=Ww(e),[r,i]=Vw(t,n);return i.every(o=>!Qn(o))?Ld(e,r,i):Promise.all(i.map((o,a)=>Qn(o)?o.then(s=>{r[a]=s,i[a]=void 0}).catch(s=>{r[a]=void 0,i[a]=s}):null)).then(()=>Ld(e,r,i))},dangerouslyAllowMutability:!0}),Vue=Du({key:"__noWait",get:e=>({get:t})=>{try{return lp.value(i9(t(e)))}catch(n){return lp.value(Qn(n)?r9(n):n9(n))}},dangerouslyAllowMutability:!0});var Wue={waitForNone:Bue,waitForAny:jue,waitForAll:zue,waitForAllSettled:Uue,noWait:Vue};const{RecoilLoadable:Kue}=iv,{DefaultValue:Hue}=Ki,{RecoilRoot:que,useRecoilStoreID:Gue}=cl,{isRecoilValue:Que}=op,{retentionZone:Yue}=Iw,{freshSnapshot:Xue}=Mw,{useRecoilState:Jue,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:Zue,useRecoilStateLoadable:ece,useRecoilValue:tce,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:nce,useRecoilValueLoadable:rce,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:ice,useResetRecoilState:oce,useSetRecoilState:ace}=gse,{useGotoRecoilSnapshot:sce,useRecoilSnapshot:lce,useRecoilTransactionObserver:uce}=z6,{useRecoilCallback:cce}=K6,{noWait:fce,waitForAll:dce,waitForAllSettled:pce,waitForAny:hce,waitForNone:mce}=Wue;var cv={DefaultValue:Hue,isRecoilValue:Que,RecoilLoadable:Kue,RecoilEnv:KU,RecoilRoot:que,useRecoilStoreID:Gue,useRecoilBridgeAcrossReactRoots_UNSTABLE:Vse,atom:e9,selector:lp,atomFamily:Cue,selectorFamily:Du,constSelector:Due,errorSelector:$ue,readOnlySelector:Lue,noWait:fce,waitForNone:mce,waitForAny:hce,waitForAll:dce,waitForAllSettled:pce,useRecoilValue:tce,useRecoilValueLoadable:rce,useRecoilState:Jue,useRecoilStateLoadable:ece,useSetRecoilState:ace,useResetRecoilState:oce,useGetRecoilValueInfo_UNSTABLE:Mse,useRecoilRefresher_UNSTABLE:yle,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:ice,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:nce,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:Zue,useRecoilCallback:cce,useRecoilTransaction_UNSTABLE:Sle,useGotoRecoilSnapshot:sce,useRecoilSnapshot:lce,useRecoilTransactionObserver_UNSTABLE:uce,snapshot_UNSTABLE:Xue,useRetain:mA,retentionZone:Yue},gce=cv.RecoilRoot,ni=cv.atom,Ft=cv.useRecoilValue,yo=cv.useRecoilState,Er=cv.useSetRecoilState;const vce={black:"#000",white:"#fff"},Og=vce,yce={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"},Vf=yce,bce={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"},Wf=bce,wce={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"},Kf=wce,_ce={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"},Hf=_ce,xce={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"},qf=xce,Sce={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"},Hh=Sce,Ece={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"},Cce=Ece;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 mc(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function o9(e){if(!mc(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=o9(e[n])}),t}function ji(e,t,n={clone:!0}){const r=n.clone?z({},e):e;return mc(e)&&mc(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(mc(t[i])&&i in e&&mc(e[i])?r[i]=ji(e[i],t[i],n):n.clone?r[i]=mc(t[i])?o9(t[i]):t[i]:r[i]=t[i])}),r}var a9={exports:{}},kce="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Tce=kce,Rce=Tce;function s9(){}function l9(){}l9.resetWarningCache=s9;var Oce=function(){function e(r,i,o,a,s,l){if(l!==Rce){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:l9,resetWarningCache:s9};return n.PropTypes=n,n};a9.exports=Oce();var fv=a9.exports;const ft=ps(fv);function yu(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 u9={exports:{}},En={};/**
|
|
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 _A=Symbol.for("react.element"),xA=Symbol.for("react.portal"),Kw=Symbol.for("react.fragment"),Hw=Symbol.for("react.strict_mode"),qw=Symbol.for("react.profiler"),Gw=Symbol.for("react.provider"),Qw=Symbol.for("react.context"),Ace=Symbol.for("react.server_context"),Yw=Symbol.for("react.forward_ref"),Xw=Symbol.for("react.suspense"),Jw=Symbol.for("react.suspense_list"),Zw=Symbol.for("react.memo"),e_=Symbol.for("react.lazy"),Dce=Symbol.for("react.offscreen"),c9;c9=Symbol.for("react.module.reference");function Jo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case _A:switch(e=e.type,e){case Kw:case qw:case Hw:case Xw:case Jw:return e;default:switch(e=e&&e.$$typeof,e){case Ace:case Qw:case Yw:case e_:case Zw:case Gw:return e;default:return t}}case xA:return t}}}En.ContextConsumer=Qw;En.ContextProvider=Gw;En.Element=_A;En.ForwardRef=Yw;En.Fragment=Kw;En.Lazy=e_;En.Memo=Zw;En.Portal=xA;En.Profiler=qw;En.StrictMode=Hw;En.Suspense=Xw;En.SuspenseList=Jw;En.isAsyncMode=function(){return!1};En.isConcurrentMode=function(){return!1};En.isContextConsumer=function(e){return Jo(e)===Qw};En.isContextProvider=function(e){return Jo(e)===Gw};En.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===_A};En.isForwardRef=function(e){return Jo(e)===Yw};En.isFragment=function(e){return Jo(e)===Kw};En.isLazy=function(e){return Jo(e)===e_};En.isMemo=function(e){return Jo(e)===Zw};En.isPortal=function(e){return Jo(e)===xA};En.isProfiler=function(e){return Jo(e)===qw};En.isStrictMode=function(e){return Jo(e)===Hw};En.isSuspense=function(e){return Jo(e)===Xw};En.isSuspenseList=function(e){return Jo(e)===Jw};En.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Kw||e===qw||e===Hw||e===Xw||e===Jw||e===Dce||typeof e=="object"&&e!==null&&(e.$$typeof===e_||e.$$typeof===Zw||e.$$typeof===Gw||e.$$typeof===Qw||e.$$typeof===Yw||e.$$typeof===c9||e.getModuleId!==void 0)};En.typeOf=Jo;u9.exports=En;var Ice=u9.exports;const Pce=ps(Ice);function ze(e){if(typeof e!="string")throw new Error(yu(7));return e.charAt(0).toUpperCase()+e.slice(1)}function dT(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function SA(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 $ce(e,t){return()=>null}function Md(e,t){return R.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function nr(e){return e&&e.ownerDocument||document}function bu(e){return nr(e).defaultView||window}function Fce(e,t){return()=>null}function S1(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Lce=typeof window<"u"?R.useLayoutEffect:R.useEffect,mo=Lce;let KF=0;function Mce(e){const[t,n]=R.useState(e),r=e||t;return R.useEffect(()=>{t==null&&(KF+=1,n(`mui-${KF}`))},[t]),r}const HF=mu["useId"];function dv(e){if(HF!==void 0){const t=HF();return e??t}return Mce(e)}function Nce(e,t,n,r,i){return null}function up({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=R.useRef(e!==void 0),[o,a]=R.useState(t),s=i?e:o,l=R.useCallback(u=>{i||a(u)},[]);return[s,l]}function Uo(e){const t=R.useRef(e);return mo(()=>{t.current=e}),R.useCallback((...n)=>(0,t.current)(...n),[])}function Un(...e){return R.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{S1(n,t)})},e)}let t_=!0,pT=!1,qF;const Bce={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 jce(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Bce[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function zce(e){e.metaKey||e.altKey||e.ctrlKey||(t_=!0)}function wE(){t_=!1}function Uce(){this.visibilityState==="hidden"&&pT&&(t_=!0)}function Vce(e){e.addEventListener("keydown",zce,!0),e.addEventListener("mousedown",wE,!0),e.addEventListener("pointerdown",wE,!0),e.addEventListener("touchstart",wE,!0),e.addEventListener("visibilitychange",Uce,!0)}function Wce(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return t_||jce(t)}function pv(){const e=R.useCallback(i=>{i!=null&&Vce(i.ownerDocument)},[]),t=R.useRef(!1);function n(){return t.current?(pT=!0,window.clearTimeout(qF),qF=window.setTimeout(()=>{pT=!1},100),t.current=!1,!0):!1}function r(i){return Wce(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function f9(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const Kce={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},Hce=Kce;function EA(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]=EA(i[a],o[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Rt(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 GF=e=>e,qce=()=>{let e=GF;return{configure(t){e=t},generate(t){return e(t)},reset(){e=GF}}},Gce=qce(),CA=Gce,Qce={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function kt(e,t,n="Mui"){const r=Qce[t];return r?`${n}-${r}`:`${CA.generate(e)}-${t}`}function Et(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=kt(e,i,n)}),r}function rt(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 d9(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Yce=/^((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)-.*))$/,Xce=d9(function(e){return Yce.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Jce(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 Zce(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 efe=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(Zce(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=Jce(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}(),ui="-ms-",E1="-moz-",pn="-webkit-",p9="comm",kA="rule",TA="decl",tfe="@import",h9="@keyframes",nfe=Math.abs,n_=String.fromCharCode,rfe=Object.assign;function ife(e,t){return Jr(e,0)^45?(((t<<2^Jr(e,0))<<2^Jr(e,1))<<2^Jr(e,2))<<2^Jr(e,3):0}function m9(e){return e.trim()}function ofe(e,t){return(e=t.exec(e))?e[0]:e}function yn(e,t,n){return e.replace(t,n)}function hT(e,t){return e.indexOf(t)}function Jr(e,t){return e.charCodeAt(t)|0}function Ag(e,t,n){return e.slice(t,n)}function Qa(e){return e.length}function RA(e){return e.length}function y0(e,t){return t.push(e),e}function afe(e,t){return e.map(t).join("")}var r_=1,cp=1,g9=0,Vi=0,Cr=0,Tp="";function i_(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:r_,column:cp,length:a,return:""}}function qh(e,t){return rfe(i_("",null,null,"",null,null,0),e,{length:-e.length},t)}function sfe(){return Cr}function lfe(){return Cr=Vi>0?Jr(Tp,--Vi):0,cp--,Cr===10&&(cp=1,r_--),Cr}function co(){return Cr=Vi<g9?Jr(Tp,Vi++):0,cp++,Cr===10&&(cp=1,r_++),Cr}function os(){return Jr(Tp,Vi)}function bb(){return Vi}function hv(e,t){return Ag(Tp,e,t)}function Dg(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 v9(e){return r_=cp=1,g9=Qa(Tp=e),Vi=0,[]}function y9(e){return Tp="",e}function wb(e){return m9(hv(Vi-1,mT(e===91?e+2:e===40?e+1:e)))}function ufe(e){for(;(Cr=os())&&Cr<33;)co();return Dg(e)>2||Dg(Cr)>3?"":" "}function cfe(e,t){for(;--t&&co()&&!(Cr<48||Cr>102||Cr>57&&Cr<65||Cr>70&&Cr<97););return hv(e,bb()+(t<6&&os()==32&&co()==32))}function mT(e){for(;co();)switch(Cr){case e:return Vi;case 34:case 39:e!==34&&e!==39&&mT(Cr);break;case 40:e===41&&mT(e);break;case 92:co();break}return Vi}function ffe(e,t){for(;co()&&e+Cr!==47+10;)if(e+Cr===42+42&&os()===47)break;return"/*"+hv(t,Vi-1)+"*"+n_(e===47?e:co())}function dfe(e){for(;!Dg(os());)co();return hv(e,Vi)}function pfe(e){return y9(_b("",null,null,null,[""],e=v9(e),0,[0],e))}function _b(e,t,n,r,i,o,a,s,l){for(var u=0,f=0,p=a,d=0,v=0,g=0,y=1,x=1,b=1,w=0,S="",C=i,k=o,D=r,P=S;x;)switch(g=w,w=co()){case 40:if(g!=108&&Jr(P,p-1)==58){hT(P+=yn(wb(w),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:P+=wb(w);break;case 9:case 10:case 13:case 32:P+=ufe(g);break;case 92:P+=cfe(bb()-1,7);continue;case 47:switch(os()){case 42:case 47:y0(hfe(ffe(co(),bb()),t,n),l);break;default:P+="/"}break;case 123*y:s[u++]=Qa(P)*b;case 125*y:case 59:case 0:switch(w){case 0:case 125:x=0;case 59+f:v>0&&Qa(P)-p&&y0(v>32?YF(P+";",r,n,p-1):YF(yn(P," ","")+";",r,n,p-2),l);break;case 59:P+=";";default:if(y0(D=QF(P,t,n,u,f,i,s,S,C=[],k=[],p),o),w===123)if(f===0)_b(P,t,D,D,C,o,p,s,k);else switch(d===99&&Jr(P,3)===110?100:d){case 100:case 109:case 115:_b(e,D,D,r&&y0(QF(e,D,D,0,0,i,s,S,i,C=[],p),k),i,k,p,s,r?C:k);break;default:_b(P,D,D,D,[""],k,0,s,k)}}u=f=v=0,y=b=1,S=P="",p=a;break;case 58:p=1+Qa(P),v=g;default:if(y<1){if(w==123)--y;else if(w==125&&y++==0&&lfe()==125)continue}switch(P+=n_(w),w*y){case 38:b=f>0?1:(P+="\f",-1);break;case 44:s[u++]=(Qa(P)-1)*b,b=1;break;case 64:os()===45&&(P+=wb(co())),d=os(),f=p=Qa(S=P+=dfe(bb())),w++;break;case 45:g===45&&Qa(P)==2&&(y=0)}}return o}function QF(e,t,n,r,i,o,a,s,l,u,f){for(var p=i-1,d=i===0?o:[""],v=RA(d),g=0,y=0,x=0;g<r;++g)for(var b=0,w=Ag(e,p+1,p=nfe(y=a[g])),S=e;b<v;++b)(S=m9(y>0?d[b]+" "+w:yn(w,/&\f/g,d[b])))&&(l[x++]=S);return i_(e,t,n,i===0?kA:s,l,u,f)}function hfe(e,t,n){return i_(e,t,n,p9,n_(sfe()),Ag(e,2,-2),0)}function YF(e,t,n,r){return i_(e,t,n,TA,Ag(e,0,r),Ag(e,r+1,-1),r)}function Nd(e,t){for(var n="",r=RA(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function mfe(e,t,n,r){switch(e.type){case tfe:case TA:return e.return=e.return||e.value;case p9:return"";case h9:return e.return=e.value+"{"+Nd(e.children,r)+"}";case kA:e.value=e.props.join(",")}return Qa(n=Nd(e.children,r))?e.return=e.value+"{"+n+"}":""}function gfe(e){var t=RA(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 vfe(e){return function(t){t.root||(t=t.return)&&e(t)}}var yfe=function(t,n,r){for(var i=0,o=0;i=o,o=os(),i===38&&o===12&&(n[r]=1),!Dg(o);)co();return hv(t,Vi)},bfe=function(t,n){var r=-1,i=44;do switch(Dg(i)){case 0:i===38&&os()===12&&(n[r]=1),t[r]+=yfe(Vi-1,n,r);break;case 2:t[r]+=wb(i);break;case 4:if(i===44){t[++r]=os()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=n_(i)}while(i=co());return t},wfe=function(t,n){return y9(bfe(v9(t),n))},XF=new WeakMap,_fe=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&&!XF.get(r))&&!i){XF.set(t,!0);for(var o=[],a=wfe(n,o),s=r.props,l=0,u=0;l<a.length;l++)for(var f=0;f<s.length;f++,u++)t.props[u]=o[l]?a[l].replace(/&\f/g,s[f]):s[f]+" "+a[l]}}},xfe=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function b9(e,t){switch(ife(e,t)){case 5103:return pn+"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 pn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return pn+e+E1+e+ui+e+e;case 6828:case 4268:return pn+e+ui+e+e;case 6165:return pn+e+ui+"flex-"+e+e;case 5187:return pn+e+yn(e,/(\w+).+(:[^]+)/,pn+"box-$1$2"+ui+"flex-$1$2")+e;case 5443:return pn+e+ui+"flex-item-"+yn(e,/flex-|-self/,"")+e;case 4675:return pn+e+ui+"flex-line-pack"+yn(e,/align-content|flex-|-self/,"")+e;case 5548:return pn+e+ui+yn(e,"shrink","negative")+e;case 5292:return pn+e+ui+yn(e,"basis","preferred-size")+e;case 6060:return pn+"box-"+yn(e,"-grow","")+pn+e+ui+yn(e,"grow","positive")+e;case 4554:return pn+yn(e,/([^-])(transform)/g,"$1"+pn+"$2")+e;case 6187:return yn(yn(yn(e,/(zoom-|grab)/,pn+"$1"),/(image-set)/,pn+"$1"),e,"")+e;case 5495:case 3959:return yn(e,/(image-set\([^]*)/,pn+"$1$`$1");case 4968:return yn(yn(e,/(.+:)(flex-)?(.*)/,pn+"box-pack:$3"+ui+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+pn+e+e;case 4095:case 3583:case 4068:case 2532:return yn(e,/(.+)-inline(.+)/,pn+"$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(Qa(e)-1-t>6)switch(Jr(e,t+1)){case 109:if(Jr(e,t+4)!==45)break;case 102:return yn(e,/(.+:)(.+)-([^]+)/,"$1"+pn+"$2-$3$1"+E1+(Jr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~hT(e,"stretch")?b9(yn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Jr(e,t+1)!==115)break;case 6444:switch(Jr(e,Qa(e)-3-(~hT(e,"!important")&&10))){case 107:return yn(e,":",":"+pn)+e;case 101:return yn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+pn+(Jr(e,14)===45?"inline-":"")+"box$3$1"+pn+"$2$3$1"+ui+"$2box$3")+e}break;case 5936:switch(Jr(e,t+11)){case 114:return pn+e+ui+yn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return pn+e+ui+yn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return pn+e+ui+yn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return pn+e+ui+e+e}return e}var Sfe=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case TA:t.return=b9(t.value,t.length);break;case h9:return Nd([qh(t,{value:yn(t.value,"@","@"+pn)})],i);case kA:if(t.length)return afe(t.props,function(o){switch(ofe(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Nd([qh(t,{props:[yn(o,/:(read-\w+)/,":"+E1+"$1")]})],i);case"::placeholder":return Nd([qh(t,{props:[yn(o,/:(plac\w+)/,":"+pn+"input-$1")]}),qh(t,{props:[yn(o,/:(plac\w+)/,":"+E1+"$1")]}),qh(t,{props:[yn(o,/:(plac\w+)/,ui+"input-$1")]})],i)}return""})}},Efe=[Sfe],Cfe=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var x=y.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var i=t.stylisPlugins||Efe,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var x=y.getAttribute("data-emotion").split(" "),b=1;b<x.length;b++)o[x[b]]=!0;s.push(y)});var l,u=[_fe,xfe];{var f,p=[mfe,vfe(function(y){f.insert(y)})],d=gfe(u.concat(i,p)),v=function(x){return Nd(pfe(x),d)};l=function(x,b,w,S){f=w,v(x?x+"{"+b.styles+"}":b.styles),S&&(g.inserted[b.name]=!0)}}var g={key:n,sheet:new efe({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 g.sheet.hydrate(s),g},w9={exports:{}},Cn={};/** @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 Ur=typeof Symbol=="function"&&Symbol.for,OA=Ur?Symbol.for("react.element"):60103,AA=Ur?Symbol.for("react.portal"):60106,o_=Ur?Symbol.for("react.fragment"):60107,a_=Ur?Symbol.for("react.strict_mode"):60108,s_=Ur?Symbol.for("react.profiler"):60114,l_=Ur?Symbol.for("react.provider"):60109,u_=Ur?Symbol.for("react.context"):60110,DA=Ur?Symbol.for("react.async_mode"):60111,c_=Ur?Symbol.for("react.concurrent_mode"):60111,f_=Ur?Symbol.for("react.forward_ref"):60112,d_=Ur?Symbol.for("react.suspense"):60113,kfe=Ur?Symbol.for("react.suspense_list"):60120,p_=Ur?Symbol.for("react.memo"):60115,h_=Ur?Symbol.for("react.lazy"):60116,Tfe=Ur?Symbol.for("react.block"):60121,Rfe=Ur?Symbol.for("react.fundamental"):60117,Ofe=Ur?Symbol.for("react.responder"):60118,Afe=Ur?Symbol.for("react.scope"):60119;function bo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case OA:switch(e=e.type,e){case DA:case c_:case o_:case s_:case a_:case d_:return e;default:switch(e=e&&e.$$typeof,e){case u_:case f_:case h_:case p_:case l_:return e;default:return t}}case AA:return t}}}function _9(e){return bo(e)===c_}Cn.AsyncMode=DA;Cn.ConcurrentMode=c_;Cn.ContextConsumer=u_;Cn.ContextProvider=l_;Cn.Element=OA;Cn.ForwardRef=f_;Cn.Fragment=o_;Cn.Lazy=h_;Cn.Memo=p_;Cn.Portal=AA;Cn.Profiler=s_;Cn.StrictMode=a_;Cn.Suspense=d_;Cn.isAsyncMode=function(e){return _9(e)||bo(e)===DA};Cn.isConcurrentMode=_9;Cn.isContextConsumer=function(e){return bo(e)===u_};Cn.isContextProvider=function(e){return bo(e)===l_};Cn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===OA};Cn.isForwardRef=function(e){return bo(e)===f_};Cn.isFragment=function(e){return bo(e)===o_};Cn.isLazy=function(e){return bo(e)===h_};Cn.isMemo=function(e){return bo(e)===p_};Cn.isPortal=function(e){return bo(e)===AA};Cn.isProfiler=function(e){return bo(e)===s_};Cn.isStrictMode=function(e){return bo(e)===a_};Cn.isSuspense=function(e){return bo(e)===d_};Cn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===o_||e===c_||e===s_||e===a_||e===d_||e===kfe||typeof e=="object"&&e!==null&&(e.$$typeof===h_||e.$$typeof===p_||e.$$typeof===l_||e.$$typeof===u_||e.$$typeof===f_||e.$$typeof===Rfe||e.$$typeof===Ofe||e.$$typeof===Afe||e.$$typeof===Tfe)};Cn.typeOf=bo;w9.exports=Cn;var Dfe=w9.exports,x9=Dfe,Ife={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Pfe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},S9={};S9[x9.ForwardRef]=Ife;S9[x9.Memo]=Pfe;var $fe=!0;function Ffe(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var E9=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||$fe===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},C9=function(t,n,r){E9(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 Lfe(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 Mfe={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},Nfe=/[A-Z]|^ms/g,Bfe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,k9=function(t){return t.charCodeAt(1)===45},JF=function(t){return t!=null&&typeof t!="boolean"},_E=d9(function(e){return k9(e)?e:e.replace(Nfe,"-$&").toLowerCase()}),ZF=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Bfe,function(r,i,o){return Ya={name:i,styles:o,next:Ya},i})}return Mfe[t]!==1&&!k9(t)&&typeof n=="number"&&n!==0?n+"px":n};function Ig(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 Ya={name:n.name,styles:n.styles,next:Ya},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Ya={name:r.name,styles:r.styles,next:Ya},r=r.next;var i=n.styles+";";return i}return jfe(e,t,n)}case"function":{if(e!==void 0){var o=Ya,a=n(e);return Ya=o,Ig(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function jfe(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Ig(e,t,n[i])+";";else for(var o in n){var a=n[o];if(typeof a!="object")t!=null&&t[a]!==void 0?r+=o+"{"+t[a]+"}":JF(a)&&(r+=_E(o)+":"+ZF(o,a)+";");else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var s=0;s<a.length;s++)JF(a[s])&&(r+=_E(o)+":"+ZF(o,a[s])+";");else{var l=Ig(e,t,a);switch(o){case"animation":case"animationName":{r+=_E(o)+":"+l+";";break}default:r+=o+"{"+l+"}"}}}return r}var eL=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Ya,IA=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="";Ya=void 0;var a=t[0];a==null||a.raw===void 0?(i=!1,o+=Ig(r,n,a)):o+=a[0];for(var s=1;s<t.length;s++)o+=Ig(r,n,t[s]),i&&(o+=a[s]);eL.lastIndex=0;for(var l="",u;(u=eL.exec(o))!==null;)l+="-"+u[1];var f=Lfe(o)+l;return{name:f,styles:o,next:Ya}},zfe=function(t){return t()},T9=mu["useInsertionEffect"]?mu["useInsertionEffect"]:!1,Ufe=T9||zfe,tL=T9||R.useLayoutEffect,R9=R.createContext(typeof HTMLElement<"u"?Cfe({key:"css"}):null);R9.Provider;var O9=function(t){return R.forwardRef(function(n,r){var i=R.useContext(R9);return t(n,i,r)})},PA=R.createContext({}),Vfe=O9(function(e,t){var n=e.styles,r=IA([n],void 0,R.useContext(PA)),i=R.useRef();return tL(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]),tL(function(){var o=i.current,a=o[0],s=o[1];if(s){o[1]=!1;return}if(r.next!==void 0&&C9(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 $A(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return IA(t)}var mv=function(){var t=$A.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_"}}},Wfe=Xce,Kfe=function(t){return t!=="theme"},nL=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Wfe:Kfe},rL=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},Hfe=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return E9(n,r,i),Ufe(function(){return C9(n,r,i)}),null},qfe=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=rL(t,n,r),l=s||nL(i),u=!l("as");return function(){var f=arguments,p=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&p.push("label:"+o+";"),f[0]==null||f[0].raw===void 0)p.push.apply(p,f);else{p.push(f[0][0]);for(var d=f.length,v=1;v<d;v++)p.push(f[v],f[0][v])}var g=O9(function(y,x,b){var w=u&&y.as||i,S="",C=[],k=y;if(y.theme==null){k={};for(var D in y)k[D]=y[D];k.theme=R.useContext(PA)}typeof y.className=="string"?S=Ffe(x.registered,C,y.className):y.className!=null&&(S=y.className+" ");var P=IA(p.concat(C),x.registered,k);S+=x.key+"-"+P.name,a!==void 0&&(S+=" "+a);var B=u&&s===void 0?nL(w):l,V={};for(var U in y)u&&U==="as"||B(U)&&(V[U]=y[U]);return V.className=S,V.ref=b,R.createElement(R.Fragment,null,R.createElement(Hfe,{cache:x,serialized:P,isStringTag:typeof w=="string"}),R.createElement(w,V))});return g.displayName=o!==void 0?o:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=i,g.__emotion_styles=p,g.__emotion_forwardProp=s,Object.defineProperty(g,"toString",{value:function(){return"."+a}}),g.withComponent=function(y,x){return e(y,z({},n,x,{shouldForwardProp:rL(g,x,!0)})).apply(void 0,p)},g}};const Gfe=qfe;var Qfe=["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"],gT=Gfe.bind();Qfe.forEach(function(e){gT[e]=gT(e)});const Yfe=gT;function Xfe(e){return e==null||Object.keys(e).length===0}function Jfe(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?i=>t(Xfe(i)?n:i):t;return T.jsx(Vfe,{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 A9(e,t){return Yfe(e,t)}const Zfe=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};function Ym(e,t){return t?ji(e,t,{clone:!1}):e}const FA={xs:0,sm:600,md:900,lg:1200,xl:1536},iL={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${FA[e]}px)`};function Oa(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||iL;return t.reduce((a,s,l)=>(a[o.up(o.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const o=r.breakpoints||iL;return Object.keys(t).reduce((a,s)=>{if(Object.keys(o.values||FA).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 D9(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function I9(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function ede(e,...t){const n=D9(e),r=[n,...t].reduce((i,o)=>ji(i,o),{});return I9(Object.keys(n),r)}function tde(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 xE({values:e,breakpoints:t,base:n}){const r=n||tde(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 fp(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 C1(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=fp(e,n)||r,t&&(i=t(i,r,e)),i}function wn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,u=fp(l,r)||{};return Oa(a,s,p=>{let d=C1(u,i,p);return p===d&&typeof p=="string"&&(d=C1(u,i,`${t}${p==="default"?"":ze(p)}`,p)),n===!1?d:{[n]:d}})};return o.propTypes={},o.filterProps=[t],o}function m_(...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]?Ym(i,t[o](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function nde(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const rde={m:"margin",p:"padding"},ide={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},oL={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ode=nde(e=>{if(e.length>2)if(oL[e])e=oL[e];else return[e];const[t,n]=e.split(""),r=rde[t],i=ide[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),LA=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],MA=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...LA,...MA];function gv(e,t,n,r){var i;const o=(i=fp(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 NA(e){return gv(e,"spacing",8)}function Rp(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 ade(e,t){return n=>e.reduce((r,i)=>(r[i]=Rp(t,n),r),{})}function sde(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=ode(n),o=ade(i,r),a=e[n];return Oa(e,a,o)}function P9(e,t){const n=NA(e.theme);return Object.keys(e).map(r=>sde(e,t,r,n)).reduce(Ym,{})}function sr(e){return P9(e,LA)}sr.propTypes={};sr.filterProps=LA;function lr(e){return P9(e,MA)}lr.propTypes={};lr.filterProps=MA;function es(e){return typeof e!="number"?e:`${e}px solid`}const lde=wn({prop:"border",themeKey:"borders",transform:es}),ude=wn({prop:"borderTop",themeKey:"borders",transform:es}),cde=wn({prop:"borderRight",themeKey:"borders",transform:es}),fde=wn({prop:"borderBottom",themeKey:"borders",transform:es}),dde=wn({prop:"borderLeft",themeKey:"borders",transform:es}),pde=wn({prop:"borderColor",themeKey:"palette"}),hde=wn({prop:"borderTopColor",themeKey:"palette"}),mde=wn({prop:"borderRightColor",themeKey:"palette"}),gde=wn({prop:"borderBottomColor",themeKey:"palette"}),vde=wn({prop:"borderLeftColor",themeKey:"palette"}),g_=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=gv(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Rp(t,r)});return Oa(e,e.borderRadius,n)}return null};g_.propTypes={};g_.filterProps=["borderRadius"];m_(lde,ude,cde,fde,dde,pde,hde,mde,gde,vde,g_);const v_=e=>{if(e.gap!==void 0&&e.gap!==null){const t=gv(e.theme,"spacing",8),n=r=>({gap:Rp(t,r)});return Oa(e,e.gap,n)}return null};v_.propTypes={};v_.filterProps=["gap"];const y_=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=gv(e.theme,"spacing",8),n=r=>({columnGap:Rp(t,r)});return Oa(e,e.columnGap,n)}return null};y_.propTypes={};y_.filterProps=["columnGap"];const b_=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=gv(e.theme,"spacing",8),n=r=>({rowGap:Rp(t,r)});return Oa(e,e.rowGap,n)}return null};b_.propTypes={};b_.filterProps=["rowGap"];const yde=wn({prop:"gridColumn"}),bde=wn({prop:"gridRow"}),wde=wn({prop:"gridAutoFlow"}),_de=wn({prop:"gridAutoColumns"}),xde=wn({prop:"gridAutoRows"}),Sde=wn({prop:"gridTemplateColumns"}),Ede=wn({prop:"gridTemplateRows"}),Cde=wn({prop:"gridTemplateAreas"}),kde=wn({prop:"gridArea"});m_(v_,y_,b_,yde,bde,wde,_de,xde,Sde,Ede,Cde,kde);function Bd(e,t){return t==="grey"?t:e}const Tde=wn({prop:"color",themeKey:"palette",transform:Bd}),Rde=wn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Bd}),Ode=wn({prop:"backgroundColor",themeKey:"palette",transform:Bd});m_(Tde,Rde,Ode);function so(e){return e<=1&&e!==0?`${e*100}%`:e}const Ade=wn({prop:"width",transform:so}),BA=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])||FA[n]||so(n)}};return Oa(e,e.maxWidth,t)}return null};BA.filterProps=["maxWidth"];const Dde=wn({prop:"minWidth",transform:so}),Ide=wn({prop:"height",transform:so}),Pde=wn({prop:"maxHeight",transform:so}),$de=wn({prop:"minHeight",transform:so});wn({prop:"size",cssProperty:"width",transform:so});wn({prop:"size",cssProperty:"height",transform:so});const Fde=wn({prop:"boxSizing"});m_(Ade,BA,Dde,Ide,Pde,$de,Fde);const Lde={border:{themeKey:"borders",transform:es},borderTop:{themeKey:"borders",transform:es},borderRight:{themeKey:"borders",transform:es},borderBottom:{themeKey:"borders",transform:es},borderLeft:{themeKey:"borders",transform:es},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:g_},color:{themeKey:"palette",transform:Bd},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Bd},backgroundColor:{themeKey:"palette",transform:Bd},p:{style:lr},pt:{style:lr},pr:{style:lr},pb:{style:lr},pl:{style:lr},px:{style:lr},py:{style:lr},padding:{style:lr},paddingTop:{style:lr},paddingRight:{style:lr},paddingBottom:{style:lr},paddingLeft:{style:lr},paddingX:{style:lr},paddingY:{style:lr},paddingInline:{style:lr},paddingInlineStart:{style:lr},paddingInlineEnd:{style:lr},paddingBlock:{style:lr},paddingBlockStart:{style:lr},paddingBlockEnd:{style:lr},m:{style:sr},mt:{style:sr},mr:{style:sr},mb:{style:sr},ml:{style:sr},mx:{style:sr},my:{style:sr},margin:{style:sr},marginTop:{style:sr},marginRight:{style:sr},marginBottom:{style:sr},marginLeft:{style:sr},marginX:{style:sr},marginY:{style:sr},marginInline:{style:sr},marginInlineStart:{style:sr},marginInlineEnd:{style:sr},marginBlock:{style:sr},marginBlockStart:{style:sr},marginBlockEnd:{style:sr},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:v_},rowGap:{style:b_},columnGap:{style:y_},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:so},maxWidth:{style:BA},minWidth:{transform:so},height:{transform:so},maxHeight:{transform:so},minHeight:{transform:so},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},w_=Lde;function Mde(...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 Nde(e,t){return typeof e=="function"?e(t):e}function Bde(){function e(n,r,i,o){const a={[n]:r,theme:i},s=o[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:f,style:p}=s;if(r==null)return null;const d=fp(i,u)||{};return p?p(a):Oa(a,r,g=>{let y=C1(d,f,g);return g===y&&typeof g=="string"&&(y=C1(d,f,`${n}${g==="default"?"":ze(g)}`,g)),l===!1?y:{[l]:y}})}function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const a=(r=o.unstable_sxConfig)!=null?r:w_;function s(l){let u=l;if(typeof l=="function")u=l(o);else if(typeof l!="object")return l;if(!u)return null;const f=D9(o.breakpoints),p=Object.keys(f);let d=f;return Object.keys(u).forEach(v=>{const g=Nde(u[v],o);if(g!=null)if(typeof g=="object")if(a[v])d=Ym(d,e(v,g,o,a));else{const y=Oa({theme:o},g,x=>({[v]:x}));Mde(y,g)?d[v]=t({sx:g,theme:o}):d=Ym(d,y)}else d=Ym(d,e(v,g,o,a))}),I9(p,d)}return Array.isArray(i)?i.map(s):s(i)}return t}const $9=Bde();$9.filterProps=["sx"];const __=$9,jde=["sx"],zde=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:w_;return Object.keys(e).forEach(o=>{i[o]?r.systemProps[o]=e[o]:r.otherProps[o]=e[o]}),r};function jA(e){const{sx:t}=e,n=rt(e,jde),{systemProps:r,otherProps:i}=zde(n);let o;return Array.isArray(t)?o=[r,...t]:typeof t=="function"?o=(...a)=>{const s=t(...a);return mc(s)?z({},r,s):r}:o=z({},r,t),z({},i,{sx:o})}function F9(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=F9(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function nt(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=F9(e))&&(r&&(r+=" "),r+=t);return r}const Ude=Object.freeze(Object.defineProperty({__proto__:null,clsx:nt,default:nt},Symbol.toStringTag,{value:"Module"})),Vde=["values","unit","step"],Wde=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 Kde(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=rt(e,Vde),o=Wde(t),a=Object.keys(o);function s(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n})`}function l(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-r/100}${n})`}function u(d,v){const g=a.indexOf(v);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:v)-r/100}${n})`}function f(d){return a.indexOf(d)+1<a.length?u(d,a[a.indexOf(d)+1]):s(d)}function p(d){const v=a.indexOf(d);return v===0?s(a[1]):v===a.length-1?l(a[v]):u(d,a[a.indexOf(d)+1]).replace("@media","@media not all and")}return z({keys:a,values:o,up:s,down:l,between:u,only:f,not:p,unit:n},i)}const Hde={borderRadius:4},qde=Hde;function Gde(e=8){if(e.mui)return e;const t=NA({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 Qde=["breakpoints","palette","spacing","shape"];function zA(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,a=rt(e,Qde),s=Kde(n),l=Gde(i);let u=ji({breakpoints:s,direction:"ltr",components:{},palette:z({mode:"light"},r),spacing:l,shape:z({},qde,o)},a);return u=t.reduce((f,p)=>ji(f,p),u),u.unstable_sxConfig=z({},w_,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(p){return __({sx:p,theme:this})},u}const Yde=R.createContext(null),L9=Yde;function M9(){return R.useContext(L9)}const Xde=typeof Symbol=="function"&&Symbol.for,Jde=Xde?Symbol.for("mui.nested"):"__THEME_NESTED__";function Zde(e,t){return typeof t=="function"?t(e):z({},e,t)}function epe(e){const{children:t,theme:n}=e,r=M9(),i=R.useMemo(()=>{const o=r===null?n:Zde(r,n);return o!=null&&(o[Jde]=r!==null),o},[n,r]);return T.jsx(L9.Provider,{value:i,children:t})}function tpe(e){return Object.keys(e).length===0}function UA(e=null){const t=M9();return!t||tpe(t)?e:t}const npe=zA();function x_(e=npe){return UA(e)}const rpe=["className","component"];function ipe(e={}){const{defaultTheme:t,defaultClassName:n="MuiBox-root",generateClassName:r}=e,i=A9("div",{shouldForwardProp:a=>a!=="theme"&&a!=="sx"&&a!=="as"})(__);return R.forwardRef(function(s,l){const u=x_(t),f=jA(s),{className:p,component:d="div"}=f,v=rt(f,rpe);return T.jsx(i,z({as:d,ref:l,className:nt(p,r?r(n):n),theme:u},v))})}const ope=["variant"];function aL(e){return e.length===0}function N9(e){const{variant:t}=e,n=rt(e,ope);let r=t||"";return Object.keys(n).sort().forEach(i=>{i==="color"?r+=aL(r)?e[i]:ze(e[i]):r+=`${aL(r)?i:ze(i)}${ze(e[i].toString())}`}),r}const ape=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],spe=["theme"],lpe=["theme"];function Gh(e){return Object.keys(e).length===0}function upe(e){return typeof e=="string"&&e.charCodeAt(0)>96}const cpe=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,fpe=(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=N9(i.props);r[o]=i.style}),r},dpe=(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(u=>{let f=!0;Object.keys(u.props).forEach(p=>{a[p]!==u.props[p]&&e[p]!==u.props[p]&&(f=!1)}),f&&s.push(t[N9(u.props)])}),s};function Xm(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const ppe=zA();function hpe(e={}){const{defaultTheme:t=ppe,rootShouldForwardProp:n=Xm,slotShouldForwardProp:r=Xm}=e,i=o=>{const a=Gh(o.theme)?t:o.theme;return __(z({},o,{theme:a}))};return i.__mui_systemSx=!0,(o,a={})=>{Zfe(o,S=>S.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:s,slot:l,skipVariantsResolver:u,skipSx:f,overridesResolver:p}=a,d=rt(a,ape),v=u!==void 0?u:l&&l!=="Root"||!1,g=f||!1;let y,x=Xm;l==="Root"?x=n:l?x=r:upe(o)&&(x=void 0);const b=A9(o,z({shouldForwardProp:x,label:y},d)),w=(S,...C)=>{const k=C?C.map(V=>typeof V=="function"&&V.__emotion_real!==V?U=>{let{theme:W}=U,se=rt(U,spe);return V(z({theme:Gh(W)?t:W},se))}:V):[];let D=S;s&&p&&k.push(V=>{const U=Gh(V.theme)?t:V.theme,W=cpe(s,U);if(W){const se={};return Object.entries(W).forEach(([ne,re])=>{se[ne]=typeof re=="function"?re(z({},V,{theme:U})):re}),p(V,se)}return null}),s&&!v&&k.push(V=>{const U=Gh(V.theme)?t:V.theme;return dpe(V,fpe(s,U),U,s)}),g||k.push(i);const P=k.length-C.length;if(Array.isArray(S)&&P>0){const V=new Array(P).fill("");D=[...S,...V],D.raw=[...S.raw,...V]}else typeof S=="function"&&S.__emotion_real!==S&&(D=V=>{let{theme:U}=V,W=rt(V,lpe);return S(z({theme:Gh(U)?t:U},W))});return b(D,...k)};return b.withConfig&&(w.withConfig=b.withConfig),w}}function B9(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:EA(t.components[n].defaultProps,r)}function mpe({props:e,name:t,defaultTheme:n}){const r=x_(n);return B9({theme:r,name:t,props:e})}function VA(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function gpe(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 jc(e){if(e.type)return e;if(e.charAt(0)==="#")return jc(gpe(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(yu(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(yu(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}function S_(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 vpe(e){e=jc(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(u,f=(u+n/30)%12)=>i-o*Math.max(Math.min(f-3,9-f,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),S_({type:s,values:l})}function sL(e){e=jc(e);let t=e.type==="hsl"||e.type==="hsla"?jc(vpe(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 ype(e,t){const n=sL(e),r=sL(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function on(e,t){return e=jc(e),t=VA(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,S_(e)}function Pg(e,t){if(e=jc(e),t=VA(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 S_(e)}function $g(e,t){if(e=jc(e),t=VA(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 S_(e)}const bpe={};function wpe(e){const t=x_();return T.jsx(PA.Provider,{value:typeof t=="object"?t:bpe,children:e.children})}function j9(e){const{children:t,theme:n}=e;return T.jsx(epe,{theme:n,children:T.jsx(wpe,{children:t})})}function _pe(e,t){return z({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const xpe=["mode","contrastThreshold","tonalOffset"],lL={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:Og.white,default:Og.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}},SE={text:{primary:Og.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:Og.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 uL(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=$g(e.main,i):t==="dark"&&(e.dark=Pg(e.main,o)))}function Spe(e="light"){return e==="dark"?{main:Kf[200],light:Kf[50],dark:Kf[400]}:{main:Kf[700],light:Kf[400],dark:Kf[800]}}function Epe(e="light"){return e==="dark"?{main:Wf[200],light:Wf[50],dark:Wf[400]}:{main:Wf[500],light:Wf[300],dark:Wf[700]}}function Cpe(e="light"){return e==="dark"?{main:Vf[500],light:Vf[300],dark:Vf[700]}:{main:Vf[700],light:Vf[400],dark:Vf[800]}}function kpe(e="light"){return e==="dark"?{main:Hf[400],light:Hf[300],dark:Hf[700]}:{main:Hf[700],light:Hf[500],dark:Hf[900]}}function Tpe(e="light"){return e==="dark"?{main:qf[400],light:qf[300],dark:qf[700]}:{main:qf[800],light:qf[500],dark:qf[900]}}function Rpe(e="light"){return e==="dark"?{main:Hh[400],light:Hh[300],dark:Hh[700]}:{main:"#ed6c02",light:Hh[500],dark:Hh[900]}}function Ope(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=rt(e,xpe),o=e.primary||Spe(t),a=e.secondary||Epe(t),s=e.error||Cpe(t),l=e.info||kpe(t),u=e.success||Tpe(t),f=e.warning||Rpe(t);function p(y){return ype(y,SE.text.primary)>=n?SE.text.primary:lL.text.primary}const d=({color:y,name:x,mainShade:b=500,lightShade:w=300,darkShade:S=700})=>{if(y=z({},y),!y.main&&y[b]&&(y.main=y[b]),!y.hasOwnProperty("main"))throw new Error(yu(11,x?` (${x})`:"",b));if(typeof y.main!="string")throw new Error(yu(12,x?` (${x})`:"",JSON.stringify(y.main)));return uL(y,"light",w,r),uL(y,"dark",S,r),y.contrastText||(y.contrastText=p(y.main)),y},v={dark:SE,light:lL};return ji(z({common:z({},Og),mode:t,primary:d({color:o,name:"primary"}),secondary:d({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:s,name:"error"}),warning:d({color:f,name:"warning"}),info:d({color:l,name:"info"}),success:d({color:u,name:"success"}),grey:Cce,contrastThreshold:n,getContrastText:p,augmentColor:d,tonalOffset:r},v[t]),i)}const Ape=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Dpe(e){return Math.round(e*1e5)/1e5}const cL={textTransform:"uppercase"},fL='"Roboto", "Helvetica", "Arial", sans-serif';function Ipe(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=fL,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:f,pxToRem:p}=n,d=rt(n,Ape),v=i/14,g=p||(b=>`${b/u*v}rem`),y=(b,w,S,C,k)=>z({fontFamily:r,fontWeight:b,fontSize:g(w),lineHeight:S},r===fL?{letterSpacing:`${Dpe(C/w)}em`}:{},k,f),x={h1:y(o,96,1.167,-1.5),h2:y(o,60,1.2,-.5),h3:y(a,48,1.167,0),h4:y(a,34,1.235,.25),h5:y(a,24,1.334,0),h6:y(s,20,1.6,.15),subtitle1:y(a,16,1.75,.15),subtitle2:y(s,14,1.57,.1),body1:y(a,16,1.5,.15),body2:y(a,14,1.43,.15),button:y(s,14,1.75,.4,cL),caption:y(a,12,1.66,.4),overline:y(a,12,2.66,1,cL)};return ji(z({htmlFontSize:u,pxToRem:g,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},x),d,{clone:!1})}const Ppe=.2,$pe=.14,Fpe=.12;function Hn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Ppe})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${$pe})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Fpe})`].join(",")}const Lpe=["none",Hn(0,2,1,-1,0,1,1,0,0,1,3,0),Hn(0,3,1,-2,0,2,2,0,0,1,5,0),Hn(0,3,3,-2,0,3,4,0,0,1,8,0),Hn(0,2,4,-1,0,4,5,0,0,1,10,0),Hn(0,3,5,-1,0,5,8,0,0,1,14,0),Hn(0,3,5,-1,0,6,10,0,0,1,18,0),Hn(0,4,5,-2,0,7,10,1,0,2,16,1),Hn(0,5,5,-3,0,8,10,1,0,3,14,2),Hn(0,5,6,-3,0,9,12,1,0,3,16,2),Hn(0,6,6,-3,0,10,14,1,0,4,18,3),Hn(0,6,7,-4,0,11,15,1,0,4,20,3),Hn(0,7,8,-4,0,12,17,2,0,5,22,4),Hn(0,7,8,-4,0,13,19,2,0,5,24,4),Hn(0,7,9,-4,0,14,21,2,0,5,26,4),Hn(0,8,9,-5,0,15,22,2,0,6,28,5),Hn(0,8,10,-5,0,16,24,2,0,6,30,5),Hn(0,8,11,-5,0,17,26,2,0,6,32,5),Hn(0,9,11,-5,0,18,28,2,0,7,34,6),Hn(0,9,12,-6,0,19,29,2,0,7,36,6),Hn(0,10,13,-6,0,20,31,3,0,8,38,7),Hn(0,10,13,-6,0,21,33,3,0,8,40,7),Hn(0,10,14,-6,0,22,35,3,0,8,42,7),Hn(0,11,14,-7,0,23,36,3,0,9,44,8),Hn(0,11,15,-7,0,24,38,3,0,9,46,8)],Mpe=Lpe,Npe=["duration","easing","delay"],Bpe={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)"},jpe={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function dL(e){return`${Math.round(e)}ms`}function zpe(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Upe(e){const t=z({},Bpe,e.easing),n=z({},jpe,e.duration);return z({getAutoHeightDuration:zpe,create:(i=["all"],o={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0}=o;return rt(o,Npe),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof a=="string"?a:dL(a)} ${s} ${typeof l=="string"?l:dL(l)}`).join(",")}},e,{easing:t,duration:n})}const Vpe={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Wpe=Vpe,Kpe=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Op(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,a=rt(e,Kpe);if(e.vars)throw new Error(yu(18));const s=Ope(r),l=zA(e);let u=ji(l,{mixins:_pe(l.breakpoints,n),palette:s,shadows:Mpe.slice(),typography:Ipe(s,o),transitions:Upe(i),zIndex:z({},Wpe)});return u=ji(u,a),u=t.reduce((f,p)=>ji(f,p),u),u.unstable_sxConfig=z({},w_,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(p){return __({sx:p,theme:this})},u}const Hpe=Op(),E_=Hpe;function Da(){return x_(E_)}function Ot({props:e,name:t}){return mpe({props:e,name:t,defaultTheme:E_})}const Ia=e=>Xm(e)&&e!=="classes",WA=Xm,qpe=hpe({defaultTheme:E_,rootShouldForwardProp:Ia}),Ve=qpe,Gpe=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},pL=Gpe;function as(e){return typeof e=="string"}function Om(e,t,n){return e===void 0||as(e)?t:z({},t,{ownerState:z({},t.ownerState,n)})}function Qpe(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 vT(e,t){return typeof e=="function"?e(t):e}function hL(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 Ype(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const v=nt(i==null?void 0:i.className,r==null?void 0:r.className,o,n==null?void 0:n.className),g=z({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),y=z({},n,i,r);return v.length>0&&(y.className=v),Object.keys(g).length>0&&(y.style=g),{props:y,internalRef:void 0}}const a=Qpe(z({},i,r)),s=hL(r),l=hL(i),u=t(a),f=nt(u==null?void 0:u.className,n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),p=z({},u==null?void 0:u.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),d=z({},u,n,l,s);return f.length>0&&(d.className=f),Object.keys(p).length>0&&(d.style=p),{props:d,internalRef:u.ref}}const Xpe=["elementType","externalSlotProps","ownerState"];function wa(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i}=e,o=rt(e,Xpe),a=vT(r,i),{props:s,internalRef:l}=Ype(z({},o,{externalSlotProps:a})),u=Un(l,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return Om(n,z({},s,{ref:u}),i)}function mL(e){return e.substring(2).toLowerCase()}function Jpe(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function Zpe(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:i,touchEvent:o="onTouchEnd"}=e,a=R.useRef(!1),s=R.useRef(null),l=R.useRef(!1),u=R.useRef(!1);R.useEffect(()=>(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const f=Un(t.ref,s),p=Uo(g=>{const y=u.current;u.current=!1;const x=nr(s.current);if(!l.current||!s.current||"clientX"in g&&Jpe(g,x))return;if(a.current){a.current=!1;return}let b;g.composedPath?b=g.composedPath().indexOf(s.current)>-1:b=!x.documentElement.contains(g.target)||s.current.contains(g.target),!b&&(n||!y)&&i(g)}),d=g=>y=>{u.current=!0;const x=t.props[g];x&&x(y)},v={ref:f};return o!==!1&&(v[o]=d(o)),R.useEffect(()=>{if(o!==!1){const g=mL(o),y=nr(s.current),x=()=>{a.current=!0};return y.addEventListener(g,p),y.addEventListener("touchmove",x),()=>{y.removeEventListener(g,p),y.removeEventListener("touchmove",x)}}},[p,o]),r!==!1&&(v[r]=d(r)),R.useEffect(()=>{if(r!==!1){const g=mL(r),y=nr(s.current);return y.addEventListener(g,p),()=>{y.removeEventListener(g,p)}}},[p,r]),T.jsx(R.Fragment,{children:R.cloneElement(t,v)})}const ehe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function the(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 nhe(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 rhe(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||nhe(e))}function ihe(e){const t=[],n=[];return Array.from(e.querySelectorAll(ehe)).forEach((r,i)=>{const o=the(r);o===-1||!rhe(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 ohe(){return!0}function ahe(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=ihe,isEnabled:a=ohe,open:s}=e,l=R.useRef(!1),u=R.useRef(null),f=R.useRef(null),p=R.useRef(null),d=R.useRef(null),v=R.useRef(!1),g=R.useRef(null),y=Un(t.ref,g),x=R.useRef(null);R.useEffect(()=>{!s||!g.current||(v.current=!n)},[n,s]),R.useEffect(()=>{if(!s||!g.current)return;const S=nr(g.current);return g.current.contains(S.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),v.current&&g.current.focus()),()=>{i||(p.current&&p.current.focus&&(l.current=!0,p.current.focus()),p.current=null)}},[s]),R.useEffect(()=>{if(!s||!g.current)return;const S=nr(g.current),C=P=>{const{current:B}=g;if(B!==null){if(!S.hasFocus()||r||!a()||l.current){l.current=!1;return}if(!B.contains(S.activeElement)){if(P&&d.current!==P.target||S.activeElement!==d.current)d.current=null;else if(d.current!==null)return;if(!v.current)return;let W=[];if((S.activeElement===u.current||S.activeElement===f.current)&&(W=o(g.current)),W.length>0){var V,U;const se=!!((V=x.current)!=null&&V.shiftKey&&((U=x.current)==null?void 0:U.key)==="Tab"),ne=W[0],re=W[W.length-1];typeof ne!="string"&&typeof re!="string"&&(se?re.focus():ne.focus())}else B.focus()}}},k=P=>{x.current=P,!(r||!a()||P.key!=="Tab")&&S.activeElement===g.current&&P.shiftKey&&(l.current=!0,f.current&&f.current.focus())};S.addEventListener("focusin",C),S.addEventListener("keydown",k,!0);const D=setInterval(()=>{S.activeElement&&S.activeElement.tagName==="BODY"&&C(null)},50);return()=>{clearInterval(D),S.removeEventListener("focusin",C),S.removeEventListener("keydown",k,!0)}},[n,r,i,a,s,o]);const b=S=>{p.current===null&&(p.current=S.relatedTarget),v.current=!0,d.current=S.target;const C=t.props.onFocus;C&&C(S)},w=S=>{p.current===null&&(p.current=S.relatedTarget),v.current=!0};return T.jsxs(R.Fragment,{children:[T.jsx("div",{tabIndex:s?0:-1,onFocus:w,ref:u,"data-testid":"sentinelStart"}),R.cloneElement(t,{ref:y,onFocus:b}),T.jsx("div",{tabIndex:s?0:-1,onFocus:w,ref:f,"data-testid":"sentinelEnd"})]})}var zi="top",Qo="bottom",Yo="right",Ui="left",KA="auto",vv=[zi,Qo,Yo,Ui],dp="start",Fg="end",she="clippingParents",z9="viewport",Qh="popper",lhe="reference",gL=vv.reduce(function(e,t){return e.concat([t+"-"+dp,t+"-"+Fg])},[]),U9=[].concat(vv,[KA]).reduce(function(e,t){return e.concat([t,t+"-"+dp,t+"-"+Fg])},[]),uhe="beforeRead",che="read",fhe="afterRead",dhe="beforeMain",phe="main",hhe="afterMain",mhe="beforeWrite",ghe="write",vhe="afterWrite",yhe=[uhe,che,fhe,dhe,phe,hhe,mhe,ghe,vhe];function cs(e){return e?(e.nodeName||"").toLowerCase():null}function Zo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function zc(e){var t=Zo(e).Element;return e instanceof t||e instanceof Element}function Wo(e){var t=Zo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function HA(e){if(typeof ShadowRoot>"u")return!1;var t=Zo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function bhe(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];!Wo(o)||!cs(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 whe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,u){return l[u]="",l},{});!Wo(i)||!cs(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const _he={name:"applyStyles",enabled:!0,phase:"write",fn:bhe,effect:whe,requires:["computeStyles"]};function ss(e){return e.split("-")[0]}var Rc=Math.max,k1=Math.min,pp=Math.round;function yT(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function V9(){return!/^((?!chrome|android).)*safari/i.test(yT())}function hp(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Wo(e)&&(i=e.offsetWidth>0&&pp(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&pp(r.height)/e.offsetHeight||1);var a=zc(e)?Zo(e):window,s=a.visualViewport,l=!V9()&&n,u=(r.left+(l&&s?s.offsetLeft:0))/i,f=(r.top+(l&&s?s.offsetTop:0))/o,p=r.width/i,d=r.height/o;return{width:p,height:d,top:f,right:u+p,bottom:f+d,left:u,x:u,y:f}}function qA(e){var t=hp(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 W9(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&HA(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ol(e){return Zo(e).getComputedStyle(e)}function xhe(e){return["table","td","th"].indexOf(cs(e))>=0}function Iu(e){return((zc(e)?e.ownerDocument:e.document)||window.document).documentElement}function C_(e){return cs(e)==="html"?e:e.assignedSlot||e.parentNode||(HA(e)?e.host:null)||Iu(e)}function vL(e){return!Wo(e)||ol(e).position==="fixed"?null:e.offsetParent}function She(e){var t=/firefox/i.test(yT()),n=/Trident/i.test(yT());if(n&&Wo(e)){var r=ol(e);if(r.position==="fixed")return null}var i=C_(e);for(HA(i)&&(i=i.host);Wo(i)&&["html","body"].indexOf(cs(i))<0;){var o=ol(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 yv(e){for(var t=Zo(e),n=vL(e);n&&xhe(n)&&ol(n).position==="static";)n=vL(n);return n&&(cs(n)==="html"||cs(n)==="body"&&ol(n).position==="static")?t:n||She(e)||t}function GA(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Jm(e,t,n){return Rc(e,k1(t,n))}function Ehe(e,t,n){var r=Jm(e,t,n);return r>n?n:r}function K9(){return{top:0,right:0,bottom:0,left:0}}function H9(e){return Object.assign({},K9(),e)}function q9(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Che=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,H9(typeof t!="number"?t:q9(t,vv))};function khe(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=ss(n.placement),l=GA(s),u=[Ui,Yo].indexOf(s)>=0,f=u?"height":"width";if(!(!o||!a)){var p=Che(i.padding,n),d=qA(o),v=l==="y"?zi:Ui,g=l==="y"?Qo:Yo,y=n.rects.reference[f]+n.rects.reference[l]-a[l]-n.rects.popper[f],x=a[l]-n.rects.reference[l],b=yv(o),w=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,S=y/2-x/2,C=p[v],k=w-d[f]-p[g],D=w/2-d[f]/2+S,P=Jm(C,D,k),B=l;n.modifiersData[r]=(t={},t[B]=P,t.centerOffset=P-D,t)}}function The(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)||W9(t.elements.popper,i)&&(t.elements.arrow=i))}const Rhe={name:"arrow",enabled:!0,phase:"main",fn:khe,effect:The,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function mp(e){return e.split("-")[1]}var Ohe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ahe(e){var t=e.x,n=e.y,r=window,i=r.devicePixelRatio||1;return{x:pp(t*i)/i||0,y:pp(n*i)/i||0}}function yL(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,f=e.roundOffsets,p=e.isFixed,d=a.x,v=d===void 0?0:d,g=a.y,y=g===void 0?0:g,x=typeof f=="function"?f({x:v,y}):{x:v,y};v=x.x,y=x.y;var b=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),S=Ui,C=zi,k=window;if(u){var D=yv(n),P="clientHeight",B="clientWidth";if(D===Zo(n)&&(D=Iu(n),ol(D).position!=="static"&&s==="absolute"&&(P="scrollHeight",B="scrollWidth")),D=D,i===zi||(i===Ui||i===Yo)&&o===Fg){C=Qo;var V=p&&D===k&&k.visualViewport?k.visualViewport.height:D[P];y-=V-r.height,y*=l?1:-1}if(i===Ui||(i===zi||i===Qo)&&o===Fg){S=Yo;var U=p&&D===k&&k.visualViewport?k.visualViewport.width:D[B];v-=U-r.width,v*=l?1:-1}}var W=Object.assign({position:s},u&&Ohe),se=f===!0?Ahe({x:v,y}):{x:v,y};if(v=se.x,y=se.y,l){var ne;return Object.assign({},W,(ne={},ne[C]=w?"0":"",ne[S]=b?"0":"",ne.transform=(k.devicePixelRatio||1)<=1?"translate("+v+"px, "+y+"px)":"translate3d("+v+"px, "+y+"px, 0)",ne))}return Object.assign({},W,(t={},t[C]=w?y+"px":"",t[S]=b?v+"px":"",t.transform="",t))}function Dhe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:ss(t.placement),variation:mp(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,yL(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,yL(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Ihe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Dhe,data:{}};var b0={passive:!0};function Phe(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=Zo(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(f){f.addEventListener("scroll",n.update,b0)}),s&&l.addEventListener("resize",n.update,b0),function(){o&&u.forEach(function(f){f.removeEventListener("scroll",n.update,b0)}),s&&l.removeEventListener("resize",n.update,b0)}}const $he={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Phe,data:{}};var Fhe={left:"right",right:"left",bottom:"top",top:"bottom"};function xb(e){return e.replace(/left|right|bottom|top/g,function(t){return Fhe[t]})}var Lhe={start:"end",end:"start"};function bL(e){return e.replace(/start|end/g,function(t){return Lhe[t]})}function QA(e){var t=Zo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function YA(e){return hp(Iu(e)).left+QA(e).scrollLeft}function Mhe(e,t){var n=Zo(e),r=Iu(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var u=V9();(u||!u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+YA(e),y:l}}function Nhe(e){var t,n=Iu(e),r=QA(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Rc(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Rc(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+YA(e),l=-r.scrollTop;return ol(i||n).direction==="rtl"&&(s+=Rc(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function XA(e){var t=ol(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function G9(e){return["html","body","#document"].indexOf(cs(e))>=0?e.ownerDocument.body:Wo(e)&&XA(e)?e:G9(C_(e))}function Zm(e,t){var n;t===void 0&&(t=[]);var r=G9(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Zo(r),a=i?[o].concat(o.visualViewport||[],XA(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(Zm(C_(a)))}function bT(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Bhe(e,t){var n=hp(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 wL(e,t,n){return t===z9?bT(Mhe(e,n)):zc(t)?Bhe(t,n):bT(Nhe(Iu(e)))}function jhe(e){var t=Zm(C_(e)),n=["absolute","fixed"].indexOf(ol(e).position)>=0,r=n&&Wo(e)?yv(e):e;return zc(r)?t.filter(function(i){return zc(i)&&W9(i,r)&&cs(i)!=="body"}):[]}function zhe(e,t,n,r){var i=t==="clippingParents"?jhe(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,u){var f=wL(e,u,r);return l.top=Rc(f.top,l.top),l.right=k1(f.right,l.right),l.bottom=k1(f.bottom,l.bottom),l.left=Rc(f.left,l.left),l},wL(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 Q9(e){var t=e.reference,n=e.element,r=e.placement,i=r?ss(r):null,o=r?mp(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case zi:l={x:a,y:t.y-n.height};break;case Qo:l={x:a,y:t.y+t.height};break;case Yo:l={x:t.x+t.width,y:s};break;case Ui:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?GA(i):null;if(u!=null){var f=u==="y"?"height":"width";switch(o){case dp:l[u]=l[u]-(t[f]/2-n[f]/2);break;case Fg:l[u]=l[u]+(t[f]/2-n[f]/2);break}}return l}function Lg(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?she:s,u=n.rootBoundary,f=u===void 0?z9:u,p=n.elementContext,d=p===void 0?Qh:p,v=n.altBoundary,g=v===void 0?!1:v,y=n.padding,x=y===void 0?0:y,b=H9(typeof x!="number"?x:q9(x,vv)),w=d===Qh?lhe:Qh,S=e.rects.popper,C=e.elements[g?w:d],k=zhe(zc(C)?C:C.contextElement||Iu(e.elements.popper),l,f,a),D=hp(e.elements.reference),P=Q9({reference:D,element:S,strategy:"absolute",placement:i}),B=bT(Object.assign({},S,P)),V=d===Qh?B:D,U={top:k.top-V.top+b.top,bottom:V.bottom-k.bottom+b.bottom,left:k.left-V.left+b.left,right:V.right-k.right+b.right},W=e.modifiersData.offset;if(d===Qh&&W){var se=W[i];Object.keys(U).forEach(function(ne){var re=[Yo,Qo].indexOf(ne)>=0?1:-1,Z=[zi,Qo].indexOf(ne)>=0?"y":"x";U[ne]+=se[Z]*re})}return U}function Uhe(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?U9:l,f=mp(r),p=f?s?gL:gL.filter(function(g){return mp(g)===f}):vv,d=p.filter(function(g){return u.indexOf(g)>=0});d.length===0&&(d=p);var v=d.reduce(function(g,y){return g[y]=Lg(e,{placement:y,boundary:i,rootBoundary:o,padding:a})[ss(y)],g},{});return Object.keys(v).sort(function(g,y){return v[g]-v[y]})}function Vhe(e){if(ss(e)===KA)return[];var t=xb(e);return[bL(e),t,bL(t)]}function Whe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,f=n.boundary,p=n.rootBoundary,d=n.altBoundary,v=n.flipVariations,g=v===void 0?!0:v,y=n.allowedAutoPlacements,x=t.options.placement,b=ss(x),w=b===x,S=l||(w||!g?[xb(x)]:Vhe(x)),C=[x].concat(S).reduce(function(ae,ce){return ae.concat(ss(ce)===KA?Uhe(t,{placement:ce,boundary:f,rootBoundary:p,padding:u,flipVariations:g,allowedAutoPlacements:y}):ce)},[]),k=t.rects.reference,D=t.rects.popper,P=new Map,B=!0,V=C[0],U=0;U<C.length;U++){var W=C[U],se=ss(W),ne=mp(W)===dp,re=[zi,Qo].indexOf(se)>=0,Z=re?"width":"height",F=Lg(t,{placement:W,boundary:f,rootBoundary:p,altBoundary:d,padding:u}),te=re?ne?Yo:Ui:ne?Qo:zi;k[Z]>D[Z]&&(te=xb(te));var Y=xb(te),ee=[];if(o&&ee.push(F[se]<=0),s&&ee.push(F[te]<=0,F[Y]<=0),ee.every(function(ae){return ae})){V=W,B=!1;break}P.set(W,ee)}if(B)for(var G=g?3:1,L=function(ce){var oe=C.find(function(xe){var ke=P.get(xe);if(ke)return ke.slice(0,ce).every(function(Ee){return Ee})});if(oe)return V=oe,"break"},A=G;A>0;A--){var ie=L(A);if(ie==="break")break}t.placement!==V&&(t.modifiersData[r]._skip=!0,t.placement=V,t.reset=!0)}}const Khe={name:"flip",enabled:!0,phase:"main",fn:Whe,requiresIfExists:["offset"],data:{_skip:!1}};function _L(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 xL(e){return[zi,Yo,Qo,Ui].some(function(t){return e[t]>=0})}function Hhe(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Lg(t,{elementContext:"reference"}),s=Lg(t,{altBoundary:!0}),l=_L(a,r),u=_L(s,i,o),f=xL(l),p=xL(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:f,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":p})}const qhe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Hhe};function Ghe(e,t,n){var r=ss(e),i=[Ui,zi].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Ui,Yo].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function Qhe(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=U9.reduce(function(f,p){return f[p]=Ghe(p,t.rects,o),f},{}),s=a[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const Yhe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Qhe};function Xhe(e){var t=e.state,n=e.name;t.modifiersData[n]=Q9({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Jhe={name:"popperOffsets",enabled:!0,phase:"read",fn:Xhe,data:{}};function Zhe(e){return e==="x"?"y":"x"}function eme(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,f=n.altBoundary,p=n.padding,d=n.tether,v=d===void 0?!0:d,g=n.tetherOffset,y=g===void 0?0:g,x=Lg(t,{boundary:l,rootBoundary:u,padding:p,altBoundary:f}),b=ss(t.placement),w=mp(t.placement),S=!w,C=GA(b),k=Zhe(C),D=t.modifiersData.popperOffsets,P=t.rects.reference,B=t.rects.popper,V=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,U=typeof V=="number"?{mainAxis:V,altAxis:V}:Object.assign({mainAxis:0,altAxis:0},V),W=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,se={x:0,y:0};if(D){if(o){var ne,re=C==="y"?zi:Ui,Z=C==="y"?Qo:Yo,F=C==="y"?"height":"width",te=D[C],Y=te+x[re],ee=te-x[Z],G=v?-B[F]/2:0,L=w===dp?P[F]:B[F],A=w===dp?-B[F]:-P[F],ie=t.elements.arrow,ae=v&&ie?qA(ie):{width:0,height:0},ce=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:K9(),oe=ce[re],xe=ce[Z],ke=Jm(0,P[F],ae[F]),Ee=S?P[F]/2-G-ke-oe-U.mainAxis:L-ke-oe-U.mainAxis,Fe=S?-P[F]/2+G+ke+xe+U.mainAxis:A+ke+xe+U.mainAxis,Le=t.elements.arrow&&yv(t.elements.arrow),Ue=Le?C==="y"?Le.clientTop||0:Le.clientLeft||0:0,He=(ne=W==null?void 0:W[C])!=null?ne:0,Qe=te+Ee-He-Ue,qe=te+Fe-He,ut=Jm(v?k1(Y,Qe):Y,te,v?Rc(ee,qe):ee);D[C]=ut,se[C]=ut-te}if(s){var et,it=C==="x"?zi:Ui,wt=C==="x"?Qo:Yo,me=D[k],Te=k==="y"?"height":"width",Ce=me+x[it],Oe=me-x[wt],j=[zi,Ui].indexOf(b)!==-1,H=(et=W==null?void 0:W[k])!=null?et:0,he=j?Ce:me-P[Te]-B[Te]-H+U.altAxis,Q=j?me+P[Te]+B[Te]-H-U.altAxis:Oe,fe=v&&j?Ehe(he,me,Q):Jm(v?he:Ce,me,v?Q:Oe);D[k]=fe,se[k]=fe-me}t.modifiersData[r]=se}}const tme={name:"preventOverflow",enabled:!0,phase:"main",fn:eme,requiresIfExists:["offset"]};function nme(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function rme(e){return e===Zo(e)||!Wo(e)?QA(e):nme(e)}function ime(e){var t=e.getBoundingClientRect(),n=pp(t.width)/e.offsetWidth||1,r=pp(t.height)/e.offsetHeight||1;return n!==1||r!==1}function ome(e,t,n){n===void 0&&(n=!1);var r=Wo(t),i=Wo(t)&&ime(t),o=Iu(t),a=hp(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((cs(t)!=="body"||XA(o))&&(s=rme(t)),Wo(t)?(l=hp(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=YA(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function ame(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 sme(e){var t=ame(e);return yhe.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function lme(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function ume(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 SL={placement:"bottom",modifiers:[],strategy:"absolute"};function EL(){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 cme(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?SL:i;return function(s,l,u){u===void 0&&(u=o);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},SL,o),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},p=[],d=!1,v={state:f,setOptions:function(b){var w=typeof b=="function"?b(f.options):b;y(),f.options=Object.assign({},o,f.options,w),f.scrollParents={reference:zc(s)?Zm(s):s.contextElement?Zm(s.contextElement):[],popper:Zm(l)};var S=sme(ume([].concat(r,f.options.modifiers)));return f.orderedModifiers=S.filter(function(C){return C.enabled}),g(),v.update()},forceUpdate:function(){if(!d){var b=f.elements,w=b.reference,S=b.popper;if(EL(w,S)){f.rects={reference:ome(w,yv(S),f.options.strategy==="fixed"),popper:qA(S)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(U){return f.modifiersData[U.name]=Object.assign({},U.data)});for(var C=0;C<f.orderedModifiers.length;C++){if(f.reset===!0){f.reset=!1,C=-1;continue}var k=f.orderedModifiers[C],D=k.fn,P=k.options,B=P===void 0?{}:P,V=k.name;typeof D=="function"&&(f=D({state:f,options:B,name:V,instance:v})||f)}}}},update:lme(function(){return new Promise(function(x){v.forceUpdate(),x(f)})}),destroy:function(){y(),d=!0}};if(!EL(s,l))return v;v.setOptions(u).then(function(x){!d&&u.onFirstUpdate&&u.onFirstUpdate(x)});function g(){f.orderedModifiers.forEach(function(x){var b=x.name,w=x.options,S=w===void 0?{}:w,C=x.effect;if(typeof C=="function"){var k=C({state:f,name:b,instance:v,options:S}),D=function(){};p.push(k||D)}})}function y(){p.forEach(function(x){return x()}),p=[]}return v}}var fme=[$he,Jhe,Ihe,_he,Yhe,Khe,tme,Rhe,qhe],dme=cme({defaultModifiers:fme});function pme(e){return typeof e=="function"?e():e}const hme=R.forwardRef(function(t,n){const{children:r,container:i,disablePortal:o=!1}=t,[a,s]=R.useState(null),l=Un(R.isValidElement(r)?r.ref:null,n);if(mo(()=>{o||s(pme(i)||document.body)},[i,o]),mo(()=>{if(a&&!o)return S1(n,a),()=>{S1(n,null)}},[n,a,o]),o){if(R.isValidElement(r)){const u={ref:l};return R.cloneElement(r,u)}return T.jsx(R.Fragment,{children:r})}return T.jsx(R.Fragment,{children:a&&Qc.createPortal(r,a)})}),Y9=hme;function mme(e){return kt("MuiPopperUnstyled",e)}Et("MuiPopperUnstyled",["root"]);const gme=["anchorEl","children","component","direction","disablePortal","modifiers","open","ownerState","placement","popperOptions","popperRef","slotProps","slots","TransitionProps"],vme=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function yme(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 wT(e){return typeof e=="function"?e():e}function bme(e){return e.nodeType!==void 0}const wme=()=>Rt({root:["root"]},mme,{}),_me={},xme=R.forwardRef(function(t,n){var r;const{anchorEl:i,children:o,component:a,direction:s,disablePortal:l,modifiers:u,open:f,ownerState:p,placement:d,popperOptions:v,popperRef:g,slotProps:y={},slots:x={},TransitionProps:b}=t,w=rt(t,gme),S=R.useRef(null),C=Un(S,n),k=R.useRef(null),D=Un(k,g),P=R.useRef(D);mo(()=>{P.current=D},[D]),R.useImperativeHandle(g,()=>k.current,[]);const B=yme(d,s),[V,U]=R.useState(B),[W,se]=R.useState(wT(i));R.useEffect(()=>{k.current&&k.current.forceUpdate()}),R.useEffect(()=>{i&&se(wT(i))},[i]),mo(()=>{if(!W||!f)return;const te=G=>{U(G.placement)};let Y=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:G})=>{te(G)}}];u!=null&&(Y=Y.concat(u)),v&&v.modifiers!=null&&(Y=Y.concat(v.modifiers));const ee=dme(W,S.current,z({placement:B},v,{modifiers:Y}));return P.current(ee),()=>{ee.destroy(),P.current(null)}},[W,l,u,f,v,B]);const ne={placement:V};b!==null&&(ne.TransitionProps=b);const re=wme(),Z=(r=a??x.root)!=null?r:"div",F=wa({elementType:Z,externalSlotProps:y.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:C},ownerState:z({},t,p),className:re.root});return T.jsx(Z,z({},F,{children:typeof o=="function"?o(ne):o}))}),Sme=R.forwardRef(function(t,n){const{anchorEl:r,children:i,container:o,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:u,open:f,placement:p="bottom",popperOptions:d=_me,popperRef:v,style:g,transition:y=!1,slotProps:x={},slots:b={}}=t,w=rt(t,vme),[S,C]=R.useState(!0),k=()=>{C(!1)},D=()=>{C(!0)};if(!l&&!f&&(!y||S))return null;let P;if(o)P=o;else if(r){const U=wT(r);P=U&&bme(U)?nr(U).body:nr(null).body}const B=!f&&l&&(!y||S)?"none":void 0,V=y?{in:f,onEnter:k,onExited:D}:void 0;return T.jsx(Y9,{disablePortal:s,container:P,children:T.jsx(xme,z({anchorEl:r,direction:a,disablePortal:s,modifiers:u,ref:n,open:y?!S:f,placement:p,popperOptions:d,popperRef:v,slotProps:x,slots:b},w,{style:z({position:"fixed",top:0,left:0,display:B},g),TransitionProps:V,children:i}))})}),Eme=Sme;function Cme(e){const t=nr(e);return t.body===e?bu(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function eg(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function CL(e){return parseInt(bu(e).getComputedStyle(e).paddingRight,10)||0}function kme(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 kL(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,a=>{const s=o.indexOf(a)===-1,l=!kme(a);s&&l&&eg(a,i)})}function EE(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function Tme(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(Cme(r)){const a=f9(nr(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${CL(r)+a}px`;const s=nr(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${CL(l)+a}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=nr(r).body;else{const a=r.parentElement,s=bu(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 Rme(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Ome{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=Rme(n);kL(n,t.mount,t.modalRef,i,!0);const o=EE(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=EE(this.containers,o=>o.modals.indexOf(t)!==-1),i=this.containers[r];i.restore||(i.restore=Tme(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=EE(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),kL(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 Ame(e){return kt("MuiModal",e)}Et("MuiModal",["root","hidden"]);const Dme=["children","classes","closeAfterTransition","component","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"],Ime=e=>{const{open:t,exited:n,classes:r}=e;return Rt({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Ame,r)};function Pme(e){return typeof e=="function"?e():e}function $me(e){return e?e.props.hasOwnProperty("in"):!1}const Fme=new Ome,Lme=R.forwardRef(function(t,n){var r,i;const{children:o,classes:a,closeAfterTransition:s=!1,component:l,container:u,disableAutoFocus:f=!1,disableEnforceFocus:p=!1,disableEscapeKeyDown:d=!1,disablePortal:v=!1,disableRestoreFocus:g=!1,disableScrollLock:y=!1,hideBackdrop:x=!1,keepMounted:b=!1,manager:w=Fme,onBackdropClick:S,onClose:C,onKeyDown:k,open:D,onTransitionEnter:P,onTransitionExited:B,slotProps:V={},slots:U={}}=t,W=rt(t,Dme),[se,ne]=R.useState(!D),re=R.useRef({}),Z=R.useRef(null),F=R.useRef(null),te=Un(F,n),Y=$me(o),ee=(r=t["aria-hidden"])!=null?r:!0,G=()=>nr(Z.current),L=()=>(re.current.modalRef=F.current,re.current.mountNode=Z.current,re.current),A=()=>{w.mount(L(),{disableScrollLock:y}),F.current&&(F.current.scrollTop=0)},ie=Uo(()=>{const it=Pme(u)||G().body;w.add(L(),it),F.current&&A()}),ae=R.useCallback(()=>w.isTopModal(L()),[w]),ce=Uo(it=>{Z.current=it,!(!it||!F.current)&&(D&&ae()?A():eg(F.current,ee))}),oe=R.useCallback(()=>{w.remove(L(),ee)},[w,ee]);R.useEffect(()=>()=>{oe()},[oe]),R.useEffect(()=>{D?ie():(!Y||!s)&&oe()},[D,oe,Y,s,ie]);const xe=z({},t,{classes:a,closeAfterTransition:s,disableAutoFocus:f,disableEnforceFocus:p,disableEscapeKeyDown:d,disablePortal:v,disableRestoreFocus:g,disableScrollLock:y,exited:se,hideBackdrop:x,keepMounted:b}),ke=Ime(xe),Ee=()=>{ne(!1),P&&P()},Fe=()=>{ne(!0),B&&B(),s&&oe()},Le=it=>{it.target===it.currentTarget&&(S&&S(it),C&&C(it,"backdropClick"))},Ue=it=>{k&&k(it),!(it.key!=="Escape"||!ae())&&(d||(it.stopPropagation(),C&&C(it,"escapeKeyDown")))},He={};o.props.tabIndex===void 0&&(He.tabIndex="-1"),Y&&(He.onEnter=dT(Ee,o.props.onEnter),He.onExited=dT(Fe,o.props.onExited));const Qe=(i=l??U.root)!=null?i:"div",qe=wa({elementType:Qe,externalSlotProps:V.root,externalForwardedProps:W,additionalProps:{ref:te,role:"presentation",onKeyDown:Ue},className:ke.root,ownerState:xe}),ut=U.backdrop,et=wa({elementType:ut,externalSlotProps:V.backdrop,additionalProps:{"aria-hidden":!0,onClick:Le,open:D},className:ke.backdrop,ownerState:xe});return!b&&!D&&(!Y||se)?null:T.jsx(Y9,{ref:ce,container:u,disablePortal:v,children:T.jsxs(Qe,z({},qe,{children:[!x&&ut?T.jsx(ut,z({},et)):null,T.jsx(ahe,{disableEnforceFocus:p,disableAutoFocus:f,disableRestoreFocus:g,isEnabled:ae,open:D,children:R.cloneElement(o,He)})]}))})}),Mme=Lme,Nme=2;function X9(e,t){return e-t}function Yh(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function TL(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 w0(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 RL(e,t,n){return(e-t)*100/(n-t)}function Bme(e,t,n){return(n-t)*e+t}function jme(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 zme(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(jme(t)))}function OL({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(X9)}function _0({sliderRef:e,activeIndex:t,setActive:n}){var r,i;const o=nr(e.current);if(!((r=e.current)!=null&&r.contains(o.activeElement))||Number(o==null||(i=o.activeElement)==null?void 0:i.getAttribute("data-index"))!==t){var a;(a=e.current)==null||a.querySelector(`[type="range"][data-index="${t}"]`).focus()}n&&n(t)}const Ume={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}%`})}},Vme=e=>e;let x0;function CE(){return x0===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?x0=CSS.supports("touch-action","none"):x0=!0),x0}function Wme(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:o=!1,marks:a=!1,max:s=100,min:l=0,name:u,onChange:f,onChangeCommitted:p,orientation:d="horizontal",ref:v,scale:g=Vme,step:y=1,tabIndex:x,value:b}=e,w=R.useRef(),[S,C]=R.useState(-1),[k,D]=R.useState(-1),[P,B]=R.useState(!1),V=R.useRef(0),[U,W]=up({controlled:b,default:n??l,name:"Slider"}),se=f&&((j,H,he)=>{const Q=j.nativeEvent||j,fe=new Q.constructor(Q.type,Q);Object.defineProperty(fe,"target",{writable:!0,value:{value:H,name:u}}),f(fe,H,he)}),ne=Array.isArray(U);let re=ne?U.slice().sort(X9):[U];re=re.map(j=>Yh(j,l,s));const Z=a===!0&&y!==null?[...Array(Math.floor((s-l)/y)+1)].map((j,H)=>({value:l+y*H})):a||[],F=Z.map(j=>j.value),{isFocusVisibleRef:te,onBlur:Y,onFocus:ee,ref:G}=pv(),[L,A]=R.useState(-1),ie=R.useRef(),ae=Un(G,ie),ce=Un(v,ae),oe=j=>H=>{var he;const Q=Number(H.currentTarget.getAttribute("data-index"));ee(H),te.current===!0&&A(Q),D(Q),j==null||(he=j.onFocus)==null||he.call(j,H)},xe=j=>H=>{var he;Y(H),te.current===!1&&A(-1),D(-1),j==null||(he=j.onBlur)==null||he.call(j,H)};mo(()=>{if(r&&ie.current.contains(document.activeElement)){var j;(j=document.activeElement)==null||j.blur()}},[r]),r&&S!==-1&&C(-1),r&&L!==-1&&A(-1);const ke=j=>H=>{var he;(he=j.onChange)==null||he.call(j,H);const Q=Number(H.currentTarget.getAttribute("data-index")),fe=re[Q],le=F.indexOf(fe);let Re=H.target.valueAsNumber;if(Z&&y==null&&(Re=Re<fe?F[le-1]:F[le+1]),Re=Yh(Re,l,s),Z&&y==null){const $e=F.indexOf(re[Q]);Re=Re<re[Q]?F[$e-1]:F[$e+1]}if(ne){i&&(Re=Yh(Re,re[Q-1]||-1/0,re[Q+1]||1/0));const $e=Re;Re=OL({values:re,newValue:Re,index:Q});let Pe=Q;i||(Pe=Re.indexOf($e)),_0({sliderRef:ie,activeIndex:Pe})}W(Re),A(Q),se&&se(H,Re,Q),p&&p(H,Re)},Ee=R.useRef();let Fe=d;o&&d==="horizontal"&&(Fe+="-reverse");const Le=({finger:j,move:H=!1})=>{const{current:he}=ie,{width:Q,height:fe,bottom:le,left:Re}=he.getBoundingClientRect();let $e;Fe.indexOf("vertical")===0?$e=(le-j.y)/fe:$e=(j.x-Re)/Q,Fe.indexOf("-reverse")!==-1&&($e=1-$e);let Pe;if(Pe=Bme($e,l,s),y)Pe=zme(Pe,y,l);else{const lt=TL(F,Pe);Pe=F[lt]}Pe=Yh(Pe,l,s);let mt=0;if(ne){H?mt=Ee.current:mt=TL(re,Pe),i&&(Pe=Yh(Pe,re[mt-1]||-1/0,re[mt+1]||1/0));const lt=Pe;Pe=OL({values:re,newValue:Pe,index:mt}),i&&H||(mt=Pe.indexOf(lt),Ee.current=mt)}return{newValue:Pe,activeIndex:mt}},Ue=Uo(j=>{const H=w0(j,w);if(!H)return;if(V.current+=1,j.type==="mousemove"&&j.buttons===0){He(j);return}const{newValue:he,activeIndex:Q}=Le({finger:H,move:!0});_0({sliderRef:ie,activeIndex:Q,setActive:C}),W(he),!P&&V.current>Nme&&B(!0),se&&he!==U&&se(j,he,Q)}),He=Uo(j=>{const H=w0(j,w);if(B(!1),!H)return;const{newValue:he}=Le({finger:H,move:!0});C(-1),j.type==="touchend"&&D(-1),p&&p(j,he),w.current=void 0,qe()}),Qe=Uo(j=>{if(r)return;CE()||j.preventDefault();const H=j.changedTouches[0];H!=null&&(w.current=H.identifier);const he=w0(j,w);if(he!==!1){const{newValue:fe,activeIndex:le}=Le({finger:he});_0({sliderRef:ie,activeIndex:le,setActive:C}),W(fe),se&&se(j,fe,le)}V.current=0;const Q=nr(ie.current);Q.addEventListener("touchmove",Ue),Q.addEventListener("touchend",He)}),qe=R.useCallback(()=>{const j=nr(ie.current);j.removeEventListener("mousemove",Ue),j.removeEventListener("mouseup",He),j.removeEventListener("touchmove",Ue),j.removeEventListener("touchend",He)},[He,Ue]);R.useEffect(()=>{const{current:j}=ie;return j.addEventListener("touchstart",Qe,{passive:CE()}),()=>{j.removeEventListener("touchstart",Qe,{passive:CE()}),qe()}},[qe,Qe]),R.useEffect(()=>{r&&qe()},[r,qe]);const ut=j=>H=>{var he;if((he=j.onMouseDown)==null||he.call(j,H),r||H.defaultPrevented||H.button!==0)return;H.preventDefault();const Q=w0(H,w);if(Q!==!1){const{newValue:le,activeIndex:Re}=Le({finger:Q});_0({sliderRef:ie,activeIndex:Re,setActive:C}),W(le),se&&se(H,le,Re)}V.current=0;const fe=nr(ie.current);fe.addEventListener("mousemove",Ue),fe.addEventListener("mouseup",He)},et=RL(ne?re[0]:l,l,s),it=RL(re[re.length-1],l,s)-et,wt=(j={})=>{const H={onMouseDown:ut(j||{})},he=z({},j,H);return z({ref:ce},he)},me=j=>H=>{var he;(he=j.onMouseOver)==null||he.call(j,H);const Q=Number(H.currentTarget.getAttribute("data-index"));D(Q)},Te=j=>H=>{var he;(he=j.onMouseLeave)==null||he.call(j,H),D(-1)};return{active:S,axis:Fe,axisProps:Ume,dragging:P,focusedThumbIndex:L,getHiddenInputProps:(j={})=>{var H;const he={onChange:ke(j||{}),onFocus:oe(j||{}),onBlur:xe(j||{})},Q=z({},j,he);return z({tabIndex:x,"aria-labelledby":t,"aria-orientation":d,"aria-valuemax":g(s),"aria-valuemin":g(l),name:u,type:"range",min:e.min,max:e.max,step:(H=e.step)!=null?H:void 0,disabled:r},Q,{style:z({},Hce,{direction:o?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:wt,getThumbProps:(j={})=>{const H={onMouseOver:me(j||{}),onMouseLeave:Te(j||{})};return z({},j,H)},marks:Z,open:k,range:ne,trackLeap:it,trackOffset:et,values:re}}const Kme=["onChange","maxRows","minRows","style","value"];function S0(e,t){return parseInt(e[t],10)||0}const Hme={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function AL(e){return e==null||Object.keys(e).length===0}const qme=R.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:o=1,style:a,value:s}=t,l=rt(t,Kme),{current:u}=R.useRef(s!=null),f=R.useRef(null),p=Un(n,f),d=R.useRef(null),v=R.useRef(0),[g,y]=R.useState({}),x=R.useCallback(()=>{const k=f.current,P=bu(k).getComputedStyle(k);if(P.width==="0px")return{};const B=d.current;B.style.width=P.width,B.value=k.value||t.placeholder||"x",B.value.slice(-1)===`
|
|
64
|
-
`&&(B.value+=" ");const V=P["box-sizing"],U=S0(P,"padding-bottom")+S0(P,"padding-top"),W=S0(P,"border-bottom-width")+S0(P,"border-top-width"),se=B.scrollHeight;B.value="x";const ne=B.scrollHeight;let re=se;o&&(re=Math.max(Number(o)*ne,re)),i&&(re=Math.min(Number(i)*ne,re)),re=Math.max(re,ne);const Z=re+(V==="border-box"?U+W:0),F=Math.abs(re-se)<=1;return{outerHeightStyle:Z,overflow:F}},[i,o,t.placeholder]),b=(k,D)=>{const{outerHeightStyle:P,overflow:B}=D;return v.current<20&&(P>0&&Math.abs((k.outerHeightStyle||0)-P)>1||k.overflow!==B)?(v.current+=1,{overflow:B,outerHeightStyle:P}):k},w=R.useCallback(()=>{const k=x();AL(k)||y(D=>b(D,k))},[x]),S=()=>{const k=x();AL(k)||Qc.flushSync(()=>{y(D=>b(D,k))})};R.useEffect(()=>{const k=SA(()=>{v.current=0,f.current&&S()}),D=bu(f.current);D.addEventListener("resize",k);let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(k),P.observe(f.current)),()=>{k.clear(),D.removeEventListener("resize",k),P&&P.disconnect()}}),mo(()=>{w()}),R.useEffect(()=>{v.current=0},[s]);const C=k=>{v.current=0,u||w(),r&&r(k)};return T.jsxs(R.Fragment,{children:[T.jsx("textarea",z({value:s,onChange:C,ref:p,rows:o,style:z({height:g.outerHeightStyle,overflow:g.overflow?"hidden":null},a)},l)),T.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:d,tabIndex:-1,style:z({},Hme.shadow,a,{padding:0})})]})}),Gme=qme;function Qme(e){return kt("MuiSvgIcon",e)}Et("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Yme=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Xme=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${ze(t)}`,`fontSize${ze(n)}`]};return Rt(i,Qme,r)},Jme=Ve("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ze(n.color)}`],t[`fontSize${ze(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,o,a,s,l,u,f,p,d,v,g,y,x,b,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||(u=l.pxToRem)==null?void 0:u.call(l,24))||"1.5rem",large:((f=e.typography)==null||(p=f.pxToRem)==null?void 0:p.call(f,35))||"2.1875rem"}[t.fontSize],color:(d=(v=(e.vars||e).palette)==null||(g=v[t.color])==null?void 0:g.main)!=null?d:{action:(y=(e.vars||e).palette)==null||(x=y.action)==null?void 0:x.active,disabled:(b=(e.vars||e).palette)==null||(w=b.action)==null?void 0:w.disabled,inherit:void 0}[t.color]}}),J9=R.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:f=!1,titleAccess:p,viewBox:d="0 0 24 24"}=r,v=rt(r,Yme),g=z({},r,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:d}),y={};f||(y.viewBox=d);const x=Xme(g);return T.jsxs(Jme,z({as:s,className:nt(x.root,o),focusable:"false",color:u,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:n},y,v,{ownerState:g,children:[i,p?T.jsx("title",{children:p}):null]}))});J9.muiName="SvgIcon";const _T=J9;function fl(e,t){function n(r,i){return T.jsx(_T,z({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return n.muiName=_T.muiName,R.memo(R.forwardRef(n))}const Zme={configure:e=>{CA.configure(e)}},ege=Object.freeze(Object.defineProperty({__proto__:null,capitalize:ze,createChainedFunction:dT,createSvgIcon:fl,debounce:SA,deprecatedPropType:$ce,isMuiElement:Md,ownerDocument:nr,ownerWindow:bu,requirePropFactory:Fce,setRef:S1,unstable_ClassNameGenerator:Zme,unstable_useEnhancedEffect:mo,unstable_useId:dv,unsupportedProp:Nce,useControlled:up,useEventCallback:Uo,useForkRef:Un,useIsFocusVisible:pv},Symbol.toStringTag,{value:"Module"}));function T1(e,t){return T1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},T1(e,t)}function JA(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,T1(e,t)}const DL={disabled:!1},R1=yt.createContext(null);var tge=function(t){return t.scrollTop},Am="unmounted",uc="exited",cc="entering",id="entered",xT="exiting",dl=function(e){JA(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=uc,o.appearStatus=cc):l=id:r.unmountOnExit||r.mountOnEnter?l=Am:l=uc,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===Am?{status:uc}: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!==cc&&a!==id&&(o=cc):(a===cc||a===id)&&(o=xT)}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===cc){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Tm.findDOMNode(this);a&&tge(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===uc&&this.setState({status:Am})},n.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[Tm.findDOMNode(this),s],u=l[0],f=l[1],p=this.getTimeouts(),d=s?p.appear:p.enter;if(!i&&!a||DL.disabled){this.safeSetState({status:id},function(){o.props.onEntered(u)});return}this.props.onEnter(u,f),this.safeSetState({status:cc},function(){o.props.onEntering(u,f),o.onTransitionEnd(d,function(){o.safeSetState({status:id},function(){o.props.onEntered(u,f)})})})},n.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:Tm.findDOMNode(this);if(!o||DL.disabled){this.safeSetState({status:uc},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:xT},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:uc},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:Tm.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=l[0],f=l[1];this.props.addEndListener(u,f)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Am)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=rt(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return yt.createElement(R1.Provider,{value:null},typeof a=="function"?a(i,s):yt.cloneElement(yt.Children.only(a),s))},t}(yt.Component);dl.contextType=R1;dl.propTypes={};function Gf(){}dl.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Gf,onEntering:Gf,onEntered:Gf,onExit:Gf,onExiting:Gf,onExited:Gf};dl.UNMOUNTED=Am;dl.EXITED=uc;dl.ENTERING=cc;dl.ENTERED=id;dl.EXITING=xT;const Z9=dl;function O1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ZA(e,t){var n=function(o){return t&&R.isValidElement(o)?t(o):o},r=Object.create(null);return e&&R.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function nge(e,t){e=e||{},t=t||{};function n(f){return f in t?t[f]:e[f]}var r=Object.create(null),i=[];for(var o in e)o in t?i.length&&(r[o]=i,i=[]):i.push(o);var a,s={};for(var l in t){if(r[l])for(a=0;a<r[l].length;a++){var u=r[l][a];s[r[l][a]]=n(u)}s[l]=n(l)}for(a=0;a<i.length;a++)s[i[a]]=n(i[a]);return s}function xc(e,t,n){return n[t]!=null?n[t]:e.props[t]}function rge(e,t){return ZA(e.children,function(n){return R.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:xc(n,"appear",e),enter:xc(n,"enter",e),exit:xc(n,"exit",e)})})}function ige(e,t,n){var r=ZA(e.children),i=nge(t,r);return Object.keys(i).forEach(function(o){var a=i[o];if(R.isValidElement(a)){var s=o in t,l=o in r,u=t[o],f=R.isValidElement(u)&&!u.props.in;l&&(!s||f)?i[o]=R.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:xc(a,"exit",e),enter:xc(a,"enter",e)}):!l&&s&&!f?i[o]=R.cloneElement(a,{in:!1}):l&&s&&R.isValidElement(u)&&(i[o]=R.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:xc(a,"exit",e),enter:xc(a,"enter",e)}))}}),i}var oge=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},age={component:"div",childFactory:function(t){return t}},eD=function(e){JA(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=o.handleExited.bind(O1(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?rge(i,s):ige(i,a,s),firstRender:!1}},n.handleExited=function(i,o){var a=ZA(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=rt(i,["component","childFactory"]),l=this.state.contextValue,u=oge(this.state.children).map(a);return delete s.appear,delete s.enter,delete s.exit,o===null?yt.createElement(R1.Provider,{value:l},u):yt.createElement(R1.Provider,{value:l},yt.createElement(o,s,u))},t}(yt.Component);eD.propTypes={};eD.defaultProps=age;const sge=eD,eV=e=>e.scrollTop;function A1(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 lge(e){return kt("MuiPaper",e)}Et("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 uge=["className","component","elevation","square","variant"],cge=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,o={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Rt(o,lge,i)},fge=Ve("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(${on("#fff",pL(t.elevation))}, ${on("#fff",pL(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),dge=R.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiPaper"}),{className:i,component:o="div",elevation:a=1,square:s=!1,variant:l="elevation"}=r,u=rt(r,uge),f=z({},r,{component:o,elevation:a,square:s,variant:l}),p=cge(f);return T.jsx(fge,z({as:o,ownerState:f,className:nt(p.root,i),ref:n},u))}),Ap=dge;function pge(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:a,in:s,onExited:l,timeout:u}=e,[f,p]=R.useState(!1),d=nt(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),v={width:a,height:a,top:-(a/2)+o,left:-(a/2)+i},g=nt(n.child,f&&n.childLeaving,r&&n.childPulsate);return!s&&!f&&p(!0),R.useEffect(()=>{if(!s&&l!=null){const y=setTimeout(l,u);return()=>{clearTimeout(y)}}},[l,s,u]),T.jsx("span",{className:d,style:v,children:T.jsx("span",{className:g})})}const hge=Et("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),$o=hge,mge=["center","classes","className"];let k_=e=>e,IL,PL,$L,FL;const ST=550,gge=80,vge=mv(IL||(IL=k_`
|
|
65
|
-
0% {
|
|
66
|
-
transform: scale(0);
|
|
67
|
-
opacity: 0.1;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
100% {
|
|
71
|
-
transform: scale(1);
|
|
72
|
-
opacity: 0.3;
|
|
73
|
-
}
|
|
74
|
-
`)),yge=mv(PL||(PL=k_`
|
|
75
|
-
0% {
|
|
76
|
-
opacity: 1;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
100% {
|
|
80
|
-
opacity: 0;
|
|
81
|
-
}
|
|
82
|
-
`)),bge=mv($L||($L=k_`
|
|
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
|
-
`)),wge=Ve("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),_ge=Ve(pge,{name:"MuiTouchRipple",slot:"Ripple"})(FL||(FL=k_`
|
|
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
|
-
`),$o.rippleVisible,vge,ST,({theme:e})=>e.transitions.easing.easeInOut,$o.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,$o.child,$o.childLeaving,yge,ST,({theme:e})=>e.transitions.easing.easeInOut,$o.childPulsate,bge,({theme:e})=>e.transitions.easing.easeInOut),xge=R.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:a}=r,s=rt(r,mge),[l,u]=R.useState([]),f=R.useRef(0),p=R.useRef(null);R.useEffect(()=>{p.current&&(p.current(),p.current=null)},[l]);const d=R.useRef(!1),v=R.useRef(null),g=R.useRef(null),y=R.useRef(null);R.useEffect(()=>()=>{clearTimeout(v.current)},[]);const x=R.useCallback(C=>{const{pulsate:k,rippleX:D,rippleY:P,rippleSize:B,cb:V}=C;u(U=>[...U,T.jsx(_ge,{classes:{ripple:nt(o.ripple,$o.ripple),rippleVisible:nt(o.rippleVisible,$o.rippleVisible),ripplePulsate:nt(o.ripplePulsate,$o.ripplePulsate),child:nt(o.child,$o.child),childLeaving:nt(o.childLeaving,$o.childLeaving),childPulsate:nt(o.childPulsate,$o.childPulsate)},timeout:ST,pulsate:k,rippleX:D,rippleY:P,rippleSize:B},f.current)]),f.current+=1,p.current=V},[o]),b=R.useCallback((C={},k={},D=()=>{})=>{const{pulsate:P=!1,center:B=i||k.pulsate,fakeElement:V=!1}=k;if((C==null?void 0:C.type)==="mousedown"&&d.current){d.current=!1;return}(C==null?void 0:C.type)==="touchstart"&&(d.current=!0);const U=V?null:y.current,W=U?U.getBoundingClientRect():{width:0,height:0,left:0,top:0};let se,ne,re;if(B||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)se=Math.round(W.width/2),ne=Math.round(W.height/2);else{const{clientX:Z,clientY:F}=C.touches&&C.touches.length>0?C.touches[0]:C;se=Math.round(Z-W.left),ne=Math.round(F-W.top)}if(B)re=Math.sqrt((2*W.width**2+W.height**2)/3),re%2===0&&(re+=1);else{const Z=Math.max(Math.abs((U?U.clientWidth:0)-se),se)*2+2,F=Math.max(Math.abs((U?U.clientHeight:0)-ne),ne)*2+2;re=Math.sqrt(Z**2+F**2)}C!=null&&C.touches?g.current===null&&(g.current=()=>{x({pulsate:P,rippleX:se,rippleY:ne,rippleSize:re,cb:D})},v.current=setTimeout(()=>{g.current&&(g.current(),g.current=null)},gge)):x({pulsate:P,rippleX:se,rippleY:ne,rippleSize:re,cb:D})},[i,x]),w=R.useCallback(()=>{b({},{pulsate:!0})},[b]),S=R.useCallback((C,k)=>{if(clearTimeout(v.current),(C==null?void 0:C.type)==="touchend"&&g.current){g.current(),g.current=null,v.current=setTimeout(()=>{S(C,k)});return}g.current=null,u(D=>D.length>0?D.slice(1):D),p.current=k},[]);return R.useImperativeHandle(n,()=>({pulsate:w,start:b,stop:S}),[w,b,S]),T.jsx(wge,z({className:nt($o.root,o.root,a),ref:y},s,{children:T.jsx(sge,{component:null,exit:!0,children:l})}))}),Sge=xge;function Ege(e){return kt("MuiButtonBase",e)}const Cge=Et("MuiButtonBase",["root","disabled","focusVisible"]),kge=Cge,Tge=["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"],Rge=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=Rt({root:["root",t&&"disabled",n&&"focusVisible"]},Ege,i);return n&&r&&(a.root+=` ${r}`),a},Oge=Ve("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"},[`&.${kge.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Age=R.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:a,className:s,component:l="button",disabled:u=!1,disableRipple:f=!1,disableTouchRipple:p=!1,focusRipple:d=!1,LinkComponent:v="a",onBlur:g,onClick:y,onContextMenu:x,onDragLeave:b,onFocus:w,onFocusVisible:S,onKeyDown:C,onKeyUp:k,onMouseDown:D,onMouseLeave:P,onMouseUp:B,onTouchEnd:V,onTouchMove:U,onTouchStart:W,tabIndex:se=0,TouchRippleProps:ne,touchRippleRef:re,type:Z}=r,F=rt(r,Tge),te=R.useRef(null),Y=R.useRef(null),ee=Un(Y,re),{isFocusVisibleRef:G,onFocus:L,onBlur:A,ref:ie}=pv(),[ae,ce]=R.useState(!1);u&&ae&&ce(!1),R.useImperativeHandle(i,()=>({focusVisible:()=>{ce(!0),te.current.focus()}}),[]);const[oe,xe]=R.useState(!1);R.useEffect(()=>{xe(!0)},[]);const ke=oe&&!f&&!u;R.useEffect(()=>{ae&&d&&!f&&oe&&Y.current.pulsate()},[f,d,ae,oe]);function Ee(le,Re,$e=p){return Uo(Pe=>(Re&&Re(Pe),!$e&&Y.current&&Y.current[le](Pe),!0))}const Fe=Ee("start",D),Le=Ee("stop",x),Ue=Ee("stop",b),He=Ee("stop",B),Qe=Ee("stop",le=>{ae&&le.preventDefault(),P&&P(le)}),qe=Ee("start",W),ut=Ee("stop",V),et=Ee("stop",U),it=Ee("stop",le=>{A(le),G.current===!1&&ce(!1),g&&g(le)},!1),wt=Uo(le=>{te.current||(te.current=le.currentTarget),L(le),G.current===!0&&(ce(!0),S&&S(le)),w&&w(le)}),me=()=>{const le=te.current;return l&&l!=="button"&&!(le.tagName==="A"&&le.href)},Te=R.useRef(!1),Ce=Uo(le=>{d&&!Te.current&&ae&&Y.current&&le.key===" "&&(Te.current=!0,Y.current.stop(le,()=>{Y.current.start(le)})),le.target===le.currentTarget&&me()&&le.key===" "&&le.preventDefault(),C&&C(le),le.target===le.currentTarget&&me()&&le.key==="Enter"&&!u&&(le.preventDefault(),y&&y(le))}),Oe=Uo(le=>{d&&le.key===" "&&Y.current&&ae&&!le.defaultPrevented&&(Te.current=!1,Y.current.stop(le,()=>{Y.current.pulsate(le)})),k&&k(le),y&&le.target===le.currentTarget&&me()&&le.key===" "&&!le.defaultPrevented&&y(le)});let j=l;j==="button"&&(F.href||F.to)&&(j=v);const H={};j==="button"?(H.type=Z===void 0?"button":Z,H.disabled=u):(!F.href&&!F.to&&(H.role="button"),u&&(H["aria-disabled"]=u));const he=Un(n,ie,te),Q=z({},r,{centerRipple:o,component:l,disabled:u,disableRipple:f,disableTouchRipple:p,focusRipple:d,tabIndex:se,focusVisible:ae}),fe=Rge(Q);return T.jsxs(Oge,z({as:j,className:nt(fe.root,s),ownerState:Q,onBlur:it,onClick:y,onContextMenu:Le,onFocus:wt,onKeyDown:Ce,onKeyUp:Oe,onMouseDown:Fe,onMouseLeave:Qe,onMouseUp:He,onDragLeave:Ue,onTouchEnd:ut,onTouchMove:et,onTouchStart:qe,ref:he,tabIndex:u?-1:se,type:Z},H,F,{children:[a,ke?T.jsx(Sge,z({ref:ee,center:o},ne)):null]}))}),Uc=Age;function Dge(e){return kt("MuiAlert",e)}const Ige=Et("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),LL=Ige;function Pge(e){return kt("MuiIconButton",e)}const $ge=Et("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Fge=$ge,Lge=["edge","children","className","color","disabled","disableFocusRipple","size"],Mge=e=>{const{classes:t,disabled:n,color:r,edge:i,size:o}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${ze(r)}`,i&&`edge${ze(i)}`,`size${ze(o)}`]};return Rt(a,Pge,t)},Nge=Ve(Uc,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ze(n.color)}`],n.edge&&t[`edge${ze(n.edge)}`],t[`size${ze(n.size)}`]]}})(({theme:e,ownerState:t})=>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})`:on(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})`:on(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)},{[`&.${Fge.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Bge=R.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiIconButton"}),{edge:i=!1,children:o,className:a,color:s="default",disabled:l=!1,disableFocusRipple:u=!1,size:f="medium"}=r,p=rt(r,Lge),d=z({},r,{edge:i,color:s,disabled:l,disableFocusRipple:u,size:f}),v=Mge(d);return T.jsx(Nge,z({className:nt(v.root,a),centerRipple:!0,focusRipple:!u,disabled:l,ref:n,ownerState:d},p,{children:o}))}),ei=Bge,jge=fl(T.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"),zge=fl(T.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),Uge=fl(T.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"),Vge=fl(T.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"),Wge=fl(T.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"),Kge=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],Hge=e=>{const{variant:t,color:n,severity:r,classes:i}=e,o={root:["root",`${t}${ze(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Rt(o,Dge,i)},qge=Ve(Ap,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ze(n.color||n.severity)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?Pg:$g,r=e.palette.mode==="light"?$g:Pg,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),[`& .${LL.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}`,[`& .${LL.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)}))}),Gge=Ve("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),Qge=Ve("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),ML=Ve("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),NL={success:T.jsx(jge,{fontSize:"inherit"}),warning:T.jsx(zge,{fontSize:"inherit"}),error:T.jsx(Uge,{fontSize:"inherit"}),info:T.jsx(Vge,{fontSize:"inherit"})},Yge=R.forwardRef(function(t,n){var r,i,o,a,s,l;const u=Ot({props:t,name:"MuiAlert"}),{action:f,children:p,className:d,closeText:v="Close",color:g,components:y={},componentsProps:x={},icon:b,iconMapping:w=NL,onClose:S,role:C="alert",severity:k="success",slotProps:D={},slots:P={},variant:B="standard"}=u,V=rt(u,Kge),U=z({},u,{color:g,severity:k,variant:B}),W=Hge(U),se=(r=(i=P.closeButton)!=null?i:y.CloseButton)!=null?r:ei,ne=(o=(a=P.closeIcon)!=null?a:y.CloseIcon)!=null?o:Wge,re=(s=D.closeButton)!=null?s:x.closeButton,Z=(l=D.closeIcon)!=null?l:x.closeIcon;return T.jsxs(qge,z({role:C,elevation:0,ownerState:U,className:nt(W.root,d),ref:n},V,{children:[b!==!1?T.jsx(Gge,{ownerState:U,className:W.icon,children:b||w[k]||NL[k]}):null,T.jsx(Qge,{ownerState:U,className:W.message,children:p}),f!=null?T.jsx(ML,{ownerState:U,className:W.action,children:f}):null,f==null&&S?T.jsx(ML,{ownerState:U,className:W.action,children:T.jsx(se,z({size:"small","aria-label":v,title:v,color:"inherit",onClick:S},re,{children:T.jsx(ne,z({fontSize:"small"},Z))}))}):null]}))}),wu=Yge;function Xge(e){return kt("MuiTypography",e)}Et("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Jge=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Zge=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:a}=e,s={root:["root",o,e.align!=="inherit"&&`align${ze(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return Rt(s,Xge,a)},eve=Ve("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${ze(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>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})),BL={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},tve={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},nve=e=>tve[e]||e,rve=R.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiTypography"}),i=nve(r.color),o=jA(z({},r,{color:i})),{align:a="inherit",className:s,component:l,gutterBottom:u=!1,noWrap:f=!1,paragraph:p=!1,variant:d="body1",variantMapping:v=BL}=o,g=rt(o,Jge),y=z({},o,{align:a,color:i,className:s,component:l,gutterBottom:u,noWrap:f,paragraph:p,variant:d,variantMapping:v}),x=l||(p?"p":v[d]||BL[d])||"span",b=Zge(y);return T.jsx(eve,z({as:x,ref:n,ownerState:y,className:nt(b.root,s)},g))}),bn=rve;function ive(e){return kt("MuiAlertTitle",e)}Et("MuiAlertTitle",["root"]);const ove=["className"],ave=e=>{const{classes:t}=e;return Rt({root:["root"]},ive,t)},sve=Ve(bn,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2})),lve=R.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiAlertTitle"}),{className:i}=r,o=rt(r,ove),a=r,s=ave(a);return T.jsx(sve,z({gutterBottom:!0,component:"div",ownerState:a,ref:n,className:nt(s.root,i)},o))}),uve=lve;function cve(e){return kt("MuiAppBar",e)}Et("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const fve=["className","color","enableColorOnDark","position"],dve=e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${ze(t)}`,`position${ze(n)}`]};return Rt(i,cve,r)},E0=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,pve=Ve(Ap,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ze(n.position)}`],t[`color${ze(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return 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:E0(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:E0(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:E0(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:E0(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"}))}),hve=R.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiAppBar"}),{className:i,color:o="primary",enableColorOnDark:a=!1,position:s="fixed"}=r,l=rt(r,fve),u=z({},r,{color:o,position:s,enableColorOnDark:a}),f=dve(u);return T.jsx(pve,z({square:!0,component:"header",ownerState:u,elevation:4,className:nt(f.root,i,s==="fixed"&&"mui-fixed"),ref:n},l))}),mve=hve,gve=["components","componentsProps","slots","slotProps"],vve=Ve(Eme,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),yve=R.forwardRef(function(t,n){var r;const i=UA(),o=Ot({props:t,name:"MuiPopper"}),{components:a,componentsProps:s,slots:l,slotProps:u}=o,f=rt(o,gve),p=(r=l==null?void 0:l.root)!=null?r:a==null?void 0:a.Root;return T.jsx(vve,z({direction:i==null?void 0:i.direction,slots:{root:p},slotProps:u??s},f,{ref:n}))}),tV=yve;function bve(e){return kt("MuiListSubheader",e)}Et("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const wve=["className","color","component","disableGutters","disableSticky","inset"],_ve=e=>{const{classes:t,color:n,disableGutters:r,inset:i,disableSticky:o}=e,a={root:["root",n!=="default"&&`color${ze(n)}`,!r&&"gutters",i&&"inset",!o&&"sticky"]};return Rt(a,bve,t)},xve=Ve("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ze(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>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})),Sve=R.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiListSubheader"}),{className:i,color:o="default",component:a="li",disableGutters:s=!1,disableSticky:l=!1,inset:u=!1}=r,f=rt(r,wve),p=z({},r,{color:o,component:a,disableGutters:s,disableSticky:l,inset:u}),d=_ve(p);return T.jsx(xve,z({as:a,className:nt(d.root,i),ref:n,ownerState:p},f))}),nV=Sve,Eve=fl(T.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 Cve(e){return kt("MuiChip",e)}const kve=Et("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"]),cn=kve,Tve=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],Rve=e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:o,onDelete:a,clickable:s,variant:l}=e,u={root:["root",l,n&&"disabled",`size${ze(r)}`,`color${ze(i)}`,s&&"clickable",s&&`clickableColor${ze(i)}`,a&&"deletable",a&&`deletableColor${ze(i)}`,`${l}${ze(i)}`],label:["label",`label${ze(r)}`],avatar:["avatar",`avatar${ze(r)}`,`avatarColor${ze(i)}`],icon:["icon",`icon${ze(r)}`,`iconColor${ze(o)}`],deleteIcon:["deleteIcon",`deleteIcon${ze(r)}`,`deleteIconColor${ze(i)}`,`deleteIcon${ze(l)}Color${ze(i)}`]};return Rt(u,Cve,t)},Ove=Ve("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[{[`& .${cn.avatar}`]:t.avatar},{[`& .${cn.avatar}`]:t[`avatar${ze(s)}`]},{[`& .${cn.avatar}`]:t[`avatarColor${ze(r)}`]},{[`& .${cn.icon}`]:t.icon},{[`& .${cn.icon}`]:t[`icon${ze(s)}`]},{[`& .${cn.icon}`]:t[`iconColor${ze(i)}`]},{[`& .${cn.deleteIcon}`]:t.deleteIcon},{[`& .${cn.deleteIcon}`]:t[`deleteIcon${ze(s)}`]},{[`& .${cn.deleteIcon}`]:t[`deleteIconColor${ze(r)}`]},{[`& .${cn.deleteIcon}`]:t[`deleteIcon${ze(l)}Color${ze(r)}`]},t.root,t[`size${ze(s)}`],t[`color${ze(r)}`],o&&t.clickable,o&&r!=="default"&&t[`clickableColor${ze(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${ze(r)}`],t[l],t[`${l}${ze(r)}`]]}})(({theme:e,ownerState:t})=>{const n=on(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",[`&.${cn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${cn.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:r,fontSize:e.typography.pxToRem(12)},[`& .${cn.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${cn.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${cn.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${cn.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"})),[`& .${cn.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)`:on(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)`:on(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&&{[`&.${cn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:on(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${cn.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}))`:on(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${cn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:on(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, &.${cn.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]}`,[`&.${cn.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${cn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${cn.avatar}`]:{marginLeft:4},[`& .${cn.avatarSmall}`]:{marginLeft:2},[`& .${cn.icon}`]:{marginLeft:4},[`& .${cn.iconSmall}`]:{marginLeft:2},[`& .${cn.deleteIcon}`]:{marginRight:5},[`& .${cn.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)`:on(e.palette[t.color].main,.7)}`,[`&.${cn.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:on(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${cn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:on(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${cn.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:on(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),Ave=Ve("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${ze(r)}`]]}})(({ownerState:e})=>z({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.size==="small"&&{paddingLeft:8,paddingRight:8}));function jL(e){return e.key==="Backspace"||e.key==="Delete"}const Dve=R.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiChip"}),{avatar:i,className:o,clickable:a,color:s="default",component:l,deleteIcon:u,disabled:f=!1,icon:p,label:d,onClick:v,onDelete:g,onKeyDown:y,onKeyUp:x,size:b="medium",variant:w="filled",tabIndex:S,skipFocusWhenDisabled:C=!1}=r,k=rt(r,Tve),D=R.useRef(null),P=Un(D,n),B=ee=>{ee.stopPropagation(),g&&g(ee)},V=ee=>{ee.currentTarget===ee.target&&jL(ee)&&ee.preventDefault(),y&&y(ee)},U=ee=>{ee.currentTarget===ee.target&&(g&&jL(ee)?g(ee):ee.key==="Escape"&&D.current&&D.current.blur()),x&&x(ee)},W=a!==!1&&v?!0:a,se=W||g?Uc:l||"div",ne=z({},r,{component:se,disabled:f,size:b,color:s,iconColor:R.isValidElement(p)&&p.props.color||s,onDelete:!!g,clickable:W,variant:w}),re=Rve(ne),Z=se===Uc?z({component:l||"div",focusVisibleClassName:re.focusVisible},g&&{disableRipple:!0}):{};let F=null;g&&(F=u&&R.isValidElement(u)?R.cloneElement(u,{className:nt(u.props.className,re.deleteIcon),onClick:B}):T.jsx(Eve,{className:nt(re.deleteIcon),onClick:B}));let te=null;i&&R.isValidElement(i)&&(te=R.cloneElement(i,{className:nt(re.avatar,i.props.className)}));let Y=null;return p&&R.isValidElement(p)&&(Y=R.cloneElement(p,{className:nt(re.icon,p.props.className)})),T.jsxs(Ove,z({as:se,className:nt(re.root,o),disabled:W&&f?!0:void 0,onClick:v,onKeyDown:V,onKeyUp:U,ref:P,tabIndex:C&&f?-1:S,ownerState:ne},Z,k,{children:[te||Y,T.jsx(Ave,{className:nt(re.label),ownerState:ne,children:d}),F]}))}),rV=Dve;function Dp({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 Ive=R.createContext(void 0),T_=Ive;function Pu(){return R.useContext(T_)}function Pve(e){return T.jsx(Jfe,z({},e,{defaultTheme:E_}))}function zL(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function tD(e,t=!1){return e&&(zL(e.value)&&e.value!==""||t&&zL(e.defaultValue)&&e.defaultValue!=="")}function $ve(e){return e.startAdornment}function Fve(e){return kt("MuiInputBase",e)}const Lve=Et("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),gp=Lve,Mve=["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"],R_=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${ze(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},O_=(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]},Nve=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:o,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:f,readOnly:p,size:d,startAdornment:v,type:g}=e,y={root:["root",`color${ze(n)}`,r&&"disabled",i&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",d==="small"&&"sizeSmall",f&&"multiline",v&&"adornedStart",o&&"adornedEnd",u&&"hiddenLabel",p&&"readOnly"],input:["input",r&&"disabled",g==="search"&&"inputTypeSearch",f&&"inputMultiline",d==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",v&&"inputAdornedStart",o&&"inputAdornedEnd",p&&"readOnly"]};return Rt(y,Fve,t)},A_=Ve("div",{name:"MuiInputBase",slot:"Root",overridesResolver:R_})(({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",[`&.${gp.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%"})),D_=Ve("input",{name:"MuiInputBase",slot:"Input",overridesResolver:O_})(({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] + .${gp.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},[`&.${gp.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"})}),Bve=T.jsx(Pve,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),jve=R.forwardRef(function(t,n){var r;const i=Ot({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:s,className:l,components:u={},componentsProps:f={},defaultValue:p,disabled:d,disableInjectingGlobalStyles:v,endAdornment:g,fullWidth:y=!1,id:x,inputComponent:b="input",inputProps:w={},inputRef:S,maxRows:C,minRows:k,multiline:D=!1,name:P,onBlur:B,onChange:V,onClick:U,onFocus:W,onKeyDown:se,onKeyUp:ne,placeholder:re,readOnly:Z,renderSuffix:F,rows:te,slotProps:Y={},slots:ee={},startAdornment:G,type:L="text",value:A}=i,ie=rt(i,Mve),ae=w.value!=null?w.value:A,{current:ce}=R.useRef(ae!=null),oe=R.useRef(),xe=R.useCallback(fe=>{},[]),ke=Un(oe,S,w.ref,xe),[Ee,Fe]=R.useState(!1),Le=Pu(),Ue=Dp({props:i,muiFormControl:Le,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Ue.focused=Le?Le.focused:Ee,R.useEffect(()=>{!Le&&d&&Ee&&(Fe(!1),B&&B())},[Le,d,Ee,B]);const He=Le&&Le.onFilled,Qe=Le&&Le.onEmpty,qe=R.useCallback(fe=>{tD(fe)?He&&He():Qe&&Qe()},[He,Qe]);mo(()=>{ce&&qe({value:ae})},[ae,qe,ce]);const ut=fe=>{if(Ue.disabled){fe.stopPropagation();return}W&&W(fe),w.onFocus&&w.onFocus(fe),Le&&Le.onFocus?Le.onFocus(fe):Fe(!0)},et=fe=>{B&&B(fe),w.onBlur&&w.onBlur(fe),Le&&Le.onBlur?Le.onBlur(fe):Fe(!1)},it=(fe,...le)=>{if(!ce){const Re=fe.target||oe.current;if(Re==null)throw new Error(yu(1));qe({value:Re.value})}w.onChange&&w.onChange(fe,...le),V&&V(fe,...le)};R.useEffect(()=>{qe(oe.current)},[]);const wt=fe=>{oe.current&&fe.currentTarget===fe.target&&oe.current.focus(),U&&U(fe)};let me=b,Te=w;D&&me==="input"&&(te?Te=z({type:void 0,minRows:te,maxRows:te},Te):Te=z({type:void 0,maxRows:C,minRows:k},Te),me=Gme);const Ce=fe=>{qe(fe.animationName==="mui-auto-fill-cancel"?oe.current:{value:"x"})};R.useEffect(()=>{Le&&Le.setAdornedStart(!!G)},[Le,G]);const Oe=z({},i,{color:Ue.color||"primary",disabled:Ue.disabled,endAdornment:g,error:Ue.error,focused:Ue.focused,formControl:Le,fullWidth:y,hiddenLabel:Ue.hiddenLabel,multiline:D,size:Ue.size,startAdornment:G,type:L}),j=Nve(Oe),H=ee.root||u.Root||A_,he=Y.root||f.root||{},Q=ee.input||u.Input||D_;return Te=z({},Te,(r=Y.input)!=null?r:f.input),T.jsxs(R.Fragment,{children:[!v&&Bve,T.jsxs(H,z({},he,!as(H)&&{ownerState:z({},Oe,he.ownerState)},{ref:n,onClick:wt},ie,{className:nt(j.root,he.className,l),children:[G,T.jsx(T_.Provider,{value:null,children:T.jsx(Q,z({ownerState:Oe,"aria-invalid":Ue.error,"aria-describedby":o,autoComplete:a,autoFocus:s,defaultValue:p,disabled:Ue.disabled,id:x,onAnimationStart:Ce,name:P,placeholder:re,readOnly:Z,required:Ue.required,rows:te,value:ae,onKeyDown:se,onKeyUp:ne,type:L},Te,!as(Q)&&{as:me,ownerState:z({},Oe,Te.ownerState)},{ref:ke,className:nt(j.input,Te.className),onBlur:et,onChange:it,onFocus:ut}))}),g,F?F(z({},Ue,{startAdornment:G})):null]}))]})}),I_=jve;function zve(e){return kt("MuiInput",e)}const Uve=z({},gp,Et("MuiInput",["root","underline","input"])),Xh=Uve;function Vve(e){return kt("MuiOutlinedInput",e)}const Wve=z({},gp,Et("MuiOutlinedInput",["root","notchedOutline","input"])),$l=Wve;function Kve(e){return kt("MuiFilledInput",e)}const Hve=z({},gp,Et("MuiFilledInput",["root","underline","input"])),tc=Hve,qve=fl(T.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Gve=fl(T.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 Qve(e){return kt("MuiAvatar",e)}Et("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const Yve=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],Xve=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Rt({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},Qve,t)},Jve=Ve("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]}))),Zve=Ve("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),eye=Ve(Gve,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function tye({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,o]=R.useState(!1);return R.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 nye=R.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiAvatar"}),{alt:i,children:o,className:a,component:s="div",imgProps:l,sizes:u,src:f,srcSet:p,variant:d="circular"}=r,v=rt(r,Yve);let g=null;const y=tye(z({},l,{src:f,srcSet:p})),x=f||p,b=x&&y!=="error",w=z({},r,{colorDefault:!b,component:s,variant:d}),S=Xve(w);return b?g=T.jsx(Zve,z({alt:i,src:f,srcSet:p,sizes:u,ownerState:w,className:S.img},l)):o!=null?g=o:x&&i?g=i[0]:g=T.jsx(eye,{ownerState:w,className:S.fallback}),T.jsx(Jve,z({as:s,ownerState:w,className:nt(S.root,a),ref:n},v,{children:g}))}),ET=nye,rye=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],iye={entering:{opacity:1},entered:{opacity:1}},oye=R.forwardRef(function(t,n){const r=Da(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:s,easing:l,in:u,onEnter:f,onEntered:p,onEntering:d,onExit:v,onExited:g,onExiting:y,style:x,timeout:b=i,TransitionComponent:w=Z9}=t,S=rt(t,rye),C=R.useRef(null),k=Un(C,s.ref,n),D=re=>Z=>{if(re){const F=C.current;Z===void 0?re(F):re(F,Z)}},P=D(d),B=D((re,Z)=>{eV(re);const F=A1({style:x,timeout:b,easing:l},{mode:"enter"});re.style.webkitTransition=r.transitions.create("opacity",F),re.style.transition=r.transitions.create("opacity",F),f&&f(re,Z)}),V=D(p),U=D(y),W=D(re=>{const Z=A1({style:x,timeout:b,easing:l},{mode:"exit"});re.style.webkitTransition=r.transitions.create("opacity",Z),re.style.transition=r.transitions.create("opacity",Z),v&&v(re)}),se=D(g),ne=re=>{o&&o(C.current,re)};return T.jsx(w,z({appear:a,in:u,nodeRef:C,onEnter:B,onEntered:V,onEntering:P,onExit:W,onExited:se,onExiting:U,addEndListener:ne,timeout:b},S,{children:(re,Z)=>R.cloneElement(s,z({style:z({opacity:0,visibility:re==="exited"&&!u?"hidden":void 0},iye[re],x,s.props.style),ref:k},Z))}))}),iV=oye;function aye(e){return kt("MuiBackdrop",e)}Et("MuiBackdrop",["root","invisible"]);const sye=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],lye=e=>{const{classes:t,invisible:n}=e;return Rt({root:["root",n&&"invisible"]},aye,t)},uye=Ve("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"})),cye=R.forwardRef(function(t,n){var r,i,o;const a=Ot({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:u="div",components:f={},componentsProps:p={},invisible:d=!1,open:v,slotProps:g={},slots:y={},TransitionComponent:x=iV,transitionDuration:b}=a,w=rt(a,sye),S=z({},a,{component:u,invisible:d}),C=lye(S),k=(r=g.root)!=null?r:p.root;return T.jsx(x,z({in:v,timeout:b},w,{children:T.jsx(uye,z({"aria-hidden":!0},k,{as:(i=(o=y.root)!=null?o:f.Root)!=null?i:u,className:nt(C.root,l,k==null?void 0:k.className),ownerState:z({},S,k==null?void 0:k.ownerState),classes:C,ref:n,children:s}))}))}),oV=cye,fye=Op(),dye=ipe({defaultTheme:fye,defaultClassName:"MuiBox-root",generateClassName:CA.generate}),Pt=dye;function pye(e){return kt("MuiButton",e)}const hye=Et("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"]),C0=hye,mye=R.createContext({}),gye=mye,vye=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],yye=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:a}=e,s={root:["root",o,`${o}${ze(t)}`,`size${ze(i)}`,`${o}Size${ze(i)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${ze(i)}`],endIcon:["endIcon",`iconSize${ze(i)}`]},l=Rt(s,pye,a);return z({},a,l)},aV=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}}),bye=Ve(Uc,{shouldForwardProp:e=>Ia(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ze(n.color)}`],t[`size${ze(n.size)}`],t[`${n.variant}Size${ze(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;return 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})`:on(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})`:on(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})`:on(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]}),[`&.${C0.focusVisible}`]:z({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${C0.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 ${on(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"},[`&.${C0.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${C0.disabled}`]:{boxShadow:"none"}}),wye=Ve("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${ze(n.size)}`]]}})(({ownerState:e})=>z({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},aV(e))),_ye=Ve("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${ze(n.size)}`]]}})(({ownerState:e})=>z({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},aV(e))),xye=R.forwardRef(function(t,n){const r=R.useContext(gye),i=EA(r,t),o=Ot({props:i,name:"MuiButton"}),{children:a,color:s="primary",component:l="button",className:u,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:d=!1,endIcon:v,focusVisibleClassName:g,fullWidth:y=!1,size:x="medium",startIcon:b,type:w,variant:S="text"}=o,C=rt(o,vye),k=z({},o,{color:s,component:l,disabled:f,disableElevation:p,disableFocusRipple:d,fullWidth:y,size:x,type:w,variant:S}),D=yye(k),P=b&&T.jsx(wye,{className:D.startIcon,ownerState:k,children:b}),B=v&&T.jsx(_ye,{className:D.endIcon,ownerState:k,children:v});return T.jsxs(bye,z({ownerState:k,className:nt(r.className,D.root,u),component:l,disabled:f,focusRipple:!d,focusVisibleClassName:nt(D.focusVisible,g),ref:n,type:w},C,{classes:D,children:[P,a,B]}))}),Jc=xye;function Sye(e){return kt("PrivateSwitchBase",e)}Et("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Eye=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Cye=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,o={root:["root",n&&"checked",r&&"disabled",i&&`edge${ze(i)}`],input:["input"]};return Rt(o,Sye,t)},kye=Ve(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})),Tye=Ve("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Rye=R.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:o,className:a,defaultChecked:s,disabled:l,disableFocusRipple:u=!1,edge:f=!1,icon:p,id:d,inputProps:v,inputRef:g,name:y,onBlur:x,onChange:b,onFocus:w,readOnly:S,required:C=!1,tabIndex:k,type:D,value:P}=t,B=rt(t,Eye),[V,U]=up({controlled:i,default:!!s,name:"SwitchBase",state:"checked"}),W=Pu(),se=ee=>{w&&w(ee),W&&W.onFocus&&W.onFocus(ee)},ne=ee=>{x&&x(ee),W&&W.onBlur&&W.onBlur(ee)},re=ee=>{if(ee.nativeEvent.defaultPrevented)return;const G=ee.target.checked;U(G),b&&b(ee,G)};let Z=l;W&&typeof Z>"u"&&(Z=W.disabled);const F=D==="checkbox"||D==="radio",te=z({},t,{checked:V,disabled:Z,disableFocusRipple:u,edge:f}),Y=Cye(te);return T.jsxs(kye,z({component:"span",className:nt(Y.root,a),centerRipple:!0,focusRipple:!u,disabled:Z,tabIndex:null,role:void 0,onFocus:se,onBlur:ne,ownerState:te,ref:n},B,{children:[T.jsx(Tye,z({autoFocus:r,checked:i,defaultChecked:s,className:Y.input,disabled:Z,id:F?d:void 0,name:y,onChange:re,readOnly:S,ref:g,required:C,ownerState:te,tabIndex:k,type:D},D==="checkbox"&&P===void 0?{}:{value:P},v)),V?o:p]}))}),Oye=Rye;function Aye(e){return kt("MuiCircularProgress",e)}Et("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Dye=["className","color","disableShrink","size","style","thickness","value","variant"];let P_=e=>e,UL,VL,WL,KL;const Fl=44,Iye=mv(UL||(UL=P_`
|
|
138
|
-
0% {
|
|
139
|
-
transform: rotate(0deg);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
100% {
|
|
143
|
-
transform: rotate(360deg);
|
|
144
|
-
}
|
|
145
|
-
`)),Pye=mv(VL||(VL=P_`
|
|
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
|
-
`)),$ye=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,o={root:["root",n,`color${ze(r)}`],svg:["svg"],circle:["circle",`circle${ze(n)}`,i&&"circleDisableShrink"]};return Rt(o,Aye,t)},Fye=Ve("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ze(n.color)}`]]}})(({ownerState:e,theme:t})=>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"&&$A(WL||(WL=P_`
|
|
161
|
-
animation: ${0} 1.4s linear infinite;
|
|
162
|
-
`),Iye)),Lye=Ve("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Mye=Ve("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ze(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>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&&$A(KL||(KL=P_`
|
|
163
|
-
animation: ${0} 1.4s ease-in-out infinite;
|
|
164
|
-
`),Pye)),Nye=R.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:a=!1,size:s=40,style:l,thickness:u=3.6,value:f=0,variant:p="indeterminate"}=r,d=rt(r,Dye),v=z({},r,{color:o,disableShrink:a,size:s,thickness:u,value:f,variant:p}),g=$ye(v),y={},x={},b={};if(p==="determinate"){const w=2*Math.PI*((Fl-u)/2);y.strokeDasharray=w.toFixed(3),b["aria-valuenow"]=Math.round(f),y.strokeDashoffset=`${((100-f)/100*w).toFixed(3)}px`,x.transform="rotate(-90deg)"}return T.jsx(Fye,z({className:nt(g.root,i),style:z({width:s,height:s},x,l),ownerState:v,ref:n,role:"progressbar"},b,d,{children:T.jsx(Lye,{className:g.svg,ownerState:v,viewBox:`${Fl/2} ${Fl/2} ${Fl} ${Fl}`,children:T.jsx(Mye,{className:g.circle,style:y,ownerState:v,cx:Fl,cy:Fl,r:(Fl-u)/2,fill:"none",strokeWidth:u})})}))}),sV=Nye,Bye=["BackdropComponent","BackdropProps","closeAfterTransition","children","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","slotProps","slots","theme"],jye=e=>e.classes,zye=Ve("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"})),Uye=Ve(oV,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Vye=R.forwardRef(function(t,n){var r,i,o,a,s,l;const u=Ot({name:"MuiModal",props:t}),{BackdropComponent:f=Uye,BackdropProps:p,closeAfterTransition:d=!1,children:v,component:g,components:y={},componentsProps:x={},disableAutoFocus:b=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:S=!1,disablePortal:C=!1,disableRestoreFocus:k=!1,disableScrollLock:D=!1,hideBackdrop:P=!1,keepMounted:B=!1,slotProps:V,slots:U,theme:W}=u,se=rt(u,Bye),[ne,re]=R.useState(!0),Z={closeAfterTransition:d,disableAutoFocus:b,disableEnforceFocus:w,disableEscapeKeyDown:S,disablePortal:C,disableRestoreFocus:k,disableScrollLock:D,hideBackdrop:P,keepMounted:B},F=z({},u,Z,{exited:ne}),te=jye(F),Y=(r=(i=U==null?void 0:U.root)!=null?i:y.Root)!=null?r:zye,ee=(o=(a=U==null?void 0:U.backdrop)!=null?a:y.Backdrop)!=null?o:f,G=(s=V==null?void 0:V.root)!=null?s:x.root,L=(l=V==null?void 0:V.backdrop)!=null?l:x.backdrop;return T.jsx(Mme,z({slots:{root:Y,backdrop:ee},slotProps:{root:()=>z({},vT(G,F),!as(Y)&&{as:g,theme:W}),backdrop:()=>z({},p,vT(L,F))},onTransitionEnter:()=>re(!1),onTransitionExited:()=>re(!0),ref:n},se,{classes:te},Z,{children:v}))}),lV=Vye;function Wye(e){return kt("MuiDialog",e)}const Kye=Et("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),kE=Kye,Hye=R.createContext({}),uV=Hye,qye=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],Gye=Ve(oV,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Qye=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:o}=e,a={root:["root"],container:["container",`scroll${ze(n)}`],paper:["paper",`paperScroll${ze(n)}`,`paperWidth${ze(String(r))}`,i&&"paperFullWidth",o&&"paperFullScreen"]};return Rt(a,Wye,t)},Yye=Ve(lV,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Xye=Ve("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${ze(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"}})),Jye=Ve(Ap,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${ze(n.scroll)}`],t[`paperWidth${ze(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>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}`,[`&.${kE.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}`,[`&.${kE.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,[`&.${kE.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Zye=R.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiDialog"}),i=Da(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":s,BackdropComponent:l,BackdropProps:u,children:f,className:p,disableEscapeKeyDown:d=!1,fullScreen:v=!1,fullWidth:g=!1,maxWidth:y="sm",onBackdropClick:x,onClose:b,open:w,PaperComponent:S=Ap,PaperProps:C={},scroll:k="paper",TransitionComponent:D=iV,transitionDuration:P=o,TransitionProps:B}=r,V=rt(r,qye),U=z({},r,{disableEscapeKeyDown:d,fullScreen:v,fullWidth:g,maxWidth:y,scroll:k}),W=Qye(U),se=R.useRef(),ne=te=>{se.current=te.target===te.currentTarget},re=te=>{se.current&&(se.current=null,x&&x(te),b&&b(te,"backdropClick"))},Z=dv(s),F=R.useMemo(()=>({titleId:Z}),[Z]);return T.jsx(Yye,z({className:nt(W.root,p),closeAfterTransition:!0,components:{Backdrop:Gye},componentsProps:{backdrop:z({transitionDuration:P,as:l},u)},disableEscapeKeyDown:d,onClose:b,open:w,ref:n,onClick:re,ownerState:U},V,{children:T.jsx(D,z({appear:!0,in:w,timeout:P,role:"presentation"},B,{children:T.jsx(Xye,{className:nt(W.container),onMouseDown:ne,ownerState:U,children:T.jsx(Jye,z({as:S,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":Z},C,{className:nt(W.paper,C.className),ownerState:U,children:T.jsx(uV.Provider,{value:F,children:f})}))})}))}))}),$_=Zye;function e0e(e){return kt("MuiDialogActions",e)}Et("MuiDialogActions",["root","spacing"]);const t0e=["className","disableSpacing"],n0e=e=>{const{classes:t,disableSpacing:n}=e;return Rt({root:["root",!n&&"spacing"]},e0e,t)},r0e=Ve("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}})),i0e=R.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:o=!1}=r,a=rt(r,t0e),s=z({},r,{disableSpacing:o}),l=n0e(s);return T.jsx(r0e,z({className:nt(l.root,i),ownerState:s,ref:n},a))}),cV=i0e;function o0e(e){return kt("MuiDialogContent",e)}Et("MuiDialogContent",["root","dividers"]);function a0e(e){return kt("MuiDialogTitle",e)}const s0e=Et("MuiDialogTitle",["root"]),l0e=s0e,u0e=["className","dividers"],c0e=e=>{const{classes:t,dividers:n}=e;return Rt({root:["root",n&&"dividers"]},o0e,t)},f0e=Ve("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}`}:{[`.${l0e.root} + &`]:{paddingTop:0}})),d0e=R.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiDialogContent"}),{className:i,dividers:o=!1}=r,a=rt(r,u0e),s=z({},r,{dividers:o}),l=c0e(s);return T.jsx(f0e,z({className:nt(l.root,i),ownerState:s,ref:n},a))}),F_=d0e;function p0e(e){return kt("MuiDialogContentText",e)}Et("MuiDialogContentText",["root"]);const h0e=["children","className"],m0e=e=>{const{classes:t}=e,r=Rt({root:["root"]},p0e,t);return z({},t,r)},g0e=Ve(bn,{shouldForwardProp:e=>Ia(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),v0e=R.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiDialogContentText"}),{className:i}=r,o=rt(r,h0e),a=m0e(o);return T.jsx(g0e,z({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:o,className:nt(a.root,i)},r,{classes:a}))}),fV=v0e,y0e=["className","id"],b0e=e=>{const{classes:t}=e;return Rt({root:["root"]},a0e,t)},w0e=Ve(bn,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),_0e=R.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiDialogTitle"}),{className:i,id:o}=r,a=rt(r,y0e),s=r,l=b0e(s),{titleId:u=o}=R.useContext(uV);return T.jsx(w0e,z({component:"h2",className:nt(l.root,i),ownerState:s,ref:n,variant:"h6",id:u},a))}),nD=_0e;function x0e(e){return kt("MuiDivider",e)}const S0e=Et("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),HL=S0e,E0e=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],C0e=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:a,textAlign:s,variant:l}=e;return Rt({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"]},x0e,r)},k0e=Ve("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)`:on(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%"}})),T0e=Ve("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)`})),R0e=R.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiDivider"}),{absolute:i=!1,children:o,className:a,component:s=o?"div":"hr",flexItem:l=!1,light:u=!1,orientation:f="horizontal",role:p=s!=="hr"?"separator":void 0,textAlign:d="center",variant:v="fullWidth"}=r,g=rt(r,E0e),y=z({},r,{absolute:i,component:s,flexItem:l,light:u,orientation:f,role:p,textAlign:d,variant:v}),x=C0e(y);return T.jsx(k0e,z({as:s,className:nt(x.root,a),role:p,ref:n,ownerState:y},g,{children:o?T.jsx(T0e,{className:x.wrapper,ownerState:y,children:o}):null}))}),O0e=R0e,A0e=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],D0e=e=>{const{classes:t,disableUnderline:n}=e,i=Rt({root:["root",!n&&"underline"],input:["input"]},Kve,t);return z({},t,i)},I0e=Ve(A_,{shouldForwardProp:e=>Ia(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...R_(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}},[`&.${tc.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${tc.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"},[`&.${tc.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${tc.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(.${tc.disabled}, .${tc.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${tc.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}))}),P0e=Ve(D_,{name:"MuiFilledInput",slot:"Input",overridesResolver:O_})(({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})),dV=R.forwardRef(function(t,n){var r,i,o,a;const s=Ot({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:f=!1,inputComponent:p="input",multiline:d=!1,slotProps:v,slots:g={},type:y="text"}=s,x=rt(s,A0e),b=z({},s,{fullWidth:f,inputComponent:p,multiline:d,type:y}),w=D0e(s),S={root:{ownerState:b},input:{ownerState:b}},C=v??u?ji(v??u,S):S,k=(r=(i=g.root)!=null?i:l.Root)!=null?r:I0e,D=(o=(a=g.input)!=null?a:l.Input)!=null?o:P0e;return T.jsx(I_,z({slots:{root:k,input:D},componentsProps:C,fullWidth:f,inputComponent:p,multiline:d,ref:n,type:y},x,{classes:w}))});dV.muiName="Input";const pV=dV;function $0e(e){return kt("MuiFormControl",e)}Et("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const F0e=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],L0e=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${ze(n)}`,r&&"fullWidth"]};return Rt(i,$0e,t)},M0e=Ve("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>z({},t.root,t[`margin${ze(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%"})),N0e=R.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiFormControl"}),{children:i,className:o,color:a="primary",component:s="div",disabled:l=!1,error:u=!1,focused:f,fullWidth:p=!1,hiddenLabel:d=!1,margin:v="none",required:g=!1,size:y="medium",variant:x="outlined"}=r,b=rt(r,F0e),w=z({},r,{color:a,component:s,disabled:l,error:u,fullWidth:p,hiddenLabel:d,margin:v,required:g,size:y,variant:x}),S=L0e(w),[C,k]=R.useState(()=>{let ne=!1;return i&&R.Children.forEach(i,re=>{if(!Md(re,["Input","Select"]))return;const Z=Md(re,["Select"])?re.props.input:re;Z&&$ve(Z.props)&&(ne=!0)}),ne}),[D,P]=R.useState(()=>{let ne=!1;return i&&R.Children.forEach(i,re=>{Md(re,["Input","Select"])&&tD(re.props,!0)&&(ne=!0)}),ne}),[B,V]=R.useState(!1);l&&B&&V(!1);const U=f!==void 0&&!l?f:B;let W;const se=R.useMemo(()=>({adornedStart:C,setAdornedStart:k,color:a,disabled:l,error:u,filled:D,focused:U,fullWidth:p,hiddenLabel:d,size:y,onBlur:()=>{V(!1)},onEmpty:()=>{P(!1)},onFilled:()=>{P(!0)},onFocus:()=>{V(!0)},registerEffect:W,required:g,variant:x}),[C,a,l,u,D,U,p,d,W,g,y,x]);return T.jsx(T_.Provider,{value:se,children:T.jsx(M0e,z({as:s,ownerState:w,className:nt(S.root,o),ref:n},b,{children:i}))})}),rD=N0e;function B0e(e){return kt("MuiFormHelperText",e)}const j0e=Et("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),qL=j0e;var GL;const z0e=["children","className","component","disabled","error","filled","focused","margin","required","variant"],U0e=e=>{const{classes:t,contained:n,size:r,disabled:i,error:o,filled:a,focused:s,required:l}=e,u={root:["root",i&&"disabled",o&&"error",r&&`size${ze(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return Rt(u,B0e,t)},V0e=Ve("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ze(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>z({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${qL.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${qL.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),W0e=R.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiFormHelperText"}),{children:i,className:o,component:a="p"}=r,s=rt(r,z0e),l=Pu(),u=Dp({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),f=z({},r,{component:a,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),p=U0e(f);return T.jsx(V0e,z({as:a,ownerState:f,className:nt(p.root,o),ref:n},s,{children:i===" "?GL||(GL=T.jsx("span",{className:"notranslate",children:""})):i}))}),K0e=W0e;function H0e(e){return kt("MuiFormLabel",e)}const q0e=Et("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),tg=q0e,G0e=["children","className","color","component","disabled","error","filled","focused","required"],Q0e=e=>{const{classes:t,color:n,focused:r,disabled:i,error:o,filled:a,required:s}=e,l={root:["root",`color${ze(n)}`,i&&"disabled",o&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",o&&"error"]};return Rt(l,H0e,t)},Y0e=Ve("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}})),X0e=Ve("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${tg.error}`]:{color:(e.vars||e).palette.error.main}})),J0e=R.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiFormLabel"}),{children:i,className:o,component:a="label"}=r,s=rt(r,G0e),l=Pu(),u=Dp({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),f=z({},r,{color:u.color||"primary",component:a,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),p=Q0e(f);return T.jsxs(Y0e,z({as:a,ownerState:f,className:nt(p.root,o),ref:n},s,{children:[i,u.required&&T.jsxs(X0e,{ownerState:f,"aria-hidden":!0,className:p.asterisk,children:[" ","*"]})]}))}),Z0e=J0e,ebe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function CT(e){return`scale(${e}, ${e**2})`}const tbe={entering:{opacity:1,transform:CT(1)},entered:{opacity:1,transform:"none"}},TE=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),hV=R.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:o,easing:a,in:s,onEnter:l,onEntered:u,onEntering:f,onExit:p,onExited:d,onExiting:v,style:g,timeout:y="auto",TransitionComponent:x=Z9}=t,b=rt(t,ebe),w=R.useRef(),S=R.useRef(),C=Da(),k=R.useRef(null),D=Un(k,o.ref,n),P=Z=>F=>{if(Z){const te=k.current;F===void 0?Z(te):Z(te,F)}},B=P(f),V=P((Z,F)=>{eV(Z);const{duration:te,delay:Y,easing:ee}=A1({style:g,timeout:y,easing:a},{mode:"enter"});let G;y==="auto"?(G=C.transitions.getAutoHeightDuration(Z.clientHeight),S.current=G):G=te,Z.style.transition=[C.transitions.create("opacity",{duration:G,delay:Y}),C.transitions.create("transform",{duration:TE?G:G*.666,delay:Y,easing:ee})].join(","),l&&l(Z,F)}),U=P(u),W=P(v),se=P(Z=>{const{duration:F,delay:te,easing:Y}=A1({style:g,timeout:y,easing:a},{mode:"exit"});let ee;y==="auto"?(ee=C.transitions.getAutoHeightDuration(Z.clientHeight),S.current=ee):ee=F,Z.style.transition=[C.transitions.create("opacity",{duration:ee,delay:te}),C.transitions.create("transform",{duration:TE?ee:ee*.666,delay:TE?te:te||ee*.333,easing:Y})].join(","),Z.style.opacity=0,Z.style.transform=CT(.75),p&&p(Z)}),ne=P(d),re=Z=>{y==="auto"&&(w.current=setTimeout(Z,S.current||0)),r&&r(k.current,Z)};return R.useEffect(()=>()=>{clearTimeout(w.current)},[]),T.jsx(x,z({appear:i,in:s,nodeRef:k,onEnter:V,onEntered:U,onEntering:B,onExit:se,onExited:ne,onExiting:W,addEndListener:re,timeout:y==="auto"?null:y},b,{children:(Z,F)=>R.cloneElement(o,z({style:z({opacity:0,transform:CT(.75),visibility:Z==="exited"&&!s?"hidden":void 0},tbe[Z],g,o.props.style),ref:D},F))}))});hV.muiSupportAuto=!0;const kT=hV;function nbe(e,t,n,r,i){const[o,a]=R.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return mo(()=>{let s=!0;if(!n)return;const l=n(e),u=()=>{s&&a(l.matches)};return u(),l.addListener(u),()=>{s=!1,l.removeListener(u)}},[e,n]),o}const mV=mu["useSyncExternalStore"];function rbe(e,t,n,r,i){const o=R.useCallback(()=>t,[t]),a=R.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]=R.useMemo(()=>{if(n===null)return[o,()=>()=>{}];const f=n(e);return[()=>f.matches,p=>(f.addListener(p),()=>{f.removeListener(p)})]},[o,n,e]);return mV(l,s,a)}function ibe(e,t={}){const n=UA(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:o=r?window.matchMedia:null,ssrMatchMedia:a=null,noSsr:s=!1}=B9({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(mV!==void 0?rbe:nbe)(l,i,o,a,s)}function obe(e){return kt("MuiImageList",e)}Et("MuiImageList",["root","masonry","quilted","standard","woven"]);const abe=R.createContext({}),gV=abe,sbe=["children","className","cols","component","rowHeight","gap","style","variant"],lbe=e=>{const{classes:t,variant:n}=e;return Rt({root:["root",n]},obe,t)},ube=Ve("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"})),cbe=R.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiImageList"}),{children:i,className:o,cols:a=2,component:s="ul",rowHeight:l="auto",gap:u=4,style:f,variant:p="standard"}=r,d=rt(r,sbe),v=R.useMemo(()=>({rowHeight:l,gap:u,variant:p}),[l,u,p]);R.useEffect(()=>{},[]);const g=z(p==="masonry"?{columnCount:a,columnGap:u}:{gridTemplateColumns:`repeat(${a}, 1fr)`,gap:u},f),y=z({},r,{component:s,gap:u,rowHeight:l,variant:p}),x=lbe(y);return T.jsx(ube,z({as:s,className:nt(x.root,x[p],o),ref:n,style:g,ownerState:y},d,{children:T.jsx(gV.Provider,{value:v,children:i})}))}),fbe=cbe;function dbe(e){return kt("MuiImageListItem",e)}const pbe=Et("MuiImageListItem",["root","img","standard","woven","masonry","quilted"]),QL=pbe,hbe=["children","className","cols","component","rows","style"],mbe=e=>{const{classes:t,variant:n}=e;return Rt({root:["root",n],img:["img"]},dbe,t)},gbe=Ve("li",{name:"MuiImageListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${QL.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%"}},{[`& .${QL.img}`]:z({objectFit:"cover",width:"100%",height:"100%",display:"block"},e.variant==="standard"&&{height:"auto",flexGrow:1})})),vbe=R.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiImageListItem"}),{children:i,className:o,cols:a=1,component:s="li",rows:l=1,style:u}=r,f=rt(r,hbe),{rowHeight:p="auto",gap:d,variant:v}=R.useContext(gV);let g="auto";v==="woven"?g=void 0:p!=="auto"&&(g=p*l+d*(l-1));const y=z({},r,{cols:a,component:s,gap:d,rowHeight:p,rows:l,variant:v}),x=mbe(y);return T.jsx(gbe,z({as:s,className:nt(x.root,x[v],o),ref:n,style:z({height:g,gridColumnEnd:v!=="masonry"?`span ${a}`:void 0,gridRowEnd:v!=="masonry"?`span ${l}`:void 0,marginBottom:v==="masonry"?d:void 0},u),ownerState:y},f,{children:R.Children.map(i,b=>R.isValidElement(b)?b.type==="img"||Md(b,["Image"])?R.cloneElement(b,{className:nt(x.img,b.props.className)}):b:null)}))}),ybe=vbe,bbe=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],wbe=e=>{const{classes:t,disableUnderline:n}=e,i=Rt({root:["root",!n&&"underline"],input:["input"]},zve,t);return z({},t,i)},_be=Ve(A_,{shouldForwardProp:e=>Ia(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...R_(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"},[`&.${Xh.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Xh.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(.${Xh.disabled}, .${Xh.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Xh.disabled}:before`]:{borderBottomStyle:"dotted"}})}),xbe=Ve(D_,{name:"MuiInput",slot:"Input",overridesResolver:O_})({}),vV=R.forwardRef(function(t,n){var r,i,o,a;const s=Ot({props:t,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:f,fullWidth:p=!1,inputComponent:d="input",multiline:v=!1,slotProps:g,slots:y={},type:x="text"}=s,b=rt(s,bbe),w=wbe(s),C={root:{ownerState:{disableUnderline:l}}},k=g??f?ji(g??f,C):C,D=(r=(i=y.root)!=null?i:u.Root)!=null?r:_be,P=(o=(a=y.input)!=null?a:u.Input)!=null?o:xbe;return T.jsx(I_,z({slots:{root:D,input:P},slotProps:k,fullWidth:p,inputComponent:d,multiline:v,ref:n,type:x},b,{classes:w}))});vV.muiName="Input";const yV=vV;function Sbe(e){return kt("MuiInputAdornment",e)}const Ebe=Et("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),YL=Ebe;var XL;const Cbe=["children","className","component","disablePointerEvents","disableTypography","position","variant"],kbe=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ze(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},Tbe=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:o,variant:a}=e,s={root:["root",n&&"disablePointerEvents",i&&`position${ze(i)}`,a,r&&"hiddenLabel",o&&`size${ze(o)}`]};return Rt(s,Sbe,t)},Rbe=Ve("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:kbe})(({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"&&{[`&.${YL.positionStart}&:not(.${YL.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),Obe=R.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiInputAdornment"}),{children:i,className:o,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:u,variant:f}=r,p=rt(r,Cbe),d=Pu()||{};let v=f;f&&d.variant,d&&!v&&(v=d.variant);const g=z({},r,{hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:s,position:u,variant:v}),y=Tbe(g);return T.jsx(T_.Provider,{value:null,children:T.jsx(Rbe,z({as:a,ownerState:g,className:nt(y.root,o),ref:n},p,{children:typeof i=="string"&&!l?T.jsx(bn,{color:"text.secondary",children:i}):T.jsxs(R.Fragment,{children:[u==="start"?XL||(XL=T.jsx("span",{className:"notranslate",children:""})):null,i]})}))})}),JL=Obe;function Abe(e){return kt("MuiInputLabel",e)}Et("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Dbe=["disableAnimation","margin","shrink","variant","className"],Ibe=e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:o,variant:a,required:s}=e,u=Rt({root:["root",n&&"formControl",!o&&"animated",i&&"shrink",r==="small"&&"sizeSmall",a],asterisk:[s&&"asterisk"]},Abe,t);return z({},t,u)},Pbe=Ve(Z0e,{shouldForwardProp:e=>Ia(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)"}))),$be=R.forwardRef(function(t,n){const r=Ot({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:o,className:a}=r,s=rt(r,Dbe),l=Pu();let u=o;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const f=Dp({props:r,muiFormControl:l,states:["size","variant","required"]}),p=z({},r,{disableAnimation:i,formControl:l,shrink:u,size:f.size,variant:f.variant,required:f.required}),d=Ibe(p);return T.jsx(Pbe,z({"data-shrink":u,ownerState:p,ref:n,className:nt(d.root,a)},s,{classes:d}))}),_u=$be;function Fbe(e){return kt("MuiLink",e)}const Lbe=Et("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Mbe=Lbe,bV={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Nbe=e=>bV[e]||e,Bbe=({theme:e,ownerState:t})=>{const n=Nbe(t.color),r=fp(e,`palette.${n}`,!1)||t.color,i=fp(e,`palette.${n}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:on(r,.4)},jbe=Bbe,zbe=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Ube=e=>{const{classes:t,component:n,focusVisible:r,underline:i}=e,o={root:["root",`underline${ze(i)}`,n==="button"&&"button",r&&"focusVisible"]};return Rt(o,Fbe,t)},Vbe=Ve(bn,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${ze(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>z({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&z({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:jbe({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"},[`&.${Mbe.focusVisible}`]:{outline:"auto"}})),Wbe=R.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiLink"}),{className:i,color:o="primary",component:a="a",onBlur:s,onFocus:l,TypographyClasses:u,underline:f="always",variant:p="inherit",sx:d}=r,v=rt(r,zbe),{isFocusVisibleRef:g,onBlur:y,onFocus:x,ref:b}=pv(),[w,S]=R.useState(!1),C=Un(n,b),k=V=>{y(V),g.current===!1&&S(!1),s&&s(V)},D=V=>{x(V),g.current===!0&&S(!0),l&&l(V)},P=z({},r,{color:o,component:a,focusVisible:w,underline:f,variant:p}),B=Ube(P);return T.jsx(Vbe,z({color:o,className:nt(B.root,i),classes:u,component:a,onBlur:k,onFocus:D,ref:C,ownerState:P,variant:p,sx:[...Object.keys(bV).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},v))}),iD=Wbe,Kbe=R.createContext({}),Js=Kbe;function Hbe(e){return kt("MuiList",e)}Et("MuiList",["root","padding","dense","subheader"]);const qbe=["children","className","component","dense","disablePadding","subheader"],Gbe=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return Rt({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},Hbe,t)},Qbe=Ve("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})),Ybe=R.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiList"}),{children:i,className:o,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=r,f=rt(r,qbe),p=R.useMemo(()=>({dense:s}),[s]),d=z({},r,{component:a,dense:s,disablePadding:l}),v=Gbe(d);return T.jsx(Js.Provider,{value:p,children:T.jsxs(Qbe,z({as:a,className:nt(v.root,o),ref:n,ownerState:d},f,{children:[u,i]}))})}),wV=Ybe;function Xbe(e){return kt("MuiListItem",e)}const Jbe=Et("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),od=Jbe,Zbe=Et("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),e1e=Zbe;function t1e(e){return kt("MuiListItemSecondaryAction",e)}Et("MuiListItemSecondaryAction",["root","disableGutters"]);const n1e=["className"],r1e=e=>{const{disableGutters:t,classes:n}=e;return Rt({root:["root",t&&"disableGutters"]},t1e,n)},i1e=Ve("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})),_V=R.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=r,o=rt(r,n1e),a=R.useContext(Js),s=z({},r,{disableGutters:a.disableGutters}),l=r1e(s);return T.jsx(i1e,z({className:nt(l.root,i),ownerState:s,ref:n},o))});_V.muiName="ListItemSecondaryAction";const o1e=_V,a1e=["className"],s1e=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],l1e=(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]},u1e=e=>{const{alignItems:t,button:n,classes:r,dense:i,disabled:o,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:u,selected:f}=e;return Rt({root:["root",i&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",o&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",f&&"selected"],container:["container"]},Xbe,r)},c1e=Ve("div",{name:"MuiListItem",slot:"Root",overridesResolver:l1e})(({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&&{[`& > .${e1e.root}`]:{paddingRight:48}},{[`&.${od.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${od.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:on(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${od.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:on(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${od.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"}},[`&.${od.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:on(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})`:on(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),f1e=Ve("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),d1e=R.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiListItem"}),{alignItems:i="center",autoFocus:o=!1,button:a=!1,children:s,className:l,component:u,components:f={},componentsProps:p={},ContainerComponent:d="li",ContainerProps:{className:v}={},dense:g=!1,disabled:y=!1,disableGutters:x=!1,disablePadding:b=!1,divider:w=!1,focusVisibleClassName:S,secondaryAction:C,selected:k=!1,slotProps:D={},slots:P={}}=r,B=rt(r.ContainerProps,a1e),V=rt(r,s1e),U=R.useContext(Js),W=R.useMemo(()=>({dense:g||U.dense||!1,alignItems:i,disableGutters:x}),[i,U.dense,g,x]),se=R.useRef(null);mo(()=>{o&&se.current&&se.current.focus()},[o]);const ne=R.Children.toArray(s),re=ne.length&&Md(ne[ne.length-1],["ListItemSecondaryAction"]),Z=z({},r,{alignItems:i,autoFocus:o,button:a,dense:W.dense,disabled:y,disableGutters:x,disablePadding:b,divider:w,hasSecondaryAction:re,selected:k}),F=u1e(Z),te=Un(se,n),Y=P.root||f.Root||c1e,ee=D.root||p.root||{},G=z({className:nt(F.root,ee.className,l),disabled:y},V);let L=u||"li";return a&&(G.component=u||"div",G.focusVisibleClassName=nt(od.focusVisible,S),L=Uc),re?(L=!G.component&&!u?"div":L,d==="li"&&(L==="li"?L="div":G.component==="li"&&(G.component="div")),T.jsx(Js.Provider,{value:W,children:T.jsxs(f1e,z({as:d,className:nt(F.container,v),ref:te,ownerState:Z},B,{children:[T.jsx(Y,z({},ee,!as(Y)&&{as:L,ownerState:z({},Z,ee.ownerState)},G,{children:ne})),ne.pop()]}))})):T.jsx(Js.Provider,{value:W,children:T.jsxs(Y,z({},ee,{as:L,ref:te},!as(Y)&&{ownerState:z({},Z,ee.ownerState)},G,{children:[ne,C&&T.jsx(o1e,{children:C})]}))})}),Sb=d1e;function p1e(e){return kt("MuiListItemIcon",e)}const h1e=Et("MuiListItemIcon",["root","alignItemsFlexStart"]),ZL=h1e,m1e=["className"],g1e=e=>{const{alignItems:t,classes:n}=e;return Rt({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},p1e,n)},v1e=Ve("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})),y1e=R.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiListItemIcon"}),{className:i}=r,o=rt(r,m1e),a=R.useContext(Js),s=z({},r,{alignItems:a.alignItems}),l=g1e(s);return T.jsx(v1e,z({className:nt(l.root,i),ownerState:s,ref:n},o))}),jd=y1e;function b1e(e){return kt("MuiListItemText",e)}const w1e=Et("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),D1=w1e,_1e=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],x1e=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:o}=e;return Rt({root:["root",n&&"inset",o&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},b1e,t)},S1e=Ve("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${D1.primary}`]:t.primary},{[`& .${D1.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})),E1e=R.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiListItemText"}),{children:i,className:o,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:u,secondary:f,secondaryTypographyProps:p}=r,d=rt(r,_1e),{dense:v}=R.useContext(Js);let g=l??i,y=f;const x=z({},r,{disableTypography:a,inset:s,primary:!!g,secondary:!!y,dense:v}),b=x1e(x);return g!=null&&g.type!==bn&&!a&&(g=T.jsx(bn,z({variant:v?"body2":"body1",className:b.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:g}))),y!=null&&y.type!==bn&&!a&&(y=T.jsx(bn,z({variant:"body2",className:b.secondary,color:"text.secondary",display:"block"},p,{children:y}))),T.jsxs(S1e,z({className:nt(b.root,o),ownerState:x,ref:n},d,{children:[g,y]}))}),Eb=E1e,C1e=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function RE(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function eM(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function xV(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function Jh(e,t,n,r,i,o){let a=!1,s=i(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!xV(s,o)||l)s=i(e,s,n);else return s.focus(),!0}return!1}const k1e=R.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:o=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:f,variant:p="selectedMenu"}=t,d=rt(t,C1e),v=R.useRef(null),g=R.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});mo(()=>{i&&v.current.focus()},[i]),R.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(S,C)=>{const k=!v.current.style.width;if(S.clientHeight<v.current.clientHeight&&k){const D=`${f9(nr(S))}px`;v.current.style[C.direction==="rtl"?"paddingLeft":"paddingRight"]=D,v.current.style.width=`calc(100% + ${D})`}return v.current}}),[]);const y=S=>{const C=v.current,k=S.key,D=nr(C).activeElement;if(k==="ArrowDown")S.preventDefault(),Jh(C,D,u,l,RE);else if(k==="ArrowUp")S.preventDefault(),Jh(C,D,u,l,eM);else if(k==="Home")S.preventDefault(),Jh(C,null,u,l,RE);else if(k==="End")S.preventDefault(),Jh(C,null,u,l,eM);else if(k.length===1){const P=g.current,B=k.toLowerCase(),V=performance.now();P.keys.length>0&&(V-P.lastTime>500?(P.keys=[],P.repeating=!0,P.previousKeyMatched=!0):P.repeating&&B!==P.keys[0]&&(P.repeating=!1)),P.lastTime=V,P.keys.push(B);const U=D&&!P.repeating&&xV(D,P);P.previousKeyMatched&&(U||Jh(C,D,!1,l,RE,P))?S.preventDefault():P.previousKeyMatched=!1}f&&f(S)},x=Un(v,n);let b=-1;R.Children.forEach(a,(S,C)=>{R.isValidElement(S)&&(S.props.disabled||(p==="selectedMenu"&&S.props.selected||b===-1)&&(b=C))});const w=R.Children.map(a,(S,C)=>{if(C===b){const k={};return o&&(k.autoFocus=!0),S.props.tabIndex===void 0&&p==="selectedMenu"&&(k.tabIndex=0),R.cloneElement(S,k)}return S});return T.jsx(wV,z({role:"menu",ref:x,className:s,onKeyDown:y,tabIndex:i?0:-1},d,{children:w}))}),T1e=k1e;function R1e(e){return kt("MuiPopover",e)}Et("MuiPopover",["root","paper"]);const O1e=["onEntering"],A1e=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function tM(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function nM(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function rM(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function OE(e){return typeof e=="function"?e():e}const D1e=e=>{const{classes:t}=e;return Rt({root:["root"],paper:["paper"]},R1e,t)},I1e=Ve(lV,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),P1e=Ve(Ap,{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}),$1e=R.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiPopover"}),{action:i,anchorEl:o,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:l="anchorEl",children:u,className:f,container:p,elevation:d=8,marginThreshold:v=16,open:g,PaperProps:y={},transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:b=kT,transitionDuration:w="auto",TransitionProps:{onEntering:S}={}}=r,C=rt(r.TransitionProps,O1e),k=rt(r,A1e),D=R.useRef(),P=Un(D,y.ref),B=z({},r,{anchorOrigin:a,anchorReference:l,elevation:d,marginThreshold:v,PaperProps:y,transformOrigin:x,TransitionComponent:b,transitionDuration:w,TransitionProps:C}),V=D1e(B),U=R.useCallback(()=>{if(l==="anchorPosition")return s;const G=OE(o),A=(G&&G.nodeType===1?G:nr(D.current).body).getBoundingClientRect();return{top:A.top+tM(A,a.vertical),left:A.left+nM(A,a.horizontal)}},[o,a.horizontal,a.vertical,s,l]),W=R.useCallback(G=>({vertical:tM(G,x.vertical),horizontal:nM(G,x.horizontal)}),[x.horizontal,x.vertical]),se=R.useCallback(G=>{const L={width:G.offsetWidth,height:G.offsetHeight},A=W(L);if(l==="none")return{top:null,left:null,transformOrigin:rM(A)};const ie=U();let ae=ie.top-A.vertical,ce=ie.left-A.horizontal;const oe=ae+L.height,xe=ce+L.width,ke=bu(OE(o)),Ee=ke.innerHeight-v,Fe=ke.innerWidth-v;if(ae<v){const Le=ae-v;ae-=Le,A.vertical+=Le}else if(oe>Ee){const Le=oe-Ee;ae-=Le,A.vertical+=Le}if(ce<v){const Le=ce-v;ce-=Le,A.horizontal+=Le}else if(xe>Fe){const Le=xe-Fe;ce-=Le,A.horizontal+=Le}return{top:`${Math.round(ae)}px`,left:`${Math.round(ce)}px`,transformOrigin:rM(A)}},[o,l,U,W,v]),[ne,re]=R.useState(g),Z=R.useCallback(()=>{const G=D.current;if(!G)return;const L=se(G);L.top!==null&&(G.style.top=L.top),L.left!==null&&(G.style.left=L.left),G.style.transformOrigin=L.transformOrigin,re(!0)},[se]),F=(G,L)=>{S&&S(G,L),Z()},te=()=>{re(!1)};R.useEffect(()=>{g&&Z()}),R.useImperativeHandle(i,()=>g?{updatePosition:()=>{Z()}}:null,[g,Z]),R.useEffect(()=>{if(!g)return;const G=SA(()=>{Z()}),L=bu(o);return L.addEventListener("resize",G),()=>{G.clear(),L.removeEventListener("resize",G)}},[o,g,Z]);let Y=w;w==="auto"&&!b.muiSupportAuto&&(Y=void 0);const ee=p||(o?nr(OE(o)).body:void 0);return T.jsx(I1e,z({BackdropProps:{invisible:!0},className:nt(V.root,f),container:ee,open:g,ref:n,ownerState:B},k,{children:T.jsx(b,z({appear:!0,in:g,onEntering:F,onExited:te,timeout:Y},C,{children:T.jsx(P1e,z({elevation:d},y,{ref:P,className:nt(V.paper,y.className)},ne?void 0:{style:z({},y.style,{opacity:0})},{ownerState:B,children:u}))}))}))}),F1e=$1e;function L1e(e){return kt("MuiMenu",e)}Et("MuiMenu",["root","paper","list"]);const M1e=["onEntering"],N1e=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],B1e={vertical:"top",horizontal:"right"},j1e={vertical:"top",horizontal:"left"},z1e=e=>{const{classes:t}=e;return Rt({root:["root"],paper:["paper"],list:["list"]},L1e,t)},U1e=Ve(F1e,{shouldForwardProp:e=>Ia(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),V1e=Ve(Ap,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),W1e=Ve(T1e,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),K1e=R.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:o,disableAutoFocusItem:a=!1,MenuListProps:s={},onClose:l,open:u,PaperProps:f={},PopoverClasses:p,transitionDuration:d="auto",TransitionProps:{onEntering:v}={},variant:g="selectedMenu"}=r,y=rt(r.TransitionProps,M1e),x=rt(r,N1e),b=Da(),w=b.direction==="rtl",S=z({},r,{autoFocus:i,disableAutoFocusItem:a,MenuListProps:s,onEntering:v,PaperProps:f,transitionDuration:d,TransitionProps:y,variant:g}),C=z1e(S),k=i&&!a&&u,D=R.useRef(null),P=(U,W)=>{D.current&&D.current.adjustStyleForScrollbar(U,b),v&&v(U,W)},B=U=>{U.key==="Tab"&&(U.preventDefault(),l&&l(U,"tabKeyDown"))};let V=-1;return R.Children.map(o,(U,W)=>{R.isValidElement(U)&&(U.props.disabled||(g==="selectedMenu"&&U.props.selected||V===-1)&&(V=W))}),T.jsx(U1e,z({onClose:l,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?B1e:j1e,PaperProps:z({component:V1e},f,{classes:z({},f.classes,{root:C.paper})}),className:C.root,open:u,ref:n,transitionDuration:d,TransitionProps:z({onEntering:P},y),ownerState:S},x,{classes:p,children:T.jsx(W1e,z({onKeyDown:B,actions:D,autoFocus:i&&(V===-1||a),autoFocusItem:k,variant:g},s,{className:nt(C.list,s.className),children:o}))}))}),L_=K1e;function H1e(e){return kt("MuiMenuItem",e)}const q1e=Et("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Zh=q1e,G1e=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Q1e=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Y1e=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:o,classes:a}=e,l=Rt({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},H1e,a);return z({},a,l)},X1e=Ve(Uc,{shouldForwardProp:e=>Ia(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Q1e})(({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"}},[`&.${Zh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:on(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Zh.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:on(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Zh.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:on(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})`:on(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Zh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Zh.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${HL.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${HL.inset}`]:{marginLeft:52},[`& .${D1.root}`]:{marginTop:0,marginBottom:0},[`& .${D1.inset}`]:{paddingLeft:36},[`& .${ZL.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&z({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${ZL.root} svg`]:{fontSize:"1.25rem"}}))),J1e=R.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:o="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:u,role:f="menuitem",tabIndex:p,className:d}=r,v=rt(r,G1e),g=R.useContext(Js),y=R.useMemo(()=>({dense:a||g.dense||!1,disableGutters:l}),[g.dense,a,l]),x=R.useRef(null);mo(()=>{i&&x.current&&x.current.focus()},[i]);const b=z({},r,{dense:y.dense,divider:s,disableGutters:l}),w=Y1e(r),S=Un(x,n);let C;return r.disabled||(C=p!==void 0?p:-1),T.jsx(Js.Provider,{value:y,children:T.jsx(X1e,z({ref:S,role:f,tabIndex:C,component:o,focusVisibleClassName:nt(w.focusVisible,u),className:nt(w.root,d)},v,{ownerState:b,classes:w}))})}),ls=J1e;function Z1e(e){return kt("MuiNativeSelect",e)}const ewe=Et("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),oD=ewe,twe=["className","disabled","IconComponent","inputRef","variant"],nwe=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o}=e,a={select:["select",n,r&&"disabled",i&&"multiple"],icon:["icon",`icon${ze(n)}`,o&&"iconOpen",r&&"disabled"]};return Rt(a,Z1e,t)},SV=({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"},[`&.${oD.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}}),rwe=Ve("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ia,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],{[`&.${oD.multiple}`]:t.multiple}]}})(SV),EV=({ownerState:e,theme:t})=>z({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${oD.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),iwe=Ve("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ze(n.variant)}`],n.open&&t.iconOpen]}})(EV),owe=R.forwardRef(function(t,n){const{className:r,disabled:i,IconComponent:o,inputRef:a,variant:s="standard"}=t,l=rt(t,twe),u=z({},t,{disabled:i,variant:s}),f=nwe(u);return T.jsxs(R.Fragment,{children:[T.jsx(rwe,z({ownerState:u,className:nt(f.select,r),disabled:i,ref:a||n},l)),t.multiple?null:T.jsx(iwe,{as:o,ownerState:u,className:f.icon})]})}),awe=owe;var iM;const swe=["children","classes","className","label","notched"],lwe=Ve("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%"}),uwe=Ve("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 cwe(e){const{className:t,label:n,notched:r}=e,i=rt(e,swe),o=n!=null&&n!=="",a=z({},e,{notched:r,withLabel:o});return T.jsx(lwe,z({"aria-hidden":!0,className:t,ownerState:a},i,{children:T.jsx(uwe,{ownerState:a,children:o?T.jsx("span",{children:n}):iM||(iM=T.jsx("span",{className:"notranslate",children:""}))})}))}const fwe=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],dwe=e=>{const{classes:t}=e,r=Rt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Vve,t);return z({},t,r)},pwe=Ve(A_,{shouldForwardProp:e=>Ia(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:R_})(({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 .${$l.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${$l.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${$l.focused} .${$l.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${$l.error} .${$l.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${$l.disabled} .${$l.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"}))}),hwe=Ve(cwe,{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}}),mwe=Ve(D_,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:O_})(({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})),CV=R.forwardRef(function(t,n){var r,i,o,a,s;const l=Ot({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:f=!1,inputComponent:p="input",label:d,multiline:v=!1,notched:g,slots:y={},type:x="text"}=l,b=rt(l,fwe),w=dwe(l),S=Pu(),C=Dp({props:l,muiFormControl:S,states:["required"]}),k=z({},l,{color:C.color||"primary",disabled:C.disabled,error:C.error,focused:C.focused,formControl:S,fullWidth:f,hiddenLabel:C.hiddenLabel,multiline:v,size:C.size,type:x}),D=(r=(i=y.root)!=null?i:u.Root)!=null?r:pwe,P=(o=(a=y.input)!=null?a:u.Input)!=null?o:mwe;return T.jsx(I_,z({slots:{root:D,input:P},renderSuffix:B=>T.jsx(hwe,{ownerState:k,className:w.notchedOutline,label:d!=null&&d!==""&&C.required?s||(s=T.jsxs(R.Fragment,{children:[d," ","*"]})):d,notched:typeof g<"u"?g:!!(B.startAdornment||B.filled||B.focused)}),fullWidth:f,inputComponent:p,multiline:v,ref:n,type:x},b,{classes:z({},w,{notchedOutline:null})}))});CV.muiName="Input";const kV=CV;function gwe(e){return kt("MuiSelect",e)}const vwe=Et("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),k0=vwe;var oM;const ywe=["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"],bwe=Ve("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${k0.select}`]:t.select},{[`&.${k0.select}`]:t[n.variant]},{[`&.${k0.multiple}`]:t.multiple}]}})(SV,{[`&.${k0.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),wwe=Ve("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ze(n.variant)}`],n.open&&t.iconOpen]}})(EV),_we=Ve("input",{shouldForwardProp:e=>WA(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 aM(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function xwe(e){return e==null||typeof e=="string"&&!e.trim()}const Swe=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o}=e,a={select:["select",n,r&&"disabled",i&&"multiple"],icon:["icon",`icon${ze(n)}`,o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Rt(a,gwe,t)},Ewe=R.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":i,autoFocus:o,autoWidth:a,children:s,className:l,defaultOpen:u,defaultValue:f,disabled:p,displayEmpty:d,IconComponent:v,inputRef:g,labelId:y,MenuProps:x={},multiple:b,name:w,onBlur:S,onChange:C,onClose:k,onFocus:D,onOpen:P,open:B,readOnly:V,renderValue:U,SelectDisplayProps:W={},tabIndex:se,value:ne,variant:re="standard"}=t,Z=rt(t,ywe),[F,te]=up({controlled:ne,default:f,name:"Select"}),[Y,ee]=up({controlled:B,default:u,name:"Select"}),G=R.useRef(null),L=R.useRef(null),[A,ie]=R.useState(null),{current:ae}=R.useRef(B!=null),[ce,oe]=R.useState(),xe=Un(n,g),ke=R.useCallback(le=>{L.current=le,le&&ie(le)},[]),Ee=A==null?void 0:A.parentNode;R.useImperativeHandle(xe,()=>({focus:()=>{L.current.focus()},node:G.current,value:F}),[F]),R.useEffect(()=>{u&&Y&&A&&!ae&&(oe(a?null:Ee.clientWidth),L.current.focus())},[A,a]),R.useEffect(()=>{o&&L.current.focus()},[o]),R.useEffect(()=>{if(!y)return;const le=nr(L.current).getElementById(y);if(le){const Re=()=>{getSelection().isCollapsed&&L.current.focus()};return le.addEventListener("click",Re),()=>{le.removeEventListener("click",Re)}}},[y]);const Fe=(le,Re)=>{le?P&&P(Re):k&&k(Re),ae||(oe(a?null:Ee.clientWidth),ee(le))},Le=le=>{le.button===0&&(le.preventDefault(),L.current.focus(),Fe(!0,le))},Ue=le=>{Fe(!1,le)},He=R.Children.toArray(s),Qe=le=>{const Re=He.map(Pe=>Pe.props.value).indexOf(le.target.value);if(Re===-1)return;const $e=He[Re];te($e.props.value),C&&C(le,$e)},qe=le=>Re=>{let $e;if(Re.currentTarget.hasAttribute("tabindex")){if(b){$e=Array.isArray(F)?F.slice():[];const Pe=F.indexOf(le.props.value);Pe===-1?$e.push(le.props.value):$e.splice(Pe,1)}else $e=le.props.value;if(le.props.onClick&&le.props.onClick(Re),F!==$e&&(te($e),C)){const Pe=Re.nativeEvent||Re,mt=new Pe.constructor(Pe.type,Pe);Object.defineProperty(mt,"target",{writable:!0,value:{value:$e,name:w}}),C(mt,le)}b||Fe(!1,Re)}},ut=le=>{V||[" ","ArrowUp","ArrowDown","Enter"].indexOf(le.key)!==-1&&(le.preventDefault(),Fe(!0,le))},et=A!==null&&Y,it=le=>{!et&&S&&(Object.defineProperty(le,"target",{writable:!0,value:{value:F,name:w}}),S(le))};delete Z["aria-invalid"];let wt,me;const Te=[];let Ce=!1;(tD({value:F})||d)&&(U?wt=U(F):Ce=!0);const Oe=He.map((le,Re,$e)=>{var Pe,mt,lt,pe;if(!R.isValidElement(le))return null;let ge;if(b){if(!Array.isArray(F))throw new Error(yu(2));ge=F.some(We=>aM(We,le.props.value)),ge&&Ce&&Te.push(le.props.children)}else ge=aM(F,le.props.value),ge&&Ce&&(me=le.props.children);if(le.props.value===void 0)return R.cloneElement(le,{"aria-readonly":!0,role:"option"});const Se=()=>{if(F)return ge;const We=$e.find(Ke=>{var Ye;return(Ke==null||(Ye=Ke.props)==null?void 0:Ye.value)!==void 0&&Ke.props.disabled!==!0});return le===We?!0:ge};return R.cloneElement(le,{"aria-selected":ge?"true":"false",onClick:qe(le),onKeyUp:We=>{We.key===" "&&We.preventDefault(),le.props.onKeyUp&&le.props.onKeyUp(We)},role:"option",selected:((Pe=$e[0])==null||(mt=Pe.props)==null?void 0:mt.value)===void 0||((lt=$e[0])==null||(pe=lt.props)==null?void 0:pe.disabled)===!0?Se():ge,value:void 0,"data-value":le.props.value})});Ce&&(b?Te.length===0?wt=null:wt=Te.reduce((le,Re,$e)=>(le.push(Re),$e<Te.length-1&&le.push(", "),le),[]):wt=me);let j=ce;!a&&ae&&A&&(j=Ee.clientWidth);let H;typeof se<"u"?H=se:H=p?null:0;const he=W.id||(w?`mui-component-select-${w}`:void 0),Q=z({},t,{variant:re,value:F,open:et}),fe=Swe(Q);return T.jsxs(R.Fragment,{children:[T.jsx(bwe,z({ref:ke,tabIndex:H,role:"button","aria-disabled":p?"true":void 0,"aria-expanded":et?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[y,he].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:ut,onMouseDown:p||V?null:Le,onBlur:it,onFocus:D},W,{ownerState:Q,className:nt(W.className,fe.select,l),id:he,children:xwe(wt)?oM||(oM=T.jsx("span",{className:"notranslate",children:""})):wt})),T.jsx(_we,z({value:Array.isArray(F)?F.join(","):F,name:w,ref:G,"aria-hidden":!0,onChange:Qe,tabIndex:-1,disabled:p,className:fe.nativeInput,autoFocus:o,ownerState:Q},Z)),T.jsx(wwe,{as:v,className:fe.icon,ownerState:Q}),T.jsx(L_,z({id:`menu-${w||""}`,anchorEl:Ee,open:et,onClose:Ue,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},x,{MenuListProps:z({"aria-labelledby":y,role:"listbox",disableListWrap:!0},x.MenuListProps),PaperProps:z({},x.PaperProps,{style:z({minWidth:j},x.PaperProps!=null?x.PaperProps.style:null)}),children:Oe}))]})}),Cwe=Ewe;var sM,lM;const kwe=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Twe=e=>{const{classes:t}=e;return t},aD={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Ia(e)&&e!=="variant",slot:"Root"},Rwe=Ve(yV,aD)(""),Owe=Ve(kV,aD)(""),Awe=Ve(pV,aD)(""),TV=R.forwardRef(function(t,n){const r=Ot({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:o,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:f=qve,id:p,input:d,inputProps:v,label:g,labelId:y,MenuProps:x,multiple:b=!1,native:w=!1,onClose:S,onOpen:C,open:k,renderValue:D,SelectDisplayProps:P,variant:B="outlined"}=r,V=rt(r,kwe),U=w?awe:Cwe,W=Pu(),ne=Dp({props:r,muiFormControl:W,states:["variant"]}).variant||B,re=d||{standard:sM||(sM=T.jsx(Rwe,{})),outlined:T.jsx(Owe,{label:g}),filled:lM||(lM=T.jsx(Awe,{}))}[ne],Z=z({},r,{variant:ne,classes:a}),F=Twe(Z),te=Un(n,re.ref);return T.jsx(R.Fragment,{children:R.cloneElement(re,z({inputComponent:U,inputProps:z({children:o,IconComponent:f,variant:ne,type:void 0,multiple:b},w?{id:p}:{autoWidth:i,defaultOpen:l,displayEmpty:u,labelId:y,MenuProps:x,onClose:S,onOpen:C,open:k,renderValue:D,SelectDisplayProps:z({id:p},P)},v,{classes:v?ji(F,v.classes):F},d?d.props.inputProps:{})},b&&w&&ne==="outlined"?{notched:!0}:{},{ref:te,className:nt(re.props.className,s)},!d&&{variant:ne},V))})});TV.muiName="Select";const M_=TV,Dwe=e=>!e||!as(e),Iwe=Dwe;function Pwe(e){return kt("MuiSlider",e)}const $we=Et("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"]),Ea=$we,Fwe=e=>{const{open:t}=e;return{offset:nt(t&&Ea.valueLabelOpen),circle:Ea.valueLabelCircle,label:Ea.valueLabelLabel}};function Lwe(e){const{children:t,className:n,value:r}=e,i=Fwe(e);return t?R.cloneElement(t,{className:nt(t.props.className)},T.jsxs(R.Fragment,{children:[t.props.children,T.jsx("span",{className:nt(i.offset,n),"aria-hidden":!0,children:T.jsx("span",{className:i.circle,children:T.jsx("span",{className:i.label,children:r})})})]})):null}const Mwe=["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"],uM=(e,t,n)=>(e-t)*100/(n-t);function cM(e){return e}const Nwe=Ve("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${ze(n.color)}`],n.size!=="medium"&&t[`size${ze(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>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"},[`&.${Ea.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Ea.dragging}`]:{[`& .${Ea.thumb}, & .${Ea.track}`]:{transition:"none"}}})),Bwe=Ve("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})),jwe=Ve("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?$g(e.palette[t.color].main,.62):Pg(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})}),zwe=Ve("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${ze(n.color)}`],n.size!=="medium"&&t[`thumbSize${ze(n.size)}`]]}})(({theme:e,ownerState:t})=>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, &.${Ea.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:on(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Ea.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:on(e.palette[t.color].main,.16)}`},[`&.${Ea.disabled}`]:{"&:hover":{boxShadow:"none"}}})),Uwe=Ve(Lwe,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>z({[`&.${Ea.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"})),Vwe=Ve("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>WA(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})),Wwe=Ve("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>WA(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})),Kwe=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:o,classes:a,color:s,size:l}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",o==="inverted"&&"trackInverted",o===!1&&"trackFalse",s&&`color${ze(s)}`,l&&`size${ze(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${ze(l)}`,s&&`thumbColor${ze(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Rt(u,Pwe,a)},Hwe=({children:e})=>e,qwe=R.forwardRef(function(t,n){var r,i,o,a,s,l,u,f,p,d,v,g,y,x,b,w,S,C,k,D,P,B,V,U;const W=Ot({props:t,name:"MuiSlider"}),ne=Da().direction==="rtl",{"aria-label":re,"aria-valuetext":Z,"aria-labelledby":F,component:te="span",components:Y={},componentsProps:ee={},color:G="primary",classes:L,className:A,disableSwap:ie=!1,disabled:ae=!1,getAriaLabel:ce,getAriaValueText:oe,marks:xe=!1,max:ke=100,min:Ee=0,orientation:Fe="horizontal",size:Le="medium",step:Ue=1,scale:He=cM,slotProps:Qe,slots:qe,track:ut="normal",valueLabelDisplay:et="off",valueLabelFormat:it=cM}=W,wt=rt(W,Mwe),me=z({},W,{isRtl:ne,max:ke,min:Ee,classes:L,disabled:ae,disableSwap:ie,orientation:Fe,marks:xe,color:G,size:Le,step:Ue,scale:He,track:ut,valueLabelDisplay:et,valueLabelFormat:it}),{axisProps:Te,getRootProps:Ce,getHiddenInputProps:Oe,getThumbProps:j,open:H,active:he,axis:Q,focusedThumbIndex:fe,range:le,dragging:Re,marks:$e,values:Pe,trackOffset:mt,trackLeap:lt}=Wme(z({},me,{ref:n}));me.marked=$e.length>0&&$e.some(On=>On.label),me.dragging=Re,me.focusedThumbIndex=fe;const pe=Kwe(me),ge=(r=(i=qe==null?void 0:qe.root)!=null?i:Y.Root)!=null?r:Nwe,Se=(o=(a=qe==null?void 0:qe.rail)!=null?a:Y.Rail)!=null?o:Bwe,We=(s=(l=qe==null?void 0:qe.track)!=null?l:Y.Track)!=null?s:jwe,Ke=(u=(f=qe==null?void 0:qe.thumb)!=null?f:Y.Thumb)!=null?u:zwe,Ye=(p=(d=qe==null?void 0:qe.valueLabel)!=null?d:Y.ValueLabel)!=null?p:Uwe,dt=(v=(g=qe==null?void 0:qe.mark)!=null?g:Y.Mark)!=null?v:Vwe,ct=(y=(x=qe==null?void 0:qe.markLabel)!=null?x:Y.MarkLabel)!=null?y:Wwe,ot=(b=(w=qe==null?void 0:qe.input)!=null?w:Y.Input)!=null?b:"input",ht=(S=Qe==null?void 0:Qe.root)!=null?S:ee.root,$t=(C=Qe==null?void 0:Qe.rail)!=null?C:ee.rail,rn=(k=Qe==null?void 0:Qe.track)!=null?k:ee.track,en=(D=Qe==null?void 0:Qe.thumb)!=null?D:ee.thumb,Yt=(P=Qe==null?void 0:Qe.valueLabel)!=null?P:ee.valueLabel,hr=(B=Qe==null?void 0:Qe.mark)!=null?B:ee.mark,kn=(V=Qe==null?void 0:Qe.markLabel)!=null?V:ee.markLabel,Ir=(U=Qe==null?void 0:Qe.input)!=null?U:ee.input,mr=wa({elementType:ge,getSlotProps:Ce,externalSlotProps:ht,externalForwardedProps:wt,additionalProps:z({},Iwe(ge)&&{as:te}),ownerState:z({},me,ht==null?void 0:ht.ownerState),className:[pe.root,A]}),wr=wa({elementType:Se,externalSlotProps:$t,ownerState:me,className:pe.rail}),Vr=wa({elementType:We,externalSlotProps:rn,additionalProps:{style:z({},Te[Q].offset(mt),Te[Q].leap(lt))},ownerState:z({},me,rn==null?void 0:rn.ownerState),className:pe.track}),hi=wa({elementType:Ke,getSlotProps:j,externalSlotProps:en,ownerState:z({},me,en==null?void 0:en.ownerState)}),Ss=wa({elementType:Ye,externalSlotProps:Yt,ownerState:z({},me,Yt==null?void 0:Yt.ownerState),className:pe.valueLabel}),mi=wa({elementType:dt,externalSlotProps:hr,ownerState:me,className:pe.mark}),Wr=wa({elementType:ct,externalSlotProps:kn,ownerState:me}),yl=wa({elementType:ot,getSlotProps:Oe,externalSlotProps:Ir,ownerState:me});return T.jsxs(ge,z({},mr,{children:[T.jsx(Se,z({},wr)),T.jsx(We,z({},Vr)),$e.filter(On=>On.value>=Ee&&On.value<=ke).map((On,An)=>{const Qi=uM(On.value,Ee,ke),ir=Te[Q].offset(Qi);let It;return ut===!1?It=Pe.indexOf(On.value)!==-1:It=ut==="normal"&&(le?On.value>=Pe[0]&&On.value<=Pe[Pe.length-1]:On.value<=Pe[0])||ut==="inverted"&&(le?On.value<=Pe[0]||On.value>=Pe[Pe.length-1]:On.value>=Pe[0]),T.jsxs(R.Fragment,{children:[T.jsx(dt,z({"data-index":An},mi,!as(dt)&&{markActive:It},{style:z({},ir,mi.style),className:nt(mi.className,It&&pe.markActive)})),On.label!=null?T.jsx(ct,z({"aria-hidden":!0,"data-index":An},Wr,!as(ct)&&{markLabelActive:It},{style:z({},ir,Wr.style),className:nt(pe.markLabel,Wr.className,It&&pe.markLabelActive),children:On.label})):null]},An)}),Pe.map((On,An)=>{const Qi=uM(On,Ee,ke),ir=Te[Q].offset(Qi),It=et==="off"?Hwe:Ye;return T.jsx(R.Fragment,{children:T.jsx(It,z({},!as(It)&&{valueLabelFormat:it,valueLabelDisplay:et,value:typeof it=="function"?it(He(On),An):it,index:An,open:H===An||he===An||et==="on",disabled:ae},Ss,{children:T.jsx(Ke,z({"data-index":An,"data-focusvisible":fe===An},hi,{className:nt(pe.thumb,hi.className,he===An&&pe.active,fe===An&&pe.focusVisible),style:z({},ir,{pointerEvents:ie&&he!==An?"none":void 0},hi.style),children:T.jsx(ot,z({"data-index":An,"aria-label":ce?ce(An):re,"aria-valuenow":He(On),"aria-labelledby":F,"aria-valuetext":oe?oe(He(On),An):Z,value:Pe[An]},yl))}))}))},An)})]}))}),Gwe=qwe;function Qwe(e){return kt("MuiTooltip",e)}const Ywe=Et("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),ru=Ywe,Xwe=["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 Jwe(e){return Math.round(e*1e5)/1e5}const Zwe=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:o}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${ze(o.split("-")[0])}`],arrow:["arrow"]};return Rt(a,Qwe,t)},e_e=Ve(tV,{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"] .${ru.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${ru.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${ru.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"] .${ru.arrow}`]:z({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),t_e=Ve("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${ze(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>z({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:on(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:`${Jwe(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${ru.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"})),[`.${ru.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"})),[`.${ru.popper}[data-popper-placement*="top"] &`]:z({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${ru.popper}[data-popper-placement*="bottom"] &`]:z({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),n_e=Ve("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:on(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let T0=!1,AE=null,em={x:0,y:0};function R0(e,t){return n=>{t&&t(n),e(n)}}const r_e=R.forwardRef(function(t,n){var r,i,o,a,s,l,u,f,p,d,v,g,y,x,b,w,S,C,k;const D=Ot({props:t,name:"MuiTooltip"}),{arrow:P=!1,children:B,components:V={},componentsProps:U={},describeChild:W=!1,disableFocusListener:se=!1,disableHoverListener:ne=!1,disableInteractive:re=!1,disableTouchListener:Z=!1,enterDelay:F=100,enterNextDelay:te=0,enterTouchDelay:Y=700,followCursor:ee=!1,id:G,leaveDelay:L=0,leaveTouchDelay:A=1500,onClose:ie,onOpen:ae,open:ce,placement:oe="bottom",PopperComponent:xe,PopperProps:ke={},slotProps:Ee={},slots:Fe={},title:Le,TransitionComponent:Ue=kT,TransitionProps:He}=D,Qe=rt(D,Xwe),qe=Da(),ut=qe.direction==="rtl",[et,it]=R.useState(),[wt,me]=R.useState(null),Te=R.useRef(!1),Ce=re||ee,Oe=R.useRef(),j=R.useRef(),H=R.useRef(),he=R.useRef(),[Q,fe]=up({controlled:ce,default:!1,name:"Tooltip",state:"open"});let le=Q;const Re=dv(G),$e=R.useRef(),Pe=R.useCallback(()=>{$e.current!==void 0&&(document.body.style.WebkitUserSelect=$e.current,$e.current=void 0),clearTimeout(he.current)},[]);R.useEffect(()=>()=>{clearTimeout(Oe.current),clearTimeout(j.current),clearTimeout(H.current),Pe()},[Pe]);const mt=at=>{clearTimeout(AE),T0=!0,fe(!0),ae&&!le&&ae(at)},lt=Uo(at=>{clearTimeout(AE),AE=setTimeout(()=>{T0=!1},800+L),fe(!1),ie&&le&&ie(at),clearTimeout(Oe.current),Oe.current=setTimeout(()=>{Te.current=!1},qe.transitions.duration.shortest)}),pe=at=>{Te.current&&at.type!=="touchstart"||(et&&et.removeAttribute("title"),clearTimeout(j.current),clearTimeout(H.current),F||T0&&te?j.current=setTimeout(()=>{mt(at)},T0?te:F):mt(at))},ge=at=>{clearTimeout(j.current),clearTimeout(H.current),H.current=setTimeout(()=>{lt(at)},L)},{isFocusVisibleRef:Se,onBlur:We,onFocus:Ke,ref:Ye}=pv(),[,dt]=R.useState(!1),ct=at=>{We(at),Se.current===!1&&(dt(!1),ge(at))},ot=at=>{et||it(at.currentTarget),Ke(at),Se.current===!0&&(dt(!0),pe(at))},ht=at=>{Te.current=!0;const gr=B.props;gr.onTouchStart&&gr.onTouchStart(at)},$t=pe,rn=ge,en=at=>{ht(at),clearTimeout(H.current),clearTimeout(Oe.current),Pe(),$e.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",he.current=setTimeout(()=>{document.body.style.WebkitUserSelect=$e.current,pe(at)},Y)},Yt=at=>{B.props.onTouchEnd&&B.props.onTouchEnd(at),Pe(),clearTimeout(H.current),H.current=setTimeout(()=>{lt(at)},A)};R.useEffect(()=>{if(!le)return;function at(gr){(gr.key==="Escape"||gr.key==="Esc")&<(gr)}return document.addEventListener("keydown",at),()=>{document.removeEventListener("keydown",at)}},[lt,le]);const hr=Un(B.ref,Ye,it,n);!Le&&Le!==0&&(le=!1);const kn=R.useRef(),Ir=at=>{const gr=B.props;gr.onMouseMove&&gr.onMouseMove(at),em={x:at.clientX,y:at.clientY},kn.current&&kn.current.update()},mr={},wr=typeof Le=="string";W?(mr.title=!le&&wr&&!ne?Le:null,mr["aria-describedby"]=le?Re:null):(mr["aria-label"]=wr?Le:null,mr["aria-labelledby"]=le&&!wr?Re:null);const Vr=z({},mr,Qe,B.props,{className:nt(Qe.className,B.props.className),onTouchStart:ht,ref:hr},ee?{onMouseMove:Ir}:{}),hi={};Z||(Vr.onTouchStart=en,Vr.onTouchEnd=Yt),ne||(Vr.onMouseOver=R0($t,Vr.onMouseOver),Vr.onMouseLeave=R0(rn,Vr.onMouseLeave),Ce||(hi.onMouseOver=$t,hi.onMouseLeave=rn)),se||(Vr.onFocus=R0(ot,Vr.onFocus),Vr.onBlur=R0(ct,Vr.onBlur),Ce||(hi.onFocus=ot,hi.onBlur=ct));const Ss=R.useMemo(()=>{var at;let gr=[{name:"arrow",enabled:!!wt,options:{element:wt,padding:4}}];return(at=ke.popperOptions)!=null&&at.modifiers&&(gr=gr.concat(ke.popperOptions.modifiers)),z({},ke.popperOptions,{modifiers:gr})},[wt,ke]),mi=z({},D,{isRtl:ut,arrow:P,disableInteractive:Ce,placement:oe,PopperComponentProp:xe,touch:Te.current}),Wr=Zwe(mi),yl=(r=(i=Fe.popper)!=null?i:V.Popper)!=null?r:e_e,On=(o=(a=(s=Fe.transition)!=null?s:V.Transition)!=null?a:Ue)!=null?o:kT,An=(l=(u=Fe.tooltip)!=null?u:V.Tooltip)!=null?l:t_e,Qi=(f=(p=Fe.arrow)!=null?p:V.Arrow)!=null?f:n_e,ir=Om(yl,z({},ke,(d=Ee.popper)!=null?d:U.popper,{className:nt(Wr.popper,ke==null?void 0:ke.className,(v=(g=Ee.popper)!=null?g:U.popper)==null?void 0:v.className)}),mi),It=Om(On,z({},He,(y=Ee.transition)!=null?y:U.transition),mi),Bu=Om(An,z({},(x=Ee.tooltip)!=null?x:U.tooltip,{className:nt(Wr.tooltip,(b=(w=Ee.tooltip)!=null?w:U.tooltip)==null?void 0:b.className)}),mi),vf=Om(Qi,z({},(S=Ee.arrow)!=null?S:U.arrow,{className:nt(Wr.arrow,(C=(k=Ee.arrow)!=null?k:U.arrow)==null?void 0:C.className)}),mi);return T.jsxs(R.Fragment,{children:[R.cloneElement(B,Vr),T.jsx(yl,z({as:xe??tV,placement:oe,anchorEl:ee?{getBoundingClientRect:()=>({top:em.y,left:em.x,right:em.x,bottom:em.y,width:0,height:0})}:et,popperRef:kn,open:et?le:!1,id:Re,transition:!0},hi,ir,{popperOptions:Ss,children:({TransitionProps:at})=>T.jsx(On,z({timeout:qe.transitions.duration.shorter},at,It,{children:T.jsxs(An,z({},Bu,{children:[Le,P?T.jsx(Qi,z({},vf,{ref:me})):null]}))}))}))]})}),fs=r_e,i_e=["component","direction","spacing","divider","children"];function o_e(e,t){const n=R.Children.toArray(e).filter(Boolean);return n.reduce((r,i,o)=>(r.push(i),o<n.length-1&&r.push(R.cloneElement(t,{key:`separator-${o}`})),r),[])}const a_e=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],s_e=({ownerState:e,theme:t})=>{let n=z({display:"flex",flexDirection:"column"},Oa({theme:t},xE({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=NA(t),i=Object.keys(t.breakpoints.values).reduce((l,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(l[u]=!0),l),{}),o=xE({values:e.direction,base:i}),a=xE({values:e.spacing,base:i});typeof o=="object"&&Object.keys(o).forEach((l,u,f)=>{if(!o[l]){const d=u>0?o[f[u-1]]:"column";o[l]=d}}),n=ji(n,Oa({theme:t},a,(l,u)=>({"& > :not(style) + :not(style)":{margin:0,[`margin${a_e(u?o[u]:e.direction)}`]:Rp(r,l)}})))}return n=ede(t.breakpoints,n),n},l_e=Ve("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>[t.root]})(s_e),u_e=R.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiStack"}),i=jA(r),{component:o="div",direction:a="column",spacing:s=0,divider:l,children:u}=i,f=rt(i,i_e),p={direction:a,spacing:s};return T.jsx(l_e,z({as:o,ownerState:p,ref:n},f,{children:l?o_e(u,l):u}))}),Vn=u_e;function c_e(e){return kt("MuiSwitch",e)}const f_e=Et("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),_i=f_e,d_e=["className","color","edge","size","sx"],p_e=e=>{const{classes:t,edge:n,size:r,color:i,checked:o,disabled:a}=e,s={root:["root",n&&`edge${ze(n)}`,`size${ze(r)}`],switchBase:["switchBase",`color${ze(i)}`,o&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Rt(s,c_e,t);return z({},t,l)},h_e=Ve("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${ze(n.edge)}`],t[`size${ze(n.size)}`]]}})(({ownerState:e})=>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,[`& .${_i.thumb}`]:{width:16,height:16},[`& .${_i.switchBase}`]:{padding:4,[`&.${_i.checked}`]:{transform:"translateX(16px)"}}})),m_e=Ve(Oye,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${_i.input}`]:t.input},n.color!=="default"&&t[`color${ze(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${_i.checked}`]:{transform:"translateX(20px)"},[`&.${_i.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${_i.checked} + .${_i.track}`]:{opacity:.5},[`&.${_i.disabled} + .${_i.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${_i.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})`:on(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${_i.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})`:on(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${_i.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?$g(e.palette[t.color].main,.62):Pg(e.palette[t.color].main,.55)}`}},[`&.${_i.checked} + .${_i.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),g_e=Ve("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}`})),v_e=Ve("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%"})),y_e=R.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiSwitch"}),{className:i,color:o="primary",edge:a=!1,size:s="medium",sx:l}=r,u=rt(r,d_e),f=z({},r,{color:o,edge:a,size:s}),p=p_e(f),d=T.jsx(v_e,{className:p.thumb,ownerState:f});return T.jsxs(h_e,{className:nt(p.root,i),sx:l,ownerState:f,children:[T.jsx(m_e,z({type:"checkbox",icon:d,checkedIcon:d,ref:n,ownerState:f},u,{classes:z({},p,{root:p.switchBase})})),T.jsx(g_e,{className:p.track,ownerState:f})]})}),DE=y_e;function b_e(e){return kt("MuiToolbar",e)}Et("MuiToolbar",["root","gutters","regular","dense"]);const w_e=["className","component","disableGutters","variant"],__e=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Rt({root:["root",!n&&"gutters",r]},b_e,t)},x_e=Ve("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),S_e=R.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiToolbar"}),{className:i,component:o="div",disableGutters:a=!1,variant:s="regular"}=r,l=rt(r,w_e),u=z({},r,{component:o,disableGutters:a,variant:s}),f=__e(u);return T.jsx(x_e,z({as:o,className:nt(f.root,i),ref:n,ownerState:u},l))}),E_e=S_e;function C_e(e){return kt("MuiTextField",e)}Et("MuiTextField",["root"]);const k_e=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],T_e={standard:yV,filled:pV,outlined:kV},R_e=e=>{const{classes:t}=e;return Rt({root:["root"]},C_e,t)},O_e=Ve(rD,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),A_e=R.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:o=!1,children:a,className:s,color:l="primary",defaultValue:u,disabled:f=!1,error:p=!1,FormHelperTextProps:d,fullWidth:v=!1,helperText:g,id:y,InputLabelProps:x,inputProps:b,InputProps:w,inputRef:S,label:C,maxRows:k,minRows:D,multiline:P=!1,name:B,onBlur:V,onChange:U,onFocus:W,placeholder:se,required:ne=!1,rows:re,select:Z=!1,SelectProps:F,type:te,value:Y,variant:ee="outlined"}=r,G=rt(r,k_e),L=z({},r,{autoFocus:o,color:l,disabled:f,error:p,fullWidth:v,multiline:P,required:ne,select:Z,variant:ee}),A=R_e(L),ie={};ee==="outlined"&&(x&&typeof x.shrink<"u"&&(ie.notched=x.shrink),ie.label=C),Z&&((!F||!F.native)&&(ie.id=void 0),ie["aria-describedby"]=void 0);const ae=dv(y),ce=g&&ae?`${ae}-helper-text`:void 0,oe=C&&ae?`${ae}-label`:void 0,xe=T_e[ee],ke=T.jsx(xe,z({"aria-describedby":ce,autoComplete:i,autoFocus:o,defaultValue:u,fullWidth:v,multiline:P,name:B,rows:re,maxRows:k,minRows:D,type:te,value:Y,id:ae,inputRef:S,onBlur:V,onChange:U,onFocus:W,placeholder:se,inputProps:b},ie,w));return T.jsxs(O_e,z({className:nt(A.root,s),disabled:f,error:p,fullWidth:v,ref:n,required:ne,color:l,variant:ee,ownerState:L},G,{children:[C!=null&&C!==""&&T.jsx(_u,z({htmlFor:ae,id:oe},x,{children:C})),Z?T.jsx(M_,z({"aria-describedby":ce,id:ae,labelId:oe,value:Y,input:ke},F,{children:a})):ke,g&&T.jsx(K0e,z({id:ce},d,{children:g}))]}))}),sD=A_e;/**
|
|
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 hn(){return hn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hn.apply(this,arguments)}var Sr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Sr||(Sr={}));const fM="popstate";function D_e(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:a,hash:s}=r.location;return Mg("",{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:al(i)}return P_e(t,n,null,e)}function zt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function I_e(){return Math.random().toString(36).substr(2,8)}function dM(e,t){return{usr:e.state,key:e.key,idx:t}}function Mg(e,t,n,r){return n===void 0&&(n=null),hn({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?pl(t):t,{state:n,key:t&&t.key||r||I_e()})}function al(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 pl(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 P_e(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=Sr.Pop,l=null,u=f();u==null&&(u=0,a.replaceState(hn({},a.state,{idx:u}),""));function f(){return(a.state||{idx:null}).idx}function p(){s=Sr.Pop;let x=f(),b=x==null?null:x-u;u=x,l&&l({action:s,location:y.location,delta:b})}function d(x,b){s=Sr.Push;let w=Mg(y.location,x,b);n&&n(w,x),u=f()+1;let S=dM(w,u),C=y.createHref(w);try{a.pushState(S,"",C)}catch{i.location.assign(C)}o&&l&&l({action:s,location:y.location,delta:1})}function v(x,b){s=Sr.Replace;let w=Mg(y.location,x,b);n&&n(w,x),u=f();let S=dM(w,u),C=y.createHref(w);a.replaceState(S,"",C),o&&l&&l({action:s,location:y.location,delta:0})}function g(x){let b=i.location.origin!=="null"?i.location.origin:i.location.href,w=typeof x=="string"?x:al(x);return zt(b,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,b)}let y={get action(){return s},get location(){return e(i,a)},listen(x){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(fM,p),l=x,()=>{i.removeEventListener(fM,p),l=null}},createHref(x){return t(i,x)},createURL:g,encodeLocation(x){let b=g(x);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:d,replace:v,go(x){return a.go(x)}};return y}var Xr;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Xr||(Xr={}));function $_e(e){return e.index===!0}function RV(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 zt(r.index!==!0||!r.children,"Cannot specify children on an index route"),zt(!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),$_e(r)?hn({},r,{id:a}):hn({},r,{id:a,children:r.children?RV(r.children,o,n):void 0})})}function Dm(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?pl(t):t,i=DV(r.pathname||"/",n);if(i==null)return null;let o=OV(e);F_e(o);let a=null;for(let s=0;a==null&&s<o.length;++s)a=W_e(o[s],q_e(i));return a}function OV(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("/")&&(zt(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Zs([r,l.relativePath]),f=n.concat(l);o.children&&o.children.length>0&&(zt(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),OV(o.children,t,f,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:U_e(u,o.index),routesMeta:f})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let l of AV(o.path))i(o,a,l)}),t}function AV(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=AV(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 F_e(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:V_e(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const L_e=/^:\w+$/,M_e=3,N_e=2,B_e=1,j_e=10,z_e=-2,pM=e=>e==="*";function U_e(e,t){let n=e.split("/"),r=n.length;return n.some(pM)&&(r+=z_e),t&&(r+=N_e),n.filter(i=>!pM(i)).reduce((i,o)=>i+(L_e.test(o)?M_e:o===""?B_e:j_e),r)}function V_e(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 W_e(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let a=0;a<n.length;++a){let s=n[a],l=a===n.length-1,u=i==="/"?t:t.slice(i.length)||"/",f=K_e({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},u);if(!f)return null;Object.assign(r,f.params);let p=s.route;o.push({params:r,pathname:Zs([i,f.pathname]),pathnameBase:X_e(Zs([i,f.pathnameBase])),route:p}),f.pathnameBase!=="/"&&(i=Zs([i,f.pathnameBase]))}return o}function K_e(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=H_e(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:r.reduce((u,f,p)=>{if(f==="*"){let d=s[p]||"";a=o.slice(0,o.length-d.length).replace(/(.)\/+$/,"$1")}return u[f]=G_e(s[p]||"",f),u},{}),pathname:o,pathnameBase:a,pattern:e}}function H_e(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Ng(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 q_e(e){try{return decodeURI(e)}catch(t){return Ng(!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 G_e(e,t){try{return decodeURIComponent(e)}catch(n){return Ng(!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 DV(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 Ng(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Q_e(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?pl(e):e;return{pathname:n?n.startsWith("/")?n:Y_e(n,t):t,search:J_e(r),hash:Z_e(i)}}function Y_e(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 IE(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 N_(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function lD(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=pl(e):(i=hn({},e),zt(!i.pathname||!i.pathname.includes("?"),IE("?","pathname","search",i)),zt(!i.pathname||!i.pathname.includes("#"),IE("#","pathname","hash",i)),zt(!i.search||!i.search.includes("#"),IE("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(r||a==null)s=n;else{let p=t.length-1;if(a.startsWith("..")){let d=a.split("/");for(;d[0]==="..";)d.shift(),p-=1;i.pathname=d.join("/")}s=p>=0?t[p]:"/"}let l=Q_e(i,s),u=a&&a!=="/"&&a.endsWith("/"),f=(o||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||f)&&(l.pathname+="/"),l}const Zs=e=>e.join("/").replace(/\/\/+/g,"/"),X_e=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),J_e=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Z_e=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class hM extends Error{}class exe{constructor(t,n){this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],zt(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 hM("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 hM?(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 zt(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]:nxe(i)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function txe(e){return e instanceof Promise&&e._tracked===!0}function nxe(e){if(!txe(e))return e;if(e._error)throw e._error;return e._data}class uD{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 IV(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const PV=["post","put","patch","delete"],rxe=new Set(PV),ixe=["get",...PV],oxe=new Set(ixe),axe=new Set([301,302,303,307,308]),sxe=new Set([307,308]),PE={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},lxe={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},mM={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},$V=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,FV=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",uxe=!FV;function cxe(e){zt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let t=RV(e.routes),n=null,r=new Set,i=null,o=null,a=null,s=e.hydrationData!=null,l=Dm(t,e.history.location,e.basename),u=null;if(l==null){let j=zl(404,{pathname:e.history.location.pathname}),{matches:H,route:he}=_M(t);l=H,u={[he.id]:j}}let f=!l.some(j=>j.route.loader)||e.hydrationData!=null,p,d={historyAction:e.history.action,location:e.history.location,matches:l,initialized:f,navigation:PE,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||u,fetchers:new Map,blockers:new Map},v=Sr.Pop,g=!1,y,x=!1,b=!1,w=[],S=[],C=new Map,k=0,D=-1,P=new Map,B=new Set,V=new Map,U=new Map,W=new Map,se=!1;function ne(){return n=e.history.listen(j=>{let{action:H,location:he,delta:Q}=j;if(se){se=!1;return}Ng(W.size===0||Q!=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=wt({currentLocation:d.location,nextLocation:he,historyAction:H});if(fe&&Q!=null){se=!0,e.history.go(Q*-1),it(fe,{state:"blocked",location:he,proceed(){it(fe,{state:"proceeding",proceed:void 0,reset:void 0,location:he}),e.history.go(Q)},reset(){et(fe),F({blockers:new Map(p.state.blockers)})}});return}return G(H,he)}),d.initialized||G(Sr.Pop,d.location),p}function re(){n&&n(),r.clear(),y&&y.abort(),d.fetchers.forEach((j,H)=>Le(H)),d.blockers.forEach((j,H)=>et(H))}function Z(j){return r.add(j),()=>r.delete(j)}function F(j){d=hn({},d,j),r.forEach(H=>H(d))}function te(j,H){var he,Q;let fe=d.actionData!=null&&d.navigation.formMethod!=null&&Ws(d.navigation.formMethod)&&d.navigation.state==="loading"&&((he=j.state)==null?void 0:he._isRedirect)!==!0,le;H.actionData?Object.keys(H.actionData).length>0?le=H.actionData:le=null:fe?le=d.actionData:le=null;let Re=H.loaderData?wM(d.loaderData,H.loaderData,H.matches||[],H.errors):d.loaderData;for(let[Pe]of W)et(Pe);let $e=g===!0||d.navigation.formMethod!=null&&Ws(d.navigation.formMethod)&&((Q=j.state)==null?void 0:Q._isRedirect)!==!0;F(hn({},H,{actionData:le,loaderData:Re,historyAction:v,location:j,initialized:!0,navigation:PE,revalidation:"idle",restoreScrollPosition:Oe(j,H.matches||d.matches),preventScrollReset:$e,blockers:new Map(d.blockers)})),x||v===Sr.Pop||(v===Sr.Push?e.history.push(j,j.state):v===Sr.Replace&&e.history.replace(j,j.state)),v=Sr.Pop,g=!1,x=!1,b=!1,w=[],S=[]}async function Y(j,H){if(typeof j=="number"){e.history.go(j);return}let{path:he,submission:Q,error:fe}=gM(j,H),le=d.location,Re=Mg(d.location,he,H&&H.state);Re=hn({},Re,e.history.encodeLocation(Re));let $e=H&&H.replace!=null?H.replace:void 0,Pe=Sr.Push;$e===!0?Pe=Sr.Replace:$e===!1||Q!=null&&Ws(Q.formMethod)&&Q.formAction===d.location.pathname+d.location.search&&(Pe=Sr.Replace);let mt=H&&"preventScrollReset"in H?H.preventScrollReset===!0:void 0,lt=wt({currentLocation:le,nextLocation:Re,historyAction:Pe});if(lt){it(lt,{state:"blocked",location:Re,proceed(){it(lt,{state:"proceeding",proceed:void 0,reset:void 0,location:Re}),Y(j,H)},reset(){et(lt),F({blockers:new Map(d.blockers)})}});return}return await G(Pe,Re,{submission:Q,pendingError:fe,preventScrollReset:mt,replace:H&&H.replace})}function ee(){if(Ee(),F({revalidation:"loading"}),d.navigation.state!=="submitting"){if(d.navigation.state==="idle"){G(d.historyAction,d.location,{startUninterruptedRevalidation:!0});return}G(v||d.historyAction,d.navigation.location,{overrideNavigation:d.navigation})}}async function G(j,H,he){y&&y.abort(),y=null,v=j,x=(he&&he.startUninterruptedRevalidation)===!0,Ce(d.location,d.matches),g=(he&&he.preventScrollReset)===!0;let Q=he&&he.overrideNavigation,fe=Dm(t,H,e.basename);if(!fe){let pe=zl(404,{pathname:H.pathname}),{matches:ge,route:Se}=_M(t);me(),te(H,{matches:ge,loaderData:{},errors:{[Se.id]:pe}});return}if(mxe(d.location,H)&&!(he&&he.submission&&Ws(he.submission.formMethod))){te(H,{matches:fe});return}y=new AbortController;let le=nm(e.history,H,y.signal,he&&he.submission),Re,$e;if(he&&he.pendingError)$e={[xd(fe).route.id]:he.pendingError};else if(he&&he.submission&&Ws(he.submission.formMethod)){let pe=await L(le,H,he.submission,fe,{replace:he.replace});if(pe.shortCircuited)return;Re=pe.pendingActionData,$e=pe.pendingActionError,Q=hn({state:"loading",location:H},he.submission),le=new Request(le.url,{signal:le.signal})}let{shortCircuited:Pe,loaderData:mt,errors:lt}=await A(le,H,fe,Q,he&&he.submission,he&&he.replace,Re,$e);Pe||(y=null,te(H,hn({matches:fe},Re?{actionData:Re}:{},{loaderData:mt,errors:lt})))}async function L(j,H,he,Q,fe){Ee();let le=hn({state:"submitting",location:H},he);F({navigation:le});let Re,$e=CM(Q,H);if(!$e.route.action)Re={type:Xr.error,error:zl(405,{method:j.method,pathname:H.pathname,routeId:$e.route.id})};else if(Re=await tm("action",j,$e,Q,p.basename),j.signal.aborted)return{shortCircuited:!0};if(zd(Re)){let Pe;return fe&&fe.replace!=null?Pe=fe.replace:Pe=Re.location===d.location.pathname+d.location.search,await xe(d,Re,{submission:he,replace:Pe}),{shortCircuited:!0}}if(ng(Re)){let Pe=xd(Q,$e.route.id);return(fe&&fe.replace)!==!0&&(v=Sr.Push),{pendingActionData:{},pendingActionError:{[Pe.route.id]:Re.error}}}if(Sc(Re))throw zl(400,{type:"defer-action"});return{pendingActionData:{[$e.route.id]:Re.data}}}async function A(j,H,he,Q,fe,le,Re,$e){let Pe=Q;Pe||(Pe=hn({state:"loading",location:H,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},fe));let mt=fe||(Pe.formMethod&&Pe.formAction&&Pe.formData&&Pe.formEncType?{formMethod:Pe.formMethod,formAction:Pe.formAction,formData:Pe.formData,formEncType:Pe.formEncType}:void 0),[lt,pe]=vM(e.history,d,he,mt,H,b,w,S,Re,$e,V);if(me(ot=>!(he&&he.some(ht=>ht.route.id===ot))||lt&<.some(ht=>ht.route.id===ot)),lt.length===0&&pe.length===0)return te(H,hn({matches:he,loaderData:{},errors:$e||null},Re?{actionData:Re}:{})),{shortCircuited:!0};if(!x){pe.forEach(ht=>{let $t=d.fetchers.get(ht.key),rn={state:"loading",data:$t&&$t.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};d.fetchers.set(ht.key,rn)});let ot=Re||d.actionData;F(hn({navigation:Pe},ot?Object.keys(ot).length===0?{actionData:null}:{actionData:ot}:{},pe.length>0?{fetchers:new Map(d.fetchers)}:{}))}D=++k,pe.forEach(ot=>C.set(ot.key,y));let{results:ge,loaderResults:Se,fetcherResults:We}=await ke(d.matches,he,lt,pe,j);if(j.signal.aborted)return{shortCircuited:!0};pe.forEach(ot=>C.delete(ot.key));let Ke=xM(ge);if(Ke)return await xe(d,Ke,{replace:le}),{shortCircuited:!0};let{loaderData:Ye,errors:dt}=bM(d,he,lt,Se,$e,pe,We,U);U.forEach((ot,ht)=>{ot.subscribe($t=>{($t||ot.done)&&U.delete(ht)})}),Qe();let ct=qe(D);return hn({loaderData:Ye,errors:dt},ct||pe.length>0?{fetchers:new Map(d.fetchers)}:{})}function ie(j){return d.fetchers.get(j)||lxe}function ae(j,H,he,Q){if(uxe)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.");C.has(j)&&Ue(j);let fe=Dm(t,he,e.basename);if(!fe){Fe(j,H,zl(404,{pathname:he}));return}let{path:le,submission:Re}=gM(he,Q,!0),$e=CM(fe,le);if(g=(Q&&Q.preventScrollReset)===!0,Re&&Ws(Re.formMethod)){ce(j,H,le,$e,fe,Re);return}V.set(j,{routeId:H,path:le,match:$e,matches:fe}),oe(j,H,le,$e,fe,Re)}async function ce(j,H,he,Q,fe,le){if(Ee(),V.delete(j),!Q.route.action){let kn=zl(405,{method:le.formMethod,pathname:he,routeId:H});Fe(j,H,kn);return}let Re=d.fetchers.get(j),$e=hn({state:"submitting"},le,{data:Re&&Re.data," _hasFetcherDoneAnything ":!0});d.fetchers.set(j,$e),F({fetchers:new Map(d.fetchers)});let Pe=new AbortController,mt=nm(e.history,he,Pe.signal,le);C.set(j,Pe);let lt=await tm("action",mt,Q,fe,p.basename);if(mt.signal.aborted){C.get(j)===Pe&&C.delete(j);return}if(zd(lt)){C.delete(j),B.add(j);let kn=hn({state:"loading"},le,{data:void 0," _hasFetcherDoneAnything ":!0});return d.fetchers.set(j,kn),F({fetchers:new Map(d.fetchers)}),xe(d,lt,{isFetchActionRedirect:!0})}if(ng(lt)){Fe(j,H,lt.error);return}if(Sc(lt))throw zl(400,{type:"defer-action"});let pe=d.navigation.location||d.location,ge=nm(e.history,pe,Pe.signal),Se=d.navigation.state!=="idle"?Dm(t,d.navigation.location,e.basename):d.matches;zt(Se,"Didn't find any matches after fetcher action");let We=++k;P.set(j,We);let Ke=hn({state:"loading",data:lt.data},le,{" _hasFetcherDoneAnything ":!0});d.fetchers.set(j,Ke);let[Ye,dt]=vM(e.history,d,Se,le,pe,b,w,S,{[Q.route.id]:lt.data},void 0,V);dt.filter(kn=>kn.key!==j).forEach(kn=>{let Ir=kn.key,mr=d.fetchers.get(Ir),wr={state:"loading",data:mr&&mr.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};d.fetchers.set(Ir,wr),C.set(Ir,Pe)}),F({fetchers:new Map(d.fetchers)});let{results:ct,loaderResults:ot,fetcherResults:ht}=await ke(d.matches,Se,Ye,dt,ge);if(Pe.signal.aborted)return;P.delete(j),C.delete(j),dt.forEach(kn=>C.delete(kn.key));let $t=xM(ct);if($t)return xe(d,$t);let{loaderData:rn,errors:en}=bM(d,d.matches,Ye,ot,void 0,dt,ht,U),Yt={state:"idle",data:lt.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};d.fetchers.set(j,Yt);let hr=qe(We);d.navigation.state==="loading"&&We>D?(zt(v,"Expected pending action"),y&&y.abort(),te(d.navigation.location,{matches:Se,loaderData:rn,errors:en,fetchers:new Map(d.fetchers)})):(F(hn({errors:en,loaderData:wM(d.loaderData,rn,Se,en)},hr?{fetchers:new Map(d.fetchers)}:{})),b=!1)}async function oe(j,H,he,Q,fe,le){let Re=d.fetchers.get(j),$e=hn({state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},le,{data:Re&&Re.data," _hasFetcherDoneAnything ":!0});d.fetchers.set(j,$e),F({fetchers:new Map(d.fetchers)});let Pe=new AbortController,mt=nm(e.history,he,Pe.signal);C.set(j,Pe);let lt=await tm("loader",mt,Q,fe,p.basename);if(Sc(lt)&&(lt=await BV(lt,mt.signal,!0)||lt),C.get(j)===Pe&&C.delete(j),mt.signal.aborted)return;if(zd(lt)){await xe(d,lt);return}if(ng(lt)){let ge=xd(d.matches,H);d.fetchers.delete(j),F({fetchers:new Map(d.fetchers),errors:{[ge.route.id]:lt.error}});return}zt(!Sc(lt),"Unhandled fetcher deferred data");let pe={state:"idle",data:lt.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};d.fetchers.set(j,pe),F({fetchers:new Map(d.fetchers)})}async function xe(j,H,he){var Q;let{submission:fe,replace:le,isFetchActionRedirect:Re}=he===void 0?{}:he;H.revalidate&&(b=!0);let $e=Mg(j.location,H.location,hn({_isRedirect:!0},Re?{_isFetchActionRedirect:!0}:{}));if(zt($e,"Expected a location on the redirect navigation"),$V.test(H.location)&&FV&&typeof((Q=window)==null?void 0:Q.location)<"u"){let Se=e.history.createURL(H.location).origin;if(window.location.origin!==Se){le?window.location.replace(H.location):window.location.assign(H.location);return}}y=null;let Pe=le===!0?Sr.Replace:Sr.Push,{formMethod:mt,formAction:lt,formEncType:pe,formData:ge}=j.navigation;!fe&&mt&<&&ge&&pe&&(fe={formMethod:mt,formAction:lt,formEncType:pe,formData:ge}),sxe.has(H.status)&&fe&&Ws(fe.formMethod)?await G(Pe,$e,{submission:hn({},fe,{formAction:H.location}),preventScrollReset:g}):await G(Pe,$e,{overrideNavigation:{state:"loading",location:$e,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:g})}async function ke(j,H,he,Q,fe){let le=await Promise.all([...he.map(Pe=>tm("loader",fe,Pe,H,p.basename)),...Q.map(Pe=>tm("loader",nm(e.history,Pe.path,fe.signal),Pe.match,Pe.matches,p.basename))]),Re=le.slice(0,he.length),$e=le.slice(he.length);return await Promise.all([SM(j,he,Re,fe.signal,!1,d.loaderData),SM(j,Q.map(Pe=>Pe.match),$e,fe.signal,!0)]),{results:le,loaderResults:Re,fetcherResults:$e}}function Ee(){b=!0,w.push(...me()),V.forEach((j,H)=>{C.has(H)&&(S.push(H),Ue(H))})}function Fe(j,H,he){let Q=xd(d.matches,H);Le(j),F({errors:{[Q.route.id]:he},fetchers:new Map(d.fetchers)})}function Le(j){C.has(j)&&Ue(j),V.delete(j),P.delete(j),B.delete(j),d.fetchers.delete(j)}function Ue(j){let H=C.get(j);zt(H,"Expected fetch controller: "+j),H.abort(),C.delete(j)}function He(j){for(let H of j){let Q={state:"idle",data:ie(H).data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};d.fetchers.set(H,Q)}}function Qe(){let j=[];for(let H of B){let he=d.fetchers.get(H);zt(he,"Expected fetcher: "+H),he.state==="loading"&&(B.delete(H),j.push(H))}He(j)}function qe(j){let H=[];for(let[he,Q]of P)if(Q<j){let fe=d.fetchers.get(he);zt(fe,"Expected fetcher: "+he),fe.state==="loading"&&(Ue(he),P.delete(he),H.push(he))}return He(H),H.length>0}function ut(j,H){let he=d.blockers.get(j)||mM;return W.get(j)!==H&&W.set(j,H),he}function et(j){d.blockers.delete(j),W.delete(j)}function it(j,H){let he=d.blockers.get(j)||mM;zt(he.state==="unblocked"&&H.state==="blocked"||he.state==="blocked"&&H.state==="blocked"||he.state==="blocked"&&H.state==="proceeding"||he.state==="blocked"&&H.state==="unblocked"||he.state==="proceeding"&&H.state==="unblocked","Invalid blocker state transition: "+he.state+" -> "+H.state),d.blockers.set(j,H),F({blockers:new Map(d.blockers)})}function wt(j){let{currentLocation:H,nextLocation:he,historyAction:Q}=j;if(W.size===0)return;W.size>1&&Ng(!1,"A router only supports one blocker at a time");let fe=Array.from(W.entries()),[le,Re]=fe[fe.length-1],$e=d.blockers.get(le);if(!($e&&$e.state==="proceeding")&&Re({currentLocation:H,nextLocation:he,historyAction:Q}))return le}function me(j){let H=[];return U.forEach((he,Q)=>{(!j||j(Q))&&(he.cancel(),H.push(Q),U.delete(Q))}),H}function Te(j,H,he){if(i=j,a=H,o=he||(Q=>Q.key),!s&&d.navigation===PE){s=!0;let Q=Oe(d.location,d.matches);Q!=null&&F({restoreScrollPosition:Q})}return()=>{i=null,a=null,o=null}}function Ce(j,H){if(i&&o&&a){let he=H.map(fe=>EM(fe,d.loaderData)),Q=o(j,he)||j.key;i[Q]=a()}}function Oe(j,H){if(i&&o&&a){let he=H.map(le=>EM(le,d.loaderData)),Q=o(j,he)||j.key,fe=i[Q];if(typeof fe=="number")return fe}return null}return p={get basename(){return e.basename},get state(){return d},get routes(){return t},initialize:ne,subscribe:Z,enableScrollRestoration:Te,navigate:Y,fetch:ae,revalidate:ee,createHref:j=>e.history.createHref(j),encodeLocation:j=>e.history.encodeLocation(j),getFetcher:ie,deleteFetcher:Le,dispose:re,getBlocker:ut,deleteBlocker:et,_internalFetchControllers:C,_internalActiveDeferreds:U},p}function fxe(e){return e!=null&&"formData"in e}function gM(e,t,n){n===void 0&&(n=!1);let r=typeof e=="string"?e:al(e);if(!t||!fxe(t))return{path:r};if(t.formMethod&&!vxe(t.formMethod))return{path:r,error:zl(405,{method:t.formMethod})};let i;if(t.formData&&(i={formMethod:t.formMethod||"get",formAction:NV(r),formEncType:t&&t.formEncType||"application/x-www-form-urlencoded",formData:t.formData},Ws(i.formMethod)))return{path:r,submission:i};let o=pl(r),a=MV(t.formData);return n&&o.search&&jV(o.search)&&a.append("index",""),o.search="?"+a,{path:al(o),submission:i}}function dxe(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 vM(e,t,n,r,i,o,a,s,l,u,f){let p=u?Object.values(u)[0]:l?Object.values(l)[0]:void 0,d=e.createURL(t.location),v=e.createURL(i),g=o||d.toString()===v.toString()||d.search!==v.search,y=u?Object.keys(u)[0]:void 0,b=dxe(n,y).filter((S,C)=>{if(S.route.loader==null)return!1;if(pxe(t.loaderData,t.matches[C],S)||a.some(P=>P===S.route.id))return!0;let k=t.matches[C],D=S;return yM(S,hn({currentUrl:d,currentParams:k.params,nextUrl:v,nextParams:D.params},r,{actionResult:p,defaultShouldRevalidate:g||LV(k,D)}))}),w=[];return f&&f.forEach((S,C)=>{if(n.some(k=>k.route.id===S.routeId))s.includes(C)?w.push(hn({key:C},S)):yM(S.match,hn({currentUrl:d,currentParams:t.matches[t.matches.length-1].params,nextUrl:v,nextParams:n[n.length-1].params},r,{actionResult:p,defaultShouldRevalidate:g}))&&w.push(hn({key:C},S));else return}),[b,w]}function pxe(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function LV(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function yM(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function tm(e,t,n,r,i,o,a,s){i===void 0&&(i="/"),o===void 0&&(o=!1),a===void 0&&(a=!1);let l,u,f,p=new Promise((v,g)=>f=g),d=()=>f();t.signal.addEventListener("abort",d);try{let v=n.route[e];zt(v,"Could not find the "+e+' to run on the "'+n.route.id+'" route'),u=await Promise.race([v({request:t,params:n.params,context:s}),p]),zt(u!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(v){l=Xr.error,u=v}finally{t.signal.removeEventListener("abort",d)}if(gxe(u)){let v=u.status;if(axe.has(v)){let x=u.headers.get("Location");if(zt(x,"Redirects returned/thrown from loaders/actions must have a Location header"),$V.test(x)){if(!o){let b=new URL(t.url),w=x.startsWith("//")?new URL(b.protocol+x):new URL(x);w.origin===b.origin&&(x=w.pathname+w.search+w.hash)}}else{let b=r.slice(0,r.indexOf(n)+1),w=N_(b).map(C=>C.pathnameBase),S=lD(x,w,new URL(t.url).pathname);if(zt(al(S),"Unable to resolve redirect location: "+x),i){let C=S.pathname;S.pathname=C==="/"?i:Zs([i,C])}x=al(S)}if(o)throw u.headers.set("Location",x),u;return{type:Xr.redirect,status:v,location:x,revalidate:u.headers.get("X-Remix-Revalidate")!==null}}if(a)throw{type:l||Xr.data,response:u};let g,y=u.headers.get("Content-Type");return y&&/\bapplication\/json\b/.test(y)?g=await u.json():g=await u.text(),l===Xr.error?{type:l,error:new uD(v,u.statusText,g),headers:u.headers}:{type:Xr.data,data:g,statusCode:u.status,headers:u.headers}}return l===Xr.error?{type:l,error:u}:u instanceof exe?{type:Xr.deferred,deferredData:u}:{type:Xr.data,data:u}}function nm(e,t,n,r){let i=e.createURL(NV(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"?MV(l):l}return new Request(i,o)}function MV(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,r instanceof File?r.name:r);return t}function hxe(e,t,n,r,i){let o={},a=null,s,l=!1,u={};return n.forEach((f,p)=>{let d=t[p].route.id;if(zt(!zd(f),"Cannot handle redirect results in processLoaderData"),ng(f)){let v=xd(e,d),g=f.error;r&&(g=Object.values(r)[0],r=void 0),a=a||{},a[v.route.id]==null&&(a[v.route.id]=g),o[d]=void 0,l||(l=!0,s=IV(f.error)?f.error.status:500),f.headers&&(u[d]=f.headers)}else Sc(f)?(i.set(d,f.deferredData),o[d]=f.deferredData.data):o[d]=f.data,f.statusCode!=null&&f.statusCode!==200&&!l&&(s=f.statusCode),f.headers&&(u[d]=f.headers)}),r&&(a=r,o[Object.keys(r)[0]]=void 0),{loaderData:o,errors:a,statusCode:s||200,loaderHeaders:u}}function bM(e,t,n,r,i,o,a,s){let{loaderData:l,errors:u}=hxe(t,n,r,i,s);for(let f=0;f<o.length;f++){let{key:p,match:d}=o[f];zt(a!==void 0&&a[f]!==void 0,"Did not find corresponding fetcher result");let v=a[f];if(ng(v)){let g=xd(e.matches,d.route.id);u&&u[g.route.id]||(u=hn({},u,{[g.route.id]:v.error})),e.fetchers.delete(p)}else if(zd(v))zt(!1,"Unhandled fetcher revalidation redirect");else if(Sc(v))zt(!1,"Unhandled fetcher deferred data");else{let g={state:"idle",data:v.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};e.fetchers.set(p,g)}}return{loaderData:l,errors:u}}function wM(e,t,n,r){let i=hn({},t);for(let o of n){let a=o.route.id;if(t.hasOwnProperty(a)?t[a]!==void 0&&(i[a]=t[a]):e[a]!==void 0&&(i[a]=e[a]),r&&r.hasOwnProperty(a))break}return i}function xd(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 _M(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 zl(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 uD(e||500,a,new Error(s),!0)}function xM(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(zd(n))return n}}function NV(e){let t=typeof e=="string"?pl(e):e;return al(hn({},t,{hash:""}))}function mxe(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash!==t.hash}function Sc(e){return e.type===Xr.deferred}function ng(e){return e.type===Xr.error}function zd(e){return(e&&e.type)===Xr.redirect}function gxe(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function vxe(e){return oxe.has(e)}function Ws(e){return rxe.has(e)}async function SM(e,t,n,r,i,o){for(let a=0;a<n.length;a++){let s=n[a],l=t[a],u=e.find(p=>p.route.id===l.route.id),f=u!=null&&!LV(u,l)&&(o&&o[l.route.id])!==void 0;Sc(s)&&(i||f)&&await BV(s,r,i).then(p=>{p&&(n[a]=p||n[a])})}}async function BV(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Xr.data,data:e.deferredData.unwrappedData}}catch(i){return{type:Xr.error,error:i}}return{type:Xr.data,data:e.deferredData.data}}}function jV(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function EM(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 CM(e,t){let n=typeof t=="string"?pl(t).search:t.search;if(e[e.length-1].route.index&&jV(n||""))return e[e.length-1];let r=N_(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 I1(){return I1=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},I1.apply(this,arguments)}function yxe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const bxe=typeof Object.is=="function"?Object.is:yxe,{useState:wxe,useEffect:_xe,useLayoutEffect:xxe,useDebugValue:Sxe}=mu;function Exe(e,t,n){const r=t(),[{inst:i},o]=wxe({inst:{value:r,getSnapshot:t}});return xxe(()=>{i.value=r,i.getSnapshot=t,$E(i)&&o({inst:i})},[e,r,t]),_xe(()=>($E(i)&&o({inst:i}),e(()=>{$E(i)&&o({inst:i})})),[e]),Sxe(r),r}function $E(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!bxe(n,r)}catch{return!0}}function Cxe(e,t,n){return t()}const kxe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Txe=!kxe,Rxe=Txe?Cxe:Exe,Oxe="useSyncExternalStore"in mu?(e=>e.useSyncExternalStore)(mu):Rxe,cD=R.createContext(null),B_=R.createContext(null),j_=R.createContext(null),z_=R.createContext(null),Zc=R.createContext({outlet:null,matches:[]}),zV=R.createContext(null);function Axe(e,t){let{relative:n}=t===void 0?{}:t;Ip()||zt(!1);let{basename:r,navigator:i}=R.useContext(j_),{hash:o,pathname:a,search:s}=VV(e,{relative:n}),l=a;return r!=="/"&&(l=a==="/"?r:Zs([r,a])),i.createHref({pathname:l,search:s,hash:o})}function Ip(){return R.useContext(z_)!=null}function bv(){return Ip()||zt(!1),R.useContext(z_).location}function ef(){Ip()||zt(!1);let{basename:e,navigator:t}=R.useContext(j_),{matches:n}=R.useContext(Zc),{pathname:r}=bv(),i=JSON.stringify(N_(n).map(s=>s.pathnameBase)),o=R.useRef(!1);return R.useEffect(()=>{o.current=!0}),R.useCallback(function(s,l){if(l===void 0&&(l={}),!o.current)return;if(typeof s=="number"){t.go(s);return}let u=lD(s,JSON.parse(i),r,l.relative==="path");e!=="/"&&(u.pathname=u.pathname==="/"?e:Zs([e,u.pathname])),(l.replace?t.replace:t.push)(u,l.state,l)},[e,t,i,r])}function UV(){let{matches:e}=R.useContext(Zc),t=e[e.length-1];return t?t.params:{}}function VV(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=R.useContext(Zc),{pathname:i}=bv(),o=JSON.stringify(N_(r).map(a=>a.pathnameBase));return R.useMemo(()=>lD(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function Dxe(e,t){Ip()||zt(!1);let{navigator:n}=R.useContext(j_),r=R.useContext(B_),{matches:i}=R.useContext(Zc),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let s=o?o.pathnameBase:"/";o&&o.route;let l=bv(),u;if(t){var f;let y=typeof t=="string"?pl(t):t;s==="/"||(f=y.pathname)!=null&&f.startsWith(s)||zt(!1),u=y}else u=l;let p=u.pathname||"/",d=s==="/"?p:p.slice(s.length)||"/",v=Dm(e,{pathname:d}),g=Fxe(v&&v.map(y=>Object.assign({},y,{params:Object.assign({},a,y.params),pathname:Zs([s,n.encodeLocation?n.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?s:Zs([s,n.encodeLocation?n.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,r||void 0);return t&&g?R.createElement(z_.Provider,{value:{location:I1({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Sr.Pop}},g):g}function Ixe(){let e=Bxe(),t=IV(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 R.createElement(R.Fragment,null,R.createElement("h2",null,"Unexpected Application Error!"),R.createElement("h3",{style:{fontStyle:"italic"}},t),n?R.createElement("pre",{style:i},n):null,o)}class Pxe extends R.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?R.createElement(Zc.Provider,{value:this.props.routeContext},R.createElement(zV.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function $xe(e){let{routeContext:t,match:n,children:r}=e,i=R.useContext(cD);return i&&i.static&&i.staticContext&&n.route.errorElement&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),R.createElement(Zc.Provider,{value:t},r)}function Fxe(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||zt(!1),r=r.slice(0,Math.min(r.length,o+1))}return r.reduceRight((o,a,s)=>{let l=a.route.id?i==null?void 0:i[a.route.id]:null,u=n?a.route.errorElement||R.createElement(Ixe,null):null,f=t.concat(r.slice(0,s+1)),p=()=>R.createElement($xe,{match:a,routeContext:{outlet:o,matches:f}},l?u:a.route.element!==void 0?a.route.element:o);return n&&(a.route.errorElement||s===0)?R.createElement(Pxe,{location:n.location,component:u,error:l,children:p(),routeContext:{outlet:null,matches:f}}):p()},null)}var kM;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator"})(kM||(kM={}));var P1;(function(e){e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"})(P1||(P1={}));function Lxe(e){let t=R.useContext(B_);return t||zt(!1),t}function Mxe(e){let t=R.useContext(Zc);return t||zt(!1),t}function Nxe(e){let t=Mxe(),n=t.matches[t.matches.length-1];return n.route.id||zt(!1),n.route.id}function Bxe(){var e;let t=R.useContext(zV),n=Lxe(P1.UseRouteError),r=Nxe(P1.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function jxe(e){let{fallbackElement:t,router:n}=e,r=Oxe(n.subscribe,()=>n.state,()=>n.state),i=R.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 R.createElement(R.Fragment,null,R.createElement(cD.Provider,{value:{router:n,navigator:i,static:!1,basename:o}},R.createElement(B_.Provider,{value:r},R.createElement(Uxe,{basename:n.basename,location:n.state.location,navigationType:n.state.historyAction,navigator:i},n.state.initialized?R.createElement(Vxe,null):t))),null)}function WV(e){let{to:t,replace:n,state:r,relative:i}=e;Ip()||zt(!1);let o=R.useContext(B_),a=ef();return R.useEffect(()=>{o&&o.navigation.state!=="idle"||a(t,{replace:n,state:r,relative:i})}),null}function zxe(e){zt(!1)}function Uxe(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Sr.Pop,navigator:o,static:a=!1}=e;Ip()&&zt(!1);let s=t.replace(/^\/*/,"/"),l=R.useMemo(()=>({basename:s,navigator:o,static:a}),[s,o,a]);typeof r=="string"&&(r=pl(r));let{pathname:u="/",search:f="",hash:p="",state:d=null,key:v="default"}=r,g=R.useMemo(()=>{let y=DV(u,s);return y==null?null:{pathname:y,search:f,hash:p,state:d,key:v}},[s,u,f,p,d,v]);return g==null?null:R.createElement(j_.Provider,{value:l},R.createElement(z_.Provider,{children:n,value:{location:g,navigationType:i}}))}function Vxe(e){let{children:t,location:n}=e,r=R.useContext(cD),i=r&&!t?r.router.routes:TT(t);return Dxe(i,n)}var TM;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(TM||(TM={}));new Promise(()=>{});function TT(e,t){t===void 0&&(t=[]);let n=[];return R.Children.forEach(e,(r,i)=>{if(!R.isValidElement(r))return;if(r.type===R.Fragment){n.push.apply(n,TT(r.props.children,t));return}r.type!==zxe&&zt(!1),!r.props.index||!r.props.children||zt(!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=TT(r.props.children,o)),n.push(a)}),n}function KV(e){return e.map(t=>{let n=I1({},t);return n.hasErrorBoundary==null&&(n.hasErrorBoundary=n.errorElement!=null),n.children&&(n.children=KV(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 $1(){return $1=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},$1.apply(this,arguments)}function Wxe(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 Kxe(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Hxe(e,t){return e.button===0&&(!t||t==="_self")&&!Kxe(e)}const qxe=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function Gxe(e,t){return cxe({basename:t==null?void 0:t.basename,history:D_e({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||Qxe(),routes:KV(e)}).initialize()}function Qxe(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=$1({},t,{errors:Yxe(t.errors)})),t}function Yxe(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 uD(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 Xxe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",wv=R.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:l,to:u,preventScrollReset:f}=t,p=Wxe(t,qxe),d,v=!1;if(Xxe&&typeof u=="string"&&/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i.test(u)){d=u;let b=new URL(window.location.href),w=u.startsWith("//")?new URL(b.protocol+u):new URL(u);w.origin===b.origin?u=w.pathname+w.search+w.hash:v=!0}let g=Axe(u,{relative:i}),y=Jxe(u,{replace:a,state:s,target:l,preventScrollReset:f,relative:i});function x(b){r&&r(b),b.defaultPrevented||y(b)}return R.createElement("a",$1({},p,{href:d||g,onClick:v||o?r:x,ref:n,target:l}))});var RM;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(RM||(RM={}));var OM;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(OM||(OM={}));function Jxe(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a}=t===void 0?{}:t,s=ef(),l=bv(),u=VV(e,{relative:a});return R.useCallback(f=>{if(Hxe(f,n)){f.preventDefault();let p=r!==void 0?r:al(l)===al(u);s(e,{replace:p,state:i,preventScrollReset:o,relative:a})}},[l,s,u,r,i,n,e,o,a])}const HV=ni({key:"AccessToken",default:void 0}),fD=ni({key:"Role",default:void 0}),AM=localStorage.getItem("userEnv"),U_=ni({key:"UserEnv",default:AM?JSON.parse(AM):{}}),F1=new URL(window.origin),qV=`${F1.protocol}//${F1.host}`,Zxe=`${F1.protocol==="https:"?"wss":"ws"}://${F1.host}`,eSe=async()=>(await fetch(`${qV}/project/settings`,{headers:{"content-type":"application/json"},method:"GET"})).json(),tSe=async(e,t,n={})=>{const r=await fetch(`${qV}/completion`,{headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({prompt:e,settings:t,userEnv:n})});if(!r.ok)throw new Error(r.statusText);return await r.text()},nSe=async(e,t,n)=>(await fetch(`${e}/api/role`,{headers:{"content-type":"application/json",Authorization:t},method:"POST",body:JSON.stringify({projectId:n})})).json(),V_={fontFamily:["Inter","sans-serif"].join(",")},W_={MuiButton:{defaultProps:{disableElevation:!0,disableRipple:!0,sx:{textTransform:"none"}}},MuiLink:{defaultProps:{fontWeight:500}}},K_={borderRadius:8},GV={main:"rgba(25, 195, 125, 1)",contrastText:"#fff"},QV={main:"rgba(239, 65, 70, 1)",contrastText:"#fff"},rSe=Op({typography:V_,components:W_,shape:K_,palette:{mode:"dark",success:GV,error:QV,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"}}}),iSe=Op({typography:V_,components:W_,shape:K_,palette:{mode:"light",success:GV,error:QV,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"}}}),oSe=e=>e==="dark"?rSe:iSe,aSe=Op({typography:V_,components:W_,shape:K_,palette:{primary:{main:"#616161",contrastText:"#F5F5F5"}}}),sSe=Op({typography:V_,components:W_,shape:K_,palette:{primary:{main:"#EEEEEE",contrastText:"#616161"}}}),Pp=ni({key:"Session",dangerouslyAllowMutability:!0,default:void 0}),dD=ni({key:"Messages",dangerouslyAllowMutability:!0,default:[]}),YV=ni({key:"TokenCount",default:0}),_v=ni({key:"Loading",default:!1}),XV=ni({key:"HistoryOpened",default:!1}),H_=ni({key:"AskUser",default:void 0});var pD={},JV={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})(JV);var Wn=JV.exports,FE={};const lSe=C4(ege);var DM;function Kn(){return DM||(DM=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=lSe}(FE)),FE}var uSe=Wn;Object.defineProperty(pD,"__esModule",{value:!0});var ZV=pD.default=void 0,cSe=uSe(Kn()),fSe=T,dSe=(0,cSe.default)((0,fSe.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");ZV=pD.default=dSe;var hD={},pSe=Wn;Object.defineProperty(hD,"__esModule",{value:!0});var e8=hD.default=void 0,hSe=pSe(Kn()),mSe=T,gSe=(0,hSe.default)((0,mSe.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess");e8=hD.default=gSe;function t8(e){const n=Da().palette.mode==="dark"?aSe:sSe;return T.jsx(j9,{theme:n,children:T.jsx(Jc,{...e})})}const vSe="light",IM=localStorage.getItem("themeVariant"),ySe=IM||vSe,hl=ni({key:"AppSettings",default:{open:!1,expandAll:!1,hideCot:!1,theme:ySe}});function bSe({message:e,opened:t,onClick:n,loading:r}){var g;const{hideCot:i}=Ft(hl),o=(g=e.subMessages)==null?void 0:g.length,a=!!o,s=a?e.subMessages[o-1].author:void 0,l=r&&!e.content,u=r&&e.authorIsUser;if(!(a||l||u)||i)return null;const p=o?e.subMessages.filter(y=>!!y.content).length:0,d=r?s?`Using ${s}`:"Running":`Took ${p} step${p<=1?"":"s"}`;let v="";return s&&(v=s.trim().toLowerCase().replaceAll(" ","-")),r?v+="-loading":v+="-done",T.jsx(t8,{id:v,disableElevation:!0,disableRipple:!0,sx:{textTransform:"none"},color:"primary",startIcon:r?T.jsx(sV,{color:"inherit",size:16}):void 0,variant:"contained",endIcon:a&&s?t?T.jsx(e8,{}):T.jsx(ZV,{}):void 0,onClick:s?n:void 0,children:d})}/*!
|
|
192
|
-
* Determine if an object is a Buffer
|
|
193
|
-
*
|
|
194
|
-
* @author Feross Aboukhadijeh <https://feross.org>
|
|
195
|
-
* @license MIT
|
|
196
|
-
*/var wSe=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)};const n8=ps(wSe);function rg(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?PM(e.position):"start"in e||"end"in e?PM(e):"line"in e||"column"in e?RT(e):""}function RT(e){return $M(e&&e.line)+":"+$M(e&&e.column)}function PM(e){return RT(e&&e.start)+"-"+RT(e&&e.end)}function $M(e){return e&&typeof e=="number"?e:1}class ea 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}}ea.prototype.file="";ea.prototype.name="";ea.prototype.reason="";ea.prototype.message="";ea.prototype.stack="";ea.prototype.fatal=null;ea.prototype.column=null;ea.prototype.line=null;ea.prototype.source=null;ea.prototype.ruleId=null;ea.prototype.position=null;const Ga={basename:_Se,dirname:xSe,extname:SSe,join:ESe,sep:"/"};function _Se(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');xv(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 xSe(e){if(xv(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 SSe(e){xv(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 ESe(...e){let t=-1,n;for(;++t<e.length;)xv(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":CSe(n)}function CSe(e){xv(e);const t=e.charCodeAt(0)===47;let n=kSe(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.charCodeAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function kSe(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 xv(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const TSe={cwd:RSe};function RSe(){return"/"}function OT(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function OSe(e){if(typeof e=="string")e=new URL(e);else if(!OT(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 ASe(e)}function ASe(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 LE=["history","path","basename","stem","extname","dirname"];class r8{constructor(t){let n;t?typeof t=="string"||DSe(t)?n={value:t}:OT(t)?n={path:t}:n=t:n={},this.data={},this.messages=[],this.history=[],this.cwd=TSe.cwd(),this.value,this.stored,this.result,this.map;let r=-1;for(;++r<LE.length;){const o=LE[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)LE.includes(i)||(this[i]=n[i])}get path(){return this.history[this.history.length-1]}set path(t){OT(t)&&(t=OSe(t)),NE(t,"path"),this.path!==t&&this.history.push(t)}get dirname(){return typeof this.path=="string"?Ga.dirname(this.path):void 0}set dirname(t){FM(this.basename,"dirname"),this.path=Ga.join(t||"",this.basename)}get basename(){return typeof this.path=="string"?Ga.basename(this.path):void 0}set basename(t){NE(t,"basename"),ME(t,"basename"),this.path=Ga.join(this.dirname||"",t)}get extname(){return typeof this.path=="string"?Ga.extname(this.path):void 0}set extname(t){if(ME(t,"extname"),FM(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=Ga.join(this.dirname,this.stem+(t||""))}get stem(){return typeof this.path=="string"?Ga.basename(this.path,this.extname):void 0}set stem(t){NE(t,"stem"),ME(t,"stem"),this.path=Ga.join(this.dirname||"",t+(this.extname||""))}toString(t){return(this.value||"").toString(t||void 0)}message(t,n,r){const i=new ea(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 ME(e,t){if(e&&e.includes(Ga.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Ga.sep+"`")}function NE(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function FM(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function DSe(e){return n8(e)}function LM(e){if(e)throw e}var Cb=Object.prototype.hasOwnProperty,i8=Object.prototype.toString,MM=Object.defineProperty,NM=Object.getOwnPropertyDescriptor,BM=function(t){return typeof Array.isArray=="function"?Array.isArray(t):i8.call(t)==="[object Array]"},jM=function(t){if(!t||i8.call(t)!=="[object Object]")return!1;var n=Cb.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&Cb.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||Cb.call(t,i)},zM=function(t,n){MM&&n.name==="__proto__"?MM(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},UM=function(t,n){if(n==="__proto__")if(Cb.call(t,n)){if(NM)return NM(t,n).value}else return;return t[n]},ISe=function e(){var t,n,r,i,o,a,s=arguments[0],l=1,u=arguments.length,f=!1;for(typeof s=="boolean"&&(f=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});l<u;++l)if(t=arguments[l],t!=null)for(n in t)r=UM(s,n),i=UM(t,n),s!==i&&(f&&i&&(jM(i)||(o=BM(i)))?(o?(o=!1,a=r&&BM(r)?r:[]):a=r&&jM(r)?r:{},zM(s,{name:n,newValue:e(f,a,i)})):typeof i<"u"&&zM(s,{name:n,newValue:i}));return s};const VM=ps(ISe);function AT(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 PSe(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);s(null,...i);function s(l,...u){const f=e[++o];let p=-1;if(l){a(l);return}for(;++p<i.length;)(u[p]===null||u[p]===void 0)&&(u[p]=i[p]);i=u,f?$Se(f,s)(...u):a(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function $Se(e,t){let n;return r;function r(...a){const s=e.length>a.length;let l;s&&a.push(i);try{l=e.apply(this,a)}catch(u){const f=u;if(s&&n)throw f;return i(f)}s||(l instanceof Promise?l.then(o,i):l instanceof Error?i(l):o(l))}function i(a,...s){n||(n=!0,t(a,...s))}function o(a){i(null,a)}}const FSe=a8().freeze(),o8={}.hasOwnProperty;function a8(){const e=PSe(),t=[];let n={},r,i=-1;return o.data=a,o.Parser=void 0,o.Compiler=void 0,o.freeze=s,o.attachers=t,o.use=l,o.parse=u,o.stringify=f,o.run=p,o.runSync=d,o.process=v,o.processSync=g,o;function o(){const y=a8();let x=-1;for(;++x<t.length;)y.use(...t[x]);return y.data(VM(!0,{},n)),y}function a(y,x){return typeof y=="string"?arguments.length===2?(zE("data",r),n[y]=x,o):o8.call(n,y)&&n[y]||null:y?(zE("data",r),n=y,o):n}function s(){if(r)return o;for(;++i<t.length;){const[y,...x]=t[i];if(x[0]===!1)continue;x[0]===!0&&(x[0]=void 0);const b=y.call(o,...x);typeof b=="function"&&e.use(b)}return r=!0,i=Number.POSITIVE_INFINITY,o}function l(y,...x){let b;if(zE("use",r),y!=null)if(typeof y=="function")k(y,...x);else if(typeof y=="object")Array.isArray(y)?C(y):S(y);else throw new TypeError("Expected usable value, not `"+y+"`");return b&&(n.settings=Object.assign(n.settings||{},b)),o;function w(D){if(typeof D=="function")k(D);else if(typeof D=="object")if(Array.isArray(D)){const[P,...B]=D;k(P,...B)}else S(D);else throw new TypeError("Expected usable value, not `"+D+"`")}function S(D){C(D.plugins),D.settings&&(b=Object.assign(b||{},D.settings))}function C(D){let P=-1;if(D!=null)if(Array.isArray(D))for(;++P<D.length;){const B=D[P];w(B)}else throw new TypeError("Expected a list of plugins, not `"+D+"`")}function k(D,P){let B=-1,V;for(;++B<t.length;)if(t[B][0]===D){V=t[B];break}V?(AT(V[1])&&AT(P)&&(P=VM(!0,V[1],P)),V[1]=P):t.push([...arguments])}}function u(y){o.freeze();const x=rm(y),b=o.Parser;return BE("parse",b),WM(b,"parse")?new b(String(x),x).parse():b(String(x),x)}function f(y,x){o.freeze();const b=rm(x),w=o.Compiler;return jE("stringify",w),KM(y),WM(w,"compile")?new w(y,b).compile():w(y,b)}function p(y,x,b){if(KM(y),o.freeze(),!b&&typeof x=="function"&&(b=x,x=void 0),!b)return new Promise(w);w(null,b);function w(S,C){e.run(y,rm(x),k);function k(D,P,B){P=P||y,D?C(D):S?S(P):b(null,P,B)}}}function d(y,x){let b,w;return o.run(y,x,S),HM("runSync","run",w),b;function S(C,k){LM(C),b=k,w=!0}}function v(y,x){if(o.freeze(),BE("process",o.Parser),jE("process",o.Compiler),!x)return new Promise(b);b(null,x);function b(w,S){const C=rm(y);o.run(o.parse(C),C,(D,P,B)=>{if(D||!P||!B)k(D);else{const V=o.stringify(P,B);V==null||(NSe(V)?B.value=V:B.result=V),k(D,B)}});function k(D,P){D||!P?S(D):w?w(P):x(null,P)}}}function g(y){let x;o.freeze(),BE("processSync",o.Parser),jE("processSync",o.Compiler);const b=rm(y);return o.process(b,w),HM("processSync","process",x),b;function w(S){x=!0,LM(S)}}}function WM(e,t){return typeof e=="function"&&e.prototype&&(LSe(e.prototype)||t in e.prototype)}function LSe(e){let t;for(t in e)if(o8.call(e,t))return!0;return!1}function BE(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Parser`")}function jE(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Compiler`")}function zE(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 KM(e){if(!AT(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function HM(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function rm(e){return MSe(e)?e:new r8(e)}function MSe(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function NSe(e){return typeof e=="string"||n8(e)}function BSe(e,t){const n=(t||{}).includeImageAlt;return s8(e,typeof n=="boolean"?n:!0)}function s8(e,t){return jSe(e)&&("value"in e&&e.value||t&&"alt"in e&&e.alt||"children"in e&&qM(e.children,t))||Array.isArray(e)&&qM(e,t)||""}function qM(e,t){const n=[];let r=-1;for(;++r<e.length;)n[r]=s8(e[r],t);return n.join("")}function jSe(e){return!!(e&&typeof e=="object")}function fo(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 Mo(e,t){return e.length>0?(fo(e,e.length,0,t),e):t}const GM={}.hasOwnProperty;function l8(e){const t={};let n=-1;for(;++n<e.length;)zSe(t,e[n]);return t}function zSe(e,t){let n;for(n in t){const i=(GM.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let a;for(a in o){GM.call(i,a)||(i[a]=[]);const s=o[a];USe(i[a],Array.isArray(s)?s:s?[s]:[])}}}function USe(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);fo(e,0,0,r)}const VSe=/[!-/:-@[-`{-~\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]/,jo=$u(/[A-Za-z]/),L1=$u(/\d/),WSe=$u(/[\dA-Fa-f]/),Si=$u(/[\dA-Za-z]/),KSe=$u(/[!-/:-@[-`{-~]/),QM=$u(/[#-'*+\--9=?A-Z^-~]/);function Bg(e){return e!==null&&(e<32||e===127)}function dr(e){return e!==null&&(e<0||e===32)}function Ct(e){return e!==null&&e<-2}function Rn(e){return e===-2||e===-1||e===32}const q_=$u(/\s/),G_=$u(VSe);function $u(e){return t;function t(n){return n!==null&&e.test(String.fromCharCode(n))}}function sn(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(l){return Rn(l)?(e.enter(n),s(l)):t(l)}function s(l){return Rn(l)&&o++<i?(e.consume(l),s):(e.exit(n),t(l))}}const HSe={tokenize:qSe};function qSe(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"),sn(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 Ct(s)?(e.consume(s),e.exit("chunkText"),o):(e.consume(s),a)}}const GSe={tokenize:QSe},YM={tokenize:YSe};function QSe(e){const t=this,n=[];let r=0,i,o,a;return s;function s(S){if(r<n.length){const C=n[r];return t.containerState=C[1],e.attempt(C[0].continuation,l,u)(S)}return u(S)}function l(S){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&w();const C=t.events.length;let k=C,D;for(;k--;)if(t.events[k][0]==="exit"&&t.events[k][1].type==="chunkFlow"){D=t.events[k][1].end;break}b(r);let P=C;for(;P<t.events.length;)t.events[P][1].end=Object.assign({},D),P++;return fo(t.events,k+1,0,t.events.slice(C)),t.events.length=P,u(S)}return s(S)}function u(S){if(r===n.length){if(!i)return d(S);if(i.currentConstruct&&i.currentConstruct.concrete)return g(S);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(YM,f,p)(S)}function f(S){return i&&w(),b(r),d(S)}function p(S){return t.parser.lazy[t.now().line]=r!==n.length,a=t.now().offset,g(S)}function d(S){return t.containerState={},e.attempt(YM,v,g)(S)}function v(S){return r++,n.push([t.currentConstruct,t.containerState]),d(S)}function g(S){if(S===null){i&&w(),b(0),e.consume(S);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:o,_tokenizer:i}),y(S)}function y(S){if(S===null){x(e.exit("chunkFlow"),!0),b(0),e.consume(S);return}return Ct(S)?(e.consume(S),x(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(S),y)}function x(S,C){const k=t.sliceStream(S);if(C&&k.push(null),S.previous=o,o&&(o.next=S),o=S,i.defineSkip(S.start),i.write(k),t.parser.lazy[S.start.line]){let D=i.events.length;for(;D--;)if(i.events[D][1].start.offset<a&&(!i.events[D][1].end||i.events[D][1].end.offset>a))return;const P=t.events.length;let B=P,V,U;for(;B--;)if(t.events[B][0]==="exit"&&t.events[B][1].type==="chunkFlow"){if(V){U=t.events[B][1].end;break}V=!0}for(b(r),D=P;D<t.events.length;)t.events[D][1].end=Object.assign({},U),D++;fo(t.events,B+1,0,t.events.slice(P)),t.events.length=D}}function b(S){let C=n.length;for(;C-- >S;){const k=n[C];t.containerState=k[1],k[0].exit.call(t,e)}n.length=S}function w(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function YSe(e,t,n){return sn(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function M1(e){if(e===null||dr(e)||q_(e))return 1;if(G_(e))return 2}function Q_(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 DT={name:"attention",tokenize:JSe,resolveAll:XSe};function XSe(e,t){let n=-1,r,i,o,a,s,l,u,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const p=Object.assign({},e[r][1].end),d=Object.assign({},e[n][1].start);XM(p,-l),XM(d,l),a={type:l>1?"strongSequence":"emphasisSequence",start:p,end:Object.assign({},e[r][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:d},o={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},a.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},a.start),e[n][1].start=Object.assign({},s.end),u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=Mo(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=Mo(u,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",o,t]]),u=Mo(u,Q_(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=Mo(u,[["exit",o,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,u=Mo(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,fo(e,r-1,n-r+3,u),n=r+u.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function JSe(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=M1(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 u=e.exit("attentionSequence"),f=M1(l),p=!f||f===2&&i||n.includes(l),d=!i||i===2&&f||n.includes(r);return u._open=!!(o===42?p:p&&(i||!d)),u._close=!!(o===42?d:d&&(f||!p)),t(l)}}function XM(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const ZSe={name:"autolink",tokenize:eEe};function eEe(e,t,n){let r=1;return i;function i(g){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(g){return jo(g)?(e.consume(g),a):QM(g)?u(g):n(g)}function a(g){return g===43||g===45||g===46||Si(g)?s(g):u(g)}function s(g){return g===58?(e.consume(g),l):(g===43||g===45||g===46||Si(g))&&r++<32?(e.consume(g),s):u(g)}function l(g){return g===62?(e.exit("autolinkProtocol"),v(g)):g===null||g===32||g===60||Bg(g)?n(g):(e.consume(g),l)}function u(g){return g===64?(e.consume(g),r=0,f):QM(g)?(e.consume(g),u):n(g)}function f(g){return Si(g)?p(g):n(g)}function p(g){return g===46?(e.consume(g),r=0,f):g===62?(e.exit("autolinkProtocol").type="autolinkEmail",v(g)):d(g)}function d(g){return(g===45||Si(g))&&r++<63?(e.consume(g),g===45?d:p):n(g)}function v(g){return e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.exit("autolink"),t}}const Sv={tokenize:tEe,partial:!0};function tEe(e,t,n){return sn(e,r,"linePrefix");function r(i){return i===null||Ct(i)?t(i):n(i)}}const u8={name:"blockQuote",tokenize:nEe,continuation:{tokenize:rEe},exit:iEe};function nEe(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 Rn(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function rEe(e,t,n){return sn(e,e.attempt(u8,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function iEe(e){e.exit("blockQuote")}const c8={name:"characterEscape",tokenize:oEe};function oEe(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 KSe(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const JM=document.createElement("i");function mD(e){const t="&"+e+";";JM.innerHTML=t;const n=JM.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}const f8={name:"characterReference",tokenize:aEe};function aEe(e,t,n){const r=this;let i=0,o,a;return s;function s(p){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),l}function l(p){return p===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(p),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,a=Si,f(p))}function u(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,a=WSe,f):(e.enter("characterReferenceValue"),o=7,a=L1,f(p))}function f(p){let d;return p===59&&i?(d=e.exit("characterReferenceValue"),a===Si&&!mD(r.sliceSerialize(d))?n(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)):a(p)&&i++<o?(e.consume(p),f):n(p)}}const ZM={name:"codeFenced",tokenize:sEe,concrete:!0};function sEe(e,t,n){const r=this,i={tokenize:k,partial:!0},o={tokenize:C,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,u;return f;function f(D){return e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u=D,p(D)}function p(D){return D===u?(e.consume(D),l++,p):(e.exit("codeFencedFenceSequence"),l<3?n(D):sn(e,d,"whitespace")(D))}function d(D){return D===null||Ct(D)?x(D):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),v(D))}function v(D){return D===null||dr(D)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),sn(e,g,"whitespace")(D)):D===96&&D===u?n(D):(e.consume(D),v)}function g(D){return D===null||Ct(D)?x(D):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),y(D))}function y(D){return D===null||Ct(D)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),x(D)):D===96&&D===u?n(D):(e.consume(D),y)}function x(D){return e.exit("codeFencedFence"),r.interrupt?t(D):b(D)}function b(D){return D===null?S(D):Ct(D)?e.attempt(o,e.attempt(i,S,s?sn(e,b,"linePrefix",s+1):b),S)(D):(e.enter("codeFlowValue"),w(D))}function w(D){return D===null||Ct(D)?(e.exit("codeFlowValue"),b(D)):(e.consume(D),w)}function S(D){return e.exit("codeFenced"),t(D)}function C(D,P,B){const V=this;return U;function U(se){return D.enter("lineEnding"),D.consume(se),D.exit("lineEnding"),W}function W(se){return V.parser.lazy[V.now().line]?B(se):P(se)}}function k(D,P,B){let V=0;return sn(D,U,"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function U(ne){return D.enter("codeFencedFence"),D.enter("codeFencedFenceSequence"),W(ne)}function W(ne){return ne===u?(D.consume(ne),V++,W):V<l?B(ne):(D.exit("codeFencedFenceSequence"),sn(D,se,"whitespace")(ne))}function se(ne){return ne===null||Ct(ne)?(D.exit("codeFencedFence"),P(ne)):B(ne)}}}const UE={name:"codeIndented",tokenize:uEe},lEe={tokenize:cEe,partial:!0};function uEe(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),sn(e,o,"linePrefix",4+1)(u)}function o(u){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?a(u):n(u)}function a(u){return u===null?l(u):Ct(u)?e.attempt(lEe,a,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||Ct(u)?(e.exit("codeFlowValue"),a(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function cEe(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):Ct(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):sn(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):Ct(a)?i(a):n(a)}}const fEe={name:"codeText",tokenize:hEe,resolve:dEe,previous:pEe};function dEe(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 pEe(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function hEe(e,t,n){let r=0,i,o;return a;function a(p){return e.enter("codeText"),e.enter("codeTextSequence"),s(p)}function s(p){return p===96?(e.consume(p),r++,s):(e.exit("codeTextSequence"),l(p))}function l(p){return p===null?n(p):p===96?(o=e.enter("codeTextSequence"),i=0,f(p)):p===32?(e.enter("space"),e.consume(p),e.exit("space"),l):Ct(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(p))}function u(p){return p===null||p===32||p===96||Ct(p)?(e.exit("codeTextData"),l(p)):(e.consume(p),u)}function f(p){return p===96?(e.consume(p),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(o.type="codeTextData",u(p))}}function d8(e){const t={};let n=-1,r,i,o,a,s,l,u;for(;++n<e.length;){for(;n in t;)n=t[n];if(r=e[n],n&&r[1].type==="chunkFlow"&&e[n-1][1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,o=0,o<l.length&&l[o][1].type==="lineEndingBlank"&&(o+=2),o<l.length&&l[o][1].type==="content"))for(;++o<l.length&&l[o][1].type!=="content";)l[o][1].type==="chunkText"&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,mEe(e,n)),n=t[n],u=!0);else if(r[1]._container){for(o=n,i=void 0;o--&&(a=e[o],a[1].type==="lineEnding"||a[1].type==="lineEndingBlank");)a[0]==="enter"&&(i&&(e[i][1].type="lineEndingBlank"),a[1].type="lineEnding",i=o);i&&(r[1].end=Object.assign({},e[i][1].start),s=e.slice(i,n),s.unshift(r),fo(e,i,n-i+1,s))}}return!u}function mEe(e,t){const n=e[t][1],r=e[t][2];let i=t-1;const o=[],a=n._tokenizer||r.parser[n.contentType](n.start),s=a.events,l=[],u={};let f,p,d=-1,v=n,g=0,y=0;const x=[y];for(;v;){for(;e[++i][1]!==v;);o.push(i),v._tokenizer||(f=r.sliceStream(v),v.next||f.push(null),p&&a.defineSkip(v.start),v._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(f),v._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),p=v,v=v.next}for(v=n;++d<s.length;)s[d][0]==="exit"&&s[d-1][0]==="enter"&&s[d][1].type===s[d-1][1].type&&s[d][1].start.line!==s[d][1].end.line&&(y=d+1,x.push(y),v._tokenizer=void 0,v.previous=void 0,v=v.next);for(a.events=[],v?(v._tokenizer=void 0,v.previous=void 0):x.pop(),d=x.length;d--;){const b=s.slice(x[d],x[d+1]),w=o.pop();l.unshift([w,w+b.length-1]),fo(e,w,2,b)}for(d=-1;++d<l.length;)u[g+l[d][0]]=g+l[d][1],g+=l[d][1]-l[d][0]-1;return u}const gEe={tokenize:bEe,resolve:yEe},vEe={tokenize:wEe,partial:!0};function yEe(e){return d8(e),e}function bEe(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):Ct(s)?e.check(vEe,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 wEe(e,t,n){const r=this;return i;function i(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),sn(e,o,"linePrefix")}function o(a){if(a===null||Ct(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 p8(e,t,n,r,i,o,a,s,l){const u=l||Number.POSITIVE_INFINITY;let f=0;return p;function p(b){return b===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(b),e.exit(o),d):b===null||b===41||Bg(b)?n(b):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),y(b))}function d(b){return b===62?(e.enter(o),e.consume(b),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),v(b))}function v(b){return b===62?(e.exit("chunkString"),e.exit(s),d(b)):b===null||b===60||Ct(b)?n(b):(e.consume(b),b===92?g:v)}function g(b){return b===60||b===62||b===92?(e.consume(b),v):v(b)}function y(b){return b===40?++f>u?n(b):(e.consume(b),y):b===41?f--?(e.consume(b),y):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(b)):b===null||dr(b)?f?n(b):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(b)):Bg(b)?n(b):(e.consume(b),b===92?x:y)}function x(b){return b===40||b===41||b===92?(e.consume(b),y):y(b)}}function h8(e,t,n,r,i,o){const a=this;let s=0,l;return u;function u(v){return e.enter(r),e.enter(i),e.consume(v),e.exit(i),e.enter(o),f}function f(v){return v===null||v===91||v===93&&!l||v===94&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs||s>999?n(v):v===93?(e.exit(o),e.enter(i),e.consume(v),e.exit(i),e.exit(r),t):Ct(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),p(v))}function p(v){return v===null||v===91||v===93||Ct(v)||s++>999?(e.exit("chunkString"),f(v)):(e.consume(v),l=l||!Rn(v),v===92?d:p)}function d(v){return v===91||v===92||v===93?(e.consume(v),s++,p):p(v)}}function m8(e,t,n,r,i,o){let a;return s;function s(d){return e.enter(r),e.enter(i),e.consume(d),e.exit(i),a=d===40?41:d,l}function l(d){return d===a?(e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):(e.enter(o),u(d))}function u(d){return d===a?(e.exit(o),l(a)):d===null?n(d):Ct(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),sn(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(d))}function f(d){return d===a||d===null||Ct(d)?(e.exit("chunkString"),u(d)):(e.consume(d),d===92?p:f)}function p(d){return d===a||d===92?(e.consume(d),f):f(d)}}function ig(e,t){let n;return r;function r(i){return Ct(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Rn(i)?sn(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function Ta(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const _Ee={name:"definition",tokenize:SEe},xEe={tokenize:EEe,partial:!0};function SEe(e,t,n){const r=this;let i;return o;function o(l){return e.enter("definition"),h8.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(l)}function a(l){return i=Ta(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,p8(e,e.attempt(xEe,sn(e,s,"whitespace"),sn(e,s,"whitespace")),n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):n(l)}function s(l){return l===null||Ct(l)?(e.exit("definition"),r.parser.defined.includes(i)||r.parser.defined.push(i),t(l)):n(l)}}function EEe(e,t,n){return r;function r(a){return dr(a)?ig(e,i)(a):n(a)}function i(a){return a===34||a===39||a===40?m8(e,sn(e,o,"whitespace"),n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a):n(a)}function o(a){return a===null||Ct(a)?t(a):n(a)}}const CEe={name:"hardBreakEscape",tokenize:kEe};function kEe(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(o),i}function i(o){return Ct(o)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(o)):n(o)}}const TEe={name:"headingAtx",tokenize:OEe,resolve:REe};function REe(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"},fo(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function OEe(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||dr(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||Ct(f)?(e.exit("atxHeading"),t(f)):Rn(f)?sn(e,s,"whitespace")(f):(e.enter("atxHeadingText"),u(f))}function l(f){return f===35?(e.consume(f),l):(e.exit("atxHeadingSequence"),s(f))}function u(f){return f===null||f===35||dr(f)?(e.exit("atxHeadingText"),s(f)):(e.consume(f),u)}}const AEe=["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"],eN=["pre","script","style","textarea"],DEe={name:"htmlFlow",tokenize:$Ee,resolveTo:PEe,concrete:!0},IEe={tokenize:FEe,partial:!0};function PEe(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 $Ee(e,t,n){const r=this;let i,o,a,s,l;return u;function u(A){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(A),f}function f(A){return A===33?(e.consume(A),p):A===47?(e.consume(A),g):A===63?(e.consume(A),i=3,r.interrupt?t:ee):jo(A)?(e.consume(A),a=String.fromCharCode(A),o=!0,y):n(A)}function p(A){return A===45?(e.consume(A),i=2,d):A===91?(e.consume(A),i=5,a="CDATA[",s=0,v):jo(A)?(e.consume(A),i=4,r.interrupt?t:ee):n(A)}function d(A){return A===45?(e.consume(A),r.interrupt?t:ee):n(A)}function v(A){return A===a.charCodeAt(s++)?(e.consume(A),s===a.length?r.interrupt?t:W:v):n(A)}function g(A){return jo(A)?(e.consume(A),a=String.fromCharCode(A),y):n(A)}function y(A){return A===null||A===47||A===62||dr(A)?A!==47&&o&&eN.includes(a.toLowerCase())?(i=1,r.interrupt?t(A):W(A)):AEe.includes(a.toLowerCase())?(i=6,A===47?(e.consume(A),x):r.interrupt?t(A):W(A)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(A):o?w(A):b(A)):A===45||Si(A)?(e.consume(A),a+=String.fromCharCode(A),y):n(A)}function x(A){return A===62?(e.consume(A),r.interrupt?t:W):n(A)}function b(A){return Rn(A)?(e.consume(A),b):V(A)}function w(A){return A===47?(e.consume(A),V):A===58||A===95||jo(A)?(e.consume(A),S):Rn(A)?(e.consume(A),w):V(A)}function S(A){return A===45||A===46||A===58||A===95||Si(A)?(e.consume(A),S):C(A)}function C(A){return A===61?(e.consume(A),k):Rn(A)?(e.consume(A),C):w(A)}function k(A){return A===null||A===60||A===61||A===62||A===96?n(A):A===34||A===39?(e.consume(A),l=A,D):Rn(A)?(e.consume(A),k):(l=null,P(A))}function D(A){return A===null||Ct(A)?n(A):A===l?(e.consume(A),B):(e.consume(A),D)}function P(A){return A===null||A===34||A===39||A===60||A===61||A===62||A===96||dr(A)?C(A):(e.consume(A),P)}function B(A){return A===47||A===62||Rn(A)?w(A):n(A)}function V(A){return A===62?(e.consume(A),U):n(A)}function U(A){return Rn(A)?(e.consume(A),U):A===null||Ct(A)?W(A):n(A)}function W(A){return A===45&&i===2?(e.consume(A),Z):A===60&&i===1?(e.consume(A),F):A===62&&i===4?(e.consume(A),G):A===63&&i===3?(e.consume(A),ee):A===93&&i===5?(e.consume(A),Y):Ct(A)&&(i===6||i===7)?e.check(IEe,G,se)(A):A===null||Ct(A)?se(A):(e.consume(A),W)}function se(A){return e.exit("htmlFlowData"),ne(A)}function ne(A){return A===null?L(A):Ct(A)?e.attempt({tokenize:re,partial:!0},ne,L)(A):(e.enter("htmlFlowData"),W(A))}function re(A,ie,ae){return ce;function ce(xe){return A.enter("lineEnding"),A.consume(xe),A.exit("lineEnding"),oe}function oe(xe){return r.parser.lazy[r.now().line]?ae(xe):ie(xe)}}function Z(A){return A===45?(e.consume(A),ee):W(A)}function F(A){return A===47?(e.consume(A),a="",te):W(A)}function te(A){return A===62&&eN.includes(a.toLowerCase())?(e.consume(A),G):jo(A)&&a.length<8?(e.consume(A),a+=String.fromCharCode(A),te):W(A)}function Y(A){return A===93?(e.consume(A),ee):W(A)}function ee(A){return A===62?(e.consume(A),G):A===45&&i===2?(e.consume(A),ee):W(A)}function G(A){return A===null||Ct(A)?(e.exit("htmlFlowData"),L(A)):(e.consume(A),G)}function L(A){return e.exit("htmlFlow"),t(A)}}function FEe(e,t,n){return r;function r(i){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),e.attempt(Sv,t,n)}}const LEe={name:"htmlText",tokenize:MEe};function MEe(e,t,n){const r=this;let i,o,a,s;return l;function l(L){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(L),u}function u(L){return L===33?(e.consume(L),f):L===47?(e.consume(L),P):L===63?(e.consume(L),k):jo(L)?(e.consume(L),U):n(L)}function f(L){return L===45?(e.consume(L),p):L===91?(e.consume(L),o="CDATA[",a=0,x):jo(L)?(e.consume(L),C):n(L)}function p(L){return L===45?(e.consume(L),d):n(L)}function d(L){return L===null||L===62?n(L):L===45?(e.consume(L),v):g(L)}function v(L){return L===null||L===62?n(L):g(L)}function g(L){return L===null?n(L):L===45?(e.consume(L),y):Ct(L)?(s=g,Y(L)):(e.consume(L),g)}function y(L){return L===45?(e.consume(L),G):g(L)}function x(L){return L===o.charCodeAt(a++)?(e.consume(L),a===o.length?b:x):n(L)}function b(L){return L===null?n(L):L===93?(e.consume(L),w):Ct(L)?(s=b,Y(L)):(e.consume(L),b)}function w(L){return L===93?(e.consume(L),S):b(L)}function S(L){return L===62?G(L):L===93?(e.consume(L),S):b(L)}function C(L){return L===null||L===62?G(L):Ct(L)?(s=C,Y(L)):(e.consume(L),C)}function k(L){return L===null?n(L):L===63?(e.consume(L),D):Ct(L)?(s=k,Y(L)):(e.consume(L),k)}function D(L){return L===62?G(L):k(L)}function P(L){return jo(L)?(e.consume(L),B):n(L)}function B(L){return L===45||Si(L)?(e.consume(L),B):V(L)}function V(L){return Ct(L)?(s=V,Y(L)):Rn(L)?(e.consume(L),V):G(L)}function U(L){return L===45||Si(L)?(e.consume(L),U):L===47||L===62||dr(L)?W(L):n(L)}function W(L){return L===47?(e.consume(L),G):L===58||L===95||jo(L)?(e.consume(L),se):Ct(L)?(s=W,Y(L)):Rn(L)?(e.consume(L),W):G(L)}function se(L){return L===45||L===46||L===58||L===95||Si(L)?(e.consume(L),se):ne(L)}function ne(L){return L===61?(e.consume(L),re):Ct(L)?(s=ne,Y(L)):Rn(L)?(e.consume(L),ne):W(L)}function re(L){return L===null||L===60||L===61||L===62||L===96?n(L):L===34||L===39?(e.consume(L),i=L,Z):Ct(L)?(s=re,Y(L)):Rn(L)?(e.consume(L),re):(e.consume(L),i=void 0,te)}function Z(L){return L===i?(e.consume(L),F):L===null?n(L):Ct(L)?(s=Z,Y(L)):(e.consume(L),Z)}function F(L){return L===62||L===47||dr(L)?W(L):n(L)}function te(L){return L===null||L===34||L===39||L===60||L===61||L===96?n(L):L===62||dr(L)?W(L):(e.consume(L),te)}function Y(L){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),sn(e,ee,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ee(L){return e.enter("htmlTextData"),s(L)}function G(L){return L===62?(e.consume(L),e.exit("htmlTextData"),e.exit("htmlText"),t):n(L)}}const gD={name:"labelEnd",tokenize:VEe,resolveTo:UEe,resolveAll:zEe},NEe={tokenize:WEe},BEe={tokenize:KEe},jEe={tokenize:HEe};function zEe(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 UEe(e,t){let n=e.length,r=0,i,o,a,s;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(a=n);const l={type:e[o][1].type==="labelLink"?"link":"image",start:Object.assign({},e[o][1].start),end:Object.assign({},e[e.length-1][1].end)},u={type:"label",start:Object.assign({},e[o][1].start),end:Object.assign({},e[a][1].end)},f={type:"labelText",start:Object.assign({},e[o+r+2][1].end),end:Object.assign({},e[a-2][1].start)};return s=[["enter",l,t],["enter",u,t]],s=Mo(s,e.slice(o+1,o+r+3)),s=Mo(s,[["enter",f,t]]),s=Mo(s,Q_(t.parser.constructs.insideSpan.null,e.slice(o+r+4,a-3),t)),s=Mo(s,[["exit",f,t],e[a-2],e[a-1],["exit",u,t]]),s=Mo(s,e.slice(a+1)),s=Mo(s,[["exit",l,t]]),fo(e,o,e.length,s),e}function VEe(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?u(f):(a=r.parser.defined.includes(Ta(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(NEe,t,a?t:u)(f):f===91?e.attempt(BEe,t,a?e.attempt(jEe,t,u):u)(f):a?t(f):u(f)}function u(f){return o._balanced=!0,n(f)}}function WEe(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):p8(e,o,n,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(l)}function o(l){return dr(l)?ig(e,a)(l):s(l)}function a(l){return l===34||l===39||l===40?m8(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 KEe(e,t,n){const r=this;return i;function i(a){return h8.call(r,e,o,n,"reference","referenceMarker","referenceString")(a)}function o(a){return r.parser.defined.includes(Ta(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}}function HEe(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 qEe={name:"labelStartImage",tokenize:GEe,resolveAll:gD.resolveAll};function GEe(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 QEe={name:"labelStartLink",tokenize:YEe,resolveAll:gD.resolveAll};function YEe(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 VE={name:"lineEnding",tokenize:XEe};function XEe(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),sn(e,t,"linePrefix")}}const kb={name:"thematicBreak",tokenize:JEe};function JEe(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)):Rn(l)?sn(e,a,"whitespace")(l):r<3||l!==null&&!Ct(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 Pi={name:"list",tokenize:tCe,continuation:{tokenize:nCe},exit:iCe},ZEe={tokenize:oCe,partial:!0},eCe={tokenize:rCe,partial:!0};function tCe(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(v){const g=r.containerState.type||(v===42||v===43||v===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||v===r.containerState.marker:L1(v)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),v===42||v===45?e.check(kb,n,u)(v):u(v);if(!r.interrupt||v===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(v)}return n(v)}function l(v){return L1(v)&&++a<10?(e.consume(v),l):(!r.interrupt||a<2)&&(r.containerState.marker?v===r.containerState.marker:v===41||v===46)?(e.exit("listItemValue"),u(v)):n(v)}function u(v){return e.enter("listItemMarker"),e.consume(v),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||v,e.check(Sv,r.interrupt?n:f,e.attempt(ZEe,d,p))}function f(v){return r.containerState.initialBlankLine=!0,o++,d(v)}function p(v){return Rn(v)?(e.enter("listItemPrefixWhitespace"),e.consume(v),e.exit("listItemPrefixWhitespace"),d):n(v)}function d(v){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(v)}}function nCe(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Sv,i,o);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,sn(e,t,"listItemIndent",r.containerState.size+1)(s)}function o(s){return r.containerState.furtherBlankLines||!Rn(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(eCe,t,a)(s))}function a(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,sn(e,e.attempt(Pi,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function rCe(e,t,n){const r=this;return sn(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 iCe(e){e.exit(this.containerState.type)}function oCe(e,t,n){const r=this;return sn(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!Rn(o)&&a&&a[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const tN={name:"setextUnderline",tokenize:sCe,resolveTo:aCe};function aCe(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 sCe(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"),sn(e,u,"lineSuffix")(f))}function u(f){return f===null||Ct(f)?(e.exit("setextHeadingLine"),t(f)):n(f)}}const lCe={tokenize:uCe};function uCe(e){const t=this,n=e.attempt(Sv,r,e.attempt(this.parser.constructs.flowInitial,i,sn(e,e.attempt(this.parser.constructs.flow,i,e.attempt(gEe,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 cCe={resolveAll:v8()},fCe=g8("string"),dCe=g8("text");function g8(e){return{tokenize:t,resolveAll:v8(e==="text"?pCe:void 0)};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,a,s);return a;function a(f){return u(f)?o(f):s(f)}function s(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),l}function l(f){return u(f)?(n.exit("data"),o(f)):(n.consume(f),l)}function u(f){if(f===null)return!0;const p=i[f];let d=-1;if(p)for(;++d<p.length;){const v=p[d];if(!v.previous||v.previous.call(r,r.previous))return!0}return!1}}}function v8(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 pCe(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,a=-1,s=0,l;for(;o--;){const u=i[o];if(typeof u=="string"){for(a=u.length;u.charCodeAt(a-1)===32;)s++,a--;if(a)break;a=-1}else if(u===-2)l=!0,s++;else if(u!==-1){o++;break}}if(s){const u={type:n===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-s,offset:r.end.offset-s,_index:r.start._index+o,_bufferIndex:o?a:r.start._bufferIndex+a},end:Object.assign({},r.end)};r.end=Object.assign({},u.start),r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}function hCe(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:S,exit:C,attempt:P(k),check:P(D),interrupt:P(D,{interrupt:!0})},u={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:v,sliceSerialize:d,now:g,defineSkip:y,write:p};let f=t.tokenize.call(u,l);return t.resolveAll&&o.push(t),u;function p(W){return a=Mo(a,W),x(),a[a.length-1]!==null?[]:(B(t,0),u.events=Q_(o,u.events,u),u.events)}function d(W,se){return gCe(v(W),se)}function v(W){return mCe(a,W)}function g(){return Object.assign({},r)}function y(W){i[W.line]=W.column,U()}function x(){let W;for(;r._index<a.length;){const se=a[r._index];if(typeof se=="string")for(W=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===W&&r._bufferIndex<se.length;)b(se.charCodeAt(r._bufferIndex));else b(se)}}function b(W){f=f(W)}function w(W){Ct(W)?(r.line++,r.column=1,r.offset+=W===-3?2:1,U()):W!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=W}function S(W,se){const ne=se||{};return ne.type=W,ne.start=g(),u.events.push(["enter",ne,u]),s.push(ne),ne}function C(W){const se=s.pop();return se.end=g(),u.events.push(["exit",se,u]),se}function k(W,se){B(W,se.from)}function D(W,se){se.restore()}function P(W,se){return ne;function ne(re,Z,F){let te,Y,ee,G;return Array.isArray(re)?A(re):"tokenize"in re?A([re]):L(re);function L(oe){return xe;function xe(ke){const Ee=ke!==null&&oe[ke],Fe=ke!==null&&oe.null,Le=[...Array.isArray(Ee)?Ee:Ee?[Ee]:[],...Array.isArray(Fe)?Fe:Fe?[Fe]:[]];return A(Le)(ke)}}function A(oe){return te=oe,Y=0,oe.length===0?F:ie(oe[Y])}function ie(oe){return xe;function xe(ke){return G=V(),ee=oe,oe.partial||(u.currentConstruct=oe),oe.name&&u.parser.constructs.disable.null.includes(oe.name)?ce():oe.tokenize.call(se?Object.assign(Object.create(u),se):u,l,ae,ce)(ke)}}function ae(oe){return W(ee,G),Z}function ce(oe){return G.restore(),++Y<te.length?ie(te[Y]):F}}}function B(W,se){W.resolveAll&&!o.includes(W)&&o.push(W),W.resolve&&fo(u.events,se,u.events.length-se,W.resolve(u.events.slice(se),u)),W.resolveTo&&(u.events=W.resolveTo(u.events,u))}function V(){const W=g(),se=u.previous,ne=u.currentConstruct,re=u.events.length,Z=Array.from(s);return{restore:F,from:re};function F(){r=W,u.previous=se,u.currentConstruct=ne,u.events.length=re,s=Z,U()}}function U(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function mCe(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 gCe(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 vCe={[42]:Pi,[43]:Pi,[45]:Pi,[48]:Pi,[49]:Pi,[50]:Pi,[51]:Pi,[52]:Pi,[53]:Pi,[54]:Pi,[55]:Pi,[56]:Pi,[57]:Pi,[62]:u8},yCe={[91]:_Ee},bCe={[-2]:UE,[-1]:UE,[32]:UE},wCe={[35]:TEe,[42]:kb,[45]:[tN,kb],[60]:DEe,[61]:tN,[95]:kb,[96]:ZM,[126]:ZM},_Ce={[38]:f8,[92]:c8},xCe={[-5]:VE,[-4]:VE,[-3]:VE,[33]:qEe,[38]:f8,[42]:DT,[60]:[ZSe,LEe],[91]:QEe,[92]:[CEe,c8],[93]:gD,[95]:DT,[96]:fEe},SCe={null:[DT,cCe]},ECe={null:[42,95]},CCe={null:[]},kCe=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:ECe,contentInitial:yCe,disable:CCe,document:vCe,flow:wCe,flowInitial:bCe,insideSpan:SCe,string:_Ce,text:xCe},Symbol.toStringTag,{value:"Module"}));function TCe(e={}){const t=l8([kCe].concat(e.extensions||[])),n={defined:[],lazy:{},constructs:t,content:r(HSe),document:r(GSe),flow:r(lCe),string:r(fCe),text:r(dCe)};return n;function r(i){return o;function o(a){return hCe(n,i,a)}}}const nN=/[\0\t\n\r]/g;function RCe(){let e=1,t="",n=!0,r;return i;function i(o,a,s){const l=[];let u,f,p,d,v;for(o=t+o.toString(a),p=0,t="",n&&(o.charCodeAt(0)===65279&&p++,n=void 0);p<o.length;){if(nN.lastIndex=p,u=nN.exec(o),d=u&&u.index!==void 0?u.index:o.length,v=o.charCodeAt(d),!u){t=o.slice(p);break}if(v===10&&p===d&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),p<d&&(l.push(o.slice(p,d)),e+=d-p),v){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}p=d+1}return s&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}function OCe(e){for(;!d8(e););return e}function y8(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 ACe=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function b8(e){return e.replace(ACe,DCe)}function DCe(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return y8(n.slice(o?2:1),o?16:10)}return mD(n)||e}const w8={}.hasOwnProperty,ICe=function(e,t,n){return typeof t!="string"&&(n=t,t=void 0),PCe(n)(OCe(TCe(n).document().write(RCe()(e,t,!0))))};function PCe(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(me),autolinkProtocol:W,autolinkEmail:W,atxHeading:s(ut),blockQuote:s(Le),characterEscape:W,characterReference:W,codeFenced:s(Ue),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:s(Ue,l),codeText:s(He,l),codeTextData:W,data:W,codeFlowValue:W,definition:s(Qe),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:s(qe),hardBreakEscape:s(et),hardBreakTrailing:s(et),htmlFlow:s(it,l),htmlFlowData:W,htmlText:s(it,l),htmlTextData:W,image:s(wt),label:l,link:s(me),listItem:s(Ce),listItemValue:g,listOrdered:s(Te,v),listUnordered:s(Te),paragraph:s(Oe),reference:ce,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:s(ut),strong:s(j),thematicBreak:s(he)},exit:{atxHeading:f(),atxHeadingSequence:P,autolink:f(),autolinkEmail:Fe,autolinkProtocol:Ee,blockQuote:f(),characterEscapeValue:se,characterReferenceMarkerHexadecimal:xe,characterReferenceMarkerNumeric:xe,characterReferenceValue:ke,codeFenced:f(w),codeFencedFence:b,codeFencedFenceInfo:y,codeFencedFenceMeta:x,codeFlowValue:se,codeIndented:f(S),codeText:f(te),codeTextData:se,data:se,definition:f(),definitionDestinationString:D,definitionLabelString:C,definitionTitleString:k,emphasis:f(),hardBreakEscape:f(re),hardBreakTrailing:f(re),htmlFlow:f(Z),htmlFlowData:se,htmlText:f(F),htmlTextData:se,image:f(ee),label:L,labelText:G,lineEnding:ne,link:f(Y),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:oe,resourceDestinationString:A,resourceTitleString:ie,resource:ae,setextHeading:f(U),setextHeadingLineSequence:V,setextHeadingText:B,strong:f(),thematicBreak:f()}};_8(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(Q){let fe={type:"root",children:[]};const le={stack:[fe],tokenStack:[],config:t,enter:u,exit:p,buffer:l,resume:d,setData:o,getData:a},Re=[];let $e=-1;for(;++$e<Q.length;)if(Q[$e][1].type==="listOrdered"||Q[$e][1].type==="listUnordered")if(Q[$e][0]==="enter")Re.push($e);else{const Pe=Re.pop();$e=i(Q,Pe,$e)}for($e=-1;++$e<Q.length;){const Pe=t[Q[$e][0]];w8.call(Pe,Q[$e][1].type)&&Pe[Q[$e][1].type].call(Object.assign({sliceSerialize:Q[$e][2].sliceSerialize},le),Q[$e][1])}if(le.tokenStack.length>0){const Pe=le.tokenStack[le.tokenStack.length-1];(Pe[1]||rN).call(le,void 0,Pe[0])}for(fe.position={start:Ll(Q.length>0?Q[0][1].start:{line:1,column:1,offset:0}),end:Ll(Q.length>0?Q[Q.length-2][1].end:{line:1,column:1,offset:0})},$e=-1;++$e<t.transforms.length;)fe=t.transforms[$e](fe)||fe;return fe}function i(Q,fe,le){let Re=fe-1,$e=-1,Pe=!1,mt,lt,pe,ge;for(;++Re<=le;){const Se=Q[Re];if(Se[1].type==="listUnordered"||Se[1].type==="listOrdered"||Se[1].type==="blockQuote"?(Se[0]==="enter"?$e++:$e--,ge=void 0):Se[1].type==="lineEndingBlank"?Se[0]==="enter"&&(mt&&!ge&&!$e&&!pe&&(pe=Re),ge=void 0):Se[1].type==="linePrefix"||Se[1].type==="listItemValue"||Se[1].type==="listItemMarker"||Se[1].type==="listItemPrefix"||Se[1].type==="listItemPrefixWhitespace"||(ge=void 0),!$e&&Se[0]==="enter"&&Se[1].type==="listItemPrefix"||$e===-1&&Se[0]==="exit"&&(Se[1].type==="listUnordered"||Se[1].type==="listOrdered")){if(mt){let We=Re;for(lt=void 0;We--;){const Ke=Q[We];if(Ke[1].type==="lineEnding"||Ke[1].type==="lineEndingBlank"){if(Ke[0]==="exit")continue;lt&&(Q[lt][1].type="lineEndingBlank",Pe=!0),Ke[1].type="lineEnding",lt=We}else if(!(Ke[1].type==="linePrefix"||Ke[1].type==="blockQuotePrefix"||Ke[1].type==="blockQuotePrefixWhitespace"||Ke[1].type==="blockQuoteMarker"||Ke[1].type==="listItemIndent"))break}pe&&(!lt||pe<lt)&&(mt._spread=!0),mt.end=Object.assign({},lt?Q[lt][1].start:Se[1].end),Q.splice(lt||Re,0,["exit",mt,Se[2]]),Re++,le++}Se[1].type==="listItemPrefix"&&(mt={type:"listItem",_spread:!1,start:Object.assign({},Se[1].start)},Q.splice(Re,0,["enter",mt,Se[2]]),Re++,le++,pe=void 0,ge=!0)}}return Q[fe][1]._spread=Pe,le}function o(Q,fe){n[Q]=fe}function a(Q){return n[Q]}function s(Q,fe){return le;function le(Re){u.call(this,Q(Re),Re),fe&&fe.call(this,Re)}}function l(){this.stack.push({type:"fragment",children:[]})}function u(Q,fe,le){return this.stack[this.stack.length-1].children.push(Q),this.stack.push(Q),this.tokenStack.push([fe,le]),Q.position={start:Ll(fe.start)},Q}function f(Q){return fe;function fe(le){Q&&Q.call(this,le),p.call(this,le)}}function p(Q,fe){const le=this.stack.pop(),Re=this.tokenStack.pop();if(Re)Re[0].type!==Q.type&&(fe?fe.call(this,Q,Re[0]):(Re[1]||rN).call(this,Q,Re[0]));else throw new Error("Cannot close `"+Q.type+"` ("+rg({start:Q.start,end:Q.end})+"): it’s not open");return le.position.end=Ll(Q.end),le}function d(){return BSe(this.stack.pop())}function v(){o("expectingFirstListItemValue",!0)}function g(Q){if(a("expectingFirstListItemValue")){const fe=this.stack[this.stack.length-2];fe.start=Number.parseInt(this.sliceSerialize(Q),10),o("expectingFirstListItemValue")}}function y(){const Q=this.resume(),fe=this.stack[this.stack.length-1];fe.lang=Q}function x(){const Q=this.resume(),fe=this.stack[this.stack.length-1];fe.meta=Q}function b(){a("flowCodeInside")||(this.buffer(),o("flowCodeInside",!0))}function w(){const Q=this.resume(),fe=this.stack[this.stack.length-1];fe.value=Q.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),o("flowCodeInside")}function S(){const Q=this.resume(),fe=this.stack[this.stack.length-1];fe.value=Q.replace(/(\r?\n|\r)$/g,"")}function C(Q){const fe=this.resume(),le=this.stack[this.stack.length-1];le.label=fe,le.identifier=Ta(this.sliceSerialize(Q)).toLowerCase()}function k(){const Q=this.resume(),fe=this.stack[this.stack.length-1];fe.title=Q}function D(){const Q=this.resume(),fe=this.stack[this.stack.length-1];fe.url=Q}function P(Q){const fe=this.stack[this.stack.length-1];if(!fe.depth){const le=this.sliceSerialize(Q).length;fe.depth=le}}function B(){o("setextHeadingSlurpLineEnding",!0)}function V(Q){const fe=this.stack[this.stack.length-1];fe.depth=this.sliceSerialize(Q).charCodeAt(0)===61?1:2}function U(){o("setextHeadingSlurpLineEnding")}function W(Q){const fe=this.stack[this.stack.length-1];let le=fe.children[fe.children.length-1];(!le||le.type!=="text")&&(le=H(),le.position={start:Ll(Q.start)},fe.children.push(le)),this.stack.push(le)}function se(Q){const fe=this.stack.pop();fe.value+=this.sliceSerialize(Q),fe.position.end=Ll(Q.end)}function ne(Q){const fe=this.stack[this.stack.length-1];if(a("atHardBreak")){const le=fe.children[fe.children.length-1];le.position.end=Ll(Q.end),o("atHardBreak");return}!a("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(fe.type)&&(W.call(this,Q),se.call(this,Q))}function re(){o("atHardBreak",!0)}function Z(){const Q=this.resume(),fe=this.stack[this.stack.length-1];fe.value=Q}function F(){const Q=this.resume(),fe=this.stack[this.stack.length-1];fe.value=Q}function te(){const Q=this.resume(),fe=this.stack[this.stack.length-1];fe.value=Q}function Y(){const Q=this.stack[this.stack.length-1];if(a("inReference")){const fe=a("referenceType")||"shortcut";Q.type+="Reference",Q.referenceType=fe,delete Q.url,delete Q.title}else delete Q.identifier,delete Q.label;o("referenceType")}function ee(){const Q=this.stack[this.stack.length-1];if(a("inReference")){const fe=a("referenceType")||"shortcut";Q.type+="Reference",Q.referenceType=fe,delete Q.url,delete Q.title}else delete Q.identifier,delete Q.label;o("referenceType")}function G(Q){const fe=this.sliceSerialize(Q),le=this.stack[this.stack.length-2];le.label=b8(fe),le.identifier=Ta(fe).toLowerCase()}function L(){const Q=this.stack[this.stack.length-1],fe=this.resume(),le=this.stack[this.stack.length-1];if(o("inReference",!0),le.type==="link"){const Re=Q.children;le.children=Re}else le.alt=fe}function A(){const Q=this.resume(),fe=this.stack[this.stack.length-1];fe.url=Q}function ie(){const Q=this.resume(),fe=this.stack[this.stack.length-1];fe.title=Q}function ae(){o("inReference")}function ce(){o("referenceType","collapsed")}function oe(Q){const fe=this.resume(),le=this.stack[this.stack.length-1];le.label=fe,le.identifier=Ta(this.sliceSerialize(Q)).toLowerCase(),o("referenceType","full")}function xe(Q){o("characterReferenceType",Q.type)}function ke(Q){const fe=this.sliceSerialize(Q),le=a("characterReferenceType");let Re;le?(Re=y8(fe,le==="characterReferenceMarkerNumeric"?10:16),o("characterReferenceType")):Re=mD(fe);const $e=this.stack.pop();$e.value+=Re,$e.position.end=Ll(Q.end)}function Ee(Q){se.call(this,Q);const fe=this.stack[this.stack.length-1];fe.url=this.sliceSerialize(Q)}function Fe(Q){se.call(this,Q);const fe=this.stack[this.stack.length-1];fe.url="mailto:"+this.sliceSerialize(Q)}function Le(){return{type:"blockquote",children:[]}}function Ue(){return{type:"code",lang:null,meta:null,value:""}}function He(){return{type:"inlineCode",value:""}}function Qe(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function qe(){return{type:"emphasis",children:[]}}function ut(){return{type:"heading",depth:void 0,children:[]}}function et(){return{type:"break"}}function it(){return{type:"html",value:""}}function wt(){return{type:"image",title:null,url:"",alt:null}}function me(){return{type:"link",title:null,url:"",children:[]}}function Te(Q){return{type:"list",ordered:Q.type==="listOrdered",start:null,spread:Q._spread,children:[]}}function Ce(Q){return{type:"listItem",spread:Q._spread,checked:null,children:[]}}function Oe(){return{type:"paragraph",children:[]}}function j(){return{type:"strong",children:[]}}function H(){return{type:"text",value:""}}function he(){return{type:"thematicBreak"}}}function Ll(e){return{line:e.line,column:e.column,offset:e.offset}}function _8(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?_8(e,r):$Ce(e,r)}}function $Ce(e,t){let n;for(n in t)if(w8.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 rN(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 FCe(e){Object.assign(this,{Parser:n=>{const r=this.data("settings");return ICe(n,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function LCe(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 MCe(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
199
|
-
`}]}function NCe(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 BCe(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function jCe(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function $p(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let a="";if(o===37&&Si(e.charCodeAt(n+1))&&Si(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 x8(e,t){const n=String(t.identifier).toUpperCase(),r=$p(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 zCe(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},x8(e,{type:"footnoteReference",identifier:i,position:t.position})}function UCe(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 VCe(e,t){if(e.dangerous){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null}function S8(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 WCe(e,t){const n=e.definition(t.identifier);if(!n)return S8(e,t);const r={src:$p(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 KCe(e,t){const n={src:$p(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 HCe(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 qCe(e,t){const n=e.definition(t.identifier);if(!n)return S8(e,t);const r={href:$p(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 GCe(e,t){const n={href:$p(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 QCe(e,t,n){const r=e.all(t),i=n?YCe(n):E8(t),o={},a=[];if(typeof t.checked=="boolean"){const f=r[0];let p;f&&f.type==="element"&&f.tagName==="p"?p=f:(p={type:"element",tagName:"p",properties:{},children:[]},r.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.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 u={type:"element",tagName:"li",properties:o,children:a};return e.patch(t,u),e.applyData(t,u)}function YCe(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=E8(n[r])}return t}function E8(e){const t=e.spread;return t??e.children.length>1}function XCe(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 JCe(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ZCe(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function eke(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const vD=C8("start"),yD=C8("end");function tke(e){return{start:vD(e),end:yD(e)}}function C8(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 nke(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=vD(t.children[1]),l=yD(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 rke(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,s=a?a.length:t.children.length;let l=-1;const u=[];for(;++l<s;){const p=t.children[l],d={},v=a?a[l]:void 0;v&&(d.align=v);let g={type:"element",tagName:o,properties:d,children:[]};p&&(g.children=e.all(p),e.patch(p,g),g=e.applyData(t,g)),u.push(g)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,f),e.applyData(t,f)}function ike(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const iN=9,oN=32;function oke(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(aN(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(aN(t.slice(i),i>0,!1)),o.join("")}function aN(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===iN||o===oN;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===iN||o===oN;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function ake(e,t){const n={type:"text",value:oke(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function ske(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const lke={blockquote:LCe,break:MCe,code:NCe,delete:BCe,emphasis:jCe,footnoteReference:x8,footnote:zCe,heading:UCe,html:VCe,imageReference:WCe,image:KCe,inlineCode:HCe,linkReference:qCe,link:GCe,listItem:QCe,list:XCe,paragraph:JCe,root:ZCe,strong:eke,table:nke,tableCell:ike,tableRow:rke,text:ake,thematicBreak:ske,toml:O0,yaml:O0,definition:O0,footnoteDefinition:O0};function O0(){return null}const bD=function(e){if(e==null)return dke;if(typeof e=="string")return fke(e);if(typeof e=="object")return Array.isArray(e)?uke(e):cke(e);if(typeof e=="function")return Y_(e);throw new Error("Expected function, string, or object as test")};function uke(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=bD(e[n]);return Y_(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].call(this,...i))return!0;return!1}}function cke(e){return Y_(t);function t(n){let r;for(r in e)if(n[r]!==e[r])return!1;return!0}}function fke(e){return Y_(t);function t(n){return n&&n.type===e}}function Y_(e){return t;function t(n,...r){return!!(n&&typeof n=="object"&&"type"in n&&e.call(this,n,...r))}}function dke(){return!0}const pke=!0,sN=!1,hke="skip",k8=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null);const i=bD(t),o=r?-1:1;a(e,void 0,[])();function a(s,l,u){const f=s&&typeof s=="object"?s:{};if(typeof f.type=="string"){const d=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(s.type+(d?"<"+d+">":""))+")"})}return p;function p(){let d=[],v,g,y;if((!t||i(s,l,u[u.length-1]||null))&&(d=mke(n(s,u)),d[0]===sN))return d;if(s.children&&d[0]!==hke)for(g=(r?s.children.length:-1)+o,y=u.concat(s);g>-1&&g<s.children.length;){if(v=a(s.children[g],g,y)(),v[0]===sN)return v;g=typeof v[1]=="number"?v[1]:g+o}return d}}};function mke(e){return Array.isArray(e)?e:typeof e=="number"?[pke,e]:[e]}const wD=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null),k8(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 gke(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 lN={}.hasOwnProperty;function vke(e){const t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return wD(e,"definition",r=>{const i=uN(r.identifier);i&&!lN.call(t,i)&&(t[i]=r)}),n;function n(r){const i=uN(r);return i&&lN.call(t,i)?t[i]:null}}function uN(e){return String(e||"").toUpperCase()}const N1={}.hasOwnProperty;function yke(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={...lke,...n.handlers},a.definition=vke(e),a.footnoteById=i,a.footnoteOrder=[],a.footnoteCounts={},a.patch=bke,a.applyData=wke,a.one=s,a.all=l,a.wrap=xke,a.augment=o,wD(e,"footnoteDefinition",u=>{const f=String(u.identifier).toUpperCase();N1.call(i,f)||(i[f]=u)}),a;function o(u,f){if(u&&"data"in u&&u.data){const p=u.data;p.hName&&(f.type!=="element"&&(f={type:"element",tagName:"",properties:{},children:[]}),f.tagName=p.hName),f.type==="element"&&p.hProperties&&(f.properties={...f.properties,...p.hProperties}),"children"in f&&f.children&&p.hChildren&&(f.children=p.hChildren)}if(u){const p="type"in u?u:{position:u};gke(p)||(f.position={start:vD(p),end:yD(p)})}return f}function a(u,f,p,d){return Array.isArray(p)&&(d=p,p={}),o(u,{type:"element",tagName:f,properties:p||{},children:d||[]})}function s(u,f){return T8(a,u,f)}function l(u){return _D(a,u)}}function bke(e,t){e.position&&(t.position=tke(e))}function wke(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 T8(e,t,n){const r=t&&t.type;if(!r)throw new Error("Expected node, got `"+t+"`");return N1.call(e.handlers,r)?e.handlers[r](e,t,n):e.passThrough&&e.passThrough.includes(r)?"children"in t?{...t,children:_D(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,n):_ke(e,t)}function _D(e,t){const n=[];if("children"in t){const r=t.children;let i=-1;for(;++i<r.length;){const o=T8(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 _ke(e,t){const n=t.data||{},r="value"in t&&!(N1.call(n,"hProperties")||N1.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:_D(e,t)};return e.patch(t,r),e.applyData(t,r)}function xke(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 Ske(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=$p(o.toLowerCase());let s=0;const l=[];for(;++s<=e.footnoteCounts[o];){const p={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&&p.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(s)}]}),l.length>0&&l.push({type:"text",value:" "}),l.push(p)}const u=i[i.length-1];if(u&&u.type==="element"&&u.tagName==="p"){const p=u.children[u.children.length-1];p&&p.type==="text"?p.value+=" ":u.children.push({type:"text",value:" "}),u.children.push(...l)}else i.push(...l);const f={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+a},children:e.wrap(i,!0)};e.patch(r,f),t.push(f)}if(t.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:`
|
|
206
|
-
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:`
|
|
207
|
-
`}]}}function R8(e,t){const n=yke(e,t),r=n.one(e,null),i=Ske(n);return i&&r.children.push({type:"text",value:`
|
|
208
|
-
`},i),Array.isArray(r)?{type:"root",children:r}:r}const Eke=function(e,t){return e&&"run"in e?kke(e,t):Tke(e||t)},Cke=Eke;function kke(e,t){return(n,r,i)=>{e.run(R8(n,t),r,o=>{i(o)})}}function Tke(e){return t=>R8(t,e)}let Ev=class{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}};Ev.prototype.property={};Ev.prototype.normal={};Ev.prototype.space=null;function O8(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 Ev(n,r,t)}function IT(e){return e.toLowerCase()}class ta{constructor(t,n){this.property=t,this.attribute=n}}ta.prototype.space=null;ta.prototype.boolean=!1;ta.prototype.booleanish=!1;ta.prototype.overloadedBoolean=!1;ta.prototype.number=!1;ta.prototype.commaSeparated=!1;ta.prototype.spaceSeparated=!1;ta.prototype.commaOrSpaceSeparated=!1;ta.prototype.mustUseProperty=!1;ta.prototype.defined=!1;let Rke=0;const Vt=tf(),xr=tf(),A8=tf(),Je=tf(),Nn=tf(),Ud=tf(),no=tf();function tf(){return 2**++Rke}const PT=Object.freeze(Object.defineProperty({__proto__:null,boolean:Vt,booleanish:xr,commaOrSpaceSeparated:no,commaSeparated:Ud,number:Je,overloadedBoolean:A8,spaceSeparated:Nn},Symbol.toStringTag,{value:"Module"})),WE=Object.keys(PT);class xD extends ta{constructor(t,n,r,i){let o=-1;if(super(t,n),cN(this,"space",i),typeof r=="number")for(;++o<WE.length;){const a=WE[o];cN(this,WE[o],(r&PT[a])===PT[a])}}}xD.prototype.defined=!0;function cN(e,t,n){n&&(e[t]=n)}const Oke={}.hasOwnProperty;function Fp(e){const t={},n={};let r;for(r in e.properties)if(Oke.call(e.properties,r)){const i=e.properties[r],o=new xD(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[IT(r)]=r,n[IT(o.attribute)]=r}return new Ev(t,n,e.space)}const D8=Fp({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}}),I8=Fp({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function P8(e,t){return t in e?e[t]:t}function $8(e,t){return P8(e,t.toLowerCase())}const F8=Fp({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:$8,properties:{xmlns:null,xmlnsXLink:null}}),L8=Fp({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:xr,ariaAutoComplete:null,ariaBusy:xr,ariaChecked:xr,ariaColCount:Je,ariaColIndex:Je,ariaColSpan:Je,ariaControls:Nn,ariaCurrent:null,ariaDescribedBy:Nn,ariaDetails:null,ariaDisabled:xr,ariaDropEffect:Nn,ariaErrorMessage:null,ariaExpanded:xr,ariaFlowTo:Nn,ariaGrabbed:xr,ariaHasPopup:null,ariaHidden:xr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Nn,ariaLevel:Je,ariaLive:null,ariaModal:xr,ariaMultiLine:xr,ariaMultiSelectable:xr,ariaOrientation:null,ariaOwns:Nn,ariaPlaceholder:null,ariaPosInSet:Je,ariaPressed:xr,ariaReadOnly:xr,ariaRelevant:null,ariaRequired:xr,ariaRoleDescription:Nn,ariaRowCount:Je,ariaRowIndex:Je,ariaRowSpan:Je,ariaSelected:xr,ariaSetSize:Je,ariaSort:null,ariaValueMax:Je,ariaValueMin:Je,ariaValueNow:Je,ariaValueText:null,role:null}}),Ake=Fp({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:$8,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ud,acceptCharset:Nn,accessKey:Nn,action:null,allow:null,allowFullScreen:Vt,allowPaymentRequest:Vt,allowUserMedia:Vt,alt:null,as:null,async:Vt,autoCapitalize:null,autoComplete:Nn,autoFocus:Vt,autoPlay:Vt,capture:Vt,charSet:null,checked:Vt,cite:null,className:Nn,cols:Je,colSpan:null,content:null,contentEditable:xr,controls:Vt,controlsList:Nn,coords:Je|Ud,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Vt,defer:Vt,dir:null,dirName:null,disabled:Vt,download:A8,draggable:xr,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Vt,formTarget:null,headers:Nn,height:Je,hidden:Vt,high:Je,href:null,hrefLang:null,htmlFor:Nn,httpEquiv:Nn,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:Vt,itemId:null,itemProp:Nn,itemRef:Nn,itemScope:Vt,itemType:Nn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Vt,low:Je,manifest:null,max:null,maxLength:Je,media:null,method:null,min:null,minLength:Je,multiple:Vt,muted:Vt,name:null,nonce:null,noModule:Vt,noValidate:Vt,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:Vt,optimum:Je,pattern:null,ping:Nn,placeholder:null,playsInline:Vt,poster:null,preload:null,readOnly:Vt,referrerPolicy:null,rel:Nn,required:Vt,reversed:Vt,rows:Je,rowSpan:Je,sandbox:Nn,scope:null,scoped:Vt,seamless:Vt,selected:Vt,shape:null,size:Je,sizes:null,slot:null,span:Je,spellCheck:xr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Je,step:null,style:null,tabIndex:Je,target:null,title:null,translate:null,type:null,typeMustMatch:Vt,useMap:null,value:xr,width:Je,wrap:null,align:null,aLink:null,archive:Nn,axis:null,background:null,bgColor:null,border:Je,borderColor:null,bottomMargin:Je,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Vt,declare:Vt,event:null,face:null,frame:null,frameBorder:null,hSpace:Je,leftMargin:Je,link:null,longDesc:null,lowSrc:null,marginHeight:Je,marginWidth:Je,noResize:Vt,noHref:Vt,noShade:Vt,noWrap:Vt,object:null,profile:null,prompt:null,rev:null,rightMargin:Je,rules:null,scheme:null,scrolling:xr,standby:null,summary:null,text:null,topMargin:Je,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Je,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Vt,disableRemotePlayback:Vt,prefix:null,property:null,results:Je,security:null,unselectable:null}}),Dke=Fp({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:P8,properties:{about:no,accentHeight:Je,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Je,amplitude:Je,arabicForm:null,ascent:Je,attributeName:null,attributeType:null,azimuth:Je,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Je,by:null,calcMode:null,capHeight:Je,className:Nn,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Je,diffuseConstant:Je,direction:null,display:null,dur:null,divisor:Je,dominantBaseline:null,download:Vt,dx:null,dy:null,edgeMode:null,editable:null,elevation:Je,enableBackground:null,end:null,event:null,exponent:Je,externalResourcesRequired:null,fill:null,fillOpacity:Je,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ud,g2:Ud,glyphName:Ud,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Je,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Je,horizOriginX:Je,horizOriginY:Je,id:null,ideographic:Je,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Je,k:Je,k1:Je,k2:Je,k3:Je,k4:Je,kernelMatrix:no,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Je,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Je,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Je,overlineThickness:Je,paintOrder:null,panose1:null,path:null,pathLength:Je,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Nn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Je,pointsAtY:Je,pointsAtZ:Je,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:no,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:no,rev:no,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:no,requiredFeatures:no,requiredFonts:no,requiredFormats:no,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Je,specularExponent:Je,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Je,strikethroughThickness:Je,string:null,stroke:null,strokeDashArray:no,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Je,strokeOpacity:Je,strokeWidth:null,style:null,surfaceScale:Je,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:no,tabIndex:Je,tableValues:null,target:null,targetX:Je,targetY:Je,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:no,to:null,transform:null,u1:null,u2:null,underlinePosition:Je,underlineThickness:Je,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Je,values:null,vAlphabetic:Je,vMathematical:Je,vectorEffect:null,vHanging:Je,vIdeographic:Je,version:null,vertAdvY:Je,vertOriginX:Je,vertOriginY:Je,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Je,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Ike=/^data[-\w.:]+$/i,fN=/-[a-z]/g,Pke=/[A-Z]/g;function $ke(e,t){const n=IT(t);let r=t,i=ta;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Ike.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(fN,Lke);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!fN.test(o)){let a=o.replace(Pke,Fke);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=xD}return new i(r,t)}function Fke(e){return"-"+e.toLowerCase()}function Lke(e){return e.charAt(1).toUpperCase()}const dN={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"},Mke=O8([I8,D8,F8,L8,Ake],"html"),Nke=O8([I8,D8,F8,L8,Dke],"svg");function Bke(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=>{wD(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 jke(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 zke(e){return e.join(" ").trim()}function Uke(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}var SD={exports:{}},pN=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Vke=/\n/g,Wke=/^\s*/,Kke=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Hke=/^:\s*/,qke=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Gke=/^[;\s]*/,Qke=/^\s+|\s+$/g,Yke=`
|
|
209
|
-
`,hN="/",mN="*",gc="",Xke="comment",Jke="declaration",Zke=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(g){var y=g.match(Vke);y&&(n+=y.length);var x=g.lastIndexOf(Yke);r=~x?g.length-x:r+g.length}function o(){var g={line:n,column:r};return function(y){return y.position=new a(g),u(),y}}function a(g){this.start=g,this.end={line:n,column:r},this.source=t.source}a.prototype.content=e;function s(g){var y=new Error(t.source+":"+n+":"+r+": "+g);if(y.reason=g,y.filename=t.source,y.line=n,y.column=r,y.source=e,!t.silent)throw y}function l(g){var y=g.exec(e);if(y){var x=y[0];return i(x),e=e.slice(x.length),y}}function u(){l(Wke)}function f(g){var y;for(g=g||[];y=p();)y!==!1&&g.push(y);return g}function p(){var g=o();if(!(hN!=e.charAt(0)||mN!=e.charAt(1))){for(var y=2;gc!=e.charAt(y)&&(mN!=e.charAt(y)||hN!=e.charAt(y+1));)++y;if(y+=2,gc===e.charAt(y-1))return s("End of comment missing");var x=e.slice(2,y-2);return r+=2,i(x),e=e.slice(y),r+=2,g({type:Xke,comment:x})}}function d(){var g=o(),y=l(Kke);if(y){if(p(),!l(Hke))return s("property missing ':'");var x=l(qke),b=g({type:Jke,property:gN(y[0].replace(pN,gc)),value:x?gN(x[0].replace(pN,gc)):gc});return l(Gke),b}}function v(){var g=[];f(g);for(var y;y=d();)y!==!1&&(g.push(y),f(g));return g}return u(),v()};function gN(e){return e?e.replace(Qke,gc):gc}var eTe=Zke;function M8(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,i=eTe(e),o=typeof t=="function",a,s,l=0,u=i.length;l<u;l++)r=i[l],a=r.property,s=r.value,o?t(a,s,r):s&&(n||(n={}),n[a]=s);return n}SD.exports=M8;SD.exports.default=M8;var tTe=SD.exports;const nTe=ps(tTe),vN=["http","https","mailto","tel"];function rTe(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<vN.length;){const o=vN[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 $T={}.hasOwnProperty,iTe=new Set(["table","thead","tbody","tfoot","tr"]);function N8(e,t){const n=[];let r=-1,i;for(;++r<t.children.length;)i=t.children[r],i.type==="element"?n.push(oTe(e,i,r,t)):i.type==="text"?(t.type!=="element"||!iTe.has(t.tagName)||!jke(i))&&n.push(i.value):i.type==="raw"&&!e.options.skipHtml&&n.push(i.value);return n}function oTe(e,t,n,r){const i=e.options,o=i.transformLinkUri===void 0?rTe:i.transformLinkUri,a=e.schema,s=t.tagName,l={};let u=a,f;if(a.space==="html"&&s==="svg"&&(u=Nke,e.schema=u),t.properties)for(f in t.properties)$T.call(t.properties,f)&&sTe(l,f,t.properties[f],e);(s==="ol"||s==="ul")&&e.listDepth++;const p=N8(e,t);(s==="ol"||s==="ul")&&e.listDepth--,e.schema=a;const d=t.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},v=i.components&&$T.call(i.components,s)?i.components[s]:s,g=typeof v=="string"||v===yt.Fragment;if(!Pce.isValidElementType(v))throw new TypeError(`Component for name \`${s}\` not defined or is not renderable`);if(l.key=[s,d.start.line,d.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)),!g&&s==="code"&&r.type==="element"&&r.tagName!=="pre"&&(l.inline=!0),!g&&(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)),!g&&s==="li"&&r.type==="element"){const y=aTe(t);l.checked=y&&y.properties?!!y.properties.checked:null,l.index=KE(r,t),l.ordered=r.tagName==="ol"}return!g&&(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),g||(l.isHeader=s==="th")),!g&&s==="tr"&&r.type==="element"&&(l.isHeader=r.tagName==="thead"),i.sourcePos&&(l["data-sourcepos"]=cTe(d)),!g&&i.rawSourcePos&&(l.sourcePosition=t.position),!g&&i.includeElementIndex&&(l.index=KE(r,t),l.siblingCount=KE(r)),g||(l.node=t),p.length>0?yt.createElement(v,l,p):yt.createElement(v,l)}function aTe(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 KE(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 sTe(e,t,n,r){const i=$ke(r.schema,t);let o=n;o==null||o!==o||(Array.isArray(o)&&(o=i.commaSeparated?Uke(o):zke(o)),i.property==="style"&&typeof o=="string"&&(o=lTe(o)),i.space&&i.property?e[$T.call(dN,i.property)?dN[i.property]:i.property]=o:i.attribute&&(e[i.attribute]=o))}function lTe(e){const t={};try{nTe(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,uTe)]=i}}function uTe(e,t){return t.toUpperCase()}function cTe(e){return[e.start.line,":",e.start.column,"-",e.end.line,":",e.end.column].map(String).join("")}const yN={}.hasOwnProperty,fTe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",A0={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 A0)if(yN.call(A0,o)&&yN.call(e,o)){const a=A0[o];console.warn(`[react-markdown] Warning: please ${a.to?`use \`${a.to}\` instead of`:"remove"} \`${o}\` (see <${fTe}#${a.id}> for more info)`),delete A0[o]}const t=FSe().use(FCe).use(e.remarkPlugins||[]).use(Cke,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(Bke,e),n=new r8;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=yt.createElement(yt.Fragment,{},N8({options:e,schema:Mke,listDepth:0},r));return e.className&&(i=yt.createElement("div",{className:e.className},i)),i}X_.propTypes={children:ft.string,className:ft.string,allowElement:ft.func,allowedElements:ft.arrayOf(ft.string),disallowedElements:ft.arrayOf(ft.string),unwrapDisallowed:ft.bool,remarkPlugins:ft.arrayOf(ft.oneOfType([ft.object,ft.func,ft.arrayOf(ft.oneOfType([ft.bool,ft.string,ft.object,ft.func,ft.arrayOf(ft.any)]))])),rehypePlugins:ft.arrayOf(ft.oneOfType([ft.object,ft.func,ft.arrayOf(ft.oneOfType([ft.bool,ft.string,ft.object,ft.func,ft.arrayOf(ft.any)]))])),sourcePos:ft.bool,rawSourcePos:ft.bool,skipHtml:ft.bool,includeElementIndex:ft.bool,transformLinkUri:ft.oneOfType([ft.func,ft.bool]),linkTarget:ft.oneOfType([ft.func,ft.string]),transformImageUri:ft.func,components:ft.object};const dTe={tokenize:vTe,partial:!0},B8={tokenize:yTe,partial:!0},j8={tokenize:bTe,partial:!0},Vd={tokenize:_Te,partial:!0},z8={tokenize:wTe,partial:!0},U8={tokenize:mTe,previous:K8},V8={tokenize:gTe,previous:CD},ml={tokenize:hTe,previous:H8},gs={},pTe={text:gs};let nc=48;for(;nc<123;)gs[nc]=ml,nc++,nc===58?nc=65:nc===91&&(nc=97);gs[43]=ml;gs[45]=ml;gs[46]=ml;gs[95]=ml;gs[72]=[ml,V8];gs[104]=[ml,V8];gs[87]=[ml,U8];gs[119]=[ml,U8];function hTe(e,t,n){const r=this;let i,o;return a;function a(v){return!bN(v)||!H8(r.previous)||kD(r.events)?n(v):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(v))}function s(v){return bN(v)?(e.consume(v),s):v===64?(e.consume(v),l):n(v)}function l(v){return v===46?e.check(Vd,d,u)(v):v===45||v===95?e.check(Vd,n,f)(v):Si(v)?(!o&&L1(v)&&(o=!0),e.consume(v),l):d(v)}function u(v){return e.consume(v),i=!0,o=void 0,l}function f(v){return e.consume(v),p}function p(v){return v===46?e.check(Vd,n,u)(v):l(v)}function d(v){return i&&!o?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(v)):n(v)}}function mTe(e,t,n){const r=this;return i;function i(a){return a!==87&&a!==119||!K8(r.previous)||kD(r.events)?n(a):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(dTe,e.attempt(B8,e.attempt(j8,o),n),n)(a))}function o(a){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(a)}}function gTe(e,t,n){const r=this;return i;function i(g){return g!==72&&g!==104||!CD(r.previous)||kD(r.events)?n(g):(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),e.consume(g),o)}function o(g){return g===84||g===116?(e.consume(g),a):n(g)}function a(g){return g===84||g===116?(e.consume(g),s):n(g)}function s(g){return g===80||g===112?(e.consume(g),l):n(g)}function l(g){return g===83||g===115?(e.consume(g),u):u(g)}function u(g){return g===58?(e.consume(g),f):n(g)}function f(g){return g===47?(e.consume(g),p):n(g)}function p(g){return g===47?(e.consume(g),d):n(g)}function d(g){return g===null||Bg(g)||q_(g)||G_(g)?n(g):e.attempt(B8,e.attempt(j8,v),n)(g)}function v(g){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(g)}}function vTe(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||Ct(l)?n(l):t(l)}}function yTe(e,t,n){let r,i;return o;function o(l){return l===38?e.check(z8,s,a)(l):l===46||l===95?e.check(Vd,s,a)(l):l===null||Bg(l)||q_(l)||l!==45&&G_(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 bTe(e,t){let n=0;return r;function r(a){return a===38?e.check(z8,t,i)(a):(a===40&&n++,a===41?e.check(Vd,o,i)(a):ED(a)?t(a):W8(a)?e.check(Vd,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 wTe(e,t,n){return r;function r(a){return e.consume(a),i}function i(a){return jo(a)?(e.consume(a),i):a===59?(e.consume(a),o):n(a)}function o(a){return ED(a)?t(a):n(a)}}function _Te(e,t,n){return r;function r(o){return e.consume(o),i}function i(o){return W8(o)?(e.consume(o),i):ED(o)?t(o):n(o)}}function W8(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 ED(e){return e===null||e===60||dr(e)}function bN(e){return e===43||e===45||e===46||e===95||Si(e)}function K8(e){return e===null||e===40||e===42||e===95||e===126||dr(e)}function CD(e){return e===null||!jo(e)}function H8(e){return e!==47&&CD(e)}function kD(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 xTe={tokenize:ATe,partial:!0};function STe(){return{document:{[91]:{tokenize:TTe,continuation:{tokenize:RTe},exit:OTe}},text:{[91]:{tokenize:kTe},[93]:{add:"after",tokenize:ETe,resolveTo:CTe}}}}function ETe(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){a=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!a||!a._balanced)return n(l);const u=Ta(r.sliceSerialize({start:a.end,end:r.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function CTe(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 kTe(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,a;return s;function s(p){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),l}function l(p){return p!==94?n(p):(e.enter("gfmFootnoteCallMarker"),e.consume(p),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(p){if(o>999||p===93&&!a||p===null||p===91||dr(p))return n(p);if(p===93){e.exit("chunkString");const d=e.exit("gfmFootnoteCallString");return i.includes(Ta(r.sliceSerialize(d)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(p)}return dr(p)||(a=!0),o++,e.consume(p),p===92?f:u}function f(p){return p===91||p===92||p===93?(e.consume(p),o++,u):u(p)}}function TTe(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a=0,s;return l;function l(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(g)}function f(g){if(a>999||g===93&&!s||g===null||g===91||dr(g))return n(g);if(g===93){e.exit("chunkString");const y=e.exit("gfmFootnoteDefinitionLabelString");return o=Ta(r.sliceSerialize(y)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return dr(g)||(s=!0),a++,e.consume(g),g===92?p:f}function p(g){return g===91||g===92||g===93?(e.consume(g),a++,f):f(g)}function d(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),i.includes(o)||i.push(o),sn(e,v,"gfmFootnoteDefinitionWhitespace")):n(g)}function v(g){return t(g)}}function RTe(e,t,n){return e.check(Sv,t,e.attempt(xTe,t,n))}function OTe(e){e.exit("gfmFootnoteDefinition")}function ATe(e,t,n){const r=this;return sn(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 DTe(e){let n=(e||{}).singleTilde;const r={tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{[126]:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(a,s){let l=-1;for(;++l<a.length;)if(a[l][0]==="enter"&&a[l][1].type==="strikethroughSequenceTemporary"&&a[l][1]._close){let u=l;for(;u--;)if(a[u][0]==="exit"&&a[u][1].type==="strikethroughSequenceTemporary"&&a[u][1]._open&&a[l][1].end.offset-a[l][1].start.offset===a[u][1].end.offset-a[u][1].start.offset){a[l][1].type="strikethroughSequence",a[u][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},a[u][1].start),end:Object.assign({},a[l][1].end)},p={type:"strikethroughText",start:Object.assign({},a[u][1].end),end:Object.assign({},a[l][1].start)},d=[["enter",f,s],["enter",a[u][1],s],["exit",a[u][1],s],["enter",p,s]],v=s.parser.constructs.insideSpan.null;v&&fo(d,d.length,0,Q_(v,a.slice(u+1,l),s)),fo(d,d.length,0,[["exit",p,s],["enter",a[l][1],s],["exit",a[l][1],s],["exit",f,s]]),fo(a,u-1,l-u+3,d),l=u+d.length-2;break}}for(l=-1;++l<a.length;)a[l][1].type==="strikethroughSequenceTemporary"&&(a[l][1].type="data");return a}function o(a,s,l){const u=this.previous,f=this.events;let p=0;return d;function d(g){return u===126&&f[f.length-1][1].type!=="characterEscape"?l(g):(a.enter("strikethroughSequenceTemporary"),v(g))}function v(g){const y=M1(u);if(g===126)return p>1?l(g):(a.consume(g),p++,v);if(p<2&&!n)return l(g);const x=a.exit("strikethroughSequenceTemporary"),b=M1(g);return x._open=!b||b===2&&!!y,x._close=!y||y===2&&!!b,s(g)}}}const ITe={flow:{null:{tokenize:$Te,resolve:PTe}}},wN={tokenize:FTe,partial:!0};function PTe(e,t){let n=-1,r,i,o,a,s,l,u;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 p={type:"tableContent",start:e[a][1].start,end:e[s][1].end},d={type:"chunkText",start:p.start,end:p.end,contentType:"text"};e.splice(a,s-a+1,["enter",p,t],["enter",d,t],["exit",d,t],["exit",p,t]),n-=s-a-3,a=void 0,s=void 0}if(e[n][0]==="exit"&&l!==void 0&&l+(u?0:1)<n&&(f.type==="tableCellDivider"||f.type==="tableRow"&&(l+3<n||e[l][1].type!=="whitespace"))){const p={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",p,t]),e.splice(l,0,["enter",p,t]),n+=2,l=n+1,u=!0}f.type==="tableRow"&&(o=e[n][0]==="enter",o&&(l=n+1,u=!1)),f.type==="tableDelimiterRow"&&(i=e[n][0]==="enter",i&&(l=n+1,u=!1)),f.type==="tableHead"&&(r=e[n][0]==="enter")}return e}function $Te(e,t,n){const r=this,i=[];let o=0,a,s;return l;function l(F){return e.enter("table")._align=i,e.enter("tableHead"),e.enter("tableRow"),F===124?u(F):(o++,e.enter("temporaryTableCellContent"),d(F))}function u(F){return e.enter("tableCellDivider"),e.consume(F),e.exit("tableCellDivider"),a=!0,f}function f(F){return F===null||Ct(F)?g(F):Rn(F)?(e.enter("whitespace"),e.consume(F),p):(a&&(a=void 0,o++),F===124?u(F):(e.enter("temporaryTableCellContent"),d(F)))}function p(F){return Rn(F)?(e.consume(F),p):(e.exit("whitespace"),f(F))}function d(F){return F===null||F===124||dr(F)?(e.exit("temporaryTableCellContent"),f(F)):(e.consume(F),F===92?v:d)}function v(F){return F===92||F===124?(e.consume(F),d):d(F)}function g(F){if(F===null)return n(F);e.exit("tableRow"),e.exit("tableHead");const te=r.interrupt;return r.interrupt=!0,e.attempt({tokenize:Z,partial:!0},function(Y){return r.interrupt=te,e.enter("tableDelimiterRow"),y(Y)},function(Y){return r.interrupt=te,n(Y)})(F)}function y(F){return F===null||Ct(F)?C(F):Rn(F)?(e.enter("whitespace"),e.consume(F),x):F===45?(e.enter("tableDelimiterFiller"),e.consume(F),s=!0,i.push("none"),b):F===58?(e.enter("tableDelimiterAlignment"),e.consume(F),e.exit("tableDelimiterAlignment"),i.push("left"),w):F===124?(e.enter("tableCellDivider"),e.consume(F),e.exit("tableCellDivider"),y):n(F)}function x(F){return Rn(F)?(e.consume(F),x):(e.exit("whitespace"),y(F))}function b(F){return F===45?(e.consume(F),b):(e.exit("tableDelimiterFiller"),F===58?(e.enter("tableDelimiterAlignment"),e.consume(F),e.exit("tableDelimiterAlignment"),i[i.length-1]=i[i.length-1]==="left"?"center":"right",S):y(F))}function w(F){return F===45?(e.enter("tableDelimiterFiller"),e.consume(F),s=!0,b):n(F)}function S(F){return F===null||Ct(F)?C(F):Rn(F)?(e.enter("whitespace"),e.consume(F),x):F===124?(e.enter("tableCellDivider"),e.consume(F),e.exit("tableCellDivider"),y):n(F)}function C(F){return e.exit("tableDelimiterRow"),!s||o!==i.length?n(F):F===null?k(F):e.check(wN,k,e.attempt({tokenize:Z,partial:!0},sn(e,D,"linePrefix",4),k))(F)}function k(F){return e.exit("table"),t(F)}function D(F){return e.enter("tableBody"),P(F)}function P(F){return e.enter("tableRow"),F===124?B(F):(e.enter("temporaryTableCellContent"),W(F))}function B(F){return e.enter("tableCellDivider"),e.consume(F),e.exit("tableCellDivider"),V}function V(F){return F===null||Ct(F)?ne(F):Rn(F)?(e.enter("whitespace"),e.consume(F),U):F===124?B(F):(e.enter("temporaryTableCellContent"),W(F))}function U(F){return Rn(F)?(e.consume(F),U):(e.exit("whitespace"),V(F))}function W(F){return F===null||F===124||dr(F)?(e.exit("temporaryTableCellContent"),V(F)):(e.consume(F),F===92?se:W)}function se(F){return F===92||F===124?(e.consume(F),W):W(F)}function ne(F){return e.exit("tableRow"),F===null?re(F):e.check(wN,re,e.attempt({tokenize:Z,partial:!0},sn(e,P,"linePrefix",4),re))(F)}function re(F){return e.exit("tableBody"),k(F)}function Z(F,te,Y){return ee;function ee(L){return F.enter("lineEnding"),F.consume(L),F.exit("lineEnding"),sn(F,G,"linePrefix")}function G(L){if(r.parser.lazy[r.now().line]||L===null||Ct(L))return Y(L);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?Y(L):(r._gfmTableDynamicInterruptHack=!0,F.check(r.parser.constructs.flow,function(ie){return r._gfmTableDynamicInterruptHack=!1,Y(ie)},function(ie){return r._gfmTableDynamicInterruptHack=!1,te(ie)})(L))}}}function FTe(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||dr(a)?t(a):n(a)}}const LTe={tokenize:NTe},MTe={text:{[91]:LTe}};function NTe(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 dr(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 Ct(l)?t(l):Rn(l)?e.check({tokenize:BTe},t,n)(l):n(l)}}function BTe(e,t,n){return sn(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function jTe(e){return l8([pTe,STe(),DTe(e),ITe,MTe])}function _N(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 zTe(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const UTe={}.hasOwnProperty,VTe=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=bD(i.ignore||[]),s=WTe(o);let l=-1;for(;++l<s.length;)k8(e,"text",u);return e;function u(p,d){let v=-1,g;for(;++v<d.length;){const y=d[v];if(a(y,g?g.children.indexOf(y):void 0,g))return;g=y}if(g)return f(p,d)}function f(p,d){const v=d[d.length-1],g=s[l][0],y=s[l][1];let x=0;const b=v.children.indexOf(p);let w=!1,S=[];g.lastIndex=0;let C=g.exec(p.value);for(;C;){const k=C.index,D={index:C.index,input:C.input,stack:[...d,p]};let P=y(...C,D);if(typeof P=="string"&&(P=P.length>0?{type:"text",value:P}:void 0),P!==!1&&(x!==k&&S.push({type:"text",value:p.value.slice(x,k)}),Array.isArray(P)?S.push(...P):P&&S.push(P),x=k+C[0].length,w=!0),!g.global)break;C=g.exec(p.value)}return w?(x<p.value.length&&S.push({type:"text",value:p.value.slice(x)}),v.children.splice(b,1,...S)):S=[p],b+S.length}};function WTe(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([xN(e[n][0]),SN(e[n][1])])}else{let n;for(n in e)UTe.call(e,n)&&t.push([xN(n),SN(e[n])])}return t}function xN(e){return typeof e=="string"?new RegExp(zTe(e),"g"):e}function SN(e){return typeof e=="function"?e:()=>e}const HE="phrasing",qE=["autolink","link","image","label"],KTe={transforms:[JTe],enter:{literalAutolink:qTe,literalAutolinkEmail:GE,literalAutolinkHttp:GE,literalAutolinkWww:GE},exit:{literalAutolink:XTe,literalAutolinkEmail:YTe,literalAutolinkHttp:GTe,literalAutolinkWww:QTe}},HTe={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:HE,notInConstruct:qE},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:HE,notInConstruct:qE},{character:":",before:"[ps]",after:"\\/",inConstruct:HE,notInConstruct:qE}]};function qTe(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function GE(e){this.config.enter.autolinkProtocol.call(this,e)}function GTe(e){this.config.exit.autolinkProtocol.call(this,e)}function QTe(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}function YTe(e){this.config.exit.autolinkEmail.call(this,e)}function XTe(e){this.exit(e)}function JTe(e){VTe(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,ZTe],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,eRe]],{ignore:["link","linkReference"]})}function ZTe(e,t,n,r,i){let o="";if(!q8(i)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!tRe(n)))return!1;const a=nRe(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 eRe(e,t,n,r){return!q8(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function tRe(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 nRe(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=_N(e,"(");let o=_N(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 q8(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||q_(n)||G_(n))&&(!t||n!==47)}function G8(e){return e.label||!e.identifier?e.label||"":b8(e.identifier)}function rRe(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(iRe(l,i[s+1],e,t)))}return r.pop(),a.join("")}function iRe(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 oRe=/\r?\n|\r/g;function aRe(e,t){const n=[];let r=0,i=0,o;for(;o=oRe.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 Q8(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 sRe(e,t){return EN(e,t.inConstruct,!0)&&!EN(e,t.notInConstruct,!1)}function EN(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 Y8(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(!sRe(e.stack,f))continue;const p=Q8(f);let d;for(;d=p.exec(r);){const v="before"in f||!!f.atBreak,g="after"in f,y=d.index+(v?d[1].length:0);i.includes(y)?(a[y].before&&!v&&(a[y].before=!1),a[y].after&&!g&&(a[y].after=!1)):(i.push(y),a[y]={before:v,after:g})}}i.sort(lRe);let l=n.before?n.before.length:0;const u=r.length-(n.after?n.after.length:0);for(s=-1;++s<i.length;){const f=i[s];f<l||f>=u||f+1<u&&i[s+1]===f+1&&a[f].after&&!a[f+1].before&&!a[f+1].after||i[s-1]===f-1&&a[f].before&&!a[f-1].before&&!a[f-1].after||(l!==f&&o.push(CN(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(CN(r.slice(l,u),n.after)),o.join("")}function lRe(e,t){return e-t}function CN(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 J_(e){const t=e||{},n=t.now||{};let r=t.lineShift||0,i=n.line||1,o=n.column||1;return{move:l,current:a,shift:s};function a(){return{now:{line:i,column:o},lineShift:r}}function s(u){r+=u}function l(u){const f=u||"",p=f.split(/\r?\n|\r/g),d=p[p.length-1];return i+=p.length-1,o=p.length===1?o+d.length:1+d.length+r,f}}X8.peek=bRe;function uRe(){return{enter:{gfmFootnoteDefinition:fRe,gfmFootnoteDefinitionLabelString:dRe,gfmFootnoteCall:mRe,gfmFootnoteCallString:gRe},exit:{gfmFootnoteDefinition:hRe,gfmFootnoteDefinitionLabelString:pRe,gfmFootnoteCall:yRe,gfmFootnoteCallString:vRe}}}function cRe(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:wRe,footnoteReference:X8}}}function fRe(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function dRe(){this.buffer()}function pRe(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Ta(this.sliceSerialize(e)).toLowerCase()}function hRe(e){this.exit(e)}function mRe(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function gRe(){this.buffer()}function vRe(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Ta(this.sliceSerialize(e)).toLowerCase()}function yRe(e){this.exit(e)}function X8(e,t,n,r){const i=J_(r);let o=i.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference");return o+=i.move(Y8(n,G8(e),{...i.current(),before:o,after:"]"})),s(),a(),o+=i.move("]"),o}function bRe(){return"["}function wRe(e,t,n,r){const i=J_(r);let o=i.move("[^");const a=n.enter("footnoteDefinition"),s=n.enter("label");return o+=i.move(Y8(n,G8(e),{...i.current(),before:o,after:"]"})),s(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(aRe(rRe(e,n,i.current()),_Re)),a(),o}function _Re(e,t,n){return t===0?e:(n?"":" ")+e}function J8(e,t,n){const r=t.indexStack,i=e.children||[],o=[];let a=-1,s=n.before;r.push(-1);let l=t.createTracker(n);for(;++a<i.length;){const u=i[a];let f;if(r[r.length-1]=a,a+1<i.length){let p=t.handle.handlers[i[a+1].type];p&&p.peek&&(p=p.peek),f=p?p(i[a+1],e,t,{before:"",after:"",...l.current()}).charAt(0):""}else f=n.after;o.length>0&&(s==="\r"||s===`
|
|
219
|
-
`)&&u.type==="html"&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),s=" ",l=t.createTracker(n),l.move(o.join(""))),o.push(l.move(t.handle(u,e,t,{...l.current(),before:s,after:f}))),s=o[o.length-1].slice(-1)}return r.pop(),o.join("")}const xRe=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Z8.peek=TRe;const SRe={canContainEols:["delete"],enter:{strikethrough:CRe},exit:{strikethrough:kRe}},ERe={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:xRe}],handlers:{delete:Z8}};function CRe(e){this.enter({type:"delete",children:[]},e)}function kRe(e){this.exit(e)}function Z8(e,t,n,r){const i=J_(r),o=n.enter("strikethrough");let a=i.move("~~");return a+=J8(e,n,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function TRe(){return"~"}e7.peek=RRe;function e7(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=Q8(a);let l;if(a.atBreak)for(;l=s.exec(r);){let u=l.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(l.index+1)}}return i+r+i}function RRe(){return"`"}function ORe(e,t={}){const n=(t.align||[]).concat(),r=t.stringLength||DRe,i=[],o=[],a=[],s=[];let l=0,u=-1;for(;++u<e.length;){const g=[],y=[];let x=-1;for(e[u].length>l&&(l=e[u].length);++x<e[u].length;){const b=ARe(e[u][x]);if(t.alignDelimiters!==!1){const w=r(b);y[x]=w,(s[x]===void 0||w>s[x])&&(s[x]=w)}g.push(b)}o[u]=g,a[u]=y}let f=-1;if(typeof n=="object"&&"length"in n)for(;++f<l;)i[f]=kN(n[f]);else{const g=kN(n);for(;++f<l;)i[f]=g}f=-1;const p=[],d=[];for(;++f<l;){const g=i[f];let y="",x="";g===99?(y=":",x=":"):g===108?y=":":g===114&&(x=":");let b=t.alignDelimiters===!1?1:Math.max(1,s[f]-y.length-x.length);const w=y+"-".repeat(b)+x;t.alignDelimiters!==!1&&(b=y.length+b+x.length,b>s[f]&&(s[f]=b),d[f]=b),p[f]=w}o.splice(1,0,p),a.splice(1,0,d),u=-1;const v=[];for(;++u<o.length;){const g=o[u],y=a[u];f=-1;const x=[];for(;++f<l;){const b=g[f]||"";let w="",S="";if(t.alignDelimiters!==!1){const C=s[f]-(y[f]||0),k=i[f];k===114?w=" ".repeat(C):k===99?C%2?(w=" ".repeat(C/2+.5),S=" ".repeat(C/2-.5)):(w=" ".repeat(C/2),S=w):S=" ".repeat(C)}t.delimiterStart!==!1&&!f&&x.push("|"),t.padding!==!1&&!(t.alignDelimiters===!1&&b==="")&&(t.delimiterStart!==!1||f)&&x.push(" "),t.alignDelimiters!==!1&&x.push(w),x.push(b),t.alignDelimiters!==!1&&x.push(S),t.padding!==!1&&x.push(" "),(t.delimiterEnd!==!1||f!==l-1)&&x.push("|")}v.push(t.delimiterEnd===!1?x.join("").replace(/ +$/,""):x.join(""))}return v.join(`
|
|
220
|
-
`)}function ARe(e){return e==null?"":String(e)}function DRe(e){return e.length}function kN(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 IRe={enter:{table:PRe,tableData:TN,tableHeader:TN,tableRow:FRe},exit:{codeText:LRe,table:$Re,tableData:QE,tableHeader:QE,tableRow:QE}};function PRe(e){const t=e._align;this.enter({type:"table",align:t.map(n=>n==="none"?null:n),children:[]},e),this.setData("inTable",!0)}function $Re(e){this.exit(e),this.setData("inTable")}function FRe(e){this.enter({type:"tableRow",children:[]},e)}function QE(e){this.exit(e)}function TN(e){this.enter({type:"tableCell",children:[]},e)}function LRe(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,MRe));const n=this.stack[this.stack.length-1];n.value=t,this.exit(e)}function MRe(e,t){return t==="|"?t:e}function NRe(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:d}};function a(v,g,y,x){return u(f(v,y,x),v.align)}function s(v,g,y,x){const b=p(v,y,x),w=u([b]);return w.slice(0,w.indexOf(`
|
|
222
|
-
`))}function l(v,g,y,x){const b=y.enter("tableCell"),w=y.enter("phrasing"),S=J8(v,y,{...x,before:o,after:o});return w(),b(),S}function u(v,g){return ORe(v,{align:g,alignDelimiters:r,padding:n,stringLength:i})}function f(v,g,y){const x=v.children;let b=-1;const w=[],S=g.enter("table");for(;++b<x.length;)w[b]=p(x[b],g,y);return S(),w}function p(v,g,y){const x=v.children;let b=-1;const w=[],S=g.enter("tableRow");for(;++b<x.length;)w[b]=l(x[b],v,g,y);return S(),w}function d(v,g,y){let x=e7(v,g,y);return y.stack.includes("tableCell")&&(x=x.replace(/\|/g,"\\$&")),x}}function BRe(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 jRe(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 zRe(e,t,n,r){const i=jRe(n);let o=n.bulletCurrent||BRe(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let a=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4);const s=n.createTracker(r);s.move(o+" ".repeat(a-o.length)),s.shift(a);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,s.current()),f);return l(),u;function f(p,d,v){return d?(v?"":" ".repeat(a))+p:(v?o:o+" ".repeat(a-o.length))+p}}const URe={exit:{taskListCheckValueChecked:RN,taskListCheckValueUnchecked:RN,paragraph:WRe}},VRe={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:KRe}};function RN(e){const t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function WRe(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 KRe(e,t,n,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",a="["+(e.checked?"x":" ")+"] ",s=J_(r);o&&s.move(a);let l=zRe(e,t,n,{...r,...s.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(f){return f+a}}function HRe(){return[KTe,uRe(),SRe,IRe,URe]}function qRe(e){return{extensions:[HTe,cRe(),ERe,NRe(e),VRe]}}function TD(e={}){const t=this.data();n("micromarkExtensions",jTe(e)),n("fromMarkdownExtensions",HRe()),n("toMarkdownExtensions",qRe(e));function n(r,i){(t[r]?t[r]:t[r]=[]).push(i)}}const Cv=ni({key:"Elements",default:[]}),RD=ni({key:"SideView",default:void 0});function GRe({element:e}){const t=Er(RD);if(e.display==="inline")return T.jsx("span",{style:{fontWeight:700},children:e.name});const n=e.id||e.tempId;return T.jsx(iD,{className:"element-link",onClick:()=>{e.display==="side"&&t(e)},component:wv,to:e.display==="page"?`/element/${n}`:"#",children:e.name})}function QRe(e,t){if(e==null)return{};var n=rt(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 FT(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 YRe(e){if(Array.isArray(e))return FT(e)}function XRe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function JRe(e,t){if(e){if(typeof e=="string")return FT(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 FT(e,t)}}function ZRe(){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 eOe(e){return YRe(e)||XRe(e)||JRe(e)||ZRe()}function vp(e){"@babel/helpers - typeof";return vp=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},vp(e)}function tOe(e,t){if(vp(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(vp(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function t7(e){var t=tOe(e,"string");return vp(t)==="symbol"?t:String(t)}function Ks(e,t,n){return t=t7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ON(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 Sd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ON(Object(n),!0).forEach(function(r){Ks(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ON(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nOe(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 YE={};function rOe(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return YE[t]||(YE[t]=nOe(e)),YE[t]}function iOe(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=rOe(r);return i.reduce(function(o,a){return Sd(Sd({},o),n[a])},t)}function AN(e){return e.join(" ")}function oOe(e,t){var n=0;return function(r){return n+=1,r.map(function(i,o){return n7({node:i,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(o)})})}}function n7(e){var t=e.node,n=e.stylesheet,r=e.style,i=r===void 0?{}:r,o=e.useInlineStyles,a=e.key,s=t.properties,l=t.type,u=t.tagName,f=t.value;if(l==="text")return f;if(u){var p=oOe(n,o),d;if(!o)d=Sd(Sd({},s),{},{className:AN(s.className)});else{var v=Object.keys(n).reduce(function(b,w){return w.split(".").forEach(function(S){b.includes(S)||b.push(S)}),b},[]),g=s.className&&s.className.includes("token")?["token"]:[],y=s.className&&g.concat(s.className.filter(function(b){return!v.includes(b)}));d=Sd(Sd({},s),{},{className:AN(y)||void 0,style:iOe(s.className,Object.assign({},s.style,i),n)})}var x=p(t.children);return yt.createElement(u,z({key:a},d),x)}}const aOe=function(e,t){var n=e.listLanguages();return n.indexOf(t)!==-1};var sOe=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function DN(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 Xa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?DN(Object(n),!0).forEach(function(r){Ks(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var lOe=/\n/g;function uOe(e){return e.match(lOe)}function cOe(e){var t=e.lines,n=e.startingLineNumber,r=e.style;return t.map(function(i,o){var a=o+n;return yt.createElement("span",{key:"line-".concat(o),className:"react-syntax-highlighter-line-number",style:typeof r=="function"?r(a):r},"".concat(a,`
|
|
224
|
-
`))})}function fOe(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 yt.createElement("code",{style:Object.assign({},n,i)},cOe({lines:t.replace(/\n$/,"").split(`
|
|
225
|
-
`),style:a,startingLineNumber:s}))}function dOe(e){return"".concat(e.toString().length,".25em")}function r7(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 i7(e,t,n){var r={display:"inline-block",minWidth:dOe(n),paddingRight:"1em",textAlign:"right",userSelect:"none"},i=typeof e=="function"?e(t):e,o=Xa(Xa({},r),i);return o}function Tb(e){var t=e.children,n=e.lineNumber,r=e.lineNumberStyle,i=e.largestLineNumber,o=e.showInlineLineNumbers,a=e.lineProps,s=a===void 0?{}:a,l=e.className,u=l===void 0?[]:l,f=e.showLineNumbers,p=e.wrapLongLines,d=typeof s=="function"?s(n):s;if(d.className=u,n&&o){var v=i7(r,n,i);t.unshift(r7(n,v))}return p&f&&(d.style=Xa(Xa({},d.style),{},{display:"flex"})),{type:"element",tagName:"span",properties:d,children:t}}function o7(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(Tb({children:[i],className:eOe(new Set(t))}));else if(i.children){var o=t.concat(i.properties.className);o7(i.children,o).forEach(function(a){return n.push(a)})}}return n}function pOe(e,t,n,r,i,o,a,s,l){var u,f=o7(e.value),p=[],d=-1,v=0;function g(k,D){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return Tb({children:k,lineNumber:D,lineNumberStyle:s,largestLineNumber:a,showInlineLineNumbers:i,lineProps:n,className:P,showLineNumbers:r,wrapLongLines:l})}function y(k,D){if(r&&D&&i){var P=i7(s,D,a);k.unshift(r7(D,P))}return k}function x(k,D){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||P.length>0?g(k,D,P):y(k,D)}for(var b=function(){var D=f[v],P=D.children[0].value,B=uOe(P);if(B){var V=P.split(`
|
|
226
|
-
`);V.forEach(function(U,W){var se=r&&p.length+o,ne={type:"text",value:"".concat(U,`
|
|
227
|
-
`)};if(W===0){var re=f.slice(d+1,v).concat(Tb({children:[ne],className:D.properties.className})),Z=x(re,se);p.push(Z)}else if(W===V.length-1){var F=f[v+1]&&f[v+1].children&&f[v+1].children[0],te={type:"text",value:"".concat(U)};if(F){var Y=Tb({children:[te],className:D.properties.className});f.splice(v+1,0,Y)}else{var ee=[te],G=x(ee,se,D.properties.className);p.push(G)}}else{var L=[ne],A=x(L,se,D.properties.className);p.push(A)}}),d=v}v++};v<f.length;)b();if(d!==f.length-1){var w=f.slice(d+1,f.length);if(w&&w.length){var S=r&&p.length+o,C=x(w,S);p.push(C)}}return t?p:(u=[]).concat.apply(u,p)}function hOe(e){var t=e.rows,n=e.stylesheet,r=e.useInlineStyles;return t.map(function(i,o){return n7({node:i,stylesheet:n,useInlineStyles:r,key:"code-segement".concat(o)})})}function a7(e){return e&&typeof e.highlightAuto<"u"}function mOe(e){var t=e.astGenerator,n=e.language,r=e.code,i=e.defaultCodeValue;if(a7(t)){var o=aOe(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 gOe(e,t){return function(r){var i=r.language,o=r.children,a=r.style,s=a===void 0?t:a,l=r.customStyle,u=l===void 0?{}:l,f=r.codeTagProps,p=f===void 0?{className:i?"language-".concat(i):void 0,style:Xa(Xa({},s['code[class*="language-"]']),s['code[class*="language-'.concat(i,'"]')])}:f,d=r.useInlineStyles,v=d===void 0?!0:d,g=r.showLineNumbers,y=g===void 0?!1:g,x=r.showInlineLineNumbers,b=x===void 0?!0:x,w=r.startingLineNumber,S=w===void 0?1:w,C=r.lineNumberContainerStyle,k=r.lineNumberStyle,D=k===void 0?{}:k,P=r.wrapLines,B=r.wrapLongLines,V=B===void 0?!1:B,U=r.lineProps,W=U===void 0?{}:U,se=r.renderer,ne=r.PreTag,re=ne===void 0?"pre":ne,Z=r.CodeTag,F=Z===void 0?"code":Z,te=r.code,Y=te===void 0?(Array.isArray(o)?o[0]:o)||"":te,ee=r.astGenerator,G=QRe(r,sOe);ee=ee||e;var L=y?yt.createElement(fOe,{containerStyle:C,codeStyle:p.style||{},numberStyle:D,startingLineNumber:S,codeString:Y}):null,A=s.hljs||s['pre[class*="language-"]']||{backgroundColor:"#fff"},ie=a7(ee)?"hljs":"prismjs",ae=v?Object.assign({},G,{style:Object.assign({},A,u)}):Object.assign({},G,{className:G.className?"".concat(ie," ").concat(G.className):ie,style:Object.assign({},u)});if(V?p.style=Xa(Xa({},p.style),{},{whiteSpace:"pre-wrap"}):p.style=Xa(Xa({},p.style),{},{whiteSpace:"pre"}),!ee)return yt.createElement(re,ae,L,yt.createElement(F,p,Y));(P===void 0&&se||V)&&(P=!0),se=se||hOe;var ce=[{type:"text",value:Y}],oe=mOe({astGenerator:ee,language:i,code:Y,defaultCodeValue:ce});oe.language===null&&(oe.value=ce);var xe=oe.value.length+S,ke=pOe(oe,P,W,y,b,S,xe,D,V);return yt.createElement(re,ae,yt.createElement(F,p,!b&&L,se({rows:ke,stylesheet:s,useInlineStyles:v})))}}const vOe="modulepreload",yOe=function(e){return"/"+e},IN={},bOe=function(t,n,r){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=yOe(o),o in IN)return;IN[o]=!0;const a=o.endsWith(".css"),s=a?'[rel="stylesheet"]':"";if(!!r)for(let f=i.length-1;f>=0;f--){const p=i[f];if(p.href===o&&(!a||p.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${s}`))return;const u=document.createElement("link");if(u.rel=a?"stylesheet":vOe,a||(u.as="script",u.crossOrigin=""),u.href=o,document.head.appendChild(u),a)return new Promise((f,p)=>{u.addEventListener("load",f),u.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t())};function PN(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(u){n(u);return}s.done?t(l):Promise.resolve(l).then(r,i)}function wOe(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(l){PN(o,r,i,a,s,"next",l)}function s(l){PN(o,r,i,a,s,"throw",l)}a(void 0)})}}function _Oe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $N(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,t7(r.key),r)}}function xOe(e,t,n){return t&&$N(e.prototype,t),n&&$N(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function SOe(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&&T1(e,t)}function EOe(e,t){if(t&&(vp(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return O1(e)}function B1(e){return B1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},B1(e)}var s7={exports:{}},l7={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})(l7);var COe=l7.exports;(function(e){var t=COe.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(Z,F,te){Z[F]=te.value},s=typeof Symbol=="function"?Symbol:{},l=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",f=s.toStringTag||"@@toStringTag";function p(Z,F,te){return Object.defineProperty(Z,F,{value:te,enumerable:!0,configurable:!0,writable:!0}),Z[F]}try{p({},"")}catch{p=function(te,Y,ee){return te[Y]=ee}}function d(Z,F,te,Y){var ee=F&&F.prototype instanceof y?F:y,G=Object.create(ee.prototype),L=new se(Y||[]);return a(G,"_invoke",{value:B(Z,te,L)}),G}function v(Z,F,te){try{return{type:"normal",arg:Z.call(F,te)}}catch(Y){return{type:"throw",arg:Y}}}r.wrap=d;var g={};function y(){}function x(){}function b(){}var w={};p(w,l,function(){return this});var S=Object.getPrototypeOf,C=S&&S(S(ne([])));C&&C!==i&&o.call(C,l)&&(w=C);var k=b.prototype=y.prototype=Object.create(w);function D(Z){["next","throw","return"].forEach(function(F){p(Z,F,function(te){return this._invoke(F,te)})})}function P(Z,F){function te(ee,G,L,A){var ie=v(Z[ee],Z,G);if(ie.type!=="throw"){var ae=ie.arg,ce=ae.value;return ce&&t(ce)=="object"&&o.call(ce,"__await")?F.resolve(ce.__await).then(function(oe){te("next",oe,L,A)},function(oe){te("throw",oe,L,A)}):F.resolve(ce).then(function(oe){ae.value=oe,L(ae)},function(oe){return te("throw",oe,L,A)})}A(ie.arg)}var Y;a(this,"_invoke",{value:function(G,L){function A(){return new F(function(ie,ae){te(G,L,ie,ae)})}return Y=Y?Y.then(A,A):A()}})}function B(Z,F,te){var Y="suspendedStart";return function(ee,G){if(Y==="executing")throw new Error("Generator is already running");if(Y==="completed"){if(ee==="throw")throw G;return re()}for(te.method=ee,te.arg=G;;){var L=te.delegate;if(L){var A=V(L,te);if(A){if(A===g)continue;return A}}if(te.method==="next")te.sent=te._sent=te.arg;else if(te.method==="throw"){if(Y==="suspendedStart")throw Y="completed",te.arg;te.dispatchException(te.arg)}else te.method==="return"&&te.abrupt("return",te.arg);Y="executing";var ie=v(Z,F,te);if(ie.type==="normal"){if(Y=te.done?"completed":"suspendedYield",ie.arg===g)continue;return{value:ie.arg,done:te.done}}ie.type==="throw"&&(Y="completed",te.method="throw",te.arg=ie.arg)}}}function V(Z,F){var te=F.method,Y=Z.iterator[te];if(Y===void 0)return F.delegate=null,te==="throw"&&Z.iterator.return&&(F.method="return",F.arg=void 0,V(Z,F),F.method==="throw")||te!=="return"&&(F.method="throw",F.arg=new TypeError("The iterator does not provide a '"+te+"' method")),g;var ee=v(Y,Z.iterator,F.arg);if(ee.type==="throw")return F.method="throw",F.arg=ee.arg,F.delegate=null,g;var G=ee.arg;return G?G.done?(F[Z.resultName]=G.value,F.next=Z.nextLoc,F.method!=="return"&&(F.method="next",F.arg=void 0),F.delegate=null,g):G:(F.method="throw",F.arg=new TypeError("iterator result is not an object"),F.delegate=null,g)}function U(Z){var F={tryLoc:Z[0]};1 in Z&&(F.catchLoc=Z[1]),2 in Z&&(F.finallyLoc=Z[2],F.afterLoc=Z[3]),this.tryEntries.push(F)}function W(Z){var F=Z.completion||{};F.type="normal",delete F.arg,Z.completion=F}function se(Z){this.tryEntries=[{tryLoc:"root"}],Z.forEach(U,this),this.reset(!0)}function ne(Z){if(Z){var F=Z[l];if(F)return F.call(Z);if(typeof Z.next=="function")return Z;if(!isNaN(Z.length)){var te=-1,Y=function ee(){for(;++te<Z.length;)if(o.call(Z,te))return ee.value=Z[te],ee.done=!1,ee;return ee.value=void 0,ee.done=!0,ee};return Y.next=Y}}return{next:re}}function re(){return{value:void 0,done:!0}}return x.prototype=b,a(k,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:x,configurable:!0}),x.displayName=p(b,f,"GeneratorFunction"),r.isGeneratorFunction=function(Z){var F=typeof Z=="function"&&Z.constructor;return!!F&&(F===x||(F.displayName||F.name)==="GeneratorFunction")},r.mark=function(Z){return Object.setPrototypeOf?Object.setPrototypeOf(Z,b):(Z.__proto__=b,p(Z,f,"GeneratorFunction")),Z.prototype=Object.create(k),Z},r.awrap=function(Z){return{__await:Z}},D(P.prototype),p(P.prototype,u,function(){return this}),r.AsyncIterator=P,r.async=function(Z,F,te,Y,ee){ee===void 0&&(ee=Promise);var G=new P(d(Z,F,te,Y),ee);return r.isGeneratorFunction(F)?G:G.next().then(function(L){return L.done?L.value:G.next()})},D(k),p(k,f,"Generator"),p(k,l,function(){return this}),p(k,"toString",function(){return"[object Generator]"}),r.keys=function(Z){var F=Object(Z),te=[];for(var Y in F)te.push(Y);return te.reverse(),function ee(){for(;te.length;){var G=te.pop();if(G in F)return ee.value=G,ee.done=!1,ee}return ee.done=!0,ee}},r.values=ne,se.prototype={constructor:se,reset:function(F){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(W),!F)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 F=this.tryEntries[0].completion;if(F.type==="throw")throw F.arg;return this.rval},dispatchException:function(F){if(this.done)throw F;var te=this;function Y(ae,ce){return L.type="throw",L.arg=F,te.next=ae,ce&&(te.method="next",te.arg=void 0),!!ce}for(var ee=this.tryEntries.length-1;ee>=0;--ee){var G=this.tryEntries[ee],L=G.completion;if(G.tryLoc==="root")return Y("end");if(G.tryLoc<=this.prev){var A=o.call(G,"catchLoc"),ie=o.call(G,"finallyLoc");if(A&&ie){if(this.prev<G.catchLoc)return Y(G.catchLoc,!0);if(this.prev<G.finallyLoc)return Y(G.finallyLoc)}else if(A){if(this.prev<G.catchLoc)return Y(G.catchLoc,!0)}else{if(!ie)throw new Error("try statement without catch or finally");if(this.prev<G.finallyLoc)return Y(G.finallyLoc)}}}},abrupt:function(F,te){for(var Y=this.tryEntries.length-1;Y>=0;--Y){var ee=this.tryEntries[Y];if(ee.tryLoc<=this.prev&&o.call(ee,"finallyLoc")&&this.prev<ee.finallyLoc){var G=ee;break}}G&&(F==="break"||F==="continue")&&G.tryLoc<=te&&te<=G.finallyLoc&&(G=null);var L=G?G.completion:{};return L.type=F,L.arg=te,G?(this.method="next",this.next=G.finallyLoc,g):this.complete(L)},complete:function(F,te){if(F.type==="throw")throw F.arg;return F.type==="break"||F.type==="continue"?this.next=F.arg:F.type==="return"?(this.rval=this.arg=F.arg,this.method="return",this.next="end"):F.type==="normal"&&te&&(this.next=te),g},finish:function(F){for(var te=this.tryEntries.length-1;te>=0;--te){var Y=this.tryEntries[te];if(Y.finallyLoc===F)return this.complete(Y.completion,Y.afterLoc),W(Y),g}},catch:function(F){for(var te=this.tryEntries.length-1;te>=0;--te){var Y=this.tryEntries[te];if(Y.tryLoc===F){var ee=Y.completion;if(ee.type==="throw"){var G=ee.arg;W(Y)}return G}}throw new Error("illegal catch attempt")},delegateYield:function(F,te,Y){return this.delegate={iterator:ne(F),resultName:te,nextLoc:Y},this.method==="next"&&(this.arg=void 0),g}},r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(s7);var kOe=s7.exports,Rb=kOe(),TOe=Rb;try{regeneratorRuntime=Rb}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=Rb:Function("r","regeneratorRuntime = r")(Rb)}const FN=ps(TOe);function ROe(e){var t=OOe();return function(){var r=B1(e),i;if(t){var o=B1(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return EOe(this,i)}}function OOe(){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 AOe=function(e){var t=e.loader,n=e.isLanguageRegistered,r=e.registerLanguage,i=e.languageLoaders,o=e.noAsyncLoadingLanguages,a=function(s){SOe(u,s);var l=ROe(u);function u(){return _Oe(this,u),l.apply(this,arguments)}return xOe(u,[{key:"componentDidUpdate",value:function(){!u.isRegistered(this.props.language)&&i&&this.loadLanguage()}},{key:"componentDidMount",value:function(){var p=this;u.astGeneratorPromise||u.loadAstGenerator(),u.astGenerator||u.astGeneratorPromise.then(function(){p.forceUpdate()}),!u.isRegistered(this.props.language)&&i&&this.loadLanguage()}},{key:"loadLanguage",value:function(){var p=this,d=this.props.language;d!=="text"&&u.loadLanguage(d).then(function(){return p.forceUpdate()}).catch(function(){})}},{key:"normalizeLanguage",value:function(p){return u.isSupportedLanguage(p)?p:"text"}},{key:"render",value:function(){return yt.createElement(u.highlightInstance,z({},this.props,{language:this.normalizeLanguage(this.props.language),astGenerator:u.astGenerator}))}}],[{key:"preload",value:function(){return u.loadAstGenerator()}},{key:"loadLanguage",value:function(){var f=wOe(FN.mark(function d(v){var g;return FN.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:if(g=i[v],typeof g!="function"){x.next=5;break}return x.abrupt("return",g(u.registerLanguage));case 5:throw new Error("Language ".concat(v," not supported"));case 6:case"end":return x.stop()}},d)}));function p(d){return f.apply(this,arguments)}return p}()},{key:"isSupportedLanguage",value:function(p){return u.isRegistered(p)||typeof i[p]=="function"}},{key:"loadAstGenerator",value:function(){return u.astGeneratorPromise=t().then(function(p){u.astGenerator=p,r&&u.languages.forEach(function(d,v){return r(p,v,d)})}),u.astGeneratorPromise}}]),u}(yt.PureComponent);return Ks(a,"astGenerator",null),Ks(a,"highlightInstance",gOe(null,{})),Ks(a,"astGeneratorPromise",null),Ks(a,"languages",new Map),Ks(a,"supportedLanguages",e.supportedLanguages||Object.keys(i||{})),Ks(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)}),Ks(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},DOe=["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"],IOe=AOe({loader:function(){return bOe(()=>import("./index-51a1a88f.js").then(t=>t.i),[]).then(function(t){return t.default||t})},noAsyncLoadingLanguages:!0,supportedLanguages:DOe}),POe={'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 OD({inline:e,children:t,...n}){const r=Da(),i=/language-(\w+)/.exec(n.className||"");return!e&&i?T.jsx(IOe,{...n,children:String(t).replace(/\n$/,""),style:POe,wrapLongLines:!0,language:i[1],PreTag:"div"}):e?T.jsx("code",{...n,style:{background:r.palette.divider,borderRadius:"4px",padding:"0.2em 0.4em",overflowX:"auto"},children:t}):T.jsx(Pt,{sx:{background:r.palette.divider,borderRadius:"4px",padding:r.spacing(1),overflowX:"auto"},children:T.jsx("code",{...n,style:{whiteSpace:"pre-wrap"},children:t})})}function $Oe(e){return T.jsx(Pt,{sx:{p:1,boxSizing:"border-box",bgcolor:t=>t.palette.mode==="light"?"#EEEEEE":"#212121",borderRadius:"4px",display:"flex"},children:e.children})}const FOe=(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 u7({element:e}){const t=e.url||URL.createObjectURL(new Blob([e.content])),n=`${e.display}-image`;return T.jsx($Oe,{children:T.jsx("img",{className:n,src:t,onClick:()=>{if(e.display==="inline"){const r=`${e.name}.png`;FOe(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 LN(e){return e.size==="small"?1:e.size==="medium"?2:e.size==="large"?4:2}function LOe({items:e}){return T.jsx(fbe,{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=LN(t),i=LN(t);return T.jsx(ybe,{cols:r,rows:i,children:T.jsx(u7,{element:t})},n)})})}function c7({element:e}){const[t,n]=R.useState(!1),[r,i]=R.useState(!1),[o,a]=R.useState("");R.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
|
-
\`\`\``),T.jsx(X_,{remarkPlugins:[TD],className:"markdown-body",components:{code({...l}){return T.jsx(OD,{...l})}},children:s})}function MOe({items:e}){return T.jsx(Vn,{spacing:1,children:e.map((t,n)=>T.jsxs(wu,{color:"info",icon:!1,children:[T.jsx(uve,{children:t.name}),T.jsx(c7,{element:t})]},n))})}function NOe(e){return kt("MuiLoadingButton",e)}const BOe=Et("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),Ms=BOe,jOe=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],zOe=e=>{const{loading:t,loadingPosition:n,classes:r}=e,i={root:["root",t&&"loading"],startIcon:[t&&`startIconLoading${ze(n)}`],endIcon:[t&&`endIconLoading${ze(n)}`],loadingIndicator:["loadingIndicator",t&&`loadingIndicator${ze(n)}`]},o=Rt(i,NOe,r);return z({},r,o)},UOe=e=>e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"&&e!=="classes",VOe=Ve(Jc,{shouldForwardProp:e=>UOe(e)||e==="classes",name:"MuiLoadingButton",slot:"Root",overridesResolver:(e,t)=>[t.root,t.startIconLoadingStart&&{[`& .${Ms.startIconLoadingStart}`]:t.startIconLoadingStart},t.endIconLoadingEnd&&{[`& .${Ms.endIconLoadingEnd}`]:t.endIconLoadingEnd}]})(({ownerState:e,theme:t})=>z({[`& .${Ms.startIconLoadingStart}, & .${Ms.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}),[`&.${Ms.loading}`]:{color:"transparent"}},e.loadingPosition==="start"&&e.fullWidth&&{[`& .${Ms.startIconLoadingStart}, & .${Ms.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginRight:-8}},e.loadingPosition==="end"&&e.fullWidth&&{[`& .${Ms.startIconLoadingStart}, & .${Ms.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginLeft:-8}})),WOe=Ve("div",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.loadingIndicator,t[`loadingIndicator${ze(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})),KOe=R.forwardRef(function(t,n){const r=Ot({props:t,name:"MuiLoadingButton"}),{children:i,disabled:o=!1,id:a,loading:s=!1,loadingIndicator:l,loadingPosition:u="center",variant:f="text"}=r,p=rt(r,jOe),d=dv(a),v=l??T.jsx(sV,{"aria-labelledby":d,color:"inherit",size:16}),g=z({},r,{disabled:o,loading:s,loadingIndicator:v,loadingPosition:u,variant:f}),y=zOe(g),x=s?T.jsx(WOe,{className:y.loadingIndicator,ownerState:g,children:v}):null;return T.jsxs(VOe,z({disabled:o||s,id:d,ref:n},p,{variant:f,classes:y,ownerState:g,children:[g.loadingPosition==="end"?i:x,g.loadingPosition==="end"?x:i]}))}),Z_=KOe;let HOe={data:""},qOe=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||HOe,GOe=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,QOe=/\/\*[^]*?\*\/| +/g,MN=/\n+/g,eu=(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"?eu(a,o):o+"{"+eu(a,o[1]=="k"?"":t)+"}":typeof a=="object"?r+=eu(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+=eu.p?eu.p(o,a):o+":"+a+";")}return n+(t&&i?t+"{"+i+"}":i)+r},Ns={},f7=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+f7(e[n]);return t}return e},YOe=(e,t,n,r,i)=>{let o=f7(e),a=Ns[o]||(Ns[o]=(l=>{let u=0,f=11;for(;u<l.length;)f=101*f+l.charCodeAt(u++)>>>0;return"go"+f})(o));if(!Ns[a]){let l=o!==e?e:(u=>{let f,p,d=[{}];for(;f=GOe.exec(u.replace(QOe,""));)f[4]?d.shift():f[3]?(p=f[3].replace(MN," ").trim(),d.unshift(d[0][p]=d[0][p]||{})):d[0][f[1]]=f[2].replace(MN," ").trim();return d[0]})(e);Ns[a]=eu(i?{["@keyframes "+a]:l}:l,n?"":"."+a)}let s=n&&Ns.g?Ns.g:null;return n&&(Ns.g=Ns[a]),((l,u,f,p)=>{p?u.data=u.data.replace(p,l):u.data.indexOf(l)===-1&&(u.data=f?l+u.data:u.data+l)})(Ns[a],t,r,s),a},XOe=(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?"":eu(s,""):s===!1?"":s}return r+i+(a??"")},"");function ex(e){let t=this||{},n=e.call?e(t.p):e;return YOe(n.unshift?n.raw?XOe(n,[].slice.call(arguments,1),t.p):n.reduce((r,i)=>Object.assign(r,i&&i.call?i(t.p):i),{}):n,qOe(t.target),t.g,t.o,t.k)}let d7,LT,MT;ex.bind({g:1});let sl=ex.bind({k:1});function JOe(e,t,n,r){eu.p=t,d7=e,LT=n,MT=r}function Fu(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:LT&<()},s),n.o=/ *go\d+/.test(l),s.className=ex.apply(n,r)+(l?" "+l:""),t&&(s.ref=a);let u=e;return e[0]&&(u=s.as||e,delete s.as),MT&&u[0]&&MT(s),d7(u,s)}return t?t(i):i}}var ZOe=e=>typeof e=="function",j1=(e,t)=>ZOe(e)?e(t):e,eAe=(()=>{let e=0;return()=>(++e).toString()})(),p7=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),tAe=20,Ob=new Map,nAe=1e3,NN=e=>{if(Ob.has(e))return;let t=setTimeout(()=>{Ob.delete(e),nf({type:4,toastId:e})},nAe);Ob.set(e,t)},rAe=e=>{let t=Ob.get(e);t&&clearTimeout(t)},NT=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,tAe)};case 1:return t.toast.id&&rAe(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)?NT(e,{type:1,toast:n}):NT(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?NN(r):e.toasts.forEach(o=>{NN(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}))}}},Ab=[],Db={toasts:[],pausedAt:void 0},nf=e=>{Db=NT(Db,e),Ab.forEach(t=>{t(Db)})},iAe={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},oAe=(e={})=>{let[t,n]=R.useState(Db);R.useEffect(()=>(Ab.push(n),()=>{let i=Ab.indexOf(n);i>-1&&Ab.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)||iAe[i.type],style:{...e.style,...(a=e[i.type])==null?void 0:a.style,...i.style}}});return{...t,toasts:r}},aAe=(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)||eAe()}),kv=e=>(t,n)=>{let r=aAe(t,e,n);return nf({type:2,toast:r}),r.id},jr=(e,t)=>kv("blank")(e,t);jr.error=kv("error");jr.success=kv("success");jr.loading=kv("loading");jr.custom=kv("custom");jr.dismiss=e=>{nf({type:3,toastId:e})};jr.remove=e=>nf({type:4,toastId:e});jr.promise=(e,t,n)=>{let r=jr.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(i=>(jr.success(j1(t.success,i),{id:r,...n,...n==null?void 0:n.success}),i)).catch(i=>{jr.error(j1(t.error,i),{id:r,...n,...n==null?void 0:n.error})}),e};var sAe=(e,t)=>{nf({type:1,toast:{id:e,height:t}})},lAe=()=>{nf({type:5,time:Date.now()})},uAe=e=>{let{toasts:t,pausedAt:n}=oAe(e);R.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&&jr.dismiss(s.id);return}return setTimeout(()=>jr.dismiss(s.id),l)});return()=>{a.forEach(s=>s&&clearTimeout(s))}},[t,n]);let r=R.useCallback(()=>{n&&nf({type:6,time:Date.now()})},[n]),i=R.useCallback((o,a)=>{let{reverseOrder:s=!1,gutter:l=8,defaultPosition:u}=a||{},f=t.filter(v=>(v.position||u)===(o.position||u)&&v.height),p=f.findIndex(v=>v.id===o.id),d=f.filter((v,g)=>g<p&&v.visible).length;return f.filter(v=>v.visible).slice(...s?[d+1]:[0,d]).reduce((v,g)=>v+(g.height||0)+l,0)},[t]);return{toasts:t,handlers:{updateHeight:sAe,startPause:lAe,endPause:r,calculateOffset:i}}},cAe=sl`
|
|
230
|
-
from {
|
|
231
|
-
transform: scale(0) rotate(45deg);
|
|
232
|
-
opacity: 0;
|
|
233
|
-
}
|
|
234
|
-
to {
|
|
235
|
-
transform: scale(1) rotate(45deg);
|
|
236
|
-
opacity: 1;
|
|
237
|
-
}`,fAe=sl`
|
|
238
|
-
from {
|
|
239
|
-
transform: scale(0);
|
|
240
|
-
opacity: 0;
|
|
241
|
-
}
|
|
242
|
-
to {
|
|
243
|
-
transform: scale(1);
|
|
244
|
-
opacity: 1;
|
|
245
|
-
}`,dAe=sl`
|
|
246
|
-
from {
|
|
247
|
-
transform: scale(0) rotate(90deg);
|
|
248
|
-
opacity: 0;
|
|
249
|
-
}
|
|
250
|
-
to {
|
|
251
|
-
transform: scale(1) rotate(90deg);
|
|
252
|
-
opacity: 1;
|
|
253
|
-
}`,pAe=Fu("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: ${cAe} 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: ${fAe} 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: ${dAe} 0.15s ease-out forwards;
|
|
283
|
-
animation-delay: 180ms;
|
|
284
|
-
transform: rotate(90deg);
|
|
285
|
-
}
|
|
286
|
-
`,hAe=sl`
|
|
287
|
-
from {
|
|
288
|
-
transform: rotate(0deg);
|
|
289
|
-
}
|
|
290
|
-
to {
|
|
291
|
-
transform: rotate(360deg);
|
|
292
|
-
}
|
|
293
|
-
`,mAe=Fu("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: ${hAe} 1s linear infinite;
|
|
302
|
-
`,gAe=sl`
|
|
303
|
-
from {
|
|
304
|
-
transform: scale(0) rotate(45deg);
|
|
305
|
-
opacity: 0;
|
|
306
|
-
}
|
|
307
|
-
to {
|
|
308
|
-
transform: scale(1) rotate(45deg);
|
|
309
|
-
opacity: 1;
|
|
310
|
-
}`,vAe=sl`
|
|
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
|
-
}`,yAe=Fu("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: ${gAe} 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: ${vAe} 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
|
-
`,bAe=Fu("div")`
|
|
352
|
-
position: absolute;
|
|
353
|
-
`,wAe=Fu("div")`
|
|
354
|
-
position: relative;
|
|
355
|
-
display: flex;
|
|
356
|
-
justify-content: center;
|
|
357
|
-
align-items: center;
|
|
358
|
-
min-width: 20px;
|
|
359
|
-
min-height: 20px;
|
|
360
|
-
`,_Ae=sl`
|
|
361
|
-
from {
|
|
362
|
-
transform: scale(0.6);
|
|
363
|
-
opacity: 0.4;
|
|
364
|
-
}
|
|
365
|
-
to {
|
|
366
|
-
transform: scale(1);
|
|
367
|
-
opacity: 1;
|
|
368
|
-
}`,xAe=Fu("div")`
|
|
369
|
-
position: relative;
|
|
370
|
-
transform: scale(0.6);
|
|
371
|
-
opacity: 0.4;
|
|
372
|
-
min-width: 20px;
|
|
373
|
-
animation: ${_Ae} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
374
|
-
forwards;
|
|
375
|
-
`,SAe=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?R.createElement(xAe,null,t):t:n==="blank"?null:R.createElement(wAe,null,R.createElement(mAe,{...r}),n!=="loading"&&R.createElement(bAe,null,n==="error"?R.createElement(pAe,{...r}):R.createElement(yAe,{...r})))},EAe=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
|
-
`,CAe=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
|
-
`,kAe="0%{opacity:0;} 100%{opacity:1;}",TAe="0%{opacity:1;} 100%{opacity:0;}",RAe=Fu("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
|
-
`,OAe=Fu("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
|
-
`,AAe=(e,t)=>{let n=e.includes("top")?1:-1,[r,i]=p7()?[kAe,TAe]:[EAe(n),CAe(n)];return{animation:t?`${sl(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${sl(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},DAe=R.memo(({toast:e,position:t,style:n,children:r})=>{let i=e.height?AAe(e.position||t||"top-center",e.visible):{opacity:0},o=R.createElement(SAe,{toast:e}),a=R.createElement(OAe,{...e.ariaProps},j1(e.message,e));return R.createElement(RAe,{className:e.className,style:{...i,...n,...e.style}},typeof r=="function"?r({icon:o,message:a}):R.createElement(R.Fragment,null,o,a))});JOe(R.createElement);var IAe=({id:e,className:t,style:n,onHeightUpdate:r,children:i})=>{let o=R.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 R.createElement("div",{ref:o,className:t,style:n},i)},PAe=(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:p7()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...i}},$Ae=ex`
|
|
401
|
-
z-index: 9999;
|
|
402
|
-
> * {
|
|
403
|
-
pointer-events: auto;
|
|
404
|
-
}
|
|
405
|
-
`,D0=16,FAe=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:i,containerStyle:o,containerClassName:a})=>{let{toasts:s,handlers:l}=uAe(n);return R.createElement("div",{style:{position:"fixed",zIndex:9999,top:D0,left:D0,right:D0,bottom:D0,pointerEvents:"none",...o},className:a,onMouseEnter:l.startPause,onMouseLeave:l.endPause},s.map(u=>{let f=u.position||t,p=l.calculateOffset(u,{reverseOrder:e,gutter:r,defaultPosition:t}),d=PAe(f,p);return R.createElement(IAe,{id:u.id,key:u.id,onHeightUpdate:l.updateHeight,className:u.visible?$Ae:"",style:d},u.type==="custom"?j1(u.message,u):i?i(u):R.createElement(DAe,{toast:u,position:f}))}))},h7=jr;function LAe({action:e}){const t=Ft(_v),n=Ft(Pp),r=R.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&&jr.error(s.message)}},[n]),o=`action-${e.name.trim().toLowerCase().replaceAll(" ","-")}`,a=T.jsx(Z_,{id:o,onClick:r,disabled:t,children:e.label||e.name});return e.description?T.jsx(fs,{title:e.description,placement:"top",children:a}):a}function MAe({actions:e}){return T.jsx(Vn,{direction:"row",spacing:1,children:e.map(t=>T.jsx(LAe,{action:t},t.name))})}function m7({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 T.jsx("iframe",{className:t,src:n,style:{border:"none"},width:"100%",height:"100%"})}function NAe({items:e}){return T.jsx(Vn,{spacing:1,children:e.map((t,n)=>T.jsx("div",{style:{maxWidth:"600px",height:"400px"},children:T.jsx(m7,{element:t})},n))})}function BAe({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 T.jsxs(Vn,{gap:1,mt:1,children:[(r=n.image)!=null&&r.length?T.jsx(LOe,{items:n.image}):null,(i=n.text)!=null&&i.length?T.jsx(MOe,{items:n.text}):null,(o=n.pdf)!=null&&o.length?T.jsx(NAe,{items:n.pdf}):null,t.length?T.jsx(MAe,{actions:t}):null]})}function jAe({id:e,elements:t,actions:n,content:r,language:i}){const o=t.map(p=>p.name);o.sort((p,d)=>d.length-p.length);const a=o.length?new RegExp(`(${o.join("|")})`,"g"):void 0,s=n.filter(p=>p.forId?p.forId===e:!0);let l=r?r.trim():"";const u=t.filter(p=>p.forId===e&&p.display==="inline"),f=[];return a&&(l=l.replaceAll(a,p=>{const d=t.find(x=>{const b=x.name===p,w=x.forId?x.forId===e:!0;return b&&w}),v=!!d,g=(d==null?void 0:d.forId)&&d.forId!==e,y=(d==null?void 0:d.display)==="inline";return!v||g?p:y?(u.indexOf(d)===-1&&u.push(d),p):(f.push(d),`[${p}](${p.replaceAll(" ","_")})`)})),i&&(l=`\`\`\`${i}
|
|
406
|
-
${l}
|
|
407
|
-
\`\`\``),{preparedContent:l,inlinedElements:u,refElements:f,scopedActions:s}}const zAe=R.memo(function({id:t,content:n,elements:r,actions:i,language:o,authorIsUser:a}){const{preparedContent:s,inlinedElements:l,refElements:u,scopedActions:f}=jAe({id:t,content:n,language:o,elements:r,actions:i});return s?T.jsxs(Vn,{width:"100%",children:[T.jsx(bn,{sx:{width:"100%",minHeight:"20px",fontSize:"1rem",lineHeight:"1.5rem",fontFamily:"Inter",fontWeight:a?500:300},component:"div",children:T.jsx(X_,{remarkPlugins:[TD],className:"markdown-body",components:{a({children:p,...d}){const v=p[0],g=u.find(y=>y.name===v);return g?T.jsx(GRe,{element:g}):T.jsx(iD,{...d,target:"_blank",children:p})},code({...p}){return T.jsx(OD,{...p})}},children:s})}),T.jsx(BAe,{elements:l,actions:f})]}):null});function Lp(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(f){try{u(r.next(f))}catch(p){a(p)}}function l(f){try{u(r.throw(f))}catch(p){a(p)}}function u(f){f.done?o(f.value):i(f.value).then(s,l)}u((r=r.apply(e,t||[])).next())})}function Mp(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(f){return l([u,f])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(n=0)),n;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(f){u=[6,f],i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function BN(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 jN(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 UAe=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 Tv(e,t){var n=VAe(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 VAe(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),i=UAe.get(r);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}var WAe=[".DS_Store","Thumbs.db"];function KAe(e){return Lp(this,void 0,void 0,function(){return Mp(this,function(t){return z1(e)&&HAe(e.dataTransfer)?[2,YAe(e.dataTransfer,e.type)]:qAe(e)?[2,GAe(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,QAe(e)]:[2,[]]})})}function HAe(e){return z1(e)}function qAe(e){return z1(e)&&z1(e.target)}function z1(e){return typeof e=="object"&&e!==null}function GAe(e){return BT(e.target.files).map(function(t){return Tv(t)})}function QAe(e){return Lp(this,void 0,void 0,function(){var t;return Mp(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 Tv(r)})]}})})}function YAe(e,t){return Lp(this,void 0,void 0,function(){var n,r;return Mp(this,function(i){switch(i.label){case 0:return e.items?(n=BT(e.items).filter(function(o){return o.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(XAe))]):[3,2];case 1:return r=i.sent(),[2,zN(g7(r))];case 2:return[2,zN(BT(e.files).map(function(o){return Tv(o)}))]}})})}function zN(e){return e.filter(function(t){return WAe.indexOf(t.name)===-1})}function BT(e){if(e===null)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function XAe(e){if(typeof e.webkitGetAsEntry!="function")return UN(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?v7(t):UN(e)}function g7(e){return e.reduce(function(t,n){return jN(jN([],BN(t),!1),BN(Array.isArray(n)?g7(n):[n]),!1)},[])}function UN(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=Tv(t);return Promise.resolve(n)}function JAe(e){return Lp(this,void 0,void 0,function(){return Mp(this,function(t){return[2,e.isDirectory?v7(e):ZAe(e)]})})}function v7(e){var t=e.createReader();return new Promise(function(n,r){var i=[];function o(){var a=this;t.readEntries(function(s){return Lp(a,void 0,void 0,function(){var l,u,f;return Mp(this,function(p){switch(p.label){case 0:if(s.length)return[3,5];p.label=1;case 1:return p.trys.push([1,3,,4]),[4,Promise.all(i)];case 2:return l=p.sent(),n(l),[3,4];case 3:return u=p.sent(),r(u),[3,4];case 4:return[3,6];case 5:f=Promise.all(s.map(JAe)),i.push(f),o(),p.label=6;case 6:return[2]}})})},function(s){r(s)})}o()})}function ZAe(e){return Lp(this,void 0,void 0,function(){return Mp(this,function(t){return[2,new Promise(function(n,r){e.file(function(i){var o=Tv(i,e.fullPath);n(o)},function(i){r(i)})})]})})}var eDe=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 VN(e){return rDe(e)||nDe(e)||b7(e)||tDe()}function tDe(){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 nDe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rDe(e){if(Array.isArray(e))return jT(e)}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 KN(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){y7(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 y7(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jg(e,t){return aDe(e)||oDe(e,t)||b7(e,t)||iDe()}function iDe(){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 b7(e,t){if(e){if(typeof e=="string")return jT(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 jT(e,t)}}function jT(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 oDe(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 aDe(e){if(Array.isArray(e))return e}var sDe="file-invalid-type",lDe="file-too-large",uDe="file-too-small",cDe="too-many-files",fDe=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:sDe,message:"File type must be ".concat(n)}},HN=function(t){return{code:lDe,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},qN=function(t){return{code:uDe,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},dDe={code:cDe,message:"Too many files"};function w7(e,t){var n=e.type==="application/x-moz-file"||eDe(e,t);return[n,n?null:fDe(t)]}function _7(e,t,n){if(vc(e.size))if(vc(t)&&vc(n)){if(e.size>n)return[!1,HN(n)];if(e.size<t)return[!1,qN(t)]}else{if(vc(t)&&e.size<t)return[!1,qN(t)];if(vc(n)&&e.size>n)return[!1,HN(n)]}return[!0,null]}function vc(e){return e!=null}function pDe(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,o=e.multiple,a=e.maxFiles,s=e.validator;return!o&&t.length>1||o&&a>=1&&t.length>a?!1:t.every(function(l){var u=w7(l,n),f=jg(u,1),p=f[0],d=_7(l,r,i),v=jg(d,1),g=v[0],y=s?s(l):null;return p&&g&&!y})}function U1(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function I0(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 GN(e){e.preventDefault()}function hDe(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function mDe(e){return e.indexOf("Edge/")!==-1}function gDe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return hDe(e)||mDe(e)}function za(){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!U1(r)&&s&&s.apply(void 0,[r].concat(o)),U1(r)})}}function vDe(){return"showOpenFilePicker"in window}function yDe(e){if(vc(e)){var t=Object.entries(e).filter(function(n){var r=jg(n,2),i=r[0],o=r[1],a=!0;return x7(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(S7))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(n,r){var i=jg(r,2),o=i[0],a=i[1];return KN(KN({},n),{},y7({},o,a))},{});return[{description:"Files",accept:t}]}return e}function bDe(e){if(vc(e))return Object.entries(e).reduce(function(t,n){var r=jg(n,2),i=r[0],o=r[1];return[].concat(VN(t),[i],VN(o))},[]).filter(function(t){return x7(t)||S7(t)}).join(",")}function wDe(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function _De(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function x7(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function S7(e){return/^.*\.[\w]+$/.test(e)}var xDe=["children"],SDe=["open"],EDe=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],CDe=["refKey","onChange","onClick"];function kDe(e){return ODe(e)||RDe(e)||E7(e)||TDe()}function TDe(){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 RDe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ODe(e){if(Array.isArray(e))return zT(e)}function XE(e,t){return IDe(e)||DDe(e,t)||E7(e,t)||ADe()}function ADe(){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 E7(e,t){if(e){if(typeof e=="string")return zT(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 zT(e,t)}}function zT(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 DDe(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 IDe(e){if(Array.isArray(e))return e}function QN(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 Zn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QN(Object(n),!0).forEach(function(r){UT(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function UT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V1(e,t){if(e==null)return{};var n=PDe(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 PDe(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 AD=R.forwardRef(function(e,t){var n=e.children,r=V1(e,xDe),i=k7(r),o=i.open,a=V1(i,SDe);return R.useImperativeHandle(t,function(){return{open:o}},[o]),yt.createElement(R.Fragment,null,n(Zn(Zn({},a),{},{open:o})))});AD.displayName="Dropzone";var C7={disabled:!1,getFilesFromEvent:KAe,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};AD.defaultProps=C7;AD.propTypes={children:ft.func,accept:ft.objectOf(ft.arrayOf(ft.string)),multiple:ft.bool,preventDropOnDocument:ft.bool,noClick:ft.bool,noKeyboard:ft.bool,noDrag:ft.bool,noDragEventsBubbling:ft.bool,minSize:ft.number,maxSize:ft.number,maxFiles:ft.number,disabled:ft.bool,getFilesFromEvent:ft.func,onFileDialogCancel:ft.func,onFileDialogOpen:ft.func,useFsAccessApi:ft.bool,autoFocus:ft.bool,onDragEnter:ft.func,onDragLeave:ft.func,onDragOver:ft.func,onDrop:ft.func,onDropAccepted:ft.func,onDropRejected:ft.func,onError:ft.func,validator:ft.func};var VT={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function k7(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Zn(Zn({},C7),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,o=t.maxSize,a=t.minSize,s=t.multiple,l=t.maxFiles,u=t.onDragEnter,f=t.onDragLeave,p=t.onDragOver,d=t.onDrop,v=t.onDropAccepted,g=t.onDropRejected,y=t.onFileDialogCancel,x=t.onFileDialogOpen,b=t.useFsAccessApi,w=t.autoFocus,S=t.preventDropOnDocument,C=t.noClick,k=t.noKeyboard,D=t.noDrag,P=t.noDragEventsBubbling,B=t.onError,V=t.validator,U=R.useMemo(function(){return bDe(n)},[n]),W=R.useMemo(function(){return yDe(n)},[n]),se=R.useMemo(function(){return typeof x=="function"?x:YN},[x]),ne=R.useMemo(function(){return typeof y=="function"?y:YN},[y]),re=R.useRef(null),Z=R.useRef(null),F=R.useReducer($De,VT),te=XE(F,2),Y=te[0],ee=te[1],G=Y.isFocused,L=Y.isFileDialogActive,A=R.useRef(typeof window<"u"&&window.isSecureContext&&b&&vDe()),ie=function(){!A.current&&L&&setTimeout(function(){if(Z.current){var H=Z.current.files;H.length||(ee({type:"closeDialog"}),ne())}},300)};R.useEffect(function(){return window.addEventListener("focus",ie,!1),function(){window.removeEventListener("focus",ie,!1)}},[Z,L,ne,A]);var ae=R.useRef([]),ce=function(H){re.current&&re.current.contains(H.target)||(H.preventDefault(),ae.current=[])};R.useEffect(function(){return S&&(document.addEventListener("dragover",GN,!1),document.addEventListener("drop",ce,!1)),function(){S&&(document.removeEventListener("dragover",GN),document.removeEventListener("drop",ce))}},[re,S]),R.useEffect(function(){return!r&&w&&re.current&&re.current.focus(),function(){}},[re,w,r]);var oe=R.useCallback(function(j){B?B(j):console.error(j)},[B]),xe=R.useCallback(function(j){j.preventDefault(),j.persist(),me(j),ae.current=[].concat(kDe(ae.current),[j.target]),I0(j)&&Promise.resolve(i(j)).then(function(H){if(!(U1(j)&&!P)){var he=H.length,Q=he>0&&pDe({files:H,accept:U,minSize:a,maxSize:o,multiple:s,maxFiles:l,validator:V}),fe=he>0&&!Q;ee({isDragAccept:Q,isDragReject:fe,isDragActive:!0,type:"setDraggedFiles"}),u&&u(j)}}).catch(function(H){return oe(H)})},[i,u,oe,P,U,a,o,s,l,V]),ke=R.useCallback(function(j){j.preventDefault(),j.persist(),me(j);var H=I0(j);if(H&&j.dataTransfer)try{j.dataTransfer.dropEffect="copy"}catch{}return H&&p&&p(j),!1},[p,P]),Ee=R.useCallback(function(j){j.preventDefault(),j.persist(),me(j);var H=ae.current.filter(function(Q){return re.current&&re.current.contains(Q)}),he=H.indexOf(j.target);he!==-1&&H.splice(he,1),ae.current=H,!(H.length>0)&&(ee({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),I0(j)&&f&&f(j))},[re,f,P]),Fe=R.useCallback(function(j,H){var he=[],Q=[];j.forEach(function(fe){var le=w7(fe,U),Re=XE(le,2),$e=Re[0],Pe=Re[1],mt=_7(fe,a,o),lt=XE(mt,2),pe=lt[0],ge=lt[1],Se=V?V(fe):null;if($e&&pe&&!Se)he.push(fe);else{var We=[Pe,ge];Se&&(We=We.concat(Se)),Q.push({file:fe,errors:We.filter(function(Ke){return Ke})})}}),(!s&&he.length>1||s&&l>=1&&he.length>l)&&(he.forEach(function(fe){Q.push({file:fe,errors:[dDe]})}),he.splice(0)),ee({acceptedFiles:he,fileRejections:Q,type:"setFiles"}),d&&d(he,Q,H),Q.length>0&&g&&g(Q,H),he.length>0&&v&&v(he,H)},[ee,s,U,a,o,l,d,v,g,V]),Le=R.useCallback(function(j){j.preventDefault(),j.persist(),me(j),ae.current=[],I0(j)&&Promise.resolve(i(j)).then(function(H){U1(j)&&!P||Fe(H,j)}).catch(function(H){return oe(H)}),ee({type:"reset"})},[i,Fe,oe,P]),Ue=R.useCallback(function(){if(A.current){ee({type:"openDialog"}),se();var j={multiple:s,types:W};window.showOpenFilePicker(j).then(function(H){return i(H)}).then(function(H){Fe(H,null),ee({type:"closeDialog"})}).catch(function(H){wDe(H)?(ne(H),ee({type:"closeDialog"})):_De(H)?(A.current=!1,Z.current?(Z.current.value=null,Z.current.click()):oe(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."))):oe(H)});return}Z.current&&(ee({type:"openDialog"}),se(),Z.current.value=null,Z.current.click())},[ee,se,ne,b,Fe,oe,W,s]),He=R.useCallback(function(j){!re.current||!re.current.isEqualNode(j.target)||(j.key===" "||j.key==="Enter"||j.keyCode===32||j.keyCode===13)&&(j.preventDefault(),Ue())},[re,Ue]),Qe=R.useCallback(function(){ee({type:"focus"})},[]),qe=R.useCallback(function(){ee({type:"blur"})},[]),ut=R.useCallback(function(){C||(gDe()?setTimeout(Ue,0):Ue())},[C,Ue]),et=function(H){return r?null:H},it=function(H){return k?null:et(H)},wt=function(H){return D?null:et(H)},me=function(H){P&&H.stopPropagation()},Te=R.useMemo(function(){return function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},H=j.refKey,he=H===void 0?"ref":H,Q=j.role,fe=j.onKeyDown,le=j.onFocus,Re=j.onBlur,$e=j.onClick,Pe=j.onDragEnter,mt=j.onDragOver,lt=j.onDragLeave,pe=j.onDrop,ge=V1(j,EDe);return Zn(Zn(UT({onKeyDown:it(za(fe,He)),onFocus:it(za(le,Qe)),onBlur:it(za(Re,qe)),onClick:et(za($e,ut)),onDragEnter:wt(za(Pe,xe)),onDragOver:wt(za(mt,ke)),onDragLeave:wt(za(lt,Ee)),onDrop:wt(za(pe,Le)),role:typeof Q=="string"&&Q!==""?Q:"presentation"},he,re),!r&&!k?{tabIndex:0}:{}),ge)}},[re,He,Qe,qe,ut,xe,ke,Ee,Le,k,D,r]),Ce=R.useCallback(function(j){j.stopPropagation()},[]),Oe=R.useMemo(function(){return function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},H=j.refKey,he=H===void 0?"ref":H,Q=j.onChange,fe=j.onClick,le=V1(j,CDe),Re=UT({accept:U,multiple:s,type:"file",style:{display:"none"},onChange:et(za(Q,Le)),onClick:et(za(fe,Ce)),tabIndex:-1},he,Z);return Zn(Zn({},Re),le)}},[Z,n,s,Le,r]);return Zn(Zn({},Y),{},{isFocused:G&&!r,getRootProps:Te,getInputProps:Oe,rootRef:re,inputRef:Z,open:et(Ue)})}function $De(e,t){switch(t.type){case"focus":return Zn(Zn({},e),{},{isFocused:!0});case"blur":return Zn(Zn({},e),{},{isFocused:!1});case"openDialog":return Zn(Zn({},VT),{},{isFileDialogActive:!0});case"closeDialog":return Zn(Zn({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Zn(Zn({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Zn(Zn({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Zn({},VT);default:return e}}function YN(){}var DD={},FDe=Wn;Object.defineProperty(DD,"__esModule",{value:!0});var T7=DD.default=void 0,LDe=FDe(Kn()),MDe=T,NDe=(0,LDe.default)((0,MDe.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");T7=DD.default=NDe;function BDe({askUser:e}){const[t,n]=R.useState(!1),r=R.useCallback((u,f)=>{if(f.length>0){jr.error(f[0].errors[0].message);return}if(!u.length)return;n(!0);const p=u.map(d=>new Promise((v,g)=>{const y=new FileReader;y.onload=function(x){var S;const b=(S=x.target)==null?void 0:S.result,w={path:d.path,name:d.name,size:d.size,type:d.type,content:b};v(w)},y.onerror=function(){y.error&&g(y.error.message)},y.readAsArrayBuffer(d)}));Promise.all(p).then(d=>{e==null||e.callback(d)}).catch(d=>{jr.error(d),n(!1)})},[e]);if(!e.spec.accept||!e.spec.max_size_mb)return null;let i={};const o=e.spec.accept;Array.isArray(o)?o.forEach(u=>{typeof u=="string"&&(i[u]=[])}):typeof o=="object"&&(i=o);const a=e.spec.max_size_mb,{getRootProps:s,getInputProps:l}=k7({onDrop:r,maxFiles:e.spec.max_files||1,accept:i,maxSize:a*1e6});return T.jsxs(Vn,{sx:{width:"100%",borderRadius:1,backgroundColor:u=>u.palette.divider,boxSizing:"border-box"},direction:"row",alignItems:"center",padding:2,...s({className:"dropzone"}),children:[T.jsx("input",{...l()}),T.jsx(T7,{fontSize:"large"}),T.jsxs(Vn,{ml:2,children:[T.jsx(bn,{color:"text.primary",children:"Drag and drop files here"}),T.jsxs(bn,{variant:"caption",color:"text.secondary",children:["Limit ",a,"mb."]})]}),T.jsx(Z_,{id:t?"upload-button-loading":"upload-button",loading:t,sx:{ml:"auto !important"},variant:"contained",children:"Browse Files"})]})}function jDe(){const e=Ft(H_);return(e==null?void 0:e.spec.type)!=="file"?null:T.jsx(BDe,{askUser:e})}function zDe({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 T.jsx(bn,{lineHeight:"24px",color:"#9E9E9E",fontSize:"11px",children:n})}const pi=ni({key:"ProjectSettings",default:void 0}),UDe=["#066DEB","#04857C","#FF9900","#F34F3C","#E86004","#2D8C26","#5E5BFE","#A132FE"],VDe=["#67A0F8","#25B1A7","#FFC266","#F09691","#FA7F54","#59C654","#9695F8","#B889F8"];function WDe(e){return e.split("").reduce((n,r)=>n=r.charCodeAt(0)+(n<<6)+(n<<16)-n,0)}function KDe(){const e=Ft(pi),{theme:t}=Ft(hl),n=t==="dark"?VDe:UDe;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(WDe(r))%n.length;return n[a]}}function HDe({element:e,author:t}){const n=e.url||URL.createObjectURL(new Blob([e.content])),r="message-avatar";return T.jsx(fs,{title:t,children:T.jsx("span",{className:r,children:T.jsx(ET,{sx:{width:38,height:38,mt:"-4px"},src:n})})})}const WT=70;function qDe({message:e,show:t}){const n=KDe(),o=Ft(Cv).filter(u=>u.type==="avatar").find(u=>u.name===e.author),a=t&&o&&T.jsx(HDe,{element:o,author:e.author}),s=t&&T.jsx(fs,{title:e.author,children:T.jsx(bn,{noWrap:!0,lineHeight:"24px",sx:{mb:"-5px",width:WT,fontSize:"12px",fontWeight:500,color:n(e.author,e.authorIsUser,e.isError)},children:e.author})}),l=a||s;return T.jsxs(T.Fragment,{children:[T.jsxs(Pt,{width:WT,pr:2,children:[l,T.jsx(zDe,{timestamp:e.createdAt})]}),!!e.indent&&T.jsx(Pt,{width:"2px",borderRadius:"13px",bgcolor:n(e.author,e.authorIsUser),mr:2})]})}var ID={},GDe=Wn;Object.defineProperty(ID,"__esModule",{value:!0});var R7=ID.default=void 0,QDe=GDe(Kn()),YDe=T,XDe=(0,QDe.default)((0,YDe.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");R7=ID.default=XDe;var KT=function(e,t){return KT=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])},KT(e,t)};function JDe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");KT(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var JE="Invariant Violation",XN=Object.setPrototypeOf,ZDe=XN===void 0?function(e,t){return e.__proto__=t,e}:XN,mn=function(e){JDe(t,e);function t(n){n===void 0&&(n=JE);var r=e.call(this,typeof n=="number"?JE+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=JE,ZDe(r,t.prototype),r}return t}(Error);function Ze(e,t){if(!e)throw new mn(t)}var O7=["debug","log","warn","error","silent"],eIe=O7.indexOf("log");function P0(e){return function(){if(O7.indexOf(e)>=eIe){var t=console[e]||console.log;return t.apply(console,arguments)}}}(function(e){e.debug=P0("debug"),e.log=P0("log"),e.warn=P0("warn"),e.error=P0("error")})(Ze||(Ze={}));function No(e){try{return e()}catch{}}const JN=No(function(){return globalThis})||No(function(){return window})||No(function(){return self})||No(function(){return global})||No(function(){return No.constructor("return this")()});var ZN="__",eB=[ZN,ZN].join("DEV");function tIe(){try{return!!__DEV__}catch{return Object.defineProperty(JN,eB,{value:No(function(){return"production"})!=="production",enumerable:!1,configurable:!0,writable:!0}),JN[eB]}}const ZE=tIe();function Gl(e){try{return e()}catch{}}var HT=Gl(function(){return globalThis})||Gl(function(){return window})||Gl(function(){return self})||Gl(function(){return global})||Gl(function(){return Gl.constructor("return this")()}),qT=!1;function nIe(){HT&&!Gl(function(){return"production"})&&!Gl(function(){return process})&&(Object.defineProperty(HT,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),qT=!0)}nIe();function tB(){qT&&(delete HT.process,qT=!1)}function Ib(e,t){if(!!!e)throw new Error(t)}function rIe(e){return typeof e=="object"&&e!==null}function iIe(e,t){if(!!!e)throw new Error(t??"Unexpected invariant triggered.")}const oIe=/\r\n|[\n\r]/g;function GT(e,t){let n=0,r=1;for(const i of e.body.matchAll(oIe)){if(typeof i.index=="number"||iIe(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function aIe(e){return A7(e.source,GT(e.source,e.start))}function A7(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=t.line===1?n:0,l=t.column+s,u=`${e.name}:${a}:${l}
|
|
412
|
-
`,f=r.split(/\r\n|[\n\r]/g),p=f[i];if(p.length>120){const d=Math.floor(l/80),v=l%80,g=[];for(let y=0;y<p.length;y+=80)g.push(p.slice(y,y+80));return u+nB([[`${a} |`,g[0]],...g.slice(1,d+1).map(y=>["|",y]),["|","^".padStart(v)],["|",g[d+1]]])}return u+nB([[`${a-1} |`,f[i-1]],[`${a} |`,p],["|","^".padStart(l)],[`${a+1} |`,f[i+1]]])}function nB(e){const t=e.filter(([r,i])=>i!==void 0),n=Math.max(...t.map(([r])=>r.length));return t.map(([r,i])=>r.padStart(n)+(i?" "+i:"")).join(`
|
|
413
|
-
`)}function sIe(e){const t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}class PD extends Error{constructor(t,...n){var r,i,o;const{nodes:a,source:s,positions:l,path:u,originalError:f,extensions:p}=sIe(n);super(t),this.name="GraphQLError",this.path=u??void 0,this.originalError=f??void 0,this.nodes=rB(Array.isArray(a)?a:a?[a]:void 0);const d=rB((r=this.nodes)===null||r===void 0?void 0:r.map(g=>g.loc).filter(g=>g!=null));this.source=s??(d==null||(i=d[0])===null||i===void 0?void 0:i.source),this.positions=l??(d==null?void 0:d.map(g=>g.start)),this.locations=l&&s?l.map(g=>GT(s,g)):d==null?void 0:d.map(g=>GT(g.source,g.start));const v=rIe(f==null?void 0:f.extensions)?f==null?void 0:f.extensions:void 0;this.extensions=(o=p??v)!==null&&o!==void 0?o:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),f!=null&&f.stack?Object.defineProperty(this,"stack",{value:f.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,PD):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(const n of this.nodes)n.loc&&(t+=`
|
|
414
|
-
|
|
415
|
-
`+aIe(n.loc));else if(this.source&&this.locations)for(const n of this.locations)t+=`
|
|
416
|
-
|
|
417
|
-
`+A7(this.source,n);return t}toJSON(){const t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}}function rB(e){return e===void 0||e.length===0?void 0:e}function Br(e,t,n){return new PD(`Syntax Error: ${n}`,{source:e,positions:[t]})}class lIe{constructor(t,n,r){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class D7{constructor(t,n,r,i,o,a){this.kind=t,this.start=n,this.end=r,this.line=i,this.column=o,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const I7={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},uIe=new Set(Object.keys(I7));function iB(e){const t=e==null?void 0:e.kind;return typeof t=="string"&&uIe.has(t)}var Ed;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(Ed||(Ed={}));var QT;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(QT||(QT={}));var gt;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(gt||(gt={}));function YT(e){return e===9||e===32}function zg(e){return e>=48&&e<=57}function P7(e){return e>=97&&e<=122||e>=65&&e<=90}function $7(e){return P7(e)||e===95}function cIe(e){return P7(e)||zg(e)||e===95}function fIe(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let a=0;a<e.length;++a){var o;const s=e[a],l=dIe(s);l!==s.length&&(r=(o=r)!==null&&o!==void 0?o:a,i=a,a!==0&&l<n&&(n=l))}return e.map((a,s)=>s===0?a:a.slice(n)).slice((t=r)!==null&&t!==void 0?t:0,i+1)}function dIe(e){let t=0;for(;t<e.length&&YT(e.charCodeAt(t));)++t;return t}function pIe(e,t){const n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),i=r.length===1,o=r.length>1&&r.slice(1).every(v=>v.length===0||YT(v.charCodeAt(0))),a=n.endsWith('\\"""'),s=e.endsWith('"')&&!a,l=e.endsWith("\\"),u=s||l,f=!(t!=null&&t.minimize)&&(!i||e.length>70||u||o||a);let p="";const d=i&&YT(e.charCodeAt(0));return(f&&!d||o)&&(p+=`
|
|
418
|
-
`),p+=n,(f||u)&&(p+=`
|
|
419
|
-
`),'"""'+p+'"""'}var je;(function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(je||(je={}));class hIe{constructor(t){const n=new D7(je.SOF,0,0,0,0);this.source=t,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==je.EOF)do if(t.next)t=t.next;else{const n=gIe(this,t.end);t.next=n,n.prev=t,t=n}while(t.kind===je.COMMENT);return t}}function mIe(e){return e===je.BANG||e===je.DOLLAR||e===je.AMP||e===je.PAREN_L||e===je.PAREN_R||e===je.SPREAD||e===je.COLON||e===je.EQUALS||e===je.AT||e===je.BRACKET_L||e===je.BRACKET_R||e===je.BRACE_L||e===je.PIPE||e===je.BRACE_R}function Np(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function tx(e,t){return F7(e.charCodeAt(t))&&L7(e.charCodeAt(t+1))}function F7(e){return e>=55296&&e<=56319}function L7(e){return e>=56320&&e<=57343}function Vc(e,t){const n=e.source.body.codePointAt(t);if(n===void 0)return je.EOF;if(n>=32&&n<=126){const r=String.fromCodePoint(n);return r==='"'?`'"'`:`"${r}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function _r(e,t,n,r,i){const o=e.line,a=1+n-e.lineStart;return new D7(t,n,r,o,a,i)}function gIe(e,t){const n=e.source.body,r=n.length;let i=t;for(;i<r;){const o=n.charCodeAt(i);switch(o){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:n.charCodeAt(i+1)===10?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return vIe(e,i);case 33:return _r(e,je.BANG,i,i+1);case 36:return _r(e,je.DOLLAR,i,i+1);case 38:return _r(e,je.AMP,i,i+1);case 40:return _r(e,je.PAREN_L,i,i+1);case 41:return _r(e,je.PAREN_R,i,i+1);case 46:if(n.charCodeAt(i+1)===46&&n.charCodeAt(i+2)===46)return _r(e,je.SPREAD,i,i+3);break;case 58:return _r(e,je.COLON,i,i+1);case 61:return _r(e,je.EQUALS,i,i+1);case 64:return _r(e,je.AT,i,i+1);case 91:return _r(e,je.BRACKET_L,i,i+1);case 93:return _r(e,je.BRACKET_R,i,i+1);case 123:return _r(e,je.BRACE_L,i,i+1);case 124:return _r(e,je.PIPE,i,i+1);case 125:return _r(e,je.BRACE_R,i,i+1);case 34:return n.charCodeAt(i+1)===34&&n.charCodeAt(i+2)===34?SIe(e,i):bIe(e,i)}if(zg(o)||o===45)return yIe(e,i,o);if($7(o))return EIe(e,i);throw Br(e.source,i,o===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:Np(o)||tx(n,i)?`Unexpected character: ${Vc(e,i)}.`:`Invalid character: ${Vc(e,i)}.`)}return _r(e,je.EOF,r,r)}function vIe(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const o=n.charCodeAt(i);if(o===10||o===13)break;if(Np(o))++i;else if(tx(n,i))i+=2;else break}return _r(e,je.COMMENT,t,i,n.slice(t+1,i))}function yIe(e,t,n){const r=e.source.body;let i=t,o=n,a=!1;if(o===45&&(o=r.charCodeAt(++i)),o===48){if(o=r.charCodeAt(++i),zg(o))throw Br(e.source,i,`Invalid number, unexpected digit after 0: ${Vc(e,i)}.`)}else i=eC(e,i,o),o=r.charCodeAt(i);if(o===46&&(a=!0,o=r.charCodeAt(++i),i=eC(e,i,o),o=r.charCodeAt(i)),(o===69||o===101)&&(a=!0,o=r.charCodeAt(++i),(o===43||o===45)&&(o=r.charCodeAt(++i)),i=eC(e,i,o),o=r.charCodeAt(i)),o===46||$7(o))throw Br(e.source,i,`Invalid number, expected digit but got: ${Vc(e,i)}.`);return _r(e,a?je.FLOAT:je.INT,t,i,r.slice(t,i))}function eC(e,t,n){if(!zg(n))throw Br(e.source,t,`Invalid number, expected digit but got: ${Vc(e,t)}.`);const r=e.source.body;let i=t+1;for(;zg(r.charCodeAt(i));)++i;return i}function bIe(e,t){const n=e.source.body,r=n.length;let i=t+1,o=i,a="";for(;i<r;){const s=n.charCodeAt(i);if(s===34)return a+=n.slice(o,i),_r(e,je.STRING,t,i+1,a);if(s===92){a+=n.slice(o,i);const l=n.charCodeAt(i+1)===117?n.charCodeAt(i+2)===123?wIe(e,i):_Ie(e,i):xIe(e,i);a+=l.value,i+=l.size,o=i;continue}if(s===10||s===13)break;if(Np(s))++i;else if(tx(n,i))i+=2;else throw Br(e.source,i,`Invalid character within String: ${Vc(e,i)}.`)}throw Br(e.source,i,"Unterminated string.")}function wIe(e,t){const n=e.source.body;let r=0,i=3;for(;i<12;){const o=n.charCodeAt(t+i++);if(o===125){if(i<5||!Np(r))break;return{value:String.fromCodePoint(r),size:i}}if(r=r<<4|Im(o),r<0)break}throw Br(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+i)}".`)}function _Ie(e,t){const n=e.source.body,r=oB(n,t+2);if(Np(r))return{value:String.fromCodePoint(r),size:6};if(F7(r)&&n.charCodeAt(t+6)===92&&n.charCodeAt(t+7)===117){const i=oB(n,t+8);if(L7(i))return{value:String.fromCodePoint(r,i),size:12}}throw Br(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function oB(e,t){return Im(e.charCodeAt(t))<<12|Im(e.charCodeAt(t+1))<<8|Im(e.charCodeAt(t+2))<<4|Im(e.charCodeAt(t+3))}function Im(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function xIe(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:`
|
|
420
|
-
`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw Br(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function SIe(e,t){const n=e.source.body,r=n.length;let i=e.lineStart,o=t+3,a=o,s="";const l=[];for(;o<r;){const u=n.charCodeAt(o);if(u===34&&n.charCodeAt(o+1)===34&&n.charCodeAt(o+2)===34){s+=n.slice(a,o),l.push(s);const f=_r(e,je.BLOCK_STRING,t,o+3,fIe(l).join(`
|
|
421
|
-
`));return e.line+=l.length-1,e.lineStart=i,f}if(u===92&&n.charCodeAt(o+1)===34&&n.charCodeAt(o+2)===34&&n.charCodeAt(o+3)===34){s+=n.slice(a,o),a=o+1,o+=4;continue}if(u===10||u===13){s+=n.slice(a,o),l.push(s),u===13&&n.charCodeAt(o+1)===10?o+=2:++o,s="",a=o,i=o;continue}if(Np(u))++o;else if(tx(n,o))o+=2;else throw Br(e.source,o,`Invalid character within String: ${Vc(e,o)}.`)}throw Br(e.source,o,"Unterminated string.")}function EIe(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const o=n.charCodeAt(i);if(cIe(o))++i;else break}return _r(e,je.NAME,t,i,n.slice(t,i))}const CIe=10,M7=2;function N7(e){return nx(e,[])}function nx(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return kIe(e,t);default:return String(e)}}function kIe(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(TIe(e)){const r=e.toJSON();if(r!==e)return typeof r=="string"?r:nx(r,n)}else if(Array.isArray(e))return OIe(e,n);return RIe(e,n)}function TIe(e){return typeof e.toJSON=="function"}function RIe(e,t){const n=Object.entries(e);return n.length===0?"{}":t.length>M7?"["+AIe(e)+"]":"{ "+n.map(([i,o])=>i+": "+nx(o,t)).join(", ")+" }"}function OIe(e,t){if(e.length===0)return"[]";if(t.length>M7)return"[Array]";const n=Math.min(CIe,e.length),r=e.length-n,i=[];for(let o=0;o<n;++o)i.push(nx(e[o],t));return r===1?i.push("... 1 more item"):r>1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}function AIe(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){const n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}const DIe=function(t,n){return t instanceof n};class $D{constructor(t,n="GraphQL request",r={line:1,column:1}){typeof t=="string"||Ib(!1,`Body must be a string. Received: ${N7(t)}.`),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||Ib(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Ib(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function IIe(e){return DIe(e,$D)}function PIe(e,t){return new $Ie(e,t).parseDocument()}class $Ie{constructor(t,n={}){const r=IIe(t)?t:new $D(t);this._lexer=new hIe(r),this._options=n,this._tokenCounter=0}parseName(){const t=this.expectToken(je.NAME);return this.node(t,{kind:gt.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:gt.DOCUMENT,definitions:this.many(je.SOF,this.parseDefinition,je.EOF)})}parseDefinition(){if(this.peek(je.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===je.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(t)throw Br(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){const t=this._lexer.token;if(this.peek(je.BRACE_L))return this.node(t,{kind:gt.OPERATION_DEFINITION,operation:Ed.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const n=this.parseOperationType();let r;return this.peek(je.NAME)&&(r=this.parseName()),this.node(t,{kind:gt.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(je.NAME);switch(t.value){case"query":return Ed.QUERY;case"mutation":return Ed.MUTATION;case"subscription":return Ed.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(je.PAREN_L,this.parseVariableDefinition,je.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:gt.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(je.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(je.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(je.DOLLAR),this.node(t,{kind:gt.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:gt.SELECTION_SET,selections:this.many(je.BRACE_L,this.parseSelection,je.BRACE_R)})}parseSelection(){return this.peek(je.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,n=this.parseName();let r,i;return this.expectOptionalToken(je.COLON)?(r=n,i=this.parseName()):i=n,this.node(t,{kind:gt.FIELD,alias:r,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(je.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){const n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(je.PAREN_L,n,je.PAREN_R)}parseArgument(t=!1){const n=this._lexer.token,r=this.parseName();return this.expectToken(je.COLON),this.node(n,{kind:gt.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(je.SPREAD);const n=this.expectOptionalKeyword("on");return!n&&this.peek(je.NAME)?this.node(t,{kind:gt.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:gt.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const t=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:gt.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:gt.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){const n=this._lexer.token;switch(n.kind){case je.BRACKET_L:return this.parseList(t);case je.BRACE_L:return this.parseObject(t);case je.INT:return this.advanceLexer(),this.node(n,{kind:gt.INT,value:n.value});case je.FLOAT:return this.advanceLexer(),this.node(n,{kind:gt.FLOAT,value:n.value});case je.STRING:case je.BLOCK_STRING:return this.parseStringLiteral();case je.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:gt.BOOLEAN,value:!0});case"false":return this.node(n,{kind:gt.BOOLEAN,value:!1});case"null":return this.node(n,{kind:gt.NULL});default:return this.node(n,{kind:gt.ENUM,value:n.value})}case je.DOLLAR:if(t)if(this.expectToken(je.DOLLAR),this._lexer.token.kind===je.NAME){const r=this._lexer.token.value;throw Br(this._lexer.source,n.start,`Unexpected variable "$${r}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:gt.STRING,value:t.value,block:t.kind===je.BLOCK_STRING})}parseList(t){const n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:gt.LIST,values:this.any(je.BRACKET_L,n,je.BRACKET_R)})}parseObject(t){const n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:gt.OBJECT,fields:this.any(je.BRACE_L,n,je.BRACE_R)})}parseObjectField(t){const n=this._lexer.token,r=this.parseName();return this.expectToken(je.COLON),this.node(n,{kind:gt.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){const n=[];for(;this.peek(je.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const n=this._lexer.token;return this.expectToken(je.AT),this.node(n,{kind:gt.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let n;if(this.expectOptionalToken(je.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(je.BRACKET_R),n=this.node(t,{kind:gt.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(je.BANG)?this.node(t,{kind:gt.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:gt.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(je.STRING)||this.peek(je.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");const r=this.parseConstDirectives(),i=this.many(je.BRACE_L,this.parseOperationTypeDefinition,je.BRACE_R);return this.node(t,{kind:gt.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:i})}parseOperationTypeDefinition(){const t=this._lexer.token,n=this.parseOperationType();this.expectToken(je.COLON);const r=this.parseNamedType();return this.node(t,{kind:gt.OPERATION_TYPE_DEFINITION,operation:n,type:r})}parseScalarTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName(),i=this.parseConstDirectives();return this.node(t,{kind:gt.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:i})}parseObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");const r=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(t,{kind:gt.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:o,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(je.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(je.BRACE_L,this.parseFieldDefinition,je.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(je.COLON);const o=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(t,{kind:gt.FIELD_DEFINITION,description:n,name:r,arguments:i,type:o,directives:a})}parseArgumentDefs(){return this.optionalMany(je.PAREN_L,this.parseInputValueDef,je.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(je.COLON);const i=this.parseTypeReference();let o;this.expectOptionalToken(je.EQUALS)&&(o=this.parseConstValueLiteral());const a=this.parseConstDirectives();return this.node(t,{kind:gt.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:o,directives:a})}parseInterfaceTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");const r=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(t,{kind:gt.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:o,fields:a})}parseUnionTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");const r=this.parseName(),i=this.parseConstDirectives(),o=this.parseUnionMemberTypes();return this.node(t,{kind:gt.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(je.EQUALS)?this.delimitedMany(je.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");const r=this.parseName(),i=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();return this.node(t,{kind:gt.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:o})}parseEnumValuesDefinition(){return this.optionalMany(je.BRACE_L,this.parseEnumValueDefinition,je.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(t,{kind:gt.ENUM_VALUE_DEFINITION,description:n,name:r,directives:i})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw Br(this._lexer.source,this._lexer.token.start,`${$0(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");const r=this.parseName(),i=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();return this.node(t,{kind:gt.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(je.BRACE_L,this.parseInputValueDef,je.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===je.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.optionalMany(je.BRACE_L,this.parseOperationTypeDefinition,je.BRACE_R);if(n.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:gt.SCHEMA_EXTENSION,directives:n,operationTypes:r})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(t,{kind:gt.SCALAR_TYPE_EXTENSION,name:n,directives:r})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:gt.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:o})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:gt.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:gt.UNION_TYPE_EXTENSION,name:n,directives:r,types:i})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:gt.ENUM_TYPE_EXTENSION,name:n,directives:r,values:i})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:gt.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:i})}parseDirectiveDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(je.AT);const r=this.parseName(),i=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const a=this.parseDirectiveLocations();return this.node(t,{kind:gt.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,repeatable:o,locations:a})}parseDirectiveLocations(){return this.delimitedMany(je.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(QT,n.value))return n;throw this.unexpected(t)}node(t,n){return this._options.noLocation!==!0&&(n.loc=new lIe(t,this._lexer.lastToken,this._lexer.source)),n}peek(t){return this._lexer.token.kind===t}expectToken(t){const n=this._lexer.token;if(n.kind===t)return this.advanceLexer(),n;throw Br(this._lexer.source,n.start,`Expected ${B7(t)}, found ${$0(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){const n=this._lexer.token;if(n.kind===je.NAME&&n.value===t)this.advanceLexer();else throw Br(this._lexer.source,n.start,`Expected "${t}", found ${$0(n)}.`)}expectOptionalKeyword(t){const n=this._lexer.token;return n.kind===je.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){const n=t??this._lexer.token;return Br(this._lexer.source,n.start,`Unexpected ${$0(n)}.`)}any(t,n,r){this.expectToken(t);const i=[];for(;!this.expectOptionalToken(r);)i.push(n.call(this));return i}optionalMany(t,n,r){if(this.expectOptionalToken(t)){const i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}return[]}many(t,n,r){this.expectToken(t);const i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}delimitedMany(t,n){this.expectOptionalToken(t);const r=[];do r.push(n.call(this));while(this.expectOptionalToken(t));return r}advanceLexer(){const{maxTokens:t}=this._options,n=this._lexer.advance();if(t!==void 0&&n.kind!==je.EOF&&(++this._tokenCounter,this._tokenCounter>t))throw Br(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function $0(e){const t=e.value;return B7(e.kind)+(t!=null?` "${t}"`:"")}function B7(e){return mIe(e)?`"${e}"`:e}function FIe(e){return`"${e.replace(LIe,MIe)}"`}const LIe=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function MIe(e){return NIe[e.charCodeAt(0)]}const NIe=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],FD=Object.freeze({});function ll(e,t,n=I7){const r=new Map;for(const b of Object.values(gt))r.set(b,BIe(t,b));let i,o=Array.isArray(e),a=[e],s=-1,l=[],u=e,f,p;const d=[],v=[];do{s++;const b=s===a.length,w=b&&l.length!==0;if(b){if(f=v.length===0?void 0:d[d.length-1],u=p,p=v.pop(),w)if(o){u=u.slice();let C=0;for(const[k,D]of l){const P=k-C;D===null?(u.splice(P,1),C++):u[P]=D}}else{u=Object.defineProperties({},Object.getOwnPropertyDescriptors(u));for(const[C,k]of l)u[C]=k}s=i.index,a=i.keys,l=i.edits,o=i.inArray,i=i.prev}else if(p){if(f=o?s:a[s],u=p[f],u==null)continue;d.push(f)}let S;if(!Array.isArray(u)){var g,y;iB(u)||Ib(!1,`Invalid AST Node: ${N7(u)}.`);const C=b?(g=r.get(u.kind))===null||g===void 0?void 0:g.leave:(y=r.get(u.kind))===null||y===void 0?void 0:y.enter;if(S=C==null?void 0:C.call(t,u,f,p,d,v),S===FD)break;if(S===!1){if(!b){d.pop();continue}}else if(S!==void 0&&(l.push([f,S]),!b))if(iB(S))u=S;else{d.pop();continue}}if(S===void 0&&w&&l.push([f,u]),b)d.pop();else{var x;i={inArray:o,index:s,keys:a,edits:l,prev:i},o=Array.isArray(u),a=o?u:(x=n[u.kind])!==null&&x!==void 0?x:[],s=-1,l=[],p&&v.push(p),p=u}}while(i!==void 0);return l.length!==0?l[l.length-1][1]:e}function BIe(e,t){const n=e[t];return typeof n=="object"?n:typeof n=="function"?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function jIe(e){return ll(e,UIe)}const zIe=80,UIe={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>vt(e.definitions,`
|
|
422
|
-
|
|
423
|
-
`)},OperationDefinition:{leave(e){const t=Jt("(",vt(e.variableDefinitions,", "),")"),n=vt([e.operation,vt([e.name,t]),vt(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+Jt(" = ",n)+Jt(" ",vt(r," "))},SelectionSet:{leave:({selections:e})=>ha(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=Jt("",e,": ")+t;let a=o+Jt("(",vt(n,", "),")");return a.length>zIe&&(a=o+Jt(`(
|
|
424
|
-
`,Pb(vt(n,`
|
|
425
|
-
`)),`
|
|
426
|
-
)`)),vt([a,vt(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Jt(" ",vt(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>vt(["...",Jt("on ",e),vt(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${Jt("(",vt(n,", "),")")} on ${t} ${Jt("",vt(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?pIe(e):FIe(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+vt(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+vt(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Jt("(",vt(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>Jt("",e,`
|
|
427
|
-
`)+vt(["schema",vt(t," "),ha(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>Jt("",e,`
|
|
428
|
-
`)+vt(["scalar",t,vt(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Jt("",e,`
|
|
429
|
-
`)+vt(["type",t,Jt("implements ",vt(n," & ")),vt(r," "),ha(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>Jt("",e,`
|
|
430
|
-
`)+t+(aB(n)?Jt(`(
|
|
431
|
-
`,Pb(vt(n,`
|
|
432
|
-
`)),`
|
|
433
|
-
)`):Jt("(",vt(n,", "),")"))+": "+r+Jt(" ",vt(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>Jt("",e,`
|
|
434
|
-
`)+vt([t+": "+n,Jt("= ",r),vt(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Jt("",e,`
|
|
435
|
-
`)+vt(["interface",t,Jt("implements ",vt(n," & ")),vt(r," "),ha(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>Jt("",e,`
|
|
436
|
-
`)+vt(["union",t,vt(n," "),Jt("= ",vt(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>Jt("",e,`
|
|
437
|
-
`)+vt(["enum",t,vt(n," "),ha(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>Jt("",e,`
|
|
438
|
-
`)+vt([t,vt(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>Jt("",e,`
|
|
439
|
-
`)+vt(["input",t,vt(n," "),ha(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>Jt("",e,`
|
|
440
|
-
`)+"directive @"+t+(aB(n)?Jt(`(
|
|
441
|
-
`,Pb(vt(n,`
|
|
442
|
-
`)),`
|
|
443
|
-
)`):Jt("(",vt(n,", "),")"))+(r?" repeatable":"")+" on "+vt(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>vt(["extend schema",vt(e," "),ha(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>vt(["extend scalar",e,vt(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>vt(["extend type",e,Jt("implements ",vt(t," & ")),vt(n," "),ha(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>vt(["extend interface",e,Jt("implements ",vt(t," & ")),vt(n," "),ha(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>vt(["extend union",e,vt(t," "),Jt("= ",vt(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>vt(["extend enum",e,vt(t," "),ha(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>vt(["extend input",e,vt(t," "),ha(n)]," ")}};function vt(e,t=""){var n;return(n=e==null?void 0:e.filter(r=>r).join(t))!==null&&n!==void 0?n:""}function ha(e){return Jt(`{
|
|
444
|
-
`,Pb(vt(e,`
|
|
445
|
-
`)),`
|
|
446
|
-
}`)}function Jt(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function Pb(e){return Jt(" ",e.replace(/\n/g,`
|
|
447
|
-
`))}function aB(e){var t;return(t=e==null?void 0:e.some(n=>n.includes(`
|
|
448
|
-
`)))!==null&&t!==void 0?t:!1}function sB(e){return e.kind===gt.FIELD||e.kind===gt.FRAGMENT_SPREAD||e.kind===gt.INLINE_FRAGMENT}function VIe(){return tB()}function WIe(){__DEV__?Ze(typeof ZE=="boolean",ZE):Ze(typeof ZE=="boolean",39)}VIe();WIe();var XT=function(e,t){return XT=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])},XT(e,t)};function vs(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");XT(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Ae=function(){return Ae=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},Ae.apply(this,arguments)};function xu(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 Ql(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(f){try{u(r.next(f))}catch(p){a(p)}}function l(f){try{u(r.throw(f))}catch(p){a(p)}}function u(f){f.done?o(f.value):i(f.value).then(s,l)}u((r=r.apply(e,t||[])).next())})}function Yl(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(f){return l([u,f])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(n=0)),n;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(f){u=[6,f],i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function W1(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))}function rx(e,t){var n=e.directives;return!n||!n.length?!0:qIe(n).every(function(r){var i=r.directive,o=r.ifArgument,a=!1;return o.value.kind==="Variable"?(a=t&&t[o.value.name.value],__DEV__?Ze(a!==void 0,"Invalid variable referenced in @".concat(i.name.value," directive.")):Ze(a!==void 0,40)):a=o.value.value,i.name.value==="skip"?!a:a})}function LD(e,t,n){var r=new Set(e),i=r.size;return ll(t,{Directive:function(o){if(r.delete(o.name.value)&&(!n||!r.size))return FD}}),n?!r.size:r.size<i}function KIe(e){return e&&LD(["client","export"],e,!0)}function HIe(e){var t=e.name.value;return t==="skip"||t==="include"}function qIe(e){var t=[];return e&&e.length&&e.forEach(function(n){if(HIe(n)){var r=n.arguments,i=n.name.value;__DEV__?Ze(r&&r.length===1,"Incorrect number of arguments for the @".concat(i," directive.")):Ze(r&&r.length===1,41);var o=r[0];__DEV__?Ze(o.name&&o.name.value==="if","Invalid argument for the @".concat(i," directive.")):Ze(o.name&&o.name.value==="if",42);var a=o.value;__DEV__?Ze(a&&(a.kind==="Variable"||a.kind==="BooleanValue"),"Argument for the @".concat(i," directive must be a variable or a boolean value.")):Ze(a&&(a.kind==="Variable"||a.kind==="BooleanValue"),43),t.push({directive:n,ifArgument:o})}}),t}function GIe(e,t){var n=t,r=[];e.definitions.forEach(function(o){if(o.kind==="OperationDefinition")throw __DEV__?new mn("Found a ".concat(o.operation," operation").concat(o.name?" named '".concat(o.name.value,"'"):"",". ")+"No operations are allowed when using a fragment as a query. Only fragments are allowed."):new mn(44);o.kind==="FragmentDefinition"&&r.push(o)}),typeof n>"u"&&(__DEV__?Ze(r.length===1,"Found ".concat(r.length," fragments. `fragmentName` must be provided when there is not exactly 1 fragment.")):Ze(r.length===1,45),n=r[0].name.value);var i=Ae(Ae({},e),{definitions:W1([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)});return i}function MD(e){e===void 0&&(e=[]);var t={};return e.forEach(function(n){t[n.name.value]=n}),t}function ND(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":{var n=e.name.value;if(typeof t=="function")return t(n);var r=t&&t[n];return __DEV__?Ze(r,"No fragment named ".concat(n)):Ze(r,46),r||null}default:return null}}function cr(e){return e!==null&&typeof e=="object"}function Wd(e){return{__ref:String(e)}}function xn(e){return!!(e&&typeof e=="object"&&typeof e.__ref=="string")}function QIe(e){return cr(e)&&e.kind==="Document"&&Array.isArray(e.definitions)}function YIe(e){return e.kind==="StringValue"}function XIe(e){return e.kind==="BooleanValue"}function JIe(e){return e.kind==="IntValue"}function ZIe(e){return e.kind==="FloatValue"}function e2e(e){return e.kind==="Variable"}function t2e(e){return e.kind==="ObjectValue"}function n2e(e){return e.kind==="ListValue"}function r2e(e){return e.kind==="EnumValue"}function i2e(e){return e.kind==="NullValue"}function yp(e,t,n,r){if(JIe(n)||ZIe(n))e[t.value]=Number(n.value);else if(XIe(n)||YIe(n))e[t.value]=n.value;else if(t2e(n)){var i={};n.fields.map(function(a){return yp(i,a.name,a.value,r)}),e[t.value]=i}else if(e2e(n)){var o=(r||{})[n.name.value];e[t.value]=o}else if(n2e(n))e[t.value]=n.values.map(function(a){var s={};return yp(s,t,a,r),s[t.value]});else if(r2e(n))e[t.value]=n.value;else if(i2e(n))e[t.value]=null;else throw __DEV__?new mn('The inline argument "'.concat(t.value,'" of kind "').concat(n.kind,'"')+"is not supported. Use variables instead of inline arguments to overcome this limitation."):new mn(55)}function o2e(e,t){var n=null;e.directives&&(n={},e.directives.forEach(function(i){n[i.name.value]={},i.arguments&&i.arguments.forEach(function(o){var a=o.name,s=o.value;return yp(n[i.name.value],a,s,t)})}));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach(function(i){var o=i.name,a=i.value;return yp(r,o,a,t)})),BD(e.name.value,r,n)}var a2e=["connection","include","skip","client","rest","export"],BD=Object.assign(function(e,t,n){if(t&&n&&n.connection&&n.connection.key)if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach(function(s){i[s]=t[s]}),"".concat(n.connection.key,"(").concat(im(i),")")}else return n.connection.key;var o=e;if(t){var a=im(t);o+="(".concat(a,")")}return n&&Object.keys(n).forEach(function(s){a2e.indexOf(s)===-1&&(n[s]&&Object.keys(n[s]).length?o+="@".concat(s,"(").concat(im(n[s]),")"):o+="@".concat(s))}),o},{setStringify:function(e){var t=im;return im=e,t}}),im=function(t){return JSON.stringify(t,s2e)};function s2e(e,t){return cr(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce(function(n,r){return n[r]=t[r],n},{})),t}function ix(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(r){var i=r.name,o=r.value;return yp(n,i,o,t)}),n}return null}function Wc(e){return e.alias?e.alias.value:e.name.value}function JT(e,t,n){if(typeof e.__typename=="string")return e.__typename;for(var r=0,i=t.selections;r<i.length;r++){var o=i[r];if(Kc(o)){if(o.name.value==="__typename")return e[Wc(o)]}else{var a=JT(e,ND(o,n).selectionSet,n);if(typeof a=="string")return a}}}function Kc(e){return e.kind==="Field"}function l2e(e){return e.kind==="InlineFragment"}function ox(e){__DEV__?Ze(e&&e.kind==="Document",'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):Ze(e&&e.kind==="Document",47);var t=e.definitions.filter(function(n){return n.kind!=="FragmentDefinition"}).map(function(n){if(n.kind!=="OperationDefinition")throw __DEV__?new mn('Schema type definitions not allowed in queries. Found: "'.concat(n.kind,'"')):new mn(48);return n});return __DEV__?Ze(t.length<=1,"Ambiguous GraphQL document: contains ".concat(t.length," operations")):Ze(t.length<=1,49),e}function Rv(e){return ox(e),e.definitions.filter(function(t){return t.kind==="OperationDefinition"})[0]}function ZT(e){return e.definitions.filter(function(t){return t.kind==="OperationDefinition"&&!!t.name}).map(function(t){return t.name.value})[0]||null}function jD(e){return e.definitions.filter(function(t){return t.kind==="FragmentDefinition"})}function j7(e){var t=Rv(e);return __DEV__?Ze(t&&t.operation==="query","Must contain a query definition."):Ze(t&&t.operation==="query",50),t}function u2e(e){__DEV__?Ze(e.kind==="Document",'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):Ze(e.kind==="Document",51),__DEV__?Ze(e.definitions.length<=1,"Fragment must have exactly one definition."):Ze(e.definitions.length<=1,52);var t=e.definitions[0];return __DEV__?Ze(t.kind==="FragmentDefinition","Must be a fragment definition."):Ze(t.kind==="FragmentDefinition",53),t}function zD(e){ox(e);for(var t,n=0,r=e.definitions;n<r.length;n++){var i=r[n];if(i.kind==="OperationDefinition"){var o=i.operation;if(o==="query"||o==="mutation"||o==="subscription")return i}i.kind==="FragmentDefinition"&&!t&&(t=i)}if(t)return t;throw __DEV__?new mn("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new mn(54)}function UD(e){var t=Object.create(null),n=e&&e.variableDefinitions;return n&&n.length&&n.forEach(function(r){r.defaultValue&&yp(t,r.variable.name,r.defaultValue)}),t}var fr=Array.isArray;function Wi(e){return Array.isArray(e)&&e.length>0}var lB={kind:gt.FIELD,name:{kind:gt.NAME,value:"__typename"}};function z7(e,t){return!e||e.selectionSet.selections.every(function(n){return n.kind===gt.FRAGMENT_SPREAD&&z7(t[n.name.value],t)})}function c2e(e){return z7(Rv(e)||u2e(e),MD(jD(e)))?null:e}function f2e(e){var t=new Set,n=[];return e.forEach(function(r){r.name?t.add(r.name):r.test&&n.push(r.test)}),function(r){return t.has(r.name.value)||n.some(function(i){return i(r)})}}function uB(e){var t=new Map;return function(r){r===void 0&&(r=e);var i=t.get(r);return i||t.set(r,i={variables:new Set,fragmentSpreads:new Set}),i}}function U7(e,t){for(var n=uB(""),r=uB(""),i=function(w){for(var S=0,C=void 0;S<w.length&&(C=w[S]);++S)if(!fr(C)){if(C.kind===gt.OPERATION_DEFINITION)return n(C.name&&C.name.value);if(C.kind===gt.FRAGMENT_DEFINITION)return r(C.name.value)}return __DEV__&&Ze.error("Could not find operation or fragment"),null},o=0,a=t.definitions.length-1;a>=0;--a)t.definitions[a].kind===gt.OPERATION_DEFINITION&&++o;var s=f2e(e),l=e.some(function(w){return w.remove}),u=function(w){return l&&w&&w.some(s)},f=new Map,p=!1,d={enter:function(w){if(u(w.directives))return p=!0,null}},v=ll(t,{Field:d,InlineFragment:d,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(w,S,C,k,D){var P=i(D);P&&P.variables.add(w.name.value)}},FragmentSpread:{enter:function(w,S,C,k,D){if(u(w.directives))return p=!0,null;var P=i(D);P&&P.fragmentSpreads.add(w.name.value)}},FragmentDefinition:{enter:function(w,S,C,k){f.set(JSON.stringify(k),w)},leave:function(w,S,C,k){var D=f.get(JSON.stringify(k));if(w===D)return w;if(o>0&&w.selectionSet.selections.every(function(P){return P.kind===gt.FIELD&&P.name.value==="__typename"}))return r(w.name.value).removed=!0,p=!0,null}},Directive:{leave:function(w){if(s(w))return p=!0,null}}});if(!p)return t;var g=function(w){return w.transitiveVars||(w.transitiveVars=new Set(w.variables),w.removed||w.fragmentSpreads.forEach(function(S){g(r(S)).transitiveVars.forEach(function(C){w.transitiveVars.add(C)})})),w},y=new Set;v.definitions.forEach(function(w){w.kind===gt.OPERATION_DEFINITION?g(n(w.name&&w.name.value)).fragmentSpreads.forEach(function(S){y.add(S)}):w.kind===gt.FRAGMENT_DEFINITION&&o===0&&!r(w.name.value).removed&&y.add(w.name.value)}),y.forEach(function(w){g(r(w)).fragmentSpreads.forEach(function(S){y.add(S)})});var x=function(w){return!!(!y.has(w)||r(w).removed)},b={enter:function(w){if(x(w.name.value))return null}};return c2e(ll(v,{FragmentSpread:b,FragmentDefinition:b,OperationDefinition:{leave:function(w){if(w.variableDefinitions){var S=g(n(w.name&&w.name.value)).transitiveVars;if(S.size<w.variableDefinitions.length)return Ae(Ae({},w),{variableDefinitions:w.variableDefinitions.filter(function(C){return S.has(C.variable.name.value)})})}}}}))}var VD=Object.assign(function(e){return ll(e,{SelectionSet:{enter:function(t,n,r){if(!(r&&r.kind===gt.OPERATION_DEFINITION)){var i=t.selections;if(i){var o=i.some(function(s){return Kc(s)&&(s.name.value==="__typename"||s.name.value.lastIndexOf("__",0)===0)});if(!o){var a=r;if(!(Kc(a)&&a.directives&&a.directives.some(function(s){return s.name.value==="export"})))return Ae(Ae({},t),{selections:W1(W1([],i,!0),[lB],!1)})}}}}}})},{added:function(e){return e===lB}}),d2e={test:function(e){var t=e.name.value==="connection";return t&&(!e.arguments||!e.arguments.some(function(n){return n.name.value==="key"}))&&__DEV__&&Ze.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key."),t}};function p2e(e){return U7([d2e],ox(e))}function h2e(e){var t=zD(e),n=t.operation;if(n==="query")return e;var r=ll(e,{OperationDefinition:{enter:function(i){return Ae(Ae({},i),{operation:"query"})}}});return r}function m2e(e){ox(e);var t=U7([{test:function(n){return n.name.value==="client"},remove:!0}],e);return t}var g2e=Object.prototype.hasOwnProperty;function cB(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return WD(e)}function WD(e){var t=e[0]||{},n=e.length;if(n>1)for(var r=new Su,i=1;i<n;++i)t=r.merge(t,e[i]);return t}var v2e=function(e,t,n){return this.merge(e[n],t[n])},Su=function(){function e(t){t===void 0&&(t=v2e),this.reconciler=t,this.isObject=cr,this.pastCopies=new Set}return e.prototype.merge=function(t,n){for(var r=this,i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];return cr(n)&&cr(t)?(Object.keys(n).forEach(function(a){if(g2e.call(t,a)){var s=t[a];if(n[a]!==s){var l=r.reconciler.apply(r,W1([t,n,a],i,!1));l!==s&&(t=r.shallowCopyForMerge(t),t[a]=l)}}else t=r.shallowCopyForMerge(t),t[a]=n[a]}),t):n},e.prototype.shallowCopyForMerge=function(t){return cr(t)&&(this.pastCopies.has(t)||(Array.isArray(t)?t=t.slice(0):t=Ae({__proto__:Object.getPrototypeOf(t)},t),this.pastCopies.add(t))),t},e}();function y2e(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=b2e(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
449
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b2e(e,t){if(e){if(typeof e=="string")return fB(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 fB(e,t)}}function fB(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 dB(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 KD(e,t,n){return t&&dB(e.prototype,t),n&&dB(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var HD=function(){return typeof Symbol=="function"},qD=function(e){return HD()&&!!Symbol[e]},GD=function(e){return qD(e)?Symbol[e]:"@@"+e};HD()&&!qD("observable")&&(Symbol.observable=Symbol("observable"));var w2e=GD("iterator"),eR=GD("observable"),V7=GD("species");function K1(e,t){var n=e[t];if(n!=null){if(typeof n!="function")throw new TypeError(n+" is not a function");return n}}function om(e){var t=e.constructor;return t!==void 0&&(t=t[V7],t===null&&(t=void 0)),t!==void 0?t:jn}function _2e(e){return e instanceof jn}function bp(e){bp.log?bp.log(e):setTimeout(function(){throw e})}function $b(e){Promise.resolve().then(function(){try{e()}catch(t){bp(t)}})}function W7(e){var t=e._cleanup;if(t!==void 0&&(e._cleanup=void 0,!!t))try{if(typeof t=="function")t();else{var n=K1(t,"unsubscribe");n&&n.call(t)}}catch(r){bp(r)}}function tR(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function x2e(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(K7(e,t[n].type,t[n].value),e._state!=="closed");++n);}}function K7(e,t,n){e._state="running";var r=e._observer;try{var i=K1(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(tR(e),i)i.call(r,n);else throw n;break;case"complete":tR(e),i&&i.call(r);break}}catch(o){bp(o)}e._state==="closed"?W7(e):e._state==="running"&&(e._state="ready")}function tC(e,t,n){if(e._state!=="closed"){if(e._state==="buffering"){e._queue.push({type:t,value:n});return}if(e._state!=="ready"){e._state="buffering",e._queue=[{type:t,value:n}],$b(function(){return x2e(e)});return}K7(e,t,n)}}var S2e=function(){function e(n,r){this._cleanup=void 0,this._observer=n,this._queue=void 0,this._state="initializing";var i=new E2e(this);try{this._cleanup=r.call(void 0,i)}catch(o){i.error(o)}this._state==="initializing"&&(this._state="ready")}var t=e.prototype;return t.unsubscribe=function(){this._state!=="closed"&&(tR(this),W7(this))},KD(e,[{key:"closed",get:function(){return this._state==="closed"}}]),e}(),E2e=function(){function e(n){this._subscription=n}var t=e.prototype;return t.next=function(r){tC(this._subscription,"next",r)},t.error=function(r){tC(this._subscription,"error",r)},t.complete=function(){tC(this._subscription,"complete")},KD(e,[{key:"closed",get:function(){return this._subscription._state==="closed"}}]),e}(),jn=function(){function e(n){if(!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if(typeof n!="function")throw new TypeError("Observable initializer must be a function");this._subscriber=n}var t=e.prototype;return t.subscribe=function(r){return(typeof r!="object"||r===null)&&(r={next:r,error:arguments[1],complete:arguments[2]}),new S2e(r,this._subscriber)},t.forEach=function(r){var i=this;return new Promise(function(o,a){if(typeof r!="function"){a(new TypeError(r+" is not a function"));return}function s(){l.unsubscribe(),o()}var l=i.subscribe({next:function(u){try{r(u,s)}catch(f){a(f),l.unsubscribe()}},error:a,complete:o})})},t.map=function(r){var i=this;if(typeof r!="function")throw new TypeError(r+" is not a function");var o=om(this);return new o(function(a){return i.subscribe({next:function(s){try{s=r(s)}catch(l){return a.error(l)}a.next(s)},error:function(s){a.error(s)},complete:function(){a.complete()}})})},t.filter=function(r){var i=this;if(typeof r!="function")throw new TypeError(r+" is not a function");var o=om(this);return new o(function(a){return i.subscribe({next:function(s){try{if(!r(s))return}catch(l){return a.error(l)}a.next(s)},error:function(s){a.error(s)},complete:function(){a.complete()}})})},t.reduce=function(r){var i=this;if(typeof r!="function")throw new TypeError(r+" is not a function");var o=om(this),a=arguments.length>1,s=!1,l=arguments[1],u=l;return new o(function(f){return i.subscribe({next:function(p){var d=!s;if(s=!0,!d||a)try{u=r(u,p)}catch(v){return f.error(v)}else u=p},error:function(p){f.error(p)},complete:function(){if(!s&&!a)return f.error(new TypeError("Cannot reduce an empty sequence"));f.next(u),f.complete()}})})},t.concat=function(){for(var r=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];var s=om(this);return new s(function(l){var u,f=0;function p(d){u=d.subscribe({next:function(v){l.next(v)},error:function(v){l.error(v)},complete:function(){f===o.length?(u=void 0,l.complete()):p(s.from(o[f++]))}})}return p(r),function(){u&&(u.unsubscribe(),u=void 0)}})},t.flatMap=function(r){var i=this;if(typeof r!="function")throw new TypeError(r+" is not a function");var o=om(this);return new o(function(a){var s=[],l=i.subscribe({next:function(f){if(r)try{f=r(f)}catch(d){return a.error(d)}var p=o.from(f).subscribe({next:function(d){a.next(d)},error:function(d){a.error(d)},complete:function(){var d=s.indexOf(p);d>=0&&s.splice(d,1),u()}});s.push(p)},error:function(f){a.error(f)},complete:function(){u()}});function u(){l.closed&&s.length===0&&a.complete()}return function(){s.forEach(function(f){return f.unsubscribe()}),l.unsubscribe()}})},t[eR]=function(){return this},e.from=function(r){var i=typeof this=="function"?this:e;if(r==null)throw new TypeError(r+" is not an object");var o=K1(r,eR);if(o){var a=o.call(r);if(Object(a)!==a)throw new TypeError(a+" is not an object");return _2e(a)&&a.constructor===i?a:new i(function(s){return a.subscribe(s)})}if(qD("iterator")&&(o=K1(r,w2e),o))return new i(function(s){$b(function(){if(!s.closed){for(var l=y2e(o.call(r)),u;!(u=l()).done;){var f=u.value;if(s.next(f),s.closed)return}s.complete()}})});if(Array.isArray(r))return new i(function(s){$b(function(){if(!s.closed){for(var l=0;l<r.length;++l)if(s.next(r[l]),s.closed)return;s.complete()}})});throw new TypeError(r+" is not observable")},e.of=function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=typeof this=="function"?this:e;return new a(function(s){$b(function(){if(!s.closed){for(var l=0;l<i.length;++l)if(s.next(i[l]),s.closed)return;s.complete()}})})},KD(e,null,[{key:V7,get:function(){return this}}]),e}();HD()&&Object.defineProperty(jn,Symbol("extensions"),{value:{symbol:eR,hostReportError:bp},configurable:!0});function C2e(e){var t,n=e.Symbol;if(typeof n=="function")if(n.observable)t=n.observable;else{typeof n.for=="function"?t=n.for("https://github.com/benlesh/symbol-observable"):t=n("https://github.com/benlesh/symbol-observable");try{n.observable=t}catch{}}else t="@@observable";return t}var ad;typeof self<"u"?ad=self:typeof window<"u"?ad=window:typeof global<"u"?ad=global:typeof module<"u"?ad=module:ad=Function("return this")();C2e(ad);var pB=jn.prototype,hB="@@observable";pB[hB]||(pB[hB]=function(){return this});var k2e=Object.prototype.toString;function H7(e){return nR(e)}function nR(e,t){switch(k2e.call(e)){case"[object Array]":{if(t=t||new Map,t.has(e))return t.get(e);var n=e.slice(0);return t.set(e,n),n.forEach(function(i,o){n[o]=nR(i,t)}),n}case"[object Object]":{if(t=t||new Map,t.has(e))return t.get(e);var r=Object.create(Object.getPrototypeOf(e));return t.set(e,r),Object.keys(e).forEach(function(i){r[i]=nR(e[i],t)}),r}default:return e}}function T2e(e){var t=new Set([e]);return t.forEach(function(n){cr(n)&&R2e(n)===n&&Object.getOwnPropertyNames(n).forEach(function(r){cr(n[r])&&t.add(n[r])})}),e}function R2e(e){if(__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(t){if(t instanceof TypeError)return null;throw t}return e}function Ug(e){return __DEV__&&T2e(e),e}function og(e,t,n){var r=[];e.forEach(function(i){return i[t]&&r.push(i)}),r.forEach(function(i){return i[t](n)})}function nC(e,t,n){return new jn(function(r){var i=r.next,o=r.error,a=r.complete,s=0,l=!1,u={then:function(v){return new Promise(function(g){return g(v())})}};function f(v,g){return v?function(y){++s;var x=function(){return v(y)};u=u.then(x,x).then(function(b){--s,i&&i.call(r,b),l&&p.complete()},function(b){throw--s,b}).catch(function(b){o&&o.call(r,b)})}:function(y){return g&&g.call(r,y)}}var p={next:f(t,i),error:f(n,o),complete:function(){l=!0,s||a&&a.call(r)}},d=e.subscribe(p);return function(){return d.unsubscribe()}})}var Lu=typeof WeakMap=="function"&&No(function(){return navigator.product})!=="ReactNative",q7=typeof WeakSet=="function",QD=typeof Symbol=="function"&&typeof Symbol.for=="function",ax=QD&&Symbol.asyncIterator,O2e=typeof No(function(){return window.document.createElement})=="function",A2e=No(function(){return navigator.userAgent.indexOf("jsdom")>=0})||!1,D2e=O2e&&!A2e;function G7(e){function t(n){Object.defineProperty(e,n,{value:jn})}return QD&&Symbol.species&&t(Symbol.species),t("@@species"),e}function mB(e){return e&&typeof e.then=="function"}var Pm=function(e){vs(t,e);function t(n){var r=e.call(this,function(i){return r.addObserver(i),function(){return r.removeObserver(i)}})||this;return r.observers=new Set,r.promise=new Promise(function(i,o){r.resolve=i,r.reject=o}),r.handlers={next:function(i){r.sub!==null&&(r.latest=["next",i],r.notify("next",i),og(r.observers,"next",i))},error:function(i){var o=r.sub;o!==null&&(o&&setTimeout(function(){return o.unsubscribe()}),r.sub=null,r.latest=["error",i],r.reject(i),r.notify("error",i),og(r.observers,"error",i))},complete:function(){var i=r,o=i.sub,a=i.sources,s=a===void 0?[]:a;if(o!==null){var l=s.shift();l?mB(l)?l.then(function(u){return r.sub=u.subscribe(r.handlers)}):r.sub=l.subscribe(r.handlers):(o&&setTimeout(function(){return o.unsubscribe()}),r.sub=null,r.latest&&r.latest[0]==="next"?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),og(r.observers,"complete"))}}},r.nextResultListeners=new Set,r.cancel=function(i){r.reject(i),r.sources=[],r.handlers.complete()},r.promise.catch(function(i){}),typeof n=="function"&&(n=[new jn(n)]),mB(n)?n.then(function(i){return r.start(i)},r.handlers.error):r.start(n),r}return t.prototype.start=function(n){this.sub===void 0&&(this.sources=Array.from(n),this.handlers.complete())},t.prototype.deliverLastMessage=function(n){if(this.latest){var r=this.latest[0],i=n[r];i&&i.call(n,this.latest[1]),this.sub===null&&r==="next"&&n.complete&&n.complete()}},t.prototype.addObserver=function(n){this.observers.has(n)||(this.deliverLastMessage(n),this.observers.add(n))},t.prototype.removeObserver=function(n){this.observers.delete(n)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(n,r){var i=this.nextResultListeners;i.size&&(this.nextResultListeners=new Set,i.forEach(function(o){return o(n,r)}))},t.prototype.beforeNext=function(n){var r=!1;this.nextResultListeners.add(function(i,o){r||(r=!0,n(i,o))})},t}(jn);G7(Pm);function Kd(e){return"incremental"in e}function I2e(e){return"hasNext"in e&&"data"in e}function P2e(e){return Kd(e)||I2e(e)}function Q7(e,t){var n=e,r=new Su;return Kd(t)&&Wi(t.incremental)&&t.incremental.forEach(function(i){for(var o=i.data,a=i.path,s=a.length-1;s>=0;--s){var l=a[s],u=!isNaN(+l),f=u?[]:{};f[l]=o,o=f}n=r.merge(n,o)}),n}function Fb(e){var t=rR(e);return Wi(t)}function rR(e){var t=Wi(e.errors)?e.errors.slice(0):[];return Kd(e)&&Wi(e.incremental)&&e.incremental.forEach(function(n){n.errors&&t.push.apply(t,n.errors)}),t}function Ov(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object.create(null);return e.forEach(function(r){r&&Object.keys(r).forEach(function(i){var o=r[i];o!==void 0&&(n[i]=o)})}),n}var gB=new Map;function iR(e){var t=gB.get(e)||1;return gB.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function $2e(e){var t=iR("stringifyForDisplay");return JSON.stringify(e,function(n,r){return r===void 0?t:r}).split(JSON.stringify(t)).join("<undefined>")}function Hd(e,t){return Ov(e,t,t.variables&&{variables:Ae(Ae({},e&&e.variables),t.variables)})}function vB(e){return new jn(function(t){t.error(e)})}var oR=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r};function F2e(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];if(t.indexOf(i)<0)throw __DEV__?new mn("illegal argument: ".concat(i)):new mn(27)}return e}function L2e(e,t){var n=Ae({},e),r=function(o){typeof o=="function"?n=Ae(Ae({},n),o(n)):n=Ae(Ae({},n),o)},i=function(){return Ae({},n)};return Object.defineProperty(t,"setContext",{enumerable:!1,value:r}),Object.defineProperty(t,"getContext",{enumerable:!1,value:i}),t}function M2e(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName=typeof t.query!="string"?ZT(t.query)||void 0:""),t}function yB(e,t){return t?t(e):jn.of()}function am(e){return typeof e=="function"?new Av(e):e}function F0(e){return e.request.length<=1}var N2e=function(e){vs(t,e);function t(n,r){var i=e.call(this,n)||this;return i.link=r,i}return t}(Error),Av=function(){function e(t){t&&(this.request=t)}return e.empty=function(){return new e(function(){return jn.of()})},e.from=function(t){return t.length===0?e.empty():t.map(am).reduce(function(n,r){return n.concat(r)})},e.split=function(t,n,r){var i=am(n),o=am(r||new e(yB));return F0(i)&&F0(o)?new e(function(a){return t(a)?i.request(a)||jn.of():o.request(a)||jn.of()}):new e(function(a,s){return t(a)?i.request(a,s)||jn.of():o.request(a,s)||jn.of()})},e.execute=function(t,n){return t.request(L2e(n.context,M2e(F2e(n))))||jn.of()},e.concat=function(t,n){var r=am(t);if(F0(r))return __DEV__&&Ze.warn(new N2e("You are calling concat on a terminating link, which will have no effect",r)),r;var i=am(n);return F0(i)?new e(function(o){return r.request(o,function(a){return i.request(a)||jn.of()})||jn.of()}):new e(function(o,a){return r.request(o,function(s){return i.request(s,a)||jn.of()})||jn.of()})},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(yB)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(t,n){throw __DEV__?new mn("request is not implemented"):new mn(22)},e.prototype.onError=function(t,n){if(n&&n.error)return n.error(t),!1;throw t},e.prototype.setOnError=function(t){return this.onError=t,this},e}(),aR=Av.execute,B2e="3.7.10";function j2e(e){return!!e.body}function z2e(e){return!!e.getReader}function U2e(e){return!!(ax&&e[Symbol.asyncIterator])}function V2e(e){return!!e.stream}function W2e(e){return!!e.arrayBuffer}function K2e(e){return!!e.pipe}function H2e(e){var t,n=e[Symbol.asyncIterator]();return t={next:function(){return n.next()}},t[Symbol.asyncIterator]=function(){return this},t}function q2e(e){var t=null,n=null,r=!1,i=[],o=[];function a(p){if(!n){if(o.length){var d=o.shift();if(Array.isArray(d)&&d[0])return d[0]({value:p,done:!1})}i.push(p)}}function s(p){n=p;var d=o.slice();d.forEach(function(v){v[1](p)}),!t||t()}function l(){r=!0;var p=o.slice();p.forEach(function(d){d[0]({value:void 0,done:!0})}),!t||t()}t=function(){t=null,e.removeListener("data",a),e.removeListener("error",s),e.removeListener("end",l),e.removeListener("finish",l),e.removeListener("close",l)},e.on("data",a),e.on("error",s),e.on("end",l),e.on("finish",l),e.on("close",l);function u(){return new Promise(function(p,d){if(n)return d(n);if(i.length)return p({value:i.shift(),done:!1});if(r)return p({value:void 0,done:!0});o.push([p,d])})}var f={next:function(){return u()}};return ax&&(f[Symbol.asyncIterator]=function(){return this}),f}function G2e(e){var t=!1,n={next:function(){return t?Promise.resolve({value:void 0,done:!0}):(t=!0,new Promise(function(r,i){e.then(function(o){r({value:o,done:!1})}).catch(i)}))}};return ax&&(n[Symbol.asyncIterator]=function(){return this}),n}function bB(e){var t={next:function(){return e.read()}};return ax&&(t[Symbol.asyncIterator]=function(){return this}),t}function Q2e(e){var t=e;if(j2e(e)&&(t=e.body),U2e(t))return H2e(t);if(z2e(t))return bB(t.getReader());if(V2e(t))return bB(t.stream().getReader());if(W2e(t))return G2e(t.arrayBuffer());if(K2e(t))return q2e(t);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var wB=Object.prototype.hasOwnProperty;function Y2e(e,t){var n,r,i;return Ql(this,void 0,void 0,function(){var o,a,s,l,u,f,p,d,v,g,y,x,b,w,S,C,k,D,P,B;return Yl(this,function(V){switch(V.label){case 0:if(TextDecoder===void 0)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");o=new TextDecoder("utf-8"),a=(n=e.headers)===null||n===void 0?void 0:n.get("content-type"),s="boundary=",l=a!=null&&a.includes(s)?a==null?void 0:a.substring((a==null?void 0:a.indexOf(s))+s.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",u="--".concat(l),f="",p=Q2e(e),d=!0,V.label=1;case 1:return d?[4,p.next()]:[3,3];case 2:for(v=V.sent(),g=v.value,y=v.done,x=typeof g=="string"?g:o.decode(g),d=!y,f+=x,b=f.indexOf(u);b>-1;){if(w=void 0,B=[f.slice(0,b),f.slice(b+u.length)],w=B[0],f=B[1],w.trim()){if(S=w.indexOf(`\r
|
|
450
|
-
\r
|
|
451
|
-
`),C=X2e(w.slice(0,S)),k=C["content-type"],k&&k.toLowerCase().indexOf("application/json")===-1)throw new Error("Unsupported patch content type: application/json is required.");D=w.slice(S);try{P=Y7(e,D.replace(`\r
|
|
452
|
-
`,"")),(Object.keys(P).length>1||"data"in P||"incremental"in P||"errors"in P)&&((r=t.next)===null||r===void 0||r.call(t,P))}catch(U){YD(U,t)}}b=f.indexOf(u)}return[3,1];case 3:return(i=t.complete)===null||i===void 0||i.call(t),[2]}})})}function X2e(e){var t={};return e.split(`
|
|
453
|
-
`).forEach(function(n){var r=n.indexOf(":");if(r>-1){var i=n.slice(0,r).trim().toLowerCase(),o=n.slice(r+1).trim();t[i]=o}}),t}function Y7(e,t){if(e.status>=300){var n=function(){try{return JSON.parse(t)}catch{return t}};oR(e,n(),"Response not successful: Received status code ".concat(e.status))}try{return JSON.parse(t)}catch(i){var r=i;throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}function YD(e,t){var n,r;e.name!=="AbortError"&&(e.result&&e.result.errors&&e.result.data&&((n=t.next)===null||n===void 0||n.call(t,e.result)),(r=t.error)===null||r===void 0||r.call(t,e))}function J2e(e,t,n){Z2e(t)(e).then(function(r){var i,o;(i=n.next)===null||i===void 0||i.call(n,r),(o=n.complete)===null||o===void 0||o.call(n)}).catch(function(r){return YD(r,n)})}function Z2e(e){return function(t){return t.text().then(function(n){return Y7(t,n)}).then(function(n){return t.status>=300&&oR(t,n,"Response not successful: Received status code ".concat(t.status)),!Array.isArray(n)&&!wB.call(n,"data")&&!wB.call(n,"errors")&&oR(t,n,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(r){return r.operationName}):e.operationName,"'.")),n})}}var sR=function(e,t){var n;try{n=JSON.stringify(e)}catch(i){var r=__DEV__?new mn("Network request failed. ".concat(t," is not serializable: ").concat(i.message)):new mn(24);throw r.parseError=i,r}return n},ePe={includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},tPe={accept:"*/*","content-type":"application/json"},nPe={method:"POST"},rPe={http:ePe,headers:tPe,options:nPe},iPe=function(e,t){return t(e)};function oPe(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={},o={};n.forEach(function(p){i=Ae(Ae(Ae({},i),p.options),{headers:Ae(Ae({},i.headers),p.headers)}),p.credentials&&(i.credentials=p.credentials),o=Ae(Ae({},o),p.http)}),i.headers&&(i.headers=aPe(i.headers,o.preserveHeaderCase));var a=e.operationName,s=e.extensions,l=e.variables,u=e.query,f={operationName:a,variables:l};return o.includeExtensions&&(f.extensions=s),o.includeQuery&&(f.query=t(u,jIe)),{options:i,body:f}}function aPe(e,t){if(!t){var n=Object.create(null);return Object.keys(Object(e)).forEach(function(o){n[o.toLowerCase()]=e[o]}),n}var r=Object.create(null);Object.keys(Object(e)).forEach(function(o){r[o.toLowerCase()]={originalName:o,value:e[o]}});var i=Object.create(null);return Object.keys(r).forEach(function(o){i[r[o].originalName]=r[o].value}),i}var sPe=function(e){if(!e&&typeof fetch>"u")throw __DEV__?new mn(`
|
|
454
|
-
"fetch" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:
|
|
455
|
-
|
|
456
|
-
import fetch from 'cross-fetch';
|
|
457
|
-
import { ApolloClient, HttpLink } from '@apollo/client';
|
|
458
|
-
const client = new ApolloClient({
|
|
459
|
-
link: new HttpLink({ uri: '/graphql', fetch })
|
|
460
|
-
});
|
|
461
|
-
`):new mn(23)},lPe=function(){if(typeof AbortController>"u")return{controller:!1,signal:!1};var e=new AbortController,t=e.signal;return{controller:e,signal:t}},uPe=function(e,t){var n=e.getContext(),r=n.uri;return r||(typeof t=="function"?t(e):t||"/graphql")};function cPe(e,t){var n=[],r=function(p,d){n.push("".concat(p,"=").concat(encodeURIComponent(d)))};if("query"in t&&r("query",t.query),t.operationName&&r("operationName",t.operationName),t.variables){var i=void 0;try{i=sR(t.variables,"Variables map")}catch(p){return{parseError:p}}r("variables",i)}if(t.extensions){var o=void 0;try{o=sR(t.extensions,"Extensions map")}catch(p){return{parseError:p}}r("extensions",o)}var a="",s=e,l=e.indexOf("#");l!==-1&&(a=e.substr(l),s=e.substr(0,l));var u=s.indexOf("?")===-1?"?":"&",f=s+u+n.join("&")+a;return{newURI:f}}var _B=No(function(){return fetch}),fPe=function(e){e===void 0&&(e={});var t=e.uri,n=t===void 0?"/graphql":t,r=e.fetch,i=e.print,o=i===void 0?iPe:i,a=e.includeExtensions,s=e.preserveHeaderCase,l=e.useGETForQueries,u=e.includeUnusedVariables,f=u===void 0?!1:u,p=xu(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);__DEV__&&sPe(r||_B);var d={http:{includeExtensions:a,preserveHeaderCase:s},options:p.fetchOptions,credentials:p.credentials,headers:p.headers};return new Av(function(v){var g=uPe(v,n),y=v.getContext(),x={};if(y.clientAwareness){var b=y.clientAwareness,w=b.name,S=b.version;w&&(x["apollographql-client-name"]=w),S&&(x["apollographql-client-version"]=S)}var C=Ae(Ae({},x),y.headers),k={http:y.http,options:y.fetchOptions,credentials:y.credentials,headers:C},D=oPe(v,o,rPe,d,k),P=D.options,B=D.body;if(B.variables&&!f){var V=new Set(Object.keys(B.variables));ll(v.query,{Variable:function(Y,ee,G){G&&G.kind!=="VariableDefinition"&&V.delete(Y.name.value)}}),V.size&&(B.variables=Ae({},B.variables),V.forEach(function(Y){delete B.variables[Y]}))}var U;if(!P.signal){var W=lPe(),se=W.controller,ne=W.signal;U=se,U&&(P.signal=ne)}var re=function(Y){return Y.kind==="OperationDefinition"&&Y.operation==="mutation"};if(l&&!v.query.definitions.some(re)&&(P.method="GET"),LD(["defer"],v.query)&&(P.headers=P.headers||{},P.headers.accept="multipart/mixed; deferSpec=20220824, application/json"),P.method==="GET"){var Z=cPe(g,B),F=Z.newURI,te=Z.parseError;if(te)return vB(te);g=F}else try{P.body=sR(B,"Payload")}catch(Y){return vB(Y)}return new jn(function(Y){var ee=r||No(function(){return fetch})||_B;return ee(g,P).then(function(G){var L;v.setContext({response:G});var A=(L=G.headers)===null||L===void 0?void 0:L.get("content-type");return A!==null&&/^multipart\/mixed/i.test(A)?Y2e(G,Y):J2e(G,v,Y)}).catch(function(G){return YD(G,Y)}),function(){U&&U.abort()}})})},dPe=function(e){vs(t,e);function t(n){n===void 0&&(n={});var r=e.call(this,fPe(n).request)||this;return r.options=n,r}return t}(Av),X7=Object.prototype,xB=X7.toString,pPe=X7.hasOwnProperty,SB=Function.prototype.toString,lR=new Map;function qn(e,t){try{return uR(e,t)}finally{lR.clear()}}function uR(e,t){if(e===t)return!0;var n=xB.call(e),r=xB.call(t);if(n!==r)return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(CB(e,t))return!0;var i=EB(e),o=EB(t),a=i.length;if(a!==o.length)return!1;for(var s=0;s<a;++s)if(!pPe.call(t,i[s]))return!1;for(var s=0;s<a;++s){var l=i[s];if(!uR(e[l],t[l]))return!1}return!0}case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!==e)return t!==t;case"[object Boolean]":case"[object Date]":return+e==+t;case"[object RegExp]":case"[object String]":return e=="".concat(t);case"[object Map]":case"[object Set]":{if(e.size!==t.size)return!1;if(CB(e,t))return!0;for(var u=e.entries(),f=n==="[object Map]";;){var p=u.next();if(p.done)break;var d=p.value,v=d[0],g=d[1];if(!t.has(v)||f&&!uR(g,t.get(v)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":{var y=e.byteLength;if(y===t.byteLength)for(;y--&&e[y]===t[y];);return y===-1}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{var x=SB.call(e);return x!==SB.call(t)?!1:!gPe(x,mPe)}}return!1}function EB(e){return Object.keys(e).filter(hPe,e)}function hPe(e){return this[e]!==void 0}var mPe="{ [native code] }";function gPe(e,t){var n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}function CB(e,t){var n=lR.get(e);if(n){if(n.has(t))return!0}else lR.set(e,n=new Set);return n.add(t),!1}var vPe=function(){return Object.create(null)},J7=Array.prototype,yPe=J7.forEach,bPe=J7.slice,Dv=function(){function e(t,n){t===void 0&&(t=!0),n===void 0&&(n=vPe),this.weakness=t,this.makeData=n}return e.prototype.lookup=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return this.lookupArray(t)},e.prototype.lookupArray=function(t){var n=this;return yPe.call(t,function(r){return n=n.getChildTrie(r)}),n.data||(n.data=this.makeData(bPe.call(t)))},e.prototype.getChildTrie=function(t){var n=this.weakness&&wPe(t)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),r=n.get(t);return r||n.set(t,r=new e(this.weakness,this.makeData)),r},e}();function wPe(e){switch(typeof e){case"object":if(e===null)break;case"function":return!0}return!1}var qr=null,kB={},_Pe=1,xPe=function(){return function(){function e(){this.id=["slot",_Pe++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var t=qr;t;t=t.parent)if(this.id in t.slots){var n=t.slots[this.id];if(n===kB)break;return t!==qr&&(qr.slots[this.id]=n),!0}return qr&&(qr.slots[this.id]=kB),!1},e.prototype.getValue=function(){if(this.hasValue())return qr.slots[this.id]},e.prototype.withValue=function(t,n,r,i){var o,a=(o={__proto__:null},o[this.id]=t,o),s=qr;qr={parent:s,slots:a};try{return n.apply(i,r)}finally{qr=s}},e.bind=function(t){var n=qr;return function(){var r=qr;try{return qr=n,t.apply(this,arguments)}finally{qr=r}}},e.noContext=function(t,n,r){if(qr){var i=qr;try{return qr=null,t.apply(r,n)}finally{qr=i}}else return t.apply(r,n)},e}()};function TB(e){try{return e()}catch{}}var rC="@wry/context:Slot",SPe=TB(function(){return globalThis})||TB(function(){return global})||Object.create(null),RB=SPe,sx=RB[rC]||Array[rC]||function(e){try{Object.defineProperty(RB,rC,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(xPe());sx.bind;sx.noContext;function EPe(){}var CPe=function(){function e(t,n){t===void 0&&(t=1/0),n===void 0&&(n=EPe),this.max=t,this.dispose=n,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(t){return this.map.has(t)},e.prototype.get=function(t){var n=this.getNode(t);return n&&n.value},e.prototype.getNode=function(t){var n=this.map.get(t);if(n&&n!==this.newest){var r=n.older,i=n.newer;i&&(i.older=r),r&&(r.newer=i),n.older=this.newest,n.older.newer=n,n.newer=null,this.newest=n,n===this.oldest&&(this.oldest=i)}return n},e.prototype.set=function(t,n){var r=this.getNode(t);return r?r.value=n:(r={key:t,value:n,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(t,r),r.value)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(t){var n=this.map.get(t);return n?(n===this.newest&&(this.newest=n.older),n===this.oldest&&(this.oldest=n.newer),n.newer&&(n.newer.older=n.older),n.older&&(n.older.newer=n.newer),this.map.delete(t),this.dispose(n.value,t),!0):!1},e}(),lx=new sx,iC,kPe=Object.prototype.hasOwnProperty,XD=(iC=Array.from,iC===void 0?function(e){var t=[];return e.forEach(function(n){return t.push(n)}),t}:iC);function H1(e){var t=e.unsubscribe;typeof t=="function"&&(e.unsubscribe=void 0,t())}var Vg=[],TPe=100;function wp(e,t){if(!e)throw new Error(t||"assertion failure")}function RPe(e,t){var n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}function Z7(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function OPe(e){return e.slice(0)}var APe=function(){function e(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}return e.prototype.peek=function(){if(this.value.length===1&&!Eu(this))return OB(this),this.value[0]},e.prototype.recompute=function(t){return wp(!this.recomputing,"already recomputing"),OB(this),Eu(this)?DPe(this,t):Z7(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,eW(this),H1(this))},e.prototype.dispose=function(){var t=this;this.setDirty(),oW(this),JD(this,function(n,r){n.setDirty(),aW(n,t)})},e.prototype.forget=function(){this.dispose()},e.prototype.dependOn=function(t){t.add(this),this.deps||(this.deps=Vg.pop()||new Set),this.deps.add(t)},e.prototype.forgetDeps=function(){var t=this;this.deps&&(XD(this.deps).forEach(function(n){return n.delete(t)}),this.deps.clear(),Vg.push(this.deps),this.deps=null)},e.count=0,e}();function OB(e){var t=lx.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),Eu(e)?nW(t,e):rW(t,e),t}function DPe(e,t){return oW(e),lx.withValue(e,IPe,[e,t]),$Pe(e,t)&&PPe(e),Z7(e.value)}function IPe(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(n){e.value[1]=n}e.recomputing=!1}function Eu(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function PPe(e){e.dirty=!1,!Eu(e)&&tW(e)}function eW(e){JD(e,nW)}function tW(e){JD(e,rW)}function JD(e,t){var n=e.parents.size;if(n)for(var r=XD(e.parents),i=0;i<n;++i)t(r[i],e)}function nW(e,t){wp(e.childValues.has(t)),wp(Eu(t));var n=!Eu(e);if(!e.dirtyChildren)e.dirtyChildren=Vg.pop()||new Set;else if(e.dirtyChildren.has(t))return;e.dirtyChildren.add(t),n&&eW(e)}function rW(e,t){wp(e.childValues.has(t)),wp(!Eu(t));var n=e.childValues.get(t);n.length===0?e.childValues.set(t,OPe(t.value)):RPe(n,t.value)||e.setDirty(),iW(e,t),!Eu(e)&&tW(e)}function iW(e,t){var n=e.dirtyChildren;n&&(n.delete(t),n.size===0&&(Vg.length<TPe&&Vg.push(n),e.dirtyChildren=null))}function oW(e){e.childValues.size>0&&e.childValues.forEach(function(t,n){aW(e,n)}),e.forgetDeps(),wp(e.dirtyChildren===null)}function aW(e,t){t.parents.delete(e),e.childValues.delete(t),iW(e,t)}function $Pe(e,t){if(typeof e.subscribe=="function")try{H1(e),e.unsubscribe=e.subscribe.apply(null,t)}catch{return e.setDirty(),!1}return!0}var FPe={setDirty:!0,dispose:!0,forget:!0};function sW(e){var t=new Map,n=e&&e.subscribe;function r(i){var o=lx.getValue();if(o){var a=t.get(i);a||t.set(i,a=new Set),o.dependOn(a),typeof n=="function"&&(H1(a),a.unsubscribe=n(i))}}return r.dirty=function(o,a){var s=t.get(o);if(s){var l=a&&kPe.call(FPe,a)?a:"setDirty";XD(s).forEach(function(u){return u[l]()}),t.delete(o),H1(s)}},r}function lW(){var e=new Dv(typeof WeakMap=="function");return function(){return e.lookupArray(arguments)}}lW();var oC=new Set;function q1(e,t){t===void 0&&(t=Object.create(null));var n=new CPe(t.max||Math.pow(2,16),function(u){return u.dispose()}),r=t.keyArgs,i=t.makeCacheKey||lW(),o=function(){var u=i.apply(null,r?r.apply(null,arguments):arguments);if(u===void 0)return e.apply(null,arguments);var f=n.get(u);f||(n.set(u,f=new APe(e)),f.subscribe=t.subscribe,f.forget=function(){return n.delete(u)});var p=f.recompute(Array.prototype.slice.call(arguments));return n.set(u,f),oC.add(n),lx.hasValue()||(oC.forEach(function(d){return d.clean()}),oC.clear()),p};Object.defineProperty(o,"size",{get:function(){return n.map.size},configurable:!1,enumerable:!1});function a(u){var f=n.get(u);f&&f.setDirty()}o.dirtyKey=a,o.dirty=function(){a(i.apply(null,arguments))};function s(u){var f=n.get(u);if(f)return f.peek()}o.peekKey=s,o.peek=function(){return s(i.apply(null,arguments))};function l(u){return n.delete(u)}return o.forgetKey=l,o.forget=function(){return l(i.apply(null,arguments))},o.makeCacheKey=i,o.getKey=r?function(){return i.apply(null,r.apply(null,arguments))}:i,Object.freeze(o)}var LPe=function(){function e(){this.getFragmentDoc=q1(GIe)}return e.prototype.batch=function(t){var n=this,r=typeof t.optimistic=="string"?t.optimistic:t.optimistic===!1?null:void 0,i;return this.performTransaction(function(){return i=t.update(n)},r),i},e.prototype.recordOptimisticTransaction=function(t,n){this.performTransaction(t,n)},e.prototype.transformDocument=function(t){return t},e.prototype.transformForLink=function(t){return t},e.prototype.identify=function(t){},e.prototype.gc=function(){return[]},e.prototype.modify=function(t){return!1},e.prototype.readQuery=function(t,n){return n===void 0&&(n=!!t.optimistic),this.read(Ae(Ae({},t),{rootId:t.id||"ROOT_QUERY",optimistic:n}))},e.prototype.readFragment=function(t,n){return n===void 0&&(n=!!t.optimistic),this.read(Ae(Ae({},t),{query:this.getFragmentDoc(t.fragment,t.fragmentName),rootId:t.id,optimistic:n}))},e.prototype.writeQuery=function(t){var n=t.id,r=t.data,i=xu(t,["id","data"]);return this.write(Object.assign(i,{dataId:n||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(t){var n=t.id,r=t.data,i=t.fragment,o=t.fragmentName,a=xu(t,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(i,o),dataId:n,result:r}))},e.prototype.updateQuery=function(t,n){return this.batch({update:function(r){var i=r.readQuery(t),o=n(i);return o==null?i:(r.writeQuery(Ae(Ae({},t),{data:o})),o)}})},e.prototype.updateFragment=function(t,n){return this.batch({update:function(r){var i=r.readFragment(t),o=n(i);return o==null?i:(r.writeFragment(Ae(Ae({},t),{data:o})),o)}})},e}(),uW=function(e){vs(t,e);function t(n,r,i,o){var a,s=e.call(this,n)||this;if(s.message=n,s.path=r,s.query=i,s.variables=o,Array.isArray(s.path)){s.missing=s.message;for(var l=s.path.length-1;l>=0;--l)s.missing=(a={},a[s.path[l]]=s.missing,a)}else s.missing=s.path;return s.__proto__=t.prototype,s}return t}(Error),Mr=Object.prototype.hasOwnProperty;function sm(e){return e==null}function cW(e,t){var n=e.__typename,r=e.id,i=e._id;if(typeof n=="string"&&(t&&(t.keyObject=sm(r)?sm(i)?void 0:{_id:i}:{id:r}),sm(r)&&!sm(i)&&(r=i),!sm(r)))return"".concat(n,":").concat(typeof r=="number"||typeof r=="string"?r:JSON.stringify(r))}var fW={dataIdFromObject:cW,addTypename:!0,resultCaching:!0,canonizeResults:!1};function MPe(e){return Ov(fW,e)}function dW(e){var t=e.canonizeResults;return t===void 0?fW.canonizeResults:t}function NPe(e,t){return xn(t)?e.get(t.__ref,"__typename"):t&&t.__typename}var pW=/^[_a-z][_0-9a-z]*/i;function Cu(e){var t=e.match(pW);return t?t[0]:e}function cR(e,t,n){return cr(t)?fr(t)?t.every(function(r){return cR(e,r,n)}):e.selections.every(function(r){if(Kc(r)&&rx(r,n)){var i=Wc(r);return Mr.call(t,i)&&(!r.selectionSet||cR(r.selectionSet,t[i],n))}return!0}):!1}function Cd(e){return cr(e)&&!xn(e)&&!fr(e)}function BPe(){return new Su}function hW(e,t){var n=MD(jD(e));return{fragmentMap:n,lookupFragment:function(r){var i=n[r];return!i&&t&&(i=t.lookup(r)),i||null}}}var Lb=Object.create(null),aC=function(){return Lb},AB=Object.create(null),Wg=function(){function e(t,n){var r=this;this.policies=t,this.group=n,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(i,o){return Ug(xn(i)?r.get(i.__ref,o):i&&i[o])},this.canRead=function(i){return xn(i)?r.has(i.__ref):typeof i=="object"},this.toReference=function(i,o){if(typeof i=="string")return Wd(i);if(xn(i))return i;var a=r.policies.identify(i)[0];if(a){var s=Wd(a);return o&&r.merge(a,i),s}}}return e.prototype.toObject=function(){return Ae({},this.data)},e.prototype.has=function(t){return this.lookup(t,!0)!==void 0},e.prototype.get=function(t,n){if(this.group.depend(t,n),Mr.call(this.data,t)){var r=this.data[t];if(r&&Mr.call(r,n))return r[n]}if(n==="__typename"&&Mr.call(this.policies.rootTypenamesById,t))return this.policies.rootTypenamesById[t];if(this instanceof Ul)return this.parent.get(t,n)},e.prototype.lookup=function(t,n){if(n&&this.group.depend(t,"__exists"),Mr.call(this.data,t))return this.data[t];if(this instanceof Ul)return this.parent.lookup(t,n);if(this.policies.rootTypenamesById[t])return Object.create(null)},e.prototype.merge=function(t,n){var r=this,i;xn(t)&&(t=t.__ref),xn(n)&&(n=n.__ref);var o=typeof t=="string"?this.lookup(i=t):t,a=typeof n=="string"?this.lookup(i=n):n;if(a){__DEV__?Ze(typeof i=="string","store.merge expects a string ID"):Ze(typeof i=="string",1);var s=new Su(zPe).merge(o,a);if(this.data[i]=s,s!==o&&(delete this.refs[i],this.group.caching)){var l=Object.create(null);o||(l.__exists=1),Object.keys(a).forEach(function(u){if(!o||o[u]!==s[u]){l[u]=1;var f=Cu(u);f!==u&&!r.policies.hasKeyArgs(s.__typename,f)&&(l[f]=1),s[u]===void 0&&!(r instanceof Ul)&&delete s[u]}}),l.__typename&&!(o&&o.__typename)&&this.policies.rootTypenamesById[i]===s.__typename&&delete l.__typename,Object.keys(l).forEach(function(u){return r.group.dirty(i,u)})}}},e.prototype.modify=function(t,n){var r=this,i=this.lookup(t);if(i){var o=Object.create(null),a=!1,s=!0,l={DELETE:Lb,INVALIDATE:AB,isReference:xn,toReference:this.toReference,canRead:this.canRead,readField:function(u,f){return r.policies.readField(typeof u=="string"?{fieldName:u,from:f||Wd(t)}:u,{store:r})}};if(Object.keys(i).forEach(function(u){var f=Cu(u),p=i[u];if(p!==void 0){var d=typeof n=="function"?n:n[u]||n[f];if(d){var v=d===aC?Lb:d(Ug(p),Ae(Ae({},l),{fieldName:f,storeFieldName:u,storage:r.getStorage(t,u)}));v===AB?r.group.dirty(t,u):(v===Lb&&(v=void 0),v!==p&&(o[u]=v,a=!0,p=v))}p!==void 0&&(s=!1)}}),a)return this.merge(t,o),s&&(this instanceof Ul?this.data[t]=void 0:delete this.data[t],this.group.dirty(t,"__exists")),!0}return!1},e.prototype.delete=function(t,n,r){var i,o=this.lookup(t);if(o){var a=this.getFieldValue(o,"__typename"),s=n&&r?this.policies.getStoreFieldName({typename:a,fieldName:n,args:r}):n;return this.modify(t,s?(i={},i[s]=aC,i):aC)}return!1},e.prototype.evict=function(t,n){var r=!1;return t.id&&(Mr.call(this.data,t.id)&&(r=this.delete(t.id,t.fieldName,t.args)),this instanceof Ul&&this!==n&&(r=this.parent.evict(t,n)||r),(t.fieldName||r)&&this.group.dirty(t.id,t.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var t=this,n=this.toObject(),r=[];return this.getRootIdSet().forEach(function(i){Mr.call(t.policies.rootTypenamesById,i)||r.push(i)}),r.length&&(n.__META={extraRootIds:r.sort()}),n},e.prototype.replace=function(t){var n=this;if(Object.keys(this.data).forEach(function(o){t&&Mr.call(t,o)||n.delete(o)}),t){var r=t.__META,i=xu(t,["__META"]);Object.keys(i).forEach(function(o){n.merge(o,i[o])}),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(t){return this.rootIds[t]=(this.rootIds[t]||0)+1},e.prototype.release=function(t){if(this.rootIds[t]>0){var n=--this.rootIds[t];return n||delete this.rootIds[t],n}return 0},e.prototype.getRootIdSet=function(t){return t===void 0&&(t=new Set),Object.keys(this.rootIds).forEach(t.add,t),this instanceof Ul?this.parent.getRootIdSet(t):Object.keys(this.policies.rootTypenamesById).forEach(t.add,t),t},e.prototype.gc=function(){var t=this,n=this.getRootIdSet(),r=this.toObject();n.forEach(function(a){Mr.call(r,a)&&(Object.keys(t.findChildRefIds(a)).forEach(n.add,n),delete r[a])});var i=Object.keys(r);if(i.length){for(var o=this;o instanceof Ul;)o=o.parent;i.forEach(function(a){return o.delete(a)})}return i},e.prototype.findChildRefIds=function(t){if(!Mr.call(this.refs,t)){var n=this.refs[t]=Object.create(null),r=this.data[t];if(!r)return n;var i=new Set([r]);i.forEach(function(o){xn(o)&&(n[o.__ref]=!0),cr(o)&&Object.keys(o).forEach(function(a){var s=o[a];cr(s)&&i.add(s)})})}return this.refs[t]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),mW=function(){function e(t,n){n===void 0&&(n=null),this.caching=t,this.parent=n,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?sW():null,this.keyMaker=new Dv(Lu)},e.prototype.depend=function(t,n){if(this.d){this.d(sC(t,n));var r=Cu(n);r!==n&&this.d(sC(t,r)),this.parent&&this.parent.depend(t,n)}},e.prototype.dirty=function(t,n){this.d&&this.d.dirty(sC(t,n),n==="__exists"?"forget":"setDirty")},e}();function sC(e,t){return t+"#"+e}function DB(e,t){ag(e)&&e.group.depend(t,"__exists")}(function(e){var t=function(n){vs(r,n);function r(i){var o=i.policies,a=i.resultCaching,s=a===void 0?!0:a,l=i.seed,u=n.call(this,o,new mW(s))||this;return u.stump=new jPe(u),u.storageTrie=new Dv(Lu),l&&u.replace(l),u}return r.prototype.addLayer=function(i,o){return this.stump.addLayer(i,o)},r.prototype.removeLayer=function(){return this},r.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},r}(e);e.Root=t})(Wg||(Wg={}));var Ul=function(e){vs(t,e);function t(n,r,i,o){var a=e.call(this,r.policies,o)||this;return a.id=n,a.parent=r,a.replay=i,a.group=o,i(a),a}return t.prototype.addLayer=function(n,r){return new t(n,this,r,this.group)},t.prototype.removeLayer=function(n){var r=this,i=this.parent.removeLayer(n);return n===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(o){var a=r.data[o],s=i.lookup(o);s?a?a!==s&&Object.keys(a).forEach(function(l){qn(a[l],s[l])||r.group.dirty(o,l)}):(r.group.dirty(o,"__exists"),Object.keys(s).forEach(function(l){r.group.dirty(o,l)})):r.delete(o)}),i):i===this.parent?this:i.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return Ae(Ae({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(n){var r=this.parent.findChildRefIds(n);return Mr.call(this.data,n)?Ae(Ae({},r),e.prototype.findChildRefIds.call(this,n)):r},t.prototype.getStorage=function(){for(var n=this.parent;n.parent;)n=n.parent;return n.getStorage.apply(n,arguments)},t}(Wg),jPe=function(e){vs(t,e);function t(n){return e.call(this,"EntityStore.Stump",n,function(){},new mW(n.group.caching,n.group))||this}return t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(Ul);function zPe(e,t,n){var r=e[n],i=t[n];return qn(r,i)?r:i}function ag(e){return!!(e instanceof Wg&&e.group.caching)}function UPe(e){return cr(e)?fr(e)?e.slice(0):Ae({__proto__:Object.getPrototypeOf(e)},e):e}var fR=function(){function e(){this.known=new(q7?WeakSet:Set),this.pool=new Dv(Lu),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(t){return cr(t)&&this.known.has(t)},e.prototype.pass=function(t){if(cr(t)){var n=UPe(t);return this.passes.set(n,t),n}return t},e.prototype.admit=function(t){var n=this;if(cr(t)){var r=this.passes.get(t);if(r)return r;var i=Object.getPrototypeOf(t);switch(i){case Array.prototype:{if(this.known.has(t))return t;var o=t.map(this.admit,this),a=this.pool.lookupArray(o);return a.array||(this.known.add(a.array=o),__DEV__&&Object.freeze(o)),a.array}case null:case Object.prototype:{if(this.known.has(t))return t;var s=Object.getPrototypeOf(t),l=[s],u=this.sortedKeys(t);l.push(u.json);var f=l.length;u.sorted.forEach(function(v){l.push(n.admit(t[v]))});var a=this.pool.lookupArray(l);if(!a.object){var p=a.object=Object.create(s);this.known.add(p),u.sorted.forEach(function(v,g){p[v]=l[f+g]}),__DEV__&&Object.freeze(p)}return a.object}}}return t},e.prototype.sortedKeys=function(t){var n=Object.keys(t),r=this.pool.lookupArray(n);if(!r.keys){n.sort();var i=JSON.stringify(n);(r.keys=this.keysByJSON.get(i))||this.keysByJSON.set(i,r.keys={sorted:n,json:i})}return r.keys},e}(),Oc=Object.assign(function(e){if(cr(e)){dR===void 0&&IB();var t=dR.admit(e),n=pR.get(t);return n===void 0&&pR.set(t,n=JSON.stringify(t)),n}return JSON.stringify(e)},{reset:IB}),dR,pR;function IB(){dR=new fR,pR=new(Lu?WeakMap:Map)}function PB(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var VPe=function(){function e(t){var n=this;this.knownResults=new(Lu?WeakMap:Map),this.config=Ov(t,{addTypename:t.addTypename!==!1,canonizeResults:dW(t)}),this.canon=t.canon||new fR,this.executeSelectionSet=q1(function(r){var i,o=r.context.canonizeResults,a=PB(r);a[3]=!o;var s=(i=n.executeSelectionSet).peek.apply(i,a);return s?o?Ae(Ae({},s),{result:n.canon.admit(s.result)}):s:(DB(r.context.store,r.enclosingRef.__ref),n.execSelectionSetImpl(r))},{max:this.config.resultCacheMaxSize,keyArgs:PB,makeCacheKey:function(r,i,o,a){if(ag(o.store))return o.store.makeCacheKey(r,xn(i)?i.__ref:i,o.varString,a)}}),this.executeSubSelectedArray=q1(function(r){return DB(r.context.store,r.enclosingRef.__ref),n.execSubSelectedArrayImpl(r)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(r){var i=r.field,o=r.array,a=r.context;if(ag(a.store))return a.store.makeCacheKey(i,o,a.varString)}})}return e.prototype.resetCanon=function(){this.canon=new fR},e.prototype.diffQueryAgainstStore=function(t){var n=t.store,r=t.query,i=t.rootId,o=i===void 0?"ROOT_QUERY":i,a=t.variables,s=t.returnPartialData,l=s===void 0?!0:s,u=t.canonizeResults,f=u===void 0?this.config.canonizeResults:u,p=this.config.cache.policies;a=Ae(Ae({},UD(j7(r))),a);var d=Wd(o),v=this.executeSelectionSet({selectionSet:zD(r).selectionSet,objectOrReference:d,enclosingRef:d,context:Ae({store:n,query:r,policies:p,variables:a,varString:Oc(a),canonizeResults:f},hW(r,this.config.fragments))}),g;if(v.missing&&(g=[new uW(WPe(v.missing),v.missing,r,a)],!l))throw g[0];return{result:v.result,complete:!g,missing:g}},e.prototype.isFresh=function(t,n,r,i){if(ag(i.store)&&this.knownResults.get(t)===r){var o=this.executeSelectionSet.peek(r,n,i,this.canon.isKnown(t));if(o&&t===o.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(t){var n=this,r=t.selectionSet,i=t.objectOrReference,o=t.enclosingRef,a=t.context;if(xn(i)&&!a.policies.rootTypenamesById[i.__ref]&&!a.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var s=a.variables,l=a.policies,u=a.store,f=u.getFieldValue(i,"__typename"),p=[],d,v=new Su;this.config.addTypename&&typeof f=="string"&&!l.rootIdsByTypename[f]&&p.push({__typename:f});function g(S,C){var k;return S.missing&&(d=v.merge(d,(k={},k[C]=S.missing,k))),S.result}var y=new Set(r.selections);y.forEach(function(S){var C,k;if(rx(S,s))if(Kc(S)){var D=l.readField({fieldName:S.name.value,field:S,variables:a.variables,from:i},a),P=Wc(S);D===void 0?VD.added(S)||(d=v.merge(d,(C={},C[P]="Can't find field '".concat(S.name.value,"' on ").concat(xn(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),C))):fr(D)?D=g(n.executeSubSelectedArray({field:S,array:D,enclosingRef:o,context:a}),P):S.selectionSet?D!=null&&(D=g(n.executeSelectionSet({selectionSet:S.selectionSet,objectOrReference:D,enclosingRef:xn(D)?D:o,context:a}),P)):a.canonizeResults&&(D=n.canon.pass(D)),D!==void 0&&p.push((k={},k[P]=D,k))}else{var B=ND(S,a.lookupFragment);if(!B&&S.kind===gt.FRAGMENT_SPREAD)throw __DEV__?new mn("No fragment named ".concat(S.name.value)):new mn(5);B&&l.fragmentMatches(B,f)&&B.selectionSet.selections.forEach(y.add,y)}});var x=WD(p),b={result:x,missing:d},w=a.canonizeResults?this.canon.admit(b):Ug(b);return w.result&&this.knownResults.set(w.result,r),w},e.prototype.execSubSelectedArrayImpl=function(t){var n=this,r=t.field,i=t.array,o=t.enclosingRef,a=t.context,s,l=new Su;function u(f,p){var d;return f.missing&&(s=l.merge(s,(d={},d[p]=f.missing,d))),f.result}return r.selectionSet&&(i=i.filter(a.store.canRead)),i=i.map(function(f,p){return f===null?null:fr(f)?u(n.executeSubSelectedArray({field:r,array:f,enclosingRef:o,context:a}),p):r.selectionSet?u(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:f,enclosingRef:xn(f)?f:o,context:a}),p):(__DEV__&&KPe(a.store,r,f),f)}),{result:a.canonizeResults?this.canon.admit(i):i,missing:s}},e}();function WPe(e){try{JSON.stringify(e,function(t,n){if(typeof n=="string")throw n;return n})}catch(t){return t}}function KPe(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach(function(i){cr(i)&&(__DEV__?Ze(!xn(i),"Missing selection set for object of type ".concat(NPe(e,i)," returned for query field ").concat(t.name.value)):Ze(!xn(i),6),Object.values(i).forEach(r.add,r))})}}var ZD=new sx,$B=new WeakMap;function sg(e){var t=$B.get(e);return t||$B.set(e,t={vars:new Set,dep:sW()}),t}function FB(e){sg(e).vars.forEach(function(t){return t.forgetCache(e)})}function HPe(e){sg(e).vars.forEach(function(t){return t.attachCache(e)})}function qPe(e){var t=new Set,n=new Set,r=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach(function(l){sg(l).dep.dirty(r),GPe(l)});var a=Array.from(n);n.clear(),a.forEach(function(l){return l(e)})}}else{var s=ZD.getValue();s&&(i(s),sg(s).dep(r))}return e};r.onNextChange=function(o){return n.add(o),function(){n.delete(o)}};var i=r.attachCache=function(o){return t.add(o),sg(o).vars.add(r),r};return r.forgetCache=function(o){return t.delete(o)},r}function GPe(e){e.broadcastWatches&&e.broadcastWatches()}var LB=Object.create(null);function eI(e){var t=JSON.stringify(e);return LB[t]||(LB[t]=Object.create(null))}function MB(e){var t=eI(e);return t.keyFieldsFn||(t.keyFieldsFn=function(n,r){var i=function(a,s){return r.readField(s,a)},o=r.keyObject=tI(e,function(a){var s=qd(r.storeObject,a,i);return s===void 0&&n!==r.storeObject&&Mr.call(n,a[0])&&(s=qd(n,a,vW)),__DEV__?Ze(s!==void 0,"Missing field '".concat(a.join("."),"' while extracting keyFields from ").concat(JSON.stringify(n))):Ze(s!==void 0,2),s});return"".concat(r.typename,":").concat(JSON.stringify(o))})}function NB(e){var t=eI(e);return t.keyArgsFn||(t.keyArgsFn=function(n,r){var i=r.field,o=r.variables,a=r.fieldName,s=tI(e,function(u){var f=u[0],p=f.charAt(0);if(p==="@"){if(i&&Wi(i.directives)){var d=f.slice(1),v=i.directives.find(function(b){return b.name.value===d}),g=v&&ix(v,o);return g&&qd(g,u.slice(1))}return}if(p==="$"){var y=f.slice(1);if(o&&Mr.call(o,y)){var x=u.slice(0);return x[0]=y,qd(o,x)}return}if(n)return qd(n,u)}),l=JSON.stringify(s);return(n||l!=="{}")&&(a+=":"+l),a})}function tI(e,t){var n=new Su;return gW(e).reduce(function(r,i){var o,a=t(i);if(a!==void 0){for(var s=i.length-1;s>=0;--s)a=(o={},o[i[s]]=a,o);r=n.merge(r,a)}return r},Object.create(null))}function gW(e){var t=eI(e);if(!t.paths){var n=t.paths=[],r=[];e.forEach(function(i,o){fr(i)?(gW(i).forEach(function(a){return n.push(r.concat(a))}),r.length=0):(r.push(i),fr(e[o+1])||(n.push(r.slice(0)),r.length=0))})}return t.paths}function vW(e,t){return e[t]}function qd(e,t,n){return n=n||vW,yW(t.reduce(function r(i,o){return fr(i)?i.map(function(a){return r(a,o)}):i&&n(i,o)},e))}function yW(e){return cr(e)?fr(e)?e.map(yW):tI(Object.keys(e).sort(),function(t){return qd(e,t)}):e}BD.setStringify(Oc);function hR(e){return e.args!==void 0?e.args:e.field?ix(e.field,e.variables):null}var QPe=function(){},BB=function(e,t){return t.fieldName},jB=function(e,t,n){var r=n.mergeObjects;return r(e,t)},zB=function(e,t){return t},YPe=function(){function e(t){this.config=t,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=Ae({dataIdFromObject:cW},t),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),t.possibleTypes&&this.addPossibleTypes(t.possibleTypes),t.typePolicies&&this.addTypePolicies(t.typePolicies)}return e.prototype.identify=function(t,n){var r,i=this,o=n&&(n.typename||((r=n.storeObject)===null||r===void 0?void 0:r.__typename))||t.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var a=n&&n.storeObject||t,s=Ae(Ae({},n),{typename:o,storeObject:a,readField:n&&n.readField||function(){var d=nI(arguments,a);return i.readField(d,{store:i.cache.data,variables:d.variables})}}),l,u=o&&this.getTypePolicy(o),f=u&&u.keyFn||this.config.dataIdFromObject;f;){var p=f(t,s);if(fr(p))f=MB(p);else{l=p;break}}return l=l?String(l):void 0,s.keyObject?[l,s.keyObject]:[l]},e.prototype.addTypePolicies=function(t){var n=this;Object.keys(t).forEach(function(r){var i=t[r],o=i.queryType,a=i.mutationType,s=i.subscriptionType,l=xu(i,["queryType","mutationType","subscriptionType"]);o&&n.setRootTypename("Query",r),a&&n.setRootTypename("Mutation",r),s&&n.setRootTypename("Subscription",r),Mr.call(n.toBeAdded,r)?n.toBeAdded[r].push(l):n.toBeAdded[r]=[l]})},e.prototype.updateTypePolicy=function(t,n){var r=this,i=this.getTypePolicy(t),o=n.keyFields,a=n.fields;function s(l,u){l.merge=typeof u=="function"?u:u===!0?jB:u===!1?zB:l.merge}s(i,n.merge),i.keyFn=o===!1?QPe:fr(o)?MB(o):typeof o=="function"?o:i.keyFn,a&&Object.keys(a).forEach(function(l){var u=r.getFieldPolicy(t,l,!0),f=a[l];if(typeof f=="function")u.read=f;else{var p=f.keyArgs,d=f.read,v=f.merge;u.keyFn=p===!1?BB:fr(p)?NB(p):typeof p=="function"?p:u.keyFn,typeof d=="function"&&(u.read=d),s(u,v)}u.read&&u.merge&&(u.keyFn=u.keyFn||BB)})},e.prototype.setRootTypename=function(t,n){n===void 0&&(n=t);var r="ROOT_"+t.toUpperCase(),i=this.rootTypenamesById[r];n!==i&&(__DEV__?Ze(!i||i===t,"Cannot change root ".concat(t," __typename more than once")):Ze(!i||i===t,3),i&&delete this.rootIdsByTypename[i],this.rootIdsByTypename[n]=r,this.rootTypenamesById[r]=n)},e.prototype.addPossibleTypes=function(t){var n=this;this.usingPossibleTypes=!0,Object.keys(t).forEach(function(r){n.getSupertypeSet(r,!0),t[r].forEach(function(i){n.getSupertypeSet(i,!0).add(r);var o=i.match(pW);(!o||o[0]!==i)&&n.fuzzySubtypes.set(i,new RegExp(i))})})},e.prototype.getTypePolicy=function(t){var n=this;if(!Mr.call(this.typePolicies,t)){var r=this.typePolicies[t]=Object.create(null);r.fields=Object.create(null);var i=this.supertypeMap.get(t);i&&i.size&&i.forEach(function(a){var s=n.getTypePolicy(a),l=s.fields,u=xu(s,["fields"]);Object.assign(r,u),Object.assign(r.fields,l)})}var o=this.toBeAdded[t];return o&&o.length&&o.splice(0).forEach(function(a){n.updateTypePolicy(t,a)}),this.typePolicies[t]},e.prototype.getFieldPolicy=function(t,n,r){if(t){var i=this.getTypePolicy(t).fields;return i[n]||r&&(i[n]=Object.create(null))}},e.prototype.getSupertypeSet=function(t,n){var r=this.supertypeMap.get(t);return!r&&n&&this.supertypeMap.set(t,r=new Set),r},e.prototype.fragmentMatches=function(t,n,r,i){var o=this;if(!t.typeCondition)return!0;if(!n)return!1;var a=t.typeCondition.name.value;if(n===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var s=this.getSupertypeSet(n,!0),l=[s],u=function(g){var y=o.getSupertypeSet(g,!1);y&&y.size&&l.indexOf(y)<0&&l.push(y)},f=!!(r&&this.fuzzySubtypes.size),p=!1,d=0;d<l.length;++d){var v=l[d];if(v.has(a))return s.has(a)||(p&&__DEV__&&Ze.warn("Inferring subtype ".concat(n," of supertype ").concat(a)),s.add(a)),!0;v.forEach(u),f&&d===l.length-1&&cR(t.selectionSet,r,i)&&(f=!1,p=!0,this.fuzzySubtypes.forEach(function(g,y){var x=n.match(g);x&&x[0]===n&&u(y)}))}return!1},e.prototype.hasKeyArgs=function(t,n){var r=this.getFieldPolicy(t,n,!1);return!!(r&&r.keyFn)},e.prototype.getStoreFieldName=function(t){var n=t.typename,r=t.fieldName,i=this.getFieldPolicy(n,r,!1),o,a=i&&i.keyFn;if(a&&n)for(var s={typename:n,fieldName:r,field:t.field||null,variables:t.variables},l=hR(t);a;){var u=a(l,s);if(fr(u))a=NB(u);else{o=u||r;break}}return o===void 0&&(o=t.field?o2e(t.field,t.variables):BD(r,hR(t))),o===!1?r:r===Cu(o)?o:r+":"+o},e.prototype.readField=function(t,n){var r=t.from;if(r){var i=t.field||t.fieldName;if(i){if(t.typename===void 0){var o=n.store.getFieldValue(r,"__typename");o&&(t.typename=o)}var a=this.getStoreFieldName(t),s=Cu(a),l=n.store.getFieldValue(r,a),u=this.getFieldPolicy(t.typename,s,!1),f=u&&u.read;if(f){var p=UB(this,r,t,n,n.store.getStorage(xn(r)?r.__ref:r,a));return ZD.withValue(this.cache,f,[l,p])}return l}}},e.prototype.getReadFunction=function(t,n){var r=this.getFieldPolicy(t,n,!1);return r&&r.read},e.prototype.getMergeFunction=function(t,n,r){var i=this.getFieldPolicy(t,n,!1),o=i&&i.merge;return!o&&r&&(i=this.getTypePolicy(r),o=i&&i.merge),o},e.prototype.runMergeFunction=function(t,n,r,i,o){var a=r.field,s=r.typename,l=r.merge;return l===jB?bW(i.store)(t,n):l===zB?n:(i.overwrite&&(t=void 0),l(t,n,UB(this,void 0,{typename:s,fieldName:a.name.value,field:a,variables:i.variables},i,o||Object.create(null))))},e}();function UB(e,t,n,r,i){var o=e.getStoreFieldName(n),a=Cu(o),s=n.variables||r.variables,l=r.store,u=l.toReference,f=l.canRead;return{args:hR(n),field:n.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:xn,toReference:u,storage:i,cache:e.cache,canRead:f,readField:function(){return e.readField(nI(arguments,t,s),r)},mergeObjects:bW(r.store)}}function nI(e,t,n){var r=e[0],i=e[1],o=e.length,a;return typeof r=="string"?a={fieldName:r,from:o>1?i:t}:(a=Ae({},r),Mr.call(a,"from")||(a.from=t)),__DEV__&&a.from===void 0&&__DEV__&&Ze.warn("Undefined 'from' passed to readField with arguments ".concat($2e(Array.from(e)))),a.variables===void 0&&(a.variables=n),a}function bW(e){return function(n,r){if(fr(n)||fr(r))throw __DEV__?new mn("Cannot automatically merge arrays"):new mn(4);if(cr(n)&&cr(r)){var i=e.getFieldValue(n,"__typename"),o=e.getFieldValue(r,"__typename"),a=i&&o&&i!==o;if(a)return r;if(xn(n)&&Cd(r))return e.merge(n.__ref,r),n;if(Cd(n)&&xn(r))return e.merge(n,r.__ref),r;if(Cd(n)&&Cd(r))return Ae(Ae({},n),r)}return r}}function lC(e,t,n){var r="".concat(t).concat(n),i=e.flavors.get(r);return i||e.flavors.set(r,i=e.clientOnly===t&&e.deferred===n?e:Ae(Ae({},e),{clientOnly:t,deferred:n})),i}var XPe=function(){function e(t,n,r){this.cache=t,this.reader=n,this.fragments=r}return e.prototype.writeToStore=function(t,n){var r=this,i=n.query,o=n.result,a=n.dataId,s=n.variables,l=n.overwrite,u=Rv(i),f=BPe();s=Ae(Ae({},UD(u)),s);var p=Ae(Ae({store:t,written:Object.create(null),merge:function(v,g){return f.merge(v,g)},variables:s,varString:Oc(s)},hW(i,this.fragments)),{overwrite:!!l,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),d=this.processSelectionSet({result:o||Object.create(null),dataId:a,selectionSet:u.selectionSet,mergeTree:{map:new Map},context:p});if(!xn(d))throw __DEV__?new mn("Could not identify object ".concat(JSON.stringify(o))):new mn(7);return p.incomingById.forEach(function(v,g){var y=v.storeObject,x=v.mergeTree,b=v.fieldNodeSet,w=Wd(g);if(x&&x.map.size){var S=r.applyMerges(x,w,y,p);if(xn(S))return;y=S}if(__DEV__&&!p.overwrite){var C=Object.create(null);b.forEach(function(P){P.selectionSet&&(C[P.name.value]=!0)});var k=function(P){return C[Cu(P)]===!0},D=function(P){var B=x&&x.map.get(P);return!!(B&&B.info&&B.info.merge)};Object.keys(y).forEach(function(P){k(P)&&!D(P)&&JPe(w,y,P,p.store)})}t.merge(g,y)}),t.retain(d.__ref),d},e.prototype.processSelectionSet=function(t){var n=this,r=t.dataId,i=t.result,o=t.selectionSet,a=t.context,s=t.mergeTree,l=this.cache.policies,u=Object.create(null),f=r&&l.rootTypenamesById[r]||JT(i,o,a.fragmentMap)||r&&a.store.get(r,"__typename");typeof f=="string"&&(u.__typename=f);var p=function(){var S=nI(arguments,u,a.variables);if(xn(S.from)){var C=a.incomingById.get(S.from.__ref);if(C){var k=l.readField(Ae(Ae({},S),{from:C.storeObject}),a);if(k!==void 0)return k}}return l.readField(S,a)},d=new Set;this.flattenFields(o,i,a,f).forEach(function(S,C){var k,D=Wc(C),P=i[D];if(d.add(C),P!==void 0){var B=l.getStoreFieldName({typename:f,fieldName:C.name.value,field:C,variables:S.variables}),V=VB(s,B),U=n.processFieldValue(P,C,C.selectionSet?lC(S,!1,!1):S,V),W=void 0;C.selectionSet&&(xn(U)||Cd(U))&&(W=p("__typename",U));var se=l.getMergeFunction(f,C.name.value,W);se?V.info={field:C,typename:f,merge:se}:WB(s,B),u=S.merge(u,(k={},k[B]=U,k))}else __DEV__&&!S.clientOnly&&!S.deferred&&!VD.added(C)&&!l.getReadFunction(f,C.name.value)&&__DEV__&&Ze.error("Missing field '".concat(Wc(C),"' while writing result ").concat(JSON.stringify(i,null,2)).substring(0,1e3))});try{var v=l.identify(i,{typename:f,selectionSet:o,fragmentMap:a.fragmentMap,storeObject:u,readField:p}),g=v[0],y=v[1];r=r||g,y&&(u=a.merge(u,y))}catch(S){if(!r)throw S}if(typeof r=="string"){var x=Wd(r),b=a.written[r]||(a.written[r]=[]);if(b.indexOf(o)>=0||(b.push(o),this.reader&&this.reader.isFresh(i,x,o,a)))return x;var w=a.incomingById.get(r);return w?(w.storeObject=a.merge(w.storeObject,u),w.mergeTree=mR(w.mergeTree,s),d.forEach(function(S){return w.fieldNodeSet.add(S)})):a.incomingById.set(r,{storeObject:u,mergeTree:G1(s)?void 0:s,fieldNodeSet:d}),x}return u},e.prototype.processFieldValue=function(t,n,r,i){var o=this;return!n.selectionSet||t===null?__DEV__?H7(t):t:fr(t)?t.map(function(a,s){var l=o.processFieldValue(a,n,r,VB(i,s));return WB(i,s),l}):this.processSelectionSet({result:t,selectionSet:n.selectionSet,context:r,mergeTree:i})},e.prototype.flattenFields=function(t,n,r,i){i===void 0&&(i=JT(n,t,r.fragmentMap));var o=new Map,a=this.cache.policies,s=new Dv(!1);return function l(u,f){var p=s.lookup(u,f.clientOnly,f.deferred);p.visited||(p.visited=!0,u.selections.forEach(function(d){if(rx(d,r.variables)){var v=f.clientOnly,g=f.deferred;if(!(v&&g)&&Wi(d.directives)&&d.directives.forEach(function(b){var w=b.name.value;if(w==="client"&&(v=!0),w==="defer"){var S=ix(b,r.variables);(!S||S.if!==!1)&&(g=!0)}}),Kc(d)){var y=o.get(d);y&&(v=v&&y.clientOnly,g=g&&y.deferred),o.set(d,lC(r,v,g))}else{var x=ND(d,r.lookupFragment);if(!x&&d.kind===gt.FRAGMENT_SPREAD)throw __DEV__?new mn("No fragment named ".concat(d.name.value)):new mn(8);x&&a.fragmentMatches(x,i,n,r.variables)&&l(x.selectionSet,lC(r,v,g))}}}))}(t,r),o},e.prototype.applyMerges=function(t,n,r,i,o){var a,s=this;if(t.map.size&&!xn(r)){var l=!fr(r)&&(xn(n)||Cd(n))?n:void 0,u=r;l&&!o&&(o=[xn(l)?l.__ref:l]);var f,p=function(d,v){return fr(d)?typeof v=="number"?d[v]:void 0:i.store.getFieldValue(d,String(v))};t.map.forEach(function(d,v){var g=p(l,v),y=p(u,v);if(y!==void 0){o&&o.push(v);var x=s.applyMerges(d,g,y,i,o);x!==y&&(f=f||new Map,f.set(v,x)),o&&Ze(o.pop()===v)}}),f&&(r=fr(u)?u.slice(0):Ae({},u),f.forEach(function(d,v){r[v]=d}))}return t.info?this.cache.policies.runMergeFunction(n,r,t.info,i,o&&(a=i.store).getStorage.apply(a,o)):r},e}(),wW=[];function VB(e,t){var n=e.map;return n.has(t)||n.set(t,wW.pop()||{map:new Map}),n.get(t)}function mR(e,t){if(e===t||!t||G1(t))return e;if(!e||G1(e))return t;var n=e.info&&t.info?Ae(Ae({},e.info),t.info):e.info||t.info,r=e.map.size&&t.map.size,i=r?new Map:e.map.size?e.map:t.map,o={info:n,map:i};if(r){var a=new Set(t.map.keys());e.map.forEach(function(s,l){o.map.set(l,mR(s,t.map.get(l))),a.delete(l)}),a.forEach(function(s){o.map.set(s,mR(t.map.get(s),e.map.get(s)))})}return o}function G1(e){return!e||!(e.info||e.map.size)}function WB(e,t){var n=e.map,r=n.get(t);r&&G1(r)&&(wW.push(r),n.delete(t))}var KB=new Set;function JPe(e,t,n,r){var i=function(p){var d=r.getFieldValue(p,n);return typeof d=="object"&&d},o=i(e);if(o){var a=i(t);if(a&&!xn(o)&&!qn(o,a)&&!Object.keys(o).every(function(p){return r.getFieldValue(a,p)!==void 0})){var s=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),l=Cu(n),u="".concat(s,".").concat(l);if(!KB.has(u)){KB.add(u);var f=[];!fr(o)&&!fr(a)&&[o,a].forEach(function(p){var d=r.getFieldValue(p,"__typename");typeof d=="string"&&!f.includes(d)&&f.push(d)}),__DEV__&&Ze.warn("Cache data may be lost when replacing the ".concat(l," field of a ").concat(s,` object.
|
|
462
|
-
|
|
463
|
-
To address this problem (which is not a bug in Apollo Client), `).concat(f.length?"either ensure all objects of type "+f.join(" and ")+" have an ID or a custom merge function, or ":"","define a custom merge function for the ").concat(u,` field, so InMemoryCache can safely merge these objects:
|
|
464
|
-
|
|
465
|
-
existing: `).concat(JSON.stringify(o).slice(0,1e3),`
|
|
466
|
-
incoming: `).concat(JSON.stringify(a).slice(0,1e3),`
|
|
467
|
-
|
|
468
|
-
For more information about these options, please refer to the documentation:
|
|
469
|
-
|
|
470
|
-
* Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers
|
|
471
|
-
* Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects
|
|
472
|
-
`))}}}}var ZPe=function(e){vs(t,e);function t(n){n===void 0&&(n={});var r=e.call(this)||this;return r.watches=new Set,r.typenameDocumentCache=new Map,r.makeVar=qPe,r.txCount=0,r.config=MPe(n),r.addTypename=!!r.config.addTypename,r.policies=new YPe({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return t.prototype.init=function(){var n=this.data=new Wg.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=n.stump,this.resetResultCache()},t.prototype.resetResultCache=function(n){var r=this,i=this.storeReader,o=this.config.fragments;this.storeWriter=new XPe(this,this.storeReader=new VPe({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:dW(this.config),canon:n?void 0:i&&i.canon,fragments:o}),o),this.maybeBroadcastWatch=q1(function(a,s){return r.broadcastWatch(a,s)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(a){var s=a.optimistic?r.optimisticData:r.data;if(ag(s)){var l=a.optimistic,u=a.id,f=a.variables;return s.makeCacheKey(a.query,a.callback,Oc({optimistic:l,id:u,variables:f}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(a){return a.resetCaching()})},t.prototype.restore=function(n){return this.init(),n&&this.data.replace(n),this},t.prototype.extract=function(n){return n===void 0&&(n=!1),(n?this.optimisticData:this.data).extract()},t.prototype.read=function(n){var r=n.returnPartialData,i=r===void 0?!1:r;try{return this.storeReader.diffQueryAgainstStore(Ae(Ae({},n),{store:n.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:i})).result||null}catch(o){if(o instanceof uW)return null;throw o}},t.prototype.write=function(n){try{return++this.txCount,this.storeWriter.writeToStore(this.data,n)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}},t.prototype.modify=function(n){if(Mr.call(n,"id")&&!n.id)return!1;var r=n.optimistic?this.optimisticData:this.data;try{return++this.txCount,r.modify(n.id||"ROOT_QUERY",n.fields)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}},t.prototype.diff=function(n){return this.storeReader.diffQueryAgainstStore(Ae(Ae({},n),{store:n.optimistic?this.optimisticData:this.data,rootId:n.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(n){var r=this;return this.watches.size||HPe(this),this.watches.add(n),n.immediate&&this.maybeBroadcastWatch(n),function(){r.watches.delete(n)&&!r.watches.size&&FB(r),r.maybeBroadcastWatch.forget(n)}},t.prototype.gc=function(n){Oc.reset();var r=this.optimisticData.gc();return n&&!this.txCount&&(n.resetResultCache?this.resetResultCache(n.resetResultIdentities):n.resetResultIdentities&&this.storeReader.resetCanon()),r},t.prototype.retain=function(n,r){return(r?this.optimisticData:this.data).retain(n)},t.prototype.release=function(n,r){return(r?this.optimisticData:this.data).release(n)},t.prototype.identify=function(n){if(xn(n))return n.__ref;try{return this.policies.identify(n)[0]}catch(r){__DEV__&&Ze.warn(r)}},t.prototype.evict=function(n){if(!n.id){if(Mr.call(n,"id"))return!1;n=Ae(Ae({},n),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(n,this.data)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}},t.prototype.reset=function(n){var r=this;return this.init(),Oc.reset(),n&&n.discardWatches?(this.watches.forEach(function(i){return r.maybeBroadcastWatch.forget(i)}),this.watches.clear(),FB(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(n){var r=this.optimisticData.removeLayer(n);r!==this.optimisticData&&(this.optimisticData=r,this.broadcastWatches())},t.prototype.batch=function(n){var r=this,i=n.update,o=n.optimistic,a=o===void 0?!0:o,s=n.removeOptimistic,l=n.onWatchUpdated,u,f=function(d){var v=r,g=v.data,y=v.optimisticData;++r.txCount,d&&(r.data=r.optimisticData=d);try{return u=i(r)}finally{--r.txCount,r.data=g,r.optimisticData=y}},p=new Set;return l&&!this.txCount&&this.broadcastWatches(Ae(Ae({},n),{onWatchUpdated:function(d){return p.add(d),!1}})),typeof a=="string"?this.optimisticData=this.optimisticData.addLayer(a,f):a===!1?f(this.data):f(),typeof s=="string"&&(this.optimisticData=this.optimisticData.removeLayer(s)),l&&p.size?(this.broadcastWatches(Ae(Ae({},n),{onWatchUpdated:function(d,v){var g=l.call(this,d,v);return g!==!1&&p.delete(d),g}})),p.size&&p.forEach(function(d){return r.maybeBroadcastWatch.dirty(d)})):this.broadcastWatches(n),u},t.prototype.performTransaction=function(n,r){return this.batch({update:n,optimistic:r||r!==null})},t.prototype.transformDocument=function(n){if(this.addTypename){var r=this.typenameDocumentCache.get(n);return r||(r=VD(n),this.typenameDocumentCache.set(n,r),this.typenameDocumentCache.set(r,r)),r}return n},t.prototype.transformForLink=function(n){var r=this.config.fragments;return r?r.transform(n):n},t.prototype.broadcastWatches=function(n){var r=this;this.txCount||this.watches.forEach(function(i){return r.maybeBroadcastWatch(i,n)})},t.prototype.broadcastWatch=function(n,r){var i=n.lastDiff,o=this.diff(n);r&&(n.optimistic&&typeof r.optimistic=="string"&&(o.fromOptimisticTransaction=!0),r.onWatchUpdated&&r.onWatchUpdated.call(this,n,o,i)===!1)||(!i||!qn(i.result,o.result))&&n.callback(n.lastDiff=o,i)},t}(LPe);function e$e(e){return e.hasOwnProperty("graphQLErrors")}var t$e=function(e){var t="";if(Wi(e.graphQLErrors)||Wi(e.clientErrors)){var n=(e.graphQLErrors||[]).concat(e.clientErrors||[]);n.forEach(function(r){var i=r?r.message:"Error message not found.";t+="".concat(i,`
|
|
473
|
-
`)})}return e.networkError&&(t+="".concat(e.networkError.message,`
|
|
474
|
-
`)),t=t.replace(/\n$/,""),t},Gs=function(e){vs(t,e);function t(n){var r=n.graphQLErrors,i=n.clientErrors,o=n.networkError,a=n.errorMessage,s=n.extraInfo,l=e.call(this,a)||this;return l.name="ApolloError",l.graphQLErrors=r||[],l.clientErrors=i||[],l.networkError=o||null,l.message=a||t$e(l),l.extraInfo=s,l.__proto__=t.prototype,l}return t}(Error),fn;(function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"})(fn||(fn={}));function Kg(e){return e?e<7:!1}var n$e=Object.assign,r$e=Object.hasOwnProperty,gR=function(e){vs(t,e);function t(n){var r=n.queryManager,i=n.queryInfo,o=n.options,a=e.call(this,function(x){try{var b=x._subscription._observer;b&&!b.error&&(b.error=i$e)}catch{}var w=!a.observers.size;a.observers.add(x);var S=a.last;return S&&S.error?x.error&&x.error(S.error):S&&S.result&&x.next&&x.next(S.result),w&&a.reobserve().catch(function(){}),function(){a.observers.delete(x)&&!a.observers.size&&a.tearDownQuery()}})||this;a.observers=new Set,a.subscriptions=new Set,a.queryInfo=i,a.queryManager=r,a.isTornDown=!1;var s=r.defaultOptions.watchQuery,l=s===void 0?{}:s,u=l.fetchPolicy,f=u===void 0?"cache-first":u,p=o.fetchPolicy,d=p===void 0?f:p,v=o.initialFetchPolicy,g=v===void 0?d==="standby"?f:d:v;a.options=Ae(Ae({},o),{initialFetchPolicy:g,fetchPolicy:d}),a.queryId=i.queryId||r.generateQueryId();var y=Rv(a.query);return a.queryName=y&&y.name&&y.name.value,a}return Object.defineProperty(t.prototype,"query",{get:function(){return this.queryManager.transform(this.options.query).document},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var n=this;return new Promise(function(r,i){var o={next:function(s){r(s),n.observers.delete(o),n.observers.size||n.queryManager.removeQuery(n.queryId),setTimeout(function(){a.unsubscribe()},0)},error:i},a=n.subscribe(o)})},t.prototype.getCurrentResult=function(n){n===void 0&&(n=!0);var r=this.getLastResult(!0),i=this.queryInfo.networkStatus||r&&r.networkStatus||fn.ready,o=Ae(Ae({},r),{loading:Kg(i),networkStatus:i}),a=this.options.fetchPolicy,s=a===void 0?"cache-first":a;if(!(s==="network-only"||s==="no-cache"||s==="standby"||this.queryManager.transform(this.options.query).hasForcedResolvers)){var l=this.queryInfo.getDiff();(l.complete||this.options.returnPartialData)&&(o.data=l.result),qn(o.data,{})&&(o.data=void 0),l.complete?(delete o.partial,l.complete&&o.networkStatus===fn.loading&&(s==="cache-first"||s==="cache-only")&&(o.networkStatus=fn.ready,o.loading=!1)):o.partial=!0,__DEV__&&!l.complete&&!this.options.partialRefetch&&!o.loading&&!o.data&&!o.error&&xW(l.missing)}return n&&this.updateLastResult(o),o},t.prototype.isDifferentFromLastResult=function(n,r){return!this.last||!qn(this.last.result,n)||r&&!qn(this.last.variables,r)},t.prototype.getLast=function(n,r){var i=this.last;if(i&&i[n]&&(!r||qn(i.variables,this.variables)))return i[n]},t.prototype.getLastResult=function(n){return this.getLast("result",n)},t.prototype.getLastError=function(n){return this.getLast("error",n)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(n){var r,i={pollInterval:0},o=this.options.fetchPolicy;if(o==="cache-and-network"?i.fetchPolicy=o:o==="no-cache"?i.fetchPolicy="no-cache":i.fetchPolicy="network-only",__DEV__&&n&&r$e.call(n,"variables")){var a=j7(this.query),s=a.variableDefinitions;(!s||!s.some(function(l){return l.variable.name.value==="variables"}))&&__DEV__&&Ze.warn("Called refetch(".concat(JSON.stringify(n),") for query ").concat(((r=a.name)===null||r===void 0?void 0:r.value)||JSON.stringify(a),`, which does not declare a $variables variable.
|
|
475
|
-
Did you mean to call refetch(variables) instead of refetch({ variables })?`))}return n&&!qn(this.options.variables,n)&&(i.variables=this.options.variables=Ae(Ae({},this.options.variables),n)),this.queryInfo.resetLastWrite(),this.reobserve(i,fn.refetch)},t.prototype.fetchMore=function(n){var r=this,i=Ae(Ae({},n.query?n:Ae(Ae(Ae(Ae({},this.options),{query:this.query}),n),{variables:Ae(Ae({},this.options.variables),n.variables)})),{fetchPolicy:"no-cache"}),o=this.queryManager.generateQueryId(),a=this.queryInfo,s=a.networkStatus;a.networkStatus=fn.fetchMore,i.notifyOnNetworkStatusChange&&this.observe();var l=new Set;return this.queryManager.fetchQuery(o,i,fn.fetchMore).then(function(u){return r.queryManager.removeQuery(o),a.networkStatus===fn.fetchMore&&(a.networkStatus=s),r.queryManager.cache.batch({update:function(f){var p=n.updateQuery;p?f.updateQuery({query:r.query,variables:r.variables,returnPartialData:!0,optimistic:!1},function(d){return p(d,{fetchMoreResult:u.data,variables:i.variables})}):f.writeQuery({query:i.query,variables:i.variables,data:u.data})},onWatchUpdated:function(f){l.add(f.query)}}),u}).finally(function(){l.has(r.query)||_W(r)})},t.prototype.subscribeToMore=function(n){var r=this,i=this.queryManager.startGraphQLSubscription({query:n.document,variables:n.variables,context:n.context}).subscribe({next:function(o){var a=n.updateQuery;a&&r.updateQuery(function(s,l){var u=l.variables;return a(s,{subscriptionData:o,variables:u})})},error:function(o){if(n.onError){n.onError(o);return}__DEV__&&Ze.error("Unhandled GraphQL subscription error",o)}});return this.subscriptions.add(i),function(){r.subscriptions.delete(i)&&i.unsubscribe()}},t.prototype.setOptions=function(n){return this.reobserve(n)},t.prototype.setVariables=function(n){return qn(this.variables,n)?this.observers.size?this.result():Promise.resolve():(this.options.variables=n,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:n},fn.setVariables):Promise.resolve())},t.prototype.updateQuery=function(n){var r=this.queryManager,i=r.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,o=n(i,{variables:this.variables});o&&(r.cache.writeQuery({query:this.options.query,data:o,variables:this.variables}),r.broadcastQueries())},t.prototype.startPolling=function(n){this.options.pollInterval=n,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(n,r){if(r.nextFetchPolicy){var i=r.fetchPolicy,o=i===void 0?"cache-first":i,a=r.initialFetchPolicy,s=a===void 0?o:a;o==="standby"||(typeof r.nextFetchPolicy=="function"?r.fetchPolicy=r.nextFetchPolicy(o,{reason:n,options:r,observable:this,initialFetchPolicy:s}):n==="variables-changed"?r.fetchPolicy=s:r.fetchPolicy=r.nextFetchPolicy)}return r.fetchPolicy},t.prototype.fetch=function(n,r){return this.queryManager.setObservableQuery(this),this.queryManager.fetchQueryObservable(this.queryId,n,r)},t.prototype.updatePolling=function(){var n=this;if(!this.queryManager.ssrMode){var r=this,i=r.pollingInfo,o=r.options.pollInterval;if(!o){i&&(clearTimeout(i.timeout),delete this.pollingInfo);return}if(!(i&&i.interval===o)){__DEV__?Ze(o,"Attempted to start a polling query without a polling interval."):Ze(o,13);var a=i||(this.pollingInfo={});a.interval=o;var s=function(){n.pollingInfo&&(Kg(n.queryInfo.networkStatus)?l():n.reobserve({fetchPolicy:n.options.initialFetchPolicy==="no-cache"?"no-cache":"network-only"},fn.poll).then(l,l))},l=function(){var u=n.pollingInfo;u&&(clearTimeout(u.timeout),u.timeout=setTimeout(s,u.interval))};l()}}},t.prototype.updateLastResult=function(n,r){return r===void 0&&(r=this.variables),this.last=Ae(Ae({},this.last),{result:this.queryManager.assumeImmutableResults?n:H7(n),variables:r}),Wi(n.errors)||delete this.last.error,this.last},t.prototype.reobserve=function(n,r){var i=this;this.isTornDown=!1;var o=r===fn.refetch||r===fn.fetchMore||r===fn.poll,a=this.options.variables,s=this.options.fetchPolicy,l=Ov(this.options,n||{}),u=o?l:n$e(this.options,l);o||(this.updatePolling(),n&&n.variables&&!qn(n.variables,a)&&u.fetchPolicy!=="standby"&&u.fetchPolicy===s&&(this.applyNextFetchPolicy("variables-changed",u),r===void 0&&(r=fn.setVariables)));var f=u.variables&&Ae({},u.variables),p=this.fetch(u,r),d={next:function(v){i.reportResult(v,f)},error:function(v){i.reportError(v,f)}};return o||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=p,this.observer=d),p.addObserver(d),p.promise},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(n,r){var i=this.getLastError();(i||this.isDifferentFromLastResult(n,r))&&((i||!n.partial||this.options.returnPartialData)&&this.updateLastResult(n,r),og(this.observers,"next",n))},t.prototype.reportError=function(n,r){var i=Ae(Ae({},this.getLastResult()),{error:n,errors:n.graphQLErrors,networkStatus:fn.error,loading:!1});this.updateLastResult(i,r),og(this.observers,"error",this.last.error=n)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(n){return n.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t}(jn);G7(gR);function _W(e){var t=e.options,n=t.fetchPolicy,r=t.nextFetchPolicy;return n==="cache-and-network"||n==="network-only"?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return this.nextFetchPolicy=r,typeof r=="function"?r.apply(this,arguments):n}}):e.reobserve()}function i$e(e){__DEV__&&Ze.error("Unhandled error",e.message,e.stack)}function xW(e){__DEV__&&e&&__DEV__&&Ze.debug("Missing cache result fields: ".concat(JSON.stringify(e)),e)}var SW=function(){function e(t){var n=t.cache,r=t.client,i=t.resolvers,o=t.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=n,r&&(this.client=r),i&&this.addResolvers(i),o&&this.setFragmentMatcher(o)}return e.prototype.addResolvers=function(t){var n=this;this.resolvers=this.resolvers||{},Array.isArray(t)?t.forEach(function(r){n.resolvers=cB(n.resolvers,r)}):this.resolvers=cB(this.resolvers,t)},e.prototype.setResolvers=function(t){this.resolvers={},this.addResolvers(t)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(t){var n=t.document,r=t.remoteResult,i=t.context,o=t.variables,a=t.onlyRunForcedResolvers,s=a===void 0?!1:a;return Ql(this,void 0,void 0,function(){return Yl(this,function(l){return n?[2,this.resolveDocument(n,r.data,i,o,this.fragmentMatcher,s).then(function(u){return Ae(Ae({},r),{data:u.result})})]:[2,r]})})},e.prototype.setFragmentMatcher=function(t){this.fragmentMatcher=t},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(t){return LD(["client"],t)&&this.resolvers?t:null},e.prototype.serverQuery=function(t){return m2e(t)},e.prototype.prepareContext=function(t){var n=this.cache;return Ae(Ae({},t),{cache:n,getCacheKey:function(r){return n.identify(r)}})},e.prototype.addExportedVariables=function(t,n,r){return n===void 0&&(n={}),r===void 0&&(r={}),Ql(this,void 0,void 0,function(){return Yl(this,function(i){return t?[2,this.resolveDocument(t,this.buildRootValueFromCache(t,n)||{},this.prepareContext(r),n).then(function(o){return Ae(Ae({},n),o.exportedVariables)})]:[2,Ae({},n)]})})},e.prototype.shouldForceResolvers=function(t){var n=!1;return ll(t,{Directive:{enter:function(r){if(r.name.value==="client"&&r.arguments&&(n=r.arguments.some(function(i){return i.name.value==="always"&&i.value.kind==="BooleanValue"&&i.value.value===!0}),n))return FD}}}),n},e.prototype.buildRootValueFromCache=function(t,n){return this.cache.diff({query:h2e(t),variables:n,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(t,n,r,i,o,a){return r===void 0&&(r={}),i===void 0&&(i={}),o===void 0&&(o=function(){return!0}),a===void 0&&(a=!1),Ql(this,void 0,void 0,function(){var s,l,u,f,p,d,v,g,y,x,b;return Yl(this,function(w){return s=zD(t),l=jD(t),u=MD(l),f=this.collectSelectionsToResolve(s,u),p=s.operation,d=p?p.charAt(0).toUpperCase()+p.slice(1):"Query",v=this,g=v.cache,y=v.client,x={fragmentMap:u,context:Ae(Ae({},r),{cache:g,client:y}),variables:i,fragmentMatcher:o,defaultOperationType:d,exportedVariables:{},selectionsToResolve:f,onlyRunForcedResolvers:a},b=!1,[2,this.resolveSelectionSet(s.selectionSet,b,n,x).then(function(S){return{result:S,exportedVariables:x.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(t,n,r,i){return Ql(this,void 0,void 0,function(){var o,a,s,l,u,f=this;return Yl(this,function(p){return o=i.fragmentMap,a=i.context,s=i.variables,l=[r],u=function(d){return Ql(f,void 0,void 0,function(){var v,g;return Yl(this,function(y){return!n&&!i.selectionsToResolve.has(d)?[2]:rx(d,s)?Kc(d)?[2,this.resolveField(d,n,r,i).then(function(x){var b;typeof x<"u"&&l.push((b={},b[Wc(d)]=x,b))})]:(l2e(d)?v=d:(v=o[d.name.value],__DEV__?Ze(v,"No fragment named ".concat(d.name.value)):Ze(v,11)),v&&v.typeCondition&&(g=v.typeCondition.name.value,i.fragmentMatcher(r,g,a))?[2,this.resolveSelectionSet(v.selectionSet,n,r,i).then(function(x){l.push(x)})]:[2]):[2]})})},[2,Promise.all(t.selections.map(u)).then(function(){return WD(l)})]})})},e.prototype.resolveField=function(t,n,r,i){return Ql(this,void 0,void 0,function(){var o,a,s,l,u,f,p,d,v,g=this;return Yl(this,function(y){return r?(o=i.variables,a=t.name.value,s=Wc(t),l=a!==s,u=r[s]||r[a],f=Promise.resolve(u),(!i.onlyRunForcedResolvers||this.shouldForceResolvers(t))&&(p=r.__typename||i.defaultOperationType,d=this.resolvers&&this.resolvers[p],d&&(v=d[l?a:s],v&&(f=Promise.resolve(ZD.withValue(this.cache,v,[r,ix(t,o),i.context,{field:t,fragmentMap:i.fragmentMap}]))))),[2,f.then(function(x){var b,w;if(x===void 0&&(x=u),t.directives&&t.directives.forEach(function(C){C.name.value==="export"&&C.arguments&&C.arguments.forEach(function(k){k.name.value==="as"&&k.value.kind==="StringValue"&&(i.exportedVariables[k.value.value]=x)})}),!t.selectionSet||x==null)return x;var S=(w=(b=t.directives)===null||b===void 0?void 0:b.some(function(C){return C.name.value==="client"}))!==null&&w!==void 0?w:!1;if(Array.isArray(x))return g.resolveSubSelectedArray(t,n||S,x,i);if(t.selectionSet)return g.resolveSelectionSet(t.selectionSet,n||S,x,i)})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(t,n,r,i){var o=this;return Promise.all(r.map(function(a){if(a===null)return null;if(Array.isArray(a))return o.resolveSubSelectedArray(t,n,a,i);if(t.selectionSet)return o.resolveSelectionSet(t.selectionSet,n,a,i)}))},e.prototype.collectSelectionsToResolve=function(t,n){var r=function(a){return!Array.isArray(a)},i=this.selectionsToResolveCache;function o(a){if(!i.has(a)){var s=new Set;i.set(a,s),ll(a,{Directive:function(l,u,f,p,d){l.name.value==="client"&&d.forEach(function(v){r(v)&&sB(v)&&s.add(v)})},FragmentSpread:function(l,u,f,p,d){var v=n[l.name.value];__DEV__?Ze(v,"No fragment named ".concat(l.name.value)):Ze(v,12);var g=o(v);g.size>0&&(d.forEach(function(y){r(y)&&sB(y)&&s.add(y)}),s.add(l),g.forEach(function(y){s.add(y)}))}})}return i.get(a)}return o(t)},e}(),kd=new(Lu?WeakMap:Map);function uC(e,t){var n=e[t];typeof n=="function"&&(e[t]=function(){return kd.set(e,(kd.get(e)+1)%1e15),n.apply(this,arguments)})}function HB(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var cC=function(){function e(t,n){n===void 0&&(n=t.generateQueryId()),this.queryId=n,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var r=this.cache=t.cache;kd.has(r)||(kd.set(r,0),uC(r,"evict"),uC(r,"modify"),uC(r,"reset"))}return e.prototype.init=function(t){var n=t.networkStatus||fn.loading;return this.variables&&this.networkStatus!==fn.loading&&!qn(this.variables,t.variables)&&(n=fn.setVariables),qn(t.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:t.document,variables:t.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:n}),t.observableQuery&&this.setObservableQuery(t.observableQuery),t.lastRequestId&&(this.lastRequestId=t.lastRequestId),this},e.prototype.reset=function(){HB(this),this.dirty=!1},e.prototype.getDiff=function(t){t===void 0&&(t=this.variables);var n=this.getDiffOptions(t);if(this.lastDiff&&qn(n,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=t);var r=this.observableQuery;if(r&&r.options.fetchPolicy==="no-cache")return{complete:!1};var i=this.cache.diff(n);return this.updateLastDiff(i,n),i},e.prototype.updateLastDiff=function(t,n){this.lastDiff=t?{diff:t,options:n||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(t){var n;return t===void 0&&(t=this.variables),{query:this.document,variables:t,returnPartialData:!0,optimistic:!0,canonizeResults:(n=this.observableQuery)===null||n===void 0?void 0:n.options.canonizeResults}},e.prototype.setDiff=function(t){var n=this,r=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(t),!this.dirty&&!qn(r&&r.result,t&&t.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return n.notify()},0)))},e.prototype.setObservableQuery=function(t){var n=this;t!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=t,t?(t.queryInfo=this,this.listeners.add(this.oqListener=function(){var r=n.getDiff();r.fromOptimisticTransaction?t.observe():_W(t)})):delete this.oqListener)},e.prototype.notify=function(){var t=this;HB(this),this.shouldNotify()&&this.listeners.forEach(function(n){return n(t)}),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(Kg(this.networkStatus)&&this.observableQuery){var t=this.observableQuery.options.fetchPolicy;if(t!=="cache-only"&&t!=="cache-and-network")return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel,this.subscriptions.forEach(function(n){return n.unsubscribe()});var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(t){var n=this;t===void 0&&(t=this.variables);var r=this.observableQuery;if(!(r&&r.options.fetchPolicy==="no-cache")){var i=Ae(Ae({},this.getDiffOptions(t)),{watcher:this,callback:function(o){return n.setDiff(o)}});(!this.lastWatch||!qn(i,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=i))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(t,n){var r=this.lastWrite;return!(r&&r.dmCount===kd.get(this.cache)&&qn(n,r.variables)&&qn(t.data,r.result.data))},e.prototype.markResult=function(t,n,r,i){var o=this,a=new Su,s=Wi(t.errors)?t.errors.slice(0):[];if(this.reset(),"incremental"in t&&Wi(t.incremental)){var l=Q7(this.getDiff().result,t);t.data=l}else if("hasNext"in t&&t.hasNext){var u=this.getDiff();t.data=a.merge(u.result,t.data)}this.graphQLErrors=s,r.fetchPolicy==="no-cache"?this.updateLastDiff({result:t.data,complete:!0},this.getDiffOptions(r.variables)):i!==0&&(vR(t,r.errorPolicy)?this.cache.performTransaction(function(f){if(o.shouldWrite(t,r.variables))f.writeQuery({query:n,data:t.data,variables:r.variables,overwrite:i===1}),o.lastWrite={result:t,variables:r.variables,dmCount:kd.get(o.cache)};else if(o.lastDiff&&o.lastDiff.diff.complete){t.data=o.lastDiff.diff.result;return}var p=o.getDiffOptions(r.variables),d=f.diff(p);o.stopped||o.updateWatch(r.variables),o.updateLastDiff(d,p),d.complete&&(t.data=d.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=fn.ready},e.prototype.markError=function(t){return this.networkStatus=fn.error,this.lastWrite=void 0,this.reset(),t.graphQLErrors&&(this.graphQLErrors=t.graphQLErrors),t.networkError&&(this.networkError=t.networkError),t},e}();function vR(e,t){t===void 0&&(t="none");var n=t==="ignore"||t==="all",r=!Fb(e);return!r&&n&&e.data&&(r=!0),r}var o$e=Object.prototype.hasOwnProperty,a$e=function(){function e(t){var n=t.cache,r=t.link,i=t.defaultOptions,o=t.queryDeduplication,a=o===void 0?!1:o,s=t.onBroadcast,l=t.ssrMode,u=l===void 0?!1:l,f=t.clientAwareness,p=f===void 0?{}:f,d=t.localState,v=t.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(Lu?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=n,this.link=r,this.defaultOptions=i||Object.create(null),this.queryDeduplication=a,this.clientAwareness=p,this.localState=d||new SW({cache:n}),this.ssrMode=u,this.assumeImmutableResults=!!v,(this.onBroadcast=s)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var t=this;this.queries.forEach(function(n,r){t.stopQueryNoBroadcast(r)}),this.cancelPendingFetches(__DEV__?new mn("QueryManager stopped while query was in flight"):new mn(14))},e.prototype.cancelPendingFetches=function(t){this.fetchCancelFns.forEach(function(n){return n(t)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(t){var n,r,i=t.mutation,o=t.variables,a=t.optimisticResponse,s=t.updateQueries,l=t.refetchQueries,u=l===void 0?[]:l,f=t.awaitRefetchQueries,p=f===void 0?!1:f,d=t.update,v=t.onQueryUpdated,g=t.fetchPolicy,y=g===void 0?((n=this.defaultOptions.mutate)===null||n===void 0?void 0:n.fetchPolicy)||"network-only":g,x=t.errorPolicy,b=x===void 0?((r=this.defaultOptions.mutate)===null||r===void 0?void 0:r.errorPolicy)||"none":x,w=t.keepRootFields,S=t.context;return Ql(this,void 0,void 0,function(){var C,k,D,P,B,V;return Yl(this,function(U){switch(U.label){case 0:return __DEV__?Ze(i,"mutation option is required. You must specify your GraphQL document in the mutation option."):Ze(i,15),__DEV__?Ze(y==="network-only"||y==="no-cache","Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):Ze(y==="network-only"||y==="no-cache",16),C=this.generateMutationId(),k=this.transform(i),D=k.document,P=k.hasClientExports,i=this.cache.transformForLink(D),o=this.getVariables(i,o),P?[4,this.localState.addExportedVariables(i,o,S)]:[3,2];case 1:o=U.sent(),U.label=2;case 2:return B=this.mutationStore&&(this.mutationStore[C]={mutation:i,variables:o,loading:!0,error:null}),a&&this.markMutationOptimistic(a,{mutationId:C,document:i,variables:o,fetchPolicy:y,errorPolicy:b,context:S,updateQueries:s,update:d,keepRootFields:w}),this.broadcastQueries(),V=this,[2,new Promise(function(W,se){return nC(V.getObservableFromLink(i,Ae(Ae({},S),{optimisticResponse:a}),o,!1),function(ne){if(Fb(ne)&&b==="none")throw new Gs({graphQLErrors:rR(ne)});B&&(B.loading=!1,B.error=null);var re=Ae({},ne);return typeof u=="function"&&(u=u(re)),b==="ignore"&&Fb(re)&&delete re.errors,V.markMutationResult({mutationId:C,result:re,document:i,variables:o,fetchPolicy:y,errorPolicy:b,context:S,update:d,updateQueries:s,awaitRefetchQueries:p,refetchQueries:u,removeOptimistic:a?C:void 0,onQueryUpdated:v,keepRootFields:w})}).subscribe({next:function(ne){V.broadcastQueries(),(!("hasNext"in ne)||ne.hasNext===!1)&&W(ne)},error:function(ne){B&&(B.loading=!1,B.error=ne),a&&V.cache.removeOptimistic(C),V.broadcastQueries(),se(ne instanceof Gs?ne:new Gs({networkError:ne}))}})})]}})})},e.prototype.markMutationResult=function(t,n){var r=this;n===void 0&&(n=this.cache);var i=t.result,o=[],a=t.fetchPolicy==="no-cache";if(!a&&vR(i,t.errorPolicy)){if(Kd(i)||o.push({result:i.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}),Kd(i)&&Wi(i.incremental)){var s=n.diff({id:"ROOT_MUTATION",query:this.transform(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0}),l=void 0;s.result&&(l=Q7(s.result,i)),typeof l<"u"&&(i.data=l,o.push({result:l,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}))}var u=t.updateQueries;u&&this.queries.forEach(function(p,d){var v=p.observableQuery,g=v&&v.queryName;if(!(!g||!o$e.call(u,g))){var y=u[g],x=r.queries.get(d),b=x.document,w=x.variables,S=n.diff({query:b,variables:w,returnPartialData:!0,optimistic:!1}),C=S.result,k=S.complete;if(k&&C){var D=y(C,{mutationResult:i,queryName:b&&ZT(b)||void 0,queryVariables:w});D&&o.push({result:D,dataId:"ROOT_QUERY",query:b,variables:w})}}})}if(o.length>0||t.refetchQueries||t.update||t.onQueryUpdated||t.removeOptimistic){var f=[];if(this.refetchQueries({updateCache:function(p){a||o.forEach(function(y){return p.write(y)});var d=t.update,v=!P2e(i)||Kd(i)&&!i.hasNext;if(d){if(!a){var g=p.diff({id:"ROOT_MUTATION",query:r.transform(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0});g.complete&&(i=Ae(Ae({},i),{data:g.result}),"incremental"in i&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}v&&d(p,i,{context:t.context,variables:t.variables})}!a&&!t.keepRootFields&&v&&p.modify({id:"ROOT_MUTATION",fields:function(y,x){var b=x.fieldName,w=x.DELETE;return b==="__typename"?y:w}})},include:t.refetchQueries,optimistic:!1,removeOptimistic:t.removeOptimistic,onQueryUpdated:t.onQueryUpdated||null}).forEach(function(p){return f.push(p)}),t.awaitRefetchQueries||t.onQueryUpdated)return Promise.all(f).then(function(){return i})}return Promise.resolve(i)},e.prototype.markMutationOptimistic=function(t,n){var r=this,i=typeof t=="function"?t(n.variables):t;return this.cache.recordOptimisticTransaction(function(o){try{r.markMutationResult(Ae(Ae({},n),{result:{data:i}}),o)}catch(a){__DEV__&&Ze.error(a)}},n.mutationId)},e.prototype.fetchQuery=function(t,n,r){return this.fetchQueryObservable(t,n,r).promise},e.prototype.getQueryStore=function(){var t=Object.create(null);return this.queries.forEach(function(n,r){t[r]={variables:n.variables,networkStatus:n.networkStatus,networkError:n.networkError,graphQLErrors:n.graphQLErrors}}),t},e.prototype.resetErrors=function(t){var n=this.queries.get(t);n&&(n.networkError=void 0,n.graphQLErrors=[])},e.prototype.transform=function(t){var n=this.transformCache;if(!n.has(t)){var r=this.cache.transformDocument(t),i=p2e(r),o=this.localState.clientQuery(r),a=i&&this.localState.serverQuery(i),s={document:r,hasClientExports:KIe(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:o,serverQuery:a,defaultVars:UD(Rv(r)),asQuery:Ae(Ae({},r),{definitions:r.definitions.map(function(u){return u.kind==="OperationDefinition"&&u.operation!=="query"?Ae(Ae({},u),{operation:"query"}):u})})},l=function(u){u&&!n.has(u)&&n.set(u,s)};l(t),l(r),l(o),l(a)}return n.get(t)},e.prototype.getVariables=function(t,n){return Ae(Ae({},this.transform(t).defaultVars),n)},e.prototype.watchQuery=function(t){t=Ae(Ae({},t),{variables:this.getVariables(t.query,t.variables)}),typeof t.notifyOnNetworkStatusChange>"u"&&(t.notifyOnNetworkStatusChange=!1);var n=new cC(this),r=new gR({queryManager:this,queryInfo:n,options:t});return this.queries.set(r.queryId,n),n.init({document:r.query,observableQuery:r,variables:r.variables}),r},e.prototype.query=function(t,n){var r=this;return n===void 0&&(n=this.generateQueryId()),__DEV__?Ze(t.query,"query option is required. You must specify your GraphQL document in the query option."):Ze(t.query,17),__DEV__?Ze(t.query.kind==="Document",'You must wrap the query string in a "gql" tag.'):Ze(t.query.kind==="Document",18),__DEV__?Ze(!t.returnPartialData,"returnPartialData option only supported on watchQuery."):Ze(!t.returnPartialData,19),__DEV__?Ze(!t.pollInterval,"pollInterval option only supported on watchQuery."):Ze(!t.pollInterval,20),this.fetchQuery(n,t).finally(function(){return r.stopQuery(n)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(t){this.stopQueryInStoreNoBroadcast(t),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(t){var n=this.queries.get(t);n&&n.stop()},e.prototype.clearStore=function(t){return t===void 0&&(t={discardWatches:!0}),this.cancelPendingFetches(__DEV__?new mn("Store reset while query was in flight (not completed in link chain)"):new mn(21)),this.queries.forEach(function(n){n.observableQuery?n.networkStatus=fn.loading:n.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(t)},e.prototype.getObservableQueries=function(t){var n=this;t===void 0&&(t="active");var r=new Map,i=new Map,o=new Set;return Array.isArray(t)&&t.forEach(function(a){typeof a=="string"?i.set(a,!1):QIe(a)?i.set(n.transform(a).document,!1):cr(a)&&a.query&&o.add(a)}),this.queries.forEach(function(a,s){var l=a.observableQuery,u=a.document;if(l){if(t==="all"){r.set(s,l);return}var f=l.queryName,p=l.options.fetchPolicy;if(p==="standby"||t==="active"&&!l.hasObservers())return;(t==="active"||f&&i.has(f)||u&&i.has(u))&&(r.set(s,l),f&&i.set(f,!0),u&&i.set(u,!0))}}),o.size&&o.forEach(function(a){var s=iR("legacyOneTimeQuery"),l=n.getQuery(s).init({document:a.query,variables:a.variables}),u=new gR({queryManager:n,queryInfo:l,options:Ae(Ae({},a),{fetchPolicy:"network-only"})});Ze(u.queryId===s),l.setObservableQuery(u),r.set(s,u)}),__DEV__&&i.size&&i.forEach(function(a,s){a||__DEV__&&Ze.warn("Unknown query ".concat(typeof s=="string"?"named ":"").concat(JSON.stringify(s,null,2)," requested in refetchQueries options.include array"))}),r},e.prototype.reFetchObservableQueries=function(t){var n=this;t===void 0&&(t=!1);var r=[];return this.getObservableQueries(t?"all":"active").forEach(function(i,o){var a=i.options.fetchPolicy;i.resetLastResults(),(t||a!=="standby"&&a!=="cache-only")&&r.push(i.refetch()),n.getQuery(o).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},e.prototype.setObservableQuery=function(t){this.getQuery(t.queryId).setObservableQuery(t)},e.prototype.startGraphQLSubscription=function(t){var n=this,r=t.query,i=t.fetchPolicy,o=t.errorPolicy,a=t.variables,s=t.context,l=s===void 0?{}:s;r=this.transform(r).document,a=this.getVariables(r,a);var u=function(p){return n.getObservableFromLink(r,l,p).map(function(d){if(i!=="no-cache"&&(vR(d,o)&&n.cache.write({query:r,result:d.data,dataId:"ROOT_SUBSCRIPTION",variables:p}),n.broadcastQueries()),Fb(d))throw new Gs({graphQLErrors:d.errors});return d})};if(this.transform(r).hasClientExports){var f=this.localState.addExportedVariables(r,a,l).then(u);return new jn(function(p){var d=null;return f.then(function(v){return d=v.subscribe(p)},p.error),function(){return d&&d.unsubscribe()}})}return u(a)},e.prototype.stopQuery=function(t){this.stopQueryNoBroadcast(t),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(t){this.stopQueryInStoreNoBroadcast(t),this.removeQuery(t)},e.prototype.removeQuery=function(t){this.fetchCancelFns.delete(t),this.queries.has(t)&&(this.getQuery(t).stop(),this.queries.delete(t))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(t){return t.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(t,n,r,i){var o=this,a;i===void 0&&(i=(a=n==null?void 0:n.queryDeduplication)!==null&&a!==void 0?a:this.queryDeduplication);var s,l=this.transform(t).serverQuery;if(l){var u=this,f=u.inFlightLinkObservables,p=u.link,d={query:l,variables:r,operationName:ZT(l)||void 0,context:this.prepareContext(Ae(Ae({},n),{forceFetch:!i}))};if(n=d.context,i){var v=f.get(l)||new Map;f.set(l,v);var g=Oc(r);if(s=v.get(g),!s){var y=new Pm([aR(p,d)]);v.set(g,s=y),y.beforeNext(function(){v.delete(g)&&v.size<1&&f.delete(l)})}}else s=new Pm([aR(p,d)])}else s=new Pm([jn.of({data:{}})]),n=this.prepareContext(n);var x=this.transform(t).clientQuery;return x&&(s=nC(s,function(b){return o.localState.runResolvers({document:x,remoteResult:b,context:n,variables:r})})),s},e.prototype.getResultsFromLink=function(t,n,r){var i=t.lastRequestId=this.generateRequestId(),o=this.cache.transformForLink(this.transform(t.document).document);return nC(this.getObservableFromLink(o,r.context,r.variables),function(a){var s=rR(a),l=s.length>0;if(i>=t.lastRequestId){if(l&&r.errorPolicy==="none")throw t.markError(new Gs({graphQLErrors:s}));t.markResult(a,o,r,n),t.markReady()}var u={data:a.data,loading:!1,networkStatus:fn.ready};return l&&r.errorPolicy!=="ignore"&&(u.errors=s,u.networkStatus=fn.error),u},function(a){var s=e$e(a)?a:new Gs({networkError:a});throw i>=t.lastRequestId&&t.markError(s),s})},e.prototype.fetchQueryObservable=function(t,n,r){var i=this;r===void 0&&(r=fn.loading);var o=this.transform(n.query).document,a=this.getVariables(o,n.variables),s=this.getQuery(t),l=this.defaultOptions.watchQuery,u=n.fetchPolicy,f=u===void 0?l&&l.fetchPolicy||"cache-first":u,p=n.errorPolicy,d=p===void 0?l&&l.errorPolicy||"none":p,v=n.returnPartialData,g=v===void 0?!1:v,y=n.notifyOnNetworkStatusChange,x=y===void 0?!1:y,b=n.context,w=b===void 0?{}:b,S=Object.assign({},n,{query:o,variables:a,fetchPolicy:f,errorPolicy:d,returnPartialData:g,notifyOnNetworkStatusChange:x,context:w}),C=function(P){S.variables=P;var B=i.fetchQueryByPolicy(s,S,r);return S.fetchPolicy!=="standby"&&B.length>0&&s.observableQuery&&s.observableQuery.applyNextFetchPolicy("after-fetch",n),B},k=function(){return i.fetchCancelFns.delete(t)};this.fetchCancelFns.set(t,function(P){k(),setTimeout(function(){return D.cancel(P)})});var D=new Pm(this.transform(S.query).hasClientExports?this.localState.addExportedVariables(S.query,S.variables,S.context).then(C):C(S.variables));return D.promise.then(k,k),D},e.prototype.refetchQueries=function(t){var n=this,r=t.updateCache,i=t.include,o=t.optimistic,a=o===void 0?!1:o,s=t.removeOptimistic,l=s===void 0?a?iR("refetchQueries"):void 0:s,u=t.onQueryUpdated,f=new Map;i&&this.getObservableQueries(i).forEach(function(d,v){f.set(v,{oq:d,lastDiff:n.getQuery(v).getDiff()})});var p=new Map;return r&&this.cache.batch({update:r,optimistic:a&&l||!1,removeOptimistic:l,onWatchUpdated:function(d,v,g){var y=d.watcher instanceof cC&&d.watcher.observableQuery;if(y){if(u){f.delete(y.queryId);var x=u(y,v,g);return x===!0&&(x=y.refetch()),x!==!1&&p.set(y,x),x}u!==null&&f.set(y.queryId,{oq:y,lastDiff:g,diff:v})}}}),f.size&&f.forEach(function(d,v){var g=d.oq,y=d.lastDiff,x=d.diff,b;if(u){if(!x){var w=g.queryInfo;w.reset(),x=w.getDiff()}b=u(g,x,y)}(!u||b===!0)&&(b=g.refetch()),b!==!1&&p.set(g,b),v.indexOf("legacyOneTimeQuery")>=0&&n.stopQueryNoBroadcast(v)}),l&&this.cache.removeOptimistic(l),p},e.prototype.fetchQueryByPolicy=function(t,n,r){var i=this,o=n.query,a=n.variables,s=n.fetchPolicy,l=n.refetchWritePolicy,u=n.errorPolicy,f=n.returnPartialData,p=n.context,d=n.notifyOnNetworkStatusChange,v=t.networkStatus;t.init({document:this.transform(o).document,variables:a,networkStatus:r});var g=function(){return t.getDiff(a)},y=function(C,k){k===void 0&&(k=t.networkStatus||fn.loading);var D=C.result;__DEV__&&!f&&!qn(D,{})&&xW(C.missing);var P=function(B){return jn.of(Ae({data:B,loading:Kg(k),networkStatus:k},C.complete?null:{partial:!0}))};return D&&i.transform(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:D},context:p,variables:a,onlyRunForcedResolvers:!0}).then(function(B){return P(B.data||void 0)}):u==="none"&&k===fn.refetch&&Array.isArray(C.missing)?P(void 0):P(D)},x=s==="no-cache"?0:r===fn.refetch&&l!=="merge"?1:2,b=function(){return i.getResultsFromLink(t,x,{variables:a,context:p,fetchPolicy:s,errorPolicy:u})},w=d&&typeof v=="number"&&v!==r&&Kg(r);switch(s){default:case"cache-first":{var S=g();return S.complete?[y(S,t.markReady())]:f||w?[y(S),b()]:[b()]}case"cache-and-network":{var S=g();return S.complete||f||w?[y(S),b()]:[b()]}case"cache-only":return[y(g(),t.markReady())];case"network-only":return w?[y(g()),b()]:[b()];case"no-cache":return w?[y(t.getDiff()),b()]:[b()];case"standby":return[]}},e.prototype.getQuery=function(t){return t&&!this.queries.has(t)&&this.queries.set(t,new cC(this,t)),this.queries.get(t)},e.prototype.prepareContext=function(t){t===void 0&&(t={});var n=this.localState.prepareContext(t);return Ae(Ae({},n),{clientAwareness:this.clientAwareness})},e}(),qB=!1,s$e=function(){function e(t){var n=this;this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var r=t.uri,i=t.credentials,o=t.headers,a=t.cache,s=t.ssrMode,l=s===void 0?!1:s,u=t.ssrForceFetchDelay,f=u===void 0?0:u,p=t.connectToDevTools,d=p===void 0?typeof window=="object"&&!window.__APOLLO_CLIENT__&&__DEV__:p,v=t.queryDeduplication,g=v===void 0?!0:v,y=t.defaultOptions,x=t.assumeImmutableResults,b=x===void 0?!1:x,w=t.resolvers,S=t.typeDefs,C=t.fragmentMatcher,k=t.name,D=t.version,P=t.link;if(P||(P=r?new dPe({uri:r,credentials:i,headers:o}):Av.empty()),!a)throw __DEV__?new mn(`To initialize Apollo Client, you must specify a 'cache' property in the options object.
|
|
476
|
-
For more information, please visit: https://go.apollo.dev/c/docs`):new mn(9);if(this.link=P,this.cache=a,this.disableNetworkFetches=l||f>0,this.queryDeduplication=g,this.defaultOptions=y||Object.create(null),this.typeDefs=S,f&&setTimeout(function(){return n.disableNetworkFetches=!1},f),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),d&&typeof window=="object"&&(window.__APOLLO_CLIENT__=this),!qB&&d&&__DEV__&&(qB=!0,typeof window<"u"&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var B=window.navigator,V=B&&B.userAgent,U=void 0;typeof V=="string"&&(V.indexOf("Chrome/")>-1?U="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":V.indexOf("Firefox/")>-1&&(U="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),U&&__DEV__&&Ze.log("Download the Apollo DevTools for a better development experience: "+U)}this.version=B2e,this.localState=new SW({cache:a,client:this,resolvers:w,fragmentMatcher:C}),this.queryManager=new a$e({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,queryDeduplication:g,ssrMode:l,clientAwareness:{name:k,version:D},localState:this.localState,assumeImmutableResults:b,onBroadcast:d?function(){n.devToolsHookCb&&n.devToolsHookCb({action:{},state:{queries:n.queryManager.getQueryStore(),mutations:n.queryManager.mutationStore||{}},dataWithOptimisticResults:n.cache.extract(!0)})}:void 0})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(t){return this.defaultOptions.watchQuery&&(t=Hd(this.defaultOptions.watchQuery,t)),this.disableNetworkFetches&&(t.fetchPolicy==="network-only"||t.fetchPolicy==="cache-and-network")&&(t=Ae(Ae({},t),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(t)},e.prototype.query=function(t){return this.defaultOptions.query&&(t=Hd(this.defaultOptions.query,t)),__DEV__?Ze(t.fetchPolicy!=="cache-and-network","The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):Ze(t.fetchPolicy!=="cache-and-network",10),this.disableNetworkFetches&&t.fetchPolicy==="network-only"&&(t=Ae(Ae({},t),{fetchPolicy:"cache-first"})),this.queryManager.query(t)},e.prototype.mutate=function(t){return this.defaultOptions.mutate&&(t=Hd(this.defaultOptions.mutate,t)),this.queryManager.mutate(t)},e.prototype.subscribe=function(t){return this.queryManager.startGraphQLSubscription(t)},e.prototype.readQuery=function(t,n){return n===void 0&&(n=!1),this.cache.readQuery(t,n)},e.prototype.readFragment=function(t,n){return n===void 0&&(n=!1),this.cache.readFragment(t,n)},e.prototype.writeQuery=function(t){var n=this.cache.writeQuery(t);return t.broadcast!==!1&&this.queryManager.broadcastQueries(),n},e.prototype.writeFragment=function(t){var n=this.cache.writeFragment(t);return t.broadcast!==!1&&this.queryManager.broadcastQueries(),n},e.prototype.__actionHookForDevTools=function(t){this.devToolsHookCb=t},e.prototype.__requestRaw=function(t){return aR(this.link,t)},e.prototype.resetStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(t.resetStoreCallbacks.map(function(n){return n()}))}).then(function(){return t.reFetchObservableQueries()})},e.prototype.clearStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(t.clearStoreCallbacks.map(function(n){return n()}))})},e.prototype.onResetStore=function(t){var n=this;return this.resetStoreCallbacks.push(t),function(){n.resetStoreCallbacks=n.resetStoreCallbacks.filter(function(r){return r!==t})}},e.prototype.onClearStore=function(t){var n=this;return this.clearStoreCallbacks.push(t),function(){n.clearStoreCallbacks=n.clearStoreCallbacks.filter(function(r){return r!==t})}},e.prototype.reFetchObservableQueries=function(t){return this.queryManager.reFetchObservableQueries(t)},e.prototype.refetchQueries=function(t){var n=this.queryManager.refetchQueries(t),r=[],i=[];n.forEach(function(a,s){r.push(s),i.push(a)});var o=Promise.all(i);return o.queries=r,o.results=i,o.catch(function(a){__DEV__&&Ze.debug("In client.refetchQueries, Promise.all promise rejected with error ".concat(a))}),o},e.prototype.getObservableQueries=function(t){return t===void 0&&(t="active"),this.queryManager.getObservableQueries(t)},e.prototype.extract=function(t){return this.cache.extract(t)},e.prototype.restore=function(t){return this.cache.restore(t)},e.prototype.addResolvers=function(t){this.localState.addResolvers(t)},e.prototype.setResolvers=function(t){this.localState.setResolvers(t)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(t){this.localState.setFragmentMatcher(t)},e.prototype.setLink=function(t){this.link=this.queryManager.link=t},e}(),Q1=function(){return Q1=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},Q1.apply(this,arguments)},Mb=new Map,yR=new Map,EW=!0,Y1=!1;function CW(e){return e.replace(/[\s,]+/g," ").trim()}function l$e(e){return CW(e.source.body.substring(e.start,e.end))}function u$e(e){var t=new Set,n=[];return e.definitions.forEach(function(r){if(r.kind==="FragmentDefinition"){var i=r.name.value,o=l$e(r.loc),a=yR.get(i);a&&!a.has(o)?EW&&console.warn("Warning: fragment with name "+i+` already exists.
|
|
477
|
-
graphql-tag enforces all fragment names across your application to be unique; read more about
|
|
478
|
-
this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a||yR.set(i,a=new Set),a.add(o),t.has(o)||(t.add(o),n.push(r))}else n.push(r)}),Q1(Q1({},e),{definitions:n})}function c$e(e){var t=new Set(e.definitions);t.forEach(function(r){r.loc&&delete r.loc,Object.keys(r).forEach(function(i){var o=r[i];o&&typeof o=="object"&&t.add(o)})});var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}function f$e(e){var t=CW(e);if(!Mb.has(t)){var n=PIe(e,{experimentalFragmentVariables:Y1,allowLegacyFragmentVariables:Y1});if(!n||n.kind!=="Document")throw new Error("Not a valid GraphQL document.");Mb.set(t,c$e(u$e(n)))}return Mb.get(t)}function Aa(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];typeof e=="string"&&(e=[e]);var r=e[0];return t.forEach(function(i,o){i&&i.kind==="Document"?r+=i.loc.source.body:r+=i,r+=e[o+1]}),f$e(r)}function d$e(){Mb.clear(),yR.clear()}function p$e(){EW=!1}function h$e(){Y1=!0}function m$e(){Y1=!1}var lm={gql:Aa,resetCaches:d$e,disableFragmentWarnings:p$e,enableExperimentalFragmentVariables:h$e,disableExperimentalFragmentVariables:m$e};(function(e){e.gql=lm.gql,e.resetCaches=lm.resetCaches,e.disableFragmentWarnings=lm.disableFragmentWarnings,e.enableExperimentalFragmentVariables=lm.enableExperimentalFragmentVariables,e.disableExperimentalFragmentVariables=lm.disableExperimentalFragmentVariables})(Aa||(Aa={}));Aa.default=Aa;var GB=QD?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function rI(){var e=R.createContext[GB];return e||(Object.defineProperty(R.createContext,GB,{value:e=R.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}var g$e=function(e){var t=e.client,n=e.children,r=rI();return R.createElement(r.Consumer,null,function(i){return i===void 0&&(i={}),t&&i.client!==t&&(i=Object.assign({},i,{client:t})),__DEV__?Ze(i.client,'ApolloProvider was not passed a client instance. Make sure you pass in your client via the "client" prop.'):Ze(i.client,29),R.createElement(r.Provider,{value:i},n)})};function iI(e){var t=R.useContext(rI()),n=e||t.client;return __DEV__?Ze(!!n,'Could not find "client" in the context or passed in as an option. Wrap the root component in an <ApolloProvider>, or pass an ApolloClient instance in via options.'):Ze(!!n,32),n}var QB=!1,v$e="useSyncExternalStore",y$e=mu[v$e],b$e=y$e||function(e,t,n){var r=t();__DEV__&&!QB&&r!==t()&&(QB=!0,__DEV__&&Ze.error("The result of getSnapshot should be cached to avoid an infinite loop"));var i=R.useState({inst:{value:r,getSnapshot:t}}),o=i[0].inst,a=i[1];return D2e?R.useLayoutEffect(function(){Object.assign(o,{value:r,getSnapshot:t}),fC(o)&&a({inst:o})},[e,r,t]):Object.assign(o,{value:r,getSnapshot:t}),R.useEffect(function(){return fC(o)&&a({inst:o}),e(function(){fC(o)&&a({inst:o})})},[e]),r};function fC(e){var t=e.value,n=e.getSnapshot;try{return t!==n()}catch{return!0}}var us;(function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"})(us||(us={}));var YB=new Map;function XB(e){var t;switch(e){case us.Query:t="Query";break;case us.Mutation:t="Mutation";break;case us.Subscription:t="Subscription";break}return t}function w$e(e){var t=YB.get(e);if(t)return t;var n,r,i;__DEV__?Ze(!!e&&!!e.kind,"Argument of ".concat(e," passed to parser was not a valid GraphQL ")+"DocumentNode. You may need to use 'graphql-tag' or another method to convert your operation into a document"):Ze(!!e&&!!e.kind,33);for(var o=[],a=[],s=[],l=[],u=0,f=e.definitions;u<f.length;u++){var p=f[u];if(p.kind==="FragmentDefinition"){o.push(p);continue}if(p.kind==="OperationDefinition")switch(p.operation){case"query":a.push(p);break;case"mutation":s.push(p);break;case"subscription":l.push(p);break}}__DEV__?Ze(!o.length||a.length||s.length||l.length,"Passing only a fragment to 'graphql' is not yet supported. You must include a query, subscription or mutation as well"):Ze(!o.length||a.length||s.length||l.length,34),__DEV__?Ze(a.length+s.length+l.length<=1,"react-apollo only supports a query, subscription, or a mutation per HOC. "+"".concat(e," had ").concat(a.length," queries, ").concat(l.length," ")+"subscriptions and ".concat(s.length," mutations. ")+"You can use 'compose' to join multiple operation types to a component"):Ze(a.length+s.length+l.length<=1,35),r=a.length?us.Query:us.Mutation,!a.length&&!s.length&&(r=us.Subscription);var d=a.length?a:s.length?s:l;__DEV__?Ze(d.length===1,"react-apollo only supports one definition per HOC. ".concat(e," had ")+"".concat(d.length," definitions. ")+"You can use 'compose' to join multiple operation types to a component"):Ze(d.length===1,36);var v=d[0];n=v.variableDefinitions||[],v.name&&v.name.kind==="Name"?i=v.name.value:i="data";var g={name:i,type:r,variables:n};return YB.set(e,g),g}function kW(e,t){var n=w$e(e),r=XB(t),i=XB(n.type);__DEV__?Ze(n.type===t,"Running a ".concat(r," requires a graphql ")+"".concat(r,", but a ").concat(i," was used instead.")):Ze(n.type===t,37)}var _$e=Object.prototype.hasOwnProperty;function oI(e,t){return t===void 0&&(t=Object.create(null)),TW(iI(t.client),e).useQuery(t)}function TW(e,t){var n=R.useRef();(!n.current||e!==n.current.client||t!==n.current.query)&&(n.current=new x$e(e,t,n.current));var r=n.current,i=R.useState(0);i[0];var o=i[1];return r.forceUpdate=function(){o(function(a){return a+1})},r}var x$e=function(){function e(t,n,r){this.client=t,this.query=n,this.asyncResolveFns=new Set,this.optionsToIgnoreOnce=new(q7?WeakSet:Set),this.ssrDisabledResult=Ug({loading:!0,data:void 0,error:void 0,networkStatus:fn.loading}),this.skipStandbyResult=Ug({loading:!1,data:void 0,error:void 0,networkStatus:fn.ready}),this.toQueryResultCache=new(Lu?WeakMap:Map),kW(n,us.Query);var i=r&&r.result,o=i&&i.data;o&&(this.previousData=o)}return e.prototype.forceUpdate=function(){__DEV__&&Ze.warn("Calling default no-op implementation of InternalState#forceUpdate")},e.prototype.asyncUpdate=function(t){var n=this;return new Promise(function(r,i){var o=n.watchQueryOptions,a=function(){n.asyncResolveFns.delete(r),n.optionsToIgnoreOnce.delete(o),t.removeEventListener("abort",a),i(t.reason)};n.asyncResolveFns.add(r),n.optionsToIgnoreOnce.add(o),t.addEventListener("abort",a),n.forceUpdate()})},e.prototype.useQuery=function(t){var n=this;this.renderPromises=R.useContext(rI()).renderPromises,this.useOptions(t);var r=this.useObservableQuery(),i=b$e(R.useCallback(function(){if(n.renderPromises)return function(){};var a=function(){var u=n.result,f=r.getCurrentResult();u&&u.loading===f.loading&&u.networkStatus===f.networkStatus&&qn(u.data,f.data)||n.setResult(f)},s=function(u){var f=r.last;l.unsubscribe();try{r.resetLastResults(),l=r.subscribe(a,s)}finally{r.last=f}if(!_$e.call(u,"graphQLErrors"))throw u;var p=n.result;(!p||p&&p.loading||!qn(u,p.error))&&n.setResult({data:p&&p.data,error:u,loading:!1,networkStatus:fn.error})},l=r.subscribe(a,s);return function(){return l.unsubscribe()}},[r,this.renderPromises,this.client.disableNetworkFetches]),function(){return n.getCurrentResult()},function(){return n.getCurrentResult()});this.unsafeHandlePartialRefetch(i);var o=this.toQueryResult(i);return!o.loading&&this.asyncResolveFns.size&&(this.asyncResolveFns.forEach(function(a){return a(o)}),this.asyncResolveFns.clear()),o},e.prototype.useOptions=function(t){var n,r=this.createWatchQueryOptions(this.queryHookOptions=t),i=this.watchQueryOptions;(this.optionsToIgnoreOnce.has(i)||!qn(r,i))&&(this.watchQueryOptions=r,i&&this.observable&&(this.optionsToIgnoreOnce.delete(i),this.observable.reobserve(this.getObsQueryOptions()),this.previousData=((n=this.result)===null||n===void 0?void 0:n.data)||this.previousData,this.result=void 0)),this.onCompleted=t.onCompleted||e.prototype.onCompleted,this.onError=t.onError||e.prototype.onError,(this.renderPromises||this.client.disableNetworkFetches)&&this.queryHookOptions.ssr===!1&&!this.queryHookOptions.skip?this.result=this.ssrDisabledResult:this.queryHookOptions.skip||this.watchQueryOptions.fetchPolicy==="standby"?this.result=this.skipStandbyResult:(this.result===this.ssrDisabledResult||this.result===this.skipStandbyResult)&&(this.result=void 0)},e.prototype.getObsQueryOptions=function(){var t=[],n=this.client.defaultOptions.watchQuery;return n&&t.push(n),this.queryHookOptions.defaultOptions&&t.push(this.queryHookOptions.defaultOptions),t.push(Ov(this.observable&&this.observable.options,this.watchQueryOptions)),t.reduce(Hd)},e.prototype.createWatchQueryOptions=function(t){var n;t===void 0&&(t={});var r=t.skip;t.ssr,t.onCompleted,t.onError,t.defaultOptions;var i=xu(t,["skip","ssr","onCompleted","onError","defaultOptions"]),o=Object.assign(i,{query:this.query});if(this.renderPromises&&(o.fetchPolicy==="network-only"||o.fetchPolicy==="cache-and-network")&&(o.fetchPolicy="cache-first"),o.variables||(o.variables={}),r){var a=o.fetchPolicy,s=a===void 0?this.getDefaultFetchPolicy():a,l=o.initialFetchPolicy,u=l===void 0?s:l;Object.assign(o,{initialFetchPolicy:u,fetchPolicy:"standby"})}else o.fetchPolicy||(o.fetchPolicy=((n=this.observable)===null||n===void 0?void 0:n.options.initialFetchPolicy)||this.getDefaultFetchPolicy());return o},e.prototype.getDefaultFetchPolicy=function(){var t,n;return((t=this.queryHookOptions.defaultOptions)===null||t===void 0?void 0:t.fetchPolicy)||((n=this.client.defaultOptions.watchQuery)===null||n===void 0?void 0:n.fetchPolicy)||"cache-first"},e.prototype.onCompleted=function(t){},e.prototype.onError=function(t){},e.prototype.useObservableQuery=function(){var t=this.observable=this.renderPromises&&this.renderPromises.getSSRObservable(this.watchQueryOptions)||this.observable||this.client.watchQuery(this.getObsQueryOptions());this.obsQueryFields=R.useMemo(function(){return{refetch:t.refetch.bind(t),reobserve:t.reobserve.bind(t),fetchMore:t.fetchMore.bind(t),updateQuery:t.updateQuery.bind(t),startPolling:t.startPolling.bind(t),stopPolling:t.stopPolling.bind(t),subscribeToMore:t.subscribeToMore.bind(t)}},[t]);var n=!(this.queryHookOptions.ssr===!1||this.queryHookOptions.skip);return this.renderPromises&&n&&(this.renderPromises.registerSSRObservable(t),t.getCurrentResult().loading&&this.renderPromises.addObservableQueryPromise(t)),t},e.prototype.setResult=function(t){var n=this.result;n&&n.data&&(this.previousData=n.data),this.result=t,this.forceUpdate(),this.handleErrorOrCompleted(t)},e.prototype.handleErrorOrCompleted=function(t){var n=this;if(!t.loading){var r=this.toApolloError(t);Promise.resolve().then(function(){r?n.onError(r):t.data&&n.onCompleted(t.data)}).catch(function(i){__DEV__&&Ze.warn(i)})}},e.prototype.toApolloError=function(t){return Wi(t.errors)?new Gs({graphQLErrors:t.errors}):t.error},e.prototype.getCurrentResult=function(){return this.result||this.handleErrorOrCompleted(this.result=this.observable.getCurrentResult()),this.result},e.prototype.toQueryResult=function(t){var n=this.toQueryResultCache.get(t);if(n)return n;var r=t.data;t.partial;var i=xu(t,["data","partial"]);return this.toQueryResultCache.set(t,n=Ae(Ae(Ae({data:r},i),this.obsQueryFields),{client:this.client,observable:this.observable,variables:this.observable.variables,called:!this.queryHookOptions.skip,previousData:this.previousData})),!n.error&&Wi(t.errors)&&(n.error=new Gs({graphQLErrors:t.errors})),n},e.prototype.unsafeHandlePartialRefetch=function(t){t.partial&&this.queryHookOptions.partialRefetch&&!t.loading&&(!t.data||Object.keys(t.data).length===0)&&this.observable.options.fetchPolicy!=="cache-only"&&(Object.assign(t,{loading:!0,networkStatus:fn.refetch}),this.observable.refetch())},e}(),S$e=["refetch","reobserve","fetchMore","updateQuery","startPolling","subscribeToMore"];function E$e(e,t){var n,r=R.useRef(new Set),i=R.useRef(),o=i.current?Hd(t,i.current):t,a=TW(iI(t&&t.client),(n=o==null?void 0:o.query)!==null&&n!==void 0?n:e),s=a.useQuery(Ae(Ae({},o),{skip:!i.current})),l=s.observable.options.initialFetchPolicy||a.getDefaultFetchPolicy(),u=Object.assign(s,{called:!!i.current}),f=R.useMemo(function(){for(var d={},v=function(b){var w=u[b];d[b]=function(){return i.current||(i.current=Object.create(null),a.forceUpdate()),w.apply(this,arguments)}},g=0,y=S$e;g<y.length;g++){var x=y[g];v(x)}return d},[]);Object.assign(u,f),R.useEffect(function(){return function(){r.current.forEach(function(d){d.abort()})}},[]);var p=R.useCallback(function(d){var v=new AbortController;r.current.add(v),i.current=d?Ae(Ae({},d),{fetchPolicy:d.fetchPolicy||l}):{fetchPolicy:l};var g=a.asyncUpdate(v.signal).then(function(y){return r.current.delete(v),Object.assign(y,f)});return g.catch(function(){r.current.delete(v)}),g},[]);return[p,u]}function RW(e,t){var n=iI(t==null?void 0:t.client);kW(e,us.Mutation);var r=R.useState({called:!1,loading:!1,client:n}),i=r[0],o=r[1],a=R.useRef({result:i,mutationId:0,isMounted:!0,client:n,mutation:e,options:t});Object.assign(a.current,{client:n,options:t,mutation:e});var s=R.useCallback(function(u){u===void 0&&(u={});var f=a.current,p=f.options,d=f.mutation,v=Ae(Ae({},p),{mutation:d}),g=u.client||a.current.client;!a.current.result.loading&&!v.ignoreResults&&a.current.isMounted&&o(a.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:g});var y=++a.current.mutationId,x=Hd(v,u);return g.mutate(x).then(function(b){var w,S=b.data,C=b.errors,k=C&&C.length>0?new Gs({graphQLErrors:C}):void 0;if(y===a.current.mutationId&&!x.ignoreResults){var D={called:!0,loading:!1,data:S,error:k,client:g};a.current.isMounted&&!qn(a.current.result,D)&&o(a.current.result=D)}var P=u.onCompleted||((w=a.current.options)===null||w===void 0?void 0:w.onCompleted);return P==null||P(b.data,x),b}).catch(function(b){var w;if(y===a.current.mutationId&&a.current.isMounted){var S={loading:!1,error:b,data:void 0,called:!0,client:g};qn(a.current.result,S)||o(a.current.result=S)}var C=u.onError||((w=a.current.options)===null||w===void 0?void 0:w.onError);if(C)return C(b,x),{data:void 0,errors:b};throw b})},[]),l=R.useCallback(function(){a.current.isMounted&&o({called:!1,loading:!1,client:n})},[]);return R.useEffect(function(){return a.current.isMounted=!0,function(){a.current.isMounted=!1}},[]),[s,Ae({reset:l},i)]}var bR=function(e,t){return bR=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])},bR(e,t)};function C$e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");bR(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Lr=function(){return Lr=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},Lr.apply(this,arguments)};function k$e(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Qf(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(f){try{u(r.next(f))}catch(p){a(p)}}function l(f){try{u(r.throw(f))}catch(p){a(p)}}function u(f){f.done?o(f.value):i(f.value).then(s,l)}u((r=r.apply(e,t||[])).next())})}function Yf(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(f){return l([u,f])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(n=0)),n;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(f){u=[6,f],i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function Ja(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 Td=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function aI(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function sI(e,t){return e(t={exports:{}},t.exports),t.exports}var fc=sI(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()}});aI(fc);var T$e=aI(sI(function(e,t){var n=Td&&Td.__awaiter||function(l,u,f,p){return new(f||(f=Promise))(function(d,v){function g(b){try{x(p.next(b))}catch(w){v(w)}}function y(b){try{x(p.throw(b))}catch(w){v(w)}}function x(b){b.done?d(b.value):new f(function(w){w(b.value)}).then(g,y)}x((p=p.apply(l,u||[])).next())})},r=Td&&Td.__generator||function(l,u){var f,p,d,v,g={label:0,sent:function(){if(1&d[0])throw d[1];return d[1]},trys:[],ops:[]};return v={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(v[Symbol.iterator]=function(){return this}),v;function y(x){return function(b){return function(w){if(f)throw new TypeError("Generator is already executing.");for(;g;)try{if(f=1,p&&(d=2&w[0]?p.return:w[0]?p.throw||((d=p.return)&&d.call(p),0):p.next)&&!(d=d.call(p,w[1])).done)return d;switch(p=0,d&&(w=[2&w[0],d.value]),w[0]){case 0:case 1:d=w;break;case 4:return g.label++,{value:w[1],done:!1};case 5:g.label++,p=w[1],w=[0];continue;case 7:w=g.ops.pop(),g.trys.pop();continue;default:if(d=g.trys,!((d=d.length>0&&d[d.length-1])||w[0]!==6&&w[0]!==2)){g=0;continue}if(w[0]===3&&(!d||w[1]>d[0]&&w[1]<d[3])){g.label=w[1];break}if(w[0]===6&&g.label<d[1]){g.label=d[1],d=w;break}if(d&&g.label<d[2]){g.label=d[2],g.ops.push(w);break}d[2]&&g.ops.pop(),g.trys.pop();continue}w=u.call(l,g)}catch(S){w=[6,S],p=0}finally{f=d=0}if(5&w[0])throw w[1];return{value:w[0]?w[1]:void 0,done:!0}}([x,b])}}};Object.defineProperty(t,"__esModule",{value:!0});var i="browser-tabs-lock-key";function o(l){return new Promise(function(u){return setTimeout(u,l)})}function a(l){for(var u="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",f="",p=0;p<l;p++)f+=u[Math.floor(Math.random()*u.length)];return f}var s=function(){function l(){this.acquiredIatSet=new Set,this.id=Date.now().toString()+a(15),this.acquireLock=this.acquireLock.bind(this),this.releaseLock=this.releaseLock.bind(this),this.releaseLock__private__=this.releaseLock__private__.bind(this),this.waitForSomethingToChange=this.waitForSomethingToChange.bind(this),this.refreshLockWhileAcquired=this.refreshLockWhileAcquired.bind(this),l.waiters===void 0&&(l.waiters=[])}return l.prototype.acquireLock=function(u,f){return f===void 0&&(f=5e3),n(this,void 0,void 0,function(){var p,d,v,g,y,x;return r(this,function(b){switch(b.label){case 0:p=Date.now()+a(4),d=Date.now()+f,v=i+"-"+u,g=window.localStorage,b.label=1;case 1:return Date.now()<d?[4,o(30)]:[3,8];case 2:return b.sent(),g.getItem(v)!==null?[3,5]:(y=this.id+"-"+u+"-"+p,[4,o(Math.floor(25*Math.random()))]);case 3:return b.sent(),g.setItem(v,JSON.stringify({id:this.id,iat:p,timeoutKey:y,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,o(30)];case 4:return b.sent(),(x=g.getItem(v))!==null&&(x=JSON.parse(x)).id===this.id&&x.iat===p?(this.acquiredIatSet.add(p),this.refreshLockWhileAcquired(v,p),[2,!0]):[3,7];case 5:return l.lockCorrector(),[4,this.waitForSomethingToChange(d)];case 6:b.sent(),b.label=7;case 7:return p=Date.now()+a(4),[3,1];case 8:return[2,!1]}})})},l.prototype.refreshLockWhileAcquired=function(u,f){return n(this,void 0,void 0,function(){var p=this;return r(this,function(d){return setTimeout(function(){return n(p,void 0,void 0,function(){var v,g;return r(this,function(y){switch(y.label){case 0:return[4,fc.default().lock(f)];case 1:return y.sent(),this.acquiredIatSet.has(f)?(v=window.localStorage,(g=v.getItem(u))===null?(fc.default().unlock(f),[2]):((g=JSON.parse(g)).timeRefreshed=Date.now(),v.setItem(u,JSON.stringify(g)),fc.default().unlock(f),this.refreshLockWhileAcquired(u,f),[2])):(fc.default().unlock(f),[2])}})})},1e3),[2]})})},l.prototype.waitForSomethingToChange=function(u){return n(this,void 0,void 0,function(){return r(this,function(f){switch(f.label){case 0:return[4,new Promise(function(p){var d=!1,v=Date.now(),g=!1;function y(){if(g||(window.removeEventListener("storage",y),l.removeFromWaiting(y),clearTimeout(x),g=!0),!d){d=!0;var b=50-(Date.now()-v);b>0?setTimeout(p,b):p()}}window.addEventListener("storage",y),l.addToWaiting(y);var x=setTimeout(y,Math.max(0,u-Date.now()))})];case 1:return f.sent(),[2]}})})},l.addToWaiting=function(u){this.removeFromWaiting(u),l.waiters!==void 0&&l.waiters.push(u)},l.removeFromWaiting=function(u){l.waiters!==void 0&&(l.waiters=l.waiters.filter(function(f){return f!==u}))},l.notifyWaiters=function(){l.waiters!==void 0&&l.waiters.slice().forEach(function(u){return u()})},l.prototype.releaseLock=function(u){return n(this,void 0,void 0,function(){return r(this,function(f){switch(f.label){case 0:return[4,this.releaseLock__private__(u)];case 1:return[2,f.sent()]}})})},l.prototype.releaseLock__private__=function(u){return n(this,void 0,void 0,function(){var f,p,d;return r(this,function(v){switch(v.label){case 0:return f=window.localStorage,p=i+"-"+u,(d=f.getItem(p))===null?[2]:(d=JSON.parse(d)).id!==this.id?[3,2]:[4,fc.default().lock(d.iat)];case 1:v.sent(),this.acquiredIatSet.delete(d.iat),f.removeItem(p),fc.default().unlock(d.iat),l.notifyWaiters(),v.label=2;case 2:return[2]}})})},l.lockCorrector=function(){for(var u=Date.now()-5e3,f=window.localStorage,p=Object.keys(f),d=!1,v=0;v<p.length;v++){var g=p[v];if(g.includes(i)){var y=f.getItem(g);y!==null&&((y=JSON.parse(y)).timeRefreshed===void 0&&y.timeAcquired<u||y.timeRefreshed!==void 0&&y.timeRefreshed<u)&&(f.removeItem(g),d=!0)}}d&&l.notifyWaiters()},l.waiters=void 0,l}();t.default=s}));const R$e={timeoutInSeconds:60},OW={name:"auth0-spa-js",version:"2.0.4"},AW=()=>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 lI extends Ko{constructor(t,n,r,i=null){super(t,n),this.state=r,this.appState=i,Object.setPrototypeOf(this,lI.prototype)}}class Hg extends Ko{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,Hg.prototype)}}class uI extends Hg{constructor(t){super(),this.popup=t,Object.setPrototypeOf(this,uI.prototype)}}class cI extends Ko{constructor(t){super("cancelled","Popup closed"),this.popup=t,Object.setPrototypeOf(this,cI.prototype)}}class fI extends Ko{constructor(t,n,r){super(t,n),this.mfa_token=r,Object.setPrototypeOf(this,fI.prototype)}}class ux extends Ko{constructor(t,n){super("missing_refresh_token",`Missing Refresh Token (audience: '${JB(t,["default"])}', scope: '${JB(n)}')`),this.audience=t,this.scope=n,Object.setPrototypeOf(this,ux.prototype)}}function JB(e,t=[]){return e&&!t.includes(e)?e:""}const Nb=()=>window.crypto,dC=()=>{const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let t="";return Array.from(Nb().getRandomValues(new Uint8Array(43))).forEach(n=>t+=e[n%e.length]),t},ZB=e=>btoa(e),wR=e=>{var{clientId:t}=e,n=Ja(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()},e3=e=>(t=>decodeURIComponent(atob(t).split("").map(n=>"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)).join("")))(e.replace(/_/g,"/").replace(/-/g,"+")),O$e=async(e,t)=>{const n=await fetch(e,t);return{ok:n.ok,json:await n.json()}},A$e=async(e,t,n)=>{const r=new AbortController;let i;return t.signal=r.signal,Promise.race([O$e(e,t),new Promise((o,a)=>{i=setTimeout(()=>{r.abort(),a(new Error("Timeout when executing 'fetch'"))},n)})]).finally(()=>{clearTimeout(i)})},D$e=async(e,t,n,r,i,o,a)=>{return s={auth:{audience:t,scope:n},timeout:i,fetchUrl:e,fetchOptions:r,useFormData:a},l=o,new Promise(function(u,f){const p=new MessageChannel;p.port1.onmessage=function(d){d.data.error?f(new Error(d.data.error)):u(d.data),p.port1.close()},l.postMessage(s,[p.port2])});var s,l},I$e=async(e,t,n,r,i,o,a=1e4)=>i?D$e(e,t,n,r,a,i,o):A$e(e,r,a);async function P$e(e,t){var{baseUrl:n,timeout:r,audience:i,scope:o,auth0Client:a,useFormData:s}=e,l=Ja(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);const u=s?wR(l):JSON.stringify(l);return await async function(f,p,d,v,g,y,x){let b,w=null;for(let B=0;B<3;B++)try{b=await I$e(f,d,v,g,y,x,p),w=null;break}catch(V){w=V}if(w)throw w;const S=b.json,{error:C,error_description:k}=S,D=Ja(S,["error","error_description"]),{ok:P}=b;if(!P){const B=k||`HTTP error. Unable to fetch ${f}`;throw C==="mfa_required"?new fI(C,B,D.mfa_token):C==="missing_refresh_token"?new ux(d,v):new Ko(C||"request_error",B)}return D}(`${n}/oauth/token`,r,i||"default",o,{method:"POST",body:u,headers:{"Content-Type":s?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(a||OW))}},t,s)}const L0=(...e)=>{return(t=e.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(t))).join(" ");var t};class ts{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 ts({clientId:r,scope:o,audience:i},n)}static fromCacheEntry(t){const{scope:n,audience:r,client_id:i}=t;return new ts({scope:n,audience:r,clientId:i})}}class $$e{set(t,n){localStorage.setItem(t,JSON.stringify(n))}get(t){const n=window.localStorage.getItem(t);if(n)try{return JSON.parse(n)}catch{return}}remove(t){localStorage.removeItem(t)}allKeys(){return Object.keys(window.localStorage).filter(t=>t.startsWith("@@auth0spajs@@"))}}class DW{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 F$e{constructor(t,n,r){this.cache=t,this.keyManifest=n,this.nowProvider=r||AW}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 ts({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 ts({clientId:t},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(t,n){return n.filter(r=>{var i;const o=ts.fromKey(r),a=new Set(o.scope&&o.scope.split(" ")),s=((i=t.scope)===null||i===void 0?void 0:i.split(" "))||[],l=o.scope&&s.reduce((u,f)=>u&&a.has(f),!0);return o.prefix==="@@auth0spajs@@"&&o.clientId===t.clientId&&o.audience===t.audience&&l})[0]}}class L$e{constructor(t,n){this.storage=t,this.clientId=n,this.storageKey=`a0.spajs.txs.${this.clientId}`,this.transaction=this.storage.get(this.storageKey)}create(t){this.transaction=t,this.storage.save(this.storageKey,t,{daysUntilExpire:1})}get(){return this.transaction}remove(){delete this.transaction,this.storage.remove(this.storageKey)}}const um=e=>typeof e=="number",M$e=["iss","aud","exp","nbf","iat","jti","azp","nonce","auth_time","at_hash","c_hash","acr","amr","sub_jwk","cnf","sip_from_tag","sip_date","sip_callid","sip_cseq_num","sip_via_branch","orig","dest","mky","events","toe","txn","rph","sid","vot","vtm"],N$e=e=>{if(!e.id_token)throw new Error("ID token is required but missing");const t=(o=>{const a=o.split("."),[s,l,u]=a;if(a.length!==3||!s||!l||!u)throw new Error("ID token could not be decoded");const f=JSON.parse(e3(l)),p={__raw:o},d={};return Object.keys(f).forEach(v=>{p[v]=f[v],M$e.includes(v)||(d[v]=f[v])}),{encoded:{header:s,payload:l,signature:u},header:JSON.parse(e3(s)),claims:p,user:d}})(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&&!um(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||!um(t.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!um(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&&um(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&&um(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 Ec=sI(function(e,t){var n=Td&&Td.__assign||function(){return n=Object.assign||function(l){for(var u,f=1,p=arguments.length;f<p;f++)for(var d in u=arguments[f])Object.prototype.hasOwnProperty.call(u,d)&&(l[d]=u[d]);return l},n.apply(this,arguments)};function r(l,u){if(!u)return"";var f="; "+l;return u===!0?f:f+"="+u}function i(l,u,f){return encodeURIComponent(l).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(u).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(p){if(typeof p.expires=="number"){var d=new Date;d.setMilliseconds(d.getMilliseconds()+864e5*p.expires),p.expires=d}return r("Expires",p.expires?p.expires.toUTCString():"")+r("Domain",p.domain)+r("Path",p.path)+r("Secure",p.secure)+r("SameSite",p.sameSite)}(f)}function o(l){for(var u={},f=l?l.split("; "):[],p=/(%[\dA-F]{2})+/gi,d=0;d<f.length;d++){var v=f[d].split("="),g=v.slice(1).join("=");g.charAt(0)==='"'&&(g=g.slice(1,-1));try{u[v[0].replace(p,decodeURIComponent)]=g.replace(p,decodeURIComponent)}catch{}}return u}function a(){return o(document.cookie)}function s(l,u,f){document.cookie=i(l,u,n({path:"/"},f))}t.__esModule=!0,t.encode=i,t.parse=o,t.getAll=a,t.get=function(l){return a()[l]},t.set=s,t.remove=function(l,u){s(l,"",n(n({},u),{expires:-1}))}});aI(Ec),Ec.encode,Ec.parse,Ec.getAll;var B$e=Ec.get,IW=Ec.set,PW=Ec.remove;const sd={get(e){const t=B$e(e);if(t!==void 0)return JSON.parse(t)},save(e,t,n){let r={};window.location.protocol==="https:"&&(r={secure:!0,sameSite:"none"}),n!=null&&n.daysUntilExpire&&(r.expires=n.daysUntilExpire),n!=null&&n.cookieDomain&&(r.domain=n.cookieDomain),IW(e,JSON.stringify(t),r)},remove(e,t){let n={};t!=null&&t.cookieDomain&&(n.domain=t.cookieDomain),PW(e,n)}},j$e={get(e){return sd.get(e)||sd.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),IW(`_legacy_${e}`,JSON.stringify(t),r),sd.save(e,t,n)},remove(e,t){let n={};t!=null&&t.cookieDomain&&(n.domain=t.cookieDomain),PW(e,n),sd.remove(e,t),sd.remove(`_legacy_${e}`,t)}},z$e={get(e){if(typeof sessionStorage>"u")return;const t=sessionStorage.getItem(e);return t!=null?JSON.parse(t):void 0},save(e,t){sessionStorage.setItem(e,JSON.stringify(t))},remove(e){sessionStorage.removeItem(e)}};function U$e(e,t,n){var r=t===void 0?null:t,i=function(l,u){var f=atob(l);if(u){for(var p=new Uint8Array(f.length),d=0,v=f.length;d<v;++d)p[d]=f.charCodeAt(d);return String.fromCharCode.apply(null,new Uint16Array(p.buffer))}return f}(e,n!==void 0&&n),o=i.indexOf(`
|
|
479
|
-
`,10)+1,a=i.substring(o)+(r?"//# sourceMappingURL="+r:""),s=new Blob([a],{type:"application/javascript"});return URL.createObjectURL(s)}var t3,n3,r3,pC,V$e=(t3="Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29uc3RydWN0b3IoZSxzKXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIixgTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyR7cihlLFsiZGVmYXVsdCJdKX0nLCBzY29wZTogJyR7cihzKX0nKWApLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXMsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsdC5wcm90b3R5cGUpfX1mdW5jdGlvbiByKGUsdD1bXSl7cmV0dXJuIGUmJiF0LmluY2x1ZGVzKGUpP2U6IiJ9Y29uc3Qgcz1lPT57dmFye2NsaWVudElkOnR9PWUscj1mdW5jdGlvbihlLHQpe3ZhciByPXt9O2Zvcih2YXIgcyBpbiBlKU9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbChlLHMpJiZ0LmluZGV4T2Yocyk8MCYmKHJbc109ZVtzXSk7aWYobnVsbCE9ZSYmImZ1bmN0aW9uIj09dHlwZW9mIE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMpe3ZhciBvPTA7Zm9yKHM9T2JqZWN0LmdldE93blByb3BlcnR5U3ltYm9scyhlKTtvPHMubGVuZ3RoO28rKyl0LmluZGV4T2Yoc1tvXSk8MCYmT2JqZWN0LnByb3RvdHlwZS5wcm9wZXJ0eUlzRW51bWVyYWJsZS5jYWxsKGUsc1tvXSkmJihyW3Nbb11dPWVbc1tvXV0pfXJldHVybiByfShlLFsiY2xpZW50SWQiXSk7cmV0dXJuIG5ldyBVUkxTZWFyY2hQYXJhbXMoKGU9Pk9iamVjdC5rZXlzKGUpLmZpbHRlcigodD0+dm9pZCAwIT09ZVt0XSkpLnJlZHVjZSgoKHQscik9Pk9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSx0KSx7W3JdOmVbcl19KSkse30pKShPYmplY3QuYXNzaWduKHtjbGllbnRfaWQ6dH0scikpKS50b1N0cmluZygpfTtsZXQgbz17fTtjb25zdCBuPShlLHQpPT5gJHtlfXwke3R9YDthZGRFdmVudExpc3RlbmVyKCJtZXNzYWdlIiwoYXN5bmMoe2RhdGE6e3RpbWVvdXQ6ZSxhdXRoOnIsZmV0Y2hVcmw6aSxmZXRjaE9wdGlvbnM6Yyx1c2VGb3JtRGF0YTphfSxwb3J0czpbZl19KT0+e2xldCBwO2NvbnN0e2F1ZGllbmNlOmwsc2NvcGU6dX09cnx8e307dHJ5e2NvbnN0IHI9YT8oZT0+e2NvbnN0IHQ9bmV3IFVSTFNlYXJjaFBhcmFtcyhlKSxyPXt9O3JldHVybiB0LmZvckVhY2goKChlLHQpPT57clt0XT1lfSkpLHJ9KShjLmJvZHkpOkpTT04ucGFyc2UoYy5ib2R5KTtpZighci5yZWZyZXNoX3Rva2VuJiYicmVmcmVzaF90b2tlbiI9PT1yLmdyYW50X3R5cGUpe2NvbnN0IGU9KChlLHQpPT5vW24oZSx0KV0pKGwsdSk7aWYoIWUpdGhyb3cgbmV3IHQobCx1KTtjLmJvZHk9YT9zKE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxyKSx7cmVmcmVzaF90b2tlbjplfSkpOkpTT04uc3RyaW5naWZ5KE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxyKSx7cmVmcmVzaF90b2tlbjplfSkpfWxldCBkLGc7ImZ1bmN0aW9uIj09dHlwZW9mIEFib3J0Q29udHJvbGxlciYmKGQ9bmV3IEFib3J0Q29udHJvbGxlcixjLnNpZ25hbD1kLnNpZ25hbCk7dHJ5e2c9YXdhaXQgUHJvbWlzZS5yYWNlKFsoaD1lLG5ldyBQcm9taXNlKChlPT5zZXRUaW1lb3V0KGUsaCkpKSksZmV0Y2goaSxPYmplY3QuYXNzaWduKHt9LGMpKV0pfWNhdGNoKGUpe3JldHVybiB2b2lkIGYucG9zdE1lc3NhZ2Uoe2Vycm9yOmUubWVzc2FnZX0pfWlmKCFnKXJldHVybiBkJiZkLmFib3J0KCksdm9pZCBmLnBvc3RNZXNzYWdlKHtlcnJvcjoiVGltZW91dCB3aGVuIGV4ZWN1dGluZyAnZmV0Y2gnIn0pO3A9YXdhaXQgZy5qc29uKCkscC5yZWZyZXNoX3Rva2VuPygoKGUsdCxyKT0+e29bbih0LHIpXT1lfSkocC5yZWZyZXNoX3Rva2VuLGwsdSksZGVsZXRlIHAucmVmcmVzaF90b2tlbik6KChlLHQpPT57ZGVsZXRlIG9bbihlLHQpXX0pKGwsdSksZi5wb3N0TWVzc2FnZSh7b2s6Zy5vayxqc29uOnB9KX1jYXRjaChlKXtmLnBvc3RNZXNzYWdlKHtvazohMSxqc29uOntlcnJvcjplLmVycm9yLGVycm9yX2Rlc2NyaXB0aW9uOmUubWVzc2FnZX19KX12YXIgaH0pKX0oKTsKCg==",n3=null,r3=!1,function(e){return pC=pC||U$e(t3,n3,r3),new Worker(pC,e)});const hC={};class W$e{constructor(t,n){this.cache=t,this.clientId=n,this.manifestKey=this.createManifestKeyFrom(this.clientId)}async add(t){var n;const r=new Set(((n=await this.cache.get(this.manifestKey))===null||n===void 0?void 0:n.keys)||[]);r.add(t),await this.cache.set(this.manifestKey,{keys:[...r]})}async remove(t){const n=await this.cache.get(this.manifestKey);if(n){const r=new Set(n.keys);return r.delete(t),r.size>0?await this.cache.set(this.manifestKey,{keys:[...r]}):await this.cache.remove(this.manifestKey)}}get(){return this.cache.get(this.manifestKey)}clear(){return this.cache.remove(this.manifestKey)}createManifestKeyFrom(t){return`@@auth0spajs@@::${t}`}}const K$e={memory:()=>new DW().enclosedCache,localstorage:()=>new $$e},i3=e=>K$e[e],o3=e=>{const{openUrl:t,onRedirect:n}=e,r=Ja(e,["openUrl","onRedirect"]);return Object.assign(Object.assign({},r),{openUrl:t===!1||t?t:n})},mC=new T$e;class H$e{constructor(t){let n,r;if(this.userCache=new DW().enclosedCache,this.defaultOptions={authorizationParams:{scope:"openid profile email"},useRefreshTokensFallback:!1,useFormData:!0},this._releaseLockOnPageHide=async()=>{await mC.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(!Nb())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(Nb().subtle===void 0)throw new Error(`
|
|
480
|
-
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.
|
|
481
|
-
`)})(),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",!i3(n))throw new Error(`Invalid cache location "${n}"`);r=i3(n)()}this.httpTimeoutMs=t.httpTimeoutInSeconds?1e3*t.httpTimeoutInSeconds:1e4,this.cookieStorage=t.legacySameSiteCookie===!1?sd:j$e,this.orgHintCookieName=`auth0.${this.options.clientId}.organization_hint`,this.isAuthenticatedCookieName=(a=>`auth0.${a}.is.authenticated`)(this.options.clientId),this.sessionCheckExpiryDays=t.sessionCheckExpiryDays||1;const i=t.useCookiesForTransactions?this.cookieStorage:z$e;var o;this.scope=L0("openid",this.options.authorizationParams.scope,this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new L$e(i,this.options.clientId),this.nowProvider=this.options.nowProvider||AW,this.cacheManager=new F$e(r,r.allKeys?void 0:new W$e(r,this.options.clientId),this.nowProvider),this.domainUrl=(o=this.options.domain,/^https?:\/\//.test(o)?o:`https://${o}`),this.tokenIssuer=((a,s)=>a?a.startsWith("https://")?a:`https://${a}/`:`${s}/`)(this.options.issuer,this.domainUrl),typeof window<"u"&&window.Worker&&this.options.useRefreshTokens&&n==="memory"&&(this.worker=new V$e)}_url(t){const n=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||OW)));return`${this.domainUrl}${t}&auth0Client=${n}`}_authorizeUrl(t){return this._url(`/authorize?${wR(t)}`)}async _verifyIdToken(t,n,r){const i=await this.nowProvider();return N$e({iss:this.tokenIssuer,aud:this.options.clientId,id_token:t,nonce:n,organizationId:r,leeway:this.options.leeway,max_age:(o=this.options.authorizationParams.max_age,typeof o!="string"?o:parseInt(o,10)||void 0),now:i});var o}_processOrgIdHint(t){t?this.cookieStorage.save(this.orgHintCookieName,t,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}):this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain})}async _prepareAuthorizeUrl(t,n,r){const i=ZB(dC()),o=ZB(dC()),a=dC(),s=(f=>{const p=new Uint8Array(f);return(d=>{const v={"+":"-","/":"_","=":""};return d.replace(/[+/=]/g,g=>v[g])})(window.btoa(String.fromCharCode(...Array.from(p))))})(await(async f=>await Nb().subtle.digest({name:"SHA-256"},new TextEncoder().encode(f)))(a)),l=((f,p,d,v,g,y,x,b)=>Object.assign(Object.assign(Object.assign({client_id:f.clientId},f.authorizationParams),d),{scope:L0(p,d.scope),response_type:"code",response_mode:b||"query",state:v,nonce:g,redirect_uri:x||f.authorizationParams.redirect_uri,code_challenge:y,code_challenge_method:"S256"}))(this.options,this.scope,t,i,o,s,t.redirect_uri||this.options.authorizationParams.redirect_uri||r,n==null?void 0:n.response_mode),u=this._authorizeUrl(l);return{nonce:o,code_verifier:a,scope:l.scope,audience:l.audience||"default",redirect_uri:l.redirect_uri,state:i,url:u}}async loginWithPopup(t,n){var r;if(t=t||{},!(n=n||{}).popup&&(n.popup=(s=>{const l=window.screenX+(window.innerWidth-400)/2,u=window.screenY+(window.innerHeight-600)/2;return window.open(s,"auth0:authorize:popup",`left=${l},top=${u},width=400,height=600,resizable,scrollbars=yes,status=1`)})(""),!n.popup))throw new Error("Unable to open a popup for loginWithPopup - window.open returned `null`");const i=await this._prepareAuthorizeUrl(t.authorizationParams||{},{response_mode:"web_message"},window.location.origin);n.popup.location.href=i.url;const o=await(s=>new Promise((l,u)=>{let f;const p=setInterval(()=>{s.popup&&s.popup.closed&&(clearInterval(p),clearTimeout(d),window.removeEventListener("message",f,!1),u(new cI(s.popup)))},1e3),d=setTimeout(()=>{clearInterval(p),u(new uI(s.popup)),window.removeEventListener("message",f,!1)},1e3*(s.timeoutInSeconds||60));f=function(v){if(v.data&&v.data.type==="authorization_response"){if(clearTimeout(d),clearInterval(p),window.removeEventListener("message",f,!1),s.popup.close(),v.data.response.error)return u(Ko.fromPayload(v.data.response));l(v.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=o3(t),{openUrl:i,fragment:o,appState:a}=r,s=Ja(r,["openUrl","fragment","appState"]),l=((n=s.authorizationParams)===null||n===void 0?void 0:n.organization)||this.options.authorizationParams.organization,u=await this._prepareAuthorizeUrl(s.authorizationParams||{}),{url:f}=u,p=Ja(u,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},p),{appState:a}),l&&{organizationId:l}));const d=o?`${f}#${o}`:f;i?await i(d):window.location.assign(d)}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}=(p=>{p.indexOf("#")>-1&&(p=p.substring(0,p.indexOf("#")));const d=new URLSearchParams(p);return{state:d.get("state"),code:d.get("code")||void 0,error:d.get("error")||void 0,error_description:d.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 lI(o,a||o,r,s.appState);if(!s.code_verifier||s.state&&s.state!==r)throw new Error("Invalid state");const l=s.organizationId,u=s.nonce,f=s.redirect_uri;return await this._requestToken(Object.assign({audience:s.audience,scope:s.scope,code_verifier:s.code_verifier,grant_type:"authorization_code",code:i},f?{redirect_uri:f}:{}),{nonceIn:u,organizationId:l}),{appState:s.appState}}async checkSession(t){if(!this.cookieStorage.get(this.isAuthenticatedCookieName)){if(!this.cookieStorage.get("auth0.is.authenticated"))return;this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove("auth0.is.authenticated")}try{await this.getTokenSilently(t)}catch{}}async getTokenSilently(t={}){var n;const r=Object.assign(Object.assign({cacheMode:"on"},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:L0(this.scope,(n=t.authorizationParams)===null||n===void 0?void 0:n.scope)})}),i=await((o,a)=>{let s=hC[a];return s||(s=o().finally(()=>{delete hC[a],s=null}),hC[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=Ja(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})(()=>mC.acquireLock("auth0.lock.getTokenSilently",5e3),10))throw new Hg;try{if(window.addEventListener("pagehide",this._releaseLockOnPageHide),n!=="off"){const u=await this._getEntryFromCache({scope:r.authorizationParams.scope,audience:r.authorizationParams.audience||"default",clientId:this.options.clientId});if(u)return u}const i=this.options.useRefreshTokens?await this._getTokenUsingRefreshToken(r):await this._getTokenFromIFrame(r),{id_token:o,access_token:a,oauthTokenScope:s,expires_in:l}=i;return Object.assign(Object.assign({id_token:o,access_token:a},s?{scope:s}:null),{expires_in:l})}finally{await mC.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:L0(this.scope,(r=t.authorizationParams)===null||r===void 0?void 0:r.scope)})});return n=Object.assign(Object.assign({},R$e),n),await this.loginWithPopup(i,n),(await this.cacheManager.get(new ts({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=Ja(n,["federated"]),o=r?"&federated":"";return this._url(`/v2/logout?${wR(Object.assign({clientId:t.clientId},i))}`)+o}async logout(t={}){const n=o3(t),{openUrl:r}=n,i=Ja(n,["openUrl"]);t.clientId===null?await this.cacheManager.clear():await this.cacheManager.clear(t.clientId||this.options.clientId),this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove(this.isAuthenticatedCookieName,{cookieDomain:this.options.cookieDomain}),this.userCache.remove("@@user@@");const o=this._buildLogoutUrl(i);r?await r(o):r!==!1&&window.location.assign(o)}async _getTokenFromIFrame(t){const n=Object.assign(Object.assign({},t.authorizationParams),{prompt:"none"}),r=this.cookieStorage.get(this.orgHintCookieName);r&&!n.organization&&(n.organization=r);const{url:i,state:o,nonce:a,code_verifier:s,redirect_uri:l,scope:u,audience:f}=await this._prepareAuthorizeUrl(n,{response_mode:"web_message"},window.location.origin);try{if(window.crossOriginIsolated)throw new Ko("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");const p=t.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,d=await((g,y,x=60)=>new Promise((b,w)=>{const S=window.document.createElement("iframe");S.setAttribute("width","0"),S.setAttribute("height","0"),S.style.display="none";const C=()=>{window.document.body.contains(S)&&(window.document.body.removeChild(S),window.removeEventListener("message",k,!1))};let k;const D=setTimeout(()=>{w(new Hg),C()},1e3*x);k=function(P){if(P.origin!=y||!P.data||P.data.type!=="authorization_response")return;const B=P.source;B&&B.close(),P.data.response.error?w(Ko.fromPayload(P.data.response)):b(P.data.response),clearTimeout(D),window.removeEventListener("message",k,!1),setTimeout(C,2e3)},window.addEventListener("message",k,!1),window.document.body.appendChild(S),S.setAttribute("src",g)}))(i,this.domainUrl,p);if(o!==d.state)throw new Error("Invalid state");const v=await this._requestToken(Object.assign(Object.assign({},t.authorizationParams),{code_verifier:s,code:d.code,grant_type:"authorization_code",redirect_uri:l,timeout:t.authorizationParams.timeout||this.httpTimeoutMs}),{nonceIn:a});return Object.assign(Object.assign({},v),{scope:u,oauthTokenScope:v.scope,audience:f})}catch(p){throw p.error==="login_required"&&this.logout({openUrl:!1}),p}}async _getTokenUsingRefreshToken(t){const n=await this.cacheManager.get(new ts({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 ux(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=Ja(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 ts({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 ts({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 P$e(Object.assign({baseUrl:this.domainUrl,client_id:this.options.clientId,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs},t),this.worker),a=await this._verifyIdToken(o.id_token,r,i);return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({},o),{decodedToken:a,scope:t.scope,audience:t.audience||"default"}),o.scope?{oauthTokenScope:o.scope}:null),{client_id:this.options.clientId})),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgIdHint(a.claims.org_id),Object.assign(Object.assign({},o),{decodedToken:a})}}var $W={isAuthenticated:!1,isLoading:!0},Bs=function(){throw new Error("You forgot to wrap your component in <Auth0Provider>.")},q$e=Lr(Lr({},$W),{buildAuthorizeUrl:Bs,buildLogoutUrl:Bs,getAccessTokenSilently:Bs,getAccessTokenWithPopup:Bs,getIdTokenClaims:Bs,loginWithRedirect:Bs,loginWithPopup:Bs,logout:Bs,handleRedirectCallback:Bs}),FW=R.createContext(q$e),G$e=function(e){C$e(t,e);function t(n,r){var i=e.call(this,r||n)||this;return i.error=n,i.error_description=r,Object.setPrototypeOf(i,t.prototype),i}return t}(Error),Q$e=/[?&]code=[^&]+/,Y$e=/[?&]state=[^&]+/,X$e=/[?&]error=[^&]+/,J$e=function(e){return e===void 0&&(e=window.location.search),(Q$e.test(e)||X$e.test(e))&&Y$e.test(e)},LW=function(e){return function(t){return"error"in t?new G$e(t.error,t.error_description):t instanceof Error?t:new Error(e)}},a3=LW("Login failed"),gC=LW("Get access token failed"),MW=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)},Z$e=function(e,t){switch(t.type){case"LOGIN_POPUP_STARTED":return Lr(Lr({},e),{isLoading:!0});case"LOGIN_POPUP_COMPLETE":case"INITIALISED":return Lr(Lr({},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:Lr(Lr({},e),{isAuthenticated:!!t.user,user:t.user});case"LOGOUT":return Lr(Lr({},e),{isAuthenticated:!1,user:void 0});case"ERROR":return Lr(Lr({},e),{isLoading:!1,error:t.error})}},eFe=function(e){return MW(e),Lr(Lr({},e),{auth0Client:{name:"auth0-react",version:"2.0.1"}})},tFe=function(e){window.history.replaceState({},document.title,(e==null?void 0:e.returnTo)||window.location.pathname)},nFe=function(e){var t=e.children,n=e.skipRedirectCallback,r=e.onRedirectCallback,i=r===void 0?tFe:r,o=e.context,a=o===void 0?FW:o,s=k$e(e,["children","skipRedirectCallback","onRedirectCallback","context"]),l=R.useState(function(){return new H$e(eFe(s))})[0],u=R.useReducer(Z$e,$W),f=u[0],p=u[1],d=R.useRef(!1);R.useEffect(function(){d.current||(d.current=!0,function(){return Qf(void 0,void 0,void 0,function(){var k,D,P;return Yf(this,function(B){switch(B.label){case 0:return B.trys.push([0,7,,8]),k=void 0,J$e()&&!n?[4,l.handleRedirectCallback()]:[3,3];case 1:return D=B.sent().appState,[4,l.getUser()];case 2:return k=B.sent(),i(D,k),[3,6];case 3:return[4,l.checkSession()];case 4:return B.sent(),[4,l.getUser()];case 5:k=B.sent(),B.label=6;case 6:return p({type:"INITIALISED",user:k}),[3,8];case 7:return P=B.sent(),p({type:"ERROR",error:a3(P)}),[3,8];case 8:return[2]}})})}())},[l,i,n]);var v=R.useCallback(function(k){return MW(k),l.loginWithRedirect(k)},[l]),g=R.useCallback(function(k,D){return Qf(void 0,void 0,void 0,function(){var P,B;return Yf(this,function(V){switch(V.label){case 0:p({type:"LOGIN_POPUP_STARTED"}),V.label=1;case 1:return V.trys.push([1,3,,4]),[4,l.loginWithPopup(k,D)];case 2:return V.sent(),[3,4];case 3:return P=V.sent(),p({type:"ERROR",error:a3(P)}),[2];case 4:return[4,l.getUser()];case 5:return B=V.sent(),p({type:"LOGIN_POPUP_COMPLETE",user:B}),[2]}})})},[l]),y=R.useCallback(function(k){return k===void 0&&(k={}),Qf(void 0,void 0,void 0,function(){return Yf(this,function(D){switch(D.label){case 0:return[4,l.logout(k)];case 1:return D.sent(),(k.openUrl||k.openUrl===!1)&&p({type:"LOGOUT"}),[2]}})})},[l]),x=R.useCallback(function(k){return Qf(void 0,void 0,void 0,function(){var D,P,B,V;return Yf(this,function(U){switch(U.label){case 0:return U.trys.push([0,2,3,5]),[4,l.getTokenSilently(k)];case 1:return D=U.sent(),[3,5];case 2:throw P=U.sent(),gC(P);case 3:return B=p,V={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,l.getUser()];case 4:return B.apply(void 0,[(V.user=U.sent(),V)]),[7];case 5:return[2,D]}})})},[l]),b=R.useCallback(function(k,D){return Qf(void 0,void 0,void 0,function(){var P,B,V,U;return Yf(this,function(W){switch(W.label){case 0:return W.trys.push([0,2,3,5]),[4,l.getTokenWithPopup(k,D)];case 1:return P=W.sent(),[3,5];case 2:throw B=W.sent(),gC(B);case 3:return V=p,U={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,l.getUser()];case 4:return V.apply(void 0,[(U.user=W.sent(),U)]),[7];case 5:return[2,P]}})})},[l]),w=R.useCallback(function(){return l.getIdTokenClaims()},[l]),S=R.useCallback(function(k){return Qf(void 0,void 0,void 0,function(){var D,P,B;return Yf(this,function(V){switch(V.label){case 0:return V.trys.push([0,2,3,5]),[4,l.handleRedirectCallback(k)];case 1:return[2,V.sent()];case 2:throw D=V.sent(),gC(D);case 3:return P=p,B={type:"HANDLE_REDIRECT_COMPLETE"},[4,l.getUser()];case 4:return P.apply(void 0,[(B.user=V.sent(),B)]),[7];case 5:return[2]}})})},[l]),C=R.useMemo(function(){return Lr(Lr({},f),{getAccessTokenSilently:x,getAccessTokenWithPopup:b,getIdTokenClaims:w,loginWithRedirect:v,loginWithPopup:g,logout:y,handleRedirectCallback:S})},[f,x,b,w,v,g,y,S]);return yt.createElement(a.Provider,{value:C},t)},rFe=function(e){return e===void 0&&(e=FW),R.useContext(e)};const ys=()=>{const{isAuthenticated:e,...t}=rFe(),n=Ft(HV),r=Ft(fD);return{role:r,accessToken:n,isAuthenticated:e,isProjectMember:e&&r&&r!=="ANONYMOUS",...t}},cx=R.memo(function({children:t}){const n=Ft(pi),{isProjectMember:r,accessToken:i}=ys();if(n!=null&&n.project.public||r===!1||!i)return null;const o=new s$e({uri:`${n==null?void 0:n.chainlitServer}/api/graphql`,cache:new ZPe,headers:{Authorization:i}});return T.jsx(g$e,{client:o,children:t})}),NW=e=>{const t=e==null?void 0:e.graphQLErrors;if(t&&t.length>0){const n=t[0],r=n==null?void 0:n.extensions.originalError;if(r)return r.message}return e==null?void 0:e.message};var dI={},iFe=Wn;Object.defineProperty(dI,"__esModule",{value:!0});var BW=dI.default=void 0,oFe=iFe(Kn()),aFe=T,sFe=(0,oFe.default)((0,aFe.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");BW=dI.default=sFe;var pI={},lFe=Wn;Object.defineProperty(pI,"__esModule",{value:!0});var jW=pI.default=void 0,uFe=lFe(Kn()),cFe=T,fFe=(0,uFe.default)((0,cFe.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");jW=pI.default=fFe;var hI={},dFe=Wn;Object.defineProperty(hI,"__esModule",{value:!0});var zW=hI.default=void 0,pFe=dFe(Kn()),hFe=T,mFe=(0,pFe.default)((0,hFe.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");zW=hI.default=mFe;var mI={},gFe=Wn;Object.defineProperty(mI,"__esModule",{value:!0});var UW=mI.default=void 0,vFe=gFe(Kn()),yFe=T,bFe=(0,vFe.default)((0,yFe.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");UW=mI.default=bFe;const M0="16px",wFe=Aa`
|
|
482
|
-
mutation ($messageId: ID!, $humanFeedback: Int!) {
|
|
483
|
-
setHumanFeedback(messageId: $messageId, humanFeedback: $humanFeedback) {
|
|
484
|
-
id
|
|
485
|
-
humanFeedback
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
`;function _Fe({message:e}){const[t,n]=R.useState(e.humanFeedback||0),[r]=RW(wFe),i=t===-1?BW:jW,o=t===1?zW:UW,a=async s=>{try{await h7.promise(r({variables:{messageId:e.id,humanFeedback:s}}),{loading:"Updating...",success:"Feedback updated!",error:l=>T.jsx("span",{children:NW(l)})}),n(s),e.humanFeedback=s}catch(l){console.log(l)}};return T.jsxs(Vn,{direction:"row",spacing:1,children:[T.jsx(fs,{title:"Negative feedback",children:T.jsx(ei,{onClick:()=>a(t===-1?0:-1),size:"small",children:T.jsx(i,{sx:{width:M0,height:M0}})})}),T.jsx(fs,{title:"Positive feedback",children:T.jsx(ei,{onClick:()=>a(t===1?0:1),size:"small",children:T.jsx(o,{sx:{width:M0,height:M0}})})})]})}function xFe(e){return T.jsx(cx,{children:T.jsx(_Fe,{...e})})}const _R=ni({key:"Playground",default:void 0}),xR=ni({key:"PlaygroundSettings",default:void 0});function SFe({message:e}){const t=Er(_R),n=!!e.prompt&&!!e.content,r=n&&T.jsx(fs,{title:"Open in prompt playground",children:T.jsx(ei,{size:"small",className:"playground-button",onClick:()=>{e.prompt&&t({llmSettings:e.llmSettings,prompt:e.prompt,completion:e.content})},children:T.jsx(R7,{sx:{width:"16px",height:"16px"}})})}),i=!!e.id&&!e.authorIsUser&&!e.waitForAnswer&&!!e.content;return!n&&!i?null:T.jsxs(Vn,{direction:"row",spacing:1,children:[r,i&&T.jsx(xFe,{message:e})]})}const EFe=({message:e,elements:t,actions:n,indent:r,showAvatar:i,showBorder:o,isRunning:a,isLast:s})=>{const l=Ft(hl),[u,f]=R.useState(l.expandAll);return R.useEffect(()=>{f(l.expandAll)},[l.expandAll]),l.hideCot&&r?null:T.jsxs(Pt,{sx:{color:"text.primary",backgroundColor:"transparent"},className:"message",children:[T.jsx(Pt,{sx:{boxSizing:"border-box",mx:"auto",maxWidth:"60rem",display:"flex",flexDirection:"column",position:"relative"},children:T.jsxs(Vn,{direction:"row",ml:r?`${r*(WT+16)}px`:0,sx:{py:2,borderBottom:p=>o?`1px solid ${p.palette.divider}`:"none"},children:[T.jsx(qDe,{message:e,show:i}),T.jsxs(Vn,{alignItems:"flex-start",width:0,flexGrow:1,spacing:1,children:[T.jsx(zAe,{authorIsUser:e.authorIsUser,actions:n,elements:t,id:e.id?e.id.toString():e.tempId,content:e.content,language:e.language}),T.jsx(bSe,{message:e,opened:u,onClick:()=>f(!u),loading:a}),!a&&s&&e.waitForAnswer&&T.jsx(jDe,{}),T.jsx(SFe,{message:e})]})]})}),e.subMessages&&u&&T.jsx(VW,{messages:e.subMessages,actions:n,elements:t,indent:r+1,isRunning:a})]})};function VW({messages:e,elements:t,actions:n,indent:r,isRunning:i}){const o=Ft(_v);let a="";const s=e.filter((l,u)=>{var g;const f=!!l.content,p=!!((g=l.subMessages)!=null&&g.length),d=u===e.length-1;return f||p||!f&&(i===void 0?o&&d:i&&d)});return T.jsx(T.Fragment,{children:s.map((l,u)=>{const f=u===s.length-1,p=i===void 0?o&&f:i&&f,d=l.author!==a,v=!1;return a=l.author,T.jsx(EFe,{message:l,elements:t,actions:n,showAvatar:d,showBorder:v,indent:r,isRunning:p,isLast:f},u)})})}function CFe(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 WW=({messages:e,elements:t,actions:n,autoScroll:r,setAutoSroll:i})=>{const o=R.useRef(),a=CFe(e);return R.useEffect(()=>{!o.current||!r||(o.current.scrollTop=o.current.scrollHeight)},[e,r]),R.useEffect(()=>{if(!o.current||!i)return;const s=()=>{if(!o.current)return;const{scrollTop:l,scrollHeight:u,clientHeight:f}=o.current,p=l+f>=u-10;i(p)};return o.current.addEventListener("scroll",s),()=>{var l;(l=o.current)==null||l.removeEventListener("scroll",s)}},[]),T.jsx(Pt,{ref:o,position:"relative",display:"flex",flexDirection:"column",overflow:"auto",flexGrow:1,children:T.jsx(VW,{indent:0,messages:a,elements:t,actions:n})})};var KW={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ao,function(){var n=Array.prototype.slice;function r(m,E){E&&(m.prototype=Object.create(E.prototype)),m.prototype.constructor=m}function i(m){return l(m)?m:He(m)}r(o,i);function o(m){return u(m)?m:Qe(m)}r(a,i);function a(m){return f(m)?m:qe(m)}r(s,i);function s(m){return l(m)&&!p(m)?m:ut(m)}function l(m){return!!(m&&m[v])}function u(m){return!!(m&&m[g])}function f(m){return!!(m&&m[y])}function p(m){return u(m)||f(m)}function d(m){return!!(m&&m[x])}i.isIterable=l,i.isKeyed=u,i.isIndexed=f,i.isAssociative=p,i.isOrdered=d,i.Keyed=o,i.Indexed=a,i.Set=s;var v="@@__IMMUTABLE_ITERABLE__@@",g="@@__IMMUTABLE_KEYED__@@",y="@@__IMMUTABLE_INDEXED__@@",x="@@__IMMUTABLE_ORDERED__@@",b="delete",w=5,S=1<<w,C=S-1,k={},D={value:!1},P={value:!1};function B(m){return m.value=!1,m}function V(m){m&&(m.value=!0)}function U(){}function W(m,E){E=E||0;for(var I=Math.max(0,m.length-E),$=new Array(I),N=0;N<I;N++)$[N]=m[N+E];return $}function se(m){return m.size===void 0&&(m.size=m.__iterate(re)),m.size}function ne(m,E){if(typeof E!="number"){var I=E>>>0;if(""+I!==E||I===4294967295)return NaN;E=I}return E<0?se(m)+E:E}function re(){return!0}function Z(m,E,I){return(m===0||I!==void 0&&m<=-I)&&(E===void 0||I!==void 0&&E>=I)}function F(m,E){return Y(m,E,0)}function te(m,E){return Y(m,E,E)}function Y(m,E,I){return m===void 0?I:m<0?Math.max(0,E+m):E===void 0?m:Math.min(E,m)}var ee=0,G=1,L=2,A=typeof Symbol=="function"&&Symbol.iterator,ie="@@iterator",ae=A||ie;function ce(m){this.next=m}ce.prototype.toString=function(){return"[Iterator]"},ce.KEYS=ee,ce.VALUES=G,ce.ENTRIES=L,ce.prototype.inspect=ce.prototype.toSource=function(){return this.toString()},ce.prototype[ae]=function(){return this};function oe(m,E,I,$){var N=m===0?E:m===1?I:[E,I];return $?$.value=N:$={value:N,done:!1},$}function xe(){return{value:void 0,done:!0}}function ke(m){return!!Le(m)}function Ee(m){return m&&typeof m.next=="function"}function Fe(m){var E=Le(m);return E&&E.call(m)}function Le(m){var E=m&&(A&&m[A]||m[ie]);if(typeof E=="function")return E}function Ue(m){return m&&typeof m.length=="number"}r(He,i);function He(m){return m==null?j():l(m)?m.toSeq():Q(m)}He.of=function(){return He(arguments)},He.prototype.toSeq=function(){return this},He.prototype.toString=function(){return this.__toString("Seq {","}")},He.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},He.prototype.__iterate=function(m,E){return le(this,m,E,!0)},He.prototype.__iterator=function(m,E){return Re(this,m,E,!0)},r(Qe,He);function Qe(m){return m==null?j().toKeyedSeq():l(m)?u(m)?m.toSeq():m.fromEntrySeq():H(m)}Qe.prototype.toKeyedSeq=function(){return this},r(qe,He);function qe(m){return m==null?j():l(m)?u(m)?m.entrySeq():m.toIndexedSeq():he(m)}qe.of=function(){return qe(arguments)},qe.prototype.toIndexedSeq=function(){return this},qe.prototype.toString=function(){return this.__toString("Seq [","]")},qe.prototype.__iterate=function(m,E){return le(this,m,E,!1)},qe.prototype.__iterator=function(m,E){return Re(this,m,E,!1)},r(ut,He);function ut(m){return(m==null?j():l(m)?u(m)?m.entrySeq():m:he(m)).toSetSeq()}ut.of=function(){return ut(arguments)},ut.prototype.toSetSeq=function(){return this},He.isSeq=Ce,He.Keyed=Qe,He.Set=ut,He.Indexed=qe;var et="@@__IMMUTABLE_SEQ__@@";He.prototype[et]=!0,r(it,qe);function it(m){this._array=m,this.size=m.length}it.prototype.get=function(m,E){return this.has(m)?this._array[ne(this,m)]:E},it.prototype.__iterate=function(m,E){for(var I=this._array,$=I.length-1,N=0;N<=$;N++)if(m(I[E?$-N:N],N,this)===!1)return N+1;return N},it.prototype.__iterator=function(m,E){var I=this._array,$=I.length-1,N=0;return new ce(function(){return N>$?xe():oe(m,N,I[E?$-N++:N++])})},r(wt,Qe);function wt(m){var E=Object.keys(m);this._object=m,this._keys=E,this.size=E.length}wt.prototype.get=function(m,E){return E!==void 0&&!this.has(m)?E:this._object[m]},wt.prototype.has=function(m){return this._object.hasOwnProperty(m)},wt.prototype.__iterate=function(m,E){for(var I=this._object,$=this._keys,N=$.length-1,J=0;J<=N;J++){var de=$[E?N-J:J];if(m(I[de],de,this)===!1)return J+1}return J},wt.prototype.__iterator=function(m,E){var I=this._object,$=this._keys,N=$.length-1,J=0;return new ce(function(){var de=$[E?N-J:J];return J++>N?xe():oe(m,de,I[de])})},wt.prototype[x]=!0,r(me,qe);function me(m){this._iterable=m,this.size=m.length||m.size}me.prototype.__iterateUncached=function(m,E){if(E)return this.cacheResult().__iterate(m,E);var I=this._iterable,$=Fe(I),N=0;if(Ee($))for(var J;!(J=$.next()).done&&m(J.value,N++,this)!==!1;);return N},me.prototype.__iteratorUncached=function(m,E){if(E)return this.cacheResult().__iterator(m,E);var I=this._iterable,$=Fe(I);if(!Ee($))return new ce(xe);var N=0;return new ce(function(){var J=$.next();return J.done?J:oe(m,N++,J.value)})},r(Te,qe);function Te(m){this._iterator=m,this._iteratorCache=[]}Te.prototype.__iterateUncached=function(m,E){if(E)return this.cacheResult().__iterate(m,E);for(var I=this._iterator,$=this._iteratorCache,N=0;N<$.length;)if(m($[N],N++,this)===!1)return N;for(var J;!(J=I.next()).done;){var de=J.value;if($[N]=de,m(de,N++,this)===!1)break}return N},Te.prototype.__iteratorUncached=function(m,E){if(E)return this.cacheResult().__iterator(m,E);var I=this._iterator,$=this._iteratorCache,N=0;return new ce(function(){if(N>=$.length){var J=I.next();if(J.done)return J;$[N]=J.value}return oe(m,N,$[N++])})};function Ce(m){return!!(m&&m[et])}var Oe;function j(){return Oe||(Oe=new it([]))}function H(m){var E=Array.isArray(m)?new it(m).fromEntrySeq():Ee(m)?new Te(m).fromEntrySeq():ke(m)?new me(m).fromEntrySeq():typeof m=="object"?new wt(m):void 0;if(!E)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+m);return E}function he(m){var E=fe(m);if(!E)throw new TypeError("Expected Array or iterable object of values: "+m);return E}function Q(m){var E=fe(m)||typeof m=="object"&&new wt(m);if(!E)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+m);return E}function fe(m){return Ue(m)?new it(m):Ee(m)?new Te(m):ke(m)?new me(m):void 0}function le(m,E,I,$){var N=m._cache;if(N){for(var J=N.length-1,de=0;de<=J;de++){var we=N[I?J-de:de];if(E(we[1],$?we[0]:de,m)===!1)return de+1}return de}return m.__iterateUncached(E,I)}function Re(m,E,I,$){var N=m._cache;if(N){var J=N.length-1,de=0;return new ce(function(){var we=N[I?J-de:de];return de++>J?xe():oe(E,$?we[0]:de-1,we[1])})}return m.__iteratorUncached(E,I)}function $e(m,E){return E?Pe(E,m,"",{"":m}):mt(m)}function Pe(m,E,I,$){return Array.isArray(E)?m.call($,I,qe(E).map(function(N,J){return Pe(m,N,J,E)})):lt(E)?m.call($,I,Qe(E).map(function(N,J){return Pe(m,N,J,E)})):E}function mt(m){return Array.isArray(m)?qe(m).map(mt).toList():lt(m)?Qe(m).map(mt).toMap():m}function lt(m){return m&&(m.constructor===Object||m.constructor===void 0)}function pe(m,E){if(m===E||m!==m&&E!==E)return!0;if(!m||!E)return!1;if(typeof m.valueOf=="function"&&typeof E.valueOf=="function"){if(m=m.valueOf(),E=E.valueOf(),m===E||m!==m&&E!==E)return!0;if(!m||!E)return!1}return!!(typeof m.equals=="function"&&typeof E.equals=="function"&&m.equals(E))}function ge(m,E){if(m===E)return!0;if(!l(E)||m.size!==void 0&&E.size!==void 0&&m.size!==E.size||m.__hash!==void 0&&E.__hash!==void 0&&m.__hash!==E.__hash||u(m)!==u(E)||f(m)!==f(E)||d(m)!==d(E))return!1;if(m.size===0&&E.size===0)return!0;var I=!p(m);if(d(m)){var $=m.entries();return E.every(function(De,Ie){var X=$.next().value;return X&&pe(X[1],De)&&(I||pe(X[0],Ie))})&&$.next().done}var N=!1;if(m.size===void 0)if(E.size===void 0)typeof m.cacheResult=="function"&&m.cacheResult();else{N=!0;var J=m;m=E,E=J}var de=!0,we=E.__iterate(function(De,Ie){if(I?!m.has(De):N?!pe(De,m.get(Ie,k)):!pe(m.get(Ie,k),De))return de=!1,!1});return de&&m.size===we}r(Se,qe);function Se(m,E){if(!(this instanceof Se))return new Se(m,E);if(this._value=m,this.size=E===void 0?1/0:Math.max(0,E),this.size===0){if(We)return We;We=this}}Se.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Se.prototype.get=function(m,E){return this.has(m)?this._value:E},Se.prototype.includes=function(m){return pe(this._value,m)},Se.prototype.slice=function(m,E){var I=this.size;return Z(m,E,I)?this:new Se(this._value,te(E,I)-F(m,I))},Se.prototype.reverse=function(){return this},Se.prototype.indexOf=function(m){return pe(this._value,m)?0:-1},Se.prototype.lastIndexOf=function(m){return pe(this._value,m)?this.size:-1},Se.prototype.__iterate=function(m,E){for(var I=0;I<this.size;I++)if(m(this._value,I,this)===!1)return I+1;return I},Se.prototype.__iterator=function(m,E){var I=this,$=0;return new ce(function(){return $<I.size?oe(m,$++,I._value):xe()})},Se.prototype.equals=function(m){return m instanceof Se?pe(this._value,m._value):ge(m)};var We;function Ke(m,E){if(!m)throw new Error(E)}r(Ye,qe);function Ye(m,E,I){if(!(this instanceof Ye))return new Ye(m,E,I);if(Ke(I!==0,"Cannot step a Range by 0"),m=m||0,E===void 0&&(E=1/0),I=I===void 0?1:Math.abs(I),E<m&&(I=-I),this._start=m,this._end=E,this._step=I,this.size=Math.max(0,Math.ceil((E-m)/I-1)+1),this.size===0){if(dt)return dt;dt=this}}Ye.prototype.toString=function(){return this.size===0?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},Ye.prototype.get=function(m,E){return this.has(m)?this._start+ne(this,m)*this._step:E},Ye.prototype.includes=function(m){var E=(m-this._start)/this._step;return E>=0&&E<this.size&&E===Math.floor(E)},Ye.prototype.slice=function(m,E){return Z(m,E,this.size)?this:(m=F(m,this.size),E=te(E,this.size),E<=m?new Ye(0,0):new Ye(this.get(m,this._end),this.get(E,this._end),this._step))},Ye.prototype.indexOf=function(m){var E=m-this._start;if(E%this._step===0){var I=E/this._step;if(I>=0&&I<this.size)return I}return-1},Ye.prototype.lastIndexOf=function(m){return this.indexOf(m)},Ye.prototype.__iterate=function(m,E){for(var I=this.size-1,$=this._step,N=E?this._start+I*$:this._start,J=0;J<=I;J++){if(m(N,J,this)===!1)return J+1;N+=E?-$:$}return J},Ye.prototype.__iterator=function(m,E){var I=this.size-1,$=this._step,N=E?this._start+I*$:this._start,J=0;return new ce(function(){var de=N;return N+=E?-$:$,J>I?xe():oe(m,J++,de)})},Ye.prototype.equals=function(m){return m instanceof Ye?this._start===m._start&&this._end===m._end&&this._step===m._step:ge(this,m)};var dt;r(ct,i);function ct(){throw TypeError("Abstract")}r(ot,ct);function ot(){}r(ht,ct);function ht(){}r($t,ct);function $t(){}ct.Keyed=ot,ct.Indexed=ht,ct.Set=$t;var rn=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(E,I){E=E|0,I=I|0;var $=E&65535,N=I&65535;return $*N+((E>>>16)*N+$*(I>>>16)<<16>>>0)|0};function en(m){return m>>>1&1073741824|m&3221225471}function Yt(m){if(m===!1||m===null||m===void 0||typeof m.valueOf=="function"&&(m=m.valueOf(),m===!1||m===null||m===void 0))return 0;if(m===!0)return 1;var E=typeof m;if(E==="number"){var I=m|0;for(I!==m&&(I^=m*4294967295);m>4294967295;)m/=4294967295,I^=m;return en(I)}if(E==="string")return m.length>yl?hr(m):kn(m);if(typeof m.hashCode=="function")return m.hashCode();if(E==="object")return Ir(m);if(typeof m.toString=="function")return kn(m.toString());throw new Error("Value type "+E+" cannot be hashed.")}function hr(m){var E=Qi[m];return E===void 0&&(E=kn(m),An===On&&(An=0,Qi={}),An++,Qi[m]=E),E}function kn(m){for(var E=0,I=0;I<m.length;I++)E=31*E+m.charCodeAt(I)|0;return en(E)}function Ir(m){var E;if(hi&&(E=Ss.get(m),E!==void 0)||(E=m[Wr],E!==void 0)||!wr&&(E=m.propertyIsEnumerable&&m.propertyIsEnumerable[Wr],E!==void 0||(E=Vr(m),E!==void 0)))return E;if(E=++mi,mi&1073741824&&(mi=0),hi)Ss.set(m,E);else{if(mr!==void 0&&mr(m)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(wr)Object.defineProperty(m,Wr,{enumerable:!1,configurable:!1,writable:!1,value:E});else if(m.propertyIsEnumerable!==void 0&&m.propertyIsEnumerable===m.constructor.prototype.propertyIsEnumerable)m.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},m.propertyIsEnumerable[Wr]=E;else if(m.nodeType!==void 0)m[Wr]=E;else throw new Error("Unable to set a non-enumerable property on object.")}return E}var mr=Object.isExtensible,wr=function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}}();function Vr(m){if(m&&m.nodeType>0)switch(m.nodeType){case 1:return m.uniqueID;case 9:return m.documentElement&&m.documentElement.uniqueID}}var hi=typeof WeakMap=="function",Ss;hi&&(Ss=new WeakMap);var mi=0,Wr="__immutablehash__";typeof Symbol=="function"&&(Wr=Symbol(Wr));var yl=16,On=255,An=0,Qi={};function ir(m){Ke(m!==1/0,"Cannot perform this action with an infinite size.")}r(It,ot);function It(m){return m==null?wo():Bu(m)&&!d(m)?m:wo().withMutations(function(E){var I=o(m);ir(I.size),I.forEach(function($,N){return E.set(N,$)})})}It.prototype.toString=function(){return this.__toString("Map {","}")},It.prototype.get=function(m,E){return this._root?this._root.get(0,void 0,m,E):E},It.prototype.set=function(m,E){return Hv(this,m,E)},It.prototype.setIn=function(m,E){return this.updateIn(m,k,function(){return E})},It.prototype.remove=function(m){return Hv(this,m,k)},It.prototype.deleteIn=function(m){return this.updateIn(m,function(){return k})},It.prototype.update=function(m,E,I){return arguments.length===1?m(this):this.updateIn([m],E,I)},It.prototype.updateIn=function(m,E,I){I||(I=E,E=void 0);var $=Yv(this,Cf(m),E,I);return $===k?void 0:$},It.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):wo()},It.prototype.merge=function(){return wf(this,void 0,arguments)},It.prototype.mergeWith=function(m){var E=n.call(arguments,1);return wf(this,m,E)},It.prototype.mergeIn=function(m){var E=n.call(arguments,1);return this.updateIn(m,wo(),function(I){return typeof I.merge=="function"?I.merge.apply(I,E):E[E.length-1]})},It.prototype.mergeDeep=function(){return wf(this,Gp,arguments)},It.prototype.mergeDeepWith=function(m){var E=n.call(arguments,1);return wf(this,zu(m),E)},It.prototype.mergeDeepIn=function(m){var E=n.call(arguments,1);return this.updateIn(m,wo(),function(I){return typeof I.mergeDeep=="function"?I.mergeDeep.apply(I,E):E[E.length-1]})},It.prototype.sort=function(m){return Xn(ks(this,m))},It.prototype.sortBy=function(m,E){return Xn(ks(this,E,m))},It.prototype.withMutations=function(m){var E=this.asMutable();return m(E),E.wasAltered()?E.__ensureOwner(this.__ownerID):this},It.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new U)},It.prototype.asImmutable=function(){return this.__ensureOwner()},It.prototype.wasAltered=function(){return this.__altered},It.prototype.__iterator=function(m,E){return new Up(this,m,E)},It.prototype.__iterate=function(m,E){var I=this,$=0;return this._root&&this._root.iterate(function(N){return $++,m(N[1],N[0],I)},E),$},It.prototype.__ensureOwner=function(m){return m===this.__ownerID?this:m?yf(this.size,this._root,m,this.__hash):(this.__ownerID=m,this.__altered=!1,this)};function Bu(m){return!!(m&&m[vf])}It.isMap=Bu;var vf="@@__IMMUTABLE_MAP__@@",at=It.prototype;at[vf]=!0,at[b]=at.remove,at.removeIn=at.deleteIn;function gr(m,E){this.ownerID=m,this.entries=E}gr.prototype.get=function(m,E,I,$){for(var N=this.entries,J=0,de=N.length;J<de;J++)if(pe(I,N[J][0]))return N[J][1];return $},gr.prototype.update=function(m,E,I,$,N,J,de){for(var we=N===k,De=this.entries,Ie=0,X=De.length;Ie<X&&!pe($,De[Ie][0]);Ie++);var be=Ie<X;if(be?De[Ie][1]===N:we)return this;if(V(de),(we||!be)&&V(J),!(we&&De.length===1)){if(!be&&!we&&De.length>=Xv)return Gv(m,De,$,N);var ye=m&&m===this.ownerID,Be=ye?De:W(De);return be?we?Ie===X-1?Be.pop():Be[Ie]=Be.pop():Be[Ie]=[$,N]:Be.push([$,N]),ye?(this.entries=Be,this):new gr(m,Be)}};function ia(m,E,I){this.ownerID=m,this.bitmap=E,this.nodes=I}ia.prototype.get=function(m,E,I,$){E===void 0&&(E=Yt(I));var N=1<<((m===0?E:E>>>m)&C),J=this.bitmap;return J&N?this.nodes[Yp(J&N-1)].get(m+w,E,I,$):$},ia.prototype.update=function(m,E,I,$,N,J,de){I===void 0&&(I=Yt($));var we=(E===0?I:I>>>E)&C,De=1<<we,Ie=this.bitmap,X=(Ie&De)!==0;if(!X&&N===k)return this;var be=Yp(Ie&De-1),ye=this.nodes,Be=X?ye[be]:void 0,tt=Hp(Be,m,E+w,I,$,N,J,de);if(tt===Be)return this;if(!X&&tt&&ye.length>=Zp)return qp(m,ye,Ie,we,tt);if(X&&!tt&&ye.length===2&&qv(ye[be^1]))return ye[be^1];if(X&&tt&&ye.length===1&&qv(tt))return tt;var _t=m&&m===this.ownerID,dn=X?tt?Ie:Ie^De:Ie|De,Gt=X?tt?Xp(ye,be,tt,_t):jx(ye,be,_t):Jp(ye,be,tt,_t);return _t?(this.bitmap=dn,this.nodes=Gt,this):new ia(m,dn,Gt)};function ju(m,E,I){this.ownerID=m,this.count=E,this.nodes=I}ju.prototype.get=function(m,E,I,$){E===void 0&&(E=Yt(I));var N=(m===0?E:E>>>m)&C,J=this.nodes[N];return J?J.get(m+w,E,I,$):$},ju.prototype.update=function(m,E,I,$,N,J,de){I===void 0&&(I=Yt($));var we=(E===0?I:I>>>E)&C,De=N===k,Ie=this.nodes,X=Ie[we];if(De&&!X)return this;var be=Hp(X,m,E+w,I,$,N,J,de);if(be===X)return this;var ye=this.count;if(!X)ye++;else if(!be&&(ye--,ye<eh))return Qv(m,Ie,ye,we);var Be=m&&m===this.ownerID,tt=Xp(Ie,we,be,Be);return Be?(this.count=ye,this.nodes=tt,this):new ju(m,ye,tt)};function oa(m,E,I){this.ownerID=m,this.keyHash=E,this.entries=I}oa.prototype.get=function(m,E,I,$){for(var N=this.entries,J=0,de=N.length;J<de;J++)if(pe(I,N[J][0]))return N[J][1];return $},oa.prototype.update=function(m,E,I,$,N,J,de){I===void 0&&(I=Yt($));var we=N===k;if(I!==this.keyHash)return we?this:(V(de),V(J),bf(this,m,E,I,[$,N]));for(var De=this.entries,Ie=0,X=De.length;Ie<X&&!pe($,De[Ie][0]);Ie++);var be=Ie<X;if(be?De[Ie][1]===N:we)return this;if(V(de),(we||!be)&&V(J),we&&X===2)return new aa(m,this.keyHash,De[Ie^1]);var ye=m&&m===this.ownerID,Be=ye?De:W(De);return be?we?Ie===X-1?Be.pop():Be[Ie]=Be.pop():Be[Ie]=[$,N]:Be.push([$,N]),ye?(this.entries=Be,this):new oa(m,this.keyHash,Be)};function aa(m,E,I){this.ownerID=m,this.keyHash=E,this.entry=I}aa.prototype.get=function(m,E,I,$){return pe(I,this.entry[0])?this.entry[1]:$},aa.prototype.update=function(m,E,I,$,N,J,de){var we=N===k,De=pe($,this.entry[0]);if(De?N===this.entry[1]:we)return this;if(V(de),we){V(J);return}return De?m&&m===this.ownerID?(this.entry[1]=N,this):new aa(m,this.keyHash,[$,N]):(V(J),bf(this,m,E,Yt($),[$,N]))},gr.prototype.iterate=oa.prototype.iterate=function(m,E){for(var I=this.entries,$=0,N=I.length-1;$<=N;$++)if(m(I[E?N-$:$])===!1)return!1},ia.prototype.iterate=ju.prototype.iterate=function(m,E){for(var I=this.nodes,$=0,N=I.length-1;$<=N;$++){var J=I[E?N-$:$];if(J&&J.iterate(m,E)===!1)return!1}},aa.prototype.iterate=function(m,E){return m(this.entry)},r(Up,ce);function Up(m,E,I){this._type=E,this._reverse=I,this._stack=m._root&&Wp(m._root)}Up.prototype.next=function(){for(var m=this._type,E=this._stack;E;){var I=E.node,$=E.index++,N;if(I.entry){if($===0)return Vp(m,I.entry)}else if(I.entries){if(N=I.entries.length-1,$<=N)return Vp(m,I.entries[this._reverse?N-$:$])}else if(N=I.nodes.length-1,$<=N){var J=I.nodes[this._reverse?N-$:$];if(J){if(J.entry)return Vp(m,J.entry);E=this._stack=Wp(J,E)}continue}E=this._stack=this._stack.__prev}return xe()};function Vp(m,E){return oe(m,E[0],E[1])}function Wp(m,E){return{node:m,index:0,__prev:E}}function yf(m,E,I,$){var N=Object.create(at);return N.size=m,N._root=E,N.__ownerID=I,N.__hash=$,N.__altered=!1,N}var Kp;function wo(){return Kp||(Kp=yf(0))}function Hv(m,E,I){var $,N;if(m._root){var J=B(D),de=B(P);if($=Hp(m._root,m.__ownerID,0,void 0,E,I,J,de),!de.value)return m;N=m.size+(J.value?I===k?-1:1:0)}else{if(I===k)return m;N=1,$=new gr(m.__ownerID,[[E,I]])}return m.__ownerID?(m.size=N,m._root=$,m.__hash=void 0,m.__altered=!0,m):$?yf(N,$):wo()}function Hp(m,E,I,$,N,J,de,we){return m?m.update(E,I,$,N,J,de,we):J===k?m:(V(we),V(de),new aa(E,$,[N,J]))}function qv(m){return m.constructor===aa||m.constructor===oa}function bf(m,E,I,$,N){if(m.keyHash===$)return new oa(E,$,[m.entry,N]);var J=(I===0?m.keyHash:m.keyHash>>>I)&C,de=(I===0?$:$>>>I)&C,we,De=J===de?[bf(m,E,I+w,$,N)]:(we=new aa(E,$,N),J<de?[m,we]:[we,m]);return new ia(E,1<<J|1<<de,De)}function Gv(m,E,I,$){m||(m=new U);for(var N=new aa(m,Yt(I),[I,$]),J=0;J<E.length;J++){var de=E[J];N=N.update(m,0,void 0,de[0],de[1])}return N}function Qv(m,E,I,$){for(var N=0,J=0,de=new Array(I),we=0,De=1,Ie=E.length;we<Ie;we++,De<<=1){var X=E[we];X!==void 0&&we!==$&&(N|=De,de[J++]=X)}return new ia(m,N,de)}function qp(m,E,I,$,N){for(var J=0,de=new Array(S),we=0;I!==0;we++,I>>>=1)de[we]=I&1?E[J++]:void 0;return de[$]=N,new ju(m,J+1,de)}function wf(m,E,I){for(var $=[],N=0;N<I.length;N++){var J=I[N],de=o(J);l(J)||(de=de.map(function(we){return $e(we)})),$.push(de)}return Qp(m,E,$)}function Gp(m,E,I){return m&&m.mergeDeep&&l(E)?m.mergeDeep(E):pe(m,E)?m:E}function zu(m){return function(E,I,$){if(E&&E.mergeDeepWith&&l(I))return E.mergeDeepWith(m,I);var N=m(E,I,$);return pe(E,N)?E:N}}function Qp(m,E,I){return I=I.filter(function($){return $.size!==0}),I.length===0?m:m.size===0&&!m.__ownerID&&I.length===1?m.constructor(I[0]):m.withMutations(function($){for(var N=E?function(de,we){$.update(we,k,function(De){return De===k?de:E(De,de,we)})}:function(de,we){$.set(we,de)},J=0;J<I.length;J++)I[J].forEach(N)})}function Yv(m,E,I,$){var N=m===k,J=E.next();if(J.done){var de=N?I:m,we=$(de);return we===de?m:we}Ke(N||m&&m.set,"invalid keyPath");var De=J.value,Ie=N?k:m.get(De,k),X=Yv(Ie,E,I,$);return X===Ie?m:X===k?m.remove(De):(N?wo():m).set(De,X)}function Yp(m){return m=m-(m>>1&1431655765),m=(m&858993459)+(m>>2&858993459),m=m+(m>>4)&252645135,m=m+(m>>8),m=m+(m>>16),m&127}function Xp(m,E,I,$){var N=$?m:W(m);return N[E]=I,N}function Jp(m,E,I,$){var N=m.length+1;if($&&E+1===N)return m[E]=I,m;for(var J=new Array(N),de=0,we=0;we<N;we++)we===E?(J[we]=I,de=-1):J[we]=m[we+de];return J}function jx(m,E,I){var $=m.length-1;if(I&&E===$)return m.pop(),m;for(var N=new Array($),J=0,de=0;de<$;de++)de===E&&(J=1),N[de]=m[de+J];return N}var Xv=S/4,Zp=S/2,eh=S/4;r(un,ht);function un(m){var E=ih();if(m==null)return E;if(th(m))return m;var I=a(m),$=I.size;return $===0?E:(ir($),$>0&&$<S?wl(0,$,w,null,new sa(I.toArray())):E.withMutations(function(N){N.setSize($),I.forEach(function(J,de){return N.set(de,J)})}))}un.of=function(){return this(arguments)},un.prototype.toString=function(){return this.__toString("List [","]")},un.prototype.get=function(m,E){if(m=ne(this,m),m>=0&&m<this.size){m+=this._origin;var I=Zv(this,m);return I&&I.array[m&C]}return E},un.prototype.set=function(m,E){return zx(this,m,E)},un.prototype.remove=function(m){return this.has(m)?m===0?this.shift():m===this.size-1?this.pop():this.splice(m,1):this},un.prototype.insert=function(m,E){return this.splice(m,0,E)},un.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):ih()},un.prototype.push=function(){var m=arguments,E=this.size;return this.withMutations(function(I){Pa(I,0,E+m.length);for(var $=0;$<m.length;$++)I.set(E+$,m[$])})},un.prototype.pop=function(){return Pa(this,0,-1)},un.prototype.unshift=function(){var m=arguments;return this.withMutations(function(E){Pa(E,-m.length);for(var I=0;I<m.length;I++)E.set(I,m[I])})},un.prototype.shift=function(){return Pa(this,1)},un.prototype.merge=function(){return xf(this,void 0,arguments)},un.prototype.mergeWith=function(m){var E=n.call(arguments,1);return xf(this,m,E)},un.prototype.mergeDeep=function(){return xf(this,Gp,arguments)},un.prototype.mergeDeepWith=function(m){var E=n.call(arguments,1);return xf(this,zu(m),E)},un.prototype.setSize=function(m){return Pa(this,0,m)},un.prototype.slice=function(m,E){var I=this.size;return Z(m,E,I)?this:Pa(this,F(m,I),te(E,I))},un.prototype.__iterator=function(m,E){var I=0,$=rh(this,E);return new ce(function(){var N=$();return N===bl?xe():oe(m,I++,N)})},un.prototype.__iterate=function(m,E){for(var I=0,$=rh(this,E),N;(N=$())!==bl&&m(N,I++,this)!==!1;);return I},un.prototype.__ensureOwner=function(m){return m===this.__ownerID?this:m?wl(this._origin,this._capacity,this._level,this._root,this._tail,m,this.__hash):(this.__ownerID=m,this)};function th(m){return!!(m&&m[nh])}un.isList=th;var nh="@@__IMMUTABLE_LIST__@@",Kr=un.prototype;Kr[nh]=!0,Kr[b]=Kr.remove,Kr.setIn=at.setIn,Kr.deleteIn=Kr.removeIn=at.removeIn,Kr.update=at.update,Kr.updateIn=at.updateIn,Kr.mergeIn=at.mergeIn,Kr.mergeDeepIn=at.mergeDeepIn,Kr.withMutations=at.withMutations,Kr.asMutable=at.asMutable,Kr.asImmutable=at.asImmutable,Kr.wasAltered=at.wasAltered;function sa(m,E){this.array=m,this.ownerID=E}sa.prototype.removeBefore=function(m,E,I){if(I===E?1<<E:this.array.length===0)return this;var $=I>>>E&C;if($>=this.array.length)return new sa([],m);var N=$===0,J;if(E>0){var de=this.array[$];if(J=de&&de.removeBefore(m,E-w,I),J===de&&N)return this}if(N&&!J)return this;var we=_l(this,m);if(!N)for(var De=0;De<$;De++)we.array[De]=void 0;return J&&(we.array[$]=J),we},sa.prototype.removeAfter=function(m,E,I){if(I===(E?1<<E:0)||this.array.length===0)return this;var $=I-1>>>E&C;if($>=this.array.length)return this;var N;if(E>0){var J=this.array[$];if(N=J&&J.removeAfter(m,E-w,I),N===J&&$===this.array.length-1)return this}var de=_l(this,m);return de.array.splice($+1),N&&(de.array[$]=N),de};var bl={};function rh(m,E){var I=m._origin,$=m._capacity,N=Es($),J=m._tail;return de(m._root,m._level,0);function de(Ie,X,be){return X===0?we(Ie,be):De(Ie,X,be)}function we(Ie,X){var be=X===N?J&&J.array:Ie&&Ie.array,ye=X>I?0:I-X,Be=$-X;return Be>S&&(Be=S),function(){if(ye===Be)return bl;var tt=E?--Be:ye++;return be&&be[tt]}}function De(Ie,X,be){var ye,Be=Ie&&Ie.array,tt=be>I?0:I-be>>X,_t=($-be>>X)+1;return _t>S&&(_t=S),function(){do{if(ye){var dn=ye();if(dn!==bl)return dn;ye=null}if(tt===_t)return bl;var Gt=E?--_t:tt++;ye=de(Be&&Be[Gt],X-w,be+(Gt<<X))}while(!0)}}}function wl(m,E,I,$,N,J,de){var we=Object.create(Kr);return we.size=E-m,we._origin=m,we._capacity=E,we._level=I,we._root=$,we._tail=N,we.__ownerID=J,we.__hash=de,we.__altered=!1,we}var Jv;function ih(){return Jv||(Jv=wl(0,0,w))}function zx(m,E,I){if(E=ne(m,E),E!==E)return m;if(E>=m.size||E<0)return m.withMutations(function(de){E<0?Pa(de,E).set(0,I):Pa(de,0,E+1).set(E,I)});E+=m._origin;var $=m._tail,N=m._root,J=B(P);return E>=Es(m._capacity)?$=_f($,m.__ownerID,0,E,I,J):N=_f(N,m.__ownerID,m._level,E,I,J),J.value?m.__ownerID?(m._root=N,m._tail=$,m.__hash=void 0,m.__altered=!0,m):wl(m._origin,m._capacity,m._level,N,$):m}function _f(m,E,I,$,N,J){var de=$>>>I&C,we=m&&de<m.array.length;if(!we&&N===void 0)return m;var De;if(I>0){var Ie=m&&m.array[de],X=_f(Ie,E,I-w,$,N,J);return X===Ie?m:(De=_l(m,E),De.array[de]=X,De)}return we&&m.array[de]===N?m:(V(J),De=_l(m,E),N===void 0&&de===De.array.length-1?De.array.pop():De.array[de]=N,De)}function _l(m,E){return E&&m&&E===m.ownerID?m:new sa(m?m.array.slice():[],E)}function Zv(m,E){if(E>=Es(m._capacity))return m._tail;if(E<1<<m._level+w){for(var I=m._root,$=m._level;I&&$>0;)I=I.array[E>>>$&C],$-=w;return I}}function Pa(m,E,I){E!==void 0&&(E=E|0),I!==void 0&&(I=I|0);var $=m.__ownerID||new U,N=m._origin,J=m._capacity,de=N+E,we=I===void 0?J:I<0?J+I:N+I;if(de===N&&we===J)return m;if(de>=we)return m.clear();for(var De=m._level,Ie=m._root,X=0;de+X<0;)Ie=new sa(Ie&&Ie.array.length?[void 0,Ie]:[],$),De+=w,X+=1<<De;X&&(de+=X,N+=X,we+=X,J+=X);for(var be=Es(J),ye=Es(we);ye>=1<<De+w;)Ie=new sa(Ie&&Ie.array.length?[Ie]:[],$),De+=w;var Be=m._tail,tt=ye<be?Zv(m,we-1):ye>be?new sa([],$):Be;if(Be&&ye>be&&de<J&&Be.array.length){Ie=_l(Ie,$);for(var _t=Ie,dn=De;dn>w;dn-=w){var Gt=be>>>dn&C;_t=_t.array[Gt]=_l(_t.array[Gt],$)}_t.array[be>>>w&C]=Be}if(we<J&&(tt=tt&&tt.removeAfter($,0,we)),de>=ye)de-=ye,we-=ye,De=w,Ie=null,tt=tt&&tt.removeBefore($,0,de);else if(de>N||ye<be){for(X=0;Ie;){var kl=de>>>De&C;if(kl!==ye>>>De&C)break;kl&&(X+=(1<<De)*kl),De-=w,Ie=Ie.array[kl]}Ie&&de>N&&(Ie=Ie.removeBefore($,De,de-X)),Ie&&ye<be&&(Ie=Ie.removeAfter($,De,ye-X)),X&&(de-=X,we-=X)}return m.__ownerID?(m.size=we-de,m._origin=de,m._capacity=we,m._level=De,m._root=Ie,m._tail=tt,m.__hash=void 0,m.__altered=!0,m):wl(de,we,De,Ie,tt)}function xf(m,E,I){for(var $=[],N=0,J=0;J<I.length;J++){var de=I[J],we=a(de);we.size>N&&(N=we.size),l(de)||(we=we.map(function(De){return $e(De)})),$.push(we)}return N>m.size&&(m=m.setSize(N)),Qp(m,E,$)}function Es(m){return m<S?0:m-1>>>w<<w}r(Xn,It);function Xn(m){return m==null?Sf():ey(m)?m:Sf().withMutations(function(E){var I=o(m);ir(I.size),I.forEach(function($,N){return E.set(N,$)})})}Xn.of=function(){return this(arguments)},Xn.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Xn.prototype.get=function(m,E){var I=this._map.get(m);return I!==void 0?this._list.get(I)[1]:E},Xn.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Sf()},Xn.prototype.set=function(m,E){return Tn(this,m,E)},Xn.prototype.remove=function(m){return Tn(this,m,k)},Xn.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Xn.prototype.__iterate=function(m,E){var I=this;return this._list.__iterate(function($){return $&&m($[1],$[0],I)},E)},Xn.prototype.__iterator=function(m,E){return this._list.fromEntrySeq().__iterator(m,E)},Xn.prototype.__ensureOwner=function(m){if(m===this.__ownerID)return this;var E=this._map.__ensureOwner(m),I=this._list.__ensureOwner(m);return m?oh(E,I,m,this.__hash):(this.__ownerID=m,this._map=E,this._list=I,this)};function ey(m){return Bu(m)&&d(m)}Xn.isOrderedMap=ey,Xn.prototype[x]=!0,Xn.prototype[b]=Xn.prototype.remove;function oh(m,E,I,$){var N=Object.create(Xn.prototype);return N.size=m?m.size:0,N._map=m,N._list=E,N.__ownerID=I,N.__hash=$,N}var ty;function Sf(){return ty||(ty=oh(wo(),ih()))}function Tn(m,E,I){var $=m._map,N=m._list,J=$.get(E),de=J!==void 0,we,De;if(I===k){if(!de)return m;N.size>=S&&N.size>=$.size*2?(De=N.filter(function(Ie,X){return Ie!==void 0&&J!==X}),we=De.toKeyedSeq().map(function(Ie){return Ie[0]}).flip().toMap(),m.__ownerID&&(we.__ownerID=De.__ownerID=m.__ownerID)):(we=$.remove(E),De=J===N.size-1?N.pop():N.set(J,void 0))}else if(de){if(I===N.get(J)[1])return m;we=$,De=N.set(J,[E,I])}else we=$.set(E,N.size),De=N.set(N.size,[E,I]);return m.__ownerID?(m.size=we.size,m._map=we,m._list=De,m.__hash=void 0,m):oh(we,De)}r(Kt,Qe);function Kt(m,E){this._iter=m,this._useKeys=E,this.size=m.size}Kt.prototype.get=function(m,E){return this._iter.get(m,E)},Kt.prototype.has=function(m){return this._iter.has(m)},Kt.prototype.valueSeq=function(){return this._iter.valueSeq()},Kt.prototype.reverse=function(){var m=this,E=ah(this,!0);return this._useKeys||(E.valueSeq=function(){return m._iter.toSeq().reverse()}),E},Kt.prototype.map=function(m,E){var I=this,$=ry(this,m,E);return this._useKeys||($.valueSeq=function(){return I._iter.toSeq().map(m,E)}),$},Kt.prototype.__iterate=function(m,E){var I=this,$;return this._iter.__iterate(this._useKeys?function(N,J){return m(N,J,I)}:($=E?vi(this):0,function(N){return m(N,E?--$:$++,I)}),E)},Kt.prototype.__iterator=function(m,E){if(this._useKeys)return this._iter.__iterator(m,E);var I=this._iter.__iterator(G,E),$=E?vi(this):0;return new ce(function(){var N=I.next();return N.done?N:oe(m,E?--$:$++,N.value,N)})},Kt.prototype[x]=!0,r(xl,qe);function xl(m){this._iter=m,this.size=m.size}xl.prototype.includes=function(m){return this._iter.includes(m)},xl.prototype.__iterate=function(m,E){var I=this,$=0;return this._iter.__iterate(function(N){return m(N,$++,I)},E)},xl.prototype.__iterator=function(m,E){var I=this._iter.__iterator(G,E),$=0;return new ce(function(){var N=I.next();return N.done?N:oe(m,$++,N.value,N)})},r(Sl,ut);function Sl(m){this._iter=m,this.size=m.size}Sl.prototype.has=function(m){return this._iter.includes(m)},Sl.prototype.__iterate=function(m,E){var I=this;return this._iter.__iterate(function($){return m($,$,I)},E)},Sl.prototype.__iterator=function(m,E){var I=this._iter.__iterator(G,E);return new ce(function(){var $=I.next();return $.done?$:oe(m,$.value,$.value,$)})},r(El,Qe);function El(m){this._iter=m,this.size=m.size}El.prototype.entrySeq=function(){return this._iter.toSeq()},El.prototype.__iterate=function(m,E){var I=this;return this._iter.__iterate(function($){if($){ay($);var N=l($);return m(N?$.get(1):$[1],N?$.get(0):$[0],I)}},E)},El.prototype.__iterator=function(m,E){var I=this._iter.__iterator(G,E);return new ce(function(){for(;;){var $=I.next();if($.done)return $;var N=$.value;if(N){ay(N);var J=l(N);return oe(m,J?N.get(0):N[0],J?N.get(1):N[1],$)}}})},xl.prototype.cacheResult=Kt.prototype.cacheResult=Sl.prototype.cacheResult=El.prototype.cacheResult=_o;function ny(m){var E=Yi(m);return E._iter=m,E.size=m.size,E.flip=function(){return m},E.reverse=function(){var I=m.reverse.apply(this);return I.flip=function(){return m.reverse()},I},E.has=function(I){return m.includes(I)},E.includes=function(I){return m.has(I)},E.cacheResult=_o,E.__iterateUncached=function(I,$){var N=this;return m.__iterate(function(J,de){return I(de,J,N)!==!1},$)},E.__iteratorUncached=function(I,$){if(I===L){var N=m.__iterator(I,$);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 m.__iterator(I===G?ee:G,$)},E}function ry(m,E,I){var $=Yi(m);return $.size=m.size,$.has=function(N){return m.has(N)},$.get=function(N,J){var de=m.get(N,k);return de===k?J:E.call(I,de,N,m)},$.__iterateUncached=function(N,J){var de=this;return m.__iterate(function(we,De,Ie){return N(E.call(I,we,De,Ie),De,de)!==!1},J)},$.__iteratorUncached=function(N,J){var de=m.__iterator(L,J);return new ce(function(){var we=de.next();if(we.done)return we;var De=we.value,Ie=De[0];return oe(N,Ie,E.call(I,De[1],Ie,m),we)})},$}function ah(m,E){var I=Yi(m);return I._iter=m,I.size=m.size,I.reverse=function(){return m},m.flip&&(I.flip=function(){var $=ny(m);return $.reverse=function(){return m.flip()},$}),I.get=function($,N){return m.get(E?$:-1-$,N)},I.has=function($){return m.has(E?$:-1-$)},I.includes=function($){return m.includes($)},I.cacheResult=_o,I.__iterate=function($,N){var J=this;return m.__iterate(function(de,we){return $(de,we,J)},!N)},I.__iterator=function($,N){return m.__iterator($,!N)},I}function sh(m,E,I,$){var N=Yi(m);return $&&(N.has=function(J){var de=m.get(J,k);return de!==k&&!!E.call(I,de,J,m)},N.get=function(J,de){var we=m.get(J,k);return we!==k&&E.call(I,we,J,m)?we:de}),N.__iterateUncached=function(J,de){var we=this,De=0;return m.__iterate(function(Ie,X,be){if(E.call(I,Ie,X,be))return De++,J(Ie,$?X:De-1,we)},de),De},N.__iteratorUncached=function(J,de){var we=m.__iterator(L,de),De=0;return new ce(function(){for(;;){var Ie=we.next();if(Ie.done)return Ie;var X=Ie.value,be=X[0],ye=X[1];if(E.call(I,ye,be,m))return oe(J,$?be:De++,ye,Ie)}})},N}function Ux(m,E,I){var $=It().asMutable();return m.__iterate(function(N,J){$.update(E.call(I,N,J,m),0,function(de){return de+1})}),$.asImmutable()}function Rr(m,E,I){var $=u(m),N=(d(m)?Xn():It()).asMutable();m.__iterate(function(de,we){N.update(E.call(I,de,we,m),function(De){return De=De||[],De.push($?[we,de]:de),De})});var J=sy(m);return N.map(function(de){return Nt(m,J(de))})}function Uu(m,E,I,$){var N=m.size;if(E!==void 0&&(E=E|0),I!==void 0&&(I=I|0),Z(E,I,N))return m;var J=F(E,N),de=te(I,N);if(J!==J||de!==de)return Uu(m.toSeq().cacheResult(),E,I,$);var we=de-J,De;we===we&&(De=we<0?0:we);var Ie=Yi(m);return Ie.size=De===0?De:m.size&&De||void 0,!$&&Ce(m)&&De>=0&&(Ie.get=function(X,be){return X=ne(this,X),X>=0&&X<De?m.get(X+J,be):be}),Ie.__iterateUncached=function(X,be){var ye=this;if(De===0)return 0;if(be)return this.cacheResult().__iterate(X,be);var Be=0,tt=!0,_t=0;return m.__iterate(function(dn,Gt){if(!(tt&&(tt=Be++<J)))return _t++,X(dn,$?Gt:_t-1,ye)!==!1&&_t!==De}),_t},Ie.__iteratorUncached=function(X,be){if(De!==0&&be)return this.cacheResult().__iterator(X,be);var ye=De!==0&&m.__iterator(X,be),Be=0,tt=0;return new ce(function(){for(;Be++<J;)ye.next();if(++tt>De)return xe();var _t=ye.next();return $||X===G?_t:X===ee?oe(X,tt-1,void 0,_t):oe(X,tt-1,_t.value[1],_t)})},Ie}function Cs(m,E,I){var $=Yi(m);return $.__iterateUncached=function(N,J){var de=this;if(J)return this.cacheResult().__iterate(N,J);var we=0;return m.__iterate(function(De,Ie,X){return E.call(I,De,Ie,X)&&++we&&N(De,Ie,de)}),we},$.__iteratorUncached=function(N,J){var de=this;if(J)return this.cacheResult().__iterator(N,J);var we=m.__iterator(L,J),De=!0;return new ce(function(){if(!De)return xe();var Ie=we.next();if(Ie.done)return Ie;var X=Ie.value,be=X[0],ye=X[1];return E.call(I,ye,be,de)?N===L?Ie:oe(N,be,ye,Ie):(De=!1,xe())})},$}function lh(m,E,I,$){var N=Yi(m);return N.__iterateUncached=function(J,de){var we=this;if(de)return this.cacheResult().__iterate(J,de);var De=!0,Ie=0;return m.__iterate(function(X,be,ye){if(!(De&&(De=E.call(I,X,be,ye))))return Ie++,J(X,$?be:Ie-1,we)}),Ie},N.__iteratorUncached=function(J,de){var we=this;if(de)return this.cacheResult().__iterator(J,de);var De=m.__iterator(L,de),Ie=!0,X=0;return new ce(function(){var be,ye,Be;do{if(be=De.next(),be.done)return $||J===G?be:J===ee?oe(J,X++,void 0,be):oe(J,X++,be.value[1],be);var tt=be.value;ye=tt[0],Be=tt[1],Ie&&(Ie=E.call(I,Be,ye,we))}while(Ie);return J===L?be:oe(J,ye,Be,be)})},N}function uh(m,E){var I=u(m),$=[m].concat(E).map(function(de){return l(de)?I&&(de=o(de)):de=I?H(de):he(Array.isArray(de)?de:[de]),de}).filter(function(de){return de.size!==0});if($.length===0)return m;if($.length===1){var N=$[0];if(N===m||I&&u(N)||f(m)&&f(N))return N}var J=new it($);return I?J=J.toKeyedSeq():f(m)||(J=J.toSetSeq()),J=J.flatten(!0),J.size=$.reduce(function(de,we){if(de!==void 0){var De=we.size;if(De!==void 0)return de+De}},0),J}function gi(m,E,I){var $=Yi(m);return $.__iterateUncached=function(N,J){var de=0,we=!1;function De(Ie,X){var be=this;Ie.__iterate(function(ye,Be){return(!E||X<E)&&l(ye)?De(ye,X+1):N(ye,I?Be:de++,be)===!1&&(we=!0),!we},J)}return De(m,0),de},$.__iteratorUncached=function(N,J){var de=m.__iterator(N,J),we=[],De=0;return new ce(function(){for(;de;){var Ie=de.next();if(Ie.done!==!1){de=we.pop();continue}var X=Ie.value;if(N===L&&(X=X[1]),(!E||we.length<E)&&l(X))we.push(de),de=X.__iterator(N,J);else return I?Ie:oe(N,De++,X,Ie)}return xe()})},$}function iy(m,E,I){var $=sy(m);return m.toSeq().map(function(N,J){return $(E.call(I,N,J,m))}).flatten(!0)}function oy(m,E){var I=Yi(m);return I.size=m.size&&m.size*2-1,I.__iterateUncached=function($,N){var J=this,de=0;return m.__iterate(function(we,De){return(!de||$(E,de++,J)!==!1)&&$(we,de++,J)!==!1},N),de},I.__iteratorUncached=function($,N){var J=m.__iterator(G,N),de=0,we;return new ce(function(){return(!we||de%2)&&(we=J.next(),we.done)?we:de%2?oe($,de++,E):oe($,de++,we.value,we)})},I}function ks(m,E,I){E||(E=Wu);var $=u(m),N=0,J=m.toSeq().map(function(de,we){return[we,de,N++,I?I(de,we,m):de]}).toArray();return J.sort(function(de,we){return E(de[3],we[3])||de[2]-we[2]}).forEach($?function(de,we){J[we].length=2}:function(de,we){J[we]=de[1]}),$?Qe(J):f(m)?qe(J):ut(J)}function Vu(m,E,I){if(E||(E=Wu),I){var $=m.toSeq().map(function(N,J){return[N,I(N,J,m)]}).reduce(function(N,J){return ch(E,N[1],J[1])?J:N});return $&&$[0]}else return m.reduce(function(N,J){return ch(E,N,J)?J:N})}function ch(m,E,I){var $=m(I,E);return $===0&&I!==E&&(I==null||I!==I)||$>0}function Ef(m,E,I){var $=Yi(m);return $.size=new it(I).map(function(N){return N.size}).min(),$.__iterate=function(N,J){for(var de=this.__iterator(G,J),we,De=0;!(we=de.next()).done&&N(we.value,De++,this)!==!1;);return De},$.__iteratorUncached=function(N,J){var de=I.map(function(Ie){return Ie=i(Ie),Fe(J?Ie.reverse():Ie)}),we=0,De=!1;return new ce(function(){var Ie;return De||(Ie=de.map(function(X){return X.next()}),De=Ie.some(function(X){return X.done})),De?xe():oe(N,we++,E.apply(null,Ie.map(function(X){return X.value})))})},$}function Nt(m,E){return Ce(m)?E:m.constructor(E)}function ay(m){if(m!==Object(m))throw new TypeError("Expected [K, V] tuple: "+m)}function vi(m){return ir(m.size),se(m)}function sy(m){return u(m)?o:f(m)?a:s}function Yi(m){return Object.create((u(m)?Qe:f(m)?qe:ut).prototype)}function _o(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):He.prototype.cacheResult.call(this)}function Wu(m,E){return m>E?1:m<E?-1:0}function Cf(m){var E=Fe(m);if(!E){if(!Ue(m))throw new TypeError("Expected iterable or array-like: "+m);E=Fe(i(m))}return E}r(qt,ot);function qt(m,E){var I,$=function(de){if(de instanceof $)return de;if(!(this instanceof $))return new $(de);if(!I){I=!0;var we=Object.keys(m);fh(N,we),N.size=we.length,N._name=E,N._keys=we,N._defaultValues=m}this._map=It(de)},N=$.prototype=Object.create(In);return N.constructor=$,$}qt.prototype.toString=function(){return this.__toString(ly(this)+" {","}")},qt.prototype.has=function(m){return this._defaultValues.hasOwnProperty(m)},qt.prototype.get=function(m,E){if(!this.has(m))return E;var I=this._defaultValues[m];return this._map?this._map.get(m,I):I},qt.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var m=this.constructor;return m._empty||(m._empty=Cl(this,wo()))},qt.prototype.set=function(m,E){if(!this.has(m))throw new Error('Cannot set unknown key "'+m+'" on '+ly(this));var I=this._map&&this._map.set(m,E);return this.__ownerID||I===this._map?this:Cl(this,I)},qt.prototype.remove=function(m){if(!this.has(m))return this;var E=this._map&&this._map.remove(m);return this.__ownerID||E===this._map?this:Cl(this,E)},qt.prototype.wasAltered=function(){return this._map.wasAltered()},qt.prototype.__iterator=function(m,E){var I=this;return o(this._defaultValues).map(function($,N){return I.get(N)}).__iterator(m,E)},qt.prototype.__iterate=function(m,E){var I=this;return o(this._defaultValues).map(function($,N){return I.get(N)}).__iterate(m,E)},qt.prototype.__ensureOwner=function(m){if(m===this.__ownerID)return this;var E=this._map&&this._map.__ensureOwner(m);return m?Cl(this,E,m):(this.__ownerID=m,this._map=E,this)};var In=qt.prototype;In[b]=In.remove,In.deleteIn=In.removeIn=at.removeIn,In.merge=at.merge,In.mergeWith=at.mergeWith,In.mergeIn=at.mergeIn,In.mergeDeep=at.mergeDeep,In.mergeDeepWith=at.mergeDeepWith,In.mergeDeepIn=at.mergeDeepIn,In.setIn=at.setIn,In.update=at.update,In.updateIn=at.updateIn,In.withMutations=at.withMutations,In.asMutable=at.asMutable,In.asImmutable=at.asImmutable;function Cl(m,E,I){var $=Object.create(Object.getPrototypeOf(m));return $._map=E,$.__ownerID=I,$}function ly(m){return m._name||m.constructor.name||"Record"}function fh(m,E){try{E.forEach(Vx.bind(void 0,m))}catch{}}function Vx(m,E){Object.defineProperty(m,E,{get:function(){return this.get(E)},set:function(I){Ke(this.__ownerID,"Cannot set on an immutable record."),this.set(E,I)}})}r(Pn,$t);function Pn(m){return m==null?kf():dh(m)&&!d(m)?m:kf().withMutations(function(E){var I=s(m);ir(I.size),I.forEach(function($){return E.add($)})})}Pn.of=function(){return this(arguments)},Pn.fromKeys=function(m){return this(o(m).keySeq())},Pn.prototype.toString=function(){return this.__toString("Set {","}")},Pn.prototype.has=function(m){return this._map.has(m)},Pn.prototype.add=function(m){return $a(this,this._map.set(m,!0))},Pn.prototype.remove=function(m){return $a(this,this._map.remove(m))},Pn.prototype.clear=function(){return $a(this,this._map.clear())},Pn.prototype.union=function(){var m=n.call(arguments,0);return m=m.filter(function(E){return E.size!==0}),m.length===0?this:this.size===0&&!this.__ownerID&&m.length===1?this.constructor(m[0]):this.withMutations(function(E){for(var I=0;I<m.length;I++)s(m[I]).forEach(function($){return E.add($)})})},Pn.prototype.intersect=function(){var m=n.call(arguments,0);if(m.length===0)return this;m=m.map(function(I){return s(I)});var E=this;return this.withMutations(function(I){E.forEach(function($){m.every(function(N){return N.includes($)})||I.remove($)})})},Pn.prototype.subtract=function(){var m=n.call(arguments,0);if(m.length===0)return this;m=m.map(function(I){return s(I)});var E=this;return this.withMutations(function(I){E.forEach(function($){m.some(function(N){return N.includes($)})&&I.remove($)})})},Pn.prototype.merge=function(){return this.union.apply(this,arguments)},Pn.prototype.mergeWith=function(m){var E=n.call(arguments,1);return this.union.apply(this,E)},Pn.prototype.sort=function(m){return Ti(ks(this,m))},Pn.prototype.sortBy=function(m,E){return Ti(ks(this,E,m))},Pn.prototype.wasAltered=function(){return this._map.wasAltered()},Pn.prototype.__iterate=function(m,E){var I=this;return this._map.__iterate(function($,N){return m(N,N,I)},E)},Pn.prototype.__iterator=function(m,E){return this._map.map(function(I,$){return $}).__iterator(m,E)},Pn.prototype.__ensureOwner=function(m){if(m===this.__ownerID)return this;var E=this._map.__ensureOwner(m);return m?this.__make(E,m):(this.__ownerID=m,this._map=E,this)};function dh(m){return!!(m&&m[ph])}Pn.isSet=dh;var ph="@@__IMMUTABLE_SET__@@",Pr=Pn.prototype;Pr[ph]=!0,Pr[b]=Pr.remove,Pr.mergeDeep=Pr.merge,Pr.mergeDeepWith=Pr.mergeWith,Pr.withMutations=at.withMutations,Pr.asMutable=at.asMutable,Pr.asImmutable=at.asImmutable,Pr.__empty=kf,Pr.__make=uy;function $a(m,E){return m.__ownerID?(m.size=E.size,m._map=E,m):E===m._map?m:E.size===0?m.__empty():m.__make(E)}function uy(m,E){var I=Object.create(Pr);return I.size=m?m.size:0,I._map=m,I.__ownerID=E,I}var hh;function kf(){return hh||(hh=uy(wo()))}r(Ti,Pn);function Ti(m){return m==null?Hu():Tf(m)?m:Hu().withMutations(function(E){var I=s(m);ir(I.size),I.forEach(function($){return E.add($)})})}Ti.of=function(){return this(arguments)},Ti.fromKeys=function(m){return this(o(m).keySeq())},Ti.prototype.toString=function(){return this.__toString("OrderedSet {","}")};function Tf(m){return dh(m)&&d(m)}Ti.isOrderedSet=Tf;var Ku=Ti.prototype;Ku[x]=!0,Ku.__empty=Hu,Ku.__make=cy;function cy(m,E){var I=Object.create(Ku);return I.size=m?m.size:0,I._map=m,I.__ownerID=E,I}var Rf;function Hu(){return Rf||(Rf=cy(Sf()))}r(or,ht);function or(m){return m==null?Of():mh(m)?m:Of().unshiftAll(m)}or.of=function(){return this(arguments)},or.prototype.toString=function(){return this.__toString("Stack [","]")},or.prototype.get=function(m,E){var I=this._head;for(m=ne(this,m);I&&m--;)I=I.next;return I?I.value:E},or.prototype.peek=function(){return this._head&&this._head.value},or.prototype.push=function(){if(arguments.length===0)return this;for(var m=this.size+arguments.length,E=this._head,I=arguments.length-1;I>=0;I--)E={value:arguments[I],next:E};return this.__ownerID?(this.size=m,this._head=E,this.__hash=void 0,this.__altered=!0,this):la(m,E)},or.prototype.pushAll=function(m){if(m=a(m),m.size===0)return this;ir(m.size);var E=this.size,I=this._head;return m.reverse().forEach(function($){E++,I={value:$,next:I}}),this.__ownerID?(this.size=E,this._head=I,this.__hash=void 0,this.__altered=!0,this):la(E,I)},or.prototype.pop=function(){return this.slice(1)},or.prototype.unshift=function(){return this.push.apply(this,arguments)},or.prototype.unshiftAll=function(m){return this.pushAll(m)},or.prototype.shift=function(){return this.pop.apply(this,arguments)},or.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):Of()},or.prototype.slice=function(m,E){if(Z(m,E,this.size))return this;var I=F(m,this.size),$=te(E,this.size);if($!==this.size)return ht.prototype.slice.call(this,m,E);for(var N=this.size-I,J=this._head;I--;)J=J.next;return this.__ownerID?(this.size=N,this._head=J,this.__hash=void 0,this.__altered=!0,this):la(N,J)},or.prototype.__ensureOwner=function(m){return m===this.__ownerID?this:m?la(this.size,this._head,m,this.__hash):(this.__ownerID=m,this.__altered=!1,this)},or.prototype.__iterate=function(m,E){if(E)return this.reverse().__iterate(m);for(var I=0,$=this._head;$&&m($.value,I++,this)!==!1;)$=$.next;return I},or.prototype.__iterator=function(m,E){if(E)return this.reverse().__iterator(m);var I=0,$=this._head;return new ce(function(){if($){var N=$.value;return $=$.next,oe(m,I++,N)}return xe()})};function mh(m){return!!(m&&m[ri])}or.isStack=mh;var ri="@@__IMMUTABLE_STACK__@@",Fa=or.prototype;Fa[ri]=!0,Fa.withMutations=at.withMutations,Fa.asMutable=at.asMutable,Fa.asImmutable=at.asImmutable,Fa.wasAltered=at.wasAltered;function la(m,E,I,$){var N=Object.create(Fa);return N.size=m,N._head=E,N.__ownerID=I,N.__hash=$,N.__altered=!1,N}var gh;function Of(){return gh||(gh=la(0))}function xo(m,E){var I=function($){m.prototype[$]=E[$]};return Object.keys(E).forEach(I),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(E).forEach(I),m}i.Iterator=ce,xo(i,{toArray:function(){ir(this.size);var m=new Array(this.size||0);return this.valueSeq().__iterate(function(E,I){m[I]=E}),m},toIndexedSeq:function(){return new xl(this)},toJS:function(){return this.toSeq().map(function(m){return m&&typeof m.toJS=="function"?m.toJS():m}).__toJS()},toJSON:function(){return this.toSeq().map(function(m){return m&&typeof m.toJSON=="function"?m.toJSON():m}).__toJS()},toKeyedSeq:function(){return new Kt(this,!0)},toMap:function(){return It(this.toKeyedSeq())},toObject:function(){ir(this.size);var m={};return this.__iterate(function(E,I){m[I]=E}),m},toOrderedMap:function(){return Xn(this.toKeyedSeq())},toOrderedSet:function(){return Ti(u(this)?this.valueSeq():this)},toSet:function(){return Pn(u(this)?this.valueSeq():this)},toSetSeq:function(){return new Sl(this)},toSeq:function(){return f(this)?this.toIndexedSeq():u(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return or(u(this)?this.valueSeq():this)},toList:function(){return un(u(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(m,E){return this.size===0?m+E:m+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+E},concat:function(){var m=n.call(arguments,0);return Nt(this,uh(this,m))},includes:function(m){return this.some(function(E){return pe(E,m)})},entries:function(){return this.__iterator(L)},every:function(m,E){ir(this.size);var I=!0;return this.__iterate(function($,N,J){if(!m.call(E,$,N,J))return I=!1,!1}),I},filter:function(m,E){return Nt(this,sh(this,m,E,!0))},find:function(m,E,I){var $=this.findEntry(m,E);return $?$[1]:I},findEntry:function(m,E){var I;return this.__iterate(function($,N,J){if(m.call(E,$,N,J))return I=[N,$],!1}),I},findLastEntry:function(m,E){return this.toSeq().reverse().findEntry(m,E)},forEach:function(m,E){return ir(this.size),this.__iterate(E?m.bind(E):m)},join:function(m){ir(this.size),m=m!==void 0?""+m:",";var E="",I=!0;return this.__iterate(function($){I?I=!1:E+=m,E+=$!=null?$.toString():""}),E},keys:function(){return this.__iterator(ee)},map:function(m,E){return Nt(this,ry(this,m,E))},reduce:function(m,E,I){ir(this.size);var $,N;return arguments.length<2?N=!0:$=E,this.__iterate(function(J,de,we){N?(N=!1,$=J):$=m.call(I,$,J,de,we)}),$},reduceRight:function(m,E,I){var $=this.toKeyedSeq().reverse();return $.reduce.apply($,arguments)},reverse:function(){return Nt(this,ah(this,!0))},slice:function(m,E){return Nt(this,Uu(this,m,E,!0))},some:function(m,E){return!this.every(ua(m),E)},sort:function(m){return Nt(this,ks(this,m))},values:function(){return this.__iterator(G)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size!==void 0?this.size===0:!this.some(function(){return!0})},count:function(m,E){return se(m?this.toSeq().filter(m,E):this)},countBy:function(m,E){return Ux(this,m,E)},equals:function(m){return ge(this,m)},entrySeq:function(){var m=this;if(m._cache)return new it(m._cache);var E=m.toSeq().map(Kx).toIndexedSeq();return E.fromEntrySeq=function(){return m.toSeq()},E},filterNot:function(m,E){return this.filter(ua(m),E)},findLast:function(m,E,I){return this.toKeyedSeq().reverse().find(m,E,I)},first:function(){return this.find(re)},flatMap:function(m,E){return Nt(this,iy(this,m,E))},flatten:function(m){return Nt(this,gi(this,m,!0))},fromEntrySeq:function(){return new El(this)},get:function(m,E){return this.find(function(I,$){return pe($,m)},void 0,E)},getIn:function(m,E){for(var I=this,$=Cf(m),N;!(N=$.next()).done;){var J=N.value;if(I=I&&I.get?I.get(J,k):k,I===k)return E}return I},groupBy:function(m,E){return Rr(this,m,E)},has:function(m){return this.get(m,k)!==k},hasIn:function(m){return this.getIn(m,k)!==k},isSubset:function(m){return m=typeof m.includes=="function"?m:i(m),this.every(function(E){return m.includes(E)})},isSuperset:function(m){return m=typeof m.isSubset=="function"?m:i(m),m.isSubset(this)},keySeq:function(){return this.toSeq().map(Wx).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(m){return Vu(this,m)},maxBy:function(m,E){return Vu(this,E,m)},min:function(m){return Vu(this,m?fy(m):yh)},minBy:function(m,E){return Vu(this,E?fy(E):yh,m)},rest:function(){return this.slice(1)},skip:function(m){return this.slice(Math.max(0,m))},skipLast:function(m){return Nt(this,this.toSeq().reverse().skip(m).reverse())},skipWhile:function(m,E){return Nt(this,lh(this,m,E,!0))},skipUntil:function(m,E){return this.skipWhile(ua(m),E)},sortBy:function(m,E){return Nt(this,ks(this,E,m))},take:function(m){return this.slice(0,Math.max(0,m))},takeLast:function(m){return Nt(this,this.toSeq().reverse().take(m).reverse())},takeWhile:function(m,E){return Nt(this,Cs(this,m,E))},takeUntil:function(m,E){return this.takeWhile(ua(m),E)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=La(this))}});var $r=i.prototype;$r[v]=!0,$r[ae]=$r.values,$r.__toJS=$r.toArray,$r.__toStringMapper=dy,$r.inspect=$r.toSource=function(){return this.toString()},$r.chain=$r.flatMap,$r.contains=$r.includes,function(){try{Object.defineProperty($r,"length",{get:function(){if(!i.noLengthWarning){var m;try{throw new Error}catch(E){m=E.stack}if(m.indexOf("_wrapObject")===-1)return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+m),this.size}}})}catch{}}(),xo(o,{flip:function(){return Nt(this,ny(this))},findKey:function(m,E){var I=this.findEntry(m,E);return I&&I[0]},findLastKey:function(m,E){return this.toSeq().reverse().findKey(m,E)},keyOf:function(m){return this.findKey(function(E){return pe(E,m)})},lastKeyOf:function(m){return this.findLastKey(function(E){return pe(E,m)})},mapEntries:function(m,E){var I=this,$=0;return Nt(this,this.toSeq().map(function(N,J){return m.call(E,[J,N],$++,I)}).fromEntrySeq())},mapKeys:function(m,E){var I=this;return Nt(this,this.toSeq().flip().map(function($,N){return m.call(E,$,N,I)}).flip())}});var Af=o.prototype;Af[g]=!0,Af[ae]=$r.entries,Af.__toJS=$r.toObject,Af.__toStringMapper=function(m,E){return JSON.stringify(E)+": "+dy(m)},xo(a,{toKeyedSeq:function(){return new Kt(this,!1)},filter:function(m,E){return Nt(this,sh(this,m,E,!1))},findIndex:function(m,E){var I=this.findEntry(m,E);return I?I[0]:-1},indexOf:function(m){var E=this.toKeyedSeq().keyOf(m);return E===void 0?-1:E},lastIndexOf:function(m){var E=this.toKeyedSeq().reverse().keyOf(m);return E===void 0?-1:E},reverse:function(){return Nt(this,ah(this,!1))},slice:function(m,E){return Nt(this,Uu(this,m,E,!1))},splice:function(m,E){var I=arguments.length;if(E=Math.max(E|0,0),I===0||I===2&&!E)return this;m=F(m,m<0?this.count():this.size);var $=this.slice(0,m);return Nt(this,I===1?$:$.concat(W(arguments,2),this.slice(m+E)))},findLastIndex:function(m,E){var I=this.toKeyedSeq().findLastKey(m,E);return I===void 0?-1:I},first:function(){return this.get(0)},flatten:function(m){return Nt(this,gi(this,m,!1))},get:function(m,E){return m=ne(this,m),m<0||this.size===1/0||this.size!==void 0&&m>this.size?E:this.find(function(I,$){return $===m},void 0,E)},has:function(m){return m=ne(this,m),m>=0&&(this.size!==void 0?this.size===1/0||m<this.size:this.indexOf(m)!==-1)},interpose:function(m){return Nt(this,oy(this,m))},interleave:function(){var m=[this].concat(W(arguments)),E=Ef(this.toSeq(),qe.of,m),I=E.flatten(!0);return E.size&&(I.size=E.size*m.length),Nt(this,I)},last:function(){return this.get(-1)},skipWhile:function(m,E){return Nt(this,lh(this,m,E,!1))},zip:function(){var m=[this].concat(W(arguments));return Nt(this,Ef(this,vh,m))},zipWith:function(m){var E=W(arguments);return E[0]=this,Nt(this,Ef(this,m,E))}}),a.prototype[y]=!0,a.prototype[x]=!0,xo(s,{get:function(m,E){return this.has(m)?m:E},includes:function(m){return this.has(m)},keySeq:function(){return this.valueSeq()}}),s.prototype.has=$r.includes,xo(Qe,o.prototype),xo(qe,a.prototype),xo(ut,s.prototype),xo(ot,o.prototype),xo(ht,a.prototype),xo($t,s.prototype);function Wx(m,E){return E}function Kx(m,E){return[E,m]}function ua(m){return function(){return!m.apply(this,arguments)}}function fy(m){return function(){return-m.apply(this,arguments)}}function dy(m){return typeof m=="string"?JSON.stringify(m):m}function vh(){return W(arguments)}function yh(m,E){return m<E?1:m>E?-1:0}function La(m){if(m.size===1/0)return 0;var E=d(m),I=u(m),$=E?1:0,N=m.__iterate(I?E?function(J,de){$=31*$+py(Yt(J),Yt(de))|0}:function(J,de){$=$+py(Yt(J),Yt(de))|0}:E?function(J){$=31*$+Yt(J)|0}:function(J){$=$+Yt(J)|0});return Df(N,$)}function Df(m,E){return E=rn(E,3432918353),E=rn(E<<15|E>>>-15,461845907),E=rn(E<<13|E>>>-13,5),E=(E+3864292196|0)^m,E=rn(E^E>>>16,2246822507),E=rn(E^E>>>13,3266489909),E=en(E^E>>>16),E}function py(m,E){return m^E+2654435769+(m<<6)+(m>>2)|0}var Hx={Iterable:i,Seq:He,Collection:ct,Map:It,OrderedMap:Xn,List:un,Stack:or,Set:Pn,OrderedSet:Ti,Record:qt,Range:Ye,Repeat:Se,is:pe,fromJS:$e};return Hx})})(KW);var ln=KW.exports,kFe=ln,TFe=kFe.OrderedMap,RFe={createFromArray:function(t){return TFe(t.map(function(n){return[n.getKey(),n]}))}},Iv=RFe;function OFe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var gI=ln,SR=gI.Map,ER=gI.OrderedSet,AFe=gI.Record,HW=ER(),qW={style:HW,entity:null},DFe=AFe(qW),vI=function(e){OFe(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 yI;var o={style:HW,entity:null},a=SR(o).merge(i),s=vC.get(a);if(s)return s;var l=new t(a);return vC=vC.set(a,l),l},t.fromJS=function(i){var o=i.style,a=i.entity;return new t({style:Array.isArray(o)?ER(o):o,entity:Array.isArray(a)?ER(a):a})},t}(DFe),yI=new vI,vC=SR([[SR(qW),yI]]);vI.EMPTY=yI;var na=vI;function IFe(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 Pv=IFe;function PFe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var $Fe=na,s3=Pv,$v=ln,GW=$v.List,FFe=$v.Map,LFe=$v.OrderedSet,MFe=$v.Record,NFe=$v.Repeat,BFe=LFe(),jFe={key:"",type:"unstyled",text:"",characterList:GW(),depth:0,data:FFe()},zFe=MFe(jFe),UFe=function(t){if(!t)return t;var n=t.characterList,r=t.text;return r&&!n&&(t.characterList=GW(NFe($Fe.EMPTY,r.length))),t},VFe=function(e){PFe(t,e);function t(r){return e.call(this,UFe(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():BFe},n.getEntityAt=function(i){var o=this.getCharacterList().get(i);return o?o.getEntity():null},n.findStyleRanges=function(i,o){s3(this.getCharacterList(),WFe,i,o)},n.findEntityRanges=function(i,o){s3(this.getCharacterList(),KFe,i,o)},t}(zFe);function WFe(e,t){return e.getStyle()===t.getStyle()}function KFe(e,t){return e.getEntity()===t.getEntity()}var rf=VFe;function HFe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var qFe=na,l3=Pv,Fv=ln,CR=Fv.List,GFe=Fv.Map,QFe=Fv.OrderedSet,YFe=Fv.Record,XFe=Fv.Repeat,JFe=QFe(),u3={parent:null,characterList:CR(),data:GFe(),depth:0,key:"",text:"",type:"unstyled",children:CR(),prevSibling:null,nextSibling:null},ZFe=function(t,n){return t.getStyle()===n.getStyle()},eLe=function(t,n){return t.getEntity()===n.getEntity()},tLe=function(t){if(!t)return t;var n=t.characterList,r=t.text;return r&&!n&&(t.characterList=CR(XFe(qFe.EMPTY,r.length))),t},nLe=function(e){HFe(t,e);function t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u3;return e.call(this,tLe(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():JFe},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){l3(this.getCharacterList(),ZFe,i,o)},n.findEntityRanges=function(i,o){l3(this.getCharacterList(),eLe,i,o)},t}(YFe(u3)),ra=nLe,c3=na,rLe=ln,iLe=rLe.Map,oLe={add:function(t,n,r){return f3(t,n,r,!0)},remove:function(t,n,r){return f3(t,n,r,!1)}};function f3(e,t,n,r){var i=e.getBlockMap(),o=t.getStartKey(),a=t.getStartOffset(),s=t.getEndKey(),l=t.getEndOffset(),u=i.skipUntil(function(f,p){return p===o}).takeUntil(function(f,p){return p===s}).concat(iLe([[s,i.get(s)]])).map(function(f,p){var d,v;o===s?(d=a,v=l):(d=p===o?a:0,v=p===s?l:f.getLength());for(var g=f.getCharacterList(),y;d<v;)y=g.get(d),g=g.set(d,r?c3.applyStyle(y,n):c3.removeStyle(y,n)),d++;return f.set("characterList",g)});return e.merge({blockMap:i.merge(u),selectionBefore:t,selectionAfter:t})}var aLe=oLe,sLe=na;function lLe(e,t,n,r){for(var i=t,o=e.getCharacterList();i<n;)o=o.set(i,sLe.applyEntity(o.get(i),r)),i++;return e.set("characterList",o)}var uLe=lLe,cLe=uLe,fLe=ln;function dLe(e,t,n){var r=e.getBlockMap(),i=t.getStartKey(),o=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),l=r.skipUntil(function(u,f){return f===i}).takeUntil(function(u,f){return f===a}).toOrderedMap().merge(fLe.OrderedMap([[a,r.get(a)]])).map(function(u,f){var p=f===i?o:0,d=f===a?s:u.getLength();return cLe(u,p,d,n)});return e.merge({blockMap:r.merge(l),selectionBefore:t,selectionAfter:t})}var pLe=dLe,hLe={getRemovalRange:function(t,n,r,i,o){var a=r.split(" ");a=a.map(function(x,b){if(o==="forward"){if(b>0)return" "+x}else if(b<a.length-1)return x+" ";return x});for(var s=i,l,u,f=null,p=null,d=0;d<a.length;d++){if(u=a[d],l=s+u.length,t<l&&s<n)f!==null||(f=s),p=l;else if(f!==null)break;s=l}var v=i+r.length,g=f===i,y=p===v;return(!g&&y||g&&!y)&&(o==="forward"?p!==v&&p++:f!==i&&f--),{start:f,end:p}}},mLe=hLe;function gLe(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 gn=gLe,vLe=gn;function yLe(e,t){var n=[];return e.findEntityRanges(function(r){return r.getEntity()===t},function(r,i){n.push({start:r,end:i})}),n.length||vLe(!1),n}var bLe=yLe,wLe=mLe,_Le=bLe,xLe=gn;function SLe(e,t,n,r,i){var o=r.getStartOffset(),a=r.getEndOffset(),s=t.getEntityAt(o),l=n.getEntityAt(a-1);if(!s&&!l)return r;var u=r;if(s&&s===l)u=cm(e,t,u,i,s,!0,!0);else if(s&&l){var f=cm(e,t,u,i,s,!1,!0),p=cm(e,n,u,i,l,!1,!1);u=u.merge({anchorOffset:f.getAnchorOffset(),focusOffset:p.getFocusOffset(),isBackward:!1})}else if(s){var d=cm(e,t,u,i,s,!1,!0);u=u.merge({anchorOffset:d.getStartOffset(),isBackward:!1})}else if(l){var v=cm(e,n,u,i,l,!1,!1);u=u.merge({focusOffset:v.getEndOffset(),isBackward:!1})}return u}function cm(e,t,n,r,i,o,a){var s=n.getStartOffset(),l=n.getEndOffset(),u=e.__get(i),f=u.getMutability(),p=a?s:l;if(f==="MUTABLE")return n;var d=_Le(t,i).filter(function(y){return p<=y.end&&p>=y.start});d.length!=1&&xLe(!1);var v=d[0];if(f==="IMMUTABLE")return n.merge({anchorOffset:v.start,focusOffset:v.end,isBackward:!1});o||(a?l=v.end:s=v.start);var g=wLe.getRemovalRange(s,l,t.getText().slice(v.start,v.end),v.start,r);return n.merge({anchorOffset:g.start,focusOffset:g.end,isBackward:!1})}var ELe=SLe,d3={},CLe=Math.pow(2,24);function kLe(){for(var e;e===void 0||d3.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*CLe).toString(32);return d3[e]=!0,e}var bs=kLe,TLe=ra,QW=bs,RLe=ln,YW=RLe.OrderedMap,OLe=function(t){var n={},r;return YW(t.withMutations(function(i){i.forEach(function(o,a){var s=o.getKey(),l=o.getNextSiblingKey(),u=o.getPrevSiblingKey(),f=o.getChildKeys(),p=o.getParentKey(),d=QW();if(n[s]=d,l){var v=i.get(l);v?i.setIn([l,"prevSibling"],d):i.setIn([s,"nextSibling"],null)}if(u){var g=i.get(u);g?i.setIn([u,"nextSibling"],d):i.setIn([s,"prevSibling"],null)}if(p&&i.get(p)){var y=i.get(p),x=y.getChildKeys();i.setIn([p,"children"],x.set(x.indexOf(o.getKey()),d))}else i.setIn([s,"parent"],null),r&&(i.setIn([r.getKey(),"nextSibling"],d),i.setIn([s,"prevSibling"],n[r.getKey()])),r=i.get(s);f.forEach(function(b){var w=i.get(b);w?i.setIn([b,"parent"],d):i.setIn([s,"children"],o.getChildKeys().filter(function(S){return S!==b}))})})}).toArray().map(function(i){return[n[i.getKey()],i.set("key",n[i.getKey()])]}))},ALe=function(t){return YW(t.toArray().map(function(n){var r=QW();return[r,n.set("key",r)]}))},DLe=function(t){var n=t.first()instanceof TLe;return n?OLe(t):ALe(t)},XW=DLe,ILe=na,PLe=Pv,$Le=gn;function FLe(e,t){var n=e.getBlockMap(),r=e.getEntityMap(),i={},o=t.getStartKey(),a=t.getStartOffset(),s=n.get(o),l=p3(r,s,a);l!==s&&(i[o]=l);var u=t.getEndKey(),f=t.getEndOffset(),p=n.get(u);o===u&&(p=l);var d=p3(r,p,f);return d!==p&&(i[u]=d),Object.keys(i).length?e.merge({blockMap:n.merge(i),selectionAfter:t}):e.set("selectionAfter",t)}function LLe(e,t,n){var r;return PLe(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"&&$Le(!1),r}function p3(e,t,n){var r=t.getCharacterList(),i=n>0?r.get(n-1):void 0,o=n<r.count()?r.get(n):void 0,a=i?i.getEntity():void 0,s=o?o.getEntity():void 0;if(s&&s===a){var l=e.__get(s);if(l.getMutability()!=="MUTABLE"){for(var u=LLe(r,s,n),f=u.start,p=u.end,d;f<p;)d=r.get(f),r=r.set(f,ILe.applyEntity(d,null)),f++;return t.set("characterList",r)}}return t}var JW=FLe,MLe=XW,NLe=JW,BLe=function(t,n){var r=n.getStartKey(),i=n.getStartOffset(),o=n.getEndKey(),a=n.getEndOffset(),s=NLe(t,n),l=s.getBlockMap(),u=l.keySeq(),f=u.indexOf(r),p=u.indexOf(o)+1;return MLe(l.slice(f,p).map(function(d,v){var g=d.getText(),y=d.getCharacterList();return r===o?d.merge({text:g.slice(i,a),characterList:y.slice(i,a)}):v===r?d.merge({text:g.slice(i),characterList:y.slice(i)}):v===o?d.merge({text:g.slice(0,a),characterList:y.slice(0,a)}):d}))},fx=BLe;function jLe(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 ZW=jLe,zLe=Iv,eK=ra,ULe=ln,VLe=ZW,h3=gn,WLe=XW,KLe=ULe.List,HLe=function(t,n,r,i,o,a){var s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:"REPLACE_WITH_NEW_DATA",l=r.get(o),u=l.getText(),f=l.getCharacterList(),p=o,d=a+i.getText().length,v=null;switch(s){case"MERGE_OLD_DATA_TO_NEW_DATA":v=i.getData().merge(l.getData());break;case"REPLACE_WITH_NEW_DATA":v=i.getData();break}var g=l.getType();u&&g==="unstyled"&&(g=i.getType());var y=l.merge({text:u.slice(0,a)+i.getText()+u.slice(a),characterList:VLe(f,i.getCharacterList(),a),type:g,data:v});return t.merge({blockMap:r.set(o,y),selectionBefore:n,selectionAfter:n.merge({anchorKey:p,anchorOffset:d,focusKey:p,focusOffset:d,isBackward:!1})})},qLe=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()})},GLe=function(t,n,r){var i=t.getText(),o=t.getCharacterList(),a=i.length,s=i.slice(n,a),l=o.slice(n,a),u=r.last();return u.merge({text:u.getText()+s,characterList:u.getCharacterList().concat(l),data:u.getData()})},QLe=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},YLe=function(t,n,r,i){return t.withMutations(function(o){var a=r.getKey(),s=i.getKey(),l=r.getNextSiblingKey(),u=r.getParentKey(),f=QLe(i,t),p=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([p,"nextSibling"],l),l&&o.setIn([l,"prevSibling"],p),f.forEach(function(b){return o.setIn([b,"parent"],u)}),u){var d=t.get(u),v=d.getChildKeys(),g=v.indexOf(a),y=g+1,x=v.toArray();x.splice.apply(x,[y,0].concat(f)),o.setIn([u,"children"],KLe(x))}})},XLe=function(t,n,r,i,o,a){var s=r.first()instanceof eK,l=[],u=i.size,f=r.get(o),p=i.first(),d=i.last(),v=d.getLength(),g=d.getKey(),y=s&&(!f.getChildKeys().isEmpty()||!p.getChildKeys().isEmpty());r.forEach(function(b,w){if(w!==o){l.push(b);return}y?l.push(b):l.push(qLe(b,a,i)),i.slice(y?0:1,u-1).forEach(function(S){return l.push(S)}),l.push(GLe(b,a,i))});var x=zLe.createFromArray(l);return s&&(x=YLe(x,r,f,p)),t.merge({blockMap:x,selectionBefore:n,selectionAfter:n.merge({anchorKey:g,anchorOffset:v,focusKey:g,focusOffset:v,isBackward:!1})})},JLe=function(t,n,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"REPLACE_WITH_NEW_DATA";n.isCollapsed()||h3(!1);var o=t.getBlockMap(),a=WLe(r),s=n.getStartKey(),l=n.getStartOffset(),u=o.get(s);return u instanceof eK&&(u.getChildKeys().isEmpty()||h3(!1)),a.size===1?HLe(t,n,o,a.first(),s,l,i):XLe(t,n,o,a,s,l)},ZLe=JLe,eMe=ln,tMe=ZW,nMe=gn,rMe=eMe.Repeat;function iMe(e,t,n,r){t.isCollapsed()||nMe(!1);var i=null;if(n!=null&&(i=n.length),i==null||i===0)return e;var o=e.getBlockMap(),a=t.getStartKey(),s=t.getStartOffset(),l=o.get(a),u=l.getText(),f=l.merge({text:u.slice(0,s)+n+u.slice(s,l.getLength()),characterList:tMe(l.getCharacterList(),rMe(r,i).toList(),s)}),p=s+i;return e.merge({blockMap:o.set(a,f),selectionAfter:t.merge({anchorOffset:p,focusOffset:p})})}var oMe=iMe,aMe=ln,sMe=aMe.Map;function lMe(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(sMe([[i,o.get(i)]])).map(n);return e.merge({blockMap:o.merge(a),selectionBefore:t,selectionAfter:t})}var tK=lMe,uMe=ra,cMe=function(t,n){var r=t instanceof uMe;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},nK=cMe,fMe=ra,kR=nK,rK=ln;rK.List;var m3=rK.Map,Ii=function(t,n,r){if(t){var i=n.get(t);i&&n.set(t,r(i))}},X1=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},dMe=function(t,n){var r=[];if(!t)return r;for(var i=kR(t,n);i&&n.get(i);){var o=n.get(i);r.push(i),i=o.getParentKey()?kR(o,n):null}return r},Xf=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},Jf=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},pMe=function(t,n,r,i){return t.withMutations(function(o){if(Ii(n.getKey(),o,function(f){return f.merge({nextSibling:Xf(f,o,i),prevSibling:Jf(f,o,i)})}),Ii(r.getKey(),o,function(f){return f.merge({nextSibling:Xf(f,o,i),prevSibling:Jf(f,o,i)})}),X1(n.getKey(),i).forEach(function(f){return Ii(f,o,function(p){return p.merge({children:p.getChildKeys().filter(function(d){return o.get(d)}),nextSibling:Xf(p,o,i),prevSibling:Jf(p,o,i)})})}),Ii(n.getNextSiblingKey(),o,function(f){return f.merge({prevSibling:n.getPrevSiblingKey()})}),Ii(n.getPrevSiblingKey(),o,function(f){return f.merge({nextSibling:Xf(f,o,i)})}),Ii(r.getNextSiblingKey(),o,function(f){return f.merge({prevSibling:Jf(f,o,i)})}),Ii(r.getPrevSiblingKey(),o,function(f){return f.merge({nextSibling:r.getNextSiblingKey()})}),X1(r.getKey(),i).forEach(function(f){Ii(f,o,function(p){return p.merge({children:p.getChildKeys().filter(function(d){return o.get(d)}),nextSibling:Xf(p,o,i),prevSibling:Jf(p,o,i)})})}),dMe(r,i).forEach(function(f){return Ii(f,o,function(p){return p.merge({nextSibling:Xf(p,o,i),prevSibling:Jf(p,o,i)})})}),t.get(n.getKey())==null&&t.get(r.getKey())!=null&&r.getParentKey()===n.getKey()&&r.getPrevSiblingKey()==null){var a=n.getPrevSiblingKey();Ii(r.getKey(),o,function(f){return f.merge({prevSibling:a})}),Ii(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){Ii(f,o,function(p){return p.merge({parent:l})})}),l!=null){var u=t.get(l);Ii(l,o,function(f){return f.merge({children:u.getChildKeys().concat(n.getChildKeys())})})}Ii(n.getChildKeys().find(function(f){var p=t.get(f);return p.getNextSiblingKey()===null}),o,function(f){return f.merge({nextSibling:n.getNextSiblingKey()})})}})},hMe=function(t,n){if(n.isCollapsed())return t;var r=t.getBlockMap(),i=n.getStartKey(),o=n.getStartOffset(),a=n.getEndKey(),s=n.getEndOffset(),l=r.get(i),u=r.get(a),f=l instanceof fMe,p=[];if(f){var d=u.getChildKeys(),v=X1(a,r);u.getNextSiblingKey()&&(p=p.concat(v)),d.isEmpty()||(p=p.concat(v.concat([a]))),p=p.concat(X1(kR(u,r),r))}var g;l===u?g=mMe(l.getCharacterList(),o,s):g=l.getCharacterList().slice(0,o).concat(u.getCharacterList().slice(s));var y=l.merge({text:l.getText().slice(0,o)+u.getText().slice(s),characterList:g}),x=f&&o===0&&s===0&&u.getParentKey()===i&&u.getPrevSiblingKey()==null,b=x?m3([[i,null]]):r.toSeq().skipUntil(function(S,C){return C===i}).takeUntil(function(S,C){return C===a}).filter(function(S,C){return p.indexOf(C)===-1}).concat(m3([[a,null]])).map(function(S,C){return C===i?y:null}),w=r.merge(b).filter(function(S){return!!S});return f&&l!==u&&(w=pMe(w,l,u,r)),t.merge({blockMap:w,selectionBefore:n,selectionAfter:n.merge({anchorKey:i,anchorOffset:o,focusKey:i,focusOffset:o,isBackward:!1})})},mMe=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},gMe=hMe,vMe=ra,yMe=bs,iK=ln,g3=gn,bMe=tK,wMe=iK.List,_Me=iK.Map,N0=function(t,n,r){if(t){var i=n.get(t);i&&n.set(t,r(i))}},xMe=function(t,n,r){return t.withMutations(function(i){var o=n.getKey(),a=r.getKey();N0(n.getParentKey(),i,function(s){var l=s.getChildKeys(),u=l.indexOf(o)+1,f=l.toArray();return f.splice(u,0,a),s.merge({children:wMe(f)})}),N0(n.getNextSiblingKey(),i,function(s){return s.merge({prevSibling:a})}),N0(o,i,function(s){return s.merge({nextSibling:a})}),N0(a,i,function(s){return s.merge({prevSibling:o})})})},SMe=function(t,n){n.isCollapsed()||g3(!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 bMe(t,n,function(b){return b.merge({type:"unstyled",depth:0})})}var l=n.getAnchorOffset(),u=o.getCharacterList(),f=yMe(),p=o instanceof vMe,d=o.merge({text:a.slice(0,l),characterList:u.slice(0,l)}),v=d.merge({key:f,text:a.slice(l),characterList:u.slice(l),data:_Me()}),g=i.toSeq().takeUntil(function(b){return b===o}),y=i.toSeq().skipUntil(function(b){return b===o}).rest(),x=g.concat([[r,d],[f,v]],y).toOrderedMap();return p&&(o.getChildKeys().isEmpty()||g3(!1),x=xMe(x,d,v)),t.merge({blockMap:x,selectionBefore:n,selectionAfter:n.merge({anchorKey:f,anchorOffset:0,focusKey:f,focusOffset:0,isBackward:!1})})},EMe=SMe,CMe=na,v3=aLe,kMe=pLe,TMe=ELe,RMe=fx,OMe=ln,AMe=ZLe,DMe=oMe,IMe=gn,yC=tK,fm=JW,dm=gMe,PMe=EMe,$Me=OMe.OrderedSet,Bb={replaceText:function(t,n,r,i,o){var a=fm(t,n),s=dm(a,n),l=CMe.create({style:i||$Me(),entity:o||null});return DMe(s,s.getSelectionAfter(),r,l)},insertText:function(t,n,r,i,o){return n.isCollapsed()||IMe(!1),Bb.replaceText(t,n,r,i,o)},moveText:function(t,n,r){var i=RMe(t,n),o=Bb.removeRange(t,n,"backward");return Bb.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=fm(t,n),a=dm(o,n);return AMe(a,a.getSelectionAfter(),r,i)},removeRange:function(t,n,r){var i,o,a,s;n.getIsBackward()&&(n=n.merge({anchorKey:n.getFocusKey(),anchorOffset:n.getFocusOffset(),focusKey:n.getAnchorKey(),focusOffset:n.getAnchorOffset(),isBackward:!1})),i=n.getAnchorKey(),o=n.getFocusKey(),a=t.getBlockForKey(i),s=t.getBlockForKey(o);var l=n.getStartOffset(),u=n.getEndOffset(),f=a.getEntityAt(l),p=s.getEntityAt(u-1);if(i===o&&f&&f===p){var d=TMe(t.getEntityMap(),a,s,n,r);return dm(t,d)}var v=fm(t,n);return dm(v,n)},splitBlock:function(t,n){var r=fm(t,n),i=dm(r,n);return PMe(i,i.getSelectionAfter())},applyInlineStyle:function(t,n,r){return v3.add(t,n,r)},removeInlineStyle:function(t,n,r){return v3.remove(t,n,r)},setBlockType:function(t,n,r){return yC(t,n,function(i){return i.merge({type:r,depth:0})})},setBlockData:function(t,n,r){return yC(t,n,function(i){return i.merge({data:r})})},mergeBlockData:function(t,n,r){return yC(t,n,function(i){return i.merge({data:i.getData().merge(r)})})},applyEntity:function(t,n,r){var i=fm(t,n);return kMe(i,n,r)}},Hi=Bb;function FMe(e){return Object.keys(e).map(function(t){return e[t]})}var oK=FMe;function LMe(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}function NMe(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 aK=Pv,BMe=oK,bI=ln,ld=bI.List,jMe=bI.Repeat,sK=bI.Record,lK=function(){return!0},zMe={start:null,end:null},TR=sK(zMe),UMe={start:null,end:null,decoratorKey:null,leaves:null},bC=sK(UMe),VMe={generate:function(t,n,r){var i=n.getLength();if(!i)return ld.of(new bC({start:0,end:0,decoratorKey:null,leaves:ld.of(new TR({start:0,end:0}))}));var o=[],a=r?r.getDecorations(n,t):ld(jMe(null,i)),s=n.getCharacterList();return aK(a,uK,lK,function(l,u){o.push(new bC({start:l,end:u,decoratorKey:a.get(l),leaves:WMe(s.slice(l,u).toList(),l)}))}),ld(o)},fromJS:function(t){var n=t.leaves,r=NMe(t,["leaves"]);return new bC(LMe({},r,{leaves:n!=null?ld(Array.isArray(n)?n:BMe(n)).map(function(i){return TR(i)}):null}))}};function WMe(e,t){var n=[],r=e.map(function(i){return i.getStyle()}).toList();return aK(r,uK,lK,function(i,o){n.push(new TR({start:i+t,end:o+t}))}),ld(n)}function uK(e,t){return e===t}var KMe=VMe;function HMe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var qMe=ln,GMe=qMe.Record,QMe=GMe({type:"TOKEN",mutability:"IMMUTABLE",data:Object}),YMe=function(e){HMe(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}(QMe),cK=YMe;function XMe(){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 JMe=XMe;function ZMe(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){eNe(e,i,n[i])})}return e}function eNe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tNe=cK,nNe=ln,rNe=gn,RR=JMe,iNe=nNe.Map,js=iNe(),pm=RR();function Zf(e,t){console.warn("WARNING: "+e+` will be deprecated soon!
|
|
489
|
-
Please use "`+t+'" instead.')}var Wa={getLastCreatedEntityKey:function(){return Zf("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),Wa.__getLastCreatedEntityKey()},create:function(t,n,r){return Zf("DraftEntity.create","contentState.createEntity"),Wa.__create(t,n,r)},add:function(t){return Zf("DraftEntity.add","contentState.addEntity"),Wa.__add(t)},get:function(t){return Zf("DraftEntity.get","contentState.getEntity"),Wa.__get(t)},__getAll:function(){return js},__loadWithEntities:function(t){js=t,pm=RR()},mergeData:function(t,n){return Zf("DraftEntity.mergeData","contentState.mergeEntityData"),Wa.__mergeData(t,n)},replaceData:function(t,n){return Zf("DraftEntity.replaceData","contentState.replaceEntityData"),Wa.__replaceData(t,n)},__getLastCreatedEntityKey:function(){return pm},__create:function(t,n,r){return Wa.__add(new tNe({type:t,mutability:n,data:r||{}}))},__add:function(t){return pm=RR(),js=js.set(pm,t),pm},__get:function(t){var n=js.get(t);return n||rNe(!1),n},__mergeData:function(t,n){var r=Wa.__get(t),i=ZMe({},r.getData(),n),o=r.set("data",i);return js=js.set(t,o),o},__replaceData:function(t,n){var r=Wa.__get(t),i=r.set("data",n);return js=js.set(t,i),i}},dx=Wa;function oNe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var aNe=ln,sNe=aNe.Record,lNe={anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1},uNe=sNe(lNe),cNe=function(e){oNe(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},n.getAnchorKey=function(){return this.get("anchorKey")},n.getAnchorOffset=function(){return this.get("anchorOffset")},n.getFocusKey=function(){return this.get("focusKey")},n.getFocusOffset=function(){return this.get("focusOffset")},n.getIsBackward=function(){return this.get("isBackward")},n.getHasFocus=function(){return this.get("hasFocus")},n.hasEdgeWithin=function(i,o,a){var s=this.getAnchorKey(),l=this.getFocusKey();if(s===l&&s===i){var u=this.getStartOffset(),f=this.getEndOffset();return o<=u&&u<=a||o<=f&&f<=a}if(i!==s&&i!==l)return!1;var p=i===s?this.getAnchorOffset():this.getFocusOffset();return o<=p&&a>=p},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}(uNe),px=cNe,Mu=function(e){return typeof window<"u"&&window.__DRAFT_GKX?!!window.__DRAFT_GKX[e]:!1},fNe=new RegExp("\r","g");function dNe(e){return e.replace(fNe,"")}var fK=dNe;function y3(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){pNe(e,i,n[i])})}return e}function pNe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hNe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var mNe=Iv,b3=na,gNe=rf,vNe=ra,Ua=dx,B0=px,yNe=bs,bNe=oK,wNe=Mu,Lv=ln,_Ne=fK,w3=Lv.List,xNe=Lv.Record,SNe=Lv.Repeat,ENe=Lv.Map,CNe=Lv.OrderedMap,kNe={entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null},TNe=xNe(kNe),_3=wNe("draft_tree_data_support")?vNe:gNe,RNe=function(e){hNe(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.getEntityMap=function(){return Ua},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||`
|
|
490
|
-
`)},n.getLastCreatedEntityKey=function(){return Ua.__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 Ua.__create(i,o,a),this},n.mergeEntityData=function(i,o){return Ua.__mergeData(i,o),this},n.replaceEntityData=function(i,o){return Ua.__replaceData(i,o),this},n.addEntity=function(i){return Ua.__add(i),this},n.getEntity=function(i){return Ua.__get(i)},n.getAllEntities=function(){return Ua.__getAll()},n.loadWithEntities=function(i){return Ua.__loadWithEntities(i)},t.createFromBlockArray=function(i,o){var a=Array.isArray(i)?i:i.contentBlocks,s=mNe.createFromArray(a),l=s.isEmpty()?new B0:B0.createEmpty(s.first().getKey());return new t({blockMap:s,entityMap:o||Ua,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=_Ne(l),new _3({key:yNe(),text:l,type:"unstyled",characterList:w3(SNe(b3.EMPTY,l.length))})});return t.createFromBlockArray(s)},t.fromJS=function(i){return new t(y3({},i,{blockMap:CNe(i.blockMap).map(t.createContentBlockFromJS),selectionBefore:new B0(i.selectionBefore),selectionAfter:new B0(i.selectionAfter)}))},t.createContentBlockFromJS=function(i){var o=i.characterList;return new _3(y3({},i,{data:ENe(i.data),characterList:o!=null?w3((Array.isArray(o)?o:bNe(o)).map(function(a){return b3.fromJS(a)})):void 0}))},t}(TNe),wI=RNe,J1=gn,ONe="NEUTRAL",hx="LTR",dK="RTL",jb=null;function Z1(e){return e===hx||e===dK}function pK(e){return Z1(e)||J1(!1),e===hx?"ltr":"rtl"}function ANe(e,t){return Z1(e)||J1(!1),Z1(t)||J1(!1),e===t?null:pK(e)}function hK(e){jb=e}function DNe(){hK(hx)}function INe(){return jb||this.initGlobalDir(),jb||J1(!1),jb}var PNe={NEUTRAL:ONe,LTR:hx,RTL:dK,isStrong:Z1,getHTMLDir:pK,getHTMLDirIfDifferent:ANe,setGlobalDir:hK,initGlobalDir:DNe,getGlobalDir:INe},mx=PNe,el=mx,$Ne=gn,lg={L:"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",R:"־׀׃׆-א-ת-ׯװ-ײ׳-״-߀-߉ߊ-ߪߴ-ߵߺ-߿ࠀ-ࠕࠚࠤࠨ-࠰-࠾ࡀ-ࡘ-࡞-࢟יִײַ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﭏ",AL:"؈؋؍؛؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍ܐܒ-ܯ-ݍ-ޥޱ-ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-ﯓ-ﴽ﵀-﵏ﵐ-ﶏ-ﶒ-ﷇ-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴﹶ-ﻼ-"},FNe=new RegExp("["+lg.L+lg.R+lg.AL+"]"),LNe=new RegExp("["+lg.R+lg.AL+"]");function mK(e){var t=FNe.exec(e);return t==null?null:t[0]}function gK(e){var t=mK(e);return t==null?el.NEUTRAL:LNe.exec(t)?el.RTL:el.LTR}function vK(e,t){if(t=t||el.NEUTRAL,!e.length)return t;var n=gK(e);return n===el.NEUTRAL?t:n}function _I(e,t){return t||(t=el.getGlobalDir()),el.isStrong(t)||$Ne(!1),vK(e,t)}function MNe(e,t){return _I(e,t)===el.LTR}function NNe(e,t){return _I(e,t)===el.RTL}var BNe={firstStrongChar:mK,firstStrongCharDir:gK,resolveBlockDir:vK,getDirection:_I,isDirectionLTR:MNe,isDirectionRTL:NNe},xI=BNe;function x3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jNe=xI,S3=mx,zNe=gn,UNe=function(){function e(n){x3(this,"_defaultDir",void 0),x3(this,"_lastDir",void 0),n?S3.isStrong(n)||zNe(!1):n=S3.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=jNe.getDirection(r,this._lastDir),this._lastDir},e}(),VNe=UNe,WNe=function(t){if(t!=null)return t;throw new Error("Got unexpected null or undefined")},qi=WNe,KNe=VNe,yK=ln,HNe=qi,qNe=yK.OrderedMap,j0,GNe={getDirectionMap:function(t,n){j0?j0.reset():j0=new KNe;var r=t.getBlockMap(),i=r.valueSeq().map(function(a){return HNe(j0).getDirection(a.getText())}),o=qNe(r.keySeq().zip(i));return n!=null&&yK.is(n,o)?n:o}},QNe=GNe;function E3(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){bK(e,i,n[i])})}return e}function bK(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gx=KMe,hm=wI,z0=QNe,wC=px,Mv=ln,wK=Mv.OrderedSet,YNe=Mv.Record,yc=Mv.Stack,C3=Mv.OrderedMap,XNe=Mv.List,JNe={allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:yc(),selection:null,treeMap:null,undoStack:yc()},k3=YNe(JNe),_K=function(){t.createEmpty=function(r){return this.createWithText("",r)},t.createWithText=function(r,i){return t.createWithContent(hm.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:yc(),redoStack:yc(),decorator:i||null,selection:wC.createEmpty(o)})},t.create=function(r){var i=r.currentContent,o=r.decorator,a=E3({},r,{treeMap:R3(i,o),directionMap:z0.getDirectionMap(i)});return new t(new k3(a))},t.fromJS=function(r){return new t(new k3(E3({},r,{directionMap:r.directionMap!=null?C3(r.directionMap):r.directionMap,inlineStyleOverride:r.inlineStyleOverride!=null?wK(r.inlineStyleOverride):r.inlineStyleOverride,nativelyRenderedContent:r.nativelyRenderedContent!=null?hm.fromJS(r.nativelyRenderedContent):r.nativelyRenderedContent,redoStack:r.redoStack!=null?yc(r.redoStack.map(function(i){return hm.fromJS(i)})):r.redoStack,selection:r.selection!=null?new wC(r.selection):r.selection,treeMap:r.treeMap!=null?C3(r.treeMap).map(function(i){return XNe(i).map(function(o){return gx.fromJS(o)})}):r.treeMap,undoStack:r.undoStack!=null?yc(r.undoStack.map(function(i){return hm.fromJS(i)})):r.undoStack,currentContent:hm.fromJS(r.currentContent)})))},t.set=function(r,i){var o=r.getImmutable().withMutations(function(a){var s=a.get("decorator"),l=s;i.decorator===null?l=null:i.decorator&&(l=i.decorator);var u=i.currentContent||r.getCurrentContent();if(l!==s){var f=a.get("treeMap"),p;l&&s?p=eBe(u,u.getBlockMap(),f,l,s):p=R3(u,l),a.merge({decorator:l,treeMap:p,nativelyRenderedContent:null});return}var d=r.getCurrentContent();u!==d&&a.set("treeMap",ZNe(r,u.getBlockMap(),u.getEntityMap(),l)),a.merge(i)});return new t(o)};var e=t.prototype;e.toJS=function(){return this.getImmutable().toJS()},e.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},e.getCurrentContent=function(){return this.getImmutable().get("currentContent")},e.getUndoStack=function(){return this.getImmutable().get("undoStack")},e.getRedoStack=function(){return this.getImmutable().get("redoStack")},e.getSelection=function(){return this.getImmutable().get("selection")},e.getDecorator=function(){return this.getImmutable().get("decorator")},e.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},e.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},e.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},e.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},e.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},t.setInlineStyleOverride=function(r,i){return t.set(r,{inlineStyleOverride:i})},e.getCurrentInlineStyle=function(){var r=this.getInlineStyleOverride();if(r!=null)return r;var i=this.getCurrentContent(),o=this.getSelection();return o.isCollapsed()?nBe(i,o):rBe(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 T3(r,i,!1)},t.forceSelection=function(r,i){return i.getHasFocus()||(i=i.set("hasFocus",!0)),T3(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 wC({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=z0.getDirectionMap(i,r.getDirectionMap());if(!r.getAllowUndo())return t.set(r,{currentContent:i,directionMap:s,lastChangeType:o,selection:i.getSelectionAfter(),forceSelection:a,inlineStyleOverride:null});var l=r.getSelection(),u=r.getCurrentContent(),f=r.getUndoStack(),p=i;l!==u.getSelectionAfter()||tBe(r,o)?(f=f.push(u),p=p.set("selectionBefore",l)):(o==="insert-characters"||o==="backspace-character"||o==="delete-character")&&(p=p.set("selectionBefore",u.getSelectionBefore()));var d=r.getInlineStyleOverride(),v=["adjust-depth","change-block-type","split-block"];v.indexOf(o)===-1&&(d=null);var g={currentContent:p,directionMap:s,undoStack:f,redoStack:yc(),lastChangeType:o,selection:i.getSelectionAfter(),forceSelection:a,inlineStyleOverride:d};return t.set(r,g)},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=z0.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=z0.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){bK(this,"_immutable",void 0),this._immutable=n}return e.getImmutable=function(){return this._immutable},t}();function T3(e,t,n){return _K.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function R3(e,t){return e.getBlockMap().map(function(n){return gx.generate(e,n,t)}).toOrderedMap()}function ZNe(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 gx.generate(i,s,r)}))}function eBe(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 gx.generate(e,o,r)}))}function tBe(e,t){var n=e.getLastChangeType();return t!==n||t!=="insert-characters"&&t!=="backspace-character"&&t!=="delete-character"}function nBe(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):xK(e,n)}function rBe(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):xK(e,n)}function xK(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):wK()}var Ln=_K,iBe=ra,oBe=nK,SK=ln,U0=gn,aBe=SK.OrderedMap,sBe=SK.List,rc=function(t,n,r){if(t){var i=n.get(t);i&&n.set(t,r(i))}},lBe=function(t,n,r,i,o){if(!o)return t;var a=i==="after",s=n.getKey(),l=r.getKey(),u=n.getParentKey(),f=n.getNextSiblingKey(),p=n.getPrevSiblingKey(),d=r.getParentKey(),v=a?r.getNextSiblingKey():l,g=a?l:r.getPrevSiblingKey();return t.withMutations(function(y){rc(u,y,function(x){var b=x.getChildKeys();return x.merge({children:b.delete(b.indexOf(s))})}),rc(p,y,function(x){return x.merge({nextSibling:f})}),rc(f,y,function(x){return x.merge({prevSibling:p})}),rc(v,y,function(x){return x.merge({prevSibling:s})}),rc(g,y,function(x){return x.merge({nextSibling:s})}),rc(d,y,function(x){var b=x.getChildKeys(),w=b.indexOf(l),S=a?w+1:w!==0?w-1:0,C=b.toArray();return C.splice(S,0,s),x.merge({children:sBe(C)})}),rc(s,y,function(x){return x.merge({nextSibling:v,prevSibling:g,parent:d})})})},uBe=function(t,n,r,i){i==="replace"&&U0(!1);var o=r.getKey(),a=n.getKey();a===o&&U0(!1);var s=t.getBlockMap(),l=n instanceof iBe,u=[n],f=s.delete(a);l&&(u=[],f=s.withMutations(function(b){var w=n.getNextSiblingKey(),S=oBe(n,b);b.toSeq().skipUntil(function(C){return C.getKey()===a}).takeWhile(function(C){var k=C.getKey(),D=k===a,P=w&&k!==w,B=!w&&C.getParentKey()&&(!S||k!==S);return!!(D||P||B)}).forEach(function(C){u.push(C),b.delete(C.getKey())})}));var p=f.toSeq().takeUntil(function(b){return b===r}),d=f.toSeq().skipUntil(function(b){return b===r}).skip(1),v=u.map(function(b){return[b.getKey(),b]}),g=aBe();if(i==="before"){var y=t.getBlockBefore(o);!y||y.getKey()!==n.getKey()||U0(!1),g=p.concat([].concat(v,[[o,r]]),d).toOrderedMap()}else if(i==="after"){var x=t.getBlockAfter(o);!x||x.getKey()!==a||U0(!1),g=p.concat([[o,r]].concat(v),d).toOrderedMap()}return t.merge({blockMap:lBe(g,n,r,i,l),selectionBefore:t.getSelectionAfter(),selectionAfter:t.getSelectionAfter().merge({anchorKey:a,focusKey:a})})},cBe=uBe;function O3(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){fBe(e,i,n[i])})}return e}function fBe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dBe=Iv,pBe=na,hBe=rf,mBe=ra,ed=Hi,A3=Ln,D3=bs,gBe=Mu,EK=ln,V0=cBe,CK=gBe("draft_tree_data_support"),I3=CK?mBe:hBe,vBe=EK.List,yBe=EK.Repeat,bBe={insertAtomicBlock:function(t,n,r){var i=t.getCurrentContent(),o=t.getSelection(),a=ed.removeRange(i,o,"backward"),s=a.getSelectionAfter(),l=ed.splitBlock(a,s),u=l.getSelectionAfter(),f=ed.setBlockType(l,u,"atomic"),p=pBe.create({entity:n}),d={key:D3(),type:"atomic",text:r,characterList:vBe(yBe(p,r.length))},v={key:D3(),type:"unstyled"};CK&&(d=O3({},d,{nextSibling:v.key}),v=O3({},v,{prevSibling:d.key}));var g=[new I3(d),new I3(v)],y=dBe.createFromArray(g),x=ed.replaceWithFragment(f,u,y),b=x.merge({selectionBefore:o,selectionAfter:x.getSelectionAfter().set("hasFocus",!0)});return A3.push(t,b,"insert-fragment")},moveAtomicBlock:function(t,n,r,i){var o=t.getCurrentContent(),a=t.getSelection(),s;if(i==="before"||i==="after"){var l=o.getBlockForKey(i==="before"?r.getStartKey():r.getEndKey());s=V0(o,n,l,i)}else{var u=ed.removeRange(o,r,"backward"),f=u.getSelectionAfter(),p=u.getBlockForKey(f.getFocusKey());if(f.getStartOffset()===0)s=V0(u,n,p,"before");else if(f.getEndOffset()===p.getLength())s=V0(u,n,p,"after");else{var d=ed.splitBlock(u,f),v=d.getSelectionAfter(),g=d.getBlockForKey(v.getFocusKey());s=V0(d,n,g,"before")}}var y=s.merge({selectionBefore:a,selectionAfter:s.getSelectionAfter().set("hasFocus",!0)});return A3.push(t,y,"move-block")}},wBe=bBe;function _Be(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xBe=ln,SBe=xBe.List,_C=".",EBe=function(){function e(n){_Be(this,"_decorators",void 0),this._decorators=n.slice()}var t=e.prototype;return t.getDecorations=function(r,i){var o=Array(r.getText().length).fill(null);return this._decorators.forEach(function(a,s){var l=0,u=a.strategy,f=function(d,v){CBe(o,d,v)&&(kBe(o,d,v,s+_C+l),l++)};u(r,f,i)}),SBe(o)},t.getComponentForKey=function(r){var i=parseInt(r.split(_C)[0],10);return this._decorators[i].component},t.getPropsForKey=function(r){var i=parseInt(r.split(_C)[0],10);return this._decorators[i].props},e}();function CBe(e,t,n){for(var r=t;r<n;r++)if(e[r]!=null)return!1;return!0}function kBe(e,t,n,r){for(var i=t;i<n;i++)e[i]=r}var TBe=EBe;function RBe(e){return typeof e=="object"?Object.keys(e).filter(function(t){return e[t]}).map(P3).join(" "):Array.prototype.map.call(arguments,P3).join(" ")}function P3(e){return e.replace(/\//g,"-")}var of=RBe,SI=R,EI=of,OBe=ln,ABe=OBe.Map,DBe=SI.createElement("ul",{className:EI("public/DraftStyleDefault/ul")}),IBe=SI.createElement("ol",{className:EI("public/DraftStyleDefault/ol")}),PBe=SI.createElement("pre",{className:EI("public/DraftStyleDefault/pre")}),$Be=ABe({"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:DBe},"ordered-list-item":{element:"li",wrapper:IBe},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:PBe},unstyled:{element:"div",aliasedElements:["p"]}}),CI=$Be,kK={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}};/*
|
|
491
|
-
object-assign
|
|
492
|
-
(c) Sindre Sorhus
|
|
493
|
-
@license MIT
|
|
494
|
-
*/var $3=Object.getOwnPropertySymbols,FBe=Object.prototype.hasOwnProperty,LBe=Object.prototype.propertyIsEnumerable;function MBe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function NBe(){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 af=NBe()?Object.assign:function(e,t){for(var n,r=MBe(e),i,o=1;o<arguments.length;o++){n=Object(arguments[o]);for(var a in n)FBe.call(n,a)&&(r[a]=n[a]);if($3){i=$3(n);for(var s=0;s<i.length;s++)LBe.call(n,i[s])&&(r[i[s]]=n[i[s]])}}return r},OR={exports:{}};(function(e,t){(function(n,r){var i="0.7.33",o="",a="?",s="function",l="undefined",u="object",f="string",p="major",d="model",v="name",g="type",y="vendor",x="version",b="architecture",w="console",S="mobile",C="tablet",k="smarttv",D="wearable",P="embedded",B=350,V="Amazon",U="Apple",W="ASUS",se="BlackBerry",ne="Browser",re="Chrome",Z="Edge",F="Firefox",te="Google",Y="Huawei",ee="LG",G="Microsoft",L="Motorola",A="Opera",ie="Samsung",ae="Sharp",ce="Sony",oe="Xiaomi",xe="Zebra",ke="Facebook",Ee=function(Oe,j){var H={};for(var he in Oe)j[he]&&j[he].length%2===0?H[he]=j[he].concat(Oe[he]):H[he]=Oe[he];return H},Fe=function(Oe){for(var j={},H=0;H<Oe.length;H++)j[Oe[H].toUpperCase()]=Oe[H];return j},Le=function(Oe,j){return typeof Oe===f?Ue(j).indexOf(Ue(Oe))!==-1:!1},Ue=function(Oe){return Oe.toLowerCase()},He=function(Oe){return typeof Oe===f?Oe.replace(/[^\d\.]/g,o).split(".")[0]:r},Qe=function(Oe,j){if(typeof Oe===f)return Oe=Oe.replace(/^\s\s*/,o),typeof j===l?Oe:Oe.substring(0,B)},qe=function(Oe,j){for(var H=0,he,Q,fe,le,Re,$e;H<j.length&&!Re;){var Pe=j[H],mt=j[H+1];for(he=Q=0;he<Pe.length&&!Re;)if(Re=Pe[he++].exec(Oe),Re)for(fe=0;fe<mt.length;fe++)$e=Re[++Q],le=mt[fe],typeof le===u&&le.length>0?le.length===2?typeof le[1]==s?this[le[0]]=le[1].call(this,$e):this[le[0]]=le[1]:le.length===3?typeof le[1]===s&&!(le[1].exec&&le[1].test)?this[le[0]]=$e?le[1].call(this,$e,le[2]):r:this[le[0]]=$e?$e.replace(le[1],le[2]):r:le.length===4&&(this[le[0]]=$e?le[3].call(this,$e.replace(le[1],le[2])):r):this[le]=$e||r;H+=2}},ut=function(Oe,j){for(var H in j)if(typeof j[H]===u&&j[H].length>0){for(var he=0;he<j[H].length;he++)if(Le(j[H][he],Oe))return H===a?r:H}else if(Le(j[H],Oe))return H===a?r:H;return Oe},et={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},it={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"},wt={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[x,[v,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[x,[v,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[v,x],[/opios[\/ ]+([\w\.]+)/i],[x,[v,A+" Mini"]],[/\bopr\/([\w\.]+)/i],[x,[v,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],[v,x],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[x,[v,"UC"+ne]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[x,[v,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[x,[v,"WeChat"]],[/konqueror\/([\w\.]+)/i],[x,[v,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[x,[v,"IE"]],[/yabrowser\/([\w\.]+)/i],[x,[v,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[v,/(.+)/,"$1 Secure "+ne],x],[/\bfocus\/([\w\.]+)/i],[x,[v,F+" Focus"]],[/\bopt\/([\w\.]+)/i],[x,[v,A+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[x,[v,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[x,[v,"Dolphin"]],[/coast\/([\w\.]+)/i],[x,[v,A+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[x,[v,"MIUI "+ne]],[/fxios\/([-\w\.]+)/i],[x,[v,F]],[/\bqihu|(qi?ho?o?|360)browser/i],[[v,"360 "+ne]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[v,/(.+)/,"$1 "+ne],x],[/(comodo_dragon)\/([\w\.]+)/i],[[v,/_/g," "],x],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[v,x],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[v],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[v,ke],x],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[v,x],[/\bgsa\/([\w\.]+) .*safari\//i],[x,[v,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[x,[v,re+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[v,re+" WebView"],x],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[x,[v,"Android "+ne]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[v,x],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[x,[v,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[x,v],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[v,[x,ut,et]],[/(webkit|khtml)\/([\w\.]+)/i],[v,x],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[v,"Netscape"],x],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[x,[v,F+" 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],[v,x],[/(cobalt)\/([\w\.]+)/i],[v,[x,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[b,"amd64"]],[/(ia32(?=;))/i],[[b,Ue]],[/((?:i[346]|x)86)[;\)]/i],[[b,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[b,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[b,"armhf"]],[/windows (ce|mobile); ppc;/i],[[b,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[b,/ower/,o,Ue]],[/(sun4\w)[;\)]/i],[[b,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[b,Ue]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[y,ie],[g,C]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[d,[y,ie],[g,S]],[/\((ip(?:hone|od)[\w ]*);/i],[d,[y,U],[g,S]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[d,[y,U],[g,C]],[/(macintosh);/i],[d,[y,U]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[d,[y,Y],[g,C]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[d,[y,Y],[g,S]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[d,/_/g," "],[y,oe],[g,S]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[d,/_/g," "],[y,oe],[g,C]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[d,[y,"OPPO"],[g,S]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[d,[y,"Vivo"],[g,S]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[d,[y,"Realme"],[g,S]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[d,[y,L],[g,S]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[d,[y,L],[g,C]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[y,ee],[g,C]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[d,[y,ee],[g,S]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[d,[y,"Lenovo"],[g,C]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[d,/_/g," "],[y,"Nokia"],[g,S]],[/(pixel c)\b/i],[d,[y,te],[g,C]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[d,[y,te],[g,S]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[d,[y,ce],[g,S]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[d,"Xperia Tablet"],[y,ce],[g,C]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[d,[y,"OnePlus"],[g,S]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[d,[y,V],[g,C]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[d,/(.+)/g,"Fire Phone $1"],[y,V],[g,S]],[/(playbook);[-\w\),; ]+(rim)/i],[d,y,[g,C]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[d,[y,se],[g,S]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[d,[y,W],[g,C]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[d,[y,W],[g,S]],[/(nexus 9)/i],[d,[y,"HTC"],[g,C]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[y,[d,/_/g," "],[g,S]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[d,[y,"Acer"],[g,C]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[d,[y,"Meizu"],[g,S]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[d,[y,ae],[g,S]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[y,d,[g,S]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[y,d,[g,C]],[/(surface duo)/i],[d,[y,G],[g,C]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[d,[y,"Fairphone"],[g,S]],[/(u304aa)/i],[d,[y,"AT&T"],[g,S]],[/\bsie-(\w*)/i],[d,[y,"Siemens"],[g,S]],[/\b(rct\w+) b/i],[d,[y,"RCA"],[g,C]],[/\b(venue[\d ]{2,7}) b/i],[d,[y,"Dell"],[g,C]],[/\b(q(?:mv|ta)\w+) b/i],[d,[y,"Verizon"],[g,C]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[d,[y,"Barnes & Noble"],[g,C]],[/\b(tm\d{3}\w+) b/i],[d,[y,"NuVision"],[g,C]],[/\b(k88) b/i],[d,[y,"ZTE"],[g,C]],[/\b(nx\d{3}j) b/i],[d,[y,"ZTE"],[g,S]],[/\b(gen\d{3}) b.+49h/i],[d,[y,"Swiss"],[g,S]],[/\b(zur\d{3}) b/i],[d,[y,"Swiss"],[g,C]],[/\b((zeki)?tb.*\b) b/i],[d,[y,"Zeki"],[g,C]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[y,"Dragon Touch"],d,[g,C]],[/\b(ns-?\w{0,9}) b/i],[d,[y,"Insignia"],[g,C]],[/\b((nxa|next)-?\w{0,9}) b/i],[d,[y,"NextBook"],[g,C]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[y,"Voice"],d,[g,S]],[/\b(lvtel\-)?(v1[12]) b/i],[[y,"LvTel"],d,[g,S]],[/\b(ph-1) /i],[d,[y,"Essential"],[g,S]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[d,[y,"Envizen"],[g,C]],[/\b(trio[-\w\. ]+) b/i],[d,[y,"MachSpeed"],[g,C]],[/\btu_(1491) b/i],[d,[y,"Rotor"],[g,C]],[/(shield[\w ]+) b/i],[d,[y,"Nvidia"],[g,C]],[/(sprint) (\w+)/i],[y,d,[g,S]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[y,G],[g,S]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[d,[y,xe],[g,C]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[d,[y,xe],[g,S]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[y,d,[g,w]],[/droid.+; (shield) bui/i],[d,[y,"Nvidia"],[g,w]],[/(playstation [345portablevi]+)/i],[d,[y,ce],[g,w]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[d,[y,G],[g,w]],[/smart-tv.+(samsung)/i],[y,[g,k]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,"SmartTV"],[y,ie],[g,k]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[y,ee],[g,k]],[/(apple) ?tv/i],[y,[d,U+" TV"],[g,k]],[/crkey/i],[[d,re+"cast"],[y,te],[g,k]],[/droid.+aft(\w)( bui|\))/i],[d,[y,V],[g,k]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[d,[y,ae],[g,k]],[/(bravia[\w ]+)( bui|\))/i],[d,[y,ce],[g,k]],[/(mitv-\w{5}) bui/i],[d,[y,oe],[g,k]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[y,Qe],[d,Qe],[g,k]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[g,k]],[/((pebble))app/i],[y,d,[g,D]],[/droid.+; (glass) \d/i],[d,[y,te],[g,D]],[/droid.+; (wt63?0{2,3})\)/i],[d,[y,xe],[g,D]],[/(quest( 2)?)/i],[d,[y,ke],[g,D]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[y,[g,P]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[d,[g,S]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[d,[g,C]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[g,C]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[g,S]],[/(android[-\w\. ]{0,9});.+buil/i],[d,[y,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[x,[v,Z+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[x,[v,"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],[v,x],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[x,v]],os:[[/microsoft (windows) (vista|xp)/i],[v,x],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[v,[x,ut,it]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[v,"Windows"],[x,ut,it]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[x,/_/g,"."],[v,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[v,"Mac OS"],[x,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[x,v],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[v,x],[/\(bb(10);/i],[x,[v,se]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[x,[v,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[x,[v,F+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[x,[v,"webOS"]],[/crkey\/([\d\.]+)/i],[x,[v,re+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[v,"Chromium OS"],x],[/(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],[v,x],[/(sunos) ?([\w\.\d]*)/i],[[v,"Solaris"],x],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[v,x]]},me=function(Oe,j){if(typeof Oe===u&&(j=Oe,Oe=r),!(this instanceof me))return new me(Oe,j).getResult();var H=Oe||(typeof n!==l&&n.navigator&&n.navigator.userAgent?n.navigator.userAgent:o),he=j?Ee(wt,j):wt;return this.getBrowser=function(){var Q={};return Q[v]=r,Q[x]=r,qe.call(Q,H,he.browser),Q.major=He(Q.version),Q},this.getCPU=function(){var Q={};return Q[b]=r,qe.call(Q,H,he.cpu),Q},this.getDevice=function(){var Q={};return Q[y]=r,Q[d]=r,Q[g]=r,qe.call(Q,H,he.device),Q},this.getEngine=function(){var Q={};return Q[v]=r,Q[x]=r,qe.call(Q,H,he.engine),Q},this.getOS=function(){var Q={};return Q[v]=r,Q[x]=r,qe.call(Q,H,he.os),Q},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 H},this.setUA=function(Q){return H=typeof Q===f&&Q.length>B?Qe(Q,B):Q,this},this.setUA(H),this};me.VERSION=i,me.BROWSER=Fe([v,x,p]),me.CPU=Fe([b]),me.DEVICE=Fe([d,y,g,w,S,k,C,D,P]),me.ENGINE=me.OS=Fe([v,x]),e.exports&&(t=e.exports=me),t.UAParser=me;var Te=typeof n!==l&&(n.jQuery||n.Zepto);if(Te&&!Te.ua){var Ce=new me;Te.ua=Ce.getResult(),Te.ua.get=function(){return Ce.getUA()},Te.ua.set=function(Oe){Ce.setUA(Oe);var j=Ce.getResult();for(var H in j)Te.ua[H]=j[H]}}})(typeof window=="object"?window:ao)})(OR,OR.exports);var BBe=OR.exports,jBe=BBe,Oo="Unknown",zBe={"Mac OS":"Mac OS X"};function UBe(e){return zBe[e]||e}function VBe(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}var WBe=new jBe,Do=WBe.getResult(),KBe=VBe(Do.browser.version),HBe={browserArchitecture:Do.cpu.architecture||Oo,browserFullVersion:Do.browser.version||Oo,browserMinorVersion:KBe.minor||Oo,browserName:Do.browser.name||Oo,browserVersion:Do.browser.major||Oo,deviceName:Do.device.model||Oo,engineName:Do.engine.name||Oo,engineVersion:Do.engine.version||Oo,platformArchitecture:Do.cpu.architecture||Oo,platformName:UBe(Do.os.name)||Oo,platformVersion:Do.os.version||Oo,platformFullVersion:Do.os.version||Oo},qBe=HBe,ew=gn,TK=/\./,GBe=/\|\|/,QBe=/\s+\-\s+/,YBe=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,F3=/^(\d*)(.*)/;function XBe(e,t){var n=e.split(GBe);return n.length>1?n.some(function(r){return DK.contains(r,t)}):(e=n[0].trim(),JBe(e,t))}function JBe(e,t){var n=e.split(QBe);if(n.length>0&&n.length<=2||ew(!1),n.length===1)return xC(n[0],t);var r=n[0],i=n[1];return L3(r)&&L3(i)||ew(!1),xC(">="+r,t)&&xC("<="+i,t)}function xC(e,t){if(e=e.trim(),e==="")return!0;var n=t.split(TK),r=AK(e),i=r.modifier,o=r.rangeComponents;switch(i){case"<":return RK(n,o);case"<=":return ZBe(n,o);case">=":return OK(n,o);case">":return t3e(n,o);case"~":case"~>":return n3e(n,o);default:return e3e(n,o)}}function RK(e,t){return Nv(e,t)===-1}function ZBe(e,t){var n=Nv(e,t);return n===-1||n===0}function e3e(e,t){return Nv(e,t)===0}function OK(e,t){var n=Nv(e,t);return n===1||n===0}function t3e(e,t){return Nv(e,t)===1}function n3e(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 AR(o)&&(r[i]=o+1+""),OK(e,n)&&RK(e,r)}function AK(e){var t=e.split(TK),n=t[0].match(YBe);return n||ew(!1),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function AR(e){return!isNaN(e)&&isFinite(e)}function L3(e){return!AK(e).modifier}function M3(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function r3e(e,t){e=e.slice(),t=t.slice(),M3(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 M3(t,e.length),[e,t]}function i3e(e,t){var n=e.match(F3)[1],r=t.match(F3)[1],i=parseInt(n,10),o=parseInt(r,10);return AR(i)&&AR(o)&&i!==o?N3(i,o):N3(e,t)}function N3(e,t){return typeof e!=typeof t&&ew(!1),e>t?1:e<t?-1:0}function Nv(e,t){for(var n=r3e(e,t),r=n[0],i=n[1],o=0;o<i.length;o++){var a=i3e(r[o],i[o]);if(a)return a}return 0}var DK={contains:function(t,n){return XBe(t.trim(),n.trim())}},o3e=DK,a3e=Object.prototype.hasOwnProperty;function s3e(e,t,n){if(!e)return null;var r={};for(var i in e)a3e.call(e,i)&&(r[i]=t.call(n,e[i],i,e));return r}var l3e=s3e;function u3e(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}var c3e=u3e,Ka=qBe,f3e=o3e,d3e=l3e,p3e=c3e;function td(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,f3e.contains(i,t)):!1}function h3e(e){return Ka.platformName==="Windows"?e.replace(/^\s*NT/,""):e}var m3e={isBrowser:function(t){return td(Ka.browserName,Ka.browserFullVersion,t)},isBrowserArchitecture:function(t){return td(Ka.browserArchitecture,null,t)},isDevice:function(t){return td(Ka.deviceName,null,t)},isEngine:function(t){return td(Ka.engineName,Ka.engineVersion,t)},isPlatform:function(t){return td(Ka.platformName,Ka.platformFullVersion,t,h3e)},isPlatformArchitecture:function(t){return td(Ka.platformArchitecture,null,t)}},Gi=d3e(m3e,p3e);function g3e(e){return!e||!e.ownerDocument?document:e.ownerDocument}var vx=g3e;function v3e(e){return!e||!e.ownerDocument?!1:e.nodeType===Node.ELEMENT_NODE}var sf=v3e,y3e=sf;function IK(e){if(y3e(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=IK(t.childNodes[r]);if(i)return i}}return null}var PK=IK,b3e=vx,w3e=PK;function _3e(e){for(var t=e;t&&t!==b3e(e).documentElement;){var n=w3e(t);if(n!=null)return n;t=t.parentNode}return null}var yx=_3e;function x3e(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}var $K=x3e;function W0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S3e=Gi,E3e=yx,C3e=$K,k3e=ln,T3e=gn,R3e=qi,B3=k3e.Map,O3e={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},j3=S3e.isBrowser("IE <= 11"),A3e=function(){function e(n){var r=this;W0(this,"observer",void 0),W0(this,"container",void 0),W0(this,"mutations",void 0),W0(this,"onCharData",void 0),this.container=n,this.mutations=B3();var i=C3e(n);i.MutationObserver&&!j3?this.observer=new i.MutationObserver(function(o){return r.registerMutations(o)}):this.onCharData=function(o){o.target instanceof Node||T3e(!1),r.registerMutation({type:"characterData",target:o.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,O3e):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=B3(),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 j3?o.textContent.replace(`
|
|
495
|
-
`,""):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=R3e(E3e(r.target));this.mutations=this.mutations.set(o,i)}},e}(),D3e=A3e,K0="-",I3e={encode:function(t,n,r){return t+K0+n+K0+r},decode:function(t){var n=t.split(K0).reverse(),r=n[0],i=n[1],o=n.slice(2);return{blockKey:o.reverse().join(K0),decoratorKey:parseInt(i,10),leafKey:parseInt(r,10)}}},gl=I3e,bx={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},FK={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}};function P3e(e){return!e||!e.ownerDocument?!1:e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement}var Bv=P3e,z3=gn,$3e=Bv;function F3e(e){var t=e.editorContainer;t||z3(!1),$3e(t.firstChild)||z3(!1);var n=t.firstChild;return n}var LK=F3e,U3=gl,L3e=qi;function M3e(e,t,n,r,i){var o=L3e(e.getSelection());if(!t||!r)return o;var a=U3.decode(t),s=a.blockKey,l=e.getBlockTree(s),u=l&&l.getIn([a.decoratorKey,"leaves",a.leafKey]),f=U3.decode(r),p=f.blockKey,d=e.getBlockTree(p),v=d&&d.getIn([f.decoratorKey,"leaves",f.leafKey]);if(!u||!v)return o;var g=u.get("start"),y=v.get("start"),x=u?g+n:null,b=v?y+i:null,w=o.getAnchorKey()===s&&o.getAnchorOffset()===x&&o.getFocusKey()===p&&o.getFocusOffset()===b;if(w)return o;var S=!1;if(s===p){var C=u.get("end"),k=v.get("end");y===g&&k===C?S=i<n:S=y<g}else{var D=e.getCurrentContent().getBlockMap().keySeq().skipUntil(function(P){return P===s||P===p}).first();S=D===p}return o.merge({anchorKey:s,anchorOffset:x,focusKey:p,focusOffset:b,isBackward:S})}var MK=M3e,$m=yx,ug=PK,V3=MK,SC=gn,kI=sf,Cc=qi;function N3e(e,t,n,r,i,o){var a=n.nodeType===Node.TEXT_NODE,s=i.nodeType===Node.TEXT_NODE;if(a&&s)return{selectionState:V3(e,Cc($m(n)),r,Cc($m(i)),o),needsRecovery:!1};var l=null,u=null,f=!0;return a?(l={key:Cc($m(n)),offset:r},u=H0(t,i,o)):s?(u={key:Cc($m(i)),offset:o},l=H0(t,n,r)):(l=H0(t,n,r),u=H0(t,i,o),n===i&&r===o&&(f=!!n.firstChild&&n.firstChild.nodeName!=="BR")),{selectionState:V3(e,l.key,l.offset,u.key,u.offset),needsRecovery:f}}function B3e(e){for(;e.firstChild&&(kI(e.firstChild)&&e.firstChild.getAttribute("data-blocks")==="true"||ug(e.firstChild));)e=e.firstChild;return e}function j3e(e){for(;e.lastChild&&(kI(e.lastChild)&&e.lastChild.getAttribute("data-blocks")==="true"||ug(e.lastChild));)e=e.lastChild;return e}function H0(e,t,n){var r=t,i=$m(r);if(i!=null||e&&(e===r||e.firstChild===r)||SC(!1),e===r){r=r.firstChild,kI(r)||SC(!1);var o=r;r=o,r.getAttribute("data-contents")!=="true"&&SC(!1),n>0&&(n=r.childNodes.length)}if(n===0){var a=null;if(i!=null)a=i;else{var s=B3e(r);a=Cc(ug(s))}return{key:a,offset:0}}var l=r.childNodes[n-1],u=null,f=null;if(!ug(l))u=Cc(i),f=W3(l);else{var p=j3e(l);u=Cc(ug(p)),f=W3(p)}return{key:u,offset:f}}function W3(e){var t=e.textContent;return t===`
|
|
496
|
-
`?0:t.length}var NK=N3e,z3e=NK;function U3e(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}:z3e(e,t,r,i,o,a)}var BK=U3e,V3e=FK,K3=Ln,W3e=LK,K3e=BK;function H3e(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState,n=t.getSelection();V3e.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:new Error().stack}),selectionState:JSON.stringify(n.toJS())})}return}var r=e.props.editorState,i=K3e(r,W3e(e)),o=i.selectionState;o!==r.getSelection()&&(i.needsRecovery?r=K3.forceSelection(r,o):r=K3.acceptSelection(r,o),e.update(r))}var jK=H3e;function q3e(e){return e!=null&&e!=""}var zK={notEmptyKey:q3e},G3e=zK,Q3e=G3e.notEmptyKey;function Y3e(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:H3(e.getEntityMap(),n)):null}var o=t.getStartKey(),a=t.getStartOffset(),s=e.getBlockForKey(o);return n=a===s.getLength()?null:s.getEntityAt(a),H3(e.getEntityMap(),n)}function H3(e,t){if(Q3e(t)){var n=e.__get(t);return n.getMutability()==="MUTABLE"?t:null}return null}var TI=Y3e,X3e=D3e,J3e=Hi,Z3e=gl,mm=Ln,EC=bx,eje=Gi,tje=jK,UK=LK,nje=BK,rje=TI,ije=qi,oje=eje.isBrowser("IE"),aje=20,CC=!1,q0=!1,cg=null;function sje(e){cg||(cg=new X3e(UK(e)),cg.start())}var DR={onCompositionStart:function(t){q0=!0,sje(t)},onCompositionEnd:function(t){CC=!1,q0=!1,setTimeout(function(){CC||DR.resolveComposition(t)},aje)},onSelect:tje,onKeyDown:function(t,n){if(!q0){DR.resolveComposition(t),t._onKeyDown(n);return}(n.which===EC.RIGHT||n.which===EC.LEFT)&&n.preventDefault()},onKeyPress:function(t,n){n.which===EC.RETURN&&n.preventDefault()},resolveComposition:function(t){if(!q0){var n=ije(cg).stopAndFlushMutations();cg=null,CC=!0;var r=mm.set(t._latestEditorState,{inCompositionMode:!1});if(t.exitCurrentMode(),!n.size){t.update(r);return}var i=r.getCurrentContent();n.forEach(function(l,u){var f=Z3e.decode(u),p=f.blockKey,d=f.decoratorKey,v=f.leafKey,g=r.getBlockTree(p).getIn([d,"leaves",v]),y=g.start,x=g.end,b=r.getSelection().merge({anchorKey:p,focusKey:p,anchorOffset:y,focusOffset:x,isBackward:!1}),w=rje(i,b),S=i.getBlockForKey(p).getInlineStyleAt(y);i=J3e.replaceText(i,b,l,S,w),r=mm.set(r,{currentContent:i})});var o=nje(r,UK(t)),a=o.selectionState;t.restoreEditorDOM();var s=oje?mm.forceSelection(r,a):mm.acceptSelection(r,a);t.update(mm.push(s,i,"insert-characters"))}}},lje=DR,kC,q3;function uje(){if(q3)return kC;q3=1;var e=af;function t(){return t=e||function(l){for(var u=1;u<arguments.length;u++){var f=arguments[u];for(var p in f)Object.prototype.hasOwnProperty.call(f,p)&&(l[p]=f[p])}return l},t.apply(this,arguments)}function n(l,u){l.prototype=Object.create(u.prototype),l.prototype.constructor=l,l.__proto__=u}var r=gl,i=R,o=xI,a=mx,s=function(l){n(u,l);function u(){return l.apply(this,arguments)||this}var f=u.prototype;return f.render=function(){var d=this.props,v=d.block,g=d.children,y=d.contentState,x=d.decorator,b=d.decoratorKey,w=d.direction,S=d.leafSet,C=d.text,k=v.getKey(),D=S.get("leaves"),P=x.getComponentForKey(b),B=x.getPropsForKey(b),V=r.encode(k,parseInt(b,10),0),U=C.slice(D.first().get("start"),D.last().get("end")),W=a.getHTMLDirIfDifferent(o.getDirection(U),w);return i.createElement(P,t({},B,{contentState:y,decoratedText:U,dir:W,key:V,entityKey:v.getEntityAt(S.get("start")),offsetKey:V}),g)},u}(i.Component);return kC=s,kC}function G3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cje(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Q3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _p=R,fje=Gi,dje=gn,pje=sf,RI=fje.isBrowser("IE <= 11");function hje(e){return RI?e.textContent===`
|
|
497
|
-
`:e.tagName==="BR"}var mje=function(t){return RI?_p.createElement("span",{key:"A","data-text":"true",ref:t},`
|
|
498
|
-
`):_p.createElement("br",{key:"A","data-text":"true",ref:t})},gje=function(t){return RI?_p.createElement("span",{key:"B","data-text":"true",ref:t},`
|
|
499
|
-
`):_p.createElement("br",{key:"B","data-text":"true",ref:t})},vje=function(e){cje(t,e);function t(r){var i;return i=e.call(this,r)||this,Q3(G3(i),"_forceFlag",void 0),Q3(G3(i),"_node",void 0),i._forceFlag=!1,i}var n=t.prototype;return n.shouldComponentUpdate=function(i){var o=this._node,a=i.children==="";pje(o)||dje(!1);var s=o;return a?!hje(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?mje(function(o){return i._node=o}):gje(function(o){return i._node=o}):_p.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(a){return i._node=a}},this.props.children)},t}(_p.Component),yje=vje,bje=sf;function wje(e){return!e||!e.ownerDocument?!1:bje(e)&&e.nodeName==="BR"}var VK=wje,WK={initODS:function(){},handleExtensionCausedError:function(){}};function _je(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 xje=_je,Sje=xje;function Eje(e){return Sje(e)&&e.nodeType==3}var Cje=Eje,Y3=Cje;function KK(e,t){return!e||!t?!1:e===t?!0:Y3(e)?!1:Y3(t)?KK(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1}var OI=KK;function kje(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 HK=kje,Tje=WK,IR=FK,Rje=Gi,qK=OI,Oje=HK,AI=vx,Aje=gn,GK=sf,Dje=Rje.isBrowser("IE");function Ije(e,t){if(!e)return"[empty]";var n=QK(e,t);if(n.nodeType===Node.TEXT_NODE)return n.textContent;GK(n)||Aje(!1);var r=n;return r.outerHTML}function QK(e,t){var n=t!==void 0?t(e):[];if(e.nodeType===Node.TEXT_NODE){var r=e.textContent.length;return AI(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(QK(o[a],t));return i}function PR(e,t){for(var n=e,r=n;n;){if(GK(n)&&r.hasAttribute("contenteditable"))return Ije(n,t);n=n.parentNode,r=n}return"Could not find contentEditable parent of node"}function YK(e){return e.nodeValue===null?e.childNodes.length:e.nodeValue.length}function Pje(e,t,n,r,i){var o=AI(t);if(qK(o.documentElement,t)){var a=o.defaultView.getSelection(),s=e.getAnchorKey(),l=e.getAnchorOffset(),u=e.getFocusKey(),f=e.getFocusOffset(),p=e.getIsBackward();if(!a.extend&&p){var d=s,v=l;s=u,l=f,u=d,f=v,p=!1}var g=s===n&&r<=l&&i>=l,y=u===n&&r<=f&&i>=f;if(g&&y){a.removeAllRanges(),G0(a,t,l-r,e),zb(a,t,f-r,e);return}if(!p)g&&(a.removeAllRanges(),G0(a,t,l-r,e)),y&&zb(a,t,f-r,e);else if(y&&(a.removeAllRanges(),G0(a,t,f-r,e)),g){var x=a.focusNode,b=a.focusOffset;a.removeAllRanges(),G0(a,t,l-r,e),zb(a,x,b,e)}}}function zb(e,t,n,r){var i=Oje(),o=e.extend;if(o&&t!=null&&qK(i,t)){n>YK(t)&&IR.logSelectionStateFailure({anonymizedDom:PR(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 IR.logSelectionStateFailure({anonymizedDom:PR(t,function(u){var f=[];return u===i&&f.push("active element"),u===e.anchorNode&&f.push("selection anchor node"),u===e.focusNode&&f.push("selection focus node"),f}),extraParams:JSON.stringify({activeElementName:i?i.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:a,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:l?""+l:null,offset:n},null,2),selectionState:JSON.stringify(r.toJS(),null,2)}),l}}else if(t&&e.rangeCount>0){var s=e.getRangeAt(0);s.setEnd(t,n),e.addRange(s.cloneRange())}}function G0(e,t,n,r){var i=AI(t).createRange();if(n>YK(t)&&(IR.logSelectionStateFailure({anonymizedDom:PR(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())}),Tje.handleExtensionCausedError()),i.setStart(t,n),Dje)try{e.addRange(i)}catch{}else e.addRange(i)}var $je={setDraftEditorSelection:Pje,addFocusToSelection:zb},X3=af;function Fje(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lje(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Mje(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Nje=yje,TC=R,Q0=gn,Bje=VK,jje=$je.setDraftEditorSelection,zje=function(e){Lje(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,Mje(Fje(r),"leaf",void 0),r}var n=t.prototype;return n._setSelection=function(){var i=this.props.selection;if(!(i==null||!i.getHasFocus())){var o=this.props,a=o.block,s=o.start,l=o.text,u=a.getKey(),f=s+l.length;if(i.hasEdgeWithin(u,s,f)){var p=this.leaf;p||Q0(!1);var d=p.firstChild;d||Q0(!1);var v;d.nodeType===Node.TEXT_NODE?v=d:Bje(d)?v=p:(v=d.firstChild,v||Q0(!1)),jje(i,v,u,s,f)}}},n.shouldComponentUpdate=function(i){var o=this.leaf;o||Q0(!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(`
|
|
500
|
-
`)&&this.props.isLast&&(a+=`
|
|
501
|
-
`);var s=this.props,l=s.customStyleMap,u=s.customStyleFn,f=s.offsetKey,p=s.styleSet,d=p.reduce(function(g,y){var x={},b=l[y];return b!==void 0&&g.textDecoration!==b.textDecoration&&(x.textDecoration=[g.textDecoration,b.textDecoration].join(" ").trim()),X3(g,b,x)},{});if(u){var v=u(p,o);d=X3(d,v)}return TC.createElement("span",{"data-offset-key":f,ref:function(y){return i.leaf=y},style:d},TC.createElement(Nje,null,a))},t}(TC.Component),XK=zje,RC,J3;function Uje(){if(J3)return RC;J3=1;function e(l,u){l.prototype=Object.create(u.prototype),l.prototype.constructor=l,l.__proto__=u}var t=uje(),n=XK,r=gl,i=ln,o=R,a=of;i.List;var s=function(l){e(u,l);function u(){return l.apply(this,arguments)||this}var f=u.prototype;return f.render=function(){var d=this.props,v=d.block,g=d.contentState,y=d.customStyleFn,x=d.customStyleMap,b=d.decorator,w=d.direction,S=d.forceSelection,C=d.hasSelection,k=d.selection,D=d.tree,P=v.getKey(),B=v.getText(),V=D.size-1,U=this.props.children||D.map(function(W,se){var ne=W.get("decoratorKey"),re=W.get("leaves"),Z=re.size-1,F=re.map(function(te,Y){var ee=r.encode(P,se,Y),G=te.get("start"),L=te.get("end");return o.createElement(n,{key:ee,offsetKey:ee,block:v,start:G,selection:C?k:null,forceSelection:S,text:B.slice(G,L),styleSet:v.getInlineStyleAt(G),customStyleMap:x,customStyleFn:y,isLast:ne===V&&Y===Z})}).toArray();return!ne||!b?F:o.createElement(t,{block:v,children:F,contentState:g,decorator:b,decoratorKey:ne,direction:w,leafSet:W,text:B,key:se})}).toArray();return o.createElement("div",{"data-offset-key":r.encode(P,0,0),className:a({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":w==="LTR","public/DraftStyleDefault/rtl":w==="RTL"})},U)},u}(o.Component);return RC=s,RC}function Y0(e,t){return!!t&&(e===t.documentElement||e===t.body)}var Vje={getTop:function(t){var n=t.ownerDocument;return Y0(t,n)?n.body.scrollTop||n.documentElement.scrollTop:t.scrollTop},setTop:function(t,n){var r=t.ownerDocument;Y0(t,r)?r.body.scrollTop=r.documentElement.scrollTop=n:t.scrollTop=n},getLeft:function(t){var n=t.ownerDocument;return Y0(t,n)?n.body.scrollLeft||n.documentElement.scrollLeft:t.scrollLeft},setLeft:function(t,n){var r=t.ownerDocument;Y0(t,r)?r.body.scrollLeft=r.documentElement.scrollLeft=n:t.scrollLeft=n}},DI=Vje,Wje=/-(.)/g;function Kje(e){return e.replace(Wje,function(t,n){return n.toUpperCase()})}var Hje=Kje,qje=/([A-Z])/g;function Gje(e){return e.replace(qje,"-$1").toLowerCase()}var Qje=Gje,Z3=Hje,ej=Qje;function gm(e){return e==null?e:String(e)}function Yje(e,t){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null),n))return gm(n.getPropertyValue(ej(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null),n)return gm(n.getPropertyValue(ej(t)));if(t==="display")return"none"}return e.currentStyle?gm(t==="float"?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[Z3(t)]):gm(e.style&&e.style[Z3(t)])}var Xje=Yje,Jje=Xje;function OC(e,t){var n=JK.get(e,t);return n==="auto"||n==="scroll"}var JK={get:Jje,getScrollParent:function(t){if(!t)return null;for(var n=t.ownerDocument;t&&t!==n.body;){if(OC(t,"overflow")||OC(t,"overflowY")||OC(t,"overflowX"))return t;t=t.parentNode}return n.defaultView||n.parentWindow}},wx=JK,Zje=OI;function eze(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!Zje(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 tze=eze,nze=tze;function rze(e){var t=nze(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}}var ZK=rze,ize=typeof navigator<"u"&&navigator.userAgent.indexOf("AppleWebKit")>-1;function oze(e){return e=e||document,e.scrollingElement?e.scrollingElement:!ize&&e.compatMode==="CSS1Compat"?e.documentElement:e.body}var aze=oze;function sze(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 lze=sze,uze=aze,cze=lze;function fze(e){var t=uze(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=cze(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 _x=fze;function eH(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function tH(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function nH(){return{width:window.innerWidth||eH(),height:window.innerHeight||tH()}}nH.withoutScrollbars=function(){return{width:eH(),height:tH()}};var rH=nH,AC,tj;function dze(){if(tj)return AC;tj=1;var e=af;function t(){return t=e||function(V){for(var U=1;U<arguments.length;U++){var W=arguments[U];for(var se in W)Object.prototype.hasOwnProperty.call(W,se)&&(V[se]=W[se])}return V},t.apply(this,arguments)}function n(V){if(V===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return V}function r(V,U){V.prototype=Object.create(U.prototype),V.prototype.constructor=V,V.__proto__=U}function i(V){for(var U=1;U<arguments.length;U++){var W=arguments[U]!=null?arguments[U]:{},se=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(se=se.concat(Object.getOwnPropertySymbols(W).filter(function(ne){return Object.getOwnPropertyDescriptor(W,ne).enumerable}))),se.forEach(function(ne){o(V,ne,W[ne])})}return V}function o(V,U,W){return U in V?Object.defineProperty(V,U,{value:W,enumerable:!0,configurable:!0,writable:!0}):V[U]=W,V}var a=Uje(),s=gl,l=R,u=DI,f=wx,p=ZK,d=_x,v=rH,g=ln,y=gn,x=Bv,b=10;g.List;var w=function(U,W){return U.getAnchorKey()===W||U.getFocusKey()===W},S=function(U,W){var se=U.getNextSiblingKey();return se?W.getBlockForKey(se).getType()===U.getType():!1},C=function(U,W,se){var ne=[],re=!0,Z=!1,F=void 0;try{for(var te=se.reverse()[Symbol.iterator](),Y;!(re=(Y=te.next()).done);re=!0){var ee=Y.value;if(ee.type!==W)break;ne.push(ee)}}catch(A){Z=!0,F=A}finally{try{!re&&te.return!=null&&te.return()}finally{if(Z)throw F}}se.splice(se.indexOf(ne[0]),ne.length+1);var G=ne.reverse(),L=G[0].key;return se.push(l.cloneElement(U,{key:"".concat(L,"-wrap"),"data-offset-key":s.encode(L,0,0)},G)),se},k=function(U,W){var se=W.get(U.getType())||W.get("unstyled"),ne=se.wrapper,re=se.element||W.get("unstyled").element;return{Element:re,wrapperTemplate:ne}},D=function(U,W){var se=W(U);if(!se)return{};var ne=se.component,re=se.props,Z=se.editable;return{CustomComponent:ne,customProps:re,customEditable:Z}},P=function(U,W,se,ne,re,Z){var F={"data-block":!0,"data-editor":W,"data-offset-key":se,key:U.getKey(),ref:Z},te=ne(U);return te&&(F.className=te),re.customEditable!==void 0&&(F=i({},F,{contentEditable:re.customEditable,suppressContentEditableWarning:!0})),F},B=function(V){r(U,V);function U(){for(var se,ne=arguments.length,re=new Array(ne),Z=0;Z<ne;Z++)re[Z]=arguments[Z];return se=V.call.apply(V,[this].concat(re))||this,o(n(se),"wrapperRef",l.createRef()),se}var W=U.prototype;return W.shouldComponentUpdate=function(ne){var re=this.props,Z=re.block,F=re.direction,te=re.tree,Y=!Z.getChildKeys().isEmpty(),ee=Z!==ne.block||te!==ne.tree||F!==ne.direction||w(ne.selection,ne.block.getKey())&&ne.forceSelection;return Y||ee},W.componentDidMount=function(){var ne=this.props.selection,re=ne.getEndKey();if(!(!ne.getHasFocus()||re!==this.props.block.getKey())){var Z=this.wrapperRef.current;if(Z){var F=f.getScrollParent(Z),te=d(F),Y;if(F===window){var ee=p(Z),G=ee.y+ee.height,L=v().height;Y=G-L,Y>0&&window.scrollTo(te.x,te.y+Y+b)}else{x(Z)||y(!1);var A=Z,ie=A.offsetHeight+A.offsetTop,ae=F.offsetHeight+te.y;Y=ie-ae,Y>0&&u.setTop(F,u.getTop(F)+Y+b)}}}},W.render=function(){var ne=this,re=this.props,Z=re.block,F=re.blockRenderMap,te=re.blockRendererFn,Y=re.blockStyleFn,ee=re.contentState,G=re.decorator,L=re.editorKey,A=re.editorState,ie=re.customStyleFn,ae=re.customStyleMap,ce=re.direction,oe=re.forceSelection,xe=re.selection,ke=re.tree,Ee=null;Z.children.size&&(Ee=Z.children.reduce(function(it,wt){var me=s.encode(wt,0,0),Te=ee.getBlockForKey(wt),Ce=D(Te,te),Oe=Ce.CustomComponent||U,j=k(Te,F),H=j.Element,he=j.wrapperTemplate,Q=P(Te,L,me,Y,Ce,null),fe=i({},ne.props,{tree:A.getBlockTree(wt),blockProps:Ce.customProps,offsetKey:me,block:Te});return it.push(l.createElement(H,Q,l.createElement(Oe,fe))),!he||S(Te,ee)||C(he,H,it),it},[]));var Fe=Z.getKey(),Le=s.encode(Fe,0,0),Ue=D(Z,te),He=Ue.CustomComponent,Qe=He!=null?l.createElement(He,t({},this.props,{tree:A.getBlockTree(Fe),blockProps:Ue.customProps,offsetKey:Le,block:Z})):l.createElement(a,{block:Z,children:Ee,contentState:ee,customStyleFn:ie,customStyleMap:ae,decorator:G,direction:ce,forceSelection:oe,hasSelection:w(xe,Fe),selection:xe,tree:ke});if(Z.getParentKey())return Qe;var qe=k(Z,F),ut=qe.Element,et=P(Z,L,Le,Y,Ue,this.wrapperRef);return l.createElement(ut,et,Qe)},U}(l.Component);return AC=B,AC}var DC,nj;function pze(){if(nj)return DC;nj=1;var e=af;function t(){return t=e||function(l){for(var u=1;u<arguments.length;u++){var f=arguments[u];for(var p in f)Object.prototype.hasOwnProperty.call(f,p)&&(l[p]=f[p])}return l},t.apply(this,arguments)}function n(l,u){l.prototype=Object.create(u.prototype),l.prototype.constructor=l,l.__proto__=u}var r=dze(),i=gl,o=R,a=qi,s=function(l){n(u,l);function u(){return l.apply(this,arguments)||this}var f=u.prototype;return f.shouldComponentUpdate=function(d){var v=this.props.editorState,g=d.editorState,y=v.getDirectionMap(),x=g.getDirectionMap();if(y!==x)return!0;var b=v.getSelection().getHasFocus(),w=g.getSelection().getHasFocus();if(b!==w)return!0;var S=g.getNativelyRenderedContent(),C=v.isInCompositionMode(),k=g.isInCompositionMode();if(v===g||S!==null&&g.getCurrentContent()===S||C&&k)return!1;var D=v.getCurrentContent(),P=g.getCurrentContent(),B=v.getDecorator(),V=g.getDecorator();return C!==k||D!==P||B!==V||g.mustForceSelection()},f.render=function(){for(var d=this.props,v=d.blockRenderMap,g=d.blockRendererFn,y=d.blockStyleFn,x=d.customStyleMap,b=d.customStyleFn,w=d.editorState,S=d.editorKey,C=d.textDirectionality,k=w.getCurrentContent(),D=w.getSelection(),P=w.mustForceSelection(),B=w.getDecorator(),V=a(w.getDirectionMap()),U=k.getBlocksAsArray(),W=U[0],se=[],ne=W;ne;){var re=ne.getKey(),Z={blockRenderMap:v,blockRendererFn:g,blockStyleFn:y,contentState:k,customStyleFn:b,customStyleMap:x,decorator:B,editorKey:S,editorState:w,forceSelection:P,selection:D,block:ne,direction:C||V.get(re),tree:w.getBlockTree(re)},F=v.get(ne.getType())||v.get("unstyled"),te=F.wrapper;se.push({block:o.createElement(r,t({key:re},Z)),wrapperTemplate:te,key:re,offsetKey:i.encode(re,0,0)});var Y=ne.getNextSiblingKey();ne=Y?k.getBlockForKey(Y):null}for(var ee=[],G=0;G<se.length;){var L=se[G];if(L.wrapperTemplate){var A=[];do A.push(se[G].block),G++;while(G<se.length&&se[G].wrapperTemplate===L.wrapperTemplate);var ie=o.cloneElement(L.wrapperTemplate,{key:L.key+"-wrap","data-offset-key":L.offsetKey},A);ee.push(ie)}else ee.push(L.block),G++}return o.createElement("div",{"data-contents":"true"},ee)},u}(o.Component);return DC=s,DC}var hze=af;function $R(){return $R=hze||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},$R.apply(this,arguments)}function mze(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gze(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function vze(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yze=XK,rj=gl,X0=R,ij=DI,bze=wx,wze=xI,_ze=mx,xze=of,Sze=ZK,Eze=_x,Cze=rH,kze=gn,Tze=Bv,Rze=qi,oj=10,aj=function(t,n){return t.getAnchorKey()===n||t.getFocusKey()===n},Oze=function(e){gze(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,vze(mze(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||aj(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=bze.getScrollParent(a),l=Eze(s),u;if(s===window){var f=Sze(a),p=f.y+f.height,d=Cze().height;u=p-d,u>0&&window.scrollTo(l.x,l.y+u+oj)}else{Tze(a)||kze(!1);var v=a.offsetHeight+a.offsetTop,g=s.offsetTop+s.offsetHeight,y=g+l.y;u=v-y,u>0&&ij.setTop(s,ij.getTop(s)+u+oj)}}}}},n._renderChildren=function(){var i=this,o=this.props.block,a=o.getKey(),s=o.getText(),l=this.props.tree.size-1,u=aj(this.props.selection,a);return this.props.tree.map(function(f,p){var d=f.get("leaves");if(d.size===0)return null;var v=d.size-1,g=d.map(function(U,W){var se=rj.encode(a,p,W),ne=U.get("start"),re=U.get("end");return X0.createElement(yze,{key:se,offsetKey:se,block:o,start:ne,selection:u?i.props.selection:null,forceSelection:i.props.forceSelection,text:s.slice(ne,re),styleSet:o.getInlineStyleAt(ne),customStyleMap:i.props.customStyleMap,customStyleFn:i.props.customStyleFn,isLast:p===l&&W===v})}).toArray(),y=f.get("decoratorKey");if(y==null||!i.props.decorator)return g;var x=Rze(i.props.decorator),b=x.getComponentForKey(y);if(!b)return g;var w=x.getPropsForKey(y),S=rj.encode(a,p,0),C=d.first().get("start"),k=d.last().get("end"),D=s.slice(C,k),P=o.getEntityAt(f.get("start")),B=_ze.getHTMLDirIfDifferent(wze.getDirection(D),i.props.direction),V={contentState:i.props.contentState,decoratedText:D,dir:B,start:C,end:k,blockKey:a,entityKey:P,offsetKey:S};return X0.createElement(b,$R({},w,V,{key:S}),g)}).toArray()},n.render=function(){var i=this,o=this.props,a=o.direction,s=o.offsetKey,l=xze({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":a==="LTR","public/DraftStyleDefault/rtl":a==="RTL"});return X0.createElement("div",{"data-offset-key":s,className:l,ref:function(f){return i._node=f}},this._renderChildren())},t}(X0.Component),iH=Oze,IC,sj;function Aze(){if(sj)return IC;sj=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 IC=e,IC}var PC,lj;function Dze(){if(lj)return PC;lj=1;var e=af;function t(){return t=e||function(v){for(var g=1;g<arguments.length;g++){var y=arguments[g];for(var x in y)Object.prototype.hasOwnProperty.call(y,x)&&(v[x]=y[x])}return v},t.apply(this,arguments)}function n(v){for(var g=1;g<arguments.length;g++){var y=arguments[g]!=null?arguments[g]:{},x=Object.keys(y);typeof Object.getOwnPropertySymbols=="function"&&(x=x.concat(Object.getOwnPropertySymbols(y).filter(function(b){return Object.getOwnPropertyDescriptor(y,b).enumerable}))),x.forEach(function(b){r(v,b,y[b])})}return v}function r(v,g,y){return g in v?Object.defineProperty(v,g,{value:y,enumerable:!0,configurable:!0,writable:!0}):v[g]=y,v}function i(v,g){v.prototype=Object.create(g.prototype),v.prototype.constructor=v,v.__proto__=g}var o=iH,a=gl,s=R,l=of,u=Aze(),f=qi,p=function(g,y,x,b){return l({"public/DraftStyleDefault/unorderedListItem":g==="unordered-list-item","public/DraftStyleDefault/orderedListItem":g==="ordered-list-item","public/DraftStyleDefault/reset":x,"public/DraftStyleDefault/depth0":y===0,"public/DraftStyleDefault/depth1":y===1,"public/DraftStyleDefault/depth2":y===2,"public/DraftStyleDefault/depth3":y===3,"public/DraftStyleDefault/depth4":y>=4,"public/DraftStyleDefault/listLTR":b==="LTR","public/DraftStyleDefault/listRTL":b==="RTL"})},d=function(v){i(g,v);function g(){return v.apply(this,arguments)||this}var y=g.prototype;return y.shouldComponentUpdate=function(b){var w=this.props.editorState,S=b.editorState,C=w.getDirectionMap(),k=S.getDirectionMap();if(C!==k)return!0;var D=w.getSelection().getHasFocus(),P=S.getSelection().getHasFocus();if(D!==P)return!0;var B=S.getNativelyRenderedContent(),V=w.isInCompositionMode(),U=S.isInCompositionMode();if(w===S||B!==null&&S.getCurrentContent()===B||V&&U)return!1;var W=w.getCurrentContent(),se=S.getCurrentContent(),ne=w.getDecorator(),re=S.getDecorator();return V!==U||W!==se||ne!==re||S.mustForceSelection()},y.render=function(){for(var b=this.props,w=b.blockRenderMap,S=b.blockRendererFn,C=b.blockStyleFn,k=b.customStyleMap,D=b.customStyleFn,P=b.editorState,B=b.editorKey,V=b.preventScroll,U=b.textDirectionality,W=P.getCurrentContent(),se=P.getSelection(),ne=P.mustForceSelection(),re=P.getDecorator(),Z=f(P.getDirectionMap()),F=W.getBlocksAsArray(),te=[],Y=null,ee=null,G=0;G<F.length;G++){var L=F[G],A=L.getKey(),ie=L.getType(),ae=S(L),ce=void 0,oe=void 0,xe=void 0;ae&&(ce=ae.component,oe=ae.props,xe=ae.editable);var ke=U||Z.get(A),Ee=a.encode(A,0,0),Fe={contentState:W,block:L,blockProps:oe,blockStyleFn:C,customStyleMap:k,customStyleFn:D,decorator:re,direction:ke,forceSelection:ne,offsetKey:Ee,preventScroll:V,selection:se,tree:P.getBlockTree(A)},Le=w.get(ie)||w.get("unstyled"),Ue=Le.wrapper,He=Le.element||w.get("unstyled").element,Qe=L.getDepth(),qe="";if(C&&(qe=C(L)),He==="li"){var ut=ee!==Ue||Y===null||Qe>Y;qe=u(qe,p(ie,Qe,ut,ke))}var et=ce||o,it={className:qe,"data-block":!0,"data-editor":B,"data-offset-key":Ee,key:A};xe!==void 0&&(it=n({},it,{contentEditable:xe,suppressContentEditableWarning:!0}));var wt=s.createElement(He,it,s.createElement(et,t({},Fe,{key:A})));te.push({block:wt,wrapperTemplate:Ue,key:A,offsetKey:Ee}),Ue?Y=L.getDepth():Y=null,ee=Ue}for(var me=[],Te=0;Te<te.length;){var Ce=te[Te];if(Ce.wrapperTemplate){var Oe=[];do Oe.push(te[Te].block),Te++;while(Te<te.length&&te[Te].wrapperTemplate===Ce.wrapperTemplate);var j=s.cloneElement(Ce.wrapperTemplate,{key:Ce.key+"-wrap","data-offset-key":Ce.offsetKey},Oe);me.push(j)}else me.push(Ce.block),Te++}return s.createElement("div",{"data-contents":"true"},me)},g}(s.Component);return PC=d,PC}var Ize=Mu,Pze=Ize("draft_tree_data_support"),$ze=Pze?pze():Dze(),oH={isImage:function(t){return uj(t)[0]==="image"},isJpeg:function(t){var n=uj(t);return oH.isImage(t)&&(n[1]==="jpeg"||n[1]==="pjpeg")}};function uj(e){return e.split("/")}var Fze=oH,J0=gn;function Lze(e){var t=e.length;if(!Array.isArray(e)&&(typeof e=="object"||typeof e=="function")||J0(!1),typeof t!="number"&&J0(!1),t===0||t-1 in e||J0(!1),typeof e.callee=="function"&&J0(!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 Mze(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 Nze(e){return Mze(e)?Array.isArray(e)?e.slice():Lze(e):[e]}var Bze=Nze;function xx(e){return function(){return e}}var lf=function(){};lf.thatReturns=xx;lf.thatReturnsFalse=xx(!1);lf.thatReturnsTrue=xx(!0);lf.thatReturnsNull=xx(null);lf.thatReturnsThis=function(){return this};lf.thatReturnsArgument=function(e){return e};var jze=lf,zze=Fze,Uze=Bze,Vze=jze,Wze=new RegExp(`\r
|
|
502
|
-
`,"g"),Kze=`
|
|
503
|
-
`,Hze={"text/rtf":1,"text/html":1};function qze(e){if(e.kind=="file")return e.getAsFile()}var Gze=function(){function e(n){this.data=n,this.types=n.types?Uze(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 Hze[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(Wze,Kze):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(`
|
|
504
|
-
`);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(!zze.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(qze).filter(Vze.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},t.hasFiles=function(){return this.getFiles().length>0},e}(),aH=Gze,Qze=gn,cj=/\.textClipping$/,Yze={"text/plain":!0,"text/html":!0,"text/rtf":!0},Xze=5e3;function Jze(e,t){var n=0,r=[];e.forEach(function(i){Zze(i,function(o){n++,o&&r.push(o.slice(0,Xze)),n==e.length&&t(r.join("\r"))})})}function Zze(e,t){if(!ao.FileReader||e.type&&!(e.type in Yze)){t("");return}if(e.type===""){var n="";cj.test(e.name)&&(n=e.name.replace(cj,"")),t(n);return}var r=new FileReader;r.onload=function(){var i=r.result;typeof i!="string"&&Qze(!1),t(i)},r.onerror=function(){t("")},r.readAsText(e)}var sH=Jze;function e4e(e){return e==="handled"||e===!0}var Sx=e4e,t4e=aH,lH=Hi,uH=Ln,n4e=yx,r4e=vx,i4e=sH,o4e=MK,a4e=$K,fj=Sx,$C=qi;function s4e(e,t){var n=null,r=null,i=r4e(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=$C(n),r=$C(r);var a=$C(n4e(n));return o4e(t,a,r,a,r)}var l4e={onDragEnd:function(t){t.exitCurrentMode(),dj(t)},onDrop:function(t,n){var r=new t4e(n.nativeEvent.dataTransfer),i=t._latestEditorState,o=s4e(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&&fj(t.props.handleDroppedFiles(o,a)))return;i4e(a,function(l){l&&t.update(pj(i,o,l))});return}var s=t._internalDrag?"internal":"external";t.props.handleDrop&&fj(t.props.handleDrop(o,r,s))||(t._internalDrag?t.update(u4e(i,o)):t.update(pj(i,o,r.getText()))),dj(t)}}};function dj(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:a4e(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function u4e(e,t){var n=lH.moveText(e.getCurrentContent(),e.getSelection(),t);return uH.push(e,n,"insert-fragment")}function pj(e,t,n){var r=lH.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return uH.push(e,r,"insert-fragment")}var c4e=l4e;function f4e(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 d4e=f4e;(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 S=new Array(arguments.length-1),C=0;C<S.length;C++)S[C]=arguments[C+1];var k={callback:w,args:S};return r[n]=k,a(n),n++}function l(w){delete r[w]}function u(w){var S=w.callback,C=w.args;switch(C.length){case 0:S();break;case 1:S(C[0]);break;case 2:S(C[0],C[1]);break;case 3:S(C[0],C[1],C[2]);break;default:S.apply(t,C);break}}function f(w){if(i)setTimeout(f,0,w);else{var S=r[w];if(S){i=!0;try{u(S)}finally{l(w),i=!1}}}}function p(){a=function(w){process.nextTick(function(){f(w)})}}function d(){if(e.postMessage&&!e.importScripts){var w=!0,S=e.onmessage;return e.onmessage=function(){w=!1},e.postMessage("","*"),e.onmessage=S,w}}function v(){var w="setImmediate$"+Math.random()+"$",S=function(C){C.source===e&&typeof C.data=="string"&&C.data.indexOf(w)===0&&f(+C.data.slice(w.length))};e.addEventListener?e.addEventListener("message",S,!1):e.attachEvent("onmessage",S),a=function(C){e.postMessage(w+C,"*")}}function g(){var w=new MessageChannel;w.port1.onmessage=function(S){var C=S.data;f(C)},a=function(S){w.port2.postMessage(S)}}function y(){var w=o.documentElement;a=function(S){var C=o.createElement("script");C.onreadystatechange=function(){f(S),C.onreadystatechange=null,w.removeChild(C),C=null},w.appendChild(C)}}function x(){a=function(w){setTimeout(f,0,w)}}var b=Object.getPrototypeOf&&Object.getPrototypeOf(e);b=b&&b.setTimeout?b:e,{}.toString.call(e.process)==="[object process]"?p():d()?v():e.MessageChannel?g():o&&"onreadystatechange"in o.createElement("script")?y():x(),b.setImmediate=s,b.clearImmediate=l})(typeof self>"u"?ao:self);var p4e=ao.setImmediate,h4e=Hi,FR=Ln,m4e=Gi,hj=TI,g4e=Sx,v4e=d4e,mj=qi,y4e=p4e,b4e="'",w4e="/",_4e=m4e.isBrowser("Firefox");function x4e(e){return _4e&&(e==b4e||e==w4e)}function gj(e,t,n,r,i){var o=h4e.replaceText(e.getCurrentContent(),e.getSelection(),t,n,r);return FR.push(e,o,"insert-characters",i)}function S4e(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&&g4e(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(gj(n,r,n.getCurrentInlineStyle(),hj(n.getCurrentContent(),n.getSelection()),!0));return}var s=gj(n,r,n.getCurrentInlineStyle(),hj(n.getCurrentContent(),n.getSelection()),!1),l=!1;if(l||(l=v4e(e._latestCommittedEditorState)),!l){var u=n.getBlockTree(a),f=s.getBlockTree(a);l=u.size!==f.size||u.zip(f).some(function(p){var d=p[0],v=p[1],g=d.get("start"),y=g+(g>=o?r.length:0),x=d.get("end"),b=x+(x>=o?r.length:0),w=v.get("start"),S=v.get("end"),C=v.get("decoratorKey");return d.get("decoratorKey")!==C||d.get("leaves").size!==v.get("leaves").size||y!==w||b!==S||C!=null&&S-w!==x-g})}if(l||(l=x4e(r)),l||(l=mj(s.getDirectionMap()).get(a)!==mj(n.getDirectionMap()).get(a)),l){t.preventDefault(),s=FR.set(s,{forceSelection:!0}),e.update(s);return}s=FR.set(s,{nativelyRenderedContent:s.getCurrentContent()}),e._pendingStateFromBeforeInput=s,y4e(function(){e._pendingStateFromBeforeInput!==void 0&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)})}}var E4e=S4e,C4e=Ln,vj=OI,k4e=HK;function T4e(e,t){var n=t.currentTarget.ownerDocument;if(!e.props.preserveSelectionOnBlur&&k4e(n)===n.body){var r=n.defaultView.getSelection(),i=e.editor;r.rangeCount===1&&vj(i,r.anchorNode)&&vj(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(C4e.acceptSelection(o,s))}}var R4e=T4e,O4e=Ln;function A4e(e,t){e.setMode("composite"),e.update(O4e.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)}var D4e=A4e,I4e=fx;function P4e(e){var t=e.getSelection();return t.isCollapsed()?null:I4e(e.getCurrentContent(),t)}var cH=P4e,$4e=cH;function F4e(e,t){var n=e._latestEditorState,r=n.getSelection();if(r.isCollapsed()){t.preventDefault();return}e.setClipboard($4e(e._latestEditorState))}var L4e=F4e;function M4e(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 N4e=M4e,B4e=Hi,j4e=Ln,z4e=wx,U4e=cH,V4e=_x,W4e=N4e;function K4e(e,t){var n=e._latestEditorState,r=n.getSelection(),i=t.target,o;if(r.isCollapsed()){t.preventDefault();return}if(W4e(i)){var a=i;o=V4e(z4e.getScrollParent(a))}var s=U4e(n);e.setClipboard(s),e.setMode("cut"),setTimeout(function(){e.restoreEditorDOM(o),e.exitCurrentMode(),e.update(H4e(n))},0)}function H4e(e){var t=B4e.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return j4e.push(e,t,"remove-range")}var q4e=K4e;function G4e(e,t){e.setMode("drag"),t.preventDefault()}var Q4e=G4e;function Y4e(e){e._internalDrag=!0,e.setMode("drag")}var X4e=Y4e,yj=Ln,J4e=Gi;function Z4e(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),J4e.isBrowser("Chrome < 60.0.3081.0")?e.update(yj.forceSelection(n,i)):e.update(yj.acceptSelection(n,i))}}var e5e=Z4e,t5e=gn,fH=55296,n5e=56319,r5e=56320,dH=57343,i5e=/[\uD800-\uDFFF]/;function pH(e){return fH<=e&&e<=dH}function o5e(e,t){if(0<=t&&t<e.length||t5e(!1),t+1===e.length)return!1;var n=e.charCodeAt(t),r=e.charCodeAt(t+1);return fH<=n&&n<=n5e&&r5e<=r&&r<=dH}function II(e){return i5e.test(e)}function Gd(e,t){return 1+pH(e.charCodeAt(t))}function a5e(e){if(!II(e))return e.length;for(var t=0,n=0;n<e.length;n+=Gd(e,n))t++;return t}function hH(e,t,n){if(t=t||0,n=n===void 0?1/0:n||0,!II(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+=Gd(e,i);if(i>=r)return""}else if(t<0){for(i=r;t<0&&0<i;t++)i-=Gd(e,i-1);i<0&&(i=0)}var o=r;if(n<r)for(o=i;n>0&&o<r;n--)o+=Gd(e,o);return e.substring(i,o)}function s5e(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,hH(e,t,r)}function l5e(e){for(var t=[],n=0;n<e.length;n+=Gd(e,n))t.push(e.codePointAt(n));return t}var u5e={getCodePoints:l5e,getUTF16Length:Gd,hasSurrogateUnit:II,isCodeUnitInSurrogateRange:pH,isSurrogatePair:o5e,strlen:a5e,substring:s5e,substr:hH},uf=u5e;function c5e(e,t){var n=e.getSelection(),r=e.getCurrentContent(),i=n.getStartKey(),o=n.getStartOffset(),a=i,s=0;if(t>o){var l=r.getKeyBefore(i);if(l==null)a=i;else{a=l;var u=r.getBlockForKey(l);s=u.getText().length}}else s=o-t;return n.merge({focusKey:a,focusOffset:s,isBackward:!0})}var PI=c5e,f5e=Hi,d5e=Mu,bj=d5e("draft_tree_data_support");function p5e(e,t,n){var r=e.getSelection(),i=e.getCurrentContent(),o=r,a=r.getAnchorKey(),s=r.getFocusKey(),l=i.getBlockForKey(a);if(bj&&n==="forward"&&a!==s)return i;if(r.isCollapsed()){if(n==="forward"){if(e.isSelectionAtEndOfContent())return i;if(bj){var u=r.getAnchorOffset()===i.getBlockForKey(a).getLength();if(u){var f=i.getBlockForKey(l.nextSibling);if(!f||f.getLength()===0)return i}}}else if(e.isSelectionAtStartOfContent())return i;if(o=t(e),o===r)return i}return f5e.removeRange(i,o,n)}var jv=p5e,h5e=Ln,m5e=uf,g5e=PI,v5e=jv;function y5e(e){var t=v5e(e,function(r){var i=r.getSelection(),o=r.getCurrentContent(),a=i.getAnchorKey(),s=i.getAnchorOffset(),l=o.getBlockForKey(a).getText()[s-1];return g5e(r,l?m5e.getUTF16Length(l,0):1)},"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return h5e.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")}var mH=y5e,b5e=Hi,w5e=gl,_5e=Ln,x5e=Gi,S5e=zK,E5e=S5e.notEmptyKey,C5e=yx,k5e=mH,T5e=qi,R5e=x5e.isEngine("Gecko"),O5e=`
|
|
505
|
-
|
|
506
|
-
`;function A5e(e,t){switch(e){case"deleteContentBackward":return k5e(t)}return t}function D5e(e,t){e._pendingStateFromBeforeInput!==void 0&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e.editor,r=n.ownerDocument.defaultView.getSelection(),i=r.anchorNode,o=r.isCollapsed,a=(i==null?void 0:i.nodeType)!==Node.TEXT_NODE&&(i==null?void 0:i.nodeType)!==Node.ELEMENT_NODE;if(!(i==null||a)){if(i.nodeType===Node.TEXT_NODE&&(i.previousSibling!==null||i.nextSibling!==null)){var s=i.parentNode;if(s==null)return;i.nodeValue=s.textContent;for(var l=s.firstChild;l!=null;l=l.nextSibling)l!==i&&s.removeChild(l)}var u=i.textContent,f=e._latestEditorState,p=T5e(C5e(i)),d=w5e.decode(p),v=d.blockKey,g=d.decoratorKey,y=d.leafKey,x=f.getBlockTree(v).getIn([g,"leaves",y]),b=x.start,w=x.end,S=f.getCurrentContent(),C=S.getBlockForKey(v),k=C.getText().slice(b,w);if(u.endsWith(O5e)&&(u=u.slice(0,-1)),u===k){var D=t.nativeEvent.inputType;if(D){var P=A5e(D,f);if(P!==f){e.restoreEditorDOM(),e.update(P);return}}return}var B=f.getSelection(),V=B.merge({anchorOffset:b,focusOffset:w,isBackward:!1}),U=C.getEntityAt(b),W=E5e(U)?S.getEntity(U):null,se=W!=null?W.getMutability():null,ne=se==="MUTABLE",re=ne?"spellcheck-change":"apply-entity",Z=b5e.replaceText(S,V,u,C.getInlineStyleAt(b),ne?C.getEntityAt(b):null),F,te,Y,ee;if(R5e)F=r.anchorOffset,te=r.focusOffset,Y=b+Math.min(F,te),ee=Y+Math.abs(F-te),F=Y,te=ee;else{var G=u.length-k.length;Y=B.getStartOffset(),ee=B.getEndOffset(),F=o?ee+G:Y,te=ee+G}var L=Z.merge({selectionBefore:S.getSelectionAfter(),selectionAfter:B.merge({anchorOffset:F,focusOffset:te})});e.update(_5e.push(f,L,re))}}var I5e=D5e,P5e=bx;function $5e(e){return e.which===P5e.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))}var F5e=$5e,L5e=Gi,M5e=F5e,FC=L5e.isPlatform("Mac OS X"),gH={isCtrlKeyCommand:function(t){return!!t.ctrlKey&&!t.altKey},isOptionKeyCommand:function(t){return FC&&t.altKey},usesMacOSHeuristics:function(){return FC},hasCommandModifier:function(t){return FC?!!t.metaKey&&!t.altKey:gH.isCtrlKeyCommand(t)},isSoftNewlineEvent:M5e},$I=gH,wj=Hi,_j=Ln,N5e=fx,B5e=qi,LC=null,j5e={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=B5e(i),LC=N5e(n,i);var l=wj.removeRange(n,i,"forward");return l===n?t:_j.push(t,l,"remove-range")},paste:function(t){if(!LC)return t;var n=wj.replaceWithFragment(t.getCurrentContent(),t.getSelection(),LC);return _j.push(t,n,"insert-fragment")}},z5e=j5e,U5e=Gi,V5e=gn,W5e=U5e.isBrowser("Chrome");function K5e(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)}V5e(!1)}var H5e=W5e?K5e:function(e){return Array.from(e.getClientRects())},vH=H5e,q5e=uf,G5e=vx,xj=vH,LR=gn;function Q5e(e){var t=getComputedStyle(e),n=G5e(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||LR(!1),i.appendChild(r);var o=r.getBoundingClientRect();return i.removeChild(r),o.height}function Sj(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 Y5e(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 X5e(e){e.collapsed||LR(!1),e=e.cloneRange();var t=e.startContainer;t.nodeType!==1&&(t=t.parentNode);var n=Q5e(t),r=e.endContainer,i=e.endOffset;for(e.setStart(e.startContainer,0);Sj(xj(e),n)&&(r=e.startContainer,i=e.startOffset,r.parentNode||LR(!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&&q5e.isSurrogatePair(s,l-1)))if(e.setStart(o,l),Sj(xj(e),n))r=o,i=l;else break;if(l===-1||o.childNodes.length===0)break;o=o.childNodes[l],a=Y5e(o)}while(!0);return e.setStart(r,i),e}var J5e=X5e,Z5e=Ln,eUe=J5e,tUe=NK,nUe=PI,rUe=jv;function iUe(e,t){var n=rUe(e,function(r){var i=r.getSelection();if(i.isCollapsed()&&i.getAnchorOffset()===0)return nUe(r,1);var o=t.currentTarget.ownerDocument,a=o.defaultView.getSelection(),s=a.getRangeAt(0);return s=eUe(s),tUe(r,null,s.endContainer,s.endOffset,s.startContainer,s.startOffset).selectionState},"backward");return n===e.getCurrentContent()?e:Z5e.push(e,n,"remove-range")}var oUe=iUe,aUe=`[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]`,sUe={getPunctuation:function(){return aUe}},lUe=sUe,uUe=lUe.getPunctuation(),yH="['‘’]",Qd="\\s|(?![_])"+uUe,cUe="^(?:"+Qd+")*(?:"+yH+"|(?!"+Qd+").)*(?:(?!"+Qd+").)",fUe=new RegExp(cUe),dUe="(?:(?!"+Qd+").)(?:"+yH+"|(?!"+Qd+").)*(?:"+Qd+")*$",pUe=new RegExp(dUe);function Ej(e,t){var n=t?pUe.exec(e):fUe.exec(e);return n?n[0]:e}var hUe={getBackward:function(t){return Ej(t,!0)},getForward:function(t){return Ej(t,!1)}},bH=hUe,mUe=bH,gUe=Ln,Cj=PI,vUe=jv;function yUe(e){var t=vUe(e,function(n){var r=n.getSelection(),i=r.getStartOffset();if(i===0)return Cj(n,1);var o=r.getStartKey(),a=n.getCurrentContent(),s=a.getBlockForKey(o).getText().slice(0,i),l=mUe.getBackward(s);return Cj(n,l.length||1)},"backward");return t===e.getCurrentContent()?e:gUe.push(e,t,"remove-range")}var bUe=yUe;function wUe(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 wH=wUe,_Ue=bH,xUe=Ln,SUe=wH,EUe=jv;function CUe(e){var t=EUe(e,function(n){var r=n.getSelection(),i=r.getStartOffset(),o=r.getStartKey(),a=n.getCurrentContent(),s=a.getBlockForKey(o).getText().slice(i),l=_Ue.getForward(s);return SUe(n,l.length||1)},"forward");return t===e.getCurrentContent()?e:xUe.push(e,t,"remove-range")}var kUe=CUe,TUe=Hi,RUe=Ln;function OUe(e){var t=TUe.splitBlock(e.getCurrentContent(),e.getSelection());return RUe.push(e,t,"split-block")}var AUe=OUe,DUe=Ln;function IUe(e){var t=e.getSelection(),n=t.getEndKey(),r=e.getCurrentContent(),i=r.getBlockForKey(n).getLength();return DUe.set(e,{selection:t.merge({anchorKey:n,anchorOffset:i,focusKey:n,focusOffset:i,isBackward:!1}),forceSelection:!0})}var PUe=IUe,$Ue=Ln;function FUe(e){var t=e.getSelection(),n=t.getStartKey();return $Ue.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})}var LUe=FUe,MUe=Ln,NUe=uf,BUe=wH,jUe=jv;function zUe(e){var t=jUe(e,function(r){var i=r.getSelection(),o=r.getCurrentContent(),a=i.getAnchorKey(),s=i.getAnchorOffset(),l=o.getBlockForKey(a).getText()[s];return BUe(r,l?NUe.getUTF16Length(l,0):1)},"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return MUe.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")}var UUe=zUe,kj=Hi,Tj=Ln,VUe=fx;function WUe(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(n===0)return e;var r=t.getAnchorKey(),i=e.getCurrentContent(),o=i.getBlockForKey(r),a=o.getLength();if(a<=1)return e;var s,l;n===a?(s=t.set("anchorOffset",n-1),l=t):(s=t.set("focusOffset",n+1),l=s.set("anchorOffset",n+1));var u=VUe(i,s),f=kj.removeRange(i,s,"backward"),p=f.getSelectionAfter(),d=p.getAnchorOffset()-1,v=p.merge({anchorOffset:d,focusOffset:d}),g=kj.replaceWithFragment(f,v,u),y=Tj.push(e,g,"insert-fragment");return Tj.acceptSelection(y,l)}var KUe=WUe,MC=Ln;function HUe(e,t,n){var r=MC.undo(t);if(t.getLastChangeType()==="spellcheck-change"){var i=r.getCurrentContent();n(MC.set(r,{nativelyRenderedContent:i}));return}if(e.preventDefault(),!t.getNativelyRenderedContent()){n(r);return}n(MC.set(t,{nativelyRenderedContent:null})),setTimeout(function(){n(r)},0)}var qUe=HUe,GUe=Hi,_H=Ln,QUe=$I,zs=bx,Rj=z5e,YUe=Gi,Oj=Sx,XUe=oUe,JUe=bUe,ZUe=kUe,e6e=AUe,t6e=PUe,n6e=LUe,r6e=mH,i6e=UUe,o6e=KUe,a6e=qUe,Aj=QUe.isOptionKeyCommand,Dj=YUe.isBrowser("Chrome");function s6e(e,t,n){switch(e){case"redo":return _H.redo(t);case"delete":return i6e(t);case"delete-word":return ZUe(t);case"backspace":return r6e(t);case"backspace-word":return JUe(t);case"backspace-to-start-of-line":return XUe(t,n);case"split-block":return e6e(t);case"transpose-characters":return o6e(t);case"move-selection-to-start-of-block":return n6e(t);case"move-selection-to-end-of-block":return t6e(t);case"secondary-cut":return Rj.cut(t);case"secondary-paste":return Rj.paste(t);default:return t}}function l6e(e,t){var n=t.which,r=e._latestEditorState;function i(l){var u=e.props[l];return u?(u(t),!0):!1}switch(n){case zs.RETURN:if(t.preventDefault(),e.props.handleReturn&&Oj(e.props.handleReturn(t,r)))return;break;case zs.ESC:if(t.preventDefault(),i("onEscape"))return;break;case zs.TAB:if(i("onTab"))return;break;case zs.UP:if(i("onUpArrow"))return;break;case zs.RIGHT:if(i("onRightArrow"))return;break;case zs.DOWN:if(i("onDownArrow"))return;break;case zs.LEFT:if(i("onLeftArrow"))return;break;case zs.SPACE:Dj&&Aj(t)&&t.preventDefault()}var o=e.props.keyBindingFn(t);if(o==null||o===""){if(n===zs.SPACE&&Dj&&Aj(t)){var a=GUe.replaceText(r.getCurrentContent(),r.getSelection()," ");e.update(_H.push(r,a,"insert-characters"))}return}if(o==="undo"){a6e(t,r,e.update);return}if(t.preventDefault(),!(e.props.handleKeyCommand&&Oj(e.props.handleKeyCommand(o,r,t.timeStamp)))){var s=s6e(o,r,t);s!==r&&e.update(s)}}var u6e=l6e;function c6e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f6e=function(){function e(n){c6e(this,"_uri",void 0),this._uri=n}var t=e.prototype;return t.toString=function(){return this._uri},e}(),d6e=f6e,p6e=Gi,h6e=gn,m6e=p6e.isBrowser("IE <= 9");function g6e(e){var t,n=null;return!m6e&&document.implementation&&document.implementation.createHTMLDocument&&(t=document.implementation.createHTMLDocument("foo"),t.documentElement||h6e(!1),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}var xH=g6e,v6e=sf;function y6e(e){return!e||!e.ownerDocument?!1:v6e(e)&&e.nodeName==="A"}var b6e=y6e,w6e=sf;function _6e(e){return!e||!e.ownerDocument?!1:w6e(e)&&e.nodeName==="IMG"}var x6e=_6e,ic;function NC(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){Yr(e,i,n[i])})}return e}function Yr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S6e=na,E6e=rf,C6e=ra,k6e=CI,Ij=dx,SH=d6e,vm=of,Pj=bs,T6e=xH,EH=Mu,FI=ln,Ml=FI.List,CH=FI.Map,R6e=FI.OrderedSet,kH=b6e,O6e=VK,LI=Bv,TH=x6e,$j=EH("draft_tree_data_support"),A6e=" ",RH=" ",D6e=new RegExp("\r","g"),I6e=new RegExp(`
|
|
507
|
-
`,"g"),P6e=new RegExp(`^
|
|
508
|
-
`,"g"),$6e=new RegExp(A6e,"g"),F6e=new RegExp(" ?","g"),L6e=new RegExp("​?","g"),M6e=["bold","bolder","500","600","700","800","900"],N6e=["light","lighter","normal","100","200","300","400"],B6e=["className","href","rel","target","title"],j6e=["alt","className","height","src","width"],Fj=(ic={},Yr(ic,vm("public/DraftStyleDefault/depth0"),0),Yr(ic,vm("public/DraftStyleDefault/depth1"),1),Yr(ic,vm("public/DraftStyleDefault/depth2"),2),Yr(ic,vm("public/DraftStyleDefault/depth3"),3),Yr(ic,vm("public/DraftStyleDefault/depth4"),4),ic),Lj=CH({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),z6e=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)})}),CH(n)},U6e=function(t){if(LI(t)){var n=t;if(n.style.fontFamily.includes("monospace"))return"CODE"}return null},V6e=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Object.keys(Fj).some(function(r){t.classList.contains(r)&&(n=Fj[r])}),n},W6e=function(t){if(!kH(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 SH(n.href);return!0}catch{return!1}},K6e=function(t){if(!TH(t))return!1;var n=t;return!!(n.attributes.getNamedItem("src")&&n.attributes.getNamedItem("src").value)},H6e=function(t,n){if(!LI(t))return n;var r=t,i=r.style.fontWeight,o=r.style.fontStyle,a=r.style.textDecoration;return n.withMutations(function(s){M6e.indexOf(i)>=0?s.add("BOLD"):N6e.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"))})},BC=function(t){return t==="ul"||t==="ol"},q6e=function(){function e(n,r){Yr(this,"characterList",Ml()),Yr(this,"currentBlockType","unstyled"),Yr(this,"currentDepth",0),Yr(this,"currentEntity",null),Yr(this,"currentText",""),Yr(this,"wrapper",null),Yr(this,"blockConfigs",[]),Yr(this,"contentBlocks",[]),Yr(this,"entityMap",Ij),Yr(this,"blockTypeMap",void 0),Yr(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=n,this.disambiguate=r}var t=e.prototype;return t.clear=function(){this.characterList=Ml(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=Ij,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],R6e())),this._trimCurrentText(),this.currentText!==""&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return this.contentBlocks.length===0&&($j?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||Pj(),o=NC({key:i,type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:Ml(),prevSibling:null,nextSibling:null,childConfigs:[]},r);return this.characterList=Ml(),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"||BC(l)){this._trimCurrentText(),this.currentText!==""&&o.push(this._makeBlockConfig());var u=this.currentDepth,f=this.wrapper;BC(l)&&(this.wrapper=l,BC(f)&&this.currentDepth++),o.push.apply(o,this._toBlockConfigs(Array.from(s.childNodes),i)),this.currentDepth=u,this.wrapper=f;continue}var p=this.blockTypeMap.get(l);if(p!==void 0){this._trimCurrentText(),this.currentText!==""&&o.push(this._makeBlockConfig());var d=this.currentDepth,v=this.wrapper;if(this.wrapper=l==="pre"?"pre":this.wrapper,typeof p!="string"&&(p=this.disambiguate(l,this.wrapper)||p[0]||"unstyled"),!$j&&LI(s)&&(p==="unordered-list-item"||p==="ordered-list-item")){var g=s;this.currentDepth=V6e(g,this.currentDepth)}var y=Pj(),x=this._toBlockConfigs(Array.from(s.childNodes),i);this._trimCurrentText(),o.push(this._makeBlockConfig({key:y,childConfigs:x,type:p})),this.currentDepth=d,this.wrapper=v;continue}if(l==="#text"){this._addTextNode(s,i);continue}if(l==="br"){this._addBreakNode(s,i);continue}if(K6e(s)){this._addImgNode(s,i);continue}if(W6e(s)){this._addAnchorNode(s,o,i);continue}var b=i;Lj.has(l)&&(b=b.add(Lj.get(l))),b=H6e(s,b);var w=U6e(s);w!=null&&(b=b.add(w)),o.push.apply(o,this._toBlockConfigs(Array.from(s.childNodes),b))}return o},t._appendText=function(r,i){var o;this.currentText+=r;var a=S6e.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=Ml()):(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(P6e,""),o=o.replace(I6e,RH)),this._appendText(o,i)},t._addBreakNode=function(r,i){O6e(r)&&this._appendText(`
|
|
509
|
-
`,i)},t._addImgNode=function(r,i){if(TH(r)){var o=r,a={};j6e.forEach(function(s){var l=o.getAttribute(s);l&&(a[s]=l)}),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",a),EH("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(kH(r)){var a=r,s={};B6e.forEach(function(l){var u=a.getAttribute(l);u&&(s[l]=u)}),s.url=new SH(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=Ml(s.childConfigs.map(function(l){return l.key})),this.contentBlocks.push(new C6e(NC({},s))),this._toContentBlocks(s.childConfigs,s.key)}},t._hoistContainersInBlockConfigs=function(r){var i=this,o=Ml(r).flatMap(function(a){return a.type!=="unstyled"||a.text!==""?[a]:i._hoistContainersInBlockConfigs(a.childConfigs)});return o},t._toFlatContentBlocks=function(r){var i=this,o=this._hoistContainersInBlockConfigs(r);o.forEach(function(a){var s=i._extractTextFromBlockConfigs(a.childConfigs),l=s.text,u=s.characterList;i.contentBlocks.push(new E6e(NC({},a,{text:a.text+l,characterList:a.characterList.concat(u)})))})},t._extractTextFromBlockConfigs=function(r){for(var i=r.length-1,o="",a=Ml(),s=0;s<=i;s++){var l=r[s];o+=l.text,a=a.concat(l.characterList),o!==""&&l.type!=="unstyled"&&(o+=`
|
|
510
|
-
`,a=a.push(a.last()));var u=this._extractTextFromBlockConfigs(l.childConfigs);o+=u.text,a=a.concat(u.characterList)}return{text:o,characterList:a}},e}(),G6e=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:T6e,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:k6e;t=t.trim().replace(D6e,"").replace($6e,RH).replace(F6e,"").replace(L6e,"");var i=n(t);if(!i)return null;var o=z6e(r),a=function(l,u){return l==="li"?u==="ol"?"ordered-list-item":"unordered-list-item":null};return new q6e(o,a).addDOMNode(i).getContentBlocks()},OH=G6e;function Q6e(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){Y6e(e,i,n[i])})}return e}function Y6e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var X6e=rf,J6e=ra,Z6e=OH,e9e=bs,t9e=xH,n9e=Mu,AH=ln,r9e=fK,i9e=AH.List,o9e=AH.Repeat,DH=n9e("draft_tree_data_support"),a9e=DH?J6e:X6e,s9e={processHTML:function(t,n){return Z6e(t,t9e,n)},processText:function(t,n,r){return t.reduce(function(i,o,a){o=r9e(o);var s=e9e(),l={key:s,type:r,text:o,characterList:i9e(o9e(n,o.length))};if(DH&&a!==0){var u=a-1,f=i[u]=i[u].merge({nextSibling:s});l=Q6e({},l,{prevSibling:f.getKey()})}return i.push(new a9e(l)),i},[])}},l9e=s9e;function u9e(e,t,n,r){var i=t.getStartKey(),o=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil(function(l,u){return u===i}).takeUntil(function(l,u){return u===o}).concat([[o,a.get(o)]]).map(function(l){var u=l.getDepth()+n;return u=Math.max(0,Math.min(u,r)),l.set("depth",u)});return a=a.merge(s),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})}var c9e=u9e,oc=Hi,Va=Ln,f9e=c9e,d9e=qi,Ha={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 Ha.toggleInlineStyle(t,"BOLD");case"italic":return Ha.toggleInlineStyle(t,"ITALIC");case"underline":return Ha.toggleInlineStyle(t,"UNDERLINE");case"code":return Ha.toggleCode(t);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return Ha.onBackspace(t);case"delete":case"delete-word":case"delete-to-end-of-block":return Ha.onDelete(t);default:return null}},insertSoftNewline:function(t){var n=oc.insertText(t.getCurrentContent(),t.getSelection(),`
|
|
511
|
-
`,t.getCurrentInlineStyle(),null),r=Va.push(t,n,"insert-characters");return Va.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 Va.push(t,s,"remove-range")}var l=Ha.tryToRemoveBlockStyle(t);return l?Va.push(t,l,"change-block-type"):null},onDelete:function(t){var n=t.getSelection();if(!n.isCollapsed())return null;var r=t.getCurrentContent(),i=n.getStartKey(),o=r.getBlockForKey(i),a=o.getLength();if(n.getStartOffset()<a)return null;var s=r.getBlockAfter(i);if(!s||s.getType()!=="atomic")return null;var l=n.merge({focusKey:s.getKey(),focusOffset:s.getLength()}),u=oc.removeRange(r,l,"forward");return u!==r?Va.push(t,u,"remove-range"):null},onTab:function(t,n,r){var i=n.getSelection(),o=i.getAnchorKey();if(o!==i.getFocusKey())return n;var a=n.getCurrentContent(),s=a.getBlockForKey(o),l=s.getType();if(l!=="unordered-list-item"&&l!=="ordered-list-item")return n;t.preventDefault();var u=s.getDepth();if(!t.shiftKey&&u===r)return n;var f=f9e(a,i,t.shiftKey?-1:1,r);return Va.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=d9e(a.getBlockBefore(o));o=l.getKey(),s=s.merge({anchorKey:i,anchorOffset:r.getStartOffset(),focusKey:o,focusOffset:l.getLength(),isBackward:!1})}var u=a.getBlockMap().skipWhile(function(p,d){return d!==i}).reverse().skipWhile(function(p,d){return d!==o}).some(function(p){return p.getType()==="atomic"});if(u)return t;var f=a.getBlockForKey(i).getType()===n?"unstyled":n;return Va.push(t,oc.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?Ha.toggleBlockType(t,"code-block"):Ha.toggleInlineStyle(t,"CODE")},toggleInlineStyle:function(t,n){var r=t.getSelection(),i=t.getCurrentInlineStyle();if(r.isCollapsed())return Va.setInlineStyleOverride(t,i.has(n)?i.remove(n):i.add(n));var o=t.getCurrentContent(),a;return i.has(n)?a=oc.removeInlineStyle(o,r,n):a=oc.applyInlineStyle(o,r,n),Va.push(t,a,"change-inline-style")},toggleLink:function(t,n,r){var i=oc.applyEntity(t.getCurrentContent(),n,r);return Va.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 oc.setBlockType(o,n,"unstyled")}return null}},IH=Ha,p9e=/\r\n?|\n/g;function h9e(e){return e.split(p9e)}var m9e=h9e,jC=Iv,Mj=na,g9e=aH,PH=Hi,zC=l9e,$H=Ln,Nj=IH,Bj=TI,v9e=sH,jj=Sx,zj=m9e;function y9e(e,t){t.preventDefault();var n=new g9e(t.clipboardData);if(!n.isRichText()){var r=n.getFiles(),i=n.getText();if(r.length>0){if(e.props.handlePastedFiles&&jj(e.props.handlePastedFiles(r)))return;v9e(r,function(D){if(D=D||i,!!D){var P=e._latestEditorState,B=zj(D),V=Mj.create({style:P.getCurrentInlineStyle(),entity:Bj(P.getCurrentContent(),P.getSelection())}),U=Nj.getCurrentBlockType(P),W=zC.processText(B,V,U),se=jC.createFromArray(W),ne=PH.replaceWithFragment(P.getCurrentContent(),P.getSelection(),se);e.update($H.push(P,ne,"insert-fragment"))}});return}}var o=[],a=n.getText(),s=n.getHTML(),l=e._latestEditorState;if(e.props.formatPastedText){var u=e.props.formatPastedText(a,s),f=u.text,p=u.html;a=f,s=p}if(!(e.props.handlePastedText&&jj(e.props.handlePastedText(a,s,l)))){if(a&&(o=zj(a)),!e.props.stripPastedStyles){var d=e.getClipboard();if(!e.props.formatPastedText&&n.isRichText()&&d){var v;if(((v=s)===null||v===void 0?void 0:v.indexOf(e.getEditorKey()))!==-1||o.length===1&&d.size===1&&d.first().getText()===a){e.update(Z0(e._latestEditorState,d));return}}else if(d&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&b9e(o,d)){e.update(Z0(e._latestEditorState,d));return}if(s){var g=zC.processHTML(s,e.props.blockRenderMap);if(g){var y=g.contentBlocks,x=g.entityMap;if(y){var b=jC.createFromArray(y);e.update(Z0(e._latestEditorState,b,x));return}}}e.setClipboard(null)}if(o.length){var w=Mj.create({style:l.getCurrentInlineStyle(),entity:Bj(l.getCurrentContent(),l.getSelection())}),S=Nj.getCurrentBlockType(l),C=zC.processText(o,w,S),k=jC.createFromArray(C);e.update(Z0(e._latestEditorState,k))}}}function Z0(e,t,n){var r=PH.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return $H.push(e,r.set("entityMap",n),"insert-fragment")}function b9e(e,t){return e.length===t.size&&t.valueSeq().every(function(n,r){return n.getText()===e[r]})}var w9e=y9e,FH=Gi,_9e=E4e,x9e=R4e,S9e=D4e,E9e=L4e,C9e=q4e,k9e=Q4e,T9e=X4e,R9e=e5e,O9e=I5e,A9e=u6e,D9e=w9e,LH=jK,I9e=FH.isBrowser("Chrome"),P9e=FH.isBrowser("Firefox"),Uj=I9e||P9e?LH:function(e){},$9e={onBeforeInput:_9e,onBlur:x9e,onCompositionStart:S9e,onCopy:E9e,onCut:C9e,onDragOver:k9e,onDragStart:T9e,onFocus:R9e,onInput:O9e,onKeyDown:A9e,onPaste:D9e,onSelect:LH,onMouseUp:Uj,onKeyUp:Uj},F9e=$9e,L9e=Qc,M9e=L9e.unstable_flushControlled,N9e=M9e;function B9e(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var UC=R,Vj=of,j9e=function(e){B9e(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=Vj({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":i}),a={whiteSpace:"pre-wrap"};return UC.createElement("div",{className:o},UC.createElement("div",{className:Vj("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:a},this.props.text))},t}(UC.Component),z9e=j9e,MH=$I,ym=bx,NH=Gi,iu=NH.isPlatform("Mac OS X"),Wj=iu&&NH.isBrowser("Firefox < 29"),Xl=MH.hasCommandModifier,Us=MH.isCtrlKeyCommand;function BH(e){return iu&&e.altKey||Us(e)}function U9e(e){return Xl(e)?e.shiftKey?"redo":"undo":null}function V9e(e){return!iu&&e.shiftKey?null:BH(e)?"delete-word":"delete"}function W9e(e){return Xl(e)&&iu?"backspace-to-start-of-line":BH(e)?"backspace-word":"backspace"}function K9e(e){switch(e.keyCode){case 66:return Xl(e)?"bold":null;case 68:return Us(e)?"delete":null;case 72:return Us(e)?"backspace":null;case 73:return Xl(e)?"italic":null;case 74:return Xl(e)?"code":null;case 75:return iu&&Us(e)?"secondary-cut":null;case 77:return Us(e)?"split-block":null;case 79:return Us(e)?"split-block":null;case 84:return iu&&Us(e)?"transpose-characters":null;case 85:return Xl(e)?"underline":null;case 87:return iu&&Us(e)?"backspace-word":null;case 89:return Us(e)?iu?"secondary-paste":"redo":null;case 90:return U9e(e)||null;case ym.RETURN:return"split-block";case ym.DELETE:return V9e(e);case ym.BACKSPACE:return W9e(e);case ym.LEFT:return Wj&&Xl(e)?"move-selection-to-start-of-block":null;case ym.RIGHT:return Wj&&Xl(e)?"move-selection-to-end-of-block":null;default:return null}}var jH=K9e,H9e=af;function MR(){return MR=H9e||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},MR.apply(this,arguments)}function VC(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){xt(e,i,n[i])})}return e}function St(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zH(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var q9e=CI,G9e=kK,Q9e=lje,Y9e=$ze,X9e=c4e,J9e=F9e,Kj=N9e,Z9e=z9e,eVe=WK,tVe=Ln,Vl=R,nVe=DI,rVe=wx,iVe=Gi,WC=of,oVe=bs,aVe=jH,sVe=_x,lVe=Mu,Hj=gn,qj=Bv,uVe=qi,UH=iVe.isBrowser("IE"),cVe=!UH,Gj={edit:J9e,composite:Q9e,drag:X9e,cut:null,render:null},Qj=!1,fVe=function(e){zH(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),VH=function(e){zH(t,e);function t(r){var i;return i=e.call(this,r)||this,xt(St(i),"_blockSelectEvents",void 0),xt(St(i),"_clipboard",void 0),xt(St(i),"_handler",void 0),xt(St(i),"_dragCount",void 0),xt(St(i),"_internalDrag",void 0),xt(St(i),"_editorKey",void 0),xt(St(i),"_placeholderAccessibilityID",void 0),xt(St(i),"_latestEditorState",void 0),xt(St(i),"_latestCommittedEditorState",void 0),xt(St(i),"_pendingStateFromBeforeInput",void 0),xt(St(i),"_onBeforeInput",void 0),xt(St(i),"_onBlur",void 0),xt(St(i),"_onCharacterData",void 0),xt(St(i),"_onCompositionEnd",void 0),xt(St(i),"_onCompositionStart",void 0),xt(St(i),"_onCopy",void 0),xt(St(i),"_onCut",void 0),xt(St(i),"_onDragEnd",void 0),xt(St(i),"_onDragOver",void 0),xt(St(i),"_onDragStart",void 0),xt(St(i),"_onDrop",void 0),xt(St(i),"_onInput",void 0),xt(St(i),"_onFocus",void 0),xt(St(i),"_onKeyDown",void 0),xt(St(i),"_onKeyPress",void 0),xt(St(i),"_onKeyUp",void 0),xt(St(i),"_onMouseDown",void 0),xt(St(i),"_onMouseUp",void 0),xt(St(i),"_onPaste",void 0),xt(St(i),"_onSelect",void 0),xt(St(i),"editor",void 0),xt(St(i),"editorContainer",void 0),xt(St(i),"focus",void 0),xt(St(i),"blur",void 0),xt(St(i),"setMode",void 0),xt(St(i),"exitCurrentMode",void 0),xt(St(i),"restoreEditorDOM",void 0),xt(St(i),"setClipboard",void 0),xt(St(i),"getClipboard",void 0),xt(St(i),"getEditorKey",void 0),xt(St(i),"update",void 0),xt(St(i),"onDragEnter",void 0),xt(St(i),"onDragLeave",void 0),xt(St(i),"_handleEditorContainerRef",function(o){i.editorContainer=o,i.editor=o!==null?o.firstChild:null}),xt(St(i),"focus",function(o){var a=i.props.editorState,s=a.getSelection().getHasFocus(),l=i.editor;if(l){var u=rVe.getScrollParent(l),f=o||sVe(u),p=f.x,d=f.y;qj(l)||Hj(!1),l.focus(),u===window?window.scrollTo(p,d):nVe.setTop(u,d),s||i.update(tVe.forceSelection(a,a.getSelection()))}}),xt(St(i),"blur",function(){var o=i.editor;o&&(qj(o)||Hj(!1),o.blur())}),xt(St(i),"setMode",function(o){var a=i.props,s=a.onPaste,l=a.onCut,u=a.onCopy,f=VC({},Gj.edit);s&&(f.onPaste=s),l&&(f.onCut=l),u&&(f.onCopy=u);var p=VC({},Gj,{edit:f});i._handler=p[o]}),xt(St(i),"exitCurrentMode",function(){i.setMode("edit")}),xt(St(i),"restoreEditorDOM",function(o){i.setState({contentsKey:i.state.contentsKey+1},function(){i.focus(o)})}),xt(St(i),"setClipboard",function(o){i._clipboard=o}),xt(St(i),"getClipboard",function(){return i._clipboard}),xt(St(i),"update",function(o){i._latestEditorState=o,i.props.onChange(o)}),xt(St(i),"onDragEnter",function(){i._dragCount++}),xt(St(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||oVe(),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&&(Kj?Kj(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:uVe(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return Vl.createElement(Z9e,i)}return null},n._renderARIADescribedBy=function(){var i=this.props.ariaDescribedBy||"",o=this._showPlaceholder()?this._placeholderAccessibilityID:"";return i.replace("{{editor_id_placeholder}}",o)||void 0},n.render=function(){var i=this.props,o=i.blockRenderMap,a=i.blockRendererFn,s=i.blockStyleFn,l=i.customStyleFn,u=i.customStyleMap,f=i.editorState,p=i.preventScroll,d=i.readOnly,v=i.textAlignment,g=i.textDirectionality,y=WC({"DraftEditor/root":!0,"DraftEditor/alignLeft":v==="left","DraftEditor/alignRight":v==="right","DraftEditor/alignCenter":v==="center"}),x={outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},b=this.props.role||"textbox",w=b==="combobox"?!!this.props.ariaExpanded:null,S={blockRenderMap:o,blockRendererFn:a,blockStyleFn:s,customStyleMap:VC({},G9e,u),customStyleFn:l,editorKey:this._editorKey,editorState:f,preventScroll:p,textDirectionality:g};return Vl.createElement("div",{className:y},this._renderPlaceholder(),Vl.createElement("div",{className:WC("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},Vl.createElement("div",{"aria-activedescendant":d?null:this.props.ariaActiveDescendantID,"aria-autocomplete":d?null:this.props.ariaAutoComplete,"aria-controls":d?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":d?null:w,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":d?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:WC({notranslate:!d,"public/DraftEditor/content":!0}),contentEditable:!d,"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:d?null:b,spellCheck:cVe&&this.props.spellCheck,style:x,suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},Vl.createElement(fVe,{editor:this,editorState:f}),Vl.createElement(Y9e,MR({},S,{key:"contents"+this.state.contentsKey})))))},n.componentDidMount=function(){this._blockSelectEvents=!1,!Qj&&lVe("draft_ods_enabled")&&(Qj=!0,eVe.initODS()),this.setMode("edit"),UH&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):ao.execCommand("AutoUrlDetect",!1,!1))},n.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},t}(Vl.Component);xt(VH,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:q9e,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:aVe,readOnly:!1,spellCheck:!1,stripPastedStyles:!1});var dVe=VH,pVe={},hVe={stringify:function(t){return"_"+String(t)},unstringify:function(t){return t.slice(1)}},WH=hVe,mVe=WH,gVe=uf,Yj=gVe.strlen;function vVe(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:Yj(o.slice(0,r)),length:Yj(o.slice(r,i)),key:Number(t[mVe.stringify(a)])})}),n}var yVe=vVe,Xj=uf,bVe=Pv,wVe=function(t,n){return t===n},_Ve=function(t){return!!t},xVe=[];function SVe(e,t,n){var r=[],i=t.map(function(o){return o.has(n)}).toList();return bVe(i,wVe,_Ve,function(o,a){var s=e.getText();r.push({offset:Xj.strlen(s.slice(0,o)),length:Xj.strlen(s.slice(o,a)),style:n})}),r}function EVe(e){var t=e.getCharacterList().map(function(r){return r.getStyle()}).toList(),n=t.flatten().toSet().map(function(r){return SVe(e,t,r)});return Array.prototype.concat.apply(xVe,n.toJS())}var CVe=EVe;function kVe(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){TVe(e,i,n[i])})}return e}function TVe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var RVe=rf,OVe=ra,KH=WH,AVe=yVe,DVe=CVe,IVe=gn,Jj=function(t,n){return{key:t.getKey(),text:t.getText(),type:t.getType(),depth:t.getDepth(),inlineStyleRanges:DVe(t),entityRanges:AVe(t,n),data:t.getData().toObject()}},PVe=function(t,n,r,i){if(t instanceof RVe){r.push(Jj(t,n));return}t instanceof OVe||IVe(!1);var o=t.getParentKey(),a=i[t.getKey()]=kVe({},Jj(t,n),{children:[]});if(o){i[o].children.push(a);return}r.push(a)},$Ve=function(t,n){var r=n.entityMap,i=[],o={},a={},s=0;return t.getBlockMap().forEach(function(l){l.findEntityRanges(function(u){return u.getEntity()!==null},function(u){var f=l.getEntityAt(u),p=KH.stringify(f);a[p]||(a[p]=f,r[p]="".concat(s),s++)}),PVe(l,r,i,o)}),{blocks:i,entityMap:r}},FVe=function(t,n){var r=n.blocks,i=n.entityMap,o={};return Object.keys(i).forEach(function(a,s){var l=t.getEntity(KH.unstringify(a));o[s]={type:l.getType(),mutability:l.getMutability(),data:l.getData()}}),{blocks:r,entityMap:o}},LVe=function(t){var n={entityMap:{},blocks:[]};return n=$Ve(t,n),n=FVe(t,n),n},MVe=LVe;function Fm(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){NVe(e,i,n[i])})}return e}function NVe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var BVe=bs,HH=gn,jVe=function(t,n){for(var r=[].concat(t).reverse();r.length;){var i=r.pop();n(i);var o=i.children;Array.isArray(o)||HH(!1),r=r.concat([].concat(o.reverse()))}},Zj=function(t){if(!(t&&t.type))return!1;var n=t.type;return n==="unordered-list-item"||n==="ordered-list-item"},zVe=function(t){Array.isArray(t.children)&&(t.children=t.children.map(function(n){return n.type===t.type?Fm({},n,{depth:(t.depth||0)+1}):n}))},UVe={fromRawTreeStateToRawState:function(t){var n=t.blocks,r=[];return Array.isArray(n)||HH(!1),!Array.isArray(n)||!n.length?t:(jVe(n,function(i){var o=Fm({},i);Zj(i)&&(o.depth=o.depth||0,zVe(i),i.children!=null&&i.children.length>0)||(delete o.children,r.push(o))}),t.blocks=r,Fm({},t,{blocks:r}))},fromRawStateToRawTreeState:function(t){var n=[],r=[];return t.blocks.forEach(function(i){var o=Zj(i),a=i.depth||0,s=Fm({},i,{children:[]});if(!o){n.push(s);return}var l=r[0];if(l==null&&a===0)n.push(s);else if(l==null||l.depth<a-1){var u={key:BVe(),text:"",depth:a-1,type:i.type,children:[],entityRanges:[],inlineStyleRanges:[]};r.unshift(u),a===1?n.push(u):l!=null&&l.children.push(u),u.children.push(s)}else if(l.depth===a-1)l.children.push(s);else{for(;l!=null&&l.depth>=a;)r.shift(),l=r[0];a>0?l.children.push(s):n.push(s)}}),Fm({},t,{blocks:n})}},VVe=UVe,WVe=na,KVe=ln,HVe=KVe.List;function qVe(e,t){var n=e.map(function(r,i){var o=t[i];return WVe.create({style:r,entity:o})});return HVe(n)}var GVe=qVe,QVe=uf,ez=QVe.substr;function YVe(e,t){var n=Array(e.length).fill(null);return t&&t.forEach(function(r){for(var i=ez(e,0,r.offset).length,o=i+ez(e,r.offset,r.length).length,a=i;a<o;a++)n[a]=r.key}),n}var XVe=YVe,JVe=uf,ZVe=ln,e8e=ZVe.OrderedSet,tz=JVe.substr,t8e=e8e();function n8e(e,t){var n=Array(e.length).fill(t8e);return t&&t.forEach(function(r){for(var i=tz(e,0,r.offset).length,o=i+tz(e,r.offset,r.length).length;i<o;)n[i]=n[i].add(r.style),i++}),n}var r8e=n8e;function qg(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){i8e(e,i,n[i])})}return e}function i8e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o8e=rf,nz=ra,a8e=wI,s8e=dx,rz=VVe,iz=px,l8e=GVe,u8e=XVe,c8e=r8e,qH=bs,f8e=Mu,MI=ln,NR=gn,oz=f8e("draft_tree_data_support"),az=MI.List,d8e=MI.Map,GH=MI.OrderedMap,BR=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||qH(),data:d8e(o),characterList:p8e(t,n)};return l},p8e=function(t,n){var r=t.text,i=t.entityRanges,o=t.inlineStyleRanges,a=i||[],s=o||[];return l8e(c8e(r,s),u8e(r,a.filter(function(l){return n.hasOwnProperty(l.key)}).map(function(l){return qg({},l,{key:n[l.key]})})))},KC=function(t){return qg({},t,{key:t.key||qH()})},sz=function(t,n,r){var i=n.map(function(o){return qg({},o,{parentRef:r})});return t.concat(i.reverse())},h8e=function(t,n){return t.map(KC).reduce(function(r,i,o){Array.isArray(i.children)||NR(!1);var a=i.children.map(KC),s=new nz(qg({},BR(i,n),{prevSibling:o===0?null:t[o-1].key,nextSibling:o===t.length-1?null:t[o+1].key,children:az(a.map(function(x){return x.key}))}));r=r.set(s.getKey(),s);for(var l=sz([],a,s);l.length>0;){var u=l.pop(),f=u.parentRef,p=f.getChildKeys(),d=p.indexOf(u.key),v=Array.isArray(u.children);if(!v){v||NR(!1);break}var g=u.children.map(KC),y=new nz(qg({},BR(u,n),{parent:f.getKey(),children:az(g.map(function(x){return x.key})),prevSibling:d===0?null:p.get(d-1),nextSibling:d===p.size-1?null:p.get(d+1)}));r=r.set(y.getKey(),y),l=sz(l,g,y)}return r},GH())},m8e=function(t,n){return GH(t.map(function(r){var i=new o8e(BR(r,n));return[i.getKey(),i]}))},g8e=function(t,n){var r=t.blocks.find(function(a){return Array.isArray(a.children)&&a.children.length>0}),i=oz&&!r?rz.fromRawStateToRawTreeState(t).blocks:t.blocks;if(!oz)return m8e(r?rz.fromRawTreeStateToRawState(t).blocks:i,n);var o=h8e(i,n);return o},v8e=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]=s8e.__create(a,s,l||{})}),r},y8e=function(t){Array.isArray(t.blocks)||NR(!1);var n=v8e(t),r=g8e(t,n),i=r.isEmpty()?new iz:iz.createEmpty(r.first().getKey());return new a8e({blockMap:r,entityMap:n,selectionBefore:i,selectionAfter:i})},b8e=y8e,w8e=vH;function _8e(e){var t=w8e(e),n=0,r=0,i=0,o=0;if(t.length){if(t.length>1&&t[0].width===0){var a=t[1];n=a.top,r=a.right,i=a.bottom,o=a.left}else{var s=t[0];n=s.top,r=s.right,i=s.bottom,o=s.left}for(var l=1;l<t.length;l++){var u=t[l];u.height!==0&&u.width!==0&&(n=Math.min(n,u.top),r=Math.max(r,u.right),i=Math.max(i,u.bottom),o=Math.min(o,u.left))}}return{top:n,right:r,bottom:i,left:o,width:r-o,height:i-n}}var x8e=_8e,S8e=x8e;function E8e(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),r=S8e(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 C8e=E8e,k8e=wBe,T8e=Iv,R8e=na,O8e=TBe,A8e=rf,D8e=wI,I8e=CI,P8e=kK,$8e=dVe,F8e=iH,L8e=dx,M8e=Hi,N8e=cK,B8e=Ln,j8e=$I,z8e=pVe,U8e=IH,V8e=px,W8e=MVe,K8e=b8e,H8e=bs,q8e=jH,G8e=C8e,Q8e=OH,Y8e={Editor:$8e,EditorBlock:F8e,EditorState:B8e,CompositeDecorator:O8e,Entity:L8e,EntityInstance:N8e,BlockMapBuilder:T8e,CharacterMetadata:R8e,ContentBlock:A8e,ContentState:D8e,RawDraftContentState:z8e,SelectionState:V8e,AtomicBlockUtils:k8e,KeyBindingUtil:j8e,Modifier:M8e,RichUtils:U8e,DefaultDraftBlockRenderMap:I8e,DefaultDraftInlineStyle:P8e,convertFromHTML:Q8e,convertFromRaw:K8e,convertToRaw:W8e,genKey:H8e,getDefaultKeyBinding:q8e,getVisibleSelectionRect:G8e},Nl=Y8e;var NI={},X8e=Wn;Object.defineProperty(NI,"__esModule",{value:!0});var Bp=NI.default=void 0,J8e=X8e(Kn()),Z8e=T,e7e=(0,J8e.default)((0,Z8e.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");Bp=NI.default=e7e;var BI={},t7e=Wn;Object.defineProperty(BI,"__esModule",{value:!0});var QH=BI.default=void 0,n7e=t7e(Kn()),r7e=T,i7e=(0,n7e.default)((0,r7e.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");QH=BI.default=i7e;function cf(e){this._maxSize=e,this.clear()}cf.prototype.clear=function(){this._size=0,this._values=Object.create(null)};cf.prototype.get=function(e){return this._values[e]};cf.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var o7e=/[^.^\]^[]+|(?=\[\]|\.\.)/g,YH=/^\d+$/,a7e=/^\d/,s7e=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,l7e=/^\s*(['"]?)(.*?)(\1)\s*$/,jI=512,lz=new cf(jI),uz=new cf(jI),cz=new cf(jI),Ac={Cache:cf,split:jR,normalizePath:HC,setter:function(e){var t=HC(e);return uz.get(e)||uz.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=HC(e);return cz.get(e)||cz.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+(zI(n)||YH.test(n)?"["+n+"]":(t?".":"")+n)},"")},forEach:function(e,t,n){u7e(Array.isArray(e)?e:jR(e),t,n)}};function HC(e){return lz.get(e)||lz.set(e,jR(e).map(function(t){return t.replace(l7e,"$2")}))}function jR(e){return e.match(o7e)||[""]}function u7e(e,t,n){var r=e.length,i,o,a,s;for(o=0;o<r;o++)i=e[o],i&&(d7e(i)&&(i='"'+i+'"'),s=zI(i),a=!s&&/^\d+$/.test(i),t.call(n,i,s,a,o,e))}function zI(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function c7e(e){return e.match(a7e)&&!e.match(YH)}function f7e(e){return s7e.test(e)}function d7e(e){return!zI(e)&&(c7e(e)||f7e(e))}const p7e=/[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,Ex=e=>e.match(p7e)||[],Cx=e=>e[0].toUpperCase()+e.slice(1),UI=(e,t)=>Ex(e).join(t).toLowerCase(),XH=e=>Ex(e).reduce((t,n)=>`${t}${t?n[0].toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}`,""),h7e=e=>Cx(XH(e)),m7e=e=>UI(e,"_"),g7e=e=>UI(e,"-"),v7e=e=>Cx(UI(e," ")),y7e=e=>Ex(e).map(Cx).join(" ");var qC={words:Ex,upperFirst:Cx,camelCase:XH,pascalCase:h7e,snakeCase:m7e,kebabCase:g7e,sentenceCase:v7e,titleCase:y7e},VI={exports:{}};VI.exports=function(e){return JH(b7e(e),e)};VI.exports.array=JH;function JH(e,t){var n=e.length,r=new Array(n),i={},o=n,a=w7e(t),s=_7e(e);for(t.forEach(function(u){if(!s.has(u[0])||!s.has(u[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});o--;)i[o]||l(e[o],o,new Set);return r;function l(u,f,p){if(p.has(u)){var d;try{d=", node was:"+JSON.stringify(u)}catch{d=""}throw new Error("Cyclic dependency"+d)}if(!s.has(u))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(u));if(!i[f]){i[f]=!0;var v=a.get(u)||new Set;if(v=Array.from(v),f=v.length){p.add(u);do{var g=v[--f];l(g,s.get(g),p)}while(f);p.delete(u)}r[--n]=u}}}function b7e(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 w7e(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 _7e(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}var x7e=VI.exports;const S7e=ps(x7e),E7e=Object.prototype.toString,C7e=Error.prototype.toString,k7e=RegExp.prototype.toString,T7e=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",R7e=/^Symbol\((.*)\)(.*)$/;function O7e(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function fz(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return O7e(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return T7e.call(e).replace(R7e,"Symbol($1)");const r=E7e.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+C7e.call(e)+"]":r==="RegExp"?k7e.call(e):null}function Dc(e,t){let n=fz(e,t);return n!==null?n:JSON.stringify(e,function(r,i){let o=fz(this[r],t);return o!==null?o:i},2)}function ZH(e){return e==null?[]:[].concat(e)}let A7e=/\$\{\s*(\w+)\s*\}/g;class oo 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(A7e,(i,o)=>Dc(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=[],ZH(t).forEach(o=>{oo.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,oo)}}let Hs={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 \`${Dc(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${Dc(n,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${Dc(n,!0)}\``+i}},ga={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"},Wl={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"},zR={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},D7e={isValue:"${path} field must be ${value}"},UR={noUnknown:"${path} field has unspecified keys: ${unknown}"},Ub={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:Hs,string:ga,number:Wl,date:zR,object:UR,array:Ub,boolean:D7e});const kx=e=>e&&e.__isYupSchema__;class tw{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 tw(t,(s,l)=>{var u;let f=a(...s)?i:o;return(u=f==null?void 0:f(l))!=null?u:l})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(o=>o.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),i=this.fn(r,t,n);if(i===void 0||i===t)return t;if(!kx(i))throw new TypeError("conditions must return a schema object");return i.resolve(n)}}const eb={context:"$",value:"."};class ff{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]===eb.context,this.isValue=this.key[0]===eb.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?eb.context:this.isValue?eb.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&Ac.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}}ff.prototype.__isYupRef=!0;const ns=e=>e==null;function nd(e){function t({value:n,path:r="",options:i,originalValue:o,schema:a},s,l){const{name:u,test:f,params:p,message:d,skipAbsent:v}=e;let{parent:g,context:y,abortEarly:x=a.spec.abortEarly}=i;function b(U){return ff.isRef(U)?U.getValue(n,g,y):U}function w(U={}){const W=Object.assign({value:n,originalValue:o,label:a.spec.label,path:U.path||r,spec:a.spec},p,U.params);for(const ne of Object.keys(W))W[ne]=b(W[ne]);const se=new oo(oo.formatError(U.message||d,W),n,W.path,U.type||u);return se.params=W,se}const S=x?s:l;let C={path:r,parent:g,type:u,from:i.from,createError:w,resolve:b,options:i,originalValue:o,schema:a};const k=U=>{oo.isError(U)?S(U):U?l(null):S(w())},D=U=>{oo.isError(U)?S(U):s(U)},P=v&&ns(n);if(!i.sync){try{Promise.resolve(P?!0:f.call(C,n,C)).then(k,D)}catch(U){D(U)}return}let B;try{var V;if(B=P?!0:f.call(C,n,C),typeof((V=B)==null?void 0:V.then)=="function")throw new Error(`Validation test of type: "${C.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(U){D(U);return}k(B)}return t.OPTIONS=e,t}function I7e(e,t,n,r=n){let i,o,a;return t?(Ac.forEach(t,(s,l,u)=>{let f=l?s.slice(1,s.length-1):s;e=e.resolve({context:r,parent:i,value:n});let p=e.type==="tuple",d=u?parseInt(f,10):0;if(e.innerType||p){if(p&&!u)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(n&&d>=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[d],e=p?e.spec.types[d]:e.innerType}if(!u){if(!e.fields||!e.fields[f])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e.type}")`);i=n,n=n&&n[f],e=e.fields[f]}o=f,a=l?"["+s+"]":"."+s}),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}class nw extends Set{describe(){const t=[];for(const n of this.values())t.push(ff.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 nw(this.values())}merge(t,n){const r=this.clone();return t.forEach(i=>r.add(i)),n.forEach(i=>r.delete(i)),r}}function Rd(e,t=new Map){if(kx(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]=Rd(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,Rd(i,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(Rd(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,i]of Object.entries(e))n[r]=Rd(i,t)}else throw Error(`Unable to clone ${e}`);return n}class Xo{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 nw,this._blacklist=new nw,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Hs.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=Rd(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&&ns(o))return o;let a=Dc(t),s=Dc(o);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
|
|
512
|
-
|
|
513
|
-
attempted value: ${a}
|
|
514
|
-
`+(s!==a?`result of cast: ${s}`:""))}return o}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((i,o)=>o.call(this,i,t,this),t);return r===void 0&&(r=this.getDefault()),r}_validate(t,n={},r,i){let{path:o,originalValue:a=t,strict:s=this.spec.strict}=n,l=t;s||(l=this._cast(l,Object.assign({assert:!1},n)));let u=[];for(let f of Object.values(this.internalTests))f&&u.push(f);this.runTests({path:o,value:l,originalValue:a,options:n,tests:u},r,f=>{if(f.length)return i(f,l);this.runTests({path:o,value:l,originalValue:a,options:n,tests:this.tests},r,i)})}runTests(t,n,r){let i=!1,{tests:o,value:a,originalValue:s,path:l,options:u}=t,f=y=>{i||(i=!0,n(y,a))},p=y=>{i||(i=!0,r(y,a))},d=o.length,v=[];if(!d)return p([]);let g={value:a,originalValue:s,path:l,options:u,schema:this};for(let y=0;y<o.length;y++){const x=o[y];x(g,f,function(w){w&&(v=v.concat(w)),--d<=0&&p(v)})}}asNestedTest({key:t,index:n,parent:r,parentPath:i,originalParent:o,options:a}){const s=t??n;if(s==null)throw TypeError("Must include `key` or `index` for nested validations");const l=typeof s=="number";let u=r[s];const f=Object.assign({},a,{strict:!0,parent:r,value:u,originalValue:o[s],key:void 0,[l?"index":"key"]:s,path:l||s.includes(".")?`${i||""}[${u?s:`"${s}"`}]`:(i?`${i}.`:"")+t});return(p,d,v)=>this.resolve(f)._validate(u,f,d,v)}validate(t,n){let r=this.resolve(Object.assign({},n,{value:t}));return new Promise((i,o)=>r._validate(t,n,(a,s)=>{oo.isError(a)&&(a.value=s),o(a)},(a,s)=>{a.length?o(new oo(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 oo.isError(o)&&(o.value=a),o},(o,a)=>{if(o.length)throw new oo(o,t);i=a}),i}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(oo.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(oo.isError(r))return!1;throw r}}_getDefault(){let t=this.spec.default;return t==null?t:typeof t=="function"?t.call(this):Rd(t)}getDefault(t){return this.resolve(t||{})._getDefault()}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=nd({message:n,name:"nullable",test(i){return i===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=nd({message:n,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=Hs.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Hs.notNull){return this.nullability(!1,t)}required(t=Hs.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=Hs.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),i=nd(n),o=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(a=>!(a.OPTIONS.name===n.name&&(o||a.OPTIONS.test===i.OPTIONS.test))),r.tests.push(i),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),i=ZH(t).map(o=>new ff(o));return i.forEach(o=>{o.isSibling&&r.deps.push(o.key)}),r.conditions.push(typeof n=="function"?new tw(i,n):tw.fromOptions(i,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=nd({message:t,name:"typeError",test(r){return!ns(r)&&!this.schema._typeCheck(r)?this.createError({params:{type:this.schema.type}}):!0}}),n}oneOf(t,n=Hs.oneOf){let r=this.clone();return t.forEach(i=>{r._whitelist.add(i),r._blacklist.delete(i)}),r.internalTests.whiteList=nd({message:n,name:"oneOf",skipAbsent:!0,test(i){let o=this.schema._whitelist,a=o.resolveAll(this.resolve);return a.includes(i)?!0:this.createError({params:{values:Array.from(o).join(", "),resolved:a}})}}),r}notOneOf(t,n=Hs.notOneOf){let r=this.clone();return t.forEach(i=>{r._blacklist.add(i),r._whitelist.delete(i)}),r.internalTests.blacklist=nd({message:n,name:"notOneOf",test(i){let o=this.schema._blacklist,a=o.resolveAll(this.resolve);return a.includes(i)?this.createError({params:{values:Array.from(o).join(", "),resolved:a}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:i,optional:o,nullable:a}=n.spec;return{meta:i,label:r,optional:o,nullable:a,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(l=>({name:l.OPTIONS.name,params:l.OPTIONS.params})).filter((l,u,f)=>f.findIndex(p=>p.name===l.name)===u)}}}Xo.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Xo.prototype[`${e}At`]=function(t,n,r={}){const{parent:i,parentPath:o,schema:a}=I7e(this,t,n,r.context);return a[e](i&&i[o],Object.assign({},r,{parent:i,path:t}))};for(const e of["equals","is"])Xo.prototype[e]=Xo.prototype.oneOf;for(const e of["not","nope"])Xo.prototype[e]=Xo.prototype.notOneOf;let P7e=/^[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])?)*$/,$7e=/^((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,F7e=/^(?:[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,L7e=e=>ns(e)||e===e.trim(),M7e={}.toString();function rw(){return new eq}class eq extends Xo{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===M7e?t:i})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||Hs.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=ga.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=ga.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=ga.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||ga.matches,params:{regex:t},skipAbsent:!0,test:a=>a===""&&r||a.search(t)!==-1})}email(t=ga.email){return this.matches(P7e,{name:"email",message:t,excludeEmptyString:!0})}url(t=ga.url){return this.matches($7e,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=ga.uuid){return this.matches(F7e,{name:"uuid",message:t,excludeEmptyString:!1})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=ga.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:L7e})}lowercase(t=ga.lowercase){return this.transform(n=>ns(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>ns(n)||n===n.toLowerCase()})}uppercase(t=ga.uppercase){return this.transform(n=>ns(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>ns(n)||n===n.toUpperCase()})}}rw.prototype=eq.prototype;let N7e=e=>e!=+e;function Lm(){return new tq}class tq extends Xo{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!N7e(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=Wl.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=Wl.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=Wl.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=Wl.moreThan){return this.test({message:n,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test(r){return r>this.resolve(t)}})}positive(t=Wl.positive){return this.moreThan(0,t)}negative(t=Wl.negative){return this.lessThan(0,t)}integer(t=Wl.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:n=>Number.isInteger(n)})}truncate(){return this.transform(t=>ns(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=>ns(i)?i:Math[t](i))}}Lm.prototype=tq.prototype;var B7e=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;function j7e(e){var t=[1,4,5,6,7,10,11],n=0,r,i;if(i=B7e.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 z7e=new Date(""),U7e=e=>Object.prototype.toString.call(e)==="[object Date]";class Tx extends Xo{constructor(){super({type:"date",check(t){return U7e(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)?t:(t=j7e(t),isNaN(t)?Tx.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(ff.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=zR.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=zR.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)}})}}Tx.INVALID_DATE=z7e;Tx.prototype;function V7e(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([a,s])=>`${a}-${s}`));function o(a,s){let l=Ac.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),ff.isRef(s)&&s.isSibling?o(s.path,a):kx(s)&&"deps"in s&&s.deps.forEach(l=>o(l,a))}return S7e.array(Array.from(r),n).reverse()}function dz(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 nq(e){return(t,n)=>dz(e,t)-dz(e,n)}const rq=(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 Vb(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=Vb(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=Vb(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(Vb)}):"optional"in e?e.optional():e}const W7e=(e,t)=>{const n=[...Ac.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),i=Ac.getter(Ac.join(n),!0)(e);return!!(i&&r in i)};let pz=e=>Object.prototype.toString.call(e)==="[object Object]";function K7e(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const H7e=nq([]);function WI(e){return new iq(e)}class iq extends Xo{constructor(t){super({type:"object",check(n){return pz(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=H7e,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(p=>!this._nodes.includes(p))),l={},u=Object.assign({},n,{parent:l,__validating:n.__validating||!1}),f=!1;for(const p of s){let d=o[p],v=p in i;if(d){let g,y=i[p];u.path=(n.path?`${n.path}.`:"")+p,d=d.resolve({value:y,context:n.context,parent:l});let x=d instanceof Xo?d.spec:void 0,b=x==null?void 0:x.strict;if(x!=null&&x.strip){f=f||p in i;continue}g=!n.__validating||!b?d.cast(i[p],u):i[p],g!==void 0&&(l[p]=g)}else v&&!a&&(l[p]=i[p]);(v!==p in l||l[p]!==i[p])&&(f=!0)}return f?l:i}_validate(t,n={},r,i){let{from:o=[],originalValue:a=t,recursive:s=this.spec.recursive}=n;n.from=[{schema:this,value:a},...o],n.__validating=!0,n.originalValue=a,super._validate(t,n,r,(l,u)=>{if(!s||!pz(u)){i(l,u);return}a=a||u;let f=[];for(let p of this._nodes){let d=this.fields[p];!d||ff.isRef(d)||f.push(d.asNestedTest({options:n,key:p,parent:u,parentPath:n.path,originalParent:a}))}this.runTests({tests:f,value:u,originalValue:a,options:n},r,p=>{i(p.sort(this._sortErrors).concat(l),u)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[i,o]of Object.entries(this.fields)){const a=r[i];r[i]=a===void 0?o:a}return n.withMutation(i=>i.setFields(r,this._excludedEdges))}_getDefault(){if("default"in this.spec)return super._getDefault();if(!this._nodes.length)return;let t={};return this._nodes.forEach(n=>{const r=this.fields[n];t[n]=r&&"getDefault"in r?r.getDefault():void 0}),t}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=V7e(t,n),r._sortErrors=nq(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 Vb(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=Ac.getter(t,!0);return this.transform(o=>{if(!o)return o;let a=o;return W7e(o,t)&&(a=Object.assign({},o),r||delete a[t],a[n]=i(o)),a})}json(){return this.transform(rq)}noUnknown(t=!0,n=UR.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=K7e(this.schema,i);return!t||o.length===0||this.createError({params:{unknown:o.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=UR.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(qC.camelCase)}snakeCase(){return this.transformKeys(qC.snakeCase)}constantCase(){return this.transformKeys(t=>qC.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}}WI.prototype=iq.prototype;function oq(e){return new aq(e)}class aq extends Xo{constructor(t){super({type:"array",check(n){return Array.isArray(n)}}),this.innerType=void 0,this.innerType=t}_cast(t,n){const r=super._cast(t,n);if(!this._typeCheck(r)||!this.innerType)return r;let i=!1;const o=r.map((a,s)=>{const l=this.innerType.cast(a,Object.assign({},n,{path:`${n.path||""}[${s}]`}));return l!==a&&(i=!0),l});return i?o:r}_validate(t,n={},r,i){var o;let a=this.innerType,s=(o=n.recursive)!=null?o:this.spec.recursive;n.originalValue!=null&&n.originalValue,super._validate(t,n,r,(l,u)=>{var f;if(!s||!a||!this._typeCheck(u)){i(l,u);return}let p=new Array(u.length);for(let v=0;v<u.length;v++){var d;p[v]=a.asNestedTest({options:n,index:v,parent:u,parentPath:n.path,originalParent:(d=n.originalValue)!=null?d:t})}this.runTests({value:u,tests:p,originalValue:(f=n.originalValue)!=null?f:t,options:n},r,v=>i(v.concat(l),u))})}clone(t){const n=super.clone(t);return n.innerType=this.innerType,n}json(){return this.transform(rq)}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(!kx(t))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+Dc(t));return n.innerType=t,n}length(t,n=Ub.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||Ub.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||Ub.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}}oq.prototype=aq.prototype;var hz=Array.isArray,mz=Object.keys,q7e=Object.prototype.hasOwnProperty,G7e=typeof Element<"u";function VR(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var n=hz(e),r=hz(t),i,o,a;if(n&&r){if(o=e.length,o!=t.length)return!1;for(i=o;i--!==0;)if(!VR(e[i],t[i]))return!1;return!0}if(n!=r)return!1;var s=e instanceof Date,l=t instanceof Date;if(s!=l)return!1;if(s&&l)return e.getTime()==t.getTime();var u=e instanceof RegExp,f=t instanceof RegExp;if(u!=f)return!1;if(u&&f)return e.toString()==t.toString();var p=mz(e);if(o=p.length,o!==mz(t).length)return!1;for(i=o;i--!==0;)if(!q7e.call(t,p[i]))return!1;if(G7e&&e instanceof Element&&t instanceof Element)return e===t;for(i=o;i--!==0;)if(a=p[i],!(a==="_owner"&&e.$$typeof)&&!VR(e[a],t[a]))return!1;return!0}return e!==e&&t!==t}var Q7e=function(t,n){try{return VR(t,n)}catch(r){if(r.message&&r.message.match(/stack|recursion/i)||r.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",r.name,r.message),!1;throw r}};const dc=ps(Q7e);var Y7e=function(t){return X7e(t)&&!J7e(t)};function X7e(e){return!!e&&typeof e=="object"}function J7e(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||tWe(e)}var Z7e=typeof Symbol=="function"&&Symbol.for,eWe=Z7e?Symbol.for("react.element"):60103;function tWe(e){return e.$$typeof===eWe}function nWe(e){return Array.isArray(e)?[]:{}}function iw(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Gg(nWe(e),e,t):e}function rWe(e,t,n){return e.concat(t).map(function(r){return iw(r,n)})}function iWe(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(i){r[i]=iw(e[i],n)}),Object.keys(t).forEach(function(i){!n.isMergeableObject(t[i])||!e[i]?r[i]=iw(t[i],n):r[i]=Gg(e[i],t[i],n)}),r}function Gg(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||rWe,n.isMergeableObject=n.isMergeableObject||Y7e;var r=Array.isArray(t),i=Array.isArray(e),o=r===i;return o?r?n.arrayMerge(e,t,n):iWe(e,t,n):iw(t,n)}Gg.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return Gg(r,i,n)},{})};var WR=Gg,oWe=typeof global=="object"&&global&&global.Object===Object&&global;const sq=oWe;var aWe=typeof self=="object"&&self&&self.Object===Object&&self,sWe=sq||aWe||Function("return this")();const ws=sWe;var lWe=ws.Symbol;const ku=lWe;var lq=Object.prototype,uWe=lq.hasOwnProperty,cWe=lq.toString,bm=ku?ku.toStringTag:void 0;function fWe(e){var t=uWe.call(e,bm),n=e[bm];try{e[bm]=void 0;var r=!0}catch{}var i=cWe.call(e);return r&&(t?e[bm]=n:delete e[bm]),i}var dWe=Object.prototype,pWe=dWe.toString;function hWe(e){return pWe.call(e)}var mWe="[object Null]",gWe="[object Undefined]",gz=ku?ku.toStringTag:void 0;function df(e){return e==null?e===void 0?gWe:mWe:gz&&gz in Object(e)?fWe(e):hWe(e)}function uq(e,t){return function(n){return e(t(n))}}var vWe=uq(Object.getPrototypeOf,Object);const KI=vWe;function pf(e){return e!=null&&typeof e=="object"}var yWe="[object Object]",bWe=Function.prototype,wWe=Object.prototype,cq=bWe.toString,_We=wWe.hasOwnProperty,xWe=cq.call(Object);function vz(e){if(!pf(e)||df(e)!=yWe)return!1;var t=KI(e);if(t===null)return!0;var n=_We.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&cq.call(n)==xWe}function SWe(){this.__data__=[],this.size=0}function fq(e,t){return e===t||e!==e&&t!==t}function Rx(e,t){for(var n=e.length;n--;)if(fq(e[n][0],t))return n;return-1}var EWe=Array.prototype,CWe=EWe.splice;function kWe(e){var t=this.__data__,n=Rx(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():CWe.call(t,n,1),--this.size,!0}function TWe(e){var t=this.__data__,n=Rx(t,e);return n<0?void 0:t[n][1]}function RWe(e){return Rx(this.__data__,e)>-1}function OWe(e,t){var n=this.__data__,r=Rx(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function vl(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}vl.prototype.clear=SWe;vl.prototype.delete=kWe;vl.prototype.get=TWe;vl.prototype.has=RWe;vl.prototype.set=OWe;function AWe(){this.__data__=new vl,this.size=0}function DWe(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function IWe(e){return this.__data__.get(e)}function PWe(e){return this.__data__.has(e)}function zv(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var $We="[object AsyncFunction]",FWe="[object Function]",LWe="[object GeneratorFunction]",MWe="[object Proxy]";function dq(e){if(!zv(e))return!1;var t=df(e);return t==FWe||t==LWe||t==$We||t==MWe}var NWe=ws["__core-js_shared__"];const GC=NWe;var yz=function(){var e=/[^.]+$/.exec(GC&&GC.keys&&GC.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function BWe(e){return!!yz&&yz in e}var jWe=Function.prototype,zWe=jWe.toString;function hf(e){if(e!=null){try{return zWe.call(e)}catch{}try{return e+""}catch{}}return""}var UWe=/[\\^$.*+?()[\]{}|]/g,VWe=/^\[object .+?Constructor\]$/,WWe=Function.prototype,KWe=Object.prototype,HWe=WWe.toString,qWe=KWe.hasOwnProperty,GWe=RegExp("^"+HWe.call(qWe).replace(UWe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function QWe(e){if(!zv(e)||BWe(e))return!1;var t=dq(e)?GWe:VWe;return t.test(hf(e))}function YWe(e,t){return e==null?void 0:e[t]}function mf(e,t){var n=YWe(e,t);return QWe(n)?n:void 0}var XWe=mf(ws,"Map");const Qg=XWe;var JWe=mf(Object,"create");const Yg=JWe;function ZWe(){this.__data__=Yg?Yg(null):{},this.size=0}function eKe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var tKe="__lodash_hash_undefined__",nKe=Object.prototype,rKe=nKe.hasOwnProperty;function iKe(e){var t=this.__data__;if(Yg){var n=t[e];return n===tKe?void 0:n}return rKe.call(t,e)?t[e]:void 0}var oKe=Object.prototype,aKe=oKe.hasOwnProperty;function sKe(e){var t=this.__data__;return Yg?t[e]!==void 0:aKe.call(t,e)}var lKe="__lodash_hash_undefined__";function uKe(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Yg&&t===void 0?lKe:t,this}function Hc(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])}}Hc.prototype.clear=ZWe;Hc.prototype.delete=eKe;Hc.prototype.get=iKe;Hc.prototype.has=sKe;Hc.prototype.set=uKe;function cKe(){this.size=0,this.__data__={hash:new Hc,map:new(Qg||vl),string:new Hc}}function fKe(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Ox(e,t){var n=e.__data__;return fKe(t)?n[typeof t=="string"?"string":"hash"]:n.map}function dKe(e){var t=Ox(this,e).delete(e);return this.size-=t?1:0,t}function pKe(e){return Ox(this,e).get(e)}function hKe(e){return Ox(this,e).has(e)}function mKe(e,t){var n=Ox(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Nu(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])}}Nu.prototype.clear=cKe;Nu.prototype.delete=dKe;Nu.prototype.get=pKe;Nu.prototype.has=hKe;Nu.prototype.set=mKe;var gKe=200;function vKe(e,t){var n=this.__data__;if(n instanceof vl){var r=n.__data__;if(!Qg||r.length<gKe-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Nu(r)}return n.set(e,t),this.size=n.size,this}function jp(e){var t=this.__data__=new vl(e);this.size=t.size}jp.prototype.clear=AWe;jp.prototype.delete=DWe;jp.prototype.get=IWe;jp.prototype.has=PWe;jp.prototype.set=vKe;function yKe(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var bKe=function(){try{var e=mf(Object,"defineProperty");return e({},"",{}),e}catch{}}();const bz=bKe;function pq(e,t,n){t=="__proto__"&&bz?bz(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var wKe=Object.prototype,_Ke=wKe.hasOwnProperty;function hq(e,t,n){var r=e[t];(!(_Ke.call(e,t)&&fq(r,n))||n===void 0&&!(t in e))&&pq(e,t,n)}function Ax(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?pq(n,s,l):hq(n,s,l)}return n}function xKe(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var SKe="[object Arguments]";function wz(e){return pf(e)&&df(e)==SKe}var mq=Object.prototype,EKe=mq.hasOwnProperty,CKe=mq.propertyIsEnumerable,kKe=wz(function(){return arguments}())?wz:function(e){return pf(e)&&EKe.call(e,"callee")&&!CKe.call(e,"callee")};const TKe=kKe;var RKe=Array.isArray;const Uv=RKe;function OKe(){return!1}var gq=typeof exports=="object"&&exports&&!exports.nodeType&&exports,_z=gq&&typeof module=="object"&&module&&!module.nodeType&&module,AKe=_z&&_z.exports===gq,xz=AKe?ws.Buffer:void 0,DKe=xz?xz.isBuffer:void 0,IKe=DKe||OKe;const vq=IKe;var PKe=9007199254740991,$Ke=/^(?:0|[1-9]\d*)$/;function FKe(e,t){var n=typeof e;return t=t??PKe,!!t&&(n=="number"||n!="symbol"&&$Ke.test(e))&&e>-1&&e%1==0&&e<t}var LKe=9007199254740991;function yq(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=LKe}var MKe="[object Arguments]",NKe="[object Array]",BKe="[object Boolean]",jKe="[object Date]",zKe="[object Error]",UKe="[object Function]",VKe="[object Map]",WKe="[object Number]",KKe="[object Object]",HKe="[object RegExp]",qKe="[object Set]",GKe="[object String]",QKe="[object WeakMap]",YKe="[object ArrayBuffer]",XKe="[object DataView]",JKe="[object Float32Array]",ZKe="[object Float64Array]",eHe="[object Int8Array]",tHe="[object Int16Array]",nHe="[object Int32Array]",rHe="[object Uint8Array]",iHe="[object Uint8ClampedArray]",oHe="[object Uint16Array]",aHe="[object Uint32Array]",Bn={};Bn[JKe]=Bn[ZKe]=Bn[eHe]=Bn[tHe]=Bn[nHe]=Bn[rHe]=Bn[iHe]=Bn[oHe]=Bn[aHe]=!0;Bn[MKe]=Bn[NKe]=Bn[YKe]=Bn[BKe]=Bn[XKe]=Bn[jKe]=Bn[zKe]=Bn[UKe]=Bn[VKe]=Bn[WKe]=Bn[KKe]=Bn[HKe]=Bn[qKe]=Bn[GKe]=Bn[QKe]=!1;function sHe(e){return pf(e)&&yq(e.length)&&!!Bn[df(e)]}function HI(e){return function(t){return e(t)}}var bq=typeof exports=="object"&&exports&&!exports.nodeType&&exports,fg=bq&&typeof module=="object"&&module&&!module.nodeType&&module,lHe=fg&&fg.exports===bq,QC=lHe&&sq.process,uHe=function(){try{var e=fg&&fg.require&&fg.require("util").types;return e||QC&&QC.binding&&QC.binding("util")}catch{}}();const xp=uHe;var Sz=xp&&xp.isTypedArray,cHe=Sz?HI(Sz):sHe;const fHe=cHe;var dHe=Object.prototype,pHe=dHe.hasOwnProperty;function wq(e,t){var n=Uv(e),r=!n&&TKe(e),i=!n&&!r&&vq(e),o=!n&&!r&&!i&&fHe(e),a=n||r||i||o,s=a?xKe(e.length,String):[],l=s.length;for(var u in e)(t||pHe.call(e,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||FKe(u,l)))&&s.push(u);return s}var hHe=Object.prototype;function qI(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||hHe;return e===n}var mHe=uq(Object.keys,Object);const gHe=mHe;var vHe=Object.prototype,yHe=vHe.hasOwnProperty;function bHe(e){if(!qI(e))return gHe(e);var t=[];for(var n in Object(e))yHe.call(e,n)&&n!="constructor"&&t.push(n);return t}function _q(e){return e!=null&&yq(e.length)&&!dq(e)}function GI(e){return _q(e)?wq(e):bHe(e)}function wHe(e,t){return e&&Ax(t,GI(t),e)}function _He(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var xHe=Object.prototype,SHe=xHe.hasOwnProperty;function EHe(e){if(!zv(e))return _He(e);var t=qI(e),n=[];for(var r in e)r=="constructor"&&(t||!SHe.call(e,r))||n.push(r);return n}function QI(e){return _q(e)?wq(e,!0):EHe(e)}function CHe(e,t){return e&&Ax(t,QI(t),e)}var xq=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ez=xq&&typeof module=="object"&&module&&!module.nodeType&&module,kHe=Ez&&Ez.exports===xq,Cz=kHe?ws.Buffer:void 0,kz=Cz?Cz.allocUnsafe:void 0;function THe(e,t){if(t)return e.slice();var n=e.length,r=kz?kz(n):new e.constructor(n);return e.copy(r),r}function Sq(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function RHe(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 Eq(){return[]}var OHe=Object.prototype,AHe=OHe.propertyIsEnumerable,Tz=Object.getOwnPropertySymbols,DHe=Tz?function(e){return e==null?[]:(e=Object(e),RHe(Tz(e),function(t){return AHe.call(e,t)}))}:Eq;const YI=DHe;function IHe(e,t){return Ax(e,YI(e),t)}function Cq(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var PHe=Object.getOwnPropertySymbols,$He=PHe?function(e){for(var t=[];e;)Cq(t,YI(e)),e=KI(e);return t}:Eq;const kq=$He;function FHe(e,t){return Ax(e,kq(e),t)}function Tq(e,t,n){var r=t(e);return Uv(e)?r:Cq(r,n(e))}function LHe(e){return Tq(e,GI,YI)}function MHe(e){return Tq(e,QI,kq)}var NHe=mf(ws,"DataView");const KR=NHe;var BHe=mf(ws,"Promise");const HR=BHe;var jHe=mf(ws,"Set");const qR=jHe;var zHe=mf(ws,"WeakMap");const GR=zHe;var Rz="[object Map]",UHe="[object Object]",Oz="[object Promise]",Az="[object Set]",Dz="[object WeakMap]",Iz="[object DataView]",VHe=hf(KR),WHe=hf(Qg),KHe=hf(HR),HHe=hf(qR),qHe=hf(GR),pc=df;(KR&&pc(new KR(new ArrayBuffer(1)))!=Iz||Qg&&pc(new Qg)!=Rz||HR&&pc(HR.resolve())!=Oz||qR&&pc(new qR)!=Az||GR&&pc(new GR)!=Dz)&&(pc=function(e){var t=df(e),n=t==UHe?e.constructor:void 0,r=n?hf(n):"";if(r)switch(r){case VHe:return Iz;case WHe:return Rz;case KHe:return Oz;case HHe:return Az;case qHe:return Dz}return t});const XI=pc;var GHe=Object.prototype,QHe=GHe.hasOwnProperty;function YHe(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&QHe.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var XHe=ws.Uint8Array;const Pz=XHe;function JI(e){var t=new e.constructor(e.byteLength);return new Pz(t).set(new Pz(e)),t}function JHe(e,t){var n=t?JI(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var ZHe=/\w*$/;function eqe(e){var t=new e.constructor(e.source,ZHe.exec(e));return t.lastIndex=e.lastIndex,t}var $z=ku?ku.prototype:void 0,Fz=$z?$z.valueOf:void 0;function tqe(e){return Fz?Object(Fz.call(e)):{}}function nqe(e,t){var n=t?JI(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var rqe="[object Boolean]",iqe="[object Date]",oqe="[object Map]",aqe="[object Number]",sqe="[object RegExp]",lqe="[object Set]",uqe="[object String]",cqe="[object Symbol]",fqe="[object ArrayBuffer]",dqe="[object DataView]",pqe="[object Float32Array]",hqe="[object Float64Array]",mqe="[object Int8Array]",gqe="[object Int16Array]",vqe="[object Int32Array]",yqe="[object Uint8Array]",bqe="[object Uint8ClampedArray]",wqe="[object Uint16Array]",_qe="[object Uint32Array]";function xqe(e,t,n){var r=e.constructor;switch(t){case fqe:return JI(e);case rqe:case iqe:return new r(+e);case dqe:return JHe(e,n);case pqe:case hqe:case mqe:case gqe:case vqe:case yqe:case bqe:case wqe:case _qe:return nqe(e,n);case oqe:return new r;case aqe:case uqe:return new r(e);case sqe:return eqe(e);case lqe:return new r;case cqe:return tqe(e)}}var Lz=Object.create,Sqe=function(){function e(){}return function(t){if(!zv(t))return{};if(Lz)return Lz(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const Eqe=Sqe;function Cqe(e){return typeof e.constructor=="function"&&!qI(e)?Eqe(KI(e)):{}}var kqe="[object Map]";function Tqe(e){return pf(e)&&XI(e)==kqe}var Mz=xp&&xp.isMap,Rqe=Mz?HI(Mz):Tqe;const Oqe=Rqe;var Aqe="[object Set]";function Dqe(e){return pf(e)&&XI(e)==Aqe}var Nz=xp&&xp.isSet,Iqe=Nz?HI(Nz):Dqe;const Pqe=Iqe;var $qe=1,Fqe=2,Lqe=4,Rq="[object Arguments]",Mqe="[object Array]",Nqe="[object Boolean]",Bqe="[object Date]",jqe="[object Error]",Oq="[object Function]",zqe="[object GeneratorFunction]",Uqe="[object Map]",Vqe="[object Number]",Aq="[object Object]",Wqe="[object RegExp]",Kqe="[object Set]",Hqe="[object String]",qqe="[object Symbol]",Gqe="[object WeakMap]",Qqe="[object ArrayBuffer]",Yqe="[object DataView]",Xqe="[object Float32Array]",Jqe="[object Float64Array]",Zqe="[object Int8Array]",eGe="[object Int16Array]",tGe="[object Int32Array]",nGe="[object Uint8Array]",rGe="[object Uint8ClampedArray]",iGe="[object Uint16Array]",oGe="[object Uint32Array]",$n={};$n[Rq]=$n[Mqe]=$n[Qqe]=$n[Yqe]=$n[Nqe]=$n[Bqe]=$n[Xqe]=$n[Jqe]=$n[Zqe]=$n[eGe]=$n[tGe]=$n[Uqe]=$n[Vqe]=$n[Aq]=$n[Wqe]=$n[Kqe]=$n[Hqe]=$n[qqe]=$n[nGe]=$n[rGe]=$n[iGe]=$n[oGe]=!0;$n[jqe]=$n[Oq]=$n[Gqe]=!1;function Wb(e,t,n,r,i,o){var a,s=t&$qe,l=t&Fqe,u=t&Lqe;if(n&&(a=i?n(e,r,i,o):n(e)),a!==void 0)return a;if(!zv(e))return e;var f=Uv(e);if(f){if(a=YHe(e),!s)return Sq(e,a)}else{var p=XI(e),d=p==Oq||p==zqe;if(vq(e))return THe(e,s);if(p==Aq||p==Rq||d&&!i){if(a=l||d?{}:Cqe(e),!s)return l?FHe(e,CHe(a,e)):IHe(e,wHe(a,e))}else{if(!$n[p])return i?e:{};a=xqe(e,p,s)}}o||(o=new jp);var v=o.get(e);if(v)return v;o.set(e,a),Pqe(e)?e.forEach(function(x){a.add(Wb(x,t,n,x,e,o))}):Oqe(e)&&e.forEach(function(x,b){a.set(b,Wb(x,t,n,b,e,o))});var g=u?l?MHe:LHe:l?QI:GI,y=f?void 0:g(e);return yKe(y||e,function(x,b){y&&(b=x,x=e[b]),hq(a,b,Wb(x,t,n,b,e,o))}),a}var aGe=4;function Bz(e){return Wb(e,aGe)}function Dq(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 sGe="[object Symbol]";function ZI(e){return typeof e=="symbol"||pf(e)&&df(e)==sGe}var lGe="Expected a function";function e2(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(lGe);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(e2.Cache||Nu),n}e2.Cache=Nu;var uGe=500;function cGe(e){var t=e2(e,function(r){return n.size===uGe&&n.clear(),r}),n=t.cache;return t}var fGe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,dGe=/\\(\\)?/g,pGe=cGe(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(fGe,function(n,r,i,o){t.push(i?o.replace(dGe,"$1"):r||n)}),t});const hGe=pGe;var mGe=1/0;function gGe(e){if(typeof e=="string"||ZI(e))return e;var t=e+"";return t=="0"&&1/e==-mGe?"-0":t}var vGe=1/0,jz=ku?ku.prototype:void 0,zz=jz?jz.toString:void 0;function Iq(e){if(typeof e=="string")return e;if(Uv(e))return Dq(e,Iq)+"";if(ZI(e))return zz?zz.call(e):"";var t=e+"";return t=="0"&&1/e==-vGe?"-0":t}function yGe(e){return e==null?"":Iq(e)}function Pq(e){return Uv(e)?Dq(e,gGe):ZI(e)?[e]:Sq(hGe(yGe(e)))}var bGe=!0;function wGe(e,t){if(!bGe){if(e)return;var n="Warning: "+t;typeof console<"u"&&console.warn(n);try{throw Error(n)}catch{}}}function Gr(){return Gr=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},Gr.apply(this,arguments)}function $q(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 va=function(t){return typeof t=="function"},Dx=function(t){return t!==null&&typeof t=="object"},_Ge=function(t){return String(Math.floor(Number(t)))===t},YC=function(t){return Object.prototype.toString.call(t)==="[object String]"},XC=function(t){return Dx(t)&&va(t.then)};function Io(e,t,n,r){r===void 0&&(r=0);for(var i=Pq(t);e&&r<i.length;)e=e[i[r++]];return e===void 0?n:e}function Ic(e,t,n){for(var r=Bz(e),i=r,o=0,a=Pq(t);o<a.length-1;o++){var s=a[o],l=Io(e,a.slice(0,o+1));if(l&&(Dx(l)||Array.isArray(l)))i=i[s]=Bz(l);else{var u=a[o+1];i=i[s]=_Ge(u)&&Number(u)>=0?[]:{}}}return(o===0?e:i)[a[o]]===n?e:(n===void 0?delete i[a[o]]:i[a[o]]=n,o===0&&n===void 0&&delete r[a[o]],r)}function Fq(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];Dx(s)?n.get(s)||(n.set(s,!0),r[a]=Array.isArray(s)?[]:{},Fq(s,t,n,r[a])):r[a]=t}return r}var Ix=R.createContext(void 0);Ix.displayName="FormikContext";Ix.Provider;Ix.Consumer;function xGe(){var e=R.useContext(Ix);return e||wGe(!1),e}function SGe(e,t){switch(t.type){case"SET_VALUES":return Gr({},e,{values:t.payload});case"SET_TOUCHED":return Gr({},e,{touched:t.payload});case"SET_ERRORS":return dc(e.errors,t.payload)?e:Gr({},e,{errors:t.payload});case"SET_STATUS":return Gr({},e,{status:t.payload});case"SET_ISSUBMITTING":return Gr({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return Gr({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return Gr({},e,{values:Ic(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return Gr({},e,{touched:Ic(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return Gr({},e,{errors:Ic(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return Gr({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return Gr({},e,{touched:Fq(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return Gr({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return Gr({},e,{isSubmitting:!1});default:return e}}var ac={},tb={};function Lq(e){var t=e.validateOnChange,n=t===void 0?!0:t,r=e.validateOnBlur,i=r===void 0?!0:r,o=e.validateOnMount,a=o===void 0?!1:o,s=e.isInitialValid,l=e.enableReinitialize,u=l===void 0?!1:l,f=e.onSubmit,p=$q(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),d=Gr({validateOnChange:n,validateOnBlur:i,validateOnMount:a,onSubmit:f},p),v=R.useRef(d.initialValues),g=R.useRef(d.initialErrors||ac),y=R.useRef(d.initialTouched||tb),x=R.useRef(d.initialStatus),b=R.useRef(!1),w=R.useRef({});R.useEffect(function(){return b.current=!0,function(){b.current=!1}},[]);var S=R.useReducer(SGe,{values:d.initialValues,errors:d.initialErrors||ac,touched:d.initialTouched||tb,status:d.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),C=S[0],k=S[1],D=R.useCallback(function(me,Te){return new Promise(function(Ce,Oe){var j=d.validate(me,Te);j==null?Ce(ac):XC(j)?j.then(function(H){Ce(H||ac)},function(H){Oe(H)}):Ce(j)})},[d.validate]),P=R.useCallback(function(me,Te){var Ce=d.validationSchema,Oe=va(Ce)?Ce(Te):Ce,j=Te&&Oe.validateAt?Oe.validateAt(Te,me):CGe(me,Oe);return new Promise(function(H,he){j.then(function(){H(ac)},function(Q){Q.name==="ValidationError"?H(EGe(Q)):he(Q)})})},[d.validationSchema]),B=R.useCallback(function(me,Te){return new Promise(function(Ce){return Ce(w.current[me].validate(Te))})},[]),V=R.useCallback(function(me){var Te=Object.keys(w.current).filter(function(Oe){return va(w.current[Oe].validate)}),Ce=Te.length>0?Te.map(function(Oe){return B(Oe,Io(me,Oe))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(Ce).then(function(Oe){return Oe.reduce(function(j,H,he){return H==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||H&&(j=Ic(j,Te[he],H)),j},{})})},[B]),U=R.useCallback(function(me){return Promise.all([V(me),d.validationSchema?P(me):{},d.validate?D(me):{}]).then(function(Te){var Ce=Te[0],Oe=Te[1],j=Te[2],H=WR.all([Ce,Oe,j],{arrayMerge:kGe});return H})},[d.validate,d.validationSchema,V,D,P]),W=Ao(function(me){return me===void 0&&(me=C.values),k({type:"SET_ISVALIDATING",payload:!0}),U(me).then(function(Te){return b.current&&(k({type:"SET_ISVALIDATING",payload:!1}),k({type:"SET_ERRORS",payload:Te})),Te})});R.useEffect(function(){a&&b.current===!0&&dc(v.current,d.initialValues)&&W(v.current)},[a,W]);var se=R.useCallback(function(me){var Te=me&&me.values?me.values:v.current,Ce=me&&me.errors?me.errors:g.current?g.current:d.initialErrors||{},Oe=me&&me.touched?me.touched:y.current?y.current:d.initialTouched||{},j=me&&me.status?me.status:x.current?x.current:d.initialStatus;v.current=Te,g.current=Ce,y.current=Oe,x.current=j;var H=function(){k({type:"RESET_FORM",payload:{isSubmitting:!!me&&!!me.isSubmitting,errors:Ce,touched:Oe,status:j,values:Te,isValidating:!!me&&!!me.isValidating,submitCount:me&&me.submitCount&&typeof me.submitCount=="number"?me.submitCount:0}})};if(d.onReset){var he=d.onReset(C.values,Le);XC(he)?he.then(H):H()}else H()},[d.initialErrors,d.initialStatus,d.initialTouched]);R.useEffect(function(){b.current===!0&&!dc(v.current,d.initialValues)&&(u&&(v.current=d.initialValues,se()),a&&W(v.current))},[u,d.initialValues,se,a,W]),R.useEffect(function(){u&&b.current===!0&&!dc(g.current,d.initialErrors)&&(g.current=d.initialErrors||ac,k({type:"SET_ERRORS",payload:d.initialErrors||ac}))},[u,d.initialErrors]),R.useEffect(function(){u&&b.current===!0&&!dc(y.current,d.initialTouched)&&(y.current=d.initialTouched||tb,k({type:"SET_TOUCHED",payload:d.initialTouched||tb}))},[u,d.initialTouched]),R.useEffect(function(){u&&b.current===!0&&!dc(x.current,d.initialStatus)&&(x.current=d.initialStatus,k({type:"SET_STATUS",payload:d.initialStatus}))},[u,d.initialStatus,d.initialTouched]);var ne=Ao(function(me){if(w.current[me]&&va(w.current[me].validate)){var Te=Io(C.values,me),Ce=w.current[me].validate(Te);return XC(Ce)?(k({type:"SET_ISVALIDATING",payload:!0}),Ce.then(function(Oe){return Oe}).then(function(Oe){k({type:"SET_FIELD_ERROR",payload:{field:me,value:Oe}}),k({type:"SET_ISVALIDATING",payload:!1})})):(k({type:"SET_FIELD_ERROR",payload:{field:me,value:Ce}}),Promise.resolve(Ce))}else if(d.validationSchema)return k({type:"SET_ISVALIDATING",payload:!0}),P(C.values,me).then(function(Oe){return Oe}).then(function(Oe){k({type:"SET_FIELD_ERROR",payload:{field:me,value:Oe[me]}}),k({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),re=R.useCallback(function(me,Te){var Ce=Te.validate;w.current[me]={validate:Ce}},[]),Z=R.useCallback(function(me){delete w.current[me]},[]),F=Ao(function(me,Te){k({type:"SET_TOUCHED",payload:me});var Ce=Te===void 0?i:Te;return Ce?W(C.values):Promise.resolve()}),te=R.useCallback(function(me){k({type:"SET_ERRORS",payload:me})},[]),Y=Ao(function(me,Te){var Ce=va(me)?me(C.values):me;k({type:"SET_VALUES",payload:Ce});var Oe=Te===void 0?n:Te;return Oe?W(Ce):Promise.resolve()}),ee=R.useCallback(function(me,Te){k({type:"SET_FIELD_ERROR",payload:{field:me,value:Te}})},[]),G=Ao(function(me,Te,Ce){k({type:"SET_FIELD_VALUE",payload:{field:me,value:Te}});var Oe=Ce===void 0?n:Ce;return Oe?W(Ic(C.values,me,Te)):Promise.resolve()}),L=R.useCallback(function(me,Te){var Ce=Te,Oe=me,j;if(!YC(me)){me.persist&&me.persist();var H=me.target?me.target:me.currentTarget,he=H.type,Q=H.name,fe=H.id,le=H.value,Re=H.checked,$e=H.outerHTML,Pe=H.options,mt=H.multiple;Ce=Te||Q||fe,Oe=/number|range/.test(he)?(j=parseFloat(le),isNaN(j)?"":j):/checkbox/.test(he)?RGe(Io(C.values,Ce),Re,le):Pe&&mt?TGe(Pe):le}Ce&&G(Ce,Oe)},[G,C.values]),A=Ao(function(me){if(YC(me))return function(Te){return L(Te,me)};L(me)}),ie=Ao(function(me,Te,Ce){Te===void 0&&(Te=!0),k({type:"SET_FIELD_TOUCHED",payload:{field:me,value:Te}});var Oe=Ce===void 0?i:Ce;return Oe?W(C.values):Promise.resolve()}),ae=R.useCallback(function(me,Te){me.persist&&me.persist();var Ce=me.target,Oe=Ce.name,j=Ce.id,H=Ce.outerHTML,he=Te||Oe||j;ie(he,!0)},[ie]),ce=Ao(function(me){if(YC(me))return function(Te){return ae(Te,me)};ae(me)}),oe=R.useCallback(function(me){va(me)?k({type:"SET_FORMIK_STATE",payload:me}):k({type:"SET_FORMIK_STATE",payload:function(){return me}})},[]),xe=R.useCallback(function(me){k({type:"SET_STATUS",payload:me})},[]),ke=R.useCallback(function(me){k({type:"SET_ISSUBMITTING",payload:me})},[]),Ee=Ao(function(){return k({type:"SUBMIT_ATTEMPT"}),W().then(function(me){var Te=me instanceof Error,Ce=!Te&&Object.keys(me).length===0;if(Ce){var Oe;try{if(Oe=Ue(),Oe===void 0)return}catch(j){throw j}return Promise.resolve(Oe).then(function(j){return b.current&&k({type:"SUBMIT_SUCCESS"}),j}).catch(function(j){if(b.current)throw k({type:"SUBMIT_FAILURE"}),j})}else if(b.current&&(k({type:"SUBMIT_FAILURE"}),Te))throw me})}),Fe=Ao(function(me){me&&me.preventDefault&&va(me.preventDefault)&&me.preventDefault(),me&&me.stopPropagation&&va(me.stopPropagation)&&me.stopPropagation(),Ee().catch(function(Te){console.warn("Warning: An unhandled error was caught from submitForm()",Te)})}),Le={resetForm:se,validateForm:W,validateField:ne,setErrors:te,setFieldError:ee,setFieldTouched:ie,setFieldValue:G,setStatus:xe,setSubmitting:ke,setTouched:F,setValues:Y,setFormikState:oe,submitForm:Ee},Ue=Ao(function(){return f(C.values,Le)}),He=Ao(function(me){me&&me.preventDefault&&va(me.preventDefault)&&me.preventDefault(),me&&me.stopPropagation&&va(me.stopPropagation)&&me.stopPropagation(),se()}),Qe=R.useCallback(function(me){return{value:Io(C.values,me),error:Io(C.errors,me),touched:!!Io(C.touched,me),initialValue:Io(v.current,me),initialTouched:!!Io(y.current,me),initialError:Io(g.current,me)}},[C.errors,C.touched,C.values]),qe=R.useCallback(function(me){return{setValue:function(Ce,Oe){return G(me,Ce,Oe)},setTouched:function(Ce,Oe){return ie(me,Ce,Oe)},setError:function(Ce){return ee(me,Ce)}}},[G,ie,ee]),ut=R.useCallback(function(me){var Te=Dx(me),Ce=Te?me.name:me,Oe=Io(C.values,Ce),j={name:Ce,value:Oe,onChange:A,onBlur:ce};if(Te){var H=me.type,he=me.value,Q=me.as,fe=me.multiple;H==="checkbox"?he===void 0?j.checked=!!Oe:(j.checked=!!(Array.isArray(Oe)&&~Oe.indexOf(he)),j.value=he):H==="radio"?(j.checked=Oe===he,j.value=he):Q==="select"&&fe&&(j.value=j.value||[],j.multiple=!0)}return j},[ce,A,C.values]),et=R.useMemo(function(){return!dc(v.current,C.values)},[v.current,C.values]),it=R.useMemo(function(){return typeof s<"u"?et?C.errors&&Object.keys(C.errors).length===0:s!==!1&&va(s)?s(d):s:C.errors&&Object.keys(C.errors).length===0},[s,et,C.errors,d]),wt=Gr({},C,{initialValues:v.current,initialErrors:g.current,initialTouched:y.current,initialStatus:x.current,handleBlur:ce,handleChange:A,handleReset:He,handleSubmit:Fe,resetForm:se,setErrors:te,setFormikState:oe,setFieldTouched:ie,setFieldValue:G,setFieldError:ee,setStatus:xe,setSubmitting:ke,setTouched:F,setValues:Y,submitForm:Ee,validateForm:W,validateField:ne,isValid:it,dirty:et,unregisterField:Z,registerField:re,getFieldProps:ut,getFieldMeta:Qe,getFieldHelpers:qe,validateOnBlur:i,validateOnChange:n,validateOnMount:a});return wt}function EGe(e){var t={};if(e.inner){if(e.inner.length===0)return Ic(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;Io(t,a.path)||(t=Ic(t,a.path,a.message))}}return t}function CGe(e,t,n,r){n===void 0&&(n=!1),r===void 0&&(r={});var i=QR(e);return t[n?"validateSync":"validate"](i,{abortEarly:!1,context:r})}function QR(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||vz(i)?QR(i):i!==""?i:void 0}):vz(e[r])?t[r]=QR(e[r]):t[r]=e[r]!==""?e[r]:void 0}return t}function kGe(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?WR(Array.isArray(o)?[]:{},o,n):o}else n.isMergeableObject(o)?r[a]=WR(e[a],o,n):e.indexOf(o)===-1&&r.push(o)}),r}function TGe(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function RGe(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 OGe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?R.useLayoutEffect:R.useEffect;function Ao(e){var t=R.useRef(e);return OGe(function(){t.current=e}),R.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 AGe=R.forwardRef(function(e,t){var n=e.action,r=$q(e,["action"]),i=n??"#",o=xGe(),a=o.handleReset,s=o.handleSubmit;return R.createElement("form",Object.assign({onSubmit:s,ref:t,onReset:a,action:i},r))});AGe.displayName="Form";const DGe=Ve(Gwe)({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)"}}}),nb=({label:e,...t})=>T.jsxs(Vn,{mr:1,children:[T.jsxs(Vn,{direction:"row",justifyContent:"space-between",children:[T.jsx(_u,{children:e}),T.jsx(_u,{children:t.value})]}),T.jsx(DGe,{...t})]}),Xg={enter:"Enter",backspace:"Backspace"},IGe={ime:229},PGe=Ve(rV)(({theme:e,size:t})=>`
|
|
515
|
-
max-width: 100%;
|
|
516
|
-
margin: 2px 4px;
|
|
517
|
-
height: ${t==="small"?"26px":"32px"};
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
&[aria-disabled="true"] > svg {
|
|
521
|
-
color: ${e.palette.action.disabled};
|
|
522
|
-
cursor: default;
|
|
523
|
-
}
|
|
524
|
-
|
|
525
|
-
&.MuiChipsInput-Chip-Editing {
|
|
526
|
-
background-color: ${e.palette.primary.light};
|
|
527
|
-
color: ${e.palette.primary.contrastText};
|
|
528
|
-
}
|
|
529
|
-
`),$Ge={ChipStyled:PGe},Uz=e=>{const{className:t,index:n,onDelete:r,disabled:i,onEdit:o,isEditing:a,disableEdition:s,...l}=e,u=d=>{d.key===Xg.enter&&r(n)},f=d=>{var v,g;(v=d==null?void 0:d.preventDefault)==null||v.call(d),(g=d==null?void 0:d.stopPropagation)==null||g.call(d),r(n)},p=d=>{d.target.textContent===l.label&&(i||o(n))};return T.jsx($Ge.ChipStyled,{className:`MuiChipsInput-Chip ${a?"MuiChipsInput-Chip-Editing":""} ${t||""}`,onKeyDown:u,disabled:i,onDoubleClick:s?void 0:p,tabIndex:i?-1:0,"aria-disabled":i,onDelete:f,...l})};function FGe(e){return typeof e=="boolean"}function LGe(e){return typeof e=="object"&&!Array.isArray(e)&&e!==null}function MGe(e,t){typeof t=="function"?t(e):t&&LGe(t)&&"current"in t&&(t.current=e)}const NGe=Ve("div")`
|
|
530
|
-
top: 50%;
|
|
531
|
-
transform: translateY(-50%);
|
|
532
|
-
right: 10px;
|
|
533
|
-
position: absolute;
|
|
534
|
-
`,BGe=Ve(sD)(e=>{var t;return`
|
|
535
|
-
max-width: 100%;
|
|
536
|
-
|
|
537
|
-
.MuiInputBase-root {
|
|
538
|
-
display: flex;
|
|
539
|
-
flex-wrap: wrap;
|
|
540
|
-
align-items: flex-start;
|
|
541
|
-
row-gap: 5px;
|
|
542
|
-
padding-top: ${e.size==="small"?"5px":"9px"};
|
|
543
|
-
padding-right: ${(t=e.InputProps)!=null&&t.endAdornment?"30px":"9px"};
|
|
544
|
-
padding-bottom: ${e.size==="small"?"5px":"9px"};
|
|
545
|
-
padding-left: 10px;
|
|
546
|
-
|
|
547
|
-
input {
|
|
548
|
-
min-width: 30px;
|
|
549
|
-
width: auto;
|
|
550
|
-
flex-grow: 1;
|
|
551
|
-
text-overflow: ellipsis;
|
|
552
|
-
padding: ${e.size==="small"?"3.5px 4px":"7.5px 4px"};
|
|
553
|
-
align-self: center;
|
|
554
|
-
}
|
|
555
|
-
}
|
|
556
|
-
`}),jGe=Ve(rV)(({theme:e,size:t})=>`
|
|
557
|
-
max-width: 100%;
|
|
558
|
-
margin: 2px 4px;
|
|
559
|
-
height: ${t==="small"?"26px":"32px"};
|
|
560
|
-
|
|
561
|
-
&[aria-disabled="true"] > svg.MuiChip-deleteIcon {
|
|
562
|
-
color: ${e.palette.action.disabled};
|
|
563
|
-
cursor: default;
|
|
564
|
-
}
|
|
565
|
-
`),Vz={ChipStyled:jGe,TextFieldStyled:BGe,EndAdornmentClose:NGe},Mq=yt.forwardRef((e,t)=>{const{chips:n,onAddChip:r,onEditChip:i,onDeleteChip:o,onDeleteAllChips:a,InputProps:s,onInputChange:l,disabled:u,clearInputOnBlur:f,validate:p,error:d,helperText:v,hideClearAll:g,inputProps:y,size:x,disableDeleteOnBackspace:b,disableEdition:w,className:S,renderChip:C,addOnWhichKey:k,onFocus:D,inputValue:P,...B}=e,[V,U]=yt.useState(""),[W,se]=yt.useState(""),ne=yt.useRef(null),re=yt.useRef(!1),Z=yt.useRef(typeof P=="string"),[F,te]=yt.useState(null),{onKeyDown:Y,...ee}=y||{},{inputRef:G,...L}=s||{},A=()=>{se("")},ie=Z.current,ae=ie?P:V,ce=Ce=>{l==null||l(Ce),ie||U(Ce)},oe=Ce=>{ce(n[Ce]),te(Ce),A()},xe=()=>{te(null)},ke=()=>{A(),ce("")},Ee=Ce=>{ce(Ce.target.value)},Fe=()=>{!re.current||(F!==null?(xe(),ke()):f&&ke(),re.current=!1)},Le=Ce=>{ne.current=Ce,t&&MGe(Ce,t)},Ue=(Ce,Oe)=>j=>{if(typeof p=="function"){const H=p(Ce);if(H===!1){Oe.preventDefault();return}if(!FGe(H)&&H.isError){Oe.preventDefault(),se(H.textError);return}}j()},He=(Ce,Oe,j)=>{Ue(Ce,j)(()=>{i==null||i(Ce,Oe),xe(),ke()})},Qe=(Ce,Oe)=>{Ue(Ce,Oe)(()=>{r==null||r(ae.trim()),ke()})},qe=(Ce,Oe)=>Oe===IGe.ime?!1:k?Array.isArray(k)?k.some(j=>j===Ce):k===Ce:Ce===Xg.enter,ut=Ce=>{const Oe=qe(Ce.key,Ce.keyCode),j=Ce.key===Xg.backspace,H=ae.trim();if(Ce.code==="Tab"){Fe();return}if(Oe&&Ce.preventDefault(),ae.length>0&&Oe)H.length===0?ke():F!==null?He(H,F,Ce):Qe(H,Ce);else if(j&&ae.length===0&&n.length>0&&!b){const he=n.length-1;o==null||o(he),F===he&&xe()}Y==null||Y(Ce)},et=Ce=>{Ce.preventDefault(),D==null||D(Ce),re.current=!0},it=Ce=>{Ce.preventDefault(),!g&&!u&&(a==null||a(),ke(),xe())},wt=Ce=>{var Oe;Ce===F?(ke(),xe()):oe(Ce),(Oe=ne.current)==null||Oe.focus()},me=Ce=>{u||(o==null||o(Ce),F!==null&&(xe(),ke()))},Te=n.length>0;return T.jsx(Zpe,{onClickAway:Fe,children:T.jsx(Vz.TextFieldStyled,{value:ae,onChange:Ee,ref:t,className:`MuiChipsInput-TextField ${S||""}`,size:x,placeholder:"Type and press enter",onFocus:et,inputProps:{onKeyDown:ut,...ee},disabled:u,error:!!W||d,helperText:W||v,InputProps:{inputRef:Le,startAdornment:Te?n.map((Ce,Oe)=>{const j=`chip-${Oe}`,H={index:Oe,onEdit:wt,label:Ce,title:Ce,isEditing:Oe===F,size:x,disabled:u,disableEdition:w,onDelete:me};return C?C(Uz,j,H):R.createElement(Uz,{...H,key:j})}):null,endAdornment:g?null:T.jsx(Vz.EndAdornmentClose,{style:{visibility:Te?"visible":"hidden"},children:T.jsx(ei,{"aria-label":"Clear",title:"Clear",disabled:u,size:"small",onClick:it,children:T.jsx(Bp,{fontSize:"small"})})}),...L},...B})})});Mq.defaultProps={onInputChange:()=>{},clearInputOnBlur:!1,hideClearAll:!1,disableDeleteOnBackspace:!1,disableEdition:!1,addOnWhichKey:Xg.enter,onDeleteChip:()=>{},onAddChip:()=>{},inputValue:void 0,onEditChip:()=>{},renderChip:void 0,onDeleteAllChips:()=>{},validate:()=>!0};function zGe(e,t){return[...e,t]}function UGe(e,t){return e.filter((n,r)=>t!==r)}function VGe(e,t,n){return e.map((r,i)=>t===i?n:r)}const Nq=yt.forwardRef((e,t)=>{const{value:n,onChange:r,onAddChip:i,onInputChange:o,onDeleteChip:a,disabled:s,validate:l,clearInputOnBlur:u,hideClearAll:f,disableDeleteOnBackspace:p,onEditChip:d,renderChip:v,disableEdition:g,addOnWhichKey:y,inputValue:x,...b}=e;return T.jsx(Mq,{chips:n,onAddChip:w=>{if(s)return;const S=zGe(n,w),C=S.length-1;i==null||i(w,C),r==null||r(S)},onInputChange:o,disableDeleteOnBackspace:p,onDeleteChip:w=>{if(s)return;const S=n[w];r==null||r(UGe(n,w)),a==null||a(S,w)},onEditChip:(w,S)=>{s||g||(r==null||r(VGe(n,S,w)),d==null||d(w,S))},renderChip:v,onDeleteAllChips:()=>{r==null||r([])},clearInputOnBlur:u,disabled:s,disableEdition:g,validate:l,inputValue:x,hideClearAll:f,addOnWhichKey:y,...b,ref:t})});Nq.defaultProps={value:[],onChange:()=>{},onAddChip:()=>{},onDeleteChip:()=>{},onInputChange:()=>{},onEditChip:()=>{},addOnWhichKey:Xg.enter,clearInputOnBlur:!1,disableEdition:!1,hideClearAll:!1,disableDeleteOnBackspace:!1,validate:()=>!0};const WGe={GPT4:["gpt-4"],"Chat GPT":["gpt-3.5-turbo"],GPT3:["text-davinci-003","text-davinci-002"]},KGe=()=>{const[e,t]=yo(xR),n=WI({model_name:rw(),stop:oq().of(rw()),temperature:Lm().min(0).max(1),top_p:Lm().min(0).max(1),frequency_penalty:Lm().min(0).max(1),presence_penalty:Lm().min(0).max(1)}),r=Lq({initialValues:e||{},validationSchema:n,onSubmit:async()=>{}});R.useEffect(()=>{e&&r.setValues(e)},[e]),R.useEffect(()=>{t(r.values)},[r.values]);const i=T.jsxs(Pt,{children:[T.jsx(_u,{children:"Model"}),T.jsx(M_,{fullWidth:!0,size:"small",name:"model_name",value:r.values.model_name,onChange:r.handleChange,children:Object.entries(WGe).map(([f,p])=>{const d=T.jsx(nV,{children:f}),v=p.map((g,y)=>T.jsx(ls,{value:g,children:g},y));return[d,...v]})})]}),o=T.jsx(nb,{label:"Temperature",name:"temperature",value:r.values.temperature,onChange:r.handleChange,min:0,max:1,step:.1}),a=T.jsxs(Pt,{children:[T.jsx(_u,{children:"Stop sequences"}),T.jsx(Nq,{size:"small",placeholder:"",value:Array.isArray(r.values.stop)?r.values.stop:[r.values.stop],onChange:f=>r.setFieldValue("stop",f)})]}),s=T.jsx(nb,{label:"Top P",name:"top_p",value:r.values.top_p,onChange:r.handleChange,min:0,max:1,step:.1}),l=T.jsx(nb,{label:"Frequency penalty",name:"frequency_penalty",value:r.values.frequency_penalty,onChange:r.handleChange,min:0,max:1,step:.1}),u=T.jsx(nb,{label:"Presence penalty",name:"presence_penalty",value:r.values.presence_penalty,onChange:r.handleChange,min:0,max:1,step:.1});return T.jsxs(Vn,{spacing:2,sx:{width:"250px"},children:[i,o,a,s,l,u]})};var t2={},HGe=Wn;Object.defineProperty(t2,"__esModule",{value:!0});var Bq=t2.default=void 0,qGe=HGe(Kn()),GGe=T,QGe=(0,qGe.default)((0,GGe.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");Bq=t2.default=QGe;const YGe={COMPLETION:{backgroundColor:"#d2f4d3",color:"black"}};function jq(){const e=Ft(_R),t=Er(_R),n=Ft(xR),r=Ft(U_),i=Er(xR),[o,a]=R.useState(Nl.EditorState.createEmpty()),[s,l]=R.useState(!1);R.useEffect(()=>{if(e!=null&&e.prompt){const v=Nl.EditorState.createWithContent(Nl.ContentState.createFromText(e.prompt));a(f(v,e.completion))}e!=null&&e.llmSettings&&i({...e.llmSettings})},[e]);const u=()=>{e&&t({...e})},f=(v,g)=>{const y=v.getCurrentContent(),x=y.getBlockMap(),b=x.last().getKey(),w=x.last().getLength(),S=new Nl.SelectionState({anchorKey:b,anchorOffset:w,focusKey:b,focusOffset:w}),C=Nl.Modifier.insertText(y,S,`
|
|
566
|
-
`+g,ln.OrderedSet.of("COMPLETION")),k=Nl.EditorState.push(v,C,"insert-characters");return Nl.EditorState.forceSelection(k,C.getSelectionAfter())},p=()=>{t(void 0)},d=async()=>{if(!n)return;const v=o.getCurrentContent().getPlainText();try{l(!0);const g=await tSe(v,n,r);a(f(o,g))}catch(g){g instanceof Error&&jr.error(g.message)}finally{l(!1)}};return T.jsxs($_,{open:!!e,fullScreen:!0,PaperProps:{style:{backgroundImage:"none"}},onClose:p,id:"playground","aria-labelledby":"playground","aria-describedby":"playground",children:[T.jsxs(nD,{sx:{display:"flex",alignItems:"center"},children:[T.jsx(bn,{fontSize:"18px",fontWeight:700,children:"Prompt playground"}),T.jsx(ei,{href:"https://docs.chainlit.io/concepts/prompt-playground",target:"_blank",children:T.jsx(fs,{title:"Help",children:T.jsx(Bq,{})})}),T.jsx(ei,{edge:"end",id:"close-playground",sx:{ml:"auto"},onClick:p,children:T.jsx(Bp,{})})]}),T.jsxs(F_,{sx:{display:"flex",flexDirection:"column"},children:[T.jsxs(Vn,{direction:"row",spacing:2,sx:{overflowY:"auto",overflowX:"hidden",flexGrow:1},children:[T.jsx(Pt,{sx:{fontFamily:"Inter",fontSize:"16px",lineHeight:"24px",padding:"0.75rem",border:v=>`1px solid ${v.palette.divider}`,borderRadius:"0.375rem",overflowY:"auto",width:"100%",flexGrow:1,caretColor:v=>v.palette.text.primary},children:T.jsx(Nl.Editor,{customStyleMap:YGe,editorState:o,onChange:a})}),T.jsx(KGe,{})]}),T.jsxs(Vn,{direction:"row",alignItems:"center",mt:1,spacing:2,children:[T.jsx(Z_,{onClick:d,variant:"contained",sx:{padding:"6px 12px",height:"35px"},loading:s,children:"Submit"}),T.jsx(fs,{title:"Restore original",children:T.jsx(ei,{onClick:u,children:T.jsx(QH,{})})})]})]})]})}const zq=e=>{switch(e.type){case"image":return T.jsx(u7,{element:e});case"text":return T.jsx(c7,{element:e});case"pdf":return T.jsx(m7,{element:e});default:return null}},XGe=()=>{const{id:e}=UV(),n=Ft(Cv).find(r=>r.id==e||r.tempId==e);return n?T.jsxs(Pt,{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:[T.jsx(bn,{fontWeight:700,fontSize:"25px",children:n.name}),zq(n)]}):T.jsx(WV,{to:"/"})};var n2={exports:{}},Vv={},Px={exports:{}},Uq={};const JGe=C4(Ude);var pr={},_s={};Object.defineProperty(_s,"__esModule",{value:!0});_s.dontSetMe=rQe;_s.findInArray=ZGe;_s.int=nQe;_s.isFunction=eQe;_s.isNum=tQe;function ZGe(e,t){for(var n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]}function eQe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"}function tQe(e){return typeof e=="number"&&!isNaN(e)}function nQe(e){return parseInt(e,10)}function rQe(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 gf={};Object.defineProperty(gf,"__esModule",{value:!0});gf.browserPrefixToKey=Wq;gf.browserPrefixToStyle=iQe;gf.default=void 0;gf.getPrefix=Vq;var JC=["Moz","Webkit","O","ms"];function Vq(){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<JC.length;i++)if(Wq(n,JC[i])in r)return JC[i];return""}function Wq(e,t){return t?"".concat(t).concat(oQe(e)):e}function iQe(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e}function oQe(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 aQe=Vq();gf.default=aQe;function YR(e){"@babel/helpers - typeof";return YR=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},YR(e)}Object.defineProperty(pr,"__esModule",{value:!0});pr.addClassName=Qq;pr.addEvent=uQe;pr.addUserSelectStyles=wQe;pr.createCSSTransform=gQe;pr.createSVGTransform=vQe;pr.getTouch=yQe;pr.getTouchIdentifier=bQe;pr.getTranslation=r2;pr.innerHeight=pQe;pr.innerWidth=hQe;pr.matchesSelector=Gq;pr.matchesSelectorAndParentsTo=lQe;pr.offsetXYFromParent=mQe;pr.outerHeight=fQe;pr.outerWidth=dQe;pr.removeClassName=Yq;pr.removeEvent=cQe;pr.removeUserSelectStyles=_Qe;var po=_s,Wz=sQe(gf);function Kq(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Kq=function(i){return i?n:t})(e)}function sQe(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||YR(e)!=="object"&&typeof e!="function")return{default:e};var n=Kq(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 Kz(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 Hq(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Kz(Object(n),!0).forEach(function(r){qq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kz(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rb="";function Gq(e,t){return rb||(rb=(0,po.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(n){return(0,po.isFunction)(e[n])})),(0,po.isFunction)(e[rb])?e[rb](t):!1}function lQe(e,t,n){var r=e;do{if(Gq(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1}function uQe(e,t,n,r){if(e){var i=Hq({capture:!0},r);e.addEventListener?e.addEventListener(t,n,i):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n}}function cQe(e,t,n,r){if(e){var i=Hq({capture:!0},r);e.removeEventListener?e.removeEventListener(t,n,i):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null}}function fQe(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,po.int)(n.borderTopWidth),t+=(0,po.int)(n.borderBottomWidth),t}function dQe(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,po.int)(n.borderLeftWidth),t+=(0,po.int)(n.borderRightWidth),t}function pQe(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,po.int)(n.paddingTop),t-=(0,po.int)(n.paddingBottom),t}function hQe(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,po.int)(n.paddingLeft),t-=(0,po.int)(n.paddingRight),t}function mQe(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 gQe(e,t){var n=r2(e,t,"px");return qq({},(0,Wz.browserPrefixToKey)("transform",Wz.default),n)}function vQe(e,t){var n=r2(e,t,"");return n}function r2(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 yQe(e,t){return e.targetTouches&&(0,po.findInArray)(e.targetTouches,function(n){return t===n.identifier})||e.changedTouches&&(0,po.findInArray)(e.changedTouches,function(n){return t===n.identifier})}function bQe(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier}function wQe(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;}
|
|
567
|
-
`,t.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
|
|
568
|
-
`,e.getElementsByTagName("head")[0].appendChild(t)),e.body&&Qq(e.body,"react-draggable-transparent-selection")}}function _Qe(e){if(e)try{if(e.body&&Yq(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 Qq(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function Yq(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}var xs={};Object.defineProperty(xs,"__esModule",{value:!0});xs.canDragX=EQe;xs.canDragY=CQe;xs.createCoreData=TQe;xs.createDraggableData=RQe;xs.getBoundPosition=xQe;xs.getControlPosition=kQe;xs.snapToGrid=SQe;var ro=_s,Od=pr;function xQe(e,t,n){if(!e.props.bounds)return[t,n];var r=e.props.bounds;r=typeof r=="string"?r:OQe(r);var i=i2(e);if(typeof r=="string"){var o=i.ownerDocument,a=o.defaultView,s;if(r==="parent"?s=i.parentNode:s=o.querySelector(r),!(s instanceof a.HTMLElement))throw new Error('Bounds selector "'+r+'" could not find an element.');var l=s,u=a.getComputedStyle(i),f=a.getComputedStyle(l);r={left:-i.offsetLeft+(0,ro.int)(f.paddingLeft)+(0,ro.int)(u.marginLeft),top:-i.offsetTop+(0,ro.int)(f.paddingTop)+(0,ro.int)(u.marginTop),right:(0,Od.innerWidth)(l)-(0,Od.outerWidth)(i)-i.offsetLeft+(0,ro.int)(f.paddingRight)-(0,ro.int)(u.marginRight),bottom:(0,Od.innerHeight)(l)-(0,Od.outerHeight)(i)-i.offsetTop+(0,ro.int)(f.paddingBottom)-(0,ro.int)(u.marginBottom)}}return(0,ro.isNum)(r.right)&&(t=Math.min(t,r.right)),(0,ro.isNum)(r.bottom)&&(n=Math.min(n,r.bottom)),(0,ro.isNum)(r.left)&&(t=Math.max(t,r.left)),(0,ro.isNum)(r.top)&&(n=Math.max(n,r.top)),[t,n]}function SQe(e,t,n){var r=Math.round(t/e[0])*e[0],i=Math.round(n/e[1])*e[1];return[r,i]}function EQe(e){return e.props.axis==="both"||e.props.axis==="x"}function CQe(e){return e.props.axis==="both"||e.props.axis==="y"}function kQe(e,t,n){var r=typeof t=="number"?(0,Od.getTouch)(e,t):null;if(typeof t=="number"&&!r)return null;var i=i2(n),o=n.props.offsetParent||i.offsetParent||i.ownerDocument.body;return(0,Od.offsetXYFromParent)(r||e,o,n.props.scale)}function TQe(e,t,n){var r=e.state,i=!(0,ro.isNum)(r.lastX),o=i2(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 RQe(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 OQe(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function i2(e){var t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}var $x={},Fx={};Object.defineProperty(Fx,"__esModule",{value:!0});Fx.default=AQe;function AQe(){}function ow(e){"@babel/helpers - typeof";return ow=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},ow(e)}Object.defineProperty($x,"__esModule",{value:!0});$x.default=void 0;var ZC=IQe(R),to=o2(fv),DQe=o2(Qc),li=pr,Bl=xs,ek=_s,wm=o2(Fx);function o2(e){return e&&e.__esModule?e:{default:e}}function Xq(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Xq=function(i){return i?n:t})(e)}function IQe(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||ow(e)!=="object"&&typeof e!="function")return{default:e};var n=Xq(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 Hz(e,t){return LQe(e)||FQe(e,t)||$Qe(e,t)||PQe()}function PQe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
569
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $Qe(e,t){if(e){if(typeof e=="string")return qz(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 qz(e,t)}}function qz(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 FQe(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 LQe(e){if(Array.isArray(e))return e}function MQe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gz(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 NQe(e,t,n){return t&&Gz(e.prototype,t),n&&Gz(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function BQe(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&&XR(e,t)}function XR(e,t){return XR=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},XR(e,t)}function jQe(e){var t=UQe();return function(){var r=aw(e),i;if(t){var o=aw(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return zQe(this,i)}}function zQe(e,t){if(t&&(ow(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ci(e)}function ci(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function UQe(){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 aw(e){return aw=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},aw(e)}function Po(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ya={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},jl=ya.mouse,Lx=function(e){BQe(n,e);var t=jQe(n);function n(){var r;MQe(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)),Po(ci(r),"state",{dragging:!1,lastX:NaN,lastY:NaN,touchIdentifier:null}),Po(ci(r),"mounted",!1),Po(ci(r),"handleDragStart",function(s){if(r.props.onMouseDown(s),!r.props.allowAnyClick&&typeof s.button=="number"&&s.button!==0)return!1;var l=r.findDOMNode();if(!l||!l.ownerDocument||!l.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");var u=l.ownerDocument;if(!(r.props.disabled||!(s.target instanceof u.defaultView.Node)||r.props.handle&&!(0,li.matchesSelectorAndParentsTo)(s.target,r.props.handle,l)||r.props.cancel&&(0,li.matchesSelectorAndParentsTo)(s.target,r.props.cancel,l))){s.type==="touchstart"&&s.preventDefault();var f=(0,li.getTouchIdentifier)(s);r.setState({touchIdentifier:f});var p=(0,Bl.getControlPosition)(s,f,ci(r));if(p!=null){var d=p.x,v=p.y,g=(0,Bl.createCoreData)(ci(r),d,v);(0,wm.default)("DraggableCore: handleDragStart: %j",g),(0,wm.default)("calling",r.props.onStart);var y=r.props.onStart(s,g);y===!1||r.mounted===!1||(r.props.enableUserSelectHack&&(0,li.addUserSelectStyles)(u),r.setState({dragging:!0,lastX:d,lastY:v}),(0,li.addEvent)(u,jl.move,r.handleDrag),(0,li.addEvent)(u,jl.stop,r.handleDragStop))}}}),Po(ci(r),"handleDrag",function(s){var l=(0,Bl.getControlPosition)(s,r.state.touchIdentifier,ci(r));if(l!=null){var u=l.x,f=l.y;if(Array.isArray(r.props.grid)){var p=u-r.state.lastX,d=f-r.state.lastY,v=(0,Bl.snapToGrid)(r.props.grid,p,d),g=Hz(v,2);if(p=g[0],d=g[1],!p&&!d)return;u=r.state.lastX+p,f=r.state.lastY+d}var y=(0,Bl.createCoreData)(ci(r),u,f);(0,wm.default)("DraggableCore: handleDrag: %j",y);var x=r.props.onDrag(s,y);if(x===!1||r.mounted===!1){try{r.handleDragStop(new MouseEvent("mouseup"))}catch{var b=document.createEvent("MouseEvents");b.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),r.handleDragStop(b)}return}r.setState({lastX:u,lastY:f})}}),Po(ci(r),"handleDragStop",function(s){if(r.state.dragging){var l=(0,Bl.getControlPosition)(s,r.state.touchIdentifier,ci(r));if(l!=null){var u=l.x,f=l.y;if(Array.isArray(r.props.grid)){var p=u-r.state.lastX||0,d=f-r.state.lastY||0,v=(0,Bl.snapToGrid)(r.props.grid,p,d),g=Hz(v,2);p=g[0],d=g[1],u=r.state.lastX+p,f=r.state.lastY+d}var y=(0,Bl.createCoreData)(ci(r),u,f),x=r.props.onStop(s,y);if(x===!1||r.mounted===!1)return!1;var b=r.findDOMNode();b&&r.props.enableUserSelectHack&&(0,li.removeUserSelectStyles)(b.ownerDocument),(0,wm.default)("DraggableCore: handleDragStop: %j",y),r.setState({dragging:!1,lastX:NaN,lastY:NaN}),b&&((0,wm.default)("DraggableCore: Removing handlers"),(0,li.removeEvent)(b.ownerDocument,jl.move,r.handleDrag),(0,li.removeEvent)(b.ownerDocument,jl.stop,r.handleDragStop))}}}),Po(ci(r),"onMouseDown",function(s){return jl=ya.mouse,r.handleDragStart(s)}),Po(ci(r),"onMouseUp",function(s){return jl=ya.mouse,r.handleDragStop(s)}),Po(ci(r),"onTouchStart",function(s){return jl=ya.touch,r.handleDragStart(s)}),Po(ci(r),"onTouchEnd",function(s){return jl=ya.touch,r.handleDragStop(s)}),r}return NQe(n,[{key:"componentDidMount",value:function(){this.mounted=!0;var i=this.findDOMNode();i&&(0,li.addEvent)(i,ya.touch.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.findDOMNode();if(i){var o=i.ownerDocument;(0,li.removeEvent)(o,ya.mouse.move,this.handleDrag),(0,li.removeEvent)(o,ya.touch.move,this.handleDrag),(0,li.removeEvent)(o,ya.mouse.stop,this.handleDragStop),(0,li.removeEvent)(o,ya.touch.stop,this.handleDragStop),(0,li.removeEvent)(i,ya.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,li.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:DQe.default.findDOMNode(this)}},{key:"render",value:function(){return ZC.cloneElement(ZC.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}]),n}(ZC.Component);$x.default=Lx;Po(Lx,"displayName","DraggableCore");Po(Lx,"propTypes",{allowAnyClick:to.default.bool,disabled:to.default.bool,enableUserSelectHack:to.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:to.default.arrayOf(to.default.number),handle:to.default.string,cancel:to.default.string,nodeRef:to.default.object,onStart:to.default.func,onDrag:to.default.func,onStop:to.default.func,onMouseDown:to.default.func,scale:to.default.number,className:ek.dontSetMe,style:ek.dontSetMe,transform:ek.dontSetMe});Po(Lx,"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(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},t(A)}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return u.default}}),e.default=void 0;var n=g(R),r=d(fv),i=d(Qc),o=d(JGe),a=pr,s=xs,l=_s,u=d($x),f=d(Fx),p=["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"];function d(A){return A&&A.__esModule?A:{default:A}}function v(A){if(typeof WeakMap!="function")return null;var ie=new WeakMap,ae=new WeakMap;return(v=function(oe){return oe?ae:ie})(A)}function g(A,ie){if(!ie&&A&&A.__esModule)return A;if(A===null||t(A)!=="object"&&typeof A!="function")return{default:A};var ae=v(ie);if(ae&&ae.has(A))return ae.get(A);var ce={},oe=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var xe in A)if(xe!=="default"&&Object.prototype.hasOwnProperty.call(A,xe)){var ke=oe?Object.getOwnPropertyDescriptor(A,xe):null;ke&&(ke.get||ke.set)?Object.defineProperty(ce,xe,ke):ce[xe]=A[xe]}return ce.default=A,ae&&ae.set(A,ce),ce}function y(){return y=Object.assign||function(A){for(var ie=1;ie<arguments.length;ie++){var ae=arguments[ie];for(var ce in ae)Object.prototype.hasOwnProperty.call(ae,ce)&&(A[ce]=ae[ce])}return A},y.apply(this,arguments)}function x(A,ie){if(A==null)return{};var ae=b(A,ie),ce,oe;if(Object.getOwnPropertySymbols){var xe=Object.getOwnPropertySymbols(A);for(oe=0;oe<xe.length;oe++)ce=xe[oe],!(ie.indexOf(ce)>=0)&&Object.prototype.propertyIsEnumerable.call(A,ce)&&(ae[ce]=A[ce])}return ae}function b(A,ie){if(A==null)return{};var ae={},ce=Object.keys(A),oe,xe;for(xe=0;xe<ce.length;xe++)oe=ce[xe],!(ie.indexOf(oe)>=0)&&(ae[oe]=A[oe]);return ae}function w(A,ie){var ae=Object.keys(A);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(A);ie&&(ce=ce.filter(function(oe){return Object.getOwnPropertyDescriptor(A,oe).enumerable})),ae.push.apply(ae,ce)}return ae}function S(A){for(var ie=1;ie<arguments.length;ie++){var ae=arguments[ie]!=null?arguments[ie]:{};ie%2?w(Object(ae),!0).forEach(function(ce){G(A,ce,ae[ce])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(ae)):w(Object(ae)).forEach(function(ce){Object.defineProperty(A,ce,Object.getOwnPropertyDescriptor(ae,ce))})}return A}function C(A,ie){return V(A)||B(A,ie)||D(A,ie)||k()}function k(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
570
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function D(A,ie){if(A){if(typeof A=="string")return P(A,ie);var ae=Object.prototype.toString.call(A).slice(8,-1);if(ae==="Object"&&A.constructor&&(ae=A.constructor.name),ae==="Map"||ae==="Set")return Array.from(A);if(ae==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ae))return P(A,ie)}}function P(A,ie){(ie==null||ie>A.length)&&(ie=A.length);for(var ae=0,ce=new Array(ie);ae<ie;ae++)ce[ae]=A[ae];return ce}function B(A,ie){var ae=A==null?null:typeof Symbol<"u"&&A[Symbol.iterator]||A["@@iterator"];if(ae!=null){var ce=[],oe=!0,xe=!1,ke,Ee;try{for(ae=ae.call(A);!(oe=(ke=ae.next()).done)&&(ce.push(ke.value),!(ie&&ce.length===ie));oe=!0);}catch(Fe){xe=!0,Ee=Fe}finally{try{!oe&&ae.return!=null&&ae.return()}finally{if(xe)throw Ee}}return ce}}function V(A){if(Array.isArray(A))return A}function U(A,ie){if(!(A instanceof ie))throw new TypeError("Cannot call a class as a function")}function W(A,ie){for(var ae=0;ae<ie.length;ae++){var ce=ie[ae];ce.enumerable=ce.enumerable||!1,ce.configurable=!0,"value"in ce&&(ce.writable=!0),Object.defineProperty(A,ce.key,ce)}}function se(A,ie,ae){return ie&&W(A.prototype,ie),ae&&W(A,ae),Object.defineProperty(A,"prototype",{writable:!1}),A}function ne(A,ie){if(typeof ie!="function"&&ie!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(ie&&ie.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),ie&&re(A,ie)}function re(A,ie){return re=Object.setPrototypeOf||function(ce,oe){return ce.__proto__=oe,ce},re(A,ie)}function Z(A){var ie=Y();return function(){var ce=ee(A),oe;if(ie){var xe=ee(this).constructor;oe=Reflect.construct(ce,arguments,xe)}else oe=ce.apply(this,arguments);return F(this,oe)}}function F(A,ie){if(ie&&(t(ie)==="object"||typeof ie=="function"))return ie;if(ie!==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 Y(){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(ae){return ae.__proto__||Object.getPrototypeOf(ae)},ee(A)}function G(A,ie,ae){return ie in A?Object.defineProperty(A,ie,{value:ae,enumerable:!0,configurable:!0,writable:!0}):A[ie]=ae,A}var L=function(A){ne(ae,A);var ie=Z(ae);function ae(ce){var oe;return U(this,ae),oe=ie.call(this,ce),G(te(oe),"onDragStart",function(xe,ke){(0,f.default)("Draggable: onDragStart: %j",ke);var Ee=oe.props.onStart(xe,(0,s.createDraggableData)(te(oe),ke));if(Ee===!1)return!1;oe.setState({dragging:!0,dragged:!0})}),G(te(oe),"onDrag",function(xe,ke){if(!oe.state.dragging)return!1;(0,f.default)("Draggable: onDrag: %j",ke);var Ee=(0,s.createDraggableData)(te(oe),ke),Fe={x:Ee.x,y:Ee.y};if(oe.props.bounds){var Le=Fe.x,Ue=Fe.y;Fe.x+=oe.state.slackX,Fe.y+=oe.state.slackY;var He=(0,s.getBoundPosition)(te(oe),Fe.x,Fe.y),Qe=C(He,2),qe=Qe[0],ut=Qe[1];Fe.x=qe,Fe.y=ut,Fe.slackX=oe.state.slackX+(Le-Fe.x),Fe.slackY=oe.state.slackY+(Ue-Fe.y),Ee.x=Fe.x,Ee.y=Fe.y,Ee.deltaX=Fe.x-oe.state.x,Ee.deltaY=Fe.y-oe.state.y}var et=oe.props.onDrag(xe,Ee);if(et===!1)return!1;oe.setState(Fe)}),G(te(oe),"onDragStop",function(xe,ke){if(!oe.state.dragging)return!1;var Ee=oe.props.onStop(xe,(0,s.createDraggableData)(te(oe),ke));if(Ee===!1)return!1;(0,f.default)("Draggable: onDragStop: %j",ke);var Fe={dragging:!1,slackX:0,slackY:0},Le=!!oe.props.position;if(Le){var Ue=oe.props.position,He=Ue.x,Qe=Ue.y;Fe.x=He,Fe.y=Qe}oe.setState(Fe)}),oe.state={dragging:!1,dragged:!1,x:ce.position?ce.position.x:ce.defaultPosition.x,y:ce.position?ce.position.y:ce.defaultPosition.y,prevPropsPosition:S({},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."),oe}return se(ae,[{key:"componentDidMount",value:function(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"findDOMNode",value:function(){var oe,xe,ke;return(oe=(xe=this.props)===null||xe===void 0||(ke=xe.nodeRef)===null||ke===void 0?void 0:ke.current)!==null&&oe!==void 0?oe:i.default.findDOMNode(this)}},{key:"render",value:function(){var oe,xe=this.props;xe.axis,xe.bounds;var ke=xe.children,Ee=xe.defaultPosition,Fe=xe.defaultClassName,Le=xe.defaultClassNameDragging,Ue=xe.defaultClassNameDragged,He=xe.position,Qe=xe.positionOffset;xe.scale;var qe=x(xe,p),ut={},et=null,it=!!He,wt=!it||this.state.dragging,me=He||Ee,Te={x:(0,s.canDragX)(this)&&wt?this.state.x:me.x,y:(0,s.canDragY)(this)&&wt?this.state.y:me.y};this.state.isElementSVG?et=(0,a.createSVGTransform)(Te,Qe):ut=(0,a.createCSSTransform)(Te,Qe);var Ce=(0,o.default)(ke.props.className||"",Fe,(oe={},G(oe,Le,this.state.dragging),G(oe,Ue,this.state.dragged),oe));return n.createElement(u.default,y({},qe,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),n.cloneElement(n.Children.only(ke),{className:Ce,style:S(S({},ke.props.style),ut),transform:et}))}}],[{key:"getDerivedStateFromProps",value:function(oe,xe){var ke=oe.position,Ee=xe.prevPropsPosition;return ke&&(!Ee||ke.x!==Ee.x||ke.y!==Ee.y)?((0,f.default)("Draggable: getDerivedStateFromProps %j",{position:ke,prevPropsPosition:Ee}),{x:ke.x,y:ke.y,prevPropsPosition:S({},ke)}):null}}]),ae}(n.Component);e.default=L,G(L,"displayName","Draggable"),G(L,"propTypes",S(S({},u.default.propTypes),{},{axis:r.default.oneOf(["both","x","y","none"]),bounds:r.default.oneOfType([r.default.shape({left:r.default.number,right:r.default.number,top:r.default.number,bottom:r.default.number}),r.default.string,r.default.oneOf([!1])]),defaultClassName:r.default.string,defaultClassNameDragging:r.default.string,defaultClassNameDragged:r.default.string,defaultPosition:r.default.shape({x:r.default.number,y:r.default.number}),positionOffset:r.default.shape({x:r.default.oneOfType([r.default.number,r.default.string]),y:r.default.oneOfType([r.default.number,r.default.string])}),position:r.default.shape({x:r.default.number,y:r.default.number}),className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe})),G(L,"defaultProps",S(S({},u.default.defaultProps),{},{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))})(Uq);var Jq=Uq,Zq=Jq.default,VQe=Jq.DraggableCore;Px.exports=Zq;Px.exports.default=Zq;Px.exports.DraggableCore=VQe;var WQe=Px.exports,a2={};a2.__esModule=!0;a2.cloneElement=YQe;var KQe=HQe(R);function HQe(e){return e&&e.__esModule?e:{default:e}}function Qz(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 Yz(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Qz(Object(n),!0).forEach(function(r){qQe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qz(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qQe(e,t,n){return t=GQe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GQe(e){var t=QQe(e,"string");return typeof t=="symbol"?t:String(t)}function QQe(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 YQe(e,t){return t.style&&e.props.style&&(t.style=Yz(Yz({},e.props.style),t.style)),t.className&&e.props.className&&(t.className=e.props.className+" "+t.className),KQe.default.cloneElement(e,t)}var Wv={};Wv.__esModule=!0;Wv.resizableProps=void 0;var jt=XQe(fv);function XQe(e){return e&&e.__esModule?e:{default:e}}var JQe={axis:jt.default.oneOf(["both","x","y","none"]),className:jt.default.string,children:jt.default.element.isRequired,draggableOpts:jt.default.shape({allowAnyClick:jt.default.bool,cancel:jt.default.string,children:jt.default.node,disabled:jt.default.bool,enableUserSelectHack:jt.default.bool,offsetParent:jt.default.node,grid:jt.default.arrayOf(jt.default.number),handle:jt.default.string,nodeRef:jt.default.object,onStart:jt.default.func,onDrag:jt.default.func,onStop:jt.default.func,onMouseDown:jt.default.func,scale:jt.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=jt.default.number).isRequired.apply(o,n)}return jt.default.number.apply(jt.default,n)},handle:jt.default.oneOfType([jt.default.node,jt.default.func]),handleSize:jt.default.arrayOf(jt.default.number),lockAspectRatio:jt.default.bool,maxConstraints:jt.default.arrayOf(jt.default.number),minConstraints:jt.default.arrayOf(jt.default.number),onResizeStop:jt.default.func,onResizeStart:jt.default.func,onResize:jt.default.func,resizeHandles:jt.default.arrayOf(jt.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:jt.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=jt.default.number).isRequired.apply(o,n)}return jt.default.number.apply(jt.default,n)}};Wv.resizableProps=JQe;Vv.__esModule=!0;Vv.default=void 0;var _m=rYe(R),ZQe=WQe,eYe=a2,tYe=Wv,nYe=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function eG(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(eG=function(i){return i?n:t})(e)}function rYe(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=eG(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 JR(){return JR=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},JR.apply(this,arguments)}function iYe(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 Xz(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 tk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Xz(Object(n),!0).forEach(function(r){oYe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xz(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oYe(e,t,n){return t=aYe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aYe(e){var t=sYe(e,"string");return typeof t=="symbol"?t:String(t)}function sYe(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 lYe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ZR(e,t)}function ZR(e,t){return ZR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},ZR(e,t)}var s2=function(e){lYe(t,e);function t(){for(var r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o))||this,r.handleRefs={},r.lastHandleRect=null,r.slack=null,r}var n=t.prototype;return n.componentWillUnmount=function(){this.resetData()},n.resetData=function(){this.lastHandleRect=this.slack=null},n.runConstraints=function(i,o){var a=this.props,s=a.minConstraints,l=a.maxConstraints,u=a.lockAspectRatio;if(!s&&!l&&!u)return[i,o];if(u){var f=this.props.width/this.props.height,p=i-this.props.width,d=o-this.props.height;Math.abs(p)>Math.abs(d*f)?o=i/f:i=o*f}var v=i,g=o,y=this.slack||[0,0],x=y[0],b=y[1];return i+=x,o+=b,s&&(i=Math.max(s[0],i),o=Math.max(s[1],o)),l&&(i=Math.min(l[0],i),o=Math.min(l[1],o)),this.slack=[x+(v-i),b+(g-o)],[i,o]},n.resizeHandler=function(i,o){var a=this;return function(s,l){var u=l.node,f=l.deltaX,p=l.deltaY;i==="onResizeStart"&&a.resetData();var d=(a.props.axis==="both"||a.props.axis==="x")&&o!=="n"&&o!=="s",v=(a.props.axis==="both"||a.props.axis==="y")&&o!=="e"&&o!=="w";if(!(!d&&!v)){var g=o[0],y=o[o.length-1],x=u.getBoundingClientRect();if(a.lastHandleRect!=null){if(y==="w"){var b=x.left-a.lastHandleRect.left;f+=b}if(g==="n"){var w=x.top-a.lastHandleRect.top;p+=w}}a.lastHandleRect=x,y==="w"&&(f=-f),g==="n"&&(p=-p);var S=a.props.width+(d?f/a.props.transformScale:0),C=a.props.height+(v?p/a.props.transformScale:0),k=a.runConstraints(S,C);S=k[0],C=k[1];var D=S!==a.props.width||C!==a.props.height,P=typeof a.props[i]=="function"?a.props[i]:null,B=i==="onResize"&&!D;P&&!B&&(s.persist==null||s.persist(),P(s,{node:u,size:{width:S,height:C},handle:o})),i==="onResizeStop"&&a.resetData()}}},n.renderResizeHandle=function(i,o){var a=this.props.handle;if(!a)return _m.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=tk({ref:o},s?{}:{handleAxis:i});return _m.cloneElement(a,l)},n.render=function(){var i=this,o=this.props,a=o.children,s=o.className,l=o.draggableOpts;o.width,o.height,o.handle,o.handleSize,o.lockAspectRatio,o.axis,o.minConstraints,o.maxConstraints,o.onResize,o.onResizeStop,o.onResizeStart;var u=o.resizeHandles;o.transformScale;var f=iYe(o,nYe);return(0,eYe.cloneElement)(a,tk(tk({},f),{},{className:(s?s+" ":"")+"react-resizable",children:[].concat(a.props.children,u.map(function(p){var d,v=(d=i.handleRefs[p])!=null?d:i.handleRefs[p]=_m.createRef();return _m.createElement(ZQe.DraggableCore,JR({},l,{nodeRef:v,key:"resizableHandle-"+p,onStop:i.resizeHandler("onResizeStop",p),onStart:i.resizeHandler("onResizeStart",p),onDrag:i.resizeHandler("onResize",p)}),i.renderResizeHandle(p,v))}))}))},t}(_m.Component);Vv.default=s2;s2.propTypes=tYe.resizableProps;s2.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1};var Mx={};Mx.__esModule=!0;Mx.default=void 0;var nk=pYe(R),uYe=tG(fv),cYe=tG(Vv),fYe=Wv,dYe=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function tG(e){return e&&e.__esModule?e:{default:e}}function nG(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(nG=function(i){return i?n:t})(e)}function pYe(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=nG(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 eO(){return eO=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},eO.apply(this,arguments)}function Jz(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 sw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jz(Object(n),!0).forEach(function(r){hYe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jz(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hYe(e,t,n){return t=mYe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mYe(e){var t=gYe(e,"string");return typeof t=="symbol"?t:String(t)}function gYe(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 vYe(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 yYe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,tO(e,t)}function tO(e,t){return tO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},tO(e,t)}var rG=function(e){yYe(t,e);function t(){for(var r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o))||this,r.state={width:r.props.width,height:r.props.height,propsWidth:r.props.width,propsHeight:r.props.height},r.onResize=function(s,l){var u=l.size;r.props.onResize?(s.persist==null||s.persist(),r.setState(u,function(){return r.props.onResize&&r.props.onResize(s,l)})):r.setState(u)},r}t.getDerivedStateFromProps=function(i,o){return o.propsWidth!==i.width||o.propsHeight!==i.height?{width:i.width,height:i.height,propsWidth:i.width,propsHeight:i.height}:null};var n=t.prototype;return n.render=function(){var i=this.props,o=i.handle,a=i.handleSize;i.onResize;var s=i.onResizeStart,l=i.onResizeStop,u=i.draggableOpts,f=i.minConstraints,p=i.maxConstraints,d=i.lockAspectRatio,v=i.axis;i.width,i.height;var g=i.resizeHandles,y=i.style,x=i.transformScale,b=vYe(i,dYe);return nk.createElement(cYe.default,{axis:v,draggableOpts:u,handle:o,handleSize:a,height:this.state.height,lockAspectRatio:d,maxConstraints:p,minConstraints:f,onResizeStart:s,onResize:this.onResize,onResizeStop:l,resizeHandles:g,transformScale:x,width:this.state.width},nk.createElement("div",eO({},b,{style:sw(sw({},y),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},t}(nk.Component);Mx.default=rG;rG.propTypes=sw(sw({},fYe.resizableProps),{},{children:uYe.default.element});n2.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")};var bYe=n2.exports.Resizable=Vv.default;n2.exports.ResizableBox=Mx.default;const wYe=R.forwardRef(function({...t},n){return delete t.handleAxis,T.jsx(Pt,{sx:{width:"4px",height:"24px",position:"absolute",top:"50%",marginTop:"-12px",left:0,cursor:"ew-resize",padding:"10px 5px"},ref:n,...t,children:T.jsx(Pt,{sx:{width:"100%",height:"100%",backgroundColor:"grey.300",borderRadius:"4px"}})})}),_Ye=Ve(Pt,{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"})),iG=()=>{const[e,t]=yo(RD),[n,r]=R.useState(!1),[i,o]=R.useState(400),a=(l,u)=>{o(u.size.width)},s=R.useMemo(()=>e?zq(e):null,[e]);return T.jsx(bYe,{width:i,height:0,onResize:a,onResizeStart:()=>r(!0),onResizeStop:()=>r(!1),resizeHandles:["w"],handle:T.jsx(wYe,{}),axis:"x",minConstraints:[100,0],maxConstraints:[1e3,0],children:T.jsxs(_Ye,{open:!!e,width:i,children:[T.jsxs(Vn,{direction:"row",alignItems:"center",children:[T.jsx(bn,{noWrap:!0,fontSize:"20px",fontWeight:500,id:"side-view-title",children:e==null?void 0:e.name}),T.jsx(ei,{edge:"end",sx:{ml:"auto"},onClick:()=>t(void 0),children:T.jsx(Bp,{})})]}),T.jsx(Pt,{mt:"1.5rem",id:"side-view-content",sx:{height:"100%",pointerEvents:n?"none":"auto"},children:s})]})})};function xYe(){const[e,t]=yo(_v),n=Ft(Pp);if(!e)return null;const r=()=>{t(!1),n==null||n.socket.emit("stop")};return T.jsx(Pt,{margin:"auto",children:T.jsx(t8,{id:"stop-button",startIcon:T.jsx(Bp,{}),variant:"contained",onClick:r,children:"Stop task"})})}var l2={},SYe=Wn;Object.defineProperty(l2,"__esModule",{value:!0});var oG=l2.default=void 0;kYe(R);var EYe=SYe(Kn()),CYe=T;function aG(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(aG=function(r){return r?n:t})(e)}function kYe(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=aG(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 TYe=(0,EYe.default)((0,CYe.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");oG=l2.default=TYe;var u2={},RYe=Wn;Object.defineProperty(u2,"__esModule",{value:!0});var sG=u2.default=void 0,OYe=RYe(Kn()),Zz=T,AYe=(0,OYe.default)([(0,Zz.jsx)("path",{d:"M6 17.59 7.41 19 12 14.42 16.59 19 18 17.59l-6-6z"},"0"),(0,Zz.jsx)("path",{d:"m6 11 1.41 1.41L12 7.83l4.59 4.58L18 11l-6-6z"},"1")],"KeyboardDoubleArrowUp");sG=u2.default=AYe;var c2={},DYe=Wn;Object.defineProperty(c2,"__esModule",{value:!0});var lG=c2.default=void 0,IYe=DYe(Kn()),PYe=T,$Ye=(0,IYe.default)((0,PYe.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");lG=c2.default=$Ye;function FYe(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 uG({onClick:e,onOpen:t,chats:n}){const[r,i]=yo(XV),o=R.useRef(),[a,s]=R.useState(null);R.useEffect(()=>{r&&o.current&&(s(o.current),t())},[r]);const l=T.jsxs(Vn,{disabled:!0,direction:"row",p:1,justifyContent:"space-between",alignItems:"center",children:[T.jsx(bn,{color:"text.primary",sx:{fontSize:"14px",fontWeight:700},children:"Last messages"}),T.jsx(lG,{})]},"title"),u=(n==null?void 0:n.length)===0?T.jsx("div",{id:"history-empty",disabled:!0,children:T.jsx(bn,{color:"text.secondary",sx:{fontSize:"12px",fontWeight:700,padding:"16px 12px",textTransform:"uppercase"},children:"Such empty..."})},"empty"):null,p=[l,u,n?null:T.jsx("div",{id:"history-loading",disabled:!0,children:T.jsx(bn,{color:"text.secondary",sx:{fontSize:"12px",fontWeight:700,padding:"16px 12px",textTransform:"uppercase"},children:"Loading..."})},"loading")];if(n){const v=FYe(n);Object.keys(v).forEach(g=>{p.push(T.jsx("div",{disabled:!0,children:T.jsx(bn,{color:"text.primary",sx:{p:1,fontSize:"10px",fontWeight:700,color:"#9E9E9E"},children:g})},g));let y="";v[g].forEach(x=>{y!==x.content&&(y=x.content,p.push(T.jsx(ls,{className:"history-item",onClick:b=>{b.stopPropagation(),b.preventDefault(),i(!1),e(x.content)},disableRipple:!0,sx:{p:1,alignItems:"baseline",borderRadius:"4px"},children:T.jsx(bn,{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:x.content})},x.key)))})})}const d=T.jsx(L_,{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:v=>`1px solid ${v.palette.divider}`,boxShadow:v=>v.palette.mode==="light"?"0px 2px 4px 0px #0000000D":"0px 10px 10px 0px #0000000D"}},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"},children:p});return T.jsxs("div",{children:[d,T.jsx(fs,{title:"Show history",children:T.jsx(ei,{color:"inherit",onClick:()=>i(!r),ref:o,children:T.jsx(sG,{})})})]})}const rk="chatHistory",e4=50;function cG(){const e=R.useCallback(()=>{const n=localStorage.getItem(rk);return n?JSON.parse(n):[]},[]);return{persistChatLocally:R.useCallback(n=>{const r={createdAt:new Date().getTime(),messages:[{content:n}]},i=e();if(!i)localStorage.setItem(rk,JSON.stringify([r]));else{let o=[r,...i];o.length>e4&&(o=o.slice(0,e4)),localStorage.setItem(rk,JSON.stringify(o))}return[]},[]),getLocalChatHistory:e}}function LYe({onClick:e}){const{getLocalChatHistory:t}=cG(),[n,r]=R.useState(t());return T.jsx(uG,{onClick:e,onOpen:()=>r(t()),chats:n})}const MYe=Aa`
|
|
571
|
-
query ($first: Int, $projectId: String!, $authorEmail: String) {
|
|
572
|
-
conversations(
|
|
573
|
-
first: $first
|
|
574
|
-
projectId: $projectId
|
|
575
|
-
authorEmail: $authorEmail
|
|
576
|
-
) {
|
|
577
|
-
edges {
|
|
578
|
-
cursor
|
|
579
|
-
node {
|
|
580
|
-
id
|
|
581
|
-
createdAt
|
|
582
|
-
messages {
|
|
583
|
-
content
|
|
584
|
-
}
|
|
585
|
-
}
|
|
586
|
-
}
|
|
587
|
-
}
|
|
588
|
-
}
|
|
589
|
-
`;function NYe({onClick:e}){var s;const{user:t}=ys(),n=Ft(pi),[r,{data:i,refetch:o}]=E$e(MYe,{variables:{first:30,projectId:(s=n==null?void 0:n.project)==null?void 0:s.id,authorEmail:t==null?void 0:t.email}}),a=i==null?void 0:i.conversations.edges.map(l=>l.node).filter(l=>l.messages.length>0);return T.jsx(uG,{onClick:e,onOpen:o,chats:a})}function BYe({onClick:e}){return T.jsx(cx,{children:T.jsx(NYe,{onClick:e})})}const jYe=R.memo(function({onClick:t}){var r;const n=Ft(pi);return(r=n==null?void 0:n.project)!=null&&r.public?T.jsx(LYe,{onClick:t}):T.jsx(BYe,{onClick:t})});function zYe(e){const t=e.querySelector("textarea");return t?t.value.split(`
|
|
590
|
-
`).length:0}const UYe=({onSubmit:e,onReply:t})=>{const n=R.useRef(null),r=Er(XV),i=Ft(_v),o=Ft(H_),a=Ft(Pp),[s,l]=R.useState(""),[u,f]=R.useState(!1),d=!((a==null?void 0:a.socket)&&!(a!=null&&a.error))||i||(o==null?void 0:o.spec.type)==="file";R.useEffect(()=>{var S;n.current&&!i&&!d&&((S=n.current.querySelector("textarea"))==null||S.focus())},[i,d]);const v=R.useCallback(()=>{s===""||d||(o?t(s):e(s),l(""))},[s,d,l,o,e]),g=()=>{f(!0)},y=()=>{f(!1)},x=R.useCallback(S=>{S.key==="Enter"&&!S.shiftKey?u||(S.preventDefault(),v()):S.key==="ArrowUp"&&zYe(S.currentTarget)<=1&&r(!0)},[v,r,u]),b=R.useCallback(S=>{n.current&&l(S)},[]),w=T.jsx(ei,{disabled:d,color:"inherit",onClick:()=>v(),children:T.jsx(oG,{})});return T.jsx(sD,{ref:n,id:"chat-input",autoFocus:!0,multiline:!0,variant:"standard",autoComplete:"false",placeholder:"Type your message here...",disabled:d,onChange:S=>l(S.target.value),onKeyDown:x,onCompositionStart:g,onCompositionEnd:y,value:s,fullWidth:!0,InputProps:{disableUnderline:!0,startAdornment:T.jsx(JL,{sx:{ml:1,color:"text.secondary"},position:"start",children:T.jsx(jYe,{onClick:b})}),endAdornment:T.jsx(JL,{position:"end",sx:{mr:1,color:"text.secondary"},children:w})},sx:{backgroundColor:"background.paper",borderRadius:1,border:S=>`1px solid ${S.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"}}})},VYe="/assets/logo_dark-bc7401f6.svg",WYe="/assets/logo_light-f19fc2ea.svg",KYe=({width:e,style:t})=>{const{theme:n}=Ft(hl),r=n==="light"?WYe:VYe;return T.jsx("img",{src:r,style:t,width:e||40})};function HYe(){return T.jsx(Vn,{mx:"auto",children:T.jsxs("a",{href:"https://github.com/Chainlit/chainlit",target:"_blank",style:{display:"flex",alignItems:"center",textDecoration:"none"},children:[T.jsx(bn,{fontSize:"12px",color:"text.secondary",children:"Built with"}),T.jsx(KYe,{width:65,style:{filter:"grayscale(1)",marginLeft:"4px"}})]})})}function qYe({onSubmit:e,onReply:t}){return T.jsxs(Pt,{display:"flex",flexDirection:"column",gap:1,py:2,sx:{boxSizing:"border-box",width:"100%",maxWidth:"60rem",m:"auto",justifyContent:"center"},children:[T.jsx(xYe,{}),T.jsx(Pt,{children:T.jsx(UYe,{onSubmit:e,onReply:t})}),T.jsx(HYe,{})]})}const f2=ni({key:"Actions",default:[]}),fG=()=>{const e=Ft(pi);return e!=null&&e.markdown?T.jsx(Pt,{overflow:"auto",flexGrow:1,children:T.jsx(Pt,{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?T.jsx(X_,{remarkPlugins:[TD],components:{a({children:t,...n}){return T.jsx(iD,{...n,target:"_blank",children:t})},code({...t}){return T.jsx(OD,{...t})}},children:e==null?void 0:e.markdown}):null})}):T.jsx(Pt,{flexGrow:1})};class GYe extends R.Component{constructor(){super(...arguments);Ls(this,"state",{hasError:!1})}static getDerivedStateFromError(n){return{hasError:!0}}componentDidCatch(n,r){console.error("Uncaught error:",n,r)}render(){return this.state.hasError?T.jsx(Pt,{flexGrow:1,children:T.jsx(wu,{severity:"error",children:"Something went wrong."})}):this.props.children}}const QYe=()=>{const{user:e,isAuthenticated:t}=ys(),n=Ft(Pp),r=Ft(H_),[i,o]=yo(dD),a=Ft(Cv),s=Ft(f2),l=Ft(pi),{persistChatLocally:u}=cG(),[f,p]=R.useState(!0),d=R.useCallback(async g=>{var b;if(!(n==null?void 0:n.socket.id))return;const x={author:(e==null?void 0:e.name)||"User",authorIsUser:!0,content:g,createdAt:Date.now()};(!t||!((b=l==null?void 0:l.project)!=null&&b.id))&&u(g),p(!0),o(w=>[...w,x]),n==null||n.socket.emit("ui_message",x)},[e,n,t,l]),v=R.useCallback(async g=>{if(!r)return;const y={author:(e==null?void 0:e.name)||"User",authorIsUser:!0,content:g,createdAt:Date.now()};r.callback({author:y.author,content:y.content}),p(!0),o(x=>[...x,y])},[r,e]);return T.jsxs(Pt,{display:"flex",width:"100%",height:"0",flexGrow:1,children:[T.jsx(jq,{}),T.jsxs(Pt,{display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",px:2,children:[T.jsx(Pt,{my:1}),(n==null?void 0:n.error)&&T.jsx(wu,{severity:"error",children:"Could not reach the server."}),!!i.length&&T.jsx(GYe,{children:T.jsx(WW,{actions:s,elements:a,messages:i,autoScroll:f,setAutoSroll:p})}),!i.length&&T.jsx(fG,{}),T.jsx(qYe,{onReply:v,onSubmit:d})]}),T.jsx(iG,{})]})};var d2={},YYe=Wn;Object.defineProperty(d2,"__esModule",{value:!0});var dG=d2.default=void 0,XYe=YYe(Kn()),JYe=T,ZYe=(0,XYe.default)((0,JYe.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");dG=d2.default=ZYe;var p2={},eXe=Wn;Object.defineProperty(p2,"__esModule",{value:!0});var pG=p2.default=void 0,tXe=eXe(Kn()),nXe=T,rXe=(0,tXe.default)((0,nXe.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");pG=p2.default=rXe;var h2={},iXe=Wn;Object.defineProperty(h2,"__esModule",{value:!0});var hG=h2.default=void 0,oXe=iXe(Kn()),aXe=T,sXe=(0,oXe.default)((0,aXe.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");hG=h2.default=sXe;function lXe({anchorEl:e,open:t,handleClose:n}){var g,y;const{user:r,logout:i}=ys(),o=Ft(pi),a=Er(hl),s=!!((y=(g=o==null?void 0:o.project)==null?void 0:g.user_env)!=null&&y.length),d=[r&&T.jsxs(Sb,{sx:{display:"flex",flexDirection:"column"},children:[T.jsx(bn,{width:"100%",fontSize:"14px",fontWeight:700,children:r.name}),T.jsx(bn,{width:"100%",fontSize:"13px",fontWeight:400,children:r.email})]},"user-name"),T.jsxs(ls,{onClick:()=>{a(x=>({...x,open:!0})),n()},children:[T.jsx(jd,{children:T.jsx(pG,{fontSize:"small"})}),T.jsx(Eb,{children:"Settings"}),T.jsx(bn,{variant:"body2",color:"text.secondary",children:"S"})]},"settings"),s&&T.jsxs(ls,{component:wv,to:"/env",children:[T.jsx(jd,{children:T.jsx(hG,{fontSize:"small"})}),"API keys"]},"env"),r&&T.jsxs(ls,{onClick:()=>{i({logoutParams:{returnTo:window.location.origin}}),n()},children:[T.jsx(jd,{children:T.jsx(dG,{fontSize:"small"})}),"Logout"]},"logout")].filter(x=>!!x),v=d.reduce((x,b,w)=>w===d.length-1?[...x,b]:[...x,b,T.jsx(O0e,{sx:{my:1}},`divider-${w}`)],[]);return T.jsx(L_,{anchorEl:e,id:"account-menu",open:t,onClose:n,PaperProps:{sx:{width:220,overflow:"visible",mt:1.5,backgroundImage:"none",border:x=>`1px solid ${x.palette.divider}`,boxShadow:x=>x.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:v})}function uXe(){var n;const{user:e}=ys(),t=Da();return e?T.jsx(ET,{sx:{width:32,height:32},src:e.picture||void 0,children:(n=e.name)==null?void 0:n[0]}):T.jsx(Pt,{color:t.palette.mode==="dark"?"text.primary":"primary.main",children:T.jsx(ET,{sx:{width:32,height:32,bgcolor:"transparent",color:"inherit"}})})}function cXe(){const[e,t]=R.useState(null),n=!!e,r=o=>{t(o.currentTarget)},i=()=>{t(null)};return T.jsxs("div",{children:[T.jsx(ei,{edge:"end",onClick:r,size:"small","aria-controls":n?"account-menu":void 0,"aria-haspopup":"true","aria-expanded":n?"true":void 0,children:T.jsx(uXe,{})}),T.jsx(lXe,{open:n,anchorEl:e,handleClose:i})]})}var m2={},fXe=Wn;Object.defineProperty(m2,"__esModule",{value:!0});var mG=m2.default=void 0,dXe=fXe(Kn()),pXe=T,hXe=(0,dXe.default)((0,pXe.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");mG=m2.default=hXe;function mXe(){const e=Er(dD),t=Er(Cv),n=Er(f2),r=Er(RD),i=Er(YV),o=Ft(Pp);return()=>{o==null||o.socket.disconnect(),o==null||o.socket.connect(),e([]),t([]),n([]),r(void 0),i(0)}}function t4({children:e,...t}){const n=Da();return T.jsx("span",{style:{color:n.palette.text.primary},children:T.jsx(Jc,{color:n.palette.mode==="dark"?"inherit":"primary",...t,children:e})})}function gG({children:e,...t}){return T.jsx("span",{children:T.jsx(Jc,{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 gXe(){const e=ef(),[t,n]=R.useState(!1),r=mXe(),i=()=>{n(!0)},o=()=>{n(!1)},a=()=>{r(),e("/"),o()};return T.jsxs(Pt,{children:[T.jsx(t4,{id:"new-chat-button",variant:"outlined",onClick:i,startIcon:T.jsx(mG,{}),children:"New Chat"}),T.jsxs($_,{open:t,onClose:o,id:"new-chat-dialog",PaperProps:{sx:{backgroundImage:"none"}},children:[T.jsx(nD,{id:"alert-dialog-title",children:"Create a new chat?"}),T.jsx(F_,{children:T.jsx(fV,{id:"alert-dialog-description",children:"This will clear the current messages and start a new chat."})}),T.jsxs(cV,{sx:{p:2},children:[T.jsx(gG,{onClick:o,children:"Cancel"}),T.jsx(t4,{id:"confirm",variant:"outlined",onClick:a,autoFocus:!0,children:"Confirm"})]})]})]})}const vXe=e=>T.jsx(_T,{...e,viewBox:"0 0 98 96",children:T.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 yXe({href:e}){return e?T.jsx(fs,{title:"See on Github",children:T.jsx(ei,{color:"inherit",href:e,target:"_blank",children:T.jsx(vXe,{})})}):null}var g2={},bXe=Wn;Object.defineProperty(g2,"__esModule",{value:!0});var vG=g2.default=void 0,wXe=bXe(Kn()),_Xe=T,xXe=(0,wXe.default)((0,_Xe.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");vG=g2.default=xXe;function SXe({to:e,label:t}){return T.jsx(gG,{component:wv,to:e,children:t},e)}function EXe({to:e,label:t}){return T.jsx(Jc,{component:wv,to:e,sx:{textTransform:"none",color:"text.secondary","&:hover":{background:"transparent"}},children:t},e)}function CXe({isPublic:e,hasReadme:t}){const n=bv(),r=Da(),[i,o]=R.useState(!1),a=R.useRef(),[s,l]=R.useState(null);R.useEffect(()=>{i&&a.current&&l(a.current)},[i]);const u=ibe(r.breakpoints.down("md")),f=[{to:"/",label:"Chat"}];e===!1&&f.push({to:"/dataset",label:"History"}),t&&f.push({to:"/readme",label:"Readme"});const p=T.jsx(Vn,{direction:u?"column":"row",spacing:1,children:f.map(d=>{const v=n.pathname===d.to;return T.jsx("div",{children:v?T.jsx(SXe,{...d}):T.jsx(EXe,{...d})},d.to)})});return u?T.jsxs(T.Fragment,{children:[T.jsx(ei,{ref:a,edge:"start","aria-label":"open nav",onClick:()=>o(!0),children:T.jsx(vG,{})}),T.jsx(L_,{autoFocus:!0,anchorEl:s,open:i,onClose:()=>o(!1),PaperProps:{sx:{p:1,backgroundImage:"none",mt:-2,ml:-1,overflow:"visible",overflowY:"auto",border:d=>`1px solid ${d.palette.divider}`,boxShadow:d=>d.palette.mode==="light"?"0px 2px 4px 0px #0000000D":"0px 10px 10px 0px #0000000D"}},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"},children:p})]}):p}function yG(){var t,n;const e=Ft(pi);return T.jsx(mve,{elevation:0,color:"transparent",position:"static",children:T.jsxs(E_e,{sx:{minHeight:"60px !important",borderBottomWidth:"1px",borderBottomStyle:"solid",background:r=>r.palette.background.paper,borderBottomColor:r=>r.palette.divider},children:[T.jsx(Vn,{alignItems:"center",direction:"row",children:T.jsx(CXe,{isPublic:(t=e==null?void 0:e.project)==null?void 0:t.public,hasReadme:!!(e!=null&&e.markdown)})}),T.jsxs(Vn,{alignItems:"center",sx:{ml:"auto"},direction:"row",spacing:1,color:"text.primary",children:[T.jsx(gXe,{}),T.jsx(Pt,{ml:1}),T.jsx(yXe,{href:(n=e==null?void 0:e.ui)==null?void 0:n.github}),T.jsx(cXe,{})]})]})})}const Kv=({children:e})=>{var p;const{isProjectMember:t,isAuthenticated:n,isLoading:r,role:i,accessToken:o}=ys(),a=Ft(pi),s=ef(),l=Ft(U_),u=a&&!((p=a.project)!=null&&p.public);if(R.useEffect(()=>{u&&!n&&!r&&s("/login")},[a,n,r]),R.useEffect(()=>{var d,v;if((d=a==null?void 0:a.project)!=null&&d.user_env)for(const g of((v=a.project)==null?void 0:v.user_env)||[])l[g]||s("/env")},[a,l]),u&&!o)return null;const f=u&&i&&!t;return T.jsxs(Pt,{sx:{display:"flex",flexDirection:"column",width:"100%"},children:[T.jsx(yG,{}),f?T.jsx(wu,{severity:"error",children:"You are not part of this project."}):e]})};function kXe(){return T.jsx(Kv,{children:T.jsx(QYe,{})})}function TXe(){return T.jsx(Kv,{children:T.jsx(XGe,{})})}function RXe(){const{loginWithRedirect:e,isAuthenticated:t}=ys(),n=ef();return R.useEffect(()=>{t?n("/"):e({authorizationParams:{audience:"chainlit-cloud"}})},[t]),null}function OXe(){const{user:e,error:t}=ys(),n=ef();return R.useEffect(()=>{e&&n("/")},[e]),t?T.jsx(wu,{severity:"error",children:t.message}):null}const Nx=ni({key:"DatasetFilters",default:{}}),AXe=Aa`
|
|
591
|
-
query ($projectId: String!) {
|
|
592
|
-
projectMembers(projectId: $projectId) {
|
|
593
|
-
edges {
|
|
594
|
-
cursor
|
|
595
|
-
node {
|
|
596
|
-
role
|
|
597
|
-
user {
|
|
598
|
-
email
|
|
599
|
-
name
|
|
600
|
-
}
|
|
601
|
-
}
|
|
602
|
-
}
|
|
603
|
-
}
|
|
604
|
-
}
|
|
605
|
-
`;function DXe(){var u;const e=Ft(fD),[t,n]=yo(Nx),r=Ft(pi),{data:i,loading:o,error:a}=oI(AXe,{variables:{projectId:(u=r==null?void 0:r.project)==null?void 0:u.id}});if(o||a||e==="USER")return null;const s=i.projectMembers.edges.map(f=>f.node),l=f=>{const p=f.target.value;n({...t,authorEmail:p==="All"?void 0:p})};return T.jsx(Pt,{sx:{width:200},children:T.jsxs(rD,{fullWidth:!0,children:[T.jsx(_u,{id:"author-filter-select",children:"Author"}),T.jsxs(M_,{labelId:"author-filter-select",value:t.authorEmail||"All",label:"Author",onChange:l,size:"small",children:[T.jsx(ls,{value:"All",children:"All"}),s.map(f=>T.jsx(ls,{value:f.user.email,children:f.user.email},f.user.id))]})]})})}function IXe(){const[e,t]=yo(Nx),n=r=>{const i=r.target.value;t({...e,feedback:i===0?void 0:i})};return T.jsx(Pt,{sx:{width:120},children:T.jsxs(rD,{fullWidth:!0,children:[T.jsx(_u,{id:"feedback-filter-select",children:"Feedback"}),T.jsxs(M_,{labelId:"feedback-filter-select",value:e.feedback?e.feedback.toString():"0",label:"Feedback",onChange:n,size:"small",children:[T.jsx(ls,{value:0,children:"All"}),T.jsx(ls,{value:1,children:"Good"}),T.jsx(ls,{value:-1,children:"Bad"})]})]})})}var lw={exports:{}};/**
|
|
606
|
-
* @license
|
|
607
|
-
* Lodash <https://lodash.com/>
|
|
608
|
-
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
609
|
-
* Released under MIT license <https://lodash.com/license>
|
|
610
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
611
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
612
|
-
*/lw.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,f="__lodash_placeholder__",p=1,d=2,v=4,g=1,y=2,x=1,b=2,w=4,S=8,C=16,k=32,D=64,P=128,B=256,V=512,U=30,W="...",se=800,ne=16,re=1,Z=2,F=3,te=1/0,Y=9007199254740991,ee=17976931348623157e292,G=0/0,L=4294967295,A=L-1,ie=L>>>1,ae=[["ary",P],["bind",x],["bindKey",b],["curry",S],["curryRight",C],["flip",V],["partial",k],["partialRight",D],["rearg",B]],ce="[object Arguments]",oe="[object Array]",xe="[object AsyncFunction]",ke="[object Boolean]",Ee="[object Date]",Fe="[object DOMException]",Le="[object Error]",Ue="[object Function]",He="[object GeneratorFunction]",Qe="[object Map]",qe="[object Number]",ut="[object Null]",et="[object Object]",it="[object Promise]",wt="[object Proxy]",me="[object RegExp]",Te="[object Set]",Ce="[object String]",Oe="[object Symbol]",j="[object Undefined]",H="[object WeakMap]",he="[object WeakSet]",Q="[object ArrayBuffer]",fe="[object DataView]",le="[object Float32Array]",Re="[object Float64Array]",$e="[object Int8Array]",Pe="[object Int16Array]",mt="[object Int32Array]",lt="[object Uint8Array]",pe="[object Uint8ClampedArray]",ge="[object Uint16Array]",Se="[object Uint32Array]",We=/\b__p \+= '';/g,Ke=/\b(__p \+=) '' \+/g,Ye=/(__e\(.*?\)|\b__t\)) \+\n'';/g,dt=/&(?:amp|lt|gt|quot|#39);/g,ct=/[&<>"']/g,ot=RegExp(dt.source),ht=RegExp(ct.source),$t=/<%-([\s\S]+?)%>/g,rn=/<%([\s\S]+?)%>/g,en=/<%=([\s\S]+?)%>/g,Yt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hr=/^\w*$/,kn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ir=/[\\^$.*+?()[\]{}|]/g,mr=RegExp(Ir.source),wr=/^\s+/,Vr=/\s/,hi=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ss=/\{\n\/\* \[wrapped with (.+)\] \*/,mi=/,? & /,Wr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,yl=/[()=,{}\[\]\/\s]/,On=/\\(\\)?/g,An=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Qi=/\w*$/,ir=/^[-+]0x[0-9a-f]+$/i,It=/^0b[01]+$/i,Bu=/^\[object .+?Constructor\]$/,vf=/^0o[0-7]+$/i,at=/^(?:0|[1-9]\d*)$/,gr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ia=/($^)/,ju=/['\n\r\u2028\u2029\\]/g,oa="\\ud800-\\udfff",aa="\\u0300-\\u036f",Up="\\ufe20-\\ufe2f",Vp="\\u20d0-\\u20ff",Wp=aa+Up+Vp,yf="\\u2700-\\u27bf",Kp="a-z\\xdf-\\xf6\\xf8-\\xff",wo="\\xac\\xb1\\xd7\\xf7",Hv="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Hp="\\u2000-\\u206f",qv=" \\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",bf="A-Z\\xc0-\\xd6\\xd8-\\xde",Gv="\\ufe0e\\ufe0f",Qv=wo+Hv+Hp+qv,qp="['’]",wf="["+oa+"]",Gp="["+Qv+"]",zu="["+Wp+"]",Qp="\\d+",Yv="["+yf+"]",Yp="["+Kp+"]",Xp="[^"+oa+Qv+Qp+yf+Kp+bf+"]",Jp="\\ud83c[\\udffb-\\udfff]",jx="(?:"+zu+"|"+Jp+")",Xv="[^"+oa+"]",Zp="(?:\\ud83c[\\udde6-\\uddff]){2}",eh="[\\ud800-\\udbff][\\udc00-\\udfff]",un="["+bf+"]",th="\\u200d",nh="(?:"+Yp+"|"+Xp+")",Kr="(?:"+un+"|"+Xp+")",sa="(?:"+qp+"(?:d|ll|m|re|s|t|ve))?",bl="(?:"+qp+"(?:D|LL|M|RE|S|T|VE))?",rh=jx+"?",wl="["+Gv+"]?",Jv="(?:"+th+"(?:"+[Xv,Zp,eh].join("|")+")"+wl+rh+")*",ih="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",zx="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",_f=wl+rh+Jv,_l="(?:"+[Yv,Zp,eh].join("|")+")"+_f,Zv="(?:"+[Xv+zu+"?",zu,Zp,eh,wf].join("|")+")",Pa=RegExp(qp,"g"),xf=RegExp(zu,"g"),Es=RegExp(Jp+"(?="+Jp+")|"+Zv+_f,"g"),Xn=RegExp([un+"?"+Yp+"+"+sa+"(?="+[Gp,un,"$"].join("|")+")",Kr+"+"+bl+"(?="+[Gp,un+nh,"$"].join("|")+")",un+"?"+nh+"+"+sa,un+"+"+bl,zx,ih,Qp,_l].join("|"),"g"),ey=RegExp("["+th+oa+Wp+Gv+"]"),oh=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ty=["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"],Sf=-1,Tn={};Tn[le]=Tn[Re]=Tn[$e]=Tn[Pe]=Tn[mt]=Tn[lt]=Tn[pe]=Tn[ge]=Tn[Se]=!0,Tn[ce]=Tn[oe]=Tn[Q]=Tn[ke]=Tn[fe]=Tn[Ee]=Tn[Le]=Tn[Ue]=Tn[Qe]=Tn[qe]=Tn[et]=Tn[me]=Tn[Te]=Tn[Ce]=Tn[H]=!1;var Kt={};Kt[ce]=Kt[oe]=Kt[Q]=Kt[fe]=Kt[ke]=Kt[Ee]=Kt[le]=Kt[Re]=Kt[$e]=Kt[Pe]=Kt[mt]=Kt[Qe]=Kt[qe]=Kt[et]=Kt[me]=Kt[Te]=Kt[Ce]=Kt[Oe]=Kt[lt]=Kt[pe]=Kt[ge]=Kt[Se]=!0,Kt[Le]=Kt[Ue]=Kt[H]=!1;var xl={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Sl={"&":"&","<":"<",">":">",'"':""","'":"'"},El={"&":"&","<":"<",">":">",""":'"',"'":"'"},ny={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ry=parseFloat,ah=parseInt,sh=typeof ao=="object"&&ao&&ao.Object===Object&&ao,Ux=typeof self=="object"&&self&&self.Object===Object&&self,Rr=sh||Ux||Function("return this")(),Uu=t&&!t.nodeType&&t,Cs=Uu&&!0&&e&&!e.nodeType&&e,lh=Cs&&Cs.exports===Uu,uh=lh&&sh.process,gi=function(){try{var X=Cs&&Cs.require&&Cs.require("util").types;return X||uh&&uh.binding&&uh.binding("util")}catch{}}(),iy=gi&&gi.isArrayBuffer,oy=gi&&gi.isDate,ks=gi&&gi.isMap,Vu=gi&&gi.isRegExp,ch=gi&&gi.isSet,Ef=gi&&gi.isTypedArray;function Nt(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 ay(X,be,ye,Be){for(var tt=-1,_t=X==null?0:X.length;++tt<_t;){var dn=X[tt];be(Be,dn,ye(dn),X)}return Be}function vi(X,be){for(var ye=-1,Be=X==null?0:X.length;++ye<Be&&be(X[ye],ye,X)!==!1;);return X}function sy(X,be){for(var ye=X==null?0:X.length;ye--&&be(X[ye],ye,X)!==!1;);return X}function Yi(X,be){for(var ye=-1,Be=X==null?0:X.length;++ye<Be;)if(!be(X[ye],ye,X))return!1;return!0}function _o(X,be){for(var ye=-1,Be=X==null?0:X.length,tt=0,_t=[];++ye<Be;){var dn=X[ye];be(dn,ye,X)&&(_t[tt++]=dn)}return _t}function Wu(X,be){var ye=X==null?0:X.length;return!!ye&&$a(X,be,0)>-1}function Cf(X,be,ye){for(var Be=-1,tt=X==null?0:X.length;++Be<tt;)if(ye(be,X[Be]))return!0;return!1}function qt(X,be){for(var ye=-1,Be=X==null?0:X.length,tt=Array(Be);++ye<Be;)tt[ye]=be(X[ye],ye,X);return tt}function In(X,be){for(var ye=-1,Be=be.length,tt=X.length;++ye<Be;)X[tt+ye]=be[ye];return X}function Cl(X,be,ye,Be){var tt=-1,_t=X==null?0:X.length;for(Be&&_t&&(ye=X[++tt]);++tt<_t;)ye=be(ye,X[tt],tt,X);return ye}function ly(X,be,ye,Be){var tt=X==null?0:X.length;for(Be&&tt&&(ye=X[--tt]);tt--;)ye=be(ye,X[tt],tt,X);return ye}function fh(X,be){for(var ye=-1,Be=X==null?0:X.length;++ye<Be;)if(be(X[ye],ye,X))return!0;return!1}var Vx=Ti("length");function Pn(X){return X.split("")}function dh(X){return X.match(Wr)||[]}function ph(X,be,ye){var Be;return ye(X,function(tt,_t,dn){if(be(tt,_t,dn))return Be=_t,!1}),Be}function Pr(X,be,ye,Be){for(var tt=X.length,_t=ye+(Be?1:-1);Be?_t--:++_t<tt;)if(be(X[_t],_t,X))return _t;return-1}function $a(X,be,ye){return be===be?Hx(X,be,ye):Pr(X,hh,ye)}function uy(X,be,ye,Be){for(var tt=ye-1,_t=X.length;++tt<_t;)if(Be(X[tt],be))return tt;return-1}function hh(X){return X!==X}function kf(X,be){var ye=X==null?0:X.length;return ye?Rf(X,be)/ye:G}function Ti(X){return function(be){return be==null?n:be[X]}}function Tf(X){return function(be){return X==null?n:X[be]}}function Ku(X,be,ye,Be,tt){return tt(X,function(_t,dn,Gt){ye=Be?(Be=!1,_t):be(ye,_t,dn,Gt)}),ye}function cy(X,be){var ye=X.length;for(X.sort(be);ye--;)X[ye]=X[ye].value;return X}function Rf(X,be){for(var ye,Be=-1,tt=X.length;++Be<tt;){var _t=be(X[Be]);_t!==n&&(ye=ye===n?_t:ye+_t)}return ye}function Hu(X,be){for(var ye=-1,Be=Array(X);++ye<X;)Be[ye]=be(ye);return Be}function or(X,be){return qt(be,function(ye){return[ye,X[ye]]})}function mh(X){return X&&X.slice(0,$(X)+1).replace(wr,"")}function ri(X){return function(be){return X(be)}}function Fa(X,be){return qt(be,function(ye){return X[ye]})}function la(X,be){return X.has(be)}function gh(X,be){for(var ye=-1,Be=X.length;++ye<Be&&$a(be,X[ye],0)>-1;);return ye}function Of(X,be){for(var ye=X.length;ye--&&$a(be,X[ye],0)>-1;);return ye}function xo(X,be){for(var ye=X.length,Be=0;ye--;)X[ye]===be&&++Be;return Be}var $r=Tf(xl),Af=Tf(Sl);function Wx(X){return"\\"+ny[X]}function Kx(X,be){return X==null?n:X[be]}function ua(X){return ey.test(X)}function fy(X){return oh.test(X)}function dy(X){for(var be,ye=[];!(be=X.next()).done;)ye.push(be.value);return ye}function vh(X){var be=-1,ye=Array(X.size);return X.forEach(function(Be,tt){ye[++be]=[tt,Be]}),ye}function yh(X,be){return function(ye){return X(be(ye))}}function La(X,be){for(var ye=-1,Be=X.length,tt=0,_t=[];++ye<Be;){var dn=X[ye];(dn===be||dn===f)&&(X[ye]=f,_t[tt++]=ye)}return _t}function Df(X){var be=-1,ye=Array(X.size);return X.forEach(function(Be){ye[++be]=Be}),ye}function py(X){var be=-1,ye=Array(X.size);return X.forEach(function(Be){ye[++be]=[Be,Be]}),ye}function Hx(X,be,ye){for(var Be=ye-1,tt=X.length;++Be<tt;)if(X[Be]===be)return Be;return-1}function m(X,be,ye){for(var Be=ye+1;Be--;)if(X[Be]===be)return Be;return Be}function E(X){return ua(X)?J(X):Vx(X)}function I(X){return ua(X)?de(X):Pn(X)}function $(X){for(var be=X.length;be--&&Vr.test(X.charAt(be)););return be}var N=Tf(El);function J(X){for(var be=Es.lastIndex=0;Es.test(X);)++be;return be}function de(X){return X.match(Es)||[]}function we(X){return X.match(Xn)||[]}var De=function X(be){be=be==null?Rr:Ie.defaults(Rr.Object(),be,Ie.pick(Rr,ty));var ye=be.Array,Be=be.Date,tt=be.Error,_t=be.Function,dn=be.Math,Gt=be.Object,kl=be.RegExp,QG=be.String,So=be.TypeError,hy=ye.prototype,YG=_t.prototype,If=Gt.prototype,my=be["__core-js_shared__"],gy=YG.toString,_n=If.hasOwnProperty,XG=0,C2=function(){var c=/[^.]+$/.exec(my&&my.keys&&my.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""}(),vy=If.toString,JG=gy.call(Gt),ZG=Rr._,eQ=kl("^"+gy.call(_n).replace(Ir,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yy=lh?be.Buffer:n,Tl=be.Symbol,by=be.Uint8Array,k2=yy?yy.allocUnsafe:n,wy=yh(Gt.getPrototypeOf,Gt),T2=Gt.create,R2=If.propertyIsEnumerable,_y=hy.splice,O2=Tl?Tl.isConcatSpreadable:n,bh=Tl?Tl.iterator:n,qu=Tl?Tl.toStringTag:n,xy=function(){try{var c=Ju(Gt,"defineProperty");return c({},"",{}),c}catch{}}(),tQ=be.clearTimeout!==Rr.clearTimeout&&be.clearTimeout,nQ=Be&&Be.now!==Rr.Date.now&&Be.now,rQ=be.setTimeout!==Rr.setTimeout&&be.setTimeout,Sy=dn.ceil,Ey=dn.floor,qx=Gt.getOwnPropertySymbols,iQ=yy?yy.isBuffer:n,A2=be.isFinite,oQ=hy.join,aQ=yh(Gt.keys,Gt),Or=dn.max,ii=dn.min,sQ=Be.now,lQ=be.parseInt,D2=dn.random,uQ=hy.reverse,Gx=Ju(be,"DataView"),wh=Ju(be,"Map"),Qx=Ju(be,"Promise"),Pf=Ju(be,"Set"),_h=Ju(be,"WeakMap"),xh=Ju(Gt,"create"),Cy=_h&&new _h,$f={},cQ=Zu(Gx),fQ=Zu(wh),dQ=Zu(Qx),pQ=Zu(Pf),hQ=Zu(_h),ky=Tl?Tl.prototype:n,Sh=ky?ky.valueOf:n,I2=ky?ky.toString:n;function K(c){if(ar(c)&&!Lt(c)&&!(c instanceof Xt)){if(c instanceof Eo)return c;if(_n.call(c,"__wrapped__"))return PP(c)}return new Eo(c)}var Ff=function(){function c(){}return function(h){if(!Jn(h))return{};if(T2)return T2(h);c.prototype=h;var _=new c;return c.prototype=n,_}}();function Ty(){}function Eo(c,h){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!h,this.__index__=0,this.__values__=n}K.templateSettings={escape:$t,evaluate:rn,interpolate:en,variable:"",imports:{_:K}},K.prototype=Ty.prototype,K.prototype.constructor=K,Eo.prototype=Ff(Ty.prototype),Eo.prototype.constructor=Eo;function Xt(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=L,this.__views__=[]}function mQ(){var c=new Xt(this.__wrapped__);return c.__actions__=Ri(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=Ri(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=Ri(this.__views__),c}function gQ(){if(this.__filtered__){var c=new Xt(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}function vQ(){var c=this.__wrapped__.value(),h=this.__dir__,_=Lt(c),O=h<0,M=_?c.length:0,q=OY(0,M,this.__views__),ue=q.start,ve=q.end,_e=ve-ue,Me=O?ve:ue-1,Ne=this.__iteratees__,Ge=Ne.length,st=0,bt=ii(_e,this.__takeCount__);if(!_||!O&&M==_e&&bt==_e)return nP(c,this.__actions__);var At=[];e:for(;_e--&&st<bt;){Me+=h;for(var Ut=-1,Dt=c[Me];++Ut<Ge;){var Qt=Ne[Ut],tn=Qt.iteratee,Zi=Qt.type,wi=tn(Dt);if(Zi==Z)Dt=wi;else if(!wi){if(Zi==re)continue e;break e}}At[st++]=Dt}return At}Xt.prototype=Ff(Ty.prototype),Xt.prototype.constructor=Xt;function Gu(c){var h=-1,_=c==null?0:c.length;for(this.clear();++h<_;){var O=c[h];this.set(O[0],O[1])}}function yQ(){this.__data__=xh?xh(null):{},this.size=0}function bQ(c){var h=this.has(c)&&delete this.__data__[c];return this.size-=h?1:0,h}function wQ(c){var h=this.__data__;if(xh){var _=h[c];return _===l?n:_}return _n.call(h,c)?h[c]:n}function _Q(c){var h=this.__data__;return xh?h[c]!==n:_n.call(h,c)}function xQ(c,h){var _=this.__data__;return this.size+=this.has(c)?0:1,_[c]=xh&&h===n?l:h,this}Gu.prototype.clear=yQ,Gu.prototype.delete=bQ,Gu.prototype.get=wQ,Gu.prototype.has=_Q,Gu.prototype.set=xQ;function Ts(c){var h=-1,_=c==null?0:c.length;for(this.clear();++h<_;){var O=c[h];this.set(O[0],O[1])}}function SQ(){this.__data__=[],this.size=0}function EQ(c){var h=this.__data__,_=Ry(h,c);if(_<0)return!1;var O=h.length-1;return _==O?h.pop():_y.call(h,_,1),--this.size,!0}function CQ(c){var h=this.__data__,_=Ry(h,c);return _<0?n:h[_][1]}function kQ(c){return Ry(this.__data__,c)>-1}function TQ(c,h){var _=this.__data__,O=Ry(_,c);return O<0?(++this.size,_.push([c,h])):_[O][1]=h,this}Ts.prototype.clear=SQ,Ts.prototype.delete=EQ,Ts.prototype.get=CQ,Ts.prototype.has=kQ,Ts.prototype.set=TQ;function Rs(c){var h=-1,_=c==null?0:c.length;for(this.clear();++h<_;){var O=c[h];this.set(O[0],O[1])}}function RQ(){this.size=0,this.__data__={hash:new Gu,map:new(wh||Ts),string:new Gu}}function OQ(c){var h=jy(this,c).delete(c);return this.size-=h?1:0,h}function AQ(c){return jy(this,c).get(c)}function DQ(c){return jy(this,c).has(c)}function IQ(c,h){var _=jy(this,c),O=_.size;return _.set(c,h),this.size+=_.size==O?0:1,this}Rs.prototype.clear=RQ,Rs.prototype.delete=OQ,Rs.prototype.get=AQ,Rs.prototype.has=DQ,Rs.prototype.set=IQ;function Qu(c){var h=-1,_=c==null?0:c.length;for(this.__data__=new Rs;++h<_;)this.add(c[h])}function PQ(c){return this.__data__.set(c,l),this}function $Q(c){return this.__data__.has(c)}Qu.prototype.add=Qu.prototype.push=PQ,Qu.prototype.has=$Q;function ca(c){var h=this.__data__=new Ts(c);this.size=h.size}function FQ(){this.__data__=new Ts,this.size=0}function LQ(c){var h=this.__data__,_=h.delete(c);return this.size=h.size,_}function MQ(c){return this.__data__.get(c)}function NQ(c){return this.__data__.has(c)}function BQ(c,h){var _=this.__data__;if(_ instanceof Ts){var O=_.__data__;if(!wh||O.length<i-1)return O.push([c,h]),this.size=++_.size,this;_=this.__data__=new Rs(O)}return _.set(c,h),this.size=_.size,this}ca.prototype.clear=FQ,ca.prototype.delete=LQ,ca.prototype.get=MQ,ca.prototype.has=NQ,ca.prototype.set=BQ;function P2(c,h){var _=Lt(c),O=!_&&ec(c),M=!_&&!O&&Il(c),q=!_&&!O&&!M&&Bf(c),ue=_||O||M||q,ve=ue?Hu(c.length,QG):[],_e=ve.length;for(var Me in c)(h||_n.call(c,Me))&&!(ue&&(Me=="length"||M&&(Me=="offset"||Me=="parent")||q&&(Me=="buffer"||Me=="byteLength"||Me=="byteOffset")||Is(Me,_e)))&&ve.push(Me);return ve}function $2(c){var h=c.length;return h?c[aS(0,h-1)]:n}function jQ(c,h){return zy(Ri(c),Yu(h,0,c.length))}function zQ(c){return zy(Ri(c))}function Yx(c,h,_){(_!==n&&!fa(c[h],_)||_===n&&!(h in c))&&Os(c,h,_)}function Eh(c,h,_){var O=c[h];(!(_n.call(c,h)&&fa(O,_))||_===n&&!(h in c))&&Os(c,h,_)}function Ry(c,h){for(var _=c.length;_--;)if(fa(c[_][0],h))return _;return-1}function UQ(c,h,_,O){return Rl(c,function(M,q,ue){h(O,M,_(M),ue)}),O}function F2(c,h){return c&&Na(h,Fr(h),c)}function VQ(c,h){return c&&Na(h,Ai(h),c)}function Os(c,h,_){h=="__proto__"&&xy?xy(c,h,{configurable:!0,enumerable:!0,value:_,writable:!0}):c[h]=_}function Xx(c,h){for(var _=-1,O=h.length,M=ye(O),q=c==null;++_<O;)M[_]=q?n:DS(c,h[_]);return M}function Yu(c,h,_){return c===c&&(_!==n&&(c=c<=_?c:_),h!==n&&(c=c>=h?c:h)),c}function Co(c,h,_,O,M,q){var ue,ve=h&p,_e=h&d,Me=h&v;if(_&&(ue=M?_(c,O,M,q):_(c)),ue!==n)return ue;if(!Jn(c))return c;var Ne=Lt(c);if(Ne){if(ue=DY(c),!ve)return Ri(c,ue)}else{var Ge=oi(c),st=Ge==Ue||Ge==He;if(Il(c))return oP(c,ve);if(Ge==et||Ge==ce||st&&!M){if(ue=_e||st?{}:EP(c),!ve)return _e?wY(c,VQ(ue,c)):bY(c,F2(ue,c))}else{if(!Kt[Ge])return M?c:{};ue=IY(c,Ge,ve)}}q||(q=new ca);var bt=q.get(c);if(bt)return bt;q.set(c,ue),ZP(c)?c.forEach(function(Dt){ue.add(Co(Dt,h,_,Dt,c,q))}):XP(c)&&c.forEach(function(Dt,Qt){ue.set(Qt,Co(Dt,h,_,Qt,c,q))});var At=Me?_e?vS:gS:_e?Ai:Fr,Ut=Ne?n:At(c);return vi(Ut||c,function(Dt,Qt){Ut&&(Qt=Dt,Dt=c[Qt]),Eh(ue,Qt,Co(Dt,h,_,Qt,c,q))}),ue}function WQ(c){var h=Fr(c);return function(_){return L2(_,c,h)}}function L2(c,h,_){var O=_.length;if(c==null)return!O;for(c=Gt(c);O--;){var M=_[O],q=h[M],ue=c[M];if(ue===n&&!(M in c)||!q(ue))return!1}return!0}function M2(c,h,_){if(typeof c!="function")throw new So(a);return Dh(function(){c.apply(n,_)},h)}function Ch(c,h,_,O){var M=-1,q=Wu,ue=!0,ve=c.length,_e=[],Me=h.length;if(!ve)return _e;_&&(h=qt(h,ri(_))),O?(q=Cf,ue=!1):h.length>=i&&(q=la,ue=!1,h=new Qu(h));e:for(;++M<ve;){var Ne=c[M],Ge=_==null?Ne:_(Ne);if(Ne=O||Ne!==0?Ne:0,ue&&Ge===Ge){for(var st=Me;st--;)if(h[st]===Ge)continue e;_e.push(Ne)}else q(h,Ge,O)||_e.push(Ne)}return _e}var Rl=cP(Ma),N2=cP(Zx,!0);function KQ(c,h){var _=!0;return Rl(c,function(O,M,q){return _=!!h(O,M,q),_}),_}function Oy(c,h,_){for(var O=-1,M=c.length;++O<M;){var q=c[O],ue=h(q);if(ue!=null&&(ve===n?ue===ue&&!Ji(ue):_(ue,ve)))var ve=ue,_e=q}return _e}function HQ(c,h,_,O){var M=c.length;for(_=Bt(_),_<0&&(_=-_>M?0:M+_),O=O===n||O>M?M:Bt(O),O<0&&(O+=M),O=_>O?0:t$(O);_<O;)c[_++]=h;return c}function B2(c,h){var _=[];return Rl(c,function(O,M,q){h(O,M,q)&&_.push(O)}),_}function Hr(c,h,_,O,M){var q=-1,ue=c.length;for(_||(_=$Y),M||(M=[]);++q<ue;){var ve=c[q];h>0&&_(ve)?h>1?Hr(ve,h-1,_,O,M):In(M,ve):O||(M[M.length]=ve)}return M}var Jx=fP(),j2=fP(!0);function Ma(c,h){return c&&Jx(c,h,Fr)}function Zx(c,h){return c&&j2(c,h,Fr)}function Ay(c,h){return _o(h,function(_){return Ps(c[_])})}function Xu(c,h){h=Al(h,c);for(var _=0,O=h.length;c!=null&&_<O;)c=c[Ba(h[_++])];return _&&_==O?c:n}function z2(c,h,_){var O=h(c);return Lt(c)?O:In(O,_(c))}function yi(c){return c==null?c===n?j:ut:qu&&qu in Gt(c)?RY(c):zY(c)}function eS(c,h){return c>h}function qQ(c,h){return c!=null&&_n.call(c,h)}function GQ(c,h){return c!=null&&h in Gt(c)}function QQ(c,h,_){return c>=ii(h,_)&&c<Or(h,_)}function tS(c,h,_){for(var O=_?Cf:Wu,M=c[0].length,q=c.length,ue=q,ve=ye(q),_e=1/0,Me=[];ue--;){var Ne=c[ue];ue&&h&&(Ne=qt(Ne,ri(h))),_e=ii(Ne.length,_e),ve[ue]=!_&&(h||M>=120&&Ne.length>=120)?new Qu(ue&&Ne):n}Ne=c[0];var Ge=-1,st=ve[0];e:for(;++Ge<M&&Me.length<_e;){var bt=Ne[Ge],At=h?h(bt):bt;if(bt=_||bt!==0?bt:0,!(st?la(st,At):O(Me,At,_))){for(ue=q;--ue;){var Ut=ve[ue];if(!(Ut?la(Ut,At):O(c[ue],At,_)))continue e}st&&st.push(At),Me.push(bt)}}return Me}function YQ(c,h,_,O){return Ma(c,function(M,q,ue){h(O,_(M),q,ue)}),O}function kh(c,h,_){h=Al(h,c),c=RP(c,h);var O=c==null?c:c[Ba(To(h))];return O==null?n:Nt(O,c,_)}function U2(c){return ar(c)&&yi(c)==ce}function XQ(c){return ar(c)&&yi(c)==Q}function JQ(c){return ar(c)&&yi(c)==Ee}function Th(c,h,_,O,M){return c===h?!0:c==null||h==null||!ar(c)&&!ar(h)?c!==c&&h!==h:ZQ(c,h,_,O,Th,M)}function ZQ(c,h,_,O,M,q){var ue=Lt(c),ve=Lt(h),_e=ue?oe:oi(c),Me=ve?oe:oi(h);_e=_e==ce?et:_e,Me=Me==ce?et:Me;var Ne=_e==et,Ge=Me==et,st=_e==Me;if(st&&Il(c)){if(!Il(h))return!1;ue=!0,Ne=!1}if(st&&!Ne)return q||(q=new ca),ue||Bf(c)?_P(c,h,_,O,M,q):kY(c,h,_e,_,O,M,q);if(!(_&g)){var bt=Ne&&_n.call(c,"__wrapped__"),At=Ge&&_n.call(h,"__wrapped__");if(bt||At){var Ut=bt?c.value():c,Dt=At?h.value():h;return q||(q=new ca),M(Ut,Dt,_,O,q)}}return st?(q||(q=new ca),TY(c,h,_,O,M,q)):!1}function eY(c){return ar(c)&&oi(c)==Qe}function nS(c,h,_,O){var M=_.length,q=M,ue=!O;if(c==null)return!q;for(c=Gt(c);M--;){var ve=_[M];if(ue&&ve[2]?ve[1]!==c[ve[0]]:!(ve[0]in c))return!1}for(;++M<q;){ve=_[M];var _e=ve[0],Me=c[_e],Ne=ve[1];if(ue&&ve[2]){if(Me===n&&!(_e in c))return!1}else{var Ge=new ca;if(O)var st=O(Me,Ne,_e,c,h,Ge);if(!(st===n?Th(Ne,Me,g|y,O,Ge):st))return!1}}return!0}function V2(c){if(!Jn(c)||LY(c))return!1;var h=Ps(c)?eQ:Bu;return h.test(Zu(c))}function tY(c){return ar(c)&&yi(c)==me}function nY(c){return ar(c)&&oi(c)==Te}function rY(c){return ar(c)&&qy(c.length)&&!!Tn[yi(c)]}function W2(c){return typeof c=="function"?c:c==null?Di:typeof c=="object"?Lt(c)?q2(c[0],c[1]):H2(c):d$(c)}function rS(c){if(!Ah(c))return aQ(c);var h=[];for(var _ in Gt(c))_n.call(c,_)&&_!="constructor"&&h.push(_);return h}function iY(c){if(!Jn(c))return jY(c);var h=Ah(c),_=[];for(var O in c)O=="constructor"&&(h||!_n.call(c,O))||_.push(O);return _}function iS(c,h){return c<h}function K2(c,h){var _=-1,O=Oi(c)?ye(c.length):[];return Rl(c,function(M,q,ue){O[++_]=h(M,q,ue)}),O}function H2(c){var h=bS(c);return h.length==1&&h[0][2]?kP(h[0][0],h[0][1]):function(_){return _===c||nS(_,c,h)}}function q2(c,h){return _S(c)&&CP(h)?kP(Ba(c),h):function(_){var O=DS(_,c);return O===n&&O===h?IS(_,c):Th(h,O,g|y)}}function Dy(c,h,_,O,M){c!==h&&Jx(h,function(q,ue){if(M||(M=new ca),Jn(q))oY(c,h,ue,_,Dy,O,M);else{var ve=O?O(SS(c,ue),q,ue+"",c,h,M):n;ve===n&&(ve=q),Yx(c,ue,ve)}},Ai)}function oY(c,h,_,O,M,q,ue){var ve=SS(c,_),_e=SS(h,_),Me=ue.get(_e);if(Me){Yx(c,_,Me);return}var Ne=q?q(ve,_e,_+"",c,h,ue):n,Ge=Ne===n;if(Ge){var st=Lt(_e),bt=!st&&Il(_e),At=!st&&!bt&&Bf(_e);Ne=_e,st||bt||At?Lt(ve)?Ne=ve:vr(ve)?Ne=Ri(ve):bt?(Ge=!1,Ne=oP(_e,!0)):At?(Ge=!1,Ne=aP(_e,!0)):Ne=[]:Ih(_e)||ec(_e)?(Ne=ve,ec(ve)?Ne=n$(ve):(!Jn(ve)||Ps(ve))&&(Ne=EP(_e))):Ge=!1}Ge&&(ue.set(_e,Ne),M(Ne,_e,O,q,ue),ue.delete(_e)),Yx(c,_,Ne)}function G2(c,h){var _=c.length;if(_)return h+=h<0?_:0,Is(h,_)?c[h]:n}function Q2(c,h,_){h.length?h=qt(h,function(q){return Lt(q)?function(ue){return Xu(ue,q.length===1?q[0]:q)}:q}):h=[Di];var O=-1;h=qt(h,ri(Tt()));var M=K2(c,function(q,ue,ve){var _e=qt(h,function(Me){return Me(q)});return{criteria:_e,index:++O,value:q}});return cy(M,function(q,ue){return yY(q,ue,_)})}function aY(c,h){return Y2(c,h,function(_,O){return IS(c,O)})}function Y2(c,h,_){for(var O=-1,M=h.length,q={};++O<M;){var ue=h[O],ve=Xu(c,ue);_(ve,ue)&&Rh(q,Al(ue,c),ve)}return q}function sY(c){return function(h){return Xu(h,c)}}function oS(c,h,_,O){var M=O?uy:$a,q=-1,ue=h.length,ve=c;for(c===h&&(h=Ri(h)),_&&(ve=qt(c,ri(_)));++q<ue;)for(var _e=0,Me=h[q],Ne=_?_(Me):Me;(_e=M(ve,Ne,_e,O))>-1;)ve!==c&&_y.call(ve,_e,1),_y.call(c,_e,1);return c}function X2(c,h){for(var _=c?h.length:0,O=_-1;_--;){var M=h[_];if(_==O||M!==q){var q=M;Is(M)?_y.call(c,M,1):uS(c,M)}}return c}function aS(c,h){return c+Ey(D2()*(h-c+1))}function lY(c,h,_,O){for(var M=-1,q=Or(Sy((h-c)/(_||1)),0),ue=ye(q);q--;)ue[O?q:++M]=c,c+=_;return ue}function sS(c,h){var _="";if(!c||h<1||h>Y)return _;do h%2&&(_+=c),h=Ey(h/2),h&&(c+=c);while(h);return _}function Ht(c,h){return ES(TP(c,h,Di),c+"")}function uY(c){return $2(jf(c))}function cY(c,h){var _=jf(c);return zy(_,Yu(h,0,_.length))}function Rh(c,h,_,O){if(!Jn(c))return c;h=Al(h,c);for(var M=-1,q=h.length,ue=q-1,ve=c;ve!=null&&++M<q;){var _e=Ba(h[M]),Me=_;if(_e==="__proto__"||_e==="constructor"||_e==="prototype")return c;if(M!=ue){var Ne=ve[_e];Me=O?O(Ne,_e,ve):n,Me===n&&(Me=Jn(Ne)?Ne:Is(h[M+1])?[]:{})}Eh(ve,_e,Me),ve=ve[_e]}return c}var J2=Cy?function(c,h){return Cy.set(c,h),c}:Di,fY=xy?function(c,h){return xy(c,"toString",{configurable:!0,enumerable:!1,value:$S(h),writable:!0})}:Di;function dY(c){return zy(jf(c))}function ko(c,h,_){var O=-1,M=c.length;h<0&&(h=-h>M?0:M+h),_=_>M?M:_,_<0&&(_+=M),M=h>_?0:_-h>>>0,h>>>=0;for(var q=ye(M);++O<M;)q[O]=c[O+h];return q}function pY(c,h){var _;return Rl(c,function(O,M,q){return _=h(O,M,q),!_}),!!_}function Iy(c,h,_){var O=0,M=c==null?O:c.length;if(typeof h=="number"&&h===h&&M<=ie){for(;O<M;){var q=O+M>>>1,ue=c[q];ue!==null&&!Ji(ue)&&(_?ue<=h:ue<h)?O=q+1:M=q}return M}return lS(c,h,Di,_)}function lS(c,h,_,O){var M=0,q=c==null?0:c.length;if(q===0)return 0;h=_(h);for(var ue=h!==h,ve=h===null,_e=Ji(h),Me=h===n;M<q;){var Ne=Ey((M+q)/2),Ge=_(c[Ne]),st=Ge!==n,bt=Ge===null,At=Ge===Ge,Ut=Ji(Ge);if(ue)var Dt=O||At;else Me?Dt=At&&(O||st):ve?Dt=At&&st&&(O||!bt):_e?Dt=At&&st&&!bt&&(O||!Ut):bt||Ut?Dt=!1:Dt=O?Ge<=h:Ge<h;Dt?M=Ne+1:q=Ne}return ii(q,A)}function Z2(c,h){for(var _=-1,O=c.length,M=0,q=[];++_<O;){var ue=c[_],ve=h?h(ue):ue;if(!_||!fa(ve,_e)){var _e=ve;q[M++]=ue===0?0:ue}}return q}function eP(c){return typeof c=="number"?c:Ji(c)?G:+c}function Xi(c){if(typeof c=="string")return c;if(Lt(c))return qt(c,Xi)+"";if(Ji(c))return I2?I2.call(c):"";var h=c+"";return h=="0"&&1/c==-te?"-0":h}function Ol(c,h,_){var O=-1,M=Wu,q=c.length,ue=!0,ve=[],_e=ve;if(_)ue=!1,M=Cf;else if(q>=i){var Me=h?null:EY(c);if(Me)return Df(Me);ue=!1,M=la,_e=new Qu}else _e=h?[]:ve;e:for(;++O<q;){var Ne=c[O],Ge=h?h(Ne):Ne;if(Ne=_||Ne!==0?Ne:0,ue&&Ge===Ge){for(var st=_e.length;st--;)if(_e[st]===Ge)continue e;h&&_e.push(Ge),ve.push(Ne)}else M(_e,Ge,_)||(_e!==ve&&_e.push(Ge),ve.push(Ne))}return ve}function uS(c,h){return h=Al(h,c),c=RP(c,h),c==null||delete c[Ba(To(h))]}function tP(c,h,_,O){return Rh(c,h,_(Xu(c,h)),O)}function Py(c,h,_,O){for(var M=c.length,q=O?M:-1;(O?q--:++q<M)&&h(c[q],q,c););return _?ko(c,O?0:q,O?q+1:M):ko(c,O?q+1:0,O?M:q)}function nP(c,h){var _=c;return _ instanceof Xt&&(_=_.value()),Cl(h,function(O,M){return M.func.apply(M.thisArg,In([O],M.args))},_)}function cS(c,h,_){var O=c.length;if(O<2)return O?Ol(c[0]):[];for(var M=-1,q=ye(O);++M<O;)for(var ue=c[M],ve=-1;++ve<O;)ve!=M&&(q[M]=Ch(q[M]||ue,c[ve],h,_));return Ol(Hr(q,1),h,_)}function rP(c,h,_){for(var O=-1,M=c.length,q=h.length,ue={};++O<M;){var ve=O<q?h[O]:n;_(ue,c[O],ve)}return ue}function fS(c){return vr(c)?c:[]}function dS(c){return typeof c=="function"?c:Di}function Al(c,h){return Lt(c)?c:_S(c,h)?[c]:IP(vn(c))}var hY=Ht;function Dl(c,h,_){var O=c.length;return _=_===n?O:_,!h&&_>=O?c:ko(c,h,_)}var iP=tQ||function(c){return Rr.clearTimeout(c)};function oP(c,h){if(h)return c.slice();var _=c.length,O=k2?k2(_):new c.constructor(_);return c.copy(O),O}function pS(c){var h=new c.constructor(c.byteLength);return new by(h).set(new by(c)),h}function mY(c,h){var _=h?pS(c.buffer):c.buffer;return new c.constructor(_,c.byteOffset,c.byteLength)}function gY(c){var h=new c.constructor(c.source,Qi.exec(c));return h.lastIndex=c.lastIndex,h}function vY(c){return Sh?Gt(Sh.call(c)):{}}function aP(c,h){var _=h?pS(c.buffer):c.buffer;return new c.constructor(_,c.byteOffset,c.length)}function sP(c,h){if(c!==h){var _=c!==n,O=c===null,M=c===c,q=Ji(c),ue=h!==n,ve=h===null,_e=h===h,Me=Ji(h);if(!ve&&!Me&&!q&&c>h||q&&ue&&_e&&!ve&&!Me||O&&ue&&_e||!_&&_e||!M)return 1;if(!O&&!q&&!Me&&c<h||Me&&_&&M&&!O&&!q||ve&&_&&M||!ue&&M||!_e)return-1}return 0}function yY(c,h,_){for(var O=-1,M=c.criteria,q=h.criteria,ue=M.length,ve=_.length;++O<ue;){var _e=sP(M[O],q[O]);if(_e){if(O>=ve)return _e;var Me=_[O];return _e*(Me=="desc"?-1:1)}}return c.index-h.index}function lP(c,h,_,O){for(var M=-1,q=c.length,ue=_.length,ve=-1,_e=h.length,Me=Or(q-ue,0),Ne=ye(_e+Me),Ge=!O;++ve<_e;)Ne[ve]=h[ve];for(;++M<ue;)(Ge||M<q)&&(Ne[_[M]]=c[M]);for(;Me--;)Ne[ve++]=c[M++];return Ne}function uP(c,h,_,O){for(var M=-1,q=c.length,ue=-1,ve=_.length,_e=-1,Me=h.length,Ne=Or(q-ve,0),Ge=ye(Ne+Me),st=!O;++M<Ne;)Ge[M]=c[M];for(var bt=M;++_e<Me;)Ge[bt+_e]=h[_e];for(;++ue<ve;)(st||M<q)&&(Ge[bt+_[ue]]=c[M++]);return Ge}function Ri(c,h){var _=-1,O=c.length;for(h||(h=ye(O));++_<O;)h[_]=c[_];return h}function Na(c,h,_,O){var M=!_;_||(_={});for(var q=-1,ue=h.length;++q<ue;){var ve=h[q],_e=O?O(_[ve],c[ve],ve,_,c):n;_e===n&&(_e=c[ve]),M?Os(_,ve,_e):Eh(_,ve,_e)}return _}function bY(c,h){return Na(c,wS(c),h)}function wY(c,h){return Na(c,xP(c),h)}function $y(c,h){return function(_,O){var M=Lt(_)?ay:UQ,q=h?h():{};return M(_,c,Tt(O,2),q)}}function Lf(c){return Ht(function(h,_){var O=-1,M=_.length,q=M>1?_[M-1]:n,ue=M>2?_[2]:n;for(q=c.length>3&&typeof q=="function"?(M--,q):n,ue&&bi(_[0],_[1],ue)&&(q=M<3?n:q,M=1),h=Gt(h);++O<M;){var ve=_[O];ve&&c(h,ve,O,q)}return h})}function cP(c,h){return function(_,O){if(_==null)return _;if(!Oi(_))return c(_,O);for(var M=_.length,q=h?M:-1,ue=Gt(_);(h?q--:++q<M)&&O(ue[q],q,ue)!==!1;);return _}}function fP(c){return function(h,_,O){for(var M=-1,q=Gt(h),ue=O(h),ve=ue.length;ve--;){var _e=ue[c?ve:++M];if(_(q[_e],_e,q)===!1)break}return h}}function _Y(c,h,_){var O=h&x,M=Oh(c);function q(){var ue=this&&this!==Rr&&this instanceof q?M:c;return ue.apply(O?_:this,arguments)}return q}function dP(c){return function(h){h=vn(h);var _=ua(h)?I(h):n,O=_?_[0]:h.charAt(0),M=_?Dl(_,1).join(""):h.slice(1);return O[c]()+M}}function Mf(c){return function(h){return Cl(c$(u$(h).replace(Pa,"")),c,"")}}function Oh(c){return function(){var h=arguments;switch(h.length){case 0:return new c;case 1:return new c(h[0]);case 2:return new c(h[0],h[1]);case 3:return new c(h[0],h[1],h[2]);case 4:return new c(h[0],h[1],h[2],h[3]);case 5:return new c(h[0],h[1],h[2],h[3],h[4]);case 6:return new c(h[0],h[1],h[2],h[3],h[4],h[5]);case 7:return new c(h[0],h[1],h[2],h[3],h[4],h[5],h[6])}var _=Ff(c.prototype),O=c.apply(_,h);return Jn(O)?O:_}}function xY(c,h,_){var O=Oh(c);function M(){for(var q=arguments.length,ue=ye(q),ve=q,_e=Nf(M);ve--;)ue[ve]=arguments[ve];var Me=q<3&&ue[0]!==_e&&ue[q-1]!==_e?[]:La(ue,_e);if(q-=Me.length,q<_)return vP(c,h,Fy,M.placeholder,n,ue,Me,n,n,_-q);var Ne=this&&this!==Rr&&this instanceof M?O:c;return Nt(Ne,this,ue)}return M}function pP(c){return function(h,_,O){var M=Gt(h);if(!Oi(h)){var q=Tt(_,3);h=Fr(h),_=function(ve){return q(M[ve],ve,M)}}var ue=c(h,_,O);return ue>-1?M[q?h[ue]:ue]:n}}function hP(c){return Ds(function(h){var _=h.length,O=_,M=Eo.prototype.thru;for(c&&h.reverse();O--;){var q=h[O];if(typeof q!="function")throw new So(a);if(M&&!ue&&By(q)=="wrapper")var ue=new Eo([],!0)}for(O=ue?O:_;++O<_;){q=h[O];var ve=By(q),_e=ve=="wrapper"?yS(q):n;_e&&xS(_e[0])&&_e[1]==(P|S|k|B)&&!_e[4].length&&_e[9]==1?ue=ue[By(_e[0])].apply(ue,_e[3]):ue=q.length==1&&xS(q)?ue[ve]():ue.thru(q)}return function(){var Me=arguments,Ne=Me[0];if(ue&&Me.length==1&&Lt(Ne))return ue.plant(Ne).value();for(var Ge=0,st=_?h[Ge].apply(this,Me):Ne;++Ge<_;)st=h[Ge].call(this,st);return st}})}function Fy(c,h,_,O,M,q,ue,ve,_e,Me){var Ne=h&P,Ge=h&x,st=h&b,bt=h&(S|C),At=h&V,Ut=st?n:Oh(c);function Dt(){for(var Qt=arguments.length,tn=ye(Qt),Zi=Qt;Zi--;)tn[Zi]=arguments[Zi];if(bt)var wi=Nf(Dt),eo=xo(tn,wi);if(O&&(tn=lP(tn,O,M,bt)),q&&(tn=uP(tn,q,ue,bt)),Qt-=eo,bt&&Qt<Me){var yr=La(tn,wi);return vP(c,h,Fy,Dt.placeholder,_,tn,yr,ve,_e,Me-Qt)}var da=Ge?_:this,Fs=st?da[c]:c;return Qt=tn.length,ve?tn=UY(tn,ve):At&&Qt>1&&tn.reverse(),Ne&&_e<Qt&&(tn.length=_e),this&&this!==Rr&&this instanceof Dt&&(Fs=Ut||Oh(Fs)),Fs.apply(da,tn)}return Dt}function mP(c,h){return function(_,O){return YQ(_,c,h(O),{})}}function Ly(c,h){return function(_,O){var M;if(_===n&&O===n)return h;if(_!==n&&(M=_),O!==n){if(M===n)return O;typeof _=="string"||typeof O=="string"?(_=Xi(_),O=Xi(O)):(_=eP(_),O=eP(O)),M=c(_,O)}return M}}function hS(c){return Ds(function(h){return h=qt(h,ri(Tt())),Ht(function(_){var O=this;return c(h,function(M){return Nt(M,O,_)})})})}function My(c,h){h=h===n?" ":Xi(h);var _=h.length;if(_<2)return _?sS(h,c):h;var O=sS(h,Sy(c/E(h)));return ua(h)?Dl(I(O),0,c).join(""):O.slice(0,c)}function SY(c,h,_,O){var M=h&x,q=Oh(c);function ue(){for(var ve=-1,_e=arguments.length,Me=-1,Ne=O.length,Ge=ye(Ne+_e),st=this&&this!==Rr&&this instanceof ue?q:c;++Me<Ne;)Ge[Me]=O[Me];for(;_e--;)Ge[Me++]=arguments[++ve];return Nt(st,M?_:this,Ge)}return ue}function gP(c){return function(h,_,O){return O&&typeof O!="number"&&bi(h,_,O)&&(_=O=n),h=$s(h),_===n?(_=h,h=0):_=$s(_),O=O===n?h<_?1:-1:$s(O),lY(h,_,O,c)}}function Ny(c){return function(h,_){return typeof h=="string"&&typeof _=="string"||(h=Ro(h),_=Ro(_)),c(h,_)}}function vP(c,h,_,O,M,q,ue,ve,_e,Me){var Ne=h&S,Ge=Ne?ue:n,st=Ne?n:ue,bt=Ne?q:n,At=Ne?n:q;h|=Ne?k:D,h&=~(Ne?D:k),h&w||(h&=~(x|b));var Ut=[c,h,M,bt,Ge,At,st,ve,_e,Me],Dt=_.apply(n,Ut);return xS(c)&&OP(Dt,Ut),Dt.placeholder=O,AP(Dt,c,h)}function mS(c){var h=dn[c];return function(_,O){if(_=Ro(_),O=O==null?0:ii(Bt(O),292),O&&A2(_)){var M=(vn(_)+"e").split("e"),q=h(M[0]+"e"+(+M[1]+O));return M=(vn(q)+"e").split("e"),+(M[0]+"e"+(+M[1]-O))}return h(_)}}var EY=Pf&&1/Df(new Pf([,-0]))[1]==te?function(c){return new Pf(c)}:MS;function yP(c){return function(h){var _=oi(h);return _==Qe?vh(h):_==Te?py(h):or(h,c(h))}}function As(c,h,_,O,M,q,ue,ve){var _e=h&b;if(!_e&&typeof c!="function")throw new So(a);var Me=O?O.length:0;if(Me||(h&=~(k|D),O=M=n),ue=ue===n?ue:Or(Bt(ue),0),ve=ve===n?ve:Bt(ve),Me-=M?M.length:0,h&D){var Ne=O,Ge=M;O=M=n}var st=_e?n:yS(c),bt=[c,h,_,O,M,Ne,Ge,q,ue,ve];if(st&&BY(bt,st),c=bt[0],h=bt[1],_=bt[2],O=bt[3],M=bt[4],ve=bt[9]=bt[9]===n?_e?0:c.length:Or(bt[9]-Me,0),!ve&&h&(S|C)&&(h&=~(S|C)),!h||h==x)var At=_Y(c,h,_);else h==S||h==C?At=xY(c,h,ve):(h==k||h==(x|k))&&!M.length?At=SY(c,h,_,O):At=Fy.apply(n,bt);var Ut=st?J2:OP;return AP(Ut(At,bt),c,h)}function bP(c,h,_,O){return c===n||fa(c,If[_])&&!_n.call(O,_)?h:c}function wP(c,h,_,O,M,q){return Jn(c)&&Jn(h)&&(q.set(h,c),Dy(c,h,n,wP,q),q.delete(h)),c}function CY(c){return Ih(c)?n:c}function _P(c,h,_,O,M,q){var ue=_&g,ve=c.length,_e=h.length;if(ve!=_e&&!(ue&&_e>ve))return!1;var Me=q.get(c),Ne=q.get(h);if(Me&&Ne)return Me==h&&Ne==c;var Ge=-1,st=!0,bt=_&y?new Qu:n;for(q.set(c,h),q.set(h,c);++Ge<ve;){var At=c[Ge],Ut=h[Ge];if(O)var Dt=ue?O(Ut,At,Ge,h,c,q):O(At,Ut,Ge,c,h,q);if(Dt!==n){if(Dt)continue;st=!1;break}if(bt){if(!fh(h,function(Qt,tn){if(!la(bt,tn)&&(At===Qt||M(At,Qt,_,O,q)))return bt.push(tn)})){st=!1;break}}else if(!(At===Ut||M(At,Ut,_,O,q))){st=!1;break}}return q.delete(c),q.delete(h),st}function kY(c,h,_,O,M,q,ue){switch(_){case fe:if(c.byteLength!=h.byteLength||c.byteOffset!=h.byteOffset)return!1;c=c.buffer,h=h.buffer;case Q:return!(c.byteLength!=h.byteLength||!q(new by(c),new by(h)));case ke:case Ee:case qe:return fa(+c,+h);case Le:return c.name==h.name&&c.message==h.message;case me:case Ce:return c==h+"";case Qe:var ve=vh;case Te:var _e=O&g;if(ve||(ve=Df),c.size!=h.size&&!_e)return!1;var Me=ue.get(c);if(Me)return Me==h;O|=y,ue.set(c,h);var Ne=_P(ve(c),ve(h),O,M,q,ue);return ue.delete(c),Ne;case Oe:if(Sh)return Sh.call(c)==Sh.call(h)}return!1}function TY(c,h,_,O,M,q){var ue=_&g,ve=gS(c),_e=ve.length,Me=gS(h),Ne=Me.length;if(_e!=Ne&&!ue)return!1;for(var Ge=_e;Ge--;){var st=ve[Ge];if(!(ue?st in h:_n.call(h,st)))return!1}var bt=q.get(c),At=q.get(h);if(bt&&At)return bt==h&&At==c;var Ut=!0;q.set(c,h),q.set(h,c);for(var Dt=ue;++Ge<_e;){st=ve[Ge];var Qt=c[st],tn=h[st];if(O)var Zi=ue?O(tn,Qt,st,h,c,q):O(Qt,tn,st,c,h,q);if(!(Zi===n?Qt===tn||M(Qt,tn,_,O,q):Zi)){Ut=!1;break}Dt||(Dt=st=="constructor")}if(Ut&&!Dt){var wi=c.constructor,eo=h.constructor;wi!=eo&&"constructor"in c&&"constructor"in h&&!(typeof wi=="function"&&wi instanceof wi&&typeof eo=="function"&&eo instanceof eo)&&(Ut=!1)}return q.delete(c),q.delete(h),Ut}function Ds(c){return ES(TP(c,n,LP),c+"")}function gS(c){return z2(c,Fr,wS)}function vS(c){return z2(c,Ai,xP)}var yS=Cy?function(c){return Cy.get(c)}:MS;function By(c){for(var h=c.name+"",_=$f[h],O=_n.call($f,h)?_.length:0;O--;){var M=_[O],q=M.func;if(q==null||q==c)return M.name}return h}function Nf(c){var h=_n.call(K,"placeholder")?K:c;return h.placeholder}function Tt(){var c=K.iteratee||FS;return c=c===FS?W2:c,arguments.length?c(arguments[0],arguments[1]):c}function jy(c,h){var _=c.__data__;return FY(h)?_[typeof h=="string"?"string":"hash"]:_.map}function bS(c){for(var h=Fr(c),_=h.length;_--;){var O=h[_],M=c[O];h[_]=[O,M,CP(M)]}return h}function Ju(c,h){var _=Kx(c,h);return V2(_)?_:n}function RY(c){var h=_n.call(c,qu),_=c[qu];try{c[qu]=n;var O=!0}catch{}var M=vy.call(c);return O&&(h?c[qu]=_:delete c[qu]),M}var wS=qx?function(c){return c==null?[]:(c=Gt(c),_o(qx(c),function(h){return R2.call(c,h)}))}:NS,xP=qx?function(c){for(var h=[];c;)In(h,wS(c)),c=wy(c);return h}:NS,oi=yi;(Gx&&oi(new Gx(new ArrayBuffer(1)))!=fe||wh&&oi(new wh)!=Qe||Qx&&oi(Qx.resolve())!=it||Pf&&oi(new Pf)!=Te||_h&&oi(new _h)!=H)&&(oi=function(c){var h=yi(c),_=h==et?c.constructor:n,O=_?Zu(_):"";if(O)switch(O){case cQ:return fe;case fQ:return Qe;case dQ:return it;case pQ:return Te;case hQ:return H}return h});function OY(c,h,_){for(var O=-1,M=_.length;++O<M;){var q=_[O],ue=q.size;switch(q.type){case"drop":c+=ue;break;case"dropRight":h-=ue;break;case"take":h=ii(h,c+ue);break;case"takeRight":c=Or(c,h-ue);break}}return{start:c,end:h}}function AY(c){var h=c.match(Ss);return h?h[1].split(mi):[]}function SP(c,h,_){h=Al(h,c);for(var O=-1,M=h.length,q=!1;++O<M;){var ue=Ba(h[O]);if(!(q=c!=null&&_(c,ue)))break;c=c[ue]}return q||++O!=M?q:(M=c==null?0:c.length,!!M&&qy(M)&&Is(ue,M)&&(Lt(c)||ec(c)))}function DY(c){var h=c.length,_=new c.constructor(h);return h&&typeof c[0]=="string"&&_n.call(c,"index")&&(_.index=c.index,_.input=c.input),_}function EP(c){return typeof c.constructor=="function"&&!Ah(c)?Ff(wy(c)):{}}function IY(c,h,_){var O=c.constructor;switch(h){case Q:return pS(c);case ke:case Ee:return new O(+c);case fe:return mY(c,_);case le:case Re:case $e:case Pe:case mt:case lt:case pe:case ge:case Se:return aP(c,_);case Qe:return new O;case qe:case Ce:return new O(c);case me:return gY(c);case Te:return new O;case Oe:return vY(c)}}function PY(c,h){var _=h.length;if(!_)return c;var O=_-1;return h[O]=(_>1?"& ":"")+h[O],h=h.join(_>2?", ":" "),c.replace(hi,`{
|
|
613
|
-
/* [wrapped with `+h+`] */
|
|
614
|
-
`)}function $Y(c){return Lt(c)||ec(c)||!!(O2&&c&&c[O2])}function Is(c,h){var _=typeof c;return h=h??Y,!!h&&(_=="number"||_!="symbol"&&at.test(c))&&c>-1&&c%1==0&&c<h}function bi(c,h,_){if(!Jn(_))return!1;var O=typeof h;return(O=="number"?Oi(_)&&Is(h,_.length):O=="string"&&h in _)?fa(_[h],c):!1}function _S(c,h){if(Lt(c))return!1;var _=typeof c;return _=="number"||_=="symbol"||_=="boolean"||c==null||Ji(c)?!0:hr.test(c)||!Yt.test(c)||h!=null&&c in Gt(h)}function FY(c){var h=typeof c;return h=="string"||h=="number"||h=="symbol"||h=="boolean"?c!=="__proto__":c===null}function xS(c){var h=By(c),_=K[h];if(typeof _!="function"||!(h in Xt.prototype))return!1;if(c===_)return!0;var O=yS(_);return!!O&&c===O[0]}function LY(c){return!!C2&&C2 in c}var MY=my?Ps:BS;function Ah(c){var h=c&&c.constructor,_=typeof h=="function"&&h.prototype||If;return c===_}function CP(c){return c===c&&!Jn(c)}function kP(c,h){return function(_){return _==null?!1:_[c]===h&&(h!==n||c in Gt(_))}}function NY(c){var h=Ky(c,function(O){return _.size===u&&_.clear(),O}),_=h.cache;return h}function BY(c,h){var _=c[1],O=h[1],M=_|O,q=M<(x|b|P),ue=O==P&&_==S||O==P&&_==B&&c[7].length<=h[8]||O==(P|B)&&h[7].length<=h[8]&&_==S;if(!(q||ue))return c;O&x&&(c[2]=h[2],M|=_&x?0:w);var ve=h[3];if(ve){var _e=c[3];c[3]=_e?lP(_e,ve,h[4]):ve,c[4]=_e?La(c[3],f):h[4]}return ve=h[5],ve&&(_e=c[5],c[5]=_e?uP(_e,ve,h[6]):ve,c[6]=_e?La(c[5],f):h[6]),ve=h[7],ve&&(c[7]=ve),O&P&&(c[8]=c[8]==null?h[8]:ii(c[8],h[8])),c[9]==null&&(c[9]=h[9]),c[0]=h[0],c[1]=M,c}function jY(c){var h=[];if(c!=null)for(var _ in Gt(c))h.push(_);return h}function zY(c){return vy.call(c)}function TP(c,h,_){return h=Or(h===n?c.length-1:h,0),function(){for(var O=arguments,M=-1,q=Or(O.length-h,0),ue=ye(q);++M<q;)ue[M]=O[h+M];M=-1;for(var ve=ye(h+1);++M<h;)ve[M]=O[M];return ve[h]=_(ue),Nt(c,this,ve)}}function RP(c,h){return h.length<2?c:Xu(c,ko(h,0,-1))}function UY(c,h){for(var _=c.length,O=ii(h.length,_),M=Ri(c);O--;){var q=h[O];c[O]=Is(q,_)?M[q]:n}return c}function SS(c,h){if(!(h==="constructor"&&typeof c[h]=="function")&&h!="__proto__")return c[h]}var OP=DP(J2),Dh=rQ||function(c,h){return Rr.setTimeout(c,h)},ES=DP(fY);function AP(c,h,_){var O=h+"";return ES(c,PY(O,VY(AY(O),_)))}function DP(c){var h=0,_=0;return function(){var O=sQ(),M=ne-(O-_);if(_=O,M>0){if(++h>=se)return arguments[0]}else h=0;return c.apply(n,arguments)}}function zy(c,h){var _=-1,O=c.length,M=O-1;for(h=h===n?O:h;++_<h;){var q=aS(_,M),ue=c[q];c[q]=c[_],c[_]=ue}return c.length=h,c}var IP=NY(function(c){var h=[];return c.charCodeAt(0)===46&&h.push(""),c.replace(kn,function(_,O,M,q){h.push(M?q.replace(On,"$1"):O||_)}),h});function Ba(c){if(typeof c=="string"||Ji(c))return c;var h=c+"";return h=="0"&&1/c==-te?"-0":h}function Zu(c){if(c!=null){try{return gy.call(c)}catch{}try{return c+""}catch{}}return""}function VY(c,h){return vi(ae,function(_){var O="_."+_[0];h&_[1]&&!Wu(c,O)&&c.push(O)}),c.sort()}function PP(c){if(c instanceof Xt)return c.clone();var h=new Eo(c.__wrapped__,c.__chain__);return h.__actions__=Ri(c.__actions__),h.__index__=c.__index__,h.__values__=c.__values__,h}function WY(c,h,_){(_?bi(c,h,_):h===n)?h=1:h=Or(Bt(h),0);var O=c==null?0:c.length;if(!O||h<1)return[];for(var M=0,q=0,ue=ye(Sy(O/h));M<O;)ue[q++]=ko(c,M,M+=h);return ue}function KY(c){for(var h=-1,_=c==null?0:c.length,O=0,M=[];++h<_;){var q=c[h];q&&(M[O++]=q)}return M}function HY(){var c=arguments.length;if(!c)return[];for(var h=ye(c-1),_=arguments[0],O=c;O--;)h[O-1]=arguments[O];return In(Lt(_)?Ri(_):[_],Hr(h,1))}var qY=Ht(function(c,h){return vr(c)?Ch(c,Hr(h,1,vr,!0)):[]}),GY=Ht(function(c,h){var _=To(h);return vr(_)&&(_=n),vr(c)?Ch(c,Hr(h,1,vr,!0),Tt(_,2)):[]}),QY=Ht(function(c,h){var _=To(h);return vr(_)&&(_=n),vr(c)?Ch(c,Hr(h,1,vr,!0),n,_):[]});function YY(c,h,_){var O=c==null?0:c.length;return O?(h=_||h===n?1:Bt(h),ko(c,h<0?0:h,O)):[]}function XY(c,h,_){var O=c==null?0:c.length;return O?(h=_||h===n?1:Bt(h),h=O-h,ko(c,0,h<0?0:h)):[]}function JY(c,h){return c&&c.length?Py(c,Tt(h,3),!0,!0):[]}function ZY(c,h){return c&&c.length?Py(c,Tt(h,3),!0):[]}function eX(c,h,_,O){var M=c==null?0:c.length;return M?(_&&typeof _!="number"&&bi(c,h,_)&&(_=0,O=M),HQ(c,h,_,O)):[]}function $P(c,h,_){var O=c==null?0:c.length;if(!O)return-1;var M=_==null?0:Bt(_);return M<0&&(M=Or(O+M,0)),Pr(c,Tt(h,3),M)}function FP(c,h,_){var O=c==null?0:c.length;if(!O)return-1;var M=O-1;return _!==n&&(M=Bt(_),M=_<0?Or(O+M,0):ii(M,O-1)),Pr(c,Tt(h,3),M,!0)}function LP(c){var h=c==null?0:c.length;return h?Hr(c,1):[]}function tX(c){var h=c==null?0:c.length;return h?Hr(c,te):[]}function nX(c,h){var _=c==null?0:c.length;return _?(h=h===n?1:Bt(h),Hr(c,h)):[]}function rX(c){for(var h=-1,_=c==null?0:c.length,O={};++h<_;){var M=c[h];O[M[0]]=M[1]}return O}function MP(c){return c&&c.length?c[0]:n}function iX(c,h,_){var O=c==null?0:c.length;if(!O)return-1;var M=_==null?0:Bt(_);return M<0&&(M=Or(O+M,0)),$a(c,h,M)}function oX(c){var h=c==null?0:c.length;return h?ko(c,0,-1):[]}var aX=Ht(function(c){var h=qt(c,fS);return h.length&&h[0]===c[0]?tS(h):[]}),sX=Ht(function(c){var h=To(c),_=qt(c,fS);return h===To(_)?h=n:_.pop(),_.length&&_[0]===c[0]?tS(_,Tt(h,2)):[]}),lX=Ht(function(c){var h=To(c),_=qt(c,fS);return h=typeof h=="function"?h:n,h&&_.pop(),_.length&&_[0]===c[0]?tS(_,n,h):[]});function uX(c,h){return c==null?"":oQ.call(c,h)}function To(c){var h=c==null?0:c.length;return h?c[h-1]:n}function cX(c,h,_){var O=c==null?0:c.length;if(!O)return-1;var M=O;return _!==n&&(M=Bt(_),M=M<0?Or(O+M,0):ii(M,O-1)),h===h?m(c,h,M):Pr(c,hh,M,!0)}function fX(c,h){return c&&c.length?G2(c,Bt(h)):n}var dX=Ht(NP);function NP(c,h){return c&&c.length&&h&&h.length?oS(c,h):c}function pX(c,h,_){return c&&c.length&&h&&h.length?oS(c,h,Tt(_,2)):c}function hX(c,h,_){return c&&c.length&&h&&h.length?oS(c,h,n,_):c}var mX=Ds(function(c,h){var _=c==null?0:c.length,O=Xx(c,h);return X2(c,qt(h,function(M){return Is(M,_)?+M:M}).sort(sP)),O});function gX(c,h){var _=[];if(!(c&&c.length))return _;var O=-1,M=[],q=c.length;for(h=Tt(h,3);++O<q;){var ue=c[O];h(ue,O,c)&&(_.push(ue),M.push(O))}return X2(c,M),_}function CS(c){return c==null?c:uQ.call(c)}function vX(c,h,_){var O=c==null?0:c.length;return O?(_&&typeof _!="number"&&bi(c,h,_)?(h=0,_=O):(h=h==null?0:Bt(h),_=_===n?O:Bt(_)),ko(c,h,_)):[]}function yX(c,h){return Iy(c,h)}function bX(c,h,_){return lS(c,h,Tt(_,2))}function wX(c,h){var _=c==null?0:c.length;if(_){var O=Iy(c,h);if(O<_&&fa(c[O],h))return O}return-1}function _X(c,h){return Iy(c,h,!0)}function xX(c,h,_){return lS(c,h,Tt(_,2),!0)}function SX(c,h){var _=c==null?0:c.length;if(_){var O=Iy(c,h,!0)-1;if(fa(c[O],h))return O}return-1}function EX(c){return c&&c.length?Z2(c):[]}function CX(c,h){return c&&c.length?Z2(c,Tt(h,2)):[]}function kX(c){var h=c==null?0:c.length;return h?ko(c,1,h):[]}function TX(c,h,_){return c&&c.length?(h=_||h===n?1:Bt(h),ko(c,0,h<0?0:h)):[]}function RX(c,h,_){var O=c==null?0:c.length;return O?(h=_||h===n?1:Bt(h),h=O-h,ko(c,h<0?0:h,O)):[]}function OX(c,h){return c&&c.length?Py(c,Tt(h,3),!1,!0):[]}function AX(c,h){return c&&c.length?Py(c,Tt(h,3)):[]}var DX=Ht(function(c){return Ol(Hr(c,1,vr,!0))}),IX=Ht(function(c){var h=To(c);return vr(h)&&(h=n),Ol(Hr(c,1,vr,!0),Tt(h,2))}),PX=Ht(function(c){var h=To(c);return h=typeof h=="function"?h:n,Ol(Hr(c,1,vr,!0),n,h)});function $X(c){return c&&c.length?Ol(c):[]}function FX(c,h){return c&&c.length?Ol(c,Tt(h,2)):[]}function LX(c,h){return h=typeof h=="function"?h:n,c&&c.length?Ol(c,n,h):[]}function kS(c){if(!(c&&c.length))return[];var h=0;return c=_o(c,function(_){if(vr(_))return h=Or(_.length,h),!0}),Hu(h,function(_){return qt(c,Ti(_))})}function BP(c,h){if(!(c&&c.length))return[];var _=kS(c);return h==null?_:qt(_,function(O){return Nt(h,n,O)})}var MX=Ht(function(c,h){return vr(c)?Ch(c,h):[]}),NX=Ht(function(c){return cS(_o(c,vr))}),BX=Ht(function(c){var h=To(c);return vr(h)&&(h=n),cS(_o(c,vr),Tt(h,2))}),jX=Ht(function(c){var h=To(c);return h=typeof h=="function"?h:n,cS(_o(c,vr),n,h)}),zX=Ht(kS);function UX(c,h){return rP(c||[],h||[],Eh)}function VX(c,h){return rP(c||[],h||[],Rh)}var WX=Ht(function(c){var h=c.length,_=h>1?c[h-1]:n;return _=typeof _=="function"?(c.pop(),_):n,BP(c,_)});function jP(c){var h=K(c);return h.__chain__=!0,h}function KX(c,h){return h(c),c}function Uy(c,h){return h(c)}var HX=Ds(function(c){var h=c.length,_=h?c[0]:0,O=this.__wrapped__,M=function(q){return Xx(q,c)};return h>1||this.__actions__.length||!(O instanceof Xt)||!Is(_)?this.thru(M):(O=O.slice(_,+_+(h?1:0)),O.__actions__.push({func:Uy,args:[M],thisArg:n}),new Eo(O,this.__chain__).thru(function(q){return h&&!q.length&&q.push(n),q}))});function qX(){return jP(this)}function GX(){return new Eo(this.value(),this.__chain__)}function QX(){this.__values__===n&&(this.__values__=e$(this.value()));var c=this.__index__>=this.__values__.length,h=c?n:this.__values__[this.__index__++];return{done:c,value:h}}function YX(){return this}function XX(c){for(var h,_=this;_ instanceof Ty;){var O=PP(_);O.__index__=0,O.__values__=n,h?M.__wrapped__=O:h=O;var M=O;_=_.__wrapped__}return M.__wrapped__=c,h}function JX(){var c=this.__wrapped__;if(c instanceof Xt){var h=c;return this.__actions__.length&&(h=new Xt(this)),h=h.reverse(),h.__actions__.push({func:Uy,args:[CS],thisArg:n}),new Eo(h,this.__chain__)}return this.thru(CS)}function ZX(){return nP(this.__wrapped__,this.__actions__)}var eJ=$y(function(c,h,_){_n.call(c,_)?++c[_]:Os(c,_,1)});function tJ(c,h,_){var O=Lt(c)?Yi:KQ;return _&&bi(c,h,_)&&(h=n),O(c,Tt(h,3))}function nJ(c,h){var _=Lt(c)?_o:B2;return _(c,Tt(h,3))}var rJ=pP($P),iJ=pP(FP);function oJ(c,h){return Hr(Vy(c,h),1)}function aJ(c,h){return Hr(Vy(c,h),te)}function sJ(c,h,_){return _=_===n?1:Bt(_),Hr(Vy(c,h),_)}function zP(c,h){var _=Lt(c)?vi:Rl;return _(c,Tt(h,3))}function UP(c,h){var _=Lt(c)?sy:N2;return _(c,Tt(h,3))}var lJ=$y(function(c,h,_){_n.call(c,_)?c[_].push(h):Os(c,_,[h])});function uJ(c,h,_,O){c=Oi(c)?c:jf(c),_=_&&!O?Bt(_):0;var M=c.length;return _<0&&(_=Or(M+_,0)),Gy(c)?_<=M&&c.indexOf(h,_)>-1:!!M&&$a(c,h,_)>-1}var cJ=Ht(function(c,h,_){var O=-1,M=typeof h=="function",q=Oi(c)?ye(c.length):[];return Rl(c,function(ue){q[++O]=M?Nt(h,ue,_):kh(ue,h,_)}),q}),fJ=$y(function(c,h,_){Os(c,_,h)});function Vy(c,h){var _=Lt(c)?qt:K2;return _(c,Tt(h,3))}function dJ(c,h,_,O){return c==null?[]:(Lt(h)||(h=h==null?[]:[h]),_=O?n:_,Lt(_)||(_=_==null?[]:[_]),Q2(c,h,_))}var pJ=$y(function(c,h,_){c[_?0:1].push(h)},function(){return[[],[]]});function hJ(c,h,_){var O=Lt(c)?Cl:Ku,M=arguments.length<3;return O(c,Tt(h,4),_,M,Rl)}function mJ(c,h,_){var O=Lt(c)?ly:Ku,M=arguments.length<3;return O(c,Tt(h,4),_,M,N2)}function gJ(c,h){var _=Lt(c)?_o:B2;return _(c,Hy(Tt(h,3)))}function vJ(c){var h=Lt(c)?$2:uY;return h(c)}function yJ(c,h,_){(_?bi(c,h,_):h===n)?h=1:h=Bt(h);var O=Lt(c)?jQ:cY;return O(c,h)}function bJ(c){var h=Lt(c)?zQ:dY;return h(c)}function wJ(c){if(c==null)return 0;if(Oi(c))return Gy(c)?E(c):c.length;var h=oi(c);return h==Qe||h==Te?c.size:rS(c).length}function _J(c,h,_){var O=Lt(c)?fh:pY;return _&&bi(c,h,_)&&(h=n),O(c,Tt(h,3))}var xJ=Ht(function(c,h){if(c==null)return[];var _=h.length;return _>1&&bi(c,h[0],h[1])?h=[]:_>2&&bi(h[0],h[1],h[2])&&(h=[h[0]]),Q2(c,Hr(h,1),[])}),Wy=nQ||function(){return Rr.Date.now()};function SJ(c,h){if(typeof h!="function")throw new So(a);return c=Bt(c),function(){if(--c<1)return h.apply(this,arguments)}}function VP(c,h,_){return h=_?n:h,h=c&&h==null?c.length:h,As(c,P,n,n,n,n,h)}function WP(c,h){var _;if(typeof h!="function")throw new So(a);return c=Bt(c),function(){return--c>0&&(_=h.apply(this,arguments)),c<=1&&(h=n),_}}var TS=Ht(function(c,h,_){var O=x;if(_.length){var M=La(_,Nf(TS));O|=k}return As(c,O,h,_,M)}),KP=Ht(function(c,h,_){var O=x|b;if(_.length){var M=La(_,Nf(KP));O|=k}return As(h,O,c,_,M)});function HP(c,h,_){h=_?n:h;var O=As(c,S,n,n,n,n,n,h);return O.placeholder=HP.placeholder,O}function qP(c,h,_){h=_?n:h;var O=As(c,C,n,n,n,n,n,h);return O.placeholder=qP.placeholder,O}function GP(c,h,_){var O,M,q,ue,ve,_e,Me=0,Ne=!1,Ge=!1,st=!0;if(typeof c!="function")throw new So(a);h=Ro(h)||0,Jn(_)&&(Ne=!!_.leading,Ge="maxWait"in _,q=Ge?Or(Ro(_.maxWait)||0,h):q,st="trailing"in _?!!_.trailing:st);function bt(yr){var da=O,Fs=M;return O=M=n,Me=yr,ue=c.apply(Fs,da),ue}function At(yr){return Me=yr,ve=Dh(Qt,h),Ne?bt(yr):ue}function Ut(yr){var da=yr-_e,Fs=yr-Me,p$=h-da;return Ge?ii(p$,q-Fs):p$}function Dt(yr){var da=yr-_e,Fs=yr-Me;return _e===n||da>=h||da<0||Ge&&Fs>=q}function Qt(){var yr=Wy();if(Dt(yr))return tn(yr);ve=Dh(Qt,Ut(yr))}function tn(yr){return ve=n,st&&O?bt(yr):(O=M=n,ue)}function Zi(){ve!==n&&iP(ve),Me=0,O=_e=M=ve=n}function wi(){return ve===n?ue:tn(Wy())}function eo(){var yr=Wy(),da=Dt(yr);if(O=arguments,M=this,_e=yr,da){if(ve===n)return At(_e);if(Ge)return iP(ve),ve=Dh(Qt,h),bt(_e)}return ve===n&&(ve=Dh(Qt,h)),ue}return eo.cancel=Zi,eo.flush=wi,eo}var EJ=Ht(function(c,h){return M2(c,1,h)}),CJ=Ht(function(c,h,_){return M2(c,Ro(h)||0,_)});function kJ(c){return As(c,V)}function Ky(c,h){if(typeof c!="function"||h!=null&&typeof h!="function")throw new So(a);var _=function(){var O=arguments,M=h?h.apply(this,O):O[0],q=_.cache;if(q.has(M))return q.get(M);var ue=c.apply(this,O);return _.cache=q.set(M,ue)||q,ue};return _.cache=new(Ky.Cache||Rs),_}Ky.Cache=Rs;function Hy(c){if(typeof c!="function")throw new So(a);return function(){var h=arguments;switch(h.length){case 0:return!c.call(this);case 1:return!c.call(this,h[0]);case 2:return!c.call(this,h[0],h[1]);case 3:return!c.call(this,h[0],h[1],h[2])}return!c.apply(this,h)}}function TJ(c){return WP(2,c)}var RJ=hY(function(c,h){h=h.length==1&&Lt(h[0])?qt(h[0],ri(Tt())):qt(Hr(h,1),ri(Tt()));var _=h.length;return Ht(function(O){for(var M=-1,q=ii(O.length,_);++M<q;)O[M]=h[M].call(this,O[M]);return Nt(c,this,O)})}),RS=Ht(function(c,h){var _=La(h,Nf(RS));return As(c,k,n,h,_)}),QP=Ht(function(c,h){var _=La(h,Nf(QP));return As(c,D,n,h,_)}),OJ=Ds(function(c,h){return As(c,B,n,n,n,h)});function AJ(c,h){if(typeof c!="function")throw new So(a);return h=h===n?h:Bt(h),Ht(c,h)}function DJ(c,h){if(typeof c!="function")throw new So(a);return h=h==null?0:Or(Bt(h),0),Ht(function(_){var O=_[h],M=Dl(_,0,h);return O&&In(M,O),Nt(c,this,M)})}function IJ(c,h,_){var O=!0,M=!0;if(typeof c!="function")throw new So(a);return Jn(_)&&(O="leading"in _?!!_.leading:O,M="trailing"in _?!!_.trailing:M),GP(c,h,{leading:O,maxWait:h,trailing:M})}function PJ(c){return VP(c,1)}function $J(c,h){return RS(dS(h),c)}function FJ(){if(!arguments.length)return[];var c=arguments[0];return Lt(c)?c:[c]}function LJ(c){return Co(c,v)}function MJ(c,h){return h=typeof h=="function"?h:n,Co(c,v,h)}function NJ(c){return Co(c,p|v)}function BJ(c,h){return h=typeof h=="function"?h:n,Co(c,p|v,h)}function jJ(c,h){return h==null||L2(c,h,Fr(h))}function fa(c,h){return c===h||c!==c&&h!==h}var zJ=Ny(eS),UJ=Ny(function(c,h){return c>=h}),ec=U2(function(){return arguments}())?U2:function(c){return ar(c)&&_n.call(c,"callee")&&!R2.call(c,"callee")},Lt=ye.isArray,VJ=iy?ri(iy):XQ;function Oi(c){return c!=null&&qy(c.length)&&!Ps(c)}function vr(c){return ar(c)&&Oi(c)}function WJ(c){return c===!0||c===!1||ar(c)&&yi(c)==ke}var Il=iQ||BS,KJ=oy?ri(oy):JQ;function HJ(c){return ar(c)&&c.nodeType===1&&!Ih(c)}function qJ(c){if(c==null)return!0;if(Oi(c)&&(Lt(c)||typeof c=="string"||typeof c.splice=="function"||Il(c)||Bf(c)||ec(c)))return!c.length;var h=oi(c);if(h==Qe||h==Te)return!c.size;if(Ah(c))return!rS(c).length;for(var _ in c)if(_n.call(c,_))return!1;return!0}function GJ(c,h){return Th(c,h)}function QJ(c,h,_){_=typeof _=="function"?_:n;var O=_?_(c,h):n;return O===n?Th(c,h,n,_):!!O}function OS(c){if(!ar(c))return!1;var h=yi(c);return h==Le||h==Fe||typeof c.message=="string"&&typeof c.name=="string"&&!Ih(c)}function YJ(c){return typeof c=="number"&&A2(c)}function Ps(c){if(!Jn(c))return!1;var h=yi(c);return h==Ue||h==He||h==xe||h==wt}function YP(c){return typeof c=="number"&&c==Bt(c)}function qy(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=Y}function Jn(c){var h=typeof c;return c!=null&&(h=="object"||h=="function")}function ar(c){return c!=null&&typeof c=="object"}var XP=ks?ri(ks):eY;function XJ(c,h){return c===h||nS(c,h,bS(h))}function JJ(c,h,_){return _=typeof _=="function"?_:n,nS(c,h,bS(h),_)}function ZJ(c){return JP(c)&&c!=+c}function eZ(c){if(MY(c))throw new tt(o);return V2(c)}function tZ(c){return c===null}function nZ(c){return c==null}function JP(c){return typeof c=="number"||ar(c)&&yi(c)==qe}function Ih(c){if(!ar(c)||yi(c)!=et)return!1;var h=wy(c);if(h===null)return!0;var _=_n.call(h,"constructor")&&h.constructor;return typeof _=="function"&&_ instanceof _&&gy.call(_)==JG}var AS=Vu?ri(Vu):tY;function rZ(c){return YP(c)&&c>=-Y&&c<=Y}var ZP=ch?ri(ch):nY;function Gy(c){return typeof c=="string"||!Lt(c)&&ar(c)&&yi(c)==Ce}function Ji(c){return typeof c=="symbol"||ar(c)&&yi(c)==Oe}var Bf=Ef?ri(Ef):rY;function iZ(c){return c===n}function oZ(c){return ar(c)&&oi(c)==H}function aZ(c){return ar(c)&&yi(c)==he}var sZ=Ny(iS),lZ=Ny(function(c,h){return c<=h});function e$(c){if(!c)return[];if(Oi(c))return Gy(c)?I(c):Ri(c);if(bh&&c[bh])return dy(c[bh]());var h=oi(c),_=h==Qe?vh:h==Te?Df:jf;return _(c)}function $s(c){if(!c)return c===0?c:0;if(c=Ro(c),c===te||c===-te){var h=c<0?-1:1;return h*ee}return c===c?c:0}function Bt(c){var h=$s(c),_=h%1;return h===h?_?h-_:h:0}function t$(c){return c?Yu(Bt(c),0,L):0}function Ro(c){if(typeof c=="number")return c;if(Ji(c))return G;if(Jn(c)){var h=typeof c.valueOf=="function"?c.valueOf():c;c=Jn(h)?h+"":h}if(typeof c!="string")return c===0?c:+c;c=mh(c);var _=It.test(c);return _||vf.test(c)?ah(c.slice(2),_?2:8):ir.test(c)?G:+c}function n$(c){return Na(c,Ai(c))}function uZ(c){return c?Yu(Bt(c),-Y,Y):c===0?c:0}function vn(c){return c==null?"":Xi(c)}var cZ=Lf(function(c,h){if(Ah(h)||Oi(h)){Na(h,Fr(h),c);return}for(var _ in h)_n.call(h,_)&&Eh(c,_,h[_])}),r$=Lf(function(c,h){Na(h,Ai(h),c)}),Qy=Lf(function(c,h,_,O){Na(h,Ai(h),c,O)}),fZ=Lf(function(c,h,_,O){Na(h,Fr(h),c,O)}),dZ=Ds(Xx);function pZ(c,h){var _=Ff(c);return h==null?_:F2(_,h)}var hZ=Ht(function(c,h){c=Gt(c);var _=-1,O=h.length,M=O>2?h[2]:n;for(M&&bi(h[0],h[1],M)&&(O=1);++_<O;)for(var q=h[_],ue=Ai(q),ve=-1,_e=ue.length;++ve<_e;){var Me=ue[ve],Ne=c[Me];(Ne===n||fa(Ne,If[Me])&&!_n.call(c,Me))&&(c[Me]=q[Me])}return c}),mZ=Ht(function(c){return c.push(n,wP),Nt(i$,n,c)});function gZ(c,h){return ph(c,Tt(h,3),Ma)}function vZ(c,h){return ph(c,Tt(h,3),Zx)}function yZ(c,h){return c==null?c:Jx(c,Tt(h,3),Ai)}function bZ(c,h){return c==null?c:j2(c,Tt(h,3),Ai)}function wZ(c,h){return c&&Ma(c,Tt(h,3))}function _Z(c,h){return c&&Zx(c,Tt(h,3))}function xZ(c){return c==null?[]:Ay(c,Fr(c))}function SZ(c){return c==null?[]:Ay(c,Ai(c))}function DS(c,h,_){var O=c==null?n:Xu(c,h);return O===n?_:O}function EZ(c,h){return c!=null&&SP(c,h,qQ)}function IS(c,h){return c!=null&&SP(c,h,GQ)}var CZ=mP(function(c,h,_){h!=null&&typeof h.toString!="function"&&(h=vy.call(h)),c[h]=_},$S(Di)),kZ=mP(function(c,h,_){h!=null&&typeof h.toString!="function"&&(h=vy.call(h)),_n.call(c,h)?c[h].push(_):c[h]=[_]},Tt),TZ=Ht(kh);function Fr(c){return Oi(c)?P2(c):rS(c)}function Ai(c){return Oi(c)?P2(c,!0):iY(c)}function RZ(c,h){var _={};return h=Tt(h,3),Ma(c,function(O,M,q){Os(_,h(O,M,q),O)}),_}function OZ(c,h){var _={};return h=Tt(h,3),Ma(c,function(O,M,q){Os(_,M,h(O,M,q))}),_}var AZ=Lf(function(c,h,_){Dy(c,h,_)}),i$=Lf(function(c,h,_,O){Dy(c,h,_,O)}),DZ=Ds(function(c,h){var _={};if(c==null)return _;var O=!1;h=qt(h,function(q){return q=Al(q,c),O||(O=q.length>1),q}),Na(c,vS(c),_),O&&(_=Co(_,p|d|v,CY));for(var M=h.length;M--;)uS(_,h[M]);return _});function IZ(c,h){return o$(c,Hy(Tt(h)))}var PZ=Ds(function(c,h){return c==null?{}:aY(c,h)});function o$(c,h){if(c==null)return{};var _=qt(vS(c),function(O){return[O]});return h=Tt(h),Y2(c,_,function(O,M){return h(O,M[0])})}function $Z(c,h,_){h=Al(h,c);var O=-1,M=h.length;for(M||(M=1,c=n);++O<M;){var q=c==null?n:c[Ba(h[O])];q===n&&(O=M,q=_),c=Ps(q)?q.call(c):q}return c}function FZ(c,h,_){return c==null?c:Rh(c,h,_)}function LZ(c,h,_,O){return O=typeof O=="function"?O:n,c==null?c:Rh(c,h,_,O)}var a$=yP(Fr),s$=yP(Ai);function MZ(c,h,_){var O=Lt(c),M=O||Il(c)||Bf(c);if(h=Tt(h,4),_==null){var q=c&&c.constructor;M?_=O?new q:[]:Jn(c)?_=Ps(q)?Ff(wy(c)):{}:_={}}return(M?vi:Ma)(c,function(ue,ve,_e){return h(_,ue,ve,_e)}),_}function NZ(c,h){return c==null?!0:uS(c,h)}function BZ(c,h,_){return c==null?c:tP(c,h,dS(_))}function jZ(c,h,_,O){return O=typeof O=="function"?O:n,c==null?c:tP(c,h,dS(_),O)}function jf(c){return c==null?[]:Fa(c,Fr(c))}function zZ(c){return c==null?[]:Fa(c,Ai(c))}function UZ(c,h,_){return _===n&&(_=h,h=n),_!==n&&(_=Ro(_),_=_===_?_:0),h!==n&&(h=Ro(h),h=h===h?h:0),Yu(Ro(c),h,_)}function VZ(c,h,_){return h=$s(h),_===n?(_=h,h=0):_=$s(_),c=Ro(c),QQ(c,h,_)}function WZ(c,h,_){if(_&&typeof _!="boolean"&&bi(c,h,_)&&(h=_=n),_===n&&(typeof h=="boolean"?(_=h,h=n):typeof c=="boolean"&&(_=c,c=n)),c===n&&h===n?(c=0,h=1):(c=$s(c),h===n?(h=c,c=0):h=$s(h)),c>h){var O=c;c=h,h=O}if(_||c%1||h%1){var M=D2();return ii(c+M*(h-c+ry("1e-"+((M+"").length-1))),h)}return aS(c,h)}var KZ=Mf(function(c,h,_){return h=h.toLowerCase(),c+(_?l$(h):h)});function l$(c){return PS(vn(c).toLowerCase())}function u$(c){return c=vn(c),c&&c.replace(gr,$r).replace(xf,"")}function HZ(c,h,_){c=vn(c),h=Xi(h);var O=c.length;_=_===n?O:Yu(Bt(_),0,O);var M=_;return _-=h.length,_>=0&&c.slice(_,M)==h}function qZ(c){return c=vn(c),c&&ht.test(c)?c.replace(ct,Af):c}function GZ(c){return c=vn(c),c&&mr.test(c)?c.replace(Ir,"\\$&"):c}var QZ=Mf(function(c,h,_){return c+(_?"-":"")+h.toLowerCase()}),YZ=Mf(function(c,h,_){return c+(_?" ":"")+h.toLowerCase()}),XZ=dP("toLowerCase");function JZ(c,h,_){c=vn(c),h=Bt(h);var O=h?E(c):0;if(!h||O>=h)return c;var M=(h-O)/2;return My(Ey(M),_)+c+My(Sy(M),_)}function ZZ(c,h,_){c=vn(c),h=Bt(h);var O=h?E(c):0;return h&&O<h?c+My(h-O,_):c}function eee(c,h,_){c=vn(c),h=Bt(h);var O=h?E(c):0;return h&&O<h?My(h-O,_)+c:c}function tee(c,h,_){return _||h==null?h=0:h&&(h=+h),lQ(vn(c).replace(wr,""),h||0)}function nee(c,h,_){return(_?bi(c,h,_):h===n)?h=1:h=Bt(h),sS(vn(c),h)}function ree(){var c=arguments,h=vn(c[0]);return c.length<3?h:h.replace(c[1],c[2])}var iee=Mf(function(c,h,_){return c+(_?"_":"")+h.toLowerCase()});function oee(c,h,_){return _&&typeof _!="number"&&bi(c,h,_)&&(h=_=n),_=_===n?L:_>>>0,_?(c=vn(c),c&&(typeof h=="string"||h!=null&&!AS(h))&&(h=Xi(h),!h&&ua(c))?Dl(I(c),0,_):c.split(h,_)):[]}var aee=Mf(function(c,h,_){return c+(_?" ":"")+PS(h)});function see(c,h,_){return c=vn(c),_=_==null?0:Yu(Bt(_),0,c.length),h=Xi(h),c.slice(_,_+h.length)==h}function lee(c,h,_){var O=K.templateSettings;_&&bi(c,h,_)&&(h=n),c=vn(c),h=Qy({},h,O,bP);var M=Qy({},h.imports,O.imports,bP),q=Fr(M),ue=Fa(M,q),ve,_e,Me=0,Ne=h.interpolate||ia,Ge="__p += '",st=kl((h.escape||ia).source+"|"+Ne.source+"|"+(Ne===en?An:ia).source+"|"+(h.evaluate||ia).source+"|$","g"),bt="//# sourceURL="+(_n.call(h,"sourceURL")?(h.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Sf+"]")+`
|
|
615
|
-
`;c.replace(st,function(Dt,Qt,tn,Zi,wi,eo){return tn||(tn=Zi),Ge+=c.slice(Me,eo).replace(ju,Wx),Qt&&(ve=!0,Ge+=`' +
|
|
616
|
-
__e(`+Qt+`) +
|
|
617
|
-
'`),wi&&(_e=!0,Ge+=`';
|
|
618
|
-
`+wi+`;
|
|
619
|
-
__p += '`),tn&&(Ge+=`' +
|
|
620
|
-
((__t = (`+tn+`)) == null ? '' : __t) +
|
|
621
|
-
'`),Me=eo+Dt.length,Dt}),Ge+=`';
|
|
622
|
-
`;var At=_n.call(h,"variable")&&h.variable;if(!At)Ge=`with (obj) {
|
|
623
|
-
`+Ge+`
|
|
624
|
-
}
|
|
625
|
-
`;else if(yl.test(At))throw new tt(s);Ge=(_e?Ge.replace(We,""):Ge).replace(Ke,"$1").replace(Ye,"$1;"),Ge="function("+(At||"obj")+`) {
|
|
626
|
-
`+(At?"":`obj || (obj = {});
|
|
627
|
-
`)+"var __t, __p = ''"+(ve?", __e = _.escape":"")+(_e?`, __j = Array.prototype.join;
|
|
628
|
-
function print() { __p += __j.call(arguments, '') }
|
|
629
|
-
`:`;
|
|
630
|
-
`)+Ge+`return __p
|
|
631
|
-
}`;var Ut=f$(function(){return _t(q,bt+"return "+Ge).apply(n,ue)});if(Ut.source=Ge,OS(Ut))throw Ut;return Ut}function uee(c){return vn(c).toLowerCase()}function cee(c){return vn(c).toUpperCase()}function fee(c,h,_){if(c=vn(c),c&&(_||h===n))return mh(c);if(!c||!(h=Xi(h)))return c;var O=I(c),M=I(h),q=gh(O,M),ue=Of(O,M)+1;return Dl(O,q,ue).join("")}function dee(c,h,_){if(c=vn(c),c&&(_||h===n))return c.slice(0,$(c)+1);if(!c||!(h=Xi(h)))return c;var O=I(c),M=Of(O,I(h))+1;return Dl(O,0,M).join("")}function pee(c,h,_){if(c=vn(c),c&&(_||h===n))return c.replace(wr,"");if(!c||!(h=Xi(h)))return c;var O=I(c),M=gh(O,I(h));return Dl(O,M).join("")}function hee(c,h){var _=U,O=W;if(Jn(h)){var M="separator"in h?h.separator:M;_="length"in h?Bt(h.length):_,O="omission"in h?Xi(h.omission):O}c=vn(c);var q=c.length;if(ua(c)){var ue=I(c);q=ue.length}if(_>=q)return c;var ve=_-E(O);if(ve<1)return O;var _e=ue?Dl(ue,0,ve).join(""):c.slice(0,ve);if(M===n)return _e+O;if(ue&&(ve+=_e.length-ve),AS(M)){if(c.slice(ve).search(M)){var Me,Ne=_e;for(M.global||(M=kl(M.source,vn(Qi.exec(M))+"g")),M.lastIndex=0;Me=M.exec(Ne);)var Ge=Me.index;_e=_e.slice(0,Ge===n?ve:Ge)}}else if(c.indexOf(Xi(M),ve)!=ve){var st=_e.lastIndexOf(M);st>-1&&(_e=_e.slice(0,st))}return _e+O}function mee(c){return c=vn(c),c&&ot.test(c)?c.replace(dt,N):c}var gee=Mf(function(c,h,_){return c+(_?" ":"")+h.toUpperCase()}),PS=dP("toUpperCase");function c$(c,h,_){return c=vn(c),h=_?n:h,h===n?fy(c)?we(c):dh(c):c.match(h)||[]}var f$=Ht(function(c,h){try{return Nt(c,n,h)}catch(_){return OS(_)?_:new tt(_)}}),vee=Ds(function(c,h){return vi(h,function(_){_=Ba(_),Os(c,_,TS(c[_],c))}),c});function yee(c){var h=c==null?0:c.length,_=Tt();return c=h?qt(c,function(O){if(typeof O[1]!="function")throw new So(a);return[_(O[0]),O[1]]}):[],Ht(function(O){for(var M=-1;++M<h;){var q=c[M];if(Nt(q[0],this,O))return Nt(q[1],this,O)}})}function bee(c){return WQ(Co(c,p))}function $S(c){return function(){return c}}function wee(c,h){return c==null||c!==c?h:c}var _ee=hP(),xee=hP(!0);function Di(c){return c}function FS(c){return W2(typeof c=="function"?c:Co(c,p))}function See(c){return H2(Co(c,p))}function Eee(c,h){return q2(c,Co(h,p))}var Cee=Ht(function(c,h){return function(_){return kh(_,c,h)}}),kee=Ht(function(c,h){return function(_){return kh(c,_,h)}});function LS(c,h,_){var O=Fr(h),M=Ay(h,O);_==null&&!(Jn(h)&&(M.length||!O.length))&&(_=h,h=c,c=this,M=Ay(h,Fr(h)));var q=!(Jn(_)&&"chain"in _)||!!_.chain,ue=Ps(c);return vi(M,function(ve){var _e=h[ve];c[ve]=_e,ue&&(c.prototype[ve]=function(){var Me=this.__chain__;if(q||Me){var Ne=c(this.__wrapped__),Ge=Ne.__actions__=Ri(this.__actions__);return Ge.push({func:_e,args:arguments,thisArg:c}),Ne.__chain__=Me,Ne}return _e.apply(c,In([this.value()],arguments))})}),c}function Tee(){return Rr._===this&&(Rr._=ZG),this}function MS(){}function Ree(c){return c=Bt(c),Ht(function(h){return G2(h,c)})}var Oee=hS(qt),Aee=hS(Yi),Dee=hS(fh);function d$(c){return _S(c)?Ti(Ba(c)):sY(c)}function Iee(c){return function(h){return c==null?n:Xu(c,h)}}var Pee=gP(),$ee=gP(!0);function NS(){return[]}function BS(){return!1}function Fee(){return{}}function Lee(){return""}function Mee(){return!0}function Nee(c,h){if(c=Bt(c),c<1||c>Y)return[];var _=L,O=ii(c,L);h=Tt(h),c-=L;for(var M=Hu(O,h);++_<c;)h(_);return M}function Bee(c){return Lt(c)?qt(c,Ba):Ji(c)?[c]:Ri(IP(vn(c)))}function jee(c){var h=++XG;return vn(c)+h}var zee=Ly(function(c,h){return c+h},0),Uee=mS("ceil"),Vee=Ly(function(c,h){return c/h},1),Wee=mS("floor");function Kee(c){return c&&c.length?Oy(c,Di,eS):n}function Hee(c,h){return c&&c.length?Oy(c,Tt(h,2),eS):n}function qee(c){return kf(c,Di)}function Gee(c,h){return kf(c,Tt(h,2))}function Qee(c){return c&&c.length?Oy(c,Di,iS):n}function Yee(c,h){return c&&c.length?Oy(c,Tt(h,2),iS):n}var Xee=Ly(function(c,h){return c*h},1),Jee=mS("round"),Zee=Ly(function(c,h){return c-h},0);function ete(c){return c&&c.length?Rf(c,Di):0}function tte(c,h){return c&&c.length?Rf(c,Tt(h,2)):0}return K.after=SJ,K.ary=VP,K.assign=cZ,K.assignIn=r$,K.assignInWith=Qy,K.assignWith=fZ,K.at=dZ,K.before=WP,K.bind=TS,K.bindAll=vee,K.bindKey=KP,K.castArray=FJ,K.chain=jP,K.chunk=WY,K.compact=KY,K.concat=HY,K.cond=yee,K.conforms=bee,K.constant=$S,K.countBy=eJ,K.create=pZ,K.curry=HP,K.curryRight=qP,K.debounce=GP,K.defaults=hZ,K.defaultsDeep=mZ,K.defer=EJ,K.delay=CJ,K.difference=qY,K.differenceBy=GY,K.differenceWith=QY,K.drop=YY,K.dropRight=XY,K.dropRightWhile=JY,K.dropWhile=ZY,K.fill=eX,K.filter=nJ,K.flatMap=oJ,K.flatMapDeep=aJ,K.flatMapDepth=sJ,K.flatten=LP,K.flattenDeep=tX,K.flattenDepth=nX,K.flip=kJ,K.flow=_ee,K.flowRight=xee,K.fromPairs=rX,K.functions=xZ,K.functionsIn=SZ,K.groupBy=lJ,K.initial=oX,K.intersection=aX,K.intersectionBy=sX,K.intersectionWith=lX,K.invert=CZ,K.invertBy=kZ,K.invokeMap=cJ,K.iteratee=FS,K.keyBy=fJ,K.keys=Fr,K.keysIn=Ai,K.map=Vy,K.mapKeys=RZ,K.mapValues=OZ,K.matches=See,K.matchesProperty=Eee,K.memoize=Ky,K.merge=AZ,K.mergeWith=i$,K.method=Cee,K.methodOf=kee,K.mixin=LS,K.negate=Hy,K.nthArg=Ree,K.omit=DZ,K.omitBy=IZ,K.once=TJ,K.orderBy=dJ,K.over=Oee,K.overArgs=RJ,K.overEvery=Aee,K.overSome=Dee,K.partial=RS,K.partialRight=QP,K.partition=pJ,K.pick=PZ,K.pickBy=o$,K.property=d$,K.propertyOf=Iee,K.pull=dX,K.pullAll=NP,K.pullAllBy=pX,K.pullAllWith=hX,K.pullAt=mX,K.range=Pee,K.rangeRight=$ee,K.rearg=OJ,K.reject=gJ,K.remove=gX,K.rest=AJ,K.reverse=CS,K.sampleSize=yJ,K.set=FZ,K.setWith=LZ,K.shuffle=bJ,K.slice=vX,K.sortBy=xJ,K.sortedUniq=EX,K.sortedUniqBy=CX,K.split=oee,K.spread=DJ,K.tail=kX,K.take=TX,K.takeRight=RX,K.takeRightWhile=OX,K.takeWhile=AX,K.tap=KX,K.throttle=IJ,K.thru=Uy,K.toArray=e$,K.toPairs=a$,K.toPairsIn=s$,K.toPath=Bee,K.toPlainObject=n$,K.transform=MZ,K.unary=PJ,K.union=DX,K.unionBy=IX,K.unionWith=PX,K.uniq=$X,K.uniqBy=FX,K.uniqWith=LX,K.unset=NZ,K.unzip=kS,K.unzipWith=BP,K.update=BZ,K.updateWith=jZ,K.values=jf,K.valuesIn=zZ,K.without=MX,K.words=c$,K.wrap=$J,K.xor=NX,K.xorBy=BX,K.xorWith=jX,K.zip=zX,K.zipObject=UX,K.zipObjectDeep=VX,K.zipWith=WX,K.entries=a$,K.entriesIn=s$,K.extend=r$,K.extendWith=Qy,LS(K,K),K.add=zee,K.attempt=f$,K.camelCase=KZ,K.capitalize=l$,K.ceil=Uee,K.clamp=UZ,K.clone=LJ,K.cloneDeep=NJ,K.cloneDeepWith=BJ,K.cloneWith=MJ,K.conformsTo=jJ,K.deburr=u$,K.defaultTo=wee,K.divide=Vee,K.endsWith=HZ,K.eq=fa,K.escape=qZ,K.escapeRegExp=GZ,K.every=tJ,K.find=rJ,K.findIndex=$P,K.findKey=gZ,K.findLast=iJ,K.findLastIndex=FP,K.findLastKey=vZ,K.floor=Wee,K.forEach=zP,K.forEachRight=UP,K.forIn=yZ,K.forInRight=bZ,K.forOwn=wZ,K.forOwnRight=_Z,K.get=DS,K.gt=zJ,K.gte=UJ,K.has=EZ,K.hasIn=IS,K.head=MP,K.identity=Di,K.includes=uJ,K.indexOf=iX,K.inRange=VZ,K.invoke=TZ,K.isArguments=ec,K.isArray=Lt,K.isArrayBuffer=VJ,K.isArrayLike=Oi,K.isArrayLikeObject=vr,K.isBoolean=WJ,K.isBuffer=Il,K.isDate=KJ,K.isElement=HJ,K.isEmpty=qJ,K.isEqual=GJ,K.isEqualWith=QJ,K.isError=OS,K.isFinite=YJ,K.isFunction=Ps,K.isInteger=YP,K.isLength=qy,K.isMap=XP,K.isMatch=XJ,K.isMatchWith=JJ,K.isNaN=ZJ,K.isNative=eZ,K.isNil=nZ,K.isNull=tZ,K.isNumber=JP,K.isObject=Jn,K.isObjectLike=ar,K.isPlainObject=Ih,K.isRegExp=AS,K.isSafeInteger=rZ,K.isSet=ZP,K.isString=Gy,K.isSymbol=Ji,K.isTypedArray=Bf,K.isUndefined=iZ,K.isWeakMap=oZ,K.isWeakSet=aZ,K.join=uX,K.kebabCase=QZ,K.last=To,K.lastIndexOf=cX,K.lowerCase=YZ,K.lowerFirst=XZ,K.lt=sZ,K.lte=lZ,K.max=Kee,K.maxBy=Hee,K.mean=qee,K.meanBy=Gee,K.min=Qee,K.minBy=Yee,K.stubArray=NS,K.stubFalse=BS,K.stubObject=Fee,K.stubString=Lee,K.stubTrue=Mee,K.multiply=Xee,K.nth=fX,K.noConflict=Tee,K.noop=MS,K.now=Wy,K.pad=JZ,K.padEnd=ZZ,K.padStart=eee,K.parseInt=tee,K.random=WZ,K.reduce=hJ,K.reduceRight=mJ,K.repeat=nee,K.replace=ree,K.result=$Z,K.round=Jee,K.runInContext=X,K.sample=vJ,K.size=wJ,K.snakeCase=iee,K.some=_J,K.sortedIndex=yX,K.sortedIndexBy=bX,K.sortedIndexOf=wX,K.sortedLastIndex=_X,K.sortedLastIndexBy=xX,K.sortedLastIndexOf=SX,K.startCase=aee,K.startsWith=see,K.subtract=Zee,K.sum=ete,K.sumBy=tte,K.template=lee,K.times=Nee,K.toFinite=$s,K.toInteger=Bt,K.toLength=t$,K.toLower=uee,K.toNumber=Ro,K.toSafeInteger=uZ,K.toString=vn,K.toUpper=cee,K.trim=fee,K.trimEnd=dee,K.trimStart=pee,K.truncate=hee,K.unescape=mee,K.uniqueId=jee,K.upperCase=gee,K.upperFirst=PS,K.each=zP,K.eachRight=UP,K.first=MP,LS(K,function(){var c={};return Ma(K,function(h,_){_n.call(K.prototype,_)||(c[_]=h)}),c}(),{chain:!1}),K.VERSION=r,vi(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){K[c].placeholder=K}),vi(["drop","take"],function(c,h){Xt.prototype[c]=function(_){_=_===n?1:Or(Bt(_),0);var O=this.__filtered__&&!h?new Xt(this):this.clone();return O.__filtered__?O.__takeCount__=ii(_,O.__takeCount__):O.__views__.push({size:ii(_,L),type:c+(O.__dir__<0?"Right":"")}),O},Xt.prototype[c+"Right"]=function(_){return this.reverse()[c](_).reverse()}}),vi(["filter","map","takeWhile"],function(c,h){var _=h+1,O=_==re||_==F;Xt.prototype[c]=function(M){var q=this.clone();return q.__iteratees__.push({iteratee:Tt(M,3),type:_}),q.__filtered__=q.__filtered__||O,q}}),vi(["head","last"],function(c,h){var _="take"+(h?"Right":"");Xt.prototype[c]=function(){return this[_](1).value()[0]}}),vi(["initial","tail"],function(c,h){var _="drop"+(h?"":"Right");Xt.prototype[c]=function(){return this.__filtered__?new Xt(this):this[_](1)}}),Xt.prototype.compact=function(){return this.filter(Di)},Xt.prototype.find=function(c){return this.filter(c).head()},Xt.prototype.findLast=function(c){return this.reverse().find(c)},Xt.prototype.invokeMap=Ht(function(c,h){return typeof c=="function"?new Xt(this):this.map(function(_){return kh(_,c,h)})}),Xt.prototype.reject=function(c){return this.filter(Hy(Tt(c)))},Xt.prototype.slice=function(c,h){c=Bt(c);var _=this;return _.__filtered__&&(c>0||h<0)?new Xt(_):(c<0?_=_.takeRight(-c):c&&(_=_.drop(c)),h!==n&&(h=Bt(h),_=h<0?_.dropRight(-h):_.take(h-c)),_)},Xt.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},Xt.prototype.toArray=function(){return this.take(L)},Ma(Xt.prototype,function(c,h){var _=/^(?:filter|find|map|reject)|While$/.test(h),O=/^(?:head|last)$/.test(h),M=K[O?"take"+(h=="last"?"Right":""):h],q=O||/^find/.test(h);M&&(K.prototype[h]=function(){var ue=this.__wrapped__,ve=O?[1]:arguments,_e=ue instanceof Xt,Me=ve[0],Ne=_e||Lt(ue),Ge=function(Qt){var tn=M.apply(K,In([Qt],ve));return O&&st?tn[0]:tn};Ne&&_&&typeof Me=="function"&&Me.length!=1&&(_e=Ne=!1);var st=this.__chain__,bt=!!this.__actions__.length,At=q&&!st,Ut=_e&&!bt;if(!q&&Ne){ue=Ut?ue:new Xt(this);var Dt=c.apply(ue,ve);return Dt.__actions__.push({func:Uy,args:[Ge],thisArg:n}),new Eo(Dt,st)}return At&&Ut?c.apply(this,ve):(Dt=this.thru(Ge),At?O?Dt.value()[0]:Dt.value():Dt)})}),vi(["pop","push","shift","sort","splice","unshift"],function(c){var h=hy[c],_=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",O=/^(?:pop|shift)$/.test(c);K.prototype[c]=function(){var M=arguments;if(O&&!this.__chain__){var q=this.value();return h.apply(Lt(q)?q:[],M)}return this[_](function(ue){return h.apply(Lt(ue)?ue:[],M)})}}),Ma(Xt.prototype,function(c,h){var _=K[h];if(_){var O=_.name+"";_n.call($f,O)||($f[O]=[]),$f[O].push({name:h,func:_})}}),$f[Fy(n,b).name]=[{name:"wrapper",func:n}],Xt.prototype.clone=mQ,Xt.prototype.reverse=gQ,Xt.prototype.value=vQ,K.prototype.at=HX,K.prototype.chain=qX,K.prototype.commit=GX,K.prototype.next=QX,K.prototype.plant=XX,K.prototype.reverse=JX,K.prototype.toJSON=K.prototype.valueOf=K.prototype.value=ZX,K.prototype.first=K.prototype.head,bh&&(K.prototype[bh]=YX),K},Ie=De();Cs?((Cs.exports=Ie)._=Ie,Uu._=Ie):Rr._=Ie}).call(ao)})(lw,lw.exports);var PXe=lw.exports,v2={},$Xe=Wn;Object.defineProperty(v2,"__esModule",{value:!0});var bG=v2.default=void 0,FXe=$Xe(Kn()),LXe=T,MXe=(0,FXe.default)((0,LXe.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");bG=v2.default=MXe;const NXe=Ve("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"}})),n4=Ve("div")(()=>({display:"flex",alignItems:"center",justifyContent:"center"})),BXe=Ve(I_)(({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 jXe(){const[e,t]=yo(Nx),n=a=>{a=a.trim(),t({...e,search:a===""?void 0:a})},r=PXe.debounce(n,300),i=R.useRef(),o=()=>{r(""),i.current&&(i.current.value="")};return T.jsxs(NXe,{children:[T.jsx(n4,{sx:{position:"absolute",pointerEvents:"none",height:"100%",paddingX:1},children:T.jsx(bG,{})}),T.jsx(BXe,{placeholder:"Search messages...",inputProps:{"aria-label":"search",ref:i},onChange:a=>r(a.target.value)}),T.jsx(n4,{children:T.jsx(ei,{onClick:o,children:T.jsx(Bp,{})})})]})}function zXe(){return T.jsxs(Vn,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[T.jsx(jXe,{}),T.jsxs(Vn,{direction:"row",alignItems:"center",spacing:2,children:[T.jsx(IXe,{}),T.jsx(DXe,{})]})]})}function UXe(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,r=e.startIndex,i=e.stopIndex;return!(r>n||i<t)}function VXe(e){for(var t=e.isItemLoaded,n=e.itemCount,r=e.minimumBatchSize,i=e.startIndex,o=e.stopIndex,a=[],s=null,l=null,u=i;u<=o;u++){var f=t(u);f?l!==null&&(a.push(s,l),s=l=null):(l=u,s===null&&(s=u))}if(l!==null){for(var p=Math.min(Math.max(l,s+r-1),n-1),d=l+1;d<=p&&!t(d);d++)l=d;a.push(s,l)}if(a.length)for(;a[1]-a[0]+1<r&&a[0]>0;){var v=a[0]-1;if(!t(v))a[0]=v;else break}return a}var WXe=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},KXe=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}}(),HXe=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)},r4=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},qXe=function(e){HXe(t,e);function t(){var n,r,i,o;WXe(this,t);for(var a=arguments.length,s=Array(a),l=0;l<a;l++)s[l]=arguments[l];return o=(r=(i=r4(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(s))),i),i._lastRenderedStartIndex=-1,i._lastRenderedStopIndex=-1,i._memoizedUnloadedRanges=[],i._onItemsRendered=function(u){var f=u.visibleStartIndex,p=u.visibleStopIndex;i._lastRenderedStartIndex=f,i._lastRenderedStopIndex=p,i._ensureRowsLoaded(f,p)},i._setRef=function(u){i._listRef=u},r),r4(i,o)}return KXe(t,[{key:"resetloadMoreItemsCache",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this._memoizedUnloadedRanges=[],r&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var r=this.props.children;return r({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(r,i){var o=this.props,a=o.isItemLoaded,s=o.itemCount,l=o.minimumBatchSize,u=l===void 0?10:l,f=o.threshold,p=f===void 0?15:f,d=VXe({isItemLoaded:a,itemCount:s,minimumBatchSize:u,startIndex:Math.max(0,r-p),stopIndex:Math.min(s-1,i+p)});(this._memoizedUnloadedRanges.length!==d.length||this._memoizedUnloadedRanges.some(function(v,g){return d[g]!==v}))&&(this._memoizedUnloadedRanges=d,this._loadUnloadedRanges(d))}},{key:"_loadUnloadedRanges",value:function(r){for(var i=this,o=this.props.loadMoreItems||this.props.loadMoreRows,a=function(u){var f=r[u],p=r[u+1],d=o(f,p);d!=null&&d.then(function(){if(UXe({lastRenderedStartIndex:i._lastRenderedStartIndex,lastRenderedStopIndex:i._lastRenderedStopIndex,startIndex:f,stopIndex:p})){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}(R.PureComponent),i4=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function GXe(e,t){return!!(e===t||i4(e)&&i4(t))}function QXe(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!GXe(e[n],t[n]))return!1;return!0}function ik(e,t){t===void 0&&(t=QXe);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 YXe=typeof performance=="object"&&typeof performance.now=="function",o4=YXe?function(){return performance.now()}:function(){return Date.now()};function a4(e){cancelAnimationFrame(e.id)}function XXe(e,t){var n=o4();function r(){o4()-n>=t?e.call(null):i.id=requestAnimationFrame(r)}var i={id:requestAnimationFrame(r)};return i}var ok=-1;function s4(e){if(e===void 0&&(e=!1),ok===-1||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),ok=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return ok}var rd=null;function l4(e){if(e===void 0&&(e=!1),rd===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?rd="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?rd="negative":rd="positive-ascending"),document.body.removeChild(t),rd}return rd}var JXe=150,ZXe=function(t,n){return t};function eJe(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,i=e.getItemSize,o=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,f=e.validateProps;return t=function(p){JA(d,p);function d(g){var y;return y=p.call(this,g)||this,y._instanceProps=l(y.props,O1(y)),y._outerRef=void 0,y._resetIsScrollingTimeoutId=null,y.state={instance:O1(y),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof y.props.initialScrollOffset=="number"?y.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},y._callOnItemsRendered=void 0,y._callOnItemsRendered=ik(function(x,b,w,S){return y.props.onItemsRendered({overscanStartIndex:x,overscanStopIndex:b,visibleStartIndex:w,visibleStopIndex:S})}),y._callOnScroll=void 0,y._callOnScroll=ik(function(x,b,w){return y.props.onScroll({scrollDirection:x,scrollOffset:b,scrollUpdateWasRequested:w})}),y._getItemStyle=void 0,y._getItemStyle=function(x){var b=y.props,w=b.direction,S=b.itemSize,C=b.layout,k=y._getItemStyleCache(u&&S,u&&C,u&&w),D;if(k.hasOwnProperty(x))D=k[x];else{var P=n(y.props,x,y._instanceProps),B=i(y.props,x,y._instanceProps),V=w==="horizontal"||C==="horizontal",U=w==="rtl",W=V?P:0;k[x]=D={position:"absolute",left:U?void 0:W,right:U?W:void 0,top:V?0:P,height:V?"100%":B,width:V?B:"100%"}}return D},y._getItemStyleCache=void 0,y._getItemStyleCache=ik(function(x,b,w){return{}}),y._onScrollHorizontal=function(x){var b=x.currentTarget,w=b.clientWidth,S=b.scrollLeft,C=b.scrollWidth;y.setState(function(k){if(k.scrollOffset===S)return null;var D=y.props.direction,P=S;if(D==="rtl")switch(l4()){case"negative":P=-S;break;case"positive-descending":P=C-w-S;break}return P=Math.max(0,Math.min(P,C-w)),{isScrolling:!0,scrollDirection:k.scrollOffset<S?"forward":"backward",scrollOffset:P,scrollUpdateWasRequested:!1}},y._resetIsScrollingDebounced)},y._onScrollVertical=function(x){var b=x.currentTarget,w=b.clientHeight,S=b.scrollHeight,C=b.scrollTop;y.setState(function(k){if(k.scrollOffset===C)return null;var D=Math.max(0,Math.min(C,S-w));return{isScrolling:!0,scrollDirection:k.scrollOffset<D?"forward":"backward",scrollOffset:D,scrollUpdateWasRequested:!1}},y._resetIsScrollingDebounced)},y._outerRefSetter=function(x){var b=y.props.outerRef;y._outerRef=x,typeof b=="function"?b(x):b!=null&&typeof b=="object"&&b.hasOwnProperty("current")&&(b.current=x)},y._resetIsScrollingDebounced=function(){y._resetIsScrollingTimeoutId!==null&&a4(y._resetIsScrollingTimeoutId),y._resetIsScrollingTimeoutId=XXe(y._resetIsScrolling,JXe)},y._resetIsScrolling=function(){y._resetIsScrollingTimeoutId=null,y.setState({isScrolling:!1},function(){y._getItemStyleCache(-1,null)})},y}d.getDerivedStateFromProps=function(y,x){return tJe(y,x),f(y),null};var v=d.prototype;return v.scrollTo=function(y){y=Math.max(0,y),this.setState(function(x){return x.scrollOffset===y?null:{scrollDirection:x.scrollOffset<y?"forward":"backward",scrollOffset:y,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},v.scrollToItem=function(y,x){x===void 0&&(x="auto");var b=this.props,w=b.itemCount,S=b.layout,C=this.state.scrollOffset;y=Math.max(0,Math.min(y,w-1));var k=0;if(this._outerRef){var D=this._outerRef;S==="vertical"?k=D.scrollWidth>D.clientWidth?s4():0:k=D.scrollHeight>D.clientHeight?s4():0}this.scrollTo(o(this.props,y,x,C,this._instanceProps,k))},v.componentDidMount=function(){var y=this.props,x=y.direction,b=y.initialScrollOffset,w=y.layout;if(typeof b=="number"&&this._outerRef!=null){var S=this._outerRef;x==="horizontal"||w==="horizontal"?S.scrollLeft=b:S.scrollTop=b}this._callPropsCallbacks()},v.componentDidUpdate=function(){var y=this.props,x=y.direction,b=y.layout,w=this.state,S=w.scrollOffset,C=w.scrollUpdateWasRequested;if(C&&this._outerRef!=null){var k=this._outerRef;if(x==="horizontal"||b==="horizontal")if(x==="rtl")switch(l4()){case"negative":k.scrollLeft=-S;break;case"positive-ascending":k.scrollLeft=S;break;default:var D=k.clientWidth,P=k.scrollWidth;k.scrollLeft=P-D-S;break}else k.scrollLeft=S;else k.scrollTop=S}this._callPropsCallbacks()},v.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&a4(this._resetIsScrollingTimeoutId)},v.render=function(){var y=this.props,x=y.children,b=y.className,w=y.direction,S=y.height,C=y.innerRef,k=y.innerElementType,D=y.innerTagName,P=y.itemCount,B=y.itemData,V=y.itemKey,U=V===void 0?ZXe:V,W=y.layout,se=y.outerElementType,ne=y.outerTagName,re=y.style,Z=y.useIsScrolling,F=y.width,te=this.state.isScrolling,Y=w==="horizontal"||W==="horizontal",ee=Y?this._onScrollHorizontal:this._onScrollVertical,G=this._getRangeToRender(),L=G[0],A=G[1],ie=[];if(P>0)for(var ae=L;ae<=A;ae++)ie.push(R.createElement(x,{data:B,key:U(ae,B),index:ae,isScrolling:Z?te:void 0,style:this._getItemStyle(ae)}));var ce=r(this.props,this._instanceProps);return R.createElement(se||ne||"div",{className:b,onScroll:ee,ref:this._outerRefSetter,style:z({position:"relative",height:S,width:F,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:w},re)},R.createElement(k||D||"div",{children:ie,ref:C,style:{height:Y?"100%":ce,pointerEvents:te?"none":void 0,width:Y?ce:"100%"}}))},v._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var y=this.props.itemCount;if(y>0){var x=this._getRangeToRender(),b=x[0],w=x[1],S=x[2],C=x[3];this._callOnItemsRendered(b,w,S,C)}}if(typeof this.props.onScroll=="function"){var k=this.state,D=k.scrollDirection,P=k.scrollOffset,B=k.scrollUpdateWasRequested;this._callOnScroll(D,P,B)}},v._getRangeToRender=function(){var y=this.props,x=y.itemCount,b=y.overscanCount,w=this.state,S=w.isScrolling,C=w.scrollDirection,k=w.scrollOffset;if(x===0)return[0,0,0,0];var D=a(this.props,k,this._instanceProps),P=s(this.props,D,k,this._instanceProps),B=!S||C==="backward"?Math.max(1,b):1,V=!S||C==="forward"?Math.max(1,b):1;return[Math.max(0,D-B),Math.max(0,Math.min(x-1,P+V)),D,P]},d}(R.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var tJe=function(t,n){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,n.instance},nJe=eJe({getItemOffset:function(t,n){var r=t.itemSize;return n*r},getItemSize:function(t,n){var r=t.itemSize;return r},getEstimatedTotalSize:function(t){var n=t.itemCount,r=t.itemSize;return r*n},getOffsetForIndexAndAlignment:function(t,n,r,i,o,a){var s=t.direction,l=t.height,u=t.itemCount,f=t.itemSize,p=t.layout,d=t.width,v=s==="horizontal"||p==="horizontal",g=v?d:l,y=Math.max(0,u*f-g),x=Math.min(y,n*f),b=Math.max(0,n*f-g+f+a);switch(r==="smart"&&(i>=b-g&&i<=x+g?r="auto":r="center"),r){case"start":return x;case"end":return b;case"center":{var w=Math.round(b+(x-b)/2);return w<Math.ceil(g/2)?0:w>y+Math.floor(g/2)?y:w}case"auto":default:return i>=b&&i<=x?i:i<b?b:x}},getStartIndexForOffset:function(t,n){var r=t.itemCount,i=t.itemSize;return Math.max(0,Math.min(r-1,Math.floor(n/i)))},getStopIndexForStartIndex:function(t,n,r){var i=t.direction,o=t.height,a=t.itemCount,s=t.itemSize,l=t.layout,u=t.width,f=i==="horizontal"||l==="horizontal",p=n*s,d=f?u:o,v=Math.ceil((d+r-p)/s);return Math.max(0,Math.min(a-1,n+v-1))},initInstanceProps:function(t){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(t){t.itemSize}}),rJe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{},wG={};let Ho;typeof window<"u"?Ho=window:typeof self<"u"?Ho=self:Ho=rJe;let nO=null,rO=null;const u4=20,ak=Ho.clearTimeout,c4=Ho.setTimeout,sk=Ho.cancelAnimationFrame||Ho.mozCancelAnimationFrame||Ho.webkitCancelAnimationFrame,f4=Ho.requestAnimationFrame||Ho.mozRequestAnimationFrame||Ho.webkitRequestAnimationFrame;sk==null||f4==null?(nO=ak,rO=function(t){return c4(t,u4)}):(nO=function([t,n]){sk(t),ak(n)},rO=function(t){const n=f4(function(){ak(r),t()}),r=c4(function(){sk(n),t()},u4);return[n,r]});function iJe(e){let t,n,r,i,o,a,s;const l=typeof document<"u"&&document.attachEvent;if(!l){a=function(b){const w=b.__resizeTriggers__,S=w.firstElementChild,C=w.lastElementChild,k=S.firstElementChild;C.scrollLeft=C.scrollWidth,C.scrollTop=C.scrollHeight,k.style.width=S.offsetWidth+1+"px",k.style.height=S.offsetHeight+1+"px",S.scrollLeft=S.scrollWidth,S.scrollTop=S.scrollHeight},o=function(b){return b.offsetWidth!==b.__resizeLast__.width||b.offsetHeight!==b.__resizeLast__.height},s=function(b){if(b.target.className&&typeof b.target.className.indexOf=="function"&&b.target.className.indexOf("contract-trigger")<0&&b.target.className.indexOf("expand-trigger")<0)return;const w=this;a(this),this.__resizeRAF__&&nO(this.__resizeRAF__),this.__resizeRAF__=rO(function(){o(w)&&(w.__resizeLast__.width=w.offsetWidth,w.__resizeLast__.height=w.offsetHeight,w.__resizeListeners__.forEach(function(k){k.call(w,b)}))})};let d=!1,v="";r="animationstart";const g="Webkit Moz O ms".split(" ");let y="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),x="";{const b=document.createElement("fakeelement");if(b.style.animationName!==void 0&&(d=!0),d===!1){for(let w=0;w<g.length;w++)if(b.style[g[w]+"AnimationName"]!==void 0){x=g[w],v="-"+x.toLowerCase()+"-",r=y[w],d=!0;break}}}n="resizeanim",t="@"+v+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",i=v+"animation: 1ms "+n+"; "}const u=function(d){if(!d.getElementById("detectElementResize")){const v=(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%; }',g=d.head||d.getElementsByTagName("head")[0],y=d.createElement("style");y.id="detectElementResize",y.type="text/css",e!=null&&y.setAttribute("nonce",e),y.styleSheet?y.styleSheet.cssText=v:y.appendChild(d.createTextNode(v)),g.appendChild(y)}};return{addResizeListener:function(d,v){if(l)d.attachEvent("onresize",v);else{if(!d.__resizeTriggers__){const g=d.ownerDocument,y=Ho.getComputedStyle(d);y&&y.position==="static"&&(d.style.position="relative"),u(g),d.__resizeLast__={},d.__resizeListeners__=[],(d.__resizeTriggers__=g.createElement("div")).className="resize-triggers";const x=g.createElement("div");x.className="expand-trigger",x.appendChild(g.createElement("div"));const b=g.createElement("div");b.className="contract-trigger",d.__resizeTriggers__.appendChild(x),d.__resizeTriggers__.appendChild(b),d.appendChild(d.__resizeTriggers__),a(d),d.addEventListener("scroll",s,!0),r&&(d.__resizeTriggers__.__animationListener__=function(S){S.animationName===n&&a(d)},d.__resizeTriggers__.addEventListener(r,d.__resizeTriggers__.__animationListener__))}d.__resizeListeners__.push(v)}},removeResizeListener:function(d,v){if(l)d.detachEvent("onresize",v);else if(d.__resizeListeners__.splice(d.__resizeListeners__.indexOf(v),1),!d.__resizeListeners__.length){d.removeEventListener("scroll",s,!0),d.__resizeTriggers__.__animationListener__&&(d.__resizeTriggers__.removeEventListener(r,d.__resizeTriggers__.__animationListener__),d.__resizeTriggers__.__animationListener__=null);try{d.__resizeTriggers__=!d.removeChild(d.__resizeTriggers__)}catch{}}}}}wG={createDetectElementResize:iJe};class _G extends R.Component{constructor(){super(...arguments);Ls(this,"state",{height:this.props.defaultHeight||0,width:this.props.defaultWidth||0});Ls(this,"_parentNode",null);Ls(this,"_autoSizer",null);Ls(this,"_detectElementResize",null);Ls(this,"_onResize",()=>{const{disableHeight:n,disableWidth:r,onResize:i}=this.props;if(this._parentNode){const o=this._parentNode.getBoundingClientRect(),a=o.height||0,s=o.width||0,l=window.getComputedStyle(this._parentNode)||{},u=parseInt(l.paddingLeft,10)||0,f=parseInt(l.paddingRight,10)||0,p=parseInt(l.paddingTop,10)||0,d=parseInt(l.paddingBottom,10)||0,v=a-p-d,g=s-u-f;(!n&&this.state.height!==v||!r&&this.state.width!==g)&&(this.setState({height:a-p-d,width:s-u-f}),typeof i=="function"&&i({height:a,width:s}))}});Ls(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,wG.createDetectElementResize)(n);r.addResizeListener(this._parentNode,this._onResize),this._detectElementResize=r,this._onResize()}}componentWillUnmount(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}render(){const{children:n,defaultHeight:r,defaultWidth:i,disableHeight:o,disableWidth:a,nonce:s,onResize:l,style:u,tagName:f="div",...p}=this.props,{height:d,width:v}=this.state,g={overflow:"visible"},y={};let x=!1;return o||(d===0&&(x=!0),g.height=0,y.height=d),a||(v===0&&(x=!0),g.width=0,y.width=v),R.createElement(f,{ref:this._setRef,style:{...g,...u},...p},!x&&n(y))}}Ls(_G,"defaultProps",{onResize:()=>{},disableHeight:!1,disableWidth:!1,style:{}});var oJe=_G,y2={},aJe=Wn;Object.defineProperty(y2,"__esModule",{value:!0});var xG=y2.default=void 0,sJe=aJe(Kn()),lJe=T,uJe=(0,sJe.default)((0,lJe.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");xG=y2.default=uJe;const cJe=Aa`
|
|
632
|
-
mutation ($id: ID!) {
|
|
633
|
-
deleteConversation(id: $id) {
|
|
634
|
-
id
|
|
635
|
-
}
|
|
636
|
-
}
|
|
637
|
-
`;function fJe({conversationId:e,onDelete:t}){const[n,r]=R.useState(!1),[i,{loading:o}]=RW(cJe),a=()=>{r(!0)},s=()=>{r(!1)},l=async()=>{await h7.promise(i({variables:{id:e}}),{loading:"Deleting conversation...",success:"Conversation deleted!",error:u=>T.jsx("span",{children:NW(u)})}),t(),s()};return T.jsxs("div",{children:[T.jsx(ei,{size:"small",color:"error",onClick:a,children:T.jsx(xG,{})}),n&&T.jsxs($_,{open:n,onClose:s,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",PaperProps:{sx:{backgroundImage:"none"}},children:[T.jsx(nD,{id:"alert-dialog-title",children:"Delete conversation?"}),T.jsx(F_,{children:T.jsx(fV,{id:"alert-dialog-description",children:"This will delete the conversation as well as it's messages and elements."})}),T.jsxs(cV,{sx:{color:"text.secondary",p:2},children:[T.jsx(Jc,{variant:"outlined",color:"inherit",onClick:s,children:"Cancel"}),T.jsx(Z_,{variant:"outlined",color:"primary",loading:o,onClick:l,autoFocus:!0,children:"Confirm"})]})]})]})}var b2={},dJe=Wn;Object.defineProperty(b2,"__esModule",{value:!0});var SG=b2.default=void 0,pJe=dJe(Kn()),hJe=T,mJe=(0,pJe.default)((0,hJe.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");SG=b2.default=mJe;function gJe({conversationId:e}){return T.jsx(ei,{component:wv,to:`/conversations/${e}`,size:"small",color:"primary",children:T.jsx(SG,{})})}const vJe=Aa`
|
|
638
|
-
query (
|
|
639
|
-
$first: Int
|
|
640
|
-
$projectId: String!
|
|
641
|
-
$cursor: String
|
|
642
|
-
$withFeedback: Int
|
|
643
|
-
$authorEmail: String
|
|
644
|
-
$search: String
|
|
645
|
-
) {
|
|
646
|
-
conversations(
|
|
647
|
-
first: $first
|
|
648
|
-
cursor: $cursor
|
|
649
|
-
projectId: $projectId
|
|
650
|
-
withFeedback: $withFeedback
|
|
651
|
-
authorEmail: $authorEmail
|
|
652
|
-
search: $search
|
|
653
|
-
) {
|
|
654
|
-
pageInfo {
|
|
655
|
-
endCursor
|
|
656
|
-
hasNextPage
|
|
657
|
-
}
|
|
658
|
-
edges {
|
|
659
|
-
cursor
|
|
660
|
-
node {
|
|
661
|
-
id
|
|
662
|
-
createdAt
|
|
663
|
-
elementCount
|
|
664
|
-
messageCount
|
|
665
|
-
author {
|
|
666
|
-
name
|
|
667
|
-
email
|
|
668
|
-
}
|
|
669
|
-
messages {
|
|
670
|
-
content
|
|
671
|
-
}
|
|
672
|
-
}
|
|
673
|
-
}
|
|
674
|
-
}
|
|
675
|
-
}
|
|
676
|
-
`,d4=(e,{fetchMoreResult:t})=>{if(!t)return e;const n=e.conversations.edges,r=t.conversations.edges;return t.conversations.edges=[...n,...r],{...t}},p4=50,yJe=e=>{const t={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric"};return new Date(e).toLocaleDateString(void 0,t)};function bJe(){var y;const e=Ft(Nx),t=Ft(pi),{data:n,loading:r,error:i,refetch:o,fetchMore:a}=oI(vJe,{variables:{first:p4,projectId:(y=t==null?void 0:t.project)==null?void 0:y.id,withFeedback:e.feedback,authorEmail:e.authorEmail,search:e.search}});R.useEffect(()=>{o()},[e]);const s=n==null?void 0:n.conversations.pageInfo,l=R.useCallback(()=>{var x;n&&a&&s.hasNextPage&&a({updateQuery:d4,variables:{first:p4,cursor:s.endCursor,projectId:(x=t==null?void 0:t.project)==null?void 0:x.id,withFeedback:e.feedback,authorEmail:e.authorEmail,search:e.search}})},[s,a,t,e,d4,n]);if(i)return T.jsx(wu,{severity:"error",children:i.message});if(r)return T.jsx(bn,{color:"text.primary",children:"Loading..."});const u=n.conversations.edges.map(x=>x.node),f=u.length;if(f===0)return T.jsx(wu,{severity:"info",children:"No result"});const p={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%"}},d=({text:x,col:b})=>T.jsx(bn,{noWrap:!0,sx:{width:b.width,minWidth:b.minWidth,fontSize:"0.875rem"},color:"text.primary",children:x}),v=({index:x,style:b})=>{var S;const w=u[x];return T.jsxs(Pt,{style:b,sx:{display:"flex",alignItems:"center",borderBottom:C=>`1px solid ${C.palette.divider}`},children:[T.jsx(d,{text:w.id,col:p.Id}),T.jsx(d,{text:w.author.email,col:p.Author}),T.jsx(d,{text:(S=w.messages[0])==null?void 0:S.content,col:p.Input}),T.jsx(d,{text:yJe(w.createdAt),col:p.Date}),T.jsxs(Vn,{direction:"row",sx:{width:p.Actions.width,minWidth:p.Actions.minWidth},children:[T.jsx(gJe,{conversationId:w.id}),T.jsx(fJe,{conversationId:w.id,onDelete:()=>o()})]})]})},g=Object.entries(p).map(([x,b])=>T.jsx(bn,{sx:{fontSize:"0.875rem",width:b.width,minWidth:b.minWidth},color:"primary",children:x}));return T.jsxs(Pt,{sx:{height:"100%",display:"flex",flexDirection:"column"},children:[T.jsx(Pt,{sx:{display:"flex",alignItems:"center",height:"40px",borderBottom:x=>`1px solid ${x.palette.divider}`},children:g}),T.jsx(Pt,{flexGrow:1,children:T.jsx(oJe,{children:({height:x,width:b})=>T.jsx(qXe,{isItemLoaded:w=>u[w],itemCount:s.hasNextPage?f+1:f,loadMoreItems:l,children:({onItemsRendered:w,ref:S})=>T.jsx(nJe,{height:x,width:b,itemSize:55,itemCount:f,onItemsRendered:w,ref:S,children:v})})})})]})}function wJe(){return T.jsxs(Pt,{display:"flex",flexDirection:"column",width:"100%",maxWidth:"60rem",mx:"auto",flexGrow:1,children:[T.jsx(Pt,{my:2}),T.jsx(zXe,{}),T.jsx(Pt,{my:2}),T.jsx(bJe,{})]})}function _Je(){return T.jsx(Kv,{children:T.jsx(cx,{children:T.jsx(wJe,{})})})}const xJe=Aa`
|
|
677
|
-
query ($id: ID!) {
|
|
678
|
-
conversation(id: $id) {
|
|
679
|
-
id
|
|
680
|
-
createdAt
|
|
681
|
-
messages {
|
|
682
|
-
id
|
|
683
|
-
isError
|
|
684
|
-
indent
|
|
685
|
-
author
|
|
686
|
-
content
|
|
687
|
-
waitForAnswer
|
|
688
|
-
humanFeedback
|
|
689
|
-
language
|
|
690
|
-
prompt
|
|
691
|
-
llmSettings
|
|
692
|
-
authorIsUser
|
|
693
|
-
createdAt
|
|
694
|
-
}
|
|
695
|
-
elements {
|
|
696
|
-
id
|
|
697
|
-
type
|
|
698
|
-
name
|
|
699
|
-
url
|
|
700
|
-
display
|
|
701
|
-
language
|
|
702
|
-
size
|
|
703
|
-
forId
|
|
704
|
-
}
|
|
705
|
-
}
|
|
706
|
-
}
|
|
707
|
-
`;function SJe(){const{id:e}=UV(),{data:t,error:n}=oI(xJe,{variables:{id:e}});if(!t||n)return null;const r=t.conversation.elements,i=[];return T.jsx(Kv,{children:T.jsxs(Pt,{display:"flex",flexGrow:1,width:"100%",overflow:"scroll",children:[T.jsx(jq,{}),T.jsxs(Pt,{flexGrow:1,display:"flex",flexDirection:"column",overflow:"auto",boxSizing:"border-box",px:{xs:2,md:0},children:[T.jsx(Pt,{my:1}),T.jsx(WW,{actions:i,elements:r,messages:t.conversation.messages})]}),T.jsx(iG,{})]})})}function EJe(){const[e,t]=yo(U_),n=Ft(pi),r=ef(),i=(n==null?void 0:n.project.user_env)||[],o={},a={};i.forEach(f=>{o[f]=e[f]||"",a[f]=rw().required()});const s=WI(a),l=Lq({initialValues:o,validationSchema:s,onSubmit:async f=>{localStorage.setItem("userEnv",JSON.stringify(f)),t(f),jr.success("Saved successfully"),r("/")}});i.length===0&&r("/");const u=f=>T.jsxs(Pt,{my:2,children:[T.jsx(_u,{children:f}),T.jsx(sD,{fullWidth:!0,className:f,variant:"outlined",value:l.values[f],error:!!l.errors[f],onChange:p=>l.setFieldValue(f,p.target.value)})]},f);return T.jsxs(Pt,{sx:{display:"flex",flexDirection:"column",flexGrow:1},children:[T.jsx(yG,{}),T.jsxs(Pt,{id:"env",display:"flex",flexDirection:"column",flexGrow:1,gap:2,sx:{maxWidth:"60rem",width:"100%",mx:"auto"},children:[T.jsx(bn,{mt:5,fontSize:"18px",fontWeight:700,color:"text.primary",children:"Required API keys"}),T.jsx(wu,{severity:"info",children:"To use this app, the following API keys are required. The keys are stored on your device's local storage."}),T.jsxs("form",{onSubmit:l.handleSubmit,children:[i.map(f=>u(f)),T.jsx(Jc,{id:"submit-env",fullWidth:!0,type:"submit",variant:"contained",children:"Save"})]})]})]})}const ds=Object.create(null);ds.open="0";ds.close="1";ds.ping="2";ds.pong="3";ds.message="4";ds.upgrade="5";ds.noop="6";const Kb=Object.create(null);Object.keys(ds).forEach(e=>{Kb[ds[e]]=e});const CJe={type:"error",data:"parser error"},kJe=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",TJe=typeof ArrayBuffer=="function",RJe=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,EG=({type:e,data:t},n,r)=>kJe&&t instanceof Blob?n?r(t):h4(t,r):TJe&&(t instanceof ArrayBuffer||RJe(t))?n?r(t):h4(new Blob([t]),r):r(ds[e]+(t||"")),h4=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)},m4="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Mm=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<m4.length;e++)Mm[m4.charCodeAt(e)]=e;const OJe=e=>{let t=e.length*.75,n=e.length,r,i=0,o,a,s,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const u=new ArrayBuffer(t),f=new Uint8Array(u);for(r=0;r<n;r+=4)o=Mm[e.charCodeAt(r)],a=Mm[e.charCodeAt(r+1)],s=Mm[e.charCodeAt(r+2)],l=Mm[e.charCodeAt(r+3)],f[i++]=o<<2|a>>4,f[i++]=(a&15)<<4|s>>2,f[i++]=(s&3)<<6|l&63;return u},AJe=typeof ArrayBuffer=="function",CG=(e,t)=>{if(typeof e!="string")return{type:"message",data:kG(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:DJe(e.substring(1),t)}:Kb[n]?e.length>1?{type:Kb[n],data:e.substring(1)}:{type:Kb[n]}:CJe},DJe=(e,t)=>{if(AJe){const n=OJe(e);return kG(n,t)}else return{base64:!0,data:e}},kG=(e,t)=>{switch(t){case"blob":return e instanceof ArrayBuffer?new Blob([e]):e;case"arraybuffer":default:return e}},TG=String.fromCharCode(30),IJe=(e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach((o,a)=>{EG(o,!1,s=>{r[a]=s,++i===n&&t(r.join(TG))})})},PJe=(e,t)=>{const n=e.split(TG),r=[];for(let i=0;i<n.length;i++){const o=CG(n[i],t);if(r.push(o),o.type==="error")break}return r},RG=4;function Tr(e){if(e)return $Je(e)}function $Je(e){for(var t in Tr.prototype)e[t]=Tr.prototype[t];return e}Tr.prototype.on=Tr.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Tr.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};Tr.prototype.off=Tr.prototype.removeListener=Tr.prototype.removeAllListeners=Tr.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};Tr.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};Tr.prototype.emitReserved=Tr.prototype.emit;Tr.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};Tr.prototype.hasListeners=function(e){return!!this.listeners(e).length};const Bo=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function OG(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const FJe=Bo.setTimeout,LJe=Bo.clearTimeout;function Bx(e,t){t.useNativeTimers?(e.setTimeoutFn=FJe.bind(Bo),e.clearTimeoutFn=LJe.bind(Bo)):(e.setTimeoutFn=Bo.setTimeout.bind(Bo),e.clearTimeoutFn=Bo.clearTimeout.bind(Bo))}const MJe=1.33;function NJe(e){return typeof e=="string"?BJe(e):Math.ceil((e.byteLength||e.size)*MJe)}function BJe(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 jJe extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class AG extends Tr{constructor(t){super(),this.writable=!1,Bx(this,t),this.opts=t,this.query=t.query,this.socket=t.socket}onError(t,n,r){return super.emitReserved("error",new jJe(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=CG(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 DG="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),iO=64,zJe={};let g4=0,ib=0,v4;function y4(e){let t="";do t=DG[e%iO]+t,e=Math.floor(e/iO);while(e>0);return t}function IG(){const e=y4(+new Date);return e!==v4?(g4=0,v4=e):e+"."+y4(g4++)}for(;ib<iO;ib++)zJe[DG[ib]]=ib;function PG(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function UJe(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 $G=!1;try{$G=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const VJe=$G;function FG(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||VJe))return new XMLHttpRequest}catch{}if(!t)try{return new Bo[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function WJe(){}const KJe=function(){return new FG({xdomain:!1}).responseType!=null}();class HJe extends AG{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=KJe&&!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)};PJe(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,IJe(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]=IG()),!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=PG(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 Yd(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 Yd=class Hb extends Tr{constructor(t,n){super(),Bx(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=OG(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 FG(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=Hb.requestsCount++,Hb.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=WJe,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Hb.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()}};Yd.requestsCount=0;Yd.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",b4);else if(typeof addEventListener=="function"){const e="onpagehide"in Bo?"pagehide":"unload";addEventListener(e,b4,!1)}}function b4(){for(let e in Yd.requests)Yd.requests.hasOwnProperty(e)&&Yd.requests[e].abort()}const LG=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0))(),ob=Bo.WebSocket||Bo.MozWebSocket,w4=!0,qJe="arraybuffer",_4=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class GJe extends AG{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=_4?{}:OG(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=w4&&!_4?n?new ob(t,n):new ob(t):new ob(t,n,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType||qJe,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;EG(r,this.supportsBinary,o=>{const a={};try{w4&&this.ws.send(o)}catch{}i&&LG(()=>{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]=IG()),this.supportsBinary||(t.b64=1);const i=PG(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!!ob}}const QJe={websocket:GJe,polling:HJe},YJe=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,XJe=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function oO(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=YJe.exec(e||""),o={},a=14;for(;a--;)o[XJe[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=JJe(o,o.path),o.queryKey=ZJe(o,o.query),o}function JJe(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 ZJe(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,o){i&&(n[i]=o)}),n}let MG=class ud extends Tr{constructor(t,n={}){super(),this.writeBuffer=[],t&&typeof t=="object"&&(n=t,t=null),t?(t=oO(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=oO(n.host).host),Bx(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=UJe(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=RG,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 QJe[t](r)}open(){let t;if(this.opts.rememberUpgrade&&ud.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;ud.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",p=>{if(!r)if(p.type==="pong"&&p.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;ud.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 d=new Error("probe error");d.transport=n.name,this.emitReserved("upgradeError",d)}}))};function o(){r||(r=!0,f(),n.close(),n=null)}const a=p=>{const d=new Error("probe error: "+p);d.transport=n.name,o(),this.emitReserved("upgradeError",d)};function s(){a("transport closed")}function l(){a("socket closed")}function u(p){n&&p.name!==n.name&&o()}const f=()=>{n.removeListener("open",i),n.removeListener("error",a),n.removeListener("close",s),this.off("close",l),this.off("upgrading",u)};n.once("open",i),n.once("error",a),n.once("close",s),this.once("close",l),this.once("upgrading",u),n.open()}onOpen(){if(this.readyState="open",ud.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+=NJe(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){ud.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}};MG.protocol=RG;function eZe(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=oO(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 tZe=typeof ArrayBuffer=="function",nZe=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,NG=Object.prototype.toString,rZe=typeof Blob=="function"||typeof Blob<"u"&&NG.call(Blob)==="[object BlobConstructor]",iZe=typeof File=="function"||typeof File<"u"&&NG.call(File)==="[object FileConstructor]";function w2(e){return tZe&&(e instanceof ArrayBuffer||nZe(e))||rZe&&e instanceof Blob||iZe&&e instanceof File}function qb(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(qb(e[n]))return!0;return!1}if(w2(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return qb(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&qb(e[n]))return!0;return!1}function oZe(e){const t=[],n=e.data,r=e;return r.data=aO(n,t),r.attachments=t.length,{packet:r,buffers:t}}function aO(e,t){if(!e)return e;if(w2(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]=aO(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]=aO(e[r],t));return n}return e}function aZe(e,t){return e.data=sO(e.data,t),delete e.attachments,e}function sO(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]=sO(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=sO(e[n],t));return e}const sZe=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],lZe=5;var nn;(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"})(nn||(nn={}));class uZe{constructor(t){this.replacer=t}encode(t){return(t.type===nn.EVENT||t.type===nn.ACK)&&qb(t)?this.encodeAsBinary({type:t.type===nn.EVENT?nn.BINARY_EVENT:nn.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===nn.BINARY_EVENT||t.type===nn.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=oZe(t),r=this.encodeAsString(n.packet),i=n.buffers;return i.unshift(r),i}}function x4(e){return Object.prototype.toString.call(e)==="[object Object]"}class _2 extends Tr{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===nn.BINARY_EVENT;r||n.type===nn.BINARY_ACK?(n.type=r?nn.EVENT:nn.ACK,this.reconstructor=new cZe(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(w2(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(nn[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===nn.BINARY_EVENT||r.type===nn.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 nn.CONNECT:return x4(n);case nn.DISCONNECT:return n===void 0;case nn.CONNECT_ERROR:return typeof n=="string"||x4(n);case nn.EVENT:case nn.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&sZe.indexOf(n[0])===-1);case nn.ACK:case nn.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class cZe{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=aZe(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const fZe=Object.freeze(Object.defineProperty({__proto__:null,Decoder:_2,Encoder:uZe,get PacketType(){return nn},protocol:lZe},Symbol.toStringTag,{value:"Module"}));function xa(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const dZe=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});let BG=class extends Tr{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=[xa(t,"open",this.onopen.bind(this)),xa(t,"packet",this.onpacket.bind(this)),xa(t,"error",this.onerror.bind(this)),xa(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(dZe.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:nn.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:nn.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 nn.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 nn.EVENT:case nn.BINARY_EVENT:this.onevent(t);break;case nn.ACK:case nn.BINARY_ACK:this.onack(t);break;case nn.DISCONNECT:this.ondisconnect();break;case nn.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:nn.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:nn.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 zp(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}zp.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};zp.prototype.reset=function(){this.attempts=0};zp.prototype.setMin=function(e){this.ms=e};zp.prototype.setMax=function(e){this.max=e};zp.prototype.setJitter=function(e){this.jitter=e};class lO extends Tr{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,Bx(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 zp({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||fZe;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 MG(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=xa(n,"open",function(){r.onopen(),t&&t()}),o=xa(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(xa(t,"ping",this.onping.bind(this)),xa(t,"data",this.ondata.bind(this)),xa(t,"error",this.onerror.bind(this)),xa(t,"close",this.onclose.bind(this)),xa(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){LG(()=>{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 BG(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 xm={};function Gb(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=eZe(e,t.path||"/socket.io"),r=n.source,i=n.id,o=n.path,a=xm[i]&&o in xm[i].nsps,s=t.forceNew||t["force new connection"]||t.multiplex===!1||a;let l;return s?l=new lO(r,t):(xm[i]||(xm[i]=new lO(r,t)),l=xm[i]),n.query&&!t.query&&(t.query=n.queryKey),l.socket(n.path,t)}Object.assign(Gb,{Manager:lO,Socket:BG,io:Gb,connect:Gb});function S4(e){return e!=null&&typeof e=="object"}function jG(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=S4(o)&&S4(a);if(s&&!jG(o,a)||!s&&o!==a)return!1}return!0}const lk=(e,t)=>e.id&&t.id?e.id===t.id:e.tempId&&t.tempId?e.tempId===t.tempId:!1,pZe=R.memo(function(){var x;const t=Ft(pi),{accessToken:n,isAuthenticated:r,isLoading:i}=ys(),o=Ft(U_),a=Er(_v),[s,l]=yo(Pp),u=Er(dD),f=Er(YV),p=Er(H_),d=Er(Cv),v=Er(f2),y=((x=t==null?void 0:t.project)==null?void 0:x.id)&&i||r&&!n;return R.useEffect(()=>{if(y||!t)return;s!=null&&s.socket&&(s.socket.removeAllListeners(),s.socket.close());const b=Gb(Zxe,{path:"/ws/socket.io",extraHeaders:{Authorization:n||"","user-env":JSON.stringify(o)}});l({socket:b}),b.on("connect",()=>{console.log("connected",b.id),b.emit("connection_successful"),l(w=>({...w,error:!1}))}),b.on("connect_error",w=>{console.error("failed to connect",w),l(S=>({...S,error:!0}))}),b.on("task_start",()=>{a(!0)}),b.on("task_end",()=>{a(!1)}),b.on("reload",()=>{window.location.reload()}),b.on("new_message",w=>{u(S=>{const C=S.findIndex(k=>lk(k,w));return C===-1?[...S,w]:[...S.slice(0,C),w,...S.slice(C+1)]})}),b.on("update_message",w=>{u(S=>{const C=S.findIndex(k=>lk(k,w));return C===-1?S:[...S.slice(0,C),w,...S.slice(C+1)]})}),b.on("delete_message",w=>{u(S=>{const C=S.findIndex(k=>lk(k,w));return C===-1?S:[...S.slice(0,C),...S.slice(C+1)]})}),b.on("stream_start",w=>{u(S=>[...S,w])}),b.on("stream_token",({id:w,token:S})=>{u(C=>{const k=C.findIndex(B=>B.id&&B.id===w||B.tempId&&B.tempId===w);if(k===-1)return C;const P={...C[k]};return P.content+=S,[...C.slice(0,k),P,...C.slice(k+1)]})}),b.on("ask",({msg:w,spec:S},C)=>{p({spec:S,callback:C}),u(k=>[...k,w]),a(!1)}),b.on("ask_timeout",()=>{p(void 0),a(!1)}),b.on("clear_ask",()=>{p(void 0)}),b.on("element",w=>{d(S=>[...S,w])}),b.on("action",w=>{v(S=>[...S,w])}),b.on("remove_action",w=>{v(S=>{const C=S.findIndex(k=>jG(k,w));return C===-1?S:[...S.slice(0,C),...S.slice(C+1)]})}),b.on("token_usage",w=>{f(S=>S+w)})},[o,y,t]),null});function hZe(){return T.jsx(Kv,{children:T.jsx(Pt,{sx:{px:2},children:T.jsx(fG,{})})})}var x2={},mZe=Wn;Object.defineProperty(x2,"__esModule",{value:!0});var zG=x2.default=void 0,gZe=mZe(Kn()),vZe=T,yZe=(0,gZe.default)((0,vZe.jsx)("path",{d:"M4 20h16v2H4zM4 2h16v2H4zm9 7h3l-4-4-4 4h3v6H8l4 4 4-4h-3z"}),"Expand");zG=x2.default=yZe;var S2={},bZe=Wn;Object.defineProperty(S2,"__esModule",{value:!0});var UG=S2.default=void 0,wZe=bZe(Kn()),_Ze=T,xZe=(0,wZe.default)((0,_Ze.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");UG=S2.default=xZe;var E2={},SZe=Wn;Object.defineProperty(E2,"__esModule",{value:!0});var VG=E2.default=void 0,EZe=SZe(Kn()),CZe=T,kZe=(0,EZe.default)((0,CZe.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");VG=E2.default=kZe;function TZe(){const[e,t]=yo(hl);return T.jsx($_,{open:e.open,onClose:()=>t(n=>({...n,open:!1})),id:"settings-dialog",PaperProps:{sx:{backgroundImage:"none"}},children:T.jsx(F_,{children:T.jsxs(wV,{sx:{width:"100%",maxWidth:360},subheader:T.jsx(nV,{children:"Settings"}),children:[T.jsxs(Sb,{children:[T.jsx(jd,{children:T.jsx(zG,{})}),T.jsx(Eb,{id:"switch-expand-all",primary:"Expand Messages"}),T.jsx(DE,{edge:"end",onChange:()=>t(n=>({...n,expandAll:!n.expandAll})),checked:e.expandAll,inputProps:{"aria-labelledby":"switch-expand-all"}})]}),T.jsxs(Sb,{children:[T.jsx(jd,{children:T.jsx(VG,{})}),T.jsx(Eb,{id:"hide-cot",primary:"Hide Chain of Thought"}),T.jsx(DE,{edge:"end",onChange:()=>t(n=>({...n,hideCot:!n.hideCot})),checked:e.hideCot,inputProps:{"aria-labelledby":"hide-cot"}})]}),T.jsxs(Sb,{children:[T.jsx(jd,{children:T.jsx(UG,{})}),T.jsx(Eb,{id:"switch-theme",primary:"Dark mode"}),T.jsx(DE,{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 uO(){return uO=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},uO.apply(this,arguments)}var WG=["shift","alt","meta","mod","ctrl"],RZe={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 ou(e){return(RZe[e]||e).trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function OZe(e){return WG.includes(e)}function uk(e,t){return t===void 0&&(t=","),e.split(t)}function ck(e,t,n){t===void 0&&(t="+");var r=e.toLocaleLowerCase().split(t).map(function(a){return ou(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!WG.includes(a)});return uO({},i,{keys:o,description:n})}(function(){typeof document<"u"&&(document.addEventListener("keydown",function(e){e.key!==void 0&&KG([ou(e.key),ou(e.code)])}),document.addEventListener("keyup",function(e){e.key!==void 0&&HG([ou(e.key),ou(e.code)])})),typeof window<"u"&&window.addEventListener("blur",function(){au.clear()})})();var au=new Set;function AZe(e,t){t===void 0&&(t=",");var n=Array.isArray(e)?e:e.split(t);return n.every(function(r){return au.has(r.trim().toLowerCase())})}function KG(e){var t=Array.isArray(e)?e:[e];au.has("meta")&&au.forEach(function(n){return!OZe(n)&&au.delete(n.toLowerCase())}),t.forEach(function(n){return au.add(n.toLowerCase())})}function HG(e){var t=Array.isArray(e)?e:[e];e==="meta"?au.clear():t.forEach(function(n){return au.delete(n.toLowerCase())})}function DZe(e,t,n){(typeof n=="function"&&n(e,t)||n===!0)&&e.preventDefault()}function IZe(e,t,n){return typeof n=="function"?n(e,t):n===!0||n===void 0}function PZe(e){return qG(e,["input","textarea","select"])}function qG(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 $Ze(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 FZe=function(t,n,r){r===void 0&&(r=!1);var i=n.alt,o=n.meta,a=n.mod,s=n.shift,l=n.ctrl,u=n.keys,f=t.key,p=t.code,d=t.ctrlKey,v=t.metaKey,g=t.shiftKey,y=t.altKey,x=ou(p),b=f.toLowerCase();if(!r){if(i===!y&&b!=="alt"||s===!g&&b!=="shift")return!1;if(a){if(!v&&!d)return!1}else if(o===!v&&b!=="meta"&&b!=="os"||l===!d&&b!=="ctrl"&&b!=="control")return!1}return u&&u.length===1&&(u.includes(b)||u.includes(x))?!0:u?AZe(u):!u},LZe=R.createContext(void 0),MZe=function(){return R.useContext(LZe)};function GG(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&&GG(e[r],t[r])},!0):e===t}var NZe=R.createContext({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),BZe=function(){return R.useContext(NZe)};function jZe(e){var t=R.useRef(void 0);return GG(t.current,e)||(t.current=e),t.current}var E4=function(t){t.stopPropagation(),t.preventDefault(),t.stopImmediatePropagation()},zZe=typeof window<"u"?R.useLayoutEffect:R.useEffect;function UZe(e,t,n,r){var i=R.useRef(null),o=R.useRef(!1),a=n instanceof Array?r instanceof Array?void 0:r:n,s=e instanceof Array?e.join(a==null?void 0:a.splitKey):e,l=n instanceof Array?n:r instanceof Array?r:void 0,u=R.useCallback(t,l??[]),f=R.useRef(u);l?f.current=u:f.current=t;var p=jZe(a),d=BZe(),v=d.enabledScopes,g=MZe();return zZe(function(){if(!((p==null?void 0:p.enabled)===!1||!$Ze(v,p==null?void 0:p.scopes))){var y=function(C,k){var D;if(k===void 0&&(k=!1),!(PZe(C)&&!qG(C,p==null?void 0:p.enableOnFormTags))&&!(p!=null&&p.ignoreEventWhen!=null&&p.ignoreEventWhen(C))){if(i.current!==null&&document.activeElement!==i.current&&!i.current.contains(document.activeElement)){E4(C);return}(D=C.target)!=null&&D.isContentEditable&&!(p!=null&&p.enableOnContentEditable)||uk(s,p==null?void 0:p.splitKey).forEach(function(P){var B,V=ck(P,p==null?void 0:p.combinationKey);if(FZe(C,V,p==null?void 0:p.ignoreModifiers)||(B=V.keys)!=null&&B.includes("*")){if(k&&o.current)return;if(DZe(C,V,p==null?void 0:p.preventDefault),!IZe(C,V,p==null?void 0:p.enabled)){E4(C);return}f.current(C,V),k||(o.current=!0)}})}},x=function(C){C.key!==void 0&&(KG(ou(C.code)),((p==null?void 0:p.keydown)===void 0&&(p==null?void 0:p.keyup)!==!0||p!=null&&p.keydown)&&y(C))},b=function(C){C.key!==void 0&&(HG(ou(C.code)),o.current=!1,p!=null&&p.keyup&&y(C,!0))},w=i.current||(a==null?void 0:a.document)||document;return w.addEventListener("keyup",b),w.addEventListener("keydown",x),g&&uk(s,p==null?void 0:p.splitKey).forEach(function(S){return g.addHotkey(ck(S,p==null?void 0:p.combinationKey,p==null?void 0:p.description))}),function(){w.removeEventListener("keyup",b),w.removeEventListener("keydown",x),g&&uk(s,p==null?void 0:p.splitKey).forEach(function(S){return g.removeHotkey(ck(S,p==null?void 0:p.combinationKey,p==null?void 0:p.description))})}}},[s,p,v]),i}function VZe(){const e=Er(hl);return UZe("s",()=>e(t=>({...t,open:!t.open}))),null}const WZe=Gxe([{path:"/",element:T.jsx(kXe,{})},{path:"/readme",element:T.jsx(hZe,{})},{path:"/env",element:T.jsx(EJe,{})},{path:"/conversations/:id",element:T.jsx(cx,{children:T.jsx(SJe,{})})},{path:"/dataset",element:T.jsx(_Je,{})},{path:"/element/:id",element:T.jsx(TXe,{})},{path:"/login",element:T.jsx(RXe,{})},{path:"/api/auth/callback",element:T.jsx(OXe,{})},{path:"*",element:T.jsx(WV,{replace:!0,to:"/"})}]);function KZe(){const{theme:e}=Ft(hl),t=Ft(pi),[n,r]=yo(HV),i=Er(fD),{isAuthenticated:o,getAccessTokenSilently:a,logout:s}=ys(),l=oSe(e);return R.useEffect(()=>{document.body.style.backgroundColor=l.palette.background.default},[l]),R.useEffect(()=>{o&&n===void 0&&a({authorizationParams:{audience:"chainlit-cloud"}}).then(u=>r(u)).catch(u=>{console.error(u),s({logoutParams:{returnTo:window.location.origin}})})},[o,a,n,r]),R.useEffect(()=>{var u;!n||!((u=t==null?void 0:t.project)!=null&&u.id)||nSe(t.chainlitServer,n,t.project.id).then(async({role:f})=>{i(f)}).catch(f=>{console.log(f),i("ANONYMOUS")})},[n,t]),T.jsxs(j9,{theme:l,children:[T.jsx(FAe,{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"}}}),T.jsxs(Pt,{display:"flex",height:"100vh",width:"100vw",children:[T.jsx(pZe,{}),T.jsx(VZe,{}),T.jsx(TZe,{}),T.jsx(jxe,{router:WZe})]})]})}const HZe=R.memo(function({children:t}){var r;const n=Ft(pi);return(r=n==null?void 0:n.project)!=null&&r.id?T.jsx(nFe,{domain:"https://auth.chainlit.io",clientId:"ADo93BBXDn8Z35lEi8arCWiR7C0ncrjx",authorizationParams:{redirect_uri:`${window.location.origin}/api/auth/callback`},useRefreshTokens:!0,cacheLocation:"localstorage",children:t}):T.jsx(T.Fragment,{children:t})});function qZe(){const[e,t]=yo(pi),n=Er(hl);return R.useEffect(()=>{e===void 0&&eSe().then(r=>{t(r),n(i=>({...i,expandAll:!!r.ui.default_expand_messages,hideCot:!!r.ui.hide_cot}))})},[]),T.jsx(HZe,{children:T.jsx(KZe,{})})}fk.createRoot(document.getElementById("root")).render(T.jsx(yt.StrictMode,{children:T.jsx(gce,{children:T.jsx(qZe,{})})}));export{ao as c,ps as g};
|