hardpy 0.11.2__py3-none-any.whl → 0.12.1__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.
- hardpy/__init__.py +6 -0
- hardpy/cli/cli.py +7 -0
- hardpy/cli/template.py +0 -4
- hardpy/hardpy_panel/frontend/dist/assets/allPaths-B26356fZ.js +1 -0
- hardpy/hardpy_panel/frontend/dist/assets/allPathsLoader-0BeGWuiy.js +2 -0
- hardpy/hardpy_panel/frontend/dist/assets/index-BMEat_ws.js +1 -0
- hardpy/hardpy_panel/frontend/dist/assets/index-Bl_IX0Up.js +790 -0
- hardpy/hardpy_panel/frontend/dist/assets/index-BwCQzehg.css +1 -0
- hardpy/hardpy_panel/frontend/dist/assets/index-xb4M2ucX.js +1 -0
- hardpy/hardpy_panel/frontend/dist/assets/splitPathsBySizeLoader-BEs5IL5-.js +1 -0
- hardpy/hardpy_panel/frontend/dist/index.html +45 -1
- hardpy/pytest_hardpy/db/base_store.py +2 -0
- hardpy/pytest_hardpy/db/const.py +1 -0
- hardpy/pytest_hardpy/db/schema/v1.py +7 -3
- hardpy/pytest_hardpy/plugin.py +51 -43
- hardpy/pytest_hardpy/pytest_call.py +25 -0
- hardpy/pytest_hardpy/reporter/hook_reporter.py +18 -0
- hardpy/pytest_hardpy/result/report_reader/stand_cloud_reader.py +26 -2
- hardpy/pytest_hardpy/utils/__init__.py +4 -0
- hardpy/pytest_hardpy/utils/exception.py +14 -0
- hardpy/pytest_hardpy/utils/node_info.py +58 -13
- {hardpy-0.11.2.dist-info → hardpy-0.12.1.dist-info}/METADATA +3 -1
- hardpy-0.12.1.dist-info/RECORD +76 -0
- hardpy/hardpy_panel/frontend/dist/asset-manifest.json +0 -36
- hardpy/hardpy_panel/frontend/dist/static/css/main.e8a862f1.css +0 -2
- hardpy/hardpy_panel/frontend/dist/static/css/main.e8a862f1.css.map +0 -1
- hardpy/hardpy_panel/frontend/dist/static/js/808.ce070002.chunk.js +0 -2
- hardpy/hardpy_panel/frontend/dist/static/js/808.ce070002.chunk.js.map +0 -1
- hardpy/hardpy_panel/frontend/dist/static/js/blueprint-icons-16px-paths.d605910e.chunk.js +0 -2
- hardpy/hardpy_panel/frontend/dist/static/js/blueprint-icons-16px-paths.d605910e.chunk.js.map +0 -1
- hardpy/hardpy_panel/frontend/dist/static/js/blueprint-icons-20px-paths.7ee05cc8.chunk.js +0 -2
- hardpy/hardpy_panel/frontend/dist/static/js/blueprint-icons-20px-paths.7ee05cc8.chunk.js.map +0 -1
- hardpy/hardpy_panel/frontend/dist/static/js/blueprint-icons-all-paths-loader.0aa89747.chunk.js +0 -2
- hardpy/hardpy_panel/frontend/dist/static/js/blueprint-icons-all-paths-loader.0aa89747.chunk.js.map +0 -1
- hardpy/hardpy_panel/frontend/dist/static/js/blueprint-icons-all-paths.f63155c9.chunk.js +0 -2
- hardpy/hardpy_panel/frontend/dist/static/js/blueprint-icons-all-paths.f63155c9.chunk.js.map +0 -1
- hardpy/hardpy_panel/frontend/dist/static/js/blueprint-icons-split-paths-by-size-loader.52a072d3.chunk.js +0 -2
- hardpy/hardpy_panel/frontend/dist/static/js/blueprint-icons-split-paths-by-size-loader.52a072d3.chunk.js.map +0 -1
- hardpy/hardpy_panel/frontend/dist/static/js/main.fb8b84a3.js +0 -3
- hardpy/hardpy_panel/frontend/dist/static/js/main.fb8b84a3.js.LICENSE.txt +0 -90
- hardpy/hardpy_panel/frontend/dist/static/js/main.fb8b84a3.js.map +0 -1
- hardpy-0.11.2.dist-info/RECORD +0 -87
- /hardpy/hardpy_panel/frontend/dist/{static/media/blueprint-icons-16.e02ecf515378db143652.ttf → assets/blueprint-icons-16-Bfs1BwbR.ttf} +0 -0
- /hardpy/hardpy_panel/frontend/dist/{static/media/blueprint-icons-16.84db1772f4bfb529f64f.woff → assets/blueprint-icons-16-Btb8d-Hu.woff} +0 -0
- /hardpy/hardpy_panel/frontend/dist/{static/media/blueprint-icons-16.5c52b39c697f2323ce8b.svg → assets/blueprint-icons-16-CzsyEoPG.svg} +0 -0
- /hardpy/hardpy_panel/frontend/dist/{static/media/blueprint-icons-16.b67ee1736e20e37a3225.woff2 → assets/blueprint-icons-16-DrH54W_x.woff2} +0 -0
- /hardpy/hardpy_panel/frontend/dist/{static/media/blueprint-icons-16.520846c6beb41df528c8.eot → assets/blueprint-icons-16-RCDSkC4W.eot} +0 -0
- /hardpy/hardpy_panel/frontend/dist/{static/media/blueprint-icons-20.429cacb8accf72488451.ttf → assets/blueprint-icons-20-BGGGsqDJ.ttf} +0 -0
- /hardpy/hardpy_panel/frontend/dist/{static/media/blueprint-icons-20.8cecf62de42997e4d82f.woff2 → assets/blueprint-icons-20-D9WO2FSG.woff2} +0 -0
- /hardpy/hardpy_panel/frontend/dist/{static/media/blueprint-icons-20.afbadb627d43b7857223.eot → assets/blueprint-icons-20-Doom1bSH.eot} +0 -0
- /hardpy/hardpy_panel/frontend/dist/{static/media/blueprint-icons-20.6ae3791ee2d86fc228a6.svg → assets/blueprint-icons-20-DyVnGNfQ.svg} +0 -0
- /hardpy/hardpy_panel/frontend/dist/{static/media/blueprint-icons-20.e857f5a5132b8bfa71a1.woff → assets/blueprint-icons-20-ZW-9JnPf.woff} +0 -0
- /hardpy/hardpy_panel/frontend/dist/{static/media/logo_smol.5b16f92447a4a9e80331.png → assets/logo_smol-CK3jE85c.png} +0 -0
- {hardpy-0.11.2.dist-info → hardpy-0.12.1.dist-info}/WHEEL +0 -0
- {hardpy-0.11.2.dist-info → hardpy-0.12.1.dist-info}/entry_points.txt +0 -0
- {hardpy-0.11.2.dist-info → hardpy-0.12.1.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,790 @@
|
|
|
1
|
+
function aA(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in t)){const a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(t,i,a.get?a:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const u of a.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&r(u)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();function no(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function kL(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var Cw={exports:{}},lm={},bw={exports:{}},Dt={},fE;function NL(){if(fE)return Dt;fE=1;/**
|
|
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 t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),m=Symbol.iterator;function y(F){return F===null||typeof F!="object"?null:(F=m&&F[m]||F["@@iterator"],typeof F=="function"?F:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,A={};function S(F,W,X){this.props=F,this.context=W,this.refs=A,this.updater=X||b}S.prototype.isReactComponent={},S.prototype.setState=function(F,W){if(typeof F!="object"&&typeof F!="function"&&F!=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,F,W,"setState")},S.prototype.forceUpdate=function(F){this.updater.enqueueForceUpdate(this,F,"forceUpdate")};function O(){}O.prototype=S.prototype;function k(F,W,X){this.props=F,this.context=W,this.refs=A,this.updater=X||b}var T=k.prototype=new O;T.constructor=k,E(T,S.prototype),T.isPureReactComponent=!0;var C=Array.isArray,w=Object.prototype.hasOwnProperty,R={current:null},I={key:!0,ref:!0,__self:!0,__source:!0};function $(F,W,X){var le,ce={},oe=null,q=null;if(W!=null)for(le in W.ref!==void 0&&(q=W.ref),W.key!==void 0&&(oe=""+W.key),W)w.call(W,le)&&!I.hasOwnProperty(le)&&(ce[le]=W[le]);var ie=arguments.length-2;if(ie===1)ce.children=X;else if(1<ie){for(var J=Array(ie),be=0;be<ie;be++)J[be]=arguments[be+2];ce.children=J}if(F&&F.defaultProps)for(le in ie=F.defaultProps,ie)ce[le]===void 0&&(ce[le]=ie[le]);return{$$typeof:t,type:F,key:oe,ref:q,props:ce,_owner:R.current}}function U(F,W){return{$$typeof:t,type:F.type,key:W,ref:F.ref,props:F.props,_owner:F._owner}}function G(F){return typeof F=="object"&&F!==null&&F.$$typeof===t}function Y(F){var W={"=":"=0",":":"=2"};return"$"+F.replace(/[=:]/g,function(X){return W[X]})}var Z=/\/+/g;function ee(F,W){return typeof F=="object"&&F!==null&&F.key!=null?Y(""+F.key):W.toString(36)}function ae(F,W,X,le,ce){var oe=typeof F;(oe==="undefined"||oe==="boolean")&&(F=null);var q=!1;if(F===null)q=!0;else switch(oe){case"string":case"number":q=!0;break;case"object":switch(F.$$typeof){case t:case e:q=!0}}if(q)return q=F,ce=ce(q),F=le===""?"."+ee(q,0):le,C(ce)?(X="",F!=null&&(X=F.replace(Z,"$&/")+"/"),ae(ce,W,X,"",function(be){return be})):ce!=null&&(G(ce)&&(ce=U(ce,X+(!ce.key||q&&q.key===ce.key?"":(""+ce.key).replace(Z,"$&/")+"/")+F)),W.push(ce)),1;if(q=0,le=le===""?".":le+":",C(F))for(var ie=0;ie<F.length;ie++){oe=F[ie];var J=le+ee(oe,ie);q+=ae(oe,W,X,J,ce)}else if(J=y(F),typeof J=="function")for(F=J.call(F),ie=0;!(oe=F.next()).done;)oe=oe.value,J=le+ee(oe,ie++),q+=ae(oe,W,X,J,ce);else if(oe==="object")throw W=String(F),Error("Objects are not valid as a React child (found: "+(W==="[object Object]"?"object with keys {"+Object.keys(F).join(", ")+"}":W)+"). If you meant to render a collection of children, use an array instead.");return q}function de(F,W,X){if(F==null)return F;var le=[],ce=0;return ae(F,le,"","",function(oe){return W.call(X,oe,ce++)}),le}function Q(F){if(F._status===-1){var W=F._result;W=W(),W.then(function(X){(F._status===0||F._status===-1)&&(F._status=1,F._result=X)},function(X){(F._status===0||F._status===-1)&&(F._status=2,F._result=X)}),F._status===-1&&(F._status=0,F._result=W)}if(F._status===1)return F._result.default;throw F._result}var re={current:null},z={transition:null},B={ReactCurrentDispatcher:re,ReactCurrentBatchConfig:z,ReactCurrentOwner:R};return Dt.Children={map:de,forEach:function(F,W,X){de(F,function(){W.apply(this,arguments)},X)},count:function(F){var W=0;return de(F,function(){W++}),W},toArray:function(F){return de(F,function(W){return W})||[]},only:function(F){if(!G(F))throw Error("React.Children.only expected to receive a single React element child.");return F}},Dt.Component=S,Dt.Fragment=n,Dt.Profiler=i,Dt.PureComponent=k,Dt.StrictMode=r,Dt.Suspense=f,Dt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=B,Dt.cloneElement=function(F,W,X){if(F==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+F+".");var le=E({},F.props),ce=F.key,oe=F.ref,q=F._owner;if(W!=null){if(W.ref!==void 0&&(oe=W.ref,q=R.current),W.key!==void 0&&(ce=""+W.key),F.type&&F.type.defaultProps)var ie=F.type.defaultProps;for(J in W)w.call(W,J)&&!I.hasOwnProperty(J)&&(le[J]=W[J]===void 0&&ie!==void 0?ie[J]:W[J])}var J=arguments.length-2;if(J===1)le.children=X;else if(1<J){ie=Array(J);for(var be=0;be<J;be++)ie[be]=arguments[be+2];le.children=ie}return{$$typeof:t,type:F.type,key:ce,ref:oe,props:le,_owner:q}},Dt.createContext=function(F){return F={$$typeof:u,_currentValue:F,_currentValue2:F,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},F.Provider={$$typeof:a,_context:F},F.Consumer=F},Dt.createElement=$,Dt.createFactory=function(F){var W=$.bind(null,F);return W.type=F,W},Dt.createRef=function(){return{current:null}},Dt.forwardRef=function(F){return{$$typeof:c,render:F}},Dt.isValidElement=G,Dt.lazy=function(F){return{$$typeof:v,_payload:{_status:-1,_result:F},_init:Q}},Dt.memo=function(F,W){return{$$typeof:p,type:F,compare:W===void 0?null:W}},Dt.startTransition=function(F){var W=z.transition;z.transition={};try{F()}finally{z.transition=W}},Dt.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},Dt.useCallback=function(F,W){return re.current.useCallback(F,W)},Dt.useContext=function(F){return re.current.useContext(F)},Dt.useDebugValue=function(){},Dt.useDeferredValue=function(F){return re.current.useDeferredValue(F)},Dt.useEffect=function(F,W){return re.current.useEffect(F,W)},Dt.useId=function(){return re.current.useId()},Dt.useImperativeHandle=function(F,W,X){return re.current.useImperativeHandle(F,W,X)},Dt.useInsertionEffect=function(F,W){return re.current.useInsertionEffect(F,W)},Dt.useLayoutEffect=function(F,W){return re.current.useLayoutEffect(F,W)},Dt.useMemo=function(F,W){return re.current.useMemo(F,W)},Dt.useReducer=function(F,W,X){return re.current.useReducer(F,W,X)},Dt.useRef=function(F){return re.current.useRef(F)},Dt.useState=function(F){return re.current.useState(F)},Dt.useSyncExternalStore=function(F,W,X){return re.current.useSyncExternalStore(F,W,X)},Dt.useTransition=function(){return re.current.useTransition()},Dt.version="18.2.0",Dt}var dE;function jy(){return dE||(dE=1,bw.exports=NL()),bw.exports}/**
|
|
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 hE;function PL(){if(hE)return lm;hE=1;var t=jy(),e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function u(c,f,p){var v,m={},y=null,b=null;p!==void 0&&(y=""+p),f.key!==void 0&&(y=""+f.key),f.ref!==void 0&&(b=f.ref);for(v in f)r.call(f,v)&&!a.hasOwnProperty(v)&&(m[v]=f[v]);if(c&&c.defaultProps)for(v in f=c.defaultProps,f)m[v]===void 0&&(m[v]=f[v]);return{$$typeof:e,type:c,key:y,ref:b,props:m,_owner:i.current}}return lm.Fragment=n,lm.jsx=u,lm.jsxs=u,lm}var pE;function DL(){return pE||(pE=1,Cw.exports=PL()),Cw.exports}var ge=DL(),N=jy();const je=no(N),zy=aA({__proto__:null,default:je},[N]);var e0={},Ew={exports:{}},Ki={},xw={exports:{}},Tw={};/**
|
|
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
|
+
*/var mE;function LL(){return mE||(mE=1,function(t){function e(z,B){var F=z.length;z.push(B);e:for(;0<F;){var W=F-1>>>1,X=z[W];if(0<i(X,B))z[W]=B,z[F]=X,F=W;else break e}}function n(z){return z.length===0?null:z[0]}function r(z){if(z.length===0)return null;var B=z[0],F=z.pop();if(F!==B){z[0]=F;e:for(var W=0,X=z.length,le=X>>>1;W<le;){var ce=2*(W+1)-1,oe=z[ce],q=ce+1,ie=z[q];if(0>i(oe,F))q<X&&0>i(ie,oe)?(z[W]=ie,z[q]=F,W=q):(z[W]=oe,z[ce]=F,W=ce);else if(q<X&&0>i(ie,F))z[W]=ie,z[q]=F,W=q;else break e}}return B}function i(z,B){var F=z.sortIndex-B.sortIndex;return F!==0?F:z.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var u=Date,c=u.now();t.unstable_now=function(){return u.now()-c}}var f=[],p=[],v=1,m=null,y=3,b=!1,E=!1,A=!1,S=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function T(z){for(var B=n(p);B!==null;){if(B.callback===null)r(p);else if(B.startTime<=z)r(p),B.sortIndex=B.expirationTime,e(f,B);else break;B=n(p)}}function C(z){if(A=!1,T(z),!E)if(n(f)!==null)E=!0,Q(w);else{var B=n(p);B!==null&&re(C,B.startTime-z)}}function w(z,B){E=!1,A&&(A=!1,O($),$=-1),b=!0;var F=y;try{for(T(B),m=n(f);m!==null&&(!(m.expirationTime>B)||z&&!Y());){var W=m.callback;if(typeof W=="function"){m.callback=null,y=m.priorityLevel;var X=W(m.expirationTime<=B);B=t.unstable_now(),typeof X=="function"?m.callback=X:m===n(f)&&r(f),T(B)}else r(f);m=n(f)}if(m!==null)var le=!0;else{var ce=n(p);ce!==null&&re(C,ce.startTime-B),le=!1}return le}finally{m=null,y=F,b=!1}}var R=!1,I=null,$=-1,U=5,G=-1;function Y(){return!(t.unstable_now()-G<U)}function Z(){if(I!==null){var z=t.unstable_now();G=z;var B=!0;try{B=I(!0,z)}finally{B?ee():(R=!1,I=null)}}else R=!1}var ee;if(typeof k=="function")ee=function(){k(Z)};else if(typeof MessageChannel<"u"){var ae=new MessageChannel,de=ae.port2;ae.port1.onmessage=Z,ee=function(){de.postMessage(null)}}else ee=function(){S(Z,0)};function Q(z){I=z,R||(R=!0,ee())}function re(z,B){$=S(function(){z(t.unstable_now())},B)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(z){z.callback=null},t.unstable_continueExecution=function(){E||b||(E=!0,Q(w))},t.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<z?Math.floor(1e3/z):5},t.unstable_getCurrentPriorityLevel=function(){return y},t.unstable_getFirstCallbackNode=function(){return n(f)},t.unstable_next=function(z){switch(y){case 1:case 2:case 3:var B=3;break;default:B=y}var F=y;y=B;try{return z()}finally{y=F}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(z,B){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var F=y;y=z;try{return B()}finally{y=F}},t.unstable_scheduleCallback=function(z,B,F){var W=t.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?W+F:W):F=W,z){case 1:var X=-1;break;case 2:X=250;break;case 5:X=1073741823;break;case 4:X=1e4;break;default:X=5e3}return X=F+X,z={id:v++,callback:B,priorityLevel:z,startTime:F,expirationTime:X,sortIndex:-1},F>W?(z.sortIndex=F,e(p,z),n(f)===null&&z===n(p)&&(A?(O($),$=-1):A=!0,re(C,F-W))):(z.sortIndex=X,e(f,z),E||b||(E=!0,Q(w))),z},t.unstable_shouldYield=Y,t.unstable_wrapCallback=function(z){var B=y;return function(){var F=y;y=B;try{return z.apply(this,arguments)}finally{y=F}}}}(Tw)),Tw}var vE;function ML(){return vE||(vE=1,xw.exports=LL()),xw.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 gE;function IL(){if(gE)return Ki;gE=1;var t=jy(),e=ML();function n(o){for(var s="https://reactjs.org/docs/error-decoder.html?invariant="+o,h=1;h<arguments.length;h++)s+="&args[]="+encodeURIComponent(arguments[h]);return"Minified React error #"+o+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,i={};function a(o,s){u(o,s),u(o+"Capture",s)}function u(o,s){for(i[o]=s,o=0;o<s.length;o++)r.add(s[o])}var c=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,p=/^[: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={},m={};function y(o){return f.call(m,o)?!0:f.call(v,o)?!1:p.test(o)?m[o]=!0:(v[o]=!0,!1)}function b(o,s,h,g){if(h!==null&&h.type===0)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":return g?!1:h!==null?!h.acceptsBooleans:(o=o.toLowerCase().slice(0,5),o!=="data-"&&o!=="aria-");default:return!1}}function E(o,s,h,g){if(s===null||typeof s>"u"||b(o,s,h,g))return!0;if(g)return!1;if(h!==null)switch(h.type){case 3:return!s;case 4:return s===!1;case 5:return isNaN(s);case 6:return isNaN(s)||1>s}return!1}function A(o,s,h,g,x,L,H){this.acceptsBooleans=s===2||s===3||s===4,this.attributeName=g,this.attributeNamespace=x,this.mustUseProperty=h,this.propertyName=o,this.type=s,this.sanitizeURL=L,this.removeEmptyString=H}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(o){S[o]=new A(o,0,!1,o,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(o){var s=o[0];S[s]=new A(s,1,!1,o[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(o){S[o]=new A(o,2,!1,o.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(o){S[o]=new A(o,2,!1,o,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(o){S[o]=new A(o,3,!1,o.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(o){S[o]=new A(o,3,!0,o,null,!1,!1)}),["capture","download"].forEach(function(o){S[o]=new A(o,4,!1,o,null,!1,!1)}),["cols","rows","size","span"].forEach(function(o){S[o]=new A(o,6,!1,o,null,!1,!1)}),["rowSpan","start"].forEach(function(o){S[o]=new A(o,5,!1,o.toLowerCase(),null,!1,!1)});var O=/[\-:]([a-z])/g;function k(o){return o[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(o){var s=o.replace(O,k);S[s]=new A(s,1,!1,o,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(o){var s=o.replace(O,k);S[s]=new A(s,1,!1,o,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(o){var s=o.replace(O,k);S[s]=new A(s,1,!1,o,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(o){S[o]=new A(o,1,!1,o.toLowerCase(),null,!1,!1)}),S.xlinkHref=new A("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(o){S[o]=new A(o,1,!1,o.toLowerCase(),null,!0,!0)});function T(o,s,h,g){var x=S.hasOwnProperty(s)?S[s]:null;(x!==null?x.type!==0:g||!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(E(s,h,x,g)&&(h=null),g||x===null?y(s)&&(h===null?o.removeAttribute(s):o.setAttribute(s,""+h)):x.mustUseProperty?o[x.propertyName]=h===null?x.type===3?!1:"":h:(s=x.attributeName,g=x.attributeNamespace,h===null?o.removeAttribute(s):(x=x.type,h=x===3||x===4&&h===!0?"":""+h,g?o.setAttributeNS(g,s,h):o.setAttribute(s,h))))}var C=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),R=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),$=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),G=Symbol.for("react.provider"),Y=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),ee=Symbol.for("react.suspense"),ae=Symbol.for("react.suspense_list"),de=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),re=Symbol.for("react.offscreen"),z=Symbol.iterator;function B(o){return o===null||typeof o!="object"?null:(o=z&&o[z]||o["@@iterator"],typeof o=="function"?o:null)}var F=Object.assign,W;function X(o){if(W===void 0)try{throw Error()}catch(h){var s=h.stack.trim().match(/\n( *(at )?)/);W=s&&s[1]||""}return`
|
|
34
|
+
`+W+o}var le=!1;function ce(o,s){if(!o||le)return"";le=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(s)if(s=function(){throw Error()},Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(_e){var g=_e}Reflect.construct(o,[],s)}else{try{s.call()}catch(_e){g=_e}o.call(s.prototype)}else{try{throw Error()}catch(_e){g=_e}o()}}catch(_e){if(_e&&g&&typeof _e.stack=="string"){for(var x=_e.stack.split(`
|
|
35
|
+
`),L=g.stack.split(`
|
|
36
|
+
`),H=x.length-1,te=L.length-1;1<=H&&0<=te&&x[H]!==L[te];)te--;for(;1<=H&&0<=te;H--,te--)if(x[H]!==L[te]){if(H!==1||te!==1)do if(H--,te--,0>te||x[H]!==L[te]){var se=`
|
|
37
|
+
`+x[H].replace(" at new "," at ");return o.displayName&&se.includes("<anonymous>")&&(se=se.replace("<anonymous>",o.displayName)),se}while(1<=H&&0<=te);break}}}finally{le=!1,Error.prepareStackTrace=h}return(o=o?o.displayName||o.name:"")?X(o):""}function oe(o){switch(o.tag){case 5:return X(o.type);case 16:return X("Lazy");case 13:return X("Suspense");case 19:return X("SuspenseList");case 0:case 2:case 15:return o=ce(o.type,!1),o;case 11:return o=ce(o.type.render,!1),o;case 1:return o=ce(o.type,!0),o;default:return""}}function q(o){if(o==null)return null;if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case I:return"Fragment";case R:return"Portal";case U:return"Profiler";case $:return"StrictMode";case ee:return"Suspense";case ae:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case Y:return(o.displayName||"Context")+".Consumer";case G:return(o._context.displayName||"Context")+".Provider";case Z:var s=o.render;return o=o.displayName,o||(o=s.displayName||s.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case de:return s=o.displayName||null,s!==null?s:q(o.type)||"Memo";case Q:s=o._payload,o=o._init;try{return q(o(s))}catch{}}return null}function ie(o){var s=o.type;switch(o.tag){case 24:return"Cache";case 9:return(s.displayName||"Context")+".Consumer";case 10:return(s._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return o=s.render,o=o.displayName||o.name||"",s.displayName||(o!==""?"ForwardRef("+o+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return q(s);case 8:return s===$?"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 s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s}return null}function J(o){switch(typeof o){case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function be(o){var s=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function Ee(o){var s=be(o)?"checked":"value",h=Object.getOwnPropertyDescriptor(o.constructor.prototype,s),g=""+o[s];if(!o.hasOwnProperty(s)&&typeof h<"u"&&typeof h.get=="function"&&typeof h.set=="function"){var x=h.get,L=h.set;return Object.defineProperty(o,s,{configurable:!0,get:function(){return x.call(this)},set:function(H){g=""+H,L.call(this,H)}}),Object.defineProperty(o,s,{enumerable:h.enumerable}),{getValue:function(){return g},setValue:function(H){g=""+H},stopTracking:function(){o._valueTracker=null,delete o[s]}}}}function Re(o){o._valueTracker||(o._valueTracker=Ee(o))}function Me(o){if(!o)return!1;var s=o._valueTracker;if(!s)return!0;var h=s.getValue(),g="";return o&&(g=be(o)?o.checked?"true":"false":o.value),o=g,o!==h?(s.setValue(o),!0):!1}function qe(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}function Je(o,s){var h=s.checked;return F({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:h??o._wrapperState.initialChecked})}function ye(o,s){var h=s.defaultValue==null?"":s.defaultValue,g=s.checked!=null?s.checked:s.defaultChecked;h=J(s.value!=null?s.value:h),o._wrapperState={initialChecked:g,initialValue:h,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}function Ce(o,s){s=s.checked,s!=null&&T(o,"checked",s,!1)}function ke(o,s){Ce(o,s);var h=J(s.value),g=s.type;if(h!=null)g==="number"?(h===0&&o.value===""||o.value!=h)&&(o.value=""+h):o.value!==""+h&&(o.value=""+h);else if(g==="submit"||g==="reset"){o.removeAttribute("value");return}s.hasOwnProperty("value")?Fe(o,s.type,h):s.hasOwnProperty("defaultValue")&&Fe(o,s.type,J(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(o.defaultChecked=!!s.defaultChecked)}function xe(o,s,h){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var g=s.type;if(!(g!=="submit"&&g!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+o._wrapperState.initialValue,h||s===o.value||(o.value=s),o.defaultValue=s}h=o.name,h!==""&&(o.name=""),o.defaultChecked=!!o._wrapperState.initialChecked,h!==""&&(o.name=h)}function Fe(o,s,h){(s!=="number"||qe(o.ownerDocument)!==o)&&(h==null?o.defaultValue=""+o._wrapperState.initialValue:o.defaultValue!==""+h&&(o.defaultValue=""+h))}var Ae=Array.isArray;function ze(o,s,h,g){if(o=o.options,s){s={};for(var x=0;x<h.length;x++)s["$"+h[x]]=!0;for(h=0;h<o.length;h++)x=s.hasOwnProperty("$"+o[h].value),o[h].selected!==x&&(o[h].selected=x),x&&g&&(o[h].defaultSelected=!0)}else{for(h=""+J(h),s=null,x=0;x<o.length;x++){if(o[x].value===h){o[x].selected=!0,g&&(o[x].defaultSelected=!0);return}s!==null||o[x].disabled||(s=o[x])}s!==null&&(s.selected=!0)}}function nt(o,s){if(s.dangerouslySetInnerHTML!=null)throw Error(n(91));return F({},s,{value:void 0,defaultValue:void 0,children:""+o._wrapperState.initialValue})}function ct(o,s){var h=s.value;if(h==null){if(h=s.children,s=s.defaultValue,h!=null){if(s!=null)throw Error(n(92));if(Ae(h)){if(1<h.length)throw Error(n(93));h=h[0]}s=h}s==null&&(s=""),h=s}o._wrapperState={initialValue:J(h)}}function Ge(o,s){var h=J(s.value),g=J(s.defaultValue);h!=null&&(h=""+h,h!==o.value&&(o.value=h),s.defaultValue==null&&o.defaultValue!==h&&(o.defaultValue=h)),g!=null&&(o.defaultValue=""+g)}function yt(o){var s=o.textContent;s===o._wrapperState.initialValue&&s!==""&&s!==null&&(o.value=s)}function Bt(o){switch(o){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 $n(o,s){return o==null||o==="http://www.w3.org/1999/xhtml"?Bt(s):o==="http://www.w3.org/2000/svg"&&s==="foreignObject"?"http://www.w3.org/1999/xhtml":o}var Yt,Yr=function(o){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(s,h,g,x){MSApp.execUnsafeLocalFunction(function(){return o(s,h,g,x)})}:o}(function(o,s){if(o.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in o)o.innerHTML=s;else{for(Yt=Yt||document.createElement("div"),Yt.innerHTML="<svg>"+s.valueOf().toString()+"</svg>",s=Yt.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;s.firstChild;)o.appendChild(s.firstChild)}});function lr(o,s){if(s){var h=o.firstChild;if(h&&h===o.lastChild&&h.nodeType===3){h.nodeValue=s;return}}o.textContent=s}var Dr={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},Xe=["Webkit","ms","Moz","O"];Object.keys(Dr).forEach(function(o){Xe.forEach(function(s){s=s+o.charAt(0).toUpperCase()+o.substring(1),Dr[s]=Dr[o]})});function it(o,s,h){return s==null||typeof s=="boolean"||s===""?"":h||typeof s!="number"||s===0||Dr.hasOwnProperty(o)&&Dr[o]?(""+s).trim():s+"px"}function Mt(o,s){o=o.style;for(var h in s)if(s.hasOwnProperty(h)){var g=h.indexOf("--")===0,x=it(h,s[h],g);h==="float"&&(h="cssFloat"),g?o.setProperty(h,x):o[h]=x}}var Zn=F({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 pn(o,s){if(s){if(Zn[o]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(n(137,o));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(n(60));if(typeof s.dangerouslySetInnerHTML!="object"||!("__html"in s.dangerouslySetInnerHTML))throw Error(n(61))}if(s.style!=null&&typeof s.style!="object")throw Error(n(62))}}function Qr(o,s){if(o.indexOf("-")===-1)return typeof s.is=="string";switch(o){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 br=null;function xo(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var To=null,Er=null,Ai=null;function en(o){if(o=Ga(o)){if(typeof To!="function")throw Error(n(280));var s=o.stateNode;s&&(s=Et(s),To(o.stateNode,o.type,s))}}function bs(o){Er?Ai?Ai.push(o):Ai=[o]:Er=o}function Cl(){if(Er){var o=Er,s=Ai;if(Ai=Er=null,en(o),s)for(o=0;o<s.length;o++)en(s[o])}}function rn(o,s){return o(s)}function mn(){}var Jn=!1;function xr(o,s,h){if(Jn)return o(s,h);Jn=!0;try{return rn(o,s,h)}finally{Jn=!1,(Er!==null||Ai!==null)&&(mn(),Cl())}}function di(o,s){var h=o.stateNode;if(h===null)return null;var g=Et(h);if(g===null)return null;h=g[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(g=!g.disabled)||(o=o.type,g=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!g;break e;default:o=!1}if(o)return null;if(h&&typeof h!="function")throw Error(n(231,s,typeof h));return h}var Ra=!1;if(c)try{var hi={};Object.defineProperty(hi,"passive",{get:function(){Ra=!0}}),window.addEventListener("test",hi,hi),window.removeEventListener("test",hi,hi)}catch{Ra=!1}function Es(o,s,h,g,x,L,H,te,se){var _e=Array.prototype.slice.call(arguments,3);try{s.apply(h,_e)}catch(Pe){this.onError(Pe)}}var Ri=!1,Lr=null,er=!1,Jo=null,Zr={onError:function(o){Ri=!0,Lr=o}};function Cf(o,s,h,g,x,L,H,te,se){Ri=!1,Lr=null,Es.apply(Zr,arguments)}function ki(o,s,h,g,x,L,H,te,se){if(Cf.apply(this,arguments),Ri){if(Ri){var _e=Lr;Ri=!1,Lr=null}else throw Error(n(198));er||(er=!0,Jo=_e)}}function Jr(o){var s=o,h=o;if(o.alternate)for(;s.return;)s=s.return;else{o=s;do s=o,(s.flags&4098)!==0&&(h=s.return),o=s.return;while(o)}return s.tag===3?h:null}function bf(o){if(o.tag===13){var s=o.memoizedState;if(s===null&&(o=o.alternate,o!==null&&(s=o.memoizedState)),s!==null)return s.dehydrated}return null}function ro(o){if(Jr(o)!==o)throw Error(n(188))}function Ef(o){var s=o.alternate;if(!s){if(s=Jr(o),s===null)throw Error(n(188));return s!==o?null:o}for(var h=o,g=s;;){var x=h.return;if(x===null)break;var L=x.alternate;if(L===null){if(g=x.return,g!==null){h=g;continue}break}if(x.child===L.child){for(L=x.child;L;){if(L===h)return ro(x),o;if(L===g)return ro(x),s;L=L.sibling}throw Error(n(188))}if(h.return!==g.return)h=x,g=L;else{for(var H=!1,te=x.child;te;){if(te===h){H=!0,h=x,g=L;break}if(te===g){H=!0,g=x,h=L;break}te=te.sibling}if(!H){for(te=L.child;te;){if(te===h){H=!0,h=L,g=x;break}if(te===g){H=!0,g=L,h=x;break}te=te.sibling}if(!H)throw Error(n(189))}}if(h.alternate!==g)throw Error(n(190))}if(h.tag!==3)throw Error(n(188));return h.stateNode.current===h?o:s}function xs(o){return o=Ef(o),o!==null?bu(o):null}function bu(o){if(o.tag===5||o.tag===6)return o;for(o=o.child;o!==null;){var s=bu(o);if(s!==null)return s;o=o.sibling}return null}var xf=e.unstable_scheduleCallback,Tf=e.unstable_cancelCallback,Kh=e.unstable_shouldYield,bl=e.unstable_requestPaint,Tt=e.unstable_now,Oo=e.unstable_getCurrentPriorityLevel,Eu=e.unstable_ImmediatePriority,Of=e.unstable_UserBlockingPriority,El=e.unstable_NormalPriority,Af=e.unstable_LowPriority,xu=e.unstable_IdlePriority,Ts=null,Ni=null;function ka(o){if(Ni&&typeof Ni.onCommitFiberRoot=="function")try{Ni.onCommitFiberRoot(Ts,o,void 0,(o.current.flags&128)===128)}catch{}}var pi=Math.clz32?Math.clz32:ut,Xh=Math.log,Rf=Math.LN2;function ut(o){return o>>>=0,o===0?32:31-(Xh(o)/Rf|0)|0}var Rt=64,Cn=4194304;function ur(o){switch(o&-o){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 o&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return o&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return o}}function at(o,s){var h=o.pendingLanes;if(h===0)return 0;var g=0,x=o.suspendedLanes,L=o.pingedLanes,H=h&268435455;if(H!==0){var te=H&~x;te!==0?g=ur(te):(L&=H,L!==0&&(g=ur(L)))}else H=h&~x,H!==0?g=ur(H):L!==0&&(g=ur(L));if(g===0)return 0;if(s!==0&&s!==g&&(s&x)===0&&(x=g&-g,L=s&-s,x>=L||x===16&&(L&4194240)!==0))return s;if((g&4)!==0&&(g|=h&16),s=o.entangledLanes,s!==0)for(o=o.entanglements,s&=g;0<s;)h=31-pi(s),x=1<<h,g|=o[h],s&=~x;return g}function Na(o,s){switch(o){case 1:case 2:case 4:return s+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 s+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 ea(o,s){for(var h=o.suspendedLanes,g=o.pingedLanes,x=o.expirationTimes,L=o.pendingLanes;0<L;){var H=31-pi(L),te=1<<H,se=x[H];se===-1?((te&h)===0||(te&g)!==0)&&(x[H]=Na(te,s)):se<=s&&(o.expiredLanes|=te),L&=~te}}function Pi(o){return o=o.pendingLanes&-1073741825,o!==0?o:o&1073741824?1073741824:0}function Yh(){var o=Rt;return Rt<<=1,(Rt&4194240)===0&&(Rt=64),o}function kf(o){for(var s=[],h=0;31>h;h++)s.push(o);return s}function Os(o,s,h){o.pendingLanes|=s,s!==536870912&&(o.suspendedLanes=0,o.pingedLanes=0),o=o.eventTimes,s=31-pi(s),o[s]=h}function x_(o,s){var h=o.pendingLanes&~s;o.pendingLanes=s,o.suspendedLanes=0,o.pingedLanes=0,o.expiredLanes&=s,o.mutableReadLanes&=s,o.entangledLanes&=s,s=o.entanglements;var g=o.eventTimes;for(o=o.expirationTimes;0<h;){var x=31-pi(h),L=1<<x;s[x]=0,g[x]=-1,o[x]=-1,h&=~L}}function Nf(o,s){var h=o.entangledLanes|=s;for(o=o.entanglements;h;){var g=31-pi(h),x=1<<g;x&s|o[g]&s&&(o[g]|=s),h&=~x}}var Ut=0;function Pf(o){return o&=-o,1<o?4<o?(o&268435455)!==0?16:536870912:4:1}var As,Df,Qh,Iv,Zh,Lf=!1,Tu=[],ta=null,Pa=null,Da=null,Ou=new Map,xl=new Map,La=[],T_="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 Fv(o,s){switch(o){case"focusin":case"focusout":ta=null;break;case"dragenter":case"dragleave":Pa=null;break;case"mouseover":case"mouseout":Da=null;break;case"pointerover":case"pointerout":Ou.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":xl.delete(s.pointerId)}}function Au(o,s,h,g,x,L){return o===null||o.nativeEvent!==L?(o={blockedOn:s,domEventName:h,eventSystemFlags:g,nativeEvent:L,targetContainers:[x]},s!==null&&(s=Ga(s),s!==null&&Df(s)),o):(o.eventSystemFlags|=g,s=o.targetContainers,x!==null&&s.indexOf(x)===-1&&s.push(x),o)}function Jh(o,s,h,g,x){switch(s){case"focusin":return ta=Au(ta,o,s,h,g,x),!0;case"dragenter":return Pa=Au(Pa,o,s,h,g,x),!0;case"mouseover":return Da=Au(Da,o,s,h,g,x),!0;case"pointerover":var L=x.pointerId;return Ou.set(L,Au(Ou.get(L)||null,o,s,h,g,x)),!0;case"gotpointercapture":return L=x.pointerId,xl.set(L,Au(xl.get(L)||null,o,s,h,g,x)),!0}return!1}function $v(o){var s=Mi(o.target);if(s!==null){var h=Jr(s);if(h!==null){if(s=h.tag,s===13){if(s=bf(h),s!==null){o.blockedOn=s,Zh(o.priority,function(){Qh(h)});return}}else if(s===3&&h.stateNode.current.memoizedState.isDehydrated){o.blockedOn=h.tag===3?h.stateNode.containerInfo:null;return}}}o.blockedOn=null}function Mf(o){if(o.blockedOn!==null)return!1;for(var s=o.targetContainers;0<s.length;){var h=tp(o.domEventName,o.eventSystemFlags,s[0],o.nativeEvent);if(h===null){h=o.nativeEvent;var g=new h.constructor(h.type,h);br=g,h.target.dispatchEvent(g),br=null}else return s=Ga(h),s!==null&&Df(s),o.blockedOn=h,!1;s.shift()}return!0}function jv(o,s,h){Mf(o)&&h.delete(s)}function O_(){Lf=!1,ta!==null&&Mf(ta)&&(ta=null),Pa!==null&&Mf(Pa)&&(Pa=null),Da!==null&&Mf(Da)&&(Da=null),Ou.forEach(jv),xl.forEach(jv)}function Ru(o,s){o.blockedOn===s&&(o.blockedOn=null,Lf||(Lf=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,O_)))}function Kt(o){function s(x){return Ru(x,o)}if(0<Tu.length){Ru(Tu[0],o);for(var h=1;h<Tu.length;h++){var g=Tu[h];g.blockedOn===o&&(g.blockedOn=null)}}for(ta!==null&&Ru(ta,o),Pa!==null&&Ru(Pa,o),Da!==null&&Ru(Da,o),Ou.forEach(s),xl.forEach(s),h=0;h<La.length;h++)g=La[h],g.blockedOn===o&&(g.blockedOn=null);for(;0<La.length&&(h=La[0],h.blockedOn===null);)$v(h),h.blockedOn===null&&La.shift()}var Wt=C.ReactCurrentBatchConfig,If=!0;function A_(o,s,h,g){var x=Ut,L=Wt.transition;Wt.transition=null;try{Ut=1,ep(o,s,h,g)}finally{Ut=x,Wt.transition=L}}function R_(o,s,h,g){var x=Ut,L=Wt.transition;Wt.transition=null;try{Ut=4,ep(o,s,h,g)}finally{Ut=x,Wt.transition=L}}function ep(o,s,h,g){if(If){var x=tp(o,s,h,g);if(x===null)Hu(o,s,g,Ff,h),Fv(o,g);else if(Jh(x,o,s,h,g))g.stopPropagation();else if(Fv(o,g),s&4&&-1<T_.indexOf(o)){for(;x!==null;){var L=Ga(x);if(L!==null&&As(L),L=tp(o,s,h,g),L===null&&Hu(o,s,g,Ff,h),L===x)break;x=L}x!==null&&g.stopPropagation()}else Hu(o,s,g,null,h)}}var Ff=null;function tp(o,s,h,g){if(Ff=null,o=xo(g),o=Mi(o),o!==null)if(s=Jr(o),s===null)o=null;else if(h=s.tag,h===13){if(o=bf(s),o!==null)return o;o=null}else if(h===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;o=null}else s!==o&&(o=null);return Ff=o,null}function np(o){switch(o){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(Oo()){case Eu:return 1;case Of:return 4;case El:case Af:return 16;case xu:return 536870912;default:return 16}default:return 16}}var Ma=null,jn=null,Tl=null;function Ia(){if(Tl)return Tl;var o,s=jn,h=s.length,g,x="value"in Ma?Ma.value:Ma.textContent,L=x.length;for(o=0;o<h&&s[o]===x[o];o++);var H=h-o;for(g=1;g<=H&&s[h-g]===x[L-g];g++);return Tl=x.slice(o,1<g?1-g:void 0)}function ku(o){var s=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&s===13&&(o=13)):o=s,o===10&&(o=13),32<=o||o===13?o:0}function Ol(){return!0}function mi(){return!1}function ei(o){function s(h,g,x,L,H){this._reactName=h,this._targetInst=x,this.type=g,this.nativeEvent=L,this.target=H,this.currentTarget=null;for(var te in o)o.hasOwnProperty(te)&&(h=o[te],this[te]=h?h(L):L[te]);return this.isDefaultPrevented=(L.defaultPrevented!=null?L.defaultPrevented:L.returnValue===!1)?Ol:mi,this.isPropagationStopped=mi,this}return F(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var h=this.nativeEvent;h&&(h.preventDefault?h.preventDefault():typeof h.returnValue!="unknown"&&(h.returnValue=!1),this.isDefaultPrevented=Ol)},stopPropagation:function(){var h=this.nativeEvent;h&&(h.stopPropagation?h.stopPropagation():typeof h.cancelBubble!="unknown"&&(h.cancelBubble=!0),this.isPropagationStopped=Ol)},persist:function(){},isPersistent:Ol}),s}var Rs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$f=ei(Rs),Al=F({},Rs,{view:0,detail:0}),zv=ei(Al),jf,Mr,Nu,Ir=F({},Al,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ja,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==Nu&&(Nu&&o.type==="mousemove"?(jf=o.screenX-Nu.screenX,Mr=o.screenY-Nu.screenY):Mr=jf=0,Nu=o),jf)},movementY:function(o){return"movementY"in o?o.movementY:Mr}}),Hv=ei(Ir),qv=F({},Ir,{dataTransfer:0}),Fa=ei(qv),zf=F({},Al,{relatedTarget:0}),Pu=ei(zf),sn=F({},Rs,{animationName:0,elapsedTime:0,pseudoElement:0}),$a=ei(sn),rp=F({},Rs,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),k_=ei(rp),ip=F({},Rs,{data:0}),Uv=ei(ip),N_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},P_={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"},Wv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Hf(o){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(o):(o=Wv[o])?!!s[o]:!1}function ja(){return Hf}var D_=F({},Al,{key:function(o){if(o.key){var s=N_[o.key]||o.key;if(s!=="Unidentified")return s}return o.type==="keypress"?(o=ku(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?P_[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ja,charCode:function(o){return o.type==="keypress"?ku(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?ku(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),Vv=ei(D_),Gv=F({},Ir,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),qf=ei(Gv),op=F({},Al,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ja}),Bv=ei(op),L_=F({},Rs,{propertyName:0,elapsedTime:0,pseudoElement:0}),ap=ei(L_),sp=F({},Ir,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),M_=ei(sp),Kv=[9,13,27,32],Fr=c&&"CompositionEvent"in window,ks=null;c&&"documentMode"in document&&(ks=document.documentMode);var Du=c&&"TextEvent"in window&&!ks,lp=c&&(!Fr||ks&&8<ks&&11>=ks),up=" ",Xv=!1;function Yv(o,s){switch(o){case"keyup":return Kv.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qv(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var Rl=!1;function I_(o,s){switch(o){case"compositionend":return Qv(s);case"keypress":return s.which!==32?null:(Xv=!0,up);case"textInput":return o=s.data,o===up&&Xv?null:o;default:return null}}function kl(o,s){if(Rl)return o==="compositionend"||!Fr&&Yv(o,s)?(o=Ia(),Tl=jn=Ma=null,Rl=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return lp&&s.locale!=="ko"?null:s.data;default:return null}}var F_={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 Zv(o){var s=o&&o.nodeName&&o.nodeName.toLowerCase();return s==="input"?!!F_[o.type]:s==="textarea"}function Uf(o,s,h,g){bs(g),s=Uu(s,"onChange"),0<s.length&&(h=new $f("onChange","change",null,h,g),o.push({event:h,listeners:s}))}var Nl=null,Di=null;function Wf(o){ju(o,0)}function Vf(o){var s=fr(o);if(Me(s))return o}function $_(o,s){if(o==="change")return s}var Jv=!1;if(c){var za;if(c){var vi="oninput"in document;if(!vi){var cp=document.createElement("div");cp.setAttribute("oninput","return;"),vi=typeof cp.oninput=="function"}za=vi}else za=!1;Jv=za&&(!document.documentMode||9<document.documentMode)}function eg(){Nl&&(Nl.detachEvent("onpropertychange",tg),Di=Nl=null)}function tg(o){if(o.propertyName==="value"&&Vf(Di)){var s=[];Uf(s,Di,o,xo(o)),xr(Wf,s)}}function j_(o,s,h){o==="focusin"?(eg(),Nl=s,Di=h,Nl.attachEvent("onpropertychange",tg)):o==="focusout"&&eg()}function z_(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return Vf(Di)}function H_(o,s){if(o==="click")return Vf(s)}function Pl(o,s){if(o==="input"||o==="change")return Vf(s)}function he(o,s){return o===s&&(o!==0||1/o===1/s)||o!==o&&s!==s}var Se=typeof Object.is=="function"?Object.is:he;function we(o,s){if(Se(o,s))return!0;if(typeof o!="object"||o===null||typeof s!="object"||s===null)return!1;var h=Object.keys(o),g=Object.keys(s);if(h.length!==g.length)return!1;for(g=0;g<h.length;g++){var x=h[g];if(!f.call(s,x)||!Se(o[x],s[x]))return!1}return!0}function Be(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function vt(o,s){var h=Be(o);o=0;for(var g;h;){if(h.nodeType===3){if(g=o+h.textContent.length,o<=s&&g>=s)return{node:h,offset:s-o};o=g}e:{for(;h;){if(h.nextSibling){h=h.nextSibling;break e}h=h.parentNode}h=void 0}h=Be(h)}}function Ht(o,s){return o&&s?o===s?!0:o&&o.nodeType===3?!1:s&&s.nodeType===3?Ht(o,s.parentNode):"contains"in o?o.contains(s):o.compareDocumentPosition?!!(o.compareDocumentPosition(s)&16):!1:!1}function Nn(){for(var o=window,s=qe();s instanceof o.HTMLIFrameElement;){try{var h=typeof s.contentWindow.location.href=="string"}catch{h=!1}if(h)o=s.contentWindow;else break;s=qe(o.document)}return s}function Xt(o){var s=o&&o.nodeName&&o.nodeName.toLowerCase();return s&&(s==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||s==="textarea"||o.contentEditable==="true")}function fp(o){var s=Nn(),h=o.focusedElem,g=o.selectionRange;if(s!==h&&h&&h.ownerDocument&&Ht(h.ownerDocument.documentElement,h)){if(g!==null&&Xt(h)){if(s=g.start,o=g.end,o===void 0&&(o=s),"selectionStart"in h)h.selectionStart=s,h.selectionEnd=Math.min(o,h.value.length);else if(o=(s=h.ownerDocument||document)&&s.defaultView||window,o.getSelection){o=o.getSelection();var x=h.textContent.length,L=Math.min(g.start,x);g=g.end===void 0?L:Math.min(g.end,x),!o.extend&&L>g&&(x=g,g=L,L=x),x=vt(h,L);var H=vt(h,g);x&&H&&(o.rangeCount!==1||o.anchorNode!==x.node||o.anchorOffset!==x.offset||o.focusNode!==H.node||o.focusOffset!==H.offset)&&(s=s.createRange(),s.setStart(x.node,x.offset),o.removeAllRanges(),L>g?(o.addRange(s),o.extend(H.node,H.offset)):(s.setEnd(H.node,H.offset),o.addRange(s)))}}for(s=[],o=h;o=o.parentNode;)o.nodeType===1&&s.push({element:o,left:o.scrollLeft,top:o.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<s.length;h++)o=s[h],o.element.scrollLeft=o.left,o.element.scrollTop=o.top}}var q_=c&&"documentMode"in document&&11>=document.documentMode,cr=null,Dl=null,Lu=null,Ha=!1;function Mu(o,s,h){var g=h.window===h?h.document:h.nodeType===9?h:h.ownerDocument;Ha||cr==null||cr!==qe(g)||(g=cr,"selectionStart"in g&&Xt(g)?g={start:g.selectionStart,end:g.selectionEnd}:(g=(g.ownerDocument&&g.ownerDocument.defaultView||window).getSelection(),g={anchorNode:g.anchorNode,anchorOffset:g.anchorOffset,focusNode:g.focusNode,focusOffset:g.focusOffset}),Lu&&we(Lu,g)||(Lu=g,g=Uu(Dl,"onSelect"),0<g.length&&(s=new $f("onSelect","select",null,s,h),o.push({event:s,listeners:g}),s.target=cr)))}function Ns(o,s){var h={};return h[o.toLowerCase()]=s.toLowerCase(),h["Webkit"+o]="webkit"+s,h["Moz"+o]="moz"+s,h}var It={animationend:Ns("Animation","AnimationEnd"),animationiteration:Ns("Animation","AnimationIteration"),animationstart:Ns("Animation","AnimationStart"),transitionend:Ns("Transition","TransitionEnd")},dp={},hp={};c&&(hp=document.createElement("div").style,"AnimationEvent"in window||(delete It.animationend.animation,delete It.animationiteration.animation,delete It.animationstart.animation),"TransitionEvent"in window||delete It.transitionend.transition);function Ps(o){if(dp[o])return dp[o];if(!It[o])return o;var s=It[o],h;for(h in s)if(s.hasOwnProperty(h)&&h in hp)return dp[o]=s[h];return o}var ng=Ps("animationend"),rg=Ps("animationiteration"),ig=Ps("animationstart"),Iu=Ps("transitionend"),na=new Map,Fu="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 ra(o,s){na.set(o,s),a(s,[o])}for(var Ll=0;Ll<Fu.length;Ll++){var Gf=Fu[Ll],og=Gf.toLowerCase(),Bf=Gf[0].toUpperCase()+Gf.slice(1);ra(og,"on"+Bf)}ra(ng,"onAnimationEnd"),ra(rg,"onAnimationIteration"),ra(ig,"onAnimationStart"),ra("dblclick","onDoubleClick"),ra("focusin","onFocus"),ra("focusout","onBlur"),ra(Iu,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ml="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(" "),$u=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ml));function qa(o,s,h){var g=o.type||"unknown-event";o.currentTarget=h,ki(g,s,void 0,o),o.currentTarget=null}function ju(o,s){s=(s&4)!==0;for(var h=0;h<o.length;h++){var g=o[h],x=g.event;g=g.listeners;e:{var L=void 0;if(s)for(var H=g.length-1;0<=H;H--){var te=g[H],se=te.instance,_e=te.currentTarget;if(te=te.listener,se!==L&&x.isPropagationStopped())break e;qa(x,te,_e),L=se}else for(H=0;H<g.length;H++){if(te=g[H],se=te.instance,_e=te.currentTarget,te=te.listener,se!==L&&x.isPropagationStopped())break e;qa(x,te,_e),L=se}}}if(er)throw o=Jo,er=!1,Jo=null,o}function on(o,s){var h=s[Ls];h===void 0&&(h=s[Ls]=new Set);var g=o+"__bubble";h.has(g)||(zu(s,o,2,!1),h.add(g))}function pp(o,s,h){var g=0;s&&(g|=4),zu(h,o,g,s)}var Kf="_reactListening"+Math.random().toString(36).slice(2);function Ua(o){if(!o[Kf]){o[Kf]=!0,r.forEach(function(h){h!=="selectionchange"&&($u.has(h)||pp(h,!1,o),pp(h,!0,o))});var s=o.nodeType===9?o:o.ownerDocument;s===null||s[Kf]||(s[Kf]=!0,pp("selectionchange",!1,s))}}function zu(o,s,h,g){switch(np(s)){case 1:var x=A_;break;case 4:x=R_;break;default:x=ep}h=x.bind(null,s,h,o),x=void 0,!Ra||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(x=!0),g?x!==void 0?o.addEventListener(s,h,{capture:!0,passive:x}):o.addEventListener(s,h,!0):x!==void 0?o.addEventListener(s,h,{passive:x}):o.addEventListener(s,h,!1)}function Hu(o,s,h,g,x){var L=g;if((s&1)===0&&(s&2)===0&&g!==null)e:for(;;){if(g===null)return;var H=g.tag;if(H===3||H===4){var te=g.stateNode.containerInfo;if(te===x||te.nodeType===8&&te.parentNode===x)break;if(H===4)for(H=g.return;H!==null;){var se=H.tag;if((se===3||se===4)&&(se=H.stateNode.containerInfo,se===x||se.nodeType===8&&se.parentNode===x))return;H=H.return}for(;te!==null;){if(H=Mi(te),H===null)return;if(se=H.tag,se===5||se===6){g=L=H;continue e}te=te.parentNode}}g=g.return}xr(function(){var _e=L,Pe=xo(h),Ie=[];e:{var Ne=na.get(o);if(Ne!==void 0){var We=$f,Ye=o;switch(o){case"keypress":if(ku(h)===0)break e;case"keydown":case"keyup":We=Vv;break;case"focusin":Ye="focus",We=Pu;break;case"focusout":Ye="blur",We=Pu;break;case"beforeblur":case"afterblur":We=Pu;break;case"click":if(h.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":We=Hv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":We=Fa;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":We=Bv;break;case ng:case rg:case ig:We=$a;break;case Iu:We=ap;break;case"scroll":We=zv;break;case"wheel":We=M_;break;case"copy":case"cut":case"paste":We=k_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":We=qf}var Qe=(s&4)!==0,An=!Qe&&o==="scroll",me=Qe?Ne!==null?Ne+"Capture":null:Ne;Qe=[];for(var fe=_e,ve;fe!==null;){ve=fe;var $e=ve.stateNode;if(ve.tag===5&&$e!==null&&(ve=$e,me!==null&&($e=di(fe,me),$e!=null&&Qe.push(qu(fe,$e,ve)))),An)break;fe=fe.return}0<Qe.length&&(Ne=new We(Ne,Ye,null,h,Pe),Ie.push({event:Ne,listeners:Qe}))}}if((s&7)===0){e:{if(Ne=o==="mouseover"||o==="pointerover",We=o==="mouseout"||o==="pointerout",Ne&&h!==br&&(Ye=h.relatedTarget||h.fromElement)&&(Mi(Ye)||Ye[Li]))break e;if((We||Ne)&&(Ne=Pe.window===Pe?Pe:(Ne=Pe.ownerDocument)?Ne.defaultView||Ne.parentWindow:window,We?(Ye=h.relatedTarget||h.toElement,We=_e,Ye=Ye?Mi(Ye):null,Ye!==null&&(An=Jr(Ye),Ye!==An||Ye.tag!==5&&Ye.tag!==6)&&(Ye=null)):(We=null,Ye=_e),We!==Ye)){if(Qe=Hv,$e="onMouseLeave",me="onMouseEnter",fe="mouse",(o==="pointerout"||o==="pointerover")&&(Qe=qf,$e="onPointerLeave",me="onPointerEnter",fe="pointer"),An=We==null?Ne:fr(We),ve=Ye==null?Ne:fr(Ye),Ne=new Qe($e,fe+"leave",We,h,Pe),Ne.target=An,Ne.relatedTarget=ve,$e=null,Mi(Pe)===_e&&(Qe=new Qe(me,fe+"enter",Ye,h,Pe),Qe.target=ve,Qe.relatedTarget=An,$e=Qe),An=$e,We&&Ye)t:{for(Qe=We,me=Ye,fe=0,ve=Qe;ve;ve=Il(ve))fe++;for(ve=0,$e=me;$e;$e=Il($e))ve++;for(;0<fe-ve;)Qe=Il(Qe),fe--;for(;0<ve-fe;)me=Il(me),ve--;for(;fe--;){if(Qe===me||me!==null&&Qe===me.alternate)break t;Qe=Il(Qe),me=Il(me)}Qe=null}else Qe=null;We!==null&&ag(Ie,Ne,We,Qe,!1),Ye!==null&&An!==null&&ag(Ie,An,Ye,Qe,!0)}}e:{if(Ne=_e?fr(_e):window,We=Ne.nodeName&&Ne.nodeName.toLowerCase(),We==="select"||We==="input"&&Ne.type==="file")var tt=$_;else if(Zv(Ne))if(Jv)tt=Pl;else{tt=z_;var st=j_}else(We=Ne.nodeName)&&We.toLowerCase()==="input"&&(Ne.type==="checkbox"||Ne.type==="radio")&&(tt=H_);if(tt&&(tt=tt(o,_e))){Uf(Ie,tt,h,Pe);break e}st&&st(o,Ne,_e),o==="focusout"&&(st=Ne._wrapperState)&&st.controlled&&Ne.type==="number"&&Fe(Ne,"number",Ne.value)}switch(st=_e?fr(_e):window,o){case"focusin":(Zv(st)||st.contentEditable==="true")&&(cr=st,Dl=_e,Lu=null);break;case"focusout":Lu=Dl=cr=null;break;case"mousedown":Ha=!0;break;case"contextmenu":case"mouseup":case"dragend":Ha=!1,Mu(Ie,h,Pe);break;case"selectionchange":if(q_)break;case"keydown":case"keyup":Mu(Ie,h,Pe)}var ot;if(Fr)e:{switch(o){case"compositionstart":var ft="onCompositionStart";break e;case"compositionend":ft="onCompositionEnd";break e;case"compositionupdate":ft="onCompositionUpdate";break e}ft=void 0}else Rl?Yv(o,h)&&(ft="onCompositionEnd"):o==="keydown"&&h.keyCode===229&&(ft="onCompositionStart");ft&&(lp&&h.locale!=="ko"&&(Rl||ft!=="onCompositionStart"?ft==="onCompositionEnd"&&Rl&&(ot=Ia()):(Ma=Pe,jn="value"in Ma?Ma.value:Ma.textContent,Rl=!0)),st=Uu(_e,ft),0<st.length&&(ft=new Uv(ft,o,null,h,Pe),Ie.push({event:ft,listeners:st}),ot?ft.data=ot:(ot=Qv(h),ot!==null&&(ft.data=ot)))),(ot=Du?I_(o,h):kl(o,h))&&(_e=Uu(_e,"onBeforeInput"),0<_e.length&&(Pe=new Uv("onBeforeInput","beforeinput",null,h,Pe),Ie.push({event:Pe,listeners:_e}),Pe.data=ot))}ju(Ie,s)})}function qu(o,s,h){return{instance:o,listener:s,currentTarget:h}}function Uu(o,s){for(var h=s+"Capture",g=[];o!==null;){var x=o,L=x.stateNode;x.tag===5&&L!==null&&(x=L,L=di(o,h),L!=null&&g.unshift(qu(o,L,x)),L=di(o,s),L!=null&&g.push(qu(o,L,x))),o=o.return}return g}function Il(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5);return o||null}function ag(o,s,h,g,x){for(var L=s._reactName,H=[];h!==null&&h!==g;){var te=h,se=te.alternate,_e=te.stateNode;if(se!==null&&se===g)break;te.tag===5&&_e!==null&&(te=_e,x?(se=di(h,L),se!=null&&H.unshift(qu(h,se,te))):x||(se=di(h,L),se!=null&&H.push(qu(h,se,te)))),h=h.return}H.length!==0&&o.push({event:s,listeners:H})}var zn=/\r\n?/g,Tr=/\u0000|\uFFFD/g;function sg(o){return(typeof o=="string"?o:""+o).replace(zn,`
|
|
38
|
+
`).replace(Tr,"")}function Xf(o,s,h){if(s=sg(s),sg(o)!==s&&h)throw Error(n(425))}function Wu(){}var mp=null,Vu=null;function Ds(o,s){return o==="textarea"||o==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Gu=typeof setTimeout=="function"?setTimeout:void 0,Fl=typeof clearTimeout=="function"?clearTimeout:void 0,$l=typeof Promise=="function"?Promise:void 0,Bu=typeof queueMicrotask=="function"?queueMicrotask:typeof $l<"u"?function(o){return $l.resolve(null).then(o).catch(Yf)}:Gu;function Yf(o){setTimeout(function(){throw o})}function Wa(o,s){var h=s,g=0;do{var x=h.nextSibling;if(o.removeChild(h),x&&x.nodeType===8)if(h=x.data,h==="/$"){if(g===0){o.removeChild(x),Kt(s);return}g--}else h!=="$"&&h!=="$?"&&h!=="$!"||g++;h=x}while(h);Kt(s)}function Va(o){for(;o!=null;o=o.nextSibling){var s=o.nodeType;if(s===1||s===3)break;if(s===8){if(s=o.data,s==="$"||s==="$!"||s==="$?")break;if(s==="/$")return null}}return o}function lg(o){o=o.previousSibling;for(var s=0;o;){if(o.nodeType===8){var h=o.data;if(h==="$"||h==="$!"||h==="$?"){if(s===0)return o;s--}else h==="/$"&&s++}o=o.previousSibling}return null}var jl=Math.random().toString(36).slice(2),Ao="__reactFiber$"+jl,Ku="__reactProps$"+jl,Li="__reactContainer$"+jl,Ls="__reactEvents$"+jl,ug="__reactListeners$"+jl,V="__reactHandles$"+jl;function Mi(o){var s=o[Ao];if(s)return s;for(var h=o.parentNode;h;){if(s=h[Li]||h[Ao]){if(h=s.alternate,s.child!==null||h!==null&&h.child!==null)for(o=lg(o);o!==null;){if(h=o[Ao])return h;o=lg(o)}return s}o=h,h=o.parentNode}return null}function Ga(o){return o=o[Ao]||o[Li],!o||o.tag!==5&&o.tag!==6&&o.tag!==13&&o.tag!==3?null:o}function fr(o){if(o.tag===5||o.tag===6)return o.stateNode;throw Error(n(33))}function Et(o){return o[Ku]||null}var vp=[],zl=-1;function Ba(o){return{current:o}}function Vt(o){0>zl||(o.current=vp[zl],vp[zl]=null,zl--)}function tn(o,s){zl++,vp[zl]=o.current,o.current=s}var Ka={},Or=Ba(Ka),ti=Ba(!1),Ms=Ka;function ni(o,s){var h=o.type.contextTypes;if(!h)return Ka;var g=o.stateNode;if(g&&g.__reactInternalMemoizedUnmaskedChildContext===s)return g.__reactInternalMemoizedMaskedChildContext;var x={},L;for(L in h)x[L]=s[L];return g&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=s,o.__reactInternalMemoizedMaskedChildContext=x),x}function ri(o){return o=o.childContextTypes,o!=null}function Qf(){Vt(ti),Vt(Or)}function cg(o,s,h){if(Or.current!==Ka)throw Error(n(168));tn(Or,s),tn(ti,h)}function fg(o,s,h){var g=o.stateNode;if(s=s.childContextTypes,typeof g.getChildContext!="function")return h;g=g.getChildContext();for(var x in g)if(!(x in s))throw Error(n(108,ie(o)||"Unknown",x));return F({},h,g)}function Zf(o){return o=(o=o.stateNode)&&o.__reactInternalMemoizedMergedChildContext||Ka,Ms=Or.current,tn(Or,o),tn(ti,ti.current),!0}function Ro(o,s,h){var g=o.stateNode;if(!g)throw Error(n(169));h?(o=fg(o,s,Ms),g.__reactInternalMemoizedMergedChildContext=o,Vt(ti),Vt(Or),tn(Or,o)):Vt(ti),tn(ti,h)}var ia=null,Jf=!1,gp=!1;function dg(o){ia===null?ia=[o]:ia.push(o)}function U_(o){Jf=!0,dg(o)}function ii(){if(!gp&&ia!==null){gp=!0;var o=0,s=Ut;try{var h=ia;for(Ut=1;o<h.length;o++){var g=h[o];do g=g(!0);while(g!==null)}ia=null,Jf=!1}catch(x){throw ia!==null&&(ia=ia.slice(o+1)),xf(Eu,ii),x}finally{Ut=s,gp=!1}}return null}var Hl=[],ql=0,oi=null,ed=0,Ii=[],Fi=0,Is=null,oa=1,ko="";function Xa(o,s){Hl[ql++]=ed,Hl[ql++]=oi,oi=o,ed=s}function hg(o,s,h){Ii[Fi++]=oa,Ii[Fi++]=ko,Ii[Fi++]=Is,Is=o;var g=oa;o=ko;var x=32-pi(g)-1;g&=~(1<<x),h+=1;var L=32-pi(s)+x;if(30<L){var H=x-x%5;L=(g&(1<<H)-1).toString(32),g>>=H,x-=H,oa=1<<32-pi(s)+x|h<<x|g,ko=L+o}else oa=1<<L|h<<x|g,ko=o}function yp(o){o.return!==null&&(Xa(o,1),hg(o,1,0))}function Xu(o){for(;o===oi;)oi=Hl[--ql],Hl[ql]=null,ed=Hl[--ql],Hl[ql]=null;for(;o===Is;)Is=Ii[--Fi],Ii[Fi]=null,ko=Ii[--Fi],Ii[Fi]=null,oa=Ii[--Fi],Ii[Fi]=null}var dr=null,Ar=null,ln=!1,$i=null;function pg(o,s){var h=Wi(5,null,null,0);h.elementType="DELETED",h.stateNode=s,h.return=o,s=o.deletions,s===null?(o.deletions=[h],o.flags|=16):s.push(h)}function No(o,s){switch(o.tag){case 5:var h=o.type;return s=s.nodeType!==1||h.toLowerCase()!==s.nodeName.toLowerCase()?null:s,s!==null?(o.stateNode=s,dr=o,Ar=Va(s.firstChild),!0):!1;case 6:return s=o.pendingProps===""||s.nodeType!==3?null:s,s!==null?(o.stateNode=s,dr=o,Ar=null,!0):!1;case 13:return s=s.nodeType!==8?null:s,s!==null?(h=Is!==null?{id:oa,overflow:ko}:null,o.memoizedState={dehydrated:s,treeContext:h,retryLane:1073741824},h=Wi(18,null,null,0),h.stateNode=s,h.return=o,o.child=h,dr=o,Ar=null,!0):!1;default:return!1}}function Yu(o){return(o.mode&1)!==0&&(o.flags&128)===0}function aa(o){if(ln){var s=Ar;if(s){var h=s;if(!No(o,s)){if(Yu(o))throw Error(n(418));s=Va(h.nextSibling);var g=dr;s&&No(o,s)?pg(g,h):(o.flags=o.flags&-4097|2,ln=!1,dr=o)}}else{if(Yu(o))throw Error(n(418));o.flags=o.flags&-4097|2,ln=!1,dr=o}}}function gi(o){for(o=o.return;o!==null&&o.tag!==5&&o.tag!==3&&o.tag!==13;)o=o.return;dr=o}function td(o){if(o!==dr)return!1;if(!ln)return gi(o),ln=!0,!1;var s;if((s=o.tag!==3)&&!(s=o.tag!==5)&&(s=o.type,s=s!=="head"&&s!=="body"&&!Ds(o.type,o.memoizedProps)),s&&(s=Ar)){if(Yu(o))throw _p(),Error(n(418));for(;s;)pg(o,s),s=Va(s.nextSibling)}if(gi(o),o.tag===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(n(317));e:{for(o=o.nextSibling,s=0;o;){if(o.nodeType===8){var h=o.data;if(h==="/$"){if(s===0){Ar=Va(o.nextSibling);break e}s--}else h!=="$"&&h!=="$!"&&h!=="$?"||s++}o=o.nextSibling}Ar=null}}else Ar=dr?Va(o.stateNode.nextSibling):null;return!0}function _p(){for(var o=Ar;o;)o=Va(o.nextSibling)}function Fs(){Ar=dr=null,ln=!1}function $s(o){$i===null?$i=[o]:$i.push(o)}var Ya=C.ReactCurrentBatchConfig;function ji(o,s){if(o&&o.defaultProps){s=F({},s),o=o.defaultProps;for(var h in o)s[h]===void 0&&(s[h]=o[h]);return s}return s}var nd=Ba(null),js=null,Ul=null,rd=null;function Hn(){rd=Ul=js=null}function Qu(o){var s=nd.current;Vt(nd),o._currentValue=s}function id(o,s,h){for(;o!==null;){var g=o.alternate;if((o.childLanes&s)!==s?(o.childLanes|=s,g!==null&&(g.childLanes|=s)):g!==null&&(g.childLanes&s)!==s&&(g.childLanes|=s),o===h)break;o=o.return}}function $r(o,s){js=o,rd=Ul=null,o=o.dependencies,o!==null&&o.firstContext!==null&&((o.lanes&s)!==0&&(zr=!0),o.firstContext=null)}function ai(o){var s=o._currentValue;if(rd!==o)if(o={context:o,memoizedValue:s,next:null},Ul===null){if(js===null)throw Error(n(308));Ul=o,js.dependencies={lanes:0,firstContext:o}}else Ul=Ul.next=o;return s}var Po=null;function sa(o){Po===null?Po=[o]:Po.push(o)}function wp(o,s,h,g){var x=s.interleaved;return x===null?(h.next=h,sa(s)):(h.next=x.next,x.next=h),s.interleaved=h,vn(o,g)}function vn(o,s){o.lanes|=s;var h=o.alternate;for(h!==null&&(h.lanes|=s),h=o,o=o.return;o!==null;)o.childLanes|=s,h=o.alternate,h!==null&&(h.childLanes|=s),h=o,o=o.return;return h.tag===3?h.stateNode:null}var Do=!1;function Sp(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function mg(o,s){o=o.updateQueue,s.updateQueue===o&&(s.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,effects:o.effects})}function la(o,s){return{eventTime:o,lane:s,tag:0,payload:null,callback:null,next:null}}function Lo(o,s,h){var g=o.updateQueue;if(g===null)return null;if(g=g.shared,($t&2)!==0){var x=g.pending;return x===null?s.next=s:(s.next=x.next,x.next=s),g.pending=s,vn(o,h)}return x=g.interleaved,x===null?(s.next=s,sa(g)):(s.next=x.next,x.next=s),g.interleaved=s,vn(o,h)}function od(o,s,h){if(s=s.updateQueue,s!==null&&(s=s.shared,(h&4194240)!==0)){var g=s.lanes;g&=o.pendingLanes,h|=g,s.lanes=h,Nf(o,h)}}function Wl(o,s){var h=o.updateQueue,g=o.alternate;if(g!==null&&(g=g.updateQueue,h===g)){var x=null,L=null;if(h=h.firstBaseUpdate,h!==null){do{var H={eventTime:h.eventTime,lane:h.lane,tag:h.tag,payload:h.payload,callback:h.callback,next:null};L===null?x=L=H:L=L.next=H,h=h.next}while(h!==null);L===null?x=L=s:L=L.next=s}else x=L=s;h={baseState:g.baseState,firstBaseUpdate:x,lastBaseUpdate:L,shared:g.shared,effects:g.effects},o.updateQueue=h;return}o=h.lastBaseUpdate,o===null?h.firstBaseUpdate=s:o.next=s,h.lastBaseUpdate=s}function Zu(o,s,h,g){var x=o.updateQueue;Do=!1;var L=x.firstBaseUpdate,H=x.lastBaseUpdate,te=x.shared.pending;if(te!==null){x.shared.pending=null;var se=te,_e=se.next;se.next=null,H===null?L=_e:H.next=_e,H=se;var Pe=o.alternate;Pe!==null&&(Pe=Pe.updateQueue,te=Pe.lastBaseUpdate,te!==H&&(te===null?Pe.firstBaseUpdate=_e:te.next=_e,Pe.lastBaseUpdate=se))}if(L!==null){var Ie=x.baseState;H=0,Pe=_e=se=null,te=L;do{var Ne=te.lane,We=te.eventTime;if((g&Ne)===Ne){Pe!==null&&(Pe=Pe.next={eventTime:We,lane:0,tag:te.tag,payload:te.payload,callback:te.callback,next:null});e:{var Ye=o,Qe=te;switch(Ne=s,We=h,Qe.tag){case 1:if(Ye=Qe.payload,typeof Ye=="function"){Ie=Ye.call(We,Ie,Ne);break e}Ie=Ye;break e;case 3:Ye.flags=Ye.flags&-65537|128;case 0:if(Ye=Qe.payload,Ne=typeof Ye=="function"?Ye.call(We,Ie,Ne):Ye,Ne==null)break e;Ie=F({},Ie,Ne);break e;case 2:Do=!0}}te.callback!==null&&te.lane!==0&&(o.flags|=64,Ne=x.effects,Ne===null?x.effects=[te]:Ne.push(te))}else We={eventTime:We,lane:Ne,tag:te.tag,payload:te.payload,callback:te.callback,next:null},Pe===null?(_e=Pe=We,se=Ie):Pe=Pe.next=We,H|=Ne;if(te=te.next,te===null){if(te=x.shared.pending,te===null)break;Ne=te,te=Ne.next,Ne.next=null,x.lastBaseUpdate=Ne,x.shared.pending=null}}while(!0);if(Pe===null&&(se=Ie),x.baseState=se,x.firstBaseUpdate=_e,x.lastBaseUpdate=Pe,s=x.shared.interleaved,s!==null){x=s;do H|=x.lane,x=x.next;while(x!==s)}else L===null&&(x.shared.lanes=0);es|=H,o.lanes=H,o.memoizedState=Ie}}function vg(o,s,h){if(o=s.effects,s.effects=null,o!==null)for(s=0;s<o.length;s++){var g=o[s],x=g.callback;if(x!==null){if(g.callback=null,g=h,typeof x!="function")throw Error(n(191,x));x.call(g)}}}var gg=new t.Component().refs;function zs(o,s,h,g){s=o.memoizedState,h=h(g,s),h=h==null?s:F({},s,h),o.memoizedState=h,o.lanes===0&&(o.updateQueue.baseState=h)}var ad={isMounted:function(o){return(o=o._reactInternals)?Jr(o)===o:!1},enqueueSetState:function(o,s,h){o=o._reactInternals;var g=Ur(),x=rs(o),L=la(g,x);L.payload=s,h!=null&&(L.callback=h),s=Lo(o,L,x),s!==null&&(fo(s,o,x,g),od(s,o,x))},enqueueReplaceState:function(o,s,h){o=o._reactInternals;var g=Ur(),x=rs(o),L=la(g,x);L.tag=1,L.payload=s,h!=null&&(L.callback=h),s=Lo(o,L,x),s!==null&&(fo(s,o,x,g),od(s,o,x))},enqueueForceUpdate:function(o,s){o=o._reactInternals;var h=Ur(),g=rs(o),x=la(h,g);x.tag=2,s!=null&&(x.callback=s),s=Lo(o,x,g),s!==null&&(fo(s,o,g,h),od(s,o,g))}};function yg(o,s,h,g,x,L,H){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(g,L,H):s.prototype&&s.prototype.isPureReactComponent?!we(h,g)||!we(x,L):!0}function sd(o,s,h){var g=!1,x=Ka,L=s.contextType;return typeof L=="object"&&L!==null?L=ai(L):(x=ri(s)?Ms:Or.current,g=s.contextTypes,L=(g=g!=null)?ni(o,x):Ka),s=new s(h,L),o.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=ad,o.stateNode=s,s._reactInternals=o,g&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=x,o.__reactInternalMemoizedMaskedChildContext=L),s}function Cp(o,s,h,g){o=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(h,g),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(h,g),s.state!==o&&ad.enqueueReplaceState(s,s.state,null)}function bp(o,s,h,g){var x=o.stateNode;x.props=h,x.state=o.memoizedState,x.refs=gg,Sp(o);var L=s.contextType;typeof L=="object"&&L!==null?x.context=ai(L):(L=ri(s)?Ms:Or.current,x.context=ni(o,L)),x.state=o.memoizedState,L=s.getDerivedStateFromProps,typeof L=="function"&&(zs(o,s,L,h),x.state=o.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof x.getSnapshotBeforeUpdate=="function"||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(s=x.state,typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount(),s!==x.state&&ad.enqueueReplaceState(x,x.state,null),Zu(o,h,x,g),x.state=o.memoizedState),typeof x.componentDidMount=="function"&&(o.flags|=4194308)}function Ju(o,s,h){if(o=h.ref,o!==null&&typeof o!="function"&&typeof o!="object"){if(h._owner){if(h=h._owner,h){if(h.tag!==1)throw Error(n(309));var g=h.stateNode}if(!g)throw Error(n(147,o));var x=g,L=""+o;return s!==null&&s.ref!==null&&typeof s.ref=="function"&&s.ref._stringRef===L?s.ref:(s=function(H){var te=x.refs;te===gg&&(te=x.refs={}),H===null?delete te[L]:te[L]=H},s._stringRef=L,s)}if(typeof o!="string")throw Error(n(284));if(!h._owner)throw Error(n(290,o))}return o}function ld(o,s){throw o=Object.prototype.toString.call(s),Error(n(31,o==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":o))}function Ep(o){var s=o._init;return s(o._payload)}function ud(o){function s(me,fe){if(o){var ve=me.deletions;ve===null?(me.deletions=[fe],me.flags|=16):ve.push(fe)}}function h(me,fe){if(!o)return null;for(;fe!==null;)s(me,fe),fe=fe.sibling;return null}function g(me,fe){for(me=new Map;fe!==null;)fe.key!==null?me.set(fe.key,fe):me.set(fe.index,fe),fe=fe.sibling;return me}function x(me,fe){return me=ho(me,fe),me.index=0,me.sibling=null,me}function L(me,fe,ve){return me.index=ve,o?(ve=me.alternate,ve!==null?(ve=ve.index,ve<fe?(me.flags|=2,fe):ve):(me.flags|=2,fe)):(me.flags|=1048576,fe)}function H(me){return o&&me.alternate===null&&(me.flags|=2),me}function te(me,fe,ve,$e){return fe===null||fe.tag!==6?(fe=nm(ve,me.mode,$e),fe.return=me,fe):(fe=x(fe,ve),fe.return=me,fe)}function se(me,fe,ve,$e){var tt=ve.type;return tt===I?Pe(me,fe,ve.props.children,$e,ve.key):fe!==null&&(fe.elementType===tt||typeof tt=="object"&&tt!==null&&tt.$$typeof===Q&&Ep(tt)===fe.type)?($e=x(fe,ve.props),$e.ref=Ju(me,fe,ve),$e.return=me,$e):($e=zd(ve.type,ve.key,ve.props,null,me.mode,$e),$e.ref=Ju(me,fe,ve),$e.return=me,$e)}function _e(me,fe,ve,$e){return fe===null||fe.tag!==4||fe.stateNode.containerInfo!==ve.containerInfo||fe.stateNode.implementation!==ve.implementation?(fe=rm(ve,me.mode,$e),fe.return=me,fe):(fe=x(fe,ve.children||[]),fe.return=me,fe)}function Pe(me,fe,ve,$e,tt){return fe===null||fe.tag!==7?(fe=Ks(ve,me.mode,$e,tt),fe.return=me,fe):(fe=x(fe,ve),fe.return=me,fe)}function Ie(me,fe,ve){if(typeof fe=="string"&&fe!==""||typeof fe=="number")return fe=nm(""+fe,me.mode,ve),fe.return=me,fe;if(typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case w:return ve=zd(fe.type,fe.key,fe.props,null,me.mode,ve),ve.ref=Ju(me,null,fe),ve.return=me,ve;case R:return fe=rm(fe,me.mode,ve),fe.return=me,fe;case Q:var $e=fe._init;return Ie(me,$e(fe._payload),ve)}if(Ae(fe)||B(fe))return fe=Ks(fe,me.mode,ve,null),fe.return=me,fe;ld(me,fe)}return null}function Ne(me,fe,ve,$e){var tt=fe!==null?fe.key:null;if(typeof ve=="string"&&ve!==""||typeof ve=="number")return tt!==null?null:te(me,fe,""+ve,$e);if(typeof ve=="object"&&ve!==null){switch(ve.$$typeof){case w:return ve.key===tt?se(me,fe,ve,$e):null;case R:return ve.key===tt?_e(me,fe,ve,$e):null;case Q:return tt=ve._init,Ne(me,fe,tt(ve._payload),$e)}if(Ae(ve)||B(ve))return tt!==null?null:Pe(me,fe,ve,$e,null);ld(me,ve)}return null}function We(me,fe,ve,$e,tt){if(typeof $e=="string"&&$e!==""||typeof $e=="number")return me=me.get(ve)||null,te(fe,me,""+$e,tt);if(typeof $e=="object"&&$e!==null){switch($e.$$typeof){case w:return me=me.get($e.key===null?ve:$e.key)||null,se(fe,me,$e,tt);case R:return me=me.get($e.key===null?ve:$e.key)||null,_e(fe,me,$e,tt);case Q:var st=$e._init;return We(me,fe,ve,st($e._payload),tt)}if(Ae($e)||B($e))return me=me.get(ve)||null,Pe(fe,me,$e,tt,null);ld(fe,$e)}return null}function Ye(me,fe,ve,$e){for(var tt=null,st=null,ot=fe,ft=fe=0,rr=null;ot!==null&&ft<ve.length;ft++){ot.index>ft?(rr=ot,ot=null):rr=ot.sibling;var qt=Ne(me,ot,ve[ft],$e);if(qt===null){ot===null&&(ot=rr);break}o&&ot&&qt.alternate===null&&s(me,ot),fe=L(qt,fe,ft),st===null?tt=qt:st.sibling=qt,st=qt,ot=rr}if(ft===ve.length)return h(me,ot),ln&&Xa(me,ft),tt;if(ot===null){for(;ft<ve.length;ft++)ot=Ie(me,ve[ft],$e),ot!==null&&(fe=L(ot,fe,ft),st===null?tt=ot:st.sibling=ot,st=ot);return ln&&Xa(me,ft),tt}for(ot=g(me,ot);ft<ve.length;ft++)rr=We(ot,me,ft,ve[ft],$e),rr!==null&&(o&&rr.alternate!==null&&ot.delete(rr.key===null?ft:rr.key),fe=L(rr,fe,ft),st===null?tt=rr:st.sibling=rr,st=rr);return o&&ot.forEach(function(os){return s(me,os)}),ln&&Xa(me,ft),tt}function Qe(me,fe,ve,$e){var tt=B(ve);if(typeof tt!="function")throw Error(n(150));if(ve=tt.call(ve),ve==null)throw Error(n(151));for(var st=tt=null,ot=fe,ft=fe=0,rr=null,qt=ve.next();ot!==null&&!qt.done;ft++,qt=ve.next()){ot.index>ft?(rr=ot,ot=null):rr=ot.sibling;var os=Ne(me,ot,qt.value,$e);if(os===null){ot===null&&(ot=rr);break}o&&ot&&os.alternate===null&&s(me,ot),fe=L(os,fe,ft),st===null?tt=os:st.sibling=os,st=os,ot=rr}if(qt.done)return h(me,ot),ln&&Xa(me,ft),tt;if(ot===null){for(;!qt.done;ft++,qt=ve.next())qt=Ie(me,qt.value,$e),qt!==null&&(fe=L(qt,fe,ft),st===null?tt=qt:st.sibling=qt,st=qt);return ln&&Xa(me,ft),tt}for(ot=g(me,ot);!qt.done;ft++,qt=ve.next())qt=We(ot,me,ft,qt.value,$e),qt!==null&&(o&&qt.alternate!==null&&ot.delete(qt.key===null?ft:qt.key),fe=L(qt,fe,ft),st===null?tt=qt:st.sibling=qt,st=qt);return o&&ot.forEach(function(cw){return s(me,cw)}),ln&&Xa(me,ft),tt}function An(me,fe,ve,$e){if(typeof ve=="object"&&ve!==null&&ve.type===I&&ve.key===null&&(ve=ve.props.children),typeof ve=="object"&&ve!==null){switch(ve.$$typeof){case w:e:{for(var tt=ve.key,st=fe;st!==null;){if(st.key===tt){if(tt=ve.type,tt===I){if(st.tag===7){h(me,st.sibling),fe=x(st,ve.props.children),fe.return=me,me=fe;break e}}else if(st.elementType===tt||typeof tt=="object"&&tt!==null&&tt.$$typeof===Q&&Ep(tt)===st.type){h(me,st.sibling),fe=x(st,ve.props),fe.ref=Ju(me,st,ve),fe.return=me,me=fe;break e}h(me,st);break}else s(me,st);st=st.sibling}ve.type===I?(fe=Ks(ve.props.children,me.mode,$e,ve.key),fe.return=me,me=fe):($e=zd(ve.type,ve.key,ve.props,null,me.mode,$e),$e.ref=Ju(me,fe,ve),$e.return=me,me=$e)}return H(me);case R:e:{for(st=ve.key;fe!==null;){if(fe.key===st)if(fe.tag===4&&fe.stateNode.containerInfo===ve.containerInfo&&fe.stateNode.implementation===ve.implementation){h(me,fe.sibling),fe=x(fe,ve.children||[]),fe.return=me,me=fe;break e}else{h(me,fe);break}else s(me,fe);fe=fe.sibling}fe=rm(ve,me.mode,$e),fe.return=me,me=fe}return H(me);case Q:return st=ve._init,An(me,fe,st(ve._payload),$e)}if(Ae(ve))return Ye(me,fe,ve,$e);if(B(ve))return Qe(me,fe,ve,$e);ld(me,ve)}return typeof ve=="string"&&ve!==""||typeof ve=="number"?(ve=""+ve,fe!==null&&fe.tag===6?(h(me,fe.sibling),fe=x(fe,ve),fe.return=me,me=fe):(h(me,fe),fe=nm(ve,me.mode,$e),fe.return=me,me=fe),H(me)):h(me,fe)}return An}var Vl=ud(!0),cd=ud(!1),Gl={},io=Ba(Gl),Bl=Ba(Gl),Qa=Ba(Gl);function Hs(o){if(o===Gl)throw Error(n(174));return o}function fd(o,s){switch(tn(Qa,s),tn(Bl,o),tn(io,Gl),o=s.nodeType,o){case 9:case 11:s=(s=s.documentElement)?s.namespaceURI:$n(null,"");break;default:o=o===8?s.parentNode:s,s=o.namespaceURI||null,o=o.tagName,s=$n(s,o)}Vt(io),tn(io,s)}function qs(){Vt(io),Vt(Bl),Vt(Qa)}function _g(o){Hs(Qa.current);var s=Hs(io.current),h=$n(s,o.type);s!==h&&(tn(Bl,o),tn(io,h))}function dd(o){Bl.current===o&&(Vt(io),Vt(Bl))}var gn=Ba(0);function Kl(o){for(var s=o;s!==null;){if(s.tag===13){var h=s.memoizedState;if(h!==null&&(h=h.dehydrated,h===null||h.data==="$?"||h.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var hd=[];function ec(){for(var o=0;o<hd.length;o++)hd[o]._workInProgressVersionPrimary=null;hd.length=0}var pd=C.ReactCurrentDispatcher,tc=C.ReactCurrentBatchConfig,gt=0,yn=null,qn=null,bn=null,nc=!1,rc=!1,ic=0,zi=0;function Rr(){throw Error(n(321))}function Xl(o,s){if(s===null)return!1;for(var h=0;h<s.length&&h<o.length;h++)if(!Se(o[h],s[h]))return!1;return!0}function oc(o,s,h,g,x,L){if(gt=L,yn=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,pd.current=o===null||o.memoizedState===null?Zl:cc,o=h(g,x),rc){L=0;do{if(rc=!1,ic=0,25<=L)throw Error(n(301));L+=1,bn=qn=null,s.updateQueue=null,pd.current=V_,o=h(g,x)}while(rc)}if(pd.current=uc,s=qn!==null&&qn.next!==null,gt=0,bn=qn=yn=null,nc=!1,s)throw Error(n(300));return o}function md(){var o=ic!==0;return ic=0,o}function oo(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return bn===null?yn.memoizedState=bn=o:bn=bn.next=o,bn}function un(){if(qn===null){var o=yn.alternate;o=o!==null?o.memoizedState:null}else o=qn.next;var s=bn===null?yn.memoizedState:bn.next;if(s!==null)bn=s,qn=o;else{if(o===null)throw Error(n(310));qn=o,o={memoizedState:qn.memoizedState,baseState:qn.baseState,baseQueue:qn.baseQueue,queue:qn.queue,next:null},bn===null?yn.memoizedState=bn=o:bn=bn.next=o}return bn}function Hi(o,s){return typeof s=="function"?s(o):s}function ac(o){var s=un(),h=s.queue;if(h===null)throw Error(n(311));h.lastRenderedReducer=o;var g=qn,x=g.baseQueue,L=h.pending;if(L!==null){if(x!==null){var H=x.next;x.next=L.next,L.next=H}g.baseQueue=x=L,h.pending=null}if(x!==null){L=x.next,g=g.baseState;var te=H=null,se=null,_e=L;do{var Pe=_e.lane;if((gt&Pe)===Pe)se!==null&&(se=se.next={lane:0,action:_e.action,hasEagerState:_e.hasEagerState,eagerState:_e.eagerState,next:null}),g=_e.hasEagerState?_e.eagerState:o(g,_e.action);else{var Ie={lane:Pe,action:_e.action,hasEagerState:_e.hasEagerState,eagerState:_e.eagerState,next:null};se===null?(te=se=Ie,H=g):se=se.next=Ie,yn.lanes|=Pe,es|=Pe}_e=_e.next}while(_e!==null&&_e!==L);se===null?H=g:se.next=te,Se(g,s.memoizedState)||(zr=!0),s.memoizedState=g,s.baseState=H,s.baseQueue=se,h.lastRenderedState=g}if(o=h.interleaved,o!==null){x=o;do L=x.lane,yn.lanes|=L,es|=L,x=x.next;while(x!==o)}else x===null&&(h.lanes=0);return[s.memoizedState,h.dispatch]}function vd(o){var s=un(),h=s.queue;if(h===null)throw Error(n(311));h.lastRenderedReducer=o;var g=h.dispatch,x=h.pending,L=s.memoizedState;if(x!==null){h.pending=null;var H=x=x.next;do L=o(L,H.action),H=H.next;while(H!==x);Se(L,s.memoizedState)||(zr=!0),s.memoizedState=L,s.baseQueue===null&&(s.baseState=L),h.lastRenderedState=L}return[L,g]}function sc(){}function xp(o,s){var h=yn,g=un(),x=s(),L=!Se(g.memoizedState,x);if(L&&(g.memoizedState=x,zr=!0),g=g.queue,Ap(yd.bind(null,h,g,o),[o]),g.getSnapshot!==s||L||bn!==null&&bn.memoizedState.tag&1){if(h.flags|=2048,qi(9,Tp.bind(null,h,g,x,s),void 0,null),nr===null)throw Error(n(349));(gt&30)!==0||gd(h,s,x)}return x}function gd(o,s,h){o.flags|=16384,o={getSnapshot:s,value:h},s=yn.updateQueue,s===null?(s={lastEffect:null,stores:null},yn.updateQueue=s,s.stores=[o]):(h=s.stores,h===null?s.stores=[o]:h.push(o))}function Tp(o,s,h,g){s.value=h,s.getSnapshot=g,_d(s)&&ua(o)}function yd(o,s,h){return h(function(){_d(s)&&ua(o)})}function _d(o){var s=o.getSnapshot;o=o.value;try{var h=s();return!Se(o,h)}catch{return!0}}function ua(o){var s=vn(o,1);s!==null&&fo(s,o,1,-1)}function wg(o){var s=oo();return typeof o=="function"&&(o=o()),s.memoizedState=s.baseState=o,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Hi,lastRenderedState:o},s.queue=o,o=o.dispatch=Ql.bind(null,yn,o),[s.memoizedState,o]}function qi(o,s,h,g){return o={tag:o,create:s,destroy:h,deps:g,next:null},s=yn.updateQueue,s===null?(s={lastEffect:null,stores:null},yn.updateQueue=s,s.lastEffect=o.next=o):(h=s.lastEffect,h===null?s.lastEffect=o.next=o:(g=h.next,h.next=o,o.next=g,s.lastEffect=o)),o}function Op(){return un().memoizedState}function lc(o,s,h,g){var x=oo();yn.flags|=o,x.memoizedState=qi(1|s,h,void 0,g===void 0?null:g)}function Yl(o,s,h,g){var x=un();g=g===void 0?null:g;var L=void 0;if(qn!==null){var H=qn.memoizedState;if(L=H.destroy,g!==null&&Xl(g,H.deps)){x.memoizedState=qi(s,h,L,g);return}}yn.flags|=o,x.memoizedState=qi(1|s,h,L,g)}function Sg(o,s){return lc(8390656,8,o,s)}function Ap(o,s){return Yl(2048,8,o,s)}function Cg(o,s){return Yl(4,2,o,s)}function Rp(o,s){return Yl(4,4,o,s)}function kp(o,s){if(typeof s=="function")return o=o(),s(o),function(){s(null)};if(s!=null)return o=o(),s.current=o,function(){s.current=null}}function bg(o,s,h){return h=h!=null?h.concat([o]):null,Yl(4,4,kp.bind(null,s,o),h)}function wd(){}function Np(o,s){var h=un();s=s===void 0?null:s;var g=h.memoizedState;return g!==null&&s!==null&&Xl(s,g[1])?g[0]:(h.memoizedState=[o,s],o)}function jr(o,s){var h=un();s=s===void 0?null:s;var g=h.memoizedState;return g!==null&&s!==null&&Xl(s,g[1])?g[0]:(o=o(),h.memoizedState=[o,s],o)}function ao(o,s,h){return(gt&21)===0?(o.baseState&&(o.baseState=!1,zr=!0),o.memoizedState=h):(Se(h,s)||(h=Yh(),yn.lanes|=h,es|=h,o.baseState=!0),s)}function W_(o,s){var h=Ut;Ut=h!==0&&4>h?h:4,o(!0);var g=tc.transition;tc.transition={};try{o(!1),s()}finally{Ut=h,tc.transition=g}}function Eg(){return un().memoizedState}function Sd(o,s,h){var g=rs(o);if(h={lane:g,action:h,hasEagerState:!1,eagerState:null,next:null},Pp(o))Dp(s,h);else if(h=wp(o,s,h,g),h!==null){var x=Ur();fo(h,o,g,x),xg(h,s,g)}}function Ql(o,s,h){var g=rs(o),x={lane:g,action:h,hasEagerState:!1,eagerState:null,next:null};if(Pp(o))Dp(s,x);else{var L=o.alternate;if(o.lanes===0&&(L===null||L.lanes===0)&&(L=s.lastRenderedReducer,L!==null))try{var H=s.lastRenderedState,te=L(H,h);if(x.hasEagerState=!0,x.eagerState=te,Se(te,H)){var se=s.interleaved;se===null?(x.next=x,sa(s)):(x.next=se.next,se.next=x),s.interleaved=x;return}}catch{}finally{}h=wp(o,s,x,g),h!==null&&(x=Ur(),fo(h,o,g,x),xg(h,s,g))}}function Pp(o){var s=o.alternate;return o===yn||s!==null&&s===yn}function Dp(o,s){rc=nc=!0;var h=o.pending;h===null?s.next=s:(s.next=h.next,h.next=s),o.pending=s}function xg(o,s,h){if((h&4194240)!==0){var g=s.lanes;g&=o.pendingLanes,h|=g,s.lanes=h,Nf(o,h)}}var uc={readContext:ai,useCallback:Rr,useContext:Rr,useEffect:Rr,useImperativeHandle:Rr,useInsertionEffect:Rr,useLayoutEffect:Rr,useMemo:Rr,useReducer:Rr,useRef:Rr,useState:Rr,useDebugValue:Rr,useDeferredValue:Rr,useTransition:Rr,useMutableSource:Rr,useSyncExternalStore:Rr,useId:Rr,unstable_isNewReconciler:!1},Zl={readContext:ai,useCallback:function(o,s){return oo().memoizedState=[o,s===void 0?null:s],o},useContext:ai,useEffect:Sg,useImperativeHandle:function(o,s,h){return h=h!=null?h.concat([o]):null,lc(4194308,4,kp.bind(null,s,o),h)},useLayoutEffect:function(o,s){return lc(4194308,4,o,s)},useInsertionEffect:function(o,s){return lc(4,2,o,s)},useMemo:function(o,s){var h=oo();return s=s===void 0?null:s,o=o(),h.memoizedState=[o,s],o},useReducer:function(o,s,h){var g=oo();return s=h!==void 0?h(s):s,g.memoizedState=g.baseState=s,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:s},g.queue=o,o=o.dispatch=Sd.bind(null,yn,o),[g.memoizedState,o]},useRef:function(o){var s=oo();return o={current:o},s.memoizedState=o},useState:wg,useDebugValue:wd,useDeferredValue:function(o){return oo().memoizedState=o},useTransition:function(){var o=wg(!1),s=o[0];return o=W_.bind(null,o[1]),oo().memoizedState=o,[s,o]},useMutableSource:function(){},useSyncExternalStore:function(o,s,h){var g=yn,x=oo();if(ln){if(h===void 0)throw Error(n(407));h=h()}else{if(h=s(),nr===null)throw Error(n(349));(gt&30)!==0||gd(g,s,h)}x.memoizedState=h;var L={value:h,getSnapshot:s};return x.queue=L,Sg(yd.bind(null,g,L,o),[o]),g.flags|=2048,qi(9,Tp.bind(null,g,L,h,s),void 0,null),h},useId:function(){var o=oo(),s=nr.identifierPrefix;if(ln){var h=ko,g=oa;h=(g&~(1<<32-pi(g)-1)).toString(32)+h,s=":"+s+"R"+h,h=ic++,0<h&&(s+="H"+h.toString(32)),s+=":"}else h=zi++,s=":"+s+"r"+h.toString(32)+":";return o.memoizedState=s},unstable_isNewReconciler:!1},cc={readContext:ai,useCallback:Np,useContext:ai,useEffect:Ap,useImperativeHandle:bg,useInsertionEffect:Cg,useLayoutEffect:Rp,useMemo:jr,useReducer:ac,useRef:Op,useState:function(){return ac(Hi)},useDebugValue:wd,useDeferredValue:function(o){var s=un();return ao(s,qn.memoizedState,o)},useTransition:function(){var o=ac(Hi)[0],s=un().memoizedState;return[o,s]},useMutableSource:sc,useSyncExternalStore:xp,useId:Eg,unstable_isNewReconciler:!1},V_={readContext:ai,useCallback:Np,useContext:ai,useEffect:Ap,useImperativeHandle:bg,useInsertionEffect:Cg,useLayoutEffect:Rp,useMemo:jr,useReducer:vd,useRef:Op,useState:function(){return vd(Hi)},useDebugValue:wd,useDeferredValue:function(o){var s=un();return qn===null?s.memoizedState=o:ao(s,qn.memoizedState,o)},useTransition:function(){var o=vd(Hi)[0],s=un().memoizedState;return[o,s]},useMutableSource:sc,useSyncExternalStore:xp,useId:Eg,unstable_isNewReconciler:!1};function Us(o,s){try{var h="",g=s;do h+=oe(g),g=g.return;while(g);var x=h}catch(L){x=`
|
|
39
|
+
Error generating stack: `+L.message+`
|
|
40
|
+
`+L.stack}return{value:o,source:s,stack:x,digest:null}}function Cd(o,s,h){return{value:o,source:null,stack:h??null,digest:s??null}}function Jl(o,s){try{console.error(s.value)}catch(h){setTimeout(function(){throw h})}}var Tg=typeof WeakMap=="function"?WeakMap:Map;function fc(o,s,h){h=la(-1,h),h.tag=3,h.payload={element:null};var g=s.value;return h.callback=function(){Dd||(Dd=!0,Xp=g),Jl(o,s)},h}function bd(o,s,h){h=la(-1,h),h.tag=3;var g=o.type.getDerivedStateFromError;if(typeof g=="function"){var x=s.value;h.payload=function(){return g(x)},h.callback=function(){Jl(o,s)}}var L=o.stateNode;return L!==null&&typeof L.componentDidCatch=="function"&&(h.callback=function(){Jl(o,s),typeof g!="function"&&(ts===null?ts=new Set([this]):ts.add(this));var H=s.stack;this.componentDidCatch(s.value,{componentStack:H!==null?H:""})}),h}function dc(o,s,h){var g=o.pingCache;if(g===null){g=o.pingCache=new Tg;var x=new Set;g.set(s,x)}else x=g.get(s),x===void 0&&(x=new Set,g.set(s,x));x.has(h)||(x.add(h),o=J_.bind(null,o,s,h),s.then(o,o))}function Og(o){do{var s;if((s=o.tag===13)&&(s=o.memoizedState,s=s!==null?s.dehydrated!==null:!0),s)return o;o=o.return}while(o!==null);return null}function Lp(o,s,h,g,x){return(o.mode&1)===0?(o===s?o.flags|=65536:(o.flags|=128,h.flags|=131072,h.flags&=-52805,h.tag===1&&(h.alternate===null?h.tag=17:(s=la(-1,1),s.tag=2,Lo(h,s,1))),h.lanes|=1),o):(o.flags|=65536,o.lanes=x,o)}var Ed=C.ReactCurrentOwner,zr=!1;function hr(o,s,h,g){s.child=o===null?cd(s,null,h,g):Vl(s,o.child,h,g)}function Ag(o,s,h,g,x){h=h.render;var L=s.ref;return $r(s,x),g=oc(o,s,h,g,L,x),h=md(),o!==null&&!zr?(s.updateQueue=o.updateQueue,s.flags&=-2053,o.lanes&=~x,so(o,s,x)):(ln&&h&&yp(s),s.flags|=1,hr(o,s,g,x),s.child)}function Mp(o,s,h,g,x){if(o===null){var L=h.type;return typeof L=="function"&&!jd(L)&&L.defaultProps===void 0&&h.compare===null&&h.defaultProps===void 0?(s.tag=15,s.type=L,Mo(o,s,L,g,x)):(o=zd(h.type,null,g,s,s.mode,x),o.ref=s.ref,o.return=s,s.child=o)}if(L=o.child,(o.lanes&x)===0){var H=L.memoizedProps;if(h=h.compare,h=h!==null?h:we,h(H,g)&&o.ref===s.ref)return so(o,s,x)}return s.flags|=1,o=ho(L,g),o.ref=s.ref,o.return=s,s.child=o}function Mo(o,s,h,g,x){if(o!==null){var L=o.memoizedProps;if(we(L,g)&&o.ref===s.ref)if(zr=!1,s.pendingProps=g=L,(o.lanes&x)!==0)(o.flags&131072)!==0&&(zr=!0);else return s.lanes=o.lanes,so(o,s,x)}return $p(o,s,h,g,x)}function Ip(o,s,h){var g=s.pendingProps,x=g.children,L=o!==null?o.memoizedState:null;if(g.mode==="hidden")if((s.mode&1)===0)s.memoizedState={baseLanes:0,cachePool:null,transitions:null},tn(ru,_i),_i|=h;else{if((h&1073741824)===0)return o=L!==null?L.baseLanes|h:h,s.lanes=s.childLanes=1073741824,s.memoizedState={baseLanes:o,cachePool:null,transitions:null},s.updateQueue=null,tn(ru,_i),_i|=o,null;s.memoizedState={baseLanes:0,cachePool:null,transitions:null},g=L!==null?L.baseLanes:h,tn(ru,_i),_i|=g}else L!==null?(g=L.baseLanes|h,s.memoizedState=null):g=h,tn(ru,_i),_i|=g;return hr(o,s,x,h),s.child}function Fp(o,s){var h=s.ref;(o===null&&h!==null||o!==null&&o.ref!==h)&&(s.flags|=512,s.flags|=2097152)}function $p(o,s,h,g,x){var L=ri(h)?Ms:Or.current;return L=ni(s,L),$r(s,x),h=oc(o,s,h,g,L,x),g=md(),o!==null&&!zr?(s.updateQueue=o.updateQueue,s.flags&=-2053,o.lanes&=~x,so(o,s,x)):(ln&&g&&yp(s),s.flags|=1,hr(o,s,h,x),s.child)}function jp(o,s,h,g,x){if(ri(h)){var L=!0;Zf(s)}else L=!1;if($r(s,x),s.stateNode===null)Td(o,s),sd(s,h,g),bp(s,h,g,x),g=!0;else if(o===null){var H=s.stateNode,te=s.memoizedProps;H.props=te;var se=H.context,_e=h.contextType;typeof _e=="object"&&_e!==null?_e=ai(_e):(_e=ri(h)?Ms:Or.current,_e=ni(s,_e));var Pe=h.getDerivedStateFromProps,Ie=typeof Pe=="function"||typeof H.getSnapshotBeforeUpdate=="function";Ie||typeof H.UNSAFE_componentWillReceiveProps!="function"&&typeof H.componentWillReceiveProps!="function"||(te!==g||se!==_e)&&Cp(s,H,g,_e),Do=!1;var Ne=s.memoizedState;H.state=Ne,Zu(s,g,H,x),se=s.memoizedState,te!==g||Ne!==se||ti.current||Do?(typeof Pe=="function"&&(zs(s,h,Pe,g),se=s.memoizedState),(te=Do||yg(s,h,te,g,Ne,se,_e))?(Ie||typeof H.UNSAFE_componentWillMount!="function"&&typeof H.componentWillMount!="function"||(typeof H.componentWillMount=="function"&&H.componentWillMount(),typeof H.UNSAFE_componentWillMount=="function"&&H.UNSAFE_componentWillMount()),typeof H.componentDidMount=="function"&&(s.flags|=4194308)):(typeof H.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=g,s.memoizedState=se),H.props=g,H.state=se,H.context=_e,g=te):(typeof H.componentDidMount=="function"&&(s.flags|=4194308),g=!1)}else{H=s.stateNode,mg(o,s),te=s.memoizedProps,_e=s.type===s.elementType?te:ji(s.type,te),H.props=_e,Ie=s.pendingProps,Ne=H.context,se=h.contextType,typeof se=="object"&&se!==null?se=ai(se):(se=ri(h)?Ms:Or.current,se=ni(s,se));var We=h.getDerivedStateFromProps;(Pe=typeof We=="function"||typeof H.getSnapshotBeforeUpdate=="function")||typeof H.UNSAFE_componentWillReceiveProps!="function"&&typeof H.componentWillReceiveProps!="function"||(te!==Ie||Ne!==se)&&Cp(s,H,g,se),Do=!1,Ne=s.memoizedState,H.state=Ne,Zu(s,g,H,x);var Ye=s.memoizedState;te!==Ie||Ne!==Ye||ti.current||Do?(typeof We=="function"&&(zs(s,h,We,g),Ye=s.memoizedState),(_e=Do||yg(s,h,_e,g,Ne,Ye,se)||!1)?(Pe||typeof H.UNSAFE_componentWillUpdate!="function"&&typeof H.componentWillUpdate!="function"||(typeof H.componentWillUpdate=="function"&&H.componentWillUpdate(g,Ye,se),typeof H.UNSAFE_componentWillUpdate=="function"&&H.UNSAFE_componentWillUpdate(g,Ye,se)),typeof H.componentDidUpdate=="function"&&(s.flags|=4),typeof H.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof H.componentDidUpdate!="function"||te===o.memoizedProps&&Ne===o.memoizedState||(s.flags|=4),typeof H.getSnapshotBeforeUpdate!="function"||te===o.memoizedProps&&Ne===o.memoizedState||(s.flags|=1024),s.memoizedProps=g,s.memoizedState=Ye),H.props=g,H.state=Ye,H.context=se,g=_e):(typeof H.componentDidUpdate!="function"||te===o.memoizedProps&&Ne===o.memoizedState||(s.flags|=4),typeof H.getSnapshotBeforeUpdate!="function"||te===o.memoizedProps&&Ne===o.memoizedState||(s.flags|=1024),g=!1)}return zp(o,s,h,g,L,x)}function zp(o,s,h,g,x,L){Fp(o,s);var H=(s.flags&128)!==0;if(!g&&!H)return x&&Ro(s,h,!1),so(o,s,L);g=s.stateNode,Ed.current=s;var te=H&&typeof h.getDerivedStateFromError!="function"?null:g.render();return s.flags|=1,o!==null&&H?(s.child=Vl(s,o.child,null,L),s.child=Vl(s,null,te,L)):hr(o,s,te,L),s.memoizedState=g.state,x&&Ro(s,h,!0),s.child}function Rg(o){var s=o.stateNode;s.pendingContext?cg(o,s.pendingContext,s.pendingContext!==s.context):s.context&&cg(o,s.context,!1),fd(o,s.containerInfo)}function Io(o,s,h,g,x){return Fs(),$s(x),s.flags|=256,hr(o,s,h,g),s.child}var hc={dehydrated:null,treeContext:null,retryLane:0};function pc(o){return{baseLanes:o,cachePool:null,transitions:null}}function xd(o,s,h){var g=s.pendingProps,x=gn.current,L=!1,H=(s.flags&128)!==0,te;if((te=H)||(te=o!==null&&o.memoizedState===null?!1:(x&2)!==0),te?(L=!0,s.flags&=-129):(o===null||o.memoizedState!==null)&&(x|=1),tn(gn,x&1),o===null)return aa(s),o=s.memoizedState,o!==null&&(o=o.dehydrated,o!==null)?((s.mode&1)===0?s.lanes=1:o.data==="$!"?s.lanes=8:s.lanes=1073741824,null):(H=g.children,o=g.fallback,L?(g=s.mode,L=s.child,H={mode:"hidden",children:H},(g&1)===0&&L!==null?(L.childLanes=0,L.pendingProps=H):L=Hd(H,g,0,null),o=Ks(o,g,h,null),L.return=s,o.return=s,L.sibling=o,s.child=L,s.child.memoizedState=pc(h),s.memoizedState=hc,o):eu(s,H));if(x=o.memoizedState,x!==null&&(te=x.dehydrated,te!==null))return lt(o,s,H,g,te,x,h);if(L){L=g.fallback,H=s.mode,x=o.child,te=x.sibling;var se={mode:"hidden",children:g.children};return(H&1)===0&&s.child!==x?(g=s.child,g.childLanes=0,g.pendingProps=se,s.deletions=null):(g=ho(x,se),g.subtreeFlags=x.subtreeFlags&14680064),te!==null?L=ho(te,L):(L=Ks(L,H,h,null),L.flags|=2),L.return=s,g.return=s,g.sibling=L,s.child=g,g=L,L=s.child,H=o.child.memoizedState,H=H===null?pc(h):{baseLanes:H.baseLanes|h,cachePool:null,transitions:H.transitions},L.memoizedState=H,L.childLanes=o.childLanes&~h,s.memoizedState=hc,g}return L=o.child,o=L.sibling,g=ho(L,{mode:"visible",children:g.children}),(s.mode&1)===0&&(g.lanes=h),g.return=s,g.sibling=null,o!==null&&(h=s.deletions,h===null?(s.deletions=[o],s.flags|=16):h.push(o)),s.child=g,s.memoizedState=null,g}function eu(o,s){return s=Hd({mode:"visible",children:s},o.mode,0,null),s.return=o,o.child=s}function ca(o,s,h,g){return g!==null&&$s(g),Vl(s,o.child,null,h),o=eu(s,s.pendingProps.children),o.flags|=2,s.memoizedState=null,o}function lt(o,s,h,g,x,L,H){if(h)return s.flags&256?(s.flags&=-257,g=Cd(Error(n(422))),ca(o,s,H,g)):s.memoizedState!==null?(s.child=o.child,s.flags|=128,null):(L=g.fallback,x=s.mode,g=Hd({mode:"visible",children:g.children},x,0,null),L=Ks(L,x,H,null),L.flags|=2,g.return=s,L.return=s,g.sibling=L,s.child=g,(s.mode&1)!==0&&Vl(s,o.child,null,H),s.child.memoizedState=pc(H),s.memoizedState=hc,L);if((s.mode&1)===0)return ca(o,s,H,null);if(x.data==="$!"){if(g=x.nextSibling&&x.nextSibling.dataset,g)var te=g.dgst;return g=te,L=Error(n(419)),g=Cd(L,g,void 0),ca(o,s,H,g)}if(te=(H&o.childLanes)!==0,zr||te){if(g=nr,g!==null){switch(H&-H){case 4:x=2;break;case 16:x=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:x=32;break;case 536870912:x=268435456;break;default:x=0}x=(x&(g.suspendedLanes|H))!==0?0:x,x!==0&&x!==L.retryLane&&(L.retryLane=x,vn(o,x),fo(g,o,x,-1))}return tm(),g=Cd(Error(n(421))),ca(o,s,H,g)}return x.data==="$?"?(s.flags|=128,s.child=o.child,s=ew.bind(null,o),x._reactRetry=s,null):(o=L.treeContext,Ar=Va(x.nextSibling),dr=s,ln=!0,$i=null,o!==null&&(Ii[Fi++]=oa,Ii[Fi++]=ko,Ii[Fi++]=Is,oa=o.id,ko=o.overflow,Is=s),s=eu(s,g.children),s.flags|=4096,s)}function mc(o,s,h){o.lanes|=s;var g=o.alternate;g!==null&&(g.lanes|=s),id(o.return,s,h)}function vc(o,s,h,g,x){var L=o.memoizedState;L===null?o.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:g,tail:h,tailMode:x}:(L.isBackwards=s,L.rendering=null,L.renderingStartTime=0,L.last=g,L.tail=h,L.tailMode=x)}function Za(o,s,h){var g=s.pendingProps,x=g.revealOrder,L=g.tail;if(hr(o,s,g.children,h),g=gn.current,(g&2)!==0)g=g&1|2,s.flags|=128;else{if(o!==null&&(o.flags&128)!==0)e:for(o=s.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&mc(o,h,s);else if(o.tag===19)mc(o,h,s);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===s)break e;for(;o.sibling===null;){if(o.return===null||o.return===s)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}g&=1}if(tn(gn,g),(s.mode&1)===0)s.memoizedState=null;else switch(x){case"forwards":for(h=s.child,x=null;h!==null;)o=h.alternate,o!==null&&Kl(o)===null&&(x=h),h=h.sibling;h=x,h===null?(x=s.child,s.child=null):(x=h.sibling,h.sibling=null),vc(s,!1,x,h,L);break;case"backwards":for(h=null,x=s.child,s.child=null;x!==null;){if(o=x.alternate,o!==null&&Kl(o)===null){s.child=x;break}o=x.sibling,x.sibling=h,h=x,x=o}vc(s,!0,h,null,L);break;case"together":vc(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function Td(o,s){(s.mode&1)===0&&o!==null&&(o.alternate=null,s.alternate=null,s.flags|=2)}function so(o,s,h){if(o!==null&&(s.dependencies=o.dependencies),es|=s.lanes,(h&s.childLanes)===0)return null;if(o!==null&&s.child!==o.child)throw Error(n(153));if(s.child!==null){for(o=s.child,h=ho(o,o.pendingProps),s.child=h,h.return=s;o.sibling!==null;)o=o.sibling,h=h.sibling=ho(o,o.pendingProps),h.return=s;h.sibling=null}return s.child}function kg(o,s,h){switch(s.tag){case 3:Rg(s),Fs();break;case 5:_g(s);break;case 1:ri(s.type)&&Zf(s);break;case 4:fd(s,s.stateNode.containerInfo);break;case 10:var g=s.type._context,x=s.memoizedProps.value;tn(nd,g._currentValue),g._currentValue=x;break;case 13:if(g=s.memoizedState,g!==null)return g.dehydrated!==null?(tn(gn,gn.current&1),s.flags|=128,null):(h&s.child.childLanes)!==0?xd(o,s,h):(tn(gn,gn.current&1),o=so(o,s,h),o!==null?o.sibling:null);tn(gn,gn.current&1);break;case 19:if(g=(h&s.childLanes)!==0,(o.flags&128)!==0){if(g)return Za(o,s,h);s.flags|=128}if(x=s.memoizedState,x!==null&&(x.rendering=null,x.tail=null,x.lastEffect=null),tn(gn,gn.current),g)break;return null;case 22:case 23:return s.lanes=0,Ip(o,s,h)}return so(o,s,h)}var pr,Hp,Ng,qp;pr=function(o,s){for(var h=s.child;h!==null;){if(h.tag===5||h.tag===6)o.appendChild(h.stateNode);else if(h.tag!==4&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===s)break;for(;h.sibling===null;){if(h.return===null||h.return===s)return;h=h.return}h.sibling.return=h.return,h=h.sibling}},Hp=function(){},Ng=function(o,s,h,g){var x=o.memoizedProps;if(x!==g){o=s.stateNode,Hs(io.current);var L=null;switch(h){case"input":x=Je(o,x),g=Je(o,g),L=[];break;case"select":x=F({},x,{value:void 0}),g=F({},g,{value:void 0}),L=[];break;case"textarea":x=nt(o,x),g=nt(o,g),L=[];break;default:typeof x.onClick!="function"&&typeof g.onClick=="function"&&(o.onclick=Wu)}pn(h,g);var H;h=null;for(_e in x)if(!g.hasOwnProperty(_e)&&x.hasOwnProperty(_e)&&x[_e]!=null)if(_e==="style"){var te=x[_e];for(H in te)te.hasOwnProperty(H)&&(h||(h={}),h[H]="")}else _e!=="dangerouslySetInnerHTML"&&_e!=="children"&&_e!=="suppressContentEditableWarning"&&_e!=="suppressHydrationWarning"&&_e!=="autoFocus"&&(i.hasOwnProperty(_e)?L||(L=[]):(L=L||[]).push(_e,null));for(_e in g){var se=g[_e];if(te=x?.[_e],g.hasOwnProperty(_e)&&se!==te&&(se!=null||te!=null))if(_e==="style")if(te){for(H in te)!te.hasOwnProperty(H)||se&&se.hasOwnProperty(H)||(h||(h={}),h[H]="");for(H in se)se.hasOwnProperty(H)&&te[H]!==se[H]&&(h||(h={}),h[H]=se[H])}else h||(L||(L=[]),L.push(_e,h)),h=se;else _e==="dangerouslySetInnerHTML"?(se=se?se.__html:void 0,te=te?te.__html:void 0,se!=null&&te!==se&&(L=L||[]).push(_e,se)):_e==="children"?typeof se!="string"&&typeof se!="number"||(L=L||[]).push(_e,""+se):_e!=="suppressContentEditableWarning"&&_e!=="suppressHydrationWarning"&&(i.hasOwnProperty(_e)?(se!=null&&_e==="onScroll"&&on("scroll",o),L||te===se||(L=[])):(L=L||[]).push(_e,se))}h&&(L=L||[]).push("style",h);var _e=L;(s.updateQueue=_e)&&(s.flags|=4)}},qp=function(o,s,h,g){h!==g&&(s.flags|=4)};function gc(o,s){if(!ln)switch(o.tailMode){case"hidden":s=o.tail;for(var h=null;s!==null;)s.alternate!==null&&(h=s),s=s.sibling;h===null?o.tail=null:h.sibling=null;break;case"collapsed":h=o.tail;for(var g=null;h!==null;)h.alternate!==null&&(g=h),h=h.sibling;g===null?s||o.tail===null?o.tail=null:o.tail.sibling=null:g.sibling=null}}function mr(o){var s=o.alternate!==null&&o.alternate.child===o.child,h=0,g=0;if(s)for(var x=o.child;x!==null;)h|=x.lanes|x.childLanes,g|=x.subtreeFlags&14680064,g|=x.flags&14680064,x.return=o,x=x.sibling;else for(x=o.child;x!==null;)h|=x.lanes|x.childLanes,g|=x.subtreeFlags,g|=x.flags,x.return=o,x=x.sibling;return o.subtreeFlags|=g,o.childLanes=h,s}function G_(o,s,h){var g=s.pendingProps;switch(Xu(s),s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return mr(s),null;case 1:return ri(s.type)&&Qf(),mr(s),null;case 3:return g=s.stateNode,qs(),Vt(ti),Vt(Or),ec(),g.pendingContext&&(g.context=g.pendingContext,g.pendingContext=null),(o===null||o.child===null)&&(td(s)?s.flags|=4:o===null||o.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,$i!==null&&(Zp($i),$i=null))),Hp(o,s),mr(s),null;case 5:dd(s);var x=Hs(Qa.current);if(h=s.type,o!==null&&s.stateNode!=null)Ng(o,s,h,g,x),o.ref!==s.ref&&(s.flags|=512,s.flags|=2097152);else{if(!g){if(s.stateNode===null)throw Error(n(166));return mr(s),null}if(o=Hs(io.current),td(s)){g=s.stateNode,h=s.type;var L=s.memoizedProps;switch(g[Ao]=s,g[Ku]=L,o=(s.mode&1)!==0,h){case"dialog":on("cancel",g),on("close",g);break;case"iframe":case"object":case"embed":on("load",g);break;case"video":case"audio":for(x=0;x<Ml.length;x++)on(Ml[x],g);break;case"source":on("error",g);break;case"img":case"image":case"link":on("error",g),on("load",g);break;case"details":on("toggle",g);break;case"input":ye(g,L),on("invalid",g);break;case"select":g._wrapperState={wasMultiple:!!L.multiple},on("invalid",g);break;case"textarea":ct(g,L),on("invalid",g)}pn(h,L),x=null;for(var H in L)if(L.hasOwnProperty(H)){var te=L[H];H==="children"?typeof te=="string"?g.textContent!==te&&(L.suppressHydrationWarning!==!0&&Xf(g.textContent,te,o),x=["children",te]):typeof te=="number"&&g.textContent!==""+te&&(L.suppressHydrationWarning!==!0&&Xf(g.textContent,te,o),x=["children",""+te]):i.hasOwnProperty(H)&&te!=null&&H==="onScroll"&&on("scroll",g)}switch(h){case"input":Re(g),xe(g,L,!0);break;case"textarea":Re(g),yt(g);break;case"select":case"option":break;default:typeof L.onClick=="function"&&(g.onclick=Wu)}g=x,s.updateQueue=g,g!==null&&(s.flags|=4)}else{H=x.nodeType===9?x:x.ownerDocument,o==="http://www.w3.org/1999/xhtml"&&(o=Bt(h)),o==="http://www.w3.org/1999/xhtml"?h==="script"?(o=H.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild)):typeof g.is=="string"?o=H.createElement(h,{is:g.is}):(o=H.createElement(h),h==="select"&&(H=o,g.multiple?H.multiple=!0:g.size&&(H.size=g.size))):o=H.createElementNS(o,h),o[Ao]=s,o[Ku]=g,pr(o,s,!1,!1),s.stateNode=o;e:{switch(H=Qr(h,g),h){case"dialog":on("cancel",o),on("close",o),x=g;break;case"iframe":case"object":case"embed":on("load",o),x=g;break;case"video":case"audio":for(x=0;x<Ml.length;x++)on(Ml[x],o);x=g;break;case"source":on("error",o),x=g;break;case"img":case"image":case"link":on("error",o),on("load",o),x=g;break;case"details":on("toggle",o),x=g;break;case"input":ye(o,g),x=Je(o,g),on("invalid",o);break;case"option":x=g;break;case"select":o._wrapperState={wasMultiple:!!g.multiple},x=F({},g,{value:void 0}),on("invalid",o);break;case"textarea":ct(o,g),x=nt(o,g),on("invalid",o);break;default:x=g}pn(h,x),te=x;for(L in te)if(te.hasOwnProperty(L)){var se=te[L];L==="style"?Mt(o,se):L==="dangerouslySetInnerHTML"?(se=se?se.__html:void 0,se!=null&&Yr(o,se)):L==="children"?typeof se=="string"?(h!=="textarea"||se!=="")&&lr(o,se):typeof se=="number"&&lr(o,""+se):L!=="suppressContentEditableWarning"&&L!=="suppressHydrationWarning"&&L!=="autoFocus"&&(i.hasOwnProperty(L)?se!=null&&L==="onScroll"&&on("scroll",o):se!=null&&T(o,L,se,H))}switch(h){case"input":Re(o),xe(o,g,!1);break;case"textarea":Re(o),yt(o);break;case"option":g.value!=null&&o.setAttribute("value",""+J(g.value));break;case"select":o.multiple=!!g.multiple,L=g.value,L!=null?ze(o,!!g.multiple,L,!1):g.defaultValue!=null&&ze(o,!!g.multiple,g.defaultValue,!0);break;default:typeof x.onClick=="function"&&(o.onclick=Wu)}switch(h){case"button":case"input":case"select":case"textarea":g=!!g.autoFocus;break e;case"img":g=!0;break e;default:g=!1}}g&&(s.flags|=4)}s.ref!==null&&(s.flags|=512,s.flags|=2097152)}return mr(s),null;case 6:if(o&&s.stateNode!=null)qp(o,s,o.memoizedProps,g);else{if(typeof g!="string"&&s.stateNode===null)throw Error(n(166));if(h=Hs(Qa.current),Hs(io.current),td(s)){if(g=s.stateNode,h=s.memoizedProps,g[Ao]=s,(L=g.nodeValue!==h)&&(o=dr,o!==null))switch(o.tag){case 3:Xf(g.nodeValue,h,(o.mode&1)!==0);break;case 5:o.memoizedProps.suppressHydrationWarning!==!0&&Xf(g.nodeValue,h,(o.mode&1)!==0)}L&&(s.flags|=4)}else g=(h.nodeType===9?h:h.ownerDocument).createTextNode(g),g[Ao]=s,s.stateNode=g}return mr(s),null;case 13:if(Vt(gn),g=s.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(ln&&Ar!==null&&(s.mode&1)!==0&&(s.flags&128)===0)_p(),Fs(),s.flags|=98560,L=!1;else if(L=td(s),g!==null&&g.dehydrated!==null){if(o===null){if(!L)throw Error(n(318));if(L=s.memoizedState,L=L!==null?L.dehydrated:null,!L)throw Error(n(317));L[Ao]=s}else Fs(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;mr(s),L=!1}else $i!==null&&(Zp($i),$i=null),L=!0;if(!L)return s.flags&65536?s:null}return(s.flags&128)!==0?(s.lanes=h,s):(g=g!==null,g!==(o!==null&&o.memoizedState!==null)&&g&&(s.child.flags|=8192,(s.mode&1)!==0&&(o===null||(gn.current&1)!==0?Un===0&&(Un=3):tm())),s.updateQueue!==null&&(s.flags|=4),mr(s),null);case 4:return qs(),Hp(o,s),o===null&&Ua(s.stateNode.containerInfo),mr(s),null;case 10:return Qu(s.type._context),mr(s),null;case 17:return ri(s.type)&&Qf(),mr(s),null;case 19:if(Vt(gn),L=s.memoizedState,L===null)return mr(s),null;if(g=(s.flags&128)!==0,H=L.rendering,H===null)if(g)gc(L,!1);else{if(Un!==0||o!==null&&(o.flags&128)!==0)for(o=s.child;o!==null;){if(H=Kl(o),H!==null){for(s.flags|=128,gc(L,!1),g=H.updateQueue,g!==null&&(s.updateQueue=g,s.flags|=4),s.subtreeFlags=0,g=h,h=s.child;h!==null;)L=h,o=g,L.flags&=14680066,H=L.alternate,H===null?(L.childLanes=0,L.lanes=o,L.child=null,L.subtreeFlags=0,L.memoizedProps=null,L.memoizedState=null,L.updateQueue=null,L.dependencies=null,L.stateNode=null):(L.childLanes=H.childLanes,L.lanes=H.lanes,L.child=H.child,L.subtreeFlags=0,L.deletions=null,L.memoizedProps=H.memoizedProps,L.memoizedState=H.memoizedState,L.updateQueue=H.updateQueue,L.type=H.type,o=H.dependencies,L.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),h=h.sibling;return tn(gn,gn.current&1|2),s.child}o=o.sibling}L.tail!==null&&Tt()>Ws&&(s.flags|=128,g=!0,gc(L,!1),s.lanes=4194304)}else{if(!g)if(o=Kl(H),o!==null){if(s.flags|=128,g=!0,h=o.updateQueue,h!==null&&(s.updateQueue=h,s.flags|=4),gc(L,!0),L.tail===null&&L.tailMode==="hidden"&&!H.alternate&&!ln)return mr(s),null}else 2*Tt()-L.renderingStartTime>Ws&&h!==1073741824&&(s.flags|=128,g=!0,gc(L,!1),s.lanes=4194304);L.isBackwards?(H.sibling=s.child,s.child=H):(h=L.last,h!==null?h.sibling=H:s.child=H,L.last=H)}return L.tail!==null?(s=L.tail,L.rendering=s,L.tail=s.sibling,L.renderingStartTime=Tt(),s.sibling=null,h=gn.current,tn(gn,g?h&1|2:h&1),s):(mr(s),null);case 22:case 23:return em(),g=s.memoizedState!==null,o!==null&&o.memoizedState!==null!==g&&(s.flags|=8192),g&&(s.mode&1)!==0?(_i&1073741824)!==0&&(mr(s),s.subtreeFlags&6&&(s.flags|=8192)):mr(s),null;case 24:return null;case 25:return null}throw Error(n(156,s.tag))}function B_(o,s){switch(Xu(s),s.tag){case 1:return ri(s.type)&&Qf(),o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 3:return qs(),Vt(ti),Vt(Or),ec(),o=s.flags,(o&65536)!==0&&(o&128)===0?(s.flags=o&-65537|128,s):null;case 5:return dd(s),null;case 13:if(Vt(gn),o=s.memoizedState,o!==null&&o.dehydrated!==null){if(s.alternate===null)throw Error(n(340));Fs()}return o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 19:return Vt(gn),null;case 4:return qs(),null;case 10:return Qu(s.type._context),null;case 22:case 23:return em(),null;case 24:return null;default:return null}}var Od=!1,cn=!1,Hr=typeof WeakSet=="function"?WeakSet:Set,Ke=null;function tu(o,s){var h=o.ref;if(h!==null)if(typeof h=="function")try{h(null)}catch(g){_n(o,s,g)}else h.current=null}function yc(o,s,h){try{h()}catch(g){_n(o,s,g)}}var Pg=!1;function K_(o,s){if(mp=If,o=Nn(),Xt(o)){if("selectionStart"in o)var h={start:o.selectionStart,end:o.selectionEnd};else e:{h=(h=o.ownerDocument)&&h.defaultView||window;var g=h.getSelection&&h.getSelection();if(g&&g.rangeCount!==0){h=g.anchorNode;var x=g.anchorOffset,L=g.focusNode;g=g.focusOffset;try{h.nodeType,L.nodeType}catch{h=null;break e}var H=0,te=-1,se=-1,_e=0,Pe=0,Ie=o,Ne=null;t:for(;;){for(var We;Ie!==h||x!==0&&Ie.nodeType!==3||(te=H+x),Ie!==L||g!==0&&Ie.nodeType!==3||(se=H+g),Ie.nodeType===3&&(H+=Ie.nodeValue.length),(We=Ie.firstChild)!==null;)Ne=Ie,Ie=We;for(;;){if(Ie===o)break t;if(Ne===h&&++_e===x&&(te=H),Ne===L&&++Pe===g&&(se=H),(We=Ie.nextSibling)!==null)break;Ie=Ne,Ne=Ie.parentNode}Ie=We}h=te===-1||se===-1?null:{start:te,end:se}}else h=null}h=h||{start:0,end:0}}else h=null;for(Vu={focusedElem:o,selectionRange:h},If=!1,Ke=s;Ke!==null;)if(s=Ke,o=s.child,(s.subtreeFlags&1028)!==0&&o!==null)o.return=s,Ke=o;else for(;Ke!==null;){s=Ke;try{var Ye=s.alternate;if((s.flags&1024)!==0)switch(s.tag){case 0:case 11:case 15:break;case 1:if(Ye!==null){var Qe=Ye.memoizedProps,An=Ye.memoizedState,me=s.stateNode,fe=me.getSnapshotBeforeUpdate(s.elementType===s.type?Qe:ji(s.type,Qe),An);me.__reactInternalSnapshotBeforeUpdate=fe}break;case 3:var ve=s.stateNode.containerInfo;ve.nodeType===1?ve.textContent="":ve.nodeType===9&&ve.documentElement&&ve.removeChild(ve.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch($e){_n(s,s.return,$e)}if(o=s.sibling,o!==null){o.return=s.return,Ke=o;break}Ke=s.return}return Ye=Pg,Pg=!1,Ye}function fa(o,s,h){var g=s.updateQueue;if(g=g!==null?g.lastEffect:null,g!==null){var x=g=g.next;do{if((x.tag&o)===o){var L=x.destroy;x.destroy=void 0,L!==void 0&&yc(s,h,L)}x=x.next}while(x!==g)}}function _c(o,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var h=s=s.next;do{if((h.tag&o)===o){var g=h.create;h.destroy=g()}h=h.next}while(h!==s)}}function Ad(o){var s=o.ref;if(s!==null){var h=o.stateNode;switch(o.tag){case 5:o=h;break;default:o=h}typeof s=="function"?s(o):s.current=o}}function Dg(o){var s=o.alternate;s!==null&&(o.alternate=null,Dg(s)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(s=o.stateNode,s!==null&&(delete s[Ao],delete s[Ku],delete s[Ls],delete s[ug],delete s[V])),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}function Lg(o){return o.tag===5||o.tag===3||o.tag===4}function Mg(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||Lg(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function Up(o,s,h){var g=o.tag;if(g===5||g===6)o=o.stateNode,s?h.nodeType===8?h.parentNode.insertBefore(o,s):h.insertBefore(o,s):(h.nodeType===8?(s=h.parentNode,s.insertBefore(o,h)):(s=h,s.appendChild(o)),h=h._reactRootContainer,h!=null||s.onclick!==null||(s.onclick=Wu));else if(g!==4&&(o=o.child,o!==null))for(Up(o,s,h),o=o.sibling;o!==null;)Up(o,s,h),o=o.sibling}function Rd(o,s,h){var g=o.tag;if(g===5||g===6)o=o.stateNode,s?h.insertBefore(o,s):h.appendChild(o);else if(g!==4&&(o=o.child,o!==null))for(Rd(o,s,h),o=o.sibling;o!==null;)Rd(o,s,h),o=o.sibling}var tr=null,lo=!1;function Fo(o,s,h){for(h=h.child;h!==null;)Wp(o,s,h),h=h.sibling}function Wp(o,s,h){if(Ni&&typeof Ni.onCommitFiberUnmount=="function")try{Ni.onCommitFiberUnmount(Ts,h)}catch{}switch(h.tag){case 5:cn||tu(h,s);case 6:var g=tr,x=lo;tr=null,Fo(o,s,h),tr=g,lo=x,tr!==null&&(lo?(o=tr,h=h.stateNode,o.nodeType===8?o.parentNode.removeChild(h):o.removeChild(h)):tr.removeChild(h.stateNode));break;case 18:tr!==null&&(lo?(o=tr,h=h.stateNode,o.nodeType===8?Wa(o.parentNode,h):o.nodeType===1&&Wa(o,h),Kt(o)):Wa(tr,h.stateNode));break;case 4:g=tr,x=lo,tr=h.stateNode.containerInfo,lo=!0,Fo(o,s,h),tr=g,lo=x;break;case 0:case 11:case 14:case 15:if(!cn&&(g=h.updateQueue,g!==null&&(g=g.lastEffect,g!==null))){x=g=g.next;do{var L=x,H=L.destroy;L=L.tag,H!==void 0&&((L&2)!==0||(L&4)!==0)&&yc(h,s,H),x=x.next}while(x!==g)}Fo(o,s,h);break;case 1:if(!cn&&(tu(h,s),g=h.stateNode,typeof g.componentWillUnmount=="function"))try{g.props=h.memoizedProps,g.state=h.memoizedState,g.componentWillUnmount()}catch(te){_n(h,s,te)}Fo(o,s,h);break;case 21:Fo(o,s,h);break;case 22:h.mode&1?(cn=(g=cn)||h.memoizedState!==null,Fo(o,s,h),cn=g):Fo(o,s,h);break;default:Fo(o,s,h)}}function nu(o){var s=o.updateQueue;if(s!==null){o.updateQueue=null;var h=o.stateNode;h===null&&(h=o.stateNode=new Hr),s.forEach(function(g){var x=tw.bind(null,o,g);h.has(g)||(h.add(g),g.then(x,x))})}}function yi(o,s){var h=s.deletions;if(h!==null)for(var g=0;g<h.length;g++){var x=h[g];try{var L=o,H=s,te=H;e:for(;te!==null;){switch(te.tag){case 5:tr=te.stateNode,lo=!1;break e;case 3:tr=te.stateNode.containerInfo,lo=!0;break e;case 4:tr=te.stateNode.containerInfo,lo=!0;break e}te=te.return}if(tr===null)throw Error(n(160));Wp(L,H,x),tr=null,lo=!1;var se=x.alternate;se!==null&&(se.return=null),x.return=null}catch(_e){_n(x,s,_e)}}if(s.subtreeFlags&12854)for(s=s.child;s!==null;)Vp(s,o),s=s.sibling}function Vp(o,s){var h=o.alternate,g=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:if(yi(s,o),uo(o),g&4){try{fa(3,o,o.return),_c(3,o)}catch(Qe){_n(o,o.return,Qe)}try{fa(5,o,o.return)}catch(Qe){_n(o,o.return,Qe)}}break;case 1:yi(s,o),uo(o),g&512&&h!==null&&tu(h,h.return);break;case 5:if(yi(s,o),uo(o),g&512&&h!==null&&tu(h,h.return),o.flags&32){var x=o.stateNode;try{lr(x,"")}catch(Qe){_n(o,o.return,Qe)}}if(g&4&&(x=o.stateNode,x!=null)){var L=o.memoizedProps,H=h!==null?h.memoizedProps:L,te=o.type,se=o.updateQueue;if(o.updateQueue=null,se!==null)try{te==="input"&&L.type==="radio"&&L.name!=null&&Ce(x,L),Qr(te,H);var _e=Qr(te,L);for(H=0;H<se.length;H+=2){var Pe=se[H],Ie=se[H+1];Pe==="style"?Mt(x,Ie):Pe==="dangerouslySetInnerHTML"?Yr(x,Ie):Pe==="children"?lr(x,Ie):T(x,Pe,Ie,_e)}switch(te){case"input":ke(x,L);break;case"textarea":Ge(x,L);break;case"select":var Ne=x._wrapperState.wasMultiple;x._wrapperState.wasMultiple=!!L.multiple;var We=L.value;We!=null?ze(x,!!L.multiple,We,!1):Ne!==!!L.multiple&&(L.defaultValue!=null?ze(x,!!L.multiple,L.defaultValue,!0):ze(x,!!L.multiple,L.multiple?[]:"",!1))}x[Ku]=L}catch(Qe){_n(o,o.return,Qe)}}break;case 6:if(yi(s,o),uo(o),g&4){if(o.stateNode===null)throw Error(n(162));x=o.stateNode,L=o.memoizedProps;try{x.nodeValue=L}catch(Qe){_n(o,o.return,Qe)}}break;case 3:if(yi(s,o),uo(o),g&4&&h!==null&&h.memoizedState.isDehydrated)try{Kt(s.containerInfo)}catch(Qe){_n(o,o.return,Qe)}break;case 4:yi(s,o),uo(o);break;case 13:yi(s,o),uo(o),x=o.child,x.flags&8192&&(L=x.memoizedState!==null,x.stateNode.isHidden=L,!L||x.alternate!==null&&x.alternate.memoizedState!==null||(Kp=Tt())),g&4&&nu(o);break;case 22:if(Pe=h!==null&&h.memoizedState!==null,o.mode&1?(cn=(_e=cn)||Pe,yi(s,o),cn=_e):yi(s,o),uo(o),g&8192){if(_e=o.memoizedState!==null,(o.stateNode.isHidden=_e)&&!Pe&&(o.mode&1)!==0)for(Ke=o,Pe=o.child;Pe!==null;){for(Ie=Ke=Pe;Ke!==null;){switch(Ne=Ke,We=Ne.child,Ne.tag){case 0:case 11:case 14:case 15:fa(4,Ne,Ne.return);break;case 1:tu(Ne,Ne.return);var Ye=Ne.stateNode;if(typeof Ye.componentWillUnmount=="function"){g=Ne,h=Ne.return;try{s=g,Ye.props=s.memoizedProps,Ye.state=s.memoizedState,Ye.componentWillUnmount()}catch(Qe){_n(g,h,Qe)}}break;case 5:tu(Ne,Ne.return);break;case 22:if(Ne.memoizedState!==null){Ja(Ie);continue}}We!==null?(We.return=Ne,Ke=We):Ja(Ie)}Pe=Pe.sibling}e:for(Pe=null,Ie=o;;){if(Ie.tag===5){if(Pe===null){Pe=Ie;try{x=Ie.stateNode,_e?(L=x.style,typeof L.setProperty=="function"?L.setProperty("display","none","important"):L.display="none"):(te=Ie.stateNode,se=Ie.memoizedProps.style,H=se!=null&&se.hasOwnProperty("display")?se.display:null,te.style.display=it("display",H))}catch(Qe){_n(o,o.return,Qe)}}}else if(Ie.tag===6){if(Pe===null)try{Ie.stateNode.nodeValue=_e?"":Ie.memoizedProps}catch(Qe){_n(o,o.return,Qe)}}else if((Ie.tag!==22&&Ie.tag!==23||Ie.memoizedState===null||Ie===o)&&Ie.child!==null){Ie.child.return=Ie,Ie=Ie.child;continue}if(Ie===o)break e;for(;Ie.sibling===null;){if(Ie.return===null||Ie.return===o)break e;Pe===Ie&&(Pe=null),Ie=Ie.return}Pe===Ie&&(Pe=null),Ie.sibling.return=Ie.return,Ie=Ie.sibling}}break;case 19:yi(s,o),uo(o),g&4&&nu(o);break;case 21:break;default:yi(s,o),uo(o)}}function uo(o){var s=o.flags;if(s&2){try{e:{for(var h=o.return;h!==null;){if(Lg(h)){var g=h;break e}h=h.return}throw Error(n(160))}switch(g.tag){case 5:var x=g.stateNode;g.flags&32&&(lr(x,""),g.flags&=-33);var L=Mg(o);Rd(o,L,x);break;case 3:case 4:var H=g.stateNode.containerInfo,te=Mg(o);Up(o,te,H);break;default:throw Error(n(161))}}catch(se){_n(o,o.return,se)}o.flags&=-3}s&4096&&(o.flags&=-4097)}function kd(o,s,h){Ke=o,Gp(o)}function Gp(o,s,h){for(var g=(o.mode&1)!==0;Ke!==null;){var x=Ke,L=x.child;if(x.tag===22&&g){var H=x.memoizedState!==null||Od;if(!H){var te=x.alternate,se=te!==null&&te.memoizedState!==null||cn;te=Od;var _e=cn;if(Od=H,(cn=se)&&!_e)for(Ke=x;Ke!==null;)H=Ke,se=H.child,H.tag===22&&H.memoizedState!==null?Ig(x):se!==null?(se.return=H,Ke=se):Ig(x);for(;L!==null;)Ke=L,Gp(L),L=L.sibling;Ke=x,Od=te,cn=_e}co(o)}else(x.subtreeFlags&8772)!==0&&L!==null?(L.return=x,Ke=L):co(o)}}function co(o){for(;Ke!==null;){var s=Ke;if((s.flags&8772)!==0){var h=s.alternate;try{if((s.flags&8772)!==0)switch(s.tag){case 0:case 11:case 15:cn||_c(5,s);break;case 1:var g=s.stateNode;if(s.flags&4&&!cn)if(h===null)g.componentDidMount();else{var x=s.elementType===s.type?h.memoizedProps:ji(s.type,h.memoizedProps);g.componentDidUpdate(x,h.memoizedState,g.__reactInternalSnapshotBeforeUpdate)}var L=s.updateQueue;L!==null&&vg(s,L,g);break;case 3:var H=s.updateQueue;if(H!==null){if(h=null,s.child!==null)switch(s.child.tag){case 5:h=s.child.stateNode;break;case 1:h=s.child.stateNode}vg(s,H,h)}break;case 5:var te=s.stateNode;if(h===null&&s.flags&4){h=te;var se=s.memoizedProps;switch(s.type){case"button":case"input":case"select":case"textarea":se.autoFocus&&h.focus();break;case"img":se.src&&(h.src=se.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(s.memoizedState===null){var _e=s.alternate;if(_e!==null){var Pe=_e.memoizedState;if(Pe!==null){var Ie=Pe.dehydrated;Ie!==null&&Kt(Ie)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}cn||s.flags&512&&Ad(s)}catch(Ne){_n(s,s.return,Ne)}}if(s===o){Ke=null;break}if(h=s.sibling,h!==null){h.return=s.return,Ke=h;break}Ke=s.return}}function Ja(o){for(;Ke!==null;){var s=Ke;if(s===o){Ke=null;break}var h=s.sibling;if(h!==null){h.return=s.return,Ke=h;break}Ke=s.return}}function Ig(o){for(;Ke!==null;){var s=Ke;try{switch(s.tag){case 0:case 11:case 15:var h=s.return;try{_c(4,s)}catch(se){_n(s,h,se)}break;case 1:var g=s.stateNode;if(typeof g.componentDidMount=="function"){var x=s.return;try{g.componentDidMount()}catch(se){_n(s,x,se)}}var L=s.return;try{Ad(s)}catch(se){_n(s,L,se)}break;case 5:var H=s.return;try{Ad(s)}catch(se){_n(s,H,se)}}}catch(se){_n(s,s.return,se)}if(s===o){Ke=null;break}var te=s.sibling;if(te!==null){te.return=s.return,Ke=te;break}Ke=s.return}}var Fg=Math.ceil,Nd=C.ReactCurrentDispatcher,Bp=C.ReactCurrentOwner,Ui=C.ReactCurrentBatchConfig,$t=0,nr=null,Pn=null,vr=0,_i=0,ru=Ba(0),Un=0,wc=null,es=0,Sc=0,Pd=0,Cc=null,si=null,Kp=0,Ws=1/0,da=null,Dd=!1,Xp=null,ts=null,Ld=!1,ns=null,qr=0,bc=0,Yp=null,Md=-1,Ec=0;function Ur(){return($t&6)!==0?Tt():Md!==-1?Md:Md=Tt()}function rs(o){return(o.mode&1)===0?1:($t&2)!==0&&vr!==0?vr&-vr:Ya.transition!==null?(Ec===0&&(Ec=Yh()),Ec):(o=Ut,o!==0||(o=window.event,o=o===void 0?16:np(o.type)),o)}function fo(o,s,h,g){if(50<bc)throw bc=0,Yp=null,Error(n(185));Os(o,h,g),(($t&2)===0||o!==nr)&&(o===nr&&(($t&2)===0&&(Sc|=h),Un===4&&is(o,vr)),li(o,g),h===1&&$t===0&&(s.mode&1)===0&&(Ws=Tt()+500,Jf&&ii()))}function li(o,s){var h=o.callbackNode;ea(o,s);var g=at(o,o===nr?vr:0);if(g===0)h!==null&&Tf(h),o.callbackNode=null,o.callbackPriority=0;else if(s=g&-g,o.callbackPriority!==s){if(h!=null&&Tf(h),s===1)o.tag===0?U_($g.bind(null,o)):dg($g.bind(null,o)),Bu(function(){($t&6)===0&&ii()}),h=null;else{switch(Pf(g)){case 1:h=Eu;break;case 4:h=Of;break;case 16:h=El;break;case 536870912:h=xu;break;default:h=El}h=Vg(h,Id.bind(null,o))}o.callbackPriority=s,o.callbackNode=h}}function Id(o,s){if(Md=-1,Ec=0,($t&6)!==0)throw Error(n(327));var h=o.callbackNode;if(iu()&&o.callbackNode!==h)return null;var g=at(o,o===nr?vr:0);if(g===0)return null;if((g&30)!==0||(g&o.expiredLanes)!==0||s)s=Fd(o,g);else{s=g;var x=$t;$t|=2;var L=zg();(nr!==o||vr!==s)&&(da=null,Ws=Tt()+500,Gs(o,s));do try{Q_();break}catch(te){jg(o,te)}while(!0);Hn(),Nd.current=L,$t=x,Pn!==null?s=0:(nr=null,vr=0,s=Un)}if(s!==0){if(s===2&&(x=Pi(o),x!==0&&(g=x,s=Qp(o,x))),s===1)throw h=wc,Gs(o,0),is(o,g),li(o,Tt()),h;if(s===6)is(o,g);else{if(x=o.current.alternate,(g&30)===0&&!X_(x)&&(s=Fd(o,g),s===2&&(L=Pi(o),L!==0&&(g=L,s=Qp(o,L))),s===1))throw h=wc,Gs(o,0),is(o,g),li(o,Tt()),h;switch(o.finishedWork=x,o.finishedLanes=g,s){case 0:case 1:throw Error(n(345));case 2:Bs(o,si,da);break;case 3:if(is(o,g),(g&130023424)===g&&(s=Kp+500-Tt(),10<s)){if(at(o,0)!==0)break;if(x=o.suspendedLanes,(x&g)!==g){Ur(),o.pingedLanes|=o.suspendedLanes&x;break}o.timeoutHandle=Gu(Bs.bind(null,o,si,da),s);break}Bs(o,si,da);break;case 4:if(is(o,g),(g&4194240)===g)break;for(s=o.eventTimes,x=-1;0<g;){var H=31-pi(g);L=1<<H,H=s[H],H>x&&(x=H),g&=~L}if(g=x,g=Tt()-g,g=(120>g?120:480>g?480:1080>g?1080:1920>g?1920:3e3>g?3e3:4320>g?4320:1960*Fg(g/1960))-g,10<g){o.timeoutHandle=Gu(Bs.bind(null,o,si,da),g);break}Bs(o,si,da);break;case 5:Bs(o,si,da);break;default:throw Error(n(329))}}}return li(o,Tt()),o.callbackNode===h?Id.bind(null,o):null}function Qp(o,s){var h=Cc;return o.current.memoizedState.isDehydrated&&(Gs(o,s).flags|=256),o=Fd(o,s),o!==2&&(s=si,si=h,s!==null&&Zp(s)),o}function Zp(o){si===null?si=o:si.push.apply(si,o)}function X_(o){for(var s=o;;){if(s.flags&16384){var h=s.updateQueue;if(h!==null&&(h=h.stores,h!==null))for(var g=0;g<h.length;g++){var x=h[g],L=x.getSnapshot;x=x.value;try{if(!Se(L(),x))return!1}catch{return!1}}}if(h=s.child,s.subtreeFlags&16384&&h!==null)h.return=s,s=h;else{if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function is(o,s){for(s&=~Pd,s&=~Sc,o.suspendedLanes|=s,o.pingedLanes&=~s,o=o.expirationTimes;0<s;){var h=31-pi(s),g=1<<h;o[h]=-1,s&=~g}}function $g(o){if(($t&6)!==0)throw Error(n(327));iu();var s=at(o,0);if((s&1)===0)return li(o,Tt()),null;var h=Fd(o,s);if(o.tag!==0&&h===2){var g=Pi(o);g!==0&&(s=g,h=Qp(o,g))}if(h===1)throw h=wc,Gs(o,0),is(o,s),li(o,Tt()),h;if(h===6)throw Error(n(345));return o.finishedWork=o.current.alternate,o.finishedLanes=s,Bs(o,si,da),li(o,Tt()),null}function Jp(o,s){var h=$t;$t|=1;try{return o(s)}finally{$t=h,$t===0&&(Ws=Tt()+500,Jf&&ii())}}function Vs(o){ns!==null&&ns.tag===0&&($t&6)===0&&iu();var s=$t;$t|=1;var h=Ui.transition,g=Ut;try{if(Ui.transition=null,Ut=1,o)return o()}finally{Ut=g,Ui.transition=h,$t=s,($t&6)===0&&ii()}}function em(){_i=ru.current,Vt(ru)}function Gs(o,s){o.finishedWork=null,o.finishedLanes=0;var h=o.timeoutHandle;if(h!==-1&&(o.timeoutHandle=-1,Fl(h)),Pn!==null)for(h=Pn.return;h!==null;){var g=h;switch(Xu(g),g.tag){case 1:g=g.type.childContextTypes,g!=null&&Qf();break;case 3:qs(),Vt(ti),Vt(Or),ec();break;case 5:dd(g);break;case 4:qs();break;case 13:Vt(gn);break;case 19:Vt(gn);break;case 10:Qu(g.type._context);break;case 22:case 23:em()}h=h.return}if(nr=o,Pn=o=ho(o.current,null),vr=_i=s,Un=0,wc=null,Pd=Sc=es=0,si=Cc=null,Po!==null){for(s=0;s<Po.length;s++)if(h=Po[s],g=h.interleaved,g!==null){h.interleaved=null;var x=g.next,L=h.pending;if(L!==null){var H=L.next;L.next=x,g.next=H}h.pending=g}Po=null}return o}function jg(o,s){do{var h=Pn;try{if(Hn(),pd.current=uc,nc){for(var g=yn.memoizedState;g!==null;){var x=g.queue;x!==null&&(x.pending=null),g=g.next}nc=!1}if(gt=0,bn=qn=yn=null,rc=!1,ic=0,Bp.current=null,h===null||h.return===null){Un=1,wc=s,Pn=null;break}e:{var L=o,H=h.return,te=h,se=s;if(s=vr,te.flags|=32768,se!==null&&typeof se=="object"&&typeof se.then=="function"){var _e=se,Pe=te,Ie=Pe.tag;if((Pe.mode&1)===0&&(Ie===0||Ie===11||Ie===15)){var Ne=Pe.alternate;Ne?(Pe.updateQueue=Ne.updateQueue,Pe.memoizedState=Ne.memoizedState,Pe.lanes=Ne.lanes):(Pe.updateQueue=null,Pe.memoizedState=null)}var We=Og(H);if(We!==null){We.flags&=-257,Lp(We,H,te,L,s),We.mode&1&&dc(L,_e,s),s=We,se=_e;var Ye=s.updateQueue;if(Ye===null){var Qe=new Set;Qe.add(se),s.updateQueue=Qe}else Ye.add(se);break e}else{if((s&1)===0){dc(L,_e,s),tm();break e}se=Error(n(426))}}else if(ln&&te.mode&1){var An=Og(H);if(An!==null){(An.flags&65536)===0&&(An.flags|=256),Lp(An,H,te,L,s),$s(Us(se,te));break e}}L=se=Us(se,te),Un!==4&&(Un=2),Cc===null?Cc=[L]:Cc.push(L),L=H;do{switch(L.tag){case 3:L.flags|=65536,s&=-s,L.lanes|=s;var me=fc(L,se,s);Wl(L,me);break e;case 1:te=se;var fe=L.type,ve=L.stateNode;if((L.flags&128)===0&&(typeof fe.getDerivedStateFromError=="function"||ve!==null&&typeof ve.componentDidCatch=="function"&&(ts===null||!ts.has(ve)))){L.flags|=65536,s&=-s,L.lanes|=s;var $e=bd(L,te,s);Wl(L,$e);break e}}L=L.return}while(L!==null)}qg(h)}catch(tt){s=tt,Pn===h&&h!==null&&(Pn=h=h.return);continue}break}while(!0)}function zg(){var o=Nd.current;return Nd.current=uc,o===null?uc:o}function tm(){(Un===0||Un===3||Un===2)&&(Un=4),nr===null||(es&268435455)===0&&(Sc&268435455)===0||is(nr,vr)}function Fd(o,s){var h=$t;$t|=2;var g=zg();(nr!==o||vr!==s)&&(da=null,Gs(o,s));do try{Y_();break}catch(x){jg(o,x)}while(!0);if(Hn(),$t=h,Nd.current=g,Pn!==null)throw Error(n(261));return nr=null,vr=0,Un}function Y_(){for(;Pn!==null;)Hg(Pn)}function Q_(){for(;Pn!==null&&!Kh();)Hg(Pn)}function Hg(o){var s=Wg(o.alternate,o,_i);o.memoizedProps=o.pendingProps,s===null?qg(o):Pn=s,Bp.current=null}function qg(o){var s=o;do{var h=s.alternate;if(o=s.return,(s.flags&32768)===0){if(h=G_(h,s,_i),h!==null){Pn=h;return}}else{if(h=B_(h,s),h!==null){h.flags&=32767,Pn=h;return}if(o!==null)o.flags|=32768,o.subtreeFlags=0,o.deletions=null;else{Un=6,Pn=null;return}}if(s=s.sibling,s!==null){Pn=s;return}Pn=s=o}while(s!==null);Un===0&&(Un=5)}function Bs(o,s,h){var g=Ut,x=Ui.transition;try{Ui.transition=null,Ut=1,Z_(o,s,h,g)}finally{Ui.transition=x,Ut=g}return null}function Z_(o,s,h,g){do iu();while(ns!==null);if(($t&6)!==0)throw Error(n(327));h=o.finishedWork;var x=o.finishedLanes;if(h===null)return null;if(o.finishedWork=null,o.finishedLanes=0,h===o.current)throw Error(n(177));o.callbackNode=null,o.callbackPriority=0;var L=h.lanes|h.childLanes;if(x_(o,L),o===nr&&(Pn=nr=null,vr=0),(h.subtreeFlags&2064)===0&&(h.flags&2064)===0||Ld||(Ld=!0,Vg(El,function(){return iu(),null})),L=(h.flags&15990)!==0,(h.subtreeFlags&15990)!==0||L){L=Ui.transition,Ui.transition=null;var H=Ut;Ut=1;var te=$t;$t|=4,Bp.current=null,K_(o,h),Vp(h,o),fp(Vu),If=!!mp,Vu=mp=null,o.current=h,kd(h),bl(),$t=te,Ut=H,Ui.transition=L}else o.current=h;if(Ld&&(Ld=!1,ns=o,qr=x),L=o.pendingLanes,L===0&&(ts=null),ka(h.stateNode),li(o,Tt()),s!==null)for(g=o.onRecoverableError,h=0;h<s.length;h++)x=s[h],g(x.value,{componentStack:x.stack,digest:x.digest});if(Dd)throw Dd=!1,o=Xp,Xp=null,o;return(qr&1)!==0&&o.tag!==0&&iu(),L=o.pendingLanes,(L&1)!==0?o===Yp?bc++:(bc=0,Yp=o):bc=0,ii(),null}function iu(){if(ns!==null){var o=Pf(qr),s=Ui.transition,h=Ut;try{if(Ui.transition=null,Ut=16>o?16:o,ns===null)var g=!1;else{if(o=ns,ns=null,qr=0,($t&6)!==0)throw Error(n(331));var x=$t;for($t|=4,Ke=o.current;Ke!==null;){var L=Ke,H=L.child;if((Ke.flags&16)!==0){var te=L.deletions;if(te!==null){for(var se=0;se<te.length;se++){var _e=te[se];for(Ke=_e;Ke!==null;){var Pe=Ke;switch(Pe.tag){case 0:case 11:case 15:fa(8,Pe,L)}var Ie=Pe.child;if(Ie!==null)Ie.return=Pe,Ke=Ie;else for(;Ke!==null;){Pe=Ke;var Ne=Pe.sibling,We=Pe.return;if(Dg(Pe),Pe===_e){Ke=null;break}if(Ne!==null){Ne.return=We,Ke=Ne;break}Ke=We}}}var Ye=L.alternate;if(Ye!==null){var Qe=Ye.child;if(Qe!==null){Ye.child=null;do{var An=Qe.sibling;Qe.sibling=null,Qe=An}while(Qe!==null)}}Ke=L}}if((L.subtreeFlags&2064)!==0&&H!==null)H.return=L,Ke=H;else e:for(;Ke!==null;){if(L=Ke,(L.flags&2048)!==0)switch(L.tag){case 0:case 11:case 15:fa(9,L,L.return)}var me=L.sibling;if(me!==null){me.return=L.return,Ke=me;break e}Ke=L.return}}var fe=o.current;for(Ke=fe;Ke!==null;){H=Ke;var ve=H.child;if((H.subtreeFlags&2064)!==0&&ve!==null)ve.return=H,Ke=ve;else e:for(H=fe;Ke!==null;){if(te=Ke,(te.flags&2048)!==0)try{switch(te.tag){case 0:case 11:case 15:_c(9,te)}}catch(tt){_n(te,te.return,tt)}if(te===H){Ke=null;break e}var $e=te.sibling;if($e!==null){$e.return=te.return,Ke=$e;break e}Ke=te.return}}if($t=x,ii(),Ni&&typeof Ni.onPostCommitFiberRoot=="function")try{Ni.onPostCommitFiberRoot(Ts,o)}catch{}g=!0}return g}finally{Ut=h,Ui.transition=s}}return!1}function $d(o,s,h){s=Us(h,s),s=fc(o,s,1),o=Lo(o,s,1),s=Ur(),o!==null&&(Os(o,1,s),li(o,s))}function _n(o,s,h){if(o.tag===3)$d(o,o,h);else for(;s!==null;){if(s.tag===3){$d(s,o,h);break}else if(s.tag===1){var g=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof g.componentDidCatch=="function"&&(ts===null||!ts.has(g))){o=Us(h,o),o=bd(s,o,1),s=Lo(s,o,1),o=Ur(),s!==null&&(Os(s,1,o),li(s,o));break}}s=s.return}}function J_(o,s,h){var g=o.pingCache;g!==null&&g.delete(s),s=Ur(),o.pingedLanes|=o.suspendedLanes&h,nr===o&&(vr&h)===h&&(Un===4||Un===3&&(vr&130023424)===vr&&500>Tt()-Kp?Gs(o,0):Pd|=h),li(o,s)}function Ug(o,s){s===0&&((o.mode&1)===0?s=1:(s=Cn,Cn<<=1,(Cn&130023424)===0&&(Cn=4194304)));var h=Ur();o=vn(o,s),o!==null&&(Os(o,s,h),li(o,h))}function ew(o){var s=o.memoizedState,h=0;s!==null&&(h=s.retryLane),Ug(o,h)}function tw(o,s){var h=0;switch(o.tag){case 13:var g=o.stateNode,x=o.memoizedState;x!==null&&(h=x.retryLane);break;case 19:g=o.stateNode;break;default:throw Error(n(314))}g!==null&&g.delete(s),Ug(o,h)}var Wg;Wg=function(o,s,h){if(o!==null)if(o.memoizedProps!==s.pendingProps||ti.current)zr=!0;else{if((o.lanes&h)===0&&(s.flags&128)===0)return zr=!1,kg(o,s,h);zr=(o.flags&131072)!==0}else zr=!1,ln&&(s.flags&1048576)!==0&&hg(s,ed,s.index);switch(s.lanes=0,s.tag){case 2:var g=s.type;Td(o,s),o=s.pendingProps;var x=ni(s,Or.current);$r(s,h),x=oc(null,s,g,o,x,h);var L=md();return s.flags|=1,typeof x=="object"&&x!==null&&typeof x.render=="function"&&x.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,ri(g)?(L=!0,Zf(s)):L=!1,s.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,Sp(s),x.updater=ad,s.stateNode=x,x._reactInternals=s,bp(s,g,o,h),s=zp(null,s,g,!0,L,h)):(s.tag=0,ln&&L&&yp(s),hr(null,s,x,h),s=s.child),s;case 16:g=s.elementType;e:{switch(Td(o,s),o=s.pendingProps,x=g._init,g=x(g._payload),s.type=g,x=s.tag=rw(g),o=ji(g,o),x){case 0:s=$p(null,s,g,o,h);break e;case 1:s=jp(null,s,g,o,h);break e;case 11:s=Ag(null,s,g,o,h);break e;case 14:s=Mp(null,s,g,ji(g.type,o),h);break e}throw Error(n(306,g,""))}return s;case 0:return g=s.type,x=s.pendingProps,x=s.elementType===g?x:ji(g,x),$p(o,s,g,x,h);case 1:return g=s.type,x=s.pendingProps,x=s.elementType===g?x:ji(g,x),jp(o,s,g,x,h);case 3:e:{if(Rg(s),o===null)throw Error(n(387));g=s.pendingProps,L=s.memoizedState,x=L.element,mg(o,s),Zu(s,g,null,h);var H=s.memoizedState;if(g=H.element,L.isDehydrated)if(L={element:g,isDehydrated:!1,cache:H.cache,pendingSuspenseBoundaries:H.pendingSuspenseBoundaries,transitions:H.transitions},s.updateQueue.baseState=L,s.memoizedState=L,s.flags&256){x=Us(Error(n(423)),s),s=Io(o,s,g,h,x);break e}else if(g!==x){x=Us(Error(n(424)),s),s=Io(o,s,g,h,x);break e}else for(Ar=Va(s.stateNode.containerInfo.firstChild),dr=s,ln=!0,$i=null,h=cd(s,null,g,h),s.child=h;h;)h.flags=h.flags&-3|4096,h=h.sibling;else{if(Fs(),g===x){s=so(o,s,h);break e}hr(o,s,g,h)}s=s.child}return s;case 5:return _g(s),o===null&&aa(s),g=s.type,x=s.pendingProps,L=o!==null?o.memoizedProps:null,H=x.children,Ds(g,x)?H=null:L!==null&&Ds(g,L)&&(s.flags|=32),Fp(o,s),hr(o,s,H,h),s.child;case 6:return o===null&&aa(s),null;case 13:return xd(o,s,h);case 4:return fd(s,s.stateNode.containerInfo),g=s.pendingProps,o===null?s.child=Vl(s,null,g,h):hr(o,s,g,h),s.child;case 11:return g=s.type,x=s.pendingProps,x=s.elementType===g?x:ji(g,x),Ag(o,s,g,x,h);case 7:return hr(o,s,s.pendingProps,h),s.child;case 8:return hr(o,s,s.pendingProps.children,h),s.child;case 12:return hr(o,s,s.pendingProps.children,h),s.child;case 10:e:{if(g=s.type._context,x=s.pendingProps,L=s.memoizedProps,H=x.value,tn(nd,g._currentValue),g._currentValue=H,L!==null)if(Se(L.value,H)){if(L.children===x.children&&!ti.current){s=so(o,s,h);break e}}else for(L=s.child,L!==null&&(L.return=s);L!==null;){var te=L.dependencies;if(te!==null){H=L.child;for(var se=te.firstContext;se!==null;){if(se.context===g){if(L.tag===1){se=la(-1,h&-h),se.tag=2;var _e=L.updateQueue;if(_e!==null){_e=_e.shared;var Pe=_e.pending;Pe===null?se.next=se:(se.next=Pe.next,Pe.next=se),_e.pending=se}}L.lanes|=h,se=L.alternate,se!==null&&(se.lanes|=h),id(L.return,h,s),te.lanes|=h;break}se=se.next}}else if(L.tag===10)H=L.type===s.type?null:L.child;else if(L.tag===18){if(H=L.return,H===null)throw Error(n(341));H.lanes|=h,te=H.alternate,te!==null&&(te.lanes|=h),id(H,h,s),H=L.sibling}else H=L.child;if(H!==null)H.return=L;else for(H=L;H!==null;){if(H===s){H=null;break}if(L=H.sibling,L!==null){L.return=H.return,H=L;break}H=H.return}L=H}hr(o,s,x.children,h),s=s.child}return s;case 9:return x=s.type,g=s.pendingProps.children,$r(s,h),x=ai(x),g=g(x),s.flags|=1,hr(o,s,g,h),s.child;case 14:return g=s.type,x=ji(g,s.pendingProps),x=ji(g.type,x),Mp(o,s,g,x,h);case 15:return Mo(o,s,s.type,s.pendingProps,h);case 17:return g=s.type,x=s.pendingProps,x=s.elementType===g?x:ji(g,x),Td(o,s),s.tag=1,ri(g)?(o=!0,Zf(s)):o=!1,$r(s,h),sd(s,g,x),bp(s,g,x,h),zp(null,s,g,!0,o,h);case 19:return Za(o,s,h);case 22:return Ip(o,s,h)}throw Error(n(156,s.tag))};function Vg(o,s){return xf(o,s)}function nw(o,s,h,g){this.tag=o,this.key=h,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=g,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Wi(o,s,h,g){return new nw(o,s,h,g)}function jd(o){return o=o.prototype,!(!o||!o.isReactComponent)}function rw(o){if(typeof o=="function")return jd(o)?1:0;if(o!=null){if(o=o.$$typeof,o===Z)return 11;if(o===de)return 14}return 2}function ho(o,s){var h=o.alternate;return h===null?(h=Wi(o.tag,s,o.key,o.mode),h.elementType=o.elementType,h.type=o.type,h.stateNode=o.stateNode,h.alternate=o,o.alternate=h):(h.pendingProps=s,h.type=o.type,h.flags=0,h.subtreeFlags=0,h.deletions=null),h.flags=o.flags&14680064,h.childLanes=o.childLanes,h.lanes=o.lanes,h.child=o.child,h.memoizedProps=o.memoizedProps,h.memoizedState=o.memoizedState,h.updateQueue=o.updateQueue,s=o.dependencies,h.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},h.sibling=o.sibling,h.index=o.index,h.ref=o.ref,h}function zd(o,s,h,g,x,L){var H=2;if(g=o,typeof o=="function")jd(o)&&(H=1);else if(typeof o=="string")H=5;else e:switch(o){case I:return Ks(h.children,x,L,s);case $:H=8,x|=8;break;case U:return o=Wi(12,h,s,x|2),o.elementType=U,o.lanes=L,o;case ee:return o=Wi(13,h,s,x),o.elementType=ee,o.lanes=L,o;case ae:return o=Wi(19,h,s,x),o.elementType=ae,o.lanes=L,o;case re:return Hd(h,x,L,s);default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case G:H=10;break e;case Y:H=9;break e;case Z:H=11;break e;case de:H=14;break e;case Q:H=16,g=null;break e}throw Error(n(130,o==null?o:typeof o,""))}return s=Wi(H,h,s,x),s.elementType=o,s.type=g,s.lanes=L,s}function Ks(o,s,h,g){return o=Wi(7,o,g,s),o.lanes=h,o}function Hd(o,s,h,g){return o=Wi(22,o,g,s),o.elementType=re,o.lanes=h,o.stateNode={isHidden:!1},o}function nm(o,s,h){return o=Wi(6,o,null,s),o.lanes=h,o}function rm(o,s,h){return s=Wi(4,o.children!==null?o.children:[],o.key,s),s.lanes=h,s.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},s}function iw(o,s,h,g,x){this.tag=s,this.containerInfo=o,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=kf(0),this.expirationTimes=kf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=kf(0),this.identifierPrefix=g,this.onRecoverableError=x,this.mutableSourceEagerHydrationData=null}function im(o,s,h,g,x,L,H,te,se){return o=new iw(o,s,h,te,se),s===1?(s=1,L===!0&&(s|=8)):s=0,L=Wi(3,null,null,s),o.current=L,L.stateNode=o,L.memoizedState={element:g,isDehydrated:h,cache:null,transitions:null,pendingSuspenseBoundaries:null},Sp(L),o}function ow(o,s,h){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:R,key:g==null?null:""+g,children:o,containerInfo:s,implementation:h}}function Gg(o){if(!o)return Ka;o=o._reactInternals;e:{if(Jr(o)!==o||o.tag!==1)throw Error(n(170));var s=o;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(ri(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(s!==null);throw Error(n(171))}if(o.tag===1){var h=o.type;if(ri(h))return fg(o,h,s)}return s}function Bg(o,s,h,g,x,L,H,te,se){return o=im(h,g,!0,o,x,L,H,te,se),o.context=Gg(null),h=o.current,g=Ur(),x=rs(h),L=la(g,x),L.callback=s??null,Lo(h,L,x),o.current.lanes=x,Os(o,x,g),li(o,g),o}function qd(o,s,h,g){var x=s.current,L=Ur(),H=rs(x);return h=Gg(h),s.context===null?s.context=h:s.pendingContext=h,s=la(L,H),s.payload={element:o},g=g===void 0?null:g,g!==null&&(s.callback=g),o=Lo(x,s,H),o!==null&&(fo(o,x,H,L),od(o,x,H)),H}function Ud(o){if(o=o.current,!o.child)return null;switch(o.child.tag){case 5:return o.child.stateNode;default:return o.child.stateNode}}function Kg(o,s){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var h=o.retryLane;o.retryLane=h!==0&&h<s?h:s}}function om(o,s){Kg(o,s),(o=o.alternate)&&Kg(o,s)}function aw(){return null}var Xg=typeof reportError=="function"?reportError:function(o){console.error(o)};function Wd(o){this._internalRoot=o}xc.prototype.render=Wd.prototype.render=function(o){var s=this._internalRoot;if(s===null)throw Error(n(409));qd(o,s,null,null)},xc.prototype.unmount=Wd.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var s=o.containerInfo;Vs(function(){qd(null,o,null,null)}),s[Li]=null}};function xc(o){this._internalRoot=o}xc.prototype.unstable_scheduleHydration=function(o){if(o){var s=Iv();o={blockedOn:null,target:o,priority:s};for(var h=0;h<La.length&&s!==0&&s<La[h].priority;h++);La.splice(h,0,o),h===0&&$v(o)}};function am(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function Vd(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11&&(o.nodeType!==8||o.nodeValue!==" react-mount-point-unstable "))}function Yg(){}function sw(o,s,h,g,x){if(x){if(typeof g=="function"){var L=g;g=function(){var _e=Ud(H);L.call(_e)}}var H=Bg(s,g,o,0,null,!1,!1,"",Yg);return o._reactRootContainer=H,o[Li]=H.current,Ua(o.nodeType===8?o.parentNode:o),Vs(),H}for(;x=o.lastChild;)o.removeChild(x);if(typeof g=="function"){var te=g;g=function(){var _e=Ud(se);te.call(_e)}}var se=im(o,0,!1,null,null,!1,!1,"",Yg);return o._reactRootContainer=se,o[Li]=se.current,Ua(o.nodeType===8?o.parentNode:o),Vs(function(){qd(s,se,h,g)}),se}function Xs(o,s,h,g,x){var L=h._reactRootContainer;if(L){var H=L;if(typeof x=="function"){var te=x;x=function(){var se=Ud(H);te.call(se)}}qd(s,H,o,x)}else H=sw(h,s,o,x,g);return Ud(H)}As=function(o){switch(o.tag){case 3:var s=o.stateNode;if(s.current.memoizedState.isDehydrated){var h=ur(s.pendingLanes);h!==0&&(Nf(s,h|1),li(s,Tt()),($t&6)===0&&(Ws=Tt()+500,ii()))}break;case 13:Vs(function(){var g=vn(o,1);if(g!==null){var x=Ur();fo(g,o,1,x)}}),om(o,1)}},Df=function(o){if(o.tag===13){var s=vn(o,134217728);if(s!==null){var h=Ur();fo(s,o,134217728,h)}om(o,134217728)}},Qh=function(o){if(o.tag===13){var s=rs(o),h=vn(o,s);if(h!==null){var g=Ur();fo(h,o,s,g)}om(o,s)}},Iv=function(){return Ut},Zh=function(o,s){var h=Ut;try{return Ut=o,s()}finally{Ut=h}},To=function(o,s,h){switch(s){case"input":if(ke(o,h),s=h.name,h.type==="radio"&&s!=null){for(h=o;h.parentNode;)h=h.parentNode;for(h=h.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),s=0;s<h.length;s++){var g=h[s];if(g!==o&&g.form===o.form){var x=Et(g);if(!x)throw Error(n(90));Me(g),ke(g,x)}}}break;case"textarea":Ge(o,h);break;case"select":s=h.value,s!=null&&ze(o,!!h.multiple,s,!1)}},rn=Jp,mn=Vs;var lw={usingClientEntryPoint:!1,Events:[Ga,fr,Et,bs,Cl,Jp]},Tc={findFiberByHostInstance:Mi,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},uw={bundleType:Tc.bundleType,version:Tc.version,rendererPackageName:Tc.rendererPackageName,rendererConfig:Tc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:C.ReactCurrentDispatcher,findHostInstanceByFiber:function(o){return o=xs(o),o===null?null:o.stateNode},findFiberByHostInstance:Tc.findFiberByHostInstance||aw,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 Gd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Gd.isDisabled&&Gd.supportsFiber)try{Ts=Gd.inject(uw),Ni=Gd}catch{}}return Ki.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=lw,Ki.createPortal=function(o,s){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!am(s))throw Error(n(200));return ow(o,s,null,h)},Ki.createRoot=function(o,s){if(!am(o))throw Error(n(299));var h=!1,g="",x=Xg;return s!=null&&(s.unstable_strictMode===!0&&(h=!0),s.identifierPrefix!==void 0&&(g=s.identifierPrefix),s.onRecoverableError!==void 0&&(x=s.onRecoverableError)),s=im(o,1,!1,null,null,h,!1,g,x),o[Li]=s.current,Ua(o.nodeType===8?o.parentNode:o),new Wd(s)},Ki.findDOMNode=function(o){if(o==null)return null;if(o.nodeType===1)return o;var s=o._reactInternals;if(s===void 0)throw typeof o.render=="function"?Error(n(188)):(o=Object.keys(o).join(","),Error(n(268,o)));return o=xs(s),o=o===null?null:o.stateNode,o},Ki.flushSync=function(o){return Vs(o)},Ki.hydrate=function(o,s,h){if(!Vd(s))throw Error(n(200));return Xs(null,o,s,!0,h)},Ki.hydrateRoot=function(o,s,h){if(!am(o))throw Error(n(405));var g=h!=null&&h.hydratedSources||null,x=!1,L="",H=Xg;if(h!=null&&(h.unstable_strictMode===!0&&(x=!0),h.identifierPrefix!==void 0&&(L=h.identifierPrefix),h.onRecoverableError!==void 0&&(H=h.onRecoverableError)),s=Bg(s,null,o,1,h??null,x,!1,L,H),o[Li]=s.current,Ua(o),g)for(o=0;o<g.length;o++)h=g[o],x=h._getVersion,x=x(h._source),s.mutableSourceEagerHydrationData==null?s.mutableSourceEagerHydrationData=[h,x]:s.mutableSourceEagerHydrationData.push(h,x);return new xc(s)},Ki.render=function(o,s,h){if(!Vd(s))throw Error(n(200));return Xs(null,o,s,!1,h)},Ki.unmountComponentAtNode=function(o){if(!Vd(o))throw Error(n(40));return o._reactRootContainer?(Vs(function(){Xs(null,null,o,!1,function(){o._reactRootContainer=null,o[Li]=null})}),!0):!1},Ki.unstable_batchedUpdates=Jp,Ki.unstable_renderSubtreeIntoContainer=function(o,s,h,g){if(!Vd(h))throw Error(n(200));if(o==null||o._reactInternals===void 0)throw Error(n(38));return Xs(o,s,h,!1,g)},Ki.version="18.2.0-next-9e3b772b8-20220608",Ki}var yE;function sA(){if(yE)return Ew.exports;yE=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),Ew.exports=IL(),Ew.exports}var _E;function FL(){if(_E)return e0;_E=1;var t=sA();return e0.createRoot=t.createRoot,e0.hydrateRoot=t.hydrateRoot,e0}var $L=FL();const jL=no($L),zL={},HL=Object.freeze(Object.defineProperty({__proto__:null,default:zL},Symbol.toStringTag,{value:"Module"})),qL=kL(HL);var t0={},wE;function UL(){if(wE)return t0;wE=1;var t={};return t0.test=function(){return typeof t.queueMicrotask=="function"},t0.install=function(e){return function(){t.queueMicrotask(e)}},t0}var n0={},SE;function WL(){if(SE)return n0;SE=1;var t={},e=t.MutationObserver||t.WebKitMutationObserver;return n0.test=function(){return e},n0.install=function(n){var r=0,i=new e(n),a=t.document.createTextNode("");return i.observe(a,{characterData:!0}),function(){a.data=r=++r%2}},n0}var r0={},CE;function VL(){if(CE)return r0;CE=1;var t={};return r0.test=function(){return t.setImmediate?!1:typeof t.MessageChannel<"u"},r0.install=function(e){var n=new t.MessageChannel;return n.port1.onmessage=e,function(){n.port2.postMessage(0)}},r0}var i0={},bE;function GL(){if(bE)return i0;bE=1;var t={};return i0.test=function(){return"document"in t&&"onreadystatechange"in t.document.createElement("script")},i0.install=function(e){return function(){var n=t.document.createElement("script");return n.onreadystatechange=function(){e(),n.onreadystatechange=null,n.parentNode.removeChild(n),n=null},t.document.documentElement.appendChild(n),e}},i0}var o0={},EE;function BL(){return EE||(EE=1,o0.test=function(){return!0},o0.install=function(t){return function(){setTimeout(t,0)}}),o0}var Ow,xE;function KL(){if(xE)return Ow;xE=1;var t=[qL,UL(),WL(),VL(),GL(),BL()],e,n,r=-1,i=[],a=!1;function u(){!e||!n||(e=!1,n.length?i=n.concat(i):r=-1,i.length&&c())}function c(){if(!e){a=!1,e=!0;for(var b=i.length,E=setTimeout(u);b;){for(n=i,i=[];n&&++r<b;)n[r].run();r=-1,b=i.length}n=null,r=-1,e=!1,clearTimeout(E)}}for(var f,p=-1,v=t.length;++p<v;)if(t[p]&&t[p].test&&t[p].test()){f=t[p].install(c);break}function m(b,E){this.fun=b,this.array=E}m.prototype.run=function(){var b=this.fun,E=this.array;switch(E.length){case 0:return b();case 1:return b(E[0]);case 2:return b(E[0],E[1]);case 3:return b(E[0],E[1],E[2]);default:return b.apply(null,E)}},Ow=y;function y(b){var E=new Array(arguments.length-1);if(arguments.length>1)for(var A=1;A<arguments.length;A++)E[A-1]=arguments[A];i.push(new m(b,E)),!a&&!e&&(a=!0,f())}return Ow}var XL=KL();const hs=no(XL);var Aw={exports:{}},TE;function YL(){return TE||(TE=1,function(t,e){(function(n){t.exports=n()})(function(n){var r=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function i(O,k){var T=O[0],C=O[1],w=O[2],R=O[3];T+=(C&w|~C&R)+k[0]-680876936|0,T=(T<<7|T>>>25)+C|0,R+=(T&C|~T&w)+k[1]-389564586|0,R=(R<<12|R>>>20)+T|0,w+=(R&T|~R&C)+k[2]+606105819|0,w=(w<<17|w>>>15)+R|0,C+=(w&R|~w&T)+k[3]-1044525330|0,C=(C<<22|C>>>10)+w|0,T+=(C&w|~C&R)+k[4]-176418897|0,T=(T<<7|T>>>25)+C|0,R+=(T&C|~T&w)+k[5]+1200080426|0,R=(R<<12|R>>>20)+T|0,w+=(R&T|~R&C)+k[6]-1473231341|0,w=(w<<17|w>>>15)+R|0,C+=(w&R|~w&T)+k[7]-45705983|0,C=(C<<22|C>>>10)+w|0,T+=(C&w|~C&R)+k[8]+1770035416|0,T=(T<<7|T>>>25)+C|0,R+=(T&C|~T&w)+k[9]-1958414417|0,R=(R<<12|R>>>20)+T|0,w+=(R&T|~R&C)+k[10]-42063|0,w=(w<<17|w>>>15)+R|0,C+=(w&R|~w&T)+k[11]-1990404162|0,C=(C<<22|C>>>10)+w|0,T+=(C&w|~C&R)+k[12]+1804603682|0,T=(T<<7|T>>>25)+C|0,R+=(T&C|~T&w)+k[13]-40341101|0,R=(R<<12|R>>>20)+T|0,w+=(R&T|~R&C)+k[14]-1502002290|0,w=(w<<17|w>>>15)+R|0,C+=(w&R|~w&T)+k[15]+1236535329|0,C=(C<<22|C>>>10)+w|0,T+=(C&R|w&~R)+k[1]-165796510|0,T=(T<<5|T>>>27)+C|0,R+=(T&w|C&~w)+k[6]-1069501632|0,R=(R<<9|R>>>23)+T|0,w+=(R&C|T&~C)+k[11]+643717713|0,w=(w<<14|w>>>18)+R|0,C+=(w&T|R&~T)+k[0]-373897302|0,C=(C<<20|C>>>12)+w|0,T+=(C&R|w&~R)+k[5]-701558691|0,T=(T<<5|T>>>27)+C|0,R+=(T&w|C&~w)+k[10]+38016083|0,R=(R<<9|R>>>23)+T|0,w+=(R&C|T&~C)+k[15]-660478335|0,w=(w<<14|w>>>18)+R|0,C+=(w&T|R&~T)+k[4]-405537848|0,C=(C<<20|C>>>12)+w|0,T+=(C&R|w&~R)+k[9]+568446438|0,T=(T<<5|T>>>27)+C|0,R+=(T&w|C&~w)+k[14]-1019803690|0,R=(R<<9|R>>>23)+T|0,w+=(R&C|T&~C)+k[3]-187363961|0,w=(w<<14|w>>>18)+R|0,C+=(w&T|R&~T)+k[8]+1163531501|0,C=(C<<20|C>>>12)+w|0,T+=(C&R|w&~R)+k[13]-1444681467|0,T=(T<<5|T>>>27)+C|0,R+=(T&w|C&~w)+k[2]-51403784|0,R=(R<<9|R>>>23)+T|0,w+=(R&C|T&~C)+k[7]+1735328473|0,w=(w<<14|w>>>18)+R|0,C+=(w&T|R&~T)+k[12]-1926607734|0,C=(C<<20|C>>>12)+w|0,T+=(C^w^R)+k[5]-378558|0,T=(T<<4|T>>>28)+C|0,R+=(T^C^w)+k[8]-2022574463|0,R=(R<<11|R>>>21)+T|0,w+=(R^T^C)+k[11]+1839030562|0,w=(w<<16|w>>>16)+R|0,C+=(w^R^T)+k[14]-35309556|0,C=(C<<23|C>>>9)+w|0,T+=(C^w^R)+k[1]-1530992060|0,T=(T<<4|T>>>28)+C|0,R+=(T^C^w)+k[4]+1272893353|0,R=(R<<11|R>>>21)+T|0,w+=(R^T^C)+k[7]-155497632|0,w=(w<<16|w>>>16)+R|0,C+=(w^R^T)+k[10]-1094730640|0,C=(C<<23|C>>>9)+w|0,T+=(C^w^R)+k[13]+681279174|0,T=(T<<4|T>>>28)+C|0,R+=(T^C^w)+k[0]-358537222|0,R=(R<<11|R>>>21)+T|0,w+=(R^T^C)+k[3]-722521979|0,w=(w<<16|w>>>16)+R|0,C+=(w^R^T)+k[6]+76029189|0,C=(C<<23|C>>>9)+w|0,T+=(C^w^R)+k[9]-640364487|0,T=(T<<4|T>>>28)+C|0,R+=(T^C^w)+k[12]-421815835|0,R=(R<<11|R>>>21)+T|0,w+=(R^T^C)+k[15]+530742520|0,w=(w<<16|w>>>16)+R|0,C+=(w^R^T)+k[2]-995338651|0,C=(C<<23|C>>>9)+w|0,T+=(w^(C|~R))+k[0]-198630844|0,T=(T<<6|T>>>26)+C|0,R+=(C^(T|~w))+k[7]+1126891415|0,R=(R<<10|R>>>22)+T|0,w+=(T^(R|~C))+k[14]-1416354905|0,w=(w<<15|w>>>17)+R|0,C+=(R^(w|~T))+k[5]-57434055|0,C=(C<<21|C>>>11)+w|0,T+=(w^(C|~R))+k[12]+1700485571|0,T=(T<<6|T>>>26)+C|0,R+=(C^(T|~w))+k[3]-1894986606|0,R=(R<<10|R>>>22)+T|0,w+=(T^(R|~C))+k[10]-1051523|0,w=(w<<15|w>>>17)+R|0,C+=(R^(w|~T))+k[1]-2054922799|0,C=(C<<21|C>>>11)+w|0,T+=(w^(C|~R))+k[8]+1873313359|0,T=(T<<6|T>>>26)+C|0,R+=(C^(T|~w))+k[15]-30611744|0,R=(R<<10|R>>>22)+T|0,w+=(T^(R|~C))+k[6]-1560198380|0,w=(w<<15|w>>>17)+R|0,C+=(R^(w|~T))+k[13]+1309151649|0,C=(C<<21|C>>>11)+w|0,T+=(w^(C|~R))+k[4]-145523070|0,T=(T<<6|T>>>26)+C|0,R+=(C^(T|~w))+k[11]-1120210379|0,R=(R<<10|R>>>22)+T|0,w+=(T^(R|~C))+k[2]+718787259|0,w=(w<<15|w>>>17)+R|0,C+=(R^(w|~T))+k[9]-343485551|0,C=(C<<21|C>>>11)+w|0,O[0]=T+O[0]|0,O[1]=C+O[1]|0,O[2]=w+O[2]|0,O[3]=R+O[3]|0}function a(O){var k=[],T;for(T=0;T<64;T+=4)k[T>>2]=O.charCodeAt(T)+(O.charCodeAt(T+1)<<8)+(O.charCodeAt(T+2)<<16)+(O.charCodeAt(T+3)<<24);return k}function u(O){var k=[],T;for(T=0;T<64;T+=4)k[T>>2]=O[T]+(O[T+1]<<8)+(O[T+2]<<16)+(O[T+3]<<24);return k}function c(O){var k=O.length,T=[1732584193,-271733879,-1732584194,271733878],C,w,R,I,$,U;for(C=64;C<=k;C+=64)i(T,a(O.substring(C-64,C)));for(O=O.substring(C-64),w=O.length,R=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],C=0;C<w;C+=1)R[C>>2]|=O.charCodeAt(C)<<(C%4<<3);if(R[C>>2]|=128<<(C%4<<3),C>55)for(i(T,R),C=0;C<16;C+=1)R[C]=0;return I=k*8,I=I.toString(16).match(/(.*?)(.{0,8})$/),$=parseInt(I[2],16),U=parseInt(I[1],16)||0,R[14]=$,R[15]=U,i(T,R),T}function f(O){var k=O.length,T=[1732584193,-271733879,-1732584194,271733878],C,w,R,I,$,U;for(C=64;C<=k;C+=64)i(T,u(O.subarray(C-64,C)));for(O=C-64<k?O.subarray(C-64):new Uint8Array(0),w=O.length,R=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],C=0;C<w;C+=1)R[C>>2]|=O[C]<<(C%4<<3);if(R[C>>2]|=128<<(C%4<<3),C>55)for(i(T,R),C=0;C<16;C+=1)R[C]=0;return I=k*8,I=I.toString(16).match(/(.*?)(.{0,8})$/),$=parseInt(I[2],16),U=parseInt(I[1],16)||0,R[14]=$,R[15]=U,i(T,R),T}function p(O){var k="",T;for(T=0;T<4;T+=1)k+=r[O>>T*8+4&15]+r[O>>T*8&15];return k}function v(O){var k;for(k=0;k<O.length;k+=1)O[k]=p(O[k]);return O.join("")}v(c("hello")),typeof ArrayBuffer<"u"&&!ArrayBuffer.prototype.slice&&function(){function O(k,T){return k=k|0||0,k<0?Math.max(k+T,0):Math.min(k,T)}ArrayBuffer.prototype.slice=function(k,T){var C=this.byteLength,w=O(k,C),R=C,I,$,U,G;return T!==n&&(R=O(T,C)),w>R?new ArrayBuffer(0):(I=R-w,$=new ArrayBuffer(I),U=new Uint8Array($),G=new Uint8Array(this,w,I),U.set(G),$)}}();function m(O){return/[\u0080-\uFFFF]/.test(O)&&(O=unescape(encodeURIComponent(O))),O}function y(O,k){var T=O.length,C=new ArrayBuffer(T),w=new Uint8Array(C),R;for(R=0;R<T;R+=1)w[R]=O.charCodeAt(R);return k?w:C}function b(O){return String.fromCharCode.apply(null,new Uint8Array(O))}function E(O,k,T){var C=new Uint8Array(O.byteLength+k.byteLength);return C.set(new Uint8Array(O)),C.set(new Uint8Array(k),O.byteLength),C}function A(O){var k=[],T=O.length,C;for(C=0;C<T-1;C+=2)k.push(parseInt(O.substr(C,2),16));return String.fromCharCode.apply(String,k)}function S(){this.reset()}return S.prototype.append=function(O){return this.appendBinary(m(O)),this},S.prototype.appendBinary=function(O){this._buff+=O,this._length+=O.length;var k=this._buff.length,T;for(T=64;T<=k;T+=64)i(this._hash,a(this._buff.substring(T-64,T)));return this._buff=this._buff.substring(T-64),this},S.prototype.end=function(O){var k=this._buff,T=k.length,C,w=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],R;for(C=0;C<T;C+=1)w[C>>2]|=k.charCodeAt(C)<<(C%4<<3);return this._finish(w,T),R=v(this._hash),O&&(R=A(R)),this.reset(),R},S.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},S.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},S.prototype.setState=function(O){return this._buff=O.buff,this._length=O.length,this._hash=O.hash,this},S.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},S.prototype._finish=function(O,k){var T=k,C,w,R;if(O[T>>2]|=128<<(T%4<<3),T>55)for(i(this._hash,O),T=0;T<16;T+=1)O[T]=0;C=this._length*8,C=C.toString(16).match(/(.*?)(.{0,8})$/),w=parseInt(C[2],16),R=parseInt(C[1],16)||0,O[14]=w,O[15]=R,i(this._hash,O)},S.hash=function(O,k){return S.hashBinary(m(O),k)},S.hashBinary=function(O,k){var T=c(O),C=v(T);return k?A(C):C},S.ArrayBuffer=function(){this.reset()},S.ArrayBuffer.prototype.append=function(O){var k=E(this._buff.buffer,O),T=k.length,C;for(this._length+=O.byteLength,C=64;C<=T;C+=64)i(this._hash,u(k.subarray(C-64,C)));return this._buff=C-64<T?new Uint8Array(k.buffer.slice(C-64)):new Uint8Array(0),this},S.ArrayBuffer.prototype.end=function(O){var k=this._buff,T=k.length,C=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],w,R;for(w=0;w<T;w+=1)C[w>>2]|=k[w]<<(w%4<<3);return this._finish(C,T),R=v(this._hash),O&&(R=A(R)),this.reset(),R},S.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},S.ArrayBuffer.prototype.getState=function(){var O=S.prototype.getState.call(this);return O.buff=b(O.buff),O},S.ArrayBuffer.prototype.setState=function(O){return O.buff=y(O.buff,!0),S.prototype.setState.call(this,O)},S.ArrayBuffer.prototype.destroy=S.prototype.destroy,S.ArrayBuffer.prototype._finish=S.prototype._finish,S.ArrayBuffer.hash=function(O,k){var T=f(new Uint8Array(O)),C=v(T);return k?A(C):C},S})}(Aw)),Aw.exports}var QL=YL();const Q1=no(QL);var a0,ZL=new Uint8Array(16);function JL(){if(!a0&&(a0=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!a0))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return a0(ZL)}const eM=/^(?:[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;function tM(t){return typeof t=="string"&&eM.test(t)}var Wr=[];for(var Rw=0;Rw<256;++Rw)Wr.push((Rw+256).toString(16).substr(1));function nM(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(Wr[t[e+0]]+Wr[t[e+1]]+Wr[t[e+2]]+Wr[t[e+3]]+"-"+Wr[t[e+4]]+Wr[t[e+5]]+"-"+Wr[t[e+6]]+Wr[t[e+7]]+"-"+Wr[t[e+8]]+Wr[t[e+9]]+"-"+Wr[t[e+10]]+Wr[t[e+11]]+Wr[t[e+12]]+Wr[t[e+13]]+Wr[t[e+14]]+Wr[t[e+15]]).toLowerCase();if(!tM(n))throw TypeError("Stringified UUID is invalid");return n}function hC(t,e,n){t=t||{};var r=t.random||(t.rng||JL)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,e){n=n||0;for(var i=0;i<16;++i)e[n+i]=r[i];return e}return nM(r)}var s0={},OE;function rM(){if(OE)return s0;OE=1,s0.stringify=function(n){var r=[];r.push({obj:n});for(var i="",a,u,c,f,p,v,m,y,b,E,A;a=r.pop();)if(u=a.obj,c=a.prefix||"",f=a.val||"",i+=c,f)i+=f;else if(typeof u!="object")i+=typeof u>"u"?null:JSON.stringify(u);else if(u===null)i+="null";else if(Array.isArray(u)){for(r.push({val:"]"}),p=u.length-1;p>=0;p--)v=p===0?"":",",r.push({obj:u[p],prefix:v});r.push({val:"["})}else{m=[];for(y in u)u.hasOwnProperty(y)&&m.push(y);for(r.push({val:"}"}),p=m.length-1;p>=0;p--)b=m[p],E=u[b],A=p>0?",":"",A+=JSON.stringify(b)+":",r.push({obj:E,prefix:A});r.push({val:"{"})}return i};function t(e,n,r){var i=r[r.length-1];e===i.element&&(r.pop(),i=r[r.length-1]);var a=i.element,u=i.index;if(Array.isArray(a))a.push(e);else if(u===n.length-2){var c=n.pop();a[c]=e}else n.push(e)}return s0.parse=function(e){for(var n=[],r=[],i=0,a,u,c,f,p,v,m,y,b;;){if(a=e[i++],a==="}"||a==="]"||typeof a>"u"){if(n.length===1)return n.pop();t(n.pop(),n,r);continue}switch(a){case" ":case" ":case`
|
|
41
|
+
`:case":":case",":break;case"n":i+=3,t(null,n,r);break;case"t":i+=3,t(!0,n,r);break;case"f":i+=4,t(!1,n,r);break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"-":for(u="",i--;;)if(c=e[i++],/[\d\.\-e\+]/.test(c))u+=c;else{i--;break}t(parseFloat(u),n,r);break;case'"':for(f="",p=void 0,v=0;m=e[i++],m!=='"'||p==="\\"&&v%2===1;)f+=m,p=m,p==="\\"?v++:v=0;t(JSON.parse('"'+f+'"'),n,r);break;case"[":y={element:[],index:n.length},n.push(y.element),r.push(y);break;case"{":b={element:{},index:n.length},n.push(b.element),r.push(b);break;default:throw new Error("unexpectedly reached end of input: "+a)}}},s0}var iM=rM();const lA=no(iM);var l0={exports:{}},AE;function oM(){if(AE)return l0.exports;AE=1;var t=typeof Reflect=="object"?Reflect:null,e=t&&typeof t.apply=="function"?t.apply:function(w,R,I){return Function.prototype.apply.call(w,R,I)},n;t&&typeof t.ownKeys=="function"?n=t.ownKeys:Object.getOwnPropertySymbols?n=function(w){return Object.getOwnPropertyNames(w).concat(Object.getOwnPropertySymbols(w))}:n=function(w){return Object.getOwnPropertyNames(w)};function r(C){console&&console.warn&&console.warn(C)}var i=Number.isNaN||function(w){return w!==w};function a(){a.init.call(this)}l0.exports=a,l0.exports.once=O,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var u=10;function c(C){if(typeof C!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof C)}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(C){if(typeof C!="number"||C<0||i(C))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+C+".");u=C}}),a.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(w){if(typeof w!="number"||w<0||i(w))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+w+".");return this._maxListeners=w,this};function f(C){return C._maxListeners===void 0?a.defaultMaxListeners:C._maxListeners}a.prototype.getMaxListeners=function(){return f(this)},a.prototype.emit=function(w){for(var R=[],I=1;I<arguments.length;I++)R.push(arguments[I]);var $=w==="error",U=this._events;if(U!==void 0)$=$&&U.error===void 0;else if(!$)return!1;if($){var G;if(R.length>0&&(G=R[0]),G instanceof Error)throw G;var Y=new Error("Unhandled error."+(G?" ("+G.message+")":""));throw Y.context=G,Y}var Z=U[w];if(Z===void 0)return!1;if(typeof Z=="function")e(Z,this,R);else for(var ee=Z.length,ae=E(Z,ee),I=0;I<ee;++I)e(ae[I],this,R);return!0};function p(C,w,R,I){var $,U,G;if(c(R),U=C._events,U===void 0?(U=C._events=Object.create(null),C._eventsCount=0):(U.newListener!==void 0&&(C.emit("newListener",w,R.listener?R.listener:R),U=C._events),G=U[w]),G===void 0)G=U[w]=R,++C._eventsCount;else if(typeof G=="function"?G=U[w]=I?[R,G]:[G,R]:I?G.unshift(R):G.push(R),$=f(C),$>0&&G.length>$&&!G.warned){G.warned=!0;var Y=new Error("Possible EventEmitter memory leak detected. "+G.length+" "+String(w)+" listeners added. Use emitter.setMaxListeners() to increase limit");Y.name="MaxListenersExceededWarning",Y.emitter=C,Y.type=w,Y.count=G.length,r(Y)}return C}a.prototype.addListener=function(w,R){return p(this,w,R,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(w,R){return p(this,w,R,!0)};function v(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function m(C,w,R){var I={fired:!1,wrapFn:void 0,target:C,type:w,listener:R},$=v.bind(I);return $.listener=R,I.wrapFn=$,$}a.prototype.once=function(w,R){return c(R),this.on(w,m(this,w,R)),this},a.prototype.prependOnceListener=function(w,R){return c(R),this.prependListener(w,m(this,w,R)),this},a.prototype.removeListener=function(w,R){var I,$,U,G,Y;if(c(R),$=this._events,$===void 0)return this;if(I=$[w],I===void 0)return this;if(I===R||I.listener===R)--this._eventsCount===0?this._events=Object.create(null):(delete $[w],$.removeListener&&this.emit("removeListener",w,I.listener||R));else if(typeof I!="function"){for(U=-1,G=I.length-1;G>=0;G--)if(I[G]===R||I[G].listener===R){Y=I[G].listener,U=G;break}if(U<0)return this;U===0?I.shift():A(I,U),I.length===1&&($[w]=I[0]),$.removeListener!==void 0&&this.emit("removeListener",w,Y||R)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(w){var R,I,$;if(I=this._events,I===void 0)return this;if(I.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):I[w]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete I[w]),this;if(arguments.length===0){var U=Object.keys(I),G;for($=0;$<U.length;++$)G=U[$],G!=="removeListener"&&this.removeAllListeners(G);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(R=I[w],typeof R=="function")this.removeListener(w,R);else if(R!==void 0)for($=R.length-1;$>=0;$--)this.removeListener(w,R[$]);return this};function y(C,w,R){var I=C._events;if(I===void 0)return[];var $=I[w];return $===void 0?[]:typeof $=="function"?R?[$.listener||$]:[$]:R?S($):E($,$.length)}a.prototype.listeners=function(w){return y(this,w,!0)},a.prototype.rawListeners=function(w){return y(this,w,!1)},a.listenerCount=function(C,w){return typeof C.listenerCount=="function"?C.listenerCount(w):b.call(C,w)},a.prototype.listenerCount=b;function b(C){var w=this._events;if(w!==void 0){var R=w[C];if(typeof R=="function")return 1;if(R!==void 0)return R.length}return 0}a.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]};function E(C,w){for(var R=new Array(w),I=0;I<w;++I)R[I]=C[I];return R}function A(C,w){for(;w+1<C.length;w++)C[w]=C[w+1];C.pop()}function S(C){for(var w=new Array(C.length),R=0;R<w.length;++R)w[R]=C[R].listener||C[R];return w}function O(C,w){return new Promise(function(R,I){function $(G){C.removeListener(w,U),I(G)}function U(){typeof C.removeListener=="function"&&C.removeListener("error",$),R([].slice.call(arguments))}T(C,w,U,{once:!0}),w!=="error"&&k(C,$,{once:!0})})}function k(C,w,R){typeof C.on=="function"&&T(C,"error",w,R)}function T(C,w,R,I){if(typeof C.on=="function")I.once?C.once(w,R):C.on(w,R);else if(typeof C.addEventListener=="function")C.addEventListener(w,function $(U){I.once&&C.removeEventListener(w,$),R(U)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof C)}return l0.exports}var aM=oM();const sl=no(aM);function Hy(t){return"$"+t}function uA(t){return t.substring(1)}function fl(){this._store={}}fl.prototype.get=function(t){var e=Hy(t);return this._store[e]};fl.prototype.set=function(t,e){var n=Hy(t);return this._store[n]=e,!0};fl.prototype.has=function(t){var e=Hy(t);return e in this._store};fl.prototype.keys=function(){return Object.keys(this._store).map(t=>uA(t))};fl.prototype.delete=function(t){var e=Hy(t),n=e in this._store;return delete this._store[e],n};fl.prototype.forEach=function(t){for(var e=Object.keys(this._store),n=0,r=e.length;n<r;n++){var i=e[n],a=this._store[i];i=uA(i),t(a,i)}};Object.defineProperty(fl.prototype,"size",{get:function(){return Object.keys(this._store).length}});function hv(t){if(this._store=new fl,t&&Array.isArray(t))for(var e=0,n=t.length;e<n;e++)this.add(t[e])}hv.prototype.add=function(t){return this._store.set(t,!0)};hv.prototype.has=function(t){return this._store.has(t)};hv.prototype.forEach=function(t){this._store.forEach(function(e,n){t(n)})};Object.defineProperty(hv.prototype,"size",{get:function(){return this._store.size}});function sM(){if(typeof Symbol>"u"||typeof Map>"u"||typeof Set>"u")return!1;var t=Object.getOwnPropertyDescriptor(Map,Symbol.species);return t&&"get"in t&&Map[Symbol.species]===Map}var ph,Yi;sM()?(ph=Set,Yi=Map):(ph=hv,Yi=fl);function lM(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer||typeof Blob<"u"&&t instanceof Blob}function uM(t){if(typeof t.slice=="function")return t.slice(0);var e=new ArrayBuffer(t.byteLength),n=new Uint8Array(e),r=new Uint8Array(t);return n.set(r),e}function cM(t){if(t instanceof ArrayBuffer)return uM(t);var e=t.size,n=t.type;return typeof t.slice=="function"?t.slice(0,e,n):t.webkitSlice(0,e,n)}var cA=Function.prototype.toString,fM=cA.call(Object);function dM(t){var e=Object.getPrototypeOf(t);if(e===null)return!0;var n=e.constructor;return typeof n=="function"&&n instanceof n&&cA.call(n)==fM}function _r(t){var e,n,r;if(!t||typeof t!="object")return t;if(Array.isArray(t)){for(e=[],n=0,r=t.length;n<r;n++)e[n]=_r(t[n]);return e}if(t instanceof Date&&isFinite(t))return t.toISOString();if(lM(t))return cM(t);if(!dM(t))return t;e={};for(n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var i=_r(t[n]);typeof i<"u"&&(e[n]=i)}return e}function fA(t){var e=!1;return function(...n){if(e)throw new Error("once called more than once");e=!0,t.apply(this,n)}}function dA(t){return function(...e){e=_r(e);var n=this,r=typeof e[e.length-1]=="function"?e.pop():!1,i=new Promise(function(a,u){var c;try{var f=fA(function(p,v){p?u(p):a(v)});e.push(f),c=t.apply(n,e),c&&typeof c.then=="function"&&a(c)}catch(p){u(p)}});return r&&i.then(function(a){r(null,a)},r),i}}function hM(t,e,n){if(t.constructor.listeners("debug").length){for(var r=["api",t.name,e],i=0;i<n.length-1;i++)r.push(n[i]);t.constructor.emit("debug",r);var a=n[n.length-1];n[n.length-1]=function(u,c){var f=["api",t.name,e];f=f.concat(u?["error",u]:["success",c]),t.constructor.emit("debug",f),a(u,c)}}}function Gn(t,e){return dA(function(...n){if(this._closed)return Promise.reject(new Error("database is closed"));if(this._destroyed)return Promise.reject(new Error("database is destroyed"));var r=this;return hM(r,t,n),this.taskqueue.isReady?e.apply(this,n):new Promise(function(i,a){r.taskqueue.addTask(function(u){u?a(u):i(r[t].apply(r,n))})})})}function pv(t,e){for(var n={},r=0,i=e.length;r<i;r++){var a=e[r];a in t&&(n[a]=t[a])}return n}var pM=6;function RE(t){return t}function mM(t){return[{ok:t}]}function hA(t,e,n){var r=e.docs,i=new Yi;r.forEach(function(A){i.has(A.id)?i.get(A.id).push(A):i.set(A.id,[A])});var a=i.size,u=0,c=new Array(a);function f(){var A=[];c.forEach(function(S){S.docs.forEach(function(O){A.push({id:S.id,docs:[O]})})}),n(null,{results:A})}function p(){++u===a&&f()}function v(A,S,O){c[A]={id:S,docs:O},p()}var m=[];i.forEach(function(A,S){m.push(S)});var y=0;function b(){if(!(y>=m.length)){var A=Math.min(y+pM,m.length),S=m.slice(y,A);E(S,y),y+=S.length}}function E(A,S){A.forEach(function(O,k){var T=S+k,C=i.get(O),w=pv(C[0],["atts_since","attachments"]);w.open_revs=C.map(function(I){return I.rev}),w.open_revs=w.open_revs.filter(RE);var R=RE;w.open_revs.length===0&&(delete w.open_revs,R=mM),["revs","attachments","binary","ajax","latest"].forEach(function(I){I in e&&(w[I]=e[I])}),t.get(O,w,function(I,$){var U;I?U=[{error:I}]:U=R($),v(T,O,U),b()})})}b()}var Z1;try{localStorage.setItem("_pouch_check_localstorage",1),Z1=!!localStorage.getItem("_pouch_check_localstorage")}catch{Z1=!1}function ey(){return Z1}class vM extends sl{constructor(){super(),this._listeners={},ey()&&addEventListener("storage",e=>{this.emit(e.key)})}addListener(e,n,r,i){if(this._listeners[n])return;var a=!1,u=this;function c(){if(!u._listeners[n])return;if(a){a="waiting";return}a=!0;var f=pv(i,["style","include_docs","attachments","conflicts","filter","doc_ids","view","since","query_params","binary","return_docs"]);function p(){a=!1}r.changes(f).on("change",function(v){v.seq>i.since&&!i.cancelled&&(i.since=v.seq,i.onChange(v))}).on("complete",function(){a==="waiting"&&hs(c),a=!1}).on("error",p)}this._listeners[n]=c,this.on(e,c)}removeListener(e,n){n in this._listeners&&(super.removeListener(e,this._listeners[n]),delete this._listeners[n])}notifyLocalWindows(e){ey()&&(localStorage[e]=localStorage[e]==="a"?"b":"a")}notify(e){this.emit(e),this.notifyLocalWindows(e)}}function Ko(t){if(typeof console<"u"&&typeof console[t]=="function"){var e=Array.prototype.slice.call(arguments,1);console[t].apply(console,e)}}function gM(t,e){var n=6e5;t=parseInt(t,10)||0,e=parseInt(e,10),e!==e||e<=t?e=(t||1)<<1:e=e+1,e>n&&(t=n>>1,e=n);var r=Math.random(),i=e-t;return~~(i*r+t)}function yM(t){var e=0;return t||(e=2e3),gM(t,e)}function J1(t,e){Ko("info","The above "+t+" is totally normal. "+e)}var eS;typeof Object.assign=="function"?eS=Object.assign:eS=function(t){for(var e=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(r!=null)for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e};var Qc=eS;let Sn=class extends Error{constructor(e,n,r){super(),this.status=e,this.name=n,this.message=r,this.error=!0}toString(){return JSON.stringify({status:this.status,name:this.name,message:this.message,reason:this.reason})}};new Sn(401,"unauthorized","Name or password is incorrect.");var _M=new Sn(400,"bad_request","Missing JSON list of 'docs'"),Ho=new Sn(404,"not_found","missing"),mh=new Sn(409,"conflict","Document update conflict"),pA=new Sn(400,"bad_request","_id field must contain a string"),wM=new Sn(412,"missing_id","_id is required for puts"),SM=new Sn(400,"bad_request","Only reserved document ids may start with underscore.");new Sn(412,"precondition_failed","Database not open");var pC=new Sn(500,"unknown_error","Database encountered an unknown error"),mA=new Sn(500,"badarg","Some query argument is invalid");new Sn(400,"invalid_request","Request was invalid");var CM=new Sn(400,"query_parse_error","Some query parameter is invalid"),kE=new Sn(500,"doc_validation","Bad special document member"),qy=new Sn(400,"bad_request","Something wrong with the request"),kw=new Sn(400,"bad_request","Document must be a JSON object");new Sn(404,"not_found","Database not found");var mC=new Sn(500,"indexed_db_went_bad","unknown");new Sn(500,"web_sql_went_bad","unknown");new Sn(500,"levelDB_went_went_bad","unknown");new Sn(403,"forbidden","Forbidden by design doc validate_doc_update function");var vA=new Sn(400,"bad_request","Invalid rev format");new Sn(412,"file_exists","The database could not be created, the file already exists.");var bM=new Sn(412,"missing_stub","A pre-existing attachment stub wasn't found");new Sn(413,"invalid_url","Provided URL is invalid");function St(t,e){function n(r){for(var i=Object.getOwnPropertyNames(t),a=0,u=i.length;a<u;a++)typeof t[i[a]]!="function"&&(this[i[a]]=t[i[a]]);this.stack===void 0&&(this.stack=new Error().stack),r!==void 0&&(this.reason=r)}return n.prototype=Sn.prototype,new n(e)}function vh(t){if(typeof t!="object"){var e=t;t=pC,t.data=e}return"error"in t&&t.error==="conflict"&&(t.name="conflict",t.status=409),"name"in t||(t.name=t.error||"unknown"),"status"in t||(t.status=500),"message"in t||(t.message=t.message||t.reason),"stack"in t||(t.stack=new Error().stack),t}function EM(t,e,n){try{return!t(e,n)}catch(i){var r="Filter function threw: "+i.toString();return St(qy,r)}}function vC(t){var e={},n=t.filter&&typeof t.filter=="function";return e.query=t.query_params,function(i){i.doc||(i.doc={});var a=n&&EM(t.filter,i.doc,e);if(typeof a=="object")return a;if(a)return!1;if(!t.include_docs)delete i.doc;else if(!t.attachments)for(var u in i.doc._attachments)Object.prototype.hasOwnProperty.call(i.doc._attachments,u)&&(i.doc._attachments[u].stub=!0);return!0}}function ty(t){for(var e=[],n=0,r=t.length;n<r;n++)e=e.concat(t[n]);return e}function gA(t){var e;if(t?typeof t!="string"?e=St(pA):/^_/.test(t)&&!/^_(design|local)/.test(t)&&(e=St(SM)):e=St(wM),e)throw e}function cs(t){return typeof t._remote=="boolean"?t._remote:typeof t.type=="function"?(Ko("warn","db.type() is deprecated and will be removed in a future version of PouchDB"),t.type()==="http"):!1}function xM(t,e){return"listenerCount"in t?t.listenerCount(e):sl.listenerCount(t,e)}function tS(t){if(!t)return null;var e=t.split("/");return e.length===2?e:e.length===1?[t,t]:null}function NE(t){var e=tS(t);return e?e.join("/"):null}var PE=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],DE="queryKey",TM=/(?:^|&)([^&=]*)=?([^&]*)/g,OM=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/;function yA(t){for(var e=OM.exec(t),n={},r=14;r--;){var i=PE[r],a=e[r]||"",u=["user","password"].indexOf(i)!==-1;n[i]=u?decodeURIComponent(a):a}return n[DE]={},n[PE[12]].replace(TM,function(c,f,p){f&&(n[DE][f]=p)}),n}function gC(t,e){var n=[],r=[];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n.push(i),r.push(e[i]));return n.push(t),Function.apply(null,n).apply(null,r)}function ny(t,e,n){return t.get(e).catch(function(r){if(r.status!==404)throw r;return{}}).then(function(r){var i=r._rev,a=n(r);return a?(a._id=e,a._rev=i,AM(t,a,n)):{updated:!1,rev:i}})}function AM(t,e,n){return t.put(e).then(function(r){return{updated:!0,rev:r.rev}},function(r){if(r.status!==409)throw r;return ny(t,e._id,n)})}var yC=function(t){return atob(t)},mv=function(t){return btoa(t)};function _C(t,e){t=t||[],e=e||{};try{return new Blob(t,e)}catch(a){if(a.name!=="TypeError")throw a;for(var n=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,r=new n,i=0;i<t.length;i+=1)r.append(t[i]);return r.getBlob(e.type)}}function RM(t){for(var e=t.length,n=new ArrayBuffer(e),r=new Uint8Array(n),i=0;i<e;i++)r[i]=t.charCodeAt(i);return n}function wC(t,e){return _C([RM(t)],{type:e})}function SC(t,e){return wC(yC(t),e)}function kM(t){for(var e="",n=new Uint8Array(t),r=n.byteLength,i=0;i<r;i++)e+=String.fromCharCode(n[i]);return e}function _A(t,e){var n=new FileReader,r=typeof n.readAsBinaryString=="function";n.onloadend=function(i){var a=i.target.result||"";if(r)return e(a);e(kM(a))},r?n.readAsBinaryString(t):n.readAsArrayBuffer(t)}function wA(t,e){_A(t,function(n){e(n)})}function CC(t,e){wA(t,function(n){e(mv(n))})}function NM(t,e){var n=new FileReader;n.onloadend=function(r){var i=r.target.result||new ArrayBuffer(0);e(i)},n.readAsArrayBuffer(t)}var PM=self.setImmediate||self.setTimeout,DM=32768;function LM(t){return mv(t)}function MM(t,e,n){return t.webkitSlice?t.webkitSlice(e,n):t.slice(e,n)}function IM(t,e,n,r,i){(n>0||r<e.size)&&(e=MM(e,n,r)),NM(e,function(a){t.append(a),i()})}function FM(t,e,n,r,i){(n>0||r<e.length)&&(e=e.substring(n,r)),t.appendBinary(e),i()}function bC(t,e){var n=typeof t=="string",r=n?t.length:t.size,i=Math.min(DM,r),a=Math.ceil(r/i),u=0,c=n?new Q1:new Q1.ArrayBuffer,f=n?FM:IM;function p(){PM(m)}function v(){var y=c.end(!0),b=LM(y);e(b),c.destroy()}function m(){var y=u*i,b=y+i;u++,u<a?f(c,t,y,b,p):f(c,t,y,b,v)}m()}function SA(t){return Q1.hash(t)}function CA(t,e){if(!e)return hC().replace(/-/g,"").toLowerCase();var n=Qc({},t);return delete n._rev_tree,SA(JSON.stringify(n))}var Uy=hC;function Zc(t){for(var e,n,r,i=t.rev_tree.slice(),a;a=i.pop();){var u=a.ids,c=u[2],f=a.pos;if(c.length){for(var p=0,v=c.length;p<v;p++)i.push({pos:f+1,ids:c[p]});continue}var m=!!u[1].deleted,y=u[0];(!e||(r!==m?r:n!==f?n<f:e<y))&&(e=y,n=f,r=m)}return n+"-"+e}function Jc(t,e){for(var n=t.slice(),r;r=n.pop();)for(var i=r.pos,a=r.ids,u=a[2],c=e(u.length===0,i,a[0],r.ctx,a[1]),f=0,p=u.length;f<p;f++)n.push({pos:i+1,ids:u[f],ctx:c})}function $M(t,e){return t.pos-e.pos}function EC(t){var e=[];Jc(t,function(i,a,u,c,f){i&&e.push({rev:a+"-"+u,pos:a,opts:f})}),e.sort($M).reverse();for(var n=0,r=e.length;n<r;n++)delete e[n].pos;return e}function xC(t){for(var e=Zc(t),n=EC(t.rev_tree),r=[],i=0,a=n.length;i<a;i++){var u=n[i];u.rev!==e&&!u.opts.deleted&&r.push(u.rev)}return r}function jM(t){var e=[];return Jc(t.rev_tree,function(n,r,i,a,u){u.status==="available"&&!n&&(e.push(r+"-"+i),u.status="missing")}),e}function zM(t,e){let n=[];const r=t.slice();let i;for(;i=r.pop();){const{pos:a,ids:u}=i,c=`${a}-${u[0]}`,f=u[2];if(n.push(c),c===e){if(f.length!==0)throw new Error("The requested revision is not a leaf");return n.reverse()}(f.length===0||f.length>1)&&(n=[]);for(let p=0,v=f.length;p<v;p++)r.push({pos:a+1,ids:f[p]})}if(n.length===0)throw new Error("The requested revision does not exist");return n.reverse()}function bA(t){for(var e=[],n=t.slice(),r;r=n.pop();){var i=r.pos,a=r.ids,u=a[0],c=a[1],f=a[2],p=f.length===0,v=r.history?r.history.slice():[];v.push({id:u,opts:c}),p&&e.push({pos:i+1-v.length,ids:v});for(var m=0,y=f.length;m<y;m++)n.push({pos:i+1,ids:f[m],history:v})}return e.reverse()}function HM(t,e){return t.pos-e.pos}function qM(t,e,n){for(var r=0,i=t.length,a;r<i;)a=r+i>>>1,n(t[a],e)<0?r=a+1:i=a;return r}function UM(t,e,n){var r=qM(t,e,n);t.splice(r,0,e)}function LE(t,e){for(var n,r,i=e,a=t.length;i<a;i++){var u=t[i],c=[u.id,u.opts,[]];r?(r[2].push(c),r=c):n=r=c}return n}function WM(t,e){return t[0]<e[0]?-1:1}function ME(t,e){for(var n=[{tree1:t,tree2:e}],r=!1;n.length>0;){var i=n.pop(),a=i.tree1,u=i.tree2;(a[1].status||u[1].status)&&(a[1].status=a[1].status==="available"||u[1].status==="available"?"available":"missing");for(var c=0;c<u[2].length;c++){if(!a[2][0]){r="new_leaf",a[2][0]=u[2][c];continue}for(var f=!1,p=0;p<a[2].length;p++)a[2][p][0]===u[2][c][0]&&(n.push({tree1:a[2][p],tree2:u[2][c]}),f=!0);f||(r="new_branch",UM(a[2],u[2][c],WM))}}return{conflicts:r,tree:t}}function EA(t,e,n){var r=[],i=!1,a=!1,u;if(!t.length)return{tree:[e],conflicts:"new_leaf"};for(var c=0,f=t.length;c<f;c++){var p=t[c];if(p.pos===e.pos&&p.ids[0]===e.ids[0])u=ME(p.ids,e.ids),r.push({pos:p.pos,ids:u.tree}),i=i||u.conflicts,a=!0;else if(n!==!0){var v=p.pos<e.pos?p:e,m=p.pos<e.pos?e:p,y=m.pos-v.pos,b=[],E=[];for(E.push({ids:v.ids,diff:y,parent:null,parentIdx:null});E.length>0;){var A=E.pop();if(A.diff===0){A.ids[0]===m.ids[0]&&b.push(A);continue}for(var S=A.ids[2],O=0,k=S.length;O<k;O++)E.push({ids:S[O],diff:A.diff-1,parent:A.ids,parentIdx:O})}var T=b[0];T?(u=ME(T.ids,m.ids),T.parent[2][T.parentIdx]=u.tree,r.push({pos:v.pos,ids:v.ids}),i=i||u.conflicts,a=!0):r.push(p)}else r.push(p)}return a||r.push(e),r.sort(HM),{tree:r,conflicts:i||"internal_node"}}function VM(t,e){for(var n=bA(t),r,i,a=0,u=n.length;a<u;a++){var c=n[a],f=c.ids,p;if(f.length>e){r||(r={});var v=f.length-e;p={pos:c.pos+v,ids:LE(f,v)};for(var m=0;m<v;m++){var y=c.pos+m+"-"+f[m].id;r[y]=!0}}else p={pos:c.pos,ids:LE(f,0)};i?i=EA(i,p,!0).tree:i=[p]}return r&&Jc(i,function(b,E,A){delete r[E+"-"+A]}),{tree:i,revs:r?Object.keys(r):[]}}function xA(t,e,n){var r=EA(t,e),i=VM(r.tree,n);return{tree:i.tree,stemmedRevs:i.revs,conflicts:r.conflicts}}function GM(t,e){for(var n=t.slice(),r=e.split("-"),i=parseInt(r[0],10),a=r[1],u;u=n.pop();){if(u.pos===i&&u.ids[0]===a)return!0;for(var c=u.ids[2],f=0,p=c.length;f<p;f++)n.push({pos:u.pos+1,ids:c[f]})}return!1}function BM(t){return t.ids}function ol(t,e){e||(e=Zc(t));for(var n=e.substring(e.indexOf("-")+1),r=t.rev_tree.map(BM),i;i=r.pop();){if(i[0]===n)return!!i[1].deleted;r=r.concat(i[2])}}function Vc(t){return/^_local/.test(t)}function KM(t,e){for(var n=e.rev_tree.slice(),r;r=n.pop();){var i=r.pos,a=r.ids,u=a[0],c=a[1],f=a[2],p=f.length===0,v=r.history?r.history.slice():[];if(v.push({id:u,pos:i,opts:c}),p)for(var m=0,y=v.length;m<y;m++){var b=v[m],E=b.pos+"-"+b.id;if(E===t)return i+"-"+u}for(var A=0,S=f.length;A<S;A++)n.push({pos:i+1,ids:f[A],history:v})}throw new Error("Unable to resolve latest revision for id "+e.id+", rev "+t)}function XM(t,e,n,r){try{t.emit("change",e,n,r)}catch(i){Ko("error",'Error in .on("change", function):',i)}}function YM(t,e,n){var r=[{rev:t._rev}];n.style==="all_docs"&&(r=EC(e.rev_tree).map(function(a){return{rev:a.rev}}));var i={id:e.id,changes:r,doc:t};return ol(e,t._rev)&&(i.deleted=!0),n.conflicts&&(i.doc._conflicts=xC(e),i.doc._conflicts.length||delete i.doc._conflicts),i}class QM extends sl{constructor(e,n,r){super(),this.db=e,n=n?_r(n):{};var i=n.complete=fA((c,f)=>{c?xM(this,"error")>0&&this.emit("error",c):this.emit("complete",f),this.removeAllListeners(),e.removeListener("destroyed",a)});r&&(this.on("complete",function(c){r(null,c)}),this.on("error",r));const a=()=>{this.cancel()};e.once("destroyed",a),n.onChange=(c,f,p)=>{this.isCancelled||XM(this,c,f,p)};var u=new Promise(function(c,f){n.complete=function(p,v){p?f(p):c(v)}});this.once("cancel",function(){e.removeListener("destroyed",a),n.complete(null,{status:"cancelled"})}),this.then=u.then.bind(u),this.catch=u.catch.bind(u),this.then(function(c){i(null,c)},i),e.taskqueue.isReady?this.validateChanges(n):e.taskqueue.addTask(c=>{c?n.complete(c):this.isCancelled?this.emit("cancel"):this.validateChanges(n)})}cancel(){this.isCancelled=!0,this.db.taskqueue.isReady&&this.emit("cancel")}validateChanges(e){var n=e.complete;Ct._changesFilterPlugin?Ct._changesFilterPlugin.validate(e,r=>{if(r)return n(r);this.doChanges(e)}):this.doChanges(e)}doChanges(e){var n=e.complete;if(e=_r(e),"live"in e&&!("continuous"in e)&&(e.continuous=e.live),e.processChange=YM,e.since==="latest"&&(e.since="now"),e.since||(e.since=0),e.since==="now"){this.db.info().then(i=>{if(this.isCancelled){n(null,{status:"cancelled"});return}e.since=i.update_seq,this.doChanges(e)},n);return}if(Ct._changesFilterPlugin){if(Ct._changesFilterPlugin.normalize(e),Ct._changesFilterPlugin.shouldFilter(this,e))return Ct._changesFilterPlugin.filter(this,e)}else["doc_ids","filter","selector","view"].forEach(function(i){i in e&&Ko("warn",'The "'+i+'" option was passed in to changes/replicate, but pouchdb-changes-filter plugin is not installed, so it was ignored. Please install the plugin to enable filtering.')});"descending"in e||(e.descending=!1),e.limit=e.limit===0?1:e.limit,e.complete=n;var r=this.db._changes(e);if(r&&typeof r.cancel=="function"){const i=this.cancel;this.cancel=(...a)=>{r.cancel(),i.apply(this,a)}}}}function IE(t,e){return t<e?-1:t>e?1:0}function Nw(t,e){return function(n,r){n||r[0]&&r[0].error?(n=n||r[0],n.docId=e,t(n)):t(null,r.length?r[0]:r)}}function ZM(t){for(var e=0;e<t.length;e++){var n=t[e];if(n._deleted)delete n._attachments;else if(n._attachments)for(var r=Object.keys(n._attachments),i=0;i<r.length;i++){var a=r[i];n._attachments[a]=pv(n._attachments[a],["data","digest","content_type","length","revpos","stub"])}}}function JM(t,e){var n=IE(t._id,e._id);if(n!==0)return n;var r=t._revisions?t._revisions.start:0,i=e._revisions?e._revisions.start:0;return IE(r,i)}function e4(t){var e={},n=[];return Jc(t,function(r,i,a,u){var c=i+"-"+a;return r&&(e[c]=0),u!==void 0&&n.push({from:u,to:c}),c}),n.reverse(),n.forEach(function(r){e[r.from]===void 0?e[r.from]=1+e[r.to]:e[r.from]=Math.min(e[r.from],1+e[r.to])}),e}function t4(t){var e="limit"in t?t.keys.slice(t.skip,t.limit+t.skip):t.skip>0?t.keys.slice(t.skip):t.keys;t.keys=e,t.skip=0,delete t.limit,t.descending&&(e.reverse(),t.descending=!1)}function TA(t){var e=t._compactionQueue[0],n=e.opts,r=e.callback;t.get("_local/compaction").catch(function(){return!1}).then(function(i){i&&i.last_seq&&(n.last_seq=i.last_seq),t._compact(n,function(a,u){a?r(a):r(null,u),hs(function(){t._compactionQueue.shift(),t._compactionQueue.length&&TA(t)})})})}function n4(t,e,n){return t.get("_local/purges").then(function(r){const i=r.purgeSeq+1;return r.purges.push({docId:e,rev:n,purgeSeq:i}),r.purges.length>self.purged_infos_limit&&r.purges.splice(0,r.purges.length-self.purged_infos_limit),r.purgeSeq=i,r}).catch(function(r){if(r.status!==404)throw r;return{_id:"_local/purges",purges:[{docId:e,rev:n,purgeSeq:0}],purgeSeq:0}}).then(function(r){return t.put(r)})}function r4(t){return t.charAt(0)==="_"?t+" is not a valid attachment name, attachment names cannot start with '_'":!1}class OA extends sl{_setup(){this.post=Gn("post",function(e,n,r){if(typeof n=="function"&&(r=n,n={}),typeof e!="object"||Array.isArray(e))return r(St(kw));this.bulkDocs({docs:[e]},n,Nw(r,e._id))}).bind(this),this.put=Gn("put",function(e,n,r){if(typeof n=="function"&&(r=n,n={}),typeof e!="object"||Array.isArray(e))return r(St(kw));if(gA(e._id),Vc(e._id)&&typeof this._putLocal=="function")return e._deleted?this._removeLocal(e,r):this._putLocal(e,r);const i=u=>{typeof this._put=="function"&&n.new_edits!==!1?this._put(e,n,u):this.bulkDocs({docs:[e]},n,Nw(u,e._id))};n.force&&e._rev?(a(),i(function(u){var c=u?null:{ok:!0,id:e._id,rev:e._rev};r(u,c)})):i(r);function a(){var u=e._rev.split("-"),c=u[1],f=parseInt(u[0],10),p=f+1,v=CA();e._revisions={start:p,ids:[v,c]},e._rev=p+"-"+v,n.new_edits=!1}}).bind(this),this.putAttachment=Gn("putAttachment",function(e,n,r,i,a){var u=this;typeof a=="function"&&(a=i,i=r,r=null),typeof a>"u"&&(a=i,i=r,r=null),a||Ko("warn","Attachment",n,"on document",e,"is missing content_type");function c(f){var p="_rev"in f?parseInt(f._rev,10):0;return f._attachments=f._attachments||{},f._attachments[n]={content_type:a,data:i,revpos:++p},u.put(f)}return u.get(e).then(function(f){if(f._rev!==r)throw St(mh);return c(f)},function(f){if(f.reason===Ho.message)return c({_id:e});throw f})}).bind(this),this.removeAttachment=Gn("removeAttachment",function(e,n,r,i){this.get(e,(a,u)=>{if(a){i(a);return}if(u._rev!==r){i(St(mh));return}if(!u._attachments)return i();delete u._attachments[n],Object.keys(u._attachments).length===0&&delete u._attachments,this.put(u,i)})}).bind(this),this.remove=Gn("remove",function(e,n,r,i){var a;typeof n=="string"?(a={_id:e,_rev:n},typeof r=="function"&&(i=r,r={})):(a=e,typeof n=="function"?(i=n,r={}):(i=r,r=n)),r=r||{},r.was_delete=!0;var u={_id:a._id,_rev:a._rev||r.rev};if(u._deleted=!0,Vc(u._id)&&typeof this._removeLocal=="function")return this._removeLocal(a,i);this.bulkDocs({docs:[u]},r,Nw(i,u._id))}).bind(this),this.revsDiff=Gn("revsDiff",function(e,n,r){typeof n=="function"&&(r=n,n={});var i=Object.keys(e);if(!i.length)return r(null,{});var a=0,u=new Yi;function c(p,v){u.has(p)||u.set(p,{missing:[]}),u.get(p).missing.push(v)}function f(p,v){var m=e[p].slice(0);Jc(v,function(y,b,E,A,S){var O=b+"-"+E,k=m.indexOf(O);k!==-1&&(m.splice(k,1),S.status!=="available"&&c(p,O))}),m.forEach(function(y){c(p,y)})}i.map(function(p){this._getRevisionTree(p,function(v,m){if(v&&v.status===404&&v.message==="missing")u.set(p,{missing:e[p]});else{if(v)return r(v);f(p,m)}if(++a===i.length){var y={};return u.forEach(function(b,E){y[E]=b}),r(null,y)}})},this)}).bind(this),this.bulkGet=Gn("bulkGet",function(e,n){hA(this,e,n)}).bind(this),this.compactDocument=Gn("compactDocument",function(e,n,r){this._getRevisionTree(e,(i,a)=>{if(i)return r(i);var u=e4(a),c=[],f=[];Object.keys(u).forEach(function(p){u[p]>n&&c.push(p)}),Jc(a,function(p,v,m,y,b){var E=v+"-"+m;b.status==="available"&&c.indexOf(E)!==-1&&f.push(E)}),this._doCompaction(e,f,r)})}).bind(this),this.compact=Gn("compact",function(e,n){typeof e=="function"&&(n=e,e={}),e=e||{},this._compactionQueue=this._compactionQueue||[],this._compactionQueue.push({opts:e,callback:n}),this._compactionQueue.length===1&&TA(this)}).bind(this),this.get=Gn("get",function(e,n,r){if(typeof n=="function"&&(r=n,n={}),typeof e!="string")return r(St(pA));if(Vc(e)&&typeof this._getLocal=="function")return this._getLocal(e,r);var i=[];const a=()=>{var f=[],p=i.length;if(!p)return r(null,f);i.forEach(v=>{this.get(e,{rev:v,revs:n.revs,latest:n.latest,attachments:n.attachments,binary:n.binary},function(m,y){if(m)f.push({missing:v});else{for(var b,E=0,A=f.length;E<A;E++)if(f[E].ok&&f[E].ok._rev===y._rev){b=!0;break}b||f.push({ok:y})}p--,p||r(null,f)})})};if(n.open_revs){if(n.open_revs==="all")this._getRevisionTree(e,function(f,p){if(f)return r(f);i=EC(p).map(function(v){return v.rev}),a()});else if(Array.isArray(n.open_revs)){i=n.open_revs;for(var u=0;u<i.length;u++){var c=i[u];if(!(typeof c=="string"&&/^\d+-/.test(c)))return r(St(vA))}a()}else return r(St(pC,"function_clause"));return}return this._get(e,n,(f,p)=>{if(f)return f.docId=e,r(f);var v=p.doc,m=p.metadata,y=p.ctx;if(n.conflicts){var b=xC(m);b.length&&(v._conflicts=b)}if(ol(m,v._rev)&&(v._deleted=!0),n.revs||n.revs_info){for(var E=v._rev.split("-"),A=parseInt(E[0],10),S=E[1],O=bA(m.rev_tree),k=null,T=0;T<O.length;T++){var C=O[T],w=C.ids.map(function(ee){return ee.id}).indexOf(S),R=w===A-1;(R||!k&&w!==-1)&&(k=C)}if(!k)return f=new Error("invalid rev tree"),f.docId=e,r(f);var I=k.ids.map(function(ee){return ee.id}).indexOf(v._rev.split("-")[1])+1,$=k.ids.length-I;if(k.ids.splice(I,$),k.ids.reverse(),n.revs&&(v._revisions={start:k.pos+k.ids.length-1,ids:k.ids.map(function(ee){return ee.id})}),n.revs_info){var U=k.pos+k.ids.length;v._revs_info=k.ids.map(function(ee){return U--,{rev:U+"-"+ee.id,status:ee.opts.status}})}}if(n.attachments&&v._attachments){var G=v._attachments,Y=Object.keys(G).length;if(Y===0)return r(null,v);Object.keys(G).forEach(ee=>{this._getAttachment(v._id,ee,G[ee],{rev:v._rev,binary:n.binary,ctx:y},function(ae,de){var Q=v._attachments[ee];Q.data=de,delete Q.stub,delete Q.length,--Y||r(null,v)})})}else{if(v._attachments)for(var Z in v._attachments)Object.prototype.hasOwnProperty.call(v._attachments,Z)&&(v._attachments[Z].stub=!0);r(null,v)}})}).bind(this),this.getAttachment=Gn("getAttachment",function(e,n,r,i){r instanceof Function&&(i=r,r={}),this._get(e,r,(a,u)=>{if(a)return i(a);if(u.doc._attachments&&u.doc._attachments[n])r.ctx=u.ctx,r.binary=!0,this._getAttachment(e,n,u.doc._attachments[n],r,i);else return i(St(Ho))})}).bind(this),this.allDocs=Gn("allDocs",function(e,n){if(typeof e=="function"&&(n=e,e={}),e.skip=typeof e.skip<"u"?e.skip:0,e.start_key&&(e.startkey=e.start_key),e.end_key&&(e.endkey=e.end_key),"keys"in e){if(!Array.isArray(e.keys))return n(new TypeError("options.keys must be an array"));var r=["startkey","endkey","key"].filter(function(i){return i in e})[0];if(r){n(St(CM,"Query parameter `"+r+"` is not compatible with multi-get"));return}if(!cs(this)&&(t4(e),e.keys.length===0))return this._allDocs({limit:0},n)}return this._allDocs(e,n)}).bind(this),this.close=Gn("close",function(e){return this._closed=!0,this.emit("closed"),this._close(e)}).bind(this),this.info=Gn("info",function(e){this._info((n,r)=>{if(n)return e(n);r.db_name=r.db_name||this.name,r.auto_compaction=!!(this.auto_compaction&&!cs(this)),r.adapter=this.adapter,e(null,r)})}).bind(this),this.id=Gn("id",function(e){return this._id(e)}).bind(this),this.bulkDocs=Gn("bulkDocs",function(e,n,r){if(typeof n=="function"&&(r=n,n={}),n=n||{},Array.isArray(e)&&(e={docs:e}),!e||!e.docs||!Array.isArray(e.docs))return r(St(_M));for(var i=0;i<e.docs.length;++i)if(typeof e.docs[i]!="object"||Array.isArray(e.docs[i]))return r(St(kw));var a;if(e.docs.forEach(function(f){f._attachments&&Object.keys(f._attachments).forEach(function(p){a=a||r4(p),f._attachments[p].content_type||Ko("warn","Attachment",p,"on document",f._id,"is missing content_type")})}),a)return r(St(qy,a));"new_edits"in n||("new_edits"in e?n.new_edits=e.new_edits:n.new_edits=!0);var u=this;!n.new_edits&&!cs(u)&&e.docs.sort(JM),ZM(e.docs);var c=e.docs.map(function(f){return f._id});this._bulkDocs(e,n,function(f,p){if(f)return r(f);if(n.new_edits||(p=p.filter(function(y){return y.error})),!cs(u))for(var v=0,m=p.length;v<m;v++)p[v].id=p[v].id||c[v];r(null,p)})}).bind(this),this.registerDependentDatabase=Gn("registerDependentDatabase",function(e,n){var r=_r(this.__opts);this.__opts.view_adapter&&(r.adapter=this.__opts.view_adapter);var i=new this.constructor(e,r);function a(u){return u.dependentDbs=u.dependentDbs||{},u.dependentDbs[e]?!1:(u.dependentDbs[e]=!0,u)}ny(this,"_local/_pouch_dependentDbs",a).then(function(){n(null,{db:i})}).catch(n)}).bind(this),this.destroy=Gn("destroy",function(e,n){typeof e=="function"&&(n=e,e={});var r="use_prefix"in this?this.use_prefix:!0;const i=()=>{this._destroy(e,(a,u)=>{if(a)return n(a);this._destroyed=!0,this.emit("destroyed"),n(null,u||{ok:!0})})};if(cs(this))return i();this.get("_local/_pouch_dependentDbs",(a,u)=>{if(a)return a.status!==404?n(a):i();var c=u.dependentDbs,f=this.constructor,p=Object.keys(c).map(v=>{var m=r?v.replace(new RegExp("^"+f.prefix),""):v;return new f(m,this.__opts).destroy()});Promise.all(p).then(i,n)})}).bind(this)}_compact(e,n){var r={return_docs:!1,last_seq:e.last_seq||0},i=[],a,u=0;const c=v=>{this.activeTasks.update(a,{completed_items:++u}),i.push(this.compactDocument(v.id,0))},f=v=>{this.activeTasks.remove(a,v),n(v)},p=v=>{var m=v.last_seq;Promise.all(i).then(()=>ny(this,"_local/compaction",y=>!y.last_seq||y.last_seq<m?(y.last_seq=m,y):!1)).then(()=>{this.activeTasks.remove(a),n(null,{ok:!0})}).catch(f)};this.info().then(v=>{a=this.activeTasks.add({name:"database_compaction",total_items:v.update_seq-r.last_seq}),this.changes(r).on("change",c).on("complete",p).on("error",f)})}changes(e,n){return typeof e=="function"&&(n=e,e={}),e=e||{},e.return_docs="return_docs"in e?e.return_docs:!e.live,new QM(this,e,n)}type(){return typeof this._type=="function"?this._type():this.adapter}}OA.prototype.purge=Gn("_purge",function(t,e,n){if(typeof this._purge>"u")return n(St(pC,"Purge is not implemented in the "+this.adapter+" adapter."));var r=this;r._getRevisionTree(t,(i,a)=>{if(i)return n(i);if(!a)return n(St(Ho));let u;try{u=zM(a,e)}catch(c){return n(c.message||c)}r._purge(t,u,(c,f)=>{if(c)return n(c);n4(r,t,e).then(function(){return n(null,f)})})})});class i4{constructor(){this.isReady=!1,this.failed=!1,this.queue=[]}execute(){var e;if(this.failed)for(;e=this.queue.shift();)e(this.failed);else for(;e=this.queue.shift();)e()}fail(e){this.failed=e,this.execute()}ready(e){this.isReady=!0,this.db=e,this.execute()}addTask(e){this.queue.push(e),this.failed&&this.execute()}}function o4(t,e){var n=t.match(/([a-z-]*):\/\/(.*)/);if(n)return{name:/https?/.test(n[1])?n[1]+"://"+n[2]:n[2],adapter:n[1]};var r=Ct.adapters,i=Ct.preferredAdapters,a=Ct.prefix,u=e.adapter;if(!u)for(var c=0;c<i.length;++c){if(u=i[c],u==="idb"&&"websql"in r&&ey()&&localStorage["_pouch__websqldb_"+a+t]){Ko("log",'PouchDB is downgrading "'+t+'" to WebSQL to avoid data loss, because it was already opened with WebSQL.');continue}break}var f=r[u],p=f&&"use_prefix"in f?f.use_prefix:!0;return{name:p?a+t:t,adapter:u}}function a4(t,e){t.prototype=Object.create(e.prototype,{constructor:{value:t}})}function AA(t,e){let n=function(...r){if(!(this instanceof n))return new n(...r);e.apply(this,r)};return a4(n,t),n}function s4(t){function e(r){t.removeListener("closed",n),r||t.constructor.emit("destroyed",t.name)}function n(){t.removeListener("destroyed",e),t.constructor.emit("unref",t)}t.once("destroyed",e),t.once("closed",n),t.constructor.emit("ref",t)}class FE extends OA{constructor(e,n){super(),this._setup(e,n)}_setup(e,n){if(super._setup(),n=n||{},e&&typeof e=="object"&&(n=e,e=n.name,delete n.name),n.deterministic_revs===void 0&&(n.deterministic_revs=!0),this.__opts=n=_r(n),this.auto_compaction=n.auto_compaction,this.purged_infos_limit=n.purged_infos_limit||1e3,this.prefix=Ct.prefix,typeof e!="string")throw new Error("Missing/invalid DB name");var r=(n.prefix||"")+e,i=o4(r,n);if(n.name=i.name,n.adapter=n.adapter||i.adapter,this.name=e,this._adapter=n.adapter,Ct.emit("debug",["adapter","Picked adapter: ",n.adapter]),!Ct.adapters[n.adapter]||!Ct.adapters[n.adapter].valid())throw new Error("Invalid Adapter: "+n.adapter);if(n.view_adapter&&(!Ct.adapters[n.view_adapter]||!Ct.adapters[n.view_adapter].valid()))throw new Error("Invalid View Adapter: "+n.view_adapter);this.taskqueue=new i4,this.adapter=n.adapter,Ct.adapters[n.adapter].call(this,n,a=>{if(a)return this.taskqueue.fail(a);s4(this),this.emit("created",this),Ct.emit("created",this.name),this.taskqueue.ready(this)})}}const Ct=AA(FE,function(t,e){FE.prototype._setup.call(this,t,e)});var l4=typeof AbortController<"u"?AbortController:function(){return{abort:function(){}}},RA=fetch,uh=Headers;class u4{constructor(){this.tasks={}}list(){return Object.values(this.tasks)}add(e){const n=hC();return this.tasks[n]={id:n,name:e.name,total_items:e.total_items,created_at:new Date().toJSON()},n}get(e){return this.tasks[e]}remove(e,n){return delete this.tasks[e],this.tasks}update(e,n){const r=this.tasks[e];if(typeof r<"u"){const i={id:r.id,name:r.name,created_at:r.created_at,total_items:n.total_items||r.total_items,completed_items:n.completed_items||r.completed_items,updated_at:new Date().toJSON()};this.tasks[e]=i}return this.tasks}}Ct.adapters={};Ct.preferredAdapters=[];Ct.prefix="_pouch_";var $E=new sl;function c4(t){Object.keys(sl.prototype).forEach(function(n){typeof sl.prototype[n]=="function"&&(t[n]=$E[n].bind($E))});var e=t._destructionListeners=new Yi;t.on("ref",function(r){e.has(r.name)||e.set(r.name,[]),e.get(r.name).push(r)}),t.on("unref",function(r){if(e.has(r.name)){var i=e.get(r.name),a=i.indexOf(r);a<0||(i.splice(a,1),i.length>1?e.set(r.name,i):e.delete(r.name))}}),t.on("destroyed",function(r){if(e.has(r)){var i=e.get(r);e.delete(r),i.forEach(function(a){a.emit("destroyed",!0)})}})}c4(Ct);Ct.adapter=function(t,e,n){e.valid()&&(Ct.adapters[t]=e,n&&Ct.preferredAdapters.push(t))};Ct.plugin=function(t){if(typeof t=="function")t(Ct);else{if(typeof t!="object"||Object.keys(t).length===0)throw new Error('Invalid plugin: got "'+t+'", expected an object or a function');Object.keys(t).forEach(function(e){Ct.prototype[e]=t[e]})}return this.__defaults&&(Ct.__defaults=Qc({},this.__defaults)),Ct};Ct.defaults=function(t){let e=AA(Ct,function(n,r){r=r||{},n&&typeof n=="object"&&(r=n,n=r.name,delete r.name),r=Qc({},e.__defaults,r),Ct.call(this,n,r)});return e.preferredAdapters=Ct.preferredAdapters.slice(),Object.keys(Ct).forEach(function(n){n in e||(e[n]=Ct[n])}),e.__defaults=Qc({},this.__defaults,t),e};Ct.fetch=function(t,e){return RA(t,e)};Ct.prototype.activeTasks=Ct.activeTasks=new u4;var f4="8.0.1";function TC(t,e){for(var n=t,r=0,i=e.length;r<i;r++){var a=e[r];if(n=n[a],!n)break}return n}function d4(t,e){return t<e?-1:t>e?1:0}function OC(t){for(var e=[],n="",r=0,i=t.length;r<i;r++){var a=t[r];r>0&&t[r-1]==="\\"&&(a==="$"||a===".")?n=n.substring(0,n.length-1)+a:a==="."?(e.push(n),n=""):n+=a}return e.push(n),e}var h4=["$or","$nor","$not"];function kA(t){return h4.indexOf(t)>-1}function NA(t){return Object.keys(t)[0]}function p4(t){return t[NA(t)]}function Fm(t){var e={},n={$or:!0,$nor:!0};return t.forEach(function(r){Object.keys(r).forEach(function(i){var a=r[i];if(typeof a!="object"&&(a={$eq:a}),kA(i))if(a instanceof Array){if(n[i]){n[i]=!1,e[i]=a;return}var u=[];e[i].forEach(function(f){Object.keys(a).forEach(function(p){var v=a[p],m=Math.max(Object.keys(f).length,Object.keys(v).length),y=Fm([f,v]);Object.keys(y).length<=m||u.push(y)})}),e[i]=u}else e[i]=Fm([a]);else{var c=e[i]=e[i]||{};Object.keys(a).forEach(function(f){var p=a[f];if(f==="$gt"||f==="$gte")return m4(f,p,c);if(f==="$lt"||f==="$lte")return v4(f,p,c);if(f==="$ne")return g4(p,c);if(f==="$eq")return y4(p,c);if(f==="$regex")return _4(p,c);c[f]=p})}})}),e}function m4(t,e,n){typeof n.$eq<"u"||(typeof n.$gte<"u"?t==="$gte"?e>n.$gte&&(n.$gte=e):e>=n.$gte&&(delete n.$gte,n.$gt=e):typeof n.$gt<"u"?t==="$gte"?e>n.$gt&&(delete n.$gt,n.$gte=e):e>n.$gt&&(n.$gt=e):n[t]=e)}function v4(t,e,n){typeof n.$eq<"u"||(typeof n.$lte<"u"?t==="$lte"?e<n.$lte&&(n.$lte=e):e<=n.$lte&&(delete n.$lte,n.$lt=e):typeof n.$lt<"u"?t==="$lte"?e<n.$lt&&(delete n.$lt,n.$lte=e):e<n.$lt&&(n.$lt=e):n[t]=e)}function g4(t,e){"$ne"in e?e.$ne.push(t):e.$ne=[t]}function y4(t,e){delete e.$gt,delete e.$gte,delete e.$lt,delete e.$lte,delete e.$ne,e.$eq=t}function _4(t,e){"$regex"in e?e.$regex.push(t):e.$regex=[t]}function PA(t){for(var e in t){if(Array.isArray(t))for(var n in t)t[n].$and&&(t[n]=Fm(t[n].$and));var r=t[e];typeof r=="object"&&PA(r)}return t}function DA(t,e){for(var n in t){n==="$and"&&(e=!0);var r=t[n];typeof r=="object"&&(e=DA(r,e))}return e}function w4(t){var e=_r(t);DA(e,!1)&&(e=PA(e),"$and"in e&&(e=Fm(e.$and))),["$or","$nor"].forEach(function(u){u in e&&e[u].forEach(function(c){for(var f=Object.keys(c),p=0;p<f.length;p++){var v=f[p],m=c[v];(typeof m!="object"||m===null)&&(c[v]={$eq:m})}})}),"$not"in e&&(e.$not=Fm([e.$not]));for(var n=Object.keys(e),r=0;r<n.length;r++){var i=n[r],a=e[i];(typeof a!="object"||a===null)&&(a={$eq:a}),e[i]=a}return nS(e),e}function nS(t){Object.keys(t).forEach(function(e){var n=t[e];Array.isArray(n)?n.forEach(function(r){r&&typeof r=="object"&&nS(r)}):e==="$ne"?t.$ne=[n]:e==="$regex"?t.$regex=[n]:n&&typeof n=="object"&&nS(n)})}function S4(t,e,n){for(var r="",i=n-t.length;r.length<i;)r+=e;return r}function C4(t,e,n){var r=S4(t,e,n);return r+t}var LA=-324,rS=3,iS="";function Xn(t,e){if(t===e)return 0;t=ef(t),e=ef(e);var n=oS(t),r=oS(e);if(n-r!==0)return n-r;switch(typeof t){case"number":return t-e;case"boolean":return t<e?-1:1;case"string":return A4(t,e)}return Array.isArray(t)?O4(t,e):R4(t,e)}function ef(t){switch(typeof t){case"undefined":return null;case"number":return t===1/0||t===-1/0||isNaN(t)?null:t;case"object":var e=t;if(Array.isArray(t)){var n=t.length;t=new Array(n);for(var r=0;r<n;r++)t[r]=ef(e[r])}else{if(t instanceof Date)return t.toJSON();if(t!==null){t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=e[i];typeof a<"u"&&(t[i]=ef(a))}}}}return t}function b4(t){if(t!==null)switch(typeof t){case"boolean":return t?1:0;case"number":return k4(t);case"string":return t.replace(/\u0002/g,"").replace(/\u0001/g,"").replace(/\u0000/g,"");case"object":var e=Array.isArray(t),n=e?t:Object.keys(t),r=-1,i=n.length,a="";if(e)for(;++r<i;)a+=va(n[r]);else for(;++r<i;){var u=n[r];a+=va(u)+va(t[u])}return a}return""}function va(t){var e="\0";return t=ef(t),oS(t)+iS+b4(t)+e}function E4(t,e){var n=e,r,i=t[e]==="1";if(i)r=0,e++;else{var a=t[e]==="0";e++;var u="",c=t.substring(e,e+rS),f=parseInt(c,10)+LA;for(a&&(f=-f),e+=rS;;){var p=t[e];if(p==="\0")break;u+=p,e++}u=u.split("."),u.length===1?r=parseInt(u,10):r=parseFloat(u[0]+"."+u[1]),a&&(r=r-10),f!==0&&(r=parseFloat(r+"e"+f))}return{num:r,length:e-n}}function x4(t,e){var n=t.pop();if(e.length){var r=e[e.length-1];n===r.element&&(e.pop(),r=e[e.length-1]);var i=r.element,a=r.index;if(Array.isArray(i))i.push(n);else if(a===t.length-2){var u=t.pop();i[u]=n}else t.push(n)}}function T4(t){for(var e=[],n=[],r=0;;){var i=t[r++];if(i==="\0"){if(e.length===1)return e.pop();x4(e,n);continue}switch(i){case"1":e.push(null);break;case"2":e.push(t[r]==="1"),r++;break;case"3":var a=E4(t,r);e.push(a.num),r+=a.length;break;case"4":for(var u="";;){var c=t[r];if(c==="\0")break;u+=c,r++}u=u.replace(/\u0001\u0001/g,"\0").replace(/\u0001\u0002/g,"").replace(/\u0002\u0002/g,""),e.push(u);break;case"5":var f={element:[],index:e.length};e.push(f.element),n.push(f);break;case"6":var p={element:{},index:e.length};e.push(p.element),n.push(p);break;default:throw new Error("bad collationIndex or unexpectedly reached end of input: "+i)}}}function O4(t,e){for(var n=Math.min(t.length,e.length),r=0;r<n;r++){var i=Xn(t[r],e[r]);if(i!==0)return i}return t.length===e.length?0:t.length>e.length?1:-1}function A4(t,e){return t===e?0:t>e?1:-1}function R4(t,e){for(var n=Object.keys(t),r=Object.keys(e),i=Math.min(n.length,r.length),a=0;a<i;a++){var u=Xn(n[a],r[a]);if(u!==0||(u=Xn(t[n[a]],e[r[a]]),u!==0))return u}return n.length===r.length?0:n.length>r.length?1:-1}function oS(t){var e=["boolean","number","string","object"],n=e.indexOf(typeof t);if(~n)return t===null?1:Array.isArray(t)?5:n<3?n+2:n+3;if(Array.isArray(t))return 5}function k4(t){if(t===0)return"1";var e=t.toExponential().split(/e\+?/),n=parseInt(e[1],10),r=t<0,i=r?"0":"2",a=(r?-n:n)-LA,u=C4(a.toString(),"0",rS);i+=iS+u;var c=Math.abs(parseFloat(e[0]));r&&(c=10-c);var f=c.toFixed(20);return f=f.replace(/\.?0+$/,""),i+=iS+f,i}function N4(t){function e(n){return t.map(function(r){var i=NA(r),a=OC(i),u=TC(n,a);return u})}return function(n,r){var i=e(n.doc),a=e(r.doc),u=Xn(i,a);return u!==0?u:d4(n.doc._id,r.doc._id)}}function P4(t,e,n){if(t=t.filter(function(u){return ch(u.doc,e.selector,n)}),e.sort){var r=N4(e.sort);t=t.sort(r),typeof e.sort[0]!="string"&&p4(e.sort[0])==="desc"&&(t=t.reverse())}if("limit"in e||"skip"in e){var i=e.skip||0,a=("limit"in e?e.limit:t.length)+i;t=t.slice(i,a)}return t}function ch(t,e,n){return n.every(function(r){var i=e[r],a=OC(r),u=TC(t,a);return kA(r)?D4(r,i,t):ry(i,t,a,u)})}function ry(t,e,n,r){return t?typeof t=="object"?Object.keys(t).every(function(i){var a=t[i];if(i.indexOf("$")===0)return jE(i,e,a,n,r);var u=OC(i);if(r===void 0&&typeof a!="object"&&u.length>0)return!1;var c=TC(r,u);return typeof a=="object"?ry(a,e,n,c):jE("$eq",e,a,u,c)}):t===r:!0}function D4(t,e,n){return t==="$or"?e.some(function(r){return ch(n,r,Object.keys(r))}):t==="$not"?!ch(n,e,Object.keys(e)):!e.find(function(r){return ch(n,r,Object.keys(r))})}function jE(t,e,n,r,i){if(!HE[t])throw new Error('unknown operator "'+t+'" - should be one of $eq, $lte, $lt, $gt, $gte, $exists, $ne, $in, $nin, $size, $mod, $regex, $elemMatch, $type, $allMatch or $all');return HE[t](e,n,r,i)}function um(t){return typeof t<"u"&&t!==null}function Ac(t){return typeof t<"u"}function L4(t,e){if(typeof t!="number"||parseInt(t,10)!==t)return!1;var n=e[0],r=e[1];return t%n===r}function zE(t,e){return e.some(function(n){return t instanceof Array?t.some(function(r){return Xn(n,r)===0}):Xn(n,t)===0})}function M4(t,e){return e.every(function(n){return t.some(function(r){return Xn(n,r)===0})})}function I4(t,e){return t.length===e}function F4(t,e){var n=new RegExp(e);return n.test(t)}function $4(t,e){switch(e){case"null":return t===null;case"boolean":return typeof t=="boolean";case"number":return typeof t=="number";case"string":return typeof t=="string";case"array":return t instanceof Array;case"object":return{}.toString.call(t)==="[object Object]"}}var HE={$elemMatch:function(t,e,n,r){return!Array.isArray(r)||r.length===0?!1:typeof r[0]=="object"&&r[0]!==null?r.some(function(i){return ch(i,e,Object.keys(e))}):r.some(function(i){return ry(e,t,n,i)})},$allMatch:function(t,e,n,r){return!Array.isArray(r)||r.length===0?!1:typeof r[0]=="object"&&r[0]!==null?r.every(function(i){return ch(i,e,Object.keys(e))}):r.every(function(i){return ry(e,t,n,i)})},$eq:function(t,e,n,r){return Ac(r)&&Xn(r,e)===0},$gte:function(t,e,n,r){return Ac(r)&&Xn(r,e)>=0},$gt:function(t,e,n,r){return Ac(r)&&Xn(r,e)>0},$lte:function(t,e,n,r){return Ac(r)&&Xn(r,e)<=0},$lt:function(t,e,n,r){return Ac(r)&&Xn(r,e)<0},$exists:function(t,e,n,r){return e?Ac(r):!Ac(r)},$mod:function(t,e,n,r){return um(r)&&L4(r,e)},$ne:function(t,e,n,r){return e.every(function(i){return Xn(r,i)!==0})},$in:function(t,e,n,r){return um(r)&&zE(r,e)},$nin:function(t,e,n,r){return um(r)&&!zE(r,e)},$size:function(t,e,n,r){return um(r)&&Array.isArray(r)&&I4(r,e)},$all:function(t,e,n,r){return Array.isArray(r)&&M4(r,e)},$regex:function(t,e,n,r){return um(r)&&typeof r=="string"&&e.every(function(i){return F4(r,i)})},$type:function(t,e,n,r){return $4(r,e)}};function j4(t,e){if(typeof e!="object")throw new Error("Selector error: expected a JSON object");e=w4(e);var n={doc:t},r=P4([n],{selector:e},Object.keys(e));return r&&r.length===1}function z4(t){return gC(`"use strict";
|
|
42
|
+
return `+t+";",{})}function H4(t){var e=["return function(doc) {",' "use strict";'," var emitted = false;"," var emit = function (a, b) {"," emitted = true;"," };"," var view = "+t+";"," view(doc);"," if (emitted) {"," return true;"," }","};"].join(`
|
|
43
|
+
`);return gC(e,{})}function q4(t,e){if(t.selector&&t.filter&&t.filter!=="_selector"){var n=typeof t.filter=="string"?t.filter:"function";return e(new Error('selector invalid for filter "'+n+'"'))}e()}function U4(t){t.view&&!t.filter&&(t.filter="_view"),t.selector&&!t.filter&&(t.filter="_selector"),t.filter&&typeof t.filter=="string"&&(t.filter==="_view"?t.view=NE(t.view):t.filter=NE(t.filter))}function W4(t,e){return e.filter&&typeof e.filter=="string"&&!e.doc_ids&&!cs(t.db)}function V4(t,e){var n=e.complete;if(e.filter==="_view"){if(!e.view||typeof e.view!="string"){var r=St(qy,"`view` filter parameter not found or invalid.");return n(r)}var i=tS(e.view);t.db.get("_design/"+i[0],function(u,c){if(t.isCancelled)return n(null,{status:"cancelled"});if(u)return n(vh(u));var f=c&&c.views&&c.views[i[1]]&&c.views[i[1]].map;if(!f)return n(St(Ho,c.views?"missing json key: "+i[1]:"missing json key: views"));e.filter=H4(f),t.doChanges(e)})}else if(e.selector)e.filter=function(u){return j4(u,e.selector)},t.doChanges(e);else{var a=tS(e.filter);t.db.get("_design/"+a[0],function(u,c){if(t.isCancelled)return n(null,{status:"cancelled"});if(u)return n(vh(u));var f=c&&c.filters&&c.filters[a[1]];if(!f)return n(St(Ho,c&&c.filters?"missing json key: "+a[1]:"missing json key: filters"));e.filter=z4(f),t.doChanges(e)})}}function G4(t){t._changesFilterPlugin={validate:q4,normalize:U4,shouldFilter:W4,filter:V4}}Ct.plugin(G4);Ct.version=f4;function MA(t){return t.reduce(function(e,n){return e[n]=!0,e},{})}var B4=MA(["_id","_rev","_access","_attachments","_deleted","_revisions","_revs_info","_conflicts","_deleted_conflicts","_local_seq","_rev_tree","_replication_id","_replication_state","_replication_state_time","_replication_state_reason","_replication_stats","_removed"]),K4=MA(["_access","_attachments","_replication_id","_replication_state","_replication_state_time","_replication_state_reason","_replication_stats"]);function qE(t){if(!/^\d+-/.test(t))return St(vA);var e=t.indexOf("-"),n=t.substring(0,e),r=t.substring(e+1);return{prefix:parseInt(n,10),id:r}}function X4(t,e){for(var n=t.start-t.ids.length+1,r=t.ids,i=[r[0],e,[]],a=1,u=r.length;a<u;a++)i=[r[a],{status:"missing"},[i]];return[{pos:n,ids:i}]}function IA(t,e,n){n||(n={deterministic_revs:!0});var r,i,a,u={status:"available"};if(t._deleted&&(u.deleted=!0),e)if(t._id||(t._id=Uy()),i=CA(t,n.deterministic_revs),t._rev){if(a=qE(t._rev),a.error)return a;t._rev_tree=[{pos:a.prefix,ids:[a.id,{status:"missing"},[[i,u,[]]]]}],r=a.prefix+1}else t._rev_tree=[{pos:1,ids:[i,u,[]]}],r=1;else if(t._revisions&&(t._rev_tree=X4(t._revisions,u),r=t._revisions.start,i=t._revisions.ids[0]),!t._rev_tree){if(a=qE(t._rev),a.error)return a;r=a.prefix,i=a.id,t._rev_tree=[{pos:r,ids:[i,u,[]]}]}gA(t._id),t._rev=r+"-"+i;var c={metadata:{},data:{}};for(var f in t)if(Object.prototype.hasOwnProperty.call(t,f)){var p=f[0]==="_";if(p&&!B4[f]){var v=St(kE,f);throw v.message=kE.message+": "+f,v}else p&&!K4[f]?c.metadata[f.slice(1)]=t[f]:c.data[f]=t[f]}return c}function Y4(t){try{return yC(t)}catch{var e=St(mA,"Attachment is not a valid base64 string");return{error:e}}}function Q4(t,e,n){var r=Y4(t.data);if(r.error)return n(r.error);t.length=r.length,e==="blob"?t.data=wC(r,t.content_type):e==="base64"?t.data=mv(r):t.data=r,bC(r,function(i){t.digest="md5-"+i,n()})}function Z4(t,e,n){bC(t.data,function(r){t.digest="md5-"+r,t.length=t.data.size||t.data.length||0,e==="binary"?wA(t.data,function(i){t.data=i,n()}):e==="base64"?CC(t.data,function(i){t.data=i,n()}):n()})}function J4(t,e,n){if(t.stub)return n();typeof t.data=="string"?Q4(t,e,n):Z4(t,e,n)}function eI(t,e,n){if(!t.length)return n();var r=0,i;t.forEach(function(u){var c=u.data&&u.data._attachments?Object.keys(u.data._attachments):[],f=0;if(!c.length)return a();function p(m){i=m,f++,f===c.length&&a()}for(var v in u.data._attachments)Object.prototype.hasOwnProperty.call(u.data._attachments,v)&&J4(u.data._attachments[v],e,p)});function a(){r++,t.length===r&&(i?n(i):n())}}function tI(t,e,n,r,i,a,u,c){if(GM(e.rev_tree,n.metadata.rev)&&!c)return r[i]=n,a();var f=e.winningRev||Zc(e),p="deleted"in e?e.deleted:ol(e,f),v="deleted"in n.metadata?n.metadata.deleted:ol(n.metadata),m=/^1-/.test(n.metadata.rev);if(p&&!v&&c&&m){var y=n.data;y._rev=f,y._id=n.metadata.id,n=IA(y,c)}var b=xA(e.rev_tree,n.metadata.rev_tree[0],t),E=c&&(p&&v&&b.conflicts!=="new_leaf"||!p&&b.conflicts!=="new_leaf"||p&&!v&&b.conflicts==="new_branch");if(E){var A=St(mh);return r[i]=A,a()}var S=n.metadata.rev;n.metadata.rev_tree=b.tree,n.stemmedRevs=b.stemmedRevs||[],e.rev_map&&(n.metadata.rev_map=e.rev_map);var O=Zc(n.metadata),k=ol(n.metadata,O),T=p===k?0:p<k?-1:1,C;S===O?C=k:C=ol(n.metadata,S),u(n,O,k,C,!0,T,i,a)}function nI(t){return t.metadata.rev_tree[0].ids[1].status==="missing"}function rI(t,e,n,r,i,a,u,c,f){t=t||1e3;function p(A,S,O){var k=Zc(A.metadata),T=ol(A.metadata,k);if("was_delete"in c&&T)return a[S]=St(Ho,"deleted"),O();var C=v&&nI(A);if(C){var w=St(mh);return a[S]=w,O()}var R=T?0:1;u(A,k,T,T,!1,R,S,O)}var v=c.new_edits,m=new Yi,y=0,b=e.length;function E(){++y===b&&f&&f()}e.forEach(function(A,S){if(A._id&&Vc(A._id)){var O=A._deleted?"_removeLocal":"_putLocal";n[O](A,{ctx:i},function(T,C){a[S]=T||C,E()});return}var k=A.metadata.id;m.has(k)?(b--,m.get(k).push([A,S])):m.set(k,[[A,S]])}),m.forEach(function(A,S){var O=0;function k(){++O<A.length?T():E()}function T(){var C=A[O],w=C[0],R=C[1];if(r.has(S))tI(t,r.get(S),w,a,R,k,u,v);else{var I=xA([],w.metadata.rev_tree[0],t);w.metadata.rev_tree=I.tree,w.stemmedRevs=I.stemmedRevs||[],p(w,R,k)}}T()})}var iI=5,or="document-store",Vr="by-sequence",qo="attach-store",jc="attach-seq-store",Ci="meta-store",as="local-store",aS="detect-blob-support";function oI(t){try{return JSON.parse(t)}catch{return lA.parse(t)}}function aI(t){try{return JSON.stringify(t)}catch{return lA.stringify(t)}}function us(t){return function(e){var n="unknown_error";e.target&&e.target.error&&(n=e.target.error.name||e.target.error.message),t(St(mC,n,e.type))}}function sS(t,e,n){return{data:aI(t),winningRev:e,deletedOrLocal:n?"1":"0",seq:t.seq,id:t.id}}function zc(t){if(!t)return null;var e=oI(t.data);return e.winningRev=t.winningRev,e.deleted=t.deletedOrLocal==="1",e.seq=t.seq,e}function iy(t){if(!t)return t;var e=t._doc_id_rev.lastIndexOf(":");return t._id=t._doc_id_rev.substring(0,e-1),t._rev=t._doc_id_rev.substring(e+1),delete t._doc_id_rev,t}function FA(t,e,n,r){n?r(t?typeof t!="string"?t:SC(t,e):_C([""],{type:e})):t?typeof t!="string"?_A(t,function(i){r(mv(i))}):r(t):r("")}function $A(t,e,n,r){var i=Object.keys(t._attachments||{});if(!i.length)return r&&r();var a=0;function u(){++a===i.length&&r&&r()}function c(f,p){var v=f._attachments[p],m=v.digest,y=n.objectStore(qo).get(m);y.onsuccess=function(b){v.body=b.target.result.body,u()}}i.forEach(function(f){e.attachments&&e.include_docs?c(t,f):(t._attachments[f].stub=!0,u())})}function lS(t,e){return Promise.all(t.map(function(n){if(n.doc&&n.doc._attachments){var r=Object.keys(n.doc._attachments);return Promise.all(r.map(function(i){var a=n.doc._attachments[i];if("body"in a){var u=a.body,c=a.content_type;return new Promise(function(f){FA(u,c,e,function(p){n.doc._attachments[i]=Qc(pv(a,["digest","content_type"]),{data:p}),f()})})}}))}}))}function jA(t,e,n){var r=[],i=n.objectStore(Vr),a=n.objectStore(qo),u=n.objectStore(jc),c=t.length;function f(){c--,c||p()}function p(){r.length&&r.forEach(function(v){var m=u.index("digestSeq").count(IDBKeyRange.bound(v+"::",v+"::",!1,!1));m.onsuccess=function(y){var b=y.target.result;b||a.delete(v)}})}t.forEach(function(v){var m=i.index("_doc_id_rev"),y=e+"::"+v;m.getKey(y).onsuccess=function(b){var E=b.target.result;if(typeof E!="number")return f();i.delete(E);var A=u.index("seq").openCursor(IDBKeyRange.only(E));A.onsuccess=function(S){var O=S.target.result;if(O){var k=O.value.digestSeq.split("::")[0];r.push(k),u.delete(O.primaryKey),O.continue()}else f()}}})}function ga(t,e,n){try{return{txn:t.transaction(e,n)}}catch(r){return{error:r}}}var Sm=new vM;function sI(t,e,n,r,i,a){for(var u=e.docs,c,f,p,v,m,y,b,E,A=0,S=u.length;A<S;A++){var O=u[A];O._id&&Vc(O._id)||(O=u[A]=IA(O,n.new_edits,t),O.error&&!b&&(b=O))}if(b)return a(b);var k=!1,T=0,C=new Array(u.length),w=new Yi,R=!1,I=r._meta.blobSupport?"blob":"base64";eI(u,I,function(W){if(W)return a(W);$()});function $(){var W=[or,Vr,qo,as,jc,Ci],X=ga(i,W,"readwrite");if(X.error)return a(X.error);c=X.txn,c.onabort=us(a),c.ontimeout=us(a),c.oncomplete=ee,f=c.objectStore(or),p=c.objectStore(Vr),v=c.objectStore(qo),m=c.objectStore(jc),y=c.objectStore(Ci),y.get(Ci).onsuccess=function(le){E=le.target.result,Y()},de(function(le){if(le)return R=!0,a(le);Z()})}function U(){k=!0,Y()}function G(){rI(t.revs_limit,u,r,w,c,C,Q,n,U)}function Y(){!E||!k||(E.docCount+=T,y.put(E))}function Z(){if(!u.length)return;var W=0;function X(){++W===u.length&&G()}function le(J){var be=zc(J.target.result);be&&w.set(be.id,be),X()}for(var ce=0,oe=u.length;ce<oe;ce++){var q=u[ce];if(q._id&&Vc(q._id)){X();continue}var ie=f.get(q.metadata.id);ie.onsuccess=le}}function ee(){R||(Sm.notify(r._meta.name),a(null,C))}function ae(W,X){var le=v.get(W);le.onsuccess=function(ce){if(ce.target.result)X();else{var oe=St(bM,"unknown stub attachment with digest "+W);oe.status=412,X(oe)}}}function de(W){var X=[];if(u.forEach(function(q){q.data&&q.data._attachments&&Object.keys(q.data._attachments).forEach(function(ie){var J=q.data._attachments[ie];J.stub&&X.push(J.digest)})}),!X.length)return W();var le=0,ce;function oe(){++le===X.length&&W(ce)}X.forEach(function(q){ae(q,function(ie){ie&&!ce&&(ce=ie),oe()})})}function Q(W,X,le,ce,oe,q,ie,J){W.metadata.winningRev=X,W.metadata.deleted=le;var be=W.data;be._id=W.metadata.id,be._rev=W.metadata.rev,ce&&(be._deleted=!0);var Ee=be._attachments&&Object.keys(be._attachments).length;if(Ee)return z(W,X,le,oe,ie,J);T+=q,Y(),re(W,X,le,oe,ie,J)}function re(W,X,le,ce,oe,q){var ie=W.data,J=W.metadata;ie._doc_id_rev=J.id+"::"+J.rev,delete ie._id,delete ie._rev;function be(qe){var Je=W.stemmedRevs||[];ce&&r.auto_compaction&&(Je=Je.concat(jM(W.metadata))),Je&&Je.length&&jA(Je,W.metadata.id,c),J.seq=qe.target.result;var ye=sS(J,X,le),Ce=f.put(ye);Ce.onsuccess=Re}function Ee(qe){qe.preventDefault(),qe.stopPropagation();var Je=p.index("_doc_id_rev"),ye=Je.getKey(ie._doc_id_rev);ye.onsuccess=function(Ce){var ke=p.put(ie,Ce.target.result);ke.onsuccess=be}}function Re(){C[oe]={ok:!0,id:J.id,rev:J.rev},w.set(W.metadata.id,W.metadata),B(W,J.seq,q)}var Me=p.put(ie);Me.onsuccess=be,Me.onerror=Ee}function z(W,X,le,ce,oe,q){var ie=W.data,J=0,be=Object.keys(ie._attachments);function Ee(){J===be.length&&re(W,X,le,ce,oe,q)}function Re(){J++,Ee()}be.forEach(function(Me){var qe=W.data._attachments[Me];if(qe.stub)J++,Ee();else{var Je=qe.data;delete qe.data,qe.revpos=parseInt(X,10);var ye=qe.digest;F(ye,Je,Re)}})}function B(W,X,le){var ce=0,oe=Object.keys(W.data._attachments||{});if(!oe.length)return le();function q(){++ce===oe.length&&le()}function ie(be){var Ee=W.data._attachments[be].digest,Re=m.put({seq:X,digestSeq:Ee+"::"+X});Re.onsuccess=q,Re.onerror=function(Me){Me.preventDefault(),Me.stopPropagation(),q()}}for(var J=0;J<oe.length;J++)ie(oe[J])}function F(W,X,le){var ce=v.count(W);ce.onsuccess=function(oe){var q=oe.target.result;if(q)return le();var ie={digest:W,body:X},J=v.put(ie);J.onsuccess=le}}}function zA(t,e,n,r,i){r===-1&&(r=1e3);var a=typeof t.getAll=="function"&&typeof t.getAllKeys=="function"&&r>1&&!n,u,c,f;function p(b){c=b.target.result,u&&i(u,c,f)}function v(b){u=b.target.result,c&&i(u,c,f)}function m(){if(!u.length)return i();var b=u[u.length-1],E;if(e&&e.upper)try{E=IDBKeyRange.bound(b,e.upper,!0,e.upperOpen)}catch(A){if(A.name==="DataError"&&A.code===0)return i()}else E=IDBKeyRange.lowerBound(b,!0);e=E,u=null,c=null,t.getAll(e,r).onsuccess=p,t.getAllKeys(e,r).onsuccess=v}function y(b){var E=b.target.result;if(!E)return i();i([E.key],[E.value],E)}a?(f={continue:m},t.getAll(e,r).onsuccess=p,t.getAllKeys(e,r).onsuccess=v):n?t.openCursor(e,"prev").onsuccess=y:t.openCursor(e).onsuccess=y}function lI(t,e,n){if(typeof t.getAll=="function"){t.getAll(e).onsuccess=n;return}var r=[];function i(a){var u=a.target.result;u?(r.push(u.value),u.continue()):n({target:{result:r}})}t.openCursor(e).onsuccess=i}function uI(t,e,n){var r=new Array(t.length),i=0;t.forEach(function(a,u){e.get(a).onsuccess=function(c){c.target.result?r[u]=c.target.result:r[u]={key:a,error:"not_found"},i++,i===t.length&&n(t,r,{})}})}function cI(t,e,n,r,i){try{if(t&&e)return i?IDBKeyRange.bound(e,t,!n,!1):IDBKeyRange.bound(t,e,!1,!n);if(t)return i?IDBKeyRange.upperBound(t):IDBKeyRange.lowerBound(t);if(e)return i?IDBKeyRange.lowerBound(e,!n):IDBKeyRange.upperBound(e,!n);if(r)return IDBKeyRange.only(r)}catch(a){return{error:a}}return null}function fI(t,e,n){var r="startkey"in t?t.startkey:!1,i="endkey"in t?t.endkey:!1,a="key"in t?t.key:!1,u="keys"in t?t.keys:!1,c=t.skip||0,f=typeof t.limit=="number"?t.limit:-1,p=t.inclusive_end!==!1,v,m;if(!u&&(v=cI(r,i,p,a,t.descending),m=v&&v.error,m&&!(m.name==="DataError"&&m.code===0)))return n(St(mC,m.name,m.message));var y=[or,Vr,Ci];t.attachments&&y.push(qo);var b=ga(e,y,"readonly");if(b.error)return n(b.error);var E=b.txn;E.oncomplete=ee,E.onabort=us(n);var A=E.objectStore(or),S=E.objectStore(Vr),O=E.objectStore(Ci),k=S.index("_doc_id_rev"),T=[],C,w;O.get(Ci).onsuccess=function(ae){C=ae.target.result.docCount},t.update_seq&&R(S,function(ae){ae.target.result&&ae.target.result.length>0&&(w=ae.target.result[0])});function R(ae,de){function Q(re){var z=re.target.result,B=void 0;return z&&z.key&&(B=z.key),de({target:{result:[B]}})}ae.openCursor(null,"prev").onsuccess=Q}function I(ae,de,Q){var re=ae.id+"::"+Q;k.get(re).onsuccess=function(B){if(de.doc=iy(B.target.result)||{},t.conflicts){var F=xC(ae);F.length&&(de.doc._conflicts=F)}$A(de.doc,t,E)}}function $(ae,de){var Q={id:de.id,key:de.id,value:{rev:ae}},re=de.deleted;re?u&&(T.push(Q),Q.value.deleted=!0,Q.doc=null):c--<=0&&(T.push(Q),t.include_docs&&I(de,Q,ae))}function U(ae){for(var de=0,Q=ae.length;de<Q&&T.length!==f;de++){var re=ae[de];if(re.error&&u){T.push(re);continue}var z=zc(re),B=z.winningRev;$(B,z)}}function G(ae,de,Q){Q&&(U(de),T.length<f&&Q.continue())}function Y(ae){var de=ae.target.result;t.descending&&(de=de.reverse()),U(de)}function Z(){var ae={total_rows:C,offset:t.skip,rows:T};t.update_seq&&w!==void 0&&(ae.update_seq=w),n(null,ae)}function ee(){t.attachments?lS(T,t.binary).then(Z):Z()}if(!(m||f===0)){if(u)return uI(t.keys,A,G);if(f===-1)return lI(A,v,Y);zA(A,v,t.descending,f+c,G)}}function dI(t){return new Promise(function(e){var n=_C([""]),r=t.objectStore(aS).put(n,"key");r.onsuccess=function(){var i=navigator.userAgent.match(/Chrome\/(\d+)/),a=navigator.userAgent.match(/Edge\//);e(a||!i||parseInt(i[1],10)>=43)},r.onerror=t.onabort=function(i){i.preventDefault(),i.stopPropagation(),e(!1)}}).catch(function(){return!1})}function hI(t,e){var n=t.objectStore(or).index("deletedOrLocal");n.count(IDBKeyRange.only("0")).onsuccess=function(r){e(r.target.result)}}var uS=!1,cS=[];function pI(t,e,n,r){try{t(e,n)}catch(i){r.emit("error",i)}}function UE(){uS||!cS.length||(uS=!0,cS.shift()())}function mI(t,e,n){cS.push(function(){t(function(a,u){pI(e,a,u,n),uS=!1,hs(function(){UE()})})}),UE()}function vI(t,e,n,r){if(t=_r(t),t.continuous){var i=n+":"+Uy();return Sm.addListener(n,i,e,t),Sm.notify(n),{cancel:function(){Sm.removeListener(n,i)}}}var a=t.doc_ids&&new ph(t.doc_ids);t.since=t.since||0;var u=t.since,c="limit"in t?t.limit:-1;c===0&&(c=1);var f=[],p=0,v=vC(t),m=new Yi,y,b,E,A;function S($,U,G){if(!G||!$.length)return;var Y=new Array($.length),Z=new Array($.length);function ee(Q,re){var z=t.processChange(re,Q,t);u=z.seq=Q.seq;var B=v(z);return typeof B=="object"?Promise.reject(B):B?(p++,t.return_docs&&f.push(z),t.attachments&&t.include_docs?new Promise(function(F){$A(re,t,y,function(){lS([z],t.binary).then(function(){F(z)})})}):Promise.resolve(z)):Promise.resolve()}function ae(){for(var Q=[],re=0,z=Y.length;re<z&&p!==c;re++){var B=Y[re];if(B){var F=Z[re];Q.push(ee(F,B))}}Promise.all(Q).then(function(W){for(var X=0,le=W.length;X<le;X++)W[X]&&t.onChange(W[X])}).catch(t.complete),p!==c&&G.continue()}var de=0;U.forEach(function(Q,re){var z=iy(Q),B=$[re];k(z,B,function(F,W){Z[re]=F,Y[re]=W,++de===$.length&&ae()})})}function O($,U,G,Y){if(G.seq!==U)return Y();if(G.winningRev===$._rev)return Y(G,$);var Z=$._id+"::"+G.winningRev,ee=A.get(Z);ee.onsuccess=function(ae){Y(G,iy(ae.target.result))}}function k($,U,G){if(a&&!a.has($._id))return G();var Y=m.get($._id);if(Y)return O($,U,Y,G);E.get($._id).onsuccess=function(Z){Y=zc(Z.target.result),m.set($._id,Y),O($,U,Y,G)}}function T(){t.complete(null,{results:f,last_seq:u})}function C(){!t.continuous&&t.attachments?lS(f).then(T):T()}var w=[or,Vr];t.attachments&&w.push(qo);var R=ga(r,w,"readonly");if(R.error)return t.complete(R.error);y=R.txn,y.onabort=us(t.complete),y.oncomplete=C,b=y.objectStore(Vr),E=y.objectStore(or),A=b.index("_doc_id_rev");var I=t.since&&!t.descending?IDBKeyRange.lowerBound(t.since,!0):null;zA(b,I,t.descending,c,S)}var Xd=new Yi,Pw,Dw=new Yi;function HA(t,e){var n=this;mI(function(r){gI(n,t,r)},e,n.constructor)}function gI(t,e,n){var r=e.name,i=null,a=null;t._meta=null;function u(S){return function(O,k){O&&O instanceof Error&&!O.reason&&a&&(O.reason=a),S(O,k)}}function c(S){var O=S.createObjectStore(or,{keyPath:"id"});S.createObjectStore(Vr,{autoIncrement:!0}).createIndex("_doc_id_rev","_doc_id_rev",{unique:!0}),S.createObjectStore(qo,{keyPath:"digest"}),S.createObjectStore(Ci,{keyPath:"id",autoIncrement:!1}),S.createObjectStore(aS),O.createIndex("deletedOrLocal","deletedOrLocal",{unique:!1}),S.createObjectStore(as,{keyPath:"_id"});var k=S.createObjectStore(jc,{autoIncrement:!0});k.createIndex("seq","seq"),k.createIndex("digestSeq","digestSeq",{unique:!0})}function f(S,O){var k=S.objectStore(or);k.createIndex("deletedOrLocal","deletedOrLocal",{unique:!1}),k.openCursor().onsuccess=function(T){var C=T.target.result;if(C){var w=C.value,R=ol(w);w.deletedOrLocal=R?"1":"0",k.put(w),C.continue()}else O()}}function p(S){S.createObjectStore(as,{keyPath:"_id"}).createIndex("_doc_id_rev","_doc_id_rev",{unique:!0})}function v(S,O){var k=S.objectStore(as),T=S.objectStore(or),C=S.objectStore(Vr),w=T.openCursor();w.onsuccess=function(R){var I=R.target.result;if(I){var $=I.value,U=$.id,G=Vc(U),Y=Zc($);if(G){var Z=U+"::"+Y,ee=U+"::",ae=U+"::~",de=C.index("_doc_id_rev"),Q=IDBKeyRange.bound(ee,ae,!1,!1),re=de.openCursor(Q);re.onsuccess=function(z){if(re=z.target.result,!re)T.delete(I.primaryKey),I.continue();else{var B=re.value;B._doc_id_rev===Z&&k.put(B),C.delete(re.primaryKey),re.continue()}}}else I.continue()}else O&&O()}}function m(S){var O=S.createObjectStore(jc,{autoIncrement:!0});O.createIndex("seq","seq"),O.createIndex("digestSeq","digestSeq",{unique:!0})}function y(S,O){var k=S.objectStore(Vr),T=S.objectStore(qo),C=S.objectStore(jc),w=T.count();w.onsuccess=function(R){var I=R.target.result;if(!I)return O();k.openCursor().onsuccess=function($){var U=$.target.result;if(!U)return O();for(var G=U.value,Y=U.primaryKey,Z=Object.keys(G._attachments||{}),ee={},ae=0;ae<Z.length;ae++){var de=G._attachments[Z[ae]];ee[de.digest]=!0}var Q=Object.keys(ee);for(ae=0;ae<Q.length;ae++){var re=Q[ae];C.put({seq:Y,digestSeq:re+"::"+Y})}U.continue()}}}function b(S){function O(w){return w.data?zc(w):(w.deleted=w.deletedOrLocal==="1",w)}var k=S.objectStore(Vr),T=S.objectStore(or),C=T.openCursor();C.onsuccess=function(w){var R=w.target.result;if(!R)return;var I=O(R.value);I.winningRev=I.winningRev||Zc(I);function $(){var G=I.id+"::",Y=I.id+"::",Z=k.index("_doc_id_rev").openCursor(IDBKeyRange.bound(G,Y)),ee=0;Z.onsuccess=function(ae){var de=ae.target.result;if(!de)return I.seq=ee,U();var Q=de.primaryKey;Q>ee&&(ee=Q),de.continue()}}function U(){var G=sS(I,I.winningRev,I.deleted),Y=T.put(G);Y.onsuccess=function(){R.continue()}}if(I.seq)return U();$()}}t._remote=!1,t.type=function(){return"idb"},t._id=dA(function(S){S(null,t._meta.instanceId)}),t._bulkDocs=function(O,k,T){sI(e,O,k,t,i,u(T))},t._get=function(O,k,T){var C,w,R,I=k.ctx;if(!I){var $=ga(i,[or,Vr,qo],"readonly");if($.error)return T($.error);I=$.txn}function U(){T(R,{doc:C,metadata:w,ctx:I})}I.objectStore(or).get(O).onsuccess=function(G){if(w=zc(G.target.result),!w)return R=St(Ho,"missing"),U();var Y;if(k.rev)Y=k.latest?KM(k.rev,w):k.rev;else{Y=w.winningRev;var Z=ol(w);if(Z)return R=St(Ho,"deleted"),U()}var ee=I.objectStore(Vr),ae=w.id+"::"+Y;ee.index("_doc_id_rev").get(ae).onsuccess=function(de){if(C=de.target.result,C&&(C=iy(C)),!C)return R=St(Ho,"missing"),U();U()}}},t._getAttachment=function(S,O,k,T,C){var w;if(T.ctx)w=T.ctx;else{var R=ga(i,[or,Vr,qo],"readonly");if(R.error)return C(R.error);w=R.txn}var I=k.digest,$=k.content_type;w.objectStore(qo).get(I).onsuccess=function(U){var G=U.target.result.body;FA(G,$,T.binary,function(Y){C(null,Y)})}},t._info=function(O){var k,T,C=ga(i,[Ci,Vr],"readonly");if(C.error)return O(C.error);var w=C.txn;w.objectStore(Ci).get(Ci).onsuccess=function(R){T=R.target.result.docCount},w.objectStore(Vr).openCursor(null,"prev").onsuccess=function(R){var I=R.target.result;k=I?I.key:0},w.oncomplete=function(){O(null,{doc_count:T,update_seq:k,idb_attachment_format:t._meta.blobSupport?"binary":"base64"})}},t._allDocs=function(O,k){fI(O,i,u(k))},t._changes=function(O){return vI(O,t,r,i)},t._close=function(S){i.close(),Xd.delete(r),S()},t._getRevisionTree=function(S,O){var k=ga(i,[or],"readonly");if(k.error)return O(k.error);var T=k.txn,C=T.objectStore(or).get(S);C.onsuccess=function(w){var R=zc(w.target.result);R?O(null,R.rev_tree):O(St(Ho))}},t._doCompaction=function(S,O,k){var T=[or,Vr,qo,jc],C=ga(i,T,"readwrite");if(C.error)return k(C.error);var w=C.txn,R=w.objectStore(or);R.get(S).onsuccess=function(I){var $=zc(I.target.result);Jc($.rev_tree,function(Y,Z,ee,ae,de){var Q=Z+"-"+ee;O.indexOf(Q)!==-1&&(de.status="missing")}),jA(O,S,w);var U=$.winningRev,G=$.deleted;w.objectStore(or).put(sS($,U,G))},w.onabort=us(k),w.oncomplete=function(){k()}},t._getLocal=function(S,O){var k=ga(i,[as],"readonly");if(k.error)return O(k.error);var T=k.txn,C=T.objectStore(as).get(S);C.onerror=us(O),C.onsuccess=function(w){var R=w.target.result;R?(delete R._doc_id_rev,O(null,R)):O(St(Ho))}},t._putLocal=function(S,O,k){typeof O=="function"&&(k=O,O={}),delete S._revisions;var T=S._rev,C=S._id;T?S._rev="0-"+(parseInt(T.split("-")[1],10)+1):S._rev="0-1";var w=O.ctx,R;if(!w){var I=ga(i,[as],"readwrite");if(I.error)return k(I.error);w=I.txn,w.onerror=us(k),w.oncomplete=function(){R&&k(null,R)}}var $=w.objectStore(as),U;T?(U=$.get(C),U.onsuccess=function(G){var Y=G.target.result;if(!Y||Y._rev!==T)k(St(mh));else{var Z=$.put(S);Z.onsuccess=function(){R={ok:!0,id:S._id,rev:S._rev},O.ctx&&k(null,R)}}}):(U=$.add(S),U.onerror=function(G){k(St(mh)),G.preventDefault(),G.stopPropagation()},U.onsuccess=function(){R={ok:!0,id:S._id,rev:S._rev},O.ctx&&k(null,R)})},t._removeLocal=function(S,O,k){typeof O=="function"&&(k=O,O={});var T=O.ctx;if(!T){var C=ga(i,[as],"readwrite");if(C.error)return k(C.error);T=C.txn,T.oncomplete=function(){w&&k(null,w)}}var w,R=S._id,I=T.objectStore(as),$=I.get(R);$.onerror=us(k),$.onsuccess=function(U){var G=U.target.result;!G||G._rev!==S._rev?k(St(Ho)):(I.delete(R),w={ok:!0,id:R,rev:"0-0"},O.ctx&&k(null,w))}},t._destroy=function(S,O){Sm.removeAllListeners(r);var k=Dw.get(r);k&&k.result&&(k.result.close(),Xd.delete(r));var T=indexedDB.deleteDatabase(r);T.onsuccess=function(){Dw.delete(r),ey()&&r in localStorage&&delete localStorage[r],O(null,{ok:!0})},T.onerror=us(O)};var E=Xd.get(r);if(E)return i=E.idb,t._meta=E.global,hs(function(){n(null,t)});var A=indexedDB.open(r,iI);Dw.set(r,A),A.onupgradeneeded=function(S){var O=S.target.result;if(S.oldVersion<1)return c(O);var k=S.currentTarget.transaction;S.oldVersion<3&&p(O),S.oldVersion<4&&m(O);var T=[f,v,y,b],C=S.oldVersion;function w(){var R=T[C-1];C++,R&&R(k,w)}w()},A.onsuccess=function(S){i=S.target.result,i.onversionchange=function(){i.close(),Xd.delete(r)},i.onabort=function(U){Ko("error","Database has a global failure",U.target.error),a=U.target.error,i.close(),Xd.delete(r)};var O=i.transaction([Ci,aS,or],"readwrite"),k=!1,T,C,w,R;function I(){typeof w>"u"||!k||(t._meta={name:r,instanceId:R,blobSupport:w},Xd.set(r,{idb:i,global:t._meta}),n(null,t))}function $(){if(!(typeof C>"u"||typeof T>"u")){var U=r+"_id";U in T?R=T[U]:T[U]=R=Uy(),T.docCount=C,O.objectStore(Ci).put(T)}}O.objectStore(Ci).get(Ci).onsuccess=function(U){T=U.target.result||{id:Ci},$()},hI(O,function(U){C=U,$()}),Pw||(Pw=dI(O)),Pw.then(function(U){w=U,I()}),O.oncomplete=function(){k=!0,I()},O.onabort=us(n)},A.onerror=function(S){var O=S.target.error&&S.target.error.message;O?O.indexOf("stored database is a higher version")!==-1&&(O=new Error('This DB was created with the newer "indexeddb" adapter, but you are trying to open it with the older "idb" adapter')):O="Failed to open indexedDB, are you in private browsing mode?",Ko("error",O),n(St(mC,O))}}HA.valid=function(){try{return typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}};function yI(t){t.adapter("idb",HA,!0)}function _I(t,e){return new Promise(function(n,r){var i=0,a=0,u=0,c=t.length,f;function p(){i++,t[a++]().then(m,y)}function v(){++u===c?f?r(f):n():b()}function m(){i--,v()}function y(E){i--,f=f||E,v()}function b(){for(;i<e&&a<c;)p()}b()})}const wI=25,SI=50,u0=5e3,CI=1e4;let Lw={};function Mw(t){let e=t.doc||t.ok,n=e&&e._attachments;n&&Object.keys(n).forEach(function(r){let i=n[r];i.data=SC(i.data,i.content_type)})}function Rc(t){return/^_design/.test(t)?"_design/"+encodeURIComponent(t.slice(8)):/^_local/.test(t)?"_local/"+encodeURIComponent(t.slice(7)):encodeURIComponent(t)}function WE(t){return!t._attachments||!Object.keys(t._attachments)?Promise.resolve():Promise.all(Object.keys(t._attachments).map(function(e){let n=t._attachments[e];if(n.data&&typeof n.data!="string")return new Promise(function(r){CC(n.data,r)}).then(function(r){n.data=r})}))}function bI(t){if(!t.prefix)return!1;let e=yA(t.prefix).protocol;return e==="http"||e==="https"}function EI(t,e){if(bI(e)){let i=e.name.substr(e.prefix.length);t=e.prefix.replace(/\/?$/,"/")+encodeURIComponent(i)}let n=yA(t);(n.user||n.password)&&(n.auth={username:n.user,password:n.password});let r=n.path.replace(/(^\/|\/$)/g,"").split("/");return n.db=r.pop(),n.db.indexOf("%")===-1&&(n.db=encodeURIComponent(n.db)),n.path=r.join("/"),n}function gr(t,e){return F0(t,t.db+"/"+e)}function F0(t,e){let n=t.path?"/":"";return t.protocol+"://"+t.host+(t.port?":"+t.port:"")+"/"+t.path+n+e}function c0(t){return"?"+Object.keys(t).map(function(e){return e+"="+encodeURIComponent(t[e])}).join("&")}function xI(t){let e=typeof navigator<"u"&&navigator.userAgent?navigator.userAgent.toLowerCase():"",n=e.indexOf("msie")!==-1,r=e.indexOf("trident")!==-1,i=e.indexOf("edge")!==-1,a=!("method"in t)||t.method==="GET";return(n||r||i)&&a}function fS(t,e){let n=this,r=EI(t.name,t),i=gr(r,"");t=_r(t);const a=async function(m,y){if(y=y||{},y.headers=y.headers||new uh,y.credentials="include",t.auth||r.auth){let A=t.auth||r.auth,S=A.username+":"+A.password,O=mv(unescape(encodeURIComponent(S)));y.headers.set("Authorization","Basic "+O)}let b=t.headers||{};return Object.keys(b).forEach(function(A){y.headers.append(A,b[A])}),xI(y)&&(m+=(m.indexOf("?")===-1?"?":"&")+"_nonce="+Date.now()),await(t.fetch||RA)(m,y)};function u(m,y){return Gn(m,function(...b){p().then(function(){return y.apply(this,b)}).catch(function(E){b.pop()(E)})}).bind(n)}async function c(m,y){let b={};y=y||{},y.headers=y.headers||new uh,y.headers.get("Content-Type")||y.headers.set("Content-Type","application/json"),y.headers.get("Accept")||y.headers.set("Accept","application/json");const E=await a(m,y);b.ok=E.ok,b.status=E.status;const A=await E.json();if(b.data=A,!b.ok)throw b.data.status=b.status,vh(b.data);return Array.isArray(b.data)&&(b.data=b.data.map(function(S){return S.error||S.missing?vh(S):S})),b}let f;async function p(){return t.skip_setup?Promise.resolve():f||(f=c(i).catch(function(m){return m&&m.status&&m.status===404?(J1(404,"PouchDB is just detecting if the remote exists."),c(i,{method:"PUT"})):Promise.reject(m)}).catch(function(m){return m&&m.status&&m.status===412?!0:Promise.reject(m)}),f.catch(function(){f=null}),f)}hs(function(){e(null,n)}),n._remote=!0,n.type=function(){return"http"},n.id=u("id",async function(m){let y;try{y=await(await a(F0(r,""))).json()}catch{y={}}let b=y&&y.uuid?y.uuid+r.db:gr(r,"");m(null,b)}),n.compact=u("compact",async function(m,y){typeof m=="function"&&(y=m,m={}),m=_r(m),await c(gr(r,"_compact"),{method:"POST"});function b(){n.info(function(E,A){A&&!A.compact_running?y(null,{ok:!0}):setTimeout(b,m.interval||200)})}b()}),n.bulkGet=Gn("bulkGet",function(m,y){let b=this;async function E(k){let T={};m.revs&&(T.revs=!0),m.attachments&&(T.attachments=!0),m.latest&&(T.latest=!0);try{const C=await c(gr(r,"_bulk_get"+c0(T)),{method:"POST",body:JSON.stringify({docs:m.docs})});m.attachments&&m.binary&&C.data.results.forEach(function(w){w.docs.forEach(Mw)}),k(null,C.data)}catch(C){k(C)}}function A(){let k=SI,T=Math.ceil(m.docs.length/k),C=0,w=new Array(T);function R(I){return function($,U){w[I]=U.results,++C===T&&y(null,{results:ty(w)})}}for(let I=0;I<T;I++){let $=pv(m,["revs","attachments","binary","latest"]);$.docs=m.docs.slice(I*k,Math.min(m.docs.length,(I+1)*k)),hA(b,$,R(I))}}let S=F0(r,""),O=Lw[S];typeof O!="boolean"?E(function(k,T){k?(Lw[S]=!1,J1(k.status,"PouchDB is just detecting if the remote supports the _bulk_get API."),A()):(Lw[S]=!0,y(null,T))}):O?E(y):A()}),n._info=async function(m){try{await p();const b=await(await a(gr(r,""))).json();b.host=gr(r,""),m(null,b)}catch(y){m(y)}},n.fetch=async function(m,y){await p();const b=m.substring(0,1)==="/"?F0(r,m.substring(1)):gr(r,m);return a(b,y)},n.get=u("get",async function(m,y,b){typeof y=="function"&&(b=y,y={}),y=_r(y);let E={};y.revs&&(E.revs=!0),y.revs_info&&(E.revs_info=!0),y.latest&&(E.latest=!0),y.open_revs&&(y.open_revs!=="all"&&(y.open_revs=JSON.stringify(y.open_revs)),E.open_revs=y.open_revs),y.rev&&(E.rev=y.rev),y.conflicts&&(E.conflicts=y.conflicts),y.update_seq&&(E.update_seq=y.update_seq),m=Rc(m);function A(k){let T=k._attachments,C=T&&Object.keys(T);if(!T||!C.length)return;async function w(I){const $=T[I],U=Rc(k._id)+"/"+v(I)+"?rev="+k._rev,G=await a(gr(r,U));let Y;"buffer"in G?Y=await G.buffer():Y=await G.blob();let Z;if(y.binary){let ee=Object.getOwnPropertyDescriptor(Y.__proto__,"type");(!ee||ee.set)&&(Y.type=$.content_type),Z=Y}else Z=await new Promise(function(ee){CC(Y,ee)});delete $.stub,delete $.length,$.data=Z}let R=C.map(function(I){return function(){return w(I)}});return _I(R,5)}function S(k){return Array.isArray(k)?Promise.all(k.map(function(T){if(T.ok)return A(T.ok)})):A(k)}const O=gr(r,m+c0(E));try{const k=await c(O);y.attachments&&await S(k.data),b(null,k.data)}catch(k){k.docId=m,b(k)}}),n.remove=u("remove",async function(m,y,b,E){let A;typeof y=="string"?(A={_id:m,_rev:y},typeof b=="function"&&(E=b,b={})):(A=m,typeof y=="function"?(E=y,b={}):(E=b,b=y));const S=A._rev||b.rev,O=gr(r,Rc(A._id))+"?rev="+S;try{const k=await c(O,{method:"DELETE"});E(null,k.data)}catch(k){E(k)}});function v(m){return m.split("/").map(encodeURIComponent).join("/")}n.getAttachment=u("getAttachment",async function(m,y,b,E){typeof b=="function"&&(E=b,b={});const A=b.rev?"?rev="+b.rev:"",S=gr(r,Rc(m))+"/"+v(y)+A;let O;try{const T=await a(S,{method:"GET"});if(!T.ok)throw T;O=T.headers.get("content-type");let C;if(typeof process<"u"&&!process.browser&&typeof T.buffer=="function"?C=await T.buffer():C=await T.blob(),typeof process<"u"&&!process.browser){var k=Object.getOwnPropertyDescriptor(C.__proto__,"type");(!k||k.set)&&(C.type=O)}E(null,C)}catch(T){E(T)}}),n.removeAttachment=u("removeAttachment",async function(m,y,b,E){const A=gr(r,Rc(m)+"/"+v(y))+"?rev="+b;try{const S=await c(A,{method:"DELETE"});E(null,S.data)}catch(S){E(S)}}),n.putAttachment=u("putAttachment",async function(m,y,b,E,A,S){typeof A=="function"&&(S=A,A=E,E=b,b=null);const O=Rc(m)+"/"+v(y);let k=gr(r,O);if(b&&(k+="?rev="+b),typeof E=="string"){let T;try{T=yC(E)}catch{return S(St(mA,"Attachment is not a valid base64 string"))}E=T?wC(T,A):""}try{const T=await c(k,{headers:new uh({"Content-Type":A}),method:"PUT",body:E});S(null,T.data)}catch(T){S(T)}}),n._bulkDocs=async function(m,y,b){m.new_edits=y.new_edits;try{await p(),await Promise.all(m.docs.map(WE));const E=await c(gr(r,"_bulk_docs"),{method:"POST",body:JSON.stringify(m)});b(null,E.data)}catch(E){b(E)}},n._put=async function(m,y,b){try{await p(),await WE(m);const E=await c(gr(r,Rc(m._id)),{method:"PUT",body:JSON.stringify(m)});b(null,E.data)}catch(E){E.docId=m&&m._id,b(E)}},n.allDocs=u("allDocs",async function(m,y){typeof m=="function"&&(y=m,m={}),m=_r(m);let b={},E,A="GET";m.conflicts&&(b.conflicts=!0),m.update_seq&&(b.update_seq=!0),m.descending&&(b.descending=!0),m.include_docs&&(b.include_docs=!0),m.attachments&&(b.attachments=!0),m.key&&(b.key=JSON.stringify(m.key)),m.start_key&&(m.startkey=m.start_key),m.startkey&&(b.startkey=JSON.stringify(m.startkey)),m.end_key&&(m.endkey=m.end_key),m.endkey&&(b.endkey=JSON.stringify(m.endkey)),typeof m.inclusive_end<"u"&&(b.inclusive_end=!!m.inclusive_end),typeof m.limit<"u"&&(b.limit=m.limit),typeof m.skip<"u"&&(b.skip=m.skip);let S=c0(b);typeof m.keys<"u"&&(A="POST",E={keys:m.keys});try{const O=await c(gr(r,"_all_docs"+S),{method:A,body:JSON.stringify(E)});m.include_docs&&m.attachments&&m.binary&&O.data.rows.forEach(Mw),y(null,O.data)}catch(O){y(O)}}),n._changes=function(m){let y="batch_size"in m?m.batch_size:wI;m=_r(m),m.continuous&&!("heartbeat"in m)&&(m.heartbeat=CI);let b="timeout"in m?m.timeout:30*1e3;"timeout"in m&&m.timeout&&b-m.timeout<u0&&(b=m.timeout+u0),"heartbeat"in m&&m.heartbeat&&b-m.heartbeat<u0&&(b=m.heartbeat+u0);let E={};"timeout"in m&&m.timeout&&(E.timeout=m.timeout);let A=typeof m.limit<"u"?m.limit:!1,S=A;if(m.style&&(E.style=m.style),(m.include_docs||m.filter&&typeof m.filter=="function")&&(E.include_docs=!0),m.attachments&&(E.attachments=!0),m.continuous&&(E.feed="longpoll"),m.seq_interval&&(E.seq_interval=m.seq_interval),m.conflicts&&(E.conflicts=!0),m.descending&&(E.descending=!0),m.update_seq&&(E.update_seq=!0),"heartbeat"in m&&m.heartbeat&&(E.heartbeat=m.heartbeat),m.filter&&typeof m.filter=="string"&&(E.filter=m.filter),m.view&&typeof m.view=="string"&&(E.filter="_view",E.view=m.view),m.query_params&&typeof m.query_params=="object")for(let $ in m.query_params)Object.prototype.hasOwnProperty.call(m.query_params,$)&&(E[$]=m.query_params[$]);let O="GET",k;m.doc_ids?(E.filter="_doc_ids",O="POST",k={doc_ids:m.doc_ids}):m.selector&&(E.filter="_selector",O="POST",k={selector:m.selector});let T=new l4,C;const w=async function($,U){if(m.aborted)return;E.since=$,typeof E.since=="object"&&(E.since=JSON.stringify(E.since)),m.descending?A&&(E.limit=S):E.limit=!A||S>y?y:S;let G=gr(r,"_changes"+c0(E)),Y={signal:T.signal,method:O,body:JSON.stringify(k)};if(C=$,!m.aborted)try{await p();const Z=await c(G,Y);U(null,Z.data)}catch(Z){U(Z)}};let R={results:[]};const I=function($,U){if(m.aborted)return;let G=0;if(U&&U.results){G=U.results.length,R.last_seq=U.last_seq;let Z=null,ee=null;typeof U.pending=="number"&&(Z=U.pending),(typeof R.last_seq=="string"||typeof R.last_seq=="number")&&(ee=R.last_seq),m.query_params,U.results=U.results.filter(function(ae){S--;let de=vC(m)(ae);return de&&(m.include_docs&&m.attachments&&m.binary&&Mw(ae),m.return_docs&&R.results.push(ae),m.onChange(ae,Z,ee)),de})}else if($){m.aborted=!0,m.complete($);return}U&&U.last_seq&&(C=U.last_seq);let Y=A&&S<=0||U&&G<y||m.descending;m.continuous&&!(A&&S<=0)||!Y?hs(function(){w(C,I)}):m.complete(null,R)};return w(m.since||0,I),{cancel:function(){m.aborted=!0,T.abort()}}},n.revsDiff=u("revsDiff",async function(m,y,b){typeof y=="function"&&(b=y,y={});try{const E=await c(gr(r,"_revs_diff"),{method:"POST",body:JSON.stringify(m)});b(null,E.data)}catch(E){b(E)}}),n._close=function(m){m()},n._destroy=async function(m,y){try{const b=await c(gr(r,""),{method:"DELETE"});y(null,b)}catch(b){b.status===404?y(null,{ok:!0}):y(b)}}}fS.valid=function(){return!0};function TI(t){t.adapter("http",fS,!1),t.adapter("https",fS,!1)}class Mc extends Error{constructor(e){super(),this.status=400,this.name="query_parse_error",this.message=e,this.error=!0;try{Error.captureStackTrace(this,Mc)}catch{}}}class Wy extends Error{constructor(e){super(),this.status=404,this.name="not_found",this.message=e,this.error=!0;try{Error.captureStackTrace(this,Wy)}catch{}}}class Vy extends Error{constructor(e){super(),this.status=500,this.name="invalid_value",this.message=e,this.error=!0;try{Error.captureStackTrace(this,Vy)}catch{}}}function qA(t,e){return e&&t.then(function(n){hs(function(){e(null,n)})},function(n){hs(function(){e(n)})}),t}function OI(t){return function(...e){var n=e.pop(),r=t.apply(this,e);return typeof n=="function"&&qA(r,n),r}}function AI(t,e){return t.then(function(n){return e().then(function(){return n})},function(n){return e().then(function(){throw n})})}function Iw(t,e){return function(){var n=arguments,r=this;return t.add(function(){return e.apply(r,n)})}}function VE(t){var e=new ph(t),n=new Array(e.size),r=-1;return e.forEach(function(i){n[++r]=i}),n}function Fw(t){var e=new Array(t.size),n=-1;return t.forEach(function(r,i){e[++n]=i}),e}function GE(t){var e="builtin "+t+" function requires map values to be numbers or number arrays";return new Vy(e)}function dS(t){for(var e=0,n=0,r=t.length;n<r;n++){var i=t[n];if(typeof i!="number")if(Array.isArray(i)){e=typeof e=="number"?[e]:e;for(var a=0,u=i.length;a<u;a++){var c=i[a];if(typeof c!="number")throw GE("_sum");typeof e[a]>"u"?e.push(c):e[a]+=c}}else throw GE("_sum");else typeof e=="number"?e+=i:e[0]+=i}return e}var RI=Ko.bind(null,"log"),kI=Array.isArray,NI=JSON.parse;function UA(t,e){return gC("return ("+t.replace(/;\s*$/,"")+");",{emit:e,sum:dS,log:RI,isArray:kI,toJSON:NI})}class hS{constructor(){this.promise=new Promise(function(e){e()})}add(e){return this.promise=this.promise.catch(function(){}).then(function(){return e()}),this.promise}finish(){return this.promise}}function BE(t){if(!t)return"undefined";switch(typeof t){case"function":return t.toString();case"string":return t.toString();default:return JSON.stringify(t)}}function PI(t,e){return BE(t)+BE(e)+"undefined"}async function KE(t,e,n,r,i,a){const u=PI(n,r);let c;if(!i&&(c=t._cachedViews=t._cachedViews||{},c[u]))return c[u];const f=t.info().then(async function(p){const v=p.db_name+"-mrview-"+(i?"temp":SA(u));function m(S){S.views=S.views||{};let O=e;O.indexOf("/")===-1&&(O=e+"/"+e);const k=S.views[O]=S.views[O]||{};if(!k[v])return k[v]=!0,S}await ny(t,"_local/"+a,m);const b=(await t.registerDependentDatabase(v)).db;b.auto_compaction=!0;const E={name:v,db:b,sourceDB:t,adapter:t.adapter,mapFun:n,reduceFun:r};let A;try{A=await E.db.get("_local/lastSeq")}catch(S){if(S.status!==404)throw S}return E.seq=A?A.seq:0,c&&E.db.once("destroyed",function(){delete c[u]}),E});return c&&(c[u]=f),f}var XE={},YE=new hS,DI=50;function $w(t){return t.indexOf("/")===-1?[t,t]:t.split("/")}function LI(t){return t.length===1&&/^1-/.test(t[0].rev)}function QE(t,e,n){try{t.emit("error",e)}catch{Ko("error",`The user's map/reduce function threw an uncaught error.
|
|
44
|
+
You can debug this error by doing:
|
|
45
|
+
myDatabase.on('error', function (err) { debugger; });
|
|
46
|
+
Please double-check your map/reduce function.`),Ko("error",e,n)}}function MI(t,e,n,r){function i(z,B,F){try{B(F)}catch(W){QE(z,W,{fun:B,doc:F})}}function a(z,B,F,W,X){try{return{output:B(F,W,X)}}catch(le){return QE(z,le,{fun:B,keys:F,values:W,rereduce:X}),{error:le}}}function u(z,B){const F=Xn(z.key,B.key);return F!==0?F:Xn(z.value,B.value)}function c(z,B,F){return F=F||0,typeof B=="number"?z.slice(F,B+F):F>0?z.slice(F):z}function f(z){const B=z.value;return B&&typeof B=="object"&&B._id||z.id}function p(z){z.rows.forEach(function(B){const F=B.doc&&B.doc._attachments;F&&Object.keys(F).forEach(function(W){const X=F[W];F[W].data=SC(X.data,X.content_type)})})}function v(z){return function(B){return z.include_docs&&z.attachments&&z.binary&&p(B),B}}function m(z,B,F,W){let X=B[z];typeof X<"u"&&(W&&(X=encodeURIComponent(JSON.stringify(X))),F.push(z+"="+X))}function y(z){if(typeof z<"u"){const B=Number(z);return!isNaN(B)&&B===parseInt(z,10)?B:z}}function b(z){return z.group_level=y(z.group_level),z.limit=y(z.limit),z.skip=y(z.skip),z}function E(z){if(z){if(typeof z!="number")return new Mc(`Invalid value for integer: "${z}"`);if(z<0)return new Mc(`Invalid value for positive integer: "${z}"`)}}function A(z,B){const F=z.descending?"endkey":"startkey",W=z.descending?"startkey":"endkey";if(typeof z[F]<"u"&&typeof z[W]<"u"&&Xn(z[F],z[W])>0)throw new Mc("No rows can match your key range, reverse your start_key and end_key or set {descending : true}");if(B.reduce&&z.reduce!==!1){if(z.include_docs)throw new Mc("{include_docs:true} is invalid for reduce");if(z.keys&&z.keys.length>1&&!z.group&&!z.group_level)throw new Mc("Multi-key fetches for reduce views must use {group: true}")}["group_level","limit","skip"].forEach(function(X){const le=E(z[X]);if(le)throw le})}async function S(z,B,F){let W=[],X,le="GET",ce;if(m("reduce",F,W),m("include_docs",F,W),m("attachments",F,W),m("limit",F,W),m("descending",F,W),m("group",F,W),m("group_level",F,W),m("skip",F,W),m("stale",F,W),m("conflicts",F,W),m("startkey",F,W,!0),m("start_key",F,W,!0),m("endkey",F,W,!0),m("end_key",F,W,!0),m("inclusive_end",F,W),m("key",F,W,!0),m("update_seq",F,W),W=W.join("&"),W=W===""?"":"?"+W,typeof F.keys<"u"){const J=`keys=${encodeURIComponent(JSON.stringify(F.keys))}`;J.length+W.length+1<=2e3?W+=(W[0]==="?"?"&":"?")+J:(le="POST",typeof B=="string"?X={keys:F.keys}:B.keys=F.keys)}if(typeof B=="string"){const ie=$w(B),J=await z.fetch("_design/"+ie[0]+"/_view/"+ie[1]+W,{headers:new uh({"Content-Type":"application/json"}),method:le,body:JSON.stringify(X)});ce=J.ok;const be=await J.json();if(!ce)throw be.status=J.status,vh(be);return be.rows.forEach(function(Ee){if(Ee.value&&Ee.value.error&&Ee.value.error==="builtin_reduce_error")throw new Error(Ee.reason)}),new Promise(function(Ee){Ee(be)}).then(v(F))}X=X||{},Object.keys(B).forEach(function(ie){Array.isArray(B[ie])?X[ie]=B[ie]:X[ie]=B[ie].toString()});const oe=await z.fetch("_temp_view"+W,{headers:new uh({"Content-Type":"application/json"}),method:"POST",body:JSON.stringify(X)});ce=oe.ok;const q=await oe.json();if(!ce)throw q.status=oe.status,vh(q);return new Promise(function(ie){ie(q)}).then(v(F))}function O(z,B,F){return new Promise(function(W,X){z._query(B,F,function(le,ce){if(le)return X(le);W(ce)})})}function k(z){return new Promise(function(B,F){z._viewCleanup(function(W,X){if(W)return F(W);B(X)})})}function T(z){return function(B){if(B.status===404)return z;throw B}}async function C(z,B,F){const W="_local/doc_"+z,X={_id:W,keys:[]},le=F.get(z),ce=le[0],oe=le[1];function q(){return LI(oe)?Promise.resolve(X):B.db.get(W).catch(T(X))}function ie(Re){return Re.keys.length?B.db.allDocs({keys:Re.keys,include_docs:!0}):Promise.resolve({rows:[]})}function J(Re,Me){const qe=[],Je=new ph;for(let Ce=0,ke=Me.rows.length;Ce<ke;Ce++){const Fe=Me.rows[Ce].doc;if(Fe&&(qe.push(Fe),Je.add(Fe._id),Fe._deleted=!ce.has(Fe._id),!Fe._deleted)){const Ae=ce.get(Fe._id);"value"in Ae&&(Fe.value=Ae.value)}}const ye=Fw(ce);return ye.forEach(function(Ce){if(!Je.has(Ce)){const ke={_id:Ce},xe=ce.get(Ce);"value"in xe&&(ke.value=xe.value),qe.push(ke)}}),Re.keys=VE(ye.concat(Re.keys)),qe.push(Re),qe}const be=await q(),Ee=await ie(be);return J(be,Ee)}function w(z){return z.sourceDB.get("_local/purges").then(function(B){const F=B.purgeSeq;return z.db.get("_local/purgeSeq").then(function(W){return W._rev}).catch(function(W){if(W.status!==404)throw W}).then(function(W){return z.db.put({_id:"_local/purgeSeq",_rev:W,purgeSeq:F})})}).catch(function(B){if(B.status!==404)throw B})}function R(z,B,F){var W="_local/lastSeq";return z.db.get(W).catch(T({_id:W,seq:0})).then(function(X){var le=Fw(B);return Promise.all(le.map(function(ce){return C(ce,z,B)})).then(function(ce){var oe=ty(ce);return X.seq=F,oe.push(X),z.db.bulkDocs({docs:oe})}).then(()=>w(z))})}function I(z){const B=typeof z=="string"?z:z.name;let F=XE[B];return F||(F=XE[B]=new hS),F}async function $(z,B){return Iw(I(z),function(){return U(z,B)})()}async function U(z,B){let F,W,X;function le(Ce,ke){const xe={id:W._id,key:ef(Ce)};typeof ke<"u"&&ke!==null&&(xe.value=ef(ke)),F.push(xe)}const ce=e(z.mapFun,le);let oe=z.seq||0;function q(){return z.sourceDB.info().then(function(Ce){X=z.sourceDB.activeTasks.add({name:"view_indexing",total_items:Ce.update_seq-oe})})}function ie(Ce,ke){return function(){return R(z,Ce,ke)}}let J=0;const be={view:z.name,indexed_docs:J};z.sourceDB.emit("indexing",be);const Ee=new hS;async function Re(){const Ce=await z.sourceDB.changes({return_docs:!0,conflicts:!0,include_docs:!0,style:"all_docs",since:oe,limit:B.changes_batch_size}),ke=await Me();return qe(Ce,ke)}function Me(){return z.db.get("_local/purgeSeq").then(function(Ce){return Ce.purgeSeq}).catch(function(Ce){if(Ce&&Ce.status!==404)throw Ce;return-1}).then(function(Ce){return z.sourceDB.get("_local/purges").then(function(ke){const xe=ke.purges.filter(function(Ae,ze){return ze>Ce}).map(Ae=>Ae.docId),Fe=xe.filter(function(Ae,ze){return xe.indexOf(Ae)===ze});return Promise.all(Fe.map(function(Ae){return z.sourceDB.get(Ae).then(function(ze){return{docId:Ae,doc:ze}}).catch(function(ze){if(ze.status!==404)throw ze;return{docId:Ae}})}))}).catch(function(ke){if(ke&&ke.status!==404)throw ke;return[]})})}function qe(Ce,ke){var xe=Ce.results;if(!xe.length&&!ke.length)return;for(let ze of ke)if(xe.findIndex(function(ct){return ct.id===ze.docId})<0){const ct={_id:ze.docId,doc:{_id:ze.docId,_deleted:1},changes:[]};ze.doc&&(ct.doc=ze.doc,ct.changes.push({rev:ze.doc._rev})),xe.push(ct)}var Fe=Je(xe);Ee.add(ie(Fe,oe)),J=J+xe.length;const Ae={view:z.name,last_seq:Ce.last_seq,results_count:xe.length,indexed_docs:J};if(z.sourceDB.emit("indexing",Ae),z.sourceDB.activeTasks.update(X,{completed_items:J}),!(xe.length<B.changes_batch_size))return Re()}function Je(Ce){const ke=new Yi;for(let xe=0,Fe=Ce.length;xe<Fe;xe++){const Ae=Ce[xe];if(Ae.doc._id[0]!=="_"){F=[],W=Ae.doc,W._deleted||i(z.sourceDB,ce,W),F.sort(u);const ze=ye(F);ke.set(Ae.doc._id,[ze,Ae.changes])}oe=Ae.seq}return ke}function ye(Ce){const ke=new Yi;let xe;for(let Fe=0,Ae=Ce.length;Fe<Ae;Fe++){const ze=Ce[Fe],nt=[ze.key,ze.id];Fe>0&&Xn(ze.key,xe)===0&&nt.push(Fe),ke.set(va(nt),ze),xe=ze.key}return ke}try{await q(),await Re(),await Ee.finish(),z.seq=oe,z.sourceDB.activeTasks.remove(X)}catch(Ce){z.sourceDB.activeTasks.remove(X,Ce)}}function G(z,B,F){F.group_level===0&&delete F.group_level;const W=F.group||F.group_level,X=n(z.reduceFun),le=[],ce=isNaN(F.group_level)?Number.POSITIVE_INFINITY:F.group_level;B.forEach(function(oe){const q=le[le.length-1];let ie=W?oe.key:null;if(W&&Array.isArray(ie)&&(ie=ie.slice(0,ce)),q&&Xn(q.groupKey,ie)===0){q.keys.push([oe.key,oe.id]),q.values.push(oe.value);return}le.push({keys:[[oe.key,oe.id]],values:[oe.value],groupKey:ie})}),B=[];for(let oe=0,q=le.length;oe<q;oe++){const ie=le[oe],J=a(z.sourceDB,X,ie.keys,ie.values,!1);if(J.error&&J.error instanceof Vy)throw J.error;B.push({value:J.error?null:J.output,key:ie.groupKey})}return{rows:c(B,F.limit,F.skip)}}function Y(z,B){return Iw(I(z),function(){return Z(z,B)})()}async function Z(z,B){let F;const W=z.reduceFun&&B.reduce!==!1,X=B.skip||0;typeof B.keys<"u"&&!B.keys.length&&(B.limit=0,delete B.keys);async function le(oe){oe.include_docs=!0;const q=await z.db.allDocs(oe);return F=q.total_rows,q.rows.map(function(ie){if("value"in ie.doc&&typeof ie.doc.value=="object"&&ie.doc.value!==null){const be=Object.keys(ie.doc.value).sort(),Ee=["id","key","value"];if(!(be<Ee||be>Ee))return ie.doc.value}const J=T4(ie.doc._id);return{key:J[0],id:J[1],value:"value"in ie.doc?ie.doc.value:null}})}async function ce(oe){let q;if(W?q=G(z,oe,B):typeof B.keys>"u"?q={total_rows:F,offset:X,rows:oe}:q={total_rows:F,offset:X,rows:c(oe,B.limit,B.skip)},B.update_seq&&(q.update_seq=z.seq),B.include_docs){const J=VE(oe.map(f)),be=await z.sourceDB.allDocs({keys:J,include_docs:!0,conflicts:B.conflicts,attachments:B.attachments,binary:B.binary});var ie=new Yi;return be.rows.forEach(function(Ee){ie.set(Ee.id,Ee.doc)}),oe.forEach(function(Ee){var Re=f(Ee),Me=ie.get(Re);Me&&(Ee.doc=Me)}),q}else return q}if(typeof B.keys<"u"){const q=B.keys.map(function(be){const Ee={startkey:va([be]),endkey:va([be,{}])};return B.update_seq&&(Ee.update_seq=!0),le(Ee)}),ie=await Promise.all(q),J=ty(ie);return ce(J)}else{const oe={descending:B.descending};B.update_seq&&(oe.update_seq=!0);let q,ie;if("start_key"in B&&(q=B.start_key),"startkey"in B&&(q=B.startkey),"end_key"in B&&(ie=B.end_key),"endkey"in B&&(ie=B.endkey),typeof q<"u"&&(oe.startkey=B.descending?va([q,{}]):va([q])),typeof ie<"u"){let be=B.inclusive_end!==!1;B.descending&&(be=!be),oe.endkey=va(be?[ie,{}]:[ie])}if(typeof B.key<"u"){const be=va([B.key]),Ee=va([B.key,{}]);oe.descending?(oe.endkey=be,oe.startkey=Ee):(oe.startkey=be,oe.endkey=Ee)}W||(typeof B.limit=="number"&&(oe.limit=B.limit),oe.skip=X);const J=await le(oe);return ce(J)}}async function ee(z){return(await z.fetch("_view_cleanup",{headers:new uh({"Content-Type":"application/json"}),method:"POST"})).json()}async function ae(z){try{const B=await z.get("_local/"+t),F=new Yi;Object.keys(B.views).forEach(function(q){const ie=$w(q),J="_design/"+ie[0],be=ie[1];let Ee=F.get(J);Ee||(Ee=new ph,F.set(J,Ee)),Ee.add(be)});const W={keys:Fw(F),include_docs:!0},X=await z.allDocs(W),le={};X.rows.forEach(function(q){const ie=q.key.substring(8);F.get(q.key).forEach(function(J){let be=ie+"/"+J;B.views[be]||(be=J);const Ee=Object.keys(B.views[be]),Re=q.doc&&q.doc.views&&q.doc.views[J];Ee.forEach(function(Me){le[Me]=le[Me]||Re})})});const oe=Object.keys(le).filter(function(q){return!le[q]}).map(function(q){return Iw(I(q),function(){return new z.constructor(q,z.__opts).destroy()})()});return Promise.all(oe).then(function(){return{ok:!0}})}catch(B){if(B.status===404)return{ok:!0};throw B}}async function de(z,B,F){if(typeof z._query=="function")return O(z,B,F);if(cs(z))return S(z,B,F);const W={changes_batch_size:z.__opts.view_update_changes_batch_size||DI};if(typeof B!="string")return A(F,B),YE.add(async function(){const X=await KE(z,"temp_view/temp_view",B.map,B.reduce,!0,t);return AI($(X,W).then(function(){return Y(X,F)}),function(){return X.db.destroy()})}),YE.finish();{const X=B,le=$w(X),ce=le[0],oe=le[1],q=await z.get("_design/"+ce);if(B=q.views&&q.views[oe],!B)throw new Wy(`ddoc ${q._id} has no view named ${oe}`);r(q,oe),A(F,B);const ie=await KE(z,X,B.map,B.reduce,!1,t);return F.stale==="ok"||F.stale==="update_after"?(F.stale==="update_after"&&hs(function(){$(ie,W)}),Y(ie,F)):(await $(ie,W),Y(ie,F))}}function Q(z,B,F){const W=this;typeof B=="function"&&(F=B,B={}),B=B?b(B):{},typeof z=="function"&&(z={map:z});const X=Promise.resolve().then(function(){return de(W,z,B)});return qA(X,F),X}const re=OI(function(){const z=this;return typeof z._viewCleanup=="function"?k(z):cs(z)?ee(z):ae(z)});return{query:Q,viewCleanup:re}}var jw={_sum:function(t,e){return dS(e)},_count:function(t,e){return e.length},_stats:function(t,e){function n(r){for(var i=0,a=0,u=r.length;a<u;a++){var c=r[a];i+=c*c}return i}return{sum:dS(e),min:Math.min.apply(null,e),max:Math.max.apply(null,e),count:e.length,sumsqr:n(e)}}};function II(t){if(/^_sum/.test(t))return jw._sum;if(/^_count/.test(t))return jw._count;if(/^_stats/.test(t))return jw._stats;if(/^_/.test(t))throw new Error(t+" is not a supported reduce function.")}function FI(t,e){if(typeof t=="function"&&t.length===2){var n=t;return function(r){return n(r,e)}}else return UA(t.toString(),e)}function $I(t){var e=t.toString(),n=II(e);return n||UA(e)}function jI(t,e){var n=t.views&&t.views[e];if(typeof n.map!="string")throw new Wy("ddoc "+t._id+" has no string view named "+e+", instead found object of type: "+typeof n.map)}var zI="mrviews",WA=MI(zI,FI,$I,jI);function HI(t,e,n){return WA.query.call(this,t,e,n)}function qI(t){return WA.viewCleanup.call(this,t)}var UI={query:HI,viewCleanup:qI};function WI(t,e,n){return!t._attachments||!t._attachments[n]||t._attachments[n].digest!==e._attachments[n].digest}function ZE(t,e){var n=Object.keys(e._attachments);return Promise.all(n.map(function(r){return t.getAttachment(e._id,r,{rev:e._rev})}))}function VI(t,e,n){var r=cs(e)&&!cs(t),i=Object.keys(n._attachments);return r?t.get(n._id).then(function(a){return Promise.all(i.map(function(u){return WI(a,n,u)?e.getAttachment(n._id,u):t.getAttachment(a._id,u)}))}).catch(function(a){if(a.status!==404)throw a;return ZE(e,n)}):ZE(e,n)}function GI(t){var e=[];return Object.keys(t).forEach(function(n){var r=t[n].missing;r.forEach(function(i){e.push({id:n,rev:i})})}),{docs:e,revs:!0,latest:!0}}function BI(t,e,n,r){n=_r(n);var i=[],a=!0;function u(){var f=GI(n);if(f.docs.length)return t.bulkGet(f).then(function(p){if(r.cancelled)throw new Error("cancelled");return Promise.all(p.results.map(function(v){return Promise.all(v.docs.map(function(m){var y=m.ok;return m.error&&(a=!1),!y||!y._attachments?y:VI(e,t,y).then(function(b){var E=Object.keys(y._attachments);return b.forEach(function(A,S){var O=y._attachments[E[S]];delete O.stub,delete O.length,O.data=A}),y})}))})).then(function(v){i=i.concat(ty(v).filter(Boolean))})})}function c(){return{ok:a,docs:i}}return Promise.resolve().then(u).then(c)}var JE=1,ex="pouchdb",KI=5,ss=0;function pS(t,e,n,r,i){return t.get(e).catch(function(a){if(a.status===404)return(t.adapter==="http"||t.adapter==="https")&&J1(404,"PouchDB is just checking if a remote checkpoint exists."),{session_id:r,_id:e,history:[],replicator:ex,version:JE};throw a}).then(function(a){if(!i.cancelled&&a.last_seq!==n)return a.history=(a.history||[]).filter(function(u){return u.session_id!==r}),a.history.unshift({last_seq:n,session_id:r}),a.history=a.history.slice(0,KI),a.version=JE,a.replicator=ex,a.session_id=r,a.last_seq=n,t.put(a).catch(function(u){if(u.status===409)return pS(t,e,n,r,i);throw u})})}class tx{constructor(e,n,r,i,a){this.src=e,this.target=n,this.id=r,this.returnValue=i,this.opts=a||{}}writeCheckpoint(e,n){var r=this;return this.updateTarget(e,n).then(function(){return r.updateSource(e,n)})}updateTarget(e,n){return this.opts.writeTargetCheckpoint?pS(this.target,this.id,e,n,this.returnValue):Promise.resolve(!0)}updateSource(e,n){if(this.opts.writeSourceCheckpoint){var r=this;return pS(this.src,this.id,e,n,this.returnValue).catch(function(i){if(rx(i))return r.opts.writeSourceCheckpoint=!1,!0;throw i})}else return Promise.resolve(!0)}getCheckpoint(){var e=this;return e.opts&&e.opts.writeSourceCheckpoint&&!e.opts.writeTargetCheckpoint?e.src.get(e.id).then(function(n){return n.last_seq||ss}).catch(function(n){if(n.status!==404)throw n;return ss}):e.target.get(e.id).then(function(n){return e.opts&&e.opts.writeTargetCheckpoint&&!e.opts.writeSourceCheckpoint?n.last_seq||ss:e.src.get(e.id).then(function(r){if(n.version!==r.version)return ss;var i;return n.version?i=n.version.toString():i="undefined",i in nx?nx[i](n,r):ss},function(r){if(r.status===404&&n.last_seq)return e.src.put({_id:e.id,last_seq:ss}).then(function(){return ss},function(i){return rx(i)?(e.opts.writeSourceCheckpoint=!1,n.last_seq):ss});throw r})}).catch(function(n){if(n.status!==404)throw n;return ss})}}var nx={undefined:function(t,e){return Xn(t.last_seq,e.last_seq)===0?e.last_seq:0},1:function(t,e){return XI(e,t).last_seq}};function XI(t,e){return t.session_id===e.session_id?{last_seq:t.last_seq,history:t.history}:VA(t.history,e.history)}function VA(t,e){var n=t[0],r=t.slice(1),i=e[0],a=e.slice(1);if(!n||e.length===0)return{last_seq:ss,history:[]};var u=n.session_id;if(mS(u,e))return{last_seq:n.last_seq,history:t};var c=i.session_id;return mS(c,r)?{last_seq:i.last_seq,history:a}:VA(r,a)}function mS(t,e){var n=e[0],r=e.slice(1);return!t||e.length===0?!1:t===n.session_id?!0:mS(t,r)}function rx(t){return typeof t.status=="number"&&Math.floor(t.status/100)===4}function GA(t,e,n,r,i){return this instanceof tx?GA:new tx(t,e,n,r,i)}var ix=0;function YI(t,e,n,r){if(t.retry===!1){e.emit("error",n),e.removeAllListeners();return}if(typeof t.back_off_function!="function"&&(t.back_off_function=yM),e.emit("requestError",n),e.state==="active"||e.state==="pending"){e.emit("paused",n),e.state="stopped";var i=function(){t.current_back_off=ix},a=function(){e.removeListener("active",i)};e.once("paused",a),e.once("active",i)}t.current_back_off=t.current_back_off||ix,t.current_back_off=t.back_off_function(t.current_back_off),setTimeout(r,t.current_back_off)}function QI(t){return Object.keys(t).sort(Xn).reduce(function(e,n){return e[n]=t[n],e},{})}function ZI(t,e,n){var r=n.doc_ids?n.doc_ids.sort(Xn):"",i=n.filter?n.filter.toString():"",a="",u="",c="";return n.selector&&(c=JSON.stringify(n.selector)),n.filter&&n.query_params&&(a=JSON.stringify(QI(n.query_params))),n.filter&&n.filter==="_view"&&(u=n.view.toString()),Promise.all([t.id(),e.id()]).then(function(f){var p=f[0]+f[1]+i+u+a+r+c;return new Promise(function(v){bC(p,v)})}).then(function(f){return f=f.replace(/\//g,".").replace(/\+/g,"_"),"_local/"+f})}function BA(t,e,n,r,i){var a=[],u,c={seq:0,changes:[],docs:[]},f=!1,p=!1,v=!1,m=0,y=0,b=n.continuous||n.live||!1,E=n.batch_size||100,A=n.batches_limit||10,S=n.style||"all_docs",O=!1,k=n.doc_ids,T=n.selector,C,w,R=[],I=Uy(),$;i=i||{ok:!0,start_time:new Date().toISOString(),docs_read:0,docs_written:0,doc_write_failures:0,errors:[]};var U={};r.ready(t,e);function G(){return w?Promise.resolve():ZI(t,e,n).then(function(q){C=q;var ie={};n.checkpoint===!1?ie={writeSourceCheckpoint:!1,writeTargetCheckpoint:!1}:n.checkpoint==="source"?ie={writeSourceCheckpoint:!0,writeTargetCheckpoint:!1}:n.checkpoint==="target"?ie={writeSourceCheckpoint:!1,writeTargetCheckpoint:!0}:ie={writeSourceCheckpoint:!0,writeTargetCheckpoint:!0},w=new GA(t,e,C,r,ie)})}function Y(){if(R=[],u.docs.length!==0){var q=u.docs,ie={timeout:n.timeout};return e.bulkDocs({docs:q,new_edits:!1},ie).then(function(J){if(r.cancelled)throw z(),new Error("cancelled");var be=Object.create(null);J.forEach(function(Re){Re.error&&(be[Re.id]=Re)});var Ee=Object.keys(be).length;i.doc_write_failures+=Ee,i.docs_written+=q.length-Ee,q.forEach(function(Re){var Me=be[Re._id];if(Me){i.errors.push(Me);var qe=(Me.name||"").toLowerCase();if(qe==="unauthorized"||qe==="forbidden")r.emit("denied",_r(Me));else throw Me}else R.push(Re)})},function(J){throw i.doc_write_failures+=q.length,J})}}function Z(){if(u.error)throw new Error("There was a problem getting docs.");i.last_seq=y=u.seq;var q=_r(i);return R.length&&(q.docs=R,typeof u.pending=="number"&&(q.pending=u.pending,delete u.pending),r.emit("change",q)),f=!0,t.info().then(function(ie){var J=t.activeTasks.get($);if(!(!u||!J)){var be=J.completed_items||0,Ee=parseInt(ie.update_seq,10)-parseInt(m,10);t.activeTasks.update($,{completed_items:be+u.changes.length,total_items:Ee})}}),w.writeCheckpoint(u.seq,I).then(function(){if(r.emit("checkpoint",{checkpoint:u.seq}),f=!1,r.cancelled)throw z(),new Error("cancelled");u=void 0,X()}).catch(function(ie){throw oe(ie),ie})}function ee(){var q={};return u.changes.forEach(function(ie){r.emit("checkpoint",{revs_diff:ie}),ie.id!=="_user/"&&(q[ie.id]=ie.changes.map(function(J){return J.rev}))}),e.revsDiff(q).then(function(ie){if(r.cancelled)throw z(),new Error("cancelled");u.diffs=ie})}function ae(){return BI(t,e,u.diffs,r).then(function(q){u.error=!q.ok,q.docs.forEach(function(ie){delete u.diffs[ie._id],i.docs_read++,u.docs.push(ie)})})}function de(){if(!(r.cancelled||u)){if(a.length===0){Q(!0);return}u=a.shift(),r.emit("checkpoint",{start_next_batch:u.seq}),ee().then(ae).then(Y).then(Z).then(de).catch(function(q){re("batch processing terminated with error",q)})}}function Q(q){if(c.changes.length===0){a.length===0&&!u&&((b&&U.live||p)&&(r.state="pending",r.emit("paused")),p&&z());return}(q||p||c.changes.length>=E)&&(a.push(c),c={seq:0,changes:[],docs:[]},(r.state==="pending"||r.state==="stopped")&&(r.state="active",r.emit("active")),de())}function re(q,ie){v||(ie.message||(ie.message=q),i.ok=!1,i.status="aborting",a=[],c={seq:0,changes:[],docs:[]},z(ie))}function z(q){if(!v&&!(r.cancelled&&(i.status="cancelled",f)))if(i.status=i.status||"complete",i.end_time=new Date().toISOString(),i.last_seq=y,v=!0,t.activeTasks.remove($,q),q){q=St(q),q.result=i;var ie=(q.name||"").toLowerCase();ie==="unauthorized"||ie==="forbidden"?(r.emit("error",q),r.removeAllListeners()):YI(n,r,q,function(){BA(t,e,n,r)})}else r.emit("complete",i),r.removeAllListeners()}function B(q,ie,J){if(r.cancelled)return z();typeof ie=="number"&&(c.pending=ie);var be=vC(n)(q);if(!be){var Ee=t.activeTasks.get($);if(Ee){var Re=Ee.completed_items||0;t.activeTasks.update($,{completed_items:++Re})}return}c.seq=q.seq||J,c.changes.push(q),r.emit("checkpoint",{pending_batch:c.seq}),hs(function(){Q(a.length===0&&U.live)})}function F(q){if(O=!1,r.cancelled)return z();if(q.results.length>0)U.since=q.results[q.results.length-1].seq,X(),Q(!0);else{var ie=function(){b?(U.live=!0,X()):p=!0,Q(!0)};!u&&q.results.length===0?(f=!0,w.writeCheckpoint(q.last_seq,I).then(function(){if(f=!1,i.last_seq=y=q.last_seq,r.cancelled)throw z(),new Error("cancelled");ie()}).catch(oe)):ie()}}function W(q){if(O=!1,r.cancelled)return z();re("changes rejected",q)}function X(){if(!(!O&&!p&&a.length<A))return;O=!0;function q(){J.cancel()}function ie(){r.removeListener("cancel",q)}r._changes&&(r.removeListener("cancel",r._abortChanges),r._changes.cancel()),r.once("cancel",q);var J=t.changes(U).on("change",B);J.then(ie,ie),J.then(F).catch(W),n.retry&&(r._changes=J,r._abortChanges=q)}function le(q){return t.info().then(function(ie){var J=typeof n.since>"u"?parseInt(ie.update_seq,10)-parseInt(q,10):parseInt(ie.update_seq,10);return $=t.activeTasks.add({name:`${b?"continuous ":""}replication from ${ie.db_name}`,total_items:J}),q})}function ce(){G().then(function(){if(r.cancelled){z();return}return w.getCheckpoint().then(le).then(function(q){y=q,m=q,U={since:y,limit:E,batch_size:E,style:S,doc_ids:k,selector:T,return_docs:!0},n.filter&&(typeof n.filter!="string"?U.include_docs=!0:U.filter=n.filter),"heartbeat"in n&&(U.heartbeat=n.heartbeat),"timeout"in n&&(U.timeout=n.timeout),n.query_params&&(U.query_params=n.query_params),n.view&&(U.view=n.view),X()})}).catch(function(q){re("getCheckpoint rejected with ",q)})}function oe(q){f=!1,re("writeCheckpoint completed with error",q)}if(r.cancelled){z();return}r._addedListeners||(r.once("cancel",z),typeof n.complete=="function"&&(r.once("error",n.complete),r.once("complete",function(q){n.complete(null,q)})),r._addedListeners=!0),typeof n.since>"u"?ce():G().then(function(){return f=!0,w.writeCheckpoint(n.since,I)}).then(function(){if(f=!1,r.cancelled){z();return}y=n.since,ce()}).catch(oe)}class JI extends sl{constructor(){super(),this.cancelled=!1,this.state="pending";const e=new Promise((n,r)=>{this.once("complete",n),this.once("error",r)});this.then=function(n,r){return e.then(n,r)},this.catch=function(n){return e.catch(n)},this.catch(function(){})}cancel(){this.cancelled=!0,this.state="cancelled",this.emit("cancel")}ready(e,n){if(this._readyCalled)return;this._readyCalled=!0;const r=()=>{this.cancel()};e.once("destroyed",r),n.once("destroyed",r);function i(){e.removeListener("destroyed",r),n.removeListener("destroyed",r)}this.once("complete",i),this.once("error",i)}}function oy(t,e){var n=e.PouchConstructor;return typeof t=="string"?new n(t,e):t}function vS(t,e,n,r){if(typeof n=="function"&&(r=n,n={}),typeof n>"u"&&(n={}),n.doc_ids&&!Array.isArray(n.doc_ids))throw St(qy,"`doc_ids` filter parameter is not a list.");n.complete=r,n=_r(n),n.continuous=n.continuous||n.live,n.retry="retry"in n?n.retry:!1,n.PouchConstructor=n.PouchConstructor||this;var i=new JI(n),a=oy(t,n),u=oy(e,n);return BA(a,u,n,i),i}function e8(t,e,n,r){return typeof n=="function"&&(r=n,n={}),typeof n>"u"&&(n={}),n=_r(n),n.PouchConstructor=n.PouchConstructor||this,t=oy(t,n),e=oy(e,n),new t8(t,e,n,r)}class t8 extends sl{constructor(e,n,r,i){super(),this.canceled=!1;const a=r.push?Qc({},r,r.push):r,u=r.pull?Qc({},r,r.pull):r;this.push=vS(e,n,a),this.pull=vS(n,e,u),this.pushPaused=!0,this.pullPaused=!0;const c=T=>{this.emit("change",{direction:"pull",change:T})},f=T=>{this.emit("change",{direction:"push",change:T})},p=T=>{this.emit("denied",{direction:"push",doc:T})},v=T=>{this.emit("denied",{direction:"pull",doc:T})},m=()=>{this.pushPaused=!0,this.pullPaused&&this.emit("paused")},y=()=>{this.pullPaused=!0,this.pushPaused&&this.emit("paused")},b=()=>{this.pushPaused=!1,this.pullPaused&&this.emit("active",{direction:"push"})},E=()=>{this.pullPaused=!1,this.pushPaused&&this.emit("active",{direction:"pull"})};let A={};const S=T=>(C,w)=>{(C==="change"&&(w===c||w===f)||C==="denied"&&(w===v||w===p)||C==="paused"&&(w===y||w===m)||C==="active"&&(w===E||w===b))&&(C in A||(A[C]={}),A[C][T]=!0,Object.keys(A[C]).length===2&&this.removeAllListeners(C))};r.live&&(this.push.on("complete",this.pull.cancel.bind(this.pull)),this.pull.on("complete",this.push.cancel.bind(this.push)));function O(T,C,w){T.listeners(C).indexOf(w)==-1&&T.on(C,w)}this.on("newListener",function(T){T==="change"?(O(this.pull,"change",c),O(this.push,"change",f)):T==="denied"?(O(this.pull,"denied",v),O(this.push,"denied",p)):T==="active"?(O(this.pull,"active",E),O(this.push,"active",b)):T==="paused"&&(O(this.pull,"paused",y),O(this.push,"paused",m))}),this.on("removeListener",function(T){T==="change"?(this.pull.removeListener("change",c),this.push.removeListener("change",f)):T==="denied"?(this.pull.removeListener("denied",v),this.push.removeListener("denied",p)):T==="active"?(this.pull.removeListener("active",E),this.push.removeListener("active",b)):T==="paused"&&(this.pull.removeListener("paused",y),this.push.removeListener("paused",m))}),this.pull.on("removeListener",S("pull")),this.push.on("removeListener",S("push"));const k=Promise.all([this.push,this.pull]).then(T=>{const C={push:T[0],pull:T[1]};return this.emit("complete",C),i&&i(null,C),this.removeAllListeners(),C},T=>{if(this.cancel(),i?i(T):this.emit("error",T),this.removeAllListeners(),i)throw T});this.then=function(T,C){return k.then(T,C)},this.catch=function(T){return k.catch(T)}}cancel(){this.canceled||(this.canceled=!0,this.push.cancel(),this.pull.cancel())}}function n8(t){t.replicate=vS,t.sync=e8,Object.defineProperty(t.prototype,"replicate",{get:function(){var e=this;return typeof this.replicateMethods>"u"&&(this.replicateMethods={from:function(n,r,i){return e.constructor.replicate(n,e,r,i)},to:function(n,r,i){return e.constructor.replicate(e,n,r,i)}}),this.replicateMethods}}),t.prototype.sync=function(e,n,r){return this.constructor.sync(this,e,n,r)}}Ct.plugin(yI).plugin(TI).plugin(UI).plugin(n8);function Gy(t){return"$"+t}function KA(t){return t.substring(1)}function _u(){this._store={}}_u.prototype.get=function(t){var e=Gy(t);return this._store[e]};_u.prototype.set=function(t,e){var n=Gy(t);return this._store[n]=e,!0};_u.prototype.has=function(t){var e=Gy(t);return e in this._store};_u.prototype.keys=function(){return Object.keys(this._store).map(t=>KA(t))};_u.prototype.delete=function(t){var e=Gy(t),n=e in this._store;return delete this._store[e],n};_u.prototype.forEach=function(t){for(var e=Object.keys(this._store),n=0,r=e.length;n<r;n++){var i=e[n],a=this._store[i];i=KA(i),t(a,i)}};Object.defineProperty(_u.prototype,"size",{get:function(){return Object.keys(this._store).length}});function By(t){if(this._store=new _u,t&&Array.isArray(t))for(var e=0,n=t.length;e<n;e++)this.add(t[e])}By.prototype.add=function(t){return this._store.set(t,!0)};By.prototype.has=function(t){return this._store.has(t)};By.prototype.forEach=function(t){this._store.forEach(function(e,n){t(n)})};Object.defineProperty(By.prototype,"size",{get:function(){return this._store.size}});class On extends Error{constructor(e,n,r){super(),this.status=e,this.name=n,this.message=r,this.error=!0}toString(){return JSON.stringify({status:this.status,name:this.name,message:this.message,reason:this.reason})}}new On(401,"unauthorized","Name or password is incorrect.");new On(400,"bad_request","Missing JSON list of 'docs'");new On(404,"not_found","missing");new On(409,"conflict","Document update conflict");new On(400,"bad_request","_id field must contain a string");new On(412,"missing_id","_id is required for puts");new On(400,"bad_request","Only reserved document ids may start with underscore.");new On(412,"precondition_failed","Database not open");new On(500,"unknown_error","Database encountered an unknown error");new On(500,"badarg","Some query argument is invalid");new On(400,"invalid_request","Request was invalid");new On(400,"query_parse_error","Some query parameter is invalid");new On(500,"doc_validation","Bad special document member");new On(400,"bad_request","Something wrong with the request");new On(400,"bad_request","Document must be a JSON object");new On(404,"not_found","Database not found");new On(500,"indexed_db_went_bad","unknown");new On(500,"web_sql_went_bad","unknown");new On(500,"levelDB_went_went_bad","unknown");new On(403,"forbidden","Forbidden by design doc validate_doc_update function");new On(400,"bad_request","Invalid rev format");new On(412,"file_exists","The database could not be created, the file already exists.");new On(412,"missing_stub","A pre-existing attachment stub wasn't found");new On(413,"invalid_url","Provided URL is invalid");function r8(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer||typeof Blob<"u"&&t instanceof Blob}function i8(t){if(typeof t.slice=="function")return t.slice(0);var e=new ArrayBuffer(t.byteLength),n=new Uint8Array(e),r=new Uint8Array(t);return n.set(r),e}function o8(t){if(t instanceof ArrayBuffer)return i8(t);var e=t.size,n=t.type;return typeof t.slice=="function"?t.slice(0,e,n):t.webkitSlice(0,e,n)}var XA=Function.prototype.toString,a8=XA.call(Object);function s8(t){var e=Object.getPrototypeOf(t);if(e===null)return!0;var n=e.constructor;return typeof n=="function"&&n instanceof n&&XA.call(n)==a8}function gS(t){var e,n,r;if(!t||typeof t!="object")return t;if(Array.isArray(t)){for(e=[],n=0,r=t.length;n<r;n++)e[n]=gS(t[n]);return e}if(t instanceof Date&&isFinite(t))return t.toISOString();if(r8(t))return o8(t);if(!s8(t))return t;e={};for(n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var i=gS(t[n]);typeof i<"u"&&(e[n]=i)}return e}var ox;try{localStorage.setItem("_pouch_check_localstorage",1),ox=!!localStorage.getItem("_pouch_check_localstorage")}catch{ox=!1}var cm=function(t,e,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(t,n):i?i.value=n:e.set(t,n),n},Gt=function(t,e,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)},Zd,gm,ir,su,lu;class l8{constructor(e){Zd.set(this,void 0),gm.set(this,void 0),ir.set(this,null),su.set(this,new Map),lu.set(this,!1),cm(this,Zd,e,"f"),cm(this,gm,()=>{this.unsubscribeAll()},"f"),e.once("destroyed",Gt(this,gm,"f"))}subscribeToDocs(e,n){var r;if(Gt(this,lu,"f"))return()=>{};Gt(this,ir,"f")==null&&cm(this,ir,u8(Gt(this,Zd,"f")),"f");const i=Array.isArray(e)&&e.length>0;if(i)for(const u of e??[])if(Gt(this,ir,"f").ids.has(u))(r=Gt(this,ir,"f").ids.get(u))===null||r===void 0||r.add(n);else{const c=new Set;c.add(n),Gt(this,ir,"f").ids.set(u,c)}else Gt(this,ir,"f").all.add(n);let a=!1;return()=>{var u,c,f,p;if(!(a||Gt(this,lu,"f"))){if(a=!0,i)for(const v of e??[]){const m=(u=Gt(this,ir,"f"))===null||u===void 0?void 0:u.ids.get(v);m?.delete(n),m?.size===0&&((c=Gt(this,ir,"f"))===null||c===void 0||c.ids.delete(v))}else(f=Gt(this,ir,"f"))===null||f===void 0||f.all.delete(n);((p=Gt(this,ir,"f"))===null||p===void 0?void 0:p.all.size)===0&&Gt(this,ir,"f").ids.size===0&&(Gt(this,ir,"f").changesFeed.cancel(),cm(this,ir,null,"f"))}}}subscribeToView(e,n){if(Gt(this,lu,"f"))return()=>{};let r;Gt(this,su,"f").has(e)?r=Gt(this,su,"f").get(e):(r=c8(Gt(this,Zd,"f"),e),Gt(this,su,"f").set(e,r)),r.callbacks.add(n);let i=!1;return()=>{i||Gt(this,lu,"f")||(i=!0,r.callbacks.delete(n),r.callbacks.size===0&&(r.feed.cancel(),Gt(this,su,"f").delete(e)))}}unsubscribeAll(){if(!Gt(this,lu,"f")){cm(this,lu,!0,"f"),Gt(this,Zd,"f").removeListener("destroyed",Gt(this,gm,"f")),Gt(this,ir,"f")&&(Gt(this,ir,"f").changesFeed.cancel(),Gt(this,ir,"f").all.clear(),Gt(this,ir,"f").ids.forEach(e=>{e.clear()}),Gt(this,ir,"f").ids.clear());for(const e of Gt(this,su,"f").values())e.feed.cancel(),e.callbacks.clear();Gt(this,su,"f").clear()}}}Zd=new WeakMap,gm=new WeakMap,ir=new WeakMap,su=new WeakMap,lu=new WeakMap;function u8(t){let e=null;return e={changesFeed:t.changes({since:"now",live:!0}).on("change",r=>{var i;const a=((i=e?.all.size)!==null&&i!==void 0?i:0)>0,u=e?.ids.get(r.id);r.deleted?(a&&e&&f0(e.all,!0,r.id),u&&f0(u,!0,r.id)):t.get(r.id).then(c=>{a&&e&&f0(e.all,!1,r.id,c),u&&f0(u,!1,r.id,c)}).catch(console.error)}),all:new Set,ids:new Map},e}function f0(t,e,n,r){for(const i of t)try{const a=r?gS(r):void 0;i(e,n,a)}catch(a){console.error(a)}}function c8(t,e){let n=null;return n={feed:t.changes({since:"now",live:!0,filter:"_view",view:e}).on("change",i=>{var a;for(const u of(a=n?.callbacks)!==null&&a!==void 0?a:[])try{u(i.id)}catch(c){console.error(c)}}),callbacks:new Set},n}const yS=N.createContext({defaultKey:"",databases:{}});function f8(t){const{pouchdb:e,name:n}=t,{databases:r,default:i}=t;let a,u;if(r!=null&&i!=null)a=r,u=i.toString();else if(e!=null)u=n?.toString()||e.name,a={[u]:e};else throw new TypeError("databases argument must be pared with the default argument");const c=d8(a),f=N.useContext(yS).databases,p=N.useMemo(()=>({defaultKey:u,databases:Object.assign(Object.assign({},f),c)}),[c,u,f]);return je.createElement(yS.Provider,{value:p},t.children)}function d8(t){const[e,n]=N.useState(t),[r,i]=N.useState(null);if(r&&t===e)return r;const a={},u=new Set(Object.keys(r??{}));let c=!1;for(const[f,p]of Object.entries(t))r&&e[f]===p?(a[f]=r[f],u.delete(f)):(c=!0,a[f]={pouchdb:p,subscriptionManager:new l8(p)});if(c||u.size>0)n(t),i(a);else if(r)return r;if(r)for(const f of u)r[f].subscriptionManager.unsubscribeAll();return a}function h8(t){const{defaultKey:e,databases:n}=N.useContext(yS);if(e===""&&n[e]==null&&Object.keys(n).length===0)throw new Error("could not find PouchDB context value; please ensure the component is wrapped in a <Provider>");const r=t==="_default"?e:t??e;if(!(r in n))throw new Error(`could not find a PouchDB database with name of "${t}"`);return n[r]}function p8(t){const[e,n]=N.useReducer(m8,t,u=>(typeof u=="function"&&(u=u()),u||(u={}),Object.assign(Object.assign({},u),{error:null,state:"loading"}))),r=N.useMemo(()=>Object.assign(Object.assign({},e),{loading:e.state==="loading"}),[e]),i=N.useRef(e);i.current=e;const a=N.useCallback(u=>{const c=u(i.current);n({type:"loading_finished",payload:c})},[]);return[r,n,a]}function m8(t,e){switch(e.type){case"loading_started":return Object.assign(Object.assign({},t),{state:"loading"});case"loading_finished":return Object.assign(Object.assign({},e.payload),{error:null,state:"done"});case"loading_error":return Object.assign(Object.assign(Object.assign({},t),e.payload.setResult?e.payload.result||{}:{}),{state:"error",error:e.payload.error});default:return t}}var zw,ax;function v8(){return ax||(ax=1,zw=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!t(e[i],n[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(a=Object.keys(e),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var u=a[i];if(!t(e[u],n[u]))return!1}return!0}return e!==e&&n!==n}),zw}var g8=v8();const y8=no(g8);function _8(t){const e=N.useRef(t);return N.useMemo(()=>y8(e.current,t)?e.current:(e.current=t,t),[t])}function w8(t){const{pouchdb:e,subscriptionManager:n}=h8(t?.db),{include_docs:r,conflicts:i,attachments:a,binary:u,limit:c,skip:f,descending:p,update_seq:v}=t||{},{startkey:m,endkey:y,inclusive_end:b}=t||{},{key:E}=t||{},A=_8(t?.keys),[S,O,k]=p8(()=>({rows:[],total_rows:0,offset:0}));return N.useEffect(()=>{let T=!0,C=!1,w=!1;const R={include_docs:r,conflicts:i,attachments:a,binary:u,limit:c,skip:f,descending:p,update_seq:v,startkey:m,endkey:y,inclusive_end:b,key:E,keys:A},I=async()=>{if(C){w=!0;return}C=!0,w=!1,O({type:"loading_started"});try{const G=await e.allDocs(R);T&&O({type:"loading_finished",payload:G})}catch(G){T&&O({type:"loading_error",payload:{error:G,setResult:!1}})}finally{C=!1,w&&T&&I()}};I();let $=null;E!=null?$=[E]:A!=null&&($=A);const U=n.subscribeToDocs($,(G,Y)=>{!T||!S8(Y,m,y,b,p)||(G?k(Z=>{const ee=Z.rows.filter(ae=>ae.id!==Y);return Object.assign(Object.assign({},Z),{rows:ee,total_rows:Z.total_rows-(Z.rows.length-ee.length)})}):I())});return()=>{T=!1,U()}},[O,k,e,n,r,i,a,u,m,y,b,c,f,p,E,A,v]),S}function S8(t,e,n,r,i){return e&&(i&&t>e||!i&&t<e)?!1:n==null?!0:r?i?t>=n:t<=n:i?t>n:t<n}var $m={LEFT:"left",RIGHT:"right"},C8={ZERO:0},Ei={NONE:"none",PRIMARY:"primary",SUCCESS:"success",WARNING:"warning",DANGER:"danger"},vv={BOTTOM:"bottom",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",LEFT:"left",LEFT_BOTTOM:"left-bottom",LEFT_TOP:"left-top",RIGHT:"right",RIGHT_BOTTOM:"right-bottom",RIGHT_TOP:"right-top",TOP:"top",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"},Ze="bp5";typeof BLUEPRINT_NAMESPACE<"u"?Ze=BLUEPRINT_NAMESPACE:typeof REACT_APP_BLUEPRINT_NAMESPACE<"u"&&(Ze=REACT_APP_BLUEPRINT_NAMESPACE);var jm="".concat(Ze,"-active"),b8="".concat(Ze,"-align-left"),YA="".concat(Ze,"-align-right"),AC="".concat(Ze,"-compact"),sx="".concat(Ze,"-dark"),gv="".concat(Ze,"-disabled"),tf="".concat(Ze,"-fill"),E8="".concat(Ze,"-fixed-top"),x8="".concat(Ze,"-inline"),QA="".concat(Ze,"-interactive"),ll="".concat(Ze,"-large"),T8="".concat(Ze,"-loading"),RC="".concat(Ze,"-minimal"),O8="".concat(Ze,"-outlined"),A8="".concat(Ze,"-read-only"),ZA="".concat(Ze,"-round"),JA="".concat(Ze,"-selected"),zm="".concat(Ze,"-small"),R8="".concat(Ze,"-vertical");Jy(vv.TOP);Jy(vv.BOTTOM);Jy(vv.LEFT);Jy(vv.RIGHT);eo(Ei.PRIMARY);eo(Ei.SUCCESS);eo(Ei.WARNING);eo(Ei.DANGER);var k8="".concat(Ze,"-text-disabled"),N8="".concat(Ze,"-text-overflow-ellipsis"),P8="".concat(Ze,"-blockquote"),D8="".concat(Ze,"-code"),L8="".concat(Ze,"-code-block"),Mh="".concat(Ze,"-heading"),eR="".concat(Ze,"-list"),Ky="".concat(Ze,"-alert"),M8="".concat(Ky,"-body"),I8="".concat(Ky,"-contents"),F8="".concat(Ky,"-footer"),Xy="".concat(Ze,"-button"),$8="".concat(Xy,"-spinner"),j8="".concat(Xy,"-text"),kC="".concat(Ze,"-callout"),z8="".concat(kC,"-has-body-content"),H8="".concat(kC,"-icon"),q8="".concat(Ze,"-card"),tR="".concat(Ze,"-collapse"),U8="".concat(tR,"-body"),Ih="".concat(Ze,"-dialog"),W8="".concat(Ih,"-container"),V8="".concat(Ih,"-header"),nR="".concat(Ih,"-body"),G8="".concat(Ih,"-close-button"),B8="".concat(Ih,"-footer"),K8="".concat(Ze,"-divider"),rR="".concat(Ze,"-drawer"),X8="".concat(rR,"-body"),Y8="".concat(rR,"-footer"),Q8="".concat(Ze,"-flex-expander"),Yy="".concat(Ze,"-input"),Z8="".concat(Yy,"-group"),J8="".concat(Yy,"-left-container"),e3="".concat(Yy,"-action"),iR="".concat(Ze,"-control"),oR="".concat(iR,"-indicator"),lx="".concat(oR,"-child"),t3="".concat(Ze,"-checkbox"),n3="".concat(Ze,"-radio"),aR="".concat(Ze,"-switch"),ux="".concat(aR,"-inner-text"),r3="".concat(Ze,"-label"),sR="".concat(Ze,"-menu"),yv="".concat(sR,"-item"),i3="".concat(yv,"-is-selectable"),o3="".concat(yv,"-selected-icon"),a3="".concat(yv,"-icon"),s3="".concat(yv,"-label"),_S="".concat(Ze,"-submenu"),l3="".concat(_S,"-icon"),Qy="".concat(Ze,"-navbar"),u3="".concat(Qy,"-group"),c3="".concat(Qy,"-heading"),f3="".concat(Qy,"-divider"),dl="".concat(Ze,"-overlay"),d3="".concat(dl,"-backdrop"),h3="".concat(dl,"-content"),p3="".concat(dl,"-inline"),Hm="".concat(dl,"-open"),m3="".concat(dl,"-scroll-container"),lR="".concat(dl,"-start-focus-trap"),uR="".concat(dl,"-end-focus-trap"),Gr="".concat(Ze,"-popover"),Hw="".concat(Gr,"-arrow"),v3="".concat(Gr,"-backdrop"),qw="".concat(Gr,"-capturing-dismiss"),g3="".concat(Gr,"-content"),y3="".concat(Gr,"-placement"),ay="".concat(Gr,"-dismiss"),_3="".concat(ay,"-override"),w3="".concat(Gr,"-match-target-width"),S3="".concat(Gr,"-open"),C3="".concat(Gr,"-popper-escaped"),b3="".concat(Gr,"-reference-hidden"),E3="".concat(Gr,"-target"),x3="".concat(Gr,"-transition-container"),T3="".concat(Ze,"-progress-bar"),O3="".concat(Ze,"-progress-meter"),A3="".concat(Ze,"-no-stripes"),R3="".concat(Ze,"-no-animation"),k3="".concat(Ze,"-portal"),cx="".concat(Ze,"-skeleton"),Zy="".concat(Ze,"-spinner"),N3="".concat(Zy,"-animation"),P3="".concat(Zy,"-head"),D3="".concat(Ze,"-no-spin"),L3="".concat(Zy,"-track"),hl="".concat(Ze,"-tab"),M3="".concat(hl,"-icon"),I3="".concat(hl,"-tag"),cR="".concat(hl,"-indicator"),F3="".concat(cR,"-wrapper"),$3="".concat(hl,"-list"),NC="".concat(hl,"-panel"),j3="".concat(hl,"s"),fR="".concat(Ze,"-tag"),z3="".concat(fR,"-remove"),H3="".concat(Ze,"-tooltip"),PC="".concat(Ze,"-icon"),q3="".concat(PC,"-standard"),U3="".concat(PC,"-large");function DC(t){switch(t){case $m.LEFT:return b8;case $m.RIGHT:return YA;default:return}}function W3(t){if(t!==void 0)return"".concat(Ze,"-elevation-").concat(t)}function V3(t){if(t!=null)return t.indexOf("".concat(Ze,"-icon-"))===0?t:"".concat(Ze,"-icon-").concat(t)}function eo(t){if(!(t==null||t===Ei.NONE))return"".concat(Ze,"-intent-").concat(t.toLowerCase())}function Jy(t){if(t!==void 0)return"".concat(Ze,"-position-").concat(t)}var wS=function(t,e){return wS=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])},wS(t,e)};function Yn(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");wS(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var Le=function(){return Le=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Le.apply(this,arguments)};function kn(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function Ta(t,e,n,r){var i=arguments.length,a=i<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(u=t[c])&&(a=(i<3?u(a):i>3?u(e,n,a):u(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}function dn(t,e,n,r){function i(a){return a instanceof n?a:new n(function(u){u(a)})}return new(n||(n=Promise))(function(a,u){function c(v){try{p(r.next(v))}catch(m){u(m)}}function f(v){try{p(r.throw(v))}catch(m){u(m)}}function p(v){v.done?a(v.value):i(v.value).then(c,f)}p((r=r.apply(t,e||[])).next())})}function rh(t,e){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,u;return u={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function c(p){return function(v){return f([p,v])}}function f(p){if(r)throw new TypeError("Generator is already executing.");for(;u&&(u=0,p[0]&&(n=0)),n;)try{if(r=1,i&&(a=p[0]&2?i.return:p[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,p[1])).done)return a;switch(i=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return n.label++,{value:p[1],done:!1};case 5:n.label++,i=p[1],p=[0];continue;case 7:p=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){n=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){n.label=p[1];break}if(p[0]===6&&n.label<a[1]){n.label=a[1],a=p;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(p);break}a[2]&&n.ops.pop(),n.trys.pop();continue}p=e.call(t,n)}catch(v){p=[6,v],i=0}finally{r=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}}var G3={BLACK:"#111418",DARK_GRAY1:"#1C2127",DARK_GRAY2:"#252A31",DARK_GRAY3:"#2F343C",DARK_GRAY4:"#383E47",DARK_GRAY5:"#404854",GRAY1:"#5F6B7C",GRAY2:"#738091",GRAY3:"#8F99A8",GRAY4:"#ABB3BF",GRAY5:"#C5CBD3",LIGHT_GRAY1:"#D3D8DE",LIGHT_GRAY2:"#DCE0E5",LIGHT_GRAY3:"#E5E8EB",LIGHT_GRAY4:"#EDEFF2",LIGHT_GRAY5:"#F6F7F9",WHITE:"#FFFFFF"},B3={BLUE1:"#184A90",BLUE2:"#215DB0",BLUE3:"#2D72D2",BLUE4:"#4C90F0",BLUE5:"#8ABBFF",GREEN1:"#165A36",GREEN2:"#1C6E42",GREEN3:"#238551",GREEN4:"#32A467",GREEN5:"#72CA9B",ORANGE1:"#77450D",ORANGE2:"#935610",ORANGE3:"#C87619",ORANGE4:"#EC9A3C",ORANGE5:"#FBB360",RED1:"#8E292C",RED2:"#AC2F33",RED3:"#CD4246",RED4:"#E76A6E",RED5:"#FA999C"},K3={CERULEAN1:"#0C5174",CERULEAN2:"#0F6894",CERULEAN3:"#147EB3",CERULEAN4:"#3FA6DA",CERULEAN5:"#68C1EE",FOREST1:"#1D7324",FOREST2:"#238C2C",FOREST3:"#29A634",FOREST4:"#43BF4D",FOREST5:"#62D96B",GOLD1:"#5C4405",GOLD2:"#866103",GOLD3:"#D1980B",GOLD4:"#F0B726",GOLD5:"#FBD065",INDIGO1:"#5642A6",INDIGO2:"#634DBF",INDIGO3:"#7961DB",INDIGO4:"#9881F3",INDIGO5:"#BDADFF",LIME1:"#43501B",LIME2:"#5A701A",LIME3:"#8EB125",LIME4:"#B6D94C",LIME5:"#D4F17E",ROSE1:"#A82255",ROSE2:"#C22762",ROSE3:"#DB2C6F",ROSE4:"#F5498B",ROSE5:"#FF66A1",SEPIA1:"#5E4123",SEPIA2:"#7A542E",SEPIA3:"#946638",SEPIA4:"#AF855A",SEPIA5:"#D0B090",TURQUOISE1:"#004D46",TURQUOISE2:"#007067",TURQUOISE3:"#00A396",TURQUOISE4:"#13C9BA",TURQUOISE5:"#7AE1D8",VERMILION1:"#96290D",VERMILION2:"#B83211",VERMILION3:"#D33D17",VERMILION4:"#EB6847",VERMILION5:"#FF9980",VIOLET1:"#5C255C",VIOLET2:"#7C327C",VIOLET3:"#9D3F9D",VIOLET4:"#BD6BBD",VIOLET5:"#D69FD6"},fx=Le(Le(Le({},G3),B3),K3);function X3(t,e,n){return n===void 0&&(n=function(r,i){return r===i}),t==null&&e==null?!0:t==null||e==null||t.length!==e.length?!1:t.every(function(r,i){return n(r,e[i])})}function Y3(t,e,n){if(t==null&&e==null)return!0;if(t==null||e==null)return!1;if(Array.isArray(t)||Array.isArray(e))return!1;if(n!=null)return Uw(t,e,n);var r=Object.keys(t),i=Object.keys(e);return Uw(t,e,{include:r})&&Uw(t,e,{include:i})}function Uw(t,e,n){return Q3(t,e,n).every(function(r){return t.hasOwnProperty(r)===e.hasOwnProperty(r)&&t[r]===e[r]})}function Q3(t,e,n){if(Z3(n))return n.include;if(J3(n)){var r=Object.keys(t),i=Object.keys(e),a=eF(r.concat(i));return n.exclude.forEach(function(u){return delete a[u]}),Object.keys(a)}return[]}function Z3(t){return t!=null&&t.include!=null}function J3(t){return t!=null&&t.exclude!=null}function eF(t){return t.reduce(function(e,n){return e[n]=!0,e},{})}function dR(){return typeof window<"u"&&window.document!=null}function tF(t,e){return t===e||t.contains(e)}function SS(t,e){var n;if(t==null)return document.activeElement;var r=(n=t.getRootNode(e))!==null&&n!==void 0?n:document;return r.activeElement}function nF(t){return function(e){return t.some(function(n){return e.key===n})&&e.target.dispatchEvent(new MouseEvent("click",Le(Le({},e),{view:void 0})))}}function rF(t){return typeof t=="function"}var Fn="[Blueprint]",iF=Fn+" <Alert> cancelButtonText and onCancel should be set together.",oF=Fn+" <Alert> canEscapeKeyCancel enabled without onCancel or onClose handler.",aF=Fn+" <Alert> canOutsideClickCancel enabled without onCancel or onClose handler.",sF=Fn+" <InputGroup> leftElement and leftIcon prop are mutually exclusive, with leftElement taking priority.",lF="".concat(Fn," <Popover> requires renderTarget prop or a child element."),uF="".concat(Fn,' <Popover hasBackdrop={true}> requires interactionKind="click".'),cF="".concat(Fn," <Popover> supports only one child which is rendered as its target; additional children are ignored."),fF=Fn+" <Popover> with children ignores renderTarget prop; use either prop or children.",dF=Fn+" Disabling <Popover> with empty/whitespace content...",hF=Fn+" <Popover usePortal={false}> ignores hasBackdrop",pF=Fn+" <Popover> supports either placement or position prop, not both.",mF=Fn+" <Popover> onInteraction is ignored when uncontrolled.",vF=Fn+" <Popover> targetProps value is ignored when renderTarget API is used.",gF=Fn+" <Portal> context blueprintPortalClassName must be string",yF=Fn+" setting blueprintPortalClassName via legacy React context API is deprecated, use <PortalProvider> instead.",_F=Fn+" <Spinner> Classes.SMALL/LARGE are ignored if size prop is set.",wF=Fn+" <Dialog> iconName is ignored if title is omitted.",SF=Fn+" <Dialog> isCloseButtonShown prop is ignored if title is omitted.",CF=Fn+" <Overlay2> was used outside of a <OverlaysProvider> context. This will no longer be supported in Blueprint v6. See https://github.com/palantir/blueprint/wiki/Overlay2-migration",bF=Fn+" <Overlay2> cannot use childRef and childRefs props simultaneously",EF=Fn+" <Overlay2> requires childRefs prop when rendering multiple child elements",xF=Fn+" <Overlay2> requires each child element to have a unique key prop when childRefs is used";function gh(t){return typeof NODE_ENV<"u"&&NODE_ENV===t}function hR(t,e,n){return t==null?t:Math.min(Math.max(t,e),n)}var dx=new Map;function TF(t){var e,n=(e=dx.get(t))!==null&&e!==void 0?e:0;return dx.set(t,n+1),"".concat(t,"-").concat(n)}function pR(t){return typeof t=="string"&&t.trim().length===0}function qm(t,e){return e===void 0&&(e=!1),t==null||t===""||t===!1||!e&&Array.isArray(t)&&(t.length===0||t.every(function(n){return qm(n,!0)}))}function mR(t,e,n){if(e===void 0&&(e="span"),n===void 0&&(n={}),!(t==null||typeof t=="boolean"||pR(t)))return typeof t=="string"||typeof t=="number"||OF(t)||AF(t)?N.createElement(e,n,t):vR(t)?Object.keys(n).length>0?N.cloneElement(t,n):t:void 0}function vR(t){return typeof t=="object"&&typeof t.type<"u"&&typeof t.props<"u"}function OF(t){return typeof t.type=="symbol"}function AF(t){return Array.isArray(t)}function gR(t,e){return t!=null&&t.type!=null&&t.type.displayName!=null&&t.type.displayName===e.displayName}function RF(){return N.version.startsWith("18")}function Um(t){return t.key==="Enter"||t.key===" "}function kF(t){return t!=null&&typeof t!="function"}function NF(t){return typeof t=="function"}function LC(t,e){kF(t)?t.current=e:NF(t)&&t(e)}function nf(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(n){t.forEach(function(r){LC(r,n)})}}function zo(t){return t===null?null:typeof t.current>"u"?t:t.current}function PF(t,e,n){return function(r){t[e]=r,LC(n,r)}}var sr=function(t){Yn(e,t);function e(n){var r=t.call(this,n)||this;return r.timeoutIds=[],r.requestIds=[],r.clearTimeouts=function(){if(r.timeoutIds.length>0){for(var i=0,a=r.timeoutIds;i<a.length;i++){var u=a[i];window.clearTimeout(u)}r.timeoutIds=[]}},r.cancelAnimationFrames=function(){if(r.requestIds.length>0){for(var i=0,a=r.requestIds;i<a.length;i++){var u=a[i];window.cancelAnimationFrame(u)}r.requestIds=[]}},gh("production")||r.validateProps(r.props),r}return e.prototype.componentDidUpdate=function(n,r,i){gh("production")||this.validateProps(this.props)},e.prototype.componentWillUnmount=function(){this.clearTimeouts(),this.cancelAnimationFrames()},e.prototype.requestAnimationFrame=function(n){var r=window.requestAnimationFrame(n);return this.requestIds.push(r),function(){return window.cancelAnimationFrame(r)}},e.prototype.setTimeout=function(n,r){var i=window.setTimeout(n,r);return this.timeoutIds.push(i),function(){return window.clearTimeout(i)}},e.prototype.validateProps=function(n){},e}(N.PureComponent),zt="Blueprint5",hx=["active","alignText","asyncControl","containerRef","current","elementRef","ellipsizeText","fill","icon","iconSize","inputClassName","inputRef","intent","inline","large","loading","leftElement","leftIcon","minimal","onRemove","outlined","panel","panelClassName","popoverProps","rightElement","rightIcon","round","size","small","tagName","text","textClassName"];function rf(t,e,n){return e===void 0&&(e=hx),n===void 0&&(n=!1),n&&(e=e.concat(hx)),e.reduce(function(r,i){return i.indexOf("-")!==-1||r.hasOwnProperty(i)&&delete r[i],r},Le({},t))}var Ww={exports:{}};/*!
|
|
47
|
+
Copyright (c) 2018 Jed Watson.
|
|
48
|
+
Licensed under the MIT License (MIT), see
|
|
49
|
+
http://jedwatson.github.io/classnames
|
|
50
|
+
*/var px;function DF(){return px||(px=1,function(t){(function(){var e={}.hasOwnProperty;function n(){for(var a="",u=0;u<arguments.length;u++){var c=arguments[u];c&&(a=i(a,r(c)))}return a}function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var u="";for(var c in a)e.call(a,c)&&a[c]&&(u=i(u,c));return u}function i(a,u){return u?a?a+" "+u:a+u:a}t.exports?(n.default=n,t.exports=n):window.classNames=n})()}(Ww)),Ww.exports}var LF=DF();const et=no(LF);function MF(t){return t.toLowerCase()}var IF=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],FF=/[^A-Z0-9]+/gi;function yR(t,e){e===void 0&&(e={});for(var n=e.splitRegexp,r=n===void 0?IF:n,i=e.stripRegexp,a=i===void 0?FF:i,u=e.transform,c=u===void 0?MF:u,f=e.delimiter,p=f===void 0?" ":f,v=mx(mx(t,r,"$1\0$2"),a,"\0"),m=0,y=v.length;v.charAt(m)==="\0";)m++;for(;v.charAt(y-1)==="\0";)y--;return v.slice(m,y).split("\0").map(c).join(p)}function mx(t,e,n){return e instanceof RegExp?t.replace(e,n):e.reduce(function(r,i){return r.replace(i,n)},t)}function $F(t,e){var n=t.charAt(0),r=t.substr(1).toLowerCase();return e>0&&n>="0"&&n<="9"?"_"+n+r:""+n.toUpperCase()+r}function jF(t,e){return e===void 0&&(e={}),yR(t,Le({delimiter:"",transform:$F},e))}function zF(t,e){return e===void 0&&(e={}),yR(t,Le({delimiter:"."},e))}function HF(t,e){return e===void 0&&(e={}),zF(t,Le({delimiter:"_"},e))}var mt;(function(t){t[t.STANDARD=16]="STANDARD",t[t.LARGE=20]="LARGE"})(mt||(mt={}));const qF="modulepreload",UF=function(t){return"/"+t},vx={},gx=function(e,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),c=u?.nonce||u?.getAttribute("nonce");i=Promise.allSettled(n.map(f=>{if(f=UF(f),f in vx)return;vx[f]=!0;const p=f.endsWith(".css"),v=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${v}`))return;const m=document.createElement("link");if(m.rel=p?"stylesheet":qF,p||(m.as="script"),m.crossOrigin="",m.href=f,c&&m.setAttribute("nonce",c),document.head.appendChild(m),p)return new Promise((y,b)=>{m.addEventListener("load",y),m.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${f}`)))})}))}function a(u){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=u,window.dispatchEvent(c),!c.defaultPrevented)throw u}return i.then(u=>{for(const c of u||[])c.status==="rejected"&&a(c.reason);return e().catch(a)})};var D,P;(function(t){t.AddClip="add-clip",t.AddColumnLeft="add-column-left",t.AddColumnRight="add-column-right",t.AddLocation="add-location",t.AddRowBottom="add-row-bottom",t.AddRowTop="add-row-top",t.AddToArtifact="add-to-artifact",t.AddToFolder="add-to-folder",t.Add="add",t.AimpointsTarget="aimpoints-target",t.Airplane="airplane",t.AlignCenter="align-center",t.AlignJustify="align-justify",t.AlignLeft="align-left",t.AlignRight="align-right",t.AlignmentBottom="alignment-bottom",t.AlignmentHorizontalCenter="alignment-horizontal-center",t.AlignmentLeft="alignment-left",t.AlignmentRight="alignment-right",t.AlignmentTop="alignment-top",t.AlignmentVerticalCenter="alignment-vertical-center",t.Ammunition="ammunition",t.Anchor="anchor",t.Annotation="annotation",t.Antenna="antenna",t.AppHeader="app-header",t.Application="application",t.Applications="applications",t.Archive="archive",t.AreaOfInterest="area-of-interest",t.ArrayBoolean="array-boolean",t.ArrayDate="array-date",t.ArrayFloatingPoint="array-floating-point",t.ArrayNumeric="array-numeric",t.ArrayString="array-string",t.ArrayTimestamp="array-timestamp",t.Array="array",t.ArrowBottomLeft="arrow-bottom-left",t.ArrowBottomRight="arrow-bottom-right",t.ArrowDown="arrow-down",t.ArrowLeft="arrow-left",t.ArrowRight="arrow-right",t.ArrowTopLeft="arrow-top-left",t.ArrowTopRight="arrow-top-right",t.ArrowUp="arrow-up",t.ArrowsHorizontal="arrows-horizontal",t.ArrowsVertical="arrows-vertical",t.Asterisk="asterisk",t.At="at",t.AutomaticUpdates="automatic-updates",t.Axle="axle",t.Backlink="backlink",t.Badge="badge",t.BanCircle="ban-circle",t.BankAccount="bank-account",t.Barcode="barcode",t.Blank="blank",t.BlockedPerson="blocked-person",t.Bold="bold",t.Book="book",t.Bookmark="bookmark",t.Box="box",t.Briefcase="briefcase",t.BringData="bring-data",t.BringForward="bring-forward",t.Bug="bug",t.Buggy="buggy",t.Build="build",t.Calculator="calculator",t.Calendar="calendar",t.Camera="camera",t.CaretDown="caret-down",t.CaretLeft="caret-left",t.CaretRight="caret-right",t.CaretUp="caret-up",t.CargoShip="cargo-ship",t.CellTower="cell-tower",t.Changes="changes",t.Chart="chart",t.Chat="chat",t.ChevronBackward="chevron-backward",t.ChevronDown="chevron-down",t.ChevronForward="chevron-forward",t.ChevronLeft="chevron-left",t.ChevronRight="chevron-right",t.ChevronUp="chevron-up",t.CircleArrowDown="circle-arrow-down",t.CircleArrowLeft="circle-arrow-left",t.CircleArrowRight="circle-arrow-right",t.CircleArrowUp="circle-arrow-up",t.Circle="circle",t.Citation="citation",t.Clean="clean",t.Clip="clip",t.Clipboard="clipboard",t.CloudDownload="cloud-download",t.CloudTick="cloud-tick",t.CloudUpload="cloud-upload",t.Cloud="cloud",t.CodeBlock="code-block",t.Code="code",t.Cog="cog",t.CollapseAll="collapse-all",t.ColorFill="color-fill",t.ColumnLayout="column-layout",t.Comment="comment",t.Comparison="comparison",t.Compass="compass",t.Compressed="compressed",t.Confirm="confirm",t.Console="console",t.Contrast="contrast",t.Control="control",t.CreditCard="credit-card",t.Crop="crop",t.CrossCircle="cross-circle",t.Cross="cross",t.Crown="crown",t.CubeAdd="cube-add",t.CubeRemove="cube-remove",t.Cube="cube",t.CurvedRangeChart="curved-range-chart",t.Cut="cut",t.Cycle="cycle",t.Dashboard="dashboard",t.DataConnection="data-connection",t.DataLineage="data-lineage",t.Database="database",t.Delete="delete",t.Delta="delta",t.DeriveColumn="derive-column",t.Desktop="desktop",t.Detection="detection",t.Diagnosis="diagnosis",t.DiagramTree="diagram-tree",t.DirectionLeft="direction-left",t.DirectionRight="direction-right",t.Disable="disable",t.Divide="divide",t.DocumentOpen="document-open",t.DocumentShare="document-share",t.Document="document",t.Dollar="dollar",t.Dot="dot",t.DoubleCaretHorizontal="double-caret-horizontal",t.DoubleCaretVertical="double-caret-vertical",t.DoubleChevronDown="double-chevron-down",t.DoubleChevronLeft="double-chevron-left",t.DoubleChevronRight="double-chevron-right",t.DoubleChevronUp="double-chevron-up",t.DoughnutChart="doughnut-chart",t.Download="download",t.DragHandleHorizontal="drag-handle-horizontal",t.DragHandleVertical="drag-handle-vertical",t.Draw="draw",t.DrawerLeftFilled="drawer-left-filled",t.DrawerLeft="drawer-left",t.DrawerRightFilled="drawer-right-filled",t.DrawerRight="drawer-right",t.DriveTime="drive-time",t.Duplicate="duplicate",t.Edit="edit",t.Eject="eject",t.Emoji="emoji",t.Endnote="endnote",t.Endorsed="endorsed",t.Envelope="envelope",t.Equals="equals",t.Eraser="eraser",t.Error="error",t.Euro="euro",t.Exchange="exchange",t.ExcludeRow="exclude-row",t.ExpandAll="expand-all",t.Explain="explain",t.Export="export",t.EyeOff="eye-off",t.EyeOn="eye-on",t.EyeOpen="eye-open",t.FastBackward="fast-backward",t.FastForward="fast-forward",t.FeedSubscribed="feed-subscribed",t.Feed="feed",t.Film="film",t.FilterKeep="filter-keep",t.FilterList="filter-list",t.FilterOpen="filter-open",t.FilterRemove="filter-remove",t.Filter="filter",t.Flag="flag",t.Flame="flame",t.Flash="flash",t.FloatingPoint="floating-point",t.FloppyDisk="floppy-disk",t.FlowBranch="flow-branch",t.FlowEnd="flow-end",t.FlowLinear="flow-linear",t.FlowReviewBranch="flow-review-branch",t.FlowReview="flow-review",t.Flows="flows",t.FolderClose="folder-close",t.FolderNew="folder-new",t.FolderOpen="folder-open",t.FolderSharedOpen="folder-shared-open",t.FolderShared="folder-shared",t.Follower="follower",t.Following="following",t.Font="font",t.Fork="fork",t.Form="form",t.Fuel="fuel",t.FullCircle="full-circle",t.FullStackedChart="full-stacked-chart",t.Fullscreen="fullscreen",t.Function="function",t.GanttChart="gantt-chart",t.Generate="generate",t.Geofence="geofence",t.Geolocation="geolocation",t.Geosearch="geosearch",t.Geotime="geotime",t.GitBranch="git-branch",t.GitCommit="git-commit",t.GitMerge="git-merge",t.GitNewBranch="git-new-branch",t.GitPull="git-pull",t.GitPush="git-push",t.GitRepo="git-repo",t.Glass="glass",t.GlobeNetwork="globe-network",t.Globe="globe",t.GraphRemove="graph-remove",t.Graph="graph",t.GreaterThanOrEqualTo="greater-than-or-equal-to",t.GreaterThan="greater-than",t.GridView="grid-view",t.Grid="grid",t.GroupItem="group-item",t.GroupObjects="group-objects",t.GroupedBarChart="grouped-bar-chart",t.HandDown="hand-down",t.HandLeft="hand-left",t.HandRight="hand-right",t.HandUp="hand-up",t.Hand="hand",t.Hat="hat",t.HeaderOne="header-one",t.HeaderThree="header-three",t.HeaderTwo="header-two",t.Header="header",t.Headset="headset",t.HeartBroken="heart-broken",t.Heart="heart",t.HeatGrid="heat-grid",t.Heatmap="heatmap",t.Helicopter="helicopter",t.Help="help",t.HelperManagement="helper-management",t.HighPriority="high-priority",t.HighVoltagePole="high-voltage-pole",t.Highlight="highlight",t.History="history",t.Home="home",t.HorizontalBarChartAsc="horizontal-bar-chart-asc",t.HorizontalBarChartDesc="horizontal-bar-chart-desc",t.HorizontalBarChart="horizontal-bar-chart",t.HorizontalDistribution="horizontal-distribution",t.HorizontalInbetween="horizontal-inbetween",t.Hurricane="hurricane",t.IdNumber="id-number",t.ImageRotateLeft="image-rotate-left",t.ImageRotateRight="image-rotate-right",t.Import="import",t.InboxFiltered="inbox-filtered",t.InboxGeo="inbox-geo",t.InboxSearch="inbox-search",t.InboxUpdate="inbox-update",t.Inbox="inbox",t.InfoSign="info-sign",t.Inheritance="inheritance",t.InheritedGroup="inherited-group",t.InnerJoin="inner-join",t.Input="input",t.Insert="insert",t.Intelligence="intelligence",t.Intersection="intersection",t.IpAddress="ip-address",t.IssueClosed="issue-closed",t.IssueNew="issue-new",t.Issue="issue",t.Italic="italic",t.JoinTable="join-table",t.KeyBackspace="key-backspace",t.KeyCommand="key-command",t.KeyControl="key-control",t.KeyDelete="key-delete",t.KeyEnter="key-enter",t.KeyEscape="key-escape",t.KeyOption="key-option",t.KeyShift="key-shift",t.KeyTab="key-tab",t.Key="key",t.KnownVehicle="known-vehicle",t.LabTest="lab-test",t.Label="label",t.LayerOutline="layer-outline",t.Layer="layer",t.Layers="layers",t.LayoutAuto="layout-auto",t.LayoutBalloon="layout-balloon",t.LayoutCircle="layout-circle",t.LayoutGrid="layout-grid",t.LayoutGroupBy="layout-group-by",t.LayoutHierarchy="layout-hierarchy",t.LayoutLinear="layout-linear",t.LayoutSkewGrid="layout-skew-grid",t.LayoutSortedClusters="layout-sorted-clusters",t.Layout="layout",t.Learning="learning",t.LeftJoin="left-join",t.LengthenText="lengthen-text",t.LessThanOrEqualTo="less-than-or-equal-to",t.LessThan="less-than",t.Lifesaver="lifesaver",t.Lightbulb="lightbulb",t.Lightning="lightning",t.Link="link",t.ListColumns="list-columns",t.ListDetailView="list-detail-view",t.List="list",t.Locate="locate",t.Lock="lock",t.Locomotive="locomotive",t.LogIn="log-in",t.LogOut="log-out",t.LowVoltagePole="low-voltage-pole",t.Manual="manual",t.ManuallyEnteredData="manually-entered-data",t.ManyToMany="many-to-many",t.ManyToOne="many-to-one",t.MapCreate="map-create",t.MapMarker="map-marker",t.Map="map",t.Maximize="maximize",t.Media="media",t.MenuClosed="menu-closed",t.MenuOpen="menu-open",t.Menu="menu",t.MergeColumns="merge-columns",t.MergeLinks="merge-links",t.Microphone="microphone",t.Minimize="minimize",t.Minus="minus",t.MobilePhone="mobile-phone",t.MobileVideo="mobile-video",t.ModalFilled="modal-filled",t.Modal="modal",t.Model="model",t.Moon="moon",t.More="more",t.Mountain="mountain",t.Move="move",t.Mugshot="mugshot",t.MultiSelect="multi-select",t.Music="music",t.Nest="nest",t.NewDrawing="new-drawing",t.NewGridItem="new-grid-item",t.NewLayer="new-layer",t.NewLayers="new-layers",t.NewLink="new-link",t.NewObject="new-object",t.NewPerson="new-person",t.NewPrescription="new-prescription",t.NewShield="new-shield",t.NewTextBox="new-text-box",t.Ninja="ninja",t.NotEqualTo="not-equal-to",t.NotificationsSnooze="notifications-snooze",t.NotificationsUpdated="notifications-updated",t.Notifications="notifications",t.NumberedList="numbered-list",t.Numerical="numerical",t.Office="office",t.Offline="offline",t.OilField="oil-field",t.OneColumn="one-column",t.OneToMany="one-to-many",t.OneToOne="one-to-one",t.OpenApplication="open-application",t.Outdated="outdated",t.PageLayout="page-layout",t.PanelStats="panel-stats",t.PanelTable="panel-table",t.Paperclip="paperclip",t.Paragraph="paragraph",t.PasteVariable="paste-variable",t.PathSearch="path-search",t.Path="path",t.Pause="pause",t.People="people",t.Percentage="percentage",t.Person="person",t.PhoneCall="phone-call",t.PhoneForward="phone-forward",t.Phone="phone",t.PieChart="pie-chart",t.Pin="pin",t.PivotTable="pivot-table",t.Pivot="pivot",t.Play="play",t.Playbook="playbook",t.Plus="plus",t.PolygonFilter="polygon-filter",t.Power="power",t.PredictiveAnalysis="predictive-analysis",t.Prescription="prescription",t.Presentation="presentation",t.Print="print",t.Projects="projects",t.Properties="properties",t.Property="property",t.PublishFunction="publish-function",t.Pulse="pulse",t.Rain="rain",t.Random="random",t.Record="record",t.RectHeight="rect-height",t.RectWidth="rect-width",t.Rectangle="rectangle",t.Redo="redo",t.Refresh="refresh",t.Regex="regex",t.RegressionChart="regression-chart",t.RemoveColumnLeft="remove-column-left",t.RemoveColumnRight="remove-column-right",t.RemoveColumn="remove-column",t.RemoveRowBottom="remove-row-bottom",t.RemoveRowTop="remove-row-top",t.Remove="remove",t.Repeat="repeat",t.Reset="reset",t.Resolve="resolve",t.Rig="rig",t.RightJoin="right-join",t.Ring="ring",t.RocketSlant="rocket-slant",t.Rocket="rocket",t.RotateDocument="rotate-document",t.RotatePage="rotate-page",t.Route="route",t.Satellite="satellite",t.Saved="saved",t.ScatterPlot="scatter-plot",t.SearchAround="search-around",t.SearchTemplate="search-template",t.SearchText="search-text",t.Search="search",t.SegmentedControl="segmented-control",t.Select="select",t.Selection="selection",t.SendBackward="send-backward",t.SendMessage="send-message",t.SendToGraph="send-to-graph",t.SendToMap="send-to-map",t.SendTo="send-to",t.Sensor="sensor",t.SeriesAdd="series-add",t.SeriesConfiguration="series-configuration",t.SeriesDerived="series-derived",t.SeriesFiltered="series-filtered",t.SeriesSearch="series-search",t.Settings="settings",t.Shapes="shapes",t.Share="share",t.SharedFilter="shared-filter",t.Shield="shield",t.Ship="ship",t.Shop="shop",t.ShoppingCart="shopping-cart",t.ShortenText="shorten-text",t.SignalSearch="signal-search",t.SimCard="sim-card",t.Slash="slash",t.SmallCross="small-cross",t.SmallInfoSign="small-info-sign",t.SmallMinus="small-minus",t.SmallPlus="small-plus",t.SmallSquare="small-square",t.SmallTick="small-tick",t.Snowflake="snowflake",t.SoccerBall="soccer-ball",t.SocialMedia="social-media",t.SortAlphabeticalDesc="sort-alphabetical-desc",t.SortAlphabetical="sort-alphabetical",t.SortAsc="sort-asc",t.SortDesc="sort-desc",t.SortNumericalDesc="sort-numerical-desc",t.SortNumerical="sort-numerical",t.Sort="sort",t.SpellCheck="spell-check",t.SplitColumns="split-columns",t.SportsStadium="sports-stadium",t.Square="square",t.StackedChart="stacked-chart",t.StadiumGeometry="stadium-geometry",t.StarEmpty="star-empty",t.Star="star",t.StepBackward="step-backward",t.StepChart="step-chart",t.StepForward="step-forward",t.Stop="stop",t.Stopwatch="stopwatch",t.Strikethrough="strikethrough",t.Style="style",t.Subscript="subscript",t.Superscript="superscript",t.SwapHorizontal="swap-horizontal",t.SwapVertical="swap-vertical",t.Switch="switch",t.SymbolCircle="symbol-circle",t.SymbolCross="symbol-cross",t.SymbolDiamond="symbol-diamond",t.SymbolRectangle="symbol-rectangle",t.SymbolSquare="symbol-square",t.SymbolTriangleDown="symbol-triangle-down",t.SymbolTriangleUp="symbol-triangle-up",t.Syringe="syringe",t.Tag="tag",t.TakeAction="take-action",t.Tank="tank",t.Target="target",t.Taxi="taxi",t.Team="team",t.Temperature="temperature",t.TextHighlight="text-highlight",t.ThDerived="th-derived",t.ThDisconnect="th-disconnect",t.ThFiltered="th-filtered",t.ThList="th-list",t.Th="th",t.ThirdParty="third-party",t.ThumbsDown="thumbs-down",t.ThumbsUp="thumbs-up",t.TickCircle="tick-circle",t.Tick="tick",t.Time="time",t.TimelineAreaChart="timeline-area-chart",t.TimelineBarChart="timeline-bar-chart",t.TimelineEvents="timeline-events",t.TimelineLineChart="timeline-line-chart",t.Tint="tint",t.Torch="torch",t.Tractor="tractor",t.Train="train",t.Translate="translate",t.Trash="trash",t.Tree="tree",t.TrendingDown="trending-down",t.TrendingUp="trending-up",t.Trophy="trophy",t.Truck="truck",t.TwoColumns="two-columns",t.Unarchive="unarchive",t.Underline="underline",t.Undo="undo",t.UngroupObjects="ungroup-objects",t.UnknownVehicle="unknown-vehicle",t.Unlink="unlink",t.Unlock="unlock",t.Unpin="unpin",t.Unresolve="unresolve",t.Updated="updated",t.Upload="upload",t.User="user",t.Variable="variable",t.VerticalBarChartAsc="vertical-bar-chart-asc",t.VerticalBarChartDesc="vertical-bar-chart-desc",t.VerticalDistribution="vertical-distribution",t.VerticalInbetween="vertical-inbetween",t.Video="video",t.Virus="virus",t.VolumeDown="volume-down",t.VolumeOff="volume-off",t.VolumeUp="volume-up",t.Walk="walk",t.WarningSign="warning-sign",t.WaterfallChart="waterfall-chart",t.Waves="waves",t.WidgetButton="widget-button",t.WidgetFooter="widget-footer",t.WidgetHeader="widget-header",t.Widget="widget",t.Wind="wind",t.Wrench="wrench",t.ZoomIn="zoom-in",t.ZoomOut="zoom-out",t.ZoomToFit="zoom-to-fit"})(P||(P={}));D={},D[P.AddClip]="61697",D[P.AddColumnLeft]="61698",D[P.AddColumnRight]="61699",D[P.AddLocation]="61700",D[P.AddRowBottom]="61701",D[P.AddRowTop]="61702",D[P.AddToArtifact]="61703",D[P.AddToFolder]="61704",D[P.Add]="61705",D[P.AimpointsTarget]="62261",D[P.Airplane]="61706",D[P.AlignCenter]="61707",D[P.AlignJustify]="61708",D[P.AlignLeft]="61709",D[P.AlignRight]="61710",D[P.AlignmentBottom]="61711",D[P.AlignmentHorizontalCenter]="61712",D[P.AlignmentLeft]="61713",D[P.AlignmentRight]="61714",D[P.AlignmentTop]="61715",D[P.AlignmentVerticalCenter]="61716",D[P.Ammunition]="62274",D[P.Anchor]="62256",D[P.Annotation]="61717",D[P.Antenna]="61718",D[P.AppHeader]="61719",D[P.Application]="61720",D[P.Applications]="61721",D[P.Archive]="61722",D[P.AreaOfInterest]="61723",D[P.ArrayBoolean]="61724",D[P.ArrayDate]="61725",D[P.ArrayFloatingPoint]="62253",D[P.ArrayNumeric]="61726",D[P.ArrayString]="61727",D[P.ArrayTimestamp]="61728",D[P.Array]="61729",D[P.ArrowBottomLeft]="61730",D[P.ArrowBottomRight]="61731",D[P.ArrowDown]="61732",D[P.ArrowLeft]="61733",D[P.ArrowRight]="61734",D[P.ArrowTopLeft]="61735",D[P.ArrowTopRight]="61736",D[P.ArrowUp]="61737",D[P.ArrowsHorizontal]="61738",D[P.ArrowsVertical]="61739",D[P.Asterisk]="61740",D[P.At]="62257",D[P.AutomaticUpdates]="61741",D[P.Axle]="62264",D[P.Backlink]="61742",D[P.Badge]="61743",D[P.BanCircle]="61744",D[P.BankAccount]="61745",D[P.Barcode]="61746",D[P.Blank]="61747",D[P.BlockedPerson]="61748",D[P.Bold]="61749",D[P.Book]="61750",D[P.Bookmark]="61751",D[P.Box]="61752",D[P.Briefcase]="61753",D[P.BringData]="61754",D[P.BringForward]="62292",D[P.Bug]="62254",D[P.Buggy]="61755",D[P.Build]="61756",D[P.Calculator]="61757",D[P.Calendar]="61758",D[P.Camera]="61759",D[P.CaretDown]="61760",D[P.CaretLeft]="61761",D[P.CaretRight]="61762",D[P.CaretUp]="61763",D[P.CargoShip]="61764",D[P.CellTower]="61765",D[P.Changes]="61766",D[P.Chart]="61767",D[P.Chat]="61768",D[P.ChevronBackward]="61769",D[P.ChevronDown]="61770",D[P.ChevronForward]="61771",D[P.ChevronLeft]="61772",D[P.ChevronRight]="61773",D[P.ChevronUp]="61774",D[P.CircleArrowDown]="61775",D[P.CircleArrowLeft]="61776",D[P.CircleArrowRight]="61777",D[P.CircleArrowUp]="61778",D[P.Circle]="61779",D[P.Citation]="61780",D[P.Clean]="61781",D[P.Clip]="61782",D[P.Clipboard]="61783",D[P.CloudDownload]="61784",D[P.CloudTick]="62286",D[P.CloudUpload]="61785",D[P.Cloud]="61786",D[P.CodeBlock]="61787",D[P.Code]="61788",D[P.Cog]="61789",D[P.CollapseAll]="61790",D[P.ColorFill]="62248",D[P.ColumnLayout]="61791",D[P.Comment]="61792",D[P.Comparison]="61793",D[P.Compass]="61794",D[P.Compressed]="61795",D[P.Confirm]="61796",D[P.Console]="61797",D[P.Contrast]="61798",D[P.Control]="61799",D[P.CreditCard]="61800",D[P.Crop]="62291",D[P.CrossCircle]="62262",D[P.Cross]="61801",D[P.Crown]="61802",D[P.CubeAdd]="61803",D[P.CubeRemove]="61804",D[P.Cube]="61805",D[P.CurvedRangeChart]="61806",D[P.Cut]="61807",D[P.Cycle]="61808",D[P.Dashboard]="61809",D[P.DataConnection]="61810",D[P.DataLineage]="61811",D[P.Database]="61812",D[P.Delete]="61813",D[P.Delta]="61814",D[P.DeriveColumn]="61815",D[P.Desktop]="61816",D[P.Detection]="62273",D[P.Diagnosis]="61817",D[P.DiagramTree]="61818",D[P.DirectionLeft]="61819",D[P.DirectionRight]="61820",D[P.Disable]="61821",D[P.Divide]="62247",D[P.DocumentOpen]="61822",D[P.DocumentShare]="61823",D[P.Document]="61824",D[P.Dollar]="61825",D[P.Dot]="61826",D[P.DoubleCaretHorizontal]="61827",D[P.DoubleCaretVertical]="61828",D[P.DoubleChevronDown]="61829",D[P.DoubleChevronLeft]="61830",D[P.DoubleChevronRight]="61831",D[P.DoubleChevronUp]="61832",D[P.DoughnutChart]="61833",D[P.Download]="61834",D[P.DragHandleHorizontal]="61835",D[P.DragHandleVertical]="61836",D[P.Draw]="61837",D[P.DrawerLeftFilled]="61838",D[P.DrawerLeft]="61839",D[P.DrawerRightFilled]="61840",D[P.DrawerRight]="61841",D[P.DriveTime]="61842",D[P.Duplicate]="61843",D[P.Edit]="61844",D[P.Eject]="61845",D[P.Emoji]="61846",D[P.Endnote]="62294",D[P.Endorsed]="61847",D[P.Envelope]="61848",D[P.Equals]="61849",D[P.Eraser]="61850",D[P.Error]="61851",D[P.Euro]="61852",D[P.Exchange]="61853",D[P.ExcludeRow]="61854",D[P.ExpandAll]="61855",D[P.Explain]="62285",D[P.Export]="61856",D[P.EyeOff]="61857",D[P.EyeOn]="61858",D[P.EyeOpen]="61859",D[P.FastBackward]="61860",D[P.FastForward]="61861",D[P.FeedSubscribed]="61862",D[P.Feed]="61863",D[P.Film]="61864",D[P.FilterKeep]="61865",D[P.FilterList]="61866",D[P.FilterOpen]="61867",D[P.FilterRemove]="61868",D[P.Filter]="61869",D[P.Flag]="61870",D[P.Flame]="61871",D[P.Flash]="61872",D[P.FloatingPoint]="62252",D[P.FloppyDisk]="61873",D[P.FlowBranch]="61874",D[P.FlowEnd]="61875",D[P.FlowLinear]="61876",D[P.FlowReviewBranch]="61877",D[P.FlowReview]="61878",D[P.Flows]="61879",D[P.FolderClose]="61880",D[P.FolderNew]="61881",D[P.FolderOpen]="61882",D[P.FolderSharedOpen]="61883",D[P.FolderShared]="61884",D[P.Follower]="61885",D[P.Following]="61886",D[P.Font]="61887",D[P.Fork]="61888",D[P.Form]="61889",D[P.Fuel]="62243",D[P.FullCircle]="61890",D[P.FullStackedChart]="61891",D[P.Fullscreen]="61892",D[P.Function]="61893",D[P.GanttChart]="61894",D[P.Generate]="62284",D[P.Geofence]="61895",D[P.Geolocation]="61896",D[P.Geosearch]="61897",D[P.Geotime]="62276",D[P.GitBranch]="61898",D[P.GitCommit]="61899",D[P.GitMerge]="61900",D[P.GitNewBranch]="61901",D[P.GitPull]="61902",D[P.GitPush]="61903",D[P.GitRepo]="61904",D[P.Glass]="61905",D[P.GlobeNetwork]="61906",D[P.Globe]="61907",D[P.GraphRemove]="61908",D[P.Graph]="61909",D[P.GreaterThanOrEqualTo]="61910",D[P.GreaterThan]="61911",D[P.GridView]="61912",D[P.Grid]="61913",D[P.GroupItem]="62282",D[P.GroupObjects]="61914",D[P.GroupedBarChart]="61915",D[P.HandDown]="61916",D[P.HandLeft]="61917",D[P.HandRight]="61918",D[P.HandUp]="61919",D[P.Hand]="61920",D[P.Hat]="61921",D[P.HeaderOne]="61922",D[P.HeaderThree]="61923",D[P.HeaderTwo]="61924",D[P.Header]="61925",D[P.Headset]="61926",D[P.HeartBroken]="61927",D[P.Heart]="61928",D[P.HeatGrid]="61929",D[P.Heatmap]="61930",D[P.Helicopter]="61931",D[P.Help]="61932",D[P.HelperManagement]="61933",D[P.HighPriority]="61934",D[P.HighVoltagePole]="62259",D[P.Highlight]="61935",D[P.History]="61936",D[P.Home]="61937",D[P.HorizontalBarChartAsc]="61938",D[P.HorizontalBarChartDesc]="61939",D[P.HorizontalBarChart]="61940",D[P.HorizontalDistribution]="61941",D[P.HorizontalInbetween]="62249",D[P.Hurricane]="61942",D[P.IdNumber]="61943",D[P.ImageRotateLeft]="61944",D[P.ImageRotateRight]="61945",D[P.Import]="61946",D[P.InboxFiltered]="61947",D[P.InboxGeo]="61948",D[P.InboxSearch]="61949",D[P.InboxUpdate]="61950",D[P.Inbox]="61951",D[P.InfoSign]="61952",D[P.Inheritance]="61953",D[P.InheritedGroup]="61954",D[P.InnerJoin]="61955",D[P.Input]="62283",D[P.Insert]="61956",D[P.Intelligence]="62263",D[P.Intersection]="61957",D[P.IpAddress]="61958",D[P.IssueClosed]="61959",D[P.IssueNew]="61960",D[P.Issue]="61961",D[P.Italic]="61962",D[P.JoinTable]="61963",D[P.KeyBackspace]="61964",D[P.KeyCommand]="61965",D[P.KeyControl]="61966",D[P.KeyDelete]="61967",D[P.KeyEnter]="61968",D[P.KeyEscape]="61969",D[P.KeyOption]="61970",D[P.KeyShift]="61971",D[P.KeyTab]="61972",D[P.Key]="61973",D[P.KnownVehicle]="61974",D[P.LabTest]="61975",D[P.Label]="61976",D[P.LayerOutline]="61977",D[P.Layer]="61978",D[P.Layers]="61979",D[P.LayoutAuto]="61980",D[P.LayoutBalloon]="61981",D[P.LayoutCircle]="61982",D[P.LayoutGrid]="61983",D[P.LayoutGroupBy]="61984",D[P.LayoutHierarchy]="61985",D[P.LayoutLinear]="61986",D[P.LayoutSkewGrid]="61987",D[P.LayoutSortedClusters]="61988",D[P.Layout]="61989",D[P.Learning]="61990",D[P.LeftJoin]="61991",D[P.LengthenText]="62270",D[P.LessThanOrEqualTo]="61992",D[P.LessThan]="61993",D[P.Lifesaver]="61994",D[P.Lightbulb]="61995",D[P.Lightning]="61996",D[P.Link]="61997",D[P.ListColumns]="61998",D[P.ListDetailView]="61999",D[P.List]="62000",D[P.Locate]="62001",D[P.Lock]="62002",D[P.Locomotive]="62267",D[P.LogIn]="62003",D[P.LogOut]="62004",D[P.LowVoltagePole]="62258",D[P.Manual]="62005",D[P.ManuallyEnteredData]="62006",D[P.ManyToMany]="62007",D[P.ManyToOne]="62008",D[P.MapCreate]="62009",D[P.MapMarker]="62010",D[P.Map]="62011",D[P.Maximize]="62012",D[P.Media]="62013",D[P.MenuClosed]="62014",D[P.MenuOpen]="62015",D[P.Menu]="62016",D[P.MergeColumns]="62017",D[P.MergeLinks]="62018",D[P.Microphone]="62275",D[P.Minimize]="62019",D[P.Minus]="62020",D[P.MobilePhone]="62021",D[P.MobileVideo]="62022",D[P.ModalFilled]="62023",D[P.Modal]="62024",D[P.Model]="62269",D[P.Moon]="62025",D[P.More]="62026",D[P.Mountain]="62027",D[P.Move]="62028",D[P.Mugshot]="62029",D[P.MultiSelect]="62030",D[P.Music]="62031",D[P.Nest]="62032",D[P.NewDrawing]="62033",D[P.NewGridItem]="62034",D[P.NewLayer]="62035",D[P.NewLayers]="62036",D[P.NewLink]="62037",D[P.NewObject]="62038",D[P.NewPerson]="62039",D[P.NewPrescription]="62040",D[P.NewShield]="62281",D[P.NewTextBox]="62041",D[P.Ninja]="62042",D[P.NotEqualTo]="62043",D[P.NotificationsSnooze]="62044",D[P.NotificationsUpdated]="62045",D[P.Notifications]="62046",D[P.NumberedList]="62047",D[P.Numerical]="62048",D[P.Office]="62049",D[P.Offline]="62050",D[P.OilField]="62051",D[P.OneColumn]="62052",D[P.OneToMany]="62053",D[P.OneToOne]="62054",D[P.OpenApplication]="62251",D[P.Outdated]="62055",D[P.PageLayout]="62056",D[P.PanelStats]="62057",D[P.PanelTable]="62058",D[P.Paperclip]="62059",D[P.Paragraph]="62060",D[P.PasteVariable]="62278",D[P.PathSearch]="62061",D[P.Path]="62062",D[P.Pause]="62063",D[P.People]="62064",D[P.Percentage]="62065",D[P.Person]="62066",D[P.PhoneCall]="62279",D[P.PhoneForward]="62280",D[P.Phone]="62067",D[P.PieChart]="62068",D[P.Pin]="62069",D[P.PivotTable]="62070",D[P.Pivot]="62071",D[P.Play]="62072",D[P.Playbook]="62244",D[P.Plus]="62073",D[P.PolygonFilter]="62074",D[P.Power]="62075",D[P.PredictiveAnalysis]="62076",D[P.Prescription]="62077",D[P.Presentation]="62078",D[P.Print]="62079",D[P.Projects]="62080",D[P.Properties]="62081",D[P.Property]="62082",D[P.PublishFunction]="62083",D[P.Pulse]="62084",D[P.Rain]="62085",D[P.Random]="62086",D[P.Record]="62087",D[P.RectHeight]="62245",D[P.RectWidth]="62246",D[P.Rectangle]="62241",D[P.Redo]="62088",D[P.Refresh]="62089",D[P.Regex]="62255",D[P.RegressionChart]="62090",D[P.RemoveColumnLeft]="62091",D[P.RemoveColumnRight]="62092",D[P.RemoveColumn]="62093",D[P.RemoveRowBottom]="62094",D[P.RemoveRowTop]="62095",D[P.Remove]="62096",D[P.Repeat]="62097",D[P.Reset]="62098",D[P.Resolve]="62099",D[P.Rig]="62100",D[P.RightJoin]="62101",D[P.Ring]="62102",D[P.RocketSlant]="62103",D[P.Rocket]="62104",D[P.RotateDocument]="62105",D[P.RotatePage]="62106",D[P.Route]="62107",D[P.Satellite]="62108",D[P.Saved]="62109",D[P.ScatterPlot]="62110",D[P.SearchAround]="62111",D[P.SearchTemplate]="62112",D[P.SearchText]="62113",D[P.Search]="62114",D[P.SegmentedControl]="62115",D[P.Select]="62116",D[P.Selection]="62117",D[P.SendBackward]="62293",D[P.SendMessage]="62118",D[P.SendToGraph]="62119",D[P.SendToMap]="62120",D[P.SendTo]="62121",D[P.Sensor]="62268",D[P.SeriesAdd]="62122",D[P.SeriesConfiguration]="62123",D[P.SeriesDerived]="62124",D[P.SeriesFiltered]="62125",D[P.SeriesSearch]="62126",D[P.Settings]="62127",D[P.Shapes]="62128",D[P.Share]="62129",D[P.SharedFilter]="62130",D[P.Shield]="62131",D[P.Ship]="62132",D[P.Shop]="62133",D[P.ShoppingCart]="62134",D[P.ShortenText]="62271",D[P.SignalSearch]="62135",D[P.SimCard]="62136",D[P.Slash]="62137",D[P.SmallCross]="62138",D[P.SmallInfoSign]="62260",D[P.SmallMinus]="62139",D[P.SmallPlus]="62140",D[P.SmallSquare]="62141",D[P.SmallTick]="62142",D[P.Snowflake]="62143",D[P.SoccerBall]="62288",D[P.SocialMedia]="62144",D[P.SortAlphabeticalDesc]="62145",D[P.SortAlphabetical]="62146",D[P.SortAsc]="62147",D[P.SortDesc]="62148",D[P.SortNumericalDesc]="62149",D[P.SortNumerical]="62150",D[P.Sort]="62151",D[P.SpellCheck]="62272",D[P.SplitColumns]="62152",D[P.SportsStadium]="62289",D[P.Square]="62153",D[P.StackedChart]="62154",D[P.StadiumGeometry]="62155",D[P.StarEmpty]="62156",D[P.Star]="62157",D[P.StepBackward]="62158",D[P.StepChart]="62159",D[P.StepForward]="62160",D[P.Stop]="62161",D[P.Stopwatch]="62162",D[P.Strikethrough]="62163",D[P.Style]="62164",D[P.Subscript]="62265",D[P.Superscript]="62266",D[P.SwapHorizontal]="62165",D[P.SwapVertical]="62166",D[P.Switch]="62167",D[P.SymbolCircle]="62168",D[P.SymbolCross]="62169",D[P.SymbolDiamond]="62170",D[P.SymbolRectangle]="62242",D[P.SymbolSquare]="62171",D[P.SymbolTriangleDown]="62172",D[P.SymbolTriangleUp]="62173",D[P.Syringe]="62174",D[P.Tag]="62175",D[P.TakeAction]="62176",D[P.Tank]="62177",D[P.Target]="62178",D[P.Taxi]="62179",D[P.Team]="62290",D[P.Temperature]="62180",D[P.TextHighlight]="62181",D[P.ThDerived]="62182",D[P.ThDisconnect]="62183",D[P.ThFiltered]="62184",D[P.ThList]="62185",D[P.Th]="62186",D[P.ThirdParty]="62187",D[P.ThumbsDown]="62188",D[P.ThumbsUp]="62189",D[P.TickCircle]="62190",D[P.Tick]="62191",D[P.Time]="62192",D[P.TimelineAreaChart]="62193",D[P.TimelineBarChart]="62194",D[P.TimelineEvents]="62195",D[P.TimelineLineChart]="62196",D[P.Tint]="62197",D[P.Torch]="62198",D[P.Tractor]="62199",D[P.Train]="62200",D[P.Translate]="62201",D[P.Trash]="62202",D[P.Tree]="62203",D[P.TrendingDown]="62204",D[P.TrendingUp]="62205",D[P.Trophy]="62287",D[P.Truck]="62206",D[P.TwoColumns]="62207",D[P.Unarchive]="62208",D[P.Underline]="62209",D[P.Undo]="62210",D[P.UngroupObjects]="62211",D[P.UnknownVehicle]="62212",D[P.Unlink]="62277",D[P.Unlock]="62213",D[P.Unpin]="62214",D[P.Unresolve]="62215",D[P.Updated]="62216",D[P.Upload]="62217",D[P.User]="62218",D[P.Variable]="62219",D[P.VerticalBarChartAsc]="62220",D[P.VerticalBarChartDesc]="62221",D[P.VerticalDistribution]="62222",D[P.VerticalInbetween]="62250",D[P.Video]="62223",D[P.Virus]="62224",D[P.VolumeDown]="62225",D[P.VolumeOff]="62226",D[P.VolumeUp]="62227",D[P.Walk]="62228",D[P.WarningSign]="62229",D[P.WaterfallChart]="62230",D[P.Waves]="62231",D[P.WidgetButton]="62232",D[P.WidgetFooter]="62233",D[P.WidgetHeader]="62234",D[P.Widget]="62235",D[P.Wind]="62236",D[P.Wrench]="62237",D[P.ZoomIn]="62238",D[P.ZoomOut]="62239",D[P.ZoomToFit]="62240";var _R={},wR={};for(var Vw=0,yx=Object.values(P);Vw<yx.length;Vw++){var d0=yx[Vw];_R[jF(d0)]=d0,wR[HF(d0).toUpperCase()]=d0}var SR=Le(Le({},_R),wR),WF=new Set(Object.values(SR));function VF(t){return typeof NODE_ENV<"u"&&NODE_ENV===t}function GF(t,e){return dn(this,void 0,void 0,function(){var n,r,i;return rh(this,function(a){switch(a.label){case 0:return n=VF("development")&&typeof performance<"u",n&&(r=performance.now(),console.info("Started '".concat(t,"'..."))),[4,e()];case 1:return a.sent(),n&&(i=Math.round(performance.now()-r),console.info("Finished '".concat(t,"' in ").concat(i,"ms"))),[2]}})})}function BF(t){return dn(this,void 0,void 0,function(){var e,n;return rh(this,function(r){switch(r.label){case 0:return e=t.loader,n=e===void 0?Jd.defaultLoader:e,typeof n!="function"?[3,1]:[2,n];case 1:return n!=="all"?[3,3]:[4,gx(()=>import("./allPathsLoader-0BeGWuiy.js"),[])];case 2:return[2,r.sent().allPathsLoader];case 3:return[4,gx(()=>import("./splitPathsBySizeLoader-BEs5IL5-.js"),[])];case 4:return[2,r.sent().splitPathsBySizeLoader]}})})}var ym=function(){function t(){this.defaultLoader="split-by-size",this.loadedIconPaths16=new Map,this.loadedIconPaths20=new Map}return t.setLoaderOptions=function(e){e.loader!==void 0&&(Jd.defaultLoader=e.loader)},t.load=function(e,n,r){return dn(this,void 0,void 0,function(){var i=this;return rh(this,function(a){switch(a.label){case 0:return Array.isArray(e)||(e=[e]),[4,Promise.all(e.map(function(u){return i.loadImpl(u,n,r)}))];case 1:return a.sent(),[2]}})})},t.loadAll=function(e){return dn(this,void 0,void 0,function(){var n,r=this;return rh(this,function(i){return n=Object.values(SR),GF("[Blueprint] loading all icons",function(){return dn(r,void 0,void 0,function(){return rh(this,function(a){switch(a.label){case 0:return[4,Promise.all([this.load(n,mt.STANDARD,e),this.load(n,mt.LARGE,e)])];case 1:return a.sent(),[2]}})})}),[2]})})},t.getPaths=function(e,n){if(this.isValidIconName(e)){var r=n<mt.LARGE?Jd.loadedIconPaths16:Jd.loadedIconPaths20;return r.get(e)}},t.loadImpl=function(e,n,r){return r===void 0&&(r={}),dn(this,void 0,void 0,function(){var i,a,u,c,f;return rh(this,function(p){switch(p.label){case 0:return this.isValidIconName(e)?(i=n<mt.LARGE?Jd.loadedIconPaths16:Jd.loadedIconPaths20,i.has(e)?[2]:[4,BF(r)]):(console.error("[Blueprint] Unknown icon '".concat(e,"'")),[2]);case 1:a=p.sent(),p.label=2;case 2:return p.trys.push([2,4,,5]),u=n<mt.LARGE?mt.STANDARD:mt.LARGE,[4,a(e,u)];case 3:return c=p.sent(),i.set(e,c),[3,5];case 4:return f=p.sent(),console.error("[Blueprint] Unable to load ".concat(n,"px icon '").concat(e,"'"),f),[3,5];case 5:return[2]}})})},t.isValidIconName=function(e){return WF.has(e)},t}(),Jd=new ym,KF="bp5",_x="".concat(KF,"-icon"),wx=new Map;function XF(t){var e,n=(e=wx.get(t))!==null&&e!==void 0?e:0;return wx.set(t,n+1),"".concat(t,"-").concat(n)}var pl=N.forwardRef(function(t,e){var n=t.children,r=t.className,i=t.color,a=t.htmlTitle,u=t.iconName,c=t.size,f=c===void 0?mt.STANDARD:c,p=t.svgProps,v=t.tagName,m=v===void 0?"span":v,y=t.title,b=kn(t,["children","className","color","htmlTitle","iconName","size","svgProps","tagName","title"]),E=f>=mt.LARGE,A=E?mt.LARGE:mt.STANDARD,S="0 0 ".concat(A," ").concat(A),O=XF("iconTitle"),k=Le({fill:i,height:f,role:"img",viewBox:S,width:f},p);return m===null?N.createElement("svg",Le({"aria-labelledby":y?O:void 0,"data-icon":u,ref:e},k,b,{className:et(r,p?.className)}),y&&N.createElement("title",{id:O},y),n):N.createElement(m,Le(Le({"aria-hidden":y?void 0:!0},b),{className:et(_x,"".concat(_x,"-").concat(u),r),ref:e,title:a}),N.createElement("svg",Le({"data-icon":u},k,{className:p?.className}),y&&N.createElement("title",null,y),n))});pl.displayName="Blueprint5.SVGIconContainer";var MC=N.forwardRef(function(t,e){var n=t.size>=mt.LARGE,r=n?mt.LARGE:mt.STANDARD,i="".concat(-1*r/.05/2),a={transformOrigin:"center"};return N.createElement(pl,Le({iconName:"caret-right",ref:e},t),N.createElement("path",{d:n?"M280 200C280 206.2 277 211.4 272.6 215.2L272.8 215.4L152.8 315.4L152.6 315.2C149.2 318 144.8 320 140 320C129 320 120 311 120 300V100C120 89 129 80 140 80C144.8 80 149.2 82 152.6 84.8L152.8 84.6L272.8 184.6L272.6 184.8C277 188.6 280 193.8 280 200z":"M220 160C220 163 218.6 165.6 216.6 167.4L216.6 167.4L136.6 237.4L136.6 237.4C134.8 239 132.6 240 130 240C124.4 240 120 235.6 120 230V90C120 84.4 124.4 80 130 80C132.6 80 134.8 81 136.6 82.6C136.6 82.6 136.6 82.6 136.6 82.6L216.6 152.6L216.6 152.6C218.6 154.4 220 157 220 160z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:a}))});MC.defaultProps={size:mt.STANDARD};MC.displayName="Blueprint5.Icon.CaretRight";var IC=N.forwardRef(function(t,e){var n=t.size>=mt.LARGE,r=n?mt.LARGE:mt.STANDARD,i="".concat(-1*r/.05/2),a={transformOrigin:"center"};return N.createElement(pl,Le({iconName:"error",ref:e},t),N.createElement("path",{d:n?"M200 400C89.6 400 0 310.4 0 200C0 89.6 89.6 0 200 0S400 89.6 400 200C400 310.4 310.4 400 200 400zM220 80H180V120H220V80zM220 140H180V320H220V140z":"M159.8 320.2C71.4 320.2 -0.2 248.6 -0.2 160.2S71.4 0.2 159.8 0.2S319.8 71.8 319.8 160.2S248.2 320.2 159.8 320.2zM179.8 60.2H139.8V100.2H179.8V60.2zM179.8 120.2H139.8V260.2H179.8V120.2z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:a}))});IC.defaultProps={size:mt.STANDARD};IC.displayName="Blueprint5.Icon.Error";var FC=N.forwardRef(function(t,e){var n=t.size>=mt.LARGE,r=n?mt.LARGE:mt.STANDARD,i="".concat(-1*r/.05/2),a={transformOrigin:"center"};return N.createElement(pl,Le({iconName:"info-sign",ref:e},t),N.createElement("path",{d:n?"M200 400C89.6 400 0 310.4 0 200C0 89.6 89.6 0 200 0S400 89.6 400 200C400 310.4 310.4 400 200 400zM180 320H220V280H180V320zM260 80H140V100H180V240H160V260H220V100H260V80z":"M160 320C71.6 320 0 248.4 0 160S71.6 0 160 0S320 71.6 320 160S248.4 320 160 320zM140 260H180V220H140V260zM200 60H120V80H140V180H120V200H180V80H200V60z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:a}))});FC.defaultProps={size:mt.STANDARD};FC.displayName="Blueprint5.Icon.InfoSign";var e_=N.forwardRef(function(t,e){var n=t.size>=mt.LARGE,r=n?mt.LARGE:mt.STANDARD,i="".concat(-1*r/.05/2),a={transformOrigin:"center"};return N.createElement(pl,Le({iconName:"small-cross",ref:e},t),N.createElement("path",{d:n?"M228.2 200L294 265.8C297.8 269.4 300 274.4 300 280C300 291 291 300 280 300C274.4000000000001 300 269.4000000000001 297.8 265.8 294.2L200 228.2L134.2 294.2C130.6 297.8 125.6 300 120 300C109 300 100 291 100 280C100 274.4 102.2 269.4 105.8 265.8L171.8 200L106 134.2000000000001C102.2 130.6 100 125.6 100 120C100 109 109 100 120 100C125.6 100 130.6 102.2 134.2 105.8L200 171.8L265.8 106C269.4000000000001 102.2 274.4000000000001 100 280 100C291 100 300 109 300 120C300 125.6 297.8 130.6 294.2000000000001 134.2000000000001L228.2 200z":"M188.2 160L234 205.8C237.8 209.4 240 214.4 240 220C240 231 231 240 220 240C214.4 240 209.4 237.8 205.8 234.2L160 188.2L114.2 234.2C110.6 237.8 105.6 240 100 240C89 240 80 231 80 220C80 214.4 82.2 209.4 85.8 205.8L131.8 160L86 114.2C82.2 110.6 80 105.6 80 100C80 89 89 80 100 80C105.6 80 110.6 82.2 114.2 85.8L160 131.8L205.8 86C209.4 82.2 214.4 80 220 80C231 80 240 89 240 100C240 105.6 237.8 110.6 234.2 114.2L188.2 160z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:a}))});e_.defaultProps={size:mt.STANDARD};e_.displayName="Blueprint5.Icon.SmallCross";var $C=N.forwardRef(function(t,e){var n=t.size>=mt.LARGE,r=n?mt.LARGE:mt.STANDARD,i="".concat(-1*r/.05/2),a={transformOrigin:"center"};return N.createElement(pl,Le({iconName:"small-tick",ref:e},t),N.createElement("path",{d:n?"M300 300C294.4000000000001 300 289.4000000000001 297.8 285.8 294.2L160 168.2L114.2 214.2C110.6 217.8 105.6 220 100 220C89 220 80 211 80 200C80 194.4 82.2 189.4 85.8 185.8L145.8 125.8C149.4 122.2 154.4 120 160 120S170.6 122.2 174.2 125.8L314.2000000000001 265.8C317.8 269.4 320 274.4 320 280C320 291 311 300 300 300z":"M240 220C234.4 220 229.4 217.8 225.8 214.2L140 128.2L94.2 174.2C90.6 177.8 85.6 180 80 180C69 180 60 171 60 160C60 154.4 62.2 149.4 65.8 145.8L125.8 85.8C129.4 82.2 134.4 80 140 80S150.6 82.2 154.2 85.8L254.2 185.8C257.8 189.4 260 194.4 260 200C260 211 251 220 240 220z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:a}))});$C.defaultProps={size:mt.STANDARD};$C.displayName="Blueprint5.Icon.SmallTick";var jC=N.forwardRef(function(t,e){var n=t.size>=mt.LARGE,r=n?mt.LARGE:mt.STANDARD,i="".concat(-1*r/.05/2),a={transformOrigin:"center"};return N.createElement(pl,Le({iconName:"tick",ref:e},t),N.createElement("path",{d:n?"M340 320C334.4 320 329.4 317.8 325.8 314.2L140 128.2L74.2 194C70.6 197.8 65.6 200 60 200C49 200 40 191 40 180C40 174.4 42.2 169.4 45.8 165.8L125.8 85.8C129.4 82.2 134.4 80 140 80S150.6 82.2 154.2 85.8L354.2000000000001 285.8C357.8 289.4 360 294.4 360 300C360 311 351 320 340 320z":"M280 260C274.4000000000001 260 269.4000000000001 257.8 265.8 254.2L120 108.2L54.2 174.2C50.6 177.8 45.6 180 40 180C29 180 20 171 20 160C20 154.4 22.2 149.4 25.8 145.8L105.8 65.8C109.4 62.2 114.4 60 120 60S130.6 62.2 134.2 65.8L294.2000000000001 225.8C297.8 229.4 300 234.4 300 240C300 251 291 260 280 260z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:a}))});jC.defaultProps={size:mt.STANDARD};jC.displayName="Blueprint5.Icon.Tick";var zC=N.forwardRef(function(t,e){var n=t.size>=mt.LARGE,r=n?mt.LARGE:mt.STANDARD,i="".concat(-1*r/.05/2),a={transformOrigin:"center"};return N.createElement(pl,Le({iconName:"warning-sign",ref:e},t),N.createElement("path",{d:n?"M397.2 49.6C397.2 49.6 397.4000000000001 49.8000000000001 397.4000000000001 49.8000000000001L217.4 369.8000000000001C217.4 369.8000000000001 217.2 369.6 217.2 369.6C213.8 375.8 207.4 380 200 380S186.2 375.8 182.8 369.6L182.6 369.8L2.6 49.8L2.8 49.5999999999999C1.2 46.8 0 43.6 0 40C0 29 9 20 20 20H380C391 20 400 29 400 40C400 43.6 398.8 46.8 397.2 49.6zM220 60H180V100H220V60zM220 120H180V280H220V120z":"M316.8 50L317 50.2L177 290.2L176.8 290C173.4 296 167.2 300 159.8 300S146.4 296 142.8 290C142.8 290 142.6 290.2 142.6 290.2L2.6 50.2L2.8 50C1 47 -0.2 43.8 -0.2 40C-0.2 29 8.8 20 19.8 20H299.8C310.8 20 319.8 29 319.8 40C319.8 43.8 318.6 47 316.8 50zM179.8 60.2H139.8V100.2H179.8V60.2zM179.8 120.2H139.8V220.2H179.8V120.2z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:a}))});zC.defaultProps={size:mt.STANDARD};zC.displayName="Blueprint5.Icon.WarningSign";var Nr=N.forwardRef(function(t,e){var n,r,i=t.autoLoad,a=t.className,u=t.color,c=t.icon,f=t.intent,p=t.tagName,v=t.svgProps,m=t.title,y=t.htmlTitle,b=kn(t,["autoLoad","className","color","icon","intent","tagName","svgProps","title","htmlTitle"]),E=(r=(n=t.iconSize)!==null&&n!==void 0?n:t.size)!==null&&r!==void 0?r:mt.STANDARD,A=N.useState(function(){return typeof c=="string"?ym.getPaths(c,E):void 0}),S=A[0],O=A[1];if(N.useEffect(function(){var C=!1;if(typeof c=="string"){var w=ym.getPaths(c,E);w!==void 0?O(w):i?ym.load(c,E).then(function(){C||O(ym.getPaths(c,E))}).catch(function(R){console.error("[Blueprint] Icon '".concat(c,"' (").concat(E,"px) could not be loaded."),R)}):console.error("[Blueprint] Icon '".concat(c,"' (").concat(E,"px) is not loaded yet and autoLoad={false}, did you call Icons.load('").concat(c,"', ").concat(E,")?"))}return function(){C=!0}},[i,c,E]),c==null||typeof c=="boolean")return null;if(typeof c!="string")return c;if(S==null){var k=E===mt.STANDARD?q3:E===mt.LARGE?U3:void 0;return N.createElement(p,Le(Le({"aria-hidden":m?void 0:!0},rf(b)),{className:et(PC,k,V3(c),eo(f),a),"data-icon":c,ref:e,title:y}))}else{var T=S.map(function(C,w){return N.createElement("path",{d:C,key:w,fillRule:"evenodd"})});return N.createElement(pl,Le({children:T,className:et(eo(f),a),color:u,htmlTitle:y,iconName:c,ref:e,size:E,svgProps:v,tagName:p,title:m},rf(b)))}});Nr.defaultProps={autoLoad:!0,tagName:"span"};Nr.displayName="".concat(zt,".Icon");var Hc;(function(t){t[t.SMALL=20]="SMALL",t[t.STANDARD=50]="STANDARD",t[t.LARGE=100]="LARGE"})(Hc||(Hc={}));var uu=45,Sx="M 50,50 m 0,-".concat(uu," a ").concat(uu,",").concat(uu," 0 1 1 0,").concat(uu*2," a ").concat(uu,",").concat(uu," 0 1 1 0,-").concat(uu*2),fm=280,YF=10,QF=4,ZF=16,CR=function(t){Yn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.componentDidUpdate=function(n){n.value!==this.props.value&&this.forceUpdate()},e.prototype.render=function(){var n,r=this.props,i=r.className,a=r.intent,u=r.value,c=r.tagName,f=c===void 0?"div":c,p=kn(r,["className","intent","value","tagName"]),v=this.getSize(),m=et(Zy,eo(a),(n={},n[D3]=u!=null,n),i),y=Math.min(ZF,QF*Hc.LARGE/v),b=fm-fm*(u==null?.25:hR(u,0,1));return N.createElement(f,Le({"aria-label":"loading","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":u===void 0?void 0:u*100,className:m,role:"progressbar"},p),N.createElement(f,{className:N3},N.createElement("svg",{width:v,height:v,strokeWidth:y.toFixed(2),viewBox:this.getViewBox(y)},N.createElement("path",{className:L3,d:Sx}),N.createElement("path",{className:P3,d:Sx,pathLength:fm,strokeDasharray:"".concat(fm," ").concat(fm),strokeDashoffset:b}))))},e.prototype.validateProps=function(n){var r=n.className,i=r===void 0?"":r,a=n.size;a!=null&&(i.indexOf(zm)>=0||i.indexOf(ll)>=0)&&console.warn(_F)},e.prototype.getSize=function(){var n=this.props,r=n.className,i=r===void 0?"":r,a=n.size;return a==null?i.indexOf(zm)>=0?Hc.SMALL:i.indexOf(ll)>=0?Hc.LARGE:Hc.STANDARD:Math.max(YF,a)},e.prototype.getViewBox=function(n){var r=uu+n/2,i=(50-r).toFixed(2),a=(r*2).toFixed(2);return"".concat(i," ").concat(i," ").concat(a," ").concat(a)},e.displayName="".concat(zt,".Spinner"),e}(sr),JF=dR()?N.useLayoutEffect:N.useEffect,_v=N.forwardRef(function(t,e){var n,r=t.children,i=t.tagName,a=i===void 0?"div":i,u=t.title,c=t.className,f=t.ellipsize,p=kn(t,["children","tagName","title","className","ellipsize"]),v=N.useRef(),m=N.useMemo(function(){return nf(v,e)},[e]),y=N.useState(""),b=y[0],E=y[1],A=N.useState(),S=A[0],O=A[1];return JF(function(){var k;((k=v.current)===null||k===void 0?void 0:k.textContent)!=null&&(O(f&&v.current.scrollWidth>v.current.clientWidth),E(v.current.textContent))},[v,r,f]),N.createElement(a,Le(Le({},p),{className:et((n={},n[N8]=f,n),c),ref:m,title:u??(S?b:void 0)}),r)});_v.defaultProps={ellipsize:!1};_v.displayName="".concat(zt,".Text");var of=N.forwardRef(function(t,e){var n=ER(t,e);return N.createElement("button",Le({type:"button"},rf(t),n),xR(t))});of.displayName="".concat(zt,".Button");var bR=N.forwardRef(function(t,e){var n=t.href,r=t.tabIndex,i=r===void 0?0:r,a=ER(t,e);return N.createElement("a",Le({role:"button"},rf(t),a,{"aria-disabled":a.disabled,href:a.disabled?void 0:n,tabIndex:a.disabled?-1:i}),xR(t))});bR.displayName="".concat(zt,".AnchorButton");function ER(t,e){var n,r=t.active,i=r===void 0?!1:r,a=t.alignText,u=t.fill,c=t.large,f=t.loading,p=f===void 0?!1:f,v=t.minimal,m=t.onBlur,y=t.onKeyDown,b=t.onKeyUp,E=t.outlined,A=t.small,S=t.tabIndex,O=t.disabled||p,k=N.useState(),T=k[0],C=k[1],w=N.useState(!1),R=w[0],I=w[1],$=N.useRef(null),U=N.useCallback(function(ee){R&&I(!1),m?.(ee)},[R,m]),G=N.useCallback(function(ee){Um(ee)&&(ee.preventDefault(),ee.key!==T&&I(!0)),C(ee.key),y?.(ee)},[T,y]),Y=N.useCallback(function(ee){var ae;Um(ee)&&(I(!1),(ae=$.current)===null||ae===void 0||ae.click()),C(void 0),b?.(ee)},[b]),Z=et(Xy,(n={},n[jm]=!O&&(i||R),n[gv]=O,n[tf]=u,n[ll]=c,n[T8]=p,n[RC]=v,n[O8]=E,n[zm]=A,n),DC(a),eo(t.intent),t.className);return{className:Z,disabled:O,onBlur:U,onClick:O?void 0:t.onClick,onFocus:O?void 0:t.onFocus,onKeyDown:G,onKeyUp:Y,ref:nf($,e),tabIndex:O?-1:S}}function xR(t){var e=t.children,n=t.ellipsizeText,r=t.icon,i=t.loading,a=t.rightIcon,u=t.text,c=t.textClassName,f=!qm(u)||!qm(e);return N.createElement(N.Fragment,null,i&&N.createElement(CR,{key:"loading",className:$8,size:Hc.SMALL}),N.createElement(Nr,{key:"leftIcon",icon:r}),f&&N.createElement(_v,{key:"text",className:et(j8,c),ellipsize:n,tagName:"span"},u,e),N.createElement(Nr,{key:"rightIcon",icon:a}))}function Zo(t,e){return N.forwardRef(function(n,r){var i=n.className,a=n.children,u=kn(n,["className","children"]);return N.createElement(t,Le(Le({},u),{className:et(e,i),ref:r}),a)})}var e6=Zo("h1",Mh),$0=Zo("h2",Mh);Zo("h3",Mh);var TR=Zo("h4",Mh),t6=Zo("h5",Mh),n6=Zo("h6",Mh);Zo("blockquote",P8);Zo("code",D8);Zo("pre",L8);Zo("label",r3);Zo("ol",eR);Zo("ul",eR);function ci(){return ci=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ci.apply(this,arguments)}function t_(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function sy(t,e){return sy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},sy(t,e)}function HC(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,sy(t,e)}function r6(t,e){return t.classList?!!e&&t.classList.contains(e):(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")!==-1}function i6(t,e){t.classList?t.classList.add(e):r6(t,e)||(typeof t.className=="string"?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))}function Cx(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function o6(t,e){t.classList?t.classList.remove(e):typeof t.className=="string"?t.className=Cx(t.className,e):t.setAttribute("class",Cx(t.className&&t.className.baseVal||"",e))}var wv=sA();const ih=no(wv),a6=aA({__proto__:null,default:ih},[wv]),bx={disabled:!1},ly=je.createContext(null);var OR=function(e){return e.scrollTop},_m="unmounted",Nc="exited",Pc="entering",eh="entered",CS="exiting",ml=function(t){HC(e,t);function e(r,i){var a;a=t.call(this,r,i)||this;var u=i,c=u&&!u.isMounting?r.enter:r.appear,f;return a.appearStatus=null,r.in?c?(f=Nc,a.appearStatus=Pc):f=eh:r.unmountOnExit||r.mountOnEnter?f=_m:f=Nc,a.state={status:f},a.nextCallback=null,a}e.getDerivedStateFromProps=function(i,a){var u=i.in;return u&&a.status===_m?{status:Nc}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var u=this.state.status;this.props.in?u!==Pc&&u!==eh&&(a=Pc):(u===Pc||u===eh)&&(a=CS)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,u,c;return a=u=c=i,i!=null&&typeof i!="number"&&(a=i.exit,u=i.enter,c=i.appear!==void 0?i.appear:u),{exit:a,enter:u,appear:c}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===Pc){if(this.props.unmountOnExit||this.props.mountOnEnter){var u=this.props.nodeRef?this.props.nodeRef.current:ih.findDOMNode(this);u&&OR(u)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Nc&&this.setState({status:_m})},n.performEnter=function(i){var a=this,u=this.props.enter,c=this.context?this.context.isMounting:i,f=this.props.nodeRef?[c]:[ih.findDOMNode(this),c],p=f[0],v=f[1],m=this.getTimeouts(),y=c?m.appear:m.enter;if(!i&&!u||bx.disabled){this.safeSetState({status:eh},function(){a.props.onEntered(p)});return}this.props.onEnter(p,v),this.safeSetState({status:Pc},function(){a.props.onEntering(p,v),a.onTransitionEnd(y,function(){a.safeSetState({status:eh},function(){a.props.onEntered(p,v)})})})},n.performExit=function(){var i=this,a=this.props.exit,u=this.getTimeouts(),c=this.props.nodeRef?void 0:ih.findDOMNode(this);if(!a||bx.disabled){this.safeSetState({status:Nc},function(){i.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:CS},function(){i.props.onExiting(c),i.onTransitionEnd(u.exit,function(){i.safeSetState({status:Nc},function(){i.props.onExited(c)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,u=!0;return this.nextCallback=function(c){u&&(u=!1,a.nextCallback=null,i(c))},this.nextCallback.cancel=function(){u=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var u=this.props.nodeRef?this.props.nodeRef.current:ih.findDOMNode(this),c=i==null&&!this.props.addEndListener;if(!u||c){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var f=this.props.nodeRef?[this.nextCallback]:[u,this.nextCallback],p=f[0],v=f[1];this.props.addEndListener(p,v)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===_m)return null;var a=this.props,u=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var c=t_(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return je.createElement(ly.Provider,{value:null},typeof u=="function"?u(i,c):je.cloneElement(je.Children.only(u),c))},e}(je.Component);ml.contextType=ly;ml.propTypes={};function Yd(){}ml.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Yd,onEntering:Yd,onEntered:Yd,onExit:Yd,onExiting:Yd,onExited:Yd};ml.UNMOUNTED=_m;ml.EXITED=Nc;ml.ENTERING=Pc;ml.ENTERED=eh;ml.EXITING=CS;var s6=function(e,n){return e&&n&&n.split(" ").forEach(function(r){return i6(e,r)})},Gw=function(e,n){return e&&n&&n.split(" ").forEach(function(r){return o6(e,r)})},Cm=function(t){HC(e,t);function e(){for(var r,i=arguments.length,a=new Array(i),u=0;u<i;u++)a[u]=arguments[u];return r=t.call.apply(t,[this].concat(a))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(c,f){var p=r.resolveArguments(c,f),v=p[0],m=p[1];r.removeClasses(v,"exit"),r.addClass(v,m?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(c,f)},r.onEntering=function(c,f){var p=r.resolveArguments(c,f),v=p[0],m=p[1],y=m?"appear":"enter";r.addClass(v,y,"active"),r.props.onEntering&&r.props.onEntering(c,f)},r.onEntered=function(c,f){var p=r.resolveArguments(c,f),v=p[0],m=p[1],y=m?"appear":"enter";r.removeClasses(v,y),r.addClass(v,y,"done"),r.props.onEntered&&r.props.onEntered(c,f)},r.onExit=function(c){var f=r.resolveArguments(c),p=f[0];r.removeClasses(p,"appear"),r.removeClasses(p,"enter"),r.addClass(p,"exit","base"),r.props.onExit&&r.props.onExit(c)},r.onExiting=function(c){var f=r.resolveArguments(c),p=f[0];r.addClass(p,"exit","active"),r.props.onExiting&&r.props.onExiting(c)},r.onExited=function(c){var f=r.resolveArguments(c),p=f[0];r.removeClasses(p,"exit"),r.addClass(p,"exit","done"),r.props.onExited&&r.props.onExited(c)},r.resolveArguments=function(c,f){return r.props.nodeRef?[r.props.nodeRef.current,c]:[c,f]},r.getClassNames=function(c){var f=r.props.classNames,p=typeof f=="string",v=p&&f?f+"-":"",m=p?""+v+c:f[c],y=p?m+"-active":f[c+"Active"],b=p?m+"-done":f[c+"Done"];return{baseClassName:m,activeClassName:y,doneClassName:b}},r}var n=e.prototype;return n.addClass=function(i,a,u){var c=this.getClassNames(a)[u+"ClassName"],f=this.getClassNames("enter"),p=f.doneClassName;a==="appear"&&u==="done"&&p&&(c+=" "+p),u==="active"&&i&&OR(i),c&&(this.appliedClasses[a][u]=c,s6(i,c))},n.removeClasses=function(i,a){var u=this.appliedClasses[a],c=u.base,f=u.active,p=u.done;this.appliedClasses[a]={},c&&Gw(i,c),f&&Gw(i,f),p&&Gw(i,p)},n.render=function(){var i=this.props;i.classNames;var a=t_(i,["classNames"]);return je.createElement(ml,ci({},a,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},e}(je.Component);Cm.defaultProps={classNames:""};Cm.propTypes={};function uy(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function qC(t,e){var n=function(a){return e&&N.isValidElement(a)?e(a):a},r=Object.create(null);return t&&N.Children.map(t,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function l6(t,e){t=t||{},e=e||{};function n(v){return v in e?e[v]:t[v]}var r=Object.create(null),i=[];for(var a in t)a in e?i.length&&(r[a]=i,i=[]):i.push(a);var u,c={};for(var f in e){if(r[f])for(u=0;u<r[f].length;u++){var p=r[f][u];c[r[f][u]]=n(p)}c[f]=n(f)}for(u=0;u<i.length;u++)c[i[u]]=n(i[u]);return c}function qc(t,e,n){return n[e]!=null?n[e]:t.props[e]}function u6(t,e){return qC(t.children,function(n){return N.cloneElement(n,{onExited:e.bind(null,n),in:!0,appear:qc(n,"appear",t),enter:qc(n,"enter",t),exit:qc(n,"exit",t)})})}function c6(t,e,n){var r=qC(t.children),i=l6(e,r);return Object.keys(i).forEach(function(a){var u=i[a];if(N.isValidElement(u)){var c=a in e,f=a in r,p=e[a],v=N.isValidElement(p)&&!p.props.in;f&&(!c||v)?i[a]=N.cloneElement(u,{onExited:n.bind(null,u),in:!0,exit:qc(u,"exit",t),enter:qc(u,"enter",t)}):!f&&c&&!v?i[a]=N.cloneElement(u,{in:!1}):f&&c&&N.isValidElement(p)&&(i[a]=N.cloneElement(u,{onExited:n.bind(null,u),in:p.props.in,exit:qc(u,"exit",t),enter:qc(u,"enter",t)}))}}),i}var f6=Object.values||function(t){return Object.keys(t).map(function(e){return t[e]})},d6={component:"div",childFactory:function(e){return e}},UC=function(t){HC(e,t);function e(r,i){var a;a=t.call(this,r,i)||this;var u=a.handleExited.bind(uy(a));return a.state={contextValue:{isMounting:!0},handleExited:u,firstRender:!0},a}var n=e.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},e.getDerivedStateFromProps=function(i,a){var u=a.children,c=a.handleExited,f=a.firstRender;return{children:f?u6(i,c):c6(i,u,c),firstRender:!1}},n.handleExited=function(i,a){var u=qC(this.props.children);i.key in u||(i.props.onExited&&i.props.onExited(a),this.mounted&&this.setState(function(c){var f=ci({},c.children);return delete f[i.key],{children:f}}))},n.render=function(){var i=this.props,a=i.component,u=i.childFactory,c=t_(i,["component","childFactory"]),f=this.state.contextValue,p=f6(this.state.children).map(u);return delete c.appear,delete c.enter,delete c.exit,a===null?je.createElement(ly.Provider,{value:f},p):je.createElement(ly.Provider,{value:f},je.createElement(a,c,p))},e}(je.Component);UC.propTypes={};UC.defaultProps=d6;var h6=function(){var t=1,e=new WeakMap,n=function(r,i){return typeof r=="number"||typeof r=="string"?i?"idx-".concat(i):"val-".concat(r):e.has(r)?"uid"+e.get(r):(e.set(r,t++),n(r))};return n},AR=function(t){return t===void 0&&(t=""),{value:1,prefix:t,uid:h6()}},p6=AR(),m6=N.createContext(AR()),v6=function(t){return t.value++},g6=function(t){return t?t.prefix:""},y6=function(t){var e=t||p6,n=g6(e),r=v6(e),i=n+r,a=function(u){return i+e.uid(u)};return{uid:i,gen:a}},_6=function(){var t=N.useContext(m6),e=N.useState(function(){return y6(t)})[0];return e},w6=function(){var t=_6().uid;return t},S6=N.createContext({hasProvider:!1,stack:{current:[]}}),Bw={exports:{}},Kw={};/**
|
|
51
|
+
* @license React
|
|
52
|
+
* use-sync-external-store-shim.production.min.js
|
|
53
|
+
*
|
|
54
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
55
|
+
*
|
|
56
|
+
* This source code is licensed under the MIT license found in the
|
|
57
|
+
* LICENSE file in the root directory of this source tree.
|
|
58
|
+
*/var Ex;function C6(){if(Ex)return Kw;Ex=1;var t=jy();function e(m,y){return m===y&&(m!==0||1/m===1/y)||m!==m&&y!==y}var n=typeof Object.is=="function"?Object.is:e,r=t.useState,i=t.useEffect,a=t.useLayoutEffect,u=t.useDebugValue;function c(m,y){var b=y(),E=r({inst:{value:b,getSnapshot:y}}),A=E[0].inst,S=E[1];return a(function(){A.value=b,A.getSnapshot=y,f(A)&&S({inst:A})},[m,b,y]),i(function(){return f(A)&&S({inst:A}),m(function(){f(A)&&S({inst:A})})},[m]),u(b),b}function f(m){var y=m.getSnapshot;m=m.value;try{var b=y();return!n(m,b)}catch{return!0}}function p(m,y){return y()}var v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:c;return Kw.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:v,Kw}var xx;function b6(){return xx||(xx=1,Bw.exports=C6()),Bw.exports}var E6=b6(),bm=[],j0=[],x6=function(t){t(bm),j0.forEach(function(e){return e()})},Xw={getSnapshot:function(){return bm},subscribe:function(t){return j0.push(t),function(){var e=j0.indexOf(t);j0.splice(e,1)}}};function T6(){var t=E6.useSyncExternalStore(Xw.subscribe,Xw.getSnapshot,Xw.getSnapshot),e=je.useCallback(function(){return t.at(-1)},[t]),n=je.useCallback(function(u){var c=t.findIndex(function(f){return f.id===u});return t.slice(c)},[t]),r=je.useCallback(function(){x6(function(u){return u.splice(0,u.length)})},[]),i=je.useCallback(function(u){bm.push(u),u.props.usePortal&&u.props.hasBackdrop&&document.body.classList.add(Hm)},[]),a=je.useCallback(function(u){var c=t.filter(function(p){return p.props.usePortal&&p.props.hasBackdrop&&p.id!==u}),f=bm.findIndex(function(p){return p.id===u});f>-1&&bm.splice(f,1),c.length===0&&document.body.classList.remove(Hm)},[t]);return{closeOverlay:a,getLastOpened:e,getThisOverlayAndDescendants:n,openOverlay:i,resetStack:r}}function O6(){var t=je.useContext(S6),e=t.stack,n=t.hasProvider,r=T6(),i=je.useCallback(function(){return e.current.at(-1)},[e]),a=je.useCallback(function(p){var v=e.current.findIndex(function(m){return m.id===p});return v===-1?[]:e.current.slice(v)},[e]),u=je.useCallback(function(){e.current=[]},[e]),c=je.useCallback(function(p){e.current.push(p),p.props.usePortal&&p.props.hasBackdrop&&document.body.classList.add(Hm)},[e]),f=je.useCallback(function(p){var v=e.current.filter(function(y){return y.props.usePortal&&y.props.hasBackdrop&&y.id!==p}),m=e.current.findIndex(function(y){return y.id===p});m>-1&&e.current.splice(m,1),v.length===0&&document.body.classList.remove(Hm)},[e]);return n?{closeOverlay:f,getLastOpened:i,getThisOverlayAndDescendants:a,openOverlay:c,resetStack:u}:(gh("development")&&console.error(CF),r)}function A6(t){var e=N.useRef();return N.useEffect(function(){e.current=t},[t]),e.current}function Yw(t){var e=zo(t),n=e!=null?Array.from(e.querySelectorAll(['a[href]:not([tabindex="-1"])','button:not([disabled]):not([tabindex="-1"])','details:not([tabindex="-1"])','input:not([disabled]):not([tabindex="-1"])','select:not([disabled]):not([tabindex="-1"])','textarea:not([disabled]):not([tabindex="-1"])','[tabindex]:not([tabindex="-1"])'].join(","))):[];return n.filter(function(r){return!r.classList.contains(lR)&&!r.classList.contains(uR)})}var R6=N.createContext({}),k6={blueprintPortalClassName:function(t,e){if(t[e]!=null&&typeof t[e]!="string")return new Error(gF)}};function WC(t,e){var n,r=t.className,i=t.stopPropagationEvents,a=t.container,u=t.onChildrenMount,c=t.children;e===void 0&&(e={});var f=N.useContext(R6),p=(n=a??f.portalContainer)!==null&&n!==void 0?n:typeof document<"u"?document.body:void 0,v=N.useState(),m=v[0],y=v[1],b=N.useCallback(function(){var E=document.createElement("div");E.classList.add(k3),h0(E.classList,r),h0(E.classList,f.portalClassName),Tx(E,i);var A=e.blueprintPortalClassName;return A!=null&&A!==""&&(console.error(yF),h0(E.classList,A)),E},[r,f.portalClassName,e.blueprintPortalClassName,i]);return N.useEffect(function(){if(p!=null){var E=b();return p.appendChild(E),y(E),function(){Ox(E,i),E.remove(),y(void 0)}}},[p,b,i]),N.useEffect(function(){m!=null&&u?.()},[m,u]),N.useEffect(function(){if(m!=null)return h0(m.classList,r),function(){return N6(m.classList,r)}},[r,m]),N.useEffect(function(){if(m!=null)return Tx(m,i),function(){return Ox(m,i)}},[m,i]),typeof document>"u"||m==null?null:wv.createPortal(c,m)}WC.displayName="".concat(zt,".Portal");RF()||(WC.contextTypes=k6);function N6(t,e){e!=null&&e!==""&&t.remove.apply(t,e.split(" "))}function h0(t,e){e!=null&&e!==""&&t.add.apply(t,e.split(" "))}function Tx(t,e){e?.forEach(function(n){return t.addEventListener(n,RR)})}function Ox(t,e){e?.forEach(function(n){return t.removeEventListener(n,RR)})}function RR(t){t.stopPropagation()}var Sv=N.forwardRef(function(t,e){var n,r,i,a=t.autoFocus,u=t.backdropClassName,c=t.backdropProps,f=t.canEscapeKeyClose,p=t.canOutsideClickClose,v=t.childRef,m=t.childRefs,y=t.children,b=t.className,E=t.enforceFocus,A=t.hasBackdrop,S=t.isOpen,O=t.lazy,k=t.onClose,T=t.onClosed,C=t.onClosing,w=t.onOpened,R=t.onOpening,I=t.portalClassName,$=t.portalContainer,U=t.shouldReturnFocusOnClose,G=t.transitionDuration,Y=t.transitionName,Z=t.usePortal;P6(t);var ee=O6(),ae=ee.closeOverlay,de=ee.getLastOpened,Q=ee.getThisOverlayAndDescendants,re=ee.openOverlay,z=N.useState(!1),B=z[0],F=z[1],W=N.useState(!1),X=W[0],le=W[1],ce=N.useRef(null),oe=N.useRef(null),q=N.useRef(null),ie=N.useRef(null),J=N.useRef(null),be=N.useRef(null),Ee=N.useCallback(function(){return requestAnimationFrame(function(){var Xe,it=zo(oe),Mt=SS(it);if(!(it==null||Mt==null)){var Zn=!it.contains(Mt);Zn&&((Xe=zo(ie))===null||Xe===void 0||Xe.focus({preventScroll:!0}),F(!1))}})},[]),Re=D6(),Me=N.useRef(null),qe=N.useCallback(function(Xe){var it=Xe.composed?Xe.composedPath()[0]:Xe.target,Mt=zo(oe);Mt!=null&&it instanceof Node&&!Mt.contains(it)&&(Xe.preventDefault(),Xe.stopImmediatePropagation(),Ee())},[Ee]),Je=N.useCallback(function(Xe){var it=Xe.composed?Xe.composedPath()[0]:Xe.target,Mt=Q(Re),Zn=Mt.some(function(pn){var Qr=pn.containerElement,br=zo(Qr);return br?.contains(it)&&!br.isSameNode(it)});Zn||k?.(Xe)},[Q,Re,k]);N.useEffect(function(){document.removeEventListener("mousedown",Je)},[Je]),N.useEffect(function(){document.removeEventListener("focus",qe,!0)},[qe]);var ye=N.useMemo(function(){return nf(e,Me)},[e]);N.useImperativeHandle(ye,function(){return{bringFocusInsideOverlay:Ee,containerElement:oe,handleDocumentFocus:qe,handleDocumentMousedown:Je,id:Re,props:{autoFocus:a,enforceFocus:E,hasBackdrop:A,usePortal:Z}}},[a,Ee,E,qe,Je,A,Re,Z]);var Ce=N.useCallback(function(Xe){Xe.key==="Escape"&&f&&(k?.(Xe),Xe.stopPropagation(),Xe.preventDefault())},[f,k]),ke=N.useCallback(function(){if(Me.current!=null){var Xe=de();Xe?.handleDocumentFocus!==void 0&&document.removeEventListener("focus",Xe.handleDocumentFocus,!0),re(Me.current),a&&(F(!0),Ee()),E&&document.addEventListener("focus",qe,!0),p&&!A&&document.addEventListener("mousedown",Je),LC(ce,SS(zo(oe)))}},[a,Ee,p,E,de,Je,qe,A,re]),xe=N.useCallback(function(){var Xe;document.removeEventListener("focus",qe,!0),document.removeEventListener("mousedown",Je),ae(Re);var it=de();it!==void 0&&it.props.autoFocus&&it.props.enforceFocus&&((Xe=it.bringFocusInsideOverlay)===null||Xe===void 0||Xe.call(it),it.handleDocumentFocus!==void 0&&document.addEventListener("focus",it.handleDocumentFocus,!0))},[ae,de,qe,Je,Re]),Fe=(r=A6(S))!==null&&r!==void 0?r:!1;N.useEffect(function(){S&&le(!0),!Fe&&S&&ke(),Fe&&!S&&xe()},[S,ke,xe,Fe]),N.useEffect(function(){return function(){S&&xe()}},[]);var Ae=N.useCallback(function(Xe){var it=zo(ce);U&&it instanceof HTMLElement&&it.focus(),T?.(Xe)},[T,U]),ze=N.useCallback(function(){},[]),nt=N.useCallback(function(Xe){if(v!=null)return v;if(m!=null){var it=Xe.key;if(it==null){gh("production")||console.error(xF);return}return m[it]}},[v,m]),ct=N.useCallback(function(Xe){if(Xe==null||pR(Xe))return null;var it=nt(Xe),Mt=vR(Xe)?Xe.props:{},Zn=mR(Xe,"span",{className:et(Mt.className,h3),ref:it===void 0?be:void 0,tabIndex:E||a?0:void 0}),pn=it??be;return N.createElement(Cm,{addEndListener:ze,classNames:Y,nodeRef:pn,onEntered:p0(w,pn),onEntering:p0(R,pn),onExited:p0(Ae,pn),onExiting:p0(C,pn),timeout:G},Zn)},[a,E,nt,ze,Ae,C,w,R,G,Y]),Ge=N.useCallback(function(Xe){var it;p&&k?.(Xe),E&&Ee(),(it=c?.onMouseDown)===null||it===void 0||it.call(c,Xe)},[c,Ee,p,E,k]),yt=N.useCallback(function(Xe,it){return N.createElement(Cm,{addEndListener:ze,classNames:Y,key:Xe,nodeRef:it.ref,timeout:G,unmountOnExit:!0},N.createElement("div",Le({tabIndex:0},it)))},[ze,G,Y]),Bt=N.useCallback(function(Xe){if(!(!E||B)){var it=zo(oe),Mt=zo(J);Xe.relatedTarget!=null&&it?.contains(Xe.relatedTarget)&&Xe.relatedTarget!==Mt&&Mt?.focus({preventScroll:!0})}},[E,B]),$n=N.useCallback(function(Xe){var it;if(E&&Xe.shiftKey&&Xe.key==="Tab"){var Mt=Yw(oe).pop();Mt!=null?Mt.focus():(it=zo(J))===null||it===void 0||it.focus({preventScroll:!0})}},[E]),Yt=N.useCallback(function(Xe){var it,Mt=zo(ie);if(Xe.relatedTarget!=null&&(!((it=zo(oe))===null||it===void 0)&&it.contains(Xe.relatedTarget))&&Xe.relatedTarget!==Mt){var Zn=Yw(oe).shift();!B&&Zn!=null&&Zn!==Xe.relatedTarget?Zn.focus():Mt?.focus({preventScroll:!0})}else{var pn=Yw(oe).pop();pn!=null?pn.focus():Mt?.focus({preventScroll:!0})}},[B]),Yr=N.useMemo(function(){return A&&S?N.createElement(Cm,{classNames:Y,key:"__backdrop",nodeRef:q,timeout:G,addEndListener:ze},N.createElement("div",Le({},c,{className:et(d3,u,c?.className),onMouseDown:Ge,ref:q}))):null},[u,c,Ge,ze,A,S,G,Y]);if(O&&!X)return null;var lr=S?(i=N.Children.map(y,ct))!==null&&i!==void 0?i:[]:[];Yr!==null&&lr.unshift(Yr),S&&(a||E)&&lr.length>0&&(lr.unshift(yt("__start",{className:lR,onFocus:Bt,onKeyDown:$n,ref:ie})),E&&lr.push(yt("__end",{className:uR,onFocus:Yt,ref:J})));var Dr=N.createElement("div",{"aria-live":"polite",className:et(dl,(n={},n[Hm]=S,n[p3]=!Z,n),b),onKeyDown:Ce,ref:oe},N.createElement(UC,{appear:!0,component:null},lr));return Z?N.createElement(WC,{className:I,container:$},Dr):Dr});Sv.defaultProps={autoFocus:!0,backdropProps:{},canEscapeKeyClose:!0,canOutsideClickClose:!0,enforceFocus:!0,hasBackdrop:!0,isOpen:!1,lazy:dR(),shouldReturnFocusOnClose:!0,transitionDuration:300,transitionName:dl,usePortal:!0};Sv.displayName="".concat(zt,".Overlay2");function P6(t){var e=t.childRef,n=t.childRefs,r=t.children,i=N.Children.count(r);N.useEffect(function(){gh("production")||(e!=null&&n!=null&&console.error(bF),i>1&&n==null&&console.error(EF))},[e,n,i])}function D6(){var t=w6();return"".concat(Sv.displayName,"-").concat(t)}function p0(t,e){return function(){e?.current!=null&&t?.(e.current)}}var VC=function(t){Yn(e,t);function e(n){var r=t.call(this,n)||this;r.childRef=N.createRef();var i=TF("bp-dialog");return r.titleId="title-".concat(i),r}return e.prototype.render=function(){var n=this.props,r=n.className,i=n.children,a=n.containerRef,u=n.style,c=n.title,f=kn(n,["className","children","containerRef","style","title"]);return N.createElement(Sv,Le({},f,{className:m3,childRef:this.childRef,hasBackdrop:!0}),N.createElement("div",{className:W8,ref:a===void 0?this.childRef:nf(a,this.childRef)},N.createElement("div",{className:et(Ih,r),role:"dialog","aria-labelledby":this.props["aria-labelledby"]||(c?this.titleId:void 0),"aria-describedby":this.props["aria-describedby"],style:u},this.maybeRenderHeader(),i)))},e.prototype.validateProps=function(n){n.title==null&&(n.icon!=null&&console.warn(wF),n.isCloseButtonShown!=null&&console.warn(SF))},e.prototype.maybeRenderCloseButton=function(){if(this.props.isCloseButtonShown!==!1)return N.createElement(of,{"aria-label":"Close",className:G8,icon:N.createElement(e_,{size:mt.STANDARD}),minimal:!0,onClick:this.props.onClose})},e.prototype.maybeRenderHeader=function(){var n=this.props,r=n.icon,i=n.title;if(i!=null)return N.createElement("div",{className:V8},N.createElement(Nr,{icon:r,size:mt.STANDARD,"aria-hidden":!0,tabIndex:-1}),N.createElement(n6,{id:this.titleId},i),this.maybeRenderCloseButton())},e.defaultProps={canOutsideClickClose:!0,isOpen:!1},e.displayName="".concat(zt,".Dialog"),e}(sr),L6=function(t){Yn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.handleCancel=function(r){return n.internalHandleCallbacks(!1,r)},n.handleConfirm=function(r){return n.internalHandleCallbacks(!0,r)},n}return e.prototype.render=function(){var n=this.props,r=n.canEscapeKeyCancel,i=n.canOutsideClickCancel,a=n.children,u=n.className,c=n.icon,f=n.intent,p=n.loading,v=n.cancelButtonText,m=n.confirmButtonText;n.onClose;var y=kn(n,["canEscapeKeyCancel","canOutsideClickCancel","children","className","icon","intent","loading","cancelButtonText","confirmButtonText","onClose"]);return N.createElement(VC,Le({},y,{className:et(Ky,u),canEscapeKeyClose:r,canOutsideClickClose:i,onClose:this.handleCancel}),N.createElement("div",{className:M8},N.createElement(Nr,{icon:c,size:40,intent:f}),N.createElement("div",{className:I8},a)),N.createElement("div",{className:F8},N.createElement(of,{loading:p,intent:f,text:m,onClick:this.handleConfirm}),v&&N.createElement(of,{text:v,disabled:p,onClick:this.handleCancel})))},e.prototype.validateProps=function(n){n.onClose==null&&n.cancelButtonText==null!=(n.onCancel==null)&&console.warn(iF);var r=n.onCancel!=null||n.onClose!=null;n.canEscapeKeyCancel&&!r&&console.warn(oF),n.canOutsideClickCancel&&!r&&console.warn(aF)},e.prototype.internalHandleCallbacks=function(n,r){var i,a=this.props,u=a.onCancel,c=a.onClose,f=a.onConfirm;(i=n?f:u)===null||i===void 0||i(r),c?.(n,r)},e.defaultProps={canEscapeKeyCancel:!1,canOutsideClickCancel:!1,confirmButtonText:"OK",isOpen:!1,loading:!1},e.displayName="".concat(zt,".Alert"),e}(sr),kR=function(t){Yn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(){var n,r=this.props,i=r.className,a=r.children,u=r.large,c=r.small,f=r.ulRef,p=kn(r,["className","children","large","small","ulRef"]),v=et(i,sR,(n={},n[ll]=u,n[zm]=c,n));return N.createElement("ul",Le({role:"menu"},p,{className:v,ref:f}),a)},e.displayName="".concat(zt,".Menu"),e}(sr),NR=N.createContext(),PR=N.createContext();function M6(t){var e=t.children,n=N.useState(null),r=n[0],i=n[1],a=N.useRef(!1);N.useEffect(function(){return function(){a.current=!0}},[]);var u=N.useCallback(function(c){a.current||i(c)},[]);return N.createElement(NR.Provider,{value:r},N.createElement(PR.Provider,{value:u},e))}var DR=function(e){return Array.isArray(e)?e[0]:e},LR=function(e){if(typeof e=="function"){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return e.apply(void 0,r)}},bS=function(e,n){if(typeof e=="function")return LR(e,n);e!=null&&(e.current=n)},Ax=function(e){return e.reduce(function(n,r){var i=r[0],a=r[1];return n[i]=a,n},{})},Rx=typeof window<"u"&&window.document&&window.document.createElement?N.useLayoutEffect:N.useEffect,Qi="top",Xo="bottom",Yo="right",Zi="left",GC="auto",Cv=[Qi,Xo,Yo,Zi],yh="start",Wm="end",I6="clippingParents",MR="viewport",dm="popper",F6="reference",kx=Cv.reduce(function(t,e){return t.concat([e+"-"+yh,e+"-"+Wm])},[]),IR=[].concat(Cv,[GC]).reduce(function(t,e){return t.concat([e,e+"-"+yh,e+"-"+Wm])},[]),$6="beforeRead",j6="read",z6="afterRead",H6="beforeMain",q6="main",U6="afterMain",W6="beforeWrite",V6="write",G6="afterWrite",B6=[$6,j6,z6,H6,q6,U6,W6,V6,G6];function ps(t){return t?(t.nodeName||"").toLowerCase():null}function bo(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function af(t){var e=bo(t).Element;return t instanceof e||t instanceof Element}function Go(t){var e=bo(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function BC(t){if(typeof ShadowRoot>"u")return!1;var e=bo(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function K6(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},i=e.attributes[n]||{},a=e.elements[n];!Go(a)||!ps(a)||(Object.assign(a.style,r),Object.keys(i).forEach(function(u){var c=i[u];c===!1?a.removeAttribute(u):a.setAttribute(u,c===!0?"":c)}))})}function X6(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var i=e.elements[r],a=e.attributes[r]||{},u=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),c=u.reduce(function(f,p){return f[p]="",f},{});!Go(i)||!ps(i)||(Object.assign(i.style,c),Object.keys(a).forEach(function(f){i.removeAttribute(f)}))})}}const Y6={name:"applyStyles",enabled:!0,phase:"write",fn:K6,effect:X6,requires:["computeStyles"]};function ds(t){return t.split("-")[0]}var Gc=Math.max,cy=Math.min,_h=Math.round;function ES(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function FR(){return!/^((?!chrome|android).)*safari/i.test(ES())}function wh(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),i=1,a=1;e&&Go(t)&&(i=t.offsetWidth>0&&_h(r.width)/t.offsetWidth||1,a=t.offsetHeight>0&&_h(r.height)/t.offsetHeight||1);var u=af(t)?bo(t):window,c=u.visualViewport,f=!FR()&&n,p=(r.left+(f&&c?c.offsetLeft:0))/i,v=(r.top+(f&&c?c.offsetTop:0))/a,m=r.width/i,y=r.height/a;return{width:m,height:y,top:v,right:p+m,bottom:v+y,left:p,x:p,y:v}}function KC(t){var e=wh(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function $R(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&BC(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ul(t){return bo(t).getComputedStyle(t)}function Q6(t){return["table","td","th"].indexOf(ps(t))>=0}function wu(t){return((af(t)?t.ownerDocument:t.document)||window.document).documentElement}function n_(t){return ps(t)==="html"?t:t.assignedSlot||t.parentNode||(BC(t)?t.host:null)||wu(t)}function Nx(t){return!Go(t)||ul(t).position==="fixed"?null:t.offsetParent}function Z6(t){var e=/firefox/i.test(ES()),n=/Trident/i.test(ES());if(n&&Go(t)){var r=ul(t);if(r.position==="fixed")return null}var i=n_(t);for(BC(i)&&(i=i.host);Go(i)&&["html","body"].indexOf(ps(i))<0;){var a=ul(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||e&&a.willChange==="filter"||e&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function bv(t){for(var e=bo(t),n=Nx(t);n&&Q6(n)&&ul(n).position==="static";)n=Nx(n);return n&&(ps(n)==="html"||ps(n)==="body"&&ul(n).position==="static")?e:n||Z6(t)||e}function XC(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Em(t,e,n){return Gc(t,cy(e,n))}function J6(t,e,n){var r=Em(t,e,n);return r>n?n:r}function jR(){return{top:0,right:0,bottom:0,left:0}}function zR(t){return Object.assign({},jR(),t)}function HR(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var e5=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,zR(typeof e!="number"?e:HR(e,Cv))};function t5(t){var e,n=t.state,r=t.name,i=t.options,a=n.elements.arrow,u=n.modifiersData.popperOffsets,c=ds(n.placement),f=XC(c),p=[Zi,Yo].indexOf(c)>=0,v=p?"height":"width";if(!(!a||!u)){var m=e5(i.padding,n),y=KC(a),b=f==="y"?Qi:Zi,E=f==="y"?Xo:Yo,A=n.rects.reference[v]+n.rects.reference[f]-u[f]-n.rects.popper[v],S=u[f]-n.rects.reference[f],O=bv(a),k=O?f==="y"?O.clientHeight||0:O.clientWidth||0:0,T=A/2-S/2,C=m[b],w=k-y[v]-m[E],R=k/2-y[v]/2+T,I=Em(C,R,w),$=f;n.modifiersData[r]=(e={},e[$]=I,e.centerOffset=I-R,e)}}function n5(t){var e=t.state,n=t.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||$R(e.elements.popper,i)&&(e.elements.arrow=i))}const r5={name:"arrow",enabled:!0,phase:"main",fn:t5,effect:n5,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Sh(t){return t.split("-")[1]}var i5={top:"auto",right:"auto",bottom:"auto",left:"auto"};function o5(t,e){var n=t.x,r=t.y,i=e.devicePixelRatio||1;return{x:_h(n*i)/i||0,y:_h(r*i)/i||0}}function Px(t){var e,n=t.popper,r=t.popperRect,i=t.placement,a=t.variation,u=t.offsets,c=t.position,f=t.gpuAcceleration,p=t.adaptive,v=t.roundOffsets,m=t.isFixed,y=u.x,b=y===void 0?0:y,E=u.y,A=E===void 0?0:E,S=typeof v=="function"?v({x:b,y:A}):{x:b,y:A};b=S.x,A=S.y;var O=u.hasOwnProperty("x"),k=u.hasOwnProperty("y"),T=Zi,C=Qi,w=window;if(p){var R=bv(n),I="clientHeight",$="clientWidth";if(R===bo(n)&&(R=wu(n),ul(R).position!=="static"&&c==="absolute"&&(I="scrollHeight",$="scrollWidth")),R=R,i===Qi||(i===Zi||i===Yo)&&a===Wm){C=Xo;var U=m&&R===w&&w.visualViewport?w.visualViewport.height:R[I];A-=U-r.height,A*=f?1:-1}if(i===Zi||(i===Qi||i===Xo)&&a===Wm){T=Yo;var G=m&&R===w&&w.visualViewport?w.visualViewport.width:R[$];b-=G-r.width,b*=f?1:-1}}var Y=Object.assign({position:c},p&&i5),Z=v===!0?o5({x:b,y:A},bo(n)):{x:b,y:A};if(b=Z.x,A=Z.y,f){var ee;return Object.assign({},Y,(ee={},ee[C]=k?"0":"",ee[T]=O?"0":"",ee.transform=(w.devicePixelRatio||1)<=1?"translate("+b+"px, "+A+"px)":"translate3d("+b+"px, "+A+"px, 0)",ee))}return Object.assign({},Y,(e={},e[C]=k?A+"px":"",e[T]=O?b+"px":"",e.transform="",e))}function a5(t){var e=t.state,n=t.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,u=a===void 0?!0:a,c=n.roundOffsets,f=c===void 0?!0:c,p={placement:ds(e.placement),variation:Sh(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Px(Object.assign({},p,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:u,roundOffsets:f})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Px(Object.assign({},p,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const s5={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:a5,data:{}};var m0={passive:!0};function l5(t){var e=t.state,n=t.instance,r=t.options,i=r.scroll,a=i===void 0?!0:i,u=r.resize,c=u===void 0?!0:u,f=bo(e.elements.popper),p=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&p.forEach(function(v){v.addEventListener("scroll",n.update,m0)}),c&&f.addEventListener("resize",n.update,m0),function(){a&&p.forEach(function(v){v.removeEventListener("scroll",n.update,m0)}),c&&f.removeEventListener("resize",n.update,m0)}}const u5={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:l5,data:{}};var c5={left:"right",right:"left",bottom:"top",top:"bottom"};function z0(t){return t.replace(/left|right|bottom|top/g,function(e){return c5[e]})}var f5={start:"end",end:"start"};function Dx(t){return t.replace(/start|end/g,function(e){return f5[e]})}function YC(t){var e=bo(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function QC(t){return wh(wu(t)).left+YC(t).scrollLeft}function d5(t,e){var n=bo(t),r=wu(t),i=n.visualViewport,a=r.clientWidth,u=r.clientHeight,c=0,f=0;if(i){a=i.width,u=i.height;var p=FR();(p||!p&&e==="fixed")&&(c=i.offsetLeft,f=i.offsetTop)}return{width:a,height:u,x:c+QC(t),y:f}}function h5(t){var e,n=wu(t),r=YC(t),i=(e=t.ownerDocument)==null?void 0:e.body,a=Gc(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),u=Gc(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),c=-r.scrollLeft+QC(t),f=-r.scrollTop;return ul(i||n).direction==="rtl"&&(c+=Gc(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:u,x:c,y:f}}function ZC(t){var e=ul(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function qR(t){return["html","body","#document"].indexOf(ps(t))>=0?t.ownerDocument.body:Go(t)&&ZC(t)?t:qR(n_(t))}function xm(t,e){var n;e===void 0&&(e=[]);var r=qR(t),i=r===((n=t.ownerDocument)==null?void 0:n.body),a=bo(r),u=i?[a].concat(a.visualViewport||[],ZC(r)?r:[]):r,c=e.concat(u);return i?c:c.concat(xm(n_(u)))}function xS(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function p5(t,e){var n=wh(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function Lx(t,e,n){return e===MR?xS(d5(t,n)):af(e)?p5(e,n):xS(h5(wu(t)))}function m5(t){var e=xm(n_(t)),n=["absolute","fixed"].indexOf(ul(t).position)>=0,r=n&&Go(t)?bv(t):t;return af(r)?e.filter(function(i){return af(i)&&$R(i,r)&&ps(i)!=="body"}):[]}function v5(t,e,n,r){var i=e==="clippingParents"?m5(t):[].concat(e),a=[].concat(i,[n]),u=a[0],c=a.reduce(function(f,p){var v=Lx(t,p,r);return f.top=Gc(v.top,f.top),f.right=cy(v.right,f.right),f.bottom=cy(v.bottom,f.bottom),f.left=Gc(v.left,f.left),f},Lx(t,u,r));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function UR(t){var e=t.reference,n=t.element,r=t.placement,i=r?ds(r):null,a=r?Sh(r):null,u=e.x+e.width/2-n.width/2,c=e.y+e.height/2-n.height/2,f;switch(i){case Qi:f={x:u,y:e.y-n.height};break;case Xo:f={x:u,y:e.y+e.height};break;case Yo:f={x:e.x+e.width,y:c};break;case Zi:f={x:e.x-n.width,y:c};break;default:f={x:e.x,y:e.y}}var p=i?XC(i):null;if(p!=null){var v=p==="y"?"height":"width";switch(a){case yh:f[p]=f[p]-(e[v]/2-n[v]/2);break;case Wm:f[p]=f[p]+(e[v]/2-n[v]/2);break}}return f}function Vm(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=r===void 0?t.placement:r,a=n.strategy,u=a===void 0?t.strategy:a,c=n.boundary,f=c===void 0?I6:c,p=n.rootBoundary,v=p===void 0?MR:p,m=n.elementContext,y=m===void 0?dm:m,b=n.altBoundary,E=b===void 0?!1:b,A=n.padding,S=A===void 0?0:A,O=zR(typeof S!="number"?S:HR(S,Cv)),k=y===dm?F6:dm,T=t.rects.popper,C=t.elements[E?k:y],w=v5(af(C)?C:C.contextElement||wu(t.elements.popper),f,v,u),R=wh(t.elements.reference),I=UR({reference:R,element:T,placement:i}),$=xS(Object.assign({},T,I)),U=y===dm?$:R,G={top:w.top-U.top+O.top,bottom:U.bottom-w.bottom+O.bottom,left:w.left-U.left+O.left,right:U.right-w.right+O.right},Y=t.modifiersData.offset;if(y===dm&&Y){var Z=Y[i];Object.keys(G).forEach(function(ee){var ae=[Yo,Xo].indexOf(ee)>=0?1:-1,de=[Qi,Xo].indexOf(ee)>=0?"y":"x";G[ee]+=Z[de]*ae})}return G}function g5(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=n.boundary,a=n.rootBoundary,u=n.padding,c=n.flipVariations,f=n.allowedAutoPlacements,p=f===void 0?IR:f,v=Sh(r),m=v?c?kx:kx.filter(function(E){return Sh(E)===v}):Cv,y=m.filter(function(E){return p.indexOf(E)>=0});y.length===0&&(y=m);var b=y.reduce(function(E,A){return E[A]=Vm(t,{placement:A,boundary:i,rootBoundary:a,padding:u})[ds(A)],E},{});return Object.keys(b).sort(function(E,A){return b[E]-b[A]})}function y5(t){if(ds(t)===GC)return[];var e=z0(t);return[Dx(t),e,Dx(e)]}function _5(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,u=n.altAxis,c=u===void 0?!0:u,f=n.fallbackPlacements,p=n.padding,v=n.boundary,m=n.rootBoundary,y=n.altBoundary,b=n.flipVariations,E=b===void 0?!0:b,A=n.allowedAutoPlacements,S=e.options.placement,O=ds(S),k=O===S,T=f||(k||!E?[z0(S)]:y5(S)),C=[S].concat(T).reduce(function(ce,oe){return ce.concat(ds(oe)===GC?g5(e,{placement:oe,boundary:v,rootBoundary:m,padding:p,flipVariations:E,allowedAutoPlacements:A}):oe)},[]),w=e.rects.reference,R=e.rects.popper,I=new Map,$=!0,U=C[0],G=0;G<C.length;G++){var Y=C[G],Z=ds(Y),ee=Sh(Y)===yh,ae=[Qi,Xo].indexOf(Z)>=0,de=ae?"width":"height",Q=Vm(e,{placement:Y,boundary:v,rootBoundary:m,altBoundary:y,padding:p}),re=ae?ee?Yo:Zi:ee?Xo:Qi;w[de]>R[de]&&(re=z0(re));var z=z0(re),B=[];if(a&&B.push(Q[Z]<=0),c&&B.push(Q[re]<=0,Q[z]<=0),B.every(function(ce){return ce})){U=Y,$=!1;break}I.set(Y,B)}if($)for(var F=E?3:1,W=function(oe){var q=C.find(function(ie){var J=I.get(ie);if(J)return J.slice(0,oe).every(function(be){return be})});if(q)return U=q,"break"},X=F;X>0;X--){var le=W(X);if(le==="break")break}e.placement!==U&&(e.modifiersData[r]._skip=!0,e.placement=U,e.reset=!0)}}const w5={name:"flip",enabled:!0,phase:"main",fn:_5,requiresIfExists:["offset"],data:{_skip:!1}};function Mx(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Ix(t){return[Qi,Yo,Xo,Zi].some(function(e){return t[e]>=0})}function S5(t){var e=t.state,n=t.name,r=e.rects.reference,i=e.rects.popper,a=e.modifiersData.preventOverflow,u=Vm(e,{elementContext:"reference"}),c=Vm(e,{altBoundary:!0}),f=Mx(u,r),p=Mx(c,i,a),v=Ix(f),m=Ix(p);e.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:p,isReferenceHidden:v,hasPopperEscaped:m},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":v,"data-popper-escaped":m})}const C5={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:S5};function b5(t,e,n){var r=ds(t),i=[Zi,Qi].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,u=a[0],c=a[1];return u=u||0,c=(c||0)*i,[Zi,Yo].indexOf(r)>=0?{x:c,y:u}:{x:u,y:c}}function E5(t){var e=t.state,n=t.options,r=t.name,i=n.offset,a=i===void 0?[0,0]:i,u=IR.reduce(function(v,m){return v[m]=b5(m,e.rects,a),v},{}),c=u[e.placement],f=c.x,p=c.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=f,e.modifiersData.popperOffsets.y+=p),e.modifiersData[r]=u}const x5={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:E5};function T5(t){var e=t.state,n=t.name;e.modifiersData[n]=UR({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const O5={name:"popperOffsets",enabled:!0,phase:"read",fn:T5,data:{}};function A5(t){return t==="x"?"y":"x"}function R5(t){var e=t.state,n=t.options,r=t.name,i=n.mainAxis,a=i===void 0?!0:i,u=n.altAxis,c=u===void 0?!1:u,f=n.boundary,p=n.rootBoundary,v=n.altBoundary,m=n.padding,y=n.tether,b=y===void 0?!0:y,E=n.tetherOffset,A=E===void 0?0:E,S=Vm(e,{boundary:f,rootBoundary:p,padding:m,altBoundary:v}),O=ds(e.placement),k=Sh(e.placement),T=!k,C=XC(O),w=A5(C),R=e.modifiersData.popperOffsets,I=e.rects.reference,$=e.rects.popper,U=typeof A=="function"?A(Object.assign({},e.rects,{placement:e.placement})):A,G=typeof U=="number"?{mainAxis:U,altAxis:U}:Object.assign({mainAxis:0,altAxis:0},U),Y=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,Z={x:0,y:0};if(R){if(a){var ee,ae=C==="y"?Qi:Zi,de=C==="y"?Xo:Yo,Q=C==="y"?"height":"width",re=R[C],z=re+S[ae],B=re-S[de],F=b?-$[Q]/2:0,W=k===yh?I[Q]:$[Q],X=k===yh?-$[Q]:-I[Q],le=e.elements.arrow,ce=b&&le?KC(le):{width:0,height:0},oe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:jR(),q=oe[ae],ie=oe[de],J=Em(0,I[Q],ce[Q]),be=T?I[Q]/2-F-J-q-G.mainAxis:W-J-q-G.mainAxis,Ee=T?-I[Q]/2+F+J+ie+G.mainAxis:X+J+ie+G.mainAxis,Re=e.elements.arrow&&bv(e.elements.arrow),Me=Re?C==="y"?Re.clientTop||0:Re.clientLeft||0:0,qe=(ee=Y?.[C])!=null?ee:0,Je=re+be-qe-Me,ye=re+Ee-qe,Ce=Em(b?cy(z,Je):z,re,b?Gc(B,ye):B);R[C]=Ce,Z[C]=Ce-re}if(c){var ke,xe=C==="x"?Qi:Zi,Fe=C==="x"?Xo:Yo,Ae=R[w],ze=w==="y"?"height":"width",nt=Ae+S[xe],ct=Ae-S[Fe],Ge=[Qi,Zi].indexOf(O)!==-1,yt=(ke=Y?.[w])!=null?ke:0,Bt=Ge?nt:Ae-I[ze]-$[ze]-yt+G.altAxis,$n=Ge?Ae+I[ze]+$[ze]-yt-G.altAxis:ct,Yt=b&&Ge?J6(Bt,Ae,$n):Em(b?Bt:nt,Ae,b?$n:ct);R[w]=Yt,Z[w]=Yt-Ae}e.modifiersData[r]=Z}}const k5={name:"preventOverflow",enabled:!0,phase:"main",fn:R5,requiresIfExists:["offset"]};function N5(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function P5(t){return t===bo(t)||!Go(t)?YC(t):N5(t)}function D5(t){var e=t.getBoundingClientRect(),n=_h(e.width)/t.offsetWidth||1,r=_h(e.height)/t.offsetHeight||1;return n!==1||r!==1}function L5(t,e,n){n===void 0&&(n=!1);var r=Go(e),i=Go(e)&&D5(e),a=wu(e),u=wh(t,i,n),c={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(r||!r&&!n)&&((ps(e)!=="body"||ZC(a))&&(c=P5(e)),Go(e)?(f=wh(e,!0),f.x+=e.clientLeft,f.y+=e.clientTop):a&&(f.x=QC(a))),{x:u.left+c.scrollLeft-f.x,y:u.top+c.scrollTop-f.y,width:u.width,height:u.height}}function M5(t){var e=new Map,n=new Set,r=[];t.forEach(function(a){e.set(a.name,a)});function i(a){n.add(a.name);var u=[].concat(a.requires||[],a.requiresIfExists||[]);u.forEach(function(c){if(!n.has(c)){var f=e.get(c);f&&i(f)}}),r.push(a)}return t.forEach(function(a){n.has(a.name)||i(a)}),r}function I5(t){var e=M5(t);return B6.reduce(function(n,r){return n.concat(e.filter(function(i){return i.phase===r}))},[])}function F5(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function $5(t){var e=t.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(e).map(function(n){return e[n]})}var Fx={placement:"bottom",modifiers:[],strategy:"absolute"};function $x(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function j5(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,i=e.defaultOptions,a=i===void 0?Fx:i;return function(c,f,p){p===void 0&&(p=a);var v={placement:"bottom",orderedModifiers:[],options:Object.assign({},Fx,a),modifiersData:{},elements:{reference:c,popper:f},attributes:{},styles:{}},m=[],y=!1,b={state:v,setOptions:function(O){var k=typeof O=="function"?O(v.options):O;A(),v.options=Object.assign({},a,v.options,k),v.scrollParents={reference:af(c)?xm(c):c.contextElement?xm(c.contextElement):[],popper:xm(f)};var T=I5($5([].concat(r,v.options.modifiers)));return v.orderedModifiers=T.filter(function(C){return C.enabled}),E(),b.update()},forceUpdate:function(){if(!y){var O=v.elements,k=O.reference,T=O.popper;if($x(k,T)){v.rects={reference:L5(k,bv(T),v.options.strategy==="fixed"),popper:KC(T)},v.reset=!1,v.placement=v.options.placement,v.orderedModifiers.forEach(function(G){return v.modifiersData[G.name]=Object.assign({},G.data)});for(var C=0;C<v.orderedModifiers.length;C++){if(v.reset===!0){v.reset=!1,C=-1;continue}var w=v.orderedModifiers[C],R=w.fn,I=w.options,$=I===void 0?{}:I,U=w.name;typeof R=="function"&&(v=R({state:v,options:$,name:U,instance:b})||v)}}}},update:F5(function(){return new Promise(function(S){b.forceUpdate(),S(v)})}),destroy:function(){A(),y=!0}};if(!$x(c,f))return b;b.setOptions(p).then(function(S){!y&&p.onFirstUpdate&&p.onFirstUpdate(S)});function E(){v.orderedModifiers.forEach(function(S){var O=S.name,k=S.options,T=k===void 0?{}:k,C=S.effect;if(typeof C=="function"){var w=C({state:v,name:O,instance:b,options:T}),R=function(){};m.push(w||R)}})}function A(){m.forEach(function(S){return S()}),m=[]}return b}}var z5=[u5,O5,s5,Y6,x5,w5,k5,r5,C5],H5=j5({defaultModifiers:z5}),Qw,jx;function q5(){if(jx)return Qw;jx=1;var t=typeof Element<"u",e=typeof Map=="function",n=typeof Set=="function",r=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function i(a,u){if(a===u)return!0;if(a&&u&&typeof a=="object"&&typeof u=="object"){if(a.constructor!==u.constructor)return!1;var c,f,p;if(Array.isArray(a)){if(c=a.length,c!=u.length)return!1;for(f=c;f--!==0;)if(!i(a[f],u[f]))return!1;return!0}var v;if(e&&a instanceof Map&&u instanceof Map){if(a.size!==u.size)return!1;for(v=a.entries();!(f=v.next()).done;)if(!u.has(f.value[0]))return!1;for(v=a.entries();!(f=v.next()).done;)if(!i(f.value[1],u.get(f.value[0])))return!1;return!0}if(n&&a instanceof Set&&u instanceof Set){if(a.size!==u.size)return!1;for(v=a.entries();!(f=v.next()).done;)if(!u.has(f.value[0]))return!1;return!0}if(r&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(u)){if(c=a.length,c!=u.length)return!1;for(f=c;f--!==0;)if(a[f]!==u[f])return!1;return!0}if(a.constructor===RegExp)return a.source===u.source&&a.flags===u.flags;if(a.valueOf!==Object.prototype.valueOf&&typeof a.valueOf=="function"&&typeof u.valueOf=="function")return a.valueOf()===u.valueOf();if(a.toString!==Object.prototype.toString&&typeof a.toString=="function"&&typeof u.toString=="function")return a.toString()===u.toString();if(p=Object.keys(a),c=p.length,c!==Object.keys(u).length)return!1;for(f=c;f--!==0;)if(!Object.prototype.hasOwnProperty.call(u,p[f]))return!1;if(t&&a instanceof Element)return!1;for(f=c;f--!==0;)if(!((p[f]==="_owner"||p[f]==="__v"||p[f]==="__o")&&a.$$typeof)&&!i(a[p[f]],u[p[f]]))return!1;return!0}return a!==a&&u!==u}return Qw=function(u,c){try{return i(u,c)}catch(f){if((f.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw f}},Qw}var U5=q5();const W5=no(U5);var V5=[],G5=function(e,n,r){r===void 0&&(r={});var i=N.useRef(null),a={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||V5},u=N.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),c=u[0],f=u[1],p=N.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(b){var E=b.state,A=Object.keys(E.elements);wv.flushSync(function(){f({styles:Ax(A.map(function(S){return[S,E.styles[S]||{}]})),attributes:Ax(A.map(function(S){return[S,E.attributes[S]]}))})})},requires:["computeStyles"]}},[]),v=N.useMemo(function(){var y={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[].concat(a.modifiers,[p,{name:"applyStyles",enabled:!1}])};return W5(i.current,y)?i.current||y:(i.current=y,y)},[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,p]),m=N.useRef();return Rx(function(){m.current&&m.current.setOptions(v)},[v]),Rx(function(){if(!(e==null||n==null)){var y=r.createPopper||H5,b=y(e,n,v);return m.current=b,function(){b.destroy(),m.current=null}}},[e,n,r.createPopper]),{state:m.current?m.current.state:null,styles:c.styles,attributes:c.attributes,update:m.current?m.current.update:null,forceUpdate:m.current?m.current.forceUpdate:null}},B5=function(){},K5=function(){return Promise.resolve(null)},X5=[];function Y5(t){var e=t.placement,n=e===void 0?"bottom":e,r=t.strategy,i=r===void 0?"absolute":r,a=t.modifiers,u=a===void 0?X5:a,c=t.referenceElement,f=t.onFirstUpdate,p=t.innerRef,v=t.children,m=N.useContext(NR),y=N.useState(null),b=y[0],E=y[1],A=N.useState(null),S=A[0],O=A[1];N.useEffect(function(){bS(p,b)},[p,b]);var k=N.useMemo(function(){return{placement:n,strategy:i,onFirstUpdate:f,modifiers:[].concat(u,[{name:"arrow",enabled:S!=null,options:{element:S}}])}},[n,i,f,u,S]),T=G5(c||m,b,k),C=T.state,w=T.styles,R=T.forceUpdate,I=T.update,$=N.useMemo(function(){return{ref:E,style:w.popper,placement:C?C.placement:n,hasPopperEscaped:C&&C.modifiersData.hide?C.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:C&&C.modifiersData.hide?C.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:w.arrow,ref:O},forceUpdate:R||B5,update:I||K5}},[E,O,n,C,w,I,R]);return DR(v)($)}var Zw,zx;function Q5(){if(zx)return Zw;zx=1;var t=function(){};return Zw=t,Zw}var Z5=Q5();const J5=no(Z5);function e$(t){var e=t.children,n=t.innerRef,r=N.useContext(PR),i=N.useCallback(function(a){bS(n,a),LR(r,a)},[n,r]);return N.useEffect(function(){return function(){return bS(n,null)}},[]),N.useEffect(function(){J5(!!r,"`Reference` should not be used outside of a `Manager` component.")},[r]),DR(e)({ref:i})}var Hx=function(t){Yn(e,t);function e(){var n,r=t.apply(this,arguments)||this;return r.targetRef=(n=r.props.targetRef)!==null&&n!==void 0?n:N.createRef(),r.prevElement=void 0,r}return e.prototype.render=function(){var n=N.Children.only(this.props.children);return this.props.targetRef!==void 0?n:N.cloneElement(n,{ref:this.targetRef})},e.prototype.componentDidMount=function(){var n=this;this.observer=globalThis.ResizeObserver!=null?new ResizeObserver(function(r){var i,a;return(a=(i=n.props).onResize)===null||a===void 0?void 0:a.call(i,r)}):void 0,this.observeElement()},e.prototype.componentDidUpdate=function(n){this.observeElement(this.props.observeParents!==n.observeParents)},e.prototype.componentWillUnmount=function(){var n;(n=this.observer)===null||n===void 0||n.disconnect(),this.prevElement=void 0},e.prototype.observeElement=function(n){if(n===void 0&&(n=!1),this.observer!==void 0){if(!(this.targetRef.current instanceof Element)){this.observer.disconnect();return}if(!(this.targetRef.current===this.prevElement&&!n)&&(this.observer.disconnect(),this.prevElement=this.targetRef.current,this.observer.observe(this.targetRef.current),this.props.observeParents))for(var r=this.targetRef.current.parentElement;r!=null;)this.observer.observe(r),r=r.parentElement}},e.displayName="".concat(zt,".ResizeSensor"),e}(sr);function r_(t){return t.split("-")[0]}function qx(t){return["left","right"].indexOf(t)!==-1}function v0(t){switch(t){case"top":return"bottom";case"left":return"right";case"bottom":return"top";default:return"left"}}function Ux(t){var e=t.split("-")[1];switch(e){case"start":return"left";case"end":return"right";default:return"center"}}function t$(t,e){var n=r_(t);if(e===void 0)return qx(n)?"".concat(v0(n)," ").concat(Ux(n)):"".concat(Ux(n)," ").concat(v0(n));var r=15;return qx(n)?"".concat(v0(n)," ").concat(parseInt(e.top,10)+r,"px"):"".concat(parseInt(e.left,10)+r,"px ").concat(v0(n))}var n$="M8.11 6.302c1.015-.936 1.887-2.922 1.887-4.297v26c0-1.378-.868-3.357-1.888-4.297L.925 17.09c-1.237-1.14-1.233-3.034 0-4.17L8.11 6.302z",r$="M8.787 7.036c1.22-1.125 2.21-3.376 2.21-5.03V0v30-2.005c0-1.654-.983-3.9-2.21-5.03l-7.183-6.616c-.81-.746-.802-1.96 0-2.7l7.183-6.614z",TS=30,i$=22;function o$(t){if(t==null)return 0;switch(r_(t)){case"top":return-90;case"left":return 180;case"bottom":return 90;default:return 0}}function a$(t){switch(r_(t)){case"top":return{bottom:-11};case"left":return{right:-11};case"bottom":return{top:-11};default:return{left:-11}}}var WR=function(t){var e=t.arrowProps,n=e.ref,r=e.style,i=t.placement;return N.createElement("div",{"aria-hidden":!0,className:Hw,"data-popper-arrow":!0,ref:n,style:Le(Le({},r),a$(i))},N.createElement("svg",{viewBox:"0 0 ".concat(TS," ").concat(TS),style:{transform:"rotate(".concat(o$(i),"deg)")}},N.createElement("path",{className:Hw+"-border",d:n$}),N.createElement("path",{className:Hw+"-fill",d:r$})))};WR.displayName="".concat(zt,".PopoverArrow");var s$=function(){return null},VR=N.createContext([{},s$]),l$=function(t,e){switch(e.type){case"FORCE_DISABLED_STATE":return{forceDisabled:!0};case"RESET_DISABLED_STATE":return{};default:return t}},u$=function(t){var e=t.children,n=t.forceDisable,r=N.useReducer(l$,{}),i=r[0],a=r[1],u=N.useMemo(function(){return[i,a]},[i,a]);return N.useEffect(function(){a(n?{type:"FORCE_DISABLED_STATE"}:{type:"RESET_DISABLED_STATE"})},[n]),N.createElement(VR.Provider,{value:u},typeof e=="function"?e(i):e)},c$=function(t){Yn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.popoverRef=N.createRef(),n.renderPopover=function(r){var i,a,u=n.props,c=u.children,f=u.compact,p=u.disabled,v=u.intent,m=u.popoverClassName,y=kn(u,["children","compact","disabled","intent","popoverClassName"]),b=et(H3,eo(v),m,(i={},i[AC]=f,i));return N.createElement(JC,Le({modifiers:{arrow:{enabled:!n.props.minimal},offset:{options:{offset:[0,i$/2]}}}},y,{autoFocus:!1,canEscapeKeyClose:!1,disabled:(a=r.forceDisabled)!==null&&a!==void 0?a:p,enforceFocus:!1,lazy:!0,popoverClassName:b,portalContainer:n.props.portalContainer,ref:n.popoverRef}),c)},n}return e.prototype.render=function(){var n=this;return N.createElement(VR.Consumer,null,function(r){var i=r[0];return N.createElement(u$,Le({},i),n.renderPopover)})},e.prototype.reposition=function(){var n;(n=this.popoverRef.current)===null||n===void 0||n.reposition()},e.displayName="".concat(zt,".Tooltip"),e.defaultProps={compact:!1,hoverCloseDelay:0,hoverOpenDelay:100,interactionKind:"hover-target",minimal:!1,transitionDuration:100},e}(sr),f$={enabled:!0,name:"matchReferenceWidth",phase:"beforeWrite",requires:["computeStyles"],fn:function(t){var e=t.state;e.styles.popper.width="".concat(e.rects.reference.width,"px")},effect:function(t){var e=t.state,n=e.elements.reference.getBoundingClientRect().width;e.elements.popper.style.width="".concat(n,"px")}},jo=Le(Le({},vv),{AUTO:"auto",AUTO_END:"auto-end",AUTO_START:"auto-start"});function d$(t){switch(t){case jo.TOP_LEFT:return"top-start";case jo.TOP:return"top";case jo.TOP_RIGHT:return"top-end";case jo.RIGHT_TOP:return"right-start";case jo.RIGHT:return"right";case jo.RIGHT_BOTTOM:return"right-end";case jo.BOTTOM_RIGHT:return"bottom-end";case jo.BOTTOM:return"bottom";case jo.BOTTOM_LEFT:return"bottom-start";case jo.LEFT_BOTTOM:return"left-end";case jo.LEFT:return"left";case jo.LEFT_TOP:return"left-start";case"auto":case"auto-start":case"auto-end":return t;default:return h$(t)}}function h$(t){throw new Error("Unexpected position: "+t)}var Js={CLICK:"click",HOVER:"hover",HOVER_TARGET_ONLY:"hover-target"},JC=function(t){Yn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={hasDarkParent:!1,isClosingViaEscapeKeypress:!1,isOpen:n.getIsOpen(n.props)},n.popoverElement=null,n.popoverRef=PF(n,"popoverElement",n.props.popoverRef),n.targetRef=N.createRef(),n.transitionContainerElement=N.createRef(),n.isMouseInTargetOrPopover=!1,n.lostFocusOnSamePage=!0,n.isControlled=function(){return n.props.isOpen!==void 0},n.isArrowEnabled=function(){var r,i;return!n.props.minimal&&((i=(r=n.props.modifiers)===null||r===void 0?void 0:r.arrow)===null||i===void 0?void 0:i.enabled)!==!1},n.isHoverInteractionKind=function(){return n.props.interactionKind===Js.HOVER||n.props.interactionKind===Js.HOVER_TARGET_ONLY},n.reposition=function(){var r;return(r=n.popperScheduleUpdate)===null||r===void 0?void 0:r.call(n)},n.renderTarget=function(r){var i,a,u,c,f=r.ref,p=n.props,v=p.children,m=p.className,y=p.fill,b=p.openOnTargetFocus,E=p.renderTarget,A=n.state.isOpen,S=n.isControlled(),O=n.isHoverInteractionKind(),k=n.props.targetTagName;y&&(k="div");var T=nf(f,n.targetRef),C=O?{onBlur:n.handleTargetBlur,onContextMenu:n.handleTargetContextMenu,onFocus:n.handleTargetFocus,onMouseEnter:n.handleMouseEnter,onMouseLeave:n.handleMouseLeave}:{onClick:n.handleTargetClick,onKeyDown:n.handleKeyDown},w=b&&O?0:void 0,R=Le({className:et(m,E3,(i={},i[S3]=A,i[jm]=A&&!S&&!O,i)),ref:T},C),I={"aria-expanded":A,"aria-haspopup":n.props.interactionKind===Js.HOVER_TARGET_ONLY?void 0:(u=n.props.popupKind)!==null&&u!==void 0?u:"menu"},$=(a={},a[jm]=A&&!S&&!O,a[tf]=y,a),U;if(E!==void 0)U=E(Le(Le(Le({},R),I),{className:et(R.className,$),isOpen:A,tabIndex:w}));else{var G=mR(N.Children.toArray(v)[0]);if(G===void 0)return null;var Y=N.cloneElement(G,Le(Le({},I),{className:et(G.props.className,$),disabled:A&&gR(G,c$)?!0:G.props.disabled,tabIndex:(c=G.props.tabIndex)!==null&&c!==void 0?c:w})),Z=N.createElement(k,Le(Le({},R),n.props.targetProps),Y);U=Z}return N.createElement(Hx,{targetRef:n.targetRef,onResize:n.reposition},U)},n.renderPopover=function(r){var i,a=n.props,u=a.autoFocus,c=a.enforceFocus,f=a.backdropProps,p=a.canEscapeKeyClose,v=a.hasBackdrop,m=a.interactionKind,y=a.usePortal,b=n.state,E=b.isClosingViaEscapeKeypress,A=b.isOpen,S=t$(r.placement,n.isArrowEnabled()?r.arrowProps.style:void 0);n.popperScheduleUpdate=r.update;var O={onClick:n.handlePopoverClick,onKeyDown:function(R){return Um(R)&&n.handlePopoverClick(R)}};(m===Js.HOVER||!y&&m===Js.HOVER_TARGET_ONLY)&&(O.onMouseEnter=n.handleMouseEnter,O.onMouseLeave=n.handleMouseLeave);var k=r_(r.placement),T=et(Gr,(i={},i[sx]=n.props.inheritDarkTheme&&n.state.hasDarkParent,i[RC]=n.props.minimal,i[qw]=n.props.captureDismiss,i[w3]=n.props.matchTargetWidth,i[b3]=r.isReferenceHidden===!0,i[C3]=r.hasPopperEscaped===!0,i),"".concat(y3,"-").concat(k),n.props.popoverClassName),C=n.isHoverInteractionKind()?!1:void 0,w=n.isHoverInteractionKind()?!1:E?!0:n.props.shouldReturnFocusOnClose;return N.createElement(Sv,{autoFocus:u??C,backdropClassName:v3,backdropProps:f,canEscapeKeyClose:p,canOutsideClickClose:m===Js.CLICK,childRef:n.transitionContainerElement,enforceFocus:c,hasBackdrop:v,isOpen:A,lazy:n.props.lazy,onClose:n.handleOverlayClose,onClosed:n.props.onClosed,onClosing:n.props.onClosing,onOpened:n.props.onOpened,onOpening:n.props.onOpening,transitionDuration:n.props.transitionDuration,transitionName:Gr,usePortal:y,portalClassName:n.props.portalClassName,portalContainer:n.props.portalContainer,portalStopPropagationEvents:n.props.portalStopPropagationEvents,shouldReturnFocusOnClose:w},N.createElement("div",{className:x3,ref:nf(r.ref,n.transitionContainerElement),style:r.style},N.createElement(Hx,{onResize:n.reposition},N.createElement("div",Le({className:T,style:{transformOrigin:S},ref:n.popoverRef},O),n.isArrowEnabled()&&N.createElement(WR,{arrowProps:r.arrowProps,placement:r.placement}),N.createElement("div",{className:g3},n.props.content)))))},n.handleTargetFocus=function(r){if(n.props.openOnTargetFocus&&n.isHoverInteractionKind()){if(r.relatedTarget==null&&!n.lostFocusOnSamePage)return;n.handleMouseEnter(r)}},n.handleTargetBlur=function(r){n.props.openOnTargetFocus&&n.isHoverInteractionKind()&&(r.relatedTarget!=null?r.relatedTarget!==n.popoverElement&&!n.isElementInPopover(r.relatedTarget)&&n.handleMouseLeave(r):n.handleMouseLeave(r)),n.lostFocusOnSamePage=r.relatedTarget!=null},n.handleTargetContextMenu=function(r){r.defaultPrevented&&n.setOpenState(!1,r)},n.handleMouseEnter=function(r){n.isMouseInTargetOrPopover=!0,!n.props.usePortal&&n.isElementInPopover(r.target)&&n.props.interactionKind===Js.HOVER_TARGET_ONLY&&!n.props.openOnTargetFocus?n.handleMouseLeave(r):n.props.disabled||n.setOpenState(!0,r,n.props.hoverOpenDelay)},n.handleMouseLeave=function(r){n.isMouseInTargetOrPopover=!1,r.persist(),n.setTimeout(function(){n.isMouseInTargetOrPopover||n.setOpenState(!1,r,n.props.hoverCloseDelay)})},n.handlePopoverClick=function(r){var i,a,u,c=r.target,f=c.closest(".".concat(Gr)),p=c.closest(".".concat(Gr)),v=(f??p)===n.getPopoverElement(),m=(a=(i=f?.classList.contains(qw))!==null&&i!==void 0?i:p?.classList.contains(qw))!==null&&a!==void 0?a:!1,y=c.closest(".".concat(ay,", .").concat(_3)),b=(u=y?.classList.contains(ay))!==null&&u!==void 0?u:!1,E=c.closest(":disabled, .".concat(gv))!=null;b&&!E&&(!m||v)&&n.setOpenState(!1,r)},n.handleOverlayClose=function(r){var i;if(!(n.targetRef.current==null||r===void 0)){var a=(i=r.nativeEvent)!==null&&i!==void 0?i:r,u=a.composed?a.composedPath()[0]:a.target;(!tF(n.targetRef.current,u)||r.nativeEvent instanceof KeyboardEvent)&&n.setOpenState(!1,r)}},n.handleKeyDown=function(r){var i=Um(r);i&&n.handleTargetClick(r)},n.handleTargetClick=function(r){var i=n.state.isOpen&&n.isSimulatedButtonClick(r);i||!n.props.disabled&&!n.isElementInPopover(r.target)&&(n.props.isOpen==null?n.setState(function(a){return{isOpen:!a.isOpen}}):n.setOpenState(!n.props.isOpen,r))},n.isSimulatedButtonClick=function(r){return!r.isTrusted&&r.target.matches(".".concat(Xy))},n}return e.prototype.getPopoverElement=function(){var n;return(n=this.popoverElement)===null||n===void 0?void 0:n.querySelector(".".concat(Gr))},e.prototype.getIsOpen=function(n){var r;return n.disabled?!1:(r=n.isOpen)!==null&&r!==void 0?r:n.defaultIsOpen},e.prototype.render=function(){var n=this.props,r=n.disabled,i=n.content,a=n.placement,u=n.position,c=u===void 0?"auto":u,f=n.positioningStrategy,p=this.state.isOpen,v=i==null||typeof i=="string"&&i.trim()==="";return v?(!r&&p!==!1&&!gh("production")&&console.warn(dF),this.renderTarget({ref:m$})):N.createElement(M6,null,N.createElement(e$,null,this.renderTarget),N.createElement(Y5,{innerRef:this.popoverRef,placement:a??d$(c),strategy:f,modifiers:this.getPopperModifiers()},this.renderPopover))},e.prototype.componentDidMount=function(){this.updateDarkParent()},e.prototype.componentDidUpdate=function(n,r){t.prototype.componentDidUpdate.call(this,n,r),this.updateDarkParent();var i=this.getIsOpen(this.props);this.props.isOpen!=null&&i!==this.state.isOpen?(this.setOpenState(i),this.setState({isOpen:i})):this.props.disabled&&this.state.isOpen&&this.props.isOpen==null&&this.setOpenState(!1)},e.prototype.validateProps=function(n){n.isOpen==null&&n.onInteraction!=null&&console.warn(mF),n.hasBackdrop&&!n.usePortal&&console.warn(hF),n.hasBackdrop&&n.interactionKind!==Js.CLICK&&console.warn(uF),n.placement!==void 0&&n.position!==void 0&&console.warn(pF);var r=N.Children.count(n.children),i=n.renderTarget!==void 0,a=n.targetProps!==void 0;r===0&&!i&&console.warn(lF),r>1&&console.warn(cF),r>0&&i&&console.warn(fF),i&&a&&console.warn(vF)},e.prototype.getPopperModifiers=function(){var n,r,i,a,u=this.props,c=u.matchTargetWidth,f=u.modifiers,p=u.modifiersCustom,v=[Le({enabled:this.isArrowEnabled(),name:"arrow"},f?.arrow),Le(Le({name:"computeStyles"},f?.computeStyles),{options:Le({adaptive:!0,gpuAcceleration:!1},(n=f?.computeStyles)===null||n===void 0?void 0:n.options)}),Le(Le({enabled:this.isArrowEnabled(),name:"offset"},f?.offset),{options:Le({offset:[0,TS/2]},(r=f?.offset)===null||r===void 0?void 0:r.options)}),Le(Le({name:"flip"},f?.flip),{options:Le({boundary:this.props.boundary,rootBoundary:this.props.rootBoundary},(i=f?.flip)===null||i===void 0?void 0:i.options)}),Le(Le({name:"preventOverflow"},f?.preventOverflow),{options:Le({boundary:this.props.boundary,rootBoundary:this.props.rootBoundary},(a=f?.preventOverflow)===null||a===void 0?void 0:a.options)})];return c&&v.push(f$),p!==void 0&&v.push.apply(v,p),v},e.prototype.setOpenState=function(n,r,i){var a=this,u,c,f,p,v;(u=this.cancelOpenTimeout)===null||u===void 0||u.call(this),i!==void 0&&i>0?(r?.persist(),this.cancelOpenTimeout=this.setTimeout(function(){a.setOpenState(n,r)},i)):(this.props.isOpen==null?this.setState({isOpen:n}):(f=(c=this.props).onInteraction)===null||f===void 0||f.call(c,n,r),n||((v=(p=this.props).onClose)===null||v===void 0||v.call(p,r),this.setState({isClosingViaEscapeKeypress:p$(r?.nativeEvent)})))},e.prototype.updateDarkParent=function(){var n;if(this.props.usePortal&&this.state.isOpen){var r=((n=this.targetRef.current)===null||n===void 0?void 0:n.closest(".".concat(sx)))!=null;this.setState({hasDarkParent:r})}},e.prototype.isElementInPopover=function(n){var r,i;return(i=(r=this.getPopoverElement())===null||r===void 0?void 0:r.contains(n))!==null&&i!==void 0?i:!1},e.displayName="".concat(zt,".Popover"),e.defaultProps={boundary:"clippingParents",captureDismiss:!1,defaultIsOpen:!1,disabled:!1,fill:!1,hasBackdrop:!1,hoverCloseDelay:300,hoverOpenDelay:150,inheritDarkTheme:!0,interactionKind:Js.CLICK,matchTargetWidth:!1,minimal:!1,openOnTargetFocus:!0,positioningStrategy:"absolute",renderTarget:void 0,shouldReturnFocusOnClose:!1,targetTagName:"span",transitionDuration:300,usePortal:!0},e}(sr);function p$(t){return t instanceof KeyboardEvent&&t.key==="Escape"}function m$(){}var fy=N.forwardRef(function(t,e){var n,r,i=t.active,a=t.className,u=t.children,c=t.disabled,f=t.icon,p=t.intent,v=t.labelClassName,m=t.labelElement,y=t.multiline,b=t.popoverProps,E=t.roleStructure,A=E===void 0?"menuitem":E,S=t.selected,O=t.shouldDismissPopover,k=t.submenuProps,T=t.text,C=t.textClassName,w=t.tagName,R=w===void 0?"a":w,I=t.htmlTitle,$=kn(t,["active","className","children","disabled","icon","intent","labelClassName","labelElement","multiline","popoverProps","roleStructure","selected","shouldDismissPopover","submenuProps","text","textClassName","tagName","htmlTitle"]),U=A==="listoption"?["option",void 0,!!S]:A==="menuitem"?["none","menuitem",void 0]:A==="none"?["none",void 0,void 0]:[void 0,void 0,void 0],G=U[0],Y=U[1],Z=U[2],ee=A==="listoption",ae=ee&&S,de=f!=null,Q=u!=null,re=eo(p),z=et(yv,re,(n={},n[jm]=i,n[gv]=c,n[ay]=O&&!c&&!Q,n[i3]=ee,n[JA]=ae,n),a),B=t.label==null&&m==null?null:N.createElement("span",{className:et(s3,v)},t.label,m),F=N.createElement(R,Le(Le(Le({onKeyDown:nF(["Enter"," "]),role:Q?"none":Y,tabIndex:Q?-1:0},rf($)),c?g$:{}),{className:z}),ae?N.createElement($C,{className:o3}):void 0,de?N.createElement("span",{className:a3},N.createElement(Nr,{icon:f,"aria-hidden":!0,tabIndex:-1})):void 0,N.createElement(_v,{className:et(tf,C),ellipsize:!y,title:I},T),B,Q?N.createElement(MC,{className:l3,title:"Open sub menu"}):void 0),W=et((r={},r[_S]=Q,r));return N.createElement("li",{className:W,ref:e,role:G,"aria-selected":Z},u==null?F:N.createElement(JC,Le({autoFocus:!1,captureDismiss:!1,disabled:c,enforceFocus:!1,hoverCloseDelay:0,interactionKind:"hover",modifiers:v$,targetProps:{role:Y,tabIndex:0},placement:"right-start",usePortal:!1},b,{content:N.createElement(kR,Le({},k),u),minimal:!0,popoverClassName:et(_S,b?.popoverClassName)}),F))});fy.defaultProps={active:!1,disabled:!1,multiline:!1,popoverProps:{},selected:void 0,shouldDismissPopover:!0,text:""};fy.displayName="".concat(zt,".MenuItem");var v$={flip:{options:{rootBoundary:"viewport",padding:20},enabled:!0},offset:{options:{offset:[-5,0]},enabled:!0},preventOverflow:{options:{rootBoundary:"viewport",padding:20},enabled:!0}},g$={"aria-disabled":!0,href:void 0,onClick:void 0,onMouseDown:void 0,onMouseEnter:void 0,onMouseLeave:void 0,tabIndex:-1},y$=function(t){Yn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(){var n,r=this.props,i=r.className,a=r.children,u=r.icon,c=r.intent,f=r.title,p=r.compact,v=kn(r,["className","children","icon","intent","title","compact"]),m=this.renderIcon(u,c),y=et(kC,eo(c),i,(n={},n[z8]=!qm(a),n[H8]=m!=null,n[AC]=p,n));return N.createElement("div",Le({className:y},v),m,f&&N.createElement(t6,null,f),a)},e.prototype.renderIcon=function(n,r){if(!(n===null||n===!1)){var i={"aria-hidden":!0,tabIndex:-1};if(n!==void 0)return N.createElement(Nr,Le({icon:n},i));switch(r){case Ei.DANGER:return N.createElement(IC,Le({},i));case Ei.PRIMARY:return N.createElement(FC,Le({},i));case Ei.WARNING:return N.createElement(zC,Le({},i));case Ei.SUCCESS:return N.createElement(jC,Le({},i));default:return}}},e.displayName="".concat(zt,".Callout"),e}(sr),Ic=N.forwardRef(function(t,e){var n,r=t.className,i=t.elevation,a=t.interactive,u=t.selected,c=t.compact,f=kn(t,["className","elevation","interactive","selected","compact"]),p=et(r,q8,W3(i),(n={},n[QA]=a,n[AC]=c,n[JA]=u,n));return N.createElement("div",Le({className:p,ref:e},f))});Ic.defaultProps={elevation:C8.ZERO,interactive:!1};Ic.displayName="".concat(zt,".Card");var En;(function(t){t[t.OPEN_START=0]="OPEN_START",t[t.OPENING=1]="OPENING",t[t.OPEN=2]="OPEN",t[t.CLOSING_START=3]="CLOSING_START",t[t.CLOSING=4]="CLOSING",t[t.CLOSED=5]="CLOSED"})(En||(En={}));var _$=function(t){Yn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={animationState:n.props.isOpen?En.OPEN:En.CLOSED,height:void 0,heightWhenOpen:void 0},n.contents=null,n.contentsRefHandler=function(r){if(n.contents=r,n.contents!=null){var i=n.contents.clientHeight;n.setState({animationState:n.props.isOpen?En.OPEN:En.CLOSED,height:i===0?void 0:"".concat(i,"px"),heightWhenOpen:i===0?void 0:i})}},n}return e.getDerivedStateFromProps=function(n,r){var i=n.isOpen,a=r.animationState;if(i)switch(a){case En.OPEN:break;case En.OPENING:break;default:return{animationState:En.OPEN_START}}else switch(a){case En.CLOSED:break;case En.CLOSING:break;default:return{animationState:En.CLOSING_START,height:"".concat(r.heightWhenOpen,"px")}}return null},e.prototype.render=function(){var n=this.state.animationState!==En.CLOSED,r=n||this.props.keepChildrenMounted,i=n&&this.state.animationState!==En.CLOSING,a=this.state.height==="auto",u={height:n?this.state.height:void 0,overflowY:a?"visible":void 0,transition:a?"none":void 0},c={transform:i?"translateY(0)":"translateY(-".concat(this.state.heightWhenOpen,"px)"),transition:a?"none":void 0};return N.createElement(this.props.component,{className:et(tR,this.props.className),style:u},N.createElement("div",{className:U8,ref:this.contentsRefHandler,style:c,"aria-hidden":!n},r?this.props.children:null))},e.prototype.componentDidMount=function(){this.forceUpdate(),this.props.isOpen?this.setState({animationState:En.OPEN,height:"auto"}):this.setState({animationState:En.CLOSED,height:"0px"})},e.prototype.componentDidUpdate=function(){var n=this;if(this.contents!=null){var r=this.props.transitionDuration,i=this.state.animationState;if(i===En.OPEN_START){var a=this.contents.clientHeight;this.setState({animationState:En.OPENING,height:"".concat(a,"px"),heightWhenOpen:a}),this.setTimeout(function(){return n.onDelayedStateChange()},r)}else if(i===En.CLOSING_START){var u=this.contents.clientHeight;this.setTimeout(function(){return n.setState({animationState:En.CLOSING,height:"0px",heightWhenOpen:u})}),this.setTimeout(function(){return n.onDelayedStateChange()},r)}}},e.prototype.onDelayedStateChange=function(){switch(this.state.animationState){case En.OPENING:this.setState({animationState:En.OPEN,height:"auto"});break;case En.CLOSING:this.setState({animationState:En.CLOSED});break}},e.displayName="".concat(zt,".Collapse"),e.defaultProps={component:"div",isOpen:!1,keepChildrenMounted:!1,transitionDuration:200},e}(sr),w$=function(t){Yn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(){var n=this.props,r=n.className,i=n.tagName,a=i===void 0?"div":i,u=kn(n,["className","tagName"]),c=et(K8,r);return N.createElement(a,Le(Le({},u),{className:c}))},e.displayName="".concat(zt,".Divider"),e}(sr),i_=N.forwardRef(function(t,e){var n,r=t.alignIndicator,i=t.children,a=t.className,u=t.indicatorChildren,c=t.inline,f=t.inputRef,p=t.label,v=t.labelElement,m=t.large,y=t.style,b=t.type,E=t.typeClassName,A=t.tagName,S=A===void 0?"label":A,O=kn(t,["alignIndicator","children","className","indicatorChildren","inline","inputRef","label","labelElement","large","style","type","typeClassName","tagName"]),k=et(iR,E,(n={},n[gv]=O.disabled,n[x8]=c,n[ll]=m,n),DC(r),a);return N.createElement(S,{className:k,style:y,ref:e},N.createElement("input",Le({},O,{ref:f,type:b})),N.createElement("span",{className:oR},u),p,v,i)});i_.displayName="".concat(zt,".Control");var S$=N.forwardRef(function(t,e){var n=t.innerLabelChecked,r=t.innerLabel,i=kn(t,["innerLabelChecked","innerLabel"]),a=r||n?[N.createElement("div",{key:"checked",className:lx},N.createElement("div",{className:ux},n||r)),N.createElement("div",{key:"unchecked",className:lx},N.createElement("div",{className:ux},r))]:null;return N.createElement(i_,Le({},i,{indicatorChildren:a,ref:e,type:"checkbox",typeClassName:aR}))});S$.displayName="".concat(zt,".Switch");var GR=N.forwardRef(function(t,e){return N.createElement(i_,Le({},t,{ref:e,type:"radio",typeClassName:n3}))});GR.displayName="".concat(zt,".Radio");var BR=N.forwardRef(function(t,e){var n=t.defaultIndeterminate,r=t.indeterminate,i=t.onChange,a=kn(t,["defaultIndeterminate","indeterminate","onChange"]),u=N.useState(r||n||!1),c=u[0],f=u[1],p=N.useRef(null),v=t.inputRef===void 0?p:nf(t.inputRef,p),m=N.useCallback(function(y){r===void 0&&f(y.target.indeterminate),i?.(y)},[r,i]);return N.useEffect(function(){r!==void 0&&f(r)},[r]),N.useEffect(function(){p.current!=null&&(p.current.indeterminate=c)},[p,c]),N.createElement(i_,Le({},a,{inputRef:v,onChange:m,ref:e,type:"checkbox",typeClassName:t3}))});BR.displayName="".concat(zt,".Checkbox");var C$=function(t){Yn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={hasPendingUpdate:!1,isComposing:!1,nextValue:n.props.value,value:n.props.value},n.cancelPendingCompositionEnd=null,n.handleCompositionStart=function(r){var i,a,u;(i=n.cancelPendingCompositionEnd)===null||i===void 0||i.call(n),n.setState({isComposing:!0}),(u=(a=n.props).onCompositionStart)===null||u===void 0||u.call(a,r)},n.handleCompositionEnd=function(r){var i,a;n.cancelPendingCompositionEnd=n.setTimeout(function(){return n.setState({isComposing:!1})},e.COMPOSITION_END_DELAY),(a=(i=n.props).onCompositionEnd)===null||a===void 0||a.call(i,r)},n.handleChange=function(r){var i,a,u=r.target.value;n.setState({nextValue:u}),(a=(i=n.props).onChange)===null||a===void 0||a.call(i,r)},n}return e.getDerivedStateFromProps=function(n,r){if(r.isComposing||n.value===void 0)return null;var i=r.nextValue!==r.value;return i?n.value===r.nextValue?r.hasPendingUpdate?{value:n.value,hasPendingUpdate:!1}:{value:r.nextValue}:n.value===r.value?{hasPendingUpdate:!0}:{value:n.value,nextValue:n.value,hasPendingUpdate:!1}:{value:n.value,nextValue:n.value,hasPendingUpdate:!1}},e.prototype.render=function(){var n=this.state,r=n.isComposing,i=n.hasPendingUpdate,a=n.value,u=n.nextValue,c=this.props,f=c.inputRef,p=kn(c,["inputRef"]);return N.createElement("input",Le({},p,{ref:f,value:r||i?u:a,onCompositionStart:this.handleCompositionStart,onCompositionEnd:this.handleCompositionEnd,onChange:this.handleChange}))},e.displayName="".concat(zt,".AsyncControllableInput"),e.COMPOSITION_END_DELAY=10,e}(sr),b$=["onValueChange"],E$=function(t){Yn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={},n.leftElement=null,n.rightElement=null,n.refHandlers={leftElement:function(r){return n.leftElement=r},rightElement:function(r){return n.rightElement=r}},n.handleInputChange=function(r){var i,a,u,c,f=r.target.value;(a=(i=n.props).onChange)===null||a===void 0||a.call(i,r),(c=(u=n.props).onValueChange)===null||c===void 0||c.call(u,f,r.target)},n}return e.prototype.render=function(){var n,r=this.props,i=r.asyncControl,a=i===void 0?!1:i,u=r.className,c=r.disabled,f=r.fill,p=r.inputClassName,v=r.inputRef,m=r.intent,y=r.large,b=r.readOnly,E=r.round,A=r.small,S=r.tagName,O=S===void 0?"div":S,k=et(Z8,eo(m),(n={},n[gv]=c,n[A8]=b,n[tf]=f,n[ll]=y,n[zm]=A,n[ZA]=E,n),u),T=Le(Le({},this.props.style),{paddingLeft:this.state.leftElementWidth,paddingRight:this.state.rightElementWidth}),C=Le(Le({type:"text"},rf(this.props,b$,!0)),{"aria-disabled":c,className:et(Yy,p),onChange:this.handleInputChange,style:T}),w=a?N.createElement(C$,Le({},C,{inputRef:v})):N.createElement("input",Le({},C,{ref:v}));return N.createElement(O,{className:k},this.maybeRenderLeftElement(),w,this.maybeRenderRightElement())},e.prototype.componentDidMount=function(){this.updateInputWidth()},e.prototype.componentDidUpdate=function(n){var r=this.props,i=r.leftElement,a=r.rightElement;(n.leftElement!==i||n.rightElement!==a)&&this.updateInputWidth()},e.prototype.validateProps=function(n){n.leftElement!=null&&n.leftIcon!=null&&console.warn(sF)},e.prototype.maybeRenderLeftElement=function(){var n=this.props,r=n.leftElement,i=n.leftIcon;if(r!=null)return N.createElement("span",{className:J8,ref:this.refHandlers.leftElement},r);if(i!=null)return N.createElement(Nr,{icon:i,"aria-hidden":!0,tabIndex:-1})},e.prototype.maybeRenderRightElement=function(){var n=this.props.rightElement;if(n!=null)return N.createElement("span",{className:e3,ref:this.refHandlers.rightElement},n)},e.prototype.updateInputWidth=function(){var n=this.state,r=n.leftElementWidth,i=n.rightElementWidth;if(this.leftElement!=null){var a=this.leftElement.clientWidth;(r===void 0||Math.abs(a-r)>2)&&this.setState({leftElementWidth:a})}else this.setState({leftElementWidth:void 0});if(this.rightElement!=null){var a=this.rightElement.clientWidth;(i===void 0||Math.abs(a-i)>2)&&this.setState({rightElementWidth:a})}else this.setState({rightElementWidth:void 0})},e.displayName="".concat(zt,".InputGroup"),e}(sr),x$=function(t){Yn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(){var n=this.props,r=n.className,i=kn(n,["className"]);return N.createElement("div",Le({className:et(f3,r)},i))},e.displayName="".concat(zt,".NavbarDivider"),e}(sr),T$=function(t){Yn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(){var n=this.props,r=n.align,i=n.children,a=n.className,u=kn(n,["align","children","className"]),c=et(u3,DC(r),a);return N.createElement("div",Le({className:c},u),i)},e.displayName="".concat(zt,".NavbarGroup"),e.defaultProps={align:$m.LEFT},e}(sr),O$=function(t){Yn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(){var n=this.props,r=n.children,i=n.className,a=kn(n,["children","className"]);return N.createElement("div",Le({className:et(c3,i)},a),r)},e.displayName="".concat(zt,".NavbarHeading"),e}(sr),kc=function(t){Yn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(){var n,r=this.props,i=r.children,a=r.className,u=r.fixedToTop,c=kn(r,["children","className","fixedToTop"]),f=et(Qy,(n={},n[E8]=u,n),a);return N.createElement("div",Le({className:f},c),i)},e.displayName="".concat(zt,".Navbar"),e.Divider=x$,e.Group=T$,e.Heading=O$,e}(sr),A$=function(t){Yn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(){var n,r=this.props,i=r.animate,a=i===void 0?!0:i,u=r.className,c=r.intent,f=r.stripes,p=f===void 0?!0:f,v=r.value,m=et(T3,eo(c),(n={},n[R3]=!a,n[A3]=!p,n),u),y=v==null?void 0:100*hR(v,0,1),b=y==null?void 0:y+"%";return N.createElement("div",{"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":y==null?void 0:Math.round(y),className:m,role:"progressbar"},N.createElement("div",{className:O3,style:{width:b}}))},e.displayName="".concat(zt,".ProgressBar"),e}(sr),eb=function(t){Yn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(){var n=this.props,r=n.className,i=n.panel;return N.createElement("div",{className:et(NC,r),role:"tablist"},i)},e.defaultProps={disabled:!1},e.displayName="".concat(zt,".Tab"),e}(sr),KR=function(t){var e=t.className,n=t.large,r=t.onRemove,i=t.tabIndex,a=n||e?.includes(ll),u=N.useCallback(function(c){r?.(c,t)},[r,t]);return N.createElement("button",{"aria-label":"Remove tag",type:"button",className:z3,onClick:u,tabIndex:i},N.createElement(e_,{size:a?mt.LARGE:mt.STANDARD}))};KR.displayName="".concat(zt,".TagRemoveButton");var Uo=N.forwardRef(function(t,e){var n,r=t.active,i=t.children,a=t.className,u=t.fill,c=t.icon,f=t.intent,p=t.interactive,v=t.large,m=t.minimal,y=t.multiline,b=t.onRemove,E=t.rightIcon,A=t.round,S=t.tabIndex,O=S===void 0?0:S,k=t.htmlTitle,T=kn(t,["active","children","className","fill","icon","intent","interactive","large","minimal","multiline","onRemove","rightIcon","round","tabIndex","htmlTitle"]),C=rF(b),w=et(fR,eo(f),(n={},n[jm]=r,n[tf]=u,n[QA]=p,n[ll]=v,n[RC]=m,n[ZA]=A,n),a);return N.createElement("span",Le({},T,{className:w,tabIndex:p?O:void 0,ref:e}),N.createElement(Nr,{icon:c}),!qm(i)&&N.createElement(_v,{className:tf,ellipsize:!y,tagName:"span",title:k},i),N.createElement(Nr,{icon:E}),C&&N.createElement(KR,Le({},t)))});Uo.defaultProps={active:!1,fill:!1,interactive:!1,large:!1,minimal:!1,round:!1};Uo.displayName="".concat(zt,".Tag");var R$=function(t){Yn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.handleClick=function(r){return n.props.onClick(n.props.id,r)},n}return e.prototype.render=function(){var n=this.props,r=n.className,i=n.children,a=n.disabled,u=n.id,c=n.parentId,f=n.selected,p=n.title,v=n.icon,m=n.tagContent,y=n.tagProps,b=kn(n,["className","children","disabled","id","parentId","selected","title","icon","tagContent","tagProps"]),E=f?Ei.PRIMARY:Ei.NONE;return N.createElement("div",Le({},rf(b),{"aria-controls":XR(c,u),"aria-disabled":a,"aria-expanded":f,"aria-selected":f,className:et(hl,r),"data-tab-id":u,id:YR(c,u),onClick:a?void 0:this.handleClick,role:"tab",tabIndex:a?void 0:f?0:-1}),v!=null&&N.createElement(Nr,{icon:v,intent:E,className:M3}),p,i,m!=null&&N.createElement(Uo,Le({minimal:!0,intent:E},y,{className:et(I3,y?.className)}),m))},e.displayName="".concat(zt,".TabTitle"),e}(sr);function XR(t,e){return"".concat(NC,"_").concat(t,"_").concat(e)}function YR(t,e){return"".concat(hl,"-title_").concat(t,"_").concat(e)}var k$=function(){return N.createElement("div",{className:Q8})},g0=".".concat(hl),N$=function(t){Yn(e,t);function e(n){var r=t.call(this,n)||this;r.tablistElement=null,r.refHandlers={tablist:function(a){return r.tablistElement=a}},r.handleKeyDown=function(a){var u,c=(u=SS(r.tablistElement))===null||u===void 0?void 0:u.closest(g0);if(c!=null){var f=r.getTabElements().filter(function(b){return b.getAttribute("aria-disabled")==="false"}),p=f.indexOf(c),v=r.getKeyCodeDirection(a);if(p>=0&&v!==void 0){a.preventDefault();var m=f.length,y=(p+v+m)%m;f[y].focus()}}},r.handleKeyPress=function(a){var u=a.target.closest(g0);u!=null&&Um(a)&&(a.preventDefault(),u.click())},r.handleTabClick=function(a,u){var c,f;(f=(c=r.props).onChange)===null||f===void 0||f.call(c,a,r.state.selectedTabId,u),r.props.selectedTabId===void 0&&r.setState({selectedTabId:a})},r.renderTabPanel=function(a){var u=a.props,c=u.className,f=u.panel,p=u.id,v=u.panelClassName;if(f!==void 0)return N.createElement("div",{"aria-labelledby":YR(r.props.id,p),"aria-hidden":p!==r.state.selectedTabId,className:et(NC,c,v),id:XR(r.props.id,p),key:p,role:"tabpanel"},f)},r.renderTabTitle=function(a){if(Wx(a)){var u=a.props.id;return N.createElement(R$,Le({},a.props,{parentId:r.props.id,onClick:r.handleTabClick,selected:u===r.state.selectedTabId}))}return a};var i=r.getInitialSelectedTabId();return r.state={selectedTabId:i},r}return e.getDerivedStateFromProps=function(n){var r=n.selectedTabId;return r!==void 0?{selectedTabId:r}:null},e.prototype.render=function(){var n,r,i=this.state,a=i.indicatorWrapperStyle,u=i.selectedTabId,c=N.Children.map(this.props.children,this.renderTabTitle),f=this.getTabChildren().filter(this.props.renderActiveTabPanelOnly?function(y){return y.props.id===u}:function(){return!0}).map(this.renderTabPanel),p=this.props.animate?N.createElement("div",{className:F3,style:a},N.createElement("div",{className:cR})):null,v=et(j3,this.props.className,(n={},n[R8]=this.props.vertical,n[tf]=this.props.fill,n)),m=et($3,(r={},r[ll]=this.props.large,r));return N.createElement("div",{className:v},N.createElement("div",{className:m,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,ref:this.refHandlers.tablist,role:"tablist"},p,c),f)},e.prototype.componentDidMount=function(){this.moveSelectionIndicator(!1)},e.prototype.componentDidUpdate=function(n,r){if(this.state.selectedTabId!==r.selectedTabId)this.moveSelectionIndicator();else if(r.selectedTabId!=null){var i=!X3(this.getTabChildrenProps(n),this.getTabChildrenProps(),Y3);i&&this.moveSelectionIndicator()}},e.prototype.getInitialSelectedTabId=function(){var n=this.props,r=n.defaultSelectedTabId,i=n.selectedTabId;if(i!==void 0)return i;if(r!==void 0)return r;var a=this.getTabChildren();return a.length===0?void 0:a[0].props.id},e.prototype.getKeyCodeDirection=function(n){if(n.key==="ArrowLeft"||n.key==="ArrowUp")return-1;if(n.key==="ArrowRight"||n.key==="ArrowDown")return 1},e.prototype.getTabChildrenProps=function(n){return n===void 0&&(n=this.props),this.getTabChildren(n).map(function(r){return r.props})},e.prototype.getTabChildren=function(n){return n===void 0&&(n=this.props),N.Children.toArray(n.children).filter(Wx)},e.prototype.getTabElements=function(n){return n===void 0&&(n=""),this.tablistElement==null?[]:Array.from(this.tablistElement.querySelectorAll(g0+n))},e.prototype.moveSelectionIndicator=function(n){if(n===void 0&&(n=!0),!(this.tablistElement==null||!this.props.animate)){var r="".concat(g0,'[data-tab-id="').concat(this.state.selectedTabId,'"]'),i=this.tablistElement.querySelector(r),a={display:"none"};if(i!=null){var u=i.clientHeight,c=i.clientWidth,f=i.offsetLeft,p=i.offsetTop;a={height:u,transform:"translateX(".concat(Math.floor(f),"px) translateY(").concat(Math.floor(p),"px)"),width:c},n||(a.transition="none")}this.setState({indicatorWrapperStyle:a})}},e.Expander=k$,e.Tab=eb,e.defaultProps={animate:!0,fill:!1,large:!1,renderActiveTabPanelOnly:!1,vertical:!1},e.displayName="".concat(zt,".Tabs"),e}(sr);function Wx(t){return gR(t,eb)}class P$ extends N.Component{constructor(e){super(e),this.hardpy_start_with_space=n=>{const r=this.props.testing_status=="run";n.key===" "&&!r&&this.hardpy_start()},this.handleButtonClick=()=>{this.hardpy_start()},this.hardpy_start=this.hardpy_start.bind(this),this.hardpy_stop=this.hardpy_stop.bind(this)}hardpy_call(e){fetch(e).then(n=>{if(n.ok)return n.text();console.log("Request failed. Status: "+n.status)}).catch(n=>{console.log("Request failed. Error: "+n)})}hardpy_start(){this.hardpy_call("api/start")}hardpy_stop(){this.hardpy_call("api/stop")}componentDidMount(){window.addEventListener("keydown",this.hardpy_start_with_space)}componentWillUnmount(){window.removeEventListener("keydown",this.hardpy_start_with_space)}render(){const e=this.props.testing_status=="run",n="start-stop-button",r={text:"Stop",intent:"danger",large:!0,rightIcon:"stop",onClick:this.hardpy_stop,id:n},i={text:"Start",intent:e?void 0:"primary",large:!0,rightIcon:"play",onClick:this.handleButtonClick,id:n};return ge.jsx(bR,{...e?r:i})}}var wm={exports:{}},D$=wm.exports,Vx;function L$(){return Vx||(Vx=1,function(t,e){var n={};(function(){var r,i="4.17.21",a=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",f="Invalid `variable` option passed into `_.template`",p="__lodash_hash_undefined__",v=500,m="__lodash_placeholder__",y=1,b=2,E=4,A=1,S=2,O=1,k=2,T=4,C=8,w=16,R=32,I=64,$=128,U=256,G=512,Y=30,Z="...",ee=800,ae=16,de=1,Q=2,re=3,z=1/0,B=9007199254740991,F=17976931348623157e292,W=NaN,X=4294967295,le=X-1,ce=X>>>1,oe=[["ary",$],["bind",O],["bindKey",k],["curry",C],["curryRight",w],["flip",G],["partial",R],["partialRight",I],["rearg",U]],q="[object Arguments]",ie="[object Array]",J="[object AsyncFunction]",be="[object Boolean]",Ee="[object Date]",Re="[object DOMException]",Me="[object Error]",qe="[object Function]",Je="[object GeneratorFunction]",ye="[object Map]",Ce="[object Number]",ke="[object Null]",xe="[object Object]",Fe="[object Promise]",Ae="[object Proxy]",ze="[object RegExp]",nt="[object Set]",ct="[object String]",Ge="[object Symbol]",yt="[object Undefined]",Bt="[object WeakMap]",$n="[object WeakSet]",Yt="[object ArrayBuffer]",Yr="[object DataView]",lr="[object Float32Array]",Dr="[object Float64Array]",Xe="[object Int8Array]",it="[object Int16Array]",Mt="[object Int32Array]",Zn="[object Uint8Array]",pn="[object Uint8ClampedArray]",Qr="[object Uint16Array]",br="[object Uint32Array]",xo=/\b__p \+= '';/g,To=/\b(__p \+=) '' \+/g,Er=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ai=/&(?:amp|lt|gt|quot|#39);/g,en=/[&<>"']/g,bs=RegExp(Ai.source),Cl=RegExp(en.source),rn=/<%-([\s\S]+?)%>/g,mn=/<%([\s\S]+?)%>/g,Jn=/<%=([\s\S]+?)%>/g,xr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,di=/^\w*$/,Ra=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,hi=/[\\^$.*+?()[\]{}|]/g,Es=RegExp(hi.source),Ri=/^\s+/,Lr=/\s/,er=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Jo=/\{\n\/\* \[wrapped with (.+)\] \*/,Zr=/,? & /,Cf=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ki=/[()=,{}\[\]\/\s]/,Jr=/\\(\\)?/g,bf=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ro=/\w*$/,Ef=/^[-+]0x[0-9a-f]+$/i,xs=/^0b[01]+$/i,bu=/^\[object .+?Constructor\]$/,xf=/^0o[0-7]+$/i,Tf=/^(?:0|[1-9]\d*)$/,Kh=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bl=/($^)/,Tt=/['\n\r\u2028\u2029\\]/g,Oo="\\ud800-\\udfff",Eu="\\u0300-\\u036f",Of="\\ufe20-\\ufe2f",El="\\u20d0-\\u20ff",Af=Eu+Of+El,xu="\\u2700-\\u27bf",Ts="a-z\\xdf-\\xf6\\xf8-\\xff",Ni="\\xac\\xb1\\xd7\\xf7",ka="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",pi="\\u2000-\\u206f",Xh=" \\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",Rf="A-Z\\xc0-\\xd6\\xd8-\\xde",ut="\\ufe0e\\ufe0f",Rt=Ni+ka+pi+Xh,Cn="['’]",ur="["+Oo+"]",at="["+Rt+"]",Na="["+Af+"]",ea="\\d+",Pi="["+xu+"]",Yh="["+Ts+"]",kf="[^"+Oo+Rt+ea+xu+Ts+Rf+"]",Os="\\ud83c[\\udffb-\\udfff]",x_="(?:"+Na+"|"+Os+")",Nf="[^"+Oo+"]",Ut="(?:\\ud83c[\\udde6-\\uddff]){2}",Pf="[\\ud800-\\udbff][\\udc00-\\udfff]",As="["+Rf+"]",Df="\\u200d",Qh="(?:"+Yh+"|"+kf+")",Iv="(?:"+As+"|"+kf+")",Zh="(?:"+Cn+"(?:d|ll|m|re|s|t|ve))?",Lf="(?:"+Cn+"(?:D|LL|M|RE|S|T|VE))?",Tu=x_+"?",ta="["+ut+"]?",Pa="(?:"+Df+"(?:"+[Nf,Ut,Pf].join("|")+")"+ta+Tu+")*",Da="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ou="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",xl=ta+Tu+Pa,La="(?:"+[Pi,Ut,Pf].join("|")+")"+xl,T_="(?:"+[Nf+Na+"?",Na,Ut,Pf,ur].join("|")+")",Fv=RegExp(Cn,"g"),Au=RegExp(Na,"g"),Jh=RegExp(Os+"(?="+Os+")|"+T_+xl,"g"),$v=RegExp([As+"?"+Yh+"+"+Zh+"(?="+[at,As,"$"].join("|")+")",Iv+"+"+Lf+"(?="+[at,As+Qh,"$"].join("|")+")",As+"?"+Qh+"+"+Zh,As+"+"+Lf,Ou,Da,ea,La].join("|"),"g"),Mf=RegExp("["+Df+Oo+Af+ut+"]"),jv=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,O_=["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"],Ru=-1,Kt={};Kt[lr]=Kt[Dr]=Kt[Xe]=Kt[it]=Kt[Mt]=Kt[Zn]=Kt[pn]=Kt[Qr]=Kt[br]=!0,Kt[q]=Kt[ie]=Kt[Yt]=Kt[be]=Kt[Yr]=Kt[Ee]=Kt[Me]=Kt[qe]=Kt[ye]=Kt[Ce]=Kt[xe]=Kt[ze]=Kt[nt]=Kt[ct]=Kt[Bt]=!1;var Wt={};Wt[q]=Wt[ie]=Wt[Yt]=Wt[Yr]=Wt[be]=Wt[Ee]=Wt[lr]=Wt[Dr]=Wt[Xe]=Wt[it]=Wt[Mt]=Wt[ye]=Wt[Ce]=Wt[xe]=Wt[ze]=Wt[nt]=Wt[ct]=Wt[Ge]=Wt[Zn]=Wt[pn]=Wt[Qr]=Wt[br]=!0,Wt[Me]=Wt[qe]=Wt[Bt]=!1;var If={À:"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"},A_={"&":"&","<":"<",">":">",'"':""","'":"'"},R_={"&":"&","<":"<",">":">",""":'"',"'":"'"},ep={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ff=parseFloat,tp=parseInt,np=typeof n=="object"&&n&&n.Object===Object&&n,Ma=typeof self=="object"&&self&&self.Object===Object&&self,jn=np||Ma||Function("return this")(),Tl=e&&!e.nodeType&&e,Ia=Tl&&!0&&t&&!t.nodeType&&t,ku=Ia&&Ia.exports===Tl,Ol=ku&&np.process,mi=function(){try{var he=Ia&&Ia.require&&Ia.require("util").types;return he||Ol&&Ol.binding&&Ol.binding("util")}catch{}}(),ei=mi&&mi.isArrayBuffer,Rs=mi&&mi.isDate,$f=mi&&mi.isMap,Al=mi&&mi.isRegExp,zv=mi&&mi.isSet,jf=mi&&mi.isTypedArray;function Mr(he,Se,we){switch(we.length){case 0:return he.call(Se);case 1:return he.call(Se,we[0]);case 2:return he.call(Se,we[0],we[1]);case 3:return he.call(Se,we[0],we[1],we[2])}return he.apply(Se,we)}function Nu(he,Se,we,Be){for(var vt=-1,Ht=he==null?0:he.length;++vt<Ht;){var Nn=he[vt];Se(Be,Nn,we(Nn),he)}return Be}function Ir(he,Se){for(var we=-1,Be=he==null?0:he.length;++we<Be&&Se(he[we],we,he)!==!1;);return he}function Hv(he,Se){for(var we=he==null?0:he.length;we--&&Se(he[we],we,he)!==!1;);return he}function qv(he,Se){for(var we=-1,Be=he==null?0:he.length;++we<Be;)if(!Se(he[we],we,he))return!1;return!0}function Fa(he,Se){for(var we=-1,Be=he==null?0:he.length,vt=0,Ht=[];++we<Be;){var Nn=he[we];Se(Nn,we,he)&&(Ht[vt++]=Nn)}return Ht}function zf(he,Se){var we=he==null?0:he.length;return!!we&&ja(he,Se,0)>-1}function Pu(he,Se,we){for(var Be=-1,vt=he==null?0:he.length;++Be<vt;)if(we(Se,he[Be]))return!0;return!1}function sn(he,Se){for(var we=-1,Be=he==null?0:he.length,vt=Array(Be);++we<Be;)vt[we]=Se(he[we],we,he);return vt}function $a(he,Se){for(var we=-1,Be=Se.length,vt=he.length;++we<Be;)he[vt+we]=Se[we];return he}function rp(he,Se,we,Be){var vt=-1,Ht=he==null?0:he.length;for(Be&&Ht&&(we=he[++vt]);++vt<Ht;)we=Se(we,he[vt],vt,he);return we}function k_(he,Se,we,Be){var vt=he==null?0:he.length;for(Be&&vt&&(we=he[--vt]);vt--;)we=Se(we,he[vt],vt,he);return we}function ip(he,Se){for(var we=-1,Be=he==null?0:he.length;++we<Be;)if(Se(he[we],we,he))return!0;return!1}var Uv=qf("length");function N_(he){return he.split("")}function P_(he){return he.match(Cf)||[]}function Wv(he,Se,we){var Be;return we(he,function(vt,Ht,Nn){if(Se(vt,Ht,Nn))return Be=Ht,!1}),Be}function Hf(he,Se,we,Be){for(var vt=he.length,Ht=we+(Be?1:-1);Be?Ht--:++Ht<vt;)if(Se(he[Ht],Ht,he))return Ht;return-1}function ja(he,Se,we){return Se===Se?$_(he,Se,we):Hf(he,Vv,we)}function D_(he,Se,we,Be){for(var vt=we-1,Ht=he.length;++vt<Ht;)if(Be(he[vt],Se))return vt;return-1}function Vv(he){return he!==he}function Gv(he,Se){var we=he==null?0:he.length;return we?ap(he,Se)/we:W}function qf(he){return function(Se){return Se==null?r:Se[he]}}function op(he){return function(Se){return he==null?r:he[Se]}}function Bv(he,Se,we,Be,vt){return vt(he,function(Ht,Nn,Xt){we=Be?(Be=!1,Ht):Se(we,Ht,Nn,Xt)}),we}function L_(he,Se){var we=he.length;for(he.sort(Se);we--;)he[we]=he[we].value;return he}function ap(he,Se){for(var we,Be=-1,vt=he.length;++Be<vt;){var Ht=Se(he[Be]);Ht!==r&&(we=we===r?Ht:we+Ht)}return we}function sp(he,Se){for(var we=-1,Be=Array(he);++we<he;)Be[we]=Se(we);return Be}function M_(he,Se){return sn(Se,function(we){return[we,he[we]]})}function Kv(he){return he&&he.slice(0,cp(he)+1).replace(Ri,"")}function Fr(he){return function(Se){return he(Se)}}function ks(he,Se){return sn(Se,function(we){return he[we]})}function Du(he,Se){return he.has(Se)}function lp(he,Se){for(var we=-1,Be=he.length;++we<Be&&ja(Se,he[we],0)>-1;);return we}function up(he,Se){for(var we=he.length;we--&&ja(Se,he[we],0)>-1;);return we}function Xv(he,Se){for(var we=he.length,Be=0;we--;)he[we]===Se&&++Be;return Be}var Yv=op(If),Qv=op(A_);function Rl(he){return"\\"+ep[he]}function I_(he,Se){return he==null?r:he[Se]}function kl(he){return Mf.test(he)}function F_(he){return jv.test(he)}function Zv(he){for(var Se,we=[];!(Se=he.next()).done;)we.push(Se.value);return we}function Uf(he){var Se=-1,we=Array(he.size);return he.forEach(function(Be,vt){we[++Se]=[vt,Be]}),we}function Nl(he,Se){return function(we){return he(Se(we))}}function Di(he,Se){for(var we=-1,Be=he.length,vt=0,Ht=[];++we<Be;){var Nn=he[we];(Nn===Se||Nn===m)&&(he[we]=m,Ht[vt++]=we)}return Ht}function Wf(he){var Se=-1,we=Array(he.size);return he.forEach(function(Be){we[++Se]=Be}),we}function Vf(he){var Se=-1,we=Array(he.size);return he.forEach(function(Be){we[++Se]=[Be,Be]}),we}function $_(he,Se,we){for(var Be=we-1,vt=he.length;++Be<vt;)if(he[Be]===Se)return Be;return-1}function Jv(he,Se,we){for(var Be=we+1;Be--;)if(he[Be]===Se)return Be;return Be}function za(he){return kl(he)?tg(he):Uv(he)}function vi(he){return kl(he)?j_(he):N_(he)}function cp(he){for(var Se=he.length;Se--&&Lr.test(he.charAt(Se)););return Se}var eg=op(R_);function tg(he){for(var Se=Jh.lastIndex=0;Jh.test(he);)++Se;return Se}function j_(he){return he.match(Jh)||[]}function z_(he){return he.match($v)||[]}var H_=function he(Se){Se=Se==null?jn:Pl.defaults(jn.Object(),Se,Pl.pick(jn,O_));var we=Se.Array,Be=Se.Date,vt=Se.Error,Ht=Se.Function,Nn=Se.Math,Xt=Se.Object,fp=Se.RegExp,q_=Se.String,cr=Se.TypeError,Dl=we.prototype,Lu=Ht.prototype,Ha=Xt.prototype,Mu=Se["__core-js_shared__"],Ns=Lu.toString,It=Ha.hasOwnProperty,dp=0,hp=function(){var l=/[^.]+$/.exec(Mu&&Mu.keys&&Mu.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""}(),Ps=Ha.toString,ng=Ns.call(Xt),rg=jn._,ig=fp("^"+Ns.call(It).replace(hi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Iu=ku?Se.Buffer:r,na=Se.Symbol,Fu=Se.Uint8Array,ra=Iu?Iu.allocUnsafe:r,Ll=Nl(Xt.getPrototypeOf,Xt),Gf=Xt.create,og=Ha.propertyIsEnumerable,Bf=Dl.splice,Ml=na?na.isConcatSpreadable:r,$u=na?na.iterator:r,qa=na?na.toStringTag:r,ju=function(){try{var l=Za(Xt,"defineProperty");return l({},"",{}),l}catch{}}(),on=Se.clearTimeout!==jn.clearTimeout&&Se.clearTimeout,pp=Be&&Be.now!==jn.Date.now&&Be.now,Kf=Se.setTimeout!==jn.setTimeout&&Se.setTimeout,Ua=Nn.ceil,zu=Nn.floor,Hu=Xt.getOwnPropertySymbols,qu=Iu?Iu.isBuffer:r,Uu=Se.isFinite,Il=Dl.join,ag=Nl(Xt.keys,Xt),zn=Nn.max,Tr=Nn.min,sg=Be.now,Xf=Se.parseInt,Wu=Nn.random,mp=Dl.reverse,Vu=Za(Se,"DataView"),Ds=Za(Se,"Map"),Gu=Za(Se,"Promise"),Fl=Za(Se,"Set"),$l=Za(Se,"WeakMap"),Bu=Za(Xt,"create"),Yf=$l&&new $l,Wa={},Va=Ja(Vu),lg=Ja(Ds),jl=Ja(Gu),Ao=Ja(Fl),Ku=Ja($l),Li=na?na.prototype:r,Ls=Li?Li.valueOf:r,ug=Li?Li.toString:r;function V(l){if(Dn(l)&&!_t(l)&&!(l instanceof Et)){if(l instanceof fr)return l;if(It.call(l,"__wrapped__"))return Fg(l)}return new fr(l)}var Mi=function(){function l(){}return function(d){if(!Rn(d))return{};if(Gf)return Gf(d);l.prototype=d;var _=new l;return l.prototype=r,_}}();function Ga(){}function fr(l,d){this.__wrapped__=l,this.__actions__=[],this.__chain__=!!d,this.__index__=0,this.__values__=r}V.templateSettings={escape:rn,evaluate:mn,interpolate:Jn,variable:"",imports:{_:V}},V.prototype=Ga.prototype,V.prototype.constructor=V,fr.prototype=Mi(Ga.prototype),fr.prototype.constructor=fr;function Et(l){this.__wrapped__=l,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=X,this.__views__=[]}function vp(){var l=new Et(this.__wrapped__);return l.__actions__=jr(this.__actions__),l.__dir__=this.__dir__,l.__filtered__=this.__filtered__,l.__iteratees__=jr(this.__iteratees__),l.__takeCount__=this.__takeCount__,l.__views__=jr(this.__views__),l}function zl(){if(this.__filtered__){var l=new Et(this);l.__dir__=-1,l.__filtered__=!0}else l=this.clone(),l.__dir__*=-1;return l}function Ba(){var l=this.__wrapped__.value(),d=this.__dir__,_=_t(l),M=d<0,j=_?l.length:0,K=Hp(0,j,this.__views__),ne=K.start,ue=K.end,pe=ue-ne,Te=M?ue:ne-1,Oe=this.__iteratees__,De=Oe.length,Ue=0,rt=Tr(pe,this.__takeCount__);if(!_||!M&&j==pe&&rt==pe)return xp(l,this.__actions__);var dt=[];e:for(;pe--&&Ue<rt;){Te+=d;for(var Ot=-1,ht=l[Te];++Ot<De;){var Pt=Oe[Ot],jt=Pt.iteratee,mo=Pt.type,wi=jt(ht);if(mo==Q)ht=wi;else if(!wi){if(mo==de)continue e;break e}}dt[Ue++]=ht}return dt}Et.prototype=Mi(Ga.prototype),Et.prototype.constructor=Et;function Vt(l){var d=-1,_=l==null?0:l.length;for(this.clear();++d<_;){var M=l[d];this.set(M[0],M[1])}}function tn(){this.__data__=Bu?Bu(null):{},this.size=0}function Ka(l){var d=this.has(l)&&delete this.__data__[l];return this.size-=d?1:0,d}function Or(l){var d=this.__data__;if(Bu){var _=d[l];return _===p?r:_}return It.call(d,l)?d[l]:r}function ti(l){var d=this.__data__;return Bu?d[l]!==r:It.call(d,l)}function Ms(l,d){var _=this.__data__;return this.size+=this.has(l)?0:1,_[l]=Bu&&d===r?p:d,this}Vt.prototype.clear=tn,Vt.prototype.delete=Ka,Vt.prototype.get=Or,Vt.prototype.has=ti,Vt.prototype.set=Ms;function ni(l){var d=-1,_=l==null?0:l.length;for(this.clear();++d<_;){var M=l[d];this.set(M[0],M[1])}}function ri(){this.__data__=[],this.size=0}function Qf(l){var d=this.__data__,_=Ar(d,l);if(_<0)return!1;var M=d.length-1;return _==M?d.pop():Bf.call(d,_,1),--this.size,!0}function cg(l){var d=this.__data__,_=Ar(d,l);return _<0?r:d[_][1]}function fg(l){return Ar(this.__data__,l)>-1}function Zf(l,d){var _=this.__data__,M=Ar(_,l);return M<0?(++this.size,_.push([l,d])):_[M][1]=d,this}ni.prototype.clear=ri,ni.prototype.delete=Qf,ni.prototype.get=cg,ni.prototype.has=fg,ni.prototype.set=Zf;function Ro(l){var d=-1,_=l==null?0:l.length;for(this.clear();++d<_;){var M=l[d];this.set(M[0],M[1])}}function ia(){this.size=0,this.__data__={hash:new Vt,map:new(Ds||ni),string:new Vt}}function Jf(l){var d=mc(this,l).delete(l);return this.size-=d?1:0,d}function gp(l){return mc(this,l).get(l)}function dg(l){return mc(this,l).has(l)}function U_(l,d){var _=mc(this,l),M=_.size;return _.set(l,d),this.size+=_.size==M?0:1,this}Ro.prototype.clear=ia,Ro.prototype.delete=Jf,Ro.prototype.get=gp,Ro.prototype.has=dg,Ro.prototype.set=U_;function ii(l){var d=-1,_=l==null?0:l.length;for(this.__data__=new Ro;++d<_;)this.add(l[d])}function Hl(l){return this.__data__.set(l,p),this}function ql(l){return this.__data__.has(l)}ii.prototype.add=ii.prototype.push=Hl,ii.prototype.has=ql;function oi(l){var d=this.__data__=new ni(l);this.size=d.size}function ed(){this.__data__=new ni,this.size=0}function Ii(l){var d=this.__data__,_=d.delete(l);return this.size=d.size,_}function Fi(l){return this.__data__.get(l)}function Is(l){return this.__data__.has(l)}function oa(l,d){var _=this.__data__;if(_ instanceof ni){var M=_.__data__;if(!Ds||M.length<a-1)return M.push([l,d]),this.size=++_.size,this;_=this.__data__=new Ro(M)}return _.set(l,d),this.size=_.size,this}oi.prototype.clear=ed,oi.prototype.delete=Ii,oi.prototype.get=Fi,oi.prototype.has=Is,oi.prototype.set=oa;function ko(l,d){var _=_t(l),M=!_&&Oc(l),j=!_&&!M&&ou(l),K=!_&&!M&&!j&&Bd(l),ne=_||M||j||K,ue=ne?sp(l.length,q_):[],pe=ue.length;for(var Te in l)(d||It.call(l,Te))&&!(ne&&(Te=="length"||j&&(Te=="offset"||Te=="parent")||K&&(Te=="buffer"||Te=="byteLength"||Te=="byteOffset")||cn(Te,pe)))&&ue.push(Te);return ue}function Xa(l){var d=l.length;return d?l[ec(0,d-1)]:r}function hg(l,d){return kd(jr(l),aa(d,0,l.length))}function yp(l){return kd(jr(l))}function Xu(l,d,_){(_!==r&&!ha(l[d],_)||_===r&&!(d in l))&&No(l,d,_)}function dr(l,d,_){var M=l[d];(!(It.call(l,d)&&ha(M,_))||_===r&&!(d in l))&&No(l,d,_)}function Ar(l,d){for(var _=l.length;_--;)if(ha(l[_][0],d))return _;return-1}function ln(l,d,_,M){return Ya(l,function(j,K,ne){d(M,j,_(j),ne)}),M}function $i(l,d){return l&&ao(d,kr(d),l)}function pg(l,d){return l&&ao(d,Gi(d),l)}function No(l,d,_){d=="__proto__"&&ju?ju(l,d,{configurable:!0,enumerable:!0,value:_,writable:!0}):l[d]=_}function Yu(l,d){for(var _=-1,M=d.length,j=we(M),K=l==null;++_<M;)j[_]=K?r:hw(l,d[_]);return j}function aa(l,d,_){return l===l&&(_!==r&&(l=l<=_?l:_),d!==r&&(l=l>=d?l:d)),l}function gi(l,d,_,M,j,K){var ne,ue=d&y,pe=d&b,Te=d&E;if(_&&(ne=j?_(l,M,j,K):_(l)),ne!==r)return ne;if(!Rn(l))return l;var Oe=_t(l);if(Oe){if(ne=gc(l),!ue)return jr(l,ne)}else{var De=pr(l),Ue=De==qe||De==Je;if(ou(l))return lc(l,ue);if(De==xe||De==q||Ue&&!j){if(ne=pe||Ue?{}:mr(l),!ue)return pe?Eg(l,pg(ne,l)):W_(l,$i(ne,l))}else{if(!Wt[De])return j?l:{};ne=G_(l,De,ue)}}K||(K=new oi);var rt=K.get(l);if(rt)return rt;K.set(l,ne),Yb(l)?l.forEach(function(ht){ne.add(gi(ht,d,_,ht,l,K))}):Kb(l)&&l.forEach(function(ht,Pt){ne.set(Pt,gi(ht,d,_,Pt,l,K))});var dt=Te?pe?pc:hc:pe?Gi:kr,Ot=Oe?r:dt(l);return Ir(Ot||l,function(ht,Pt){Ot&&(Pt=ht,ht=l[Pt]),dr(ne,Pt,gi(ht,d,_,Pt,l,K))}),ne}function td(l){var d=kr(l);return function(_){return _p(_,l,d)}}function _p(l,d,_){var M=_.length;if(l==null)return!M;for(l=Xt(l);M--;){var j=_[M],K=d[j],ne=l[j];if(ne===r&&!(j in l)||!K(ne))return!1}return!0}function Fs(l,d,_){if(typeof l!="function")throw new cr(c);return nu(function(){l.apply(r,_)},d)}function $s(l,d,_,M){var j=-1,K=zf,ne=!0,ue=l.length,pe=[],Te=d.length;if(!ue)return pe;_&&(d=sn(d,Fr(_))),M?(K=Pu,ne=!1):d.length>=a&&(K=Du,ne=!1,d=new ii(d));e:for(;++j<ue;){var Oe=l[j],De=_==null?Oe:_(Oe);if(Oe=M||Oe!==0?Oe:0,ne&&De===De){for(var Ue=Te;Ue--;)if(d[Ue]===De)continue e;pe.push(Oe)}else K(d,De,M)||pe.push(Oe)}return pe}var Ya=Pp($r),ji=Pp(ai,!0);function nd(l,d){var _=!0;return Ya(l,function(M,j,K){return _=!!d(M,j,K),_}),_}function js(l,d,_){for(var M=-1,j=l.length;++M<j;){var K=l[M],ne=d(K);if(ne!=null&&(ue===r?ne===ne&&!po(ne):_(ne,ue)))var ue=ne,pe=K}return pe}function Ul(l,d,_,M){var j=l.length;for(_=xt(_),_<0&&(_=-_>j?0:j+_),M=M===r||M>j?j:xt(M),M<0&&(M+=j),M=_>M?0:Zb(M);_<M;)l[_++]=d;return l}function rd(l,d){var _=[];return Ya(l,function(M,j,K){d(M,j,K)&&_.push(M)}),_}function Hn(l,d,_,M,j){var K=-1,ne=l.length;for(_||(_=Od),j||(j=[]);++K<ne;){var ue=l[K];d>0&&_(ue)?d>1?Hn(ue,d-1,_,M,j):$a(j,ue):M||(j[j.length]=ue)}return j}var Qu=Dp(),id=Dp(!0);function $r(l,d){return l&&Qu(l,d,kr)}function ai(l,d){return l&&id(l,d,kr)}function Po(l,d){return Fa(d,function(_){return Ys(l[_])})}function sa(l,d){d=ua(d,l);for(var _=0,M=d.length;l!=null&&_<M;)l=l[co(d[_++])];return _&&_==M?l:r}function wp(l,d,_){var M=d(l);return _t(l)?M:$a(M,_(l))}function vn(l){return l==null?l===r?yt:ke:qa&&qa in Xt(l)?Td(l):Up(l)}function Do(l,d){return l>d}function Sp(l,d){return l!=null&&It.call(l,d)}function mg(l,d){return l!=null&&d in Xt(l)}function la(l,d,_){return l>=Tr(d,_)&&l<zn(d,_)}function Lo(l,d,_){for(var M=_?Pu:zf,j=l[0].length,K=l.length,ne=K,ue=we(K),pe=1/0,Te=[];ne--;){var Oe=l[ne];ne&&d&&(Oe=sn(Oe,Fr(d))),pe=Tr(Oe.length,pe),ue[ne]=!_&&(d||j>=120&&Oe.length>=120)?new ii(ne&&Oe):r}Oe=l[0];var De=-1,Ue=ue[0];e:for(;++De<j&&Te.length<pe;){var rt=Oe[De],dt=d?d(rt):rt;if(rt=_||rt!==0?rt:0,!(Ue?Du(Ue,dt):M(Te,dt,_))){for(ne=K;--ne;){var Ot=ue[ne];if(!(Ot?Du(Ot,dt):M(l[ne],dt,_)))continue e}Ue&&Ue.push(dt),Te.push(rt)}}return Te}function od(l,d,_,M){return $r(l,function(j,K,ne){d(M,_(j),K,ne)}),M}function Wl(l,d,_){d=ua(d,l),l=tr(l,d);var M=l==null?l:l[co(qr(d))];return M==null?r:Mr(M,l,_)}function Zu(l){return Dn(l)&&vn(l)==q}function vg(l){return Dn(l)&&vn(l)==Yt}function gg(l){return Dn(l)&&vn(l)==Ee}function zs(l,d,_,M,j){return l===d?!0:l==null||d==null||!Dn(l)&&!Dn(d)?l!==l&&d!==d:ad(l,d,_,M,zs,j)}function ad(l,d,_,M,j,K){var ne=_t(l),ue=_t(d),pe=ne?ie:pr(l),Te=ue?ie:pr(d);pe=pe==q?xe:pe,Te=Te==q?xe:Te;var Oe=pe==xe,De=Te==xe,Ue=pe==Te;if(Ue&&ou(l)){if(!ou(d))return!1;ne=!0,Oe=!1}if(Ue&&!Oe)return K||(K=new oi),ne||Bd(l)?jp(l,d,_,M,j,K):zp(l,d,pe,_,M,j,K);if(!(_&A)){var rt=Oe&&It.call(l,"__wrapped__"),dt=De&&It.call(d,"__wrapped__");if(rt||dt){var Ot=rt?l.value():l,ht=dt?d.value():d;return K||(K=new oi),j(Ot,ht,_,M,K)}}return Ue?(K||(K=new oi),Rg(l,d,_,M,j,K)):!1}function yg(l){return Dn(l)&&pr(l)==ye}function sd(l,d,_,M){var j=_.length,K=j,ne=!M;if(l==null)return!K;for(l=Xt(l);j--;){var ue=_[j];if(ne&&ue[2]?ue[1]!==l[ue[0]]:!(ue[0]in l))return!1}for(;++j<K;){ue=_[j];var pe=ue[0],Te=l[pe],Oe=ue[1];if(ne&&ue[2]){if(Te===r&&!(pe in l))return!1}else{var De=new oi;if(M)var Ue=M(Te,Oe,pe,l,d,De);if(!(Ue===r?zs(Oe,Te,A|S,M,De):Ue))return!1}}return!0}function Cp(l){if(!Rn(l)||Pg(l))return!1;var d=Ys(l)?ig:bu;return d.test(Ja(l))}function bp(l){return Dn(l)&&vn(l)==ze}function Ju(l){return Dn(l)&&pr(l)==nt}function ld(l){return Dn(l)&&Qg(l.length)&&!!Kt[vn(l)]}function Ep(l){return typeof l=="function"?l:l==null?Bi:typeof l=="object"?_t(l)?Bl(l[0],l[1]):io(l):uE(l)}function ud(l){if(!fa(l))return ag(l);var d=[];for(var _ in Xt(l))It.call(l,_)&&_!="constructor"&&d.push(_);return d}function Vl(l){if(!Rn(l))return Mg(l);var d=fa(l),_=[];for(var M in l)M=="constructor"&&(d||!It.call(l,M))||_.push(M);return _}function cd(l,d){return l<d}function Gl(l,d){var _=-1,M=Vi(l)?we(l.length):[];return Ya(l,function(j,K,ne){M[++_]=d(j,K,ne)}),M}function io(l){var d=vc(l);return d.length==1&&d[0][2]?Ad(d[0][0],d[0][1]):function(_){return _===l||sd(_,l,d)}}function Bl(l,d){return Ke(l)&&_c(d)?Ad(co(l),d):function(_){var M=hw(_,l);return M===r&&M===d?pw(_,l):zs(d,M,A|S)}}function Qa(l,d,_,M,j){l!==d&&Qu(d,function(K,ne){if(j||(j=new oi),Rn(K))Hs(l,d,ne,_,Qa,M,j);else{var ue=M?M(Fo(l,ne),K,ne+"",l,d,j):r;ue===r&&(ue=K),Xu(l,ne,ue)}},Gi)}function Hs(l,d,_,M,j,K,ne){var ue=Fo(l,_),pe=Fo(d,_),Te=ne.get(pe);if(Te){Xu(l,_,Te);return}var Oe=K?K(ue,pe,_+"",l,d,ne):r,De=Oe===r;if(De){var Ue=_t(pe),rt=!Ue&&ou(pe),dt=!Ue&&!rt&&Bd(pe);Oe=pe,Ue||rt||dt?_t(ue)?Oe=ue:Wn(ue)?Oe=jr(ue):rt?(De=!1,Oe=lc(pe,!0)):dt?(De=!1,Oe=Rp(pe,!0)):Oe=[]:sm(pe)||Oc(pe)?(Oe=ue,Oc(ue)?Oe=Jb(ue):(!Rn(ue)||Ys(ue))&&(Oe=mr(pe))):De=!1}De&&(ne.set(pe,Oe),j(Oe,pe,M,K,ne),ne.delete(pe)),Xu(l,_,Oe)}function fd(l,d){var _=l.length;if(_)return d+=d<0?_:0,cn(d,_)?l[d]:r}function qs(l,d,_){d.length?d=sn(d,function(K){return _t(K)?function(ne){return sa(ne,K.length===1?K[0]:K)}:K}):d=[Bi];var M=-1;d=sn(d,Fr(lt()));var j=Gl(l,function(K,ne,ue){var pe=sn(d,function(Te){return Te(K)});return{criteria:pe,index:++M,value:K}});return L_(j,function(K,ne){return bg(K,ne,_)})}function _g(l,d){return dd(l,d,function(_,M){return pw(l,M)})}function dd(l,d,_){for(var M=-1,j=d.length,K={};++M<j;){var ne=d[M],ue=sa(l,ne);_(ue,ne)&&bn(K,ua(ne,l),ue)}return K}function gn(l){return function(d){return sa(d,l)}}function Kl(l,d,_,M){var j=M?D_:ja,K=-1,ne=d.length,ue=l;for(l===d&&(d=jr(d)),_&&(ue=sn(l,Fr(_)));++K<ne;)for(var pe=0,Te=d[K],Oe=_?_(Te):Te;(pe=j(ue,Oe,pe,M))>-1;)ue!==l&&Bf.call(ue,pe,1),Bf.call(l,pe,1);return l}function hd(l,d){for(var _=l?d.length:0,M=_-1;_--;){var j=d[_];if(_==M||j!==K){var K=j;cn(j)?Bf.call(l,j,1):ac(l,j)}}return l}function ec(l,d){return l+zu(Wu()*(d-l+1))}function pd(l,d,_,M){for(var j=-1,K=zn(Ua((d-l)/(_||1)),0),ne=we(K);K--;)ne[M?K:++j]=l,l+=_;return ne}function tc(l,d){var _="";if(!l||d<1||d>B)return _;do d%2&&(_+=l),d=zu(d/2),d&&(l+=l);while(d);return _}function gt(l,d){return yi(Rd(l,d,Bi),l+"")}function yn(l){return Xa(Kd(l))}function qn(l,d){var _=Kd(l);return kd(_,aa(d,0,_.length))}function bn(l,d,_,M){if(!Rn(l))return l;d=ua(d,l);for(var j=-1,K=d.length,ne=K-1,ue=l;ue!=null&&++j<K;){var pe=co(d[j]),Te=_;if(pe==="__proto__"||pe==="constructor"||pe==="prototype")return l;if(j!=ne){var Oe=ue[pe];Te=M?M(Oe,pe,ue):r,Te===r&&(Te=Rn(Oe)?Oe:cn(d[j+1])?[]:{})}dr(ue,pe,Te),ue=ue[pe]}return l}var nc=Yf?function(l,d){return Yf.set(l,d),l}:Bi,rc=ju?function(l,d){return ju(l,"toString",{configurable:!0,enumerable:!1,value:vw(d),writable:!0})}:Bi;function ic(l){return kd(Kd(l))}function zi(l,d,_){var M=-1,j=l.length;d<0&&(d=-d>j?0:j+d),_=_>j?j:_,_<0&&(_+=j),j=d>_?0:_-d>>>0,d>>>=0;for(var K=we(j);++M<j;)K[M]=l[M+d];return K}function Rr(l,d){var _;return Ya(l,function(M,j,K){return _=d(M,j,K),!_}),!!_}function Xl(l,d,_){var M=0,j=l==null?M:l.length;if(typeof d=="number"&&d===d&&j<=ce){for(;M<j;){var K=M+j>>>1,ne=l[K];ne!==null&&!po(ne)&&(_?ne<=d:ne<d)?M=K+1:j=K}return j}return oc(l,d,Bi,_)}function oc(l,d,_,M){var j=0,K=l==null?0:l.length;if(K===0)return 0;d=_(d);for(var ne=d!==d,ue=d===null,pe=po(d),Te=d===r;j<K;){var Oe=zu((j+K)/2),De=_(l[Oe]),Ue=De!==r,rt=De===null,dt=De===De,Ot=po(De);if(ne)var ht=M||dt;else Te?ht=dt&&(M||Ue):ue?ht=dt&&Ue&&(M||!rt):pe?ht=dt&&Ue&&!rt&&(M||!Ot):rt||Ot?ht=!1:ht=M?De<=d:De<d;ht?j=Oe+1:K=Oe}return Tr(K,le)}function md(l,d){for(var _=-1,M=l.length,j=0,K=[];++_<M;){var ne=l[_],ue=d?d(ne):ne;if(!_||!ha(ue,pe)){var pe=ue;K[j++]=ne===0?0:ne}}return K}function oo(l){return typeof l=="number"?l:po(l)?W:+l}function un(l){if(typeof l=="string")return l;if(_t(l))return sn(l,un)+"";if(po(l))return ug?ug.call(l):"";var d=l+"";return d=="0"&&1/l==-1/0?"-0":d}function Hi(l,d,_){var M=-1,j=zf,K=l.length,ne=!0,ue=[],pe=ue;if(_)ne=!1,j=Pu;else if(K>=a){var Te=d?null:Ag(l);if(Te)return Wf(Te);ne=!1,j=Du,pe=new ii}else pe=d?[]:ue;e:for(;++M<K;){var Oe=l[M],De=d?d(Oe):Oe;if(Oe=_||Oe!==0?Oe:0,ne&&De===De){for(var Ue=pe.length;Ue--;)if(pe[Ue]===De)continue e;d&&pe.push(De),ue.push(Oe)}else j(pe,De,_)||(pe!==ue&&pe.push(De),ue.push(Oe))}return ue}function ac(l,d){return d=ua(d,l),l=tr(l,d),l==null||delete l[co(qr(d))]}function vd(l,d,_,M){return bn(l,d,_(sa(l,d)),M)}function sc(l,d,_,M){for(var j=l.length,K=M?j:-1;(M?K--:++K<j)&&d(l[K],K,l););return _?zi(l,M?0:K,M?K+1:j):zi(l,M?K+1:0,M?j:K)}function xp(l,d){var _=l;return _ instanceof Et&&(_=_.value()),rp(d,function(M,j){return j.func.apply(j.thisArg,$a([M],j.args))},_)}function gd(l,d,_){var M=l.length;if(M<2)return M?Hi(l[0]):[];for(var j=-1,K=we(M);++j<M;)for(var ne=l[j],ue=-1;++ue<M;)ue!=j&&(K[j]=$s(K[j]||ne,l[ue],d,_));return Hi(Hn(K,1),d,_)}function Tp(l,d,_){for(var M=-1,j=l.length,K=d.length,ne={};++M<j;){var ue=M<K?d[M]:r;_(ne,l[M],ue)}return ne}function yd(l){return Wn(l)?l:[]}function _d(l){return typeof l=="function"?l:Bi}function ua(l,d){return _t(l)?l:Ke(l,d)?[l]:Gp(Qt(l))}var wg=gt;function qi(l,d,_){var M=l.length;return _=_===r?M:_,!d&&_>=M?l:zi(l,d,_)}var Op=on||function(l){return jn.clearTimeout(l)};function lc(l,d){if(d)return l.slice();var _=l.length,M=ra?ra(_):new l.constructor(_);return l.copy(M),M}function Yl(l){var d=new l.constructor(l.byteLength);return new Fu(d).set(new Fu(l)),d}function Sg(l,d){var _=d?Yl(l.buffer):l.buffer;return new l.constructor(_,l.byteOffset,l.byteLength)}function Ap(l){var d=new l.constructor(l.source,ro.exec(l));return d.lastIndex=l.lastIndex,d}function Cg(l){return Ls?Xt(Ls.call(l)):{}}function Rp(l,d){var _=d?Yl(l.buffer):l.buffer;return new l.constructor(_,l.byteOffset,l.length)}function kp(l,d){if(l!==d){var _=l!==r,M=l===null,j=l===l,K=po(l),ne=d!==r,ue=d===null,pe=d===d,Te=po(d);if(!ue&&!Te&&!K&&l>d||K&&ne&&pe&&!ue&&!Te||M&&ne&&pe||!_&&pe||!j)return 1;if(!M&&!K&&!Te&&l<d||Te&&_&&j&&!M&&!K||ue&&_&&j||!ne&&j||!pe)return-1}return 0}function bg(l,d,_){for(var M=-1,j=l.criteria,K=d.criteria,ne=j.length,ue=_.length;++M<ne;){var pe=kp(j[M],K[M]);if(pe){if(M>=ue)return pe;var Te=_[M];return pe*(Te=="desc"?-1:1)}}return l.index-d.index}function wd(l,d,_,M){for(var j=-1,K=l.length,ne=_.length,ue=-1,pe=d.length,Te=zn(K-ne,0),Oe=we(pe+Te),De=!M;++ue<pe;)Oe[ue]=d[ue];for(;++j<ne;)(De||j<K)&&(Oe[_[j]]=l[j]);for(;Te--;)Oe[ue++]=l[j++];return Oe}function Np(l,d,_,M){for(var j=-1,K=l.length,ne=-1,ue=_.length,pe=-1,Te=d.length,Oe=zn(K-ue,0),De=we(Oe+Te),Ue=!M;++j<Oe;)De[j]=l[j];for(var rt=j;++pe<Te;)De[rt+pe]=d[pe];for(;++ne<ue;)(Ue||j<K)&&(De[rt+_[ne]]=l[j++]);return De}function jr(l,d){var _=-1,M=l.length;for(d||(d=we(M));++_<M;)d[_]=l[_];return d}function ao(l,d,_,M){var j=!_;_||(_={});for(var K=-1,ne=d.length;++K<ne;){var ue=d[K],pe=M?M(_[ue],l[ue],ue,_,l):r;pe===r&&(pe=l[ue]),j?No(_,ue,pe):dr(_,ue,pe)}return _}function W_(l,d){return ao(l,so(l),d)}function Eg(l,d){return ao(l,kg(l),d)}function Sd(l,d){return function(_,M){var j=_t(_)?Nu:ln,K=d?d():{};return j(_,l,lt(M,2),K)}}function Ql(l){return gt(function(d,_){var M=-1,j=_.length,K=j>1?_[j-1]:r,ne=j>2?_[2]:r;for(K=l.length>3&&typeof K=="function"?(j--,K):r,ne&&Hr(_[0],_[1],ne)&&(K=j<3?r:K,j=1),d=Xt(d);++M<j;){var ue=_[M];ue&&l(d,ue,M,K)}return d})}function Pp(l,d){return function(_,M){if(_==null)return _;if(!Vi(_))return l(_,M);for(var j=_.length,K=d?j:-1,ne=Xt(_);(d?K--:++K<j)&&M(ne[K],K,ne)!==!1;);return _}}function Dp(l){return function(d,_,M){for(var j=-1,K=Xt(d),ne=M(d),ue=ne.length;ue--;){var pe=ne[l?ue:++j];if(_(K[pe],pe,K)===!1)break}return d}}function xg(l,d,_){var M=d&O,j=cc(l);function K(){var ne=this&&this!==jn&&this instanceof K?j:l;return ne.apply(M?_:this,arguments)}return K}function uc(l){return function(d){d=Qt(d);var _=kl(d)?vi(d):r,M=_?_[0]:d.charAt(0),j=_?qi(_,1).join(""):d.slice(1);return M[l]()+j}}function Zl(l){return function(d){return rp(sE(aE(d).replace(Fv,"")),l,"")}}function cc(l){return function(){var d=arguments;switch(d.length){case 0:return new l;case 1:return new l(d[0]);case 2:return new l(d[0],d[1]);case 3:return new l(d[0],d[1],d[2]);case 4:return new l(d[0],d[1],d[2],d[3]);case 5:return new l(d[0],d[1],d[2],d[3],d[4]);case 6:return new l(d[0],d[1],d[2],d[3],d[4],d[5]);case 7:return new l(d[0],d[1],d[2],d[3],d[4],d[5],d[6])}var _=Mi(l.prototype),M=l.apply(_,d);return Rn(M)?M:_}}function V_(l,d,_){var M=cc(l);function j(){for(var K=arguments.length,ne=we(K),ue=K,pe=ca(j);ue--;)ne[ue]=arguments[ue];var Te=K<3&&ne[0]!==pe&&ne[K-1]!==pe?[]:Di(ne,pe);if(K-=Te.length,K<_)return zr(l,d,Jl,j.placeholder,r,ne,Te,r,r,_-K);var Oe=this&&this!==jn&&this instanceof j?M:l;return Mr(Oe,this,ne)}return j}function Us(l){return function(d,_,M){var j=Xt(d);if(!Vi(d)){var K=lt(_,3);d=kr(d),_=function(ue){return K(j[ue],ue,j)}}var ne=l(d,_,M);return ne>-1?j[K?d[ne]:ne]:r}}function Cd(l){return Io(function(d){var _=d.length,M=_,j=fr.prototype.thru;for(l&&d.reverse();M--;){var K=d[M];if(typeof K!="function")throw new cr(c);if(j&&!ne&&eu(K)=="wrapper")var ne=new fr([],!0)}for(M=ne?M:_;++M<_;){K=d[M];var ue=eu(K),pe=ue=="wrapper"?xd(K):r;pe&&yc(pe[0])&&pe[1]==($|C|R|U)&&!pe[4].length&&pe[9]==1?ne=ne[eu(pe[0])].apply(ne,pe[3]):ne=K.length==1&&yc(K)?ne[ue]():ne.thru(K)}return function(){var Te=arguments,Oe=Te[0];if(ne&&Te.length==1&&_t(Oe))return ne.plant(Oe).value();for(var De=0,Ue=_?d[De].apply(this,Te):Oe;++De<_;)Ue=d[De].call(this,Ue);return Ue}})}function Jl(l,d,_,M,j,K,ne,ue,pe,Te){var Oe=d&$,De=d&O,Ue=d&k,rt=d&(C|w),dt=d&G,Ot=Ue?r:cc(l);function ht(){for(var Pt=arguments.length,jt=we(Pt),mo=Pt;mo--;)jt[mo]=arguments[mo];if(rt)var wi=ca(ht),vo=Xv(jt,wi);if(M&&(jt=wd(jt,M,j,rt)),K&&(jt=Np(jt,K,ne,rt)),Pt-=vo,rt&&Pt<Te){var Vn=Di(jt,wi);return zr(l,d,Jl,ht.placeholder,_,jt,Vn,ue,pe,Te-Pt)}var pa=De?_:this,Zs=Ue?pa[l]:l;return Pt=jt.length,ue?jt=lo(jt,ue):dt&&Pt>1&&jt.reverse(),Oe&&pe<Pt&&(jt.length=pe),this&&this!==jn&&this instanceof ht&&(Zs=Ot||cc(Zs)),Zs.apply(pa,jt)}return ht}function Tg(l,d){return function(_,M){return od(_,l,d(M),{})}}function fc(l,d){return function(_,M){var j;if(_===r&&M===r)return d;if(_!==r&&(j=_),M!==r){if(j===r)return M;typeof _=="string"||typeof M=="string"?(_=un(_),M=un(M)):(_=oo(_),M=oo(M)),j=l(_,M)}return j}}function bd(l){return Io(function(d){return d=sn(d,Fr(lt())),gt(function(_){var M=this;return l(d,function(j){return Mr(j,M,_)})})})}function dc(l,d){d=d===r?" ":un(d);var _=d.length;if(_<2)return _?tc(d,l):d;var M=tc(d,Ua(l/za(d)));return kl(d)?qi(vi(M),0,l).join(""):M.slice(0,l)}function Og(l,d,_,M){var j=d&O,K=cc(l);function ne(){for(var ue=-1,pe=arguments.length,Te=-1,Oe=M.length,De=we(Oe+pe),Ue=this&&this!==jn&&this instanceof ne?K:l;++Te<Oe;)De[Te]=M[Te];for(;pe--;)De[Te++]=arguments[++ue];return Mr(Ue,j?_:this,De)}return ne}function Lp(l){return function(d,_,M){return M&&typeof M!="number"&&Hr(d,_,M)&&(_=M=r),d=Qs(d),_===r?(_=d,d=0):_=Qs(_),M=M===r?d<_?1:-1:Qs(M),pd(d,_,M,l)}}function Ed(l){return function(d,_){return typeof d=="string"&&typeof _=="string"||(d=$o(d),_=$o(_)),l(d,_)}}function zr(l,d,_,M,j,K,ne,ue,pe,Te){var Oe=d&C,De=Oe?ne:r,Ue=Oe?r:ne,rt=Oe?K:r,dt=Oe?r:K;d|=Oe?R:I,d&=~(Oe?I:R),d&T||(d&=-4);var Ot=[l,d,j,rt,De,dt,Ue,ue,pe,Te],ht=_.apply(r,Ot);return yc(l)&&Wp(ht,Ot),ht.placeholder=M,Vp(ht,l,d)}function hr(l){var d=Nn[l];return function(_,M){if(_=$o(_),M=M==null?0:Tr(xt(M),292),M&&Uu(_)){var j=(Qt(_)+"e").split("e"),K=d(j[0]+"e"+(+j[1]+M));return j=(Qt(K)+"e").split("e"),+(j[0]+"e"+(+j[1]-M))}return d(_)}}var Ag=Fl&&1/Wf(new Fl([,-0]))[1]==z?function(l){return new Fl(l)}:_w;function Mp(l){return function(d){var _=pr(d);return _==ye?Uf(d):_==nt?Vf(d):M_(d,l(d))}}function Mo(l,d,_,M,j,K,ne,ue){var pe=d&k;if(!pe&&typeof l!="function")throw new cr(c);var Te=M?M.length:0;if(Te||(d&=-97,M=j=r),ne=ne===r?ne:zn(xt(ne),0),ue=ue===r?ue:xt(ue),Te-=j?j.length:0,d&I){var Oe=M,De=j;M=j=r}var Ue=pe?r:xd(l),rt=[l,d,_,M,j,Oe,De,K,ne,ue];if(Ue&&Lg(rt,Ue),l=rt[0],d=rt[1],_=rt[2],M=rt[3],j=rt[4],ue=rt[9]=rt[9]===r?pe?0:l.length:zn(rt[9]-Te,0),!ue&&d&(C|w)&&(d&=-25),!d||d==O)var dt=xg(l,d,_);else d==C||d==w?dt=V_(l,d,ue):(d==R||d==(O|R))&&!j.length?dt=Og(l,d,_,M):dt=Jl.apply(r,rt);var Ot=Ue?nc:Wp;return Vp(Ot(dt,rt),l,d)}function Ip(l,d,_,M){return l===r||ha(l,Ha[_])&&!It.call(M,_)?d:l}function Fp(l,d,_,M,j,K){return Rn(l)&&Rn(d)&&(K.set(d,l),Qa(l,d,r,Fp,K),K.delete(d)),l}function $p(l){return sm(l)?r:l}function jp(l,d,_,M,j,K){var ne=_&A,ue=l.length,pe=d.length;if(ue!=pe&&!(ne&&pe>ue))return!1;var Te=K.get(l),Oe=K.get(d);if(Te&&Oe)return Te==d&&Oe==l;var De=-1,Ue=!0,rt=_&S?new ii:r;for(K.set(l,d),K.set(d,l);++De<ue;){var dt=l[De],Ot=d[De];if(M)var ht=ne?M(Ot,dt,De,d,l,K):M(dt,Ot,De,l,d,K);if(ht!==r){if(ht)continue;Ue=!1;break}if(rt){if(!ip(d,function(Pt,jt){if(!Du(rt,jt)&&(dt===Pt||j(dt,Pt,_,M,K)))return rt.push(jt)})){Ue=!1;break}}else if(!(dt===Ot||j(dt,Ot,_,M,K))){Ue=!1;break}}return K.delete(l),K.delete(d),Ue}function zp(l,d,_,M,j,K,ne){switch(_){case Yr:if(l.byteLength!=d.byteLength||l.byteOffset!=d.byteOffset)return!1;l=l.buffer,d=d.buffer;case Yt:return!(l.byteLength!=d.byteLength||!K(new Fu(l),new Fu(d)));case be:case Ee:case Ce:return ha(+l,+d);case Me:return l.name==d.name&&l.message==d.message;case ze:case ct:return l==d+"";case ye:var ue=Uf;case nt:var pe=M&A;if(ue||(ue=Wf),l.size!=d.size&&!pe)return!1;var Te=ne.get(l);if(Te)return Te==d;M|=S,ne.set(l,d);var Oe=jp(ue(l),ue(d),M,j,K,ne);return ne.delete(l),Oe;case Ge:if(Ls)return Ls.call(l)==Ls.call(d)}return!1}function Rg(l,d,_,M,j,K){var ne=_&A,ue=hc(l),pe=ue.length,Te=hc(d),Oe=Te.length;if(pe!=Oe&&!ne)return!1;for(var De=pe;De--;){var Ue=ue[De];if(!(ne?Ue in d:It.call(d,Ue)))return!1}var rt=K.get(l),dt=K.get(d);if(rt&&dt)return rt==d&&dt==l;var Ot=!0;K.set(l,d),K.set(d,l);for(var ht=ne;++De<pe;){Ue=ue[De];var Pt=l[Ue],jt=d[Ue];if(M)var mo=ne?M(jt,Pt,Ue,d,l,K):M(Pt,jt,Ue,l,d,K);if(!(mo===r?Pt===jt||j(Pt,jt,_,M,K):mo)){Ot=!1;break}ht||(ht=Ue=="constructor")}if(Ot&&!ht){var wi=l.constructor,vo=d.constructor;wi!=vo&&"constructor"in l&&"constructor"in d&&!(typeof wi=="function"&&wi instanceof wi&&typeof vo=="function"&&vo instanceof vo)&&(Ot=!1)}return K.delete(l),K.delete(d),Ot}function Io(l){return yi(Rd(l,r,Pd),l+"")}function hc(l){return wp(l,kr,so)}function pc(l){return wp(l,Gi,kg)}var xd=Yf?function(l){return Yf.get(l)}:_w;function eu(l){for(var d=l.name+"",_=Wa[d],M=It.call(Wa,d)?_.length:0;M--;){var j=_[M],K=j.func;if(K==null||K==l)return j.name}return d}function ca(l){var d=It.call(V,"placeholder")?V:l;return d.placeholder}function lt(){var l=V.iteratee||gw;return l=l===gw?Ep:l,arguments.length?l(arguments[0],arguments[1]):l}function mc(l,d){var _=l.__data__;return tu(d)?_[typeof d=="string"?"string":"hash"]:_.map}function vc(l){for(var d=kr(l),_=d.length;_--;){var M=d[_],j=l[M];d[_]=[M,j,_c(j)]}return d}function Za(l,d){var _=I_(l,d);return Cp(_)?_:r}function Td(l){var d=It.call(l,qa),_=l[qa];try{l[qa]=r;var M=!0}catch{}var j=Ps.call(l);return M&&(d?l[qa]=_:delete l[qa]),j}var so=Hu?function(l){return l==null?[]:(l=Xt(l),Fa(Hu(l),function(d){return og.call(l,d)}))}:ww,kg=Hu?function(l){for(var d=[];l;)$a(d,so(l)),l=Ll(l);return d}:ww,pr=vn;(Vu&&pr(new Vu(new ArrayBuffer(1)))!=Yr||Ds&&pr(new Ds)!=ye||Gu&&pr(Gu.resolve())!=Fe||Fl&&pr(new Fl)!=nt||$l&&pr(new $l)!=Bt)&&(pr=function(l){var d=vn(l),_=d==xe?l.constructor:r,M=_?Ja(_):"";if(M)switch(M){case Va:return Yr;case lg:return ye;case jl:return Fe;case Ao:return nt;case Ku:return Bt}return d});function Hp(l,d,_){for(var M=-1,j=_.length;++M<j;){var K=_[M],ne=K.size;switch(K.type){case"drop":l+=ne;break;case"dropRight":d-=ne;break;case"take":d=Tr(d,l+ne);break;case"takeRight":l=zn(l,d-ne);break}}return{start:l,end:d}}function Ng(l){var d=l.match(Jo);return d?d[1].split(Zr):[]}function qp(l,d,_){d=ua(d,l);for(var M=-1,j=d.length,K=!1;++M<j;){var ne=co(d[M]);if(!(K=l!=null&&_(l,ne)))break;l=l[ne]}return K||++M!=j?K:(j=l==null?0:l.length,!!j&&Qg(j)&&cn(ne,j)&&(_t(l)||Oc(l)))}function gc(l){var d=l.length,_=new l.constructor(d);return d&&typeof l[0]=="string"&&It.call(l,"index")&&(_.index=l.index,_.input=l.input),_}function mr(l){return typeof l.constructor=="function"&&!fa(l)?Mi(Ll(l)):{}}function G_(l,d,_){var M=l.constructor;switch(d){case Yt:return Yl(l);case be:case Ee:return new M(+l);case Yr:return Sg(l,_);case lr:case Dr:case Xe:case it:case Mt:case Zn:case pn:case Qr:case br:return Rp(l,_);case ye:return new M;case Ce:case ct:return new M(l);case ze:return Ap(l);case nt:return new M;case Ge:return Cg(l)}}function B_(l,d){var _=d.length;if(!_)return l;var M=_-1;return d[M]=(_>1?"& ":"")+d[M],d=d.join(_>2?", ":" "),l.replace(er,`{
|
|
59
|
+
/* [wrapped with `+d+`] */
|
|
60
|
+
`)}function Od(l){return _t(l)||Oc(l)||!!(Ml&&l&&l[Ml])}function cn(l,d){var _=typeof l;return d=d??B,!!d&&(_=="number"||_!="symbol"&&Tf.test(l))&&l>-1&&l%1==0&&l<d}function Hr(l,d,_){if(!Rn(_))return!1;var M=typeof d;return(M=="number"?Vi(_)&&cn(d,_.length):M=="string"&&d in _)?ha(_[d],l):!1}function Ke(l,d){if(_t(l))return!1;var _=typeof l;return _=="number"||_=="symbol"||_=="boolean"||l==null||po(l)?!0:di.test(l)||!xr.test(l)||d!=null&&l in Xt(d)}function tu(l){var d=typeof l;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?l!=="__proto__":l===null}function yc(l){var d=eu(l),_=V[d];if(typeof _!="function"||!(d in Et.prototype))return!1;if(l===_)return!0;var M=xd(_);return!!M&&l===M[0]}function Pg(l){return!!hp&&hp in l}var K_=Mu?Ys:Sw;function fa(l){var d=l&&l.constructor,_=typeof d=="function"&&d.prototype||Ha;return l===_}function _c(l){return l===l&&!Rn(l)}function Ad(l,d){return function(_){return _==null?!1:_[l]===d&&(d!==r||l in Xt(_))}}function Dg(l){var d=ve(l,function(M){return _.size===v&&_.clear(),M}),_=d.cache;return d}function Lg(l,d){var _=l[1],M=d[1],j=_|M,K=j<(O|k|$),ne=M==$&&_==C||M==$&&_==U&&l[7].length<=d[8]||M==($|U)&&d[7].length<=d[8]&&_==C;if(!(K||ne))return l;M&O&&(l[2]=d[2],j|=_&O?0:T);var ue=d[3];if(ue){var pe=l[3];l[3]=pe?wd(pe,ue,d[4]):ue,l[4]=pe?Di(l[3],m):d[4]}return ue=d[5],ue&&(pe=l[5],l[5]=pe?Np(pe,ue,d[6]):ue,l[6]=pe?Di(l[5],m):d[6]),ue=d[7],ue&&(l[7]=ue),M&$&&(l[8]=l[8]==null?d[8]:Tr(l[8],d[8])),l[9]==null&&(l[9]=d[9]),l[0]=d[0],l[1]=j,l}function Mg(l){var d=[];if(l!=null)for(var _ in Xt(l))d.push(_);return d}function Up(l){return Ps.call(l)}function Rd(l,d,_){return d=zn(d===r?l.length-1:d,0),function(){for(var M=arguments,j=-1,K=zn(M.length-d,0),ne=we(K);++j<K;)ne[j]=M[d+j];j=-1;for(var ue=we(d+1);++j<d;)ue[j]=M[j];return ue[d]=_(ne),Mr(l,this,ue)}}function tr(l,d){return d.length<2?l:sa(l,zi(d,0,-1))}function lo(l,d){for(var _=l.length,M=Tr(d.length,_),j=jr(l);M--;){var K=d[M];l[M]=cn(K,_)?j[K]:r}return l}function Fo(l,d){if(!(d==="constructor"&&typeof l[d]=="function")&&d!="__proto__")return l[d]}var Wp=uo(nc),nu=Kf||function(l,d){return jn.setTimeout(l,d)},yi=uo(rc);function Vp(l,d,_){var M=d+"";return yi(l,B_(M,Ig(Ng(M),_)))}function uo(l){var d=0,_=0;return function(){var M=sg(),j=ae-(M-_);if(_=M,j>0){if(++d>=ee)return arguments[0]}else d=0;return l.apply(r,arguments)}}function kd(l,d){var _=-1,M=l.length,j=M-1;for(d=d===r?M:d;++_<d;){var K=ec(_,j),ne=l[K];l[K]=l[_],l[_]=ne}return l.length=d,l}var Gp=Dg(function(l){var d=[];return l.charCodeAt(0)===46&&d.push(""),l.replace(Ra,function(_,M,j,K){d.push(j?K.replace(Jr,"$1"):M||_)}),d});function co(l){if(typeof l=="string"||po(l))return l;var d=l+"";return d=="0"&&1/l==-1/0?"-0":d}function Ja(l){if(l!=null){try{return Ns.call(l)}catch{}try{return l+""}catch{}}return""}function Ig(l,d){return Ir(oe,function(_){var M="_."+_[0];d&_[1]&&!zf(l,M)&&l.push(M)}),l.sort()}function Fg(l){if(l instanceof Et)return l.clone();var d=new fr(l.__wrapped__,l.__chain__);return d.__actions__=jr(l.__actions__),d.__index__=l.__index__,d.__values__=l.__values__,d}function Nd(l,d,_){(_?Hr(l,d,_):d===r)?d=1:d=zn(xt(d),0);var M=l==null?0:l.length;if(!M||d<1)return[];for(var j=0,K=0,ne=we(Ua(M/d));j<M;)ne[K++]=zi(l,j,j+=d);return ne}function Bp(l){for(var d=-1,_=l==null?0:l.length,M=0,j=[];++d<_;){var K=l[d];K&&(j[M++]=K)}return j}function Ui(){var l=arguments.length;if(!l)return[];for(var d=we(l-1),_=arguments[0],M=l;M--;)d[M-1]=arguments[M];return $a(_t(_)?jr(_):[_],Hn(d,1))}var $t=gt(function(l,d){return Wn(l)?$s(l,Hn(d,1,Wn,!0)):[]}),nr=gt(function(l,d){var _=qr(d);return Wn(_)&&(_=r),Wn(l)?$s(l,Hn(d,1,Wn,!0),lt(_,2)):[]}),Pn=gt(function(l,d){var _=qr(d);return Wn(_)&&(_=r),Wn(l)?$s(l,Hn(d,1,Wn,!0),r,_):[]});function vr(l,d,_){var M=l==null?0:l.length;return M?(d=_||d===r?1:xt(d),zi(l,d<0?0:d,M)):[]}function _i(l,d,_){var M=l==null?0:l.length;return M?(d=_||d===r?1:xt(d),d=M-d,zi(l,0,d<0?0:d)):[]}function ru(l,d){return l&&l.length?sc(l,lt(d,3),!0,!0):[]}function Un(l,d){return l&&l.length?sc(l,lt(d,3),!0):[]}function wc(l,d,_,M){var j=l==null?0:l.length;return j?(_&&typeof _!="number"&&Hr(l,d,_)&&(_=0,M=j),Ul(l,d,_,M)):[]}function es(l,d,_){var M=l==null?0:l.length;if(!M)return-1;var j=_==null?0:xt(_);return j<0&&(j=zn(M+j,0)),Hf(l,lt(d,3),j)}function Sc(l,d,_){var M=l==null?0:l.length;if(!M)return-1;var j=M-1;return _!==r&&(j=xt(_),j=_<0?zn(M+j,0):Tr(j,M-1)),Hf(l,lt(d,3),j,!0)}function Pd(l){var d=l==null?0:l.length;return d?Hn(l,1):[]}function Cc(l){var d=l==null?0:l.length;return d?Hn(l,z):[]}function si(l,d){var _=l==null?0:l.length;return _?(d=d===r?1:xt(d),Hn(l,d)):[]}function Kp(l){for(var d=-1,_=l==null?0:l.length,M={};++d<_;){var j=l[d];M[j[0]]=j[1]}return M}function Ws(l){return l&&l.length?l[0]:r}function da(l,d,_){var M=l==null?0:l.length;if(!M)return-1;var j=_==null?0:xt(_);return j<0&&(j=zn(M+j,0)),ja(l,d,j)}function Dd(l){var d=l==null?0:l.length;return d?zi(l,0,-1):[]}var Xp=gt(function(l){var d=sn(l,yd);return d.length&&d[0]===l[0]?Lo(d):[]}),ts=gt(function(l){var d=qr(l),_=sn(l,yd);return d===qr(_)?d=r:_.pop(),_.length&&_[0]===l[0]?Lo(_,lt(d,2)):[]}),Ld=gt(function(l){var d=qr(l),_=sn(l,yd);return d=typeof d=="function"?d:r,d&&_.pop(),_.length&&_[0]===l[0]?Lo(_,r,d):[]});function ns(l,d){return l==null?"":Il.call(l,d)}function qr(l){var d=l==null?0:l.length;return d?l[d-1]:r}function bc(l,d,_){var M=l==null?0:l.length;if(!M)return-1;var j=M;return _!==r&&(j=xt(_),j=j<0?zn(M+j,0):Tr(j,M-1)),d===d?Jv(l,d,j):Hf(l,Vv,j,!0)}function Yp(l,d){return l&&l.length?fd(l,xt(d)):r}var Md=gt(Ec);function Ec(l,d){return l&&l.length&&d&&d.length?Kl(l,d):l}function Ur(l,d,_){return l&&l.length&&d&&d.length?Kl(l,d,lt(_,2)):l}function rs(l,d,_){return l&&l.length&&d&&d.length?Kl(l,d,r,_):l}var fo=Io(function(l,d){var _=l==null?0:l.length,M=Yu(l,d);return hd(l,sn(d,function(j){return cn(j,_)?+j:j}).sort(kp)),M});function li(l,d){var _=[];if(!(l&&l.length))return _;var M=-1,j=[],K=l.length;for(d=lt(d,3);++M<K;){var ne=l[M];d(ne,M,l)&&(_.push(ne),j.push(M))}return hd(l,j),_}function Id(l){return l==null?l:mp.call(l)}function Qp(l,d,_){var M=l==null?0:l.length;return M?(_&&typeof _!="number"&&Hr(l,d,_)?(d=0,_=M):(d=d==null?0:xt(d),_=_===r?M:xt(_)),zi(l,d,_)):[]}function Zp(l,d){return Xl(l,d)}function X_(l,d,_){return oc(l,d,lt(_,2))}function is(l,d){var _=l==null?0:l.length;if(_){var M=Xl(l,d);if(M<_&&ha(l[M],d))return M}return-1}function $g(l,d){return Xl(l,d,!0)}function Jp(l,d,_){return oc(l,d,lt(_,2),!0)}function Vs(l,d){var _=l==null?0:l.length;if(_){var M=Xl(l,d,!0)-1;if(ha(l[M],d))return M}return-1}function em(l){return l&&l.length?md(l):[]}function Gs(l,d){return l&&l.length?md(l,lt(d,2)):[]}function jg(l){var d=l==null?0:l.length;return d?zi(l,1,d):[]}function zg(l,d,_){return l&&l.length?(d=_||d===r?1:xt(d),zi(l,0,d<0?0:d)):[]}function tm(l,d,_){var M=l==null?0:l.length;return M?(d=_||d===r?1:xt(d),d=M-d,zi(l,d<0?0:d,M)):[]}function Fd(l,d){return l&&l.length?sc(l,lt(d,3),!1,!0):[]}function Y_(l,d){return l&&l.length?sc(l,lt(d,3)):[]}var Q_=gt(function(l){return Hi(Hn(l,1,Wn,!0))}),Hg=gt(function(l){var d=qr(l);return Wn(d)&&(d=r),Hi(Hn(l,1,Wn,!0),lt(d,2))}),qg=gt(function(l){var d=qr(l);return d=typeof d=="function"?d:r,Hi(Hn(l,1,Wn,!0),r,d)});function Bs(l){return l&&l.length?Hi(l):[]}function Z_(l,d){return l&&l.length?Hi(l,lt(d,2)):[]}function iu(l,d){return d=typeof d=="function"?d:r,l&&l.length?Hi(l,r,d):[]}function $d(l){if(!(l&&l.length))return[];var d=0;return l=Fa(l,function(_){if(Wn(_))return d=zn(_.length,d),!0}),sp(d,function(_){return sn(l,qf(_))})}function _n(l,d){if(!(l&&l.length))return[];var _=$d(l);return d==null?_:sn(_,function(M){return Mr(d,r,M)})}var J_=gt(function(l,d){return Wn(l)?$s(l,d):[]}),Ug=gt(function(l){return gd(Fa(l,Wn))}),ew=gt(function(l){var d=qr(l);return Wn(d)&&(d=r),gd(Fa(l,Wn),lt(d,2))}),tw=gt(function(l){var d=qr(l);return d=typeof d=="function"?d:r,gd(Fa(l,Wn),r,d)}),Wg=gt($d);function Vg(l,d){return Tp(l||[],d||[],dr)}function nw(l,d){return Tp(l||[],d||[],bn)}var Wi=gt(function(l){var d=l.length,_=d>1?l[d-1]:r;return _=typeof _=="function"?(l.pop(),_):r,_n(l,_)});function jd(l){var d=V(l);return d.__chain__=!0,d}function rw(l,d){return d(l),l}function ho(l,d){return d(l)}var zd=Io(function(l){var d=l.length,_=d?l[0]:0,M=this.__wrapped__,j=function(K){return Yu(K,l)};return d>1||this.__actions__.length||!(M instanceof Et)||!cn(_)?this.thru(j):(M=M.slice(_,+_+(d?1:0)),M.__actions__.push({func:ho,args:[j],thisArg:r}),new fr(M,this.__chain__).thru(function(K){return d&&!K.length&&K.push(r),K}))});function Ks(){return jd(this)}function Hd(){return new fr(this.value(),this.__chain__)}function nm(){this.__values__===r&&(this.__values__=Qb(this.value()));var l=this.__index__>=this.__values__.length,d=l?r:this.__values__[this.__index__++];return{done:l,value:d}}function rm(){return this}function iw(l){for(var d,_=this;_ instanceof Ga;){var M=Fg(_);M.__index__=0,M.__values__=r,d?j.__wrapped__=M:d=M;var j=M;_=_.__wrapped__}return j.__wrapped__=l,d}function im(){var l=this.__wrapped__;if(l instanceof Et){var d=l;return this.__actions__.length&&(d=new Et(this)),d=d.reverse(),d.__actions__.push({func:ho,args:[Id],thisArg:r}),new fr(d,this.__chain__)}return this.thru(Id)}function ow(){return xp(this.__wrapped__,this.__actions__)}var Gg=Sd(function(l,d,_){It.call(l,_)?++l[_]:No(l,_,1)});function Bg(l,d,_){var M=_t(l)?qv:nd;return _&&Hr(l,d,_)&&(d=r),M(l,lt(d,3))}function qd(l,d){var _=_t(l)?Fa:rd;return _(l,lt(d,3))}var Ud=Us(es),Kg=Us(Sc);function om(l,d){return Hn(Xs(l,d),1)}function aw(l,d){return Hn(Xs(l,d),z)}function Xg(l,d,_){return _=_===r?1:xt(_),Hn(Xs(l,d),_)}function Wd(l,d){var _=_t(l)?Ir:Ya;return _(l,lt(d,3))}function xc(l,d){var _=_t(l)?Hv:ji;return _(l,lt(d,3))}var am=Sd(function(l,d,_){It.call(l,_)?l[_].push(d):No(l,_,[d])});function Vd(l,d,_,M){l=Vi(l)?l:Kd(l),_=_&&!M?xt(_):0;var j=l.length;return _<0&&(_=zn(j+_,0)),Zg(l)?_<=j&&l.indexOf(d,_)>-1:!!j&&ja(l,d,_)>-1}var Yg=gt(function(l,d,_){var M=-1,j=typeof d=="function",K=Vi(l)?we(l.length):[];return Ya(l,function(ne){K[++M]=j?Mr(d,ne,_):Wl(ne,d,_)}),K}),sw=Sd(function(l,d,_){No(l,_,d)});function Xs(l,d){var _=_t(l)?sn:Gl;return _(l,lt(d,3))}function lw(l,d,_,M){return l==null?[]:(_t(d)||(d=d==null?[]:[d]),_=M?r:_,_t(_)||(_=_==null?[]:[_]),qs(l,d,_))}var Tc=Sd(function(l,d,_){l[_?0:1].push(d)},function(){return[[],[]]});function uw(l,d,_){var M=_t(l)?rp:Bv,j=arguments.length<3;return M(l,lt(d,4),_,j,Ya)}function Gd(l,d,_){var M=_t(l)?k_:Bv,j=arguments.length<3;return M(l,lt(d,4),_,j,ji)}function o(l,d){var _=_t(l)?Fa:rd;return _(l,$e(lt(d,3)))}function s(l){var d=_t(l)?Xa:yn;return d(l)}function h(l,d,_){(_?Hr(l,d,_):d===r)?d=1:d=xt(d);var M=_t(l)?hg:qn;return M(l,d)}function g(l){var d=_t(l)?yp:ic;return d(l)}function x(l){if(l==null)return 0;if(Vi(l))return Zg(l)?za(l):l.length;var d=pr(l);return d==ye||d==nt?l.size:ud(l).length}function L(l,d,_){var M=_t(l)?ip:Rr;return _&&Hr(l,d,_)&&(d=r),M(l,lt(d,3))}var H=gt(function(l,d){if(l==null)return[];var _=d.length;return _>1&&Hr(l,d[0],d[1])?d=[]:_>2&&Hr(d[0],d[1],d[2])&&(d=[d[0]]),qs(l,Hn(d,1),[])}),te=pp||function(){return jn.Date.now()};function se(l,d){if(typeof d!="function")throw new cr(c);return l=xt(l),function(){if(--l<1)return d.apply(this,arguments)}}function _e(l,d,_){return d=_?r:d,d=l&&d==null?l.length:d,Mo(l,$,r,r,r,r,d)}function Pe(l,d){var _;if(typeof d!="function")throw new cr(c);return l=xt(l),function(){return--l>0&&(_=d.apply(this,arguments)),l<=1&&(d=r),_}}var Ie=gt(function(l,d,_){var M=O;if(_.length){var j=Di(_,ca(Ie));M|=R}return Mo(l,M,d,_,j)}),Ne=gt(function(l,d,_){var M=O|k;if(_.length){var j=Di(_,ca(Ne));M|=R}return Mo(d,M,l,_,j)});function We(l,d,_){d=_?r:d;var M=Mo(l,C,r,r,r,r,r,d);return M.placeholder=We.placeholder,M}function Ye(l,d,_){d=_?r:d;var M=Mo(l,w,r,r,r,r,r,d);return M.placeholder=Ye.placeholder,M}function Qe(l,d,_){var M,j,K,ne,ue,pe,Te=0,Oe=!1,De=!1,Ue=!0;if(typeof l!="function")throw new cr(c);d=$o(d)||0,Rn(_)&&(Oe=!!_.leading,De="maxWait"in _,K=De?zn($o(_.maxWait)||0,d):K,Ue="trailing"in _?!!_.trailing:Ue);function rt(Vn){var pa=M,Zs=j;return M=j=r,Te=Vn,ne=l.apply(Zs,pa),ne}function dt(Vn){return Te=Vn,ue=nu(Pt,d),Oe?rt(Vn):ne}function Ot(Vn){var pa=Vn-pe,Zs=Vn-Te,cE=d-pa;return De?Tr(cE,K-Zs):cE}function ht(Vn){var pa=Vn-pe,Zs=Vn-Te;return pe===r||pa>=d||pa<0||De&&Zs>=K}function Pt(){var Vn=te();if(ht(Vn))return jt(Vn);ue=nu(Pt,Ot(Vn))}function jt(Vn){return ue=r,Ue&&M?rt(Vn):(M=j=r,ne)}function mo(){ue!==r&&Op(ue),Te=0,M=pe=j=ue=r}function wi(){return ue===r?ne:jt(te())}function vo(){var Vn=te(),pa=ht(Vn);if(M=arguments,j=this,pe=Vn,pa){if(ue===r)return dt(pe);if(De)return Op(ue),ue=nu(Pt,d),rt(pe)}return ue===r&&(ue=nu(Pt,d)),ne}return vo.cancel=mo,vo.flush=wi,vo}var An=gt(function(l,d){return Fs(l,1,d)}),me=gt(function(l,d,_){return Fs(l,$o(d)||0,_)});function fe(l){return Mo(l,G)}function ve(l,d){if(typeof l!="function"||d!=null&&typeof d!="function")throw new cr(c);var _=function(){var M=arguments,j=d?d.apply(this,M):M[0],K=_.cache;if(K.has(j))return K.get(j);var ne=l.apply(this,M);return _.cache=K.set(j,ne)||K,ne};return _.cache=new(ve.Cache||Ro),_}ve.Cache=Ro;function $e(l){if(typeof l!="function")throw new cr(c);return function(){var d=arguments;switch(d.length){case 0:return!l.call(this);case 1:return!l.call(this,d[0]);case 2:return!l.call(this,d[0],d[1]);case 3:return!l.call(this,d[0],d[1],d[2])}return!l.apply(this,d)}}function tt(l){return Pe(2,l)}var st=wg(function(l,d){d=d.length==1&&_t(d[0])?sn(d[0],Fr(lt())):sn(Hn(d,1),Fr(lt()));var _=d.length;return gt(function(M){for(var j=-1,K=Tr(M.length,_);++j<K;)M[j]=d[j].call(this,M[j]);return Mr(l,this,M)})}),ot=gt(function(l,d){var _=Di(d,ca(ot));return Mo(l,R,r,d,_)}),ft=gt(function(l,d){var _=Di(d,ca(ft));return Mo(l,I,r,d,_)}),rr=Io(function(l,d){return Mo(l,U,r,r,r,d)});function qt(l,d){if(typeof l!="function")throw new cr(c);return d=d===r?d:xt(d),gt(l,d)}function os(l,d){if(typeof l!="function")throw new cr(c);return d=d==null?0:zn(xt(d),0),gt(function(_){var M=_[d],j=qi(_,0,d);return M&&$a(j,M),Mr(l,this,j)})}function cw(l,d,_){var M=!0,j=!0;if(typeof l!="function")throw new cr(c);return Rn(_)&&(M="leading"in _?!!_.leading:M,j="trailing"in _?!!_.trailing:j),Qe(l,d,{leading:M,maxWait:d,trailing:j})}function sP(l){return _e(l,1)}function lP(l,d){return ot(_d(d),l)}function uP(){if(!arguments.length)return[];var l=arguments[0];return _t(l)?l:[l]}function cP(l){return gi(l,E)}function fP(l,d){return d=typeof d=="function"?d:r,gi(l,E,d)}function dP(l){return gi(l,y|E)}function hP(l,d){return d=typeof d=="function"?d:r,gi(l,y|E,d)}function pP(l,d){return d==null||_p(l,d,kr(d))}function ha(l,d){return l===d||l!==l&&d!==d}var mP=Ed(Do),vP=Ed(function(l,d){return l>=d}),Oc=Zu(function(){return arguments}())?Zu:function(l){return Dn(l)&&It.call(l,"callee")&&!og.call(l,"callee")},_t=we.isArray,gP=ei?Fr(ei):vg;function Vi(l){return l!=null&&Qg(l.length)&&!Ys(l)}function Wn(l){return Dn(l)&&Vi(l)}function yP(l){return l===!0||l===!1||Dn(l)&&vn(l)==be}var ou=qu||Sw,_P=Rs?Fr(Rs):gg;function wP(l){return Dn(l)&&l.nodeType===1&&!sm(l)}function SP(l){if(l==null)return!0;if(Vi(l)&&(_t(l)||typeof l=="string"||typeof l.splice=="function"||ou(l)||Bd(l)||Oc(l)))return!l.length;var d=pr(l);if(d==ye||d==nt)return!l.size;if(fa(l))return!ud(l).length;for(var _ in l)if(It.call(l,_))return!1;return!0}function CP(l,d){return zs(l,d)}function bP(l,d,_){_=typeof _=="function"?_:r;var M=_?_(l,d):r;return M===r?zs(l,d,r,_):!!M}function fw(l){if(!Dn(l))return!1;var d=vn(l);return d==Me||d==Re||typeof l.message=="string"&&typeof l.name=="string"&&!sm(l)}function EP(l){return typeof l=="number"&&Uu(l)}function Ys(l){if(!Rn(l))return!1;var d=vn(l);return d==qe||d==Je||d==J||d==Ae}function Bb(l){return typeof l=="number"&&l==xt(l)}function Qg(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=B}function Rn(l){var d=typeof l;return l!=null&&(d=="object"||d=="function")}function Dn(l){return l!=null&&typeof l=="object"}var Kb=$f?Fr($f):yg;function xP(l,d){return l===d||sd(l,d,vc(d))}function TP(l,d,_){return _=typeof _=="function"?_:r,sd(l,d,vc(d),_)}function OP(l){return Xb(l)&&l!=+l}function AP(l){if(K_(l))throw new vt(u);return Cp(l)}function RP(l){return l===null}function kP(l){return l==null}function Xb(l){return typeof l=="number"||Dn(l)&&vn(l)==Ce}function sm(l){if(!Dn(l)||vn(l)!=xe)return!1;var d=Ll(l);if(d===null)return!0;var _=It.call(d,"constructor")&&d.constructor;return typeof _=="function"&&_ instanceof _&&Ns.call(_)==ng}var dw=Al?Fr(Al):bp;function NP(l){return Bb(l)&&l>=-9007199254740991&&l<=B}var Yb=zv?Fr(zv):Ju;function Zg(l){return typeof l=="string"||!_t(l)&&Dn(l)&&vn(l)==ct}function po(l){return typeof l=="symbol"||Dn(l)&&vn(l)==Ge}var Bd=jf?Fr(jf):ld;function PP(l){return l===r}function DP(l){return Dn(l)&&pr(l)==Bt}function LP(l){return Dn(l)&&vn(l)==$n}var MP=Ed(cd),IP=Ed(function(l,d){return l<=d});function Qb(l){if(!l)return[];if(Vi(l))return Zg(l)?vi(l):jr(l);if($u&&l[$u])return Zv(l[$u]());var d=pr(l),_=d==ye?Uf:d==nt?Wf:Kd;return _(l)}function Qs(l){if(!l)return l===0?l:0;if(l=$o(l),l===z||l===-1/0){var d=l<0?-1:1;return d*F}return l===l?l:0}function xt(l){var d=Qs(l),_=d%1;return d===d?_?d-_:d:0}function Zb(l){return l?aa(xt(l),0,X):0}function $o(l){if(typeof l=="number")return l;if(po(l))return W;if(Rn(l)){var d=typeof l.valueOf=="function"?l.valueOf():l;l=Rn(d)?d+"":d}if(typeof l!="string")return l===0?l:+l;l=Kv(l);var _=xs.test(l);return _||xf.test(l)?tp(l.slice(2),_?2:8):Ef.test(l)?W:+l}function Jb(l){return ao(l,Gi(l))}function FP(l){return l?aa(xt(l),-9007199254740991,B):l===0?l:0}function Qt(l){return l==null?"":un(l)}var $P=Ql(function(l,d){if(fa(d)||Vi(d)){ao(d,kr(d),l);return}for(var _ in d)It.call(d,_)&&dr(l,_,d[_])}),eE=Ql(function(l,d){ao(d,Gi(d),l)}),Jg=Ql(function(l,d,_,M){ao(d,Gi(d),l,M)}),jP=Ql(function(l,d,_,M){ao(d,kr(d),l,M)}),zP=Io(Yu);function HP(l,d){var _=Mi(l);return d==null?_:$i(_,d)}var qP=gt(function(l,d){l=Xt(l);var _=-1,M=d.length,j=M>2?d[2]:r;for(j&&Hr(d[0],d[1],j)&&(M=1);++_<M;)for(var K=d[_],ne=Gi(K),ue=-1,pe=ne.length;++ue<pe;){var Te=ne[ue],Oe=l[Te];(Oe===r||ha(Oe,Ha[Te])&&!It.call(l,Te))&&(l[Te]=K[Te])}return l}),UP=gt(function(l){return l.push(r,Fp),Mr(tE,r,l)});function WP(l,d){return Wv(l,lt(d,3),$r)}function VP(l,d){return Wv(l,lt(d,3),ai)}function GP(l,d){return l==null?l:Qu(l,lt(d,3),Gi)}function BP(l,d){return l==null?l:id(l,lt(d,3),Gi)}function KP(l,d){return l&&$r(l,lt(d,3))}function XP(l,d){return l&&ai(l,lt(d,3))}function YP(l){return l==null?[]:Po(l,kr(l))}function QP(l){return l==null?[]:Po(l,Gi(l))}function hw(l,d,_){var M=l==null?r:sa(l,d);return M===r?_:M}function ZP(l,d){return l!=null&&qp(l,d,Sp)}function pw(l,d){return l!=null&&qp(l,d,mg)}var JP=Tg(function(l,d,_){d!=null&&typeof d.toString!="function"&&(d=Ps.call(d)),l[d]=_},vw(Bi)),eD=Tg(function(l,d,_){d!=null&&typeof d.toString!="function"&&(d=Ps.call(d)),It.call(l,d)?l[d].push(_):l[d]=[_]},lt),tD=gt(Wl);function kr(l){return Vi(l)?ko(l):ud(l)}function Gi(l){return Vi(l)?ko(l,!0):Vl(l)}function nD(l,d){var _={};return d=lt(d,3),$r(l,function(M,j,K){No(_,d(M,j,K),M)}),_}function rD(l,d){var _={};return d=lt(d,3),$r(l,function(M,j,K){No(_,j,d(M,j,K))}),_}var iD=Ql(function(l,d,_){Qa(l,d,_)}),tE=Ql(function(l,d,_,M){Qa(l,d,_,M)}),oD=Io(function(l,d){var _={};if(l==null)return _;var M=!1;d=sn(d,function(K){return K=ua(K,l),M||(M=K.length>1),K}),ao(l,pc(l),_),M&&(_=gi(_,y|b|E,$p));for(var j=d.length;j--;)ac(_,d[j]);return _});function aD(l,d){return nE(l,$e(lt(d)))}var sD=Io(function(l,d){return l==null?{}:_g(l,d)});function nE(l,d){if(l==null)return{};var _=sn(pc(l),function(M){return[M]});return d=lt(d),dd(l,_,function(M,j){return d(M,j[0])})}function lD(l,d,_){d=ua(d,l);var M=-1,j=d.length;for(j||(j=1,l=r);++M<j;){var K=l==null?r:l[co(d[M])];K===r&&(M=j,K=_),l=Ys(K)?K.call(l):K}return l}function uD(l,d,_){return l==null?l:bn(l,d,_)}function cD(l,d,_,M){return M=typeof M=="function"?M:r,l==null?l:bn(l,d,_,M)}var rE=Mp(kr),iE=Mp(Gi);function fD(l,d,_){var M=_t(l),j=M||ou(l)||Bd(l);if(d=lt(d,4),_==null){var K=l&&l.constructor;j?_=M?new K:[]:Rn(l)?_=Ys(K)?Mi(Ll(l)):{}:_={}}return(j?Ir:$r)(l,function(ne,ue,pe){return d(_,ne,ue,pe)}),_}function dD(l,d){return l==null?!0:ac(l,d)}function hD(l,d,_){return l==null?l:vd(l,d,_d(_))}function pD(l,d,_,M){return M=typeof M=="function"?M:r,l==null?l:vd(l,d,_d(_),M)}function Kd(l){return l==null?[]:ks(l,kr(l))}function mD(l){return l==null?[]:ks(l,Gi(l))}function vD(l,d,_){return _===r&&(_=d,d=r),_!==r&&(_=$o(_),_=_===_?_:0),d!==r&&(d=$o(d),d=d===d?d:0),aa($o(l),d,_)}function gD(l,d,_){return d=Qs(d),_===r?(_=d,d=0):_=Qs(_),l=$o(l),la(l,d,_)}function yD(l,d,_){if(_&&typeof _!="boolean"&&Hr(l,d,_)&&(d=_=r),_===r&&(typeof d=="boolean"?(_=d,d=r):typeof l=="boolean"&&(_=l,l=r)),l===r&&d===r?(l=0,d=1):(l=Qs(l),d===r?(d=l,l=0):d=Qs(d)),l>d){var M=l;l=d,d=M}if(_||l%1||d%1){var j=Wu();return Tr(l+j*(d-l+Ff("1e-"+((j+"").length-1))),d)}return ec(l,d)}var _D=Zl(function(l,d,_){return d=d.toLowerCase(),l+(_?oE(d):d)});function oE(l){return mw(Qt(l).toLowerCase())}function aE(l){return l=Qt(l),l&&l.replace(Kh,Yv).replace(Au,"")}function wD(l,d,_){l=Qt(l),d=un(d);var M=l.length;_=_===r?M:aa(xt(_),0,M);var j=_;return _-=d.length,_>=0&&l.slice(_,j)==d}function SD(l){return l=Qt(l),l&&Cl.test(l)?l.replace(en,Qv):l}function CD(l){return l=Qt(l),l&&Es.test(l)?l.replace(hi,"\\$&"):l}var bD=Zl(function(l,d,_){return l+(_?"-":"")+d.toLowerCase()}),ED=Zl(function(l,d,_){return l+(_?" ":"")+d.toLowerCase()}),xD=uc("toLowerCase");function TD(l,d,_){l=Qt(l),d=xt(d);var M=d?za(l):0;if(!d||M>=d)return l;var j=(d-M)/2;return dc(zu(j),_)+l+dc(Ua(j),_)}function OD(l,d,_){l=Qt(l),d=xt(d);var M=d?za(l):0;return d&&M<d?l+dc(d-M,_):l}function AD(l,d,_){l=Qt(l),d=xt(d);var M=d?za(l):0;return d&&M<d?dc(d-M,_)+l:l}function RD(l,d,_){return _||d==null?d=0:d&&(d=+d),Xf(Qt(l).replace(Ri,""),d||0)}function kD(l,d,_){return(_?Hr(l,d,_):d===r)?d=1:d=xt(d),tc(Qt(l),d)}function ND(){var l=arguments,d=Qt(l[0]);return l.length<3?d:d.replace(l[1],l[2])}var PD=Zl(function(l,d,_){return l+(_?"_":"")+d.toLowerCase()});function DD(l,d,_){return _&&typeof _!="number"&&Hr(l,d,_)&&(d=_=r),_=_===r?X:_>>>0,_?(l=Qt(l),l&&(typeof d=="string"||d!=null&&!dw(d))&&(d=un(d),!d&&kl(l))?qi(vi(l),0,_):l.split(d,_)):[]}var LD=Zl(function(l,d,_){return l+(_?" ":"")+mw(d)});function MD(l,d,_){return l=Qt(l),_=_==null?0:aa(xt(_),0,l.length),d=un(d),l.slice(_,_+d.length)==d}function ID(l,d,_){var M=V.templateSettings;_&&Hr(l,d,_)&&(d=r),l=Qt(l),d=Jg({},d,M,Ip);var j=Jg({},d.imports,M.imports,Ip),K=kr(j),ne=ks(j,K),ue,pe,Te=0,Oe=d.interpolate||bl,De="__p += '",Ue=fp((d.escape||bl).source+"|"+Oe.source+"|"+(Oe===Jn?bf:bl).source+"|"+(d.evaluate||bl).source+"|$","g"),rt="//# sourceURL="+(It.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ru+"]")+`
|
|
61
|
+
`;l.replace(Ue,function(ht,Pt,jt,mo,wi,vo){return jt||(jt=mo),De+=l.slice(Te,vo).replace(Tt,Rl),Pt&&(ue=!0,De+=`' +
|
|
62
|
+
__e(`+Pt+`) +
|
|
63
|
+
'`),wi&&(pe=!0,De+=`';
|
|
64
|
+
`+wi+`;
|
|
65
|
+
__p += '`),jt&&(De+=`' +
|
|
66
|
+
((__t = (`+jt+`)) == null ? '' : __t) +
|
|
67
|
+
'`),Te=vo+ht.length,ht}),De+=`';
|
|
68
|
+
`;var dt=It.call(d,"variable")&&d.variable;if(!dt)De=`with (obj) {
|
|
69
|
+
`+De+`
|
|
70
|
+
}
|
|
71
|
+
`;else if(ki.test(dt))throw new vt(f);De=(pe?De.replace(xo,""):De).replace(To,"$1").replace(Er,"$1;"),De="function("+(dt||"obj")+`) {
|
|
72
|
+
`+(dt?"":`obj || (obj = {});
|
|
73
|
+
`)+"var __t, __p = ''"+(ue?", __e = _.escape":"")+(pe?`, __j = Array.prototype.join;
|
|
74
|
+
function print() { __p += __j.call(arguments, '') }
|
|
75
|
+
`:`;
|
|
76
|
+
`)+De+`return __p
|
|
77
|
+
}`;var Ot=lE(function(){return Ht(K,rt+"return "+De).apply(r,ne)});if(Ot.source=De,fw(Ot))throw Ot;return Ot}function FD(l){return Qt(l).toLowerCase()}function $D(l){return Qt(l).toUpperCase()}function jD(l,d,_){if(l=Qt(l),l&&(_||d===r))return Kv(l);if(!l||!(d=un(d)))return l;var M=vi(l),j=vi(d),K=lp(M,j),ne=up(M,j)+1;return qi(M,K,ne).join("")}function zD(l,d,_){if(l=Qt(l),l&&(_||d===r))return l.slice(0,cp(l)+1);if(!l||!(d=un(d)))return l;var M=vi(l),j=up(M,vi(d))+1;return qi(M,0,j).join("")}function HD(l,d,_){if(l=Qt(l),l&&(_||d===r))return l.replace(Ri,"");if(!l||!(d=un(d)))return l;var M=vi(l),j=lp(M,vi(d));return qi(M,j).join("")}function qD(l,d){var _=Y,M=Z;if(Rn(d)){var j="separator"in d?d.separator:j;_="length"in d?xt(d.length):_,M="omission"in d?un(d.omission):M}l=Qt(l);var K=l.length;if(kl(l)){var ne=vi(l);K=ne.length}if(_>=K)return l;var ue=_-za(M);if(ue<1)return M;var pe=ne?qi(ne,0,ue).join(""):l.slice(0,ue);if(j===r)return pe+M;if(ne&&(ue+=pe.length-ue),dw(j)){if(l.slice(ue).search(j)){var Te,Oe=pe;for(j.global||(j=fp(j.source,Qt(ro.exec(j))+"g")),j.lastIndex=0;Te=j.exec(Oe);)var De=Te.index;pe=pe.slice(0,De===r?ue:De)}}else if(l.indexOf(un(j),ue)!=ue){var Ue=pe.lastIndexOf(j);Ue>-1&&(pe=pe.slice(0,Ue))}return pe+M}function UD(l){return l=Qt(l),l&&bs.test(l)?l.replace(Ai,eg):l}var WD=Zl(function(l,d,_){return l+(_?" ":"")+d.toUpperCase()}),mw=uc("toUpperCase");function sE(l,d,_){return l=Qt(l),d=_?r:d,d===r?F_(l)?z_(l):P_(l):l.match(d)||[]}var lE=gt(function(l,d){try{return Mr(l,r,d)}catch(_){return fw(_)?_:new vt(_)}}),VD=Io(function(l,d){return Ir(d,function(_){_=co(_),No(l,_,Ie(l[_],l))}),l});function GD(l){var d=l==null?0:l.length,_=lt();return l=d?sn(l,function(M){if(typeof M[1]!="function")throw new cr(c);return[_(M[0]),M[1]]}):[],gt(function(M){for(var j=-1;++j<d;){var K=l[j];if(Mr(K[0],this,M))return Mr(K[1],this,M)}})}function BD(l){return td(gi(l,y))}function vw(l){return function(){return l}}function KD(l,d){return l==null||l!==l?d:l}var XD=Cd(),YD=Cd(!0);function Bi(l){return l}function gw(l){return Ep(typeof l=="function"?l:gi(l,y))}function QD(l){return io(gi(l,y))}function ZD(l,d){return Bl(l,gi(d,y))}var JD=gt(function(l,d){return function(_){return Wl(_,l,d)}}),eL=gt(function(l,d){return function(_){return Wl(l,_,d)}});function yw(l,d,_){var M=kr(d),j=Po(d,M);_==null&&!(Rn(d)&&(j.length||!M.length))&&(_=d,d=l,l=this,j=Po(d,kr(d)));var K=!(Rn(_)&&"chain"in _)||!!_.chain,ne=Ys(l);return Ir(j,function(ue){var pe=d[ue];l[ue]=pe,ne&&(l.prototype[ue]=function(){var Te=this.__chain__;if(K||Te){var Oe=l(this.__wrapped__),De=Oe.__actions__=jr(this.__actions__);return De.push({func:pe,args:arguments,thisArg:l}),Oe.__chain__=Te,Oe}return pe.apply(l,$a([this.value()],arguments))})}),l}function tL(){return jn._===this&&(jn._=rg),this}function _w(){}function nL(l){return l=xt(l),gt(function(d){return fd(d,l)})}var rL=bd(sn),iL=bd(qv),oL=bd(ip);function uE(l){return Ke(l)?qf(co(l)):gn(l)}function aL(l){return function(d){return l==null?r:sa(l,d)}}var sL=Lp(),lL=Lp(!0);function ww(){return[]}function Sw(){return!1}function uL(){return{}}function cL(){return""}function fL(){return!0}function dL(l,d){if(l=xt(l),l<1||l>B)return[];var _=X,M=Tr(l,X);d=lt(d),l-=X;for(var j=sp(M,d);++_<l;)d(_);return j}function hL(l){return _t(l)?sn(l,co):po(l)?[l]:jr(Gp(Qt(l)))}function pL(l){var d=++dp;return Qt(l)+d}var mL=fc(function(l,d){return l+d},0),vL=hr("ceil"),gL=fc(function(l,d){return l/d},1),yL=hr("floor");function _L(l){return l&&l.length?js(l,Bi,Do):r}function wL(l,d){return l&&l.length?js(l,lt(d,2),Do):r}function SL(l){return Gv(l,Bi)}function CL(l,d){return Gv(l,lt(d,2))}function bL(l){return l&&l.length?js(l,Bi,cd):r}function EL(l,d){return l&&l.length?js(l,lt(d,2),cd):r}var xL=fc(function(l,d){return l*d},1),TL=hr("round"),OL=fc(function(l,d){return l-d},0);function AL(l){return l&&l.length?ap(l,Bi):0}function RL(l,d){return l&&l.length?ap(l,lt(d,2)):0}return V.after=se,V.ary=_e,V.assign=$P,V.assignIn=eE,V.assignInWith=Jg,V.assignWith=jP,V.at=zP,V.before=Pe,V.bind=Ie,V.bindAll=VD,V.bindKey=Ne,V.castArray=uP,V.chain=jd,V.chunk=Nd,V.compact=Bp,V.concat=Ui,V.cond=GD,V.conforms=BD,V.constant=vw,V.countBy=Gg,V.create=HP,V.curry=We,V.curryRight=Ye,V.debounce=Qe,V.defaults=qP,V.defaultsDeep=UP,V.defer=An,V.delay=me,V.difference=$t,V.differenceBy=nr,V.differenceWith=Pn,V.drop=vr,V.dropRight=_i,V.dropRightWhile=ru,V.dropWhile=Un,V.fill=wc,V.filter=qd,V.flatMap=om,V.flatMapDeep=aw,V.flatMapDepth=Xg,V.flatten=Pd,V.flattenDeep=Cc,V.flattenDepth=si,V.flip=fe,V.flow=XD,V.flowRight=YD,V.fromPairs=Kp,V.functions=YP,V.functionsIn=QP,V.groupBy=am,V.initial=Dd,V.intersection=Xp,V.intersectionBy=ts,V.intersectionWith=Ld,V.invert=JP,V.invertBy=eD,V.invokeMap=Yg,V.iteratee=gw,V.keyBy=sw,V.keys=kr,V.keysIn=Gi,V.map=Xs,V.mapKeys=nD,V.mapValues=rD,V.matches=QD,V.matchesProperty=ZD,V.memoize=ve,V.merge=iD,V.mergeWith=tE,V.method=JD,V.methodOf=eL,V.mixin=yw,V.negate=$e,V.nthArg=nL,V.omit=oD,V.omitBy=aD,V.once=tt,V.orderBy=lw,V.over=rL,V.overArgs=st,V.overEvery=iL,V.overSome=oL,V.partial=ot,V.partialRight=ft,V.partition=Tc,V.pick=sD,V.pickBy=nE,V.property=uE,V.propertyOf=aL,V.pull=Md,V.pullAll=Ec,V.pullAllBy=Ur,V.pullAllWith=rs,V.pullAt=fo,V.range=sL,V.rangeRight=lL,V.rearg=rr,V.reject=o,V.remove=li,V.rest=qt,V.reverse=Id,V.sampleSize=h,V.set=uD,V.setWith=cD,V.shuffle=g,V.slice=Qp,V.sortBy=H,V.sortedUniq=em,V.sortedUniqBy=Gs,V.split=DD,V.spread=os,V.tail=jg,V.take=zg,V.takeRight=tm,V.takeRightWhile=Fd,V.takeWhile=Y_,V.tap=rw,V.throttle=cw,V.thru=ho,V.toArray=Qb,V.toPairs=rE,V.toPairsIn=iE,V.toPath=hL,V.toPlainObject=Jb,V.transform=fD,V.unary=sP,V.union=Q_,V.unionBy=Hg,V.unionWith=qg,V.uniq=Bs,V.uniqBy=Z_,V.uniqWith=iu,V.unset=dD,V.unzip=$d,V.unzipWith=_n,V.update=hD,V.updateWith=pD,V.values=Kd,V.valuesIn=mD,V.without=J_,V.words=sE,V.wrap=lP,V.xor=Ug,V.xorBy=ew,V.xorWith=tw,V.zip=Wg,V.zipObject=Vg,V.zipObjectDeep=nw,V.zipWith=Wi,V.entries=rE,V.entriesIn=iE,V.extend=eE,V.extendWith=Jg,yw(V,V),V.add=mL,V.attempt=lE,V.camelCase=_D,V.capitalize=oE,V.ceil=vL,V.clamp=vD,V.clone=cP,V.cloneDeep=dP,V.cloneDeepWith=hP,V.cloneWith=fP,V.conformsTo=pP,V.deburr=aE,V.defaultTo=KD,V.divide=gL,V.endsWith=wD,V.eq=ha,V.escape=SD,V.escapeRegExp=CD,V.every=Bg,V.find=Ud,V.findIndex=es,V.findKey=WP,V.findLast=Kg,V.findLastIndex=Sc,V.findLastKey=VP,V.floor=yL,V.forEach=Wd,V.forEachRight=xc,V.forIn=GP,V.forInRight=BP,V.forOwn=KP,V.forOwnRight=XP,V.get=hw,V.gt=mP,V.gte=vP,V.has=ZP,V.hasIn=pw,V.head=Ws,V.identity=Bi,V.includes=Vd,V.indexOf=da,V.inRange=gD,V.invoke=tD,V.isArguments=Oc,V.isArray=_t,V.isArrayBuffer=gP,V.isArrayLike=Vi,V.isArrayLikeObject=Wn,V.isBoolean=yP,V.isBuffer=ou,V.isDate=_P,V.isElement=wP,V.isEmpty=SP,V.isEqual=CP,V.isEqualWith=bP,V.isError=fw,V.isFinite=EP,V.isFunction=Ys,V.isInteger=Bb,V.isLength=Qg,V.isMap=Kb,V.isMatch=xP,V.isMatchWith=TP,V.isNaN=OP,V.isNative=AP,V.isNil=kP,V.isNull=RP,V.isNumber=Xb,V.isObject=Rn,V.isObjectLike=Dn,V.isPlainObject=sm,V.isRegExp=dw,V.isSafeInteger=NP,V.isSet=Yb,V.isString=Zg,V.isSymbol=po,V.isTypedArray=Bd,V.isUndefined=PP,V.isWeakMap=DP,V.isWeakSet=LP,V.join=ns,V.kebabCase=bD,V.last=qr,V.lastIndexOf=bc,V.lowerCase=ED,V.lowerFirst=xD,V.lt=MP,V.lte=IP,V.max=_L,V.maxBy=wL,V.mean=SL,V.meanBy=CL,V.min=bL,V.minBy=EL,V.stubArray=ww,V.stubFalse=Sw,V.stubObject=uL,V.stubString=cL,V.stubTrue=fL,V.multiply=xL,V.nth=Yp,V.noConflict=tL,V.noop=_w,V.now=te,V.pad=TD,V.padEnd=OD,V.padStart=AD,V.parseInt=RD,V.random=yD,V.reduce=uw,V.reduceRight=Gd,V.repeat=kD,V.replace=ND,V.result=lD,V.round=TL,V.runInContext=he,V.sample=s,V.size=x,V.snakeCase=PD,V.some=L,V.sortedIndex=Zp,V.sortedIndexBy=X_,V.sortedIndexOf=is,V.sortedLastIndex=$g,V.sortedLastIndexBy=Jp,V.sortedLastIndexOf=Vs,V.startCase=LD,V.startsWith=MD,V.subtract=OL,V.sum=AL,V.sumBy=RL,V.template=ID,V.times=dL,V.toFinite=Qs,V.toInteger=xt,V.toLength=Zb,V.toLower=FD,V.toNumber=$o,V.toSafeInteger=FP,V.toString=Qt,V.toUpper=$D,V.trim=jD,V.trimEnd=zD,V.trimStart=HD,V.truncate=qD,V.unescape=UD,V.uniqueId=pL,V.upperCase=WD,V.upperFirst=mw,V.each=Wd,V.eachRight=xc,V.first=Ws,yw(V,function(){var l={};return $r(V,function(d,_){It.call(V.prototype,_)||(l[_]=d)}),l}(),{chain:!1}),V.VERSION=i,Ir(["bind","bindKey","curry","curryRight","partial","partialRight"],function(l){V[l].placeholder=V}),Ir(["drop","take"],function(l,d){Et.prototype[l]=function(_){_=_===r?1:zn(xt(_),0);var M=this.__filtered__&&!d?new Et(this):this.clone();return M.__filtered__?M.__takeCount__=Tr(_,M.__takeCount__):M.__views__.push({size:Tr(_,X),type:l+(M.__dir__<0?"Right":"")}),M},Et.prototype[l+"Right"]=function(_){return this.reverse()[l](_).reverse()}}),Ir(["filter","map","takeWhile"],function(l,d){var _=d+1,M=_==de||_==re;Et.prototype[l]=function(j){var K=this.clone();return K.__iteratees__.push({iteratee:lt(j,3),type:_}),K.__filtered__=K.__filtered__||M,K}}),Ir(["head","last"],function(l,d){var _="take"+(d?"Right":"");Et.prototype[l]=function(){return this[_](1).value()[0]}}),Ir(["initial","tail"],function(l,d){var _="drop"+(d?"":"Right");Et.prototype[l]=function(){return this.__filtered__?new Et(this):this[_](1)}}),Et.prototype.compact=function(){return this.filter(Bi)},Et.prototype.find=function(l){return this.filter(l).head()},Et.prototype.findLast=function(l){return this.reverse().find(l)},Et.prototype.invokeMap=gt(function(l,d){return typeof l=="function"?new Et(this):this.map(function(_){return Wl(_,l,d)})}),Et.prototype.reject=function(l){return this.filter($e(lt(l)))},Et.prototype.slice=function(l,d){l=xt(l);var _=this;return _.__filtered__&&(l>0||d<0)?new Et(_):(l<0?_=_.takeRight(-l):l&&(_=_.drop(l)),d!==r&&(d=xt(d),_=d<0?_.dropRight(-d):_.take(d-l)),_)},Et.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},Et.prototype.toArray=function(){return this.take(X)},$r(Et.prototype,function(l,d){var _=/^(?:filter|find|map|reject)|While$/.test(d),M=/^(?:head|last)$/.test(d),j=V[M?"take"+(d=="last"?"Right":""):d],K=M||/^find/.test(d);j&&(V.prototype[d]=function(){var ne=this.__wrapped__,ue=M?[1]:arguments,pe=ne instanceof Et,Te=ue[0],Oe=pe||_t(ne),De=function(Pt){var jt=j.apply(V,$a([Pt],ue));return M&&Ue?jt[0]:jt};Oe&&_&&typeof Te=="function"&&Te.length!=1&&(pe=Oe=!1);var Ue=this.__chain__,rt=!!this.__actions__.length,dt=K&&!Ue,Ot=pe&&!rt;if(!K&&Oe){ne=Ot?ne:new Et(this);var ht=l.apply(ne,ue);return ht.__actions__.push({func:ho,args:[De],thisArg:r}),new fr(ht,Ue)}return dt&&Ot?l.apply(this,ue):(ht=this.thru(De),dt?M?ht.value()[0]:ht.value():ht)})}),Ir(["pop","push","shift","sort","splice","unshift"],function(l){var d=Dl[l],_=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",M=/^(?:pop|shift)$/.test(l);V.prototype[l]=function(){var j=arguments;if(M&&!this.__chain__){var K=this.value();return d.apply(_t(K)?K:[],j)}return this[_](function(ne){return d.apply(_t(ne)?ne:[],j)})}}),$r(Et.prototype,function(l,d){var _=V[d];if(_){var M=_.name+"";It.call(Wa,M)||(Wa[M]=[]),Wa[M].push({name:d,func:_})}}),Wa[Jl(r,k).name]=[{name:"wrapper",func:r}],Et.prototype.clone=vp,Et.prototype.reverse=zl,Et.prototype.value=Ba,V.prototype.at=zd,V.prototype.chain=Ks,V.prototype.commit=Hd,V.prototype.next=nm,V.prototype.plant=iw,V.prototype.reverse=im,V.prototype.toJSON=V.prototype.valueOf=V.prototype.value=ow,V.prototype.first=V.prototype.head,$u&&(V.prototype[$u]=rm),V},Pl=H_();Ia?((Ia.exports=Pl)._=Pl,Tl._=Pl):jn._=Pl}).call(D$)}(wm,wm.exports)),wm.exports}var M$=L$();const tb=no(M$);var Jw={exports:{}},Zt={};/**
|
|
78
|
+
* @license React
|
|
79
|
+
* react-is.production.min.js
|
|
80
|
+
*
|
|
81
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
82
|
+
*
|
|
83
|
+
* This source code is licensed under the MIT license found in the
|
|
84
|
+
* LICENSE file in the root directory of this source tree.
|
|
85
|
+
*/var Gx;function I$(){if(Gx)return Zt;Gx=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),E;E=Symbol.for("react.module.reference");function A(S){if(typeof S=="object"&&S!==null){var O=S.$$typeof;switch(O){case t:switch(S=S.type,S){case n:case i:case r:case p:case v:return S;default:switch(S=S&&S.$$typeof,S){case c:case u:case f:case y:case m:case a:return S;default:return O}}case e:return O}}}return Zt.ContextConsumer=u,Zt.ContextProvider=a,Zt.Element=t,Zt.ForwardRef=f,Zt.Fragment=n,Zt.Lazy=y,Zt.Memo=m,Zt.Portal=e,Zt.Profiler=i,Zt.StrictMode=r,Zt.Suspense=p,Zt.SuspenseList=v,Zt.isAsyncMode=function(){return!1},Zt.isConcurrentMode=function(){return!1},Zt.isContextConsumer=function(S){return A(S)===u},Zt.isContextProvider=function(S){return A(S)===a},Zt.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===t},Zt.isForwardRef=function(S){return A(S)===f},Zt.isFragment=function(S){return A(S)===n},Zt.isLazy=function(S){return A(S)===y},Zt.isMemo=function(S){return A(S)===m},Zt.isPortal=function(S){return A(S)===e},Zt.isProfiler=function(S){return A(S)===i},Zt.isStrictMode=function(S){return A(S)===r},Zt.isSuspense=function(S){return A(S)===p},Zt.isSuspenseList=function(S){return A(S)===v},Zt.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===n||S===i||S===r||S===p||S===v||S===b||typeof S=="object"&&S!==null&&(S.$$typeof===y||S.$$typeof===m||S.$$typeof===a||S.$$typeof===u||S.$$typeof===f||S.$$typeof===E||S.getModuleId!==void 0)},Zt.typeOf=A,Zt}var Bx;function F$(){return Bx||(Bx=1,Jw.exports=I$()),Jw.exports}var nb=F$();function $$(t){function e(X,le,ce,oe,q){for(var ie=0,J=0,be=0,Ee=0,Re,Me,qe=0,Je=0,ye,Ce=ye=Re=0,ke=0,xe=0,Fe=0,Ae=0,ze=ce.length,nt=ze-1,ct,Ge="",yt="",Bt="",$n="",Yt;ke<ze;){if(Me=ce.charCodeAt(ke),ke===nt&&J+Ee+be+ie!==0&&(J!==0&&(Me=J===47?10:47),Ee=be=ie=0,ze++,nt++),J+Ee+be+ie===0){if(ke===nt&&(0<xe&&(Ge=Ge.replace(y,"")),0<Ge.trim().length)){switch(Me){case 32:case 9:case 59:case 13:case 10:break;default:Ge+=ce.charAt(ke)}Me=59}switch(Me){case 123:for(Ge=Ge.trim(),Re=Ge.charCodeAt(0),ye=1,Ae=++ke;ke<ze;){switch(Me=ce.charCodeAt(ke)){case 123:ye++;break;case 125:ye--;break;case 47:switch(Me=ce.charCodeAt(ke+1)){case 42:case 47:e:{for(Ce=ke+1;Ce<nt;++Ce)switch(ce.charCodeAt(Ce)){case 47:if(Me===42&&ce.charCodeAt(Ce-1)===42&&ke+2!==Ce){ke=Ce+1;break e}break;case 10:if(Me===47){ke=Ce+1;break e}}ke=Ce}}break;case 91:Me++;case 40:Me++;case 34:case 39:for(;ke++<nt&&ce.charCodeAt(ke)!==Me;);}if(ye===0)break;ke++}switch(ye=ce.substring(Ae,ke),Re===0&&(Re=(Ge=Ge.replace(m,"").trim()).charCodeAt(0)),Re){case 64:switch(0<xe&&(Ge=Ge.replace(y,"")),Me=Ge.charCodeAt(1),Me){case 100:case 109:case 115:case 45:xe=le;break;default:xe=Q}if(ye=e(le,xe,ye,Me,q+1),Ae=ye.length,0<z&&(xe=n(Q,Ge,Fe),Yt=c(3,ye,xe,le,ee,Z,Ae,Me,q,oe),Ge=xe.join(""),Yt!==void 0&&(Ae=(ye=Yt.trim()).length)===0&&(Me=0,ye="")),0<Ae)switch(Me){case 115:Ge=Ge.replace(R,u);case 100:case 109:case 45:ye=Ge+"{"+ye+"}";break;case 107:Ge=Ge.replace(k,"$1 $2"),ye=Ge+"{"+ye+"}",ye=de===1||de===2&&a("@"+ye,3)?"@-webkit-"+ye+"@"+ye:"@"+ye;break;default:ye=Ge+ye,oe===112&&(ye=(yt+=ye,""))}else ye="";break;default:ye=e(le,n(le,Ge,Fe),ye,oe,q+1)}Bt+=ye,ye=Fe=xe=Ce=Re=0,Ge="",Me=ce.charCodeAt(++ke);break;case 125:case 59:if(Ge=(0<xe?Ge.replace(y,""):Ge).trim(),1<(Ae=Ge.length))switch(Ce===0&&(Re=Ge.charCodeAt(0),Re===45||96<Re&&123>Re)&&(Ae=(Ge=Ge.replace(" ",":")).length),0<z&&(Yt=c(1,Ge,le,X,ee,Z,yt.length,oe,q,oe))!==void 0&&(Ae=(Ge=Yt.trim()).length)===0&&(Ge="\0\0"),Re=Ge.charCodeAt(0),Me=Ge.charCodeAt(1),Re){case 0:break;case 64:if(Me===105||Me===99){$n+=Ge+ce.charAt(ke);break}default:Ge.charCodeAt(Ae-1)!==58&&(yt+=i(Ge,Re,Me,Ge.charCodeAt(2)))}Fe=xe=Ce=Re=0,Ge="",Me=ce.charCodeAt(++ke)}}switch(Me){case 13:case 10:J===47?J=0:1+Re===0&&oe!==107&&0<Ge.length&&(xe=1,Ge+="\0"),0<z*F&&c(0,Ge,le,X,ee,Z,yt.length,oe,q,oe),Z=1,ee++;break;case 59:case 125:if(J+Ee+be+ie===0){Z++;break}default:switch(Z++,ct=ce.charAt(ke),Me){case 9:case 32:if(Ee+ie+J===0)switch(qe){case 44:case 58:case 9:case 32:ct="";break;default:Me!==32&&(ct=" ")}break;case 0:ct="\\0";break;case 12:ct="\\f";break;case 11:ct="\\v";break;case 38:Ee+J+ie===0&&(xe=Fe=1,ct="\f"+ct);break;case 108:if(Ee+J+ie+ae===0&&0<Ce)switch(ke-Ce){case 2:qe===112&&ce.charCodeAt(ke-3)===58&&(ae=qe);case 8:Je===111&&(ae=Je)}break;case 58:Ee+J+ie===0&&(Ce=ke);break;case 44:J+be+Ee+ie===0&&(xe=1,ct+="\r");break;case 34:case 39:J===0&&(Ee=Ee===Me?0:Ee===0?Me:Ee);break;case 91:Ee+J+be===0&&ie++;break;case 93:Ee+J+be===0&&ie--;break;case 41:Ee+J+ie===0&&be--;break;case 40:if(Ee+J+ie===0){if(Re===0)switch(2*qe+3*Je){case 533:break;default:Re=1}be++}break;case 64:J+be+Ee+ie+Ce+ye===0&&(ye=1);break;case 42:case 47:if(!(0<Ee+ie+be))switch(J){case 0:switch(2*Me+3*ce.charCodeAt(ke+1)){case 235:J=47;break;case 220:Ae=ke,J=42}break;case 42:Me===47&&qe===42&&Ae+2!==ke&&(ce.charCodeAt(Ae+2)===33&&(yt+=ce.substring(Ae,ke+1)),ct="",J=0)}}J===0&&(Ge+=ct)}Je=qe,qe=Me,ke++}if(Ae=yt.length,0<Ae){if(xe=le,0<z&&(Yt=c(2,yt,xe,X,ee,Z,Ae,oe,q,oe),Yt!==void 0&&(yt=Yt).length===0))return $n+yt+Bt;if(yt=xe.join(",")+"{"+yt+"}",de*ae!==0){switch(de!==2||a(yt,2)||(ae=0),ae){case 111:yt=yt.replace(C,":-moz-$1")+yt;break;case 112:yt=yt.replace(T,"::-webkit-input-$1")+yt.replace(T,"::-moz-$1")+yt.replace(T,":-ms-input-$1")+yt}ae=0}}return $n+yt+Bt}function n(X,le,ce){var oe=le.trim().split(S);le=oe;var q=oe.length,ie=X.length;switch(ie){case 0:case 1:var J=0;for(X=ie===0?"":X[0]+" ";J<q;++J)le[J]=r(X,le[J],ce).trim();break;default:var be=J=0;for(le=[];J<q;++J)for(var Ee=0;Ee<ie;++Ee)le[be++]=r(X[Ee]+" ",oe[J],ce).trim()}return le}function r(X,le,ce){var oe=le.charCodeAt(0);switch(33>oe&&(oe=(le=le.trim()).charCodeAt(0)),oe){case 38:return le.replace(O,"$1"+X.trim());case 58:return X.trim()+le.replace(O,"$1"+X.trim());default:if(0<1*ce&&0<le.indexOf("\f"))return le.replace(O,(X.charCodeAt(0)===58?"":"$1")+X.trim())}return X+le}function i(X,le,ce,oe){var q=X+";",ie=2*le+3*ce+4*oe;if(ie===944){X=q.indexOf(":",9)+1;var J=q.substring(X,q.length-1).trim();return J=q.substring(0,X).trim()+J+";",de===1||de===2&&a(J,1)?"-webkit-"+J+J:J}if(de===0||de===2&&!a(q,1))return q;switch(ie){case 1015:return q.charCodeAt(10)===97?"-webkit-"+q+q:q;case 951:return q.charCodeAt(3)===116?"-webkit-"+q+q:q;case 963:return q.charCodeAt(5)===110?"-webkit-"+q+q:q;case 1009:if(q.charCodeAt(4)!==100)break;case 969:case 942:return"-webkit-"+q+q;case 978:return"-webkit-"+q+"-moz-"+q+q;case 1019:case 983:return"-webkit-"+q+"-moz-"+q+"-ms-"+q+q;case 883:if(q.charCodeAt(8)===45)return"-webkit-"+q+q;if(0<q.indexOf("image-set(",11))return q.replace(Y,"$1-webkit-$2")+q;break;case 932:if(q.charCodeAt(4)===45)switch(q.charCodeAt(5)){case 103:return"-webkit-box-"+q.replace("-grow","")+"-webkit-"+q+"-ms-"+q.replace("grow","positive")+q;case 115:return"-webkit-"+q+"-ms-"+q.replace("shrink","negative")+q;case 98:return"-webkit-"+q+"-ms-"+q.replace("basis","preferred-size")+q}return"-webkit-"+q+"-ms-"+q+q;case 964:return"-webkit-"+q+"-ms-flex-"+q+q;case 1023:if(q.charCodeAt(8)!==99)break;return J=q.substring(q.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),"-webkit-box-pack"+J+"-webkit-"+q+"-ms-flex-pack"+J+q;case 1005:return E.test(q)?q.replace(b,":-webkit-")+q.replace(b,":-moz-")+q:q;case 1e3:switch(J=q.substring(13).trim(),le=J.indexOf("-")+1,J.charCodeAt(0)+J.charCodeAt(le)){case 226:J=q.replace(w,"tb");break;case 232:J=q.replace(w,"tb-rl");break;case 220:J=q.replace(w,"lr");break;default:return q}return"-webkit-"+q+"-ms-"+J+q;case 1017:if(q.indexOf("sticky",9)===-1)break;case 975:switch(le=(q=X).length-10,J=(q.charCodeAt(le)===33?q.substring(0,le):q).substring(X.indexOf(":",7)+1).trim(),ie=J.charCodeAt(0)+(J.charCodeAt(7)|0)){case 203:if(111>J.charCodeAt(8))break;case 115:q=q.replace(J,"-webkit-"+J)+";"+q;break;case 207:case 102:q=q.replace(J,"-webkit-"+(102<ie?"inline-":"")+"box")+";"+q.replace(J,"-webkit-"+J)+";"+q.replace(J,"-ms-"+J+"box")+";"+q}return q+";";case 938:if(q.charCodeAt(5)===45)switch(q.charCodeAt(6)){case 105:return J=q.replace("-items",""),"-webkit-"+q+"-webkit-box-"+J+"-ms-flex-"+J+q;case 115:return"-webkit-"+q+"-ms-flex-item-"+q.replace($,"")+q;default:return"-webkit-"+q+"-ms-flex-line-pack"+q.replace("align-content","").replace($,"")+q}break;case 973:case 989:if(q.charCodeAt(3)!==45||q.charCodeAt(4)===122)break;case 931:case 953:if(G.test(X)===!0)return(J=X.substring(X.indexOf(":")+1)).charCodeAt(0)===115?i(X.replace("stretch","fill-available"),le,ce,oe).replace(":fill-available",":stretch"):q.replace(J,"-webkit-"+J)+q.replace(J,"-moz-"+J.replace("fill-",""))+q;break;case 962:if(q="-webkit-"+q+(q.charCodeAt(5)===102?"-ms-"+q:"")+q,ce+oe===211&&q.charCodeAt(13)===105&&0<q.indexOf("transform",10))return q.substring(0,q.indexOf(";",27)+1).replace(A,"$1-webkit-$2")+q}return q}function a(X,le){var ce=X.indexOf(le===1?":":"{"),oe=X.substring(0,le!==3?ce:10);return ce=X.substring(ce+1,X.length-1),B(le!==2?oe:oe.replace(U,"$1"),ce,le)}function u(X,le){var ce=i(le,le.charCodeAt(0),le.charCodeAt(1),le.charCodeAt(2));return ce!==le+";"?ce.replace(I," or ($1)").substring(4):"("+le+")"}function c(X,le,ce,oe,q,ie,J,be,Ee,Re){for(var Me=0,qe=le,Je;Me<z;++Me)switch(Je=re[Me].call(v,X,qe,ce,oe,q,ie,J,be,Ee,Re)){case void 0:case!1:case!0:case null:break;default:qe=Je}if(qe!==le)return qe}function f(X){switch(X){case void 0:case null:z=re.length=0;break;default:if(typeof X=="function")re[z++]=X;else if(typeof X=="object")for(var le=0,ce=X.length;le<ce;++le)f(X[le]);else F=!!X|0}return f}function p(X){return X=X.prefix,X!==void 0&&(B=null,X?typeof X!="function"?de=1:(de=2,B=X):de=0),p}function v(X,le){var ce=X;if(33>ce.charCodeAt(0)&&(ce=ce.trim()),W=ce,ce=[W],0<z){var oe=c(-1,le,ce,ce,ee,Z,0,0,0,0);oe!==void 0&&typeof oe=="string"&&(le=oe)}var q=e(Q,ce,le,0,0);return 0<z&&(oe=c(-2,q,ce,ce,ee,Z,q.length,0,0,0),oe!==void 0&&(q=oe)),W="",ae=0,Z=ee=1,q}var m=/^\0+/g,y=/[\0\r\f]/g,b=/: */g,E=/zoo|gra/,A=/([,: ])(transform)/g,S=/,\r+?/g,O=/([\t\r\n ])*\f?&/g,k=/@(k\w+)\s*(\S*)\s*/,T=/::(place)/g,C=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,R=/\(\s*(.*)\s*\)/g,I=/([\s\S]*?);/g,$=/-self|flex-/g,U=/[^]*?(:[rp][el]a[\w-]+)[^]*/,G=/stretch|:\s*\w+\-(?:conte|avail)/,Y=/([^-])(image-set\()/,Z=1,ee=1,ae=0,de=1,Q=[],re=[],z=0,B=null,F=0,W="";return v.use=f,v.set=p,t!==void 0&&p(t),v}var QR={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};function j$(t){var e={};return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var z$=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|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|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|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|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)-.*))$/,Kx=j$(function(t){return z$.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91}),e1={exports:{}},Jt={};/** @license React v16.13.1
|
|
86
|
+
* react-is.production.min.js
|
|
87
|
+
*
|
|
88
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
89
|
+
*
|
|
90
|
+
* This source code is licensed under the MIT license found in the
|
|
91
|
+
* LICENSE file in the root directory of this source tree.
|
|
92
|
+
*/var Xx;function H$(){if(Xx)return Jt;Xx=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,u=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,f=t?Symbol.for("react.async_mode"):60111,p=t?Symbol.for("react.concurrent_mode"):60111,v=t?Symbol.for("react.forward_ref"):60112,m=t?Symbol.for("react.suspense"):60113,y=t?Symbol.for("react.suspense_list"):60120,b=t?Symbol.for("react.memo"):60115,E=t?Symbol.for("react.lazy"):60116,A=t?Symbol.for("react.block"):60121,S=t?Symbol.for("react.fundamental"):60117,O=t?Symbol.for("react.responder"):60118,k=t?Symbol.for("react.scope"):60119;function T(w){if(typeof w=="object"&&w!==null){var R=w.$$typeof;switch(R){case e:switch(w=w.type,w){case f:case p:case r:case a:case i:case m:return w;default:switch(w=w&&w.$$typeof,w){case c:case v:case E:case b:case u:return w;default:return R}}case n:return R}}}function C(w){return T(w)===p}return Jt.AsyncMode=f,Jt.ConcurrentMode=p,Jt.ContextConsumer=c,Jt.ContextProvider=u,Jt.Element=e,Jt.ForwardRef=v,Jt.Fragment=r,Jt.Lazy=E,Jt.Memo=b,Jt.Portal=n,Jt.Profiler=a,Jt.StrictMode=i,Jt.Suspense=m,Jt.isAsyncMode=function(w){return C(w)||T(w)===f},Jt.isConcurrentMode=C,Jt.isContextConsumer=function(w){return T(w)===c},Jt.isContextProvider=function(w){return T(w)===u},Jt.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===e},Jt.isForwardRef=function(w){return T(w)===v},Jt.isFragment=function(w){return T(w)===r},Jt.isLazy=function(w){return T(w)===E},Jt.isMemo=function(w){return T(w)===b},Jt.isPortal=function(w){return T(w)===n},Jt.isProfiler=function(w){return T(w)===a},Jt.isStrictMode=function(w){return T(w)===i},Jt.isSuspense=function(w){return T(w)===m},Jt.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===p||w===a||w===i||w===m||w===y||typeof w=="object"&&w!==null&&(w.$$typeof===E||w.$$typeof===b||w.$$typeof===u||w.$$typeof===c||w.$$typeof===v||w.$$typeof===S||w.$$typeof===O||w.$$typeof===k||w.$$typeof===A)},Jt.typeOf=T,Jt}var Yx;function q$(){return Yx||(Yx=1,e1.exports=H$()),e1.exports}var t1,Qx;function U$(){if(Qx)return t1;Qx=1;var t=q$(),e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[t.ForwardRef]=r,a[t.Memo]=i;function u(E){return t.isMemo(E)?i:a[E.$$typeof]||e}var c=Object.defineProperty,f=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,v=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,y=Object.prototype;function b(E,A,S){if(typeof A!="string"){if(y){var O=m(A);O&&O!==y&&b(E,O,S)}var k=f(A);p&&(k=k.concat(p(A)));for(var T=u(E),C=u(A),w=0;w<k.length;++w){var R=k[w];if(!n[R]&&!(S&&S[R])&&!(C&&C[R])&&!(T&&T[R])){var I=v(A,R);try{c(E,R,I)}catch{}}}}return E}return t1=b,t1}var W$=U$();const V$=no(W$);var ls={};function fs(){return(fs=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}var Zx=function(t,e){for(var n=[t[0]],r=0,i=e.length;r<i;r+=1)n.push(e[r],t[r+1]);return n},OS=function(t){return t!==null&&typeof t=="object"&&(t.toString?t.toString():Object.prototype.toString.call(t))==="[object Object]"&&!nb.typeOf(t)},dy=Object.freeze([]),hu=Object.freeze({});function Ch(t){return typeof t=="function"}function Jx(t){return t.displayName||t.name||"Component"}function rb(t){return t&&typeof t.styledComponentId=="string"}var bh=typeof process<"u"&&(ls.REACT_APP_SC_ATTR||ls.SC_ATTR)||"data-styled",ib=typeof window<"u"&&"HTMLElement"in window,G$=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&ls.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&ls.REACT_APP_SC_DISABLE_SPEEDY!==""?ls.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&ls.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&ls.SC_DISABLE_SPEEDY!==void 0&&ls.SC_DISABLE_SPEEDY!==""&&ls.SC_DISABLE_SPEEDY!=="false"&&ls.SC_DISABLE_SPEEDY);function sf(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+t+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var B$=function(){function t(n){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=n}var e=t.prototype;return e.indexOfGroup=function(n){for(var r=0,i=0;i<n;i++)r+=this.groupSizes[i];return r},e.insertRules=function(n,r){if(n>=this.groupSizes.length){for(var i=this.groupSizes,a=i.length,u=a;n>=u;)(u<<=1)<0&&sf(16,""+n);this.groupSizes=new Uint32Array(u),this.groupSizes.set(i),this.length=u;for(var c=a;c<u;c++)this.groupSizes[c]=0}for(var f=this.indexOfGroup(n+1),p=0,v=r.length;p<v;p++)this.tag.insertRule(f,r[p])&&(this.groupSizes[n]++,f++)},e.clearGroup=function(n){if(n<this.length){var r=this.groupSizes[n],i=this.indexOfGroup(n),a=i+r;this.groupSizes[n]=0;for(var u=i;u<a;u++)this.tag.deleteRule(i)}},e.getGroup=function(n){var r="";if(n>=this.length||this.groupSizes[n]===0)return r;for(var i=this.groupSizes[n],a=this.indexOfGroup(n),u=a+i,c=a;c<u;c++)r+=this.tag.getRule(c)+`/*!sc*/
|
|
93
|
+
`;return r},t}(),H0=new Map,hy=new Map,Tm=1,y0=function(t){if(H0.has(t))return H0.get(t);for(;hy.has(Tm);)Tm++;var e=Tm++;return H0.set(t,e),hy.set(e,t),e},K$=function(t){return hy.get(t)},X$=function(t,e){e>=Tm&&(Tm=e+1),H0.set(t,e),hy.set(e,t)},Y$="style["+bh+'][data-styled-version="5.3.3"]',Q$=new RegExp("^"+bh+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Z$=function(t,e,n){for(var r,i=n.split(","),a=0,u=i.length;a<u;a++)(r=i[a])&&t.registerName(e,r)},J$=function(t,e){for(var n=(e.textContent||"").split(`/*!sc*/
|
|
94
|
+
`),r=[],i=0,a=n.length;i<a;i++){var u=n[i].trim();if(u){var c=u.match(Q$);if(c){var f=0|parseInt(c[1],10),p=c[2];f!==0&&(X$(p,f),Z$(t,p,c[3]),t.getTag().insertRules(f,r)),r.length=0}else r.push(u)}}},ej=function(){return typeof window<"u"&&window.__webpack_nonce__!==void 0?window.__webpack_nonce__:null},ZR=function(t){var e=document.head,n=t||e,r=document.createElement("style"),i=function(c){for(var f=c.childNodes,p=f.length;p>=0;p--){var v=f[p];if(v&&v.nodeType===1&&v.hasAttribute(bh))return v}}(n),a=i!==void 0?i.nextSibling:null;r.setAttribute(bh,"active"),r.setAttribute("data-styled-version","5.3.3");var u=ej();return u&&r.setAttribute("nonce",u),n.insertBefore(r,a),r},tj=function(){function t(n){var r=this.element=ZR(n);r.appendChild(document.createTextNode("")),this.sheet=function(i){if(i.sheet)return i.sheet;for(var a=document.styleSheets,u=0,c=a.length;u<c;u++){var f=a[u];if(f.ownerNode===i)return f}sf(17)}(r),this.length=0}var e=t.prototype;return e.insertRule=function(n,r){try{return this.sheet.insertRule(r,n),this.length++,!0}catch{return!1}},e.deleteRule=function(n){this.sheet.deleteRule(n),this.length--},e.getRule=function(n){var r=this.sheet.cssRules[n];return r!==void 0&&typeof r.cssText=="string"?r.cssText:""},t}(),nj=function(){function t(n){var r=this.element=ZR(n);this.nodes=r.childNodes,this.length=0}var e=t.prototype;return e.insertRule=function(n,r){if(n<=this.length&&n>=0){var i=document.createTextNode(r),a=this.nodes[n];return this.element.insertBefore(i,a||null),this.length++,!0}return!1},e.deleteRule=function(n){this.element.removeChild(this.nodes[n]),this.length--},e.getRule=function(n){return n<this.length?this.nodes[n].textContent:""},t}(),rj=function(){function t(n){this.rules=[],this.length=0}var e=t.prototype;return e.insertRule=function(n,r){return n<=this.length&&(this.rules.splice(n,0,r),this.length++,!0)},e.deleteRule=function(n){this.rules.splice(n,1),this.length--},e.getRule=function(n){return n<this.length?this.rules[n]:""},t}(),eT=ib,ij={isServer:!ib,useCSSOMInjection:!G$},JR=function(){function t(n,r,i){n===void 0&&(n=hu),r===void 0&&(r={}),this.options=fs({},ij,{},n),this.gs=r,this.names=new Map(i),this.server=!!n.isServer,!this.server&&ib&&eT&&(eT=!1,function(a){for(var u=document.querySelectorAll(Y$),c=0,f=u.length;c<f;c++){var p=u[c];p&&p.getAttribute(bh)!=="active"&&(J$(a,p),p.parentNode&&p.parentNode.removeChild(p))}}(this))}t.registerId=function(n){return y0(n)};var e=t.prototype;return e.reconstructWithOptions=function(n,r){return r===void 0&&(r=!0),new t(fs({},this.options,{},n),this.gs,r&&this.names||void 0)},e.allocateGSInstance=function(n){return this.gs[n]=(this.gs[n]||0)+1},e.getTag=function(){return this.tag||(this.tag=(i=(r=this.options).isServer,a=r.useCSSOMInjection,u=r.target,n=i?new rj(u):a?new tj(u):new nj(u),new B$(n)));var n,r,i,a,u},e.hasNameForId=function(n,r){return this.names.has(n)&&this.names.get(n).has(r)},e.registerName=function(n,r){if(y0(n),this.names.has(n))this.names.get(n).add(r);else{var i=new Set;i.add(r),this.names.set(n,i)}},e.insertRules=function(n,r,i){this.registerName(n,r),this.getTag().insertRules(y0(n),i)},e.clearNames=function(n){this.names.has(n)&&this.names.get(n).clear()},e.clearRules=function(n){this.getTag().clearGroup(y0(n)),this.clearNames(n)},e.clearTag=function(){this.tag=void 0},e.toString=function(){return function(n){for(var r=n.getTag(),i=r.length,a="",u=0;u<i;u++){var c=K$(u);if(c!==void 0){var f=n.names.get(c),p=r.getGroup(u);if(f&&p&&f.size){var v=bh+".g"+u+'[id="'+c+'"]',m="";f!==void 0&&f.forEach(function(y){y.length>0&&(m+=y+",")}),a+=""+p+v+'{content:"'+m+`"}/*!sc*/
|
|
95
|
+
`}}}return a}(this)},t}(),oj=/(a)(d)/gi,tT=function(t){return String.fromCharCode(t+(t>25?39:97))};function AS(t){var e,n="";for(e=Math.abs(t);e>52;e=e/52|0)n=tT(e%52)+n;return(tT(e%52)+n).replace(oj,"$1-$2")}var oh=function(t,e){for(var n=e.length;n;)t=33*t^e.charCodeAt(--n);return t},e2=function(t){return oh(5381,t)};function aj(t){for(var e=0;e<t.length;e+=1){var n=t[e];if(Ch(n)&&!rb(n))return!1}return!0}var sj=e2("5.3.3"),lj=function(){function t(e,n,r){this.rules=e,this.staticRulesId="",this.isStatic=(r===void 0||r.isStatic)&&aj(e),this.componentId=n,this.baseHash=oh(sj,n),this.baseStyle=r,JR.registerId(n)}return t.prototype.generateAndInjectStyles=function(e,n,r){var i=this.componentId,a=[];if(this.baseStyle&&a.push(this.baseStyle.generateAndInjectStyles(e,n,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(i,this.staticRulesId))a.push(this.staticRulesId);else{var u=Eh(this.rules,e,n,r).join(""),c=AS(oh(this.baseHash,u)>>>0);if(!n.hasNameForId(i,c)){var f=r(u,"."+c,void 0,i);n.insertRules(i,c,f)}a.push(c),this.staticRulesId=c}else{for(var p=this.rules.length,v=oh(this.baseHash,r.hash),m="",y=0;y<p;y++){var b=this.rules[y];if(typeof b=="string")m+=b;else if(b){var E=Eh(b,e,n,r),A=Array.isArray(E)?E.join(""):E;v=oh(v,A+y),m+=A}}if(m){var S=AS(v>>>0);if(!n.hasNameForId(i,S)){var O=r(m,"."+S,void 0,i);n.insertRules(i,S,O)}a.push(S)}}return a.join(" ")},t}(),uj=/^\s*\/\/.*$/gm,cj=[":","[",".","#"];function fj(t){var e,n,r,i,a=hu,u=a.options,c=u===void 0?hu:u,f=a.plugins,p=f===void 0?dy:f,v=new $$(c),m=[],y=function(A){function S(O){if(O)try{A(O+"}")}catch{}}return function(O,k,T,C,w,R,I,$,U,G){switch(O){case 1:if(U===0&&k.charCodeAt(0)===64)return A(k+";"),"";break;case 2:if($===0)return k+"/*|*/";break;case 3:switch($){case 102:case 112:return A(T[0]+k),"";default:return k+(G===0?"/*|*/":"")}case-2:k.split("/*|*/}").forEach(S)}}}(function(A){m.push(A)}),b=function(A,S,O){return S===0&&cj.indexOf(O[n.length])!==-1||O.match(i)?A:"."+e};function E(A,S,O,k){k===void 0&&(k="&");var T=A.replace(uj,""),C=S&&O?O+" "+S+" { "+T+" }":T;return e=k,n=S,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),v(O||!S?"":S,C)}return v.use([].concat(p,[function(A,S,O){A===2&&O.length&&O[0].lastIndexOf(n)>0&&(O[0]=O[0].replace(r,b))},y,function(A){if(A===-2){var S=m;return m=[],S}}])),E.hash=p.length?p.reduce(function(A,S){return S.name||sf(15),oh(A,S.name)},5381).toString():"",E}var t2=je.createContext();t2.Consumer;var n2=je.createContext(),dj=(n2.Consumer,new JR),RS=fj();function hj(){return N.useContext(t2)||dj}function pj(){return N.useContext(n2)||RS}var mj=function(){function t(e,n){var r=this;this.inject=function(i,a){a===void 0&&(a=RS);var u=r.name+a.hash;i.hasNameForId(r.id,u)||i.insertRules(r.id,u,a(r.rules,u,"@keyframes"))},this.toString=function(){return sf(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=n}return t.prototype.getName=function(e){return e===void 0&&(e=RS),this.name+e.hash},t}(),vj=/([A-Z])/,gj=/([A-Z])/g,yj=/^ms-/,_j=function(t){return"-"+t.toLowerCase()};function nT(t){return vj.test(t)?t.replace(gj,_j).replace(yj,"-ms-"):t}var rT=function(t){return t==null||t===!1||t===""};function Eh(t,e,n,r){if(Array.isArray(t)){for(var i,a=[],u=0,c=t.length;u<c;u+=1)(i=Eh(t[u],e,n,r))!==""&&(Array.isArray(i)?a.push.apply(a,i):a.push(i));return a}if(rT(t))return"";if(rb(t))return"."+t.styledComponentId;if(Ch(t)){if(typeof(p=t)!="function"||p.prototype&&p.prototype.isReactComponent||!e)return t;var f=t(e);return Eh(f,e,n,r)}var p;return t instanceof mj?n?(t.inject(n,r),t.getName(r)):t:OS(t)?function v(m,y){var b,E,A=[];for(var S in m)m.hasOwnProperty(S)&&!rT(m[S])&&(Array.isArray(m[S])&&m[S].isCss||Ch(m[S])?A.push(nT(S)+":",m[S],";"):OS(m[S])?A.push.apply(A,v(m[S],S)):A.push(nT(S)+": "+(b=S,(E=m[S])==null||typeof E=="boolean"||E===""?"":typeof E!="number"||E===0||b in QR?String(E).trim():E+"px")+";"));return y?[y+" {"].concat(A,["}"]):A}(t):t.toString()}var iT=function(t){return Array.isArray(t)&&(t.isCss=!0),t};function wr(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return Ch(t)||OS(t)?iT(Eh(Zx(dy,[t].concat(n)))):n.length===0&&t.length===1&&typeof t[0]=="string"?t:iT(Eh(Zx(t,n)))}var wj=function(t,e,n){return n===void 0&&(n=hu),t.theme!==n.theme&&t.theme||e||n.theme},Sj=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Cj=/(^-|-$)/g;function n1(t){return t.replace(Sj,"-").replace(Cj,"")}var bj=function(t){return AS(e2(t)>>>0)};function _0(t){return typeof t=="string"&&!0}var kS=function(t){return typeof t=="function"||typeof t=="object"&&t!==null&&!Array.isArray(t)},Ej=function(t){return t!=="__proto__"&&t!=="constructor"&&t!=="prototype"};function xj(t,e,n){var r=t[n];kS(e)&&kS(r)?r2(r,e):t[n]=e}function r2(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];for(var i=0,a=n;i<a.length;i++){var u=a[i];if(kS(u))for(var c in u)Ej(c)&&xj(t,u[c],c)}return t}var py=je.createContext();py.Consumer;function Tj(t){var e=N.useContext(py),n=N.useMemo(function(){return function(r,i){if(!r)return sf(14);if(Ch(r)){var a=r(i);return a}return Array.isArray(r)||typeof r!="object"?sf(8):i?fs({},i,{},r):r}(t.theme,e)},[t.theme,e]);return t.children?je.createElement(py.Provider,{value:n},t.children):null}var r1={};function i2(t,e,n){var r=rb(t),i=!_0(t),a=e.attrs,u=a===void 0?dy:a,c=e.componentId,f=c===void 0?function(k,T){var C=typeof k!="string"?"sc":n1(k);r1[C]=(r1[C]||0)+1;var w=C+"-"+bj("5.3.3"+C+r1[C]);return T?T+"-"+w:w}(e.displayName,e.parentComponentId):c,p=e.displayName,v=p===void 0?function(k){return _0(k)?"styled."+k:"Styled("+Jx(k)+")"}(t):p,m=e.displayName&&e.componentId?n1(e.displayName)+"-"+e.componentId:e.componentId||f,y=r&&t.attrs?Array.prototype.concat(t.attrs,u).filter(Boolean):u,b=e.shouldForwardProp;r&&t.shouldForwardProp&&(b=e.shouldForwardProp?function(k,T,C){return t.shouldForwardProp(k,T,C)&&e.shouldForwardProp(k,T,C)}:t.shouldForwardProp);var E,A=new lj(n,m,r?t.componentStyle:void 0),S=A.isStatic&&u.length===0,O=function(k,T){return function(C,w,R,I){var $=C.attrs,U=C.componentStyle,G=C.defaultProps,Y=C.foldedComponentIds,Z=C.shouldForwardProp,ee=C.styledComponentId,ae=C.target,de=function(oe,q,ie){oe===void 0&&(oe=hu);var J=fs({},q,{theme:oe}),be={};return ie.forEach(function(Ee){var Re,Me,qe,Je=Ee;for(Re in Ch(Je)&&(Je=Je(J)),Je)J[Re]=be[Re]=Re==="className"?(Me=be[Re],qe=Je[Re],Me&&qe?Me+" "+qe:Me||qe):Je[Re]}),[J,be]}(wj(w,N.useContext(py),G)||hu,w,$),Q=de[0],re=de[1],z=function(oe,q,ie,J){var be=hj(),Ee=pj(),Re=q?oe.generateAndInjectStyles(hu,be,Ee):oe.generateAndInjectStyles(ie,be,Ee);return Re}(U,I,Q),B=R,F=re.$as||w.$as||re.as||w.as||ae,W=_0(F),X=re!==w?fs({},w,{},re):w,le={};for(var ce in X)ce[0]!=="$"&&ce!=="as"&&(ce==="forwardedAs"?le.as=X[ce]:(Z?Z(ce,Kx,F):!W||Kx(ce))&&(le[ce]=X[ce]));return w.style&&re.style!==w.style&&(le.style=fs({},w.style,{},re.style)),le.className=Array.prototype.concat(Y,ee,z!==ee?z:null,w.className,re.className).filter(Boolean).join(" "),le.ref=B,N.createElement(F,le)}(E,k,T,S)};return O.displayName=v,(E=je.forwardRef(O)).attrs=y,E.componentStyle=A,E.displayName=v,E.shouldForwardProp=b,E.foldedComponentIds=r?Array.prototype.concat(t.foldedComponentIds,t.styledComponentId):dy,E.styledComponentId=m,E.target=r?t.target:t,E.withComponent=function(k){var T=e.componentId,C=function(R,I){if(R==null)return{};var $,U,G={},Y=Object.keys(R);for(U=0;U<Y.length;U++)$=Y[U],I.indexOf($)>=0||(G[$]=R[$]);return G}(e,["componentId"]),w=T&&T+"-"+(_0(k)?k:n1(Jx(k)));return i2(k,fs({},C,{attrs:y,componentId:w}),n)},Object.defineProperty(E,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(k){this._foldedDefaultProps=r?r2({},t.defaultProps,k):k}}),E.toString=function(){return"."+E.styledComponentId},i&&V$(E,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),E}var Nt=function(t){return function e(n,r,i){if(i===void 0&&(i=hu),!nb.isValidElementType(r))return sf(1,String(r));var a=function(){return n(r,i,wr.apply(void 0,arguments))};return a.withConfig=function(u){return e(n,r,fs({},i,{},u))},a.attrs=function(u){return e(n,r,fs({},i,{attrs:Array.prototype.concat(i.attrs,u).filter(Boolean)}))},a}(i2,t)};["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","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(t){Nt[t]=Nt(t)});var pu;function xh(t,e){return t[e]}function Oj(t=[],e,n=0){return[...t.slice(0,n),e,...t.slice(n)]}function Aj(t=[],e,n="id"){const r=t.slice(),i=xh(e,n);return i?r.splice(r.findIndex(a=>xh(a,n)===i),1):r.splice(r.findIndex(a=>a===e),1),r}function oT(t){return t.map((e,n)=>{const r=Object.assign(Object.assign({},e),{sortable:e.sortable||!!e.sortFunction||void 0});return e.id||(r.id=n+1),r})}function Om(t,e){return Math.ceil(t/e)}function i1(t,e){return Math.min(t,e)}(function(t){t.ASC="asc",t.DESC="desc"})(pu||(pu={}));const yr=()=>null;function o2(t,e=[],n=[]){let r={},i=[...n];return e.length&&e.forEach(a=>{if(!a.when||typeof a.when!="function")throw new Error('"when" must be defined in the conditional style object and must be function');a.when(t)&&(r=a.style||{},a.classNames&&(i=[...i,...a.classNames]),typeof a.style=="function"&&(r=a.style(t)||{}))}),{conditionalStyle:r,classNames:i.join(" ")}}function q0(t,e=[],n="id"){const r=xh(t,n);return r?e.some(i=>xh(i,n)===r):e.some(i=>i===t)}function w0(t,e){return e?t.findIndex(n=>Am(n.id,e)):-1}function Am(t,e){return t==e}function Rj(t,e){const n=!t.toggleOnSelectedRowsChange;switch(e.type){case"SELECT_ALL_ROWS":{const{keyField:r,rows:i,rowCount:a,mergeSelections:u}=e,c=!t.allSelected,f=!t.toggleOnSelectedRowsChange;if(u){const p=c?[...t.selectedRows,...i.filter(v=>!q0(v,t.selectedRows,r))]:t.selectedRows.filter(v=>!q0(v,i,r));return Object.assign(Object.assign({},t),{allSelected:c,selectedCount:p.length,selectedRows:p,toggleOnSelectedRowsChange:f})}return Object.assign(Object.assign({},t),{allSelected:c,selectedCount:c?a:0,selectedRows:c?i:[],toggleOnSelectedRowsChange:f})}case"SELECT_SINGLE_ROW":{const{keyField:r,row:i,isSelected:a,rowCount:u,singleSelect:c}=e;return c?a?Object.assign(Object.assign({},t),{selectedCount:0,allSelected:!1,selectedRows:[],toggleOnSelectedRowsChange:n}):Object.assign(Object.assign({},t),{selectedCount:1,allSelected:!1,selectedRows:[i],toggleOnSelectedRowsChange:n}):a?Object.assign(Object.assign({},t),{selectedCount:t.selectedRows.length>0?t.selectedRows.length-1:0,allSelected:!1,selectedRows:Aj(t.selectedRows,i,r),toggleOnSelectedRowsChange:n}):Object.assign(Object.assign({},t),{selectedCount:t.selectedRows.length+1,allSelected:t.selectedRows.length+1===u,selectedRows:Oj(t.selectedRows,i),toggleOnSelectedRowsChange:n})}case"SELECT_MULTIPLE_ROWS":{const{keyField:r,selectedRows:i,totalRows:a,mergeSelections:u}=e;if(u){const c=[...t.selectedRows,...i.filter(f=>!q0(f,t.selectedRows,r))];return Object.assign(Object.assign({},t),{selectedCount:c.length,allSelected:!1,selectedRows:c,toggleOnSelectedRowsChange:n})}return Object.assign(Object.assign({},t),{selectedCount:i.length,allSelected:i.length===a,selectedRows:i,toggleOnSelectedRowsChange:n})}case"CLEAR_SELECTED_ROWS":{const{selectedRowsFlag:r}=e;return Object.assign(Object.assign({},t),{allSelected:!1,selectedCount:0,selectedRows:[],selectedRowsFlag:r})}case"SORT_CHANGE":{const{sortDirection:r,selectedColumn:i,clearSelectedOnSort:a}=e;return Object.assign(Object.assign(Object.assign({},t),{selectedColumn:i,sortDirection:r,currentPage:1}),a&&{allSelected:!1,selectedCount:0,selectedRows:[],toggleOnSelectedRowsChange:n})}case"CHANGE_PAGE":{const{page:r,paginationServer:i,visibleOnly:a,persistSelectedOnPageChange:u}=e,c=i&&u,f=i&&!u||a;return Object.assign(Object.assign(Object.assign(Object.assign({},t),{currentPage:r}),c&&{allSelected:!1}),f&&{allSelected:!1,selectedCount:0,selectedRows:[],toggleOnSelectedRowsChange:n})}case"CHANGE_ROWS_PER_PAGE":{const{rowsPerPage:r,page:i}=e;return Object.assign(Object.assign({},t),{currentPage:i,rowsPerPage:r})}}}const kj=wr`
|
|
96
|
+
pointer-events: none;
|
|
97
|
+
opacity: 0.4;
|
|
98
|
+
`,Nj=Nt.div`
|
|
99
|
+
position: relative;
|
|
100
|
+
box-sizing: border-box;
|
|
101
|
+
display: flex;
|
|
102
|
+
flex-direction: column;
|
|
103
|
+
width: 100%;
|
|
104
|
+
height: 100%;
|
|
105
|
+
max-width: 100%;
|
|
106
|
+
${({disabled:t})=>t&&kj};
|
|
107
|
+
${({theme:t})=>t.table.style};
|
|
108
|
+
`,Pj=wr`
|
|
109
|
+
position: sticky;
|
|
110
|
+
position: -webkit-sticky; /* Safari */
|
|
111
|
+
top: 0;
|
|
112
|
+
z-index: 1;
|
|
113
|
+
`,Dj=Nt.div`
|
|
114
|
+
display: flex;
|
|
115
|
+
width: 100%;
|
|
116
|
+
${({$fixedHeader:t})=>t&&Pj};
|
|
117
|
+
${({theme:t})=>t.head.style};
|
|
118
|
+
`,Lj=Nt.div`
|
|
119
|
+
display: flex;
|
|
120
|
+
align-items: stretch;
|
|
121
|
+
width: 100%;
|
|
122
|
+
${({theme:t})=>t.headRow.style};
|
|
123
|
+
${({$dense:t,theme:e})=>t&&e.headRow.denseStyle};
|
|
124
|
+
`,a2=(t,...e)=>wr`
|
|
125
|
+
@media screen and (max-width: ${599}px) {
|
|
126
|
+
${wr(t,...e)}
|
|
127
|
+
}
|
|
128
|
+
`,Mj=(t,...e)=>wr`
|
|
129
|
+
@media screen and (max-width: ${959}px) {
|
|
130
|
+
${wr(t,...e)}
|
|
131
|
+
}
|
|
132
|
+
`,Ij=(t,...e)=>wr`
|
|
133
|
+
@media screen and (max-width: ${1280}px) {
|
|
134
|
+
${wr(t,...e)}
|
|
135
|
+
}
|
|
136
|
+
`,Fj=t=>(e,...n)=>wr`
|
|
137
|
+
@media screen and (max-width: ${t}px) {
|
|
138
|
+
${wr(e,...n)}
|
|
139
|
+
}
|
|
140
|
+
`,Fh=Nt.div`
|
|
141
|
+
position: relative;
|
|
142
|
+
display: flex;
|
|
143
|
+
align-items: center;
|
|
144
|
+
box-sizing: border-box;
|
|
145
|
+
line-height: normal;
|
|
146
|
+
${({theme:t,$headCell:e})=>t[e?"headCells":"cells"].style};
|
|
147
|
+
${({$noPadding:t})=>t&&"padding: 0"};
|
|
148
|
+
`,s2=Nt(Fh)`
|
|
149
|
+
flex-grow: ${({button:t,grow:e})=>e===0||t?0:e||1};
|
|
150
|
+
flex-shrink: 0;
|
|
151
|
+
flex-basis: 0;
|
|
152
|
+
max-width: ${({maxWidth:t})=>t||"100%"};
|
|
153
|
+
min-width: ${({minWidth:t})=>t||"100px"};
|
|
154
|
+
${({width:t})=>t&&wr`
|
|
155
|
+
min-width: ${t};
|
|
156
|
+
max-width: ${t};
|
|
157
|
+
`};
|
|
158
|
+
${({right:t})=>t&&"justify-content: flex-end"};
|
|
159
|
+
${({button:t,center:e})=>(e||t)&&"justify-content: center"};
|
|
160
|
+
${({compact:t,button:e})=>(t||e)&&"padding: 0"};
|
|
161
|
+
|
|
162
|
+
/* handle hiding cells */
|
|
163
|
+
${({hide:t})=>t&&t==="sm"&&a2`
|
|
164
|
+
display: none;
|
|
165
|
+
`};
|
|
166
|
+
${({hide:t})=>t&&t==="md"&&Mj`
|
|
167
|
+
display: none;
|
|
168
|
+
`};
|
|
169
|
+
${({hide:t})=>t&&t==="lg"&&Ij`
|
|
170
|
+
display: none;
|
|
171
|
+
`};
|
|
172
|
+
${({hide:t})=>t&&Number.isInteger(t)&&Fj(t)`
|
|
173
|
+
display: none;
|
|
174
|
+
`};
|
|
175
|
+
`,$j=wr`
|
|
176
|
+
div:first-child {
|
|
177
|
+
white-space: ${({$wrapCell:t})=>t?"normal":"nowrap"};
|
|
178
|
+
overflow: ${({$allowOverflow:t})=>t?"visible":"hidden"};
|
|
179
|
+
text-overflow: ellipsis;
|
|
180
|
+
}
|
|
181
|
+
`,jj=Nt(s2).attrs(t=>({style:t.style}))`
|
|
182
|
+
${({$renderAsCell:t})=>!t&&$j};
|
|
183
|
+
${({theme:t,$isDragging:e})=>e&&t.cells.draggingStyle};
|
|
184
|
+
${({$cellStyle:t})=>t};
|
|
185
|
+
`;var zj=N.memo(function({id:t,column:e,row:n,rowIndex:r,dataTag:i,isDragging:a,onDragStart:u,onDragOver:c,onDragEnd:f,onDragEnter:p,onDragLeave:v}){const{conditionalStyle:m,classNames:y}=o2(n,e.conditionalCellStyles,["rdt_TableCell"]);return N.createElement(jj,{id:t,"data-column-id":e.id,role:"cell",className:y,"data-tag":i,$cellStyle:e.style,$renderAsCell:!!e.cell,$allowOverflow:e.allowOverflow,button:e.button,center:e.center,compact:e.compact,grow:e.grow,hide:e.hide,maxWidth:e.maxWidth,minWidth:e.minWidth,right:e.right,width:e.width,$wrapCell:e.wrap,style:m,$isDragging:a,onDragStart:u,onDragOver:c,onDragEnd:f,onDragEnter:p,onDragLeave:v},!e.cell&&N.createElement("div",{"data-tag":i},function(b,E,A,S){return E?A&&typeof A=="function"?A(b,S):E(b,S):null}(n,e.selector,e.format,r)),e.cell&&e.cell(n,r,e,t))});const aT="input";var l2=N.memo(function({name:t,component:e=aT,componentOptions:n={style:{}},indeterminate:r=!1,checked:i=!1,disabled:a=!1,onClick:u=yr}){const c=e,f=c!==aT?n.style:(v=>Object.assign(Object.assign({fontSize:"18px"},!v&&{cursor:"pointer"}),{padding:0,marginTop:"1px",verticalAlign:"middle",position:"relative"}))(a),p=N.useMemo(()=>function(v,...m){let y;return Object.keys(v).map(b=>v[b]).forEach((b,E)=>{typeof b=="function"&&(y=Object.assign(Object.assign({},v),{[Object.keys(v)[E]]:b(...m)}))}),y||v}(n,r),[n,r]);return N.createElement(c,Object.assign({type:"checkbox",ref:v=>{v&&(v.indeterminate=r)},style:f,onClick:a?yr:u,name:t,"aria-label":t,checked:i,disabled:a},p,{onChange:yr}))});const Hj=Nt(Fh)`
|
|
186
|
+
flex: 0 0 48px;
|
|
187
|
+
min-width: 48px;
|
|
188
|
+
justify-content: center;
|
|
189
|
+
align-items: center;
|
|
190
|
+
user-select: none;
|
|
191
|
+
white-space: nowrap;
|
|
192
|
+
`;function qj({name:t,keyField:e,row:n,rowCount:r,selected:i,selectableRowsComponent:a,selectableRowsComponentProps:u,selectableRowsSingle:c,selectableRowDisabled:f,onSelectedRow:p}){const v=!(!f||!f(n));return N.createElement(Hj,{onClick:m=>m.stopPropagation(),className:"rdt_TableCell",$noPadding:!0},N.createElement(l2,{name:t,component:a,componentOptions:u,checked:i,"aria-checked":i,onClick:()=>{p({type:"SELECT_SINGLE_ROW",row:n,isSelected:i,keyField:e,rowCount:r,singleSelect:c})},disabled:v}))}const Uj=Nt.button`
|
|
193
|
+
display: inline-flex;
|
|
194
|
+
align-items: center;
|
|
195
|
+
user-select: none;
|
|
196
|
+
white-space: nowrap;
|
|
197
|
+
border: none;
|
|
198
|
+
background-color: transparent;
|
|
199
|
+
${({theme:t})=>t.expanderButton.style};
|
|
200
|
+
`;function Wj({disabled:t=!1,expanded:e=!1,expandableIcon:n,id:r,row:i,onToggled:a}){const u=e?n.expanded:n.collapsed;return N.createElement(Uj,{"aria-disabled":t,onClick:()=>a&&a(i),"data-testid":`expander-button-${r}`,disabled:t,"aria-label":e?"Collapse Row":"Expand Row",role:"button",type:"button"},u)}const Vj=Nt(Fh)`
|
|
201
|
+
white-space: nowrap;
|
|
202
|
+
font-weight: 400;
|
|
203
|
+
min-width: 48px;
|
|
204
|
+
${({theme:t})=>t.expanderCell.style};
|
|
205
|
+
`;function Gj({row:t,expanded:e=!1,expandableIcon:n,id:r,onToggled:i,disabled:a=!1}){return N.createElement(Vj,{onClick:u=>u.stopPropagation(),$noPadding:!0},N.createElement(Wj,{id:r,row:t,expanded:e,expandableIcon:n,disabled:a,onToggled:i}))}const Bj=Nt.div`
|
|
206
|
+
width: 100%;
|
|
207
|
+
box-sizing: border-box;
|
|
208
|
+
${({theme:t})=>t.expanderRow.style};
|
|
209
|
+
${({$extendedRowStyle:t})=>t};
|
|
210
|
+
`;var Kj=N.memo(function({data:t,ExpanderComponent:e,expanderComponentProps:n,extendedRowStyle:r,extendedClassNames:i}){const a=["rdt_ExpanderRow",...i.split(" ").filter(u=>u!=="rdt_TableRow")].join(" ");return N.createElement(Bj,{className:a,$extendedRowStyle:r},N.createElement(e,Object.assign({data:t},n)))});const o1="allowRowEvents";var my,NS,sT;(function(t){t.LTR="ltr",t.RTL="rtl",t.AUTO="auto"})(my||(my={})),function(t){t.LEFT="left",t.RIGHT="right",t.CENTER="center"}(NS||(NS={})),function(t){t.SM="sm",t.MD="md",t.LG="lg"}(sT||(sT={}));const Xj=wr`
|
|
211
|
+
&:hover {
|
|
212
|
+
${({$highlightOnHover:t,theme:e})=>t&&e.rows.highlightOnHoverStyle};
|
|
213
|
+
}
|
|
214
|
+
`,Yj=wr`
|
|
215
|
+
&:hover {
|
|
216
|
+
cursor: pointer;
|
|
217
|
+
}
|
|
218
|
+
`,Qj=Nt.div.attrs(t=>({style:t.style}))`
|
|
219
|
+
display: flex;
|
|
220
|
+
align-items: stretch;
|
|
221
|
+
align-content: stretch;
|
|
222
|
+
width: 100%;
|
|
223
|
+
box-sizing: border-box;
|
|
224
|
+
${({theme:t})=>t.rows.style};
|
|
225
|
+
${({$dense:t,theme:e})=>t&&e.rows.denseStyle};
|
|
226
|
+
${({$striped:t,theme:e})=>t&&e.rows.stripedStyle};
|
|
227
|
+
${({$highlightOnHover:t})=>t&&Xj};
|
|
228
|
+
${({$pointerOnHover:t})=>t&&Yj};
|
|
229
|
+
${({$selected:t,theme:e})=>t&&e.rows.selectedHighlightStyle};
|
|
230
|
+
${({$conditionalStyle:t})=>t};
|
|
231
|
+
`;function Zj({columns:t=[],conditionalRowStyles:e=[],defaultExpanded:n=!1,defaultExpanderDisabled:r=!1,dense:i=!1,expandableIcon:a,expandableRows:u=!1,expandableRowsComponent:c,expandableRowsComponentProps:f,expandableRowsHideExpander:p,expandOnRowClicked:v=!1,expandOnRowDoubleClicked:m=!1,highlightOnHover:y=!1,id:b,expandableInheritConditionalStyles:E,keyField:A,onRowClicked:S=yr,onRowDoubleClicked:O=yr,onRowMouseEnter:k=yr,onRowMouseLeave:T=yr,onRowExpandToggled:C=yr,onSelectedRow:w=yr,pointerOnHover:R=!1,row:I,rowCount:$,rowIndex:U,selectableRowDisabled:G=null,selectableRows:Y=!1,selectableRowsComponent:Z,selectableRowsComponentProps:ee,selectableRowsHighlight:ae=!1,selectableRowsSingle:de=!1,selected:Q,striped:re=!1,draggingColumnId:z,onDragStart:B,onDragOver:F,onDragEnd:W,onDragEnter:X,onDragLeave:le}){const[ce,oe]=N.useState(n);N.useEffect(()=>{oe(n)},[n]);const q=N.useCallback(()=>{oe(!ce),C(!ce,I)},[ce,C,I]),ie=R||u&&(v||m),J=N.useCallback(xe=>{xe.target.getAttribute("data-tag")===o1&&(S(I,xe),!r&&u&&v&&q())},[r,v,u,q,S,I]),be=N.useCallback(xe=>{xe.target.getAttribute("data-tag")===o1&&(O(I,xe),!r&&u&&m&&q())},[r,m,u,q,O,I]),Ee=N.useCallback(xe=>{k(I,xe)},[k,I]),Re=N.useCallback(xe=>{T(I,xe)},[T,I]),Me=xh(I,A),{conditionalStyle:qe,classNames:Je}=o2(I,e,["rdt_TableRow"]),ye=ae&&Q,Ce=E?qe:{},ke=re&&U%2==0;return N.createElement(N.Fragment,null,N.createElement(Qj,{id:`row-${b}`,role:"row",$striped:ke,$highlightOnHover:y,$pointerOnHover:!r&&ie,$dense:i,onClick:J,onDoubleClick:be,onMouseEnter:Ee,onMouseLeave:Re,className:Je,$selected:ye,$conditionalStyle:qe},Y&&N.createElement(qj,{name:`select-row-${Me}`,keyField:A,row:I,rowCount:$,selected:Q,selectableRowsComponent:Z,selectableRowsComponentProps:ee,selectableRowDisabled:G,selectableRowsSingle:de,onSelectedRow:w}),u&&!p&&N.createElement(Gj,{id:Me,expandableIcon:a,expanded:ce,row:I,onToggled:q,disabled:r}),t.map(xe=>xe.omit?null:N.createElement(zj,{id:`cell-${xe.id}-${Me}`,key:`cell-${xe.id}-${Me}`,dataTag:xe.ignoreRowClick||xe.button?null:o1,column:xe,row:I,rowIndex:U,isDragging:Am(z,xe.id),onDragStart:B,onDragOver:F,onDragEnd:W,onDragEnter:X,onDragLeave:le}))),u&&ce&&N.createElement(Kj,{key:`expander-${Me}`,data:I,extendedRowStyle:Ce,extendedClassNames:Je,ExpanderComponent:c,expanderComponentProps:f}))}const Jj=Nt.span`
|
|
232
|
+
padding: 2px;
|
|
233
|
+
color: inherit;
|
|
234
|
+
flex-grow: 0;
|
|
235
|
+
flex-shrink: 0;
|
|
236
|
+
${({$sortActive:t})=>t?"opacity: 1":"opacity: 0"};
|
|
237
|
+
${({$sortDirection:t})=>t==="desc"&&"transform: rotate(180deg)"};
|
|
238
|
+
`,e9=({sortActive:t,sortDirection:e})=>je.createElement(Jj,{$sortActive:t,$sortDirection:e},"▲"),t9=Nt(s2)`
|
|
239
|
+
${({button:t})=>t&&"text-align: center"};
|
|
240
|
+
${({theme:t,$isDragging:e})=>e&&t.headCells.draggingStyle};
|
|
241
|
+
`,n9=wr`
|
|
242
|
+
cursor: pointer;
|
|
243
|
+
span.__rdt_custom_sort_icon__ {
|
|
244
|
+
i,
|
|
245
|
+
svg {
|
|
246
|
+
transform: 'translate3d(0, 0, 0)';
|
|
247
|
+
${({$sortActive:t})=>t?"opacity: 1":"opacity: 0"};
|
|
248
|
+
color: inherit;
|
|
249
|
+
font-size: 18px;
|
|
250
|
+
height: 18px;
|
|
251
|
+
width: 18px;
|
|
252
|
+
backface-visibility: hidden;
|
|
253
|
+
transform-style: preserve-3d;
|
|
254
|
+
transition-duration: 95ms;
|
|
255
|
+
transition-property: transform;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
&.asc i,
|
|
259
|
+
&.asc svg {
|
|
260
|
+
transform: rotate(180deg);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
${({$sortActive:t})=>!t&&wr`
|
|
265
|
+
&:hover,
|
|
266
|
+
&:focus {
|
|
267
|
+
opacity: 0.7;
|
|
268
|
+
|
|
269
|
+
span,
|
|
270
|
+
span.__rdt_custom_sort_icon__ * {
|
|
271
|
+
opacity: 0.7;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
`};
|
|
275
|
+
`,r9=Nt.div`
|
|
276
|
+
display: inline-flex;
|
|
277
|
+
align-items: center;
|
|
278
|
+
justify-content: inherit;
|
|
279
|
+
height: 100%;
|
|
280
|
+
width: 100%;
|
|
281
|
+
outline: none;
|
|
282
|
+
user-select: none;
|
|
283
|
+
overflow: hidden;
|
|
284
|
+
${({disabled:t})=>!t&&n9};
|
|
285
|
+
`,i9=Nt.div`
|
|
286
|
+
overflow: hidden;
|
|
287
|
+
white-space: nowrap;
|
|
288
|
+
text-overflow: ellipsis;
|
|
289
|
+
`;var o9=N.memo(function({column:t,disabled:e,draggingColumnId:n,selectedColumn:r={},sortDirection:i,sortIcon:a,sortServer:u,pagination:c,paginationServer:f,persistSelectedOnSort:p,selectableRowsVisibleOnly:v,onSort:m,onDragStart:y,onDragOver:b,onDragEnd:E,onDragEnter:A,onDragLeave:S}){N.useEffect(()=>{typeof t.selector=="string"&&console.error(`Warning: ${t.selector} is a string based column selector which has been deprecated as of v7 and will be removed in v8. Instead, use a selector function e.g. row => row[field]...`)},[]);const[O,k]=N.useState(!1),T=N.useRef(null);if(N.useEffect(()=>{T.current&&k(T.current.scrollWidth>T.current.clientWidth)},[O]),t.omit)return null;const C=()=>{if(!t.sortable&&!t.selector)return;let ee=i;Am(r.id,t.id)&&(ee=i===pu.ASC?pu.DESC:pu.ASC),m({type:"SORT_CHANGE",sortDirection:ee,selectedColumn:t,clearSelectedOnSort:c&&f&&!p||u||v})},w=ee=>N.createElement(e9,{sortActive:ee,sortDirection:i}),R=()=>N.createElement("span",{className:[i,"__rdt_custom_sort_icon__"].join(" ")},a),I=!(!t.sortable||!Am(r.id,t.id)),$=!t.sortable||e,U=t.sortable&&!a&&!t.right,G=t.sortable&&!a&&t.right,Y=t.sortable&&a&&!t.right,Z=t.sortable&&a&&t.right;return N.createElement(t9,{"data-column-id":t.id,className:"rdt_TableCol",$headCell:!0,allowOverflow:t.allowOverflow,button:t.button,compact:t.compact,grow:t.grow,hide:t.hide,maxWidth:t.maxWidth,minWidth:t.minWidth,right:t.right,center:t.center,width:t.width,draggable:t.reorder,$isDragging:Am(t.id,n),onDragStart:y,onDragOver:b,onDragEnd:E,onDragEnter:A,onDragLeave:S},t.name&&N.createElement(r9,{"data-column-id":t.id,"data-sort-id":t.id,role:"columnheader",tabIndex:0,className:"rdt_TableCol_Sortable",onClick:$?void 0:C,onKeyPress:$?void 0:ee=>{ee.key==="Enter"&&C()},$sortActive:!$&&I,disabled:$},!$&&Z&&R(),!$&&G&&w(I),typeof t.name=="string"?N.createElement(i9,{title:O?t.name:void 0,ref:T,"data-column-id":t.id},t.name):t.name,!$&&Y&&R(),!$&&U&&w(I)))});const a9=Nt(Fh)`
|
|
290
|
+
flex: 0 0 48px;
|
|
291
|
+
justify-content: center;
|
|
292
|
+
align-items: center;
|
|
293
|
+
user-select: none;
|
|
294
|
+
white-space: nowrap;
|
|
295
|
+
font-size: unset;
|
|
296
|
+
`;function s9({headCell:t=!0,rowData:e,keyField:n,allSelected:r,mergeSelections:i,selectedRows:a,selectableRowsComponent:u,selectableRowsComponentProps:c,selectableRowDisabled:f,onSelectAllRows:p}){const v=a.length>0&&!r,m=f?e.filter(E=>!f(E)):e,y=m.length===0,b=Math.min(e.length,m.length);return N.createElement(a9,{className:"rdt_TableCol",$headCell:t,$noPadding:!0},N.createElement(l2,{name:"select-all-rows",component:u,componentOptions:c,onClick:()=>{p({type:"SELECT_ALL_ROWS",rows:m,rowCount:b,mergeSelections:i,keyField:n})},checked:r,indeterminate:v,disabled:y}))}function u2(t=my.AUTO){const e=typeof window=="object",[n,r]=N.useState(!1);return N.useEffect(()=>{if(e)if(t!=="auto")r(t==="rtl");else{const i=!(!window.document||!window.document.createElement),a=document.getElementsByTagName("BODY")[0],u=document.getElementsByTagName("HTML")[0],c=a.dir==="rtl"||u.dir==="rtl";r(i&&c)}},[t,e]),n}const l9=Nt.div`
|
|
297
|
+
display: flex;
|
|
298
|
+
align-items: center;
|
|
299
|
+
flex: 1 0 auto;
|
|
300
|
+
height: 100%;
|
|
301
|
+
color: ${({theme:t})=>t.contextMenu.fontColor};
|
|
302
|
+
font-size: ${({theme:t})=>t.contextMenu.fontSize};
|
|
303
|
+
font-weight: 400;
|
|
304
|
+
`,u9=Nt.div`
|
|
305
|
+
display: flex;
|
|
306
|
+
align-items: center;
|
|
307
|
+
justify-content: flex-end;
|
|
308
|
+
flex-wrap: wrap;
|
|
309
|
+
`,lT=Nt.div`
|
|
310
|
+
position: absolute;
|
|
311
|
+
top: 0;
|
|
312
|
+
left: 0;
|
|
313
|
+
width: 100%;
|
|
314
|
+
height: 100%;
|
|
315
|
+
box-sizing: inherit;
|
|
316
|
+
z-index: 1;
|
|
317
|
+
align-items: center;
|
|
318
|
+
justify-content: space-between;
|
|
319
|
+
display: flex;
|
|
320
|
+
${({$rtl:t})=>t&&"direction: rtl"};
|
|
321
|
+
${({theme:t})=>t.contextMenu.style};
|
|
322
|
+
${({theme:t,$visible:e})=>e&&t.contextMenu.activeStyle};
|
|
323
|
+
`;function c9({contextMessage:t,contextActions:e,contextComponent:n,selectedCount:r,direction:i}){const a=u2(i),u=r>0;return n?N.createElement(lT,{$visible:u},N.cloneElement(n,{selectedCount:r})):N.createElement(lT,{$visible:u,$rtl:a},N.createElement(l9,null,((c,f,p)=>{if(f===0)return null;const v=f===1?c.singular:c.plural;return p?`${f} ${c.message||""} ${v}`:`${f} ${v} ${c.message||""}`})(t,r,a)),N.createElement(u9,null,e))}const f9=Nt.div`
|
|
324
|
+
position: relative;
|
|
325
|
+
box-sizing: border-box;
|
|
326
|
+
overflow: hidden;
|
|
327
|
+
display: flex;
|
|
328
|
+
flex: 1 1 auto;
|
|
329
|
+
align-items: center;
|
|
330
|
+
justify-content: space-between;
|
|
331
|
+
width: 100%;
|
|
332
|
+
flex-wrap: wrap;
|
|
333
|
+
${({theme:t})=>t.header.style}
|
|
334
|
+
`,d9=Nt.div`
|
|
335
|
+
flex: 1 0 auto;
|
|
336
|
+
color: ${({theme:t})=>t.header.fontColor};
|
|
337
|
+
font-size: ${({theme:t})=>t.header.fontSize};
|
|
338
|
+
font-weight: 400;
|
|
339
|
+
`,h9=Nt.div`
|
|
340
|
+
flex: 1 0 auto;
|
|
341
|
+
display: flex;
|
|
342
|
+
align-items: center;
|
|
343
|
+
justify-content: flex-end;
|
|
344
|
+
|
|
345
|
+
> * {
|
|
346
|
+
margin-left: 5px;
|
|
347
|
+
}
|
|
348
|
+
`,p9=({title:t,actions:e=null,contextMessage:n,contextActions:r,contextComponent:i,selectedCount:a,direction:u,showMenu:c=!0})=>N.createElement(f9,{className:"rdt_TableHeader",role:"heading","aria-level":1},N.createElement(d9,null,t),e&&N.createElement(h9,null,e),c&&N.createElement(c9,{contextMessage:n,contextActions:r,contextComponent:i,direction:u,selectedCount:a}));function c2(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function"){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}const m9={left:"flex-start",right:"flex-end",center:"center"},v9=Nt.header`
|
|
349
|
+
position: relative;
|
|
350
|
+
display: flex;
|
|
351
|
+
flex: 1 1 auto;
|
|
352
|
+
box-sizing: border-box;
|
|
353
|
+
align-items: center;
|
|
354
|
+
padding: 4px 16px 4px 24px;
|
|
355
|
+
width: 100%;
|
|
356
|
+
justify-content: ${({align:t})=>m9[t]};
|
|
357
|
+
flex-wrap: ${({$wrapContent:t})=>t?"wrap":"nowrap"};
|
|
358
|
+
${({theme:t})=>t.subHeader.style}
|
|
359
|
+
`,g9=t=>{var{align:e="right",wrapContent:n=!0}=t,r=c2(t,["align","wrapContent"]);return N.createElement(v9,Object.assign({align:e,$wrapContent:n},r))},y9=Nt.div`
|
|
360
|
+
display: flex;
|
|
361
|
+
flex-direction: column;
|
|
362
|
+
`,_9=Nt.div`
|
|
363
|
+
position: relative;
|
|
364
|
+
width: 100%;
|
|
365
|
+
border-radius: inherit;
|
|
366
|
+
${({$responsive:t,$fixedHeader:e})=>t&&wr`
|
|
367
|
+
overflow-x: auto;
|
|
368
|
+
|
|
369
|
+
// hidden prevents vertical scrolling in firefox when fixedHeader is disabled
|
|
370
|
+
overflow-y: ${e?"auto":"hidden"};
|
|
371
|
+
min-height: 0;
|
|
372
|
+
`};
|
|
373
|
+
|
|
374
|
+
${({$fixedHeader:t=!1,$fixedHeaderScrollHeight:e="100vh"})=>t&&wr`
|
|
375
|
+
max-height: ${e};
|
|
376
|
+
-webkit-overflow-scrolling: touch;
|
|
377
|
+
`};
|
|
378
|
+
|
|
379
|
+
${({theme:t})=>t.responsiveWrapper.style};
|
|
380
|
+
`,uT=Nt.div`
|
|
381
|
+
position: relative;
|
|
382
|
+
box-sizing: border-box;
|
|
383
|
+
width: 100%;
|
|
384
|
+
height: 100%;
|
|
385
|
+
${t=>t.theme.progress.style};
|
|
386
|
+
`,w9=Nt.div`
|
|
387
|
+
position: relative;
|
|
388
|
+
width: 100%;
|
|
389
|
+
${({theme:t})=>t.tableWrapper.style};
|
|
390
|
+
`,S9=Nt(Fh)`
|
|
391
|
+
white-space: nowrap;
|
|
392
|
+
${({theme:t})=>t.expanderCell.style};
|
|
393
|
+
`,C9=Nt.div`
|
|
394
|
+
box-sizing: border-box;
|
|
395
|
+
width: 100%;
|
|
396
|
+
height: 100%;
|
|
397
|
+
${({theme:t})=>t.noData.style};
|
|
398
|
+
`,b9=()=>je.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},je.createElement("path",{d:"M7 10l5 5 5-5z"}),je.createElement("path",{d:"M0 0h24v24H0z",fill:"none"})),E9=Nt.select`
|
|
399
|
+
cursor: pointer;
|
|
400
|
+
height: 24px;
|
|
401
|
+
max-width: 100%;
|
|
402
|
+
user-select: none;
|
|
403
|
+
padding-left: 8px;
|
|
404
|
+
padding-right: 24px;
|
|
405
|
+
box-sizing: content-box;
|
|
406
|
+
font-size: inherit;
|
|
407
|
+
color: inherit;
|
|
408
|
+
border: none;
|
|
409
|
+
background-color: transparent;
|
|
410
|
+
appearance: none;
|
|
411
|
+
direction: ltr;
|
|
412
|
+
flex-shrink: 0;
|
|
413
|
+
|
|
414
|
+
&::-ms-expand {
|
|
415
|
+
display: none;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
&:disabled::-ms-expand {
|
|
419
|
+
background: #f60;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
option {
|
|
423
|
+
color: initial;
|
|
424
|
+
}
|
|
425
|
+
`,x9=Nt.div`
|
|
426
|
+
position: relative;
|
|
427
|
+
flex-shrink: 0;
|
|
428
|
+
font-size: inherit;
|
|
429
|
+
color: inherit;
|
|
430
|
+
margin-top: 1px;
|
|
431
|
+
|
|
432
|
+
svg {
|
|
433
|
+
top: 0;
|
|
434
|
+
right: 0;
|
|
435
|
+
color: inherit;
|
|
436
|
+
position: absolute;
|
|
437
|
+
fill: currentColor;
|
|
438
|
+
width: 24px;
|
|
439
|
+
height: 24px;
|
|
440
|
+
display: inline-block;
|
|
441
|
+
user-select: none;
|
|
442
|
+
pointer-events: none;
|
|
443
|
+
}
|
|
444
|
+
`,T9=t=>{var{defaultValue:e,onChange:n}=t,r=c2(t,["defaultValue","onChange"]);return N.createElement(x9,null,N.createElement(E9,Object.assign({onChange:n,defaultValue:e},r)),N.createElement(b9,null))},He={columns:[],data:[],title:"",keyField:"id",selectableRows:!1,selectableRowsHighlight:!1,selectableRowsNoSelectAll:!1,selectableRowSelected:null,selectableRowDisabled:null,selectableRowsComponent:"input",selectableRowsComponentProps:{},selectableRowsVisibleOnly:!1,selectableRowsSingle:!1,clearSelectedRows:!1,expandableRows:!1,expandableRowDisabled:null,expandableRowExpanded:null,expandOnRowClicked:!1,expandableRowsHideExpander:!1,expandOnRowDoubleClicked:!1,expandableInheritConditionalStyles:!1,expandableRowsComponent:function(){return je.createElement("div",null,"To add an expander pass in a component instance via ",je.createElement("strong",null,"expandableRowsComponent"),". You can then access props.data from this component.")},expandableIcon:{collapsed:je.createElement(()=>je.createElement("svg",{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},je.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),je.createElement("path",{d:"M0-.25h24v24H0z",fill:"none"})),null),expanded:je.createElement(()=>je.createElement("svg",{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},je.createElement("path",{d:"M7.41 7.84L12 12.42l4.59-4.58L18 9.25l-6 6-6-6z"}),je.createElement("path",{d:"M0-.75h24v24H0z",fill:"none"})),null)},expandableRowsComponentProps:{},progressPending:!1,progressComponent:je.createElement("div",{style:{fontSize:"24px",fontWeight:700,padding:"24px"}},"Loading..."),persistTableHead:!1,sortIcon:null,sortFunction:null,sortServer:!1,striped:!1,highlightOnHover:!1,pointerOnHover:!1,noContextMenu:!1,contextMessage:{singular:"item",plural:"items",message:"selected"},actions:null,contextActions:null,contextComponent:null,defaultSortFieldId:null,defaultSortAsc:!0,responsive:!0,noDataComponent:je.createElement("div",{style:{padding:"24px"}},"There are no records to display"),disabled:!1,noTableHead:!1,noHeader:!1,subHeader:!1,subHeaderAlign:NS.RIGHT,subHeaderWrap:!0,subHeaderComponent:null,fixedHeader:!1,fixedHeaderScrollHeight:"100vh",pagination:!1,paginationServer:!1,paginationServerOptions:{persistSelectedOnSort:!1,persistSelectedOnPageChange:!1},paginationDefaultPage:1,paginationResetDefaultPage:!1,paginationTotalRows:0,paginationPerPage:10,paginationRowsPerPageOptions:[10,15,20,25,30],paginationComponent:null,paginationComponentOptions:{},paginationIconFirstPage:je.createElement(()=>je.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},je.createElement("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),je.createElement("path",{fill:"none",d:"M24 24H0V0h24v24z"})),null),paginationIconLastPage:je.createElement(()=>je.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},je.createElement("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),je.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"})),null),paginationIconNext:je.createElement(()=>je.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},je.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),je.createElement("path",{d:"M0 0h24v24H0z",fill:"none"})),null),paginationIconPrevious:je.createElement(()=>je.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},je.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),je.createElement("path",{d:"M0 0h24v24H0z",fill:"none"})),null),dense:!1,conditionalRowStyles:[],theme:"default",customStyles:{},direction:my.AUTO,onChangePage:yr,onChangeRowsPerPage:yr,onRowClicked:yr,onRowDoubleClicked:yr,onRowMouseEnter:yr,onRowMouseLeave:yr,onRowExpandToggled:yr,onSelectedRowsChange:yr,onSort:yr,onColumnOrderChange:yr},O9={rowsPerPageText:"Rows per page:",rangeSeparatorText:"of",noRowsPerPage:!1,selectAllRowsItem:!1,selectAllRowsItemText:"All"},A9=Nt.nav`
|
|
445
|
+
display: flex;
|
|
446
|
+
flex: 1 1 auto;
|
|
447
|
+
justify-content: flex-end;
|
|
448
|
+
align-items: center;
|
|
449
|
+
box-sizing: border-box;
|
|
450
|
+
padding-right: 8px;
|
|
451
|
+
padding-left: 8px;
|
|
452
|
+
width: 100%;
|
|
453
|
+
${({theme:t})=>t.pagination.style};
|
|
454
|
+
`,S0=Nt.button`
|
|
455
|
+
position: relative;
|
|
456
|
+
display: block;
|
|
457
|
+
user-select: none;
|
|
458
|
+
border: none;
|
|
459
|
+
${({theme:t})=>t.pagination.pageButtonsStyle};
|
|
460
|
+
${({$isRTL:t})=>t&&"transform: scale(-1, -1)"};
|
|
461
|
+
`,R9=Nt.div`
|
|
462
|
+
display: flex;
|
|
463
|
+
align-items: center;
|
|
464
|
+
border-radius: 4px;
|
|
465
|
+
white-space: nowrap;
|
|
466
|
+
${a2`
|
|
467
|
+
width: 100%;
|
|
468
|
+
justify-content: space-around;
|
|
469
|
+
`};
|
|
470
|
+
`,f2=Nt.span`
|
|
471
|
+
flex-shrink: 1;
|
|
472
|
+
user-select: none;
|
|
473
|
+
`,k9=Nt(f2)`
|
|
474
|
+
margin: 0 24px;
|
|
475
|
+
`,N9=Nt(f2)`
|
|
476
|
+
margin: 0 4px;
|
|
477
|
+
`;var P9=N.memo(function({rowsPerPage:t,rowCount:e,currentPage:n,direction:r=He.direction,paginationRowsPerPageOptions:i=He.paginationRowsPerPageOptions,paginationIconLastPage:a=He.paginationIconLastPage,paginationIconFirstPage:u=He.paginationIconFirstPage,paginationIconNext:c=He.paginationIconNext,paginationIconPrevious:f=He.paginationIconPrevious,paginationComponentOptions:p=He.paginationComponentOptions,onChangeRowsPerPage:v=He.onChangeRowsPerPage,onChangePage:m=He.onChangePage}){const y=(()=>{const ee=typeof window=="object";function ae(){return{width:ee?window.innerWidth:void 0,height:ee?window.innerHeight:void 0}}const[de,Q]=N.useState(ae);return N.useEffect(()=>{if(!ee)return()=>null;function re(){Q(ae())}return window.addEventListener("resize",re),()=>window.removeEventListener("resize",re)},[]),de})(),b=u2(r),E=y.width&&y.width>599,A=Om(e,t),S=n*t,O=S-t+1,k=n===1,T=n===A,C=Object.assign(Object.assign({},O9),p),w=n===A?`${O}-${e} ${C.rangeSeparatorText} ${e}`:`${O}-${S} ${C.rangeSeparatorText} ${e}`,R=N.useCallback(()=>m(n-1),[n,m]),I=N.useCallback(()=>m(n+1),[n,m]),$=N.useCallback(()=>m(1),[m]),U=N.useCallback(()=>m(Om(e,t)),[m,e,t]),G=N.useCallback(ee=>v(Number(ee.target.value),n),[n,v]),Y=i.map(ee=>N.createElement("option",{key:ee,value:ee},ee));C.selectAllRowsItem&&Y.push(N.createElement("option",{key:-1,value:e},C.selectAllRowsItemText));const Z=N.createElement(T9,{onChange:G,defaultValue:t,"aria-label":C.rowsPerPageText},Y);return N.createElement(A9,{className:"rdt_Pagination"},!C.noRowsPerPage&&E&&N.createElement(N.Fragment,null,N.createElement(N9,null,C.rowsPerPageText),Z),E&&N.createElement(k9,null,w),N.createElement(R9,null,N.createElement(S0,{id:"pagination-first-page",type:"button","aria-label":"First Page","aria-disabled":k,onClick:$,disabled:k,$isRTL:b},u),N.createElement(S0,{id:"pagination-previous-page",type:"button","aria-label":"Previous Page","aria-disabled":k,onClick:R,disabled:k,$isRTL:b},f),!C.noRowsPerPage&&!E&&Z,N.createElement(S0,{id:"pagination-next-page",type:"button","aria-label":"Next Page","aria-disabled":T,onClick:I,disabled:T,$isRTL:b},c),N.createElement(S0,{id:"pagination-last-page",type:"button","aria-label":"Last Page","aria-disabled":T,onClick:U,disabled:T,$isRTL:b},a)))});const Dc=(t,e)=>{const n=N.useRef(!0);N.useEffect(()=>{n.current?n.current=!1:t()},e)};function D9(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var L9=function(t){return function(e){return!!e&&typeof e=="object"}(t)&&!function(e){var n=Object.prototype.toString.call(e);return n==="[object RegExp]"||n==="[object Date]"||function(r){return r.$$typeof===M9}(e)}(t)},M9=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.element"):60103;function Gm(t,e){return e.clone!==!1&&e.isMergeableObject(t)?Th((n=t,Array.isArray(n)?[]:{}),t,e):t;var n}function I9(t,e,n){return t.concat(e).map(function(r){return Gm(r,n)})}function cT(t){return Object.keys(t).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(n){return Object.propertyIsEnumerable.call(e,n)}):[]}(t))}function fT(t,e){try{return e in t}catch{return!1}}function F9(t,e,n){var r={};return n.isMergeableObject(t)&&cT(t).forEach(function(i){r[i]=Gm(t[i],n)}),cT(e).forEach(function(i){(function(a,u){return fT(a,u)&&!(Object.hasOwnProperty.call(a,u)&&Object.propertyIsEnumerable.call(a,u))})(t,i)||(fT(t,i)&&n.isMergeableObject(e[i])?r[i]=function(a,u){if(!u.customMerge)return Th;var c=u.customMerge(a);return typeof c=="function"?c:Th}(i,n)(t[i],e[i],n):r[i]=Gm(e[i],n))}),r}function Th(t,e,n){(n=n||{}).arrayMerge=n.arrayMerge||I9,n.isMergeableObject=n.isMergeableObject||L9,n.cloneUnlessOtherwiseSpecified=Gm;var r=Array.isArray(e);return r===Array.isArray(t)?r?n.arrayMerge(t,e,n):F9(t,e,n):Gm(e,n)}Th.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,r){return Th(n,r,e)},{})};var $9=D9(Th);const dT={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)"},background:{default:"#FFFFFF"},context:{background:"#e3f2fd",text:"rgba(0, 0, 0, 0.87)"},divider:{default:"rgba(0,0,0,.12)"},button:{default:"rgba(0,0,0,.54)",focus:"rgba(0,0,0,.12)",hover:"rgba(0,0,0,.12)",disabled:"rgba(0, 0, 0, .18)"},selected:{default:"#e3f2fd",text:"rgba(0, 0, 0, 0.87)"},highlightOnHover:{default:"#EEEEEE",text:"rgba(0, 0, 0, 0.87)"},striped:{default:"#FAFAFA",text:"rgba(0, 0, 0, 0.87)"}},hT={default:dT,light:dT,dark:{text:{primary:"#FFFFFF",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(0,0,0,.12)"},background:{default:"#424242"},context:{background:"#E91E63",text:"#FFFFFF"},divider:{default:"rgba(81, 81, 81, 1)"},button:{default:"#FFFFFF",focus:"rgba(255, 255, 255, .54)",hover:"rgba(255, 255, 255, .12)",disabled:"rgba(255, 255, 255, .18)"},selected:{default:"rgba(0, 0, 0, .7)",text:"#FFFFFF"},highlightOnHover:{default:"rgba(0, 0, 0, .7)",text:"#FFFFFF"},striped:{default:"rgba(0, 0, 0, .87)",text:"#FFFFFF"}}};function j9(t,e,n,r){const[i,a]=N.useState(()=>oT(t)),[u,c]=N.useState(""),f=N.useRef("");Dc(()=>{a(oT(t))},[t]);const p=N.useCallback(S=>{var O,k,T;const{attributes:C}=S.target,w=(O=C.getNamedItem("data-column-id"))===null||O===void 0?void 0:O.value;w&&(f.current=((T=(k=i[w0(i,w)])===null||k===void 0?void 0:k.id)===null||T===void 0?void 0:T.toString())||"",c(f.current))},[i]),v=N.useCallback(S=>{var O;const{attributes:k}=S.target,T=(O=k.getNamedItem("data-column-id"))===null||O===void 0?void 0:O.value;if(T&&f.current&&T!==f.current){const C=w0(i,f.current),w=w0(i,T),R=[...i];R[C]=i[w],R[w]=i[C],a(R),e(R)}},[e,i]),m=N.useCallback(S=>{S.preventDefault()},[]),y=N.useCallback(S=>{S.preventDefault()},[]),b=N.useCallback(S=>{S.preventDefault(),f.current="",c("")},[]),E=function(S=!1){return S?pu.ASC:pu.DESC}(r),A=N.useMemo(()=>i[w0(i,n?.toString())]||{},[n,i]);return{tableColumns:i,draggingColumnId:u,handleDragStart:p,handleDragEnter:v,handleDragOver:m,handleDragLeave:y,handleDragEnd:b,defaultSortDirection:E,defaultSortColumn:A}}var z9=N.memo(function(t){const{data:e=He.data,columns:n=He.columns,title:r=He.title,actions:i=He.actions,keyField:a=He.keyField,striped:u=He.striped,highlightOnHover:c=He.highlightOnHover,pointerOnHover:f=He.pointerOnHover,dense:p=He.dense,selectableRows:v=He.selectableRows,selectableRowsSingle:m=He.selectableRowsSingle,selectableRowsHighlight:y=He.selectableRowsHighlight,selectableRowsNoSelectAll:b=He.selectableRowsNoSelectAll,selectableRowsVisibleOnly:E=He.selectableRowsVisibleOnly,selectableRowSelected:A=He.selectableRowSelected,selectableRowDisabled:S=He.selectableRowDisabled,selectableRowsComponent:O=He.selectableRowsComponent,selectableRowsComponentProps:k=He.selectableRowsComponentProps,onRowExpandToggled:T=He.onRowExpandToggled,onSelectedRowsChange:C=He.onSelectedRowsChange,expandableIcon:w=He.expandableIcon,onChangeRowsPerPage:R=He.onChangeRowsPerPage,onChangePage:I=He.onChangePage,paginationServer:$=He.paginationServer,paginationServerOptions:U=He.paginationServerOptions,paginationTotalRows:G=He.paginationTotalRows,paginationDefaultPage:Y=He.paginationDefaultPage,paginationResetDefaultPage:Z=He.paginationResetDefaultPage,paginationPerPage:ee=He.paginationPerPage,paginationRowsPerPageOptions:ae=He.paginationRowsPerPageOptions,paginationIconLastPage:de=He.paginationIconLastPage,paginationIconFirstPage:Q=He.paginationIconFirstPage,paginationIconNext:re=He.paginationIconNext,paginationIconPrevious:z=He.paginationIconPrevious,paginationComponent:B=He.paginationComponent,paginationComponentOptions:F=He.paginationComponentOptions,responsive:W=He.responsive,progressPending:X=He.progressPending,progressComponent:le=He.progressComponent,persistTableHead:ce=He.persistTableHead,noDataComponent:oe=He.noDataComponent,disabled:q=He.disabled,noTableHead:ie=He.noTableHead,noHeader:J=He.noHeader,fixedHeader:be=He.fixedHeader,fixedHeaderScrollHeight:Ee=He.fixedHeaderScrollHeight,pagination:Re=He.pagination,subHeader:Me=He.subHeader,subHeaderAlign:qe=He.subHeaderAlign,subHeaderWrap:Je=He.subHeaderWrap,subHeaderComponent:ye=He.subHeaderComponent,noContextMenu:Ce=He.noContextMenu,contextMessage:ke=He.contextMessage,contextActions:xe=He.contextActions,contextComponent:Fe=He.contextComponent,expandableRows:Ae=He.expandableRows,onRowClicked:ze=He.onRowClicked,onRowDoubleClicked:nt=He.onRowDoubleClicked,onRowMouseEnter:ct=He.onRowMouseEnter,onRowMouseLeave:Ge=He.onRowMouseLeave,sortIcon:yt=He.sortIcon,onSort:Bt=He.onSort,sortFunction:$n=He.sortFunction,sortServer:Yt=He.sortServer,expandableRowsComponent:Yr=He.expandableRowsComponent,expandableRowsComponentProps:lr=He.expandableRowsComponentProps,expandableRowDisabled:Dr=He.expandableRowDisabled,expandableRowsHideExpander:Xe=He.expandableRowsHideExpander,expandOnRowClicked:it=He.expandOnRowClicked,expandOnRowDoubleClicked:Mt=He.expandOnRowDoubleClicked,expandableRowExpanded:Zn=He.expandableRowExpanded,expandableInheritConditionalStyles:pn=He.expandableInheritConditionalStyles,defaultSortFieldId:Qr=He.defaultSortFieldId,defaultSortAsc:br=He.defaultSortAsc,clearSelectedRows:xo=He.clearSelectedRows,conditionalRowStyles:To=He.conditionalRowStyles,theme:Er=He.theme,customStyles:Ai=He.customStyles,direction:en=He.direction,onColumnOrderChange:bs=He.onColumnOrderChange,className:Cl}=t,{tableColumns:rn,draggingColumnId:mn,handleDragStart:Jn,handleDragEnter:xr,handleDragOver:di,handleDragLeave:Ra,handleDragEnd:hi,defaultSortDirection:Es,defaultSortColumn:Ri}=j9(n,bs,Qr,br),[{rowsPerPage:Lr,currentPage:er,selectedRows:Jo,allSelected:Zr,selectedCount:Cf,selectedColumn:ki,sortDirection:Jr,toggleOnSelectedRowsChange:bf},ro]=N.useReducer(Rj,{allSelected:!1,selectedCount:0,selectedRows:[],selectedColumn:Ri,toggleOnSelectedRowsChange:!1,sortDirection:Es,currentPage:Y,rowsPerPage:ee,selectedRowsFlag:!1,contextMessage:He.contextMessage}),{persistSelectedOnSort:Ef=!1,persistSelectedOnPageChange:xs=!1}=U,bu=!(!$||!xs&&!Ef),xf=Re&&!X&&e.length>0,Tf=B||P9,Kh=N.useMemo(()=>((ut={},Rt="default",Cn="default")=>{const ur=hT[Rt]?Rt:Cn;return $9({table:{style:{color:(at=hT[ur]).text.primary,backgroundColor:at.background.default}},tableWrapper:{style:{display:"table"}},responsiveWrapper:{style:{}},header:{style:{fontSize:"22px",color:at.text.primary,backgroundColor:at.background.default,minHeight:"56px",paddingLeft:"16px",paddingRight:"8px"}},subHeader:{style:{backgroundColor:at.background.default,minHeight:"52px"}},head:{style:{color:at.text.primary,fontSize:"12px",fontWeight:500}},headRow:{style:{backgroundColor:at.background.default,minHeight:"52px",borderBottomWidth:"1px",borderBottomColor:at.divider.default,borderBottomStyle:"solid"},denseStyle:{minHeight:"32px"}},headCells:{style:{paddingLeft:"16px",paddingRight:"16px"},draggingStyle:{cursor:"move"}},contextMenu:{style:{backgroundColor:at.context.background,fontSize:"18px",fontWeight:400,color:at.context.text,paddingLeft:"16px",paddingRight:"8px",transform:"translate3d(0, -100%, 0)",transitionDuration:"125ms",transitionTimingFunction:"cubic-bezier(0, 0, 0.2, 1)",willChange:"transform"},activeStyle:{transform:"translate3d(0, 0, 0)"}},cells:{style:{paddingLeft:"16px",paddingRight:"16px",wordBreak:"break-word"},draggingStyle:{}},rows:{style:{fontSize:"13px",fontWeight:400,color:at.text.primary,backgroundColor:at.background.default,minHeight:"48px","&:not(:last-of-type)":{borderBottomStyle:"solid",borderBottomWidth:"1px",borderBottomColor:at.divider.default}},denseStyle:{minHeight:"32px"},selectedHighlightStyle:{"&:nth-of-type(n)":{color:at.selected.text,backgroundColor:at.selected.default,borderBottomColor:at.background.default}},highlightOnHoverStyle:{color:at.highlightOnHover.text,backgroundColor:at.highlightOnHover.default,transitionDuration:"0.15s",transitionProperty:"background-color",borderBottomColor:at.background.default,outlineStyle:"solid",outlineWidth:"1px",outlineColor:at.background.default},stripedStyle:{color:at.striped.text,backgroundColor:at.striped.default}},expanderRow:{style:{color:at.text.primary,backgroundColor:at.background.default}},expanderCell:{style:{flex:"0 0 48px"}},expanderButton:{style:{color:at.button.default,fill:at.button.default,backgroundColor:"transparent",borderRadius:"2px",transition:"0.25s",height:"100%",width:"100%","&:hover:enabled":{cursor:"pointer"},"&:disabled":{color:at.button.disabled},"&:hover:not(:disabled)":{cursor:"pointer",backgroundColor:at.button.hover},"&:focus":{outline:"none",backgroundColor:at.button.focus},svg:{margin:"auto"}}},pagination:{style:{color:at.text.secondary,fontSize:"13px",minHeight:"56px",backgroundColor:at.background.default,borderTopStyle:"solid",borderTopWidth:"1px",borderTopColor:at.divider.default},pageButtonsStyle:{borderRadius:"50%",height:"40px",width:"40px",padding:"8px",margin:"px",cursor:"pointer",transition:"0.4s",color:at.button.default,fill:at.button.default,backgroundColor:"transparent","&:disabled":{cursor:"unset",color:at.button.disabled,fill:at.button.disabled},"&:hover:not(:disabled)":{backgroundColor:at.button.hover},"&:focus":{outline:"none",backgroundColor:at.button.focus}}},noData:{style:{display:"flex",alignItems:"center",justifyContent:"center",color:at.text.primary,backgroundColor:at.background.default}},progress:{style:{display:"flex",alignItems:"center",justifyContent:"center",color:at.text.primary,backgroundColor:at.background.default}}},ut);var at})(Ai,Er),[Ai,Er]),bl=N.useMemo(()=>Object.assign({},en!=="auto"&&{dir:en}),[en]),Tt=N.useMemo(()=>{if(Yt)return e;if(ki?.sortFunction&&typeof ki.sortFunction=="function"){const ut=ki.sortFunction,Rt=Jr===pu.ASC?ut:(Cn,ur)=>-1*ut(Cn,ur);return[...e].sort(Rt)}return function(ut,Rt,Cn,ur){return Rt?ur&&typeof ur=="function"?ur(ut.slice(0),Rt,Cn):ut.slice(0).sort((at,Na)=>{const ea=Rt(at),Pi=Rt(Na);if(Cn==="asc"){if(ea<Pi)return-1;if(ea>Pi)return 1}if(Cn==="desc"){if(ea>Pi)return-1;if(ea<Pi)return 1}return 0}):ut}(e,ki?.selector,Jr,$n)},[Yt,ki,Jr,e,$n]),Oo=N.useMemo(()=>{if(Re&&!$){const ut=er*Lr,Rt=ut-Lr;return Tt.slice(Rt,ut)}return Tt},[er,Re,$,Lr,Tt]),Eu=N.useCallback(ut=>{ro(ut)},[]),Of=N.useCallback(ut=>{ro(ut)},[]),El=N.useCallback(ut=>{ro(ut)},[]),Af=N.useCallback((ut,Rt)=>ze(ut,Rt),[ze]),xu=N.useCallback((ut,Rt)=>nt(ut,Rt),[nt]),Ts=N.useCallback((ut,Rt)=>ct(ut,Rt),[ct]),Ni=N.useCallback((ut,Rt)=>Ge(ut,Rt),[Ge]),ka=N.useCallback(ut=>ro({type:"CHANGE_PAGE",page:ut,paginationServer:$,visibleOnly:E,persistSelectedOnPageChange:xs}),[$,xs,E]),pi=N.useCallback(ut=>{const Rt=Om(G||Oo.length,ut),Cn=i1(er,Rt);$||ka(Cn),ro({type:"CHANGE_ROWS_PER_PAGE",page:Cn,rowsPerPage:ut})},[er,ka,$,G,Oo.length]);if(Re&&!$&&Tt.length>0&&Oo.length===0){const ut=Om(Tt.length,Lr),Rt=i1(er,ut);ka(Rt)}Dc(()=>{C({allSelected:Zr,selectedCount:Cf,selectedRows:Jo.slice(0)})},[bf]),Dc(()=>{Bt(ki,Jr,Tt.slice(0))},[ki,Jr]),Dc(()=>{I(er,G||Tt.length)},[er]),Dc(()=>{R(Lr,er)},[Lr]),Dc(()=>{ka(Y)},[Y,Z]),Dc(()=>{if(Re&&$&&G>0){const ut=Om(G,Lr),Rt=i1(er,ut);er!==Rt&&ka(Rt)}},[G]),N.useEffect(()=>{ro({type:"CLEAR_SELECTED_ROWS",selectedRowsFlag:xo})},[m,xo]),N.useEffect(()=>{if(!A)return;const ut=Tt.filter(Cn=>A(Cn)),Rt=m?ut.slice(0,1):ut;ro({type:"SELECT_MULTIPLE_ROWS",keyField:a,selectedRows:Rt,totalRows:Tt.length,mergeSelections:bu})},[e,A]);const Xh=E?Oo:Tt,Rf=xs||m||b;return N.createElement(Tj,{theme:Kh},!J&&(!!r||!!i)&&N.createElement(p9,{title:r,actions:i,showMenu:!Ce,selectedCount:Cf,direction:en,contextActions:xe,contextComponent:Fe,contextMessage:ke}),Me&&N.createElement(g9,{align:qe,wrapContent:Je},ye),N.createElement(_9,Object.assign({$responsive:W,$fixedHeader:be,$fixedHeaderScrollHeight:Ee,className:Cl},bl),N.createElement(w9,null,X&&!ce&&N.createElement(uT,null,le),N.createElement(Nj,{disabled:q,className:"rdt_Table",role:"table"},!ie&&(!!ce||Tt.length>0&&!X)&&N.createElement(Dj,{className:"rdt_TableHead",role:"rowgroup",$fixedHeader:be},N.createElement(Lj,{className:"rdt_TableHeadRow",role:"row",$dense:p},v&&(Rf?N.createElement(Fh,{style:{flex:"0 0 48px"}}):N.createElement(s9,{allSelected:Zr,selectedRows:Jo,selectableRowsComponent:O,selectableRowsComponentProps:k,selectableRowDisabled:S,rowData:Xh,keyField:a,mergeSelections:bu,onSelectAllRows:Of})),Ae&&!Xe&&N.createElement(S9,null),rn.map(ut=>N.createElement(o9,{key:ut.id,column:ut,selectedColumn:ki,disabled:X||Tt.length===0,pagination:Re,paginationServer:$,persistSelectedOnSort:Ef,selectableRowsVisibleOnly:E,sortDirection:Jr,sortIcon:yt,sortServer:Yt,onSort:Eu,onDragStart:Jn,onDragOver:di,onDragEnd:hi,onDragEnter:xr,onDragLeave:Ra,draggingColumnId:mn})))),!Tt.length&&!X&&N.createElement(C9,null,oe),X&&ce&&N.createElement(uT,null,le),!X&&Tt.length>0&&N.createElement(y9,{className:"rdt_TableBody",role:"rowgroup"},Oo.map((ut,Rt)=>{const Cn=xh(ut,a),ur=function(Pi=""){return typeof Pi!="number"&&(!Pi||Pi.length===0)}(Cn)?Rt:Cn,at=q0(ut,Jo,a),Na=!!(Ae&&Zn&&Zn(ut)),ea=!!(Ae&&Dr&&Dr(ut));return N.createElement(Zj,{id:ur,key:ur,keyField:a,"data-row-id":ur,columns:rn,row:ut,rowCount:Tt.length,rowIndex:Rt,selectableRows:v,expandableRows:Ae,expandableIcon:w,highlightOnHover:c,pointerOnHover:f,dense:p,expandOnRowClicked:it,expandOnRowDoubleClicked:Mt,expandableRowsComponent:Yr,expandableRowsComponentProps:lr,expandableRowsHideExpander:Xe,defaultExpanderDisabled:ea,defaultExpanded:Na,expandableInheritConditionalStyles:pn,conditionalRowStyles:To,selected:at,selectableRowsHighlight:y,selectableRowsComponent:O,selectableRowsComponentProps:k,selectableRowDisabled:S,selectableRowsSingle:m,striped:u,onRowExpandToggled:T,onRowClicked:Af,onRowDoubleClicked:xu,onRowMouseEnter:Ts,onRowMouseLeave:Ni,onSelectedRow:El,draggingColumnId:mn,onDragStart:Jn,onDragOver:di,onDragEnd:hi,onDragEnter:xr,onDragLeave:Ra})}))))),xf&&N.createElement("div",null,N.createElement(Tf,{onChangePage:ka,onChangeRowsPerPage:pi,rowCount:G||Tt.length,currentPage:er,rowsPerPage:Lr,direction:en,paginationRowsPerPageOptions:ae,paginationIconLastPage:de,paginationIconFirstPage:Q,paginationIconNext:re,paginationIconPrevious:z,paginationComponentOptions:F})))}),ob=N.createContext({});function d2(t){if(Array.isArray(t))return t}function H9(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,a,u,c=[],f=!0,p=!1;try{if(a=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=a.call(n)).done)&&(c.push(r.value),c.length!==e);f=!0);}catch(v){p=!0,i=v}finally{try{if(!f&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(p)throw i}}return c}}function PS(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function ab(t,e){if(t){if(typeof t=="string")return PS(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return PS(t,e)}}function h2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
478
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bt(t,e){return d2(t)||H9(t,e)||ab(t,e)||h2()}function Mn(t){"@babel/helpers - typeof";return Mn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mn(t)}function q9(t,e){if(Mn(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Mn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function p2(t){var e=q9(t,"string");return Mn(e)=="symbol"?e:String(e)}function kt(t,e,n){return e=p2(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function lf(t,e){if(t==null)return{};var n=t_(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Br(t,e){U9(t)&&(t="100%");var n=W9(t);return t=e===360?t:Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(String(t*e),10)/100),Math.abs(t-e)<1e-6?1:(e===360?t=(t<0?t%e+e:t%e)/parseFloat(String(e)):t=t%e/parseFloat(String(e)),t)}function C0(t){return Math.min(1,Math.max(0,t))}function U9(t){return typeof t=="string"&&t.indexOf(".")!==-1&&parseFloat(t)===1}function W9(t){return typeof t=="string"&&t.indexOf("%")!==-1}function m2(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function b0(t){return t<=1?"".concat(Number(t)*100,"%"):t}function Uc(t){return t.length===1?"0"+t:String(t)}function V9(t,e,n){return{r:Br(t,255)*255,g:Br(e,255)*255,b:Br(n,255)*255}}function pT(t,e,n){t=Br(t,255),e=Br(e,255),n=Br(n,255);var r=Math.max(t,e,n),i=Math.min(t,e,n),a=0,u=0,c=(r+i)/2;if(r===i)u=0,a=0;else{var f=r-i;switch(u=c>.5?f/(2-r-i):f/(r+i),r){case t:a=(e-n)/f+(e<n?6:0);break;case e:a=(n-t)/f+2;break;case n:a=(t-e)/f+4;break}a/=6}return{h:a,s:u,l:c}}function a1(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*(6*n):n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function G9(t,e,n){var r,i,a;if(t=Br(t,360),e=Br(e,100),n=Br(n,100),e===0)i=n,a=n,r=n;else{var u=n<.5?n*(1+e):n+e-n*e,c=2*n-u;r=a1(c,u,t+1/3),i=a1(c,u,t),a=a1(c,u,t-1/3)}return{r:r*255,g:i*255,b:a*255}}function DS(t,e,n){t=Br(t,255),e=Br(e,255),n=Br(n,255);var r=Math.max(t,e,n),i=Math.min(t,e,n),a=0,u=r,c=r-i,f=r===0?0:c/r;if(r===i)a=0;else{switch(r){case t:a=(e-n)/c+(e<n?6:0);break;case e:a=(n-t)/c+2;break;case n:a=(t-e)/c+4;break}a/=6}return{h:a,s:f,v:u}}function B9(t,e,n){t=Br(t,360)*6,e=Br(e,100),n=Br(n,100);var r=Math.floor(t),i=t-r,a=n*(1-e),u=n*(1-i*e),c=n*(1-(1-i)*e),f=r%6,p=[n,u,a,a,c,n][f],v=[c,n,n,u,a,a][f],m=[a,a,c,n,n,u][f];return{r:p*255,g:v*255,b:m*255}}function LS(t,e,n,r){var i=[Uc(Math.round(t).toString(16)),Uc(Math.round(e).toString(16)),Uc(Math.round(n).toString(16))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function K9(t,e,n,r,i){var a=[Uc(Math.round(t).toString(16)),Uc(Math.round(e).toString(16)),Uc(Math.round(n).toString(16)),Uc(X9(r))];return i&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function X9(t){return Math.round(parseFloat(t)*255).toString(16)}function mT(t){return yo(t)/255}function yo(t){return parseInt(t,16)}function Y9(t){return{r:t>>16,g:(t&65280)>>8,b:t&255}}var MS={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function th(t){var e={r:0,g:0,b:0},n=1,r=null,i=null,a=null,u=!1,c=!1;return typeof t=="string"&&(t=J9(t)),typeof t=="object"&&(el(t.r)&&el(t.g)&&el(t.b)?(e=V9(t.r,t.g,t.b),u=!0,c=String(t.r).substr(-1)==="%"?"prgb":"rgb"):el(t.h)&&el(t.s)&&el(t.v)?(r=b0(t.s),i=b0(t.v),e=B9(t.h,r,i),u=!0,c="hsv"):el(t.h)&&el(t.s)&&el(t.l)&&(r=b0(t.s),a=b0(t.l),e=G9(t.h,r,a),u=!0,c="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(n=t.a)),n=m2(n),{ok:u,format:t.format||c,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:n}}var Q9="[-\\+]?\\d+%?",Z9="[-\\+]?\\d*\\.\\d+%?",fu="(?:".concat(Z9,")|(?:").concat(Q9,")"),s1="[\\s|\\(]+(".concat(fu,")[,|\\s]+(").concat(fu,")[,|\\s]+(").concat(fu,")\\s*\\)?"),l1="[\\s|\\(]+(".concat(fu,")[,|\\s]+(").concat(fu,")[,|\\s]+(").concat(fu,")[,|\\s]+(").concat(fu,")\\s*\\)?"),ma={CSS_UNIT:new RegExp(fu),rgb:new RegExp("rgb"+s1),rgba:new RegExp("rgba"+l1),hsl:new RegExp("hsl"+s1),hsla:new RegExp("hsla"+l1),hsv:new RegExp("hsv"+s1),hsva:new RegExp("hsva"+l1),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function J9(t){if(t=t.trim().toLowerCase(),t.length===0)return!1;var e=!1;if(MS[t])t=MS[t],e=!0;else if(t==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=ma.rgb.exec(t);return n?{r:n[1],g:n[2],b:n[3]}:(n=ma.rgba.exec(t),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=ma.hsl.exec(t),n?{h:n[1],s:n[2],l:n[3]}:(n=ma.hsla.exec(t),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=ma.hsv.exec(t),n?{h:n[1],s:n[2],v:n[3]}:(n=ma.hsva.exec(t),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=ma.hex8.exec(t),n?{r:yo(n[1]),g:yo(n[2]),b:yo(n[3]),a:mT(n[4]),format:e?"name":"hex8"}:(n=ma.hex6.exec(t),n?{r:yo(n[1]),g:yo(n[2]),b:yo(n[3]),format:e?"name":"hex"}:(n=ma.hex4.exec(t),n?{r:yo(n[1]+n[1]),g:yo(n[2]+n[2]),b:yo(n[3]+n[3]),a:mT(n[4]+n[4]),format:e?"name":"hex8"}:(n=ma.hex3.exec(t),n?{r:yo(n[1]+n[1]),g:yo(n[2]+n[2]),b:yo(n[3]+n[3]),format:e?"name":"hex"}:!1)))))))))}function el(t){return!!ma.CSS_UNIT.exec(String(t))}var So=function(){function t(e,n){e===void 0&&(e=""),n===void 0&&(n={});var r;if(e instanceof t)return e;typeof e=="number"&&(e=Y9(e)),this.originalInput=e;var i=th(e);this.originalInput=e,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:i.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return t.prototype.isDark=function(){return this.getBrightness()<128},t.prototype.isLight=function(){return!this.isDark()},t.prototype.getBrightness=function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},t.prototype.getLuminance=function(){var e=this.toRgb(),n,r,i,a=e.r/255,u=e.g/255,c=e.b/255;return a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),u<=.03928?r=u/12.92:r=Math.pow((u+.055)/1.055,2.4),c<=.03928?i=c/12.92:i=Math.pow((c+.055)/1.055,2.4),.2126*n+.7152*r+.0722*i},t.prototype.getAlpha=function(){return this.a},t.prototype.setAlpha=function(e){return this.a=m2(e),this.roundA=Math.round(100*this.a)/100,this},t.prototype.isMonochrome=function(){var e=this.toHsl().s;return e===0},t.prototype.toHsv=function(){var e=DS(this.r,this.g,this.b);return{h:e.h*360,s:e.s,v:e.v,a:this.a}},t.prototype.toHsvString=function(){var e=DS(this.r,this.g,this.b),n=Math.round(e.h*360),r=Math.round(e.s*100),i=Math.round(e.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},t.prototype.toHsl=function(){var e=pT(this.r,this.g,this.b);return{h:e.h*360,s:e.s,l:e.l,a:this.a}},t.prototype.toHslString=function(){var e=pT(this.r,this.g,this.b),n=Math.round(e.h*360),r=Math.round(e.s*100),i=Math.round(e.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},t.prototype.toHex=function(e){return e===void 0&&(e=!1),LS(this.r,this.g,this.b,e)},t.prototype.toHexString=function(e){return e===void 0&&(e=!1),"#"+this.toHex(e)},t.prototype.toHex8=function(e){return e===void 0&&(e=!1),K9(this.r,this.g,this.b,this.a,e)},t.prototype.toHex8String=function(e){return e===void 0&&(e=!1),"#"+this.toHex8(e)},t.prototype.toHexShortString=function(e){return e===void 0&&(e=!1),this.a===1?this.toHexString(e):this.toHex8String(e)},t.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},t.prototype.toRgbString=function(){var e=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(e,", ").concat(n,", ").concat(r,")"):"rgba(".concat(e,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},t.prototype.toPercentageRgb=function(){var e=function(n){return"".concat(Math.round(Br(n,255)*100),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},t.prototype.toPercentageRgbString=function(){var e=function(n){return Math.round(Br(n,255)*100)};return this.a===1?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},t.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var e="#"+LS(this.r,this.g,this.b,!1),n=0,r=Object.entries(MS);n<r.length;n++){var i=r[n],a=i[0],u=i[1];if(e===u)return a}return!1},t.prototype.toString=function(e){var n=!!e;e=e??this.format;var r=!1,i=this.a<1&&this.a>=0,a=!n&&i&&(e.startsWith("hex")||e==="name");return a?e==="name"&&this.a===0?this.toName():this.toRgbString():(e==="rgb"&&(r=this.toRgbString()),e==="prgb"&&(r=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(r=this.toHexString()),e==="hex3"&&(r=this.toHexString(!0)),e==="hex4"&&(r=this.toHex8String(!0)),e==="hex8"&&(r=this.toHex8String()),e==="name"&&(r=this.toName()),e==="hsl"&&(r=this.toHslString()),e==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},t.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},t.prototype.clone=function(){return new t(this.toString())},t.prototype.lighten=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.l+=e/100,n.l=C0(n.l),new t(n)},t.prototype.brighten=function(e){e===void 0&&(e=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(e/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(e/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(e/100)))),new t(n)},t.prototype.darken=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.l-=e/100,n.l=C0(n.l),new t(n)},t.prototype.tint=function(e){return e===void 0&&(e=10),this.mix("white",e)},t.prototype.shade=function(e){return e===void 0&&(e=10),this.mix("black",e)},t.prototype.desaturate=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.s-=e/100,n.s=C0(n.s),new t(n)},t.prototype.saturate=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.s+=e/100,n.s=C0(n.s),new t(n)},t.prototype.greyscale=function(){return this.desaturate(100)},t.prototype.spin=function(e){var n=this.toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,new t(n)},t.prototype.mix=function(e,n){n===void 0&&(n=50);var r=this.toRgb(),i=new t(e).toRgb(),a=n/100,u={r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a};return new t(u)},t.prototype.analogous=function(e,n){e===void 0&&(e=6),n===void 0&&(n=30);var r=this.toHsl(),i=360/n,a=[this];for(r.h=(r.h-(i*e>>1)+720)%360;--e;)r.h=(r.h+i)%360,a.push(new t(r));return a},t.prototype.complement=function(){var e=this.toHsl();return e.h=(e.h+180)%360,new t(e)},t.prototype.monochromatic=function(e){e===void 0&&(e=6);for(var n=this.toHsv(),r=n.h,i=n.s,a=n.v,u=[],c=1/e;e--;)u.push(new t({h:r,s:i,v:a})),a=(a+c)%1;return u},t.prototype.splitcomplement=function(){var e=this.toHsl(),n=e.h;return[this,new t({h:(n+72)%360,s:e.s,l:e.l}),new t({h:(n+216)%360,s:e.s,l:e.l})]},t.prototype.onBackground=function(e){var n=this.toRgb(),r=new t(e).toRgb(),i=n.a+r.a*(1-n.a);return new t({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},t.prototype.triad=function(){return this.polyad(3)},t.prototype.tetrad=function(){return this.polyad(4)},t.prototype.polyad=function(e){for(var n=this.toHsl(),r=n.h,i=[this],a=360/e,u=1;u<e;u++)i.push(new t({h:(r+u*a)%360,s:n.s,l:n.l}));return i},t.prototype.equals=function(e){return this.toRgbString()===new t(e).toRgbString()},t}(),E0=2,vT=.16,e7=.05,t7=.05,n7=.15,v2=5,g2=4,r7=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function gT(t){var e=t.r,n=t.g,r=t.b,i=DS(e,n,r);return{h:i.h*360,s:i.s,v:i.v}}function x0(t){var e=t.r,n=t.g,r=t.b;return"#".concat(LS(e,n,r,!1))}function i7(t,e,n){var r=n/100,i={r:(e.r-t.r)*r+t.r,g:(e.g-t.g)*r+t.g,b:(e.b-t.b)*r+t.b};return i}function yT(t,e,n){var r;return Math.round(t.h)>=60&&Math.round(t.h)<=240?r=n?Math.round(t.h)-E0*e:Math.round(t.h)+E0*e:r=n?Math.round(t.h)+E0*e:Math.round(t.h)-E0*e,r<0?r+=360:r>=360&&(r-=360),r}function _T(t,e,n){if(t.h===0&&t.s===0)return t.s;var r;return n?r=t.s-vT*e:e===g2?r=t.s+vT:r=t.s+e7*e,r>1&&(r=1),n&&e===v2&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function wT(t,e,n){var r;return n?r=t.v+t7*e:r=t.v-n7*e,r>1&&(r=1),Number(r.toFixed(2))}function uf(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=th(t),i=v2;i>0;i-=1){var a=gT(r),u=x0(th({h:yT(a,i,!0),s:_T(a,i,!0),v:wT(a,i,!0)}));n.push(u)}n.push(x0(r));for(var c=1;c<=g2;c+=1){var f=gT(r),p=x0(th({h:yT(f,c),s:_T(f,c),v:wT(f,c)}));n.push(p)}return e.theme==="dark"?r7.map(function(v){var m=v.index,y=v.opacity,b=x0(i7(th(e.backgroundColor||"#141414"),th(n[m]),y*100));return b}):n}var u1={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},U0={},c1={};Object.keys(u1).forEach(function(t){U0[t]=uf(u1[t]),U0[t].primary=U0[t][5],c1[t]=uf(u1[t],{theme:"dark",backgroundColor:"#141414"}),c1[t].primary=c1[t][5]});var o7=U0.blue;function ST(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function pt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ST(Object(n),!0).forEach(function(r){kt(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ST(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ys(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function a7(t,e){if(!t)return!1;if(t.contains)return t.contains(e);for(var n=e;n;){if(n===t)return!0;n=n.parentNode}return!1}var CT="data-rc-order",bT="data-rc-priority",s7="rc-util-key",IS=new Map;function y2(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.mark;return e?e.startsWith("data-")?e:"data-".concat(e):s7}function o_(t){if(t.attachTo)return t.attachTo;var e=document.querySelector("head");return e||document.body}function l7(t){return t==="queue"?"prependQueue":t?"prepend":"append"}function _2(t){return Array.from((IS.get(t)||t).children).filter(function(e){return e.tagName==="STYLE"})}function w2(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ys())return null;var n=e.csp,r=e.prepend,i=e.priority,a=i===void 0?0:i,u=l7(r),c=u==="prependQueue",f=document.createElement("style");f.setAttribute(CT,u),c&&a&&f.setAttribute(bT,"".concat(a)),n!=null&&n.nonce&&(f.nonce=n?.nonce),f.innerHTML=t;var p=o_(e),v=p.firstChild;if(r){if(c){var m=_2(p).filter(function(y){if(!["prepend","prependQueue"].includes(y.getAttribute(CT)))return!1;var b=Number(y.getAttribute(bT)||0);return a>=b});if(m.length)return p.insertBefore(f,m[m.length-1].nextSibling),f}p.insertBefore(f,v)}else p.appendChild(f);return f}function S2(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=o_(e);return _2(n).find(function(r){return r.getAttribute(y2(e))===t})}function sb(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=S2(t,e);if(n){var r=o_(e);r.removeChild(n)}}function u7(t,e){var n=IS.get(t);if(!n||!a7(document,n)){var r=w2("",e),i=r.parentNode;IS.set(t,i),t.removeChild(r)}}function cf(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=o_(n);u7(r,n);var i=S2(e,n);if(i){var a,u;if((a=n.csp)!==null&&a!==void 0&&a.nonce&&i.nonce!==((u=n.csp)===null||u===void 0?void 0:u.nonce)){var c;i.nonce=(c=n.csp)===null||c===void 0?void 0:c.nonce}return i.innerHTML!==t&&(i.innerHTML=t),i}var f=w2(t,n);return f.setAttribute(y2(n),e),f}function C2(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}function c7(t){return C2(t)instanceof ShadowRoot}function f7(t){return c7(t)?C2(t):null}var FS={},d7=function(e){};function h7(t,e){}function p7(t,e){}function m7(){FS={}}function b2(t,e,n){!e&&!FS[n]&&(t(!1,n),FS[n]=!0)}function Ev(t,e){b2(h7,t,e)}function v7(t,e){b2(p7,t,e)}Ev.preMessage=d7;Ev.resetWarned=m7;Ev.noteOnce=v7;function g7(t){return t.replace(/-(.)/g,function(e,n){return n.toUpperCase()})}function y7(t,e){Ev(t,"[@ant-design/icons] ".concat(e))}function ET(t){return Mn(t)==="object"&&typeof t.name=="string"&&typeof t.theme=="string"&&(Mn(t.icon)==="object"||typeof t.icon=="function")}function xT(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(t).reduce(function(e,n){var r=t[n];switch(n){case"class":e.className=r,delete e.class;break;default:delete e[n],e[g7(n)]=r}return e},{})}function $S(t,e,n){return n?je.createElement(t.tag,pt(pt({key:e},xT(t.attrs)),n),(t.children||[]).map(function(r,i){return $S(r,"".concat(e,"-").concat(t.tag,"-").concat(i))})):je.createElement(t.tag,pt({key:e},xT(t.attrs)),(t.children||[]).map(function(r,i){return $S(r,"".concat(e,"-").concat(t.tag,"-").concat(i))}))}function E2(t){return uf(t)[0]}function x2(t){return t?Array.isArray(t)?t:[t]:[]}var _7=`
|
|
479
|
+
.anticon {
|
|
480
|
+
display: inline-block;
|
|
481
|
+
color: inherit;
|
|
482
|
+
font-style: normal;
|
|
483
|
+
line-height: 0;
|
|
484
|
+
text-align: center;
|
|
485
|
+
text-transform: none;
|
|
486
|
+
vertical-align: -0.125em;
|
|
487
|
+
text-rendering: optimizeLegibility;
|
|
488
|
+
-webkit-font-smoothing: antialiased;
|
|
489
|
+
-moz-osx-font-smoothing: grayscale;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
.anticon > * {
|
|
493
|
+
line-height: 1;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
.anticon svg {
|
|
497
|
+
display: inline-block;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
.anticon::before {
|
|
501
|
+
display: none;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
.anticon .anticon-icon {
|
|
505
|
+
display: block;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
.anticon[tabindex] {
|
|
509
|
+
cursor: pointer;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
.anticon-spin::before,
|
|
513
|
+
.anticon-spin {
|
|
514
|
+
display: inline-block;
|
|
515
|
+
-webkit-animation: loadingCircle 1s infinite linear;
|
|
516
|
+
animation: loadingCircle 1s infinite linear;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
@-webkit-keyframes loadingCircle {
|
|
520
|
+
100% {
|
|
521
|
+
-webkit-transform: rotate(360deg);
|
|
522
|
+
transform: rotate(360deg);
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
@keyframes loadingCircle {
|
|
527
|
+
100% {
|
|
528
|
+
-webkit-transform: rotate(360deg);
|
|
529
|
+
transform: rotate(360deg);
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
`,w7=function(e){var n=N.useContext(ob),r=n.csp,i=n.prefixCls,a=_7;i&&(a=a.replace(/anticon/g,i)),N.useEffect(function(){var u=e.current,c=f7(u);cf(a,"@ant-design-icons",{prepend:!0,csp:r,attachTo:c})},[])},S7=["icon","className","onClick","style","primaryColor","secondaryColor"],Rm={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function C7(t){var e=t.primaryColor,n=t.secondaryColor;Rm.primaryColor=e,Rm.secondaryColor=n||E2(e),Rm.calculated=!!n}function b7(){return pt({},Rm)}var $h=function(e){var n=e.icon,r=e.className,i=e.onClick,a=e.style,u=e.primaryColor,c=e.secondaryColor,f=lf(e,S7),p=N.useRef(),v=Rm;if(u&&(v={primaryColor:u,secondaryColor:c||E2(u)}),w7(p),y7(ET(n),"icon should be icon definiton, but got ".concat(n)),!ET(n))return null;var m=n;return m&&typeof m.icon=="function"&&(m=pt(pt({},m),{},{icon:m.icon(v.primaryColor,v.secondaryColor)})),$S(m.icon,"svg-".concat(m.name),pt(pt({className:r,onClick:i,style:a,"data-icon":m.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},f),{},{ref:p}))};$h.displayName="IconReact";$h.getTwoToneColors=b7;$h.setTwoToneColors=C7;function T2(t){var e=x2(t),n=bt(e,2),r=n[0],i=n[1];return $h.setTwoToneColors({primaryColor:r,secondaryColor:i})}function E7(){var t=$h.getTwoToneColors();return t.calculated?[t.primaryColor,t.secondaryColor]:t.primaryColor}var x7=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];T2(o7.primary);var vl=N.forwardRef(function(t,e){var n=t.className,r=t.icon,i=t.spin,a=t.rotate,u=t.tabIndex,c=t.onClick,f=t.twoToneColor,p=lf(t,x7),v=N.useContext(ob),m=v.prefixCls,y=m===void 0?"anticon":m,b=v.rootClassName,E=et(b,y,kt(kt({},"".concat(y,"-").concat(r.name),!!r.name),"".concat(y,"-spin"),!!i||r.name==="loading"),n),A=u;A===void 0&&c&&(A=-1);var S=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,O=x2(f),k=bt(O,2),T=k[0],C=k[1];return N.createElement("span",ci({role:"img","aria-label":r.name},p,{ref:e,tabIndex:A,onClick:c,className:E}),N.createElement($h,{icon:r,primaryColor:T,secondaryColor:C,style:S}))});vl.displayName="AntdIcon";vl.getTwoToneColor=E7;vl.setTwoToneColor=T2;var T7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},O7=function(e,n){return N.createElement(vl,ci({},e,{ref:n,icon:T7}))};const A7=N.forwardRef(O7);var R7={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},k7=function(e,n){return N.createElement(vl,ci({},e,{ref:n,icon:R7}))};const N7=N.forwardRef(k7);var P7={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},D7=function(e,n){return N.createElement(vl,ci({},e,{ref:n,icon:P7}))};const L7=N.forwardRef(D7);var M7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},I7=function(e,n){return N.createElement(vl,ci({},e,{ref:n,icon:M7}))};const F7=N.forwardRef(I7);var $7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},j7=function(e,n){return N.createElement(vl,ci({},e,{ref:n,icon:$7}))};const z7=N.forwardRef(j7);var H7={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},q7=function(e,n){return N.createElement(vl,ci({},e,{ref:n,icon:H7}))};const U7=N.forwardRef(q7);function O2(t,e,n){var r=N.useRef({});return(!("value"in r.current)||n(r.current.condition,e))&&(r.current.value=t(),r.current.condition=e),r.current.value}function W7(t,e){typeof t=="function"?t(e):Mn(t)==="object"&&t&&"current"in t&&(t.current=e)}function V7(t){var e,n,r=nb.isMemo(t)?t.type.type:t.type;return!(typeof r=="function"&&!((e=r.prototype)!==null&&e!==void 0&&e.render)||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render))}var T0={exports:{}},f1,TT;function A2(){return TT||(TT=1,f1=function(e,n){return function(){for(var i=new Array(arguments.length),a=0;a<i.length;a++)i[a]=arguments[a];return e.apply(n,i)}}),f1}var d1,OT;function Kr(){if(OT)return d1;OT=1;var t=A2(),e=Object.prototype.toString,n=function(Q){return function(re){var z=e.call(re);return Q[z]||(Q[z]=z.slice(8,-1).toLowerCase())}}(Object.create(null));function r(Q){return Q=Q.toLowerCase(),function(z){return n(z)===Q}}function i(Q){return Array.isArray(Q)}function a(Q){return typeof Q>"u"}function u(Q){return Q!==null&&!a(Q)&&Q.constructor!==null&&!a(Q.constructor)&&typeof Q.constructor.isBuffer=="function"&&Q.constructor.isBuffer(Q)}var c=r("ArrayBuffer");function f(Q){var re;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?re=ArrayBuffer.isView(Q):re=Q&&Q.buffer&&c(Q.buffer),re}function p(Q){return typeof Q=="string"}function v(Q){return typeof Q=="number"}function m(Q){return Q!==null&&typeof Q=="object"}function y(Q){if(n(Q)!=="object")return!1;var re=Object.getPrototypeOf(Q);return re===null||re===Object.prototype}var b=r("Date"),E=r("File"),A=r("Blob"),S=r("FileList");function O(Q){return e.call(Q)==="[object Function]"}function k(Q){return m(Q)&&O(Q.pipe)}function T(Q){var re="[object FormData]";return Q&&(typeof FormData=="function"&&Q instanceof FormData||e.call(Q)===re||O(Q.toString)&&Q.toString()===re)}var C=r("URLSearchParams");function w(Q){return Q.trim?Q.trim():Q.replace(/^\s+|\s+$/g,"")}function R(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function I(Q,re){if(!(Q===null||typeof Q>"u"))if(typeof Q!="object"&&(Q=[Q]),i(Q))for(var z=0,B=Q.length;z<B;z++)re.call(null,Q[z],z,Q);else for(var F in Q)Object.prototype.hasOwnProperty.call(Q,F)&&re.call(null,Q[F],F,Q)}function $(){var Q={};function re(F,W){y(Q[W])&&y(F)?Q[W]=$(Q[W],F):y(F)?Q[W]=$({},F):i(F)?Q[W]=F.slice():Q[W]=F}for(var z=0,B=arguments.length;z<B;z++)I(arguments[z],re);return Q}function U(Q,re,z){return I(re,function(F,W){z&&typeof F=="function"?Q[W]=t(F,z):Q[W]=F}),Q}function G(Q){return Q.charCodeAt(0)===65279&&(Q=Q.slice(1)),Q}function Y(Q,re,z,B){Q.prototype=Object.create(re.prototype,B),Q.prototype.constructor=Q,z&&Object.assign(Q.prototype,z)}function Z(Q,re,z){var B,F,W,X={};re=re||{};do{for(B=Object.getOwnPropertyNames(Q),F=B.length;F-- >0;)W=B[F],X[W]||(re[W]=Q[W],X[W]=!0);Q=Object.getPrototypeOf(Q)}while(Q&&(!z||z(Q,re))&&Q!==Object.prototype);return re}function ee(Q,re,z){Q=String(Q),(z===void 0||z>Q.length)&&(z=Q.length),z-=re.length;var B=Q.indexOf(re,z);return B!==-1&&B===z}function ae(Q){if(!Q)return null;var re=Q.length;if(a(re))return null;for(var z=new Array(re);re-- >0;)z[re]=Q[re];return z}var de=function(Q){return function(re){return Q&&re instanceof Q}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array));return d1={isArray:i,isArrayBuffer:c,isBuffer:u,isFormData:T,isArrayBufferView:f,isString:p,isNumber:v,isObject:m,isPlainObject:y,isUndefined:a,isDate:b,isFile:E,isBlob:A,isFunction:O,isStream:k,isURLSearchParams:C,isStandardBrowserEnv:R,forEach:I,merge:$,extend:U,trim:w,stripBOM:G,inherits:Y,toFlatObject:Z,kindOf:n,kindOfTest:r,endsWith:ee,toArray:ae,isTypedArray:de,isFileList:S},d1}var h1,AT;function R2(){if(AT)return h1;AT=1;var t=Kr();function e(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}return h1=function(r,i,a){if(!i)return r;var u;if(a)u=a(i);else if(t.isURLSearchParams(i))u=i.toString();else{var c=[];t.forEach(i,function(v,m){v===null||typeof v>"u"||(t.isArray(v)?m=m+"[]":v=[v],t.forEach(v,function(b){t.isDate(b)?b=b.toISOString():t.isObject(b)&&(b=JSON.stringify(b)),c.push(e(m)+"="+e(b))}))}),u=c.join("&")}if(u){var f=r.indexOf("#");f!==-1&&(r=r.slice(0,f)),r+=(r.indexOf("?")===-1?"?":"&")+u}return r},h1}var p1,RT;function G7(){if(RT)return p1;RT=1;var t=Kr();function e(){this.handlers=[]}return e.prototype.use=function(r,i,a){return this.handlers.push({fulfilled:r,rejected:i,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1},e.prototype.eject=function(r){this.handlers[r]&&(this.handlers[r]=null)},e.prototype.forEach=function(r){t.forEach(this.handlers,function(a){a!==null&&r(a)})},p1=e,p1}var m1,kT;function B7(){if(kT)return m1;kT=1;var t=Kr();return m1=function(n,r){t.forEach(n,function(a,u){u!==r&&u.toUpperCase()===r.toUpperCase()&&(n[r]=a,delete n[u])})},m1}var v1,NT;function jh(){if(NT)return v1;NT=1;var t=Kr();function e(i,a,u,c,f){Error.call(this),this.message=i,this.name="AxiosError",a&&(this.code=a),u&&(this.config=u),c&&(this.request=c),f&&(this.response=f)}t.inherits(e,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var n=e.prototype,r={};return["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(i){r[i]={value:i}}),Object.defineProperties(e,r),Object.defineProperty(n,"isAxiosError",{value:!0}),e.from=function(i,a,u,c,f,p){var v=Object.create(n);return t.toFlatObject(i,v,function(y){return y!==Error.prototype}),e.call(v,i.message,a,u,c,f),v.name=i.name,p&&Object.assign(v,p),v},v1=e,v1}var g1,PT;function k2(){return PT||(PT=1,g1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}),g1}var y1,DT;function N2(){if(DT)return y1;DT=1;var t=Kr();function e(n,r){r=r||new FormData;var i=[];function a(c){return c===null?"":t.isDate(c)?c.toISOString():t.isArrayBuffer(c)||t.isTypedArray(c)?typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function u(c,f){if(t.isPlainObject(c)||t.isArray(c)){if(i.indexOf(c)!==-1)throw Error("Circular reference detected in "+f);i.push(c),t.forEach(c,function(v,m){if(!t.isUndefined(v)){var y=f?f+"."+m:m,b;if(v&&!f&&typeof v=="object"){if(t.endsWith(m,"{}"))v=JSON.stringify(v);else if(t.endsWith(m,"[]")&&(b=t.toArray(v))){b.forEach(function(E){!t.isUndefined(E)&&r.append(y,a(E))});return}}u(v,y)}}),i.pop()}else r.append(f,a(c))}return u(n),r}return y1=e,y1}var _1,LT;function K7(){if(LT)return _1;LT=1;var t=jh();return _1=function(n,r,i){var a=i.config.validateStatus;!i.status||!a||a(i.status)?n(i):r(new t("Request failed with status code "+i.status,[t.ERR_BAD_REQUEST,t.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))},_1}var w1,MT;function X7(){if(MT)return w1;MT=1;var t=Kr();return w1=t.isStandardBrowserEnv()?function(){return{write:function(r,i,a,u,c,f){var p=[];p.push(r+"="+encodeURIComponent(i)),t.isNumber(a)&&p.push("expires="+new Date(a).toGMTString()),t.isString(u)&&p.push("path="+u),t.isString(c)&&p.push("domain="+c),f===!0&&p.push("secure"),document.cookie=p.join("; ")},read:function(r){var i=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),w1}var S1,IT;function Y7(){return IT||(IT=1,S1=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}),S1}var C1,FT;function Q7(){return FT||(FT=1,C1=function(e,n){return n?e.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):e}),C1}var b1,$T;function P2(){if($T)return b1;$T=1;var t=Y7(),e=Q7();return b1=function(r,i){return r&&!t(i)?e(r,i):i},b1}var E1,jT;function Z7(){if(jT)return E1;jT=1;var t=Kr(),e=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return E1=function(r){var i={},a,u,c;return r&&t.forEach(r.split(`
|
|
533
|
+
`),function(p){if(c=p.indexOf(":"),a=t.trim(p.substr(0,c)).toLowerCase(),u=t.trim(p.substr(c+1)),a){if(i[a]&&e.indexOf(a)>=0)return;a==="set-cookie"?i[a]=(i[a]?i[a]:[]).concat([u]):i[a]=i[a]?i[a]+", "+u:u}}),i},E1}var x1,zT;function J7(){if(zT)return x1;zT=1;var t=Kr();return x1=t.isStandardBrowserEnv()?function(){var n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),i;function a(u){var c=u;return n&&(r.setAttribute("href",c),c=r.href),r.setAttribute("href",c),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return i=a(window.location.href),function(c){var f=t.isString(c)?a(c):c;return f.protocol===i.protocol&&f.host===i.host}}():function(){return function(){return!0}}(),x1}var T1,HT;function a_(){if(HT)return T1;HT=1;var t=jh(),e=Kr();function n(r){t.call(this,r??"canceled",t.ERR_CANCELED),this.name="CanceledError"}return e.inherits(n,t,{__CANCEL__:!0}),T1=n,T1}var O1,qT;function ez(){return qT||(qT=1,O1=function(e){var n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return n&&n[1]||""}),O1}var A1,UT;function WT(){if(UT)return A1;UT=1;var t=Kr(),e=K7(),n=X7(),r=R2(),i=P2(),a=Z7(),u=J7(),c=k2(),f=jh(),p=a_(),v=ez();return A1=function(y){return new Promise(function(E,A){var S=y.data,O=y.headers,k=y.responseType,T;function C(){y.cancelToken&&y.cancelToken.unsubscribe(T),y.signal&&y.signal.removeEventListener("abort",T)}t.isFormData(S)&&t.isStandardBrowserEnv()&&delete O["Content-Type"];var w=new XMLHttpRequest;if(y.auth){var R=y.auth.username||"",I=y.auth.password?unescape(encodeURIComponent(y.auth.password)):"";O.Authorization="Basic "+btoa(R+":"+I)}var $=i(y.baseURL,y.url);w.open(y.method.toUpperCase(),r($,y.params,y.paramsSerializer),!0),w.timeout=y.timeout;function U(){if(w){var Z="getAllResponseHeaders"in w?a(w.getAllResponseHeaders()):null,ee=!k||k==="text"||k==="json"?w.responseText:w.response,ae={data:ee,status:w.status,statusText:w.statusText,headers:Z,config:y,request:w};e(function(Q){E(Q),C()},function(Q){A(Q),C()},ae),w=null}}if("onloadend"in w?w.onloadend=U:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(U)},w.onabort=function(){w&&(A(new f("Request aborted",f.ECONNABORTED,y,w)),w=null)},w.onerror=function(){A(new f("Network Error",f.ERR_NETWORK,y,w,w)),w=null},w.ontimeout=function(){var ee=y.timeout?"timeout of "+y.timeout+"ms exceeded":"timeout exceeded",ae=y.transitional||c;y.timeoutErrorMessage&&(ee=y.timeoutErrorMessage),A(new f(ee,ae.clarifyTimeoutError?f.ETIMEDOUT:f.ECONNABORTED,y,w)),w=null},t.isStandardBrowserEnv()){var G=(y.withCredentials||u($))&&y.xsrfCookieName?n.read(y.xsrfCookieName):void 0;G&&(O[y.xsrfHeaderName]=G)}"setRequestHeader"in w&&t.forEach(O,function(ee,ae){typeof S>"u"&&ae.toLowerCase()==="content-type"?delete O[ae]:w.setRequestHeader(ae,ee)}),t.isUndefined(y.withCredentials)||(w.withCredentials=!!y.withCredentials),k&&k!=="json"&&(w.responseType=y.responseType),typeof y.onDownloadProgress=="function"&&w.addEventListener("progress",y.onDownloadProgress),typeof y.onUploadProgress=="function"&&w.upload&&w.upload.addEventListener("progress",y.onUploadProgress),(y.cancelToken||y.signal)&&(T=function(Z){w&&(A(!Z||Z&&Z.type?new p:Z),w.abort(),w=null)},y.cancelToken&&y.cancelToken.subscribe(T),y.signal&&(y.signal.aborted?T():y.signal.addEventListener("abort",T))),S||(S=null);var Y=v($);if(Y&&["http","https","file"].indexOf(Y)===-1){A(new f("Unsupported protocol "+Y+":",f.ERR_BAD_REQUEST,y));return}w.send(S)})},A1}var R1,VT;function tz(){return VT||(VT=1,R1=null),R1}var k1,GT;function lb(){if(GT)return k1;GT=1;var t=Kr(),e=B7(),n=jh(),r=k2(),i=N2(),a={"Content-Type":"application/x-www-form-urlencoded"};function u(v,m){!t.isUndefined(v)&&t.isUndefined(v["Content-Type"])&&(v["Content-Type"]=m)}function c(){var v;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(v=WT()),v}function f(v,m,y){if(t.isString(v))try{return(m||JSON.parse)(v),t.trim(v)}catch(b){if(b.name!=="SyntaxError")throw b}return(y||JSON.stringify)(v)}var p={transitional:r,adapter:c(),transformRequest:[function(m,y){if(e(y,"Accept"),e(y,"Content-Type"),t.isFormData(m)||t.isArrayBuffer(m)||t.isBuffer(m)||t.isStream(m)||t.isFile(m)||t.isBlob(m))return m;if(t.isArrayBufferView(m))return m.buffer;if(t.isURLSearchParams(m))return u(y,"application/x-www-form-urlencoded;charset=utf-8"),m.toString();var b=t.isObject(m),E=y&&y["Content-Type"],A;if((A=t.isFileList(m))||b&&E==="multipart/form-data"){var S=this.env&&this.env.FormData;return i(A?{"files[]":m}:m,S&&new S)}else if(b||E==="application/json")return u(y,"application/json"),f(m);return m}],transformResponse:[function(m){var y=this.transitional||p.transitional,b=y&&y.silentJSONParsing,E=y&&y.forcedJSONParsing,A=!b&&this.responseType==="json";if(A||E&&t.isString(m)&&m.length)try{return JSON.parse(m)}catch(S){if(A)throw S.name==="SyntaxError"?n.from(S,n.ERR_BAD_RESPONSE,this,null,this.response):S}return m}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:tz()},validateStatus:function(m){return m>=200&&m<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};return t.forEach(["delete","get","head"],function(m){p.headers[m]={}}),t.forEach(["post","put","patch"],function(m){p.headers[m]=t.merge(a)}),k1=p,k1}var N1,BT;function nz(){if(BT)return N1;BT=1;var t=Kr(),e=lb();return N1=function(r,i,a){var u=this||e;return t.forEach(a,function(f){r=f.call(u,r,i)}),r},N1}var P1,KT;function D2(){return KT||(KT=1,P1=function(e){return!!(e&&e.__CANCEL__)}),P1}var D1,XT;function rz(){if(XT)return D1;XT=1;var t=Kr(),e=nz(),n=D2(),r=lb(),i=a_();function a(u){if(u.cancelToken&&u.cancelToken.throwIfRequested(),u.signal&&u.signal.aborted)throw new i}return D1=function(c){a(c),c.headers=c.headers||{},c.data=e.call(c,c.data,c.headers,c.transformRequest),c.headers=t.merge(c.headers.common||{},c.headers[c.method]||{},c.headers),t.forEach(["delete","get","head","post","put","patch","common"],function(v){delete c.headers[v]});var f=c.adapter||r.adapter;return f(c).then(function(v){return a(c),v.data=e.call(c,v.data,v.headers,c.transformResponse),v},function(v){return n(v)||(a(c),v&&v.response&&(v.response.data=e.call(c,v.response.data,v.response.headers,c.transformResponse))),Promise.reject(v)})},D1}var L1,YT;function L2(){if(YT)return L1;YT=1;var t=Kr();return L1=function(n,r){r=r||{};var i={};function a(m,y){return t.isPlainObject(m)&&t.isPlainObject(y)?t.merge(m,y):t.isPlainObject(y)?t.merge({},y):t.isArray(y)?y.slice():y}function u(m){if(t.isUndefined(r[m])){if(!t.isUndefined(n[m]))return a(void 0,n[m])}else return a(n[m],r[m])}function c(m){if(!t.isUndefined(r[m]))return a(void 0,r[m])}function f(m){if(t.isUndefined(r[m])){if(!t.isUndefined(n[m]))return a(void 0,n[m])}else return a(void 0,r[m])}function p(m){if(m in r)return a(n[m],r[m]);if(m in n)return a(void 0,n[m])}var v={url:c,method:c,data:c,baseURL:f,transformRequest:f,transformResponse:f,paramsSerializer:f,timeout:f,timeoutMessage:f,withCredentials:f,adapter:f,responseType:f,xsrfCookieName:f,xsrfHeaderName:f,onUploadProgress:f,onDownloadProgress:f,decompress:f,maxContentLength:f,maxBodyLength:f,beforeRedirect:f,transport:f,httpAgent:f,httpsAgent:f,cancelToken:f,socketPath:f,responseEncoding:f,validateStatus:p};return t.forEach(Object.keys(n).concat(Object.keys(r)),function(y){var b=v[y]||u,E=b(y);t.isUndefined(E)&&b!==p||(i[y]=E)}),i},L1}var M1,QT;function M2(){return QT||(QT=1,M1={version:"0.27.2"}),M1}var I1,ZT;function iz(){if(ZT)return I1;ZT=1;var t=M2().version,e=jh(),n={};["object","boolean","number","function","string","symbol"].forEach(function(a,u){n[a]=function(f){return typeof f===a||"a"+(u<1?"n ":" ")+a}});var r={};n.transitional=function(u,c,f){function p(v,m){return"[Axios v"+t+"] Transitional option '"+v+"'"+m+(f?". "+f:"")}return function(v,m,y){if(u===!1)throw new e(p(m," has been removed"+(c?" in "+c:"")),e.ERR_DEPRECATED);return c&&!r[m]&&(r[m]=!0,console.warn(p(m," has been deprecated since v"+c+" and will be removed in the near future"))),u?u(v,m,y):!0}};function i(a,u,c){if(typeof a!="object")throw new e("options must be an object",e.ERR_BAD_OPTION_VALUE);for(var f=Object.keys(a),p=f.length;p-- >0;){var v=f[p],m=u[v];if(m){var y=a[v],b=y===void 0||m(y,v,a);if(b!==!0)throw new e("option "+v+" must be "+b,e.ERR_BAD_OPTION_VALUE);continue}if(c!==!0)throw new e("Unknown option "+v,e.ERR_BAD_OPTION)}}return I1={assertOptions:i,validators:n},I1}var F1,JT;function oz(){if(JT)return F1;JT=1;var t=Kr(),e=R2(),n=G7(),r=rz(),i=L2(),a=P2(),u=iz(),c=u.validators;function f(p){this.defaults=p,this.interceptors={request:new n,response:new n}}return f.prototype.request=function(v,m){typeof v=="string"?(m=m||{},m.url=v):m=v||{},m=i(this.defaults,m),m.method?m.method=m.method.toLowerCase():this.defaults.method?m.method=this.defaults.method.toLowerCase():m.method="get";var y=m.transitional;y!==void 0&&u.assertOptions(y,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var b=[],E=!0;this.interceptors.request.forEach(function(R){typeof R.runWhen=="function"&&R.runWhen(m)===!1||(E=E&&R.synchronous,b.unshift(R.fulfilled,R.rejected))});var A=[];this.interceptors.response.forEach(function(R){A.push(R.fulfilled,R.rejected)});var S;if(!E){var O=[r,void 0];for(Array.prototype.unshift.apply(O,b),O=O.concat(A),S=Promise.resolve(m);O.length;)S=S.then(O.shift(),O.shift());return S}for(var k=m;b.length;){var T=b.shift(),C=b.shift();try{k=T(k)}catch(w){C(w);break}}try{S=r(k)}catch(w){return Promise.reject(w)}for(;A.length;)S=S.then(A.shift(),A.shift());return S},f.prototype.getUri=function(v){v=i(this.defaults,v);var m=a(v.baseURL,v.url);return e(m,v.params,v.paramsSerializer)},t.forEach(["delete","get","head","options"],function(v){f.prototype[v]=function(m,y){return this.request(i(y||{},{method:v,url:m,data:(y||{}).data}))}}),t.forEach(["post","put","patch"],function(v){function m(y){return function(E,A,S){return this.request(i(S||{},{method:v,headers:y?{"Content-Type":"multipart/form-data"}:{},url:E,data:A}))}}f.prototype[v]=m(),f.prototype[v+"Form"]=m(!0)}),F1=f,F1}var $1,eO;function az(){if(eO)return $1;eO=1;var t=a_();function e(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var r;this.promise=new Promise(function(u){r=u});var i=this;this.promise.then(function(a){if(i._listeners){var u,c=i._listeners.length;for(u=0;u<c;u++)i._listeners[u](a);i._listeners=null}}),this.promise.then=function(a){var u,c=new Promise(function(f){i.subscribe(f),u=f}).then(a);return c.cancel=function(){i.unsubscribe(u)},c},n(function(u){i.reason||(i.reason=new t(u),r(i.reason))})}return e.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},e.prototype.subscribe=function(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]},e.prototype.unsubscribe=function(r){if(this._listeners){var i=this._listeners.indexOf(r);i!==-1&&this._listeners.splice(i,1)}},e.source=function(){var r,i=new e(function(u){r=u});return{token:i,cancel:r}},$1=e,$1}var j1,tO;function sz(){return tO||(tO=1,j1=function(e){return function(r){return e.apply(null,r)}}),j1}var z1,nO;function lz(){if(nO)return z1;nO=1;var t=Kr();return z1=function(n){return t.isObject(n)&&n.isAxiosError===!0},z1}var rO;function uz(){if(rO)return T0.exports;rO=1;var t=Kr(),e=A2(),n=oz(),r=L2(),i=lb();function a(c){var f=new n(c),p=e(n.prototype.request,f);return t.extend(p,n.prototype,f),t.extend(p,f),p.create=function(m){return a(r(c,m))},p}var u=a(i);return u.Axios=n,u.CanceledError=a_(),u.CancelToken=az(),u.isCancel=D2(),u.VERSION=M2().version,u.toFormData=N2(),u.AxiosError=jh(),u.Cancel=u.CanceledError,u.all=function(f){return Promise.all(f)},u.spread=sz(),u.isAxiosError=lz(),T0.exports=u,T0.exports.default=u,T0.exports}var H1,iO;function cz(){return iO||(iO=1,H1=uz()),H1}var fz=cz();const I2=no(fz);function dz(t){return t instanceof HTMLElement||t instanceof SVGElement}function hz(t){return dz(t)?t:t instanceof je.Component?ih.findDOMNode(t):null}function gl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function oO(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,p2(r.key),r)}}function yl(t,e,n){return e&&oO(t.prototype,e),n&&oO(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function s_(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&sy(t,e)}function vu(t){return vu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},vu(t)}function l_(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(l_=function(){return!!t})()}function ub(t,e){if(e&&(Mn(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uy(t)}function F2(t){var e=l_();return function(){var r=vu(t),i;if(e){var a=vu(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return ub(this,i)}}function pz(t,e){var n=pt({},t);return Array.isArray(e)&&e.forEach(function(r){delete n[r]}),n}function mz(t){if(Array.isArray(t))return PS(t)}function $2(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function vz(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
534
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Co(t){return mz(t)||$2(t)||ab(t)||vz()}var j2=function(e){return+setTimeout(e,16)},z2=function(e){return clearTimeout(e)};typeof window<"u"&&"requestAnimationFrame"in window&&(j2=function(e){return window.requestAnimationFrame(e)},z2=function(e){return window.cancelAnimationFrame(e)});var aO=0,cb=new Map;function H2(t){cb.delete(t)}var jS=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;aO+=1;var r=aO;function i(a){if(a===0)H2(r),e();else{var u=j2(function(){i(a-1)});cb.set(r,u)}}return i(n),r};jS.cancel=function(t){var e=cb.get(t);return H2(t),z2(e)};function vy(t){for(var e=0,n,r=0,i=t.length;i>=4;++r,i-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}function gz(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(a,u){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,f=r.has(a);if(Ev(!f,"Warning: There may be circular references"),f)return!1;if(a===u)return!0;if(n&&c>1)return!1;r.add(a);var p=c+1;if(Array.isArray(a)){if(!Array.isArray(u)||a.length!==u.length)return!1;for(var v=0;v<a.length;v++)if(!i(a[v],u[v],p))return!1;return!0}if(a&&u&&Mn(a)==="object"&&Mn(u)==="object"){var m=Object.keys(a);return m.length!==Object.keys(u).length?!1:m.every(function(y){return i(a[y],u[y],p)})}return!1}return i(t,e)}var yz="%";function zS(t){return t.join(yz)}var _z=function(){function t(e){gl(this,t),kt(this,"instanceId",void 0),kt(this,"cache",new Map),this.instanceId=e}return yl(t,[{key:"get",value:function(n){return this.opGet(zS(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(zS(n),r)}},{key:"opUpdate",value:function(n,r){var i=this.cache.get(n),a=r(i);a===null?this.cache.delete(n):this.cache.set(n,a)}}]),t}(),Oh="data-token-hash",Ca="data-css-hash",du="__cssinjs_instance__";function wz(){var t=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var e=document.body.querySelectorAll("style[".concat(Ca,"]"))||[],n=document.head.firstChild;Array.from(e).forEach(function(i){i[du]=i[du]||t,i[du]===t&&document.head.insertBefore(i,n)});var r={};Array.from(document.querySelectorAll("style[".concat(Ca,"]"))).forEach(function(i){var a=i.getAttribute(Ca);if(r[a]){if(i[du]===t){var u;(u=i.parentNode)===null||u===void 0||u.removeChild(i)}}else r[a]=!0})}return new _z(t)}var u_=N.createContext({hashPriority:"low",cache:wz(),defaultCache:!0});function Sz(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}var fb=function(){function t(){gl(this,t),kt(this,"cache",void 0),kt(this,"keys",void 0),kt(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return yl(t,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,i,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u={map:this.cache};return n.forEach(function(c){if(!u)u=void 0;else{var f;u=(f=u)===null||f===void 0||(f=f.map)===null||f===void 0?void 0:f.get(c)}}),(r=u)!==null&&r!==void 0&&r.value&&a&&(u.value[1]=this.cacheCallTimes++),(i=u)===null||i===void 0?void 0:i.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var i=this;if(!this.has(n)){if(this.size()+1>t.MAX_CACHE_SIZE+t.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(p,v){var m=bt(p,2),y=m[1];return i.internalGet(v)[1]<y?[v,i.internalGet(v)[1]]:p},[this.keys[0],this.cacheCallTimes]),u=bt(a,1),c=u[0];this.delete(c)}this.keys.push(n)}var f=this.cache;n.forEach(function(p,v){if(v===n.length-1)f.set(p,{value:[r,i.cacheCallTimes++]});else{var m=f.get(p);m?m.map||(m.map=new Map):f.set(p,{map:new Map}),f=f.get(p).map}})}},{key:"deleteByPath",value:function(n,r){var i=n.get(r[0]);if(r.length===1){var a;return i.map?n.set(r[0],{map:i.map}):n.delete(r[0]),(a=i.value)===null||a===void 0?void 0:a[0]}var u=this.deleteByPath(i.map,r.slice(1));return(!i.map||i.map.size===0)&&!i.value&&n.delete(r[0]),u}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!Sz(r,n)}),this.deleteByPath(this.cache,n)}}]),t}();kt(fb,"MAX_CACHE_SIZE",20);kt(fb,"MAX_CACHE_OFFSET",5);var sO=0,q2=function(){function t(e){gl(this,t),kt(this,"derivatives",void 0),kt(this,"id",void 0),this.derivatives=Array.isArray(e)?e:[e],this.id=sO,e.length===0&&(e.length>0,void 0),sO+=1}return yl(t,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,i){return i(n,r)},void 0)}}]),t}(),q1=new fb;function HS(t){var e=Array.isArray(t)?t:[t];return q1.has(e)||q1.set(e,new q2(e)),q1.get(e)}var Cz=new WeakMap,U1={};function bz(t,e){for(var n=Cz,r=0;r<e.length;r+=1){var i=e[r];n.has(i)||n.set(i,new WeakMap),n=n.get(i)}return n.has(U1)||n.set(U1,t()),n.get(U1)}var lO=new WeakMap;function km(t){var e=lO.get(t)||"";return e||(Object.keys(t).forEach(function(n){var r=t[n];e+=n,r instanceof q2?e+=r.id:r&&Mn(r)==="object"?e+=km(r):e+=r}),lO.set(t,e)),e}function uO(t,e){return vy("".concat(e,"_").concat(km(t)))}var Nm="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),U2="_bAmBoO_";function Ez(t,e,n){if(ys()){var r,i;cf(t,Nm);var a=document.createElement("div");a.style.position="fixed",a.style.left="0",a.style.top="0",e?.(a),document.body.appendChild(a);var u=(r=getComputedStyle(a).content)===null||r===void 0?void 0:r.includes(U2);return(i=a.parentNode)===null||i===void 0||i.removeChild(a),sb(Nm),u}return!1}var W1=void 0;function xz(){return W1===void 0&&(W1=Ez("@layer ".concat(Nm," { .").concat(Nm,' { content: "').concat(U2,'"!important; } }'),function(t){t.className=Nm})),W1}var qS=ys();function Ah(t){return typeof t=="number"?"".concat(t,"px"):t}function gy(t,e,n){var r,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return t;var u=pt(pt({},i),{},(r={},kt(r,Oh,e),kt(r,Ca,n),r)),c=Object.keys(u).map(function(f){var p=u[f];return p?"".concat(f,'="').concat(p,'"'):null}).filter(function(f){return f}).join(" ");return"<style ".concat(c,">").concat(t,"</style>")}var W2=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},Tz=function(e,n,r){return Object.keys(e).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(e).map(function(i){var a=bt(i,2),u=a[0],c=a[1];return"".concat(u,":").concat(c,";")}).join(""),"}"):""},V2=function(e,n,r){var i={},a={};return Object.entries(e).forEach(function(u){var c,f,p=bt(u,2),v=p[0],m=p[1];if(r!=null&&(c=r.preserve)!==null&&c!==void 0&&c[v])a[v]=m;else if((typeof m=="string"||typeof m=="number")&&!(r!=null&&(f=r.ignore)!==null&&f!==void 0&&f[v])){var y,b=W2(v,r?.prefix);i[b]=typeof m=="number"&&!(r!=null&&(y=r.unitless)!==null&&y!==void 0&&y[v])?"".concat(m,"px"):String(m),a[v]="var(".concat(b,")")}}),[a,Tz(i,n,{scope:r?.scope})]},cO=ys()?N.useLayoutEffect:N.useEffect,Oz=function(e,n){var r=N.useRef(!0);cO(function(){return e(r.current)},n),cO(function(){return r.current=!1,function(){r.current=!0}},[])},Az=pt({},zy),fO=Az.useInsertionEffect,Rz=function(e,n,r){N.useMemo(e,r),Oz(function(){return n(!0)},r)},kz=fO?function(t,e,n){return fO(function(){return t(),e()},n)}:Rz,Nz=pt({},zy),Pz=Nz.useInsertionEffect,Dz=function(e){var n=[],r=!1;function i(a){r||n.push(a)}return N.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(a){return a()})}},e),i},Lz=function(){return function(e){e()}},Mz=typeof Pz<"u"?Dz:Lz;function db(t,e,n,r,i){var a=N.useContext(u_),u=a.cache,c=[t].concat(Co(e)),f=zS(c),p=Mz([f]),v=function(E){u.opUpdate(f,function(A){var S=A||[void 0,void 0],O=bt(S,2),k=O[0],T=k===void 0?0:k,C=O[1],w=C,R=w||n(),I=[T,R];return E?E(I):I})};N.useMemo(function(){v()},[f]);var m=u.opGet(f),y=m[1];return kz(function(){i?.(y)},function(b){return v(function(E){var A=bt(E,2),S=A[0],O=A[1];return b&&S===0&&i?.(y),[S+1,O]}),function(){u.opUpdate(f,function(E){var A=E||[],S=bt(A,2),O=S[0],k=O===void 0?0:O,T=S[1],C=k-1;return C===0?(p(function(){(b||!u.opGet(f))&&r?.(T,!1)}),null):[k-1,T]})}},[f]),y}var Iz={},Fz="css",Fc=new Map;function $z(t){Fc.set(t,(Fc.get(t)||0)+1)}function jz(t,e){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Oh,'="').concat(t,'"]'));n.forEach(function(r){if(r[du]===e){var i;(i=r.parentNode)===null||i===void 0||i.removeChild(r)}})}}var zz=0;function Hz(t,e){Fc.set(t,(Fc.get(t)||0)-1);var n=Array.from(Fc.keys()),r=n.filter(function(i){var a=Fc.get(i)||0;return a<=0});n.length-r.length>zz&&r.forEach(function(i){jz(i,e),Fc.delete(i)})}var qz=function(e,n,r,i){var a=r.getDerivativeToken(e),u=pt(pt({},a),n);return i&&(u=i(u)),u},G2="token";function Uz(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=N.useContext(u_),i=r.cache.instanceId,a=r.container,u=n.salt,c=u===void 0?"":u,f=n.override,p=f===void 0?Iz:f,v=n.formatToken,m=n.getComputedToken,y=n.cssVar,b=bz(function(){return Object.assign.apply(Object,[{}].concat(Co(e)))},e),E=km(b),A=km(p),S=y?km(y):"",O=db(G2,[c,t.id,E,A,S],function(){var k,T=m?m(b,p,t):qz(b,p,t,v),C=pt({},T),w="";if(y){var R=V2(T,y.key,{prefix:y.prefix,ignore:y.ignore,unitless:y.unitless,preserve:y.preserve}),I=bt(R,2);T=I[0],w=I[1]}var $=uO(T,c);T._tokenKey=$,C._tokenKey=uO(C,c);var U=(k=y?.key)!==null&&k!==void 0?k:$;T._themeKey=U,$z(U);var G="".concat(Fz,"-").concat(vy($));return T._hashId=G,[T,G,C,w,y?.key||""]},function(k){Hz(k[0]._themeKey,i)},function(k){var T=bt(k,4),C=T[0],w=T[3];if(y&&w){var R=cf(w,vy("css-variables-".concat(C._themeKey)),{mark:Ca,prepend:"queue",attachTo:a,priority:-999});R[du]=i,R.setAttribute(Oh,C._themeKey)}});return O}var Wz=function(e,n,r){var i=bt(e,5),a=i[2],u=i[3],c=i[4],f=r||{},p=f.plain;if(!u)return null;var v=a._tokenKey,m=-999,y={"data-rc-order":"prependQueue","data-rc-priority":"".concat(m)},b=gy(u,c,v,y,p);return[m,v,b]},B2="comm",K2="rule",X2="decl",Vz="@import",Gz="@keyframes",Bz="@layer",Y2=Math.abs,hb=String.fromCharCode;function Q2(t){return t.trim()}function W0(t,e,n){return t.replace(e,n)}function Kz(t,e,n){return t.indexOf(e,n)}function Bm(t,e){return t.charCodeAt(e)|0}function Km(t,e,n){return t.slice(e,n)}function rl(t){return t.length}function Xz(t){return t.length}function O0(t,e){return e.push(t),t}var c_=1,Rh=1,Z2=0,Qo=0,ar=0,zh="";function pb(t,e,n,r,i,a,u,c){return{value:t,root:e,parent:n,type:r,props:i,children:a,line:c_,column:Rh,length:u,return:"",siblings:c}}function Yz(){return ar}function Qz(){return ar=Qo>0?Bm(zh,--Qo):0,Rh--,ar===10&&(Rh=1,c_--),ar}function ba(){return ar=Qo<Z2?Bm(zh,Qo++):0,Rh++,ar===10&&(Rh=1,c_++),ar}function Bc(){return Bm(zh,Qo)}function V0(){return Qo}function f_(t,e){return Km(zh,t,e)}function US(t){switch(t){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 Zz(t){return c_=Rh=1,Z2=rl(zh=t),Qo=0,[]}function Jz(t){return zh="",t}function V1(t){return Q2(f_(Qo-1,WS(t===91?t+2:t===40?t+1:t)))}function eH(t){for(;(ar=Bc())&&ar<33;)ba();return US(t)>2||US(ar)>3?"":" "}function tH(t,e){for(;--e&&ba()&&!(ar<48||ar>102||ar>57&&ar<65||ar>70&&ar<97););return f_(t,V0()+(e<6&&Bc()==32&&ba()==32))}function WS(t){for(;ba();)switch(ar){case t:return Qo;case 34:case 39:t!==34&&t!==39&&WS(ar);break;case 40:t===41&&WS(t);break;case 92:ba();break}return Qo}function nH(t,e){for(;ba()&&t+ar!==57;)if(t+ar===84&&Bc()===47)break;return"/*"+f_(e,Qo-1)+"*"+hb(t===47?t:ba())}function rH(t){for(;!US(Bc());)ba();return f_(t,Qo)}function iH(t){return Jz(G0("",null,null,null,[""],t=Zz(t),0,[0],t))}function G0(t,e,n,r,i,a,u,c,f){for(var p=0,v=0,m=u,y=0,b=0,E=0,A=1,S=1,O=1,k=0,T="",C=i,w=a,R=r,I=T;S;)switch(E=k,k=ba()){case 40:if(E!=108&&Bm(I,m-1)==58){Kz(I+=W0(V1(k),"&","&\f"),"&\f",Y2(p?c[p-1]:0))!=-1&&(O=-1);break}case 34:case 39:case 91:I+=V1(k);break;case 9:case 10:case 13:case 32:I+=eH(E);break;case 92:I+=tH(V0()-1,7);continue;case 47:switch(Bc()){case 42:case 47:O0(oH(nH(ba(),V0()),e,n,f),f);break;default:I+="/"}break;case 123*A:c[p++]=rl(I)*O;case 125*A:case 59:case 0:switch(k){case 0:case 125:S=0;case 59+v:O==-1&&(I=W0(I,/\f/g,"")),b>0&&rl(I)-m&&O0(b>32?hO(I+";",r,n,m-1,f):hO(W0(I," ","")+";",r,n,m-2,f),f);break;case 59:I+=";";default:if(O0(R=dO(I,e,n,p,v,i,c,T,C=[],w=[],m,a),a),k===123)if(v===0)G0(I,e,R,R,C,a,m,c,w);else switch(y===99&&Bm(I,3)===110?100:y){case 100:case 108:case 109:case 115:G0(t,R,R,r&&O0(dO(t,R,R,0,0,i,c,T,i,C=[],m,w),w),i,w,m,c,r?C:w);break;default:G0(I,R,R,R,[""],w,0,c,w)}}p=v=b=0,A=O=1,T=I="",m=u;break;case 58:m=1+rl(I),b=E;default:if(A<1){if(k==123)--A;else if(k==125&&A++==0&&Qz()==125)continue}switch(I+=hb(k),k*A){case 38:O=v>0?1:(I+="\f",-1);break;case 44:c[p++]=(rl(I)-1)*O,O=1;break;case 64:Bc()===45&&(I+=V1(ba())),y=Bc(),v=m=rl(T=I+=rH(V0())),k++;break;case 45:E===45&&rl(I)==2&&(A=0)}}return a}function dO(t,e,n,r,i,a,u,c,f,p,v,m){for(var y=i-1,b=i===0?a:[""],E=Xz(b),A=0,S=0,O=0;A<r;++A)for(var k=0,T=Km(t,y+1,y=Y2(S=u[A])),C=t;k<E;++k)(C=Q2(S>0?b[k]+" "+T:W0(T,/&\f/g,b[k])))&&(f[O++]=C);return pb(t,e,n,i===0?K2:c,f,p,v,m)}function oH(t,e,n,r){return pb(t,e,n,B2,hb(Yz()),Km(t,2,-2),0,r)}function hO(t,e,n,r,i){return pb(t,e,n,X2,Km(t,0,r),Km(t,r+1,-1),r,i)}function VS(t,e){for(var n="",r=0;r<t.length;r++)n+=e(t[r],r,t,e)||"";return n}function aH(t,e,n,r){switch(t.type){case Bz:if(t.children.length)break;case Vz:case X2:return t.return=t.return||t.value;case B2:return"";case Gz:return t.return=t.value+"{"+VS(t.children,r)+"}";case K2:if(!rl(t.value=t.props.join(",")))return""}return rl(n=VS(t.children,r))?t.return=t.value+"{"+n+"}":""}var pO="data-ant-cssinjs-cache-path",J2="_FILE_STYLE__",Kc,ek=!0;function sH(){if(!Kc&&(Kc={},ys())){var t=document.createElement("div");t.className=pO,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);var e=getComputedStyle(t).content||"";e=e.replace(/^"/,"").replace(/"$/,""),e.split(";").forEach(function(i){var a=i.split(":"),u=bt(a,2),c=u[0],f=u[1];Kc[c]=f});var n=document.querySelector("style[".concat(pO,"]"));if(n){var r;ek=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(t)}}function lH(t){return sH(),!!Kc[t]}function uH(t){var e=Kc[t],n=null;if(e&&ys())if(ek)n=J2;else{var r=document.querySelector("style[".concat(Ca,'="').concat(Kc[t],'"]'));r?n=r.innerHTML:delete Kc[t]}return[n,e]}var cH="_skip_check_",tk="_multi_value_";function GS(t){var e=VS(iH(t),aH);return e.replace(/\{%%%\:[^;];}/g,";")}function fH(t){return Mn(t)==="object"&&t&&(cH in t||tk in t)}function dH(t,e,n){if(!e)return t;var r=".".concat(e),i=n==="low"?":where(".concat(r,")"):r,a=t.split(",").map(function(u){var c,f=u.trim().split(/\s+/),p=f[0]||"",v=((c=p.match(/^\w+/))===null||c===void 0?void 0:c[0])||"";return p="".concat(v).concat(i).concat(p.slice(v.length)),[p].concat(Co(f.slice(1))).join(" ")});return a.join(",")}var hH=function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},i=r.root,a=r.injectHash,u=r.parentSelectors,c=n.hashId,f=n.layer;n.path;var p=n.hashPriority,v=n.transformers,m=v===void 0?[]:v;n.linters;var y="",b={};function E(T){var C=T.getName(c);if(!b[C]){var w=t(T.style,n,{root:!1,parentSelectors:u}),R=bt(w,1),I=R[0];b[C]="@keyframes ".concat(T.getName(c)).concat(I)}}function A(T){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return T.forEach(function(w){Array.isArray(w)?A(w,C):w&&C.push(w)}),C}var S=A(Array.isArray(e)?e:[e]);if(S.forEach(function(T){var C=typeof T=="string"&&!i?{}:T;if(typeof C=="string")y+="".concat(C,`
|
|
535
|
+
`);else if(C._keyframe)E(C);else{var w=m.reduce(function(R,I){var $;return(I==null||($=I.visit)===null||$===void 0?void 0:$.call(I,R))||R},C);Object.keys(w).forEach(function(R){var I=w[R];if(Mn(I)==="object"&&I&&(R!=="animationName"||!I._keyframe)&&!fH(I)){var $=!1,U=R.trim(),G=!1;(i||a)&&c?U.startsWith("@")?$=!0:U=dH(R,c,p):i&&!c&&(U==="&"||U==="")&&(U="",G=!0);var Y=t(I,n,{root:G,injectHash:$,parentSelectors:[].concat(Co(u),[U])}),Z=bt(Y,2),ee=Z[0],ae=Z[1];b=pt(pt({},b),ae),y+="".concat(U).concat(ee)}else{let re=function(z,B){var F=z.replace(/[A-Z]/g,function(X){return"-".concat(X.toLowerCase())}),W=B;!QR[z]&&typeof W=="number"&&W!==0&&(W="".concat(W,"px")),z==="animationName"&&B!==null&&B!==void 0&&B._keyframe&&(E(B),W=B.getName(c)),y+="".concat(F,":").concat(W,";")};var de,Q=(de=I?.value)!==null&&de!==void 0?de:I;Mn(I)==="object"&&I!==null&&I!==void 0&&I[tk]&&Array.isArray(Q)?Q.forEach(function(z){re(R,z)}):re(R,Q)}})}}),!i)y="{".concat(y,"}");else if(f&&xz()){var O=f.split(","),k=O[O.length-1].trim();y="@layer ".concat(k," {").concat(y,"}"),O.length>1&&(y="@layer ".concat(f,"{%%%:%}").concat(y))}return[y,b]};function nk(t,e){return vy("".concat(t.join("%")).concat(e))}function pH(){return null}var rk="style";function BS(t,e){var n=t.token,r=t.path,i=t.hashId,a=t.layer,u=t.nonce,c=t.clientOnly,f=t.order,p=f===void 0?0:f,v=N.useContext(u_),m=v.autoClear;v.mock;var y=v.defaultCache,b=v.hashPriority,E=v.container,A=v.ssrInline,S=v.transformers,O=v.linters,k=v.cache,T=n._tokenKey,C=[T].concat(Co(r)),w=qS,R=db(rk,C,function(){var Y=C.join("|");if(lH(Y)){var Z=uH(Y),ee=bt(Z,2),ae=ee[0],de=ee[1];if(ae)return[ae,T,de,{},c,p]}var Q=e(),re=hH(Q,{hashId:i,hashPriority:b,layer:a,path:r.join("-"),transformers:S,linters:O}),z=bt(re,2),B=z[0],F=z[1],W=GS(B),X=nk(C,W);return[W,T,X,F,c,p]},function(Y,Z){var ee=bt(Y,3),ae=ee[2];(Z||m)&&qS&&sb(ae,{mark:Ca})},function(Y){var Z=bt(Y,4),ee=Z[0];Z[1];var ae=Z[2],de=Z[3];if(w&&ee!==J2){var Q={mark:Ca,prepend:"queue",attachTo:E,priority:p},re=typeof u=="function"?u():u;re&&(Q.csp={nonce:re});var z=cf(ee,ae,Q);z[du]=k.instanceId,z.setAttribute(Oh,T),Object.keys(de).forEach(function(B){cf(GS(de[B]),"_effect-".concat(B),Q)})}}),I=bt(R,3),$=I[0],U=I[1],G=I[2];return function(Y){var Z;if(!A||w||!y)Z=N.createElement(pH,null);else{var ee;Z=N.createElement("style",ci({},(ee={},kt(ee,Oh,U),kt(ee,Ca,G),ee),{dangerouslySetInnerHTML:{__html:$}}))}return N.createElement(N.Fragment,null,Z,Y)}}var mH=function(e,n,r){var i=bt(e,6),a=i[0],u=i[1],c=i[2],f=i[3],p=i[4],v=i[5],m=r||{},y=m.plain;if(p)return null;var b=a,E={"data-rc-order":"prependQueue","data-rc-priority":"".concat(v)};return b=gy(a,u,c,E,y),f&&Object.keys(f).forEach(function(A){if(!n[A]){n[A]=!0;var S=GS(f[A]);b+=gy(S,u,"_effect-".concat(A),E,y)}}),[v,c,b]},ik="cssVar",vH=function(e,n){var r=e.key,i=e.prefix,a=e.unitless,u=e.ignore,c=e.token,f=e.scope,p=f===void 0?"":f,v=N.useContext(u_),m=v.cache.instanceId,y=v.container,b=c._tokenKey,E=[].concat(Co(e.path),[r,p,b]),A=db(ik,E,function(){var S=n(),O=V2(S,r,{prefix:i,unitless:a,ignore:u,scope:p}),k=bt(O,2),T=k[0],C=k[1],w=nk(E,C);return[T,C,w,r]},function(S){var O=bt(S,3),k=O[2];qS&&sb(k,{mark:Ca})},function(S){var O=bt(S,3),k=O[1],T=O[2];if(k){var C=cf(k,T,{mark:Ca,prepend:"queue",attachTo:y,priority:-999});C[du]=m,C.setAttribute(Oh,r)}});return A},gH=function(e,n,r){var i=bt(e,4),a=i[1],u=i[2],c=i[3],f=r||{},p=f.plain;if(!a)return null;var v=-999,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(v)},y=gy(a,c,u,m,p);return[v,u,y]},hm;hm={},kt(hm,rk,mH),kt(hm,G2,Wz),kt(hm,ik,gH);var Wc=function(){function t(e,n){gl(this,t),kt(this,"name",void 0),kt(this,"style",void 0),kt(this,"_keyframe",!0),this.name=e,this.style=n}return yl(t,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),t}();function Qd(t){return t.notSplit=!0,t}Qd(["borderTop","borderBottom"]),Qd(["borderTop"]),Qd(["borderBottom"]),Qd(["borderLeft","borderRight"]),Qd(["borderLeft"]),Qd(["borderRight"]);function yH(t){return d2(t)||$2(t)||ab(t)||h2()}function KS(t,e){for(var n=t,r=0;r<e.length;r+=1){if(n==null)return;n=n[e[r]]}return n}function ok(t,e,n,r){if(!e.length)return n;var i=yH(e),a=i[0],u=i.slice(1),c;return!t&&typeof a=="number"?c=[]:Array.isArray(t)?c=Co(t):c=pt({},t),r&&n===void 0&&u.length===1?delete c[a][u[0]]:c[a]=ok(c[a],u,n,r),c}function G1(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return e.length&&r&&n===void 0&&!KS(t,e.slice(0,-1))?t:ok(t,e,n,r)}function _H(t){return Mn(t)==="object"&&t!==null&&Object.getPrototypeOf(t)===Object.prototype}function mO(t){return Array.isArray(t)?[]:{}}var wH=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function SH(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=mO(e[0]);return e.forEach(function(i){function a(u,c){var f=new Set(c),p=KS(i,u),v=Array.isArray(p);if(v||_H(p)){if(!f.has(p)){f.add(p);var m=KS(r,u);v?r=G1(r,u,[]):(!m||Mn(m)!=="object")&&(r=G1(r,u,mO(p))),wH(p).forEach(function(y){a([].concat(Co(u),[y]),f)})}}else r=G1(r,u,p)}a([])}),r}const CH=N.createContext({}),bH=N.createContext(void 0),go="${label} is not a valid ${type}",d_={Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:go,method:go,array:go,object:go,number:go,date:go,boolean:go,integer:go,float:go,regexp:go,email:go,url:go,hex:go},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}}};Object.assign({},d_.Modal);let B0=[];const vO=()=>B0.reduce((t,e)=>Object.assign(Object.assign({},t),e),d_.Modal);function EH(t){if(t){const e=Object.assign({},t);return B0.push(e),vO(),()=>{B0=B0.filter(n=>n!==e),vO()}}Object.assign({},d_.Modal)}const ak=N.createContext(void 0),xH="internalMark",TH=t=>{const{locale:e={},children:n,_ANT_MARK__:r}=t;N.useEffect(()=>EH(e&&e.Modal),[e]);const i=N.useMemo(()=>Object.assign(Object.assign({},e),{exist:!0}),[e]);return N.createElement(ak.Provider,{value:i},n)},OH=t=>{const{controlHeight:e}=t;return{controlHeightSM:e*.75,controlHeightXS:e*.5,controlHeightLG:e*1.25}};function AH(t){const{sizeUnit:e,sizeStep:n}=t;return{sizeXXL:e*(n+8),sizeXL:e*(n+4),sizeLG:e*(n+2),sizeMD:e*(n+1),sizeMS:e*n,size:e*n,sizeSM:e*(n-1),sizeXS:e*(n-2),sizeXXS:e*(n-3)}}const sk={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Xm=Object.assign(Object.assign({},sk),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
536
|
+
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
537
|
+
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});function RH(t,e){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=e;const{colorSuccess:i,colorWarning:a,colorError:u,colorInfo:c,colorPrimary:f,colorBgBase:p,colorTextBase:v}=t,m=n(f),y=n(i),b=n(a),E=n(u),A=n(c),S=r(p,v),O=t.colorLink||t.colorInfo,k=n(O);return Object.assign(Object.assign({},S),{colorPrimaryBg:m[1],colorPrimaryBgHover:m[2],colorPrimaryBorder:m[3],colorPrimaryBorderHover:m[4],colorPrimaryHover:m[5],colorPrimary:m[6],colorPrimaryActive:m[7],colorPrimaryTextHover:m[8],colorPrimaryText:m[9],colorPrimaryTextActive:m[10],colorSuccessBg:y[1],colorSuccessBgHover:y[2],colorSuccessBorder:y[3],colorSuccessBorderHover:y[4],colorSuccessHover:y[4],colorSuccess:y[6],colorSuccessActive:y[7],colorSuccessTextHover:y[8],colorSuccessText:y[9],colorSuccessTextActive:y[10],colorErrorBg:E[1],colorErrorBgHover:E[2],colorErrorBorder:E[3],colorErrorBorderHover:E[4],colorErrorHover:E[5],colorError:E[6],colorErrorActive:E[7],colorErrorTextHover:E[8],colorErrorText:E[9],colorErrorTextActive:E[10],colorWarningBg:b[1],colorWarningBgHover:b[2],colorWarningBorder:b[3],colorWarningBorderHover:b[4],colorWarningHover:b[4],colorWarning:b[6],colorWarningActive:b[7],colorWarningTextHover:b[8],colorWarningText:b[9],colorWarningTextActive:b[10],colorInfoBg:A[1],colorInfoBgHover:A[2],colorInfoBorder:A[3],colorInfoBorderHover:A[4],colorInfoHover:A[4],colorInfo:A[6],colorInfoActive:A[7],colorInfoTextHover:A[8],colorInfoText:A[9],colorInfoTextActive:A[10],colorLinkHover:k[4],colorLink:k[6],colorLinkActive:k[7],colorBgMask:new So("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const kH=t=>{let e=t,n=t,r=t,i=t;return t<6&&t>=5?e=t+1:t<16&&t>=6?e=t+2:t>=16&&(e=16),t<7&&t>=5?n=4:t<8&&t>=7?n=5:t<14&&t>=8?n=6:t<16&&t>=14?n=7:t>=16&&(n=8),t<6&&t>=2?r=1:t>=6&&(r=2),t>4&&t<8?i=4:t>=8&&(i=6),{borderRadius:t,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:e,borderRadiusOuter:i}};function NH(t){const{motionUnit:e,motionBase:n,borderRadius:r,lineWidth:i}=t;return Object.assign({motionDurationFast:`${(n+e).toFixed(1)}s`,motionDurationMid:`${(n+e*2).toFixed(1)}s`,motionDurationSlow:`${(n+e*3).toFixed(1)}s`,lineWidthBold:i+1},kH(r))}const tl=(t,e)=>new So(t).setAlpha(e).toRgbString(),pm=(t,e)=>new So(t).darken(e).toHexString(),PH=t=>{const e=uf(t);return{1:e[0],2:e[1],3:e[2],4:e[3],5:e[4],6:e[5],7:e[6],8:e[4],9:e[5],10:e[6]}},DH=(t,e)=>{const n=t||"#fff",r=e||"#000";return{colorBgBase:n,colorTextBase:r,colorText:tl(r,.88),colorTextSecondary:tl(r,.65),colorTextTertiary:tl(r,.45),colorTextQuaternary:tl(r,.25),colorFill:tl(r,.15),colorFillSecondary:tl(r,.06),colorFillTertiary:tl(r,.04),colorFillQuaternary:tl(r,.02),colorBgLayout:pm(n,4),colorBgContainer:pm(n,0),colorBgElevated:pm(n,0),colorBgSpotlight:tl(r,.85),colorBgBlur:"transparent",colorBorder:pm(n,15),colorBorderSecondary:pm(n,6)}};function LH(t){return(t+8)/t}function MH(t){const e=new Array(10).fill(null).map((n,r)=>{const i=r-1,a=t*Math.pow(2.71828,i/5),u=r>1?Math.floor(a):Math.ceil(a);return Math.floor(u/2)*2});return e[1]=t,e.map(n=>({size:n,lineHeight:LH(n)}))}const IH=t=>{const e=MH(t),n=e.map(v=>v.size),r=e.map(v=>v.lineHeight),i=n[1],a=n[0],u=n[2],c=r[1],f=r[0],p=r[2];return{fontSizeSM:a,fontSize:i,fontSizeLG:u,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:c,lineHeightLG:p,lineHeightSM:f,fontHeight:Math.round(c*i),fontHeightLG:Math.round(p*u),fontHeightSM:Math.round(f*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function FH(t){const e=Object.keys(sk).map(n=>{const r=uf(t[n]);return new Array(10).fill(1).reduce((i,a,u)=>(i[`${n}-${u+1}`]=r[u],i[`${n}${u+1}`]=r[u],i),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t),e),RH(t,{generateColorPalettes:PH,generateNeutralColorPalettes:DH})),IH(t.fontSize)),AH(t)),OH(t)),NH(t))}const lk=HS(FH),uk={token:Xm,override:{override:Xm},hashed:!0},ck=je.createContext(uk),mb="anticon",$H=(t,e)=>e||(t?`ant-${t}`:"ant"),ms=N.createContext({getPrefixCls:$H,iconPrefixCls:mb}),{Consumer:SY}=ms,jH=`-ant-${Date.now()}-${Math.random()}`;function zH(t,e){const n={},r=(u,c)=>{let f=u.clone();return f=c?.(f)||f,f.toRgbString()},i=(u,c)=>{const f=new So(u),p=uf(f.toRgbString());n[`${c}-color`]=r(f),n[`${c}-color-disabled`]=p[1],n[`${c}-color-hover`]=p[4],n[`${c}-color-active`]=p[6],n[`${c}-color-outline`]=f.clone().setAlpha(.2).toRgbString(),n[`${c}-color-deprecated-bg`]=p[0],n[`${c}-color-deprecated-border`]=p[2]};if(e.primaryColor){i(e.primaryColor,"primary");const u=new So(e.primaryColor),c=uf(u.toRgbString());c.forEach((p,v)=>{n[`primary-${v+1}`]=p}),n["primary-color-deprecated-l-35"]=r(u,p=>p.lighten(35)),n["primary-color-deprecated-l-20"]=r(u,p=>p.lighten(20)),n["primary-color-deprecated-t-20"]=r(u,p=>p.tint(20)),n["primary-color-deprecated-t-50"]=r(u,p=>p.tint(50)),n["primary-color-deprecated-f-12"]=r(u,p=>p.setAlpha(p.getAlpha()*.12));const f=new So(c[0]);n["primary-color-active-deprecated-f-30"]=r(f,p=>p.setAlpha(p.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(f,p=>p.darken(2))}return e.successColor&&i(e.successColor,"success"),e.warningColor&&i(e.warningColor,"warning"),e.errorColor&&i(e.errorColor,"error"),e.infoColor&&i(e.infoColor,"info"),`
|
|
538
|
+
:root {
|
|
539
|
+
${Object.keys(n).map(u=>`--${t}-${u}: ${n[u]};`).join(`
|
|
540
|
+
`)}
|
|
541
|
+
}
|
|
542
|
+
`.trim()}function HH(t,e){const n=zH(t,e);ys()&&cf(n,`${jH}-dynamic-theme`)}const XS=N.createContext(!1),qH=t=>{let{children:e,disabled:n}=t;const r=N.useContext(XS);return N.createElement(XS.Provider,{value:n??r},e)},Ym=N.createContext(void 0),UH=t=>{let{children:e,size:n}=t;const r=N.useContext(Ym);return N.createElement(Ym.Provider,{value:n||r},e)};function WH(){const t=N.useContext(XS),e=N.useContext(Ym);return{componentDisabled:t,componentSize:e}}const VH="5.14.0";function B1(t){return t>=0&&t<=255}function A0(t,e){const{r:n,g:r,b:i,a}=new So(t).toRgb();if(a<1)return t;const{r:u,g:c,b:f}=new So(e).toRgb();for(let p=.01;p<=1;p+=.01){const v=Math.round((n-u*(1-p))/p),m=Math.round((r-c*(1-p))/p),y=Math.round((i-f*(1-p))/p);if(B1(v)&&B1(m)&&B1(y))return new So({r:v,g:m,b:y,a:Math.round(p*100)/100}).toRgbString()}return new So({r:n,g:r,b:i,a:1}).toRgbString()}var GH=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function fk(t){const{override:e}=t,n=GH(t,["override"]),r=Object.assign({},e);Object.keys(Xm).forEach(y=>{delete r[y]});const i=Object.assign(Object.assign({},n),r),a=480,u=576,c=768,f=992,p=1200,v=1600;if(i.motion===!1){const y="0s";i.motionDurationFast=y,i.motionDurationMid=y,i.motionDurationSlow=y}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:A0(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:A0(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:A0(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*4,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:A0(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:`
|
|
543
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
544
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
545
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
546
|
+
`,boxShadowSecondary:`
|
|
547
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
548
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
549
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
550
|
+
`,boxShadowTertiary:`
|
|
551
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
552
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
553
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
554
|
+
`,screenXS:a,screenXSMin:a,screenXSMax:u-1,screenSM:u,screenSMMin:u,screenSMMax:c-1,screenMD:c,screenMDMin:c,screenMDMax:f-1,screenLG:f,screenLGMin:f,screenLGMax:p-1,screenXL:p,screenXLMin:p,screenXLMax:v-1,screenXXL:v,screenXXLMin:v,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
555
|
+
0 1px 2px -2px ${new So("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
556
|
+
0 3px 6px 0 ${new So("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
557
|
+
0 5px 12px 4px ${new So("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
558
|
+
`,boxShadowDrawerRight:`
|
|
559
|
+
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
560
|
+
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
561
|
+
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
562
|
+
`,boxShadowDrawerLeft:`
|
|
563
|
+
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
564
|
+
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
565
|
+
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
566
|
+
`,boxShadowDrawerUp:`
|
|
567
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
568
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
569
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
570
|
+
`,boxShadowDrawerDown:`
|
|
571
|
+
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
572
|
+
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
573
|
+
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
574
|
+
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var gO=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const dk={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0},hk={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},BH={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},pk=(t,e,n)=>{const r=n.getDerivativeToken(t),{override:i}=e,a=gO(e,["override"]);let u=Object.assign(Object.assign({},r),{override:i});return u=fk(u),a&&Object.entries(a).forEach(c=>{let[f,p]=c;const{theme:v}=p,m=gO(p,["theme"]);let y=m;v&&(y=pk(Object.assign(Object.assign({},u),m),{override:m},v)),u[f]=y}),u};function ff(){const{token:t,hashed:e,theme:n,override:r,cssVar:i}=je.useContext(ck),a=`${VH}-${e||""}`,u=n||lk,[c,f,p]=Uz(u,[Xm,t],{salt:a,override:r,getComputedToken:pk,formatToken:fk,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:dk,ignore:hk,preserve:BH}});return[u,p,e?f:"",c,i]}function K0(t){var e=N.useRef(!1),n=N.useState(t),r=bt(n,2),i=r[0],a=r[1];N.useEffect(function(){return e.current=!1,function(){e.current=!0}},[]);function u(c,f){f&&e.current||a(c)}return[i,u]}const mk=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:t.colorText,fontSize:t.fontSize,lineHeight:t.lineHeight,listStyle:"none",fontFamily:e?"inherit":t.fontFamily}},KH=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),XH=t=>({a:{color:t.colorLink,textDecoration:t.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${t.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:t.colorLinkHover},"&:active":{color:t.colorLinkActive},"&:active,\n &:hover":{textDecoration:t.linkHoverDecoration,outline:0},"&:focus":{textDecoration:t.linkFocusDecoration,outline:0},"&[disabled]":{color:t.colorTextDisabled,cursor:"not-allowed"}}}),YH=(t,e,n)=>{const{fontFamily:r,fontSize:i}=t,a=`[class^="${e}"], [class*=" ${e}"]`;return{[n?`.${n}`:a]:{fontFamily:r,fontSize:i,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[a]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}};let vk=yl(function t(){gl(this,t)});function QH(t,e,n){return e=vu(e),ub(t,l_()?Reflect.construct(e,[],vu(t).constructor):e.apply(t,n))}let ZH=function(t){s_(e,t);function e(n){var r;return gl(this,e),r=QH(this,e),r.result=0,n instanceof e?r.result=n.result:typeof n=="number"&&(r.result=n),r}return yl(e,[{key:"add",value:function(r){return r instanceof e?this.result+=r.result:typeof r=="number"&&(this.result+=r),this}},{key:"sub",value:function(r){return r instanceof e?this.result-=r.result:typeof r=="number"&&(this.result-=r),this}},{key:"mul",value:function(r){return r instanceof e?this.result*=r.result:typeof r=="number"&&(this.result*=r),this}},{key:"div",value:function(r){return r instanceof e?this.result/=r.result:typeof r=="number"&&(this.result/=r),this}},{key:"equal",value:function(){return this.result}}]),e}(vk);function JH(t,e,n){return e=vu(e),ub(t,l_()?Reflect.construct(e,[],vu(t).constructor):e.apply(t,n))}const gk="CALC_UNIT";function K1(t){return typeof t=="number"?`${t}${gk}`:t}let eq=function(t){s_(e,t);function e(n){var r;return gl(this,e),r=JH(this,e),r.result="",n instanceof e?r.result=`(${n.result})`:typeof n=="number"?r.result=K1(n):typeof n=="string"&&(r.result=n),r}return yl(e,[{key:"add",value:function(r){return r instanceof e?this.result=`${this.result} + ${r.getResult()}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} + ${K1(r)}`),this.lowPriority=!0,this}},{key:"sub",value:function(r){return r instanceof e?this.result=`${this.result} - ${r.getResult()}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} - ${K1(r)}`),this.lowPriority=!0,this}},{key:"mul",value:function(r){return this.lowPriority&&(this.result=`(${this.result})`),r instanceof e?this.result=`${this.result} * ${r.getResult(!0)}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} * ${r}`),this.lowPriority=!1,this}},{key:"div",value:function(r){return this.lowPriority&&(this.result=`(${this.result})`),r instanceof e?this.result=`${this.result} / ${r.getResult(!0)}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} / ${r}`),this.lowPriority=!1,this}},{key:"getResult",value:function(r){return this.lowPriority||r?`(${this.result})`:this.result}},{key:"equal",value:function(r){const{unit:i=!0}=r||{},a=new RegExp(`${gk}`,"g");return this.result=this.result.replace(a,i?"px":""),typeof this.lowPriority<"u"?`calc(${this.result})`:this.result}}]),e}(vk);const tq=t=>{const e=t==="css"?eq:ZH;return n=>new e(n)};function nq(t){return t==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return`max(${n.map(i=>Ah(i)).join(",")})`},min:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return`min(${n.map(i=>Ah(i)).join(",")})`}}}const yk=typeof CSSINJS_STATISTIC<"u";let YS=!0;function h_(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(!yk)return Object.assign.apply(Object,[{}].concat(e));YS=!1;const r={};return e.forEach(i=>{Object.keys(i).forEach(u=>{Object.defineProperty(r,u,{configurable:!0,enumerable:!0,get:()=>i[u]})})}),YS=!0,r}const yO={};function rq(){}const iq=t=>{let e,n=t,r=rq;return yk&&typeof Proxy<"u"&&(e=new Set,n=new Proxy(t,{get(i,a){return YS&&e.add(a),i[a]}}),r=(i,a)=>{var u;yO[i]={global:Array.from(e),component:Object.assign(Object.assign({},(u=yO[i])===null||u===void 0?void 0:u.component),a)}}),{token:n,keys:e,flush:r}},_k=(t,e)=>{const[n,r]=ff();return BS({token:r,hashId:"",path:["ant-design-icons",t],nonce:()=>e?.nonce},()=>[{[`.${t}`]:Object.assign(Object.assign({},KH()),{[`.${t} .${t}-icon`]:{display:"block"}})}])},wk=(t,e,n)=>{var r;return typeof n=="function"?n(h_(e,(r=e[t])!==null&&r!==void 0?r:{})):n??{}},Sk=(t,e,n,r)=>{const i=Object.assign({},e[t]);if(r?.deprecatedTokens){const{deprecatedTokens:u}=r;u.forEach(c=>{let[f,p]=c;var v;(i?.[f]||i?.[p])&&((v=i[p])!==null&&v!==void 0||(i[p]=i?.[f]))})}const a=Object.assign(Object.assign({},n),i);return Object.keys(a).forEach(u=>{a[u]===e[u]&&delete a[u]}),a},oq=(t,e)=>`${[e,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`;function Ck(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=Array.isArray(t)?t:[t,t],[a]=i,u=i.join("-");return function(c){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:c;const[p,v,m,y,b]=ff(),{getPrefixCls:E,iconPrefixCls:A,csp:S}=N.useContext(ms),O=E(),k=b?"css":"js",T=tq(k),{max:C,min:w}=nq(k),R={theme:p,token:y,hashId:m,nonce:()=>S?.nonce,clientOnly:r.clientOnly,order:r.order||-999};return BS(Object.assign(Object.assign({},R),{clientOnly:!1,path:["Shared",O]}),()=>[{"&":XH(y)}]),_k(A,S),[BS(Object.assign(Object.assign({},R),{path:[u,c,A]}),()=>{if(r.injectStyle===!1)return[];const{token:$,flush:U}=iq(y),G=wk(a,v,n),Y=`.${c}`,Z=Sk(a,v,G,{deprecatedTokens:r.deprecatedTokens});b&&Object.keys(G).forEach(de=>{G[de]=`var(${W2(de,oq(a,b.prefix))})`});const ee=h_($,{componentCls:Y,prefixCls:c,iconCls:`.${A}`,antCls:`.${O}`,calc:T,max:C,min:w},b?G:Z),ae=e(ee,{hashId:m,prefixCls:c,rootPrefixCls:O,iconPrefixCls:A});return U(a,Z),[r.resetStyle===!1?null:YH(ee,c,f),ae]}),m]}}const aq=(t,e,n,r)=>{const i=Ck(t,e,n,Object.assign({resetStyle:!1,order:-998},r));return u=>{let{prefixCls:c,rootCls:f=c}=u;return i(c,f),null}},sq=(t,e,n)=>{function r(p){return`${t}${p.slice(0,1).toUpperCase()}${p.slice(1)}`}const{unitless:i={},injectStyle:a=!0}=n??{},u={[r("zIndexPopup")]:!0};Object.keys(i).forEach(p=>{u[r(p)]=i[p]});const c=p=>{let{rootCls:v,cssVar:m}=p;const[,y]=ff();return vH({path:[t],prefix:m.prefix,key:m?.key,unitless:Object.assign(Object.assign({},dk),u),ignore:hk,token:y,scope:v},()=>{const b=wk(t,y,e),E=Sk(t,y,b,{deprecatedTokens:void 0});return Object.keys(b).forEach(A=>{E[r(A)]=E[A],delete E[A]}),E}),null};return p=>{const[,,,,v]=ff();return[m=>a&&v?je.createElement(je.Fragment,null,je.createElement(c,{rootCls:p,cssVar:v,component:t}),m):m,v?.key]}},bk=(t,e,n,r)=>{const i=Ck(t,e,n,r),a=sq(Array.isArray(t)?t[0]:t,n,r);return function(u){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u;const[,f]=i(u,c),[p,v]=a(c);return[p,f,v]}},lq=Object.assign({},zy),{useId:_O}=lq,uq=()=>"",cq=typeof _O>"u"?uq:_O;function fq(t,e){const n=t||{},r=n.inherit===!1||!e?uk:e,i=cq();return O2(()=>{var a,u;if(!t)return e;const c=Object.assign({},r.components);Object.keys(t.components||{}).forEach(v=>{c[v]=Object.assign(Object.assign({},c[v]),t.components[v])});const f=`css-var-${i.replace(/:/g,"")}`,p=((a=n.cssVar)!==null&&a!==void 0?a:r.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:"ant"},typeof r.cssVar=="object"?r.cssVar:{}),typeof n.cssVar=="object"?n.cssVar:{}),{key:typeof n.cssVar=="object"&&((u=n.cssVar)===null||u===void 0?void 0:u.key)||f});return Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:c,cssVar:p})},[n,r],(a,u)=>a.some((c,f)=>{const p=u[f];return!gz(c,p,!0)}))}var dq=["children"],Ek=N.createContext({});function hq(t){var e=t.children,n=lf(t,dq);return N.createElement(Ek.Provider,{value:n},e)}var pq=function(t){s_(n,t);var e=F2(n);function n(){return gl(this,n),e.apply(this,arguments)}return yl(n,[{key:"render",value:function(){return this.props.children}}]),n}(N.Component),Lc="none",R0="appear",k0="enter",N0="leave",wO="none",ya="prepare",ah="start",sh="active",vb="end",xk="prepared";function SO(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit".concat(t)]="webkit".concat(e),n["Moz".concat(t)]="moz".concat(e),n["ms".concat(t)]="MS".concat(e),n["O".concat(t)]="o".concat(e.toLowerCase()),n}function mq(t,e){var n={animationend:SO("Animation","AnimationEnd"),transitionend:SO("Transition","TransitionEnd")};return t&&("AnimationEvent"in e||delete n.animationend.animation,"TransitionEvent"in e||delete n.transitionend.transition),n}var vq=mq(ys(),typeof window<"u"?window:{}),Tk={};if(ys()){var gq=document.createElement("div");Tk=gq.style}var P0={};function Ok(t){if(P0[t])return P0[t];var e=vq[t];if(e)for(var n=Object.keys(e),r=n.length,i=0;i<r;i+=1){var a=n[i];if(Object.prototype.hasOwnProperty.call(e,a)&&a in Tk)return P0[t]=e[a],P0[t]}return""}var Ak=Ok("animationend"),Rk=Ok("transitionend"),kk=!!(Ak&&Rk),CO=Ak||"animationend",bO=Rk||"transitionend";function EO(t,e){if(!t)return null;if(Mn(t)==="object"){var n=e.replace(/-\w/g,function(r){return r[1].toUpperCase()});return t[n]}return"".concat(t,"-").concat(e)}const yq=function(t){var e=N.useRef(),n=N.useRef(t);n.current=t;var r=N.useCallback(function(u){n.current(u)},[]);function i(u){u&&(u.removeEventListener(bO,r),u.removeEventListener(CO,r))}function a(u){e.current&&e.current!==u&&i(e.current),u&&u!==e.current&&(u.addEventListener(bO,r),u.addEventListener(CO,r),e.current=u)}return N.useEffect(function(){return function(){i(e.current)}},[]),[a,i]};var Nk=ys()?N.useLayoutEffect:N.useEffect;const _q=function(){var t=N.useRef(null);function e(){jS.cancel(t.current)}function n(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;e();var a=jS(function(){i<=1?r({isCanceled:function(){return a!==t.current}}):n(r,i-1)});t.current=a}return N.useEffect(function(){return function(){e()}},[]),[n,e]};var wq=[ya,ah,sh,vb],Sq=[ya,xk],Pk=!1,Cq=!0;function Dk(t){return t===sh||t===vb}const bq=function(t,e,n){var r=K0(wO),i=bt(r,2),a=i[0],u=i[1],c=_q(),f=bt(c,2),p=f[0],v=f[1];function m(){u(ya,!0)}var y=e?Sq:wq;return Nk(function(){if(a!==wO&&a!==vb){var b=y.indexOf(a),E=y[b+1],A=n(a);A===Pk?u(E,!0):E&&p(function(S){function O(){S.isCanceled()||u(E,!0)}A===!0?O():Promise.resolve(A).then(O)})}},[t,a]),N.useEffect(function(){return function(){v()}},[]),[m,a]};function Eq(t,e,n,r){var i=r.motionEnter,a=i===void 0?!0:i,u=r.motionAppear,c=u===void 0?!0:u,f=r.motionLeave,p=f===void 0?!0:f,v=r.motionDeadline,m=r.motionLeaveImmediately,y=r.onAppearPrepare,b=r.onEnterPrepare,E=r.onLeavePrepare,A=r.onAppearStart,S=r.onEnterStart,O=r.onLeaveStart,k=r.onAppearActive,T=r.onEnterActive,C=r.onLeaveActive,w=r.onAppearEnd,R=r.onEnterEnd,I=r.onLeaveEnd,$=r.onVisibleChanged,U=K0(),G=bt(U,2),Y=G[0],Z=G[1],ee=K0(Lc),ae=bt(ee,2),de=ae[0],Q=ae[1],re=K0(null),z=bt(re,2),B=z[0],F=z[1],W=N.useRef(!1),X=N.useRef(null);function le(){return n()}var ce=N.useRef(!1);function oe(){Q(Lc,!0),F(null,!0)}function q(Fe){var Ae=le();if(!(Fe&&!Fe.deadline&&Fe.target!==Ae)){var ze=ce.current,nt;de===R0&&ze?nt=w?.(Ae,Fe):de===k0&&ze?nt=R?.(Ae,Fe):de===N0&&ze&&(nt=I?.(Ae,Fe)),de!==Lc&&ze&&nt!==!1&&oe()}}var ie=yq(q),J=bt(ie,1),be=J[0],Ee=function(Ae){var ze,nt,ct;switch(Ae){case R0:return ze={},kt(ze,ya,y),kt(ze,ah,A),kt(ze,sh,k),ze;case k0:return nt={},kt(nt,ya,b),kt(nt,ah,S),kt(nt,sh,T),nt;case N0:return ct={},kt(ct,ya,E),kt(ct,ah,O),kt(ct,sh,C),ct;default:return{}}},Re=N.useMemo(function(){return Ee(de)},[de]),Me=bq(de,!t,function(Fe){if(Fe===ya){var Ae=Re[ya];return Ae?Ae(le()):Pk}if(ye in Re){var ze;F(((ze=Re[ye])===null||ze===void 0?void 0:ze.call(Re,le(),null))||null)}return ye===sh&&(be(le()),v>0&&(clearTimeout(X.current),X.current=setTimeout(function(){q({deadline:!0})},v))),ye===xk&&oe(),Cq}),qe=bt(Me,2),Je=qe[0],ye=qe[1],Ce=Dk(ye);ce.current=Ce,Nk(function(){Z(e);var Fe=W.current;W.current=!0;var Ae;!Fe&&e&&c&&(Ae=R0),Fe&&e&&a&&(Ae=k0),(Fe&&!e&&p||!Fe&&m&&!e&&p)&&(Ae=N0);var ze=Ee(Ae);Ae&&(t||ze[ya])?(Q(Ae),Je()):Q(Lc)},[e]),N.useEffect(function(){(de===R0&&!c||de===k0&&!a||de===N0&&!p)&&Q(Lc)},[c,a,p]),N.useEffect(function(){return function(){W.current=!1,clearTimeout(X.current)}},[]);var ke=N.useRef(!1);N.useEffect(function(){Y&&(ke.current=!0),Y!==void 0&&de===Lc&&((ke.current||Y)&&$?.(Y),ke.current=!0)},[Y,de]);var xe=B;return Re[ya]&&ye===ah&&(xe=pt({transition:"none"},xe)),[de,ye,xe,Y??e]}function xq(t){var e=t;Mn(t)==="object"&&(e=t.transitionSupport);function n(i,a){return!!(i.motionName&&e&&a!==!1)}var r=N.forwardRef(function(i,a){var u=i.visible,c=u===void 0?!0:u,f=i.removeOnLeave,p=f===void 0?!0:f,v=i.forceRender,m=i.children,y=i.motionName,b=i.leavedClassName,E=i.eventProps,A=N.useContext(Ek),S=A.motion,O=n(i,S),k=N.useRef(),T=N.useRef();function C(){try{return k.current instanceof HTMLElement?k.current:hz(T.current)}catch{return null}}var w=Eq(O,c,C,i),R=bt(w,4),I=R[0],$=R[1],U=R[2],G=R[3],Y=N.useRef(G);G&&(Y.current=!0);var Z=N.useCallback(function(F){k.current=F,W7(a,F)},[a]),ee,ae=pt(pt({},E),{},{visible:c});if(!m)ee=null;else if(I===Lc)G?ee=m(pt({},ae),Z):!p&&Y.current&&b?ee=m(pt(pt({},ae),{},{className:b}),Z):v||!p&&!b?ee=m(pt(pt({},ae),{},{style:{display:"none"}}),Z):ee=null;else{var de,Q;$===ya?Q="prepare":Dk($)?Q="active":$===ah&&(Q="start");var re=EO(y,"".concat(I,"-").concat(Q));ee=m(pt(pt({},ae),{},{className:et(EO(y,I),(de={},kt(de,re,re&&Q),kt(de,y,typeof y=="string"),de)),style:U}),Z)}if(N.isValidElement(ee)&&V7(ee)){var z=ee,B=z.ref;B||(ee=N.cloneElement(ee,{ref:Z}))}return N.createElement(pq,{ref:T},ee)});return r.displayName="CSSMotion",r}const Tq=xq(kk);var QS="add",ZS="keep",JS="remove",X1="removed";function Oq(t){var e;return t&&Mn(t)==="object"&&"key"in t?e=t:e={key:t},pt(pt({},e),{},{key:String(e.key)})}function eC(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.map(Oq)}function Aq(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,i=e.length,a=eC(t),u=eC(e);a.forEach(function(p){for(var v=!1,m=r;m<i;m+=1){var y=u[m];if(y.key===p.key){r<m&&(n=n.concat(u.slice(r,m).map(function(b){return pt(pt({},b),{},{status:QS})})),r=m),n.push(pt(pt({},y),{},{status:ZS})),r+=1,v=!0;break}}v||n.push(pt(pt({},p),{},{status:JS}))}),r<i&&(n=n.concat(u.slice(r).map(function(p){return pt(pt({},p),{},{status:QS})})));var c={};n.forEach(function(p){var v=p.key;c[v]=(c[v]||0)+1});var f=Object.keys(c).filter(function(p){return c[p]>1});return f.forEach(function(p){n=n.filter(function(v){var m=v.key,y=v.status;return m!==p||y!==JS}),n.forEach(function(v){v.key===p&&(v.status=ZS)})}),n}var Rq=["component","children","onVisibleChanged","onAllRemoved"],kq=["status"],Nq=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Pq(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Tq,n=function(r){s_(a,r);var i=F2(a);function a(){var u;gl(this,a);for(var c=arguments.length,f=new Array(c),p=0;p<c;p++)f[p]=arguments[p];return u=i.call.apply(i,[this].concat(f)),kt(uy(u),"state",{keyEntities:[]}),kt(uy(u),"removeKey",function(v){var m=u.state.keyEntities,y=m.map(function(b){return b.key!==v?b:pt(pt({},b),{},{status:X1})});return u.setState({keyEntities:y}),y.filter(function(b){var E=b.status;return E!==X1}).length}),u}return yl(a,[{key:"render",value:function(){var c=this,f=this.state.keyEntities,p=this.props,v=p.component,m=p.children,y=p.onVisibleChanged,b=p.onAllRemoved,E=lf(p,Rq),A=v||N.Fragment,S={};return Nq.forEach(function(O){S[O]=E[O],delete E[O]}),delete E.keys,N.createElement(A,E,f.map(function(O,k){var T=O.status,C=lf(O,kq),w=T===QS||T===ZS;return N.createElement(e,ci({},S,{key:C.key,visible:w,eventProps:C,onVisibleChanged:function(I){if(y?.(I,{key:C.key}),!I){var $=c.removeKey(C.key);$===0&&b&&b()}}}),function(R,I){return m(pt(pt({},R),{},{index:k}),I)})}))}}],[{key:"getDerivedStateFromProps",value:function(c,f){var p=c.keys,v=f.keyEntities,m=eC(p),y=Aq(v,m);return{keyEntities:y.filter(function(b){var E=v.find(function(A){var S=A.key;return b.key===S});return!(E&&E.status===X1&&b.status===JS)})}}}]),a}(N.Component);return kt(n,"defaultProps",{component:"div"}),n}const Dq=Pq(kk);function Lq(t){const{children:e}=t,[,n]=ff(),{motion:r}=n,i=N.useRef(!1);return i.current=i.current||r===!1,i.current?N.createElement(hq,{motion:r},e):e}const Mq=()=>null;var Iq=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const Fq=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],$q="ant";let yy,Lk,Mk,Ik;function X0(){return yy||$q}function jq(){return Lk||mb}function zq(t){return Object.keys(t).some(e=>e.endsWith("Color"))}const Hq=t=>{const{prefixCls:e,iconPrefixCls:n,theme:r,holderRender:i}=t;e!==void 0&&(yy=e),n!==void 0&&(Lk=n),"holderRender"in t&&(Ik=i),r&&(zq(r)?HH(X0(),r):Mk=r)},qq=()=>({getPrefixCls:(t,e)=>e||(t?`${X0()}-${t}`:X0()),getIconPrefixCls:jq,getRootPrefixCls:()=>yy||X0(),getTheme:()=>Mk,holderRender:Ik}),Uq=t=>{const{children:e,csp:n,autoInsertSpaceInButton:r,alert:i,anchor:a,form:u,locale:c,componentSize:f,direction:p,space:v,virtual:m,dropdownMatchSelectWidth:y,popupMatchSelectWidth:b,popupOverflow:E,legacyLocale:A,parentContext:S,iconPrefixCls:O,theme:k,componentDisabled:T,segmented:C,statistic:w,spin:R,calendar:I,carousel:$,cascader:U,collapse:G,typography:Y,checkbox:Z,descriptions:ee,divider:ae,drawer:de,skeleton:Q,steps:re,image:z,layout:B,list:F,mentions:W,modal:X,progress:le,result:ce,slider:oe,breadcrumb:q,menu:ie,pagination:J,input:be,empty:Ee,badge:Re,radio:Me,rate:qe,switch:Je,transfer:ye,avatar:Ce,message:ke,tag:xe,table:Fe,card:Ae,tabs:ze,timeline:nt,timePicker:ct,upload:Ge,notification:yt,tree:Bt,colorPicker:$n,datePicker:Yt,rangePicker:Yr,flex:lr,wave:Dr,dropdown:Xe,warning:it,tour:Mt}=t,Zn=N.useCallback((rn,mn)=>{const{prefixCls:Jn}=t;if(mn)return mn;const xr=Jn||S.getPrefixCls("");return rn?`${xr}-${rn}`:xr},[S.getPrefixCls,t.prefixCls]),pn=O||S.iconPrefixCls||mb,Qr=n||S.csp;_k(pn,Qr);const br=fq(k,S.theme),xo={csp:Qr,autoInsertSpaceInButton:r,alert:i,anchor:a,locale:c||A,direction:p,space:v,virtual:m,popupMatchSelectWidth:b??y,popupOverflow:E,getPrefixCls:Zn,iconPrefixCls:pn,theme:br,segmented:C,statistic:w,spin:R,calendar:I,carousel:$,cascader:U,collapse:G,typography:Y,checkbox:Z,descriptions:ee,divider:ae,drawer:de,skeleton:Q,steps:re,image:z,input:be,layout:B,list:F,mentions:W,modal:X,progress:le,result:ce,slider:oe,breadcrumb:q,menu:ie,pagination:J,empty:Ee,badge:Re,radio:Me,rate:qe,switch:Je,transfer:ye,avatar:Ce,message:ke,tag:xe,table:Fe,card:Ae,tabs:ze,timeline:nt,timePicker:ct,upload:Ge,notification:yt,tree:Bt,colorPicker:$n,datePicker:Yt,rangePicker:Yr,flex:lr,wave:Dr,dropdown:Xe,warning:it,tour:Mt},To=Object.assign({},S);Object.keys(xo).forEach(rn=>{xo[rn]!==void 0&&(To[rn]=xo[rn])}),Fq.forEach(rn=>{const mn=t[rn];mn&&(To[rn]=mn)});const Er=O2(()=>To,To,(rn,mn)=>{const Jn=Object.keys(rn),xr=Object.keys(mn);return Jn.length!==xr.length||Jn.some(di=>rn[di]!==mn[di])}),Ai=N.useMemo(()=>({prefixCls:pn,csp:Qr}),[pn,Qr]);let en=N.createElement(N.Fragment,null,N.createElement(Mq,{dropdownMatchSelectWidth:y}),e);const bs=N.useMemo(()=>{var rn,mn,Jn,xr;return SH(((rn=d_.Form)===null||rn===void 0?void 0:rn.defaultValidateMessages)||{},((Jn=(mn=Er.locale)===null||mn===void 0?void 0:mn.Form)===null||Jn===void 0?void 0:Jn.defaultValidateMessages)||{},((xr=Er.form)===null||xr===void 0?void 0:xr.validateMessages)||{},u?.validateMessages||{})},[Er,u?.validateMessages]);Object.keys(bs).length>0&&(en=N.createElement(bH.Provider,{value:bs},en)),c&&(en=N.createElement(TH,{locale:c,_ANT_MARK__:xH},en)),en=N.createElement(ob.Provider,{value:Ai},en),f&&(en=N.createElement(UH,{size:f},en)),en=N.createElement(Lq,null,en);const Cl=N.useMemo(()=>{const rn=br||{},{algorithm:mn,token:Jn,components:xr,cssVar:di}=rn,Ra=Iq(rn,["algorithm","token","components","cssVar"]),hi=mn&&(!Array.isArray(mn)||mn.length>0)?HS(mn):lk,Es={};Object.entries(xr||{}).forEach(Lr=>{let[er,Jo]=Lr;const Zr=Object.assign({},Jo);"algorithm"in Zr&&(Zr.algorithm===!0?Zr.theme=hi:(Array.isArray(Zr.algorithm)||typeof Zr.algorithm=="function")&&(Zr.theme=HS(Zr.algorithm)),delete Zr.algorithm),Es[er]=Zr});const Ri=Object.assign(Object.assign({},Xm),Jn);return Object.assign(Object.assign({},Ra),{theme:hi,token:Ri,components:Es,override:Object.assign({override:Ri},Es),cssVar:di})},[br]);return k&&(en=N.createElement(ck.Provider,{value:Cl},en)),Er.warning&&(en=N.createElement(CH.Provider,{value:Er.warning},en)),T!==void 0&&(en=N.createElement(qH,{disabled:T},en)),N.createElement(ms.Provider,{value:Er},en)},Hh=t=>{const e=N.useContext(ms),n=N.useContext(ak);return N.createElement(Uq,Object.assign({parentContext:e,legacyLocale:n},t))};Hh.ConfigContext=ms;Hh.SizeContext=Ym;Hh.config=Hq;Hh.useConfig=WH;Object.defineProperty(Hh,"SizeContext",{get:()=>Ym});const{isValidElement:tC}=zy;function Wq(t,e,n){return tC(t)?N.cloneElement(t,typeof n=="function"?n(t.props||{}):n):e}function xO(t,e){return Wq(t,t,e)}const Fk=t=>{const[,,,,e]=ff();return e?`${t}-css-var`:""};var Vq={ENTER:13},$k=N.forwardRef(function(t,e){var n=t.prefixCls,r=t.style,i=t.className,a=t.duration,u=a===void 0?4.5:a,c=t.eventKey,f=t.content,p=t.closable,v=t.closeIcon,m=v===void 0?"x":v,y=t.props,b=t.onClick,E=t.onNoticeClose,A=t.times,S=t.hovering,O=N.useState(!1),k=bt(O,2),T=k[0],C=k[1],w=S||T,R=function(){E(c)},I=function(G){(G.key==="Enter"||G.code==="Enter"||G.keyCode===Vq.ENTER)&&R()};N.useEffect(function(){if(!w&&u>0){var U=setTimeout(function(){R()},u*1e3);return function(){clearTimeout(U)}}},[u,w,A]);var $="".concat(n,"-notice");return N.createElement("div",ci({},y,{ref:e,className:et($,i,kt({},"".concat($,"-closable"),p)),style:r,onMouseEnter:function(G){var Y;C(!0),y==null||(Y=y.onMouseEnter)===null||Y===void 0||Y.call(y,G)},onMouseLeave:function(G){var Y;C(!1),y==null||(Y=y.onMouseLeave)===null||Y===void 0||Y.call(y,G)},onClick:b}),N.createElement("div",{className:"".concat($,"-content")},f),p&&N.createElement("a",{tabIndex:0,className:"".concat($,"-close"),onKeyDown:I,onClick:function(G){G.preventDefault(),G.stopPropagation(),R()}},m))}),jk=je.createContext({}),Gq=function(e){var n=e.children,r=e.classNames;return je.createElement(jk.Provider,{value:{classNames:r}},n)},TO=8,OO=3,AO=16,Bq=function(e){var n={offset:TO,threshold:OO,gap:AO};if(e&&Mn(e)==="object"){var r,i,a;n.offset=(r=e.offset)!==null&&r!==void 0?r:TO,n.threshold=(i=e.threshold)!==null&&i!==void 0?i:OO,n.gap=(a=e.gap)!==null&&a!==void 0?a:AO}return[!!e,n]},Kq=["className","style","classNames","styles"],Xq=function(e){var n,r=e.configList,i=e.placement,a=e.prefixCls,u=e.className,c=e.style,f=e.motion,p=e.onAllNoticeRemoved,v=e.onNoticeClose,m=e.stack,y=N.useContext(jk),b=y.classNames,E=N.useRef({}),A=N.useState(null),S=bt(A,2),O=S[0],k=S[1],T=N.useState([]),C=bt(T,2),w=C[0],R=C[1],I=r.map(function(re){return{config:re,key:String(re.key)}}),$=Bq(m),U=bt($,2),G=U[0],Y=U[1],Z=Y.offset,ee=Y.threshold,ae=Y.gap,de=G&&(w.length>0||I.length<=ee),Q=typeof f=="function"?f(i):f;return N.useEffect(function(){G&&w.length>1&&R(function(re){return re.filter(function(z){return I.some(function(B){var F=B.key;return z===F})})})},[w,I,G]),N.useEffect(function(){var re;if(G&&E.current[(re=I[I.length-1])===null||re===void 0?void 0:re.key]){var z;k(E.current[(z=I[I.length-1])===null||z===void 0?void 0:z.key])}},[I,G]),je.createElement(Dq,ci({key:i,className:et(a,"".concat(a,"-").concat(i),b?.list,u,(n={},kt(n,"".concat(a,"-stack"),!!G),kt(n,"".concat(a,"-stack-expanded"),de),n)),style:c,keys:I,motionAppear:!0},Q,{onAllRemoved:function(){p(i)}}),function(re,z){var B=re.config,F=re.className,W=re.style,X=re.index,le=B,ce=le.key,oe=le.times,q=String(ce),ie=B,J=ie.className,be=ie.style,Ee=ie.classNames,Re=ie.styles,Me=lf(ie,Kq),qe=I.findIndex(function(yt){return yt.key===q}),Je={};if(G){var ye=I.length-1-(qe>-1?qe:X-1),Ce=i==="top"||i==="bottom"?"-50%":"0";if(ye>0){var ke,xe,Fe;Je.height=de?(ke=E.current[q])===null||ke===void 0?void 0:ke.offsetHeight:O?.offsetHeight;for(var Ae=0,ze=0;ze<ye;ze++){var nt;Ae+=((nt=E.current[I[I.length-1-ze].key])===null||nt===void 0?void 0:nt.offsetHeight)+ae}var ct=(de?Ae:ye*Z)*(i.startsWith("top")?1:-1),Ge=!de&&O!==null&&O!==void 0&&O.offsetWidth&&(xe=E.current[q])!==null&&xe!==void 0&&xe.offsetWidth?(O?.offsetWidth-Z*2*(ye<3?ye:3))/((Fe=E.current[q])===null||Fe===void 0?void 0:Fe.offsetWidth):1;Je.transform="translate3d(".concat(Ce,", ").concat(ct,"px, 0) scaleX(").concat(Ge,")")}else Je.transform="translate3d(".concat(Ce,", 0, 0)")}return je.createElement("div",{ref:z,className:et("".concat(a,"-notice-wrapper"),F,Ee?.wrapper),style:pt(pt(pt({},W),Je),Re?.wrapper),onMouseEnter:function(){return R(function(Bt){return Bt.includes(q)?Bt:[].concat(Co(Bt),[q])})},onMouseLeave:function(){return R(function(Bt){return Bt.filter(function($n){return $n!==q})})}},je.createElement($k,ci({},Me,{ref:function(Bt){qe>-1?E.current[q]=Bt:delete E.current[q]},prefixCls:a,classNames:Ee,styles:Re,className:et(J,b?.notice),style:be,times:oe,key:ce,eventKey:ce,onNoticeClose:v,hovering:G&&w.length>0})))})},Yq=N.forwardRef(function(t,e){var n=t.prefixCls,r=n===void 0?"rc-notification":n,i=t.container,a=t.motion,u=t.maxCount,c=t.className,f=t.style,p=t.onAllRemoved,v=t.stack,m=t.renderNotifications,y=N.useState([]),b=bt(y,2),E=b[0],A=b[1],S=function(U){var G,Y=E.find(function(Z){return Z.key===U});Y==null||(G=Y.onClose)===null||G===void 0||G.call(Y),A(function(Z){return Z.filter(function(ee){return ee.key!==U})})};N.useImperativeHandle(e,function(){return{open:function(U){A(function(G){var Y=Co(G),Z=Y.findIndex(function(de){return de.key===U.key}),ee=pt({},U);if(Z>=0){var ae;ee.times=(((ae=G[Z])===null||ae===void 0?void 0:ae.times)||0)+1,Y[Z]=ee}else ee.times=0,Y.push(ee);return u>0&&Y.length>u&&(Y=Y.slice(-u)),Y})},close:function(U){S(U)},destroy:function(){A([])}}});var O=N.useState({}),k=bt(O,2),T=k[0],C=k[1];N.useEffect(function(){var $={};E.forEach(function(U){var G=U.placement,Y=G===void 0?"topRight":G;Y&&($[Y]=$[Y]||[],$[Y].push(U))}),Object.keys(T).forEach(function(U){$[U]=$[U]||[]}),C($)},[E]);var w=function(U){C(function(G){var Y=pt({},G),Z=Y[U]||[];return Z.length||delete Y[U],Y})},R=N.useRef(!1);if(N.useEffect(function(){Object.keys(T).length>0?R.current=!0:R.current&&(p?.(),R.current=!1)},[T]),!i)return null;var I=Object.keys(T);return wv.createPortal(N.createElement(N.Fragment,null,I.map(function($){var U=T[$],G=N.createElement(Xq,{key:$,configList:U,placement:$,prefixCls:r,className:c?.($),style:f?.($),motion:a,onNoticeClose:S,onAllNoticeRemoved:w,stack:v});return m?m(G,{prefixCls:r,key:$}):G})),i)}),Qq=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],Zq=function(){return document.body},RO=0;function Jq(){for(var t={},e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.forEach(function(i){i&&Object.keys(i).forEach(function(a){var u=i[a];u!==void 0&&(t[a]=u)})}),t}function eU(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.getContainer,n=e===void 0?Zq:e,r=t.motion,i=t.prefixCls,a=t.maxCount,u=t.className,c=t.style,f=t.onAllRemoved,p=t.stack,v=t.renderNotifications,m=lf(t,Qq),y=N.useState(),b=bt(y,2),E=b[0],A=b[1],S=N.useRef(),O=N.createElement(Yq,{container:E,ref:S,prefixCls:i,motion:r,maxCount:a,className:u,style:c,onAllRemoved:f,stack:p,renderNotifications:v}),k=N.useState([]),T=bt(k,2),C=T[0],w=T[1],R=N.useMemo(function(){return{open:function($){var U=Jq(m,$);(U.key===null||U.key===void 0)&&(U.key="rc-notification-".concat(RO),RO+=1),w(function(G){return[].concat(Co(G),[{type:"open",config:U}])})},close:function($){w(function(U){return[].concat(Co(U),[{type:"close",key:$}])})},destroy:function(){w(function($){return[].concat(Co($),[{type:"destroy"}])})}}},[]);return N.useEffect(function(){A(n())}),N.useEffect(function(){S.current&&C.length&&(C.forEach(function(I){switch(I.type){case"open":S.current.open(I.config);break;case"close":S.current.close(I.key);break;case"destroy":S.current.destroy();break}}),w(function(I){return I.filter(function($){return!C.includes($)})}))},[C]),[R,O]}const tU=100,nU=10,rU=tU*nU;var xv=pt({},a6),iU=xv.version,oU=xv.render;xv.unmountComponentAtNode;var gb;try{var aU=Number((iU||"").split(".")[0]);aU>=18&&(gb=xv.createRoot)}catch{}function kO(t){var e=xv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;e&&Mn(e)==="object"&&(e.usingClientEntryPoint=t)}var NO="__rc_react_root__";function sU(t,e){kO(!0);var n=e[NO]||gb(e);kO(!1),n.render(t),e[NO]=n}function lU(t,e){oU(t,e)}function uU(t,e){if(gb){sU(t,e);return}lU(t,e)}const cU=t=>{const{componentCls:e,notificationMarginEdge:n,animationMaxHeight:r}=t,i=`${e}-notice`,a=new Wc("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),u=new Wc("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),c=new Wc("antNotificationBottomFadeIn",{"0%":{bottom:t.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),f=new Wc("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[e]:{[`&${e}-top, &${e}-bottom`]:{marginInline:0,[i]:{marginInline:"auto auto"}},[`&${e}-top`]:{[`${e}-fade-enter${e}-fade-enter-active, ${e}-fade-appear${e}-fade-appear-active`]:{animationName:u}},[`&${e}-bottom`]:{[`${e}-fade-enter${e}-fade-enter-active, ${e}-fade-appear${e}-fade-appear-active`]:{animationName:c}},[`&${e}-topRight, &${e}-bottomRight`]:{[`${e}-fade-enter${e}-fade-enter-active, ${e}-fade-appear${e}-fade-appear-active`]:{animationName:a}},[`&${e}-topLeft, &${e}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[i]:{marginInlineEnd:"auto",marginInlineStart:0},[`${e}-fade-enter${e}-fade-enter-active, ${e}-fade-appear${e}-fade-appear-active`]:{animationName:f}}}}},fU=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],dU={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},hU=(t,e)=>{const{componentCls:n}=t;return{[`${n}-${e}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[e.startsWith("top")?"top":"bottom"]:0,[dU[e]]:{value:0,_skip_check_:!0}}}}},pU=t=>{const e={};for(let n=1;n<t.notificationStackLayer;n++)e[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${t.componentCls}-notice`]:{opacity:0,transition:`opacity ${t.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${t.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},e)},mU=t=>{const e={};for(let n=1;n<t.notificationStackLayer;n++)e[`&:nth-last-child(${n+1})`]={background:t.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},e)},vU=t=>{const{componentCls:e}=t;return Object.assign({[`${e}-stack`]:{[`& > ${e}-notice-wrapper`]:Object.assign({transition:`all ${t.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},pU(t))},[`${e}-stack:not(${e}-stack-expanded)`]:{[`& > ${e}-notice-wrapper`]:Object.assign({},mU(t))},[`${e}-stack${e}-stack-expanded`]:{[`& > ${e}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${t.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:t.margin,width:"100%",insetInline:0,bottom:t.calc(t.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},fU.map(n=>hU(t,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},zk=t=>{const{iconCls:e,componentCls:n,boxShadow:r,fontSizeLG:i,notificationMarginBottom:a,borderRadiusLG:u,colorSuccess:c,colorInfo:f,colorWarning:p,colorError:v,colorTextHeading:m,notificationBg:y,notificationPadding:b,notificationMarginEdge:E,fontSize:A,lineHeight:S,width:O,notificationIconSize:k,colorText:T}=t,C=`${n}-notice`;return{position:"relative",marginBottom:a,marginInlineStart:"auto",background:y,borderRadius:u,boxShadow:r,[C]:{padding:b,width:O,maxWidth:`calc(100vw - ${Ah(t.calc(E).mul(2).equal())})`,overflow:"hidden",lineHeight:S,wordWrap:"break-word"},[`${n}-close-icon`]:{fontSize:A,cursor:"pointer"},[`${C}-message`]:{marginBottom:t.marginXS,color:m,fontSize:i,lineHeight:t.lineHeightLG},[`${C}-description`]:{fontSize:A,color:T},[`${C}-closable ${C}-message`]:{paddingInlineEnd:t.paddingLG},[`${C}-with-icon ${C}-message`]:{marginBottom:t.marginXS,marginInlineStart:t.calc(t.marginSM).add(k).equal(),fontSize:i},[`${C}-with-icon ${C}-description`]:{marginInlineStart:t.calc(t.marginSM).add(k).equal(),fontSize:A},[`${C}-icon`]:{position:"absolute",fontSize:k,lineHeight:1,[`&-success${e}`]:{color:c},[`&-info${e}`]:{color:f},[`&-warning${e}`]:{color:p},[`&-error${e}`]:{color:v}},[`${C}-close`]:{position:"absolute",top:t.notificationPaddingVertical,insetInlineEnd:t.notificationPaddingHorizontal,color:t.colorIcon,outline:"none",width:t.notificationCloseButtonSize,height:t.notificationCloseButtonSize,borderRadius:t.borderRadiusSM,transition:`background-color ${t.motionDurationMid}, color ${t.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:t.colorIconHover,backgroundColor:t.closeBtnHoverBg}},[`${C}-btn`]:{float:"right",marginTop:t.marginSM}}},gU=t=>{const{componentCls:e,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:i,motionEaseInOut:a}=t,u=`${e}-notice`,c=new Wc("antNotificationFadeOut",{"0%":{maxHeight:t.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[e]:Object.assign(Object.assign({},mk(t)),{position:"fixed",zIndex:t.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${e}-hook-holder`]:{position:"relative"},[`${e}-fade-appear-prepare`]:{opacity:"0 !important"},[`${e}-fade-enter, ${e}-fade-appear`]:{animationDuration:t.motionDurationMid,animationTimingFunction:a,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${e}-fade-leave`]:{animationTimingFunction:a,animationFillMode:"both",animationDuration:i,animationPlayState:"paused"},[`${e}-fade-enter${e}-fade-enter-active, ${e}-fade-appear${e}-fade-appear-active`]:{animationPlayState:"running"},[`${e}-fade-leave${e}-fade-leave-active`]:{animationName:c,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${u}-btn`]:{float:"left"}}})},{[e]:{[`${u}-wrapper`]:Object.assign({},zk(t))}}]},Hk=t=>({zIndexPopup:t.zIndexPopupBase+rU+50,width:384,closeBtnHoverBg:t.wireframe?"transparent":t.colorFillContent}),qk=t=>{const e=t.paddingMD,n=t.paddingLG;return h_(t,{notificationBg:t.colorBgElevated,notificationPaddingVertical:e,notificationPaddingHorizontal:n,notificationIconSize:t.calc(t.fontSizeLG).mul(t.lineHeightLG).equal(),notificationCloseButtonSize:t.calc(t.controlHeightLG).mul(.55).equal(),notificationMarginBottom:t.margin,notificationPadding:`${Ah(t.paddingMD)} ${Ah(t.paddingContentHorizontalLG)}`,notificationMarginEdge:t.marginLG,animationMaxHeight:150,notificationStackLayer:3})},Uk=bk("Notification",t=>{const e=qk(t);return[gU(e),cU(e),vU(e)]},Hk),yU=aq(["Notification","PurePanel"],t=>{const e=`${t.componentCls}-notice`,n=qk(t);return{[`${e}-pure-panel`]:Object.assign(Object.assign({},zk(n)),{width:n.width,maxWidth:`calc(100vw - ${Ah(t.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}},Hk);var _U=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function yb(t,e){return e===null||e===!1?null:e||N.createElement("span",{className:`${t}-close-x`},N.createElement(L7,{className:`${t}-close-icon`}))}const wU={success:A7,info:z7,error:N7,warning:F7},Wk=t=>{const{prefixCls:e,icon:n,type:r,message:i,description:a,btn:u,role:c="alert"}=t;let f=null;return n?f=N.createElement("span",{className:`${e}-icon`},n):r&&(f=N.createElement(wU[r]||null,{className:et(`${e}-icon`,`${e}-icon-${r}`)})),N.createElement("div",{className:et({[`${e}-with-icon`]:f}),role:c},f,N.createElement("div",{className:`${e}-message`},i),N.createElement("div",{className:`${e}-description`},a),u&&N.createElement("div",{className:`${e}-btn`},u))},SU=t=>{const{prefixCls:e,className:n,icon:r,type:i,message:a,description:u,btn:c,closable:f=!0,closeIcon:p,className:v}=t,m=_U(t,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon","className"]),{getPrefixCls:y}=N.useContext(ms),b=e||y("notification"),E=`${b}-notice`,A=Fk(b),[S,O,k]=Uk(b,A);return S(N.createElement("div",{className:et(`${E}-pure-panel`,O,n,k,A)},N.createElement(yU,{prefixCls:b}),N.createElement($k,Object.assign({},m,{prefixCls:b,eventKey:"pure",duration:null,closable:f,className:et({notificationClassName:v}),closeIcon:yb(b,p),content:N.createElement(Wk,{prefixCls:E,icon:r,type:i,message:a,description:u,btn:c})}))))};function CU(t,e,n){let r;switch(t){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:e,bottom:"auto"};break;case"topLeft":r={left:0,top:e,bottom:"auto"};break;case"topRight":r={right:0,top:e,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function bU(t){return{motionName:`${t}-fade`}}var EU=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const PO=24,xU=4.5,TU="topRight",OU=t=>{let{children:e,prefixCls:n}=t;const r=Fk(n),[i,a,u]=Uk(n,r);return i(je.createElement(Gq,{classNames:{list:et(a,u,r)}},e))},AU=(t,e)=>{let{prefixCls:n,key:r}=e;return je.createElement(OU,{prefixCls:n,key:r},t)},RU=je.forwardRef((t,e)=>{const{top:n,bottom:r,prefixCls:i,getContainer:a,maxCount:u,rtl:c,onAllRemoved:f,stack:p,duration:v}=t,{getPrefixCls:m,getPopupContainer:y,notification:b,direction:E}=N.useContext(ms),[,A]=ff(),S=i||m("notification"),O=R=>CU(R,n??PO,r??PO),k=()=>et({[`${S}-rtl`]:c??E==="rtl"}),T=()=>bU(S),[C,w]=eU({prefixCls:S,style:O,className:k,motion:T,closable:!0,closeIcon:yb(S),duration:v??xU,getContainer:()=>a?.()||y?.()||document.body,maxCount:u,onAllRemoved:f,renderNotifications:AU,stack:p===!1?!1:{threshold:typeof p=="object"?p?.threshold:void 0,offset:8,gap:A.margin}});return je.useImperativeHandle(e,()=>Object.assign(Object.assign({},C),{prefixCls:S,notification:b})),w});function Vk(t){const e=je.useRef(null);return[je.useMemo(()=>{const r=c=>{var f;if(!e.current)return;const{open:p,prefixCls:v,notification:m}=e.current,y=`${v}-notice`,{message:b,description:E,icon:A,type:S,btn:O,className:k,style:T,role:C="alert",closeIcon:w}=c,R=EU(c,["message","description","icon","type","btn","className","style","role","closeIcon"]),I=yb(y,typeof w<"u"?w:m?.closeIcon);return p(Object.assign(Object.assign({placement:(f=t?.placement)!==null&&f!==void 0?f:TU},R),{content:je.createElement(Wk,{prefixCls:y,icon:A,type:S,message:b,description:E,btn:O,role:C}),className:et(S&&`${y}-${S}`,k,m?.className),style:Object.assign(Object.assign({},m?.style),T),closeIcon:I,closable:!!I}))},a={open:r,destroy:c=>{var f,p;c!==void 0?(f=e.current)===null||f===void 0||f.close(c):(p=e.current)===null||p===void 0||p.destroy()}};return["success","info","warning","error"].forEach(c=>{a[c]=f=>r(Object.assign(Object.assign({},f),{type:c}))}),a},[]),je.createElement(RU,Object.assign({key:"notification-holder"},t,{ref:e}))]}function kU(t){return Vk(t)}const NU=je.createContext({});function PU(t,e,n){var r=n||{},i=r.noTrailing,a=i===void 0?!1:i,u=r.noLeading,c=u===void 0?!1:u,f=r.debounceMode,p=f===void 0?void 0:f,v,m=!1,y=0;function b(){v&&clearTimeout(v)}function E(S){var O=S||{},k=O.upcomingOnly,T=k===void 0?!1:k;b(),m=!T}function A(){for(var S=arguments.length,O=new Array(S),k=0;k<S;k++)O[k]=arguments[k];var T=this,C=Date.now()-y;if(m)return;function w(){y=Date.now(),e.apply(T,O)}function R(){v=void 0}!c&&p&&!v&&w(),b(),p===void 0&&C>t?c?(y=Date.now(),a||(v=setTimeout(p?R:w,t))):w():a!==!0&&(v=setTimeout(p?R:w,p===void 0?t-C:t))}return A.cancel=E,A}function DU(t,e,n){var r={},i=r.atBegin,a=i===void 0?!1:i;return PU(t,e,{debounceMode:a!==!1})}const LU=new Wc("antSpinMove",{to:{opacity:1}}),MU=new Wc("antRotate",{to:{transform:"rotate(405deg)"}}),IU=t=>{const{componentCls:e,calc:n}=t;return{[`${e}`]:Object.assign(Object.assign({},mk(t)),{position:"absolute",display:"none",color:t.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${t.motionDurationSlow} ${t.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},[`${e}-text`]:{fontSize:t.fontSize,paddingTop:n(n(t.dotSize).sub(t.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:t.colorBgMask,zIndex:t.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${t.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[`${e}-dot ${e}-dot-item`]:{backgroundColor:t.colorWhite},[`${e}-text`]:{color:t.colorTextLightSolid}},"&-nested-loading":{position:"relative",[`> div > ${e}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:t.contentHeight,[`${e}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(t.dotSize).mul(-1).div(2).equal()},[`${e}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${t.colorBgContainer}`},[`&${e}-show-text ${e}-dot`]:{marginTop:n(t.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${e}-dot`]:{margin:n(t.dotSizeSM).mul(-1).div(2).equal()},[`${e}-text`]:{paddingTop:n(n(t.dotSizeSM).sub(t.fontSize)).div(2).add(2).equal()},[`&${e}-show-text ${e}-dot`]:{marginTop:n(t.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${e}-dot`]:{margin:n(t.dotSizeLG).mul(-1).div(2).equal()},[`${e}-text`]:{paddingTop:n(n(t.dotSizeLG).sub(t.fontSize)).div(2).add(2).equal()},[`&${e}-show-text ${e}-dot`]:{marginTop:n(t.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${e}-container`]:{position:"relative",transition:`opacity ${t.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:t.colorBgContainer,opacity:0,transition:`all ${t.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${e}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:t.spinDotDefault},[`${e}-dot`]:{position:"relative",display:"inline-block",fontSize:t.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(t.dotSize).sub(n(t.marginXXS).div(2)).div(2).equal(),height:n(t.dotSize).sub(n(t.marginXXS).div(2)).div(2).equal(),backgroundColor:t.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:LU,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:MU,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${e}-dot`]:{fontSize:t.dotSizeSM,i:{width:n(n(t.dotSizeSM).sub(n(t.marginXXS).div(2))).div(2).equal(),height:n(n(t.dotSizeSM).sub(n(t.marginXXS).div(2))).div(2).equal()}},[`&-lg ${e}-dot`]:{fontSize:t.dotSizeLG,i:{width:n(n(t.dotSizeLG).sub(t.marginXXS)).div(2).equal(),height:n(n(t.dotSizeLG).sub(t.marginXXS)).div(2).equal()}},[`&${e}-show-text ${e}-text`]:{display:"block"}})}},FU=t=>{const{controlHeightLG:e,controlHeight:n}=t;return{contentHeight:400,dotSize:e/2,dotSizeSM:e*.35,dotSizeLG:n}},$U=bk("Spin",t=>{const e=h_(t,{spinDotDefault:t.colorTextDescription});return[IU(e)]},FU);var jU=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let Y0=null;function zU(t,e){const{indicator:n}=e,r=`${t}-dot`;return n===null?null:tC(n)?xO(n,{className:et(n.props.className,r)}):tC(Y0)?xO(Y0,{className:et(Y0.props.className,r)}):N.createElement("span",{className:et(r,`${t}-dot-spin`)},N.createElement("i",{className:`${t}-dot-item`,key:1}),N.createElement("i",{className:`${t}-dot-item`,key:2}),N.createElement("i",{className:`${t}-dot-item`,key:3}),N.createElement("i",{className:`${t}-dot-item`,key:4}))}function HU(t,e){return!!t&&!!e&&!isNaN(Number(e))}const Gk=t=>{const{prefixCls:e,spinning:n=!0,delay:r=0,className:i,rootClassName:a,size:u="default",tip:c,wrapperClassName:f,style:p,children:v,fullscreen:m=!1}=t,y=jU(t,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen"]),{getPrefixCls:b}=N.useContext(ms),E=b("spin",e),[A,S,O]=$U(E),[k,T]=N.useState(()=>n&&!HU(n,r));N.useEffect(()=>{if(n){const Z=DU(r,()=>{T(!0)});return Z(),()=>{var ee;(ee=Z?.cancel)===null||ee===void 0||ee.call(Z)}}T(!1)},[r,n]);const C=N.useMemo(()=>typeof v<"u"&&!m,[v,m]),{direction:w,spin:R}=N.useContext(ms),I=et(E,R?.className,{[`${E}-sm`]:u==="small",[`${E}-lg`]:u==="large",[`${E}-spinning`]:k,[`${E}-show-text`]:!!c,[`${E}-fullscreen`]:m,[`${E}-fullscreen-show`]:m&&k,[`${E}-rtl`]:w==="rtl"},i,a,S,O),$=et(`${E}-container`,{[`${E}-blur`]:k}),U=pz(y,["indicator"]),G=Object.assign(Object.assign({},R?.style),p),Y=N.createElement("div",Object.assign({},U,{style:G,className:I,"aria-live":"polite","aria-busy":k}),zU(E,t),c&&(C||m)?N.createElement("div",{className:`${E}-text`},c):null);return A(C?N.createElement("div",Object.assign({},U,{className:et(`${E}-nested-loading`,f,S,O)}),k&&N.createElement("div",{key:"loading"},Y),N.createElement("div",{className:$,key:"container"},v)):Y)};Gk.setDefaultIndicator=t=>{Y0=t};let _a=null,Q0=t=>t(),_y=[],Qm={};function DO(){const{getContainer:t,rtl:e,maxCount:n,top:r,bottom:i}=Qm,a=t?.()||document.body;return{getContainer:()=>a,rtl:e,maxCount:n,top:r,bottom:i}}const qU=je.forwardRef((t,e)=>{const{notificationConfig:n,sync:r}=t,{getPrefixCls:i}=N.useContext(ms),a=Qm.prefixCls||i("notification"),u=N.useContext(NU),[c,f]=Vk(Object.assign(Object.assign(Object.assign({},n),{prefixCls:a}),u.notification));return je.useEffect(r,[]),je.useImperativeHandle(e,()=>{const p=Object.assign({},c);return Object.keys(p).forEach(v=>{p[v]=function(){return r(),c[v].apply(c,arguments)}}),{instance:p,sync:r}}),f}),UU=je.forwardRef((t,e)=>{const[n,r]=je.useState(DO),i=()=>{r(DO)};je.useEffect(i,[]);const a=qq(),u=a.getRootPrefixCls(),c=a.getIconPrefixCls(),f=a.getTheme(),p=je.createElement(qU,{ref:e,sync:i,notificationConfig:n});return je.createElement(Hh,{prefixCls:u,iconPrefixCls:c,theme:f},a.holderRender?a.holderRender(p):p)});function _b(){if(!_a){const t=document.createDocumentFragment(),e={fragment:t};_a=e,Q0(()=>{uU(je.createElement(UU,{ref:n=>{const{instance:r,sync:i}=n||{};Promise.resolve().then(()=>{!e.instance&&r&&(e.instance=r,e.sync=i,_b())})}}),t)});return}_a.instance&&(_y.forEach(t=>{switch(t.type){case"open":{Q0(()=>{_a.instance.open(Object.assign(Object.assign({},Qm),t.config))});break}case"destroy":Q0(()=>{_a?.instance.destroy(t.key)});break}}),_y=[])}function WU(t){Qm=Object.assign(Object.assign({},Qm),t),Q0(()=>{var e;(e=_a?.sync)===null||e===void 0||e.call(_a)})}function Bk(t){_y.push({type:"open",config:t}),_b()}function VU(t){_y.push({type:"destroy",key:t}),_b()}const GU=["success","info","warning","error"],BU={open:Bk,destroy:VU,config:WU,useNotification:kU,_InternalPanelDoNotUseOrYouWillBeFired:SU},Kk=BU;GU.forEach(t=>{Kk[t]=e=>Bk(Object.assign(Object.assign({},e),{type:t}))});const _o={width:100,height:100},ui=.85,fh=.25,Xk=10,wy=14,Pm=.75,Dm=.9,wt=100,KU=.7,XU=.6,YU=(t,e)=>t<e?KU:XU,QU=(t,e,n)=>({width:t*(n||wt)/wt,height:e*(n||wt)/wt}),ZU=(t,e)=>{const n=document.createElement("canvas").getContext("2d");if(n)return n.font="10px sans-serif",Math.ceil(t.length*n.measureText("M").width/e)},Yk=(t,e,n,r,i,a,u,c,f,p,v)=>{const m=YU(i,a);if(v)return{width:i*m,height:a*m};const y=Math.min((t==="multistep"?e:n).width+r.width,i*m),b=Math.max(Math.min((t==="multistep"?e.height+r.height:n.height)+r.height+f+p,a*m),a*c);return{width:y,height:b}},JU=16,Si=window.screen.width,Xi=window.screen.height,mm=.8,vm=.6,Qk=({inputText:t,setInputText:e,handleKeyDown:n,inputPlaceholder:r,type:i})=>ge.jsx(E$,{value:t,onChange:a=>e(a.target.value),onKeyDown:n,placeholder:r,type:i,autoFocus:!0}),eW=({fields:t,selectedRadioButton:e,setSelectedRadioButton:n,handleKeyDown:r,fontSize:i})=>ge.jsx(ge.Fragment,{children:t?.map(a=>ge.jsx(GR,{label:a,checked:e===a,onChange:()=>n(a),onKeyDown:r,style:{fontSize:`${i}px`},autoFocus:a===t[0]},a))}),tW=({fields:t,selectedCheckboxes:e,setSelectedCheckboxes:n,handleKeyDown:r,fontSize:i})=>ge.jsx(ge.Fragment,{children:t?.map(a=>ge.jsx(BR,{label:a,checked:e.includes(a),autoFocus:a===t[0],onKeyDown:r,style:{fontSize:`${i}px`},onChange:()=>{e.includes(a)?n(e.filter(u=>u!==a)):n([...e,a])}},a))}),nW=(t,e,n,r)=>ge.jsx(Qk,{inputText:e,setInputText:n,handleKeyDown:r,inputPlaceholder:"enter answer",type:"text"}),rW=(t,e,n,r)=>ge.jsx(Qk,{inputText:e,setInputText:n,handleKeyDown:r,inputPlaceholder:"enter answer",type:"number"}),iW=(t,e,n,r)=>ge.jsx(eW,{fields:t.widget_info?.fields??[],selectedRadioButton:e,setSelectedRadioButton:n,handleKeyDown:r,fontSize:t.font_size??12}),oW=(t,e,n,r)=>ge.jsx(tW,{fields:t.widget_info?.fields??[],selectedCheckboxes:e,setSelectedCheckboxes:n,handleKeyDown:r,fontSize:t.font_size??12}),Zk=(t,e,n,r)=>ge.jsx("iframe",{srcDoc:t,height:e,width:n,style:{border:`${r}px solid black`},title:"HTML Code"}),Jk=(t,e,n,r)=>ge.jsx("iframe",{src:t,height:e,width:n,style:{border:`${r}px solid black`},title:"HTML Link"}),aW=(t,e,n,r,i,a,u)=>ge.jsx(N$,{id:t.title_bar,children:t.widget_info?.steps?.map(c=>ge.jsx(eb,{id:c.info?.title,title:c.info?.title,style:{fontSize:`${t.font_size}px`},panel:ge.jsx("div",{className:"step-container",children:ge.jsxs("div",{className:"step-content",children:[c.info?.text?.split(`
|
|
575
|
+
`).map(f=>ge.jsx("p",{style:{textAlign:"left"},children:f},f)),c.info.image&&ge.jsx("img",{src:`data:image/image;base64,${c.info.image?.base64}`,alt:"",style:{maxWidth:`${Math.min(e.width+n.width,Si*u)}px`,maxHeight:`${Math.min(e.height+n.height,Xi*u)}px`,transform:`scale(${(c.info.image?.width??wt)/wt})`,transformOrigin:"top center",...a}}),c.info.html?.code_or_url&&c.info.html?.is_raw_html&&Zk(c.info.html.code_or_url,Math.min((e.height+n.height)*r*((c.info.html?.width??wt)/wt),Xi*u),Math.min((e.width+n.width)*i*((c.info.html?.width??wt)/wt),Si*u),c.info.html?.border??0),c.info.html?.code_or_url&&!c.info.html?.is_raw_html&&Jk(c.info.html.code_or_url,Math.min((e.height+n.height)*r*((c.info.html?.width??wt)/wt),Xi*u),Math.min((e.width+n.width)*i*((c.info.html?.width??wt)/wt),Si*u),c.info.html?.border??0)]})})},c.info?.title))});function sW(t){const[e,n]=N.useState(!1),[r,i]=N.useState(""),[a,u]=N.useState(""),[c,f]=N.useState([]),[p,v]=N.useState(_o),[m,y]=N.useState(_o),[b,E]=N.useState(!1),A=N.useRef(_o),S=t.widget_type??"base",O=Si<Xi?mm:vm,k=Xk*(t.font_size?t.font_size:wy)/wy,T=()=>{n(!1),fetch("api/stop").then(F=>{if(F.ok)return F.text();console.log("Request failed. Status: "+F.status)}).catch(F=>{console.log("Request failed. Error: "+F)}),Kk.error({message:"Notification",description:"The window was closed. Tests stopped."})},C=async()=>{if(t.widget_type)switch(t.widget_type){case"textinput":case"numericinput":if(r.trim()===""||r==="."||r===".."){alert("The field must not be empty");return}break;case"radiobutton":if(a===""){alert("The field must not be empty");return}break;case"checkbox":if(c.length===0){alert("The field must not be empty");return}break}n(!1);let F="";function W(X){return encodeURIComponent(X).replace(/[!-'()*+,/:;<=>?@[\]^`{|}~]/g,function(le){return"%"+le.charCodeAt(0).toString(JU)})}switch(t.widget_type){case"textinput":F=W(r);break;case"numericinput":F=r;break;case"radiobutton":F=W(a);break;case"checkbox":F=JSON.stringify(c.map(X=>W(X)));break;default:F="ok";break}t.onConfirm&&t.onConfirm(F);try{const X=await I2.post(`/api/confirm_dialog_box/${F}`);console.log(X.data)}catch(X){console.error("Error confirming dialog box:",X)}},w=F=>{const W=F.key;if(W==="Enter"){C();return}t.widget_info?.fields&&R(W)},R=F=>{const W=I(F);W>=0&&(S==="radiobutton"?$(W):S==="checkbox"&&U(W))},I=F=>t.widget_info?.fields?.findIndex(W=>W.startsWith(F))??-1,$=F=>{t.widget_info?.fields&&u(t.widget_info.fields[F])},U=F=>{if(t.widget_info?.fields){const W=t.widget_info.fields[F];c.includes(W)?f(c.filter(X=>X!==W)):f([...c,W])}},G=(F,W,X)=>({width:F*(X||wt)/wt,height:W*(X||wt)/wt}),Y=F=>{const{naturalWidth:W,naturalHeight:X}=F.target;v(G(W,X,t.image_width??wt))},Z=(F,W)=>{const X=document.createElement("canvas").getContext("2d");if(X)return X.font="10px sans-serif",Math.ceil(F.length*X.measureText("M").width/W)},ee=Math.min((S==="multistep"?A.current:p).width+_o.width,Si*ui),ae=(Z(t.dialog_text,ee)??1)*k,de=t.widget_info?.steps?.[0],Q=de?.info?.text?(Z(de.info.text,ee)??1)*k:k*2,{width:re,height:z}=Yk(S,A.current,p,_o,Si,Xi,ui,fh,ae,Q,b),B={border:`${t.image_border??0}px solid black`,display:"block",margin:"0 auto"};return N.useEffect(()=>{t.is_visible&&n(!0)},[t.is_visible,t.id]),N.useEffect(()=>{if(S==="multistep"){let F=!1;const W=(X,le)=>{const{naturalWidth:ce,naturalHeight:oe}=X;A.current.width=Math.max(A.current.width,ce*(le/wt)),A.current.height=Math.max(A.current.height,oe*(le/wt)),y(A.current)};t.widget_info?.steps?.forEach(X=>{if(X.info.image){const le=`data:image/image;base64,${X.info.image?.base64}`,ce=new Image;ce.src=le,ce.onload=()=>W(ce,X.info.image?.width??wt)}X.info.html?.code_or_url&&(F=!0)}),E(F)}},[t.widget_info,S]),ge.jsxs(VC,{title:t.title_bar,icon:"info-sign",isOpen:e,onClose:T,canOutsideClickClose:!1,style:{width:S==="multistep"?`${re}px`:"auto",height:S==="multistep"?`${z}px`:"auto",minWidth:Si*fh,minHeight:Xi*fh,maxWidth:Si*ui,maxHeight:Xi*ui,fontSize:`${t.font_size}px`},children:[ge.jsxs("div",{className:nR,style:{wordWrap:"break-word",wordBreak:"break-word",maxHeight:Xi*ui,overflowY:"auto",maxWidth:Si*ui,padding:"10px"},children:[t.dialog_text.split(`
|
|
576
|
+
`).map(F=>ge.jsx("p",{style:{textAlign:"left"},children:F},F.trim())),S==="textinput"&&nW(t,r,i,w),S==="numericinput"&&rW(t,r,i,w),S==="radiobutton"&&iW(t,a,u,w),S==="checkbox"&&oW(t,c,f,w),S==="multistep"&&aW(t,m,_o,Pm,Dm,B,O),ge.jsx("p",{children:" "}),t.image_base64&&ge.jsx("div",{className:"image-container",children:ge.jsx("img",{src:`data:image/image;base64,${t.image_base64}`,alt:"",onLoad:Y,style:{width:`${t.image_width}%`,height:`${t.image_width}%`,maxWidth:`${re-_o.width/2}px`,maxHeight:`${z-_o.height/2}px`,objectFit:"scale-down",transform:`scale(${(t.image_width??wt)/wt})`,transformOrigin:"top center",...B}})}),t.html_code&&Zk(t.html_code,Xi*(Si<Xi?mm:vm)*Pm*((t.html_width??wt)/wt),Si*(Si<Xi?mm:vm)*Dm*((t.html_width??wt)/wt),t.html_border??0),t.html_url&&Jk(t.html_url,Xi*(Si<Xi?mm:vm)*Pm*((t.html_width??wt)/wt),Si*(Si<Xi?mm:vm)*Dm*((t.html_width??wt)/wt),t.html_border??0)]}),ge.jsx("div",{className:B8,children:ge.jsx(of,{intent:"primary",onClick:C,autoFocus:S==="base"||S==="multistep",children:"Confirm"})})]})}function lW(t){return ge.jsx(ge.Fragment,{children:t.val})}function uW(t){return ge.jsx(N.Fragment,{children:t.name})}function Lm(t){switch(t.status){case"ready":return ge.jsx(Nr,{icon:"time",intent:"success",className:"status-icon status-icon-wait"});case"run":return ge.jsxs("div",{style:{marginTop:"4px"},className:"status-icon status-icon-run",children:[" ",ge.jsx(CR,{size:15})]});case"passed":return ge.jsx(Nr,{icon:"tick-circle",intent:"success",className:"status-icon status-icon-success"});case"failed":return ge.jsx(Nr,{icon:"cross",intent:"danger",className:"status-icon status-icon-fail"});case"":return ge.jsx(Nr,{icon:"time",intent:"none",className:"status-icon status-icon-wait"});default:return ge.jsx(Nr,{icon:"circle",intent:"none",className:"status-icon status-icon-empty"})}}Lm.defaultProps={defaultOpen:!0};const LO={margin:2};function cW(t){return ge.jsxs("div",{className:"test-data",children:[tb.map(t.msg,(e,n)=>e&&ge.jsx(Uo,{style:LO,minimal:!0,intent:"primary",children:e},n)),t.assertion_msg&&ge.jsx(Uo,{style:LO,minimal:!0,intent:"warning",children:t.assertion_msg.split(`
|
|
577
|
+
`)[0]},"assertion")]})}const fW=100,dW=1e3;class hW extends N.Component{constructor(e){super(e);const n=new Date;this.startTime=n.getTime(),this.state={elapsedTime:0,clock:null},this.initClock=this.initClock.bind(this),this.updateClock=this.updateClock.bind(this),this.props.status=="run"&&(this.setState({elapsedTime:0}),this.initClock())}formatMilliseconds(e){return(e/dW).toFixed(1)}render(){return ge.jsx("div",{children:this.formatMilliseconds(this.state.elapsedTime)})}componentWillUnmount(){this.state.clock&&clearInterval(this.state.clock)}updateClock(){const e=new Date;this.props.status=="run"&&this.props.commonTestRunStatus=="run"&&this.setState({elapsedTime:e.getTime()-this.startTime}),this.state.clock&&clearInterval(this.state.clock)}initClock(){this.setState({clock:setInterval(this.updateClock,fW)})}}const pW="Lorem ipsum",mW=30;class p_ extends N.Component{constructor(e){super(e),this.handleClick=()=>this.setState(n=>({isOpen:!n.isOpen})),this.state={isOpen:e.defaultOpen},this.handleClick=this.handleClick.bind(this)}static{this.LOADING_ICON=ge.jsx("div",{style:{margin:mW},children:ge.jsx(U7,{spin:!0})})}static{this.defaultProps={defaultOpen:!0}}render(){return ge.jsxs(y$,{style:{padding:0,borderRadius:0},className:"test-suite",children:[ge.jsxs("div",{style:{display:"flex"},children:[ge.jsx("div",{style:{flex:"1 1 0%"},children:ge.jsx(of,{style:{margin:"2px"},minimal:!0,onClick:this.handleClick,children:ge.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[ge.jsx(Lm,{status:this.props.commonTestRunStatus!="run"&&(this.props.test.status=="run"||this.props.test.status=="ready")?"stucked":this.props.test.status}),ge.jsx(Nr,{style:{marginRight:"10px",marginLeft:"10px"},icon:this.state.isOpen?"chevron-down":"chevron-right"}),ge.jsx("span",{children:this.renderName(this.props.test.name,this.props.index+1)})]})})}),this.renderTestSuiteRightPanel(this.props.test)]}),ge.jsx(_$,{isOpen:this.state.isOpen,keepChildrenMounted:!0,className:"test-suite-content",children:this.props.test.status!="busy"?this.renderTests(this.props.test.cases):ge.jsx(Gk,{indicator:p_.LOADING_ICON})})]})}renderName(e,n){const r=tb.isEmpty(e);return ge.jsxs(TR,{className:`test-suite-name ${r?cx:""}`,children:[ge.jsx("span",{className:k8,children:n}),ge.jsx("span",{style:{marginLeft:"0.5em"},children:r?pW:e})]})}renderTests(e){let n=[];e&&(n=Object.keys(e));const r=n.map(a=>e[a]),i=[{id:"status",name:"",selector:a=>a,cell:this.cellRendererStatus.bind(this,r),grow:.5,width:"10px"},{id:"test_number",name:"",selector:a=>a,cell:this.cellRendererNumber.bind(this,r),grow:.5,width:"65px"},{id:"name",name:"Name",selector:a=>a,cell:this.cellRendererName.bind(this,r),grow:6},{id:"data",name:"Data",selector:a=>a,cell:this.cellRendererData.bind(this,r),grow:18}];return ge.jsx("div",{style:{margin:"3px",paddingBottom:"4px",borderRadius:"2px"},children:ge.jsx(z9,{noHeader:!0,columns:i,data:n,highlightOnHover:!0,dense:!0})})}renderTestSuiteRightPanel(e){return ge.jsxs("div",{className:YA,style:{display:"flex",padding:"5px"},children:[!this.state.isOpen&&ge.jsx(ge.Fragment,{children:Object.entries(e.cases).map(([n,r])=>ge.jsx("span",{style:{margin:"2px"},children:ge.jsx(Lm,{status:r.status})},r.name))}),ge.jsx(Uo,{minimal:!0,style:{margin:"2px",minWidth:"30px"},children:e.status!="ready"&&ge.jsx(hW,{status:e.status,commonTestRunStatus:this.props.commonTestRunStatus})})]})}commonCellRender(e,n,r=!1){return ge.jsx("div",{className:r?cx:void 0,style:{display:"inline-block",verticalAlign:"middle"},children:e},n)}cellRendererNumber(e,n,r){return this.commonCellRender(ge.jsx("div",{style:{marginTop:"0.2em",marginBottom:"0.2em"},children:ge.jsx(lW,{val:r+1})}),`number_${r}_${n}}`)}cellRendererName(e,n,r){const i=e[r];return this.commonCellRender(ge.jsx("div",{style:{marginTop:"0.2em",marginBottom:"0.2em"},children:ge.jsx(uW,{name:i.name})}),`name_${r}_${n}`)}cellRendererData(e,n,r){const i=e[r];return this.commonCellRender(ge.jsx("div",{style:{marginTop:"0.2em",marginBottom:"0.2em"},children:ge.jsx(cW,{assertion_msg:i.assertion_msg,msg:i.msg})}),`data_${r}_${n}`)}cellRendererStatus(e,n,r){const i=e[r],{info:a,type:u}=i.dialog_box.widget||{},{base64:c,width:f,border:p}=i.dialog_box.image||{};return this.commonCellRender(ge.jsxs("div",{style:{marginTop:"0.2em",marginBottom:"0.2em"},children:[i.dialog_box.dialog_text&&i.status==="run"&&this.props.commonTestRunStatus==="run"&&i.dialog_box.visible&&ge.jsx(sW,{title_bar:i.dialog_box.title_bar??i.name,dialog_text:i.dialog_box.dialog_text,widget_info:a,widget_type:u,image_base64:c,image_width:f,image_border:p,is_visible:i.dialog_box.visible,id:i.dialog_box.id,font_size:i.dialog_box.font_size,html_code:i.dialog_box.html?.is_raw_html?i.dialog_box.html?.code_or_url:void 0,html_url:i.dialog_box.html?.is_raw_html?void 0:i.dialog_box.html?.code_or_url,html_width:i.dialog_box.html?.width,html_border:i.dialog_box.html?.border}),ge.jsx(Lm,{status:this.props.commonTestRunStatus!=="run"&&(i.status==="run"||i.status==="ready")?"stucked":i.status})]}),`status_${r}_${n}`)}}p_.defaultProps={defaultOpen:!0};const vW=(t,e,n,r)=>ge.jsx("iframe",{srcDoc:t,height:e,width:n,style:{border:`${r}px solid black`},title:"HTML Code"}),gW=(t,e,n,r)=>ge.jsx("iframe",{src:t,height:e,width:n,style:{border:`${r}px solid black`},title:"HTML Link"});function yW(t){const[e,n]=N.useState(!1),[r,i]=N.useState(_o),a=window.screen.width,u=window.screen.height,c=async()=>{n(!1);try{const A=await I2.post(`/api/confirm_operator_msg/${JSON.stringify(e)}`);console.log(A.data)}catch(A){console.error("Error confirming operator message:",A)}},f=A=>{const{naturalWidth:S,naturalHeight:O}=A.target;i(QU(S,O,t.image_width??wt))},p=Xk*(t.font_size??wy)/wy,v=Math.min(r.width+_o.width,a*ui),m=(ZU(t.msg,v)??1)*p,{width:y,height:b}=Yk("base",r,r,_o,a,u,ui,fh,m,0,!!t.html_code||!!t.html_url),E={border:`${t.image_border??0}px solid black`,display:"block",margin:"0 auto"};return N.useEffect(()=>{const A=S=>{S.key==="Escape"&&c()};return window.addEventListener("keydown",A),()=>{window.removeEventListener("keydown",A)}}),N.useEffect(()=>{t.is_visible&&n(!0)},[t.id,t.is_visible]),N.useEffect(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="auto",()=>{document.body.style.overflow="auto"}),[e]),ge.jsx(VC,{title:t.title||"Message",icon:"info-sign",isOpen:e,onClose:c,canOutsideClickClose:!1,style:{width:"auto",height:"auto",minWidth:a*fh,minHeight:u*fh,maxWidth:a*ui,maxHeight:u*ui,fontSize:`${t.font_size}px`},children:ge.jsxs("div",{className:nR,style:{wordWrap:"break-word",wordBreak:"break-word",maxHeight:u*ui,overflowY:"auto",overflow:"hidden",maxWidth:a*ui,padding:"10px"},children:[t.msg.split(`
|
|
578
|
+
`).map(A=>ge.jsx("p",{style:{textAlign:"left"},children:A},A)),t.image_base64&&ge.jsx("div",{className:"image-container",children:ge.jsx("img",{src:`data:image/image;base64,${t.image_base64}`,alt:"",onLoad:f,style:{width:`${t.image_width}%`,height:`${t.image_width}%`,maxWidth:`${y-_o.width/2}px`,maxHeight:`${b-_o.height/2}px`,objectFit:"scale-down",transform:`scale(${(t.image_width??wt)/wt})`,transformOrigin:"top center",...E}})}),t.html_code&&vW(t.html_code,u*ui*Pm*((t.html_width??wt)/wt),a*ui*Dm*((t.html_width??wt)/wt),t.html_border??0),t.html_url&&gW(t.html_url,u*ui*Pm*((t.html_width??wt)/wt),a*ui*Dm*((t.html_width??wt)/wt),t.html_border??0)]})})}const MO=1e3;class _W extends N.Component{constructor(){super(...arguments),this.elements_count=0}render(){if(this.props.db_state.name==null)return ge.jsxs("div",{children:[ge.jsx($0,{children:"Loading tests... 🤔"}),ge.jsx(TR,{children:"Try refreshing the page."})]});const e=this.props.db_state,n=e.start_time?new Date(e.start_time*MO).toLocaleString():"",r=e.stop_time?new Date(e.stop_time*MO).toLocaleString():"",i=e.timezone?e.timezone:"",a=e.alert;let u=[],c={};e.modules&&(u=Object.keys(e.modules),c=e.modules,this.elements_count=u.length);const f={margin:1};return ge.jsxs(ge.Fragment,{children:[ge.jsxs("div",{children:[ge.jsx(e6,{children:e.name}),e.test_stand&&ge.jsxs(Uo,{minimal:!0,style:f,children:["Stand name: ",e.test_stand?.name]}),e.status&&ge.jsxs(Uo,{minimal:!0,style:f,children:["Status: ",e.status]}),n&&ge.jsxs(Uo,{minimal:!0,style:f,children:["Start time: ",n+i]}),r&&ge.jsxs(Uo,{minimal:!0,style:f,children:["Finish time: ",r+i]}),a&&ge.jsxs(Uo,{minimal:!0,style:f,children:["Alert: ",a]}),e.test_stand?.info&&Object.keys(e.test_stand.info).length>0&&ge.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"5px"},children:Object.entries(e.test_stand.info).map(([p,v])=>ge.jsxs(Uo,{minimal:!0,style:f,children:["Test stand ",p,": ",typeof v=="string"?v:JSON.stringify(v)]},p))}),ge.jsx(w$,{}),tb.map([...u],(p,v)=>this.suiteRender(v,{name:p,test:c[p]}))]}),ge.jsx("div",{children:this.props.db_state.operator_msg?.msg&&this.props.db_state.operator_msg.msg.length>0&&this.props.db_state.operator_msg.visible&&ge.jsx(yW,{msg:this.props.db_state.operator_msg?.msg,title:this.props.db_state.operator_msg?.title??"Message",image_base64:this.props.db_state.operator_msg?.image?.base64,image_width:this.props.db_state.operator_msg?.image?.width,image_border:this.props.db_state.operator_msg?.image?.border,is_visible:this.props.db_state.operator_msg?.visible,id:this.props.db_state.operator_msg?.id,font_size:this.props.db_state.operator_msg?.font_size,html_code:this.props.db_state.operator_msg?.html?.is_raw_html?this.props.db_state.operator_msg?.html?.code_or_url:void 0,html_url:this.props.db_state.operator_msg?.html?.is_raw_html?void 0:this.props.db_state.operator_msg?.html?.code_or_url,html_width:this.props.db_state.operator_msg?.html?.width,html_border:this.props.db_state.operator_msg?.html?.border})})]})}suiteRender(e,n){return ge.jsx(p_,{index:e,test:n.test,defaultOpen:this.elements_count<5&&!this.props.defaultClose,commonTestRunStatus:this.props.db_state.status},`${n.name}_${e}`)}}class wW extends N.Component{render(){const e=n=>{switch(n){case"run":return Ei.PRIMARY;case"failed":return Ei.DANGER;case"passed":return Ei.SUCCESS;default:return Ei.NONE}};return ge.jsx(A$,{intent:e(this.props.status),value:this.props.percentage/100,animate:this.props.percentage/100<1&&this.props.status=="run"})}}function SW(t,e){switch(e){case"RELOAD_START":return"WAIT_RELOAD";case"RELOAD":return"RELOAD";default:throw new Error}}const CW=t=>`The application will be updated in ${t} seconds!`;function bW(t){const[e,n]=N.useReducer(SW,"BEFORE_RELOAD");return N.useEffect(()=>{switch(e){case"WAIT_RELOAD":setTimeout(()=>{n("RELOAD")},t.reload_timeout_s*1e3);return;case"RELOAD":window.location.reload();return;default:return}},[e,t.reload_timeout_s]),ge.jsx(L6,{isOpen:e=="WAIT_RELOAD",confirmButtonText:"Reboot now",onClose:()=>n("RELOAD"),icon:"warning-sign",children:ge.jsx("p",{children:CW(t.reload_timeout_s)})})}const eN="14.7.77",IO=(t,e,n)=>({endTime:e,insertTime:n,type:"exponentialRampToValue",value:t}),FO=(t,e,n)=>({endTime:e,insertTime:n,type:"linearRampToValue",value:t}),nC=(t,e)=>({startTime:e,type:"setValue",value:t}),tN=(t,e,n)=>({duration:n,startTime:e,type:"setValueCurve",values:t}),nN=(t,e,{startTime:n,target:r,timeConstant:i})=>r+(e-r)*Math.exp((n-t)/i),lh=t=>t.type==="exponentialRampToValue",Sy=t=>t.type==="linearRampToValue",cu=t=>lh(t)||Sy(t),wb=t=>t.type==="setValue",nl=t=>t.type==="setValueCurve",Cy=(t,e,n,r)=>{const i=t[e];return i===void 0?r:cu(i)||wb(i)?i.value:nl(i)?i.values[i.values.length-1]:nN(n,Cy(t,e-1,i.startTime,r),i)},$O=(t,e,n,r,i)=>n===void 0?[r.insertTime,i]:cu(n)?[n.endTime,n.value]:wb(n)?[n.startTime,n.value]:nl(n)?[n.startTime+n.duration,n.values[n.values.length-1]]:[n.startTime,Cy(t,e-1,n.startTime,i)],rC=t=>t.type==="cancelAndHold",iC=t=>t.type==="cancelScheduledValues",au=t=>rC(t)||iC(t)?t.cancelTime:lh(t)||Sy(t)?t.endTime:t.startTime,jO=(t,e,n,{endTime:r,value:i})=>n===i?i:0<n&&0<i||n<0&&i<0?n*(i/n)**((t-e)/(r-e)):0,zO=(t,e,n,{endTime:r,value:i})=>n+(t-e)/(r-e)*(i-n),EW=(t,e)=>{const n=Math.floor(e),r=Math.ceil(e);return n===r?t[n]:(1-(e-n))*t[n]+(1-(r-e))*t[r]},xW=(t,{duration:e,startTime:n,values:r})=>{const i=(t-n)/e*(r.length-1);return EW(r,i)},D0=t=>t.type==="setTarget";class TW{constructor(e){this._automationEvents=[],this._currenTime=0,this._defaultValue=e}[Symbol.iterator](){return this._automationEvents[Symbol.iterator]()}add(e){const n=au(e);if(rC(e)||iC(e)){const r=this._automationEvents.findIndex(a=>iC(e)&&nl(a)?a.startTime+a.duration>=n:au(a)>=n),i=this._automationEvents[r];if(r!==-1&&(this._automationEvents=this._automationEvents.slice(0,r)),rC(e)){const a=this._automationEvents[this._automationEvents.length-1];if(i!==void 0&&cu(i)){if(a!==void 0&&D0(a))throw new Error("The internal list is malformed.");const u=a===void 0?i.insertTime:nl(a)?a.startTime+a.duration:au(a),c=a===void 0?this._defaultValue:nl(a)?a.values[a.values.length-1]:a.value,f=lh(i)?jO(n,u,c,i):zO(n,u,c,i),p=lh(i)?IO(f,n,this._currenTime):FO(f,n,this._currenTime);this._automationEvents.push(p)}if(a!==void 0&&D0(a)&&this._automationEvents.push(nC(this.getValue(n),n)),a!==void 0&&nl(a)&&a.startTime+a.duration>n){const u=n-a.startTime,c=(a.values.length-1)/a.duration,f=Math.max(2,1+Math.ceil(u*c)),p=u/(f-1)*c,v=a.values.slice(0,f);if(p<1)for(let m=1;m<f;m+=1){const y=p*m%1;v[m]=a.values[m-1]*(1-y)+a.values[m]*y}this._automationEvents[this._automationEvents.length-1]=tN(v,a.startTime,u)}}}else{const r=this._automationEvents.findIndex(u=>au(u)>n),i=r===-1?this._automationEvents[this._automationEvents.length-1]:this._automationEvents[r-1];if(i!==void 0&&nl(i)&&au(i)+i.duration>n)return!1;const a=lh(e)?IO(e.value,e.endTime,this._currenTime):Sy(e)?FO(e.value,n,this._currenTime):e;if(r===-1)this._automationEvents.push(a);else{if(nl(e)&&n+e.duration>au(this._automationEvents[r]))return!1;this._automationEvents.splice(r,0,a)}}return!0}flush(e){const n=this._automationEvents.findIndex(r=>au(r)>e);if(n>1){const r=this._automationEvents.slice(n-1),i=r[0];D0(i)&&r.unshift(nC(Cy(this._automationEvents,n-2,i.startTime,this._defaultValue),i.startTime)),this._automationEvents=r}}getValue(e){if(this._automationEvents.length===0)return this._defaultValue;const n=this._automationEvents.findIndex(u=>au(u)>e),r=this._automationEvents[n],i=(n===-1?this._automationEvents.length:n)-1,a=this._automationEvents[i];if(a!==void 0&&D0(a)&&(r===void 0||!cu(r)||r.insertTime>e))return nN(e,Cy(this._automationEvents,i-1,a.startTime,this._defaultValue),a);if(a!==void 0&&wb(a)&&(r===void 0||!cu(r)))return a.value;if(a!==void 0&&nl(a)&&(r===void 0||!cu(r)||a.startTime+a.duration>e))return e<a.startTime+a.duration?xW(e,a):a.values[a.values.length-1];if(a!==void 0&&cu(a)&&(r===void 0||!cu(r)))return a.value;if(r!==void 0&&lh(r)){const[u,c]=$O(this._automationEvents,i,a,r,this._defaultValue);return jO(e,u,c,r)}if(r!==void 0&&Sy(r)){const[u,c]=$O(this._automationEvents,i,a,r,this._defaultValue);return zO(e,u,c,r)}return this._defaultValue}}const OW=t=>({cancelTime:t,type:"cancelAndHold"}),AW=t=>({cancelTime:t,type:"cancelScheduledValues"}),RW=(t,e)=>({endTime:e,type:"exponentialRampToValue",value:t}),kW=(t,e)=>({endTime:e,type:"linearRampToValue",value:t}),NW=(t,e,n)=>({startTime:e,target:t,timeConstant:n,type:"setTarget"}),PW=()=>new DOMException("","AbortError"),DW=t=>(e,n,[r,i,a],u)=>{t(e[i],[n,r,a],c=>c[0]===n&&c[1]===r,u)},LW=t=>(e,n,r)=>{const i=[];for(let a=0;a<r.numberOfInputs;a+=1)i.push(new Set);t.set(e,{activeInputs:i,outputs:new Set,passiveInputs:new WeakMap,renderer:n})},MW=t=>(e,n)=>{t.set(e,{activeInputs:new Set,passiveInputs:new WeakMap,renderer:n})},kh=new WeakSet,rN=new WeakMap,Sb=new WeakMap,iN=new WeakMap,Cb=new WeakMap,m_=new WeakMap,oN=new WeakMap,oC=new WeakMap,aC=new WeakMap,sC=new WeakMap,aN={construct(){return aN}},IW=t=>{try{const e=new Proxy(t,aN);new e}catch{return!1}return!0},HO=/^import(?:(?:[\s]+[\w]+|(?:[\s]+[\w]+[\s]*,)?[\s]*\{[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?(?:[\s]*,[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?)*[\s]*}|(?:[\s]+[\w]+[\s]*,)?[\s]*\*[\s]+as[\s]+[\w]+)[\s]+from)?(?:[\s]*)("([^"\\]|\\.)+"|'([^'\\]|\\.)+')(?:[\s]*);?/,qO=(t,e)=>{const n=[];let r=t.replace(/^[\s]+/,""),i=r.match(HO);for(;i!==null;){const a=i[1].slice(1,-1),u=i[0].replace(/([\s]+)?;?$/,"").replace(a,new URL(a,e).toString());n.push(u),r=r.slice(i[0].length).replace(/^[\s]+/,""),i=r.match(HO)}return[n.join(";"),r]},UO=t=>{if(t!==void 0&&!Array.isArray(t))throw new TypeError("The parameterDescriptors property of given value for processorCtor is not an array.")},WO=t=>{if(!IW(t))throw new TypeError("The given value for processorCtor should be a constructor.");if(t.prototype===null||typeof t.prototype!="object")throw new TypeError("The given value for processorCtor should have a prototype.")},FW=(t,e,n,r,i,a,u,c,f,p,v,m,y)=>{let b=0;return(E,A,S={credentials:"omit"})=>{const O=v.get(E);if(O!==void 0&&O.has(A))return Promise.resolve();const k=p.get(E);if(k!==void 0){const w=k.get(A);if(w!==void 0)return w}const T=a(E),C=T.audioWorklet===void 0?i(A).then(([w,R])=>{const[I,$]=qO(w,R),U=`${I};((a,b)=>{(a[b]=a[b]||[]).push((AudioWorkletProcessor,global,registerProcessor,sampleRate,self,window)=>{${$}
|
|
579
|
+
})})(window,'_AWGS')`;return n(U)}).then(()=>{const w=y._AWGS.pop();if(w===void 0)throw new SyntaxError;r(T.currentTime,T.sampleRate,()=>w(class{},void 0,(R,I)=>{if(R.trim()==="")throw e();const $=aC.get(T);if($!==void 0){if($.has(R))throw e();WO(I),UO(I.parameterDescriptors),$.set(R,I)}else WO(I),UO(I.parameterDescriptors),aC.set(T,new Map([[R,I]]))},T.sampleRate,void 0,void 0))}):Promise.all([i(A),Promise.resolve(t(m,m))]).then(([[w,R],I])=>{const $=b+1;b=$;const[U,G]=qO(w,R),ae=`${U};((AudioWorkletProcessor,registerProcessor)=>{${G}
|
|
580
|
+
})(${I?"AudioWorkletProcessor":"class extends AudioWorkletProcessor {__b=new WeakSet();constructor(){super();(p=>p.postMessage=(q=>(m,t)=>q.call(p,m,t?t.filter(u=>!this.__b.has(u)):t))(p.postMessage))(this.port)}}"},(n,p)=>registerProcessor(n,class extends p{${I?"":"__c = (a) => a.forEach(e=>this.__b.add(e.buffer));"}process(i,o,p){${I?"":"i.forEach(this.__c);o.forEach(this.__c);this.__c(Object.values(p));"}return super.process(i.map(j=>j.some(k=>k.length===0)?[]:j),o,p)}}));registerProcessor('__sac${$}',class extends AudioWorkletProcessor{process(){return !1}})`,de=new Blob([ae],{type:"application/javascript; charset=utf-8"}),Q=URL.createObjectURL(de);return T.audioWorklet.addModule(Q,S).then(()=>{if(c(T))return T;const re=u(T);return re.audioWorklet.addModule(Q,S).then(()=>re)}).then(re=>{if(f===null)throw new SyntaxError;try{new f(re,`__sac${$}`)}catch{throw new SyntaxError}}).finally(()=>URL.revokeObjectURL(Q))});return k===void 0?p.set(E,new Map([[A,C]])):k.set(A,C),C.then(()=>{const w=v.get(E);w===void 0?v.set(E,new Set([A])):w.add(A)}).finally(()=>{const w=p.get(E);w!==void 0&&w.delete(A)}),C}},xa=(t,e)=>{const n=t.get(e);if(n===void 0)throw new Error("A value with the given key could not be found.");return n},v_=(t,e)=>{const n=Array.from(t).filter(e);if(n.length>1)throw Error("More than one element was found.");if(n.length===0)throw Error("No element was found.");const[r]=n;return t.delete(r),r},sN=(t,e,n,r)=>{const i=xa(t,e),a=v_(i,u=>u[0]===n&&u[1]===r);return i.size===0&&t.delete(e),a},Tv=t=>xa(oN,t),Nh=t=>{if(kh.has(t))throw new Error("The AudioNode is already stored.");kh.add(t),Tv(t).forEach(e=>e(!0))},lN=t=>"port"in t,Ov=t=>{if(!kh.has(t))throw new Error("The AudioNode is not stored.");kh.delete(t),Tv(t).forEach(e=>e(!1))},lC=(t,e)=>{!lN(t)&&e.every(n=>n.size===0)&&Ov(t)},$W=(t,e,n,r,i,a,u,c,f,p,v,m,y)=>{const b=new WeakMap;return(E,A,S,O,k)=>{const{activeInputs:T,passiveInputs:C}=a(A),{outputs:w}=a(E),R=c(E),I=$=>{const U=f(A),G=f(E);if($){const Y=sN(C,E,S,O);t(T,E,Y,!1),!k&&!m(E)&&n(G,U,S,O),y(A)&&Nh(A)}else{const Y=r(T,E,S,O);e(C,O,Y,!1),!k&&!m(E)&&i(G,U,S,O);const Z=u(A);if(Z===0)v(A)&&lC(A,T);else{const ee=b.get(A);ee!==void 0&&clearTimeout(ee),b.set(A,setTimeout(()=>{v(A)&&lC(A,T)},Z*1e3))}}};return p(w,[A,S,O],$=>$[0]===A&&$[1]===S&&$[2]===O,!0)?(R.add(I),v(E)?t(T,E,[S,O,I],!0):e(C,O,[E,S,I],!0),!0):!1}},jW=t=>(e,n,[r,i,a],u)=>{const c=e.get(r);c===void 0?e.set(r,new Set([[i,n,a]])):t(c,[i,n,a],f=>f[0]===i&&f[1]===n,u)},zW=t=>(e,n)=>{const r=t(e,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});n.connect(r).connect(e.destination);const i=()=>{n.removeEventListener("ended",i),n.disconnect(r),r.disconnect()};n.addEventListener("ended",i)},HW=t=>(e,n)=>{t(e).add(n)},qW={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",fftSize:2048,maxDecibels:-30,minDecibels:-100,smoothingTimeConstant:.8},UW=(t,e,n,r,i,a)=>class extends t{constructor(c,f){const p=i(c),v={...qW,...f},m=r(p,v),y=a(p)?e():null;super(c,!1,m,y),this._nativeAnalyserNode=m}get fftSize(){return this._nativeAnalyserNode.fftSize}set fftSize(c){this._nativeAnalyserNode.fftSize=c}get frequencyBinCount(){return this._nativeAnalyserNode.frequencyBinCount}get maxDecibels(){return this._nativeAnalyserNode.maxDecibels}set maxDecibels(c){const f=this._nativeAnalyserNode.maxDecibels;if(this._nativeAnalyserNode.maxDecibels=c,!(c>this._nativeAnalyserNode.minDecibels))throw this._nativeAnalyserNode.maxDecibels=f,n()}get minDecibels(){return this._nativeAnalyserNode.minDecibels}set minDecibels(c){const f=this._nativeAnalyserNode.minDecibels;if(this._nativeAnalyserNode.minDecibels=c,!(this._nativeAnalyserNode.maxDecibels>c))throw this._nativeAnalyserNode.minDecibels=f,n()}get smoothingTimeConstant(){return this._nativeAnalyserNode.smoothingTimeConstant}set smoothingTimeConstant(c){this._nativeAnalyserNode.smoothingTimeConstant=c}getByteFrequencyData(c){this._nativeAnalyserNode.getByteFrequencyData(c)}getByteTimeDomainData(c){this._nativeAnalyserNode.getByteTimeDomainData(c)}getFloatFrequencyData(c){this._nativeAnalyserNode.getFloatFrequencyData(c)}getFloatTimeDomainData(c){this._nativeAnalyserNode.getFloatTimeDomainData(c)}},fi=(t,e)=>t.context===e,WW=(t,e,n)=>()=>{const r=new WeakMap,i=async(a,u)=>{let c=e(a);if(!fi(c,u)){const p={channelCount:c.channelCount,channelCountMode:c.channelCountMode,channelInterpretation:c.channelInterpretation,fftSize:c.fftSize,maxDecibels:c.maxDecibels,minDecibels:c.minDecibels,smoothingTimeConstant:c.smoothingTimeConstant};c=t(u,p)}return r.set(u,c),await n(a,u,c),c};return{render(a,u){const c=r.get(u);return c!==void 0?Promise.resolve(c):i(a,u)}}},by=t=>{try{t.copyToChannel(new Float32Array(1),0,-1)}catch{return!1}return!0},_s=()=>new DOMException("","IndexSizeError"),bb=t=>{t.getChannelData=(e=>n=>{try{return e.call(t,n)}catch(r){throw r.code===12?_s():r}})(t.getChannelData)},VW={numberOfChannels:1},GW=(t,e,n,r,i,a,u,c)=>{let f=null;return class uN{constructor(v){if(i===null)throw new Error("Missing the native OfflineAudioContext constructor.");const{length:m,numberOfChannels:y,sampleRate:b}={...VW,...v};f===null&&(f=new i(1,1,44100));const E=r!==null&&e(a,a)?new r({length:m,numberOfChannels:y,sampleRate:b}):f.createBuffer(y,m,b);if(E.numberOfChannels===0)throw n();return typeof E.copyFromChannel!="function"?(u(E),bb(E)):e(by,()=>by(E))||c(E),t.add(E),E}static[Symbol.hasInstance](v){return v!==null&&typeof v=="object"&&Object.getPrototypeOf(v)===uN.prototype||t.has(v)}}},wo=-34028234663852886e22,bi=34028234663852886e22,al=t=>kh.has(t),BW={buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1},KW=(t,e,n,r,i,a,u,c)=>class extends t{constructor(p,v){const m=a(p),y={...BW,...v},b=i(m,y),E=u(m),A=E?e():null;super(p,!1,b,A),this._audioBufferSourceNodeRenderer=A,this._isBufferNullified=!1,this._isBufferSet=y.buffer!==null,this._nativeAudioBufferSourceNode=b,this._onended=null,this._playbackRate=n(this,E,b.playbackRate,bi,wo)}get buffer(){return this._isBufferNullified?null:this._nativeAudioBufferSourceNode.buffer}set buffer(p){if(this._nativeAudioBufferSourceNode.buffer=p,p!==null){if(this._isBufferSet)throw r();this._isBufferSet=!0}}get loop(){return this._nativeAudioBufferSourceNode.loop}set loop(p){this._nativeAudioBufferSourceNode.loop=p}get loopEnd(){return this._nativeAudioBufferSourceNode.loopEnd}set loopEnd(p){this._nativeAudioBufferSourceNode.loopEnd=p}get loopStart(){return this._nativeAudioBufferSourceNode.loopStart}set loopStart(p){this._nativeAudioBufferSourceNode.loopStart=p}get onended(){return this._onended}set onended(p){const v=typeof p=="function"?c(this,p):null;this._nativeAudioBufferSourceNode.onended=v;const m=this._nativeAudioBufferSourceNode.onended;this._onended=m!==null&&m===v?p:m}get playbackRate(){return this._playbackRate}start(p=0,v=0,m){if(this._nativeAudioBufferSourceNode.start(p,v,m),this._audioBufferSourceNodeRenderer!==null&&(this._audioBufferSourceNodeRenderer.start=m===void 0?[p,v]:[p,v,m]),this.context.state!=="closed"){Nh(this);const y=()=>{this._nativeAudioBufferSourceNode.removeEventListener("ended",y),al(this)&&Ov(this)};this._nativeAudioBufferSourceNode.addEventListener("ended",y)}}stop(p=0){this._nativeAudioBufferSourceNode.stop(p),this._audioBufferSourceNodeRenderer!==null&&(this._audioBufferSourceNodeRenderer.stop=p)}},XW=(t,e,n,r,i)=>()=>{const a=new WeakMap;let u=null,c=null;const f=async(p,v)=>{let m=n(p);const y=fi(m,v);if(!y){const b={buffer:m.buffer,channelCount:m.channelCount,channelCountMode:m.channelCountMode,channelInterpretation:m.channelInterpretation,loop:m.loop,loopEnd:m.loopEnd,loopStart:m.loopStart,playbackRate:m.playbackRate.value};m=e(v,b),u!==null&&m.start(...u),c!==null&&m.stop(c)}return a.set(v,m),y?await t(v,p.playbackRate,m.playbackRate):await r(v,p.playbackRate,m.playbackRate),await i(p,v,m),m};return{set start(p){u=p},set stop(p){c=p},render(p,v){const m=a.get(v);return m!==void 0?Promise.resolve(m):f(p,v)}}},YW=t=>"playbackRate"in t,QW=t=>"frequency"in t&&"gain"in t,ZW=t=>"offset"in t,JW=t=>!("frequency"in t)&&"gain"in t,eV=t=>"detune"in t&&"frequency"in t,tV=t=>"pan"in t,xi=t=>xa(rN,t),Av=t=>xa(iN,t),uC=(t,e)=>{const{activeInputs:n}=xi(t);n.forEach(i=>i.forEach(([a])=>{e.includes(t)||uC(a,[...e,t])}));const r=YW(t)?[t.playbackRate]:lN(t)?Array.from(t.parameters.values()):QW(t)?[t.Q,t.detune,t.frequency,t.gain]:ZW(t)?[t.offset]:JW(t)?[t.gain]:eV(t)?[t.detune,t.frequency]:tV(t)?[t.pan]:[];for(const i of r){const a=Av(i);a!==void 0&&a.activeInputs.forEach(([u])=>uC(u,e))}al(t)&&Ov(t)},cN=t=>{uC(t.destination,[])},nV=t=>t===void 0||typeof t=="number"||typeof t=="string"&&(t==="balanced"||t==="interactive"||t==="playback"),rV=(t,e,n,r,i,a,u,c,f)=>class extends t{constructor(v={}){if(f===null)throw new Error("Missing the native AudioContext constructor.");let m;try{m=new f(v)}catch(E){throw E.code===12&&E.message==="sampleRate is not in range"?n():E}if(m===null)throw r();if(!nV(v.latencyHint))throw new TypeError(`The provided value '${v.latencyHint}' is not a valid enum value of type AudioContextLatencyCategory.`);if(v.sampleRate!==void 0&&m.sampleRate!==v.sampleRate)throw n();super(m,2);const{latencyHint:y}=v,{sampleRate:b}=m;if(this._baseLatency=typeof m.baseLatency=="number"?m.baseLatency:y==="balanced"?512/b:y==="interactive"||y===void 0?256/b:y==="playback"?1024/b:Math.max(2,Math.min(128,Math.round(y*b/128)))*128/b,this._nativeAudioContext=m,f.name==="webkitAudioContext"?(this._nativeGainNode=m.createGain(),this._nativeOscillatorNode=m.createOscillator(),this._nativeGainNode.gain.value=1e-37,this._nativeOscillatorNode.connect(this._nativeGainNode).connect(m.destination),this._nativeOscillatorNode.start()):(this._nativeGainNode=null,this._nativeOscillatorNode=null),this._state=null,m.state==="running"){this._state="suspended";const E=()=>{this._state==="suspended"&&(this._state=null),m.removeEventListener("statechange",E)};m.addEventListener("statechange",E)}}get baseLatency(){return this._baseLatency}get state(){return this._state!==null?this._state:this._nativeAudioContext.state}close(){return this.state==="closed"?this._nativeAudioContext.close().then(()=>{throw e()}):(this._state==="suspended"&&(this._state=null),this._nativeAudioContext.close().then(()=>{this._nativeGainNode!==null&&this._nativeOscillatorNode!==null&&(this._nativeOscillatorNode.stop(),this._nativeGainNode.disconnect(),this._nativeOscillatorNode.disconnect()),cN(this)}))}createMediaElementSource(v){return new i(this,{mediaElement:v})}createMediaStreamDestination(){return new a(this)}createMediaStreamSource(v){return new u(this,{mediaStream:v})}createMediaStreamTrackSource(v){return new c(this,{mediaStreamTrack:v})}resume(){return this._state==="suspended"?new Promise((v,m)=>{const y=()=>{this._nativeAudioContext.removeEventListener("statechange",y),this._nativeAudioContext.state==="running"?v():this.resume().then(v,m)};this._nativeAudioContext.addEventListener("statechange",y)}):this._nativeAudioContext.resume().catch(v=>{throw v===void 0||v.code===15?e():v})}suspend(){return this._nativeAudioContext.suspend().catch(v=>{throw v===void 0?e():v})}},iV=(t,e,n,r,i,a,u,c)=>class extends t{constructor(p,v){const m=a(p),y=u(m),b=i(m,v,y),E=y?e(c):null;super(p,!1,b,E),this._isNodeOfNativeOfflineAudioContext=y,this._nativeAudioDestinationNode=b}get channelCount(){return this._nativeAudioDestinationNode.channelCount}set channelCount(p){if(this._isNodeOfNativeOfflineAudioContext)throw r();if(p>this._nativeAudioDestinationNode.maxChannelCount)throw n();this._nativeAudioDestinationNode.channelCount=p}get channelCountMode(){return this._nativeAudioDestinationNode.channelCountMode}set channelCountMode(p){if(this._isNodeOfNativeOfflineAudioContext)throw r();this._nativeAudioDestinationNode.channelCountMode=p}get maxChannelCount(){return this._nativeAudioDestinationNode.maxChannelCount}},oV=t=>{const e=new WeakMap,n=async(r,i)=>{const a=i.destination;return e.set(i,a),await t(r,i,a),a};return{render(r,i){const a=e.get(i);return a!==void 0?Promise.resolve(a):n(r,i)}}},aV=(t,e,n,r,i,a,u,c)=>(f,p)=>{const v=p.listener,m=()=>{const w=new Float32Array(1),R=e(p,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:9}),I=u(p);let $=!1,U=[0,0,-1,0,1,0],G=[0,0,0];const Y=()=>{if($)return;$=!0;const de=r(p,256,9,0);de.onaudioprocess=({inputBuffer:Q})=>{const re=[a(Q,w,0),a(Q,w,1),a(Q,w,2),a(Q,w,3),a(Q,w,4),a(Q,w,5)];re.some((B,F)=>B!==U[F])&&(v.setOrientation(...re),U=re);const z=[a(Q,w,6),a(Q,w,7),a(Q,w,8)];z.some((B,F)=>B!==G[F])&&(v.setPosition(...z),G=z)},R.connect(de)},Z=de=>Q=>{Q!==U[de]&&(U[de]=Q,v.setOrientation(...U))},ee=de=>Q=>{Q!==G[de]&&(G[de]=Q,v.setPosition(...G))},ae=(de,Q,re)=>{const z=n(p,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:Q});z.connect(R,0,de),z.start(),Object.defineProperty(z.offset,"defaultValue",{get(){return Q}});const B=t({context:f},I,z.offset,bi,wo);return c(B,"value",F=>()=>F.call(B),F=>W=>{try{F.call(B,W)}catch(X){if(X.code!==9)throw X}Y(),I&&re(W)}),B.cancelAndHoldAtTime=(F=>I?()=>{throw i()}:(...W)=>{const X=F.apply(B,W);return Y(),X})(B.cancelAndHoldAtTime),B.cancelScheduledValues=(F=>I?()=>{throw i()}:(...W)=>{const X=F.apply(B,W);return Y(),X})(B.cancelScheduledValues),B.exponentialRampToValueAtTime=(F=>I?()=>{throw i()}:(...W)=>{const X=F.apply(B,W);return Y(),X})(B.exponentialRampToValueAtTime),B.linearRampToValueAtTime=(F=>I?()=>{throw i()}:(...W)=>{const X=F.apply(B,W);return Y(),X})(B.linearRampToValueAtTime),B.setTargetAtTime=(F=>I?()=>{throw i()}:(...W)=>{const X=F.apply(B,W);return Y(),X})(B.setTargetAtTime),B.setValueAtTime=(F=>I?()=>{throw i()}:(...W)=>{const X=F.apply(B,W);return Y(),X})(B.setValueAtTime),B.setValueCurveAtTime=(F=>I?()=>{throw i()}:(...W)=>{const X=F.apply(B,W);return Y(),X})(B.setValueCurveAtTime),B};return{forwardX:ae(0,0,Z(0)),forwardY:ae(1,0,Z(1)),forwardZ:ae(2,-1,Z(2)),positionX:ae(6,0,ee(0)),positionY:ae(7,0,ee(1)),positionZ:ae(8,0,ee(2)),upX:ae(3,0,Z(3)),upY:ae(4,1,Z(4)),upZ:ae(5,0,Z(5))}},{forwardX:y,forwardY:b,forwardZ:E,positionX:A,positionY:S,positionZ:O,upX:k,upY:T,upZ:C}=v.forwardX===void 0?m():v;return{get forwardX(){return y},get forwardY(){return b},get forwardZ(){return E},get positionX(){return A},get positionY(){return S},get positionZ(){return O},get upX(){return k},get upY(){return T},get upZ(){return C}}},Ey=t=>"context"in t,Rv=t=>Ey(t[0]),_f=(t,e,n,r)=>{for(const i of t)if(n(i)){if(r)return!1;throw Error("The set contains at least one similar element.")}return t.add(e),!0},VO=(t,e,[n,r],i)=>{_f(t,[e,n,r],a=>a[0]===e&&a[1]===n,i)},GO=(t,[e,n,r],i)=>{const a=t.get(e);a===void 0?t.set(e,new Set([[n,r]])):_f(a,[n,r],u=>u[0]===n,i)},qh=t=>"inputs"in t,xy=(t,e,n,r)=>{if(qh(e)){const i=e.inputs[r];return t.connect(i,n,0),[i,n,0]}return t.connect(e,n,r),[e,n,r]},fN=(t,e,n)=>{for(const r of t)if(r[0]===e&&r[1]===n)return t.delete(r),r;return null},sV=(t,e,n)=>v_(t,r=>r[0]===e&&r[1]===n),dN=(t,e)=>{if(!Tv(t).delete(e))throw new Error("Missing the expected event listener.")},hN=(t,e,n)=>{const r=xa(t,e),i=v_(r,a=>a[0]===n);return r.size===0&&t.delete(e),i},Ty=(t,e,n,r)=>{qh(e)?t.disconnect(e.inputs[r],n,0):t.disconnect(e,n,r)},wn=t=>xa(Sb,t),Zm=t=>xa(Cb,t),df=t=>oC.has(t),Z0=t=>!kh.has(t),BO=(t,e)=>new Promise(n=>{if(e!==null)n(!0);else{const r=t.createScriptProcessor(256,1,1),i=t.createGain(),a=t.createBuffer(1,2,44100),u=a.getChannelData(0);u[0]=1,u[1]=1;const c=t.createBufferSource();c.buffer=a,c.loop=!0,c.connect(r).connect(t.destination),c.connect(i),c.disconnect(i),r.onaudioprocess=f=>{const p=f.inputBuffer.getChannelData(0);Array.prototype.some.call(p,v=>v===1)?n(!0):n(!1),c.stop(),r.onaudioprocess=null,c.disconnect(r),r.disconnect(t.destination)},c.start()}}),Y1=(t,e)=>{const n=new Map;for(const r of t)for(const i of r){const a=n.get(i);n.set(i,a===void 0?1:a+1)}n.forEach((r,i)=>e(i,r))},Oy=t=>"context"in t,lV=t=>{const e=new Map;t.connect=(n=>(r,i=0,a=0)=>{const u=Oy(r)?n(r,i,a):n(r,i),c=e.get(r);return c===void 0?e.set(r,[{input:a,output:i}]):c.every(f=>f.input!==a||f.output!==i)&&c.push({input:a,output:i}),u})(t.connect.bind(t)),t.disconnect=(n=>(r,i,a)=>{if(n.apply(t),r===void 0)e.clear();else if(typeof r=="number")for(const[u,c]of e){const f=c.filter(p=>p.output!==r);f.length===0?e.delete(u):e.set(u,f)}else if(e.has(r))if(i===void 0)e.delete(r);else{const u=e.get(r);if(u!==void 0){const c=u.filter(f=>f.output!==i&&(f.input!==a||a===void 0));c.length===0?e.delete(r):e.set(r,c)}}for(const[u,c]of e)c.forEach(f=>{Oy(u)?t.connect(u,f.output,f.input):t.connect(u,f.output)})})(t.disconnect)},uV=(t,e,n,r)=>{const{activeInputs:i,passiveInputs:a}=Av(e),{outputs:u}=xi(t),c=Tv(t),f=p=>{const v=wn(t),m=Zm(e);if(p){const y=hN(a,t,n);VO(i,t,y,!1),!r&&!df(t)&&v.connect(m,n)}else{const y=sV(i,t,n);GO(a,y,!1),!r&&!df(t)&&v.disconnect(m,n)}};return _f(u,[e,n],p=>p[0]===e&&p[1]===n,!0)?(c.add(f),al(t)?VO(i,t,[n,f],!0):GO(a,[t,n,f],!0),!0):!1},cV=(t,e,n,r)=>{const{activeInputs:i,passiveInputs:a}=xi(e),u=fN(i[r],t,n);return u===null?[sN(a,t,n,r)[2],!1]:[u[2],!0]},fV=(t,e,n)=>{const{activeInputs:r,passiveInputs:i}=Av(e),a=fN(r,t,n);return a===null?[hN(i,t,n)[1],!1]:[a[2],!0]},Eb=(t,e,n,r,i)=>{const[a,u]=cV(t,n,r,i);if(a!==null&&(dN(t,a),u&&!e&&!df(t)&&Ty(wn(t),wn(n),r,i)),al(n)){const{activeInputs:c}=xi(n);lC(n,c)}},xb=(t,e,n,r)=>{const[i,a]=fV(t,n,r);i!==null&&(dN(t,i),a&&!e&&!df(t)&&wn(t).disconnect(Zm(n),r))},dV=(t,e)=>{const n=xi(t),r=[];for(const i of n.outputs)Rv(i)?Eb(t,e,...i):xb(t,e,...i),r.push(i[0]);return n.outputs.clear(),r},hV=(t,e,n)=>{const r=xi(t),i=[];for(const a of r.outputs)a[1]===n&&(Rv(a)?Eb(t,e,...a):xb(t,e,...a),i.push(a[0]),r.outputs.delete(a));return i},pV=(t,e,n,r,i)=>{const a=xi(t);return Array.from(a.outputs).filter(u=>u[0]===n&&(r===void 0||u[1]===r)&&(i===void 0||u[2]===i)).map(u=>(Rv(u)?Eb(t,e,...u):xb(t,e,...u),a.outputs.delete(u),u[0]))},mV=(t,e,n,r,i,a,u,c,f,p,v,m,y,b,E,A)=>class extends p{constructor(O,k,T,C){super(T),this._context=O,this._nativeAudioNode=T;const w=v(O);m(w)&&n(BO,()=>BO(w,A))!==!0&&lV(T),Sb.set(this,T),oN.set(this,new Set),O.state!=="closed"&&k&&Nh(this),t(this,C,T)}get channelCount(){return this._nativeAudioNode.channelCount}set channelCount(O){this._nativeAudioNode.channelCount=O}get channelCountMode(){return this._nativeAudioNode.channelCountMode}set channelCountMode(O){this._nativeAudioNode.channelCountMode=O}get channelInterpretation(){return this._nativeAudioNode.channelInterpretation}set channelInterpretation(O){this._nativeAudioNode.channelInterpretation=O}get context(){return this._context}get numberOfInputs(){return this._nativeAudioNode.numberOfInputs}get numberOfOutputs(){return this._nativeAudioNode.numberOfOutputs}connect(O,k=0,T=0){if(k<0||k>=this._nativeAudioNode.numberOfOutputs)throw i();const C=v(this._context),w=E(C);if(y(O)||b(O))throw a();if(Ey(O)){const $=wn(O);try{const G=xy(this._nativeAudioNode,$,k,T),Y=Z0(this);(w||Y)&&this._nativeAudioNode.disconnect(...G),this.context.state!=="closed"&&!Y&&Z0(O)&&Nh(O)}catch(G){throw G.code===12?a():G}if(e(this,O,k,T,w)){const G=f([this],O);Y1(G,r(w))}return O}const R=Zm(O);if(R.name==="playbackRate"&&R.maxValue===1024)throw u();try{this._nativeAudioNode.connect(R,k),(w||Z0(this))&&this._nativeAudioNode.disconnect(R,k)}catch($){throw $.code===12?a():$}if(uV(this,O,k,w)){const $=f([this],O);Y1($,r(w))}}disconnect(O,k,T){let C;const w=v(this._context),R=E(w);if(O===void 0)C=dV(this,R);else if(typeof O=="number"){if(O<0||O>=this.numberOfOutputs)throw i();C=hV(this,R,O)}else{if(k!==void 0&&(k<0||k>=this.numberOfOutputs)||Ey(O)&&T!==void 0&&(T<0||T>=O.numberOfInputs))throw i();if(C=pV(this,R,O,k,T),C.length===0)throw a()}for(const I of C){const $=f([this],I);Y1($,c)}}},vV=(t,e,n,r,i,a,u,c,f,p,v,m,y)=>(b,E,A,S=null,O=null)=>{const k=A.value,T=new TW(k),C=E?r(T):null,w={get defaultValue(){return k},get maxValue(){return S===null?A.maxValue:S},get minValue(){return O===null?A.minValue:O},get value(){return A.value},set value(R){A.value=R,w.setValueAtTime(R,b.context.currentTime)},cancelAndHoldAtTime(R){if(typeof A.cancelAndHoldAtTime=="function")C===null&&T.flush(b.context.currentTime),T.add(i(R)),A.cancelAndHoldAtTime(R);else{const I=Array.from(T).pop();C===null&&T.flush(b.context.currentTime),T.add(i(R));const $=Array.from(T).pop();A.cancelScheduledValues(R),I!==$&&$!==void 0&&($.type==="exponentialRampToValue"?A.exponentialRampToValueAtTime($.value,$.endTime):$.type==="linearRampToValue"?A.linearRampToValueAtTime($.value,$.endTime):$.type==="setValue"?A.setValueAtTime($.value,$.startTime):$.type==="setValueCurve"&&A.setValueCurveAtTime($.values,$.startTime,$.duration))}return w},cancelScheduledValues(R){return C===null&&T.flush(b.context.currentTime),T.add(a(R)),A.cancelScheduledValues(R),w},exponentialRampToValueAtTime(R,I){if(R===0)throw new RangeError;if(!Number.isFinite(I)||I<0)throw new RangeError;const $=b.context.currentTime;return C===null&&T.flush($),Array.from(T).length===0&&(T.add(p(k,$)),A.setValueAtTime(k,$)),T.add(u(R,I)),A.exponentialRampToValueAtTime(R,I),w},linearRampToValueAtTime(R,I){const $=b.context.currentTime;return C===null&&T.flush($),Array.from(T).length===0&&(T.add(p(k,$)),A.setValueAtTime(k,$)),T.add(c(R,I)),A.linearRampToValueAtTime(R,I),w},setTargetAtTime(R,I,$){return C===null&&T.flush(b.context.currentTime),T.add(f(R,I,$)),A.setTargetAtTime(R,I,$),w},setValueAtTime(R,I){return C===null&&T.flush(b.context.currentTime),T.add(p(R,I)),A.setValueAtTime(R,I),w},setValueCurveAtTime(R,I,$){const U=R instanceof Float32Array?R:new Float32Array(R);if(m!==null&&m.name==="webkitAudioContext"){const G=I+$,Y=b.context.sampleRate,Z=Math.ceil(I*Y),ee=Math.floor(G*Y),ae=ee-Z,de=new Float32Array(ae);for(let re=0;re<ae;re+=1){const z=(U.length-1)/$*((Z+re)/Y-I),B=Math.floor(z),F=Math.ceil(z);de[re]=B===F?U[B]:(1-(z-B))*U[B]+(1-(F-z))*U[F]}C===null&&T.flush(b.context.currentTime),T.add(v(de,I,$)),A.setValueCurveAtTime(de,I,$);const Q=ee/Y;Q<G&&y(w,de[de.length-1],Q),y(w,U[U.length-1],G)}else C===null&&T.flush(b.context.currentTime),T.add(v(U,I,$)),A.setValueCurveAtTime(U,I,$);return w}};return n.set(w,A),e.set(w,b),t(w,C),w},gV=t=>({replay(e){for(const n of t)if(n.type==="exponentialRampToValue"){const{endTime:r,value:i}=n;e.exponentialRampToValueAtTime(i,r)}else if(n.type==="linearRampToValue"){const{endTime:r,value:i}=n;e.linearRampToValueAtTime(i,r)}else if(n.type==="setTarget"){const{startTime:r,target:i,timeConstant:a}=n;e.setTargetAtTime(i,r,a)}else if(n.type==="setValue"){const{startTime:r,value:i}=n;e.setValueAtTime(i,r)}else if(n.type==="setValueCurve"){const{duration:r,startTime:i,values:a}=n;e.setValueCurveAtTime(a,i,r)}else throw new Error("Can't apply an unknown automation.")}});class pN{constructor(e){this._map=new Map(e)}get size(){return this._map.size}entries(){return this._map.entries()}forEach(e,n=null){return this._map.forEach((r,i)=>e.call(n,r,i,this))}get(e){return this._map.get(e)}has(e){return this._map.has(e)}keys(){return this._map.keys()}values(){return this._map.values()}}const yV={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:1,numberOfOutputs:1,parameterData:{},processorOptions:{}},_V=(t,e,n,r,i,a,u,c,f,p,v,m,y,b)=>class extends e{constructor(A,S,O){var k;const T=c(A),C=f(T),w=v({...yV,...O});y(w);const R=aC.get(T),I=R?.get(S),$=C||T.state!=="closed"?T:(k=u(T))!==null&&k!==void 0?k:T,U=i($,C?null:A.baseLatency,p,S,I,w),G=C?r(S,w,I):null;super(A,!0,U,G);const Y=[];U.parameters.forEach((ee,ae)=>{const de=n(this,C,ee);Y.push([ae,de])}),this._nativeAudioWorkletNode=U,this._onprocessorerror=null,this._parameters=new pN(Y),C&&t(T,this);const{activeInputs:Z}=a(this);m(U,Z)}get onprocessorerror(){return this._onprocessorerror}set onprocessorerror(A){const S=typeof A=="function"?b(this,A):null;this._nativeAudioWorkletNode.onprocessorerror=S;const O=this._nativeAudioWorkletNode.onprocessorerror;this._onprocessorerror=O!==null&&O===S?A:O}get parameters(){return this._parameters===null?this._nativeAudioWorkletNode.parameters:this._parameters}get port(){return this._nativeAudioWorkletNode.port}};function Ay(t,e,n,r,i){if(typeof t.copyFromChannel=="function")e[n].byteLength===0&&(e[n]=new Float32Array(128)),t.copyFromChannel(e[n],r,i);else{const a=t.getChannelData(r);if(e[n].byteLength===0)e[n]=a.slice(i,i+128);else{const u=new Float32Array(a.buffer,i*Float32Array.BYTES_PER_ELEMENT,128);e[n].set(u)}}}const mN=(t,e,n,r,i)=>{typeof t.copyToChannel=="function"?e[n].byteLength!==0&&t.copyToChannel(e[n],r,i):e[n].byteLength!==0&&t.getChannelData(r).set(e[n],i)},Ry=(t,e)=>{const n=[];for(let r=0;r<t;r+=1){const i=[],a=typeof e=="number"?e:e[r];for(let u=0;u<a;u+=1)i.push(new Float32Array(128));n.push(i)}return n},wV=(t,e)=>{const n=xa(sC,t),r=wn(e);return xa(n,r)},SV=async(t,e,n,r,i,a,u)=>{const c=e===null?Math.ceil(t.context.length/128)*128:e.length,f=r.channelCount*r.numberOfInputs,p=i.reduce((S,O)=>S+O,0),v=p===0?null:n.createBuffer(p,c,n.sampleRate);if(a===void 0)throw new Error("Missing the processor constructor.");const m=xi(t),y=await wV(n,t),b=Ry(r.numberOfInputs,r.channelCount),E=Ry(r.numberOfOutputs,i),A=Array.from(t.parameters.keys()).reduce((S,O)=>({...S,[O]:new Float32Array(128)}),{});for(let S=0;S<c;S+=128){if(r.numberOfInputs>0&&e!==null)for(let O=0;O<r.numberOfInputs;O+=1)for(let k=0;k<r.channelCount;k+=1)Ay(e,b[O],k,k,S);a.parameterDescriptors!==void 0&&e!==null&&a.parameterDescriptors.forEach(({name:O},k)=>{Ay(e,A,O,f+k,S)});for(let O=0;O<r.numberOfInputs;O+=1)for(let k=0;k<i[O];k+=1)E[O][k].byteLength===0&&(E[O][k]=new Float32Array(128));try{const O=b.map((T,C)=>m.activeInputs[C].size===0?[]:T),k=u(S/n.sampleRate,n.sampleRate,()=>y.process(O,E,A));if(v!==null)for(let T=0,C=0;T<r.numberOfOutputs;T+=1){for(let w=0;w<i[T];w+=1)mN(v,E[T],w,C+w,S);C+=i[T]}if(!k)break}catch(O){t.dispatchEvent(new ErrorEvent("processorerror",{colno:O.colno,filename:O.filename,lineno:O.lineno,message:O.message}));break}}return v},CV=(t,e,n,r,i,a,u,c,f,p,v,m,y,b,E,A)=>(S,O,k)=>{const T=new WeakMap;let C=null;const w=async(R,I)=>{let $=v(R),U=null;const G=fi($,I),Y=Array.isArray(O.outputChannelCount)?O.outputChannelCount:Array.from(O.outputChannelCount);if(m===null){const Z=Y.reduce((Q,re)=>Q+re,0),ee=i(I,{channelCount:Math.max(1,Z),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,Z)}),ae=[];for(let Q=0;Q<R.numberOfOutputs;Q+=1)ae.push(r(I,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Y[Q]}));const de=u(I,{channelCount:O.channelCount,channelCountMode:O.channelCountMode,channelInterpretation:O.channelInterpretation,gain:1});de.connect=e.bind(null,ae),de.disconnect=f.bind(null,ae),U=[ee,ae,de]}else G||($=new m(I,S));if(T.set(I,U===null?$:U[2]),U!==null){if(C===null){if(k===void 0)throw new Error("Missing the processor constructor.");if(y===null)throw new Error("Missing the native OfflineAudioContext constructor.");const re=R.channelCount*R.numberOfInputs,z=k.parameterDescriptors===void 0?0:k.parameterDescriptors.length,B=re+z;C=SV(R,B===0?null:await(async()=>{const W=new y(B,Math.ceil(R.context.length/128)*128,I.sampleRate),X=[],le=[];for(let q=0;q<O.numberOfInputs;q+=1)X.push(u(W,{channelCount:O.channelCount,channelCountMode:O.channelCountMode,channelInterpretation:O.channelInterpretation,gain:1})),le.push(i(W,{channelCount:O.channelCount,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:O.channelCount}));const ce=await Promise.all(Array.from(R.parameters.values()).map(async q=>{const ie=a(W,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:q.value});return await b(W,q,ie.offset),ie})),oe=r(W,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,re+z)});for(let q=0;q<O.numberOfInputs;q+=1){X[q].connect(le[q]);for(let ie=0;ie<O.channelCount;ie+=1)le[q].connect(oe,ie,q*O.channelCount+ie)}for(const[q,ie]of ce.entries())ie.connect(oe,0,re+q),ie.start(0);return oe.connect(W.destination),await Promise.all(X.map(q=>E(R,W,q))),A(W)})(),I,O,Y,k,p)}const Z=await C,ee=n(I,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),[ae,de,Q]=U;Z!==null&&(ee.buffer=Z,ee.start(0)),ee.connect(ae);for(let re=0,z=0;re<R.numberOfOutputs;re+=1){const B=de[re];for(let F=0;F<Y[re];F+=1)ae.connect(B,z+F,F);z+=Y[re]}return Q}if(G)for(const[Z,ee]of R.parameters.entries())await t(I,ee,$.parameters.get(Z));else for(const[Z,ee]of R.parameters.entries())await b(I,ee,$.parameters.get(Z));return await E(R,I,$),$};return{render(R,I){c(I,R);const $=T.get(I);return $!==void 0?Promise.resolve($):w(R,I)}}},bV=(t,e,n,r,i,a,u,c,f,p,v,m,y,b,E,A,S,O,k,T)=>class extends E{constructor(w,R){super(w,R),this._nativeContext=w,this._audioWorklet=t===void 0?void 0:{addModule:(I,$)=>t(this,I,$)}}get audioWorklet(){return this._audioWorklet}createAnalyser(){return new e(this)}createBiquadFilter(){return new i(this)}createBuffer(w,R,I){return new n({length:R,numberOfChannels:w,sampleRate:I})}createBufferSource(){return new r(this)}createChannelMerger(w=6){return new a(this,{numberOfInputs:w})}createChannelSplitter(w=6){return new u(this,{numberOfOutputs:w})}createConstantSource(){return new c(this)}createConvolver(){return new f(this)}createDelay(w=1){return new v(this,{maxDelayTime:w})}createDynamicsCompressor(){return new m(this)}createGain(){return new y(this)}createIIRFilter(w,R){return new b(this,{feedback:R,feedforward:w})}createOscillator(){return new A(this)}createPanner(){return new S(this)}createPeriodicWave(w,R,I={disableNormalization:!1}){return new O(this,{...I,imag:R,real:w})}createStereoPanner(){return new k(this)}createWaveShaper(){return new T(this)}decodeAudioData(w,R,I){return p(this._nativeContext,w).then($=>(typeof R=="function"&&R($),$),$=>{throw typeof I=="function"&&I($),$})}},EV={Q:1,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:350,gain:0,type:"lowpass"},xV=(t,e,n,r,i,a,u,c)=>class extends t{constructor(p,v){const m=a(p),y={...EV,...v},b=i(m,y),E=u(m),A=E?n():null;super(p,!1,b,A),this._Q=e(this,E,b.Q,bi,wo),this._detune=e(this,E,b.detune,1200*Math.log2(bi),-1200*Math.log2(bi)),this._frequency=e(this,E,b.frequency,p.sampleRate/2,0),this._gain=e(this,E,b.gain,40*Math.log10(bi),wo),this._nativeBiquadFilterNode=b,c(this,1)}get detune(){return this._detune}get frequency(){return this._frequency}get gain(){return this._gain}get Q(){return this._Q}get type(){return this._nativeBiquadFilterNode.type}set type(p){this._nativeBiquadFilterNode.type=p}getFrequencyResponse(p,v,m){try{this._nativeBiquadFilterNode.getFrequencyResponse(p,v,m)}catch(y){throw y.code===11?r():y}if(p.length!==v.length||v.length!==m.length)throw r()}},TV=(t,e,n,r,i)=>()=>{const a=new WeakMap,u=async(c,f)=>{let p=n(c);const v=fi(p,f);if(!v){const m={Q:p.Q.value,channelCount:p.channelCount,channelCountMode:p.channelCountMode,channelInterpretation:p.channelInterpretation,detune:p.detune.value,frequency:p.frequency.value,gain:p.gain.value,type:p.type};p=e(f,m)}return a.set(f,p),v?(await t(f,c.Q,p.Q),await t(f,c.detune,p.detune),await t(f,c.frequency,p.frequency),await t(f,c.gain,p.gain)):(await r(f,c.Q,p.Q),await r(f,c.detune,p.detune),await r(f,c.frequency,p.frequency),await r(f,c.gain,p.gain)),await i(c,f,p),p};return{render(c,f){const p=a.get(f);return p!==void 0?Promise.resolve(p):u(c,f)}}},OV=(t,e)=>(n,r)=>{const i=e.get(n);if(i!==void 0)return i;const a=t.get(n);if(a!==void 0)return a;try{const u=r();return u instanceof Promise?(t.set(n,u),u.catch(()=>!1).then(c=>(t.delete(n),e.set(n,c),c))):(e.set(n,u),u)}catch{return e.set(n,!1),!1}},AV={channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:6},RV=(t,e,n,r,i)=>class extends t{constructor(u,c){const f=r(u),p={...AV,...c},v=n(f,p),m=i(f)?e():null;super(u,!1,v,m)}},kV=(t,e,n)=>()=>{const r=new WeakMap,i=async(a,u)=>{let c=e(a);if(!fi(c,u)){const p={channelCount:c.channelCount,channelCountMode:c.channelCountMode,channelInterpretation:c.channelInterpretation,numberOfInputs:c.numberOfInputs};c=t(u,p)}return r.set(u,c),await n(a,u,c),c};return{render(a,u){const c=r.get(u);return c!==void 0?Promise.resolve(c):i(a,u)}}},NV={channelCount:6,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:6},PV=(t,e,n,r,i,a)=>class extends t{constructor(c,f){const p=r(c),v=a({...NV,...f}),m=n(p,v),y=i(p)?e():null;super(c,!1,m,y)}},DV=(t,e,n)=>()=>{const r=new WeakMap,i=async(a,u)=>{let c=e(a);if(!fi(c,u)){const p={channelCount:c.channelCount,channelCountMode:c.channelCountMode,channelInterpretation:c.channelInterpretation,numberOfOutputs:c.numberOfOutputs};c=t(u,p)}return r.set(u,c),await n(a,u,c),c};return{render(a,u){const c=r.get(u);return c!==void 0?Promise.resolve(c):i(a,u)}}},LV=t=>(e,n,r)=>t(n,e,r),MV=t=>(e,n,r=0,i=0)=>{const a=e[r];if(a===void 0)throw t();return Oy(n)?a.connect(n,0,i):a.connect(n,0)},IV=t=>(e,n)=>{const r=t(e,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),i=e.createBuffer(1,2,44100);return r.buffer=i,r.loop=!0,r.connect(n),r.start(),()=>{r.stop(),r.disconnect(n)}},FV={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",offset:1},$V=(t,e,n,r,i,a,u)=>class extends t{constructor(f,p){const v=i(f),m={...FV,...p},y=r(v,m),b=a(v),E=b?n():null;super(f,!1,y,E),this._constantSourceNodeRenderer=E,this._nativeConstantSourceNode=y,this._offset=e(this,b,y.offset,bi,wo),this._onended=null}get offset(){return this._offset}get onended(){return this._onended}set onended(f){const p=typeof f=="function"?u(this,f):null;this._nativeConstantSourceNode.onended=p;const v=this._nativeConstantSourceNode.onended;this._onended=v!==null&&v===p?f:v}start(f=0){if(this._nativeConstantSourceNode.start(f),this._constantSourceNodeRenderer!==null&&(this._constantSourceNodeRenderer.start=f),this.context.state!=="closed"){Nh(this);const p=()=>{this._nativeConstantSourceNode.removeEventListener("ended",p),al(this)&&Ov(this)};this._nativeConstantSourceNode.addEventListener("ended",p)}}stop(f=0){this._nativeConstantSourceNode.stop(f),this._constantSourceNodeRenderer!==null&&(this._constantSourceNodeRenderer.stop=f)}},jV=(t,e,n,r,i)=>()=>{const a=new WeakMap;let u=null,c=null;const f=async(p,v)=>{let m=n(p);const y=fi(m,v);if(!y){const b={channelCount:m.channelCount,channelCountMode:m.channelCountMode,channelInterpretation:m.channelInterpretation,offset:m.offset.value};m=e(v,b),u!==null&&m.start(u),c!==null&&m.stop(c)}return a.set(v,m),y?await t(v,p.offset,m.offset):await r(v,p.offset,m.offset),await i(p,v,m),m};return{set start(p){u=p},set stop(p){c=p},render(p,v){const m=a.get(v);return m!==void 0?Promise.resolve(m):f(p,v)}}},zV=t=>e=>(t[0]=e,t[0]),HV={buffer:null,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",disableNormalization:!1},qV=(t,e,n,r,i,a)=>class extends t{constructor(c,f){const p=r(c),v={...HV,...f},m=n(p,v),b=i(p)?e():null;super(c,!1,m,b),this._isBufferNullified=!1,this._nativeConvolverNode=m,v.buffer!==null&&a(this,v.buffer.duration)}get buffer(){return this._isBufferNullified?null:this._nativeConvolverNode.buffer}set buffer(c){if(this._nativeConvolverNode.buffer=c,c===null&&this._nativeConvolverNode.buffer!==null){const f=this._nativeConvolverNode.context;this._nativeConvolverNode.buffer=f.createBuffer(1,1,f.sampleRate),this._isBufferNullified=!0,a(this,0)}else this._isBufferNullified=!1,a(this,this._nativeConvolverNode.buffer===null?0:this._nativeConvolverNode.buffer.duration)}get normalize(){return this._nativeConvolverNode.normalize}set normalize(c){this._nativeConvolverNode.normalize=c}},UV=(t,e,n)=>()=>{const r=new WeakMap,i=async(a,u)=>{let c=e(a);if(!fi(c,u)){const p={buffer:c.buffer,channelCount:c.channelCount,channelCountMode:c.channelCountMode,channelInterpretation:c.channelInterpretation,disableNormalization:!c.normalize};c=t(u,p)}return r.set(u,c),qh(c)?await n(a,u,c.inputs[0]):await n(a,u,c),c};return{render(a,u){const c=r.get(u);return c!==void 0?Promise.resolve(c):i(a,u)}}},WV=(t,e)=>(n,r,i)=>{if(e===null)throw new Error("Missing the native OfflineAudioContext constructor.");try{return new e(n,r,i)}catch(a){throw a.name==="SyntaxError"?t():a}},VV=()=>new DOMException("","DataCloneError"),KO=t=>{const{port1:e,port2:n}=new MessageChannel;return new Promise(r=>{const i=()=>{n.onmessage=null,e.close(),n.close(),r()};n.onmessage=()=>i();try{e.postMessage(t,[t])}catch{}finally{i()}})},GV=(t,e,n,r,i,a,u,c,f,p,v)=>(m,y)=>{const b=u(m)?m:a(m);if(i.has(y)){const E=n();return Promise.reject(E)}try{i.add(y)}catch{}return e(f,()=>f(b))?b.decodeAudioData(y).then(E=>(KO(y).catch(()=>{}),e(c,()=>c(E))||v(E),t.add(E),E)):new Promise((E,A)=>{const S=async()=>{try{await KO(y)}catch{}},O=k=>{A(k),S()};try{b.decodeAudioData(y,k=>{typeof k.copyFromChannel!="function"&&(p(k),bb(k)),t.add(k),S().then(()=>E(k))},k=>{O(k===null?r():k)})}catch(k){O(k)}})},BV=(t,e,n,r,i,a,u,c)=>(f,p)=>{const v=e.get(f);if(v===void 0)throw new Error("Missing the expected cycle count.");const m=a(f.context),y=c(m);if(v===p){if(e.delete(f),!y&&u(f)){const b=r(f),{outputs:E}=n(f);for(const A of E)if(Rv(A)){const S=r(A[0]);t(b,S,A[1],A[2])}else{const S=i(A[0]);b.connect(S,A[1])}}}else e.set(f,v-p)},KV={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",delayTime:0,maxDelayTime:1},XV=(t,e,n,r,i,a,u)=>class extends t{constructor(f,p){const v=i(f),m={...KV,...p},y=r(v,m),b=a(v),E=b?n(m.maxDelayTime):null;super(f,!1,y,E),this._delayTime=e(this,b,y.delayTime),u(this,m.maxDelayTime)}get delayTime(){return this._delayTime}},YV=(t,e,n,r,i)=>a=>{const u=new WeakMap,c=async(f,p)=>{let v=n(f);const m=fi(v,p);if(!m){const y={channelCount:v.channelCount,channelCountMode:v.channelCountMode,channelInterpretation:v.channelInterpretation,delayTime:v.delayTime.value,maxDelayTime:a};v=e(p,y)}return u.set(p,v),m?await t(p,f.delayTime,v.delayTime):await r(p,f.delayTime,v.delayTime),await i(f,p,v),v};return{render(f,p){const v=u.get(p);return v!==void 0?Promise.resolve(v):c(f,p)}}},QV=t=>(e,n,r,i)=>t(e[i],a=>a[0]===n&&a[1]===r),ZV=t=>(e,n)=>{t(e).delete(n)},JV=t=>"delayTime"in t,eG=(t,e,n)=>function r(i,a){const u=Ey(a)?a:n(t,a);if(JV(u))return[];if(i[0]===u)return[i];if(i.includes(u))return[];const{outputs:c}=e(u);return Array.from(c).map(f=>r([...i,u],f[0])).reduce((f,p)=>f.concat(p),[])},L0=(t,e,n)=>{const r=e[n];if(r===void 0)throw t();return r},tG=t=>(e,n=void 0,r=void 0,i=0)=>n===void 0?e.forEach(a=>a.disconnect()):typeof n=="number"?L0(t,e,n).disconnect():Oy(n)?r===void 0?e.forEach(a=>a.disconnect(n)):i===void 0?L0(t,e,r).disconnect(n,0):L0(t,e,r).disconnect(n,0,i):r===void 0?e.forEach(a=>a.disconnect(n)):L0(t,e,r).disconnect(n,0),nG={attack:.003,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",knee:30,ratio:12,release:.25,threshold:-24},rG=(t,e,n,r,i,a,u,c)=>class extends t{constructor(p,v){const m=a(p),y={...nG,...v},b=r(m,y),E=u(m),A=E?n():null;super(p,!1,b,A),this._attack=e(this,E,b.attack),this._knee=e(this,E,b.knee),this._nativeDynamicsCompressorNode=b,this._ratio=e(this,E,b.ratio),this._release=e(this,E,b.release),this._threshold=e(this,E,b.threshold),c(this,.006)}get attack(){return this._attack}get channelCount(){return this._nativeDynamicsCompressorNode.channelCount}set channelCount(p){const v=this._nativeDynamicsCompressorNode.channelCount;if(this._nativeDynamicsCompressorNode.channelCount=p,p>2)throw this._nativeDynamicsCompressorNode.channelCount=v,i()}get channelCountMode(){return this._nativeDynamicsCompressorNode.channelCountMode}set channelCountMode(p){const v=this._nativeDynamicsCompressorNode.channelCountMode;if(this._nativeDynamicsCompressorNode.channelCountMode=p,p==="max")throw this._nativeDynamicsCompressorNode.channelCountMode=v,i()}get knee(){return this._knee}get ratio(){return this._ratio}get reduction(){return typeof this._nativeDynamicsCompressorNode.reduction.value=="number"?this._nativeDynamicsCompressorNode.reduction.value:this._nativeDynamicsCompressorNode.reduction}get release(){return this._release}get threshold(){return this._threshold}},iG=(t,e,n,r,i)=>()=>{const a=new WeakMap,u=async(c,f)=>{let p=n(c);const v=fi(p,f);if(!v){const m={attack:p.attack.value,channelCount:p.channelCount,channelCountMode:p.channelCountMode,channelInterpretation:p.channelInterpretation,knee:p.knee.value,ratio:p.ratio.value,release:p.release.value,threshold:p.threshold.value};p=e(f,m)}return a.set(f,p),v?(await t(f,c.attack,p.attack),await t(f,c.knee,p.knee),await t(f,c.ratio,p.ratio),await t(f,c.release,p.release),await t(f,c.threshold,p.threshold)):(await r(f,c.attack,p.attack),await r(f,c.knee,p.knee),await r(f,c.ratio,p.ratio),await r(f,c.release,p.release),await r(f,c.threshold,p.threshold)),await i(c,f,p),p};return{render(c,f){const p=a.get(f);return p!==void 0?Promise.resolve(p):u(c,f)}}},oG=()=>new DOMException("","EncodingError"),aG=t=>e=>new Promise((n,r)=>{if(t===null){r(new SyntaxError);return}const i=t.document.head;if(i===null)r(new SyntaxError);else{const a=t.document.createElement("script"),u=new Blob([e],{type:"application/javascript"}),c=URL.createObjectURL(u),f=t.onerror,p=()=>{t.onerror=f,URL.revokeObjectURL(c)};t.onerror=(v,m,y,b,E)=>{if(m===c||m===t.location.href&&y===1&&b===1)return p(),r(E),!1;if(f!==null)return f(v,m,y,b,E)},a.onerror=()=>{p(),r(new SyntaxError)},a.onload=()=>{p(),n()},a.src=c,a.type="module",i.appendChild(a)}}),sG=t=>class{constructor(n){this._nativeEventTarget=n,this._listeners=new WeakMap}addEventListener(n,r,i){if(r!==null){let a=this._listeners.get(r);a===void 0&&(a=t(this,r),typeof r=="function"&&this._listeners.set(r,a)),this._nativeEventTarget.addEventListener(n,a,i)}}dispatchEvent(n){return this._nativeEventTarget.dispatchEvent(n)}removeEventListener(n,r,i){const a=r===null?void 0:this._listeners.get(r);this._nativeEventTarget.removeEventListener(n,a===void 0?null:a,i)}},lG=t=>(e,n,r)=>{Object.defineProperties(t,{currentFrame:{configurable:!0,get(){return Math.round(e*n)}},currentTime:{configurable:!0,get(){return e}}});try{return r()}finally{t!==null&&(delete t.currentFrame,delete t.currentTime)}},uG=t=>async e=>{try{const n=await fetch(e);if(n.ok)return[await n.text(),n.url]}catch{}throw t()},cG={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",gain:1},fG=(t,e,n,r,i,a)=>class extends t{constructor(c,f){const p=i(c),v={...cG,...f},m=r(p,v),y=a(p),b=y?n():null;super(c,!1,m,b),this._gain=e(this,y,m.gain,bi,wo)}get gain(){return this._gain}},dG=(t,e,n,r,i)=>()=>{const a=new WeakMap,u=async(c,f)=>{let p=n(c);const v=fi(p,f);if(!v){const m={channelCount:p.channelCount,channelCountMode:p.channelCountMode,channelInterpretation:p.channelInterpretation,gain:p.gain.value};p=e(f,m)}return a.set(f,p),v?await t(f,c.gain,p.gain):await r(f,c.gain,p.gain),await i(c,f,p),p};return{render(c,f){const p=a.get(f);return p!==void 0?Promise.resolve(p):u(c,f)}}},hG=(t,e)=>n=>e(t,n),pG=t=>e=>{const n=t(e);if(n.renderer===null)throw new Error("Missing the renderer of the given AudioNode in the audio graph.");return n.renderer},mG=t=>e=>{var n;return(n=t.get(e))!==null&&n!==void 0?n:0},vG=t=>e=>{const n=t(e);if(n.renderer===null)throw new Error("Missing the renderer of the given AudioParam in the audio graph.");return n.renderer},gG=t=>e=>t.get(e),Pr=()=>new DOMException("","InvalidStateError"),yG=t=>e=>{const n=t.get(e);if(n===void 0)throw Pr();return n},_G=(t,e)=>n=>{let r=t.get(n);if(r!==void 0)return r;if(e===null)throw new Error("Missing the native OfflineAudioContext constructor.");return r=new e(1,1,44100),t.set(n,r),r},wG=t=>e=>{const n=t.get(e);if(n===void 0)throw new Error("The context has no set of AudioWorkletNodes.");return n},g_=()=>new DOMException("","InvalidAccessError"),SG=t=>{t.getFrequencyResponse=(e=>(n,r,i)=>{if(n.length!==r.length||r.length!==i.length)throw g_();return e.call(t,n,r,i)})(t.getFrequencyResponse)},CG={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers"},bG=(t,e,n,r,i,a)=>class extends t{constructor(c,f){const p=r(c),v=i(p),m={...CG,...f},y=e(p,v?null:c.baseLatency,m),b=v?n(m.feedback,m.feedforward):null;super(c,!1,y,b),SG(y),this._nativeIIRFilterNode=y,a(this,1)}getFrequencyResponse(c,f,p){return this._nativeIIRFilterNode.getFrequencyResponse(c,f,p)}},vN=(t,e,n,r,i,a,u,c,f,p,v)=>{const m=p.length;let y=c;for(let b=0;b<m;b+=1){let E=n[0]*p[b];for(let A=1;A<i;A+=1){const S=y-A&f-1;E+=n[A]*a[S],E-=t[A]*u[S]}for(let A=i;A<r;A+=1)E+=n[A]*a[y-A&f-1];for(let A=i;A<e;A+=1)E-=t[A]*u[y-A&f-1];a[y]=p[b],u[y]=E,y=y+1&f-1,v[b]=E}return y},EG=(t,e,n,r)=>{const i=n instanceof Float64Array?n:new Float64Array(n),a=r instanceof Float64Array?r:new Float64Array(r),u=i.length,c=a.length,f=Math.min(u,c);if(i[0]!==1){for(let E=0;E<u;E+=1)a[E]/=i[0];for(let E=1;E<c;E+=1)i[E]/=i[0]}const p=32,v=new Float32Array(p),m=new Float32Array(p),y=e.createBuffer(t.numberOfChannels,t.length,t.sampleRate),b=t.numberOfChannels;for(let E=0;E<b;E+=1){const A=t.getChannelData(E),S=y.getChannelData(E);v.fill(0),m.fill(0),vN(i,u,a,c,f,v,m,0,p,A,S)}return y},xG=(t,e,n,r,i)=>(a,u)=>{const c=new WeakMap;let f=null;const p=async(v,m)=>{let y=null,b=e(v);const E=fi(b,m);if(m.createIIRFilter===void 0?y=t(m,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}):E||(b=m.createIIRFilter(u,a)),c.set(m,y===null?b:y),y!==null){if(f===null){if(n===null)throw new Error("Missing the native OfflineAudioContext constructor.");const S=new n(v.context.destination.channelCount,v.context.length,m.sampleRate);f=(async()=>{await r(v,S,S.destination);const O=await i(S);return EG(O,m,a,u)})()}const A=await f;return y.buffer=A,y.start(0),y}return await r(v,m,b),b};return{render(v,m){const y=c.get(m);return y!==void 0?Promise.resolve(y):p(v,m)}}},TG=(t,e,n,r,i,a)=>u=>(c,f)=>{const p=t.get(c);if(p===void 0){if(!u&&a(c)){const v=r(c),{outputs:m}=n(c);for(const y of m)if(Rv(y)){const b=r(y[0]);e(v,b,y[1],y[2])}else{const b=i(y[0]);v.disconnect(b,y[1])}}t.set(c,f)}else t.set(c,p+f)},OG=(t,e)=>n=>{const r=t.get(n);return e(r)||e(n)},AG=(t,e)=>n=>t.has(n)||e(n),RG=(t,e)=>n=>t.has(n)||e(n),kG=(t,e)=>n=>{const r=t.get(n);return e(r)||e(n)},NG=t=>e=>t!==null&&e instanceof t,PG=t=>e=>t!==null&&typeof t.AudioNode=="function"&&e instanceof t.AudioNode,DG=t=>e=>t!==null&&typeof t.AudioParam=="function"&&e instanceof t.AudioParam,LG=(t,e)=>n=>t(n)||e(n),MG=t=>e=>t!==null&&e instanceof t,IG=t=>t!==null&&t.isSecureContext,FG=(t,e,n,r)=>class extends t{constructor(a,u){const c=n(a),f=e(c,u);if(r(c))throw TypeError();super(a,!0,f,null),this._nativeMediaElementAudioSourceNode=f}get mediaElement(){return this._nativeMediaElementAudioSourceNode.mediaElement}},$G={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers"},jG=(t,e,n,r)=>class extends t{constructor(a,u){const c=n(a);if(r(c))throw new TypeError;const f={...$G,...u},p=e(c,f);super(a,!1,p,null),this._nativeMediaStreamAudioDestinationNode=p}get stream(){return this._nativeMediaStreamAudioDestinationNode.stream}},zG=(t,e,n,r)=>class extends t{constructor(a,u){const c=n(a),f=e(c,u);if(r(c))throw new TypeError;super(a,!0,f,null),this._nativeMediaStreamAudioSourceNode=f}get mediaStream(){return this._nativeMediaStreamAudioSourceNode.mediaStream}},HG=(t,e,n)=>class extends t{constructor(i,a){const u=n(i),c=e(u,a);super(i,!0,c,null)}},qG=(t,e,n,r,i,a)=>class extends n{constructor(c,f){super(c),this._nativeContext=c,m_.set(this,c),r(c)&&i.set(c,new Set),this._destination=new t(this,f),this._listener=e(this,c),this._onstatechange=null}get currentTime(){return this._nativeContext.currentTime}get destination(){return this._destination}get listener(){return this._listener}get onstatechange(){return this._onstatechange}set onstatechange(c){const f=typeof c=="function"?a(this,c):null;this._nativeContext.onstatechange=f;const p=this._nativeContext.onstatechange;this._onstatechange=p!==null&&p===f?c:p}get sampleRate(){return this._nativeContext.sampleRate}get state(){return this._nativeContext.state}},Jm=t=>{const e=new Uint32Array([1179011410,40,1163280727,544501094,16,131073,44100,176400,1048580,1635017060,4,0]);try{const n=t.decodeAudioData(e.buffer,()=>{});return n===void 0?!1:(n.catch(()=>{}),!0)}catch{}return!1},UG=(t,e)=>(n,r,i)=>{const a=new Set;return n.connect=(u=>(c,f=0,p=0)=>{const v=a.size===0;if(e(c))return u.call(n,c,f,p),t(a,[c,f,p],m=>m[0]===c&&m[1]===f&&m[2]===p,!0),v&&r(),c;u.call(n,c,f),t(a,[c,f],m=>m[0]===c&&m[1]===f,!0),v&&r()})(n.connect),n.disconnect=(u=>(c,f,p)=>{const v=a.size>0;if(c===void 0)u.apply(n),a.clear();else if(typeof c=="number"){u.call(n,c);for(const y of a)y[1]===c&&a.delete(y)}else{e(c)?u.call(n,c,f,p):u.call(n,c,f);for(const y of a)y[0]===c&&(f===void 0||y[1]===f)&&(p===void 0||y[2]===p)&&a.delete(y)}const m=a.size===0;v&&m&&i()})(n.disconnect),n},Tn=(t,e,n)=>{const r=e[n];r!==void 0&&r!==t[n]&&(t[n]=r)},Sr=(t,e)=>{Tn(t,e,"channelCount"),Tn(t,e,"channelCountMode"),Tn(t,e,"channelInterpretation")},XO=t=>typeof t.getFloatTimeDomainData=="function",WG=t=>{t.getFloatTimeDomainData=e=>{const n=new Uint8Array(e.length);t.getByteTimeDomainData(n);const r=Math.max(n.length,t.fftSize);for(let i=0;i<r;i+=1)e[i]=(n[i]-128)*.0078125;return e}},VG=(t,e)=>(n,r)=>{const i=n.createAnalyser();if(Sr(i,r),!(r.maxDecibels>r.minDecibels))throw e();return Tn(i,r,"fftSize"),Tn(i,r,"maxDecibels"),Tn(i,r,"minDecibels"),Tn(i,r,"smoothingTimeConstant"),t(XO,()=>XO(i))||WG(i),i},GG=t=>t===null?null:t.hasOwnProperty("AudioBuffer")?t.AudioBuffer:null,Ln=(t,e,n)=>{const r=e[n];r!==void 0&&r!==t[n].value&&(t[n].value=r)},BG=t=>{t.start=(e=>{let n=!1;return(r=0,i=0,a)=>{if(n)throw Pr();e.call(t,r,i,a),n=!0}})(t.start)},Tb=t=>{t.start=(e=>(n=0,r=0,i)=>{if(typeof i=="number"&&i<0||r<0||n<0)throw new RangeError("The parameters can't be negative.");e.call(t,n,r,i)})(t.start)},Ob=t=>{t.stop=(e=>(n=0)=>{if(n<0)throw new RangeError("The parameter can't be negative.");e.call(t,n)})(t.stop)},KG=(t,e,n,r,i,a,u,c,f,p,v)=>(m,y)=>{const b=m.createBufferSource();return Sr(b,y),Ln(b,y,"playbackRate"),Tn(b,y,"buffer"),Tn(b,y,"loop"),Tn(b,y,"loopEnd"),Tn(b,y,"loopStart"),e(n,()=>n(m))||BG(b),e(r,()=>r(m))||f(b),e(i,()=>i(m))||p(b,m),e(a,()=>a(m))||Tb(b),e(u,()=>u(m))||v(b,m),e(c,()=>c(m))||Ob(b),t(m,b),b},XG=t=>t===null?null:t.hasOwnProperty("AudioContext")?t.AudioContext:t.hasOwnProperty("webkitAudioContext")?t.webkitAudioContext:null,YG=(t,e)=>(n,r,i)=>{const a=n.destination;if(a.channelCount!==r)try{a.channelCount=r}catch{}i&&a.channelCountMode!=="explicit"&&(a.channelCountMode="explicit"),a.maxChannelCount===0&&Object.defineProperty(a,"maxChannelCount",{value:r});const u=t(n,{channelCount:r,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,gain:1});return e(u,"channelCount",c=>()=>c.call(u),c=>f=>{c.call(u,f);try{a.channelCount=f}catch(p){if(f>a.maxChannelCount)throw p}}),e(u,"channelCountMode",c=>()=>c.call(u),c=>f=>{c.call(u,f),a.channelCountMode=f}),e(u,"channelInterpretation",c=>()=>c.call(u),c=>f=>{c.call(u,f),a.channelInterpretation=f}),Object.defineProperty(u,"maxChannelCount",{get:()=>a.maxChannelCount}),u.connect(a),u},QG=t=>t===null?null:t.hasOwnProperty("AudioWorkletNode")?t.AudioWorkletNode:null,ZG=t=>{const{port1:e}=new MessageChannel;try{e.postMessage(t)}finally{e.close()}},JG=(t,e,n,r,i)=>(a,u,c,f,p,v)=>{if(c!==null)try{const m=new c(a,f,v),y=new Map;let b=null;if(Object.defineProperties(m,{channelCount:{get:()=>v.channelCount,set:()=>{throw t()}},channelCountMode:{get:()=>"explicit",set:()=>{throw t()}},onprocessorerror:{get:()=>b,set:E=>{typeof b=="function"&&m.removeEventListener("processorerror",b),b=typeof E=="function"?E:null,typeof b=="function"&&m.addEventListener("processorerror",b)}}}),m.addEventListener=(E=>(...A)=>{if(A[0]==="processorerror"){const S=typeof A[1]=="function"?A[1]:typeof A[1]=="object"&&A[1]!==null&&typeof A[1].handleEvent=="function"?A[1].handleEvent:null;if(S!==null){const O=y.get(A[1]);O!==void 0?A[1]=O:(A[1]=k=>{k.type==="error"?(Object.defineProperties(k,{type:{value:"processorerror"}}),S(k)):S(new ErrorEvent(A[0],{...k}))},y.set(S,A[1]))}}return E.call(m,"error",A[1],A[2]),E.call(m,...A)})(m.addEventListener),m.removeEventListener=(E=>(...A)=>{if(A[0]==="processorerror"){const S=y.get(A[1]);S!==void 0&&(y.delete(A[1]),A[1]=S)}return E.call(m,"error",A[1],A[2]),E.call(m,A[0],A[1],A[2])})(m.removeEventListener),v.numberOfOutputs!==0){const E=n(a,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});return m.connect(E).connect(a.destination),i(m,()=>E.disconnect(),()=>E.connect(a.destination))}return m}catch(m){throw m.code===11?r():m}if(p===void 0)throw r();return ZG(v),e(a,u,p,v)},gN=(t,e)=>t===null?512:Math.max(512,Math.min(16384,Math.pow(2,Math.round(Math.log2(t*e))))),eB=t=>new Promise((e,n)=>{const{port1:r,port2:i}=new MessageChannel;r.onmessage=({data:a})=>{r.close(),i.close(),e(a)},r.onmessageerror=({data:a})=>{r.close(),i.close(),n(a)},i.postMessage(t)}),tB=async(t,e)=>{const n=await eB(e);return new t(n)},nB=(t,e,n,r)=>{let i=sC.get(t);i===void 0&&(i=new WeakMap,sC.set(t,i));const a=tB(n,r);return i.set(e,a),a},rB=(t,e,n,r,i,a,u,c,f,p,v,m,y)=>(b,E,A,S)=>{if(S.numberOfInputs===0&&S.numberOfOutputs===0)throw f();const O=Array.isArray(S.outputChannelCount)?S.outputChannelCount:Array.from(S.outputChannelCount);if(O.some(ye=>ye<1))throw f();if(O.length!==S.numberOfOutputs)throw e();if(S.channelCountMode!=="explicit")throw f();const k=S.channelCount*S.numberOfInputs,T=O.reduce((ye,Ce)=>ye+Ce,0),C=A.parameterDescriptors===void 0?0:A.parameterDescriptors.length;if(k+C>6||T>6)throw f();const w=new MessageChannel,R=[],I=[];for(let ye=0;ye<S.numberOfInputs;ye+=1)R.push(u(b,{channelCount:S.channelCount,channelCountMode:S.channelCountMode,channelInterpretation:S.channelInterpretation,gain:1})),I.push(i(b,{channelCount:S.channelCount,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:S.channelCount}));const $=[];if(A.parameterDescriptors!==void 0)for(const{defaultValue:ye,maxValue:Ce,minValue:ke,name:xe}of A.parameterDescriptors){const Fe=a(b,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:S.parameterData[xe]!==void 0?S.parameterData[xe]:ye===void 0?0:ye});Object.defineProperties(Fe.offset,{defaultValue:{get:()=>ye===void 0?0:ye},maxValue:{get:()=>Ce===void 0?bi:Ce},minValue:{get:()=>ke===void 0?wo:ke}}),$.push(Fe)}const U=r(b,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,k+C)}),G=gN(E,b.sampleRate),Y=c(b,G,k+C,Math.max(1,T)),Z=i(b,{channelCount:Math.max(1,T),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,T)}),ee=[];for(let ye=0;ye<S.numberOfOutputs;ye+=1)ee.push(r(b,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:O[ye]}));for(let ye=0;ye<S.numberOfInputs;ye+=1){R[ye].connect(I[ye]);for(let Ce=0;Ce<S.channelCount;Ce+=1)I[ye].connect(U,Ce,ye*S.channelCount+Ce)}const ae=new pN(A.parameterDescriptors===void 0?[]:A.parameterDescriptors.map(({name:ye},Ce)=>{const ke=$[Ce];return ke.connect(U,0,k+Ce),ke.start(0),[ye,ke.offset]}));U.connect(Y);let de=S.channelInterpretation,Q=null;const re=S.numberOfOutputs===0?[Y]:ee,z={get bufferSize(){return G},get channelCount(){return S.channelCount},set channelCount(ye){throw n()},get channelCountMode(){return S.channelCountMode},set channelCountMode(ye){throw n()},get channelInterpretation(){return de},set channelInterpretation(ye){for(const Ce of R)Ce.channelInterpretation=ye;de=ye},get context(){return Y.context},get inputs(){return R},get numberOfInputs(){return S.numberOfInputs},get numberOfOutputs(){return S.numberOfOutputs},get onprocessorerror(){return Q},set onprocessorerror(ye){typeof Q=="function"&&z.removeEventListener("processorerror",Q),Q=typeof ye=="function"?ye:null,typeof Q=="function"&&z.addEventListener("processorerror",Q)},get parameters(){return ae},get port(){return w.port2},addEventListener(...ye){return Y.addEventListener(ye[0],ye[1],ye[2])},connect:t.bind(null,re),disconnect:p.bind(null,re),dispatchEvent(...ye){return Y.dispatchEvent(ye[0])},removeEventListener(...ye){return Y.removeEventListener(ye[0],ye[1],ye[2])}},B=new Map;w.port1.addEventListener=(ye=>(...Ce)=>{if(Ce[0]==="message"){const ke=typeof Ce[1]=="function"?Ce[1]:typeof Ce[1]=="object"&&Ce[1]!==null&&typeof Ce[1].handleEvent=="function"?Ce[1].handleEvent:null;if(ke!==null){const xe=B.get(Ce[1]);xe!==void 0?Ce[1]=xe:(Ce[1]=Fe=>{v(b.currentTime,b.sampleRate,()=>ke(Fe))},B.set(ke,Ce[1]))}}return ye.call(w.port1,Ce[0],Ce[1],Ce[2])})(w.port1.addEventListener),w.port1.removeEventListener=(ye=>(...Ce)=>{if(Ce[0]==="message"){const ke=B.get(Ce[1]);ke!==void 0&&(B.delete(Ce[1]),Ce[1]=ke)}return ye.call(w.port1,Ce[0],Ce[1],Ce[2])})(w.port1.removeEventListener);let F=null;Object.defineProperty(w.port1,"onmessage",{get:()=>F,set:ye=>{typeof F=="function"&&w.port1.removeEventListener("message",F),F=typeof ye=="function"?ye:null,typeof F=="function"&&(w.port1.addEventListener("message",F),w.port1.start())}}),A.prototype.port=w.port1;let W=null;nB(b,z,A,S).then(ye=>W=ye);const le=Ry(S.numberOfInputs,S.channelCount),ce=Ry(S.numberOfOutputs,O),oe=A.parameterDescriptors===void 0?[]:A.parameterDescriptors.reduce((ye,{name:Ce})=>({...ye,[Ce]:new Float32Array(128)}),{});let q=!0;const ie=()=>{S.numberOfOutputs>0&&Y.disconnect(Z);for(let ye=0,Ce=0;ye<S.numberOfOutputs;ye+=1){const ke=ee[ye];for(let xe=0;xe<O[ye];xe+=1)Z.disconnect(ke,Ce+xe,xe);Ce+=O[ye]}},J=new Map;Y.onaudioprocess=({inputBuffer:ye,outputBuffer:Ce})=>{if(W!==null){const ke=m(z);for(let xe=0;xe<G;xe+=128){for(let Fe=0;Fe<S.numberOfInputs;Fe+=1)for(let Ae=0;Ae<S.channelCount;Ae+=1)Ay(ye,le[Fe],Ae,Ae,xe);A.parameterDescriptors!==void 0&&A.parameterDescriptors.forEach(({name:Fe},Ae)=>{Ay(ye,oe,Fe,k+Ae,xe)});for(let Fe=0;Fe<S.numberOfInputs;Fe+=1)for(let Ae=0;Ae<O[Fe];Ae+=1)ce[Fe][Ae].byteLength===0&&(ce[Fe][Ae]=new Float32Array(128));try{const Fe=le.map((ze,nt)=>{if(ke[nt].size>0)return J.set(nt,G/128),ze;const Ge=J.get(nt);return Ge===void 0?[]:(ze.every(yt=>yt.every(Bt=>Bt===0))&&(Ge===1?J.delete(nt):J.set(nt,Ge-1)),ze)});q=v(b.currentTime+xe/b.sampleRate,b.sampleRate,()=>W.process(Fe,ce,oe));for(let ze=0,nt=0;ze<S.numberOfOutputs;ze+=1){for(let ct=0;ct<O[ze];ct+=1)mN(Ce,ce[ze],ct,nt+ct,xe);nt+=O[ze]}}catch(Fe){q=!1,z.dispatchEvent(new ErrorEvent("processorerror",{colno:Fe.colno,filename:Fe.filename,lineno:Fe.lineno,message:Fe.message}))}if(!q){for(let Fe=0;Fe<S.numberOfInputs;Fe+=1){R[Fe].disconnect(I[Fe]);for(let Ae=0;Ae<S.channelCount;Ae+=1)I[xe].disconnect(U,Ae,Fe*S.channelCount+Ae)}if(A.parameterDescriptors!==void 0){const Fe=A.parameterDescriptors.length;for(let Ae=0;Ae<Fe;Ae+=1){const ze=$[Ae];ze.disconnect(U,0,k+Ae),ze.stop()}}U.disconnect(Y),Y.onaudioprocess=null,be?ie():Me();break}}}};let be=!1;const Ee=u(b,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0}),Re=()=>Y.connect(Ee).connect(b.destination),Me=()=>{Y.disconnect(Ee),Ee.disconnect()},qe=()=>{if(q){Me(),S.numberOfOutputs>0&&Y.connect(Z);for(let ye=0,Ce=0;ye<S.numberOfOutputs;ye+=1){const ke=ee[ye];for(let xe=0;xe<O[ye];xe+=1)Z.connect(ke,Ce+xe,xe);Ce+=O[ye]}}be=!0},Je=()=>{q&&(Re(),ie()),be=!1};return Re(),y(z,qe,Je)},yN=(t,e)=>{const n=t.createBiquadFilter();return Sr(n,e),Ln(n,e,"Q"),Ln(n,e,"detune"),Ln(n,e,"frequency"),Ln(n,e,"gain"),Tn(n,e,"type"),n},iB=(t,e)=>(n,r)=>{const i=n.createChannelMerger(r.numberOfInputs);return t!==null&&t.name==="webkitAudioContext"&&e(n,i),Sr(i,r),i},oB=t=>{const e=t.numberOfOutputs;Object.defineProperty(t,"channelCount",{get:()=>e,set:n=>{if(n!==e)throw Pr()}}),Object.defineProperty(t,"channelCountMode",{get:()=>"explicit",set:n=>{if(n!=="explicit")throw Pr()}}),Object.defineProperty(t,"channelInterpretation",{get:()=>"discrete",set:n=>{if(n!=="discrete")throw Pr()}})},kv=(t,e)=>{const n=t.createChannelSplitter(e.numberOfOutputs);return Sr(n,e),oB(n),n},aB=(t,e,n,r,i)=>(a,u)=>{if(a.createConstantSource===void 0)return n(a,u);const c=a.createConstantSource();return Sr(c,u),Ln(c,u,"offset"),e(r,()=>r(a))||Tb(c),e(i,()=>i(a))||Ob(c),t(a,c),c},Uh=(t,e)=>(t.connect=e.connect.bind(e),t.disconnect=e.disconnect.bind(e),t),sB=(t,e,n,r)=>(i,{offset:a,...u})=>{const c=i.createBuffer(1,2,44100),f=e(i,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),p=n(i,{...u,gain:a}),v=c.getChannelData(0);v[0]=1,v[1]=1,f.buffer=c,f.loop=!0;const m={get bufferSize(){},get channelCount(){return p.channelCount},set channelCount(E){p.channelCount=E},get channelCountMode(){return p.channelCountMode},set channelCountMode(E){p.channelCountMode=E},get channelInterpretation(){return p.channelInterpretation},set channelInterpretation(E){p.channelInterpretation=E},get context(){return p.context},get inputs(){return[]},get numberOfInputs(){return f.numberOfInputs},get numberOfOutputs(){return p.numberOfOutputs},get offset(){return p.gain},get onended(){return f.onended},set onended(E){f.onended=E},addEventListener(...E){return f.addEventListener(E[0],E[1],E[2])},dispatchEvent(...E){return f.dispatchEvent(E[0])},removeEventListener(...E){return f.removeEventListener(E[0],E[1],E[2])},start(E=0){f.start.call(f,E)},stop(E=0){f.stop.call(f,E)}},y=()=>f.connect(p),b=()=>f.disconnect(p);return t(i,f),r(Uh(m,p),y,b)},lB=(t,e)=>(n,r)=>{const i=n.createConvolver();if(Sr(i,r),r.disableNormalization===i.normalize&&(i.normalize=!r.disableNormalization),Tn(i,r,"buffer"),r.channelCount>2||(e(i,"channelCount",a=>()=>a.call(i),a=>u=>{if(u>2)throw t();return a.call(i,u)}),r.channelCountMode==="max"))throw t();return e(i,"channelCountMode",a=>()=>a.call(i),a=>u=>{if(u==="max")throw t();return a.call(i,u)}),i},_N=(t,e)=>{const n=t.createDelay(e.maxDelayTime);return Sr(n,e),Ln(n,e,"delayTime"),n},uB=t=>(e,n)=>{const r=e.createDynamicsCompressor();if(Sr(r,n),n.channelCount>2||n.channelCountMode==="max")throw t();return Ln(r,n,"attack"),Ln(r,n,"knee"),Ln(r,n,"ratio"),Ln(r,n,"release"),Ln(r,n,"threshold"),r},to=(t,e)=>{const n=t.createGain();return Sr(n,e),Ln(n,e,"gain"),n},cB=t=>(e,n,r)=>{if(e.createIIRFilter===void 0)return t(e,n,r);const i=e.createIIRFilter(r.feedforward,r.feedback);return Sr(i,r),i};function fB(t,e){const n=e[0]*e[0]+e[1]*e[1];return[(t[0]*e[0]+t[1]*e[1])/n,(t[1]*e[0]-t[0]*e[1])/n]}function dB(t,e){return[t[0]*e[0]-t[1]*e[1],t[0]*e[1]+t[1]*e[0]]}function YO(t,e){let n=[0,0];for(let r=t.length-1;r>=0;r-=1)n=dB(n,e),n[0]+=t[r];return n}const hB=(t,e,n,r)=>(i,a,{channelCount:u,channelCountMode:c,channelInterpretation:f,feedback:p,feedforward:v})=>{const m=gN(a,i.sampleRate),y=p instanceof Float64Array?p:new Float64Array(p),b=v instanceof Float64Array?v:new Float64Array(v),E=y.length,A=b.length,S=Math.min(E,A);if(E===0||E>20)throw r();if(y[0]===0)throw e();if(A===0||A>20)throw r();if(b[0]===0)throw e();if(y[0]!==1){for(let $=0;$<A;$+=1)b[$]/=y[0];for(let $=1;$<E;$+=1)y[$]/=y[0]}const O=n(i,m,u,u);O.channelCount=u,O.channelCountMode=c,O.channelInterpretation=f;const k=32,T=[],C=[],w=[];for(let $=0;$<u;$+=1){T.push(0);const U=new Float32Array(k),G=new Float32Array(k);U.fill(0),G.fill(0),C.push(U),w.push(G)}O.onaudioprocess=$=>{const U=$.inputBuffer,G=$.outputBuffer,Y=U.numberOfChannels;for(let Z=0;Z<Y;Z+=1){const ee=U.getChannelData(Z),ae=G.getChannelData(Z);T[Z]=vN(y,E,b,A,S,C[Z],w[Z],T[Z],k,ee,ae)}};const R=i.sampleRate/2;return Uh({get bufferSize(){return m},get channelCount(){return O.channelCount},set channelCount($){O.channelCount=$},get channelCountMode(){return O.channelCountMode},set channelCountMode($){O.channelCountMode=$},get channelInterpretation(){return O.channelInterpretation},set channelInterpretation($){O.channelInterpretation=$},get context(){return O.context},get inputs(){return[O]},get numberOfInputs(){return O.numberOfInputs},get numberOfOutputs(){return O.numberOfOutputs},addEventListener(...$){return O.addEventListener($[0],$[1],$[2])},dispatchEvent(...$){return O.dispatchEvent($[0])},getFrequencyResponse($,U,G){if($.length!==U.length||U.length!==G.length)throw t();const Y=$.length;for(let Z=0;Z<Y;Z+=1){const ee=-Math.PI*($[Z]/R),ae=[Math.cos(ee),Math.sin(ee)],de=YO(b,ae),Q=YO(y,ae),re=fB(de,Q);U[Z]=Math.sqrt(re[0]*re[0]+re[1]*re[1]),G[Z]=Math.atan2(re[1],re[0])}},removeEventListener(...$){return O.removeEventListener($[0],$[1],$[2])}},O)},pB=(t,e)=>t.createMediaElementSource(e.mediaElement),mB=(t,e)=>{const n=t.createMediaStreamDestination();return Sr(n,e),n.numberOfOutputs===1&&Object.defineProperty(n,"numberOfOutputs",{get:()=>0}),n},vB=(t,{mediaStream:e})=>{const n=e.getAudioTracks();n.sort((a,u)=>a.id<u.id?-1:a.id>u.id?1:0);const r=n.slice(0,1),i=t.createMediaStreamSource(new MediaStream(r));return Object.defineProperty(i,"mediaStream",{value:e}),i},gB=(t,e)=>(n,{mediaStreamTrack:r})=>{if(typeof n.createMediaStreamTrackSource=="function")return n.createMediaStreamTrackSource(r);const i=new MediaStream([r]),a=n.createMediaStreamSource(i);if(r.kind!=="audio")throw t();if(e(n))throw new TypeError;return a},yB=t=>t===null?null:t.hasOwnProperty("OfflineAudioContext")?t.OfflineAudioContext:t.hasOwnProperty("webkitOfflineAudioContext")?t.webkitOfflineAudioContext:null,_B=(t,e,n,r,i,a)=>(u,c)=>{const f=u.createOscillator();return Sr(f,c),Ln(f,c,"detune"),Ln(f,c,"frequency"),c.periodicWave!==void 0?f.setPeriodicWave(c.periodicWave):Tn(f,c,"type"),e(n,()=>n(u))||Tb(f),e(r,()=>r(u))||a(f,u),e(i,()=>i(u))||Ob(f),t(u,f),f},wB=t=>(e,n)=>{const r=e.createPanner();return r.orientationX===void 0?t(e,n):(Sr(r,n),Ln(r,n,"orientationX"),Ln(r,n,"orientationY"),Ln(r,n,"orientationZ"),Ln(r,n,"positionX"),Ln(r,n,"positionY"),Ln(r,n,"positionZ"),Tn(r,n,"coneInnerAngle"),Tn(r,n,"coneOuterAngle"),Tn(r,n,"coneOuterGain"),Tn(r,n,"distanceModel"),Tn(r,n,"maxDistance"),Tn(r,n,"panningModel"),Tn(r,n,"refDistance"),Tn(r,n,"rolloffFactor"),r)},SB=(t,e,n,r,i,a,u,c,f,p)=>(v,{coneInnerAngle:m,coneOuterAngle:y,coneOuterGain:b,distanceModel:E,maxDistance:A,orientationX:S,orientationY:O,orientationZ:k,panningModel:T,positionX:C,positionY:w,positionZ:R,refDistance:I,rolloffFactor:$,...U})=>{const G=v.createPanner();if(U.channelCount>2||U.channelCountMode==="max")throw u();Sr(G,U);const Y={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},Z=n(v,{...Y,channelInterpretation:"speakers",numberOfInputs:6}),ee=r(v,{...U,gain:1}),ae=r(v,{...Y,gain:1}),de=r(v,{...Y,gain:0}),Q=r(v,{...Y,gain:0}),re=r(v,{...Y,gain:0}),z=r(v,{...Y,gain:0}),B=r(v,{...Y,gain:0}),F=i(v,256,6,1),W=a(v,{...Y,curve:new Float32Array([1,1]),oversample:"none"});let X=[S,O,k],le=[C,w,R];const ce=new Float32Array(1);F.onaudioprocess=({inputBuffer:J})=>{const be=[f(J,ce,0),f(J,ce,1),f(J,ce,2)];be.some((Re,Me)=>Re!==X[Me])&&(G.setOrientation(...be),X=be);const Ee=[f(J,ce,3),f(J,ce,4),f(J,ce,5)];Ee.some((Re,Me)=>Re!==le[Me])&&(G.setPosition(...Ee),le=Ee)},Object.defineProperty(de.gain,"defaultValue",{get:()=>0}),Object.defineProperty(Q.gain,"defaultValue",{get:()=>0}),Object.defineProperty(re.gain,"defaultValue",{get:()=>0}),Object.defineProperty(z.gain,"defaultValue",{get:()=>0}),Object.defineProperty(B.gain,"defaultValue",{get:()=>0});const oe={get bufferSize(){},get channelCount(){return G.channelCount},set channelCount(J){if(J>2)throw u();ee.channelCount=J,G.channelCount=J},get channelCountMode(){return G.channelCountMode},set channelCountMode(J){if(J==="max")throw u();ee.channelCountMode=J,G.channelCountMode=J},get channelInterpretation(){return G.channelInterpretation},set channelInterpretation(J){ee.channelInterpretation=J,G.channelInterpretation=J},get coneInnerAngle(){return G.coneInnerAngle},set coneInnerAngle(J){G.coneInnerAngle=J},get coneOuterAngle(){return G.coneOuterAngle},set coneOuterAngle(J){G.coneOuterAngle=J},get coneOuterGain(){return G.coneOuterGain},set coneOuterGain(J){if(J<0||J>1)throw e();G.coneOuterGain=J},get context(){return G.context},get distanceModel(){return G.distanceModel},set distanceModel(J){G.distanceModel=J},get inputs(){return[ee]},get maxDistance(){return G.maxDistance},set maxDistance(J){if(J<0)throw new RangeError;G.maxDistance=J},get numberOfInputs(){return G.numberOfInputs},get numberOfOutputs(){return G.numberOfOutputs},get orientationX(){return ae.gain},get orientationY(){return de.gain},get orientationZ(){return Q.gain},get panningModel(){return G.panningModel},set panningModel(J){G.panningModel=J},get positionX(){return re.gain},get positionY(){return z.gain},get positionZ(){return B.gain},get refDistance(){return G.refDistance},set refDistance(J){if(J<0)throw new RangeError;G.refDistance=J},get rolloffFactor(){return G.rolloffFactor},set rolloffFactor(J){if(J<0)throw new RangeError;G.rolloffFactor=J},addEventListener(...J){return ee.addEventListener(J[0],J[1],J[2])},dispatchEvent(...J){return ee.dispatchEvent(J[0])},removeEventListener(...J){return ee.removeEventListener(J[0],J[1],J[2])}};m!==oe.coneInnerAngle&&(oe.coneInnerAngle=m),y!==oe.coneOuterAngle&&(oe.coneOuterAngle=y),b!==oe.coneOuterGain&&(oe.coneOuterGain=b),E!==oe.distanceModel&&(oe.distanceModel=E),A!==oe.maxDistance&&(oe.maxDistance=A),S!==oe.orientationX.value&&(oe.orientationX.value=S),O!==oe.orientationY.value&&(oe.orientationY.value=O),k!==oe.orientationZ.value&&(oe.orientationZ.value=k),T!==oe.panningModel&&(oe.panningModel=T),C!==oe.positionX.value&&(oe.positionX.value=C),w!==oe.positionY.value&&(oe.positionY.value=w),R!==oe.positionZ.value&&(oe.positionZ.value=R),I!==oe.refDistance&&(oe.refDistance=I),$!==oe.rolloffFactor&&(oe.rolloffFactor=$),(X[0]!==1||X[1]!==0||X[2]!==0)&&G.setOrientation(...X),(le[0]!==0||le[1]!==0||le[2]!==0)&&G.setPosition(...le);const q=()=>{ee.connect(G),t(ee,W,0,0),W.connect(ae).connect(Z,0,0),W.connect(de).connect(Z,0,1),W.connect(Q).connect(Z,0,2),W.connect(re).connect(Z,0,3),W.connect(z).connect(Z,0,4),W.connect(B).connect(Z,0,5),Z.connect(F).connect(v.destination)},ie=()=>{ee.disconnect(G),c(ee,W,0,0),W.disconnect(ae),ae.disconnect(Z),W.disconnect(de),de.disconnect(Z),W.disconnect(Q),Q.disconnect(Z),W.disconnect(re),re.disconnect(Z),W.disconnect(z),z.disconnect(Z),W.disconnect(B),B.disconnect(Z),Z.disconnect(F),F.disconnect(v.destination)};return p(Uh(oe,G),q,ie)},CB=t=>(e,{disableNormalization:n,imag:r,real:i})=>{const a=r instanceof Float32Array?r:new Float32Array(r),u=i instanceof Float32Array?i:new Float32Array(i),c=e.createPeriodicWave(u,a,{disableNormalization:n});if(Array.from(r).length<2)throw t();return c},Nv=(t,e,n,r)=>t.createScriptProcessor(e,n,r),bB=(t,e)=>(n,r)=>{const i=r.channelCountMode;if(i==="clamped-max")throw e();if(n.createStereoPanner===void 0)return t(n,r);const a=n.createStereoPanner();return Sr(a,r),Ln(a,r,"pan"),Object.defineProperty(a,"channelCountMode",{get:()=>i,set:u=>{if(u!==i)throw e()}}),a},EB=(t,e,n,r,i,a)=>{const c=new Float32Array([1,1]),f=Math.PI/2,p={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},v={...p,oversample:"none"},m=(E,A,S,O)=>{const k=new Float32Array(16385),T=new Float32Array(16385);for(let U=0;U<16385;U+=1){const G=U/16384*f;k[U]=Math.cos(G),T[U]=Math.sin(G)}const C=n(E,{...p,gain:0}),w=r(E,{...v,curve:k}),R=r(E,{...v,curve:c}),I=n(E,{...p,gain:0}),$=r(E,{...v,curve:T});return{connectGraph(){A.connect(C),A.connect(R.inputs===void 0?R:R.inputs[0]),A.connect(I),R.connect(S),S.connect(w.inputs===void 0?w:w.inputs[0]),S.connect($.inputs===void 0?$:$.inputs[0]),w.connect(C.gain),$.connect(I.gain),C.connect(O,0,0),I.connect(O,0,1)},disconnectGraph(){A.disconnect(C),A.disconnect(R.inputs===void 0?R:R.inputs[0]),A.disconnect(I),R.disconnect(S),S.disconnect(w.inputs===void 0?w:w.inputs[0]),S.disconnect($.inputs===void 0?$:$.inputs[0]),w.disconnect(C.gain),$.disconnect(I.gain),C.disconnect(O,0,0),I.disconnect(O,0,1)}}},y=(E,A,S,O)=>{const k=new Float32Array(16385),T=new Float32Array(16385),C=new Float32Array(16385),w=new Float32Array(16385),R=Math.floor(16385/2);for(let re=0;re<16385;re+=1)if(re>R){const z=(re-R)/(16384-R)*f;k[re]=Math.cos(z),T[re]=Math.sin(z),C[re]=0,w[re]=1}else{const z=re/(16384-R)*f;k[re]=1,T[re]=0,C[re]=Math.cos(z),w[re]=Math.sin(z)}const I=e(E,{channelCount:2,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:2}),$=n(E,{...p,gain:0}),U=r(E,{...v,curve:k}),G=n(E,{...p,gain:0}),Y=r(E,{...v,curve:T}),Z=r(E,{...v,curve:c}),ee=n(E,{...p,gain:0}),ae=r(E,{...v,curve:C}),de=n(E,{...p,gain:0}),Q=r(E,{...v,curve:w});return{connectGraph(){A.connect(I),A.connect(Z.inputs===void 0?Z:Z.inputs[0]),I.connect($,0),I.connect(G,0),I.connect(ee,1),I.connect(de,1),Z.connect(S),S.connect(U.inputs===void 0?U:U.inputs[0]),S.connect(Y.inputs===void 0?Y:Y.inputs[0]),S.connect(ae.inputs===void 0?ae:ae.inputs[0]),S.connect(Q.inputs===void 0?Q:Q.inputs[0]),U.connect($.gain),Y.connect(G.gain),ae.connect(ee.gain),Q.connect(de.gain),$.connect(O,0,0),ee.connect(O,0,0),G.connect(O,0,1),de.connect(O,0,1)},disconnectGraph(){A.disconnect(I),A.disconnect(Z.inputs===void 0?Z:Z.inputs[0]),I.disconnect($,0),I.disconnect(G,0),I.disconnect(ee,1),I.disconnect(de,1),Z.disconnect(S),S.disconnect(U.inputs===void 0?U:U.inputs[0]),S.disconnect(Y.inputs===void 0?Y:Y.inputs[0]),S.disconnect(ae.inputs===void 0?ae:ae.inputs[0]),S.disconnect(Q.inputs===void 0?Q:Q.inputs[0]),U.disconnect($.gain),Y.disconnect(G.gain),ae.disconnect(ee.gain),Q.disconnect(de.gain),$.disconnect(O,0,0),ee.disconnect(O,0,0),G.disconnect(O,0,1),de.disconnect(O,0,1)}}},b=(E,A,S,O,k)=>{if(A===1)return m(E,S,O,k);if(A===2)return y(E,S,O,k);throw i()};return(E,{channelCount:A,channelCountMode:S,pan:O,...k})=>{if(S==="max")throw i();const T=t(E,{...k,channelCount:1,channelCountMode:S,numberOfInputs:2}),C=n(E,{...k,channelCount:A,channelCountMode:S,gain:1}),w=n(E,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:O});let{connectGraph:R,disconnectGraph:I}=b(E,A,C,w,T);Object.defineProperty(w.gain,"defaultValue",{get:()=>0}),Object.defineProperty(w.gain,"maxValue",{get:()=>1}),Object.defineProperty(w.gain,"minValue",{get:()=>-1});const $={get bufferSize(){},get channelCount(){return C.channelCount},set channelCount(Z){C.channelCount!==Z&&(U&&I(),{connectGraph:R,disconnectGraph:I}=b(E,Z,C,w,T),U&&R()),C.channelCount=Z},get channelCountMode(){return C.channelCountMode},set channelCountMode(Z){if(Z==="clamped-max"||Z==="max")throw i();C.channelCountMode=Z},get channelInterpretation(){return C.channelInterpretation},set channelInterpretation(Z){C.channelInterpretation=Z},get context(){return C.context},get inputs(){return[C]},get numberOfInputs(){return C.numberOfInputs},get numberOfOutputs(){return C.numberOfOutputs},get pan(){return w.gain},addEventListener(...Z){return C.addEventListener(Z[0],Z[1],Z[2])},dispatchEvent(...Z){return C.dispatchEvent(Z[0])},removeEventListener(...Z){return C.removeEventListener(Z[0],Z[1],Z[2])}};let U=!1;const G=()=>{R(),U=!0},Y=()=>{I(),U=!1};return a(Uh($,T),G,Y)}},xB=(t,e,n,r,i,a,u)=>(c,f)=>{const p=c.createWaveShaper();if(a!==null&&a.name==="webkitAudioContext"&&c.createGain().gain.automationRate===void 0)return n(c,f);Sr(p,f);const v=f.curve===null||f.curve instanceof Float32Array?f.curve:new Float32Array(f.curve);if(v!==null&&v.length<2)throw e();Tn(p,{curve:v},"curve"),Tn(p,f,"oversample");let m=null,y=!1;return u(p,"curve",A=>()=>A.call(p),A=>S=>(A.call(p,S),y&&(r(S)&&m===null?m=t(c,p):!r(S)&&m!==null&&(m(),m=null)),S)),i(p,()=>{y=!0,r(p.curve)&&(m=t(c,p))},()=>{y=!1,m!==null&&(m(),m=null)})},TB=(t,e,n,r,i)=>(a,{curve:u,oversample:c,...f})=>{const p=a.createWaveShaper(),v=a.createWaveShaper();Sr(p,f),Sr(v,f);const m=n(a,{...f,gain:1}),y=n(a,{...f,gain:-1}),b=n(a,{...f,gain:1}),E=n(a,{...f,gain:-1});let A=null,S=!1,O=null;const k={get bufferSize(){},get channelCount(){return p.channelCount},set channelCount(w){m.channelCount=w,y.channelCount=w,p.channelCount=w,b.channelCount=w,v.channelCount=w,E.channelCount=w},get channelCountMode(){return p.channelCountMode},set channelCountMode(w){m.channelCountMode=w,y.channelCountMode=w,p.channelCountMode=w,b.channelCountMode=w,v.channelCountMode=w,E.channelCountMode=w},get channelInterpretation(){return p.channelInterpretation},set channelInterpretation(w){m.channelInterpretation=w,y.channelInterpretation=w,p.channelInterpretation=w,b.channelInterpretation=w,v.channelInterpretation=w,E.channelInterpretation=w},get context(){return p.context},get curve(){return O},set curve(w){if(w!==null&&w.length<2)throw e();if(w===null)p.curve=w,v.curve=w;else{const R=w.length,I=new Float32Array(R+2-R%2),$=new Float32Array(R+2-R%2);I[0]=w[0],$[0]=-w[R-1];const U=Math.ceil((R+1)/2),G=(R+1)/2-1;for(let Y=1;Y<U;Y+=1){const Z=Y/U*G,ee=Math.floor(Z),ae=Math.ceil(Z);I[Y]=ee===ae?w[ee]:(1-(Z-ee))*w[ee]+(1-(ae-Z))*w[ae],$[Y]=ee===ae?-w[R-1-ee]:-((1-(Z-ee))*w[R-1-ee])-(1-(ae-Z))*w[R-1-ae]}I[U]=R%2===1?w[U-1]:(w[U-2]+w[U-1])/2,p.curve=I,v.curve=$}O=w,S&&(r(O)&&A===null?A=t(a,m):A!==null&&(A(),A=null))},get inputs(){return[m]},get numberOfInputs(){return p.numberOfInputs},get numberOfOutputs(){return p.numberOfOutputs},get oversample(){return p.oversample},set oversample(w){p.oversample=w,v.oversample=w},addEventListener(...w){return m.addEventListener(w[0],w[1],w[2])},dispatchEvent(...w){return m.dispatchEvent(w[0])},removeEventListener(...w){return m.removeEventListener(w[0],w[1],w[2])}};u!==null&&(k.curve=u instanceof Float32Array?u:new Float32Array(u)),c!==k.oversample&&(k.oversample=c);const T=()=>{m.connect(p).connect(b),m.connect(y).connect(v).connect(E).connect(b),S=!0,r(O)&&(A=t(a,m))},C=()=>{m.disconnect(p),p.disconnect(b),m.disconnect(y),y.disconnect(v),v.disconnect(E),E.disconnect(b),S=!1,A!==null&&(A(),A=null)};return i(Uh(k,b),T,C)},Oi=()=>new DOMException("","NotSupportedError"),OB={numberOfChannels:1},AB=(t,e,n,r,i)=>class extends t{constructor(u,c,f){let p;if(typeof u=="number"&&c!==void 0&&f!==void 0)p={length:c,numberOfChannels:u,sampleRate:f};else if(typeof u=="object")p=u;else throw new Error("The given parameters are not valid.");const{length:v,numberOfChannels:m,sampleRate:y}={...OB,...p},b=r(m,v,y);e(Jm,()=>Jm(b))||b.addEventListener("statechange",(()=>{let E=0;const A=S=>{this._state==="running"&&(E>0?(b.removeEventListener("statechange",A),S.stopImmediatePropagation(),this._waitForThePromiseToSettle(S)):E+=1)};return A})()),super(b,m),this._length=v,this._nativeOfflineAudioContext=b,this._state=null}get length(){return this._nativeOfflineAudioContext.length===void 0?this._length:this._nativeOfflineAudioContext.length}get state(){return this._state===null?this._nativeOfflineAudioContext.state:this._state}startRendering(){return this._state==="running"?Promise.reject(n()):(this._state="running",i(this.destination,this._nativeOfflineAudioContext).finally(()=>{this._state=null,cN(this)}))}_waitForThePromiseToSettle(u){this._state===null?this._nativeOfflineAudioContext.dispatchEvent(u):setTimeout(()=>this._waitForThePromiseToSettle(u))}},RB={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:440,periodicWave:void 0,type:"sine"},kB=(t,e,n,r,i,a,u)=>class extends t{constructor(f,p){const v=i(f),m={...RB,...p},y=n(v,m),b=a(v),E=b?r():null,A=f.sampleRate/2;super(f,!1,y,E),this._detune=e(this,b,y.detune,153600,-153600),this._frequency=e(this,b,y.frequency,A,-A),this._nativeOscillatorNode=y,this._onended=null,this._oscillatorNodeRenderer=E,this._oscillatorNodeRenderer!==null&&m.periodicWave!==void 0&&(this._oscillatorNodeRenderer.periodicWave=m.periodicWave)}get detune(){return this._detune}get frequency(){return this._frequency}get onended(){return this._onended}set onended(f){const p=typeof f=="function"?u(this,f):null;this._nativeOscillatorNode.onended=p;const v=this._nativeOscillatorNode.onended;this._onended=v!==null&&v===p?f:v}get type(){return this._nativeOscillatorNode.type}set type(f){this._nativeOscillatorNode.type=f,this._oscillatorNodeRenderer!==null&&(this._oscillatorNodeRenderer.periodicWave=null)}setPeriodicWave(f){this._nativeOscillatorNode.setPeriodicWave(f),this._oscillatorNodeRenderer!==null&&(this._oscillatorNodeRenderer.periodicWave=f)}start(f=0){if(this._nativeOscillatorNode.start(f),this._oscillatorNodeRenderer!==null&&(this._oscillatorNodeRenderer.start=f),this.context.state!=="closed"){Nh(this);const p=()=>{this._nativeOscillatorNode.removeEventListener("ended",p),al(this)&&Ov(this)};this._nativeOscillatorNode.addEventListener("ended",p)}}stop(f=0){this._nativeOscillatorNode.stop(f),this._oscillatorNodeRenderer!==null&&(this._oscillatorNodeRenderer.stop=f)}},NB=(t,e,n,r,i)=>()=>{const a=new WeakMap;let u=null,c=null,f=null;const p=async(v,m)=>{let y=n(v);const b=fi(y,m);if(!b){const E={channelCount:y.channelCount,channelCountMode:y.channelCountMode,channelInterpretation:y.channelInterpretation,detune:y.detune.value,frequency:y.frequency.value,periodicWave:u===null?void 0:u,type:y.type};y=e(m,E),c!==null&&y.start(c),f!==null&&y.stop(f)}return a.set(m,y),b?(await t(m,v.detune,y.detune),await t(m,v.frequency,y.frequency)):(await r(m,v.detune,y.detune),await r(m,v.frequency,y.frequency)),await i(v,m,y),y};return{set periodicWave(v){u=v},set start(v){c=v},set stop(v){f=v},render(v,m){const y=a.get(m);return y!==void 0?Promise.resolve(y):p(v,m)}}},PB={channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",coneInnerAngle:360,coneOuterAngle:360,coneOuterGain:0,distanceModel:"inverse",maxDistance:1e4,orientationX:1,orientationY:0,orientationZ:0,panningModel:"equalpower",positionX:0,positionY:0,positionZ:0,refDistance:1,rolloffFactor:1},DB=(t,e,n,r,i,a,u)=>class extends t{constructor(f,p){const v=i(f),m={...PB,...p},y=n(v,m),b=a(v),E=b?r():null;super(f,!1,y,E),this._nativePannerNode=y,this._orientationX=e(this,b,y.orientationX,bi,wo),this._orientationY=e(this,b,y.orientationY,bi,wo),this._orientationZ=e(this,b,y.orientationZ,bi,wo),this._positionX=e(this,b,y.positionX,bi,wo),this._positionY=e(this,b,y.positionY,bi,wo),this._positionZ=e(this,b,y.positionZ,bi,wo),u(this,1)}get coneInnerAngle(){return this._nativePannerNode.coneInnerAngle}set coneInnerAngle(f){this._nativePannerNode.coneInnerAngle=f}get coneOuterAngle(){return this._nativePannerNode.coneOuterAngle}set coneOuterAngle(f){this._nativePannerNode.coneOuterAngle=f}get coneOuterGain(){return this._nativePannerNode.coneOuterGain}set coneOuterGain(f){this._nativePannerNode.coneOuterGain=f}get distanceModel(){return this._nativePannerNode.distanceModel}set distanceModel(f){this._nativePannerNode.distanceModel=f}get maxDistance(){return this._nativePannerNode.maxDistance}set maxDistance(f){this._nativePannerNode.maxDistance=f}get orientationX(){return this._orientationX}get orientationY(){return this._orientationY}get orientationZ(){return this._orientationZ}get panningModel(){return this._nativePannerNode.panningModel}set panningModel(f){this._nativePannerNode.panningModel=f}get positionX(){return this._positionX}get positionY(){return this._positionY}get positionZ(){return this._positionZ}get refDistance(){return this._nativePannerNode.refDistance}set refDistance(f){this._nativePannerNode.refDistance=f}get rolloffFactor(){return this._nativePannerNode.rolloffFactor}set rolloffFactor(f){this._nativePannerNode.rolloffFactor=f}},LB=(t,e,n,r,i,a,u,c,f,p)=>()=>{const v=new WeakMap;let m=null;const y=async(b,E)=>{let A=null,S=a(b);const O={channelCount:S.channelCount,channelCountMode:S.channelCountMode,channelInterpretation:S.channelInterpretation},k={...O,coneInnerAngle:S.coneInnerAngle,coneOuterAngle:S.coneOuterAngle,coneOuterGain:S.coneOuterGain,distanceModel:S.distanceModel,maxDistance:S.maxDistance,panningModel:S.panningModel,refDistance:S.refDistance,rolloffFactor:S.rolloffFactor},T=fi(S,E);if("bufferSize"in S)A=r(E,{...O,gain:1});else if(!T){const C={...k,orientationX:S.orientationX.value,orientationY:S.orientationY.value,orientationZ:S.orientationZ.value,positionX:S.positionX.value,positionY:S.positionY.value,positionZ:S.positionZ.value};S=i(E,C)}if(v.set(E,A===null?S:A),A!==null){if(m===null){if(u===null)throw new Error("Missing the native OfflineAudioContext constructor.");const Y=new u(6,b.context.length,E.sampleRate),Z=e(Y,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:6});Z.connect(Y.destination),m=(async()=>{const ee=await Promise.all([b.orientationX,b.orientationY,b.orientationZ,b.positionX,b.positionY,b.positionZ].map(async(ae,de)=>{const Q=n(Y,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:de===0?1:0});return await c(Y,ae,Q.offset),Q}));for(let ae=0;ae<6;ae+=1)ee[ae].connect(Z,0,ae),ee[ae].start(0);return p(Y)})()}const C=await m,w=r(E,{...O,gain:1});await f(b,E,w);const R=[];for(let Y=0;Y<C.numberOfChannels;Y+=1)R.push(C.getChannelData(Y));let I=[R[0][0],R[1][0],R[2][0]],$=[R[3][0],R[4][0],R[5][0]],U=r(E,{...O,gain:1}),G=i(E,{...k,orientationX:I[0],orientationY:I[1],orientationZ:I[2],positionX:$[0],positionY:$[1],positionZ:$[2]});w.connect(U).connect(G.inputs[0]),G.connect(A);for(let Y=128;Y<C.length;Y+=128){const Z=[R[0][Y],R[1][Y],R[2][Y]],ee=[R[3][Y],R[4][Y],R[5][Y]];if(Z.some((ae,de)=>ae!==I[de])||ee.some((ae,de)=>ae!==$[de])){I=Z,$=ee;const ae=Y/E.sampleRate;U.gain.setValueAtTime(0,ae),U=r(E,{...O,gain:0}),G=i(E,{...k,orientationX:I[0],orientationY:I[1],orientationZ:I[2],positionX:$[0],positionY:$[1],positionZ:$[2]}),U.gain.setValueAtTime(1,ae),w.connect(U).connect(G.inputs[0]),G.connect(A)}}return A}return T?(await t(E,b.orientationX,S.orientationX),await t(E,b.orientationY,S.orientationY),await t(E,b.orientationZ,S.orientationZ),await t(E,b.positionX,S.positionX),await t(E,b.positionY,S.positionY),await t(E,b.positionZ,S.positionZ)):(await c(E,b.orientationX,S.orientationX),await c(E,b.orientationY,S.orientationY),await c(E,b.orientationZ,S.orientationZ),await c(E,b.positionX,S.positionX),await c(E,b.positionY,S.positionY),await c(E,b.positionZ,S.positionZ)),qh(S)?await f(b,E,S.inputs[0]):await f(b,E,S),S};return{render(b,E){const A=v.get(E);return A!==void 0?Promise.resolve(A):y(b,E)}}},MB={disableNormalization:!1},IB=(t,e,n,r)=>class wN{constructor(a,u){const c=e(a),f=r({...MB,...u}),p=t(c,f);return n.add(p),p}static[Symbol.hasInstance](a){return a!==null&&typeof a=="object"&&Object.getPrototypeOf(a)===wN.prototype||n.has(a)}},FB=(t,e)=>(n,r,i)=>(t(r).replay(i),e(r,n,i)),$B=(t,e,n)=>async(r,i,a)=>{const u=t(r);await Promise.all(u.activeInputs.map((c,f)=>Array.from(c).map(async([p,v])=>{const y=await e(p).render(p,i),b=r.context.destination;!n(p)&&(r!==b||!n(r))&&y.connect(a,v,f)})).reduce((c,f)=>[...c,...f],[]))},jB=(t,e,n)=>async(r,i,a)=>{const u=e(r);await Promise.all(Array.from(u.activeInputs).map(async([c,f])=>{const v=await t(c).render(c,i);n(c)||v.connect(a,f)}))},zB=(t,e,n,r)=>i=>t(Jm,()=>Jm(i))?Promise.resolve(t(r,r)).then(a=>{if(!a){const u=n(i,512,0,1);i.oncomplete=()=>{u.onaudioprocess=null,u.disconnect()},u.onaudioprocess=()=>i.currentTime,u.connect(i.destination)}return i.startRendering()}):new Promise(a=>{const u=e(i,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});i.oncomplete=c=>{u.disconnect(),a(c.renderedBuffer)},u.connect(i.destination),i.startRendering()}),HB=t=>(e,n)=>{t.set(e,n)},qB=t=>(e,n)=>t.set(e,n),UB=(t,e,n,r,i,a,u,c)=>(f,p)=>n(f).render(f,p).then(()=>Promise.all(Array.from(r(p)).map(v=>n(v).render(v,p)))).then(()=>i(p)).then(v=>(typeof v.copyFromChannel!="function"?(u(v),bb(v)):e(a,()=>a(v))||c(v),t.add(v),v)),WB={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",pan:0},VB=(t,e,n,r,i,a)=>class extends t{constructor(c,f){const p=i(c),v={...WB,...f},m=n(p,v),y=a(p),b=y?r():null;super(c,!1,m,b),this._pan=e(this,y,m.pan)}get pan(){return this._pan}},GB=(t,e,n,r,i)=>()=>{const a=new WeakMap,u=async(c,f)=>{let p=n(c);const v=fi(p,f);if(!v){const m={channelCount:p.channelCount,channelCountMode:p.channelCountMode,channelInterpretation:p.channelInterpretation,pan:p.pan.value};p=e(f,m)}return a.set(f,p),v?await t(f,c.pan,p.pan):await r(f,c.pan,p.pan),qh(p)?await i(c,f,p.inputs[0]):await i(c,f,p),p};return{render(c,f){const p=a.get(f);return p!==void 0?Promise.resolve(p):u(c,f)}}},BB=t=>()=>{if(t===null)return!1;try{new t({length:1,sampleRate:44100})}catch{return!1}return!0},KB=(t,e)=>async()=>{if(t===null)return!0;if(e===null)return!1;const n=new Blob(['class A extends AudioWorkletProcessor{process(i){this.port.postMessage(i,[i[0][0].buffer])}}registerProcessor("a",A)'],{type:"application/javascript; charset=utf-8"}),r=new e(1,128,44100),i=URL.createObjectURL(n);let a=!1,u=!1;try{await r.audioWorklet.addModule(i);const c=new t(r,"a",{numberOfOutputs:0}),f=r.createOscillator();c.port.onmessage=()=>a=!0,c.onprocessorerror=()=>u=!0,f.connect(c),f.start(0),await r.startRendering(),await new Promise(p=>setTimeout(p))}catch{}finally{URL.revokeObjectURL(i)}return a&&!u},XB=(t,e)=>()=>{if(e===null)return Promise.resolve(!1);const n=new e(1,1,44100),r=t(n,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});return new Promise(i=>{n.oncomplete=()=>{r.disconnect(),i(n.currentTime!==0)},n.startRendering()})},YB=()=>new DOMException("","UnknownError"),QB={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",curve:null,oversample:"none"},ZB=(t,e,n,r,i,a,u)=>class extends t{constructor(f,p){const v=i(f),m={...QB,...p},y=n(v,m),E=a(v)?r():null;super(f,!0,y,E),this._isCurveNullified=!1,this._nativeWaveShaperNode=y,u(this,1)}get curve(){return this._isCurveNullified?null:this._nativeWaveShaperNode.curve}set curve(f){if(f===null)this._isCurveNullified=!0,this._nativeWaveShaperNode.curve=new Float32Array([0,0]);else{if(f.length<2)throw e();this._isCurveNullified=!1,this._nativeWaveShaperNode.curve=f}}get oversample(){return this._nativeWaveShaperNode.oversample}set oversample(f){this._nativeWaveShaperNode.oversample=f}},JB=(t,e,n)=>()=>{const r=new WeakMap,i=async(a,u)=>{let c=e(a);if(!fi(c,u)){const p={channelCount:c.channelCount,channelCountMode:c.channelCountMode,channelInterpretation:c.channelInterpretation,curve:c.curve,oversample:c.oversample};c=t(u,p)}return r.set(u,c),qh(c)?await n(a,u,c.inputs[0]):await n(a,u,c),c};return{render(a,u){const c=r.get(u);return c!==void 0?Promise.resolve(c):i(a,u)}}},eK=()=>typeof window>"u"?null:window,tK=(t,e)=>n=>{n.copyFromChannel=(r,i,a=0)=>{const u=t(a),c=t(i);if(c>=n.numberOfChannels)throw e();const f=n.length,p=n.getChannelData(c),v=r.length;for(let m=u<0?-u:0;m+u<f&&m<v;m+=1)r[m]=p[m+u]},n.copyToChannel=(r,i,a=0)=>{const u=t(a),c=t(i);if(c>=n.numberOfChannels)throw e();const f=n.length,p=n.getChannelData(c),v=r.length;for(let m=u<0?-u:0;m+u<f&&m<v;m+=1)p[m+u]=r[m]}},nK=t=>e=>{e.copyFromChannel=(n=>(r,i,a=0)=>{const u=t(a),c=t(i);if(u<e.length)return n.call(e,r,c,u)})(e.copyFromChannel),e.copyToChannel=(n=>(r,i,a=0)=>{const u=t(a),c=t(i);if(u<e.length)return n.call(e,r,c,u)})(e.copyToChannel)},rK=t=>(e,n)=>{const r=n.createBuffer(1,1,44100);e.buffer===null&&(e.buffer=r),t(e,"buffer",i=>()=>{const a=i.call(e);return a===r?null:a},i=>a=>i.call(e,a===null?r:a))},iK=(t,e)=>(n,r)=>{r.channelCount=1,r.channelCountMode="explicit",Object.defineProperty(r,"channelCount",{get:()=>1,set:()=>{throw t()}}),Object.defineProperty(r,"channelCountMode",{get:()=>"explicit",set:()=>{throw t()}});const i=n.createBufferSource();e(r,()=>{const c=r.numberOfInputs;for(let f=0;f<c;f+=1)i.connect(r,0,f)},()=>i.disconnect(r))},SN=(t,e,n)=>t.copyFromChannel===void 0?t.getChannelData(n)[0]:(t.copyFromChannel(e,n),e[0]),CN=t=>{if(t===null)return!1;const e=t.length;return e%2!==0?t[Math.floor(e/2)]!==0:t[e/2-1]+t[e/2]!==0},Pv=(t,e,n,r)=>{let i=t;for(;!i.hasOwnProperty(e);)i=Object.getPrototypeOf(i);const{get:a,set:u}=Object.getOwnPropertyDescriptor(i,e);Object.defineProperty(t,e,{get:n(a),set:r(u)})},oK=t=>({...t,outputChannelCount:t.outputChannelCount!==void 0?t.outputChannelCount:t.numberOfInputs===1&&t.numberOfOutputs===1?[t.channelCount]:Array.from({length:t.numberOfOutputs},()=>1)}),aK=t=>({...t,channelCount:t.numberOfOutputs}),sK=t=>{const{imag:e,real:n}=t;return e===void 0?n===void 0?{...t,imag:[0,0],real:[0,0]}:{...t,imag:Array.from(n,()=>0),real:n}:n===void 0?{...t,imag:e,real:Array.from(e,()=>0)}:{...t,imag:e,real:n}},bN=(t,e,n)=>{try{t.setValueAtTime(e,n)}catch(r){if(r.code!==9)throw r;bN(t,e,n+1e-7)}},lK=t=>{const e=t.createBufferSource();e.start();try{e.start()}catch{return!0}return!1},uK=t=>{const e=t.createBufferSource(),n=t.createBuffer(1,1,44100);e.buffer=n;try{e.start(0,1)}catch{return!1}return!0},cK=t=>{const e=t.createBufferSource();e.start();try{e.stop()}catch{return!1}return!0},Ab=t=>{const e=t.createOscillator();try{e.start(-1)}catch(n){return n instanceof RangeError}return!1},EN=t=>{const e=t.createBuffer(1,1,44100),n=t.createBufferSource();n.buffer=e,n.start(),n.stop();try{return n.stop(),!0}catch{return!1}},Rb=t=>{const e=t.createOscillator();try{e.stop(-1)}catch(n){return n instanceof RangeError}return!1},fK=t=>{const{port1:e,port2:n}=new MessageChannel;try{e.postMessage(t)}finally{e.close(),n.close()}},dK=t=>{t.start=(e=>(n=0,r=0,i)=>{const a=t.buffer,u=a===null?r:Math.min(a.duration,r);a!==null&&u>a.duration-.5/t.context.sampleRate?e.call(t,n,0,0):e.call(t,n,u,i)})(t.start)},xN=(t,e)=>{const n=e.createGain();t.connect(n);const r=(i=>()=>{i.call(t,n),t.removeEventListener("ended",r)})(t.disconnect);t.addEventListener("ended",r),Uh(t,n),t.stop=(i=>{let a=!1;return(u=0)=>{if(a)try{i.call(t,u)}catch{n.gain.setValueAtTime(0,u)}else i.call(t,u),a=!0}})(t.stop)},Wh=(t,e)=>n=>{const r={value:t};return Object.defineProperties(n,{currentTarget:r,target:r}),typeof e=="function"?e.call(t,n):e.handleEvent.call(t,n)},hK=DW(_f),pK=jW(_f),mK=QV(v_),TN=new WeakMap,vK=mG(TN),Oa=OV(new Map,new WeakMap),vs=eK(),ON=VG(Oa,_s),kb=pG(xi),Xr=$B(xi,kb,df),gK=WW(ON,wn,Xr),hn=yG(m_),_l=yB(vs),nn=MG(_l),AN=new WeakMap,RN=sG(Wh),Dv=XG(vs),Nb=NG(Dv),Pb=PG(vs),kN=DG(vs),ev=QG(vs),Qn=mV(LW(rN),$W(hK,pK,xy,mK,Ty,xi,vK,Tv,wn,_f,al,df,Z0),Oa,TG(oC,Ty,xi,wn,Zm,al),_s,g_,Oi,BV(xy,oC,xi,wn,Zm,hn,al,nn),eG(AN,xi,xa),RN,hn,Nb,Pb,kN,nn,ev),yK=UW(Qn,gK,_s,ON,hn,nn),Db=new WeakSet,QO=GG(vs),NN=zV(new Uint32Array(1)),Lb=tK(NN,_s),Mb=nK(NN),_K=GW(Db,Oa,Oi,QO,_l,BB(QO),Lb,Mb),y_=zW(to),PN=jB(kb,Av,df),ws=LV(PN),Vh=KG(y_,Oa,lK,uK,cK,Ab,EN,Rb,dK,rK(Pv),xN),Ss=FB(vG(Av),PN),wK=XW(ws,Vh,wn,Ss,Xr),Aa=vV(MW(iN),AN,Cb,gV,OW,AW,RW,kW,NW,nC,tN,Dv,bN),SK=KW(Qn,wK,Aa,Pr,Vh,hn,nn,Wh),CK=iV(Qn,oV,_s,Pr,YG(to,Pv),hn,nn,Xr),bK=TV(ws,yN,wn,Ss,Xr),wf=qB(TN),EK=xV(Qn,Aa,bK,g_,yN,hn,nn,wf),Su=UG(_f,Pb),xK=iK(Pr,Su),Cu=iB(Dv,xK),TK=kV(Cu,wn,Xr),OK=RV(Qn,TK,Cu,hn,nn),AK=DV(kv,wn,Xr),RK=PV(Qn,AK,kv,hn,nn,aK),kK=sB(y_,Vh,to,Su),Gh=aB(y_,Oa,kK,Ab,Rb),NK=jV(ws,Gh,wn,Ss,Xr),PK=$V(Qn,Aa,NK,Gh,hn,nn,Wh),DN=lB(Oi,Pv),DK=UV(DN,wn,Xr),LK=qV(Qn,DK,DN,hn,nn,wf),MK=YV(ws,_N,wn,Ss,Xr),IK=XV(Qn,Aa,MK,_N,hn,nn,wf),LN=uB(Oi),FK=iG(ws,LN,wn,Ss,Xr),$K=rG(Qn,Aa,FK,LN,Oi,hn,nn,wf),jK=dG(ws,to,wn,Ss,Xr),zK=fG(Qn,Aa,jK,to,hn,nn),HK=hB(g_,Pr,Nv,Oi),__=zB(Oa,to,Nv,XB(to,_l)),qK=xG(Vh,wn,_l,Xr,__),UK=cB(HK),WK=bG(Qn,UK,qK,hn,nn,wf),VK=aV(Aa,Cu,Gh,Nv,Oi,SN,nn,Pv),MN=new WeakMap,GK=qG(CK,VK,RN,nn,MN,Wh),IN=_B(y_,Oa,Ab,EN,Rb,xN),BK=NB(ws,IN,wn,Ss,Xr),KK=kB(Qn,Aa,IN,BK,hn,nn,Wh),FN=IV(Vh),XK=TB(FN,Pr,to,CN,Su),w_=xB(FN,Pr,XK,CN,Su,Dv,Pv),YK=SB(xy,Pr,Cu,to,Nv,w_,Oi,Ty,SN,Su),$N=wB(YK),QK=LB(ws,Cu,Gh,to,$N,wn,_l,Ss,Xr,__),ZK=DB(Qn,Aa,$N,QK,hn,nn,wf),JK=CB(_s),eX=IB(JK,hn,new WeakSet,sK),tX=EB(Cu,kv,to,w_,Oi,Su),jN=bB(tX,Oi),nX=GB(ws,jN,wn,Ss,Xr),rX=VB(Qn,Aa,jN,nX,hn,nn),iX=JB(w_,wn,Xr),oX=ZB(Qn,Pr,w_,iX,hn,nn,wf),zN=IG(vs),Ib=lG(vs),HN=new WeakMap,aX=_G(HN,_l),sX=zN?FW(Oa,Oi,aG(vs),Ib,uG(PW),hn,aX,nn,ev,new WeakMap,new WeakMap,KB(ev,_l),vs):void 0,lX=LG(Nb,nn),uX=GV(Db,Oa,VV,oG,new WeakSet,hn,lX,by,Jm,Lb,Mb),qN=bV(sX,yK,_K,SK,EK,OK,RK,PK,LK,uX,IK,$K,zK,WK,GK,KK,ZK,eX,rX,oX),cX=FG(Qn,pB,hn,nn),fX=jG(Qn,mB,hn,nn),dX=zG(Qn,vB,hn,nn),hX=gB(Pr,nn),pX=HG(Qn,hX,hn),mX=rV(qN,Pr,Oi,YB,cX,fX,dX,pX,Dv),Fb=wG(MN),vX=HW(Fb),UN=MV(_s),gX=ZV(Fb),WN=tG(_s),VN=new WeakMap,yX=hG(VN,xa),_X=rB(UN,_s,Pr,Cu,kv,Gh,to,Nv,Oi,WN,Ib,yX,Su),wX=JG(Pr,_X,to,Oi,Su),SX=CV(ws,UN,Vh,Cu,kv,Gh,to,gX,WN,Ib,wn,ev,_l,Ss,Xr,__),CX=gG(HN),bX=HB(VN),ZO=zN?_V(vX,Qn,Aa,SX,wX,xi,CX,hn,nn,ev,oK,bX,fK,Wh):void 0,EX=WV(Oi,_l),xX=UB(Db,Oa,kb,Fb,__,by,Lb,Mb),TX=AB(qN,Oa,Pr,EX,xX),OX=OG(m_,Nb),AX=AG(Sb,Pb),RX=RG(Cb,kN),kX=kG(m_,nn);function At(t,e){if(!t)throw new Error(e)}function gu(t,e,n=1/0){if(!(e<=t&&t<=n))throw new RangeError(`Value must be within [${e}, ${n}], got: ${t}`)}function GN(t){!t.isOffline&&t.state!=="running"&&KN('The AudioContext is "suspended". Invoke Tone.start() from a user action to start the audio.')}let BN=console;function NX(...t){BN.log(...t)}function KN(...t){BN.warn(...t)}function Bo(t){return typeof t>"u"}function Ft(t){return!Bo(t)}function PX(t){return typeof t=="function"}function hf(t){return typeof t=="number"}function Xc(t){return Object.prototype.toString.call(t)==="[object Object]"&&t.constructor===Object}function DX(t){return typeof t=="boolean"}function Ea(t){return Array.isArray(t)}function gs(t){return typeof t=="string"}function M0(t){return gs(t)&&/^([a-g]{1}(?:b|#|x|bb)?)(-?[0-9]+)/i.test(t)}function LX(t){return new mX(t)}function MX(t,e,n){return new TX(t,e,n)}const Yc=typeof self=="object"?self:null,IX=Yc&&(Yc.hasOwnProperty("AudioContext")||Yc.hasOwnProperty("webkitAudioContext"));function FX(t,e,n){return At(Ft(ZO),"This node only works in a secure context (https or localhost)"),new ZO(t,e,n)}class $X{constructor(e,n,r){this._callback=e,this._type=n,this._updateInterval=r,this._createClock()}_createWorker(){const e=new Blob([`
|
|
581
|
+
// the initial timeout time
|
|
582
|
+
let timeoutTime = ${(this._updateInterval*1e3).toFixed(1)};
|
|
583
|
+
// onmessage callback
|
|
584
|
+
self.onmessage = function(msg){
|
|
585
|
+
timeoutTime = parseInt(msg.data);
|
|
586
|
+
};
|
|
587
|
+
// the tick function which posts a message
|
|
588
|
+
// and schedules a new tick
|
|
589
|
+
function tick(){
|
|
590
|
+
setTimeout(tick, timeoutTime);
|
|
591
|
+
self.postMessage('tick');
|
|
592
|
+
}
|
|
593
|
+
// call tick initially
|
|
594
|
+
tick();
|
|
595
|
+
`],{type:"text/javascript"}),n=URL.createObjectURL(e),r=new Worker(n);r.onmessage=this._callback.bind(this),this._worker=r}_createTimeout(){this._timeout=setTimeout(()=>{this._createTimeout(),this._callback()},this._updateInterval*1e3)}_createClock(){if(this._type==="worker")try{this._createWorker()}catch{this._type="timeout",this._createClock()}else this._type==="timeout"&&this._createTimeout()}_disposeClock(){this._timeout&&(clearTimeout(this._timeout),this._timeout=0),this._worker&&(this._worker.terminate(),this._worker.onmessage=null)}get updateInterval(){return this._updateInterval}set updateInterval(e){this._updateInterval=Math.max(e,128/44100),this._type==="worker"&&this._worker.postMessage(Math.max(e*1e3,1))}get type(){return this._type}set type(e){this._disposeClock(),this._type=e,this._createClock()}dispose(){this._disposeClock()}}function pf(t){return RX(t)}function mu(t){return AX(t)}function J0(t){return kX(t)}function nh(t){return OX(t)}function XN(t){return t instanceof AudioBuffer}function jX(t,e){return t==="value"||pf(e)||mu(e)||XN(e)}function dh(t,...e){if(!e.length)return t;const n=e.shift();if(Xc(t)&&Xc(n))for(const r in n)jX(r,n[r])?t[r]=n[r]:Xc(n[r])?(t[r]||Object.assign(t,{[r]:{}}),dh(t[r],n[r])):Object.assign(t,{[r]:n[r]});return dh(t,...e)}function zX(t,e){return t.length===e.length&&t.every((n,r)=>e[r]===n)}function Ve(t,e,n=[],r){const i={},a=Array.from(e);if(Xc(a[0])&&r&&!Reflect.has(a[0],r)&&(Object.keys(a[0]).some(c=>Reflect.has(t,c))||(dh(i,{[r]:a[0]}),n.splice(n.indexOf(r),1),a.shift())),a.length===1&&Xc(a[0]))dh(i,a[0]);else for(let u=0;u<n.length;u++)Ft(a[u])&&(i[n[u]]=a[u]);return dh(t,i)}function HX(t){return t.constructor.getDefaults()}function hh(t,e){return Bo(t)?e:t}function JO(t,e){return e.forEach(n=>{Reflect.has(t,n)&&delete t[n]}),t}/**
|
|
596
|
+
* Tone.js
|
|
597
|
+
* @author Yotam Mann
|
|
598
|
+
* @license http://opensource.org/licenses/MIT MIT License
|
|
599
|
+
* @copyright 2014-2019 Yotam Mann
|
|
600
|
+
*/class wl{constructor(){this.debug=!1,this._wasDisposed=!1}static getDefaults(){return{}}log(...e){(this.debug||Yc&&this.toString()===Yc.TONE_DEBUG_CLASS)&&NX(this,...e)}dispose(){return this._wasDisposed=!0,this}get disposed(){return this._wasDisposed}toString(){return this.name}}wl.version=eN;const $b=1e-6;function ky(t,e){return t>e+$b}function cC(t,e){return ky(t,e)||wa(t,e)}function YN(t,e){return t+$b<e}function wa(t,e){return Math.abs(t-e)<$b}function qX(t,e,n){return Math.max(Math.min(t,n),e)}class Cs extends wl{constructor(){super(),this.name="Timeline",this._timeline=[];const e=Ve(Cs.getDefaults(),arguments,["memory"]);this.memory=e.memory,this.increasing=e.increasing}static getDefaults(){return{memory:1/0,increasing:!1}}get length(){return this._timeline.length}add(e){if(At(Reflect.has(e,"time"),"Timeline: events must have a time attribute"),e.time=e.time.valueOf(),this.increasing&&this.length){const n=this._timeline[this.length-1];At(cC(e.time,n.time),"The time must be greater than or equal to the last scheduled time"),this._timeline.push(e)}else{const n=this._search(e.time);this._timeline.splice(n+1,0,e)}if(this.length>this.memory){const n=this.length-this.memory;this._timeline.splice(0,n)}return this}remove(e){const n=this._timeline.indexOf(e);return n!==-1&&this._timeline.splice(n,1),this}get(e,n="time"){const r=this._search(e,n);return r!==-1?this._timeline[r]:null}peek(){return this._timeline[0]}shift(){return this._timeline.shift()}getAfter(e,n="time"){const r=this._search(e,n);return r+1<this._timeline.length?this._timeline[r+1]:null}getBefore(e){const n=this._timeline.length;if(n>0&&this._timeline[n-1].time<e)return this._timeline[n-1];const r=this._search(e);return r-1>=0?this._timeline[r-1]:null}cancel(e){if(this._timeline.length>1){let n=this._search(e);if(n>=0)if(wa(this._timeline[n].time,e)){for(let r=n;r>=0&&wa(this._timeline[r].time,e);r--)n=r;this._timeline=this._timeline.slice(0,n)}else this._timeline=this._timeline.slice(0,n+1);else this._timeline=[]}else this._timeline.length===1&&cC(this._timeline[0].time,e)&&(this._timeline=[]);return this}cancelBefore(e){const n=this._search(e);return n>=0&&(this._timeline=this._timeline.slice(n+1)),this}previousEvent(e){const n=this._timeline.indexOf(e);return n>0?this._timeline[n-1]:null}_search(e,n="time"){if(this._timeline.length===0)return-1;let r=0;const i=this._timeline.length;let a=i;if(i>0&&this._timeline[i-1][n]<=e)return i-1;for(;r<a;){let u=Math.floor(r+(a-r)/2);const c=this._timeline[u],f=this._timeline[u+1];if(wa(c[n],e)){for(let p=u;p<this._timeline.length;p++){const v=this._timeline[p];if(wa(v[n],e))u=p;else break}return u}else{if(YN(c[n],e)&&ky(f[n],e))return u;ky(c[n],e)?a=u:r=u+1}}return-1}_iterate(e,n=0,r=this._timeline.length-1){this._timeline.slice(n,r+1).forEach(e)}forEach(e){return this._iterate(e),this}forEachBefore(e,n){const r=this._search(e);return r!==-1&&this._iterate(n,0,r),this}forEachAfter(e,n){const r=this._search(e);return this._iterate(n,r+1),this}forEachBetween(e,n,r){let i=this._search(e),a=this._search(n);return i!==-1&&a!==-1?(this._timeline[i].time!==e&&(i+=1),this._timeline[a].time===n&&(a-=1),this._iterate(r,i,a)):i===-1&&this._iterate(r,0,a),this}forEachFrom(e,n){let r=this._search(e);for(;r>=0&&this._timeline[r].time>=e;)r--;return this._iterate(n,r+1),this}forEachAtTime(e,n){const r=this._search(e);if(r!==-1&&wa(this._timeline[r].time,e)){let i=r;for(let a=r;a>=0&&wa(this._timeline[a].time,e);a--)i=a;this._iterate(a=>{n(a)},i,r)}return this}dispose(){return super.dispose(),this._timeline=[],this}}const QN=[];function S_(t){QN.push(t)}function UX(t){QN.forEach(e=>e(t))}const ZN=[];function C_(t){ZN.push(t)}function WX(t){ZN.forEach(e=>e(t))}class Lv extends wl{constructor(){super(...arguments),this.name="Emitter"}on(e,n){return e.split(/\W+/).forEach(i=>{Bo(this._events)&&(this._events={}),this._events.hasOwnProperty(i)||(this._events[i]=[]),this._events[i].push(n)}),this}once(e,n){const r=(...i)=>{n(...i),this.off(e,r)};return this.on(e,r),this}off(e,n){return e.split(/\W+/).forEach(i=>{if(Bo(this._events)&&(this._events={}),this._events.hasOwnProperty(e))if(Bo(n))this._events[e]=[];else{const a=this._events[e];for(let u=a.length-1;u>=0;u--)a[u]===n&&a.splice(u,1)}}),this}emit(e,...n){if(this._events&&this._events.hasOwnProperty(e)){const r=this._events[e].slice(0);for(let i=0,a=r.length;i<a;i++)r[i].apply(this,n)}return this}static mixin(e){["on","once","off","emit"].forEach(n=>{const r=Object.getOwnPropertyDescriptor(Lv.prototype,n);Object.defineProperty(e.prototype,n,r)})}dispose(){return super.dispose(),this._events=void 0,this}}class JN extends Lv{constructor(){super(...arguments),this.isOffline=!1}toJSON(){return{}}}class Mv extends JN{constructor(){super(),this.name="Context",this._constants=new Map,this._timeouts=new Cs,this._timeoutIds=0,this._initialized=!1,this.isOffline=!1,this._workletModules=new Map;const e=Ve(Mv.getDefaults(),arguments,["context"]);e.context?this._context=e.context:this._context=LX({latencyHint:e.latencyHint}),this._ticker=new $X(this.emit.bind(this,"tick"),e.clockSource,e.updateInterval),this.on("tick",this._timeoutLoop.bind(this)),this._context.onstatechange=()=>{this.emit("statechange",this.state)},this._setLatencyHint(e.latencyHint),this.lookAhead=e.lookAhead}static getDefaults(){return{clockSource:"worker",latencyHint:"interactive",lookAhead:.1,updateInterval:.05}}initialize(){return this._initialized||(UX(this),this._initialized=!0),this}createAnalyser(){return this._context.createAnalyser()}createOscillator(){return this._context.createOscillator()}createBufferSource(){return this._context.createBufferSource()}createBiquadFilter(){return this._context.createBiquadFilter()}createBuffer(e,n,r){return this._context.createBuffer(e,n,r)}createChannelMerger(e){return this._context.createChannelMerger(e)}createChannelSplitter(e){return this._context.createChannelSplitter(e)}createConstantSource(){return this._context.createConstantSource()}createConvolver(){return this._context.createConvolver()}createDelay(e){return this._context.createDelay(e)}createDynamicsCompressor(){return this._context.createDynamicsCompressor()}createGain(){return this._context.createGain()}createIIRFilter(e,n){return this._context.createIIRFilter(e,n)}createPanner(){return this._context.createPanner()}createPeriodicWave(e,n,r){return this._context.createPeriodicWave(e,n,r)}createStereoPanner(){return this._context.createStereoPanner()}createWaveShaper(){return this._context.createWaveShaper()}createMediaStreamSource(e){return At(nh(this._context),"Not available if OfflineAudioContext"),this._context.createMediaStreamSource(e)}createMediaElementSource(e){return At(nh(this._context),"Not available if OfflineAudioContext"),this._context.createMediaElementSource(e)}createMediaStreamDestination(){return At(nh(this._context),"Not available if OfflineAudioContext"),this._context.createMediaStreamDestination()}decodeAudioData(e){return this._context.decodeAudioData(e)}get currentTime(){return this._context.currentTime}get state(){return this._context.state}get sampleRate(){return this._context.sampleRate}get listener(){return this.initialize(),this._listener}set listener(e){At(!this._initialized,"The listener cannot be set after initialization."),this._listener=e}get transport(){return this.initialize(),this._transport}set transport(e){At(!this._initialized,"The transport cannot be set after initialization."),this._transport=e}get draw(){return this.initialize(),this._draw}set draw(e){At(!this._initialized,"Draw cannot be set after initialization."),this._draw=e}get destination(){return this.initialize(),this._destination}set destination(e){At(!this._initialized,"The destination cannot be set after initialization."),this._destination=e}createAudioWorkletNode(e,n){return FX(this.rawContext,e,n)}addAudioWorkletModule(e,n){return dn(this,void 0,void 0,function*(){At(Ft(this.rawContext.audioWorklet),"AudioWorkletNode is only available in a secure context (https or localhost)"),this._workletModules.has(n)||this._workletModules.set(n,this.rawContext.audioWorklet.addModule(e)),yield this._workletModules.get(n)})}workletsAreReady(){return dn(this,void 0,void 0,function*(){const e=[];this._workletModules.forEach(n=>e.push(n)),yield Promise.all(e)})}get updateInterval(){return this._ticker.updateInterval}set updateInterval(e){this._ticker.updateInterval=e}get clockSource(){return this._ticker.type}set clockSource(e){this._ticker.type=e}get latencyHint(){return this._latencyHint}_setLatencyHint(e){let n=0;if(this._latencyHint=e,gs(e))switch(e){case"interactive":n=.1;break;case"playback":n=.5;break;case"balanced":n=.25;break}this.lookAhead=n,this.updateInterval=n/2}get rawContext(){return this._context}now(){return this._context.currentTime+this.lookAhead}immediate(){return this._context.currentTime}resume(){return nh(this._context)?this._context.resume():Promise.resolve()}close(){return dn(this,void 0,void 0,function*(){nh(this._context)&&(yield this._context.close()),this._initialized&&WX(this)})}getConstant(e){if(this._constants.has(e))return this._constants.get(e);{const n=this._context.createBuffer(1,128,this._context.sampleRate),r=n.getChannelData(0);for(let a=0;a<r.length;a++)r[a]=e;const i=this._context.createBufferSource();return i.channelCount=1,i.channelCountMode="explicit",i.buffer=n,i.loop=!0,i.start(0),this._constants.set(e,i),i}}dispose(){return super.dispose(),this._ticker.dispose(),this._timeouts.dispose(),Object.keys(this._constants).map(e=>this._constants[e].disconnect()),this}_timeoutLoop(){const e=this.now();let n=this._timeouts.peek();for(;this._timeouts.length&&n&&n.time<=e;)n.callback(),this._timeouts.shift(),n=this._timeouts.peek()}setTimeout(e,n){this._timeoutIds++;const r=this.now();return this._timeouts.add({callback:e,id:this._timeoutIds,time:r+n}),this._timeoutIds}clearTimeout(e){return this._timeouts.forEach(n=>{n.id===e&&this._timeouts.remove(n)}),this}clearInterval(e){return this.clearTimeout(e)}setInterval(e,n){const r=++this._timeoutIds,i=()=>{const a=this.now();this._timeouts.add({callback:()=>{e(),i()},id:r,time:a+n})};return i(),r}}class VX extends JN{constructor(){super(...arguments),this.lookAhead=0,this.latencyHint=0,this.isOffline=!1}createAnalyser(){return{}}createOscillator(){return{}}createBufferSource(){return{}}createBiquadFilter(){return{}}createBuffer(e,n,r){return{}}createChannelMerger(e){return{}}createChannelSplitter(e){return{}}createConstantSource(){return{}}createConvolver(){return{}}createDelay(e){return{}}createDynamicsCompressor(){return{}}createGain(){return{}}createIIRFilter(e,n){return{}}createPanner(){return{}}createPeriodicWave(e,n,r){return{}}createStereoPanner(){return{}}createWaveShaper(){return{}}createMediaStreamSource(e){return{}}createMediaElementSource(e){return{}}createMediaStreamDestination(){return{}}decodeAudioData(e){return Promise.resolve({})}createAudioWorkletNode(e,n){return{}}get rawContext(){return{}}addAudioWorkletModule(e,n){return dn(this,void 0,void 0,function*(){return Promise.resolve()})}resume(){return Promise.resolve()}setTimeout(e,n){return 0}clearTimeout(e){return this}setInterval(e,n){return 0}clearInterval(e){return this}getConstant(e){return{}}get currentTime(){return 0}get state(){return{}}get sampleRate(){return 0}get listener(){return{}}get transport(){return{}}get draw(){return{}}set draw(e){}get destination(){return{}}set destination(e){}now(){return 0}immediate(){return 0}}function In(t,e){Ea(e)?e.forEach(n=>In(t,n)):Object.defineProperty(t,e,{enumerable:!0,writable:!1})}function eP(t,e){Ea(e)?e.forEach(n=>eP(t,n)):Object.defineProperty(t,e,{writable:!0})}const an=()=>{};class fn extends wl{constructor(){super(),this.name="ToneAudioBuffer",this.onload=an;const e=Ve(fn.getDefaults(),arguments,["url","onload","onerror"]);this.reverse=e.reverse,this.onload=e.onload,e.url&&XN(e.url)||e.url instanceof fn?this.set(e.url):gs(e.url)&&this.load(e.url).catch(e.onerror)}static getDefaults(){return{onerror:an,onload:an,reverse:!1}}get sampleRate(){return this._buffer?this._buffer.sampleRate:Wo().sampleRate}set(e){return e instanceof fn?e.loaded?this._buffer=e.get():e.onload=()=>{this.set(e),this.onload(this)}:this._buffer=e,this._reversed&&this._reverse(),this}get(){return this._buffer}load(e){return dn(this,void 0,void 0,function*(){const n=fn.load(e).then(r=>{this.set(r),this.onload(this)});fn.downloads.push(n);try{yield n}finally{const r=fn.downloads.indexOf(n);fn.downloads.splice(r,1)}return this})}dispose(){return super.dispose(),this._buffer=void 0,this}fromArray(e){const n=Ea(e)&&e[0].length>0,r=n?e.length:1,i=n?e[0].length:e.length,a=Wo(),u=a.createBuffer(r,i,a.sampleRate),c=!n&&r===1?[e]:e;for(let f=0;f<r;f++)u.copyToChannel(c[f],f);return this._buffer=u,this}toMono(e){if(hf(e))this.fromArray(this.toArray(e));else{let n=new Float32Array(this.length);const r=this.numberOfChannels;for(let i=0;i<r;i++){const a=this.toArray(i);for(let u=0;u<a.length;u++)n[u]+=a[u]}n=n.map(i=>i/r),this.fromArray(n)}return this}toArray(e){if(hf(e))return this.getChannelData(e);if(this.numberOfChannels===1)return this.toArray(0);{const n=[];for(let r=0;r<this.numberOfChannels;r++)n[r]=this.getChannelData(r);return n}}getChannelData(e){return this._buffer?this._buffer.getChannelData(e):new Float32Array(0)}slice(e,n=this.duration){const r=Math.floor(e*this.sampleRate),i=Math.floor(n*this.sampleRate);At(r<i,"The start time must be less than the end time");const a=i-r,u=Wo().createBuffer(this.numberOfChannels,a,this.sampleRate);for(let c=0;c<this.numberOfChannels;c++)u.copyToChannel(this.getChannelData(c).subarray(r,i),c);return new fn(u)}_reverse(){if(this.loaded)for(let e=0;e<this.numberOfChannels;e++)this.getChannelData(e).reverse();return this}get loaded(){return this.length>0}get duration(){return this._buffer?this._buffer.duration:0}get length(){return this._buffer?this._buffer.length:0}get numberOfChannels(){return this._buffer?this._buffer.numberOfChannels:0}get reverse(){return this._reversed}set reverse(e){this._reversed!==e&&(this._reversed=e,this._reverse())}static fromArray(e){return new fn().fromArray(e)}static fromUrl(e){return dn(this,void 0,void 0,function*(){return yield new fn().load(e)})}static load(e){return dn(this,void 0,void 0,function*(){const n=e.match(/\[([^\]\[]+\|.+)\]$/);if(n){const c=n[1].split("|");let f=c[0];for(const p of c)if(fn.supportsType(p)){f=p;break}e=e.replace(n[0],f)}const r=fn.baseUrl===""||fn.baseUrl.endsWith("/")?fn.baseUrl:fn.baseUrl+"/",i=yield fetch(r+e);if(!i.ok)throw new Error(`could not load url: ${e}`);const a=yield i.arrayBuffer();return yield Wo().decodeAudioData(a)})}static supportsType(e){const n=e.split("."),r=n[n.length-1];return document.createElement("audio").canPlayType("audio/"+r)!==""}static loaded(){return dn(this,void 0,void 0,function*(){for(yield Promise.resolve();fn.downloads.length;)yield fn.downloads[0]})}}fn.baseUrl="";fn.downloads=[];class jb extends Mv{constructor(){super({clockSource:"offline",context:J0(arguments[0])?arguments[0]:MX(arguments[0],arguments[1]*arguments[2],arguments[2]),lookAhead:0,updateInterval:J0(arguments[0])?128/arguments[0].sampleRate:128/arguments[2]}),this.name="OfflineContext",this._currentTime=0,this.isOffline=!0,this._duration=J0(arguments[0])?arguments[0].length/arguments[0].sampleRate:arguments[1]}now(){return this._currentTime}get currentTime(){return this._currentTime}_renderClock(e){return dn(this,void 0,void 0,function*(){let n=0;for(;this._duration-this._currentTime>=0;){this.emit("tick"),this._currentTime+=128/this.sampleRate,n++;const r=Math.floor(this.sampleRate/128);e&&n%r===0&&(yield new Promise(i=>setTimeout(i,1)))}})}render(e=!0){return dn(this,void 0,void 0,function*(){yield this.workletsAreReady(),yield this._renderClock(e);const n=yield this._context.startRendering();return new fn(n)})}close(){return Promise.resolve()}}const tP=new VX;let Mm=tP;function Wo(){return Mm===tP&&IX&&GX(new Mv),Mm}function GX(t){nh(t)?Mm=new Mv(t):J0(t)?Mm=new jb(t):Mm=t}if(Yc&&!Yc.TONE_SILENCE_LOGGING){const e=` * Tone.js v${eN} * `;console.log(`%c${e}`,"background: #000; color: #fff")}function BX(t){return Math.pow(10,t/20)}function KX(t){return 20*(Math.log(t)/Math.LN10)}function nP(t){return Math.pow(2,t/12)}let b_=440;function XX(){return b_}function YX(t){b_=t}function fC(t){return Math.round(rP(t))}function rP(t){return 69+12*Math.log2(t/b_)}function QX(t){return b_*Math.pow(2,(t-69)/12)}class zb extends wl{constructor(e,n,r){super(),this.defaultUnits="s",this._val=n,this._units=r,this.context=e,this._expressions=this._getExpressions()}_getExpressions(){return{hz:{method:e=>this._frequencyToUnits(parseFloat(e)),regexp:/^(\d+(?:\.\d+)?)hz$/i},i:{method:e=>this._ticksToUnits(parseInt(e,10)),regexp:/^(\d+)i$/i},m:{method:e=>this._beatsToUnits(parseInt(e,10)*this._getTimeSignature()),regexp:/^(\d+)m$/i},n:{method:(e,n)=>{const r=parseInt(e,10),i=n==="."?1.5:1;return r===1?this._beatsToUnits(this._getTimeSignature())*i:this._beatsToUnits(4/r)*i},regexp:/^(\d+)n(\.?)$/i},number:{method:e=>this._expressions[this.defaultUnits].method.call(this,e),regexp:/^(\d+(?:\.\d+)?)$/},s:{method:e=>this._secondsToUnits(parseFloat(e)),regexp:/^(\d+(?:\.\d+)?)s$/},samples:{method:e=>parseInt(e,10)/this.context.sampleRate,regexp:/^(\d+)samples$/},t:{method:e=>{const n=parseInt(e,10);return this._beatsToUnits(8/(Math.floor(n)*3))},regexp:/^(\d+)t$/i},tr:{method:(e,n,r)=>{let i=0;return e&&e!=="0"&&(i+=this._beatsToUnits(this._getTimeSignature()*parseFloat(e))),n&&n!=="0"&&(i+=this._beatsToUnits(parseFloat(n))),r&&r!=="0"&&(i+=this._beatsToUnits(parseFloat(r)/4)),i},regexp:/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?):?(\d+(?:\.\d+)?)?$/}}}valueOf(){if(this._val instanceof zb&&this.fromType(this._val),Bo(this._val))return this._noArg();if(gs(this._val)&&Bo(this._units)){for(const e in this._expressions)if(this._expressions[e].regexp.test(this._val.trim())){this._units=e;break}}else if(Xc(this._val)){let e=0;for(const n in this._val)if(Ft(this._val[n])){const r=this._val[n],i=new this.constructor(this.context,n).valueOf()*r;e+=i}return e}if(Ft(this._units)){const e=this._expressions[this._units],n=this._val.toString().trim().match(e.regexp);return n?e.method.apply(this,n.slice(1)):e.method.call(this,this._val)}else return gs(this._val)?parseFloat(this._val):this._val}_frequencyToUnits(e){return 1/e}_beatsToUnits(e){return 60/this._getBpm()*e}_secondsToUnits(e){return e}_ticksToUnits(e){return e*this._beatsToUnits(1)/this._getPPQ()}_noArg(){return this._now()}_getBpm(){return this.context.transport.bpm.value}_getTimeSignature(){return this.context.transport.timeSignature}_getPPQ(){return this.context.transport.PPQ}fromType(e){switch(this._units=void 0,this.defaultUnits){case"s":this._val=e.toSeconds();break;case"i":this._val=e.toTicks();break;case"hz":this._val=e.toFrequency();break;case"midi":this._val=e.toMidi();break}return this}toFrequency(){return 1/this.toSeconds()}toSamples(){return this.toSeconds()*this.context.sampleRate}toMilliseconds(){return this.toSeconds()*1e3}}class Sa extends zb{constructor(){super(...arguments),this.name="TimeClass"}_getExpressions(){return Object.assign(super._getExpressions(),{now:{method:e=>this._now()+new this.constructor(this.context,e).valueOf(),regexp:/^\+(.+)/},quantize:{method:e=>{const n=new Sa(this.context,e).valueOf();return this._secondsToUnits(this.context.transport.nextSubdivision(n))},regexp:/^@(.+)/}})}quantize(e,n=1){const r=new this.constructor(this.context,e).valueOf(),i=this.valueOf(),c=Math.round(i/r)*r-i;return i+c*n}toNotation(){const e=this.toSeconds(),n=["1m"];for(let a=1;a<9;a++){const u=Math.pow(2,a);n.push(u+"n."),n.push(u+"n"),n.push(u+"t")}n.push("0");let r=n[0],i=new Sa(this.context,n[0]).toSeconds();return n.forEach(a=>{const u=new Sa(this.context,a).toSeconds();Math.abs(u-e)<Math.abs(i-e)&&(r=a,i=u)}),r}toBarsBeatsSixteenths(){const e=this._beatsToUnits(1);let n=this.valueOf()/e;n=parseFloat(n.toFixed(4));const r=Math.floor(n/this._getTimeSignature());let i=n%1*4;n=Math.floor(n)%this._getTimeSignature();const a=i.toString();return a.length>3&&(i=parseFloat(parseFloat(a).toFixed(3))),[r,n,i].join(":")}toTicks(){const e=this._beatsToUnits(1),n=this.valueOf()/e;return Math.round(n*this._getPPQ())}toSeconds(){return this.valueOf()}toMidi(){return fC(this.toFrequency())}_now(){return this.context.now()}}class Vo extends Sa{constructor(){super(...arguments),this.name="Frequency",this.defaultUnits="hz"}static get A4(){return XX()}static set A4(e){YX(e)}_getExpressions(){return Object.assign({},super._getExpressions(),{midi:{regexp:/^(\d+(?:\.\d+)?midi)/,method(e){return this.defaultUnits==="midi"?e:Vo.mtof(e)}},note:{regexp:/^([a-g]{1}(?:b|#|x|bb)?)(-?[0-9]+)/i,method(e,n){const i=ZX[e.toLowerCase()]+(parseInt(n,10)+1)*12;return this.defaultUnits==="midi"?i:Vo.mtof(i)}},tr:{regexp:/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?):?(\d+(?:\.\d+)?)?/,method(e,n,r){let i=1;return e&&e!=="0"&&(i*=this._beatsToUnits(this._getTimeSignature()*parseFloat(e))),n&&n!=="0"&&(i*=this._beatsToUnits(parseFloat(n))),r&&r!=="0"&&(i*=this._beatsToUnits(parseFloat(r)/4)),i}}})}transpose(e){return new Vo(this.context,this.valueOf()*nP(e))}harmonize(e){return e.map(n=>this.transpose(n))}toMidi(){return fC(this.valueOf())}toNote(){const e=this.toFrequency(),n=Math.log2(e/Vo.A4);let r=Math.round(12*n)+57;const i=Math.floor(r/12);return i<0&&(r+=-12*i),JX[r%12]+i.toString()}toSeconds(){return 1/super.toSeconds()}toTicks(){const e=this._beatsToUnits(1),n=this.valueOf()/e;return Math.floor(n*this._getPPQ())}_noArg(){return 0}_frequencyToUnits(e){return e}_ticksToUnits(e){return 1/(e*60/(this._getBpm()*this._getPPQ()))}_beatsToUnits(e){return 1/super._beatsToUnits(e)}_secondsToUnits(e){return 1/e}static mtof(e){return QX(e)}static ftom(e){return fC(e)}}const ZX={cbb:-2,cb:-1,c:0,"c#":1,cx:2,dbb:0,db:1,d:2,"d#":3,dx:4,ebb:2,eb:3,e:4,"e#":5,ex:6,fbb:3,fb:4,f:5,"f#":6,fx:7,gbb:5,gb:6,g:7,"g#":8,gx:9,abb:7,ab:8,a:9,"a#":10,ax:11,bbb:9,bb:10,b:11,"b#":12,bx:13},JX=["C","C#","D","D#","E","F","F#","G","G#","A","A#","B"];class Im extends Sa{constructor(){super(...arguments),this.name="TransportTime"}_now(){return this.context.transport.seconds}}class Ji extends wl{constructor(){super();const e=Ve(Ji.getDefaults(),arguments,["context"]);this.defaultContext?this.context=this.defaultContext:this.context=e.context}static getDefaults(){return{context:Wo()}}now(){return this.context.currentTime+this.context.lookAhead}immediate(){return this.context.currentTime}get sampleTime(){return 1/this.context.sampleRate}get blockTime(){return 128/this.context.sampleRate}toSeconds(e){return new Sa(this.context,e).toSeconds()}toFrequency(e){return new Vo(this.context,e).toFrequency()}toTicks(e){return new Im(this.context,e).toTicks()}_getPartialProperties(e){const n=this.get();return Object.keys(n).forEach(r=>{Bo(e[r])&&delete n[r]}),n}get(){const e=HX(this);return Object.keys(e).forEach(n=>{if(Reflect.has(this,n)){const r=this[n];Ft(r)&&Ft(r.value)&&Ft(r.setValueAtTime)?e[n]=r.value:r instanceof Ji?e[n]=r._getPartialProperties(e[n]):Ea(r)||hf(r)||gs(r)||DX(r)?e[n]=r:delete e[n]}}),e}set(e){return Object.keys(e).forEach(n=>{Reflect.has(this,n)&&Ft(this[n])&&(this[n]&&Ft(this[n].value)&&Ft(this[n].setValueAtTime)?this[n].value!==e[n]&&(this[n].value=e[n]):this[n]instanceof Ji?this[n].set(e[n]):this[n]=e[n])}),this}}class Hb extends Cs{constructor(e="stopped"){super(),this.name="StateTimeline",this._initial=e,this.setStateAtTime(this._initial,0)}getValueAtTime(e){const n=this.get(e);return n!==null?n.state:this._initial}setStateAtTime(e,n,r){return gu(n,0),this.add(Object.assign({},r,{state:e,time:n})),this}getLastState(e,n){const r=this._search(n);for(let i=r;i>=0;i--){const a=this._timeline[i];if(a.state===e)return a}}getNextState(e,n){const r=this._search(n);if(r!==-1)for(let i=r;i<this._timeline.length;i++){const a=this._timeline[i];if(a.state===e)return a}}}class xn extends Ji{constructor(){super(Ve(xn.getDefaults(),arguments,["param","units","convert"])),this.name="Param",this.overridden=!1,this._minOutput=1e-7;const e=Ve(xn.getDefaults(),arguments,["param","units","convert"]);for(At(Ft(e.param)&&(pf(e.param)||e.param instanceof xn),"param must be an AudioParam");!pf(e.param);)e.param=e.param._param;this._swappable=Ft(e.swappable)?e.swappable:!1,this._swappable?(this.input=this.context.createGain(),this._param=e.param,this.input.connect(this._param)):this._param=this.input=e.param,this._events=new Cs(1e3),this._initialValue=this._param.defaultValue,this.units=e.units,this.convert=e.convert,this._minValue=e.minValue,this._maxValue=e.maxValue,Ft(e.value)&&e.value!==this._toType(this._initialValue)&&this.setValueAtTime(e.value,0)}static getDefaults(){return Object.assign(Ji.getDefaults(),{convert:!0,units:"number"})}get value(){const e=this.now();return this.getValueAtTime(e)}set value(e){this.cancelScheduledValues(this.now()),this.setValueAtTime(e,this.now())}get minValue(){return Ft(this._minValue)?this._minValue:this.units==="time"||this.units==="frequency"||this.units==="normalRange"||this.units==="positive"||this.units==="transportTime"||this.units==="ticks"||this.units==="bpm"||this.units==="hertz"||this.units==="samples"?0:this.units==="audioRange"?-1:this.units==="decibels"?-1/0:this._param.minValue}get maxValue(){return Ft(this._maxValue)?this._maxValue:this.units==="normalRange"||this.units==="audioRange"?1:this._param.maxValue}_is(e,n){return this.units===n}_assertRange(e){return Ft(this.maxValue)&&Ft(this.minValue)&&gu(e,this._fromType(this.minValue),this._fromType(this.maxValue)),e}_fromType(e){return this.convert&&!this.overridden?this._is(e,"time")?this.toSeconds(e):this._is(e,"decibels")?BX(e):this._is(e,"frequency")?this.toFrequency(e):e:this.overridden?0:e}_toType(e){return this.convert&&this.units==="decibels"?KX(e):e}setValueAtTime(e,n){const r=this.toSeconds(n),i=this._fromType(e);return At(isFinite(i)&&isFinite(r),`Invalid argument(s) to setValueAtTime: ${JSON.stringify(e)}, ${JSON.stringify(n)}`),this._assertRange(i),this.log(this.units,"setValueAtTime",e,r),this._events.add({time:r,type:"setValueAtTime",value:i}),this._param.setValueAtTime(i,r),this}getValueAtTime(e){const n=Math.max(this.toSeconds(e),0),r=this._events.getAfter(n),i=this._events.get(n);let a=this._initialValue;if(i===null)a=this._initialValue;else if(i.type==="setTargetAtTime"&&(r===null||r.type==="setValueAtTime")){const u=this._events.getBefore(i.time);let c;u===null?c=this._initialValue:c=u.value,i.type==="setTargetAtTime"&&(a=this._exponentialApproach(i.time,c,i.value,i.constant,n))}else if(r===null)a=i.value;else if(r.type==="linearRampToValueAtTime"||r.type==="exponentialRampToValueAtTime"){let u=i.value;if(i.type==="setTargetAtTime"){const c=this._events.getBefore(i.time);c===null?u=this._initialValue:u=c.value}r.type==="linearRampToValueAtTime"?a=this._linearInterpolate(i.time,u,r.time,r.value,n):a=this._exponentialInterpolate(i.time,u,r.time,r.value,n)}else a=i.value;return this._toType(a)}setRampPoint(e){e=this.toSeconds(e);let n=this.getValueAtTime(e);return this.cancelAndHoldAtTime(e),this._fromType(n)===0&&(n=this._toType(this._minOutput)),this.setValueAtTime(n,e),this}linearRampToValueAtTime(e,n){const r=this._fromType(e),i=this.toSeconds(n);return At(isFinite(r)&&isFinite(i),`Invalid argument(s) to linearRampToValueAtTime: ${JSON.stringify(e)}, ${JSON.stringify(n)}`),this._assertRange(r),this._events.add({time:i,type:"linearRampToValueAtTime",value:r}),this.log(this.units,"linearRampToValueAtTime",e,i),this._param.linearRampToValueAtTime(r,i),this}exponentialRampToValueAtTime(e,n){let r=this._fromType(e);r=wa(r,0)?this._minOutput:r,this._assertRange(r);const i=this.toSeconds(n);return At(isFinite(r)&&isFinite(i),`Invalid argument(s) to exponentialRampToValueAtTime: ${JSON.stringify(e)}, ${JSON.stringify(n)}`),this._events.add({time:i,type:"exponentialRampToValueAtTime",value:r}),this.log(this.units,"exponentialRampToValueAtTime",e,i),this._param.exponentialRampToValueAtTime(r,i),this}exponentialRampTo(e,n,r){return r=this.toSeconds(r),this.setRampPoint(r),this.exponentialRampToValueAtTime(e,r+this.toSeconds(n)),this}linearRampTo(e,n,r){return r=this.toSeconds(r),this.setRampPoint(r),this.linearRampToValueAtTime(e,r+this.toSeconds(n)),this}targetRampTo(e,n,r){return r=this.toSeconds(r),this.setRampPoint(r),this.exponentialApproachValueAtTime(e,r,n),this}exponentialApproachValueAtTime(e,n,r){n=this.toSeconds(n),r=this.toSeconds(r);const i=Math.log(r+1)/Math.log(200);return this.setTargetAtTime(e,n,i),this.cancelAndHoldAtTime(n+r*.9),this.linearRampToValueAtTime(e,n+r),this}setTargetAtTime(e,n,r){const i=this._fromType(e);At(isFinite(r)&&r>0,"timeConstant must be a number greater than 0");const a=this.toSeconds(n);return this._assertRange(i),At(isFinite(i)&&isFinite(a),`Invalid argument(s) to setTargetAtTime: ${JSON.stringify(e)}, ${JSON.stringify(n)}`),this._events.add({constant:r,time:a,type:"setTargetAtTime",value:i}),this.log(this.units,"setTargetAtTime",e,a,r),this._param.setTargetAtTime(i,a,r),this}setValueCurveAtTime(e,n,r,i=1){r=this.toSeconds(r),n=this.toSeconds(n);const a=this._fromType(e[0])*i;this.setValueAtTime(this._toType(a),n);const u=r/(e.length-1);for(let c=1;c<e.length;c++){const f=this._fromType(e[c])*i;this.linearRampToValueAtTime(this._toType(f),n+c*u)}return this}cancelScheduledValues(e){const n=this.toSeconds(e);return At(isFinite(n),`Invalid argument to cancelScheduledValues: ${JSON.stringify(e)}`),this._events.cancel(n),this._param.cancelScheduledValues(n),this.log(this.units,"cancelScheduledValues",n),this}cancelAndHoldAtTime(e){const n=this.toSeconds(e),r=this._fromType(this.getValueAtTime(n));At(isFinite(n),`Invalid argument to cancelAndHoldAtTime: ${JSON.stringify(e)}`),this.log(this.units,"cancelAndHoldAtTime",n,"value="+r);const i=this._events.get(n),a=this._events.getAfter(n);return i&&wa(i.time,n)?a?(this._param.cancelScheduledValues(a.time),this._events.cancel(a.time)):(this._param.cancelAndHoldAtTime(n),this._events.cancel(n+this.sampleTime)):a&&(this._param.cancelScheduledValues(a.time),this._events.cancel(a.time),a.type==="linearRampToValueAtTime"?this.linearRampToValueAtTime(this._toType(r),n):a.type==="exponentialRampToValueAtTime"&&this.exponentialRampToValueAtTime(this._toType(r),n)),this._events.add({time:n,type:"setValueAtTime",value:r}),this._param.setValueAtTime(r,n),this}rampTo(e,n=.1,r){return this.units==="frequency"||this.units==="bpm"||this.units==="decibels"?this.exponentialRampTo(e,n,r):this.linearRampTo(e,n,r),this}apply(e){const n=this.context.currentTime;e.setValueAtTime(this.getValueAtTime(n),n);const r=this._events.get(n);if(r&&r.type==="setTargetAtTime"){const i=this._events.getAfter(r.time),a=i?i.time:n+2,u=(a-n)/10;for(let c=n;c<a;c+=u)e.linearRampToValueAtTime(this.getValueAtTime(c),c)}return this._events.forEachAfter(this.context.currentTime,i=>{i.type==="cancelScheduledValues"?e.cancelScheduledValues(i.time):i.type==="setTargetAtTime"?e.setTargetAtTime(i.value,i.time,i.constant):e[i.type](i.value,i.time)}),this}setParam(e){At(this._swappable,"The Param must be assigned as 'swappable' in the constructor");const n=this.input;return n.disconnect(this._param),this.apply(e),this._param=e,n.connect(this._param),this}dispose(){return super.dispose(),this._events.dispose(),this}get defaultValue(){return this._toType(this._param.defaultValue)}_exponentialApproach(e,n,r,i,a){return r+(n-r)*Math.exp(-(a-e)/i)}_linearInterpolate(e,n,r,i,a){return n+(i-n)*((a-e)/(r-e))}_exponentialInterpolate(e,n,r,i,a){return n*Math.pow(i/n,(a-e)/(r-e))}}class Lt extends Ji{constructor(){super(...arguments),this.name="ToneAudioNode",this._internalChannels=[]}get numberOfInputs(){return Ft(this.input)?pf(this.input)||this.input instanceof xn?1:this.input.numberOfInputs:0}get numberOfOutputs(){return Ft(this.output)?this.output.numberOfOutputs:0}_isAudioNode(e){return Ft(e)&&(e instanceof Lt||mu(e))}_getInternalNodes(){const e=this._internalChannels.slice(0);return this._isAudioNode(this.input)&&e.push(this.input),this._isAudioNode(this.output)&&this.input!==this.output&&e.push(this.output),e}_setChannelProperties(e){this._getInternalNodes().forEach(r=>{r.channelCount=e.channelCount,r.channelCountMode=e.channelCountMode,r.channelInterpretation=e.channelInterpretation})}_getChannelProperties(){const e=this._getInternalNodes();At(e.length>0,"ToneAudioNode does not have any internal nodes");const n=e[0];return{channelCount:n.channelCount,channelCountMode:n.channelCountMode,channelInterpretation:n.channelInterpretation}}get channelCount(){return this._getChannelProperties().channelCount}set channelCount(e){const n=this._getChannelProperties();this._setChannelProperties(Object.assign(n,{channelCount:e}))}get channelCountMode(){return this._getChannelProperties().channelCountMode}set channelCountMode(e){const n=this._getChannelProperties();this._setChannelProperties(Object.assign(n,{channelCountMode:e}))}get channelInterpretation(){return this._getChannelProperties().channelInterpretation}set channelInterpretation(e){const n=this._getChannelProperties();this._setChannelProperties(Object.assign(n,{channelInterpretation:e}))}connect(e,n=0,r=0){return Bh(this,e,n,r),this}toDestination(){return this.connect(this.context.destination),this}toMaster(){return KN("toMaster() has been renamed toDestination()"),this.toDestination()}disconnect(e,n=0,r=0){return eY(this,e,n,r),this}chain(...e){return dC(this,...e),this}fan(...e){return e.forEach(n=>this.connect(n)),this}dispose(){return super.dispose(),Ft(this.input)&&(this.input instanceof Lt?this.input.dispose():mu(this.input)&&this.input.disconnect()),Ft(this.output)&&(this.output instanceof Lt?this.output.dispose():mu(this.output)&&this.output.disconnect()),this._internalChannels=[],this}}function dC(...t){const e=t.shift();t.reduce((n,r)=>(n instanceof Lt?n.connect(r):mu(n)&&Bh(n,r),r),e)}function Bh(t,e,n=0,r=0){for(At(Ft(t),"Cannot connect from undefined node"),At(Ft(e),"Cannot connect to undefined node"),(e instanceof Lt||mu(e))&&At(e.numberOfInputs>0,"Cannot connect to node with no inputs"),At(t.numberOfOutputs>0,"Cannot connect from node with no outputs");e instanceof Lt||e instanceof xn;)Ft(e.input)&&(e=e.input);for(;t instanceof Lt;)Ft(t.output)&&(t=t.output);pf(e)?t.connect(e,n):t.connect(e,n,r)}function eY(t,e,n=0,r=0){if(Ft(e))for(;e instanceof Lt;)e=e.input;for(;!mu(t);)Ft(t.output)&&(t=t.output);pf(e)?t.disconnect(e,n):mu(e)?t.disconnect(e,n,r):t.disconnect()}class Ti extends Lt{constructor(){super(Ve(Ti.getDefaults(),arguments,["gain","units"])),this.name="Gain",this._gainNode=this.context.createGain(),this.input=this._gainNode,this.output=this._gainNode;const e=Ve(Ti.getDefaults(),arguments,["gain","units"]);this.gain=new xn({context:this.context,convert:e.convert,param:this._gainNode.gain,units:e.units,value:e.gain,minValue:e.minValue,maxValue:e.maxValue}),In(this,"gain")}static getDefaults(){return Object.assign(Lt.getDefaults(),{convert:!0,gain:1,units:"gain"})}dispose(){return super.dispose(),this._gainNode.disconnect(),this.gain.dispose(),this}}class Ph extends Lt{constructor(e){super(e),this.onended=an,this._startTime=-1,this._stopTime=-1,this._timeout=-1,this.output=new Ti({context:this.context,gain:0}),this._gainNode=this.output,this.getStateAtTime=function(n){const r=this.toSeconds(n);return this._startTime!==-1&&r>=this._startTime&&(this._stopTime===-1||r<=this._stopTime)?"started":"stopped"},this._fadeIn=e.fadeIn,this._fadeOut=e.fadeOut,this._curve=e.curve,this.onended=e.onended}static getDefaults(){return Object.assign(Lt.getDefaults(),{curve:"linear",fadeIn:0,fadeOut:0,onended:an})}_startGain(e,n=1){At(this._startTime===-1,"Source cannot be started more than once");const r=this.toSeconds(this._fadeIn);return this._startTime=e+r,this._startTime=Math.max(this._startTime,this.context.currentTime),r>0?(this._gainNode.gain.setValueAtTime(0,e),this._curve==="linear"?this._gainNode.gain.linearRampToValueAtTime(n,e+r):this._gainNode.gain.exponentialApproachValueAtTime(n,e,r)):this._gainNode.gain.setValueAtTime(n,e),this}stop(e){return this.log("stop",e),this._stopGain(this.toSeconds(e)),this}_stopGain(e){At(this._startTime!==-1,"'start' must be called before 'stop'"),this.cancelStop();const n=this.toSeconds(this._fadeOut);return this._stopTime=this.toSeconds(e)+n,this._stopTime=Math.max(this._stopTime,this.context.currentTime),n>0?this._curve==="linear"?this._gainNode.gain.linearRampTo(0,n,e):this._gainNode.gain.targetRampTo(0,n,e):(this._gainNode.gain.cancelAndHoldAtTime(e),this._gainNode.gain.setValueAtTime(0,e)),this.context.clearTimeout(this._timeout),this._timeout=this.context.setTimeout(()=>{const r=this._curve==="exponential"?n*2:0;this._stopSource(this.now()+r),this._onended()},this._stopTime-this.context.currentTime),this}_onended(){if(this.onended!==an&&(this.onended(this),this.onended=an,!this.context.isOffline)){const e=()=>this.dispose();typeof window.requestIdleCallback<"u"?window.requestIdleCallback(e):setTimeout(e,1e3)}}get state(){return this.getStateAtTime(this.now())}cancelStop(){return this.log("cancelStop"),At(this._startTime!==-1,"Source is not started"),this._gainNode.gain.cancelScheduledValues(this._startTime+this.sampleTime),this.context.clearTimeout(this._timeout),this._stopTime=-1,this}dispose(){return super.dispose(),this._gainNode.disconnect(),this}}class Ny extends Ph{constructor(){super(Ve(Ny.getDefaults(),arguments,["offset"])),this.name="ToneConstantSource",this._source=this.context.createConstantSource();const e=Ve(Ny.getDefaults(),arguments,["offset"]);Bh(this._source,this._gainNode),this.offset=new xn({context:this.context,convert:e.convert,param:this._source.offset,units:e.units,value:e.offset,minValue:e.minValue,maxValue:e.maxValue})}static getDefaults(){return Object.assign(Ph.getDefaults(),{convert:!0,offset:1,units:"number"})}start(e){const n=this.toSeconds(e);return this.log("start",n),this._startGain(n),this._source.start(n),this}_stopSource(e){this._source.stop(e)}dispose(){return super.dispose(),this.state==="started"&&this.stop(),this._source.disconnect(),this.offset.dispose(),this}}class Cr extends Lt{constructor(){super(Ve(Cr.getDefaults(),arguments,["value","units"])),this.name="Signal",this.override=!0;const e=Ve(Cr.getDefaults(),arguments,["value","units"]);this.output=this._constantSource=new Ny({context:this.context,convert:e.convert,offset:e.value,units:e.units,minValue:e.minValue,maxValue:e.maxValue}),this._constantSource.start(0),this.input=this._param=this._constantSource.offset}static getDefaults(){return Object.assign(Lt.getDefaults(),{convert:!0,units:"number",value:0})}connect(e,n=0,r=0){return qb(this,e,n,r),this}dispose(){return super.dispose(),this._param.dispose(),this._constantSource.dispose(),this}setValueAtTime(e,n){return this._param.setValueAtTime(e,n),this}getValueAtTime(e){return this._param.getValueAtTime(e)}setRampPoint(e){return this._param.setRampPoint(e),this}linearRampToValueAtTime(e,n){return this._param.linearRampToValueAtTime(e,n),this}exponentialRampToValueAtTime(e,n){return this._param.exponentialRampToValueAtTime(e,n),this}exponentialRampTo(e,n,r){return this._param.exponentialRampTo(e,n,r),this}linearRampTo(e,n,r){return this._param.linearRampTo(e,n,r),this}targetRampTo(e,n,r){return this._param.targetRampTo(e,n,r),this}exponentialApproachValueAtTime(e,n,r){return this._param.exponentialApproachValueAtTime(e,n,r),this}setTargetAtTime(e,n,r){return this._param.setTargetAtTime(e,n,r),this}setValueCurveAtTime(e,n,r,i){return this._param.setValueCurveAtTime(e,n,r,i),this}cancelScheduledValues(e){return this._param.cancelScheduledValues(e),this}cancelAndHoldAtTime(e){return this._param.cancelAndHoldAtTime(e),this}rampTo(e,n,r){return this._param.rampTo(e,n,r),this}get value(){return this._param.value}set value(e){this._param.value=e}get convert(){return this._param.convert}set convert(e){this._param.convert=e}get units(){return this._param.units}get overridden(){return this._param.overridden}set overridden(e){this._param.overridden=e}get maxValue(){return this._param.maxValue}get minValue(){return this._param.minValue}apply(e){return this._param.apply(e),this}}function qb(t,e,n,r){(e instanceof xn||pf(e)||e instanceof Cr&&e.override)&&(e.cancelScheduledValues(0),e.setValueAtTime(0,0),e instanceof Cr&&(e.overridden=!0)),Bh(t,e,n,r)}class Py extends xn{constructor(){super(Ve(Py.getDefaults(),arguments,["value"])),this.name="TickParam",this._events=new Cs(1/0),this._multiplier=1;const e=Ve(Py.getDefaults(),arguments,["value"]);this._multiplier=e.multiplier,this._events.cancel(0),this._events.add({ticks:0,time:0,type:"setValueAtTime",value:this._fromType(e.value)}),this.setValueAtTime(e.value,0)}static getDefaults(){return Object.assign(xn.getDefaults(),{multiplier:1,units:"hertz",value:1})}setTargetAtTime(e,n,r){n=this.toSeconds(n),this.setRampPoint(n);const i=this._fromType(e),a=this._events.get(n),u=Math.round(Math.max(1/r,1));for(let c=0;c<=u;c++){const f=r*c+n,p=this._exponentialApproach(a.time,a.value,i,r,f);this.linearRampToValueAtTime(this._toType(p),f)}return this}setValueAtTime(e,n){const r=this.toSeconds(n);super.setValueAtTime(e,n);const i=this._events.get(r),a=this._events.previousEvent(i),u=this._getTicksUntilEvent(a,r);return i.ticks=Math.max(u,0),this}linearRampToValueAtTime(e,n){const r=this.toSeconds(n);super.linearRampToValueAtTime(e,n);const i=this._events.get(r),a=this._events.previousEvent(i),u=this._getTicksUntilEvent(a,r);return i.ticks=Math.max(u,0),this}exponentialRampToValueAtTime(e,n){n=this.toSeconds(n);const r=this._fromType(e),i=this._events.get(n),a=Math.round(Math.max((n-i.time)*10,1)),u=(n-i.time)/a;for(let c=0;c<=a;c++){const f=u*c+i.time,p=this._exponentialInterpolate(i.time,i.value,n,r,f);this.linearRampToValueAtTime(this._toType(p),f)}return this}_getTicksUntilEvent(e,n){if(e===null)e={ticks:0,time:0,type:"setValueAtTime",value:0};else if(Bo(e.ticks)){const u=this._events.previousEvent(e);e.ticks=this._getTicksUntilEvent(u,e.time)}const r=this._fromType(this.getValueAtTime(e.time));let i=this._fromType(this.getValueAtTime(n));const a=this._events.get(n);return a&&a.time===n&&a.type==="setValueAtTime"&&(i=this._fromType(this.getValueAtTime(n-this.sampleTime))),.5*(n-e.time)*(r+i)+e.ticks}getTicksAtTime(e){const n=this.toSeconds(e),r=this._events.get(n);return Math.max(this._getTicksUntilEvent(r,n),0)}getDurationOfTicks(e,n){const r=this.toSeconds(n),i=this.getTicksAtTime(n);return this.getTimeOfTick(i+e)-r}getTimeOfTick(e){const n=this._events.get(e,"ticks"),r=this._events.getAfter(e,"ticks");if(n&&n.ticks===e)return n.time;if(n&&r&&r.type==="linearRampToValueAtTime"&&n.value!==r.value){const i=this._fromType(this.getValueAtTime(n.time)),u=(this._fromType(this.getValueAtTime(r.time))-i)/(r.time-n.time),c=Math.sqrt(Math.pow(i,2)-2*u*(n.ticks-e)),f=(-i+c)/u,p=(-i-c)/u;return(f>0?f:p)+n.time}else return n?n.value===0?1/0:n.time+(e-n.ticks)/n.value:e/this._initialValue}ticksToTime(e,n){return this.getDurationOfTicks(e,n)}timeToTicks(e,n){const r=this.toSeconds(n),i=this.toSeconds(e),a=this.getTicksAtTime(r);return this.getTicksAtTime(r+i)-a}_fromType(e){return this.units==="bpm"&&this.multiplier?1/(60/e/this.multiplier):super._fromType(e)}_toType(e){return this.units==="bpm"&&this.multiplier?e/this.multiplier*60:super._toType(e)}get multiplier(){return this._multiplier}set multiplier(e){const n=this.value;this._multiplier=e,this.cancelScheduledValues(0),this.setValueAtTime(n,0)}}class Dy extends Cr{constructor(){super(Ve(Dy.getDefaults(),arguments,["value"])),this.name="TickSignal";const e=Ve(Dy.getDefaults(),arguments,["value"]);this.input=this._param=new Py({context:this.context,convert:e.convert,multiplier:e.multiplier,param:this._constantSource.offset,units:e.units,value:e.value})}static getDefaults(){return Object.assign(Cr.getDefaults(),{multiplier:1,units:"hertz",value:1})}ticksToTime(e,n){return this._param.ticksToTime(e,n)}timeToTicks(e,n){return this._param.timeToTicks(e,n)}getTimeOfTick(e){return this._param.getTimeOfTick(e)}getDurationOfTicks(e,n){return this._param.getDurationOfTicks(e,n)}getTicksAtTime(e){return this._param.getTicksAtTime(e)}get multiplier(){return this._param.multiplier}set multiplier(e){this._param.multiplier=e}dispose(){return super.dispose(),this._param.dispose(),this}}class Ly extends Ji{constructor(){super(Ve(Ly.getDefaults(),arguments,["frequency"])),this.name="TickSource",this._state=new Hb,this._tickOffset=new Cs;const e=Ve(Ly.getDefaults(),arguments,["frequency"]);this.frequency=new Dy({context:this.context,units:e.units,value:e.frequency}),In(this,"frequency"),this._state.setStateAtTime("stopped",0),this.setTicksAtTime(0,0)}static getDefaults(){return Object.assign({frequency:1,units:"hertz"},Ji.getDefaults())}get state(){return this.getStateAtTime(this.now())}start(e,n){const r=this.toSeconds(e);return this._state.getValueAtTime(r)!=="started"&&(this._state.setStateAtTime("started",r),Ft(n)&&this.setTicksAtTime(n,r)),this}stop(e){const n=this.toSeconds(e);if(this._state.getValueAtTime(n)==="stopped"){const r=this._state.get(n);r&&r.time>0&&(this._tickOffset.cancel(r.time),this._state.cancel(r.time))}return this._state.cancel(n),this._state.setStateAtTime("stopped",n),this.setTicksAtTime(0,n),this}pause(e){const n=this.toSeconds(e);return this._state.getValueAtTime(n)==="started"&&this._state.setStateAtTime("paused",n),this}cancel(e){return e=this.toSeconds(e),this._state.cancel(e),this._tickOffset.cancel(e),this}getTicksAtTime(e){const n=this.toSeconds(e),r=this._state.getLastState("stopped",n),i={state:"paused",time:n};this._state.add(i);let a=r,u=0;return this._state.forEachBetween(r.time,n+this.sampleTime,c=>{let f=a.time;const p=this._tickOffset.get(c.time);p&&p.time>=a.time&&(u=p.ticks,f=p.time),a.state==="started"&&c.state!=="started"&&(u+=this.frequency.getTicksAtTime(c.time)-this.frequency.getTicksAtTime(f)),a=c}),this._state.remove(i),u}get ticks(){return this.getTicksAtTime(this.now())}set ticks(e){this.setTicksAtTime(e,this.now())}get seconds(){return this.getSecondsAtTime(this.now())}set seconds(e){const n=this.now(),r=this.frequency.timeToTicks(e,n);this.setTicksAtTime(r,n)}getSecondsAtTime(e){e=this.toSeconds(e);const n=this._state.getLastState("stopped",e),r={state:"paused",time:e};this._state.add(r);let i=n,a=0;return this._state.forEachBetween(n.time,e+this.sampleTime,u=>{let c=i.time;const f=this._tickOffset.get(u.time);f&&f.time>=i.time&&(a=f.seconds,c=f.time),i.state==="started"&&u.state!=="started"&&(a+=u.time-c),i=u}),this._state.remove(r),a}setTicksAtTime(e,n){return n=this.toSeconds(n),this._tickOffset.cancel(n),this._tickOffset.add({seconds:this.frequency.getDurationOfTicks(e,n),ticks:e,time:n}),this}getStateAtTime(e){return e=this.toSeconds(e),this._state.getValueAtTime(e)}getTimeOfTick(e,n=this.now()){const r=this._tickOffset.get(n),i=this._state.get(n),a=Math.max(r.time,i.time),u=this.frequency.getTicksAtTime(a)+e-r.ticks;return this.frequency.getTimeOfTick(u)}forEachTickBetween(e,n,r){let i=this._state.get(e);this._state.forEachBetween(e,n,u=>{i&&i.state==="started"&&u.state!=="started"&&this.forEachTickBetween(Math.max(i.time,e),u.time-this.sampleTime,r),i=u});let a=null;if(i&&i.state==="started"){const u=Math.max(i.time,e),c=this.frequency.getTicksAtTime(u),f=this.frequency.getTicksAtTime(i.time),p=c-f;let v=Math.ceil(p)-p;v=wa(v,1)?0:v;let m=this.frequency.getTimeOfTick(c+v);for(;m<n;){try{r(m,Math.round(this.getTicksAtTime(m)))}catch(y){a=y;break}m+=this.frequency.getDurationOfTicks(1,m)}}if(a)throw a;return this}dispose(){return super.dispose(),this._state.dispose(),this._tickOffset.dispose(),this.frequency.dispose(),this}}class tv extends Ji{constructor(){super(Ve(tv.getDefaults(),arguments,["callback","frequency"])),this.name="Clock",this.callback=an,this._lastUpdate=0,this._state=new Hb("stopped"),this._boundLoop=this._loop.bind(this);const e=Ve(tv.getDefaults(),arguments,["callback","frequency"]);this.callback=e.callback,this._tickSource=new Ly({context:this.context,frequency:e.frequency,units:e.units}),this._lastUpdate=0,this.frequency=this._tickSource.frequency,In(this,"frequency"),this._state.setStateAtTime("stopped",0),this.context.on("tick",this._boundLoop)}static getDefaults(){return Object.assign(Ji.getDefaults(),{callback:an,frequency:1,units:"hertz"})}get state(){return this._state.getValueAtTime(this.now())}start(e,n){GN(this.context);const r=this.toSeconds(e);return this.log("start",r),this._state.getValueAtTime(r)!=="started"&&(this._state.setStateAtTime("started",r),this._tickSource.start(r,n),r<this._lastUpdate&&this.emit("start",r,n)),this}stop(e){const n=this.toSeconds(e);return this.log("stop",n),this._state.cancel(n),this._state.setStateAtTime("stopped",n),this._tickSource.stop(n),n<this._lastUpdate&&this.emit("stop",n),this}pause(e){const n=this.toSeconds(e);return this._state.getValueAtTime(n)==="started"&&(this._state.setStateAtTime("paused",n),this._tickSource.pause(n),n<this._lastUpdate&&this.emit("pause",n)),this}get ticks(){return Math.ceil(this.getTicksAtTime(this.now()))}set ticks(e){this._tickSource.ticks=e}get seconds(){return this._tickSource.seconds}set seconds(e){this._tickSource.seconds=e}getSecondsAtTime(e){return this._tickSource.getSecondsAtTime(e)}setTicksAtTime(e,n){return this._tickSource.setTicksAtTime(e,n),this}getTimeOfTick(e,n=this.now()){return this._tickSource.getTimeOfTick(e,n)}getTicksAtTime(e){return this._tickSource.getTicksAtTime(e)}nextTickTime(e,n){const r=this.toSeconds(n),i=this.getTicksAtTime(r);return this._tickSource.getTimeOfTick(i+e,r)}_loop(){const e=this._lastUpdate,n=this.now();this._lastUpdate=n,this.log("loop",e,n),e!==n&&(this._state.forEachBetween(e,n,r=>{switch(r.state){case"started":const i=this._tickSource.getTicksAtTime(r.time);this.emit("start",r.time,i);break;case"stopped":r.time!==0&&this.emit("stop",r.time);break;case"paused":this.emit("pause",r.time);break}}),this._tickSource.forEachTickBetween(e,n,(r,i)=>{this.callback(r,i)}))}getStateAtTime(e){const n=this.toSeconds(e);return this._state.getValueAtTime(n)}dispose(){return super.dispose(),this.context.off("tick",this._boundLoop),this._tickSource.dispose(),this._state.dispose(),this}}Lv.mixin(tv);class Ub extends wl{constructor(){super(),this.name="ToneAudioBuffers",this._buffers=new Map,this._loadingCount=0;const e=Ve(Ub.getDefaults(),arguments,["urls","onload","baseUrl"],"urls");this.baseUrl=e.baseUrl,Object.keys(e.urls).forEach(n=>{this._loadingCount++;const r=e.urls[n];this.add(n,r,this._bufferLoaded.bind(this,e.onload),e.onerror)})}static getDefaults(){return{baseUrl:"",onerror:an,onload:an,urls:{}}}has(e){return this._buffers.has(e.toString())}get(e){return At(this.has(e),`ToneAudioBuffers has no buffer named: ${e}`),this._buffers.get(e.toString())}_bufferLoaded(e){this._loadingCount--,this._loadingCount===0&&e&&e()}get loaded(){return Array.from(this._buffers).every(([e,n])=>n.loaded)}add(e,n,r=an,i=an){return gs(n)?this._buffers.set(e.toString(),new fn(this.baseUrl+n,r,i)):this._buffers.set(e.toString(),new fn(n,r,i)),this}dispose(){return super.dispose(),this._buffers.forEach(e=>e.dispose()),this._buffers.clear(),this}}class il extends Im{constructor(){super(...arguments),this.name="Ticks",this.defaultUnits="i"}_now(){return this.context.transport.ticks}_beatsToUnits(e){return this._getPPQ()*e}_secondsToUnits(e){return Math.floor(e/(60/this._getBpm())*this._getPPQ())}_ticksToUnits(e){return e}toTicks(){return this.valueOf()}toSeconds(){return this.valueOf()/this._getPPQ()*(60/this._getBpm())}}class tY extends Ji{constructor(){super(...arguments),this.name="Draw",this.expiration=.25,this.anticipation=.008,this._events=new Cs,this._boundDrawLoop=this._drawLoop.bind(this),this._animationFrame=-1}schedule(e,n){return this._events.add({callback:e,time:this.toSeconds(n)}),this._events.length===1&&(this._animationFrame=requestAnimationFrame(this._boundDrawLoop)),this}cancel(e){return this._events.cancel(this.toSeconds(e)),this}_drawLoop(){const e=this.context.currentTime;for(;this._events.length&&this._events.peek().time-this.anticipation<=e;){const n=this._events.shift();n&&e-n.time<=this.expiration&&n.callback()}this._events.length>0&&(this._animationFrame=requestAnimationFrame(this._boundDrawLoop))}dispose(){return super.dispose(),this._events.dispose(),cancelAnimationFrame(this._animationFrame),this}}S_(t=>{t.draw=new tY({context:t})});C_(t=>{t.draw.dispose()});class nY extends wl{constructor(){super(...arguments),this.name="IntervalTimeline",this._root=null,this._length=0}add(e){At(Ft(e.time),"Events must have a time property"),At(Ft(e.duration),"Events must have a duration parameter"),e.time=e.time.valueOf();let n=new rY(e.time,e.time+e.duration,e);for(this._root===null?this._root=n:this._root.insert(n),this._length++;n!==null;)n.updateHeight(),n.updateMax(),this._rebalance(n),n=n.parent;return this}remove(e){if(this._root!==null){const n=[];this._root.search(e.time,n);for(const r of n)if(r.event===e){this._removeNode(r),this._length--;break}}return this}get length(){return this._length}cancel(e){return this.forEachFrom(e,n=>this.remove(n)),this}_setRoot(e){this._root=e,this._root!==null&&(this._root.parent=null)}_replaceNodeInParent(e,n){e.parent!==null?(e.isLeftChild()?e.parent.left=n:e.parent.right=n,this._rebalance(e.parent)):this._setRoot(n)}_removeNode(e){if(e.left===null&&e.right===null)this._replaceNodeInParent(e,null);else if(e.right===null)this._replaceNodeInParent(e,e.left);else if(e.left===null)this._replaceNodeInParent(e,e.right);else{const n=e.getBalance();let r,i=null;if(n>0)if(e.left.right===null)r=e.left,r.right=e.right,i=r;else{for(r=e.left.right;r.right!==null;)r=r.right;r.parent&&(r.parent.right=r.left,i=r.parent,r.left=e.left,r.right=e.right)}else if(e.right.left===null)r=e.right,r.left=e.left,i=r;else{for(r=e.right.left;r.left!==null;)r=r.left;r.parent&&(r.parent.left=r.right,i=r.parent,r.left=e.left,r.right=e.right)}e.parent!==null?e.isLeftChild()?e.parent.left=r:e.parent.right=r:this._setRoot(r),i&&this._rebalance(i)}e.dispose()}_rotateLeft(e){const n=e.parent,r=e.isLeftChild(),i=e.right;i&&(e.right=i.left,i.left=e),n!==null?r?n.left=i:n.right=i:this._setRoot(i)}_rotateRight(e){const n=e.parent,r=e.isLeftChild(),i=e.left;i&&(e.left=i.right,i.right=e),n!==null?r?n.left=i:n.right=i:this._setRoot(i)}_rebalance(e){const n=e.getBalance();n>1&&e.left?e.left.getBalance()<0?this._rotateLeft(e.left):this._rotateRight(e):n<-1&&e.right&&(e.right.getBalance()>0?this._rotateRight(e.right):this._rotateLeft(e))}get(e){if(this._root!==null){const n=[];if(this._root.search(e,n),n.length>0){let r=n[0];for(let i=1;i<n.length;i++)n[i].low>r.low&&(r=n[i]);return r.event}}return null}forEach(e){if(this._root!==null){const n=[];this._root.traverse(r=>n.push(r)),n.forEach(r=>{r.event&&e(r.event)})}return this}forEachAtTime(e,n){if(this._root!==null){const r=[];this._root.search(e,r),r.forEach(i=>{i.event&&n(i.event)})}return this}forEachFrom(e,n){if(this._root!==null){const r=[];this._root.searchAfter(e,r),r.forEach(i=>{i.event&&n(i.event)})}return this}dispose(){return super.dispose(),this._root!==null&&this._root.traverse(e=>e.dispose()),this._root=null,this}}class rY{constructor(e,n,r){this._left=null,this._right=null,this.parent=null,this.height=0,this.event=r,this.low=e,this.high=n,this.max=this.high}insert(e){e.low<=this.low?this.left===null?this.left=e:this.left.insert(e):this.right===null?this.right=e:this.right.insert(e)}search(e,n){e>this.max||(this.left!==null&&this.left.search(e,n),this.low<=e&&this.high>e&&n.push(this),!(this.low>e)&&this.right!==null&&this.right.search(e,n))}searchAfter(e,n){this.low>=e&&(n.push(this),this.left!==null&&this.left.searchAfter(e,n)),this.right!==null&&this.right.searchAfter(e,n)}traverse(e){e(this),this.left!==null&&this.left.traverse(e),this.right!==null&&this.right.traverse(e)}updateHeight(){this.left!==null&&this.right!==null?this.height=Math.max(this.left.height,this.right.height)+1:this.right!==null?this.height=this.right.height+1:this.left!==null?this.height=this.left.height+1:this.height=0}updateMax(){this.max=this.high,this.left!==null&&(this.max=Math.max(this.max,this.left.max)),this.right!==null&&(this.max=Math.max(this.max,this.right.max))}getBalance(){let e=0;return this.left!==null&&this.right!==null?e=this.left.height-this.right.height:this.left!==null?e=this.left.height+1:this.right!==null&&(e=-(this.right.height+1)),e}isLeftChild(){return this.parent!==null&&this.parent.left===this}get left(){return this._left}set left(e){this._left=e,e!==null&&(e.parent=this),this.updateHeight(),this.updateMax()}get right(){return this._right}set right(e){this._right=e,e!==null&&(e.parent=this),this.updateHeight(),this.updateMax()}dispose(){this.parent=null,this._left=null,this._right=null,this.event=null}}class mf extends Lt{constructor(){super(Ve(mf.getDefaults(),arguments,["volume"])),this.name="Volume";const e=Ve(mf.getDefaults(),arguments,["volume"]);this.input=this.output=new Ti({context:this.context,gain:e.volume,units:"decibels"}),this.volume=this.output.gain,In(this,"volume"),this._unmutedVolume=e.volume,this.mute=e.mute}static getDefaults(){return Object.assign(Lt.getDefaults(),{mute:!1,volume:0})}get mute(){return this.volume.value===-1/0}set mute(e){!this.mute&&e?(this._unmutedVolume=this.volume.value,this.volume.value=-1/0):this.mute&&!e&&(this.volume.value=this._unmutedVolume)}dispose(){return super.dispose(),this.input.dispose(),this.volume.dispose(),this}}class My extends Lt{constructor(){super(Ve(My.getDefaults(),arguments)),this.name="Destination",this.input=new mf({context:this.context}),this.output=new Ti({context:this.context}),this.volume=this.input.volume;const e=Ve(My.getDefaults(),arguments);dC(this.input,this.output,this.context.rawContext.destination),this.mute=e.mute,this._internalChannels=[this.input,this.context.rawContext.destination,this.output]}static getDefaults(){return Object.assign(Lt.getDefaults(),{mute:!1,volume:0})}get mute(){return this.input.mute}set mute(e){this.input.mute=e}chain(...e){return this.input.disconnect(),e.unshift(this.input),e.push(this.output),dC(...e),this}get maxChannelCount(){return this.context.rawContext.destination.maxChannelCount}dispose(){return super.dispose(),this.volume.dispose(),this}}S_(t=>{t.destination=new My({context:t})});C_(t=>{t.destination.dispose()});class iY extends wl{constructor(e){super(),this.name="TimelineValue",this._timeline=new Cs({memory:10}),this._initialValue=e}set(e,n){return this._timeline.add({value:e,time:n}),this}get(e){const n=this._timeline.get(e);return n?n.value:this._initialValue}}class yu{constructor(e,n){this.id=yu._eventId++;const r=Object.assign(yu.getDefaults(),n);this.transport=e,this.callback=r.callback,this._once=r.once,this.time=r.time}static getDefaults(){return{callback:an,once:!1,time:0}}invoke(e){this.callback&&(this.callback(e),this._once&&this.transport.clear(this.id))}dispose(){return this.callback=void 0,this}}yu._eventId=0;class Wb extends yu{constructor(e,n){super(e,n),this._currentId=-1,this._nextId=-1,this._nextTick=this.time,this._boundRestart=this._restart.bind(this);const r=Object.assign(Wb.getDefaults(),n);this.duration=new il(e.context,r.duration).valueOf(),this._interval=new il(e.context,r.interval).valueOf(),this._nextTick=r.time,this.transport.on("start",this._boundRestart),this.transport.on("loopStart",this._boundRestart),this.context=this.transport.context,this._restart()}static getDefaults(){return Object.assign({},yu.getDefaults(),{duration:1/0,interval:1,once:!1})}invoke(e){this._createEvents(e),super.invoke(e)}_createEvents(e){const n=this.transport.getTicksAtTime(e);n>=this.time&&n>=this._nextTick&&this._nextTick+this._interval<this.time+this.duration&&(this._nextTick+=this._interval,this._currentId=this._nextId,this._nextId=this.transport.scheduleOnce(this.invoke.bind(this),new il(this.context,this._nextTick).toSeconds()))}_restart(e){this.transport.clear(this._currentId),this.transport.clear(this._nextId),this._nextTick=this.time;const n=this.transport.getTicksAtTime(e);n>this.time&&(this._nextTick=this.time+Math.ceil((n-this.time)/this._interval)*this._interval),this._currentId=this.transport.scheduleOnce(this.invoke.bind(this),new il(this.context,this._nextTick).toSeconds()),this._nextTick+=this._interval,this._nextId=this.transport.scheduleOnce(this.invoke.bind(this),new il(this.context,this._nextTick).toSeconds())}dispose(){return super.dispose(),this.transport.clear(this._currentId),this.transport.clear(this._nextId),this.transport.off("start",this._boundRestart),this.transport.off("loopStart",this._boundRestart),this}}class nv extends Ji{constructor(){super(Ve(nv.getDefaults(),arguments)),this.name="Transport",this._loop=new iY(!1),this._loopStart=0,this._loopEnd=0,this._scheduledEvents={},this._timeline=new Cs,this._repeatedEvents=new nY,this._syncedSignals=[],this._swingAmount=0;const e=Ve(nv.getDefaults(),arguments);this._ppq=e.ppq,this._clock=new tv({callback:this._processTick.bind(this),context:this.context,frequency:0,units:"bpm"}),this._bindClockEvents(),this.bpm=this._clock.frequency,this._clock.frequency.multiplier=e.ppq,this.bpm.setValueAtTime(e.bpm,0),In(this,"bpm"),this._timeSignature=e.timeSignature,this._swingTicks=e.ppq/2}static getDefaults(){return Object.assign(Ji.getDefaults(),{bpm:120,loopEnd:"4m",loopStart:0,ppq:192,swing:0,swingSubdivision:"8n",timeSignature:4})}_processTick(e,n){if(this._loop.get(e)&&n>=this._loopEnd&&(this.emit("loopEnd",e),this._clock.setTicksAtTime(this._loopStart,e),n=this._loopStart,this.emit("loopStart",e,this._clock.getSecondsAtTime(e)),this.emit("loop",e)),this._swingAmount>0&&n%this._ppq!==0&&n%(this._swingTicks*2)!==0){const r=n%(this._swingTicks*2)/(this._swingTicks*2),i=Math.sin(r*Math.PI)*this._swingAmount;e+=new il(this.context,this._swingTicks*2/3).toSeconds()*i}this._timeline.forEachAtTime(n,r=>r.invoke(e))}schedule(e,n){const r=new yu(this,{callback:e,time:new Im(this.context,n).toTicks()});return this._addEvent(r,this._timeline)}scheduleRepeat(e,n,r,i=1/0){const a=new Wb(this,{callback:e,duration:new Sa(this.context,i).toTicks(),interval:new Sa(this.context,n).toTicks(),time:new Im(this.context,r).toTicks()});return this._addEvent(a,this._repeatedEvents)}scheduleOnce(e,n){const r=new yu(this,{callback:e,once:!0,time:new Im(this.context,n).toTicks()});return this._addEvent(r,this._timeline)}clear(e){if(this._scheduledEvents.hasOwnProperty(e)){const n=this._scheduledEvents[e.toString()];n.timeline.remove(n.event),n.event.dispose(),delete this._scheduledEvents[e.toString()]}return this}_addEvent(e,n){return this._scheduledEvents[e.id.toString()]={event:e,timeline:n},n.add(e),e.id}cancel(e=0){const n=this.toTicks(e);return this._timeline.forEachFrom(n,r=>this.clear(r.id)),this._repeatedEvents.forEachFrom(n,r=>this.clear(r.id)),this}_bindClockEvents(){this._clock.on("start",(e,n)=>{n=new il(this.context,n).toSeconds(),this.emit("start",e,n)}),this._clock.on("stop",e=>{this.emit("stop",e)}),this._clock.on("pause",e=>{this.emit("pause",e)})}get state(){return this._clock.getStateAtTime(this.now())}start(e,n){let r;return Ft(n)&&(r=this.toTicks(n)),this._clock.start(e,r),this}stop(e){return this._clock.stop(e),this}pause(e){return this._clock.pause(e),this}toggle(e){return e=this.toSeconds(e),this._clock.getStateAtTime(e)!=="started"?this.start(e):this.stop(e),this}get timeSignature(){return this._timeSignature}set timeSignature(e){Ea(e)&&(e=e[0]/e[1]*4),this._timeSignature=e}get loopStart(){return new Sa(this.context,this._loopStart,"i").toSeconds()}set loopStart(e){this._loopStart=this.toTicks(e)}get loopEnd(){return new Sa(this.context,this._loopEnd,"i").toSeconds()}set loopEnd(e){this._loopEnd=this.toTicks(e)}get loop(){return this._loop.get(this.now())}set loop(e){this._loop.set(e,this.now())}setLoopPoints(e,n){return this.loopStart=e,this.loopEnd=n,this}get swing(){return this._swingAmount}set swing(e){this._swingAmount=e}get swingSubdivision(){return new il(this.context,this._swingTicks).toNotation()}set swingSubdivision(e){this._swingTicks=this.toTicks(e)}get position(){const e=this.now(),n=this._clock.getTicksAtTime(e);return new il(this.context,n).toBarsBeatsSixteenths()}set position(e){const n=this.toTicks(e);this.ticks=n}get seconds(){return this._clock.seconds}set seconds(e){const n=this.now(),r=this._clock.frequency.timeToTicks(e,n);this.ticks=r}get progress(){if(this.loop){const e=this.now();return(this._clock.getTicksAtTime(e)-this._loopStart)/(this._loopEnd-this._loopStart)}else return 0}get ticks(){return this._clock.ticks}set ticks(e){if(this._clock.ticks!==e){const n=this.now();if(this.state==="started"){const r=this._clock.getTicksAtTime(n),i=this._clock.frequency.getDurationOfTicks(Math.ceil(r)-r,n),a=n+i;this.emit("stop",a),this._clock.setTicksAtTime(e,a),this.emit("start",a,this._clock.getSecondsAtTime(a))}else this._clock.setTicksAtTime(e,n)}}getTicksAtTime(e){return Math.round(this._clock.getTicksAtTime(e))}getSecondsAtTime(e){return this._clock.getSecondsAtTime(e)}get PPQ(){return this._clock.frequency.multiplier}set PPQ(e){this._clock.frequency.multiplier=e}nextSubdivision(e){if(e=this.toTicks(e),this.state!=="started")return 0;{const n=this.now(),r=this.getTicksAtTime(n),i=e-r%e;return this._clock.nextTickTime(i,n)}}syncSignal(e,n){if(!n){const i=this.now();if(e.getValueAtTime(i)!==0){const u=1/(60/this.bpm.getValueAtTime(i)/this.PPQ);n=e.getValueAtTime(i)/u}else n=0}const r=new Ti(n);return this.bpm.connect(r),r.connect(e._param),this._syncedSignals.push({initial:e.value,ratio:r,signal:e}),e.value=0,this}unsyncSignal(e){for(let n=this._syncedSignals.length-1;n>=0;n--){const r=this._syncedSignals[n];r.signal===e&&(r.ratio.dispose(),r.signal.value=r.initial,this._syncedSignals.splice(n,1))}return this}dispose(){return super.dispose(),this._clock.dispose(),eP(this,"bpm"),this._timeline.dispose(),this._repeatedEvents.dispose(),this}}Lv.mixin(nv);S_(t=>{t.transport=new nv({context:t})});C_(t=>{t.transport.dispose()});class Eo extends Lt{constructor(e){super(e),this.input=void 0,this._state=new Hb("stopped"),this._synced=!1,this._scheduled=[],this._syncedStart=an,this._syncedStop=an,this._state.memory=100,this._state.increasing=!0,this._volume=this.output=new mf({context:this.context,mute:e.mute,volume:e.volume}),this.volume=this._volume.volume,In(this,"volume"),this.onstop=e.onstop}static getDefaults(){return Object.assign(Lt.getDefaults(),{mute:!1,onstop:an,volume:0})}get state(){return this._synced?this.context.transport.state==="started"?this._state.getValueAtTime(this.context.transport.seconds):"stopped":this._state.getValueAtTime(this.now())}get mute(){return this._volume.mute}set mute(e){this._volume.mute=e}_clampToCurrentTime(e){return this._synced?e:Math.max(e,this.context.currentTime)}start(e,n,r){let i=Bo(e)&&this._synced?this.context.transport.seconds:this.toSeconds(e);if(i=this._clampToCurrentTime(i),!this._synced&&this._state.getValueAtTime(i)==="started")At(ky(i,this._state.get(i).time),"Start time must be strictly greater than previous start time"),this._state.cancel(i),this._state.setStateAtTime("started",i),this.log("restart",i),this.restart(i,n,r);else if(this.log("start",i),this._state.setStateAtTime("started",i),this._synced){const a=this._state.get(i);a&&(a.offset=this.toSeconds(hh(n,0)),a.duration=r?this.toSeconds(r):void 0);const u=this.context.transport.schedule(c=>{this._start(c,n,r)},i);this._scheduled.push(u),this.context.transport.state==="started"&&this.context.transport.getSecondsAtTime(this.immediate())>i&&this._syncedStart(this.now(),this.context.transport.seconds)}else GN(this.context),this._start(i,n,r);return this}stop(e){let n=Bo(e)&&this._synced?this.context.transport.seconds:this.toSeconds(e);if(n=this._clampToCurrentTime(n),this._state.getValueAtTime(n)==="started"||Ft(this._state.getNextState("started",n))){if(this.log("stop",n),!this._synced)this._stop(n);else{const r=this.context.transport.schedule(this._stop.bind(this),n);this._scheduled.push(r)}this._state.cancel(n),this._state.setStateAtTime("stopped",n)}return this}restart(e,n,r){return e=this.toSeconds(e),this._state.getValueAtTime(e)==="started"&&(this._state.cancel(e),this._restart(e,n,r)),this}sync(){return this._synced||(this._synced=!0,this._syncedStart=(e,n)=>{if(n>0){const r=this._state.get(n);if(r&&r.state==="started"&&r.time!==n){const i=n-this.toSeconds(r.time);let a;r.duration&&(a=this.toSeconds(r.duration)-i),this._start(e,this.toSeconds(r.offset)+i,a)}}},this._syncedStop=e=>{const n=this.context.transport.getSecondsAtTime(Math.max(e-this.sampleTime,0));this._state.getValueAtTime(n)==="started"&&this._stop(e)},this.context.transport.on("start",this._syncedStart),this.context.transport.on("loopStart",this._syncedStart),this.context.transport.on("stop",this._syncedStop),this.context.transport.on("pause",this._syncedStop),this.context.transport.on("loopEnd",this._syncedStop)),this}unsync(){return this._synced&&(this.context.transport.off("stop",this._syncedStop),this.context.transport.off("pause",this._syncedStop),this.context.transport.off("loopEnd",this._syncedStop),this.context.transport.off("start",this._syncedStart),this.context.transport.off("loopStart",this._syncedStart)),this._synced=!1,this._scheduled.forEach(e=>this.context.transport.clear(e)),this._scheduled=[],this._state.cancel(0),this._stop(0),this}dispose(){return super.dispose(),this.onstop=an,this.unsync(),this._volume.dispose(),this._state.dispose(),this}}class rv extends Ph{constructor(){super(Ve(rv.getDefaults(),arguments,["url","onload"])),this.name="ToneBufferSource",this._source=this.context.createBufferSource(),this._internalChannels=[this._source],this._sourceStarted=!1,this._sourceStopped=!1;const e=Ve(rv.getDefaults(),arguments,["url","onload"]);Bh(this._source,this._gainNode),this._source.onended=()=>this._stopSource(),this.playbackRate=new xn({context:this.context,param:this._source.playbackRate,units:"positive",value:e.playbackRate}),this.loop=e.loop,this.loopStart=e.loopStart,this.loopEnd=e.loopEnd,this._buffer=new fn(e.url,e.onload,e.onerror),this._internalChannels.push(this._source)}static getDefaults(){return Object.assign(Ph.getDefaults(),{url:new fn,loop:!1,loopEnd:0,loopStart:0,onload:an,onerror:an,playbackRate:1})}get fadeIn(){return this._fadeIn}set fadeIn(e){this._fadeIn=e}get fadeOut(){return this._fadeOut}set fadeOut(e){this._fadeOut=e}get curve(){return this._curve}set curve(e){this._curve=e}start(e,n,r,i=1){At(this.buffer.loaded,"buffer is either not set or not loaded");const a=this.toSeconds(e);this._startGain(a,i),this.loop?n=hh(n,this.loopStart):n=hh(n,0);let u=Math.max(this.toSeconds(n),0);if(this.loop){const c=this.toSeconds(this.loopEnd)||this.buffer.duration,f=this.toSeconds(this.loopStart),p=c-f;cC(u,c)&&(u=(u-f)%p+f),wa(u,this.buffer.duration)&&(u=0)}if(this._source.buffer=this.buffer.get(),this._source.loopEnd=this.toSeconds(this.loopEnd)||this.buffer.duration,YN(u,this.buffer.duration)&&(this._sourceStarted=!0,this._source.start(a,u)),Ft(r)){let c=this.toSeconds(r);c=Math.max(c,0),this.stop(a+c)}return this}_stopSource(e){!this._sourceStopped&&this._sourceStarted&&(this._sourceStopped=!0,this._source.stop(this.toSeconds(e)),this._onended())}get loopStart(){return this._source.loopStart}set loopStart(e){this._source.loopStart=this.toSeconds(e)}get loopEnd(){return this._source.loopEnd}set loopEnd(e){this._source.loopEnd=this.toSeconds(e)}get buffer(){return this._buffer}set buffer(e){this._buffer.set(e)}get loop(){return this._source.loop}set loop(e){this._source.loop=e,this._sourceStarted&&this.cancelStop()}dispose(){return super.dispose(),this._source.onended=null,this._source.disconnect(),this._buffer.dispose(),this.playbackRate.dispose(),this}}function Sf(t,e){return dn(this,void 0,void 0,function*(){const n=e/t.context.sampleRate,r=new jb(1,n,t.context.sampleRate);return new t.constructor(Object.assign(t.get(),{frequency:2/n,detune:0,context:r})).toDestination().start(0),(yield r.render()).getChannelData(0)})}class Iy extends Ph{constructor(){super(Ve(Iy.getDefaults(),arguments,["frequency","type"])),this.name="ToneOscillatorNode",this._oscillator=this.context.createOscillator(),this._internalChannels=[this._oscillator];const e=Ve(Iy.getDefaults(),arguments,["frequency","type"]);Bh(this._oscillator,this._gainNode),this.type=e.type,this.frequency=new xn({context:this.context,param:this._oscillator.frequency,units:"frequency",value:e.frequency}),this.detune=new xn({context:this.context,param:this._oscillator.detune,units:"cents",value:e.detune}),In(this,["frequency","detune"])}static getDefaults(){return Object.assign(Ph.getDefaults(),{detune:0,frequency:440,type:"sine"})}start(e){const n=this.toSeconds(e);return this.log("start",n),this._startGain(n),this._oscillator.start(n),this}_stopSource(e){this._oscillator.stop(e)}setPeriodicWave(e){return this._oscillator.setPeriodicWave(e),this}get type(){return this._oscillator.type}set type(e){this._oscillator.type=e}dispose(){return super.dispose(),this.state==="started"&&this.stop(),this._oscillator.disconnect(),this.frequency.dispose(),this.detune.dispose(),this}}class Kn extends Eo{constructor(){super(Ve(Kn.getDefaults(),arguments,["frequency","type"])),this.name="Oscillator",this._oscillator=null;const e=Ve(Kn.getDefaults(),arguments,["frequency","type"]);this.frequency=new Cr({context:this.context,units:"frequency",value:e.frequency}),In(this,"frequency"),this.detune=new Cr({context:this.context,units:"cents",value:e.detune}),In(this,"detune"),this._partials=e.partials,this._partialCount=e.partialCount,this._type=e.type,e.partialCount&&e.type!=="custom"&&(this._type=this.baseType+e.partialCount.toString()),this.phase=e.phase}static getDefaults(){return Object.assign(Eo.getDefaults(),{detune:0,frequency:440,partialCount:0,partials:[],phase:0,type:"sine"})}_start(e){const n=this.toSeconds(e),r=new Iy({context:this.context,onended:()=>this.onstop(this)});this._oscillator=r,this._wave?this._oscillator.setPeriodicWave(this._wave):this._oscillator.type=this._type,this._oscillator.connect(this.output),this.frequency.connect(this._oscillator.frequency),this.detune.connect(this._oscillator.detune),this._oscillator.start(n)}_stop(e){const n=this.toSeconds(e);this._oscillator&&this._oscillator.stop(n)}_restart(e){const n=this.toSeconds(e);return this.log("restart",n),this._oscillator&&this._oscillator.cancelStop(),this._state.cancel(n),this}syncFrequency(){return this.context.transport.syncSignal(this.frequency),this}unsyncFrequency(){return this.context.transport.unsyncSignal(this.frequency),this}_getCachedPeriodicWave(){if(this._type==="custom")return Kn._periodicWaveCache.find(n=>n.phase===this._phase&&zX(n.partials,this._partials));{const e=Kn._periodicWaveCache.find(n=>n.type===this._type&&n.phase===this._phase);return this._partialCount=e?e.partialCount:this._partialCount,e}}get type(){return this._type}set type(e){this._type=e;const n=["sine","square","sawtooth","triangle"].indexOf(e)!==-1;if(this._phase===0&&n)this._wave=void 0,this._partialCount=0,this._oscillator!==null&&(this._oscillator.type=e);else{const r=this._getCachedPeriodicWave();if(Ft(r)){const{partials:i,wave:a}=r;this._wave=a,this._partials=i,this._oscillator!==null&&this._oscillator.setPeriodicWave(this._wave)}else{const[i,a]=this._getRealImaginary(e,this._phase),u=this.context.createPeriodicWave(i,a);this._wave=u,this._oscillator!==null&&this._oscillator.setPeriodicWave(this._wave),Kn._periodicWaveCache.push({imag:a,partialCount:this._partialCount,partials:this._partials,phase:this._phase,real:i,type:this._type,wave:this._wave}),Kn._periodicWaveCache.length>100&&Kn._periodicWaveCache.shift()}}}get baseType(){return this._type.replace(this.partialCount.toString(),"")}set baseType(e){this.partialCount&&this._type!=="custom"&&e!=="custom"?this.type=e+this.partialCount:this.type=e}get partialCount(){return this._partialCount}set partialCount(e){gu(e,0);let n=this._type;const r=/^(sine|triangle|square|sawtooth)(\d+)$/.exec(this._type);if(r&&(n=r[1]),this._type!=="custom")e===0?this.type=n:this.type=n+e.toString();else{const i=new Float32Array(e);this._partials.forEach((a,u)=>i[u]=a),this._partials=Array.from(i),this.type=this._type}}_getRealImaginary(e,n){let i=2048;const a=new Float32Array(i),u=new Float32Array(i);let c=1;if(e==="custom"){if(c=this._partials.length+1,this._partialCount=this._partials.length,i=c,this._partials.length===0)return[a,u]}else{const f=/^(sine|triangle|square|sawtooth)(\d+)$/.exec(e);f?(c=parseInt(f[2],10)+1,this._partialCount=parseInt(f[2],10),e=f[1],c=Math.max(c,2),i=c):this._partialCount=0,this._partials=[]}for(let f=1;f<i;++f){const p=2/(f*Math.PI);let v;switch(e){case"sine":v=f<=c?1:0,this._partials[f-1]=v;break;case"square":v=f&1?2*p:0,this._partials[f-1]=v;break;case"sawtooth":v=p*(f&1?1:-1),this._partials[f-1]=v;break;case"triangle":f&1?v=2*(p*p)*(f-1>>1&1?-1:1):v=0,this._partials[f-1]=v;break;case"custom":v=this._partials[f-1];break;default:throw new TypeError("Oscillator: invalid type: "+e)}v!==0?(a[f]=-v*Math.sin(n*f),u[f]=v*Math.cos(n*f)):(a[f]=0,u[f]=0)}return[a,u]}_inverseFFT(e,n,r){let i=0;const a=e.length;for(let u=0;u<a;u++)i+=e[u]*Math.cos(u*r)+n[u]*Math.sin(u*r);return i}getInitialValue(){const[e,n]=this._getRealImaginary(this._type,0);let r=0;const i=Math.PI*2,a=32;for(let u=0;u<a;u++)r=Math.max(this._inverseFFT(e,n,u/a*i),r);return qX(-this._inverseFFT(e,n,this._phase)/r,-1,1)}get partials(){return this._partials.slice(0,this.partialCount)}set partials(e){this._partials=e,this._partialCount=this._partials.length,e.length&&(this.type="custom")}get phase(){return this._phase*(180/Math.PI)}set phase(e){this._phase=e*Math.PI/180,this.type=this._type}asArray(e=1024){return dn(this,void 0,void 0,function*(){return Sf(this,e)})}dispose(){return super.dispose(),this._oscillator!==null&&this._oscillator.dispose(),this._wave=void 0,this.frequency.dispose(),this.detune.dispose(),this}}Kn._periodicWaveCache=[];class E_ extends Lt{constructor(){super(Object.assign(Ve(E_.getDefaults(),arguments,["context"])))}connect(e,n=0,r=0){return qb(this,e,n,r),this}}class iv extends E_{constructor(){super(Object.assign(Ve(iv.getDefaults(),arguments,["mapping","length"]))),this.name="WaveShaper",this._shaper=this.context.createWaveShaper(),this.input=this._shaper,this.output=this._shaper;const e=Ve(iv.getDefaults(),arguments,["mapping","length"]);Ea(e.mapping)||e.mapping instanceof Float32Array?this.curve=Float32Array.from(e.mapping):PX(e.mapping)&&this.setMap(e.mapping,e.length)}static getDefaults(){return Object.assign(Cr.getDefaults(),{length:1024})}setMap(e,n=1024){const r=new Float32Array(n);for(let i=0,a=n;i<a;i++){const u=i/(a-1)*2-1;r[i]=e(u,i)}return this.curve=r,this}get curve(){return this._shaper.curve}set curve(e){this._shaper.curve=e}get oversample(){return this._shaper.oversample}set oversample(e){const n=["none","2x","4x"].some(r=>r.includes(e));At(n,"oversampling must be either 'none', '2x', or '4x'"),this._shaper.oversample=e}dispose(){return super.dispose(),this._shaper.disconnect(),this}}class oY extends E_{constructor(){super(...arguments),this.name="AudioToGain",this._norm=new iv({context:this.context,mapping:e=>(e+1)/2}),this.input=this._norm,this.output=this._norm}dispose(){return super.dispose(),this._norm.dispose(),this}}class vf extends Cr{constructor(){super(Object.assign(Ve(vf.getDefaults(),arguments,["value"]))),this.name="Multiply",this.override=!1;const e=Ve(vf.getDefaults(),arguments,["value"]);this._mult=this.input=this.output=new Ti({context:this.context,minValue:e.minValue,maxValue:e.maxValue}),this.factor=this._param=this._mult.gain,this.factor.setValueAtTime(e.value,0)}static getDefaults(){return Object.assign(Cr.getDefaults(),{value:0})}dispose(){return super.dispose(),this._mult.dispose(),this}}class ov extends Eo{constructor(){super(Ve(ov.getDefaults(),arguments,["frequency","type","modulationType"])),this.name="AMOscillator",this._modulationScale=new oY({context:this.context}),this._modulationNode=new Ti({context:this.context});const e=Ve(ov.getDefaults(),arguments,["frequency","type","modulationType"]);this._carrier=new Kn({context:this.context,detune:e.detune,frequency:e.frequency,onstop:()=>this.onstop(this),phase:e.phase,type:e.type}),this.frequency=this._carrier.frequency,this.detune=this._carrier.detune,this._modulator=new Kn({context:this.context,phase:e.phase,type:e.modulationType}),this.harmonicity=new vf({context:this.context,units:"positive",value:e.harmonicity}),this.frequency.chain(this.harmonicity,this._modulator.frequency),this._modulator.chain(this._modulationScale,this._modulationNode.gain),this._carrier.chain(this._modulationNode,this.output),In(this,["frequency","detune","harmonicity"])}static getDefaults(){return Object.assign(Kn.getDefaults(),{harmonicity:1,modulationType:"square"})}_start(e){this._modulator.start(e),this._carrier.start(e)}_stop(e){this._modulator.stop(e),this._carrier.stop(e)}_restart(e){this._modulator.restart(e),this._carrier.restart(e)}get type(){return this._carrier.type}set type(e){this._carrier.type=e}get baseType(){return this._carrier.baseType}set baseType(e){this._carrier.baseType=e}get partialCount(){return this._carrier.partialCount}set partialCount(e){this._carrier.partialCount=e}get modulationType(){return this._modulator.type}set modulationType(e){this._modulator.type=e}get phase(){return this._carrier.phase}set phase(e){this._carrier.phase=e,this._modulator.phase=e}get partials(){return this._carrier.partials}set partials(e){this._carrier.partials=e}asArray(e=1024){return dn(this,void 0,void 0,function*(){return Sf(this,e)})}dispose(){return super.dispose(),this.frequency.dispose(),this.detune.dispose(),this.harmonicity.dispose(),this._carrier.dispose(),this._modulator.dispose(),this._modulationNode.dispose(),this._modulationScale.dispose(),this}}class av extends Eo{constructor(){super(Ve(av.getDefaults(),arguments,["frequency","type","modulationType"])),this.name="FMOscillator",this._modulationNode=new Ti({context:this.context,gain:0});const e=Ve(av.getDefaults(),arguments,["frequency","type","modulationType"]);this._carrier=new Kn({context:this.context,detune:e.detune,frequency:0,onstop:()=>this.onstop(this),phase:e.phase,type:e.type}),this.detune=this._carrier.detune,this.frequency=new Cr({context:this.context,units:"frequency",value:e.frequency}),this._modulator=new Kn({context:this.context,phase:e.phase,type:e.modulationType}),this.harmonicity=new vf({context:this.context,units:"positive",value:e.harmonicity}),this.modulationIndex=new vf({context:this.context,units:"positive",value:e.modulationIndex}),this.frequency.connect(this._carrier.frequency),this.frequency.chain(this.harmonicity,this._modulator.frequency),this.frequency.chain(this.modulationIndex,this._modulationNode),this._modulator.connect(this._modulationNode.gain),this._modulationNode.connect(this._carrier.frequency),this._carrier.connect(this.output),this.detune.connect(this._modulator.detune),In(this,["modulationIndex","frequency","detune","harmonicity"])}static getDefaults(){return Object.assign(Kn.getDefaults(),{harmonicity:1,modulationIndex:2,modulationType:"square"})}_start(e){this._modulator.start(e),this._carrier.start(e)}_stop(e){this._modulator.stop(e),this._carrier.stop(e)}_restart(e){return this._modulator.restart(e),this._carrier.restart(e),this}get type(){return this._carrier.type}set type(e){this._carrier.type=e}get baseType(){return this._carrier.baseType}set baseType(e){this._carrier.baseType=e}get partialCount(){return this._carrier.partialCount}set partialCount(e){this._carrier.partialCount=e}get modulationType(){return this._modulator.type}set modulationType(e){this._modulator.type=e}get phase(){return this._carrier.phase}set phase(e){this._carrier.phase=e,this._modulator.phase=e}get partials(){return this._carrier.partials}set partials(e){this._carrier.partials=e}asArray(e=1024){return dn(this,void 0,void 0,function*(){return Sf(this,e)})}dispose(){return super.dispose(),this.frequency.dispose(),this.harmonicity.dispose(),this._carrier.dispose(),this._modulator.dispose(),this._modulationNode.dispose(),this.modulationIndex.dispose(),this}}class Dh extends Eo{constructor(){super(Ve(Dh.getDefaults(),arguments,["frequency","width"])),this.name="PulseOscillator",this._widthGate=new Ti({context:this.context,gain:0}),this._thresh=new iv({context:this.context,mapping:n=>n<=0?-1:1});const e=Ve(Dh.getDefaults(),arguments,["frequency","width"]);this.width=new Cr({context:this.context,units:"audioRange",value:e.width}),this._triangle=new Kn({context:this.context,detune:e.detune,frequency:e.frequency,onstop:()=>this.onstop(this),phase:e.phase,type:"triangle"}),this.frequency=this._triangle.frequency,this.detune=this._triangle.detune,this._triangle.chain(this._thresh,this.output),this.width.chain(this._widthGate,this._thresh),In(this,["width","frequency","detune"])}static getDefaults(){return Object.assign(Eo.getDefaults(),{detune:0,frequency:440,phase:0,type:"pulse",width:.2})}_start(e){e=this.toSeconds(e),this._triangle.start(e),this._widthGate.gain.setValueAtTime(1,e)}_stop(e){e=this.toSeconds(e),this._triangle.stop(e),this._widthGate.gain.cancelScheduledValues(e),this._widthGate.gain.setValueAtTime(0,e)}_restart(e){this._triangle.restart(e),this._widthGate.gain.cancelScheduledValues(e),this._widthGate.gain.setValueAtTime(1,e)}get phase(){return this._triangle.phase}set phase(e){this._triangle.phase=e}get type(){return"pulse"}get baseType(){return"pulse"}get partials(){return[]}get partialCount(){return 0}set carrierType(e){this._triangle.type=e}asArray(e=1024){return dn(this,void 0,void 0,function*(){return Sf(this,e)})}dispose(){return super.dispose(),this._triangle.dispose(),this.width.dispose(),this._widthGate.dispose(),this._thresh.dispose(),this}}class sv extends Eo{constructor(){super(Ve(sv.getDefaults(),arguments,["frequency","type","spread"])),this.name="FatOscillator",this._oscillators=[];const e=Ve(sv.getDefaults(),arguments,["frequency","type","spread"]);this.frequency=new Cr({context:this.context,units:"frequency",value:e.frequency}),this.detune=new Cr({context:this.context,units:"cents",value:e.detune}),this._spread=e.spread,this._type=e.type,this._phase=e.phase,this._partials=e.partials,this._partialCount=e.partialCount,this.count=e.count,In(this,["frequency","detune"])}static getDefaults(){return Object.assign(Kn.getDefaults(),{count:3,spread:20,type:"sawtooth"})}_start(e){e=this.toSeconds(e),this._forEach(n=>n.start(e))}_stop(e){e=this.toSeconds(e),this._forEach(n=>n.stop(e))}_restart(e){this._forEach(n=>n.restart(e))}_forEach(e){for(let n=0;n<this._oscillators.length;n++)e(this._oscillators[n],n)}get type(){return this._type}set type(e){this._type=e,this._forEach(n=>n.type=e)}get spread(){return this._spread}set spread(e){if(this._spread=e,this._oscillators.length>1){const n=-e/2,r=e/(this._oscillators.length-1);this._forEach((i,a)=>i.detune.value=n+r*a)}}get count(){return this._oscillators.length}set count(e){if(gu(e,1),this._oscillators.length!==e){this._forEach(n=>n.dispose()),this._oscillators=[];for(let n=0;n<e;n++){const r=new Kn({context:this.context,volume:-6-e*1.1,type:this._type,phase:this._phase+n/e*360,partialCount:this._partialCount,onstop:n===0?()=>this.onstop(this):an});this.type==="custom"&&(r.partials=this._partials),this.frequency.connect(r.frequency),this.detune.connect(r.detune),r.detune.overridden=!1,r.connect(this.output),this._oscillators[n]=r}this.spread=this._spread,this.state==="started"&&this._forEach(n=>n.start())}}get phase(){return this._phase}set phase(e){this._phase=e,this._forEach((n,r)=>n.phase=this._phase+r/this.count*360)}get baseType(){return this._oscillators[0].baseType}set baseType(e){this._forEach(n=>n.baseType=e),this._type=this._oscillators[0].type}get partials(){return this._oscillators[0].partials}set partials(e){this._partials=e,this._partialCount=this._partials.length,e.length&&(this._type="custom",this._forEach(n=>n.partials=e))}get partialCount(){return this._oscillators[0].partialCount}set partialCount(e){this._partialCount=e,this._forEach(n=>n.partialCount=e),this._type=this._oscillators[0].type}asArray(e=1024){return dn(this,void 0,void 0,function*(){return Sf(this,e)})}dispose(){return super.dispose(),this.frequency.dispose(),this.detune.dispose(),this._forEach(e=>e.dispose()),this}}class lv extends Eo{constructor(){super(Ve(lv.getDefaults(),arguments,["frequency","modulationFrequency"])),this.name="PWMOscillator",this.sourceType="pwm",this._scale=new vf({context:this.context,value:2});const e=Ve(lv.getDefaults(),arguments,["frequency","modulationFrequency"]);this._pulse=new Dh({context:this.context,frequency:e.modulationFrequency}),this._pulse.carrierType="sine",this.modulationFrequency=this._pulse.frequency,this._modulator=new Kn({context:this.context,detune:e.detune,frequency:e.frequency,onstop:()=>this.onstop(this),phase:e.phase}),this.frequency=this._modulator.frequency,this.detune=this._modulator.detune,this._modulator.chain(this._scale,this._pulse.width),this._pulse.connect(this.output),In(this,["modulationFrequency","frequency","detune"])}static getDefaults(){return Object.assign(Eo.getDefaults(),{detune:0,frequency:440,modulationFrequency:.4,phase:0,type:"pwm"})}_start(e){e=this.toSeconds(e),this._modulator.start(e),this._pulse.start(e)}_stop(e){e=this.toSeconds(e),this._modulator.stop(e),this._pulse.stop(e)}_restart(e){this._modulator.restart(e),this._pulse.restart(e)}get type(){return"pwm"}get baseType(){return"pwm"}get partials(){return[]}get partialCount(){return 0}get phase(){return this._modulator.phase}set phase(e){this._modulator.phase=e}asArray(e=1024){return dn(this,void 0,void 0,function*(){return Sf(this,e)})}dispose(){return super.dispose(),this._pulse.dispose(),this._scale.dispose(),this._modulator.dispose(),this}}const eA={am:ov,fat:sv,fm:av,oscillator:Kn,pulse:Dh,pwm:lv};class uv extends Eo{constructor(){super(Ve(uv.getDefaults(),arguments,["frequency","type"])),this.name="OmniOscillator";const e=Ve(uv.getDefaults(),arguments,["frequency","type"]);this.frequency=new Cr({context:this.context,units:"frequency",value:e.frequency}),this.detune=new Cr({context:this.context,units:"cents",value:e.detune}),In(this,["frequency","detune"]),this.set(e)}static getDefaults(){return Object.assign(Kn.getDefaults(),av.getDefaults(),ov.getDefaults(),sv.getDefaults(),Dh.getDefaults(),lv.getDefaults())}_start(e){this._oscillator.start(e)}_stop(e){this._oscillator.stop(e)}_restart(e){return this._oscillator.restart(e),this}get type(){let e="";return["am","fm","fat"].some(n=>this._sourceType===n)&&(e=this._sourceType),e+this._oscillator.type}set type(e){e.substr(0,2)==="fm"?(this._createNewOscillator("fm"),this._oscillator=this._oscillator,this._oscillator.type=e.substr(2)):e.substr(0,2)==="am"?(this._createNewOscillator("am"),this._oscillator=this._oscillator,this._oscillator.type=e.substr(2)):e.substr(0,3)==="fat"?(this._createNewOscillator("fat"),this._oscillator=this._oscillator,this._oscillator.type=e.substr(3)):e==="pwm"?(this._createNewOscillator("pwm"),this._oscillator=this._oscillator):e==="pulse"?this._createNewOscillator("pulse"):(this._createNewOscillator("oscillator"),this._oscillator=this._oscillator,this._oscillator.type=e)}get partials(){return this._oscillator.partials}set partials(e){!this._getOscType(this._oscillator,"pulse")&&!this._getOscType(this._oscillator,"pwm")&&(this._oscillator.partials=e)}get partialCount(){return this._oscillator.partialCount}set partialCount(e){!this._getOscType(this._oscillator,"pulse")&&!this._getOscType(this._oscillator,"pwm")&&(this._oscillator.partialCount=e)}set(e){return Reflect.has(e,"type")&&e.type&&(this.type=e.type),super.set(e),this}_createNewOscillator(e){if(e!==this._sourceType){this._sourceType=e;const n=eA[e],r=this.now();if(this._oscillator){const i=this._oscillator;i.stop(r),this.context.setTimeout(()=>i.dispose(),this.blockTime)}this._oscillator=new n({context:this.context}),this.frequency.connect(this._oscillator.frequency),this.detune.connect(this._oscillator.detune),this._oscillator.connect(this.output),this._oscillator.onstop=()=>this.onstop(this),this.state==="started"&&this._oscillator.start(r)}}get phase(){return this._oscillator.phase}set phase(e){this._oscillator.phase=e}get sourceType(){return this._sourceType}set sourceType(e){let n="sine";this._oscillator.type!=="pwm"&&this._oscillator.type!=="pulse"&&(n=this._oscillator.type),e==="fm"?this.type="fm"+n:e==="am"?this.type="am"+n:e==="fat"?this.type="fat"+n:e==="oscillator"?this.type=n:e==="pulse"?this.type="pulse":e==="pwm"&&(this.type="pwm")}_getOscType(e,n){return e instanceof eA[n]}get baseType(){return this._oscillator.baseType}set baseType(e){!this._getOscType(this._oscillator,"pulse")&&!this._getOscType(this._oscillator,"pwm")&&e!=="pulse"&&e!=="pwm"&&(this._oscillator.baseType=e)}get width(){if(this._getOscType(this._oscillator,"pulse"))return this._oscillator.width}get count(){if(this._getOscType(this._oscillator,"fat"))return this._oscillator.count}set count(e){this._getOscType(this._oscillator,"fat")&&hf(e)&&(this._oscillator.count=e)}get spread(){if(this._getOscType(this._oscillator,"fat"))return this._oscillator.spread}set spread(e){this._getOscType(this._oscillator,"fat")&&hf(e)&&(this._oscillator.spread=e)}get modulationType(){if(this._getOscType(this._oscillator,"fm")||this._getOscType(this._oscillator,"am"))return this._oscillator.modulationType}set modulationType(e){(this._getOscType(this._oscillator,"fm")||this._getOscType(this._oscillator,"am"))&&gs(e)&&(this._oscillator.modulationType=e)}get modulationIndex(){if(this._getOscType(this._oscillator,"fm"))return this._oscillator.modulationIndex}get harmonicity(){if(this._getOscType(this._oscillator,"fm")||this._getOscType(this._oscillator,"am"))return this._oscillator.harmonicity}get modulationFrequency(){if(this._getOscType(this._oscillator,"pwm"))return this._oscillator.modulationFrequency}asArray(e=1024){return dn(this,void 0,void 0,function*(){return Sf(this,e)})}dispose(){return super.dispose(),this.detune.dispose(),this.frequency.dispose(),this._oscillator.dispose(),this}}function iP(t,e=1/0){const n=new WeakMap;return function(r,i){Reflect.defineProperty(r,i,{configurable:!0,enumerable:!0,get:function(){return n.get(this)},set:function(a){gu(a,t,e),n.set(this,a)}})}}function Sl(t,e=1/0){const n=new WeakMap;return function(r,i){Reflect.defineProperty(r,i,{configurable:!0,enumerable:!0,get:function(){return n.get(this)},set:function(a){gu(this.toSeconds(a),t,e),n.set(this,a)}})}}class cv extends Eo{constructor(){super(Ve(cv.getDefaults(),arguments,["url","onload"])),this.name="Player",this._activeSources=new Set;const e=Ve(cv.getDefaults(),arguments,["url","onload"]);this._buffer=new fn({onload:this._onload.bind(this,e.onload),onerror:e.onerror,reverse:e.reverse,url:e.url}),this.autostart=e.autostart,this._loop=e.loop,this._loopStart=e.loopStart,this._loopEnd=e.loopEnd,this._playbackRate=e.playbackRate,this.fadeIn=e.fadeIn,this.fadeOut=e.fadeOut}static getDefaults(){return Object.assign(Eo.getDefaults(),{autostart:!1,fadeIn:0,fadeOut:0,loop:!1,loopEnd:0,loopStart:0,onload:an,onerror:an,playbackRate:1,reverse:!1})}load(e){return dn(this,void 0,void 0,function*(){return yield this._buffer.load(e),this._onload(),this})}_onload(e=an){e(),this.autostart&&this.start()}_onSourceEnd(e){this.onstop(this),this._activeSources.delete(e),this._activeSources.size===0&&!this._synced&&this._state.getValueAtTime(this.now())==="started"&&(this._state.cancel(this.now()),this._state.setStateAtTime("stopped",this.now()))}start(e,n,r){return super.start(e,n,r),this}_start(e,n,r){this._loop?n=hh(n,this._loopStart):n=hh(n,0);const i=this.toSeconds(n),a=r;r=hh(r,Math.max(this._buffer.duration-i,0));let u=this.toSeconds(r);u=u/this._playbackRate,e=this.toSeconds(e);const c=new rv({url:this._buffer,context:this.context,fadeIn:this.fadeIn,fadeOut:this.fadeOut,loop:this._loop,loopEnd:this._loopEnd,loopStart:this._loopStart,onended:this._onSourceEnd.bind(this),playbackRate:this._playbackRate}).connect(this.output);!this._loop&&!this._synced&&(this._state.cancel(e+u),this._state.setStateAtTime("stopped",e+u,{implicitEnd:!0})),this._activeSources.add(c),this._loop&&Bo(a)?c.start(e,i):c.start(e,i,u-this.toSeconds(this.fadeOut))}_stop(e){const n=this.toSeconds(e);this._activeSources.forEach(r=>r.stop(n))}restart(e,n,r){return super.restart(e,n,r),this}_restart(e,n,r){this._stop(e),this._start(e,n,r)}seek(e,n){const r=this.toSeconds(n);if(this._state.getValueAtTime(r)==="started"){const i=this.toSeconds(e);this._stop(r),this._start(r,i)}return this}setLoopPoints(e,n){return this.loopStart=e,this.loopEnd=n,this}get loopStart(){return this._loopStart}set loopStart(e){this._loopStart=e,this.buffer.loaded&&gu(this.toSeconds(e),0,this.buffer.duration),this._activeSources.forEach(n=>{n.loopStart=e})}get loopEnd(){return this._loopEnd}set loopEnd(e){this._loopEnd=e,this.buffer.loaded&&gu(this.toSeconds(e),0,this.buffer.duration),this._activeSources.forEach(n=>{n.loopEnd=e})}get buffer(){return this._buffer}set buffer(e){this._buffer.set(e)}get loop(){return this._loop}set loop(e){if(this._loop!==e&&(this._loop=e,this._activeSources.forEach(n=>{n.loop=e}),e)){const n=this._state.getNextState("stopped",this.now());n&&this._state.cancel(n.time)}}get playbackRate(){return this._playbackRate}set playbackRate(e){this._playbackRate=e;const n=this.now(),r=this._state.getNextState("stopped",n);r&&r.implicitEnd&&(this._state.cancel(r.time),this._activeSources.forEach(i=>i.cancelStop())),this._activeSources.forEach(i=>{i.playbackRate.setValueAtTime(e,n)})}get reverse(){return this._buffer.reverse}set reverse(e){this._buffer.reverse=e}get loaded(){return this._buffer.loaded}dispose(){return super.dispose(),this._activeSources.forEach(e=>e.dispose()),this._activeSources.clear(),this._buffer.dispose(),this}}Ta([Sl(0)],cv.prototype,"fadeIn",void 0);Ta([Sl(0)],cv.prototype,"fadeOut",void 0);class cl extends Lt{constructor(){super(Ve(cl.getDefaults(),arguments,["attack","decay","sustain","release"])),this.name="Envelope",this._sig=new Cr({context:this.context,value:0}),this.output=this._sig,this.input=void 0;const e=Ve(cl.getDefaults(),arguments,["attack","decay","sustain","release"]);this.attack=e.attack,this.decay=e.decay,this.sustain=e.sustain,this.release=e.release,this.attackCurve=e.attackCurve,this.releaseCurve=e.releaseCurve,this.decayCurve=e.decayCurve}static getDefaults(){return Object.assign(Lt.getDefaults(),{attack:.01,attackCurve:"linear",decay:.1,decayCurve:"exponential",release:1,releaseCurve:"exponential",sustain:.5})}get value(){return this.getValueAtTime(this.now())}_getCurve(e,n){if(gs(e))return e;{let r;for(r in I0)if(I0[r][n]===e)return r;return e}}_setCurve(e,n,r){if(gs(r)&&Reflect.has(I0,r)){const i=I0[r];Xc(i)?e!=="_decayCurve"&&(this[e]=i[n]):this[e]=i}else if(Ea(r)&&e!=="_decayCurve")this[e]=r;else throw new Error("Envelope: invalid curve: "+r)}get attackCurve(){return this._getCurve(this._attackCurve,"In")}set attackCurve(e){this._setCurve("_attackCurve","In",e)}get releaseCurve(){return this._getCurve(this._releaseCurve,"Out")}set releaseCurve(e){this._setCurve("_releaseCurve","Out",e)}get decayCurve(){return this._decayCurve}set decayCurve(e){At(["linear","exponential"].some(n=>n===e),`Invalid envelope curve: ${e}`),this._decayCurve=e}triggerAttack(e,n=1){this.log("triggerAttack",e,n),e=this.toSeconds(e);let i=this.toSeconds(this.attack);const a=this.toSeconds(this.decay),u=this.getValueAtTime(e);if(u>0){const c=1/i;i=(1-u)/c}if(i<this.sampleTime)this._sig.cancelScheduledValues(e),this._sig.setValueAtTime(n,e);else if(this._attackCurve==="linear")this._sig.linearRampTo(n,i,e);else if(this._attackCurve==="exponential")this._sig.targetRampTo(n,i,e);else{this._sig.cancelAndHoldAtTime(e);let c=this._attackCurve;for(let f=1;f<c.length;f++)if(c[f-1]<=u&&u<=c[f]){c=this._attackCurve.slice(f),c[0]=u;break}this._sig.setValueCurveAtTime(c,e,i,n)}if(a&&this.sustain<1){const c=n*this.sustain,f=e+i;this.log("decay",f),this._decayCurve==="linear"?this._sig.linearRampToValueAtTime(c,a+f):this._sig.exponentialApproachValueAtTime(c,f,a)}return this}triggerRelease(e){this.log("triggerRelease",e),e=this.toSeconds(e);const n=this.getValueAtTime(e);if(n>0){const r=this.toSeconds(this.release);r<this.sampleTime?this._sig.setValueAtTime(0,e):this._releaseCurve==="linear"?this._sig.linearRampTo(0,r,e):this._releaseCurve==="exponential"?this._sig.targetRampTo(0,r,e):(At(Ea(this._releaseCurve),"releaseCurve must be either 'linear', 'exponential' or an array"),this._sig.cancelAndHoldAtTime(e),this._sig.setValueCurveAtTime(this._releaseCurve,e,r,n))}return this}getValueAtTime(e){return this._sig.getValueAtTime(e)}triggerAttackRelease(e,n,r=1){return n=this.toSeconds(n),this.triggerAttack(n,r),this.triggerRelease(n+this.toSeconds(e)),this}cancel(e){return this._sig.cancelScheduledValues(this.toSeconds(e)),this}connect(e,n=0,r=0){return qb(this,e,n,r),this}asArray(e=1024){return dn(this,void 0,void 0,function*(){const n=e/this.context.sampleRate,r=new jb(1,n,this.context.sampleRate),i=this.toSeconds(this.attack)+this.toSeconds(this.decay),a=i+this.toSeconds(this.release),u=a*.1,c=a+u,f=new this.constructor(Object.assign(this.get(),{attack:n*this.toSeconds(this.attack)/c,decay:n*this.toSeconds(this.decay)/c,release:n*this.toSeconds(this.release)/c,context:r}));return f._sig.toDestination(),f.triggerAttackRelease(n*(i+u)/c,0),(yield r.render()).getChannelData(0)})}dispose(){return super.dispose(),this._sig.dispose(),this}}Ta([Sl(0)],cl.prototype,"attack",void 0);Ta([Sl(0)],cl.prototype,"decay",void 0);Ta([iP(0,1)],cl.prototype,"sustain",void 0);Ta([Sl(0)],cl.prototype,"release",void 0);const I0=(()=>{let e,n;const r=[];for(e=0;e<128;e++)r[e]=Math.sin(e/127*(Math.PI/2));const i=[],a=6.4;for(e=0;e<127;e++){n=e/127;const y=Math.sin(n*(Math.PI*2)*a-Math.PI/2)+1;i[e]=y/10+n*.83}i[127]=1;const u=[],c=5;for(e=0;e<128;e++)u[e]=Math.ceil(e/127*c)/c;const f=[];for(e=0;e<128;e++)n=e/127,f[e]=.5*(1-Math.cos(Math.PI*n));const p=[];for(e=0;e<128;e++){n=e/127;const y=Math.pow(n,3)*4+.2,b=Math.cos(y*Math.PI*2*n);p[e]=Math.abs(b*(1-n))}function v(y){const b=new Array(y.length);for(let E=0;E<y.length;E++)b[E]=1-y[E];return b}function m(y){return y.slice(0).reverse()}return{bounce:{In:v(p),Out:p},cosine:{In:r,Out:m(r)},exponential:"exponential",linear:"linear",ripple:{In:i,Out:v(i)},sine:{In:f,Out:v(f)},step:{In:u,Out:v(u)}}})();class gf extends Lt{constructor(){super(Ve(gf.getDefaults(),arguments)),this._scheduledEvents=[],this._synced=!1,this._original_triggerAttack=this.triggerAttack,this._original_triggerRelease=this.triggerRelease;const e=Ve(gf.getDefaults(),arguments);this._volume=this.output=new mf({context:this.context,volume:e.volume}),this.volume=this._volume.volume,In(this,"volume")}static getDefaults(){return Object.assign(Lt.getDefaults(),{volume:0})}sync(){return this._syncState()&&(this._syncMethod("triggerAttack",1),this._syncMethod("triggerRelease",0)),this}_syncState(){let e=!1;return this._synced||(this._synced=!0,e=!0),e}_syncMethod(e,n){const r=this["_original_"+e]=this[e];this[e]=(...i)=>{const a=i[n],u=this.context.transport.schedule(c=>{i[n]=c,r.apply(this,i)},a);this._scheduledEvents.push(u)}}unsync(){return this._scheduledEvents.forEach(e=>this.context.transport.clear(e)),this._scheduledEvents=[],this._synced&&(this._synced=!1,this.triggerAttack=this._original_triggerAttack,this.triggerRelease=this._original_triggerRelease),this}triggerAttackRelease(e,n,r,i){const a=this.toSeconds(r),u=this.toSeconds(n);return this.triggerAttack(e,a,i),this.triggerRelease(a+u),this}dispose(){return super.dispose(),this._volume.dispose(),this.unsync(),this._scheduledEvents=[],this}}class yf extends gf{constructor(){super(Ve(yf.getDefaults(),arguments));const e=Ve(yf.getDefaults(),arguments);this.portamento=e.portamento,this.onsilence=e.onsilence}static getDefaults(){return Object.assign(gf.getDefaults(),{detune:0,onsilence:an,portamento:0})}triggerAttack(e,n,r=1){this.log("triggerAttack",e,n,r);const i=this.toSeconds(n);return this._triggerEnvelopeAttack(i,r),this.setNote(e,i),this}triggerRelease(e){this.log("triggerRelease",e);const n=this.toSeconds(e);return this._triggerEnvelopeRelease(n),this}setNote(e,n){const r=this.toSeconds(n),i=e instanceof Vo?e.toFrequency():e;if(this.portamento>0&&this.getLevelAtTime(r)>.05){const a=this.toSeconds(this.portamento);this.frequency.exponentialRampTo(i,a,r)}else this.frequency.setValueAtTime(i,r);return this}}Ta([Sl(0)],yf.prototype,"portamento",void 0);class Vb extends cl{constructor(){super(Ve(Vb.getDefaults(),arguments,["attack","decay","sustain","release"])),this.name="AmplitudeEnvelope",this._gainNode=new Ti({context:this.context,gain:0}),this.output=this._gainNode,this.input=this._gainNode,this._sig.connect(this._gainNode.gain),this.output=this._gainNode,this.input=this._gainNode}dispose(){return super.dispose(),this._gainNode.dispose(),this}}class Lh extends yf{constructor(){super(Ve(Lh.getDefaults(),arguments)),this.name="Synth";const e=Ve(Lh.getDefaults(),arguments);this.oscillator=new uv(Object.assign({context:this.context,detune:e.detune,onstop:()=>this.onsilence(this)},e.oscillator)),this.frequency=this.oscillator.frequency,this.detune=this.oscillator.detune,this.envelope=new Vb(Object.assign({context:this.context},e.envelope)),this.oscillator.chain(this.envelope,this.output),In(this,["oscillator","frequency","detune","envelope"])}static getDefaults(){return Object.assign(yf.getDefaults(),{envelope:Object.assign(JO(cl.getDefaults(),Object.keys(Lt.getDefaults())),{attack:.005,decay:.1,release:1,sustain:.3}),oscillator:Object.assign(JO(uv.getDefaults(),[...Object.keys(Eo.getDefaults()),"frequency","detune"]),{type:"triangle"})})}_triggerEnvelopeAttack(e,n){if(this.envelope.triggerAttack(e,n),this.oscillator.start(e),this.envelope.sustain===0){const r=this.toSeconds(this.envelope.attack),i=this.toSeconds(this.envelope.decay);this.oscillator.stop(e+r+i)}}_triggerEnvelopeRelease(e){this.envelope.triggerRelease(e),this.oscillator.stop(e+this.toSeconds(this.envelope.release))}getLevelAtTime(e){return e=this.toSeconds(e),this.envelope.getValueAtTime(e)}dispose(){return super.dispose(),this.oscillator.dispose(),this.envelope.dispose(),this}}class fv extends Lh{constructor(){super(Ve(fv.getDefaults(),arguments)),this.name="MembraneSynth",this.portamento=0;const e=Ve(fv.getDefaults(),arguments);this.pitchDecay=e.pitchDecay,this.octaves=e.octaves,In(this,["oscillator","envelope"])}static getDefaults(){return dh(yf.getDefaults(),Lh.getDefaults(),{envelope:{attack:.001,attackCurve:"exponential",decay:.4,release:1.4,sustain:.01},octaves:10,oscillator:{type:"sine"},pitchDecay:.05})}setNote(e,n){const r=this.toSeconds(n),i=this.toFrequency(e instanceof Vo?e.toFrequency():e),a=i*this.octaves;return this.oscillator.frequency.setValueAtTime(a,r),this.oscillator.frequency.exponentialRampToValueAtTime(i,r+this.toSeconds(this.pitchDecay)),this}dispose(){return super.dispose(),this}}Ta([iP(0)],fv.prototype,"octaves",void 0);Ta([Sl(0)],fv.prototype,"pitchDecay",void 0);const oP=new Set;function Gb(t){oP.add(t)}function aP(t,e){const n=`registerProcessor("${t}", ${e})`;oP.add(n)}const aY=`
|
|
601
|
+
/**
|
|
602
|
+
* The base AudioWorkletProcessor for use in Tone.js. Works with the [[ToneAudioWorklet]].
|
|
603
|
+
*/
|
|
604
|
+
class ToneAudioWorkletProcessor extends AudioWorkletProcessor {
|
|
605
|
+
|
|
606
|
+
constructor(options) {
|
|
607
|
+
|
|
608
|
+
super(options);
|
|
609
|
+
/**
|
|
610
|
+
* If the processor was disposed or not. Keep alive until it's disposed.
|
|
611
|
+
*/
|
|
612
|
+
this.disposed = false;
|
|
613
|
+
/**
|
|
614
|
+
* The number of samples in the processing block
|
|
615
|
+
*/
|
|
616
|
+
this.blockSize = 128;
|
|
617
|
+
/**
|
|
618
|
+
* the sample rate
|
|
619
|
+
*/
|
|
620
|
+
this.sampleRate = sampleRate;
|
|
621
|
+
|
|
622
|
+
this.port.onmessage = (event) => {
|
|
623
|
+
// when it receives a dispose
|
|
624
|
+
if (event.data === "dispose") {
|
|
625
|
+
this.disposed = true;
|
|
626
|
+
}
|
|
627
|
+
};
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
`;Gb(aY);const sY=`
|
|
631
|
+
/**
|
|
632
|
+
* Abstract class for a single input/output processor.
|
|
633
|
+
* has a 'generate' function which processes one sample at a time
|
|
634
|
+
*/
|
|
635
|
+
class SingleIOProcessor extends ToneAudioWorkletProcessor {
|
|
636
|
+
|
|
637
|
+
constructor(options) {
|
|
638
|
+
super(Object.assign(options, {
|
|
639
|
+
numberOfInputs: 1,
|
|
640
|
+
numberOfOutputs: 1
|
|
641
|
+
}));
|
|
642
|
+
/**
|
|
643
|
+
* Holds the name of the parameter and a single value of that
|
|
644
|
+
* parameter at the current sample
|
|
645
|
+
* @type { [name: string]: number }
|
|
646
|
+
*/
|
|
647
|
+
this.params = {}
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
/**
|
|
651
|
+
* Generate an output sample from the input sample and parameters
|
|
652
|
+
* @abstract
|
|
653
|
+
* @param input number
|
|
654
|
+
* @param channel number
|
|
655
|
+
* @param parameters { [name: string]: number }
|
|
656
|
+
* @returns number
|
|
657
|
+
*/
|
|
658
|
+
generate(){}
|
|
659
|
+
|
|
660
|
+
/**
|
|
661
|
+
* Update the private params object with the
|
|
662
|
+
* values of the parameters at the given index
|
|
663
|
+
* @param parameters { [name: string]: Float32Array },
|
|
664
|
+
* @param index number
|
|
665
|
+
*/
|
|
666
|
+
updateParams(parameters, index) {
|
|
667
|
+
for (const paramName in parameters) {
|
|
668
|
+
const param = parameters[paramName];
|
|
669
|
+
if (param.length > 1) {
|
|
670
|
+
this.params[paramName] = parameters[paramName][index];
|
|
671
|
+
} else {
|
|
672
|
+
this.params[paramName] = parameters[paramName][0];
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
/**
|
|
678
|
+
* Process a single frame of the audio
|
|
679
|
+
* @param inputs Float32Array[][]
|
|
680
|
+
* @param outputs Float32Array[][]
|
|
681
|
+
*/
|
|
682
|
+
process(inputs, outputs, parameters) {
|
|
683
|
+
const input = inputs[0];
|
|
684
|
+
const output = outputs[0];
|
|
685
|
+
// get the parameter values
|
|
686
|
+
const channelCount = Math.max(input && input.length || 0, output.length);
|
|
687
|
+
for (let sample = 0; sample < this.blockSize; sample++) {
|
|
688
|
+
this.updateParams(parameters, sample);
|
|
689
|
+
for (let channel = 0; channel < channelCount; channel++) {
|
|
690
|
+
const inputSample = input && input.length ? input[channel][sample] : 0;
|
|
691
|
+
output[channel][sample] = this.generate(inputSample, channel, this.params);
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
return !this.disposed;
|
|
695
|
+
}
|
|
696
|
+
};
|
|
697
|
+
`;Gb(sY);const lY=`
|
|
698
|
+
/**
|
|
699
|
+
* A multichannel buffer for use within an AudioWorkletProcessor as a delay line
|
|
700
|
+
*/
|
|
701
|
+
class DelayLine {
|
|
702
|
+
|
|
703
|
+
constructor(size, channels) {
|
|
704
|
+
this.buffer = [];
|
|
705
|
+
this.writeHead = []
|
|
706
|
+
this.size = size;
|
|
707
|
+
|
|
708
|
+
// create the empty channels
|
|
709
|
+
for (let i = 0; i < channels; i++) {
|
|
710
|
+
this.buffer[i] = new Float32Array(this.size);
|
|
711
|
+
this.writeHead[i] = 0;
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
/**
|
|
716
|
+
* Push a value onto the end
|
|
717
|
+
* @param channel number
|
|
718
|
+
* @param value number
|
|
719
|
+
*/
|
|
720
|
+
push(channel, value) {
|
|
721
|
+
this.writeHead[channel] += 1;
|
|
722
|
+
if (this.writeHead[channel] > this.size) {
|
|
723
|
+
this.writeHead[channel] = 0;
|
|
724
|
+
}
|
|
725
|
+
this.buffer[channel][this.writeHead[channel]] = value;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
/**
|
|
729
|
+
* Get the recorded value of the channel given the delay
|
|
730
|
+
* @param channel number
|
|
731
|
+
* @param delay number delay samples
|
|
732
|
+
*/
|
|
733
|
+
get(channel, delay) {
|
|
734
|
+
let readHead = this.writeHead[channel] - Math.floor(delay);
|
|
735
|
+
if (readHead < 0) {
|
|
736
|
+
readHead += this.size;
|
|
737
|
+
}
|
|
738
|
+
return this.buffer[channel][readHead];
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
`;Gb(lY);const uY="feedback-comb-filter",cY=`
|
|
742
|
+
class FeedbackCombFilterWorklet extends SingleIOProcessor {
|
|
743
|
+
|
|
744
|
+
constructor(options) {
|
|
745
|
+
super(options);
|
|
746
|
+
this.delayLine = new DelayLine(this.sampleRate, options.channelCount || 2);
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
static get parameterDescriptors() {
|
|
750
|
+
return [{
|
|
751
|
+
name: "delayTime",
|
|
752
|
+
defaultValue: 0.1,
|
|
753
|
+
minValue: 0,
|
|
754
|
+
maxValue: 1,
|
|
755
|
+
automationRate: "k-rate"
|
|
756
|
+
}, {
|
|
757
|
+
name: "feedback",
|
|
758
|
+
defaultValue: 0.5,
|
|
759
|
+
minValue: 0,
|
|
760
|
+
maxValue: 0.9999,
|
|
761
|
+
automationRate: "k-rate"
|
|
762
|
+
}];
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
generate(input, channel, parameters) {
|
|
766
|
+
const delayedSample = this.delayLine.get(channel, parameters.delayTime * this.sampleRate);
|
|
767
|
+
this.delayLine.push(channel, input + delayedSample * parameters.feedback);
|
|
768
|
+
return delayedSample;
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
`;aP(uY,cY);class dv extends gf{constructor(){super(Ve(dv.getDefaults(),arguments,["urls","onload","baseUrl"],"urls")),this.name="Sampler",this._activeSources=new Map;const e=Ve(dv.getDefaults(),arguments,["urls","onload","baseUrl"],"urls"),n={};Object.keys(e.urls).forEach(r=>{const i=parseInt(r,10);if(At(M0(r)||hf(i)&&isFinite(i),`url key is neither a note or midi pitch: ${r}`),M0(r)){const a=new Vo(this.context,r).toMidi();n[a]=e.urls[r]}else hf(i)&&isFinite(i)&&(n[i]=e.urls[i])}),this._buffers=new Ub({urls:n,onload:e.onload,baseUrl:e.baseUrl,onerror:e.onerror}),this.attack=e.attack,this.release=e.release,this.curve=e.curve,this._buffers.loaded&&Promise.resolve().then(e.onload)}static getDefaults(){return Object.assign(gf.getDefaults(),{attack:0,baseUrl:"",curve:"exponential",onload:an,onerror:an,release:.1,urls:{}})}_findClosest(e){let r=0;for(;r<96;){if(this._buffers.has(e+r))return-r;if(this._buffers.has(e-r))return r;r++}throw new Error(`No available buffers for note: ${e}`)}triggerAttack(e,n,r=1){return this.log("triggerAttack",e,n,r),Array.isArray(e)||(e=[e]),e.forEach(i=>{const a=rP(new Vo(this.context,i).toFrequency()),u=Math.round(a),c=a-u,f=this._findClosest(u),p=u-f,v=this._buffers.get(p),m=nP(f+c),y=new rv({url:v,context:this.context,curve:this.curve,fadeIn:this.attack,fadeOut:this.release,playbackRate:m}).connect(this.output);y.start(n,0,v.duration/m,r),Ea(this._activeSources.get(u))||this._activeSources.set(u,[]),this._activeSources.get(u).push(y),y.onended=()=>{if(this._activeSources&&this._activeSources.has(u)){const b=this._activeSources.get(u),E=b.indexOf(y);E!==-1&&b.splice(E,1)}}}),this}triggerRelease(e,n){return this.log("triggerRelease",e,n),Array.isArray(e)||(e=[e]),e.forEach(r=>{const i=new Vo(this.context,r).toMidi();if(this._activeSources.has(i)&&this._activeSources.get(i).length){const a=this._activeSources.get(i);n=this.toSeconds(n),a.forEach(u=>{u.stop(n)}),this._activeSources.set(i,[])}}),this}releaseAll(e){const n=this.toSeconds(e);return this._activeSources.forEach(r=>{for(;r.length;)r.shift().stop(n)}),this}sync(){return this._syncState()&&(this._syncMethod("triggerAttack",1),this._syncMethod("triggerRelease",1)),this}triggerAttackRelease(e,n,r,i=1){const a=this.toSeconds(r);return this.triggerAttack(e,a,i),Ea(n)?(At(Ea(e),"notes must be an array when duration is array"),e.forEach((u,c)=>{const f=n[Math.min(c,n.length-1)];this.triggerRelease(u,a+this.toSeconds(f))})):this.triggerRelease(e,a+this.toSeconds(n)),this}add(e,n,r){if(At(M0(e)||isFinite(e),`note must be a pitch or midi: ${e}`),M0(e)){const i=new Vo(this.context,e).toMidi();this._buffers.add(i,n,r)}else this._buffers.add(e,n,r);return this}get loaded(){return this._buffers.loaded}dispose(){return super.dispose(),this._buffers.dispose(),this._activeSources.forEach(e=>{e.forEach(n=>n.dispose())}),this._activeSources.clear(),this}}Ta([Sl(0)],dv.prototype,"attack",void 0);Ta([Sl(0)],dv.prototype,"release",void 0);class Fy extends Lt{constructor(){super(Object.assign(Ve(Fy.getDefaults(),arguments,["pan"]))),this.name="Panner",this._panner=this.context.createStereoPanner(),this.input=this._panner,this.output=this._panner;const e=Ve(Fy.getDefaults(),arguments,["pan"]);this.pan=new xn({context:this.context,param:this._panner.pan,value:e.pan,minValue:-1,maxValue:1}),this._panner.channelCount=e.channelCount,this._panner.channelCountMode="explicit",In(this,"pan")}static getDefaults(){return Object.assign(Lt.getDefaults(),{pan:0,channelCount:1})}dispose(){return super.dispose(),this._panner.disconnect(),this.pan.dispose(),this}}const fY="bit-crusher",dY=`
|
|
772
|
+
class BitCrusherWorklet extends SingleIOProcessor {
|
|
773
|
+
|
|
774
|
+
static get parameterDescriptors() {
|
|
775
|
+
return [{
|
|
776
|
+
name: "bits",
|
|
777
|
+
defaultValue: 12,
|
|
778
|
+
minValue: 1,
|
|
779
|
+
maxValue: 16,
|
|
780
|
+
automationRate: 'k-rate'
|
|
781
|
+
}];
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
generate(input, _channel, parameters) {
|
|
785
|
+
const step = Math.pow(0.5, parameters.bits - 1);
|
|
786
|
+
const val = step * Math.floor(input / step + 0.5);
|
|
787
|
+
return val;
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
`;aP(fY,dY);class Bn extends Lt{constructor(){super(Ve(Bn.getDefaults(),arguments,["solo"])),this.name="Solo";const e=Ve(Bn.getDefaults(),arguments,["solo"]);this.input=this.output=new Ti({context:this.context}),Bn._allSolos.has(this.context)||Bn._allSolos.set(this.context,new Set),Bn._allSolos.get(this.context).add(this),this.solo=e.solo}static getDefaults(){return Object.assign(Lt.getDefaults(),{solo:!1})}get solo(){return this._isSoloed()}set solo(e){e?this._addSolo():this._removeSolo(),Bn._allSolos.get(this.context).forEach(n=>n._updateSolo())}get muted(){return this.input.gain.value===0}_addSolo(){Bn._soloed.has(this.context)||Bn._soloed.set(this.context,new Set),Bn._soloed.get(this.context).add(this)}_removeSolo(){Bn._soloed.has(this.context)&&Bn._soloed.get(this.context).delete(this)}_isSoloed(){return Bn._soloed.has(this.context)&&Bn._soloed.get(this.context).has(this)}_noSolos(){return!Bn._soloed.has(this.context)||Bn._soloed.has(this.context)&&Bn._soloed.get(this.context).size===0}_updateSolo(){this._isSoloed()?this.input.gain.value=1:this._noSolos()?this.input.gain.value=1:this.input.gain.value=0}dispose(){return super.dispose(),Bn._allSolos.get(this.context).delete(this),this._removeSolo(),this}}Bn._allSolos=new Map;Bn._soloed=new Map;class $y extends Lt{constructor(){super(Ve($y.getDefaults(),arguments,["pan","volume"])),this.name="PanVol";const e=Ve($y.getDefaults(),arguments,["pan","volume"]);this._panner=this.input=new Fy({context:this.context,pan:e.pan,channelCount:e.channelCount}),this.pan=this._panner.pan,this._volume=this.output=new mf({context:this.context,volume:e.volume}),this.volume=this._volume.volume,this._panner.connect(this._volume),this.mute=e.mute,In(this,["pan","volume"])}static getDefaults(){return Object.assign(Lt.getDefaults(),{mute:!1,pan:0,volume:0,channelCount:1})}get mute(){return this._volume.mute}set mute(e){this._volume.mute=e}dispose(){return super.dispose(),this._panner.dispose(),this.pan.dispose(),this._volume.dispose(),this.volume.dispose(),this}}class $c extends Lt{constructor(){super(Ve($c.getDefaults(),arguments,["volume","pan"])),this.name="Channel";const e=Ve($c.getDefaults(),arguments,["volume","pan"]);this._solo=this.input=new Bn({solo:e.solo,context:this.context}),this._panVol=this.output=new $y({context:this.context,pan:e.pan,volume:e.volume,mute:e.mute,channelCount:e.channelCount}),this.pan=this._panVol.pan,this.volume=this._panVol.volume,this._solo.connect(this._panVol),In(this,["pan","volume"])}static getDefaults(){return Object.assign(Lt.getDefaults(),{pan:0,volume:0,mute:!1,solo:!1,channelCount:1})}get solo(){return this._solo.solo}set solo(e){this._solo.solo=e}get muted(){return this._solo.muted||this.mute}get mute(){return this._panVol.mute}set mute(e){this._panVol.mute=e}_getBus(e){return $c.buses.has(e)||$c.buses.set(e,new Ti({context:this.context})),$c.buses.get(e)}send(e,n=0){const r=this._getBus(e),i=new Ti({context:this.context,units:"decibels",gain:n});return this.connect(i),i.connect(r),i}receive(e){return this._getBus(e).connect(this),this}dispose(){return super.dispose(),this._panVol.dispose(),this.pan.dispose(),this.volume.dispose(),this._solo.dispose(),this}}$c.buses=new Map;class hY extends Lt{constructor(){super(...arguments),this.name="Listener",this.positionX=new xn({context:this.context,param:this.context.rawContext.listener.positionX}),this.positionY=new xn({context:this.context,param:this.context.rawContext.listener.positionY}),this.positionZ=new xn({context:this.context,param:this.context.rawContext.listener.positionZ}),this.forwardX=new xn({context:this.context,param:this.context.rawContext.listener.forwardX}),this.forwardY=new xn({context:this.context,param:this.context.rawContext.listener.forwardY}),this.forwardZ=new xn({context:this.context,param:this.context.rawContext.listener.forwardZ}),this.upX=new xn({context:this.context,param:this.context.rawContext.listener.upX}),this.upY=new xn({context:this.context,param:this.context.rawContext.listener.upY}),this.upZ=new xn({context:this.context,param:this.context.rawContext.listener.upZ})}static getDefaults(){return Object.assign(Lt.getDefaults(),{positionX:0,positionY:0,positionZ:0,forwardX:0,forwardY:0,forwardZ:-1,upX:0,upY:1,upZ:0})}dispose(){return super.dispose(),this.positionX.dispose(),this.positionY.dispose(),this.positionZ.dispose(),this.forwardX.dispose(),this.forwardY.dispose(),this.forwardZ.dispose(),this.upX.dispose(),this.upY.dispose(),this.upZ.dispose(),this}}S_(t=>{t.listener=new hY({context:t})});C_(t=>{t.listener.dispose()});function pY(){return Wo().now()}Wo().transport;Wo().destination;Wo().destination;Wo().listener;Wo().draw;Wo();const mY=[{note:"C4",duration:0},{note:"B3",duration:.2}],vY=[{note:"C5",duration:0},{note:"E5",duration:.2}],tA=.3;function nA(t,e){const n=pY(),r=new Lh().toDestination();t.forEach(i=>{r.triggerAttack(i.note,n+i.duration)}),r.triggerRelease(`+${e}`)}function gY(t){return je.useEffect(()=>{const e=()=>{t.status=="failed"?nA(mY,tA):t.status=="passed"&&nA(vY,tA)};t.status&&e()},[t.status]),ge.jsx(ge.Fragment,{})}const rA={ULTRAWIDE:490,WIDE:400};function yY(){const[t,e]=N.useState(!1),[n,r]=N.useState(!1),[i,a]=N.useState(""),[u,c]=N.useState(0),[f,p]=N.useState(!0),v=A=>{const[S,O]=N.useState(0);return N.useEffect(()=>{function k(){O(window.innerWidth)}return window.addEventListener("resize",k),k(),()=>{window.removeEventListener("resize",k)}},[O]),S>A},m=v(rA.ULTRAWIDE),y=v(rA.WIDE),b=()=>{const{rows:A,state:S,loading:O,error:k}=w8({include_docs:!0});if(N.useEffect(()=>{S==="error"?p(!1):f===!1&&p(!0)},[S]),O&&A.length===0)return ge.jsx(Ic,{style:{marginTop:"60px"},children:ge.jsx($0,{children:"Establishing a connection... 🧐🔎"})});if(S==="error")return ge.jsxs(Ic,{style:{marginTop:"60px"},children:[ge.jsx($0,{children:"Database connection error. 🙅🏽♀️🚫"}),k&&ge.jsx("p",{children:k.message})]});if(A.length===0)return ge.jsx(Ic,{style:{marginTop:"60px"},children:ge.jsx($0,{children:"No entries in the database 🙅🏽♀️🚫"})});const T=A[0].doc,C=T.status;C&&C!=i&&a(C);const w=T.progress;return w&&w!=u&&c(w),ge.jsx("div",{style:{marginTop:"40px"},children:A.map(R=>ge.jsxs("div",{style:{display:"flex",flexDirection:"row"},children:[(m||!n)&&ge.jsx(Ic,{style:{flexDirection:"column",padding:"20px",flexGrow:1,flexShrink:1,marginTop:"20px",marginBottom:"20px"},children:ge.jsx(_W,{db_state:R.doc,defaultClose:!m})}),n&&ge.jsx(Ic,{style:{flexDirection:"column",padding:"20px",marginTop:"20px",marginBottom:"20px"},children:ge.jsx("pre",{children:JSON.stringify(R.doc,null,2)})})]},R.id))})},E=()=>ge.jsxs(kR,{children:[ge.jsx(fy,{shouldDismissPopover:!1,text:t?"Turn off the sound":"Turn on the sound",icon:t?"volume-up":"volume-off",id:"use_end_test_sound",onClick:()=>e(!t)}),ge.jsx(fy,{shouldDismissPopover:!1,text:n?"Turn off the debug mode":"Turn on the debug mode",icon:"bug",id:"use_debug_info",onClick:()=>r(!n)})]});return ge.jsxs("div",{className:"App",style:{minWidth:"310px",margin:"auto"},children:[ge.jsx(bW,{reload_timeout_s:3}),ge.jsxs(kc,{fixedToTop:!0,style:{background:fx.LIGHT_GRAY4,margin:"auto"},children:[ge.jsxs(kc.Group,{align:$m.LEFT,children:[ge.jsxs(kc.Heading,{id:"main-heading",children:[ge.jsx("div",{className:"logo-smol"}),y&&ge.jsx("div",{children:ge.jsx("b",{children:m?"HardPy Operator Panel":"HardPy"})})]}),y&&ge.jsx(kc.Divider,{}),ge.jsx(kc.Heading,{id:"last-exec-heading",children:ge.jsx("div",{children:"Last run:"})}),ge.jsxs("div",{id:"glob-test-status",children:[ge.jsx(Lm,{status:i}),t&&ge.jsx(gY,{status:i},"sound")]}),ge.jsx(kc.Divider,{})]}),ge.jsx(kc.Group,{align:$m.RIGHT,children:ge.jsx(JC,{content:E(),children:ge.jsx(of,{className:"bp3-minimal",icon:"cog"})})})]}),ge.jsx("div",{className:X8,style:{marginBottom:"60px"},children:b()}),ge.jsxs("div",{className:Y8,style:{width:"100%",display:"flex",flexDirection:"row",position:"fixed",bottom:0,background:fx.LIGHT_GRAY5,margin:"auto"},children:[ge.jsx("div",{style:{flexDirection:"column",flexGrow:1,flexShrink:1,marginTop:"auto",marginBottom:"auto",padding:"20px"},children:ge.jsx(wW,{percentage:u,status:i})}),ge.jsx("div",{style:{flexDirection:"column"},children:ge.jsx(P$,{testing_status:i})})]})]})}async function _Y(){try{return`${(await(await fetch("/api/couch")).json()).connection_str}/statestore`}catch(t){console.error(t);return}}const iA=jL.createRoot(document.getElementById("root")),oA=await _Y();if(oA!==void 0){const t=new Ct(oA);iA.render(ge.jsx(N.StrictMode,{children:ge.jsx(f8,{pouchdb:t,children:ge.jsx(yY,{})})}))}else iA.render(ge.jsxs(ge.Fragment,{children:[ge.jsx("h1",{children:"No PouchDB sync URL"}),ge.jsx("p",{children:"Getting the URL from a backend was failed"})]}));console.log=function(){},console.debug=function(){};export{mt as I,dn as _,rh as a,gx as b,jF as p};
|