mirror of
https://gitee.com/270580156/weiyu.git
synced 2026-05-15 19:58:00 +00:00
1173 lines
3.8 MiB
1173 lines
3.8 MiB
var R3e=Object.defineProperty;var QG=e=>{throw TypeError(e)};var A3e=(e,t,n)=>t in e?R3e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var xi=(e,t,n)=>A3e(e,typeof t!="symbol"?t+"":t,n),KI=(e,t,n)=>t.has(e)||QG("Cannot "+n);var Xe=(e,t,n)=>(KI(e,t,"read from private field"),n?n.call(e):t.get(e)),sr=(e,t,n)=>t.has(e)?QG("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Nn=(e,t,n,r)=>(KI(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Jn=(e,t,n)=>(KI(e,t,"access private method"),n);var jg=(e,t,n,r)=>({set _(i){Nn(e,t,i,n)},get _(){return Xe(e,t,r)}});function Wk(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var vo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function K_(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Yce={exports:{}},Vk={},Xce={exports:{}},si={};/**
|
||
* @license React
|
||
* react.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var q_=Symbol.for("react.element"),N3e=Symbol.for("react.portal"),D3e=Symbol.for("react.fragment"),L3e=Symbol.for("react.strict_mode"),F3e=Symbol.for("react.profiler"),j3e=Symbol.for("react.provider"),B3e=Symbol.for("react.context"),H3e=Symbol.for("react.forward_ref"),z3e=Symbol.for("react.suspense"),U3e=Symbol.for("react.memo"),W3e=Symbol.for("react.lazy"),ZG=Symbol.iterator;function V3e(e){return e===null||typeof e!="object"?null:(e=ZG&&e[ZG]||e["@@iterator"],typeof e=="function"?e:null)}var Qce={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Zce=Object.assign,Jce={};function PS(e,t,n){this.props=e,this.context=t,this.refs=Jce,this.updater=n||Qce}PS.prototype.isReactComponent={};PS.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};PS.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function eue(){}eue.prototype=PS.prototype;function gH(e,t,n){this.props=e,this.context=t,this.refs=Jce,this.updater=n||Qce}var vH=gH.prototype=new eue;vH.constructor=gH;Zce(vH,PS.prototype);vH.isPureReactComponent=!0;var JG=Array.isArray,tue=Object.prototype.hasOwnProperty,yH={current:null},nue={key:!0,ref:!0,__self:!0,__source:!0};function rue(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)tue.call(t,r)&&!nue.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:q_,type:e,key:o,ref:a,props:i,_owner:yH.current}}function K3e(e,t){return{$$typeof:q_,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function bH(e){return typeof e=="object"&&e!==null&&e.$$typeof===q_}function q3e(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var eY=/\/+/g;function qI(e,t){return typeof e=="object"&&e!==null&&e.key!=null?q3e(""+e.key):t.toString(36)}function K5(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case q_:case N3e:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+qI(a,0):r,JG(i)?(n="",e!=null&&(n=e.replace(eY,"$&/")+"/"),K5(i,t,n,"",function(c){return c})):i!=null&&(bH(i)&&(i=K3e(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(eY,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",JG(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+qI(o,s);a+=K5(o,t,n,l,i)}else if(l=V3e(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+qI(o,s++),a+=K5(o,t,n,l,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function rT(e,t,n){if(e==null)return e;var r=[],i=0;return K5(e,r,"","",function(o){return t.call(n,o,i++)}),r}function G3e(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var vl={current:null},q5={transition:null},Y3e={ReactCurrentDispatcher:vl,ReactCurrentBatchConfig:q5,ReactCurrentOwner:yH};function iue(){throw Error("act(...) is not supported in production builds of React.")}si.Children={map:rT,forEach:function(e,t,n){rT(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return rT(e,function(){t++}),t},toArray:function(e){return rT(e,function(t){return t})||[]},only:function(e){if(!bH(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};si.Component=PS;si.Fragment=D3e;si.Profiler=F3e;si.PureComponent=gH;si.StrictMode=L3e;si.Suspense=z3e;si.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Y3e;si.act=iue;si.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Zce({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=yH.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)tue.call(t,l)&&!nue.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){s=Array(l);for(var c=0;c<l;c++)s[c]=arguments[c+2];r.children=s}return{$$typeof:q_,type:e.type,key:i,ref:o,props:r,_owner:a}};si.createContext=function(e){return e={$$typeof:B3e,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:j3e,_context:e},e.Consumer=e};si.createElement=rue;si.createFactory=function(e){var t=rue.bind(null,e);return t.type=e,t};si.createRef=function(){return{current:null}};si.forwardRef=function(e){return{$$typeof:H3e,render:e}};si.isValidElement=bH;si.lazy=function(e){return{$$typeof:W3e,_payload:{_status:-1,_result:e},_init:G3e}};si.memo=function(e,t){return{$$typeof:U3e,type:e,compare:t===void 0?null:t}};si.startTransition=function(e){var t=q5.transition;q5.transition={};try{e()}finally{q5.transition=t}};si.unstable_act=iue;si.useCallback=function(e,t){return vl.current.useCallback(e,t)};si.useContext=function(e){return vl.current.useContext(e)};si.useDebugValue=function(){};si.useDeferredValue=function(e){return vl.current.useDeferredValue(e)};si.useEffect=function(e,t){return vl.current.useEffect(e,t)};si.useId=function(){return vl.current.useId()};si.useImperativeHandle=function(e,t,n){return vl.current.useImperativeHandle(e,t,n)};si.useInsertionEffect=function(e,t){return vl.current.useInsertionEffect(e,t)};si.useLayoutEffect=function(e,t){return vl.current.useLayoutEffect(e,t)};si.useMemo=function(e,t){return vl.current.useMemo(e,t)};si.useReducer=function(e,t,n){return vl.current.useReducer(e,t,n)};si.useRef=function(e){return vl.current.useRef(e)};si.useState=function(e){return vl.current.useState(e)};si.useSyncExternalStore=function(e,t,n){return vl.current.useSyncExternalStore(e,t,n)};si.useTransition=function(){return vl.current.useTransition()};si.version="18.3.1";Xce.exports=si;var f=Xce.exports;const ge=vi(f),G_=Wk({__proto__:null,default:ge},[f]);/**
|
||
* @license React
|
||
* react-jsx-runtime.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var X3e=f,Q3e=Symbol.for("react.element"),Z3e=Symbol.for("react.fragment"),J3e=Object.prototype.hasOwnProperty,e9e=X3e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,t9e={key:!0,ref:!0,__self:!0,__source:!0};function oue(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)J3e.call(t,r)&&!t9e.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Q3e,type:e,key:o,ref:a,props:i,_owner:e9e.current}}Vk.Fragment=Z3e;Vk.jsx=oue;Vk.jsxs=oue;Yce.exports=Vk;var U=Yce.exports,qN={},aue={exports:{}},Hc={},sue={exports:{}},lue={};/**
|
||
* @license React
|
||
* scheduler.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/(function(e){function t(q,Z){var N=q.length;q.push(Z);e:for(;0<N;){var B=N-1>>>1,V=q[B];if(0<i(V,Z))q[B]=Z,q[N]=V,N=B;else break e}}function n(q){return q.length===0?null:q[0]}function r(q){if(q.length===0)return null;var Z=q[0],N=q.pop();if(N!==Z){q[0]=N;e:for(var B=0,V=q.length,G=V>>>1;B<G;){var ie=2*(B+1)-1,ce=q[ie],fe=ie+1,ee=q[fe];if(0>i(ce,N))fe<V&&0>i(ee,ce)?(q[B]=ee,q[fe]=N,B=fe):(q[B]=ce,q[ie]=N,B=ie);else if(fe<V&&0>i(ee,N))q[B]=ee,q[fe]=N,B=fe;else break e}}return Z}function i(q,Z){var N=q.sortIndex-Z.sortIndex;return N!==0?N:q.id-Z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],u=1,d=null,h=3,p=!1,m=!1,v=!1,y=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(q){for(var Z=n(c);Z!==null;){if(Z.callback===null)r(c);else if(Z.startTime<=q)r(c),Z.sortIndex=Z.expirationTime,t(l,Z);else break;Z=n(c)}}function _(q){if(v=!1,C(q),!m)if(n(l)!==null)m=!0,z(T);else{var Z=n(c);Z!==null&&W(_,Z.startTime-q)}}function T(q,Z){m=!1,v&&(v=!1,S(k),k=-1),p=!0;var N=h;try{for(C(Z),d=n(l);d!==null&&(!(d.expirationTime>Z)||q&&!D());){var B=d.callback;if(typeof B=="function"){d.callback=null,h=d.priorityLevel;var V=B(d.expirationTime<=Z);Z=e.unstable_now(),typeof V=="function"?d.callback=V:d===n(l)&&r(l),C(Z)}else r(l);d=n(l)}if(d!==null)var G=!0;else{var ie=n(c);ie!==null&&W(_,ie.startTime-Z),G=!1}return G}finally{d=null,h=N,p=!1}}var x=!1,E=null,k=-1,M=5,P=-1;function D(){return!(e.unstable_now()-P<M)}function R(){if(E!==null){var q=e.unstable_now();P=q;var Z=!0;try{Z=E(!0,q)}finally{Z?A():(x=!1,E=null)}}else x=!1}var A;if(typeof b=="function")A=function(){b(R)};else if(typeof MessageChannel<"u"){var H=new MessageChannel,F=H.port2;H.port1.onmessage=R,A=function(){F.postMessage(null)}}else A=function(){y(R,0)};function z(q){E=q,x||(x=!0,A())}function W(q,Z){k=y(function(){q(e.unstable_now())},Z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(q){q.callback=null},e.unstable_continueExecution=function(){m||p||(m=!0,z(T))},e.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<q?Math.floor(1e3/q):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(q){switch(h){case 1:case 2:case 3:var Z=3;break;default:Z=h}var N=h;h=Z;try{return q()}finally{h=N}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(q,Z){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var N=h;h=q;try{return Z()}finally{h=N}},e.unstable_scheduleCallback=function(q,Z,N){var B=e.unstable_now();switch(typeof N=="object"&&N!==null?(N=N.delay,N=typeof N=="number"&&0<N?B+N:B):N=B,q){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=N+V,q={id:u++,callback:Z,priorityLevel:q,startTime:N,expirationTime:V,sortIndex:-1},N>B?(q.sortIndex=N,t(c,q),n(l)===null&&q===n(c)&&(v?(S(k),k=-1):v=!0,W(_,N-B))):(q.sortIndex=V,t(l,q),m||p||(m=!0,z(T))),q},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(q){var Z=h;return function(){var N=h;h=Z;try{return q.apply(this,arguments)}finally{h=N}}}})(lue);sue.exports=lue;var n9e=sue.exports;/**
|
||
* @license React
|
||
* react-dom.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var r9e=f,Rc=n9e;function Mn(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var cue=new Set,ww={};function Nv(e,t){Mb(e,t),Mb(e+"Capture",t)}function Mb(e,t){for(ww[e]=t,e=0;e<t.length;e++)cue.add(t[e])}var rp=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),GN=Object.prototype.hasOwnProperty,i9e=/^[: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]*$/,tY={},nY={};function o9e(e){return GN.call(nY,e)?!0:GN.call(tY,e)?!1:i9e.test(e)?nY[e]=!0:(tY[e]=!0,!1)}function a9e(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function s9e(e,t,n,r){if(t===null||typeof t>"u"||a9e(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function yl(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var Cs={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Cs[e]=new yl(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Cs[t]=new yl(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Cs[e]=new yl(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Cs[e]=new yl(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Cs[e]=new yl(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Cs[e]=new yl(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Cs[e]=new yl(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Cs[e]=new yl(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Cs[e]=new yl(e,5,!1,e.toLowerCase(),null,!1,!1)});var SH=/[\-:]([a-z])/g;function CH(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(SH,CH);Cs[t]=new yl(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(SH,CH);Cs[t]=new yl(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(SH,CH);Cs[t]=new yl(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Cs[e]=new yl(e,1,!1,e.toLowerCase(),null,!1,!1)});Cs.xlinkHref=new yl("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Cs[e]=new yl(e,1,!1,e.toLowerCase(),null,!0,!0)});function xH(e,t,n,r){var i=Cs.hasOwnProperty(t)?Cs[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(s9e(t,n,i,r)&&(n=null),r||i===null?o9e(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Sp=r9e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,iT=Symbol.for("react.element"),Ey=Symbol.for("react.portal"),Ty=Symbol.for("react.fragment"),wH=Symbol.for("react.strict_mode"),YN=Symbol.for("react.profiler"),uue=Symbol.for("react.provider"),due=Symbol.for("react.context"),_H=Symbol.for("react.forward_ref"),XN=Symbol.for("react.suspense"),QN=Symbol.for("react.suspense_list"),EH=Symbol.for("react.memo"),gm=Symbol.for("react.lazy"),fue=Symbol.for("react.offscreen"),rY=Symbol.iterator;function mx(e){return e===null||typeof e!="object"?null:(e=rY&&e[rY]||e["@@iterator"],typeof e=="function"?e:null)}var Ho=Object.assign,GI;function u2(e){if(GI===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);GI=t&&t[1]||""}return`
|
||
`+GI+e}var YI=!1;function XI(e,t){if(!e||YI)return"";YI=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var i=c.stack.split(`
|
||
`),o=r.stack.split(`
|
||
`),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(a!==1||s!==1)do if(a--,s--,0>s||i[a]!==o[s]){var l=`
|
||
`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{YI=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?u2(e):""}function l9e(e){switch(e.tag){case 5:return u2(e.type);case 16:return u2("Lazy");case 13:return u2("Suspense");case 19:return u2("SuspenseList");case 0:case 2:case 15:return e=XI(e.type,!1),e;case 11:return e=XI(e.type.render,!1),e;case 1:return e=XI(e.type,!0),e;default:return""}}function ZN(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ty:return"Fragment";case Ey:return"Portal";case YN:return"Profiler";case wH:return"StrictMode";case XN:return"Suspense";case QN:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case due:return(e.displayName||"Context")+".Consumer";case uue:return(e._context.displayName||"Context")+".Provider";case _H:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case EH:return t=e.displayName||null,t!==null?t:ZN(e.type)||"Memo";case gm:t=e._payload,e=e._init;try{return ZN(e(t))}catch{}}return null}function c9e(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ZN(t);case 8:return t===wH?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Jm(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function hue(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function u9e(e){var t=hue(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function oT(e){e._valueTracker||(e._valueTracker=u9e(e))}function pue(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=hue(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function S3(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function JN(e,t){var n=t.checked;return Ho({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function iY(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Jm(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function mue(e,t){t=t.checked,t!=null&&xH(e,"checked",t,!1)}function e7(e,t){mue(e,t);var n=Jm(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?t7(e,t.type,n):t.hasOwnProperty("defaultValue")&&t7(e,t.type,Jm(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function oY(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function t7(e,t,n){(t!=="number"||S3(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var d2=Array.isArray;function Qy(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Jm(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function n7(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Mn(91));return Ho({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function aY(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Mn(92));if(d2(n)){if(1<n.length)throw Error(Mn(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Jm(n)}}function gue(e,t){var n=Jm(t.value),r=Jm(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function sY(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function vue(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function r7(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?vue(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var aT,yue=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(aT=aT||document.createElement("div"),aT.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=aT.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function _w(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var R2={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},d9e=["Webkit","ms","Moz","O"];Object.keys(R2).forEach(function(e){d9e.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),R2[t]=R2[e]})});function bue(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||R2.hasOwnProperty(e)&&R2[e]?(""+t).trim():t+"px"}function Sue(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=bue(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var f9e=Ho({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 i7(e,t){if(t){if(f9e[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Mn(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Mn(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Mn(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Mn(62))}}function o7(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var a7=null;function TH(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var s7=null,Zy=null,Jy=null;function lY(e){if(e=Q_(e)){if(typeof s7!="function")throw Error(Mn(280));var t=e.stateNode;t&&(t=Xk(t),s7(e.stateNode,e.type,t))}}function Cue(e){Zy?Jy?Jy.push(e):Jy=[e]:Zy=e}function xue(){if(Zy){var e=Zy,t=Jy;if(Jy=Zy=null,lY(e),t)for(e=0;e<t.length;e++)lY(t[e])}}function wue(e,t){return e(t)}function _ue(){}var QI=!1;function Eue(e,t,n){if(QI)return e(t,n);QI=!0;try{return wue(e,t,n)}finally{QI=!1,(Zy!==null||Jy!==null)&&(_ue(),xue())}}function Ew(e,t){var n=e.stateNode;if(n===null)return null;var r=Xk(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(Mn(231,t,typeof n));return n}var l7=!1;if(rp)try{var gx={};Object.defineProperty(gx,"passive",{get:function(){l7=!0}}),window.addEventListener("test",gx,gx),window.removeEventListener("test",gx,gx)}catch{l7=!1}function h9e(e,t,n,r,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var A2=!1,C3=null,x3=!1,c7=null,p9e={onError:function(e){A2=!0,C3=e}};function m9e(e,t,n,r,i,o,a,s,l){A2=!1,C3=null,h9e.apply(p9e,arguments)}function g9e(e,t,n,r,i,o,a,s,l){if(m9e.apply(this,arguments),A2){if(A2){var c=C3;A2=!1,C3=null}else throw Error(Mn(198));x3||(x3=!0,c7=c)}}function Dv(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Tue(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function cY(e){if(Dv(e)!==e)throw Error(Mn(188))}function v9e(e){var t=e.alternate;if(!t){if(t=Dv(e),t===null)throw Error(Mn(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return cY(i),e;if(o===r)return cY(i),t;o=o.sibling}throw Error(Mn(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a)throw Error(Mn(189))}}if(n.alternate!==r)throw Error(Mn(190))}if(n.tag!==3)throw Error(Mn(188));return n.stateNode.current===n?e:t}function kue(e){return e=v9e(e),e!==null?Oue(e):null}function Oue(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Oue(e);if(t!==null)return t;e=e.sibling}return null}var Pue=Rc.unstable_scheduleCallback,uY=Rc.unstable_cancelCallback,y9e=Rc.unstable_shouldYield,b9e=Rc.unstable_requestPaint,ua=Rc.unstable_now,S9e=Rc.unstable_getCurrentPriorityLevel,kH=Rc.unstable_ImmediatePriority,Mue=Rc.unstable_UserBlockingPriority,w3=Rc.unstable_NormalPriority,C9e=Rc.unstable_LowPriority,Iue=Rc.unstable_IdlePriority,Kk=null,Lf=null;function x9e(e){if(Lf&&typeof Lf.onCommitFiberRoot=="function")try{Lf.onCommitFiberRoot(Kk,e,void 0,(e.current.flags&128)===128)}catch{}}var xd=Math.clz32?Math.clz32:E9e,w9e=Math.log,_9e=Math.LN2;function E9e(e){return e>>>=0,e===0?32:31-(w9e(e)/_9e|0)|0}var sT=64,lT=4194304;function f2(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function _3(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~i;s!==0?r=f2(s):(o&=a,o!==0&&(r=f2(o)))}else a=n&~i,a!==0?r=f2(a):o!==0&&(r=f2(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-xd(t),i=1<<n,r|=e[n],t&=~i;return r}function T9e(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function k9e(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-xd(o),s=1<<a,l=i[a];l===-1?(!(s&n)||s&r)&&(i[a]=T9e(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}function u7(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function $ue(){var e=sT;return sT<<=1,!(sT&4194240)&&(sT=64),e}function ZI(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Y_(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-xd(t),e[t]=n}function O9e(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-xd(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function OH(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-xd(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var ji=0;function Rue(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Aue,PH,Nue,Due,Lue,d7=!1,cT=[],Fm=null,jm=null,Bm=null,Tw=new Map,kw=new Map,Cm=[],P9e="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 dY(e,t){switch(e){case"focusin":case"focusout":Fm=null;break;case"dragenter":case"dragleave":jm=null;break;case"mouseover":case"mouseout":Bm=null;break;case"pointerover":case"pointerout":Tw.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":kw.delete(t.pointerId)}}function vx(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Q_(t),t!==null&&PH(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function M9e(e,t,n,r,i){switch(t){case"focusin":return Fm=vx(Fm,e,t,n,r,i),!0;case"dragenter":return jm=vx(jm,e,t,n,r,i),!0;case"mouseover":return Bm=vx(Bm,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Tw.set(o,vx(Tw.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,kw.set(o,vx(kw.get(o)||null,e,t,n,r,i)),!0}return!1}function Fue(e){var t=y1(e.target);if(t!==null){var n=Dv(t);if(n!==null){if(t=n.tag,t===13){if(t=Tue(n),t!==null){e.blockedOn=t,Lue(e.priority,function(){Nue(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function G5(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=f7(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);a7=r,n.target.dispatchEvent(r),a7=null}else return t=Q_(n),t!==null&&PH(t),e.blockedOn=n,!1;t.shift()}return!0}function fY(e,t,n){G5(e)&&n.delete(t)}function I9e(){d7=!1,Fm!==null&&G5(Fm)&&(Fm=null),jm!==null&&G5(jm)&&(jm=null),Bm!==null&&G5(Bm)&&(Bm=null),Tw.forEach(fY),kw.forEach(fY)}function yx(e,t){e.blockedOn===t&&(e.blockedOn=null,d7||(d7=!0,Rc.unstable_scheduleCallback(Rc.unstable_NormalPriority,I9e)))}function Ow(e){function t(i){return yx(i,e)}if(0<cT.length){yx(cT[0],e);for(var n=1;n<cT.length;n++){var r=cT[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Fm!==null&&yx(Fm,e),jm!==null&&yx(jm,e),Bm!==null&&yx(Bm,e),Tw.forEach(t),kw.forEach(t),n=0;n<Cm.length;n++)r=Cm[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Cm.length&&(n=Cm[0],n.blockedOn===null);)Fue(n),n.blockedOn===null&&Cm.shift()}var eb=Sp.ReactCurrentBatchConfig,E3=!0;function $9e(e,t,n,r){var i=ji,o=eb.transition;eb.transition=null;try{ji=1,MH(e,t,n,r)}finally{ji=i,eb.transition=o}}function R9e(e,t,n,r){var i=ji,o=eb.transition;eb.transition=null;try{ji=4,MH(e,t,n,r)}finally{ji=i,eb.transition=o}}function MH(e,t,n,r){if(E3){var i=f7(e,t,n,r);if(i===null)l$(e,t,r,T3,n),dY(e,r);else if(M9e(i,e,t,n,r))r.stopPropagation();else if(dY(e,r),t&4&&-1<P9e.indexOf(e)){for(;i!==null;){var o=Q_(i);if(o!==null&&Aue(o),o=f7(e,t,n,r),o===null&&l$(e,t,r,T3,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else l$(e,t,r,null,n)}}var T3=null;function f7(e,t,n,r){if(T3=null,e=TH(r),e=y1(e),e!==null)if(t=Dv(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Tue(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return T3=e,null}function jue(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(S9e()){case kH:return 1;case Mue:return 4;case w3:case C9e:return 16;case Iue:return 536870912;default:return 16}default:return 16}}var Om=null,IH=null,Y5=null;function Bue(){if(Y5)return Y5;var e,t=IH,n=t.length,r,i="value"in Om?Om.value:Om.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===i[o-r];r++);return Y5=i.slice(e,1<r?1-r:void 0)}function X5(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function uT(){return!0}function hY(){return!1}function zc(e){function t(n,r,i,o,a){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?uT:hY,this.isPropagationStopped=hY,this}return Ho(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=uT)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=uT)},persist:function(){},isPersistent:uT}),t}var MS={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$H=zc(MS),X_=Ho({},MS,{view:0,detail:0}),A9e=zc(X_),JI,e$,bx,qk=Ho({},X_,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:RH,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==bx&&(bx&&e.type==="mousemove"?(JI=e.screenX-bx.screenX,e$=e.screenY-bx.screenY):e$=JI=0,bx=e),JI)},movementY:function(e){return"movementY"in e?e.movementY:e$}}),pY=zc(qk),N9e=Ho({},qk,{dataTransfer:0}),D9e=zc(N9e),L9e=Ho({},X_,{relatedTarget:0}),t$=zc(L9e),F9e=Ho({},MS,{animationName:0,elapsedTime:0,pseudoElement:0}),j9e=zc(F9e),B9e=Ho({},MS,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),H9e=zc(B9e),z9e=Ho({},MS,{data:0}),mY=zc(z9e),U9e={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},W9e={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"},V9e={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function K9e(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=V9e[e])?!!t[e]:!1}function RH(){return K9e}var q9e=Ho({},X_,{key:function(e){if(e.key){var t=U9e[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=X5(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?W9e[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:RH,charCode:function(e){return e.type==="keypress"?X5(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?X5(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),G9e=zc(q9e),Y9e=Ho({},qk,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),gY=zc(Y9e),X9e=Ho({},X_,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:RH}),Q9e=zc(X9e),Z9e=Ho({},MS,{propertyName:0,elapsedTime:0,pseudoElement:0}),J9e=zc(Z9e),eke=Ho({},qk,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),tke=zc(eke),nke=[9,13,27,32],AH=rp&&"CompositionEvent"in window,N2=null;rp&&"documentMode"in document&&(N2=document.documentMode);var rke=rp&&"TextEvent"in window&&!N2,Hue=rp&&(!AH||N2&&8<N2&&11>=N2),vY=" ",yY=!1;function zue(e,t){switch(e){case"keyup":return nke.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Uue(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ky=!1;function ike(e,t){switch(e){case"compositionend":return Uue(t);case"keypress":return t.which!==32?null:(yY=!0,vY);case"textInput":return e=t.data,e===vY&&yY?null:e;default:return null}}function oke(e,t){if(ky)return e==="compositionend"||!AH&&zue(e,t)?(e=Bue(),Y5=IH=Om=null,ky=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Hue&&t.locale!=="ko"?null:t.data;default:return null}}var ake={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 bY(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ake[e.type]:t==="textarea"}function Wue(e,t,n,r){Cue(r),t=k3(t,"onChange"),0<t.length&&(n=new $H("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var D2=null,Pw=null;function ske(e){tde(e,0)}function Gk(e){var t=My(e);if(pue(t))return e}function lke(e,t){if(e==="change")return t}var Vue=!1;if(rp){var n$;if(rp){var r$="oninput"in document;if(!r$){var SY=document.createElement("div");SY.setAttribute("oninput","return;"),r$=typeof SY.oninput=="function"}n$=r$}else n$=!1;Vue=n$&&(!document.documentMode||9<document.documentMode)}function CY(){D2&&(D2.detachEvent("onpropertychange",Kue),Pw=D2=null)}function Kue(e){if(e.propertyName==="value"&&Gk(Pw)){var t=[];Wue(t,Pw,e,TH(e)),Eue(ske,t)}}function cke(e,t,n){e==="focusin"?(CY(),D2=t,Pw=n,D2.attachEvent("onpropertychange",Kue)):e==="focusout"&&CY()}function uke(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Gk(Pw)}function dke(e,t){if(e==="click")return Gk(t)}function fke(e,t){if(e==="input"||e==="change")return Gk(t)}function hke(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Rd=typeof Object.is=="function"?Object.is:hke;function Mw(e,t){if(Rd(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!GN.call(t,i)||!Rd(e[i],t[i]))return!1}return!0}function xY(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function wY(e,t){var n=xY(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=xY(n)}}function que(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?que(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Gue(){for(var e=window,t=S3();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=S3(e.document)}return t}function NH(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function pke(e){var t=Gue(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&que(n.ownerDocument.documentElement,n)){if(r!==null&&NH(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=wY(n,o);var a=wY(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mke=rp&&"documentMode"in document&&11>=document.documentMode,Oy=null,h7=null,L2=null,p7=!1;function _Y(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;p7||Oy==null||Oy!==S3(r)||(r=Oy,"selectionStart"in r&&NH(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),L2&&Mw(L2,r)||(L2=r,r=k3(h7,"onSelect"),0<r.length&&(t=new $H("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Oy)))}function dT(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Py={animationend:dT("Animation","AnimationEnd"),animationiteration:dT("Animation","AnimationIteration"),animationstart:dT("Animation","AnimationStart"),transitionend:dT("Transition","TransitionEnd")},i$={},Yue={};rp&&(Yue=document.createElement("div").style,"AnimationEvent"in window||(delete Py.animationend.animation,delete Py.animationiteration.animation,delete Py.animationstart.animation),"TransitionEvent"in window||delete Py.transitionend.transition);function Yk(e){if(i$[e])return i$[e];if(!Py[e])return e;var t=Py[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Yue)return i$[e]=t[n];return e}var Xue=Yk("animationend"),Que=Yk("animationiteration"),Zue=Yk("animationstart"),Jue=Yk("transitionend"),ede=new Map,EY="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 ug(e,t){ede.set(e,t),Nv(t,[e])}for(var o$=0;o$<EY.length;o$++){var a$=EY[o$],gke=a$.toLowerCase(),vke=a$[0].toUpperCase()+a$.slice(1);ug(gke,"on"+vke)}ug(Xue,"onAnimationEnd");ug(Que,"onAnimationIteration");ug(Zue,"onAnimationStart");ug("dblclick","onDoubleClick");ug("focusin","onFocus");ug("focusout","onBlur");ug(Jue,"onTransitionEnd");Mb("onMouseEnter",["mouseout","mouseover"]);Mb("onMouseLeave",["mouseout","mouseover"]);Mb("onPointerEnter",["pointerout","pointerover"]);Mb("onPointerLeave",["pointerout","pointerover"]);Nv("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Nv("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Nv("onBeforeInput",["compositionend","keypress","textInput","paste"]);Nv("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Nv("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Nv("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var h2="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(" "),yke=new Set("cancel close invalid load scroll toggle".split(" ").concat(h2));function TY(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,g9e(r,t,void 0,e),e.currentTarget=null}function tde(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;TY(i,s,c),o=l}else for(a=0;a<r.length;a++){if(s=r[a],l=s.instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;TY(i,s,c),o=l}}}if(x3)throw e=c7,x3=!1,c7=null,e}function uo(e,t){var n=t[b7];n===void 0&&(n=t[b7]=new Set);var r=e+"__bubble";n.has(r)||(nde(t,e,2,!1),n.add(r))}function s$(e,t,n){var r=0;t&&(r|=4),nde(n,e,r,t)}var fT="_reactListening"+Math.random().toString(36).slice(2);function Iw(e){if(!e[fT]){e[fT]=!0,cue.forEach(function(n){n!=="selectionchange"&&(yke.has(n)||s$(n,!1,e),s$(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[fT]||(t[fT]=!0,s$("selectionchange",!1,t))}}function nde(e,t,n,r){switch(jue(t)){case 1:var i=$9e;break;case 4:i=R9e;break;default:i=MH}n=i.bind(null,t,n,e),i=void 0,!l7||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function l$(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(a===4)for(a=r.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;a=a.return}for(;s!==null;){if(a=y1(s),a===null)return;if(l=a.tag,l===5||l===6){r=o=a;continue e}s=s.parentNode}}r=r.return}Eue(function(){var c=o,u=TH(n),d=[];e:{var h=ede.get(e);if(h!==void 0){var p=$H,m=e;switch(e){case"keypress":if(X5(n)===0)break e;case"keydown":case"keyup":p=G9e;break;case"focusin":m="focus",p=t$;break;case"focusout":m="blur",p=t$;break;case"beforeblur":case"afterblur":p=t$;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=pY;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=D9e;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=Q9e;break;case Xue:case Que:case Zue:p=j9e;break;case Jue:p=J9e;break;case"scroll":p=A9e;break;case"wheel":p=tke;break;case"copy":case"cut":case"paste":p=H9e;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=gY}var v=(t&4)!==0,y=!v&&e==="scroll",S=v?h!==null?h+"Capture":null:h;v=[];for(var b=c,C;b!==null;){C=b;var _=C.stateNode;if(C.tag===5&&_!==null&&(C=_,S!==null&&(_=Ew(b,S),_!=null&&v.push($w(b,_,C)))),y)break;b=b.return}0<v.length&&(h=new p(h,m,null,n,u),d.push({event:h,listeners:v}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",h&&n!==a7&&(m=n.relatedTarget||n.fromElement)&&(y1(m)||m[ip]))break e;if((p||h)&&(h=u.window===u?u:(h=u.ownerDocument)?h.defaultView||h.parentWindow:window,p?(m=n.relatedTarget||n.toElement,p=c,m=m?y1(m):null,m!==null&&(y=Dv(m),m!==y||m.tag!==5&&m.tag!==6)&&(m=null)):(p=null,m=c),p!==m)){if(v=pY,_="onMouseLeave",S="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(v=gY,_="onPointerLeave",S="onPointerEnter",b="pointer"),y=p==null?h:My(p),C=m==null?h:My(m),h=new v(_,b+"leave",p,n,u),h.target=y,h.relatedTarget=C,_=null,y1(u)===c&&(v=new v(S,b+"enter",m,n,u),v.target=C,v.relatedTarget=y,_=v),y=_,p&&m)t:{for(v=p,S=m,b=0,C=v;C;C=U0(C))b++;for(C=0,_=S;_;_=U0(_))C++;for(;0<b-C;)v=U0(v),b--;for(;0<C-b;)S=U0(S),C--;for(;b--;){if(v===S||S!==null&&v===S.alternate)break t;v=U0(v),S=U0(S)}v=null}else v=null;p!==null&&kY(d,h,p,v,!1),m!==null&&y!==null&&kY(d,y,m,v,!0)}}e:{if(h=c?My(c):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var T=lke;else if(bY(h))if(Vue)T=fke;else{T=uke;var x=cke}else(p=h.nodeName)&&p.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(T=dke);if(T&&(T=T(e,c))){Wue(d,T,n,u);break e}x&&x(e,h,c),e==="focusout"&&(x=h._wrapperState)&&x.controlled&&h.type==="number"&&t7(h,"number",h.value)}switch(x=c?My(c):window,e){case"focusin":(bY(x)||x.contentEditable==="true")&&(Oy=x,h7=c,L2=null);break;case"focusout":L2=h7=Oy=null;break;case"mousedown":p7=!0;break;case"contextmenu":case"mouseup":case"dragend":p7=!1,_Y(d,n,u);break;case"selectionchange":if(mke)break;case"keydown":case"keyup":_Y(d,n,u)}var E;if(AH)e:{switch(e){case"compositionstart":var k="onCompositionStart";break e;case"compositionend":k="onCompositionEnd";break e;case"compositionupdate":k="onCompositionUpdate";break e}k=void 0}else ky?zue(e,n)&&(k="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(k="onCompositionStart");k&&(Hue&&n.locale!=="ko"&&(ky||k!=="onCompositionStart"?k==="onCompositionEnd"&&ky&&(E=Bue()):(Om=u,IH="value"in Om?Om.value:Om.textContent,ky=!0)),x=k3(c,k),0<x.length&&(k=new mY(k,e,null,n,u),d.push({event:k,listeners:x}),E?k.data=E:(E=Uue(n),E!==null&&(k.data=E)))),(E=rke?ike(e,n):oke(e,n))&&(c=k3(c,"onBeforeInput"),0<c.length&&(u=new mY("onBeforeInput","beforeinput",null,n,u),d.push({event:u,listeners:c}),u.data=E))}tde(d,t)})}function $w(e,t,n){return{instance:e,listener:t,currentTarget:n}}function k3(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Ew(e,n),o!=null&&r.unshift($w(e,o,i)),o=Ew(e,t),o!=null&&r.push($w(e,o,i))),e=e.return}return r}function U0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function kY(e,t,n,r,i){for(var o=t._reactName,a=[];n!==null&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(l!==null&&l===r)break;s.tag===5&&c!==null&&(s=c,i?(l=Ew(n,o),l!=null&&a.unshift($w(n,l,s))):i||(l=Ew(n,o),l!=null&&a.push($w(n,l,s)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var bke=/\r\n?/g,Ske=/\u0000|\uFFFD/g;function OY(e){return(typeof e=="string"?e:""+e).replace(bke,`
|
||
`).replace(Ske,"")}function hT(e,t,n){if(t=OY(t),OY(e)!==t&&n)throw Error(Mn(425))}function O3(){}var m7=null,g7=null;function v7(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var y7=typeof setTimeout=="function"?setTimeout:void 0,Cke=typeof clearTimeout=="function"?clearTimeout:void 0,PY=typeof Promise=="function"?Promise:void 0,xke=typeof queueMicrotask=="function"?queueMicrotask:typeof PY<"u"?function(e){return PY.resolve(null).then(e).catch(wke)}:y7;function wke(e){setTimeout(function(){throw e})}function c$(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Ow(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Ow(t)}function Hm(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function MY(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var IS=Math.random().toString(36).slice(2),kf="__reactFiber$"+IS,Rw="__reactProps$"+IS,ip="__reactContainer$"+IS,b7="__reactEvents$"+IS,_ke="__reactListeners$"+IS,Eke="__reactHandles$"+IS;function y1(e){var t=e[kf];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ip]||n[kf]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=MY(e);e!==null;){if(n=e[kf])return n;e=MY(e)}return t}e=n,n=e.parentNode}return null}function Q_(e){return e=e[kf]||e[ip],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function My(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Mn(33))}function Xk(e){return e[Rw]||null}var S7=[],Iy=-1;function dg(e){return{current:e}}function yo(e){0>Iy||(e.current=S7[Iy],S7[Iy]=null,Iy--)}function so(e,t){Iy++,S7[Iy]=e.current,e.current=t}var eg={},Ws=dg(eg),zl=dg(!1),av=eg;function Ib(e,t){var n=e.type.contextTypes;if(!n)return eg;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ul(e){return e=e.childContextTypes,e!=null}function P3(){yo(zl),yo(Ws)}function IY(e,t,n){if(Ws.current!==eg)throw Error(Mn(168));so(Ws,t),so(zl,n)}function rde(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Mn(108,c9e(e)||"Unknown",i));return Ho({},n,r)}function M3(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||eg,av=Ws.current,so(Ws,e),so(zl,zl.current),!0}function $Y(e,t,n){var r=e.stateNode;if(!r)throw Error(Mn(169));n?(e=rde(e,t,av),r.__reactInternalMemoizedMergedChildContext=e,yo(zl),yo(Ws),so(Ws,e)):yo(zl),so(zl,n)}var jh=null,Qk=!1,u$=!1;function ide(e){jh===null?jh=[e]:jh.push(e)}function Tke(e){Qk=!0,ide(e)}function fg(){if(!u$&&jh!==null){u$=!0;var e=0,t=ji;try{var n=jh;for(ji=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}jh=null,Qk=!1}catch(i){throw jh!==null&&(jh=jh.slice(e+1)),Pue(kH,fg),i}finally{ji=t,u$=!1}}return null}var $y=[],Ry=0,I3=null,$3=0,cu=[],uu=0,sv=null,Wh=1,Vh="";function r1(e,t){$y[Ry++]=$3,$y[Ry++]=I3,I3=e,$3=t}function ode(e,t,n){cu[uu++]=Wh,cu[uu++]=Vh,cu[uu++]=sv,sv=e;var r=Wh;e=Vh;var i=32-xd(r)-1;r&=~(1<<i),n+=1;var o=32-xd(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Wh=1<<32-xd(t)+i|n<<i|r,Vh=o+e}else Wh=1<<o|n<<i|r,Vh=e}function DH(e){e.return!==null&&(r1(e,1),ode(e,1,0))}function LH(e){for(;e===I3;)I3=$y[--Ry],$y[Ry]=null,$3=$y[--Ry],$y[Ry]=null;for(;e===sv;)sv=cu[--uu],cu[uu]=null,Vh=cu[--uu],cu[uu]=null,Wh=cu[--uu],cu[uu]=null}var Mc=null,wc=null,Mo=!1,md=null;function ade(e,t){var n=gu(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function RY(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Mc=e,wc=Hm(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Mc=e,wc=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=sv!==null?{id:Wh,overflow:Vh}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=gu(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Mc=e,wc=null,!0):!1;default:return!1}}function C7(e){return(e.mode&1)!==0&&(e.flags&128)===0}function x7(e){if(Mo){var t=wc;if(t){var n=t;if(!RY(e,t)){if(C7(e))throw Error(Mn(418));t=Hm(n.nextSibling);var r=Mc;t&&RY(e,t)?ade(r,n):(e.flags=e.flags&-4097|2,Mo=!1,Mc=e)}}else{if(C7(e))throw Error(Mn(418));e.flags=e.flags&-4097|2,Mo=!1,Mc=e}}}function AY(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Mc=e}function pT(e){if(e!==Mc)return!1;if(!Mo)return AY(e),Mo=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!v7(e.type,e.memoizedProps)),t&&(t=wc)){if(C7(e))throw sde(),Error(Mn(418));for(;t;)ade(e,t),t=Hm(t.nextSibling)}if(AY(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Mn(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){wc=Hm(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}wc=null}}else wc=Mc?Hm(e.stateNode.nextSibling):null;return!0}function sde(){for(var e=wc;e;)e=Hm(e.nextSibling)}function $b(){wc=Mc=null,Mo=!1}function FH(e){md===null?md=[e]:md.push(e)}var kke=Sp.ReactCurrentBatchConfig;function Sx(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(Mn(309));var r=n.stateNode}if(!r)throw Error(Mn(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(a){var s=i.refs;a===null?delete s[o]:s[o]=a},t._stringRef=o,t)}if(typeof e!="string")throw Error(Mn(284));if(!n._owner)throw Error(Mn(290,e))}return e}function mT(e,t){throw e=Object.prototype.toString.call(t),Error(Mn(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function NY(e){var t=e._init;return t(e._payload)}function lde(e){function t(S,b){if(e){var C=S.deletions;C===null?(S.deletions=[b],S.flags|=16):C.push(b)}}function n(S,b){if(!e)return null;for(;b!==null;)t(S,b),b=b.sibling;return null}function r(S,b){for(S=new Map;b!==null;)b.key!==null?S.set(b.key,b):S.set(b.index,b),b=b.sibling;return S}function i(S,b){return S=Vm(S,b),S.index=0,S.sibling=null,S}function o(S,b,C){return S.index=C,e?(C=S.alternate,C!==null?(C=C.index,C<b?(S.flags|=2,b):C):(S.flags|=2,b)):(S.flags|=1048576,b)}function a(S){return e&&S.alternate===null&&(S.flags|=2),S}function s(S,b,C,_){return b===null||b.tag!==6?(b=v$(C,S.mode,_),b.return=S,b):(b=i(b,C),b.return=S,b)}function l(S,b,C,_){var T=C.type;return T===Ty?u(S,b,C.props.children,_,C.key):b!==null&&(b.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===gm&&NY(T)===b.type)?(_=i(b,C.props),_.ref=Sx(S,b,C),_.return=S,_):(_=r8(C.type,C.key,C.props,null,S.mode,_),_.ref=Sx(S,b,C),_.return=S,_)}function c(S,b,C,_){return b===null||b.tag!==4||b.stateNode.containerInfo!==C.containerInfo||b.stateNode.implementation!==C.implementation?(b=y$(C,S.mode,_),b.return=S,b):(b=i(b,C.children||[]),b.return=S,b)}function u(S,b,C,_,T){return b===null||b.tag!==7?(b=H1(C,S.mode,_,T),b.return=S,b):(b=i(b,C),b.return=S,b)}function d(S,b,C){if(typeof b=="string"&&b!==""||typeof b=="number")return b=v$(""+b,S.mode,C),b.return=S,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case iT:return C=r8(b.type,b.key,b.props,null,S.mode,C),C.ref=Sx(S,null,b),C.return=S,C;case Ey:return b=y$(b,S.mode,C),b.return=S,b;case gm:var _=b._init;return d(S,_(b._payload),C)}if(d2(b)||mx(b))return b=H1(b,S.mode,C,null),b.return=S,b;mT(S,b)}return null}function h(S,b,C,_){var T=b!==null?b.key:null;if(typeof C=="string"&&C!==""||typeof C=="number")return T!==null?null:s(S,b,""+C,_);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case iT:return C.key===T?l(S,b,C,_):null;case Ey:return C.key===T?c(S,b,C,_):null;case gm:return T=C._init,h(S,b,T(C._payload),_)}if(d2(C)||mx(C))return T!==null?null:u(S,b,C,_,null);mT(S,C)}return null}function p(S,b,C,_,T){if(typeof _=="string"&&_!==""||typeof _=="number")return S=S.get(C)||null,s(b,S,""+_,T);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case iT:return S=S.get(_.key===null?C:_.key)||null,l(b,S,_,T);case Ey:return S=S.get(_.key===null?C:_.key)||null,c(b,S,_,T);case gm:var x=_._init;return p(S,b,C,x(_._payload),T)}if(d2(_)||mx(_))return S=S.get(C)||null,u(b,S,_,T,null);mT(b,_)}return null}function m(S,b,C,_){for(var T=null,x=null,E=b,k=b=0,M=null;E!==null&&k<C.length;k++){E.index>k?(M=E,E=null):M=E.sibling;var P=h(S,E,C[k],_);if(P===null){E===null&&(E=M);break}e&&E&&P.alternate===null&&t(S,E),b=o(P,b,k),x===null?T=P:x.sibling=P,x=P,E=M}if(k===C.length)return n(S,E),Mo&&r1(S,k),T;if(E===null){for(;k<C.length;k++)E=d(S,C[k],_),E!==null&&(b=o(E,b,k),x===null?T=E:x.sibling=E,x=E);return Mo&&r1(S,k),T}for(E=r(S,E);k<C.length;k++)M=p(E,S,k,C[k],_),M!==null&&(e&&M.alternate!==null&&E.delete(M.key===null?k:M.key),b=o(M,b,k),x===null?T=M:x.sibling=M,x=M);return e&&E.forEach(function(D){return t(S,D)}),Mo&&r1(S,k),T}function v(S,b,C,_){var T=mx(C);if(typeof T!="function")throw Error(Mn(150));if(C=T.call(C),C==null)throw Error(Mn(151));for(var x=T=null,E=b,k=b=0,M=null,P=C.next();E!==null&&!P.done;k++,P=C.next()){E.index>k?(M=E,E=null):M=E.sibling;var D=h(S,E,P.value,_);if(D===null){E===null&&(E=M);break}e&&E&&D.alternate===null&&t(S,E),b=o(D,b,k),x===null?T=D:x.sibling=D,x=D,E=M}if(P.done)return n(S,E),Mo&&r1(S,k),T;if(E===null){for(;!P.done;k++,P=C.next())P=d(S,P.value,_),P!==null&&(b=o(P,b,k),x===null?T=P:x.sibling=P,x=P);return Mo&&r1(S,k),T}for(E=r(S,E);!P.done;k++,P=C.next())P=p(E,S,k,P.value,_),P!==null&&(e&&P.alternate!==null&&E.delete(P.key===null?k:P.key),b=o(P,b,k),x===null?T=P:x.sibling=P,x=P);return e&&E.forEach(function(R){return t(S,R)}),Mo&&r1(S,k),T}function y(S,b,C,_){if(typeof C=="object"&&C!==null&&C.type===Ty&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case iT:e:{for(var T=C.key,x=b;x!==null;){if(x.key===T){if(T=C.type,T===Ty){if(x.tag===7){n(S,x.sibling),b=i(x,C.props.children),b.return=S,S=b;break e}}else if(x.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===gm&&NY(T)===x.type){n(S,x.sibling),b=i(x,C.props),b.ref=Sx(S,x,C),b.return=S,S=b;break e}n(S,x);break}else t(S,x);x=x.sibling}C.type===Ty?(b=H1(C.props.children,S.mode,_,C.key),b.return=S,S=b):(_=r8(C.type,C.key,C.props,null,S.mode,_),_.ref=Sx(S,b,C),_.return=S,S=_)}return a(S);case Ey:e:{for(x=C.key;b!==null;){if(b.key===x)if(b.tag===4&&b.stateNode.containerInfo===C.containerInfo&&b.stateNode.implementation===C.implementation){n(S,b.sibling),b=i(b,C.children||[]),b.return=S,S=b;break e}else{n(S,b);break}else t(S,b);b=b.sibling}b=y$(C,S.mode,_),b.return=S,S=b}return a(S);case gm:return x=C._init,y(S,b,x(C._payload),_)}if(d2(C))return m(S,b,C,_);if(mx(C))return v(S,b,C,_);mT(S,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,b!==null&&b.tag===6?(n(S,b.sibling),b=i(b,C),b.return=S,S=b):(n(S,b),b=v$(C,S.mode,_),b.return=S,S=b),a(S)):n(S,b)}return y}var Rb=lde(!0),cde=lde(!1),R3=dg(null),A3=null,Ay=null,jH=null;function BH(){jH=Ay=A3=null}function HH(e){var t=R3.current;yo(R3),e._currentValue=t}function w7(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function tb(e,t){A3=e,jH=Ay=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(jl=!0),e.firstContext=null)}function wu(e){var t=e._currentValue;if(jH!==e)if(e={context:e,memoizedValue:t,next:null},Ay===null){if(A3===null)throw Error(Mn(308));Ay=e,A3.dependencies={lanes:0,firstContext:e}}else Ay=Ay.next=e;return t}var b1=null;function zH(e){b1===null?b1=[e]:b1.push(e)}function ude(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,zH(t)):(n.next=i.next,i.next=n),t.interleaved=n,op(e,r)}function op(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var vm=!1;function UH(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function dde(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Qh(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function zm(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,wi&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,op(e,n)}return i=r.interleaved,i===null?(t.next=t,zH(r)):(t.next=i.next,i.next=t),r.interleaved=t,op(e,n)}function Q5(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,OH(e,n)}}function DY(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function N3(e,t,n,r){var i=e.updateQueue;vm=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?o=c:a.next=c,a=l;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==a&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(o!==null){var d=i.baseState;a=0,u=c=l=null,s=o;do{var h=s.lane,p=s.eventTime;if((r&h)===h){u!==null&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,v=s;switch(h=t,p=n,v.tag){case 1:if(m=v.payload,typeof m=="function"){d=m.call(p,d,h);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=v.payload,h=typeof m=="function"?m.call(p,d,h):m,h==null)break e;d=Ho({},d,h);break e;case 2:vm=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,h=i.effects,h===null?i.effects=[s]:h.push(s))}else p={eventTime:p,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=p,l=d):u=u.next=p,a|=h;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;h=s,s=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(!0);if(u===null&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);cv|=a,e.lanes=a,e.memoizedState=d}}function LY(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(Mn(191,i));i.call(r)}}}var Z_={},Ff=dg(Z_),Aw=dg(Z_),Nw=dg(Z_);function S1(e){if(e===Z_)throw Error(Mn(174));return e}function WH(e,t){switch(so(Nw,t),so(Aw,e),so(Ff,Z_),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:r7(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=r7(t,e)}yo(Ff),so(Ff,t)}function Ab(){yo(Ff),yo(Aw),yo(Nw)}function fde(e){S1(Nw.current);var t=S1(Ff.current),n=r7(t,e.type);t!==n&&(so(Aw,e),so(Ff,n))}function VH(e){Aw.current===e&&(yo(Ff),yo(Aw))}var Fo=dg(0);function D3(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var d$=[];function KH(){for(var e=0;e<d$.length;e++)d$[e]._workInProgressVersionPrimary=null;d$.length=0}var Z5=Sp.ReactCurrentDispatcher,f$=Sp.ReactCurrentBatchConfig,lv=0,Bo=null,Ba=null,Ja=null,L3=!1,F2=!1,Dw=0,Oke=0;function Is(){throw Error(Mn(321))}function qH(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Rd(e[n],t[n]))return!1;return!0}function GH(e,t,n,r,i,o){if(lv=o,Bo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Z5.current=e===null||e.memoizedState===null?$ke:Rke,e=n(r,i),F2){o=0;do{if(F2=!1,Dw=0,25<=o)throw Error(Mn(301));o+=1,Ja=Ba=null,t.updateQueue=null,Z5.current=Ake,e=n(r,i)}while(F2)}if(Z5.current=F3,t=Ba!==null&&Ba.next!==null,lv=0,Ja=Ba=Bo=null,L3=!1,t)throw Error(Mn(300));return e}function YH(){var e=Dw!==0;return Dw=0,e}function vf(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ja===null?Bo.memoizedState=Ja=e:Ja=Ja.next=e,Ja}function _u(){if(Ba===null){var e=Bo.alternate;e=e!==null?e.memoizedState:null}else e=Ba.next;var t=Ja===null?Bo.memoizedState:Ja.next;if(t!==null)Ja=t,Ba=e;else{if(e===null)throw Error(Mn(310));Ba=e,e={memoizedState:Ba.memoizedState,baseState:Ba.baseState,baseQueue:Ba.baseQueue,queue:Ba.queue,next:null},Ja===null?Bo.memoizedState=Ja=e:Ja=Ja.next=e}return Ja}function Lw(e,t){return typeof t=="function"?t(e):t}function h$(e){var t=_u(),n=t.queue;if(n===null)throw Error(Mn(311));n.lastRenderedReducer=e;var r=Ba,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var s=a=null,l=null,c=o;do{var u=c.lane;if((lv&u)===u)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(s=l=d,a=r):l=l.next=d,Bo.lanes|=u,cv|=u}c=c.next}while(c!==null&&c!==o);l===null?a=r:l.next=s,Rd(r,t.memoizedState)||(jl=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,Bo.lanes|=o,cv|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function p$(e){var t=_u(),n=t.queue;if(n===null)throw Error(Mn(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);Rd(o,t.memoizedState)||(jl=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function hde(){}function pde(e,t){var n=Bo,r=_u(),i=t(),o=!Rd(r.memoizedState,i);if(o&&(r.memoizedState=i,jl=!0),r=r.queue,XH(vde.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Ja!==null&&Ja.memoizedState.tag&1){if(n.flags|=2048,Fw(9,gde.bind(null,n,r,i,t),void 0,null),rs===null)throw Error(Mn(349));lv&30||mde(n,t,i)}return i}function mde(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Bo.updateQueue,t===null?(t={lastEffect:null,stores:null},Bo.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function gde(e,t,n,r){t.value=n,t.getSnapshot=r,yde(t)&&bde(e)}function vde(e,t,n){return n(function(){yde(t)&&bde(e)})}function yde(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Rd(e,n)}catch{return!0}}function bde(e){var t=op(e,1);t!==null&&wd(t,e,1,-1)}function FY(e){var t=vf();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Lw,lastRenderedState:e},t.queue=e,e=e.dispatch=Ike.bind(null,Bo,e),[t.memoizedState,e]}function Fw(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Bo.updateQueue,t===null?(t={lastEffect:null,stores:null},Bo.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Sde(){return _u().memoizedState}function J5(e,t,n,r){var i=vf();Bo.flags|=e,i.memoizedState=Fw(1|t,n,void 0,r===void 0?null:r)}function Zk(e,t,n,r){var i=_u();r=r===void 0?null:r;var o=void 0;if(Ba!==null){var a=Ba.memoizedState;if(o=a.destroy,r!==null&&qH(r,a.deps)){i.memoizedState=Fw(t,n,o,r);return}}Bo.flags|=e,i.memoizedState=Fw(1|t,n,o,r)}function jY(e,t){return J5(8390656,8,e,t)}function XH(e,t){return Zk(2048,8,e,t)}function Cde(e,t){return Zk(4,2,e,t)}function xde(e,t){return Zk(4,4,e,t)}function wde(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function _de(e,t,n){return n=n!=null?n.concat([e]):null,Zk(4,4,wde.bind(null,t,e),n)}function QH(){}function Ede(e,t){var n=_u();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&qH(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Tde(e,t){var n=_u();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&qH(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function kde(e,t,n){return lv&21?(Rd(n,t)||(n=$ue(),Bo.lanes|=n,cv|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,jl=!0),e.memoizedState=n)}function Pke(e,t){var n=ji;ji=n!==0&&4>n?n:4,e(!0);var r=f$.transition;f$.transition={};try{e(!1),t()}finally{ji=n,f$.transition=r}}function Ode(){return _u().memoizedState}function Mke(e,t,n){var r=Wm(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Pde(e))Mde(t,n);else if(n=ude(e,t,n,r),n!==null){var i=hl();wd(n,e,r,i),Ide(n,t,r)}}function Ike(e,t,n){var r=Wm(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Pde(e))Mde(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,Rd(s,a)){var l=t.interleaved;l===null?(i.next=i,zH(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=ude(e,t,i,r),n!==null&&(i=hl(),wd(n,e,r,i),Ide(n,t,r))}}function Pde(e){var t=e.alternate;return e===Bo||t!==null&&t===Bo}function Mde(e,t){F2=L3=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ide(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,OH(e,n)}}var F3={readContext:wu,useCallback:Is,useContext:Is,useEffect:Is,useImperativeHandle:Is,useInsertionEffect:Is,useLayoutEffect:Is,useMemo:Is,useReducer:Is,useRef:Is,useState:Is,useDebugValue:Is,useDeferredValue:Is,useTransition:Is,useMutableSource:Is,useSyncExternalStore:Is,useId:Is,unstable_isNewReconciler:!1},$ke={readContext:wu,useCallback:function(e,t){return vf().memoizedState=[e,t===void 0?null:t],e},useContext:wu,useEffect:jY,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,J5(4194308,4,wde.bind(null,t,e),n)},useLayoutEffect:function(e,t){return J5(4194308,4,e,t)},useInsertionEffect:function(e,t){return J5(4,2,e,t)},useMemo:function(e,t){var n=vf();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=vf();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Mke.bind(null,Bo,e),[r.memoizedState,e]},useRef:function(e){var t=vf();return e={current:e},t.memoizedState=e},useState:FY,useDebugValue:QH,useDeferredValue:function(e){return vf().memoizedState=e},useTransition:function(){var e=FY(!1),t=e[0];return e=Pke.bind(null,e[1]),vf().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Bo,i=vf();if(Mo){if(n===void 0)throw Error(Mn(407));n=n()}else{if(n=t(),rs===null)throw Error(Mn(349));lv&30||mde(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,jY(vde.bind(null,r,o,e),[e]),r.flags|=2048,Fw(9,gde.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=vf(),t=rs.identifierPrefix;if(Mo){var n=Vh,r=Wh;n=(r&~(1<<32-xd(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Dw++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Oke++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Rke={readContext:wu,useCallback:Ede,useContext:wu,useEffect:XH,useImperativeHandle:_de,useInsertionEffect:Cde,useLayoutEffect:xde,useMemo:Tde,useReducer:h$,useRef:Sde,useState:function(){return h$(Lw)},useDebugValue:QH,useDeferredValue:function(e){var t=_u();return kde(t,Ba.memoizedState,e)},useTransition:function(){var e=h$(Lw)[0],t=_u().memoizedState;return[e,t]},useMutableSource:hde,useSyncExternalStore:pde,useId:Ode,unstable_isNewReconciler:!1},Ake={readContext:wu,useCallback:Ede,useContext:wu,useEffect:XH,useImperativeHandle:_de,useInsertionEffect:Cde,useLayoutEffect:xde,useMemo:Tde,useReducer:p$,useRef:Sde,useState:function(){return p$(Lw)},useDebugValue:QH,useDeferredValue:function(e){var t=_u();return Ba===null?t.memoizedState=e:kde(t,Ba.memoizedState,e)},useTransition:function(){var e=p$(Lw)[0],t=_u().memoizedState;return[e,t]},useMutableSource:hde,useSyncExternalStore:pde,useId:Ode,unstable_isNewReconciler:!1};function ld(e,t){if(e&&e.defaultProps){t=Ho({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function _7(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Ho({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Jk={isMounted:function(e){return(e=e._reactInternals)?Dv(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=hl(),i=Wm(e),o=Qh(r,i);o.payload=t,n!=null&&(o.callback=n),t=zm(e,o,i),t!==null&&(wd(t,e,i,r),Q5(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=hl(),i=Wm(e),o=Qh(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=zm(e,o,i),t!==null&&(wd(t,e,i,r),Q5(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=hl(),r=Wm(e),i=Qh(n,r);i.tag=2,t!=null&&(i.callback=t),t=zm(e,i,r),t!==null&&(wd(t,e,r,n),Q5(t,e,r))}};function BY(e,t,n,r,i,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,a):t.prototype&&t.prototype.isPureReactComponent?!Mw(n,r)||!Mw(i,o):!0}function $de(e,t,n){var r=!1,i=eg,o=t.contextType;return typeof o=="object"&&o!==null?o=wu(o):(i=Ul(t)?av:Ws.current,r=t.contextTypes,o=(r=r!=null)?Ib(e,i):eg),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Jk,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function HY(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Jk.enqueueReplaceState(t,t.state,null)}function E7(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},UH(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=wu(o):(o=Ul(t)?av:Ws.current,i.context=Ib(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(_7(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Jk.enqueueReplaceState(i,i.state,null),N3(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Nb(e,t){try{var n="",r=t;do n+=l9e(r),r=r.return;while(r);var i=n}catch(o){i=`
|
||
Error generating stack: `+o.message+`
|
||
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function m$(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function T7(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Nke=typeof WeakMap=="function"?WeakMap:Map;function Rde(e,t,n){n=Qh(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){B3||(B3=!0,D7=r),T7(e,t)},n}function Ade(e,t,n){n=Qh(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){T7(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){T7(e,t),typeof r!="function"&&(Um===null?Um=new Set([this]):Um.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function zY(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Nke;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Yke.bind(null,e,t,n),t.then(e,e))}function UY(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function WY(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Qh(-1,1),t.tag=2,zm(n,t,1))),n.lanes|=1),e)}var Dke=Sp.ReactCurrentOwner,jl=!1;function il(e,t,n,r){t.child=e===null?cde(t,null,n,r):Rb(t,e.child,n,r)}function VY(e,t,n,r,i){n=n.render;var o=t.ref;return tb(t,i),r=GH(e,t,n,r,o,i),n=YH(),e!==null&&!jl?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ap(e,t,i)):(Mo&&n&&DH(t),t.flags|=1,il(e,t,r,i),t.child)}function KY(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!oz(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Nde(e,t,o,r,i)):(e=r8(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:Mw,n(a,r)&&e.ref===t.ref)return ap(e,t,i)}return t.flags|=1,e=Vm(o,r),e.ref=t.ref,e.return=t,t.child=e}function Nde(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Mw(o,r)&&e.ref===t.ref)if(jl=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(jl=!0);else return t.lanes=e.lanes,ap(e,t,i)}return k7(e,t,n,r,i)}function Dde(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},so(Dy,yc),yc|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,so(Dy,yc),yc|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,so(Dy,yc),yc|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,so(Dy,yc),yc|=r;return il(e,t,i,n),t.child}function Lde(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function k7(e,t,n,r,i){var o=Ul(n)?av:Ws.current;return o=Ib(t,o),tb(t,i),n=GH(e,t,n,r,o,i),r=YH(),e!==null&&!jl?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ap(e,t,i)):(Mo&&r&&DH(t),t.flags|=1,il(e,t,n,i),t.child)}function qY(e,t,n,r,i){if(Ul(n)){var o=!0;M3(t)}else o=!1;if(tb(t,i),t.stateNode===null)e8(e,t),$de(t,n,r),E7(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;typeof c=="object"&&c!==null?c=wu(c):(c=Ul(n)?av:Ws.current,c=Ib(t,c));var u=n.getDerivedStateFromProps,d=typeof u=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==c)&&HY(t,a,r,c),vm=!1;var h=t.memoizedState;a.state=h,N3(t,r,a,i),l=t.memoizedState,s!==r||h!==l||zl.current||vm?(typeof u=="function"&&(_7(t,n,u,r),l=t.memoizedState),(s=vm||BY(t,n,s,r,h,l,c))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,dde(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:ld(t.type,s),a.props=c,d=t.pendingProps,h=a.context,l=n.contextType,typeof l=="object"&&l!==null?l=wu(l):(l=Ul(n)?av:Ws.current,l=Ib(t,l));var p=n.getDerivedStateFromProps;(u=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==d||h!==l)&&HY(t,a,r,l),vm=!1,h=t.memoizedState,a.state=h,N3(t,r,a,i);var m=t.memoizedState;s!==d||h!==m||zl.current||vm?(typeof p=="function"&&(_7(t,n,p,r),m=t.memoizedState),(c=vm||BY(t,n,c,r,h,m,l)||!1)?(u||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,m,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,m,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=l,r=c):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return O7(e,t,n,r,o,i)}function O7(e,t,n,r,i,o){Lde(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&$Y(t,n,!1),ap(e,t,o);r=t.stateNode,Dke.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Rb(t,e.child,null,o),t.child=Rb(t,null,s,o)):il(e,t,s,o),t.memoizedState=r.state,i&&$Y(t,n,!0),t.child}function Fde(e){var t=e.stateNode;t.pendingContext?IY(e,t.pendingContext,t.pendingContext!==t.context):t.context&&IY(e,t.context,!1),WH(e,t.containerInfo)}function GY(e,t,n,r,i){return $b(),FH(i),t.flags|=256,il(e,t,n,r),t.child}var P7={dehydrated:null,treeContext:null,retryLane:0};function M7(e){return{baseLanes:e,cachePool:null,transitions:null}}function jde(e,t,n){var r=t.pendingProps,i=Fo.current,o=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),so(Fo,i&1),e===null)return x7(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,o?(r=t.mode,o=t.child,a={mode:"hidden",children:a},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=a):o=n6(a,r,0,null),e=H1(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=M7(n),t.memoizedState=P7,e):ZH(t,a));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return Lke(e,t,a,r,s,i,n);if(o){o=r.fallback,a=t.mode,i=e.child,s=i.sibling;var l={mode:"hidden",children:r.children};return!(a&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Vm(i,l),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=Vm(s,o):(o=H1(o,a,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,a=e.child.memoizedState,a=a===null?M7(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=P7,r}return o=e.child,e=o.sibling,r=Vm(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function ZH(e,t){return t=n6({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function gT(e,t,n,r){return r!==null&&FH(r),Rb(t,e.child,null,n),e=ZH(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Lke(e,t,n,r,i,o,a){if(n)return t.flags&256?(t.flags&=-257,r=m$(Error(Mn(422))),gT(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=n6({mode:"visible",children:r.children},i,0,null),o=H1(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Rb(t,e.child,null,a),t.child.memoizedState=M7(a),t.memoizedState=P7,o);if(!(t.mode&1))return gT(e,t,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,o=Error(Mn(419)),r=m$(o,r,void 0),gT(e,t,a,r)}if(s=(a&e.childLanes)!==0,jl||s){if(r=rs,r!==null){switch(a&-a){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|a)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,op(e,i),wd(r,e,i,-1))}return iz(),r=m$(Error(Mn(421))),gT(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Xke.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,wc=Hm(i.nextSibling),Mc=t,Mo=!0,md=null,e!==null&&(cu[uu++]=Wh,cu[uu++]=Vh,cu[uu++]=sv,Wh=e.id,Vh=e.overflow,sv=t),t=ZH(t,r.children),t.flags|=4096,t)}function YY(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),w7(e.return,t,n)}function g$(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Bde(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(il(e,t,r.children,n),r=Fo.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&YY(e,n,t);else if(e.tag===19)YY(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(so(Fo,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&D3(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),g$(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&D3(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}g$(t,!0,n,null,o);break;case"together":g$(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function e8(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ap(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),cv|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Mn(153));if(t.child!==null){for(e=t.child,n=Vm(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Vm(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Fke(e,t,n){switch(t.tag){case 3:Fde(t),$b();break;case 5:fde(t);break;case 1:Ul(t.type)&&M3(t);break;case 4:WH(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;so(R3,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(so(Fo,Fo.current&1),t.flags|=128,null):n&t.child.childLanes?jde(e,t,n):(so(Fo,Fo.current&1),e=ap(e,t,n),e!==null?e.sibling:null);so(Fo,Fo.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Bde(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),so(Fo,Fo.current),r)break;return null;case 22:case 23:return t.lanes=0,Dde(e,t,n)}return ap(e,t,n)}var Hde,I7,zde,Ude;Hde=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};I7=function(){};zde=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,S1(Ff.current);var o=null;switch(n){case"input":i=JN(e,i),r=JN(e,r),o=[];break;case"select":i=Ho({},i,{value:void 0}),r=Ho({},r,{value:void 0}),o=[];break;case"textarea":i=n7(e,i),r=n7(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=O3)}i7(n,r);var a;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var s=i[c];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(ww.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var l=r[c];if(s=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(l!=null||s!=null))if(c==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(o||(o=[]),o.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(o=o||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(ww.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&uo("scroll",e),o||s===l||(o=[])):(o=o||[]).push(c,l))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}};Ude=function(e,t,n,r){n!==r&&(t.flags|=4)};function Cx(e,t){if(!Mo)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function $s(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function jke(e,t,n){var r=t.pendingProps;switch(LH(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $s(t),null;case 1:return Ul(t.type)&&P3(),$s(t),null;case 3:return r=t.stateNode,Ab(),yo(zl),yo(Ws),KH(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(pT(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,md!==null&&(j7(md),md=null))),I7(e,t),$s(t),null;case 5:VH(t);var i=S1(Nw.current);if(n=t.type,e!==null&&t.stateNode!=null)zde(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Mn(166));return $s(t),null}if(e=S1(Ff.current),pT(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[kf]=t,r[Rw]=o,e=(t.mode&1)!==0,n){case"dialog":uo("cancel",r),uo("close",r);break;case"iframe":case"object":case"embed":uo("load",r);break;case"video":case"audio":for(i=0;i<h2.length;i++)uo(h2[i],r);break;case"source":uo("error",r);break;case"img":case"image":case"link":uo("error",r),uo("load",r);break;case"details":uo("toggle",r);break;case"input":iY(r,o),uo("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},uo("invalid",r);break;case"textarea":aY(r,o),uo("invalid",r)}i7(n,o),i=null;for(var a in o)if(o.hasOwnProperty(a)){var s=o[a];a==="children"?typeof s=="string"?r.textContent!==s&&(o.suppressHydrationWarning!==!0&&hT(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&hT(r.textContent,s,e),i=["children",""+s]):ww.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&uo("scroll",r)}switch(n){case"input":oT(r),oY(r,o,!0);break;case"textarea":oT(r),sY(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=O3)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=vue(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[kf]=t,e[Rw]=r,Hde(e,t,!1,!1),t.stateNode=e;e:{switch(a=o7(n,r),n){case"dialog":uo("cancel",e),uo("close",e),i=r;break;case"iframe":case"object":case"embed":uo("load",e),i=r;break;case"video":case"audio":for(i=0;i<h2.length;i++)uo(h2[i],e);i=r;break;case"source":uo("error",e),i=r;break;case"img":case"image":case"link":uo("error",e),uo("load",e),i=r;break;case"details":uo("toggle",e),i=r;break;case"input":iY(e,r),i=JN(e,r),uo("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Ho({},r,{value:void 0}),uo("invalid",e);break;case"textarea":aY(e,r),i=n7(e,r),uo("invalid",e);break;default:i=r}i7(n,i),s=i;for(o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="style"?Sue(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&yue(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&_w(e,l):typeof l=="number"&&_w(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(ww.hasOwnProperty(o)?l!=null&&o==="onScroll"&&uo("scroll",e):l!=null&&xH(e,o,l,a))}switch(n){case"input":oT(e),oY(e,r,!1);break;case"textarea":oT(e),sY(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Jm(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Qy(e,!!r.multiple,o,!1):r.defaultValue!=null&&Qy(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=O3)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return $s(t),null;case 6:if(e&&t.stateNode!=null)Ude(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Mn(166));if(n=S1(Nw.current),S1(Ff.current),pT(t)){if(r=t.stateNode,n=t.memoizedProps,r[kf]=t,(o=r.nodeValue!==n)&&(e=Mc,e!==null))switch(e.tag){case 3:hT(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&hT(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[kf]=t,t.stateNode=r}return $s(t),null;case 13:if(yo(Fo),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Mo&&wc!==null&&t.mode&1&&!(t.flags&128))sde(),$b(),t.flags|=98560,o=!1;else if(o=pT(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(Mn(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(Mn(317));o[kf]=t}else $b(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;$s(t),o=!1}else md!==null&&(j7(md),md=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Fo.current&1?Ha===0&&(Ha=3):iz())),t.updateQueue!==null&&(t.flags|=4),$s(t),null);case 4:return Ab(),I7(e,t),e===null&&Iw(t.stateNode.containerInfo),$s(t),null;case 10:return HH(t.type._context),$s(t),null;case 17:return Ul(t.type)&&P3(),$s(t),null;case 19:if(yo(Fo),o=t.memoizedState,o===null)return $s(t),null;if(r=(t.flags&128)!==0,a=o.rendering,a===null)if(r)Cx(o,!1);else{if(Ha!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=D3(e),a!==null){for(t.flags|=128,Cx(o,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,a=o.alternate,a===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return so(Fo,Fo.current&1|2),t.child}e=e.sibling}o.tail!==null&&ua()>Db&&(t.flags|=128,r=!0,Cx(o,!1),t.lanes=4194304)}else{if(!r)if(e=D3(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Cx(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Mo)return $s(t),null}else 2*ua()-o.renderingStartTime>Db&&n!==1073741824&&(t.flags|=128,r=!0,Cx(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ua(),t.sibling=null,n=Fo.current,so(Fo,r?n&1|2:n&1),t):($s(t),null);case 22:case 23:return rz(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?yc&1073741824&&($s(t),t.subtreeFlags&6&&(t.flags|=8192)):$s(t),null;case 24:return null;case 25:return null}throw Error(Mn(156,t.tag))}function Bke(e,t){switch(LH(t),t.tag){case 1:return Ul(t.type)&&P3(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ab(),yo(zl),yo(Ws),KH(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return VH(t),null;case 13:if(yo(Fo),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Mn(340));$b()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return yo(Fo),null;case 4:return Ab(),null;case 10:return HH(t.type._context),null;case 22:case 23:return rz(),null;case 24:return null;default:return null}}var vT=!1,Ls=!1,Hke=typeof WeakSet=="function"?WeakSet:Set,or=null;function Ny(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Qo(e,t,r)}else n.current=null}function $7(e,t,n){try{n()}catch(r){Qo(e,t,r)}}var XY=!1;function zke(e,t){if(m7=E3,e=Gue(),NH(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,c=0,u=0,d=e,h=null;t:for(;;){for(var p;d!==n||i!==0&&d.nodeType!==3||(s=a+i),d!==o||r!==0&&d.nodeType!==3||(l=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(p=d.firstChild)!==null;)h=d,d=p;for(;;){if(d===e)break t;if(h===n&&++c===i&&(s=a),h===o&&++u===r&&(l=a),(p=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=p}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(g7={focusedElem:e,selectionRange:n},E3=!1,or=t;or!==null;)if(t=or,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,or=e;else for(;or!==null;){t=or;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var v=m.memoizedProps,y=m.memoizedState,S=t.stateNode,b=S.getSnapshotBeforeUpdate(t.elementType===t.type?v:ld(t.type,v),y);S.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Mn(163))}}catch(_){Qo(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,or=e;break}or=t.return}return m=XY,XY=!1,m}function j2(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&$7(t,n,o)}i=i.next}while(i!==r)}}function e6(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function R7(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Wde(e){var t=e.alternate;t!==null&&(e.alternate=null,Wde(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[kf],delete t[Rw],delete t[b7],delete t[_ke],delete t[Eke])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Vde(e){return e.tag===5||e.tag===3||e.tag===4}function QY(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Vde(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function A7(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=O3));else if(r!==4&&(e=e.child,e!==null))for(A7(e,t,n),e=e.sibling;e!==null;)A7(e,t,n),e=e.sibling}function N7(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(N7(e,t,n),e=e.sibling;e!==null;)N7(e,t,n),e=e.sibling}var ps=null,dd=!1;function qp(e,t,n){for(n=n.child;n!==null;)Kde(e,t,n),n=n.sibling}function Kde(e,t,n){if(Lf&&typeof Lf.onCommitFiberUnmount=="function")try{Lf.onCommitFiberUnmount(Kk,n)}catch{}switch(n.tag){case 5:Ls||Ny(n,t);case 6:var r=ps,i=dd;ps=null,qp(e,t,n),ps=r,dd=i,ps!==null&&(dd?(e=ps,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ps.removeChild(n.stateNode));break;case 18:ps!==null&&(dd?(e=ps,n=n.stateNode,e.nodeType===8?c$(e.parentNode,n):e.nodeType===1&&c$(e,n),Ow(e)):c$(ps,n.stateNode));break;case 4:r=ps,i=dd,ps=n.stateNode.containerInfo,dd=!0,qp(e,t,n),ps=r,dd=i;break;case 0:case 11:case 14:case 15:if(!Ls&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&$7(n,t,a),i=i.next}while(i!==r)}qp(e,t,n);break;case 1:if(!Ls&&(Ny(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Qo(n,t,s)}qp(e,t,n);break;case 21:qp(e,t,n);break;case 22:n.mode&1?(Ls=(r=Ls)||n.memoizedState!==null,qp(e,t,n),Ls=r):qp(e,t,n);break;default:qp(e,t,n)}}function ZY(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Hke),t.forEach(function(r){var i=Qke.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Zu(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,a=t,s=a;e:for(;s!==null;){switch(s.tag){case 5:ps=s.stateNode,dd=!1;break e;case 3:ps=s.stateNode.containerInfo,dd=!0;break e;case 4:ps=s.stateNode.containerInfo,dd=!0;break e}s=s.return}if(ps===null)throw Error(Mn(160));Kde(o,a,i),ps=null,dd=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(c){Qo(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)qde(t,e),t=t.sibling}function qde(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Zu(t,e),uf(e),r&4){try{j2(3,e,e.return),e6(3,e)}catch(v){Qo(e,e.return,v)}try{j2(5,e,e.return)}catch(v){Qo(e,e.return,v)}}break;case 1:Zu(t,e),uf(e),r&512&&n!==null&&Ny(n,n.return);break;case 5:if(Zu(t,e),uf(e),r&512&&n!==null&&Ny(n,n.return),e.flags&32){var i=e.stateNode;try{_w(i,"")}catch(v){Qo(e,e.return,v)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,a=n!==null?n.memoizedProps:o,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&o.type==="radio"&&o.name!=null&&mue(i,o),o7(s,a);var c=o7(s,o);for(a=0;a<l.length;a+=2){var u=l[a],d=l[a+1];u==="style"?Sue(i,d):u==="dangerouslySetInnerHTML"?yue(i,d):u==="children"?_w(i,d):xH(i,u,d,c)}switch(s){case"input":e7(i,o);break;case"textarea":gue(i,o);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var p=o.value;p!=null?Qy(i,!!o.multiple,p,!1):h!==!!o.multiple&&(o.defaultValue!=null?Qy(i,!!o.multiple,o.defaultValue,!0):Qy(i,!!o.multiple,o.multiple?[]:"",!1))}i[Rw]=o}catch(v){Qo(e,e.return,v)}}break;case 6:if(Zu(t,e),uf(e),r&4){if(e.stateNode===null)throw Error(Mn(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(v){Qo(e,e.return,v)}}break;case 3:if(Zu(t,e),uf(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ow(t.containerInfo)}catch(v){Qo(e,e.return,v)}break;case 4:Zu(t,e),uf(e);break;case 13:Zu(t,e),uf(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(tz=ua())),r&4&&ZY(e);break;case 22:if(u=n!==null&&n.memoizedState!==null,e.mode&1?(Ls=(c=Ls)||u,Zu(t,e),Ls=c):Zu(t,e),uf(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!u&&e.mode&1)for(or=e,u=e.child;u!==null;){for(d=or=u;or!==null;){switch(h=or,p=h.child,h.tag){case 0:case 11:case 14:case 15:j2(4,h,h.return);break;case 1:Ny(h,h.return);var m=h.stateNode;if(typeof m.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(v){Qo(r,n,v)}}break;case 5:Ny(h,h.return);break;case 22:if(h.memoizedState!==null){eX(d);continue}}p!==null?(p.return=h,or=p):eX(d)}u=u.sibling}e:for(u=null,d=e;;){if(d.tag===5){if(u===null){u=d;try{i=d.stateNode,c?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(s=d.stateNode,l=d.memoizedProps.style,a=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=bue("display",a))}catch(v){Qo(e,e.return,v)}}}else if(d.tag===6){if(u===null)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(v){Qo(e,e.return,v)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Zu(t,e),uf(e),r&4&&ZY(e);break;case 21:break;default:Zu(t,e),uf(e)}}function uf(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Vde(n)){var r=n;break e}n=n.return}throw Error(Mn(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(_w(i,""),r.flags&=-33);var o=QY(e);N7(e,o,i);break;case 3:case 4:var a=r.stateNode.containerInfo,s=QY(e);A7(e,s,a);break;default:throw Error(Mn(161))}}catch(l){Qo(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Uke(e,t,n){or=e,Gde(e)}function Gde(e,t,n){for(var r=(e.mode&1)!==0;or!==null;){var i=or,o=i.child;if(i.tag===22&&r){var a=i.memoizedState!==null||vT;if(!a){var s=i.alternate,l=s!==null&&s.memoizedState!==null||Ls;s=vT;var c=Ls;if(vT=a,(Ls=l)&&!c)for(or=i;or!==null;)a=or,l=a.child,a.tag===22&&a.memoizedState!==null?tX(i):l!==null?(l.return=a,or=l):tX(i);for(;o!==null;)or=o,Gde(o),o=o.sibling;or=i,vT=s,Ls=c}JY(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,or=o):JY(e)}}function JY(e){for(;or!==null;){var t=or;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ls||e6(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ls)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:ld(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&LY(t,o,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}LY(t,a,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var d=u.dehydrated;d!==null&&Ow(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Mn(163))}Ls||t.flags&512&&R7(t)}catch(h){Qo(t,t.return,h)}}if(t===e){or=null;break}if(n=t.sibling,n!==null){n.return=t.return,or=n;break}or=t.return}}function eX(e){for(;or!==null;){var t=or;if(t===e){or=null;break}var n=t.sibling;if(n!==null){n.return=t.return,or=n;break}or=t.return}}function tX(e){for(;or!==null;){var t=or;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{e6(4,t)}catch(l){Qo(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){Qo(t,i,l)}}var o=t.return;try{R7(t)}catch(l){Qo(t,o,l)}break;case 5:var a=t.return;try{R7(t)}catch(l){Qo(t,a,l)}}}catch(l){Qo(t,t.return,l)}if(t===e){or=null;break}var s=t.sibling;if(s!==null){s.return=t.return,or=s;break}or=t.return}}var Wke=Math.ceil,j3=Sp.ReactCurrentDispatcher,JH=Sp.ReactCurrentOwner,yu=Sp.ReactCurrentBatchConfig,wi=0,rs=null,ka=null,vs=0,yc=0,Dy=dg(0),Ha=0,jw=null,cv=0,t6=0,ez=0,B2=null,Ll=null,tz=0,Db=1/0,$h=null,B3=!1,D7=null,Um=null,yT=!1,Pm=null,H3=0,H2=0,L7=null,t8=-1,n8=0;function hl(){return wi&6?ua():t8!==-1?t8:t8=ua()}function Wm(e){return e.mode&1?wi&2&&vs!==0?vs&-vs:kke.transition!==null?(n8===0&&(n8=$ue()),n8):(e=ji,e!==0||(e=window.event,e=e===void 0?16:jue(e.type)),e):1}function wd(e,t,n,r){if(50<H2)throw H2=0,L7=null,Error(Mn(185));Y_(e,n,r),(!(wi&2)||e!==rs)&&(e===rs&&(!(wi&2)&&(t6|=n),Ha===4&&xm(e,vs)),Wl(e,r),n===1&&wi===0&&!(t.mode&1)&&(Db=ua()+500,Qk&&fg()))}function Wl(e,t){var n=e.callbackNode;k9e(e,t);var r=_3(e,e===rs?vs:0);if(r===0)n!==null&&uY(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&uY(n),t===1)e.tag===0?Tke(nX.bind(null,e)):ide(nX.bind(null,e)),xke(function(){!(wi&6)&&fg()}),n=null;else{switch(Rue(r)){case 1:n=kH;break;case 4:n=Mue;break;case 16:n=w3;break;case 536870912:n=Iue;break;default:n=w3}n=nfe(n,Yde.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Yde(e,t){if(t8=-1,n8=0,wi&6)throw Error(Mn(327));var n=e.callbackNode;if(nb()&&e.callbackNode!==n)return null;var r=_3(e,e===rs?vs:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=z3(e,r);else{t=r;var i=wi;wi|=2;var o=Qde();(rs!==e||vs!==t)&&($h=null,Db=ua()+500,B1(e,t));do try{qke();break}catch(s){Xde(e,s)}while(!0);BH(),j3.current=o,wi=i,ka!==null?t=0:(rs=null,vs=0,t=Ha)}if(t!==0){if(t===2&&(i=u7(e),i!==0&&(r=i,t=F7(e,i))),t===1)throw n=jw,B1(e,0),xm(e,r),Wl(e,ua()),n;if(t===6)xm(e,r);else{if(i=e.current.alternate,!(r&30)&&!Vke(i)&&(t=z3(e,r),t===2&&(o=u7(e),o!==0&&(r=o,t=F7(e,o))),t===1))throw n=jw,B1(e,0),xm(e,r),Wl(e,ua()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(Mn(345));case 2:i1(e,Ll,$h);break;case 3:if(xm(e,r),(r&130023424)===r&&(t=tz+500-ua(),10<t)){if(_3(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){hl(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=y7(i1.bind(null,e,Ll,$h),t);break}i1(e,Ll,$h);break;case 4:if(xm(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-xd(r);o=1<<a,a=t[a],a>i&&(i=a),r&=~o}if(r=i,r=ua()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Wke(r/1960))-r,10<r){e.timeoutHandle=y7(i1.bind(null,e,Ll,$h),r);break}i1(e,Ll,$h);break;case 5:i1(e,Ll,$h);break;default:throw Error(Mn(329))}}}return Wl(e,ua()),e.callbackNode===n?Yde.bind(null,e):null}function F7(e,t){var n=B2;return e.current.memoizedState.isDehydrated&&(B1(e,t).flags|=256),e=z3(e,t),e!==2&&(t=Ll,Ll=n,t!==null&&j7(t)),e}function j7(e){Ll===null?Ll=e:Ll.push.apply(Ll,e)}function Vke(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Rd(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function xm(e,t){for(t&=~ez,t&=~t6,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-xd(t),r=1<<n;e[n]=-1,t&=~r}}function nX(e){if(wi&6)throw Error(Mn(327));nb();var t=_3(e,0);if(!(t&1))return Wl(e,ua()),null;var n=z3(e,t);if(e.tag!==0&&n===2){var r=u7(e);r!==0&&(t=r,n=F7(e,r))}if(n===1)throw n=jw,B1(e,0),xm(e,t),Wl(e,ua()),n;if(n===6)throw Error(Mn(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,i1(e,Ll,$h),Wl(e,ua()),null}function nz(e,t){var n=wi;wi|=1;try{return e(t)}finally{wi=n,wi===0&&(Db=ua()+500,Qk&&fg())}}function uv(e){Pm!==null&&Pm.tag===0&&!(wi&6)&&nb();var t=wi;wi|=1;var n=yu.transition,r=ji;try{if(yu.transition=null,ji=1,e)return e()}finally{ji=r,yu.transition=n,wi=t,!(wi&6)&&fg()}}function rz(){yc=Dy.current,yo(Dy)}function B1(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Cke(n)),ka!==null)for(n=ka.return;n!==null;){var r=n;switch(LH(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&P3();break;case 3:Ab(),yo(zl),yo(Ws),KH();break;case 5:VH(r);break;case 4:Ab();break;case 13:yo(Fo);break;case 19:yo(Fo);break;case 10:HH(r.type._context);break;case 22:case 23:rz()}n=n.return}if(rs=e,ka=e=Vm(e.current,null),vs=yc=t,Ha=0,jw=null,ez=t6=cv=0,Ll=B2=null,b1!==null){for(t=0;t<b1.length;t++)if(n=b1[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var a=o.next;o.next=i,r.next=a}n.pending=r}b1=null}return e}function Xde(e,t){do{var n=ka;try{if(BH(),Z5.current=F3,L3){for(var r=Bo.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}L3=!1}if(lv=0,Ja=Ba=Bo=null,F2=!1,Dw=0,JH.current=null,n===null||n.return===null){Ha=1,jw=t,ka=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=vs,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,u=s,d=u.tag;if(!(u.mode&1)&&(d===0||d===11||d===15)){var h=u.alternate;h?(u.updateQueue=h.updateQueue,u.memoizedState=h.memoizedState,u.lanes=h.lanes):(u.updateQueue=null,u.memoizedState=null)}var p=UY(a);if(p!==null){p.flags&=-257,WY(p,a,s,o,t),p.mode&1&&zY(o,c,t),t=p,l=c;var m=t.updateQueue;if(m===null){var v=new Set;v.add(l),t.updateQueue=v}else m.add(l);break e}else{if(!(t&1)){zY(o,c,t),iz();break e}l=Error(Mn(426))}}else if(Mo&&s.mode&1){var y=UY(a);if(y!==null){!(y.flags&65536)&&(y.flags|=256),WY(y,a,s,o,t),FH(Nb(l,s));break e}}o=l=Nb(l,s),Ha!==4&&(Ha=2),B2===null?B2=[o]:B2.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var S=Rde(o,l,t);DY(o,S);break e;case 1:s=l;var b=o.type,C=o.stateNode;if(!(o.flags&128)&&(typeof b.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(Um===null||!Um.has(C)))){o.flags|=65536,t&=-t,o.lanes|=t;var _=Ade(o,s,t);DY(o,_);break e}}o=o.return}while(o!==null)}Jde(n)}catch(T){t=T,ka===n&&n!==null&&(ka=n=n.return);continue}break}while(!0)}function Qde(){var e=j3.current;return j3.current=F3,e===null?F3:e}function iz(){(Ha===0||Ha===3||Ha===2)&&(Ha=4),rs===null||!(cv&268435455)&&!(t6&268435455)||xm(rs,vs)}function z3(e,t){var n=wi;wi|=2;var r=Qde();(rs!==e||vs!==t)&&($h=null,B1(e,t));do try{Kke();break}catch(i){Xde(e,i)}while(!0);if(BH(),wi=n,j3.current=r,ka!==null)throw Error(Mn(261));return rs=null,vs=0,Ha}function Kke(){for(;ka!==null;)Zde(ka)}function qke(){for(;ka!==null&&!y9e();)Zde(ka)}function Zde(e){var t=tfe(e.alternate,e,yc);e.memoizedProps=e.pendingProps,t===null?Jde(e):ka=t,JH.current=null}function Jde(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Bke(n,t),n!==null){n.flags&=32767,ka=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ha=6,ka=null;return}}else if(n=jke(n,t,yc),n!==null){ka=n;return}if(t=t.sibling,t!==null){ka=t;return}ka=t=e}while(t!==null);Ha===0&&(Ha=5)}function i1(e,t,n){var r=ji,i=yu.transition;try{yu.transition=null,ji=1,Gke(e,t,n,r)}finally{yu.transition=i,ji=r}return null}function Gke(e,t,n,r){do nb();while(Pm!==null);if(wi&6)throw Error(Mn(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(Mn(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(O9e(e,o),e===rs&&(ka=rs=null,vs=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||yT||(yT=!0,nfe(w3,function(){return nb(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=yu.transition,yu.transition=null;var a=ji;ji=1;var s=wi;wi|=4,JH.current=null,zke(e,n),qde(n,e),pke(g7),E3=!!m7,g7=m7=null,e.current=n,Uke(n),b9e(),wi=s,ji=a,yu.transition=o}else e.current=n;if(yT&&(yT=!1,Pm=e,H3=i),o=e.pendingLanes,o===0&&(Um=null),x9e(n.stateNode),Wl(e,ua()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(B3)throw B3=!1,e=D7,D7=null,e;return H3&1&&e.tag!==0&&nb(),o=e.pendingLanes,o&1?e===L7?H2++:(H2=0,L7=e):H2=0,fg(),null}function nb(){if(Pm!==null){var e=Rue(H3),t=yu.transition,n=ji;try{if(yu.transition=null,ji=16>e?16:e,Pm===null)var r=!1;else{if(e=Pm,Pm=null,H3=0,wi&6)throw Error(Mn(331));var i=wi;for(wi|=4,or=e.current;or!==null;){var o=or,a=o.child;if(or.flags&16){var s=o.deletions;if(s!==null){for(var l=0;l<s.length;l++){var c=s[l];for(or=c;or!==null;){var u=or;switch(u.tag){case 0:case 11:case 15:j2(8,u,o)}var d=u.child;if(d!==null)d.return=u,or=d;else for(;or!==null;){u=or;var h=u.sibling,p=u.return;if(Wde(u),u===c){or=null;break}if(h!==null){h.return=p,or=h;break}or=p}}}var m=o.alternate;if(m!==null){var v=m.child;if(v!==null){m.child=null;do{var y=v.sibling;v.sibling=null,v=y}while(v!==null)}}or=o}}if(o.subtreeFlags&2064&&a!==null)a.return=o,or=a;else e:for(;or!==null;){if(o=or,o.flags&2048)switch(o.tag){case 0:case 11:case 15:j2(9,o,o.return)}var S=o.sibling;if(S!==null){S.return=o.return,or=S;break e}or=o.return}}var b=e.current;for(or=b;or!==null;){a=or;var C=a.child;if(a.subtreeFlags&2064&&C!==null)C.return=a,or=C;else e:for(a=b;or!==null;){if(s=or,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:e6(9,s)}}catch(T){Qo(s,s.return,T)}if(s===a){or=null;break e}var _=s.sibling;if(_!==null){_.return=s.return,or=_;break e}or=s.return}}if(wi=i,fg(),Lf&&typeof Lf.onPostCommitFiberRoot=="function")try{Lf.onPostCommitFiberRoot(Kk,e)}catch{}r=!0}return r}finally{ji=n,yu.transition=t}}return!1}function rX(e,t,n){t=Nb(n,t),t=Rde(e,t,1),e=zm(e,t,1),t=hl(),e!==null&&(Y_(e,1,t),Wl(e,t))}function Qo(e,t,n){if(e.tag===3)rX(e,e,n);else for(;t!==null;){if(t.tag===3){rX(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Um===null||!Um.has(r))){e=Nb(n,e),e=Ade(t,e,1),t=zm(t,e,1),e=hl(),t!==null&&(Y_(t,1,e),Wl(t,e));break}}t=t.return}}function Yke(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=hl(),e.pingedLanes|=e.suspendedLanes&n,rs===e&&(vs&n)===n&&(Ha===4||Ha===3&&(vs&130023424)===vs&&500>ua()-tz?B1(e,0):ez|=n),Wl(e,t)}function efe(e,t){t===0&&(e.mode&1?(t=lT,lT<<=1,!(lT&130023424)&&(lT=4194304)):t=1);var n=hl();e=op(e,t),e!==null&&(Y_(e,t,n),Wl(e,n))}function Xke(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),efe(e,n)}function Qke(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Mn(314))}r!==null&&r.delete(t),efe(e,n)}var tfe;tfe=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||zl.current)jl=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return jl=!1,Fke(e,t,n);jl=!!(e.flags&131072)}else jl=!1,Mo&&t.flags&1048576&&ode(t,$3,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;e8(e,t),e=t.pendingProps;var i=Ib(t,Ws.current);tb(t,n),i=GH(null,t,r,e,i,n);var o=YH();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ul(r)?(o=!0,M3(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,UH(t),i.updater=Jk,t.stateNode=i,i._reactInternals=t,E7(t,r,e,n),t=O7(null,t,r,!0,o,n)):(t.tag=0,Mo&&o&&DH(t),il(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(e8(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Jke(r),e=ld(r,e),i){case 0:t=k7(null,t,r,e,n);break e;case 1:t=qY(null,t,r,e,n);break e;case 11:t=VY(null,t,r,e,n);break e;case 14:t=KY(null,t,r,ld(r.type,e),n);break e}throw Error(Mn(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ld(r,i),k7(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ld(r,i),qY(e,t,r,i,n);case 3:e:{if(Fde(t),e===null)throw Error(Mn(387));r=t.pendingProps,o=t.memoizedState,i=o.element,dde(e,t),N3(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Nb(Error(Mn(423)),t),t=GY(e,t,r,n,i);break e}else if(r!==i){i=Nb(Error(Mn(424)),t),t=GY(e,t,r,n,i);break e}else for(wc=Hm(t.stateNode.containerInfo.firstChild),Mc=t,Mo=!0,md=null,n=cde(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if($b(),r===i){t=ap(e,t,n);break e}il(e,t,r,n)}t=t.child}return t;case 5:return fde(t),e===null&&x7(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,v7(r,i)?a=null:o!==null&&v7(r,o)&&(t.flags|=32),Lde(e,t),il(e,t,a,n),t.child;case 6:return e===null&&x7(t),null;case 13:return jde(e,t,n);case 4:return WH(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Rb(t,null,r,n):il(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ld(r,i),VY(e,t,r,i,n);case 7:return il(e,t,t.pendingProps,n),t.child;case 8:return il(e,t,t.pendingProps.children,n),t.child;case 12:return il(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,so(R3,r._currentValue),r._currentValue=a,o!==null)if(Rd(o.value,a)){if(o.children===i.children&&!zl.current){t=ap(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Qh(-1,n&-n),l.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),w7(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(Mn(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),w7(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}il(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,tb(t,n),i=wu(i),r=r(i),t.flags|=1,il(e,t,r,n),t.child;case 14:return r=t.type,i=ld(r,t.pendingProps),i=ld(r.type,i),KY(e,t,r,i,n);case 15:return Nde(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ld(r,i),e8(e,t),t.tag=1,Ul(r)?(e=!0,M3(t)):e=!1,tb(t,n),$de(t,r,i),E7(t,r,i,n),O7(null,t,r,!0,e,n);case 19:return Bde(e,t,n);case 22:return Dde(e,t,n)}throw Error(Mn(156,t.tag))};function nfe(e,t){return Pue(e,t)}function Zke(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function gu(e,t,n,r){return new Zke(e,t,n,r)}function oz(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Jke(e){if(typeof e=="function")return oz(e)?1:0;if(e!=null){if(e=e.$$typeof,e===_H)return 11;if(e===EH)return 14}return 2}function Vm(e,t){var n=e.alternate;return n===null?(n=gu(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function r8(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")oz(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Ty:return H1(n.children,i,o,t);case wH:a=8,i|=8;break;case YN:return e=gu(12,n,t,i|2),e.elementType=YN,e.lanes=o,e;case XN:return e=gu(13,n,t,i),e.elementType=XN,e.lanes=o,e;case QN:return e=gu(19,n,t,i),e.elementType=QN,e.lanes=o,e;case fue:return n6(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case uue:a=10;break e;case due:a=9;break e;case _H:a=11;break e;case EH:a=14;break e;case gm:a=16,r=null;break e}throw Error(Mn(130,e==null?e:typeof e,""))}return t=gu(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function H1(e,t,n,r){return e=gu(7,e,r,t),e.lanes=n,e}function n6(e,t,n,r){return e=gu(22,e,r,t),e.elementType=fue,e.lanes=n,e.stateNode={isHidden:!1},e}function v$(e,t,n){return e=gu(6,e,null,t),e.lanes=n,e}function y$(e,t,n){return t=gu(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function e6e(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ZI(0),this.expirationTimes=ZI(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ZI(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function az(e,t,n,r,i,o,a,s,l){return e=new e6e(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=gu(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},UH(o),e}function t6e(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ey,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function rfe(e){if(!e)return eg;e=e._reactInternals;e:{if(Dv(e)!==e||e.tag!==1)throw Error(Mn(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ul(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Mn(171))}if(e.tag===1){var n=e.type;if(Ul(n))return rde(e,n,t)}return t}function ife(e,t,n,r,i,o,a,s,l){return e=az(n,r,!0,e,i,o,a,s,l),e.context=rfe(null),n=e.current,r=hl(),i=Wm(n),o=Qh(r,i),o.callback=t??null,zm(n,o,i),e.current.lanes=i,Y_(e,i,r),Wl(e,r),e}function r6(e,t,n,r){var i=t.current,o=hl(),a=Wm(i);return n=rfe(n),t.context===null?t.context=n:t.pendingContext=n,t=Qh(o,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=zm(i,t,a),e!==null&&(wd(e,i,a,o),Q5(e,i,a)),a}function U3(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function iX(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function sz(e,t){iX(e,t),(e=e.alternate)&&iX(e,t)}function n6e(){return null}var ofe=typeof reportError=="function"?reportError:function(e){console.error(e)};function lz(e){this._internalRoot=e}i6.prototype.render=lz.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Mn(409));r6(e,t,null,null)};i6.prototype.unmount=lz.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;uv(function(){r6(null,e,null,null)}),t[ip]=null}};function i6(e){this._internalRoot=e}i6.prototype.unstable_scheduleHydration=function(e){if(e){var t=Due();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Cm.length&&t!==0&&t<Cm[n].priority;n++);Cm.splice(n,0,e),n===0&&Fue(e)}};function cz(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o6(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function oX(){}function r6e(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var c=U3(a);o.call(c)}}var a=ife(t,r,e,0,null,!1,!1,"",oX);return e._reactRootContainer=a,e[ip]=a.current,Iw(e.nodeType===8?e.parentNode:e),uv(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var c=U3(l);s.call(c)}}var l=az(e,0,!1,null,null,!1,!1,"",oX);return e._reactRootContainer=l,e[ip]=l.current,Iw(e.nodeType===8?e.parentNode:e),uv(function(){r6(t,l,n,r)}),l}function a6(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if(typeof i=="function"){var s=i;i=function(){var l=U3(a);s.call(l)}}r6(t,a,e,i)}else a=r6e(n,t,e,i,r);return U3(a)}Aue=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=f2(t.pendingLanes);n!==0&&(OH(t,n|1),Wl(t,ua()),!(wi&6)&&(Db=ua()+500,fg()))}break;case 13:uv(function(){var r=op(e,1);if(r!==null){var i=hl();wd(r,e,1,i)}}),sz(e,1)}};PH=function(e){if(e.tag===13){var t=op(e,134217728);if(t!==null){var n=hl();wd(t,e,134217728,n)}sz(e,134217728)}};Nue=function(e){if(e.tag===13){var t=Wm(e),n=op(e,t);if(n!==null){var r=hl();wd(n,e,t,r)}sz(e,t)}};Due=function(){return ji};Lue=function(e,t){var n=ji;try{return ji=e,t()}finally{ji=n}};s7=function(e,t,n){switch(t){case"input":if(e7(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Xk(r);if(!i)throw Error(Mn(90));pue(r),e7(r,i)}}}break;case"textarea":gue(e,n);break;case"select":t=n.value,t!=null&&Qy(e,!!n.multiple,t,!1)}};wue=nz;_ue=uv;var i6e={usingClientEntryPoint:!1,Events:[Q_,My,Xk,Cue,xue,nz]},xx={findFiberByHostInstance:y1,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},o6e={bundleType:xx.bundleType,version:xx.version,rendererPackageName:xx.rendererPackageName,rendererConfig:xx.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Sp.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=kue(e),e===null?null:e.stateNode},findFiberByHostInstance:xx.findFiberByHostInstance||n6e,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var bT=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bT.isDisabled&&bT.supportsFiber)try{Kk=bT.inject(o6e),Lf=bT}catch{}}Hc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=i6e;Hc.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!cz(t))throw Error(Mn(200));return t6e(e,t,null,n)};Hc.createRoot=function(e,t){if(!cz(e))throw Error(Mn(299));var n=!1,r="",i=ofe;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=az(e,1,!1,null,null,n,!1,r,i),e[ip]=t.current,Iw(e.nodeType===8?e.parentNode:e),new lz(t)};Hc.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(Mn(188)):(e=Object.keys(e).join(","),Error(Mn(268,e)));return e=kue(t),e=e===null?null:e.stateNode,e};Hc.flushSync=function(e){return uv(e)};Hc.hydrate=function(e,t,n){if(!o6(t))throw Error(Mn(200));return a6(null,e,t,!0,n)};Hc.hydrateRoot=function(e,t,n){if(!cz(e))throw Error(Mn(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",a=ofe;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=ife(t,null,e,1,n??null,i,!1,o,a),e[ip]=t.current,Iw(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new i6(t)};Hc.render=function(e,t,n){if(!o6(t))throw Error(Mn(200));return a6(null,e,t,!1,n)};Hc.unmountComponentAtNode=function(e){if(!o6(e))throw Error(Mn(40));return e._reactRootContainer?(uv(function(){a6(null,null,e,!1,function(){e._reactRootContainer=null,e[ip]=null})}),!0):!1};Hc.unstable_batchedUpdates=nz;Hc.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!o6(n))throw Error(Mn(200));if(e==null||e._reactInternals===void 0)throw Error(Mn(38));return a6(e,t,n,!1,r)};Hc.version="18.3.1-next-f1338f8080-20240426";function afe(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(afe)}catch(e){console.error(e)}}afe(),aue.exports=Hc;var Ac=aue.exports;const Bw=vi(Ac),sfe=Wk({__proto__:null,default:Bw},[Ac]);var aX=Ac;qN.createRoot=aX.createRoot,qN.hydrateRoot=aX.hydrateRoot;const a6e={BASE_URL:"/notebase",DEV:!1,MODE:"open",PROD:!0,SSR:!1,VITE_CONFIG_ENV:"prod-open"},sX=e=>{let t;const n=new Set,r=(u,d)=>{const h=typeof u=="function"?u(t):u;if(!Object.is(h,t)){const p=t;t=d??(typeof h!="object"||h===null)?h:Object.assign({},t,h),n.forEach(m=>m(t,p))}},i=()=>t,l={setState:r,getState:i,getInitialState:()=>c,subscribe:u=>(n.add(u),()=>n.delete(u)),destroy:()=>{(a6e?"open":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},c=t=e(r,i,l);return l},s6e=e=>e?sX(e):sX;var lfe={exports:{}},cfe={},ufe={exports:{}},dfe={};/**
|
||
* @license React
|
||
* use-sync-external-store-shim.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var Lb=f;function l6e(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var c6e=typeof Object.is=="function"?Object.is:l6e,u6e=Lb.useState,d6e=Lb.useEffect,f6e=Lb.useLayoutEffect,h6e=Lb.useDebugValue;function p6e(e,t){var n=t(),r=u6e({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return f6e(function(){i.value=n,i.getSnapshot=t,b$(i)&&o({inst:i})},[e,n,t]),d6e(function(){return b$(i)&&o({inst:i}),e(function(){b$(i)&&o({inst:i})})},[e]),h6e(n),n}function b$(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!c6e(e,n)}catch{return!0}}function m6e(e,t){return t()}var g6e=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m6e:p6e;dfe.useSyncExternalStore=Lb.useSyncExternalStore!==void 0?Lb.useSyncExternalStore:g6e;ufe.exports=dfe;var ffe=ufe.exports;/**
|
||
* @license React
|
||
* use-sync-external-store-shim/with-selector.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var s6=f,v6e=ffe;function y6e(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var b6e=typeof Object.is=="function"?Object.is:y6e,S6e=v6e.useSyncExternalStore,C6e=s6.useRef,x6e=s6.useEffect,w6e=s6.useMemo,_6e=s6.useDebugValue;cfe.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=C6e(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=w6e(function(){function l(p){if(!c){if(c=!0,u=p,p=r(p),i!==void 0&&a.hasValue){var m=a.value;if(i(m,p))return d=m}return d=p}if(m=d,b6e(u,p))return m;var v=r(p);return i!==void 0&&i(m,v)?m:(u=p,d=v)}var c=!1,u,d,h=n===void 0?null:n;return[function(){return l(t())},h===null?void 0:function(){return l(h())}]},[t,n,r,i]);var s=S6e(e,o[0],o[1]);return x6e(function(){a.hasValue=!0,a.value=s},[s]),_6e(s),s};lfe.exports=cfe;var E6e=lfe.exports;const T6e=vi(E6e),hfe={BASE_URL:"/notebase",DEV:!1,MODE:"open",PROD:!0,SSR:!1,VITE_CONFIG_ENV:"prod-open"},{useDebugValue:k6e}=ge,{useSyncExternalStoreWithSelector:O6e}=T6e;let lX=!1;const P6e=e=>e;function M6e(e,t=P6e,n){(hfe?"open":void 0)!=="production"&&n&&!lX&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),lX=!0);const r=O6e(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return k6e(r),r}const cX=e=>{(hfe?"open":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?s6e(e):e,n=(r,i)=>M6e(t,r,i);return Object.assign(n,t),n},Uc=e=>e?cX(e):cX,i8={BASE_URL:"/notebase",DEV:!1,MODE:"open",PROD:!0,SSR:!1,VITE_CONFIG_ENV:"prod-open"},B7=new Map,ST=e=>{const t=B7.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([n,r])=>[n,r.getState()])):{}},I6e=(e,t,n)=>{if(e===void 0)return{type:"untracked",connection:t.connect(n)};const r=B7.get(n.name);if(r)return{type:"tracked",store:e,...r};const i={connection:t.connect(n),stores:{}};return B7.set(n.name,i),{type:"tracked",store:e,...i}},$6e=(e,t={})=>(n,r,i)=>{const{enabled:o,anonymousActionType:a,store:s,...l}=t;let c;try{c=(o??(i8?"open":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!c)return(i8?"open":void 0)!=="production"&&o&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,i);const{connection:u,...d}=I6e(s,c,l);let h=!0;i.setState=(v,y,S)=>{const b=n(v,y);if(!h)return b;const C=S===void 0?{type:a||"anonymous"}:typeof S=="string"?{type:S}:S;return s===void 0?(u==null||u.send(C,r()),b):(u==null||u.send({...C,type:`${s}/${C.type}`},{...ST(l.name),[s]:i.getState()}),b)};const p=(...v)=>{const y=h;h=!1,n(...v),h=y},m=e(i.setState,r,i);if(d.type==="untracked"?u==null||u.init(m):(d.stores[d.store]=i,u==null||u.init(Object.fromEntries(Object.entries(d.stores).map(([v,y])=>[v,v===d.store?m:y.getState()])))),i.dispatchFromDevtools&&typeof i.dispatch=="function"){let v=!1;const y=i.dispatch;i.dispatch=(...S)=>{(i8?"open":void 0)!=="production"&&S[0].type==="__setState"&&!v&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),v=!0),y(...S)}}return u.subscribe(v=>{var y;switch(v.type){case"ACTION":if(typeof v.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return S$(v.payload,S=>{if(S.type==="__setState"){if(s===void 0){p(S.state);return}Object.keys(S.state).length!==1&&console.error(`
|
||
[zustand devtools middleware] Unsupported __setState action format.
|
||
When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
|
||
and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
|
||
`);const b=S.state[s];if(b==null)return;JSON.stringify(i.getState())!==JSON.stringify(b)&&p(b);return}i.dispatchFromDevtools&&typeof i.dispatch=="function"&&i.dispatch(S)});case"DISPATCH":switch(v.payload.type){case"RESET":return p(m),s===void 0?u==null?void 0:u.init(i.getState()):u==null?void 0:u.init(ST(l.name));case"COMMIT":if(s===void 0){u==null||u.init(i.getState());return}return u==null?void 0:u.init(ST(l.name));case"ROLLBACK":return S$(v.state,S=>{if(s===void 0){p(S),u==null||u.init(i.getState());return}p(S[s]),u==null||u.init(ST(l.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return S$(v.state,S=>{if(s===void 0){p(S);return}JSON.stringify(i.getState())!==JSON.stringify(S[s])&&p(S[s])});case"IMPORT_STATE":{const{nextLiftedState:S}=v.payload,b=(y=S.computedStates.slice(-1)[0])==null?void 0:y.state;if(!b)return;p(s===void 0?b:b[s]),u==null||u.send(null,S);return}case"PAUSE_RECORDING":return h=!h}return}}),m},Vd=$6e,S$=(e,t)=>{let n;try{n=JSON.parse(e)}catch(r){console.error("[zustand devtools middleware] Could not parse the received json",r)}n!==void 0&&t(n)};function R6e(e,t){let n;try{n=e()}catch{return}return{getItem:i=>{var o;const a=l=>l===null?null:JSON.parse(l,void 0),s=(o=n.getItem(i))!=null?o:null;return s instanceof Promise?s.then(a):a(s)},setItem:(i,o)=>n.setItem(i,JSON.stringify(o,void 0)),removeItem:i=>n.removeItem(i)}}const Hw=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return Hw(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return Hw(r)(n)}}}},A6e=(e,t)=>(n,r,i)=>{let o={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:y=>y,version:0,merge:(y,S)=>({...S,...y}),...t},a=!1;const s=new Set,l=new Set;let c;try{c=o.getStorage()}catch{}if(!c)return e((...y)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...y)},r,i);const u=Hw(o.serialize),d=()=>{const y=o.partialize({...r()});let S;const b=u({state:y,version:o.version}).then(C=>c.setItem(o.name,C)).catch(C=>{S=C});if(S)throw S;return b},h=i.setState;i.setState=(y,S)=>{h(y,S),d()};const p=e((...y)=>{n(...y),d()},r,i);let m;const v=()=>{var y;if(!c)return;a=!1,s.forEach(b=>b(r()));const S=((y=o.onRehydrateStorage)==null?void 0:y.call(o,r()))||void 0;return Hw(c.getItem.bind(c))(o.name).then(b=>{if(b)return o.deserialize(b)}).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==o.version){if(o.migrate)return o.migrate(b.state,b.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return b.state}).then(b=>{var C;return m=o.merge(b,(C=r())!=null?C:p),n(m,!0),d()}).then(()=>{S==null||S(m,void 0),a=!0,l.forEach(b=>b(m))}).catch(b=>{S==null||S(void 0,b)})};return i.persist={setOptions:y=>{o={...o,...y},y.getStorage&&(c=y.getStorage())},clearStorage:()=>{c==null||c.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>v(),hasHydrated:()=>a,onHydrate:y=>(s.add(y),()=>{s.delete(y)}),onFinishHydration:y=>(l.add(y),()=>{l.delete(y)})},v(),m||p},N6e=(e,t)=>(n,r,i)=>{let o={storage:R6e(()=>localStorage),partialize:v=>v,version:0,merge:(v,y)=>({...y,...v}),...t},a=!1;const s=new Set,l=new Set;let c=o.storage;if(!c)return e((...v)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...v)},r,i);const u=()=>{const v=o.partialize({...r()});return c.setItem(o.name,{state:v,version:o.version})},d=i.setState;i.setState=(v,y)=>{d(v,y),u()};const h=e((...v)=>{n(...v),u()},r,i);i.getInitialState=()=>h;let p;const m=()=>{var v,y;if(!c)return;a=!1,s.forEach(b=>{var C;return b((C=r())!=null?C:h)});const S=((y=o.onRehydrateStorage)==null?void 0:y.call(o,(v=r())!=null?v:h))||void 0;return Hw(c.getItem.bind(c))(o.name).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==o.version){if(o.migrate)return[!0,o.migrate(b.state,b.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,b.state];return[!1,void 0]}).then(b=>{var C;const[_,T]=b;if(p=o.merge(T,(C=r())!=null?C:h),n(p,!0),_)return u()}).then(()=>{S==null||S(p,void 0),p=r(),a=!0,l.forEach(b=>b(p))}).catch(b=>{S==null||S(void 0,b)})};return i.persist={setOptions:v=>{o={...o,...v},v.storage&&(c=v.storage)},clearStorage:()=>{c==null||c.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>m(),hasHydrated:()=>a,onHydrate:v=>(s.add(v),()=>{s.delete(v)}),onFinishHydration:v=>(l.add(v),()=>{l.delete(v)})},o.skipHydration||m(),p||h},D6e=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?((i8?"open":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),A6e(e,t)):N6e(e,t),Kd=D6e;var pfe=Symbol.for("immer-nothing"),uX=Symbol.for("immer-draftable"),Nc=Symbol.for("immer-state");function gd(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Fb=Object.getPrototypeOf;function jb(e){return!!e&&!!e[Nc]}function dv(e){var t;return e?mfe(e)||Array.isArray(e)||!!e[uX]||!!((t=e.constructor)!=null&&t[uX])||c6(e)||u6(e):!1}var L6e=Object.prototype.constructor.toString();function mfe(e){if(!e||typeof e!="object")return!1;const t=Fb(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===L6e}function W3(e,t){l6(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function l6(e){const t=e[Nc];return t?t.type_:Array.isArray(e)?1:c6(e)?2:u6(e)?3:0}function H7(e,t){return l6(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function gfe(e,t,n){const r=l6(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function F6e(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function c6(e){return e instanceof Map}function u6(e){return e instanceof Set}function o1(e){return e.copy_||e.base_}function z7(e,t){if(c6(e))return new Map(e);if(u6(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=mfe(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Nc];let i=Reflect.ownKeys(r);for(let o=0;o<i.length;o++){const a=i[o],s=r[a];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(r[a]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[a]})}return Object.create(Fb(e),r)}else{const r=Fb(e);if(r!==null&&n)return{...e};const i=Object.create(r);return Object.assign(i,e)}}function uz(e,t=!1){return d6(e)||jb(e)||!dv(e)||(l6(e)>1&&(e.set=e.add=e.clear=e.delete=j6e),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>uz(r,!0))),e}function j6e(){gd(2)}function d6(e){return Object.isFrozen(e)}var B6e={};function fv(e){const t=B6e[e];return t||gd(0,e),t}var zw;function vfe(){return zw}function H6e(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function dX(e,t){t&&(fv("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function U7(e){W7(e),e.drafts_.forEach(z6e),e.drafts_=null}function W7(e){e===zw&&(zw=e.parent_)}function fX(e){return zw=H6e(zw,e)}function z6e(e){const t=e[Nc];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function hX(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Nc].modified_&&(U7(t),gd(4)),dv(e)&&(e=V3(t,e),t.parent_||K3(t,e)),t.patches_&&fv("Patches").generateReplacementPatches_(n[Nc].base_,e,t.patches_,t.inversePatches_)):e=V3(t,n,[]),U7(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==pfe?e:void 0}function V3(e,t,n){if(d6(t))return t;const r=t[Nc];if(!r)return W3(t,(i,o)=>pX(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return K3(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let o=i,a=!1;r.type_===3&&(o=new Set(i),i.clear(),a=!0),W3(o,(s,l)=>pX(e,r,i,s,l,n,a)),K3(e,i,!1),n&&e.patches_&&fv("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function pX(e,t,n,r,i,o,a){if(jb(i)){const s=o&&t&&t.type_!==3&&!H7(t.assigned_,r)?o.concat(r):void 0,l=V3(e,i,s);if(gfe(n,r,l),jb(l))e.canAutoFreeze_=!1;else return}else a&&n.add(i);if(dv(i)&&!d6(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;V3(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&K3(e,i)}}function K3(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&uz(t,n)}function U6e(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:vfe(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=dz;n&&(i=[r],o=Uw);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return r.draft_=s,r.revoke_=a,s}var dz={get(e,t){if(t===Nc)return e;const n=o1(e);if(!H7(n,t))return W6e(e,n,t);const r=n[t];return e.finalized_||!dv(r)?r:r===C$(e.base_,t)?(x$(e),e.copy_[t]=K7(r,e)):r},has(e,t){return t in o1(e)},ownKeys(e){return Reflect.ownKeys(o1(e))},set(e,t,n){const r=yfe(o1(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=C$(o1(e),t),o=i==null?void 0:i[Nc];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(F6e(n,i)&&(n!==void 0||H7(e.base_,t)))return!0;x$(e),V7(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return C$(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,x$(e),V7(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=o1(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){gd(11)},getPrototypeOf(e){return Fb(e.base_)},setPrototypeOf(){gd(12)}},Uw={};W3(dz,(e,t)=>{Uw[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Uw.deleteProperty=function(e,t){return Uw.set.call(this,e,t,void 0)};Uw.set=function(e,t,n){return dz.set.call(this,e[0],t,n,e[0])};function C$(e,t){const n=e[Nc];return(n?o1(n):e)[t]}function W6e(e,t,n){var i;const r=yfe(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function yfe(e,t){if(!(t in e))return;let n=Fb(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Fb(n)}}function V7(e){e.modified_||(e.modified_=!0,e.parent_&&V7(e.parent_))}function x$(e){e.copy_||(e.copy_=z7(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var V6e=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const o=n;n=t;const a=this;return function(l=o,...c){return a.produce(l,u=>n.call(this,u,...c))}}typeof n!="function"&&gd(6),r!==void 0&&typeof r!="function"&&gd(7);let i;if(dv(t)){const o=fX(this),a=K7(t,void 0);let s=!0;try{i=n(a),s=!1}finally{s?U7(o):W7(o)}return dX(o,r),hX(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===pfe&&(i=void 0),this.autoFreeze_&&uz(i,!0),r){const o=[],a=[];fv("Patches").generateReplacementPatches_(t,i,o,a),r(o,a)}return i}else gd(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...s)=>this.produceWithPatches(a,l=>t(l,...s));let r,i;return[this.produce(t,n,(a,s)=>{r=a,i=s}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){dv(e)||gd(8),jb(e)&&(e=K6e(e));const t=fX(this),n=K7(e,void 0);return n[Nc].isManual_=!0,W7(t),n}finishDraft(e,t){const n=e&&e[Nc];(!n||!n.isManual_)&&gd(9);const{scope_:r}=n;return dX(r,t),hX(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=fv("Patches").applyPatches_;return jb(e)?r(e,t):this.produce(e,i=>r(i,t))}};function K7(e,t){const n=c6(e)?fv("MapSet").proxyMap_(e,t):u6(e)?fv("MapSet").proxySet_(e,t):U6e(e,t);return(t?t.scope_:vfe()).drafts_.push(n),n}function K6e(e){return jb(e)||gd(10,e),bfe(e)}function bfe(e){if(!dv(e)||d6(e))return e;const t=e[Nc];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=z7(e,t.scope_.immer_.useStrictShallowCopy_)}else n=z7(e,!0);return W3(n,(r,i)=>{gfe(n,r,bfe(i))}),t&&(t.finalized_=!1),n}var Dc=new V6e,q6e=Dc.produce;Dc.produceWithPatches.bind(Dc);Dc.setAutoFreeze.bind(Dc);Dc.setUseStrictShallowCopy.bind(Dc);Dc.applyPatches.bind(Dc);Dc.createDraft.bind(Dc);Dc.finishDraft.bind(Dc);const G6e=e=>(t,n,r)=>(r.setState=(i,o,...a)=>{const s=typeof i=="function"?q6e(i):i;return t(s,o,...a)},e(r.setState,n,r)),qd=G6e,Y6e="dev",Sfe="open",mX="prod",X6e="quanjing",Cfe="prod-open";console.log("Current VITE_CONFIG_ENV:","prod-open");let hu;switch(Cfe){case"dev":hu={API_URL:"http://127.0.0.1:9003",MQTT_URL:"ws://127.0.0.1:9885/websocket",HTML_URL:"http://127.0.0.1:9006",IS_DEBUG:!0,SERVER_MODE:Y6e,CLIENT:"WEB"};break;case"prod-open":hu={API_URL:"http://127.0.0.1:9003",MQTT_URL:"ws://127.0.0.1:9885/websocket",HTML_URL:"http://127.0.0.1:9003",IS_DEBUG:!1,SERVER_MODE:Sfe,CLIENT:"WEB"};break;case"prod-quanjing":hu={API_URL:"http://127.0.0.1:9003",MQTT_URL:"ws://127.0.0.1:9885/websocket",HTML_URL:"http://127.0.0.1:9003",IS_DEBUG:!1,SERVER_MODE:X6e,CLIENT:"WEB"};break;case"prod-web":hu={API_URL:"https://api.weiyuai.cn",MQTT_URL:"wss://api.weiyuai.cn/websocket",HTML_URL:"https://www.weiyuai.cn",IS_DEBUG:!1,SERVER_MODE:mX,CLIENT:"WEB"};break;default:hu={API_URL:"https://api.weiyuai.cn",MQTT_URL:"wss://api.weiyuai.cn/websocket",HTML_URL:"https://www.weiyuai.cn",IS_DEBUG:!1,SERVER_MODE:mX,CLIENT:"ELECTRON"}}console.log("config.API_BASE_URL: ",Cfe,hu);const is=navigator.userAgent.toLowerCase().indexOf("electron")>-1,w$=hu.API_URL,gX=hu.MQTT_URL;hu.HTML_URL;const hv=hu.IS_DEBUG,Q6e=hu.SERVER_MODE,bo=hu.CLIENT,Eu="BYTEDESK",vX="locale",yX="mode",rb="team",pv="agent",q3="personal",bX="i18n.",CT="i18n.new.message",xfe="ANONYMOUS",bc="bytedesk_login_credentials",SX="THEME_MODE_TYPE",CX="THEME_NAME_TYPE",o8="PLAY_AUDIO",z2="NETWORK_STATUS_NOTIFICATION",U2="CONFIG_ENABLED_AGENT",a8="CONFIG_API_URL_AGENT",s8="CONFIG_WEBSOCKET_URL_AGENT",_$="CONFIG_HTML_URL_AGENT",Ly="CONFIG_CUSTOM_ENABLED_AGENT",p2="CONFIG_CUSTOM_API_URL_AGENT",m2="CONFIG_CUSTOM_WEBSOCKET_URL_AGENT",f6="CONFIG_PROPERTIES",Z6e="SCREENSHOT_OK",J6e="EVENT_BUS_SERVER_ERROR_500",Km="EVENT_BUS_TOKEN_INVALID",Ww="EVENT_BUS_MQTT_MESSAGE",q7="EVENT_BUS_MQTT_CONNECTED",G7="EVENT_BUS_MQTT_OFFLINE",Y7="EVENT_BUS_MQTT_CLOSE",X7="EVENT_BUS_MQTT_DISCONNECTED",Q7="EVENT_BUS_MQTT_ERROR",Z7="EVENT_BUS_MQTT_END",wfe="EVENT_BUS_MESSAGE_TYPE_STATUS",eOe="EVENT_BUS_MESSAGE_TYPE_TYPING",tOe="EVENT_BUS_MESSAGE_TYPE_PROCESSING",nOe="EVENT_BUS_MESSAGE_TYPE_STREAM",rOe="EVENT_BUS_MESSAGE_TYPE_PREVIEW",J7="EVENT_BUS_MESSAGE_TYPE_TRANSFER",eD="EVENT_BUS_MESSAGE_TYPE_TRANSFER_ACCEPT",tD="EVENT_BUS_MESSAGE_TYPE_TRANSFER_REJECT",iOe="EVENT_BUS_SCREEN_CAPTURE_IMAGE",oOe="AUTH_STORE",Vw="ACCESS_TOKEN",aOe="ORGANIZATION_STORE",sOe="MEMBER_STORE",lOe="MESSAGE_STORE",cOe="CONTACT_STORE",uOe="USER_STORE",dOe="SETTINGS_STORE",fOe="THREAD_STORE",hOe="DEVICE_STORE",pOe="AGENT_STORE",mOe="WORKGROUP_STORE",gOe="member",_fe="device",vOe="MOBILE_LOGIN",yOe="MOBILE_RESET",bOe="MOBILE_VERIFY",SOe="EMAIL_RESET",COe="EMAIL_VERIFY",xOe="PENDING",wOe="SCANNED",_Oe="CONFIRMED",EOe="EXPIRED",TOe="https://cdn.weiyuai.cn/agent/assets/sound/dingdong.wav",kOe="https://cdn.weiyuai.cn/agent/assets/css/scrollbar.css",OOe="https://www.weiyuai.cn/download.html",xX="AGENT",wX="USER",_X="AGENT",EX="WORKGROUP",TX="QUEUING",kX="CLOSED",OX="SENDING",nD="SUCCESS",POe="TRANSFER_ACCEPT",MOe="TRANSFER_REJECT",rD="CONTINUE",Efe="SYSTEM",IOe="QUEUE",$Oe="TEXT",ROe="IMAGE",AOe="FILE",NOe="AUDIO",DOe="VIDEO",iD="TYPING",oD="PROCESSING",Kw="STREAM",PX="PREVIEW",MX="RECALL",aD="DELIVERED",sD="READ",LOe="FAQ_UP",FOe="FAQ_DOWN",jOe="ROBOT_UP",BOe="ROBOT_DOWN",HOe="RATE_SUBMIT",zOe="RATE_CANCEL",qw="AUTO_CLOSED",Gw="AGENT_CLOSED",IX="TRANSFER",$X="TRANSFER_ACCEPT",RX="TRANSFER_REJECT",AX="AVAILABLE",E$="OFFLINE",NX="REST",UOe="org/group/",WOe="CHAT",DX="lastPath",VOe="ROLE_SUPER",KOe="ROLE_ADMIN",qOe="ROLE_MEMBER",GOe="ROLE_AGENT",J_=Uc()(Vd(Kd(qd((e,t)=>({accessToken:"",setAccessToken(n){localStorage.setItem(Vw,n),e({accessToken:n})},getAccessToken(){return t().accessToken},removeAccessToken(){localStorage.removeItem(Vw),e({accessToken:""})}})),{name:oOe}))),YOe=Uc()(Vd(Kd(qd(e=>({settings:{playSound:!0,showNotifications:!0,openAtStartup:!1,colors:!1,proLayoutCollapsed:!0},currentMenu:"chat",setCurrentMenu(t){e({currentMenu:t})},setProLayoutCollapsed(t){e(n=>({settings:{...n.settings,proLayoutCollapsed:t}}))}})),{name:dOe})));var Lv={},Tfe={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Tfe);var Vr=Tfe.exports,h6={};Object.defineProperty(h6,"__esModule",{value:!0});h6.default=void 0;var XOe={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};h6.default=XOe;var p6={},eE={},m6={},kfe={exports:{}},Ofe={exports:{}},Pfe={exports:{}},Mfe={exports:{}};(function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Mfe);var Fv=Mfe.exports,Ife={exports:{}};(function(e){var t=Fv.default;function n(r,i){if(t(r)!="object"||!r)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var a=o.call(r,i||"default");if(t(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Ife);var QOe=Ife.exports;(function(e){var t=Fv.default,n=QOe;function r(i){var o=n(i,"string");return t(o)=="symbol"?o:o+""}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(Pfe);var ZOe=Pfe.exports;(function(e){var t=ZOe;function n(r,i,o){return(i=t(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o,r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Ofe);var $fe=Ofe.exports;(function(e){var t=$fe;function n(i,o){var a=Object.keys(i);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);o&&(s=s.filter(function(l){return Object.getOwnPropertyDescriptor(i,l).enumerable})),a.push.apply(a,s)}return a}function r(i){for(var o=1;o<arguments.length;o++){var a=arguments[o]!=null?arguments[o]:{};o%2?n(Object(a),!0).forEach(function(s){t(i,s,a[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(a)):n(Object(a)).forEach(function(s){Object.defineProperty(i,s,Object.getOwnPropertyDescriptor(a,s))})}return i}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(kfe);var jv=kfe.exports,$S={};Object.defineProperty($S,"__esModule",{value:!0});$S.commonLocale=void 0;$S.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};var JOe=Vr.default;Object.defineProperty(m6,"__esModule",{value:!0});m6.default=void 0;var LX=JOe(jv),ePe=$S,tPe=(0,LX.default)((0,LX.default)({},ePe.commonLocale),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});m6.default=tPe;var tE={};Object.defineProperty(tE,"__esModule",{value:!0});tE.default=void 0;const nPe={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};tE.default=nPe;var Rfe=Vr.default;Object.defineProperty(eE,"__esModule",{value:!0});eE.default=void 0;var rPe=Rfe(m6),iPe=Rfe(tE);const oPe={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},rPe.default),timePickerLocale:Object.assign({},iPe.default)};eE.default=oPe;var aPe=Vr.default;Object.defineProperty(p6,"__esModule",{value:!0});p6.default=void 0;var sPe=aPe(eE);p6.default=sPe.default;var g6=Vr.default;Object.defineProperty(Lv,"__esModule",{value:!0});Lv.default=void 0;var lPe=g6(h6),cPe=g6(p6),uPe=g6(eE),dPe=g6(tE);const tc="${label} is not a valid ${type}",fPe={locale:"en",Pagination:lPe.default,DatePicker:uPe.default,TimePicker:dPe.default,Calendar:cPe.default,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},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:tc,method:tc,array:tc,object:tc,number:tc,date:tc,boolean:tc,integer:tc,float:tc,regexp:tc,email:tc,url:tc,hex:tc},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}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Lv.default=fPe;var hPe=Lv;const FX=vi(hPe);var v6={},y6={};Object.defineProperty(y6,"__esModule",{value:!0});y6.default=void 0;var pPe={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"};y6.default=pPe;var b6={},nE={},S6={},mPe=Vr.default;Object.defineProperty(S6,"__esModule",{value:!0});S6.default=void 0;var jX=mPe(jv),gPe=$S,vPe=(0,jX.default)((0,jX.default)({},gPe.commonLocale),{},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪",yearFormat:"YYYY年",cellDateFormat:"D",monthBeforeYear:!1});S6.default=vPe;var rE={};Object.defineProperty(rE,"__esModule",{value:!0});rE.default=void 0;const yPe={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};rE.default=yPe;var Afe=Vr.default;Object.defineProperty(nE,"__esModule",{value:!0});nE.default=void 0;var bPe=Afe(S6),SPe=Afe(rE);const Nfe={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},bPe.default),timePickerLocale:Object.assign({},SPe.default)};Nfe.lang.ok="确定";nE.default=Nfe;var CPe=Vr.default;Object.defineProperty(b6,"__esModule",{value:!0});b6.default=void 0;var xPe=CPe(nE);b6.default=xPe.default;var C6=Vr.default;Object.defineProperty(v6,"__esModule",{value:!0});v6.default=void 0;var wPe=C6(y6),_Pe=C6(b6),EPe=C6(nE),TPe=C6(rE);const nc="${label}不是一个有效的${type}",kPe={locale:"zh-cn",Pagination:wPe.default,DatePicker:EPe.default,TimePicker:TPe.default,Calendar:_Pe.default,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",emptyText:"暂无数据",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",deselectAll:"取消全选",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:nc,method:nc,array:nc,object:nc,number:nc,date:nc,boolean:nc,integer:nc,float:nc,regexp:nc,email:nc,url:nc,hex:nc},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无",transparent:"无色",singleColor:"单色",gradientColor:"渐变色"}};v6.default=kPe;var OPe=v6;const xT=vi(OPe);var x6={},w6={};Object.defineProperty(w6,"__esModule",{value:!0});w6.default=void 0;var PPe={items_per_page:"條/頁",jump_to:"跳至",jump_to_confirm:"確定",page:"頁",prev_page:"上一頁",next_page:"下一頁",prev_5:"向前 5 頁",next_5:"向後 5 頁",prev_3:"向前 3 頁",next_3:"向後 3 頁",page_size:"頁碼"};w6.default=PPe;var _6={},iE={},E6={},MPe=Vr.default;Object.defineProperty(E6,"__esModule",{value:!0});E6.default=void 0;var BX=MPe(jv),IPe=$S,$Pe=(0,BX.default)((0,BX.default)({},IPe.commonLocale),{},{locale:"zh_TW",today:"今天",now:"此刻",backToToday:"返回今天",ok:"確定",timeSelect:"選擇時間",dateSelect:"選擇日期",weekSelect:"選擇周",clear:"清除",month:"月",year:"年",previousMonth:"上個月 (翻頁上鍵)",nextMonth:"下個月 (翻頁下鍵)",monthSelect:"選擇月份",yearSelect:"選擇年份",decadeSelect:"選擇年代",yearFormat:"YYYY年",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH時mm分ss秒",previousYear:"上一年 (Control鍵加左方向鍵)",nextYear:"下一年 (Control鍵加右方向鍵)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世紀",nextCentury:"下一世紀",cellDateFormat:"D",monthBeforeYear:!1});E6.default=$Pe;var oE={};Object.defineProperty(oE,"__esModule",{value:!0});oE.default=void 0;const RPe={placeholder:"請選擇時間"};oE.default=RPe;var Dfe=Vr.default;Object.defineProperty(iE,"__esModule",{value:!0});iE.default=void 0;var APe=Dfe(E6),NPe=Dfe(oE);const Lfe={lang:Object.assign({placeholder:"請選擇日期",yearPlaceholder:"請選擇年份",quarterPlaceholder:"請選擇季度",monthPlaceholder:"請選擇月份",weekPlaceholder:"請選擇周",rangePlaceholder:["開始日期","結束日期"],rangeYearPlaceholder:["開始年份","結束年份"],rangeMonthPlaceholder:["開始月份","結束月份"],rangeQuarterPlaceholder:["開始季度","結束季度"],rangeWeekPlaceholder:["開始周","結束周"]},APe.default),timePickerLocale:Object.assign({},NPe.default)};Lfe.lang.ok="確 定";iE.default=Lfe;var DPe=Vr.default;Object.defineProperty(_6,"__esModule",{value:!0});_6.default=void 0;var LPe=DPe(iE);_6.default=LPe.default;var T6=Vr.default;Object.defineProperty(x6,"__esModule",{value:!0});x6.default=void 0;var FPe=T6(w6),jPe=T6(_6),BPe=T6(iE),HPe=T6(oE);const rc="${label}不是一個有效的${type}",zPe={locale:"zh-tw",Pagination:FPe.default,DatePicker:BPe.default,TimePicker:HPe.default,Calendar:jPe.default,global:{placeholder:"請選擇"},Table:{filterTitle:"篩選器",filterConfirm:"確定",filterReset:"重置",filterEmptyText:"無篩選項",filterCheckall:"全選",filterSearchPlaceholder:"在篩選項中搜尋",emptyText:"暫無數據",selectAll:"全部選取",selectInvert:"反向選取",selectNone:"清空所有",selectionAll:"全選所有",sortTitle:"排序",expand:"展開行",collapse:"關閉行",triggerDesc:"點擊降序",triggerAsc:"點擊升序",cancelSort:"取消排序"},Modal:{okText:"確定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"結束導覽"},Popconfirm:{okText:"確定",cancelText:"取消"},Transfer:{titles:["",""],searchPlaceholder:"搜尋資料",itemUnit:"項目",itemsUnit:"項目",remove:"删除",selectCurrent:"全選當頁",removeCurrent:"删除當頁",selectAll:"全選所有",removeAll:"删除全部",selectInvert:"反選當頁"},Upload:{uploading:"正在上傳...",removeFile:"刪除檔案",uploadError:"上傳失敗",previewFile:"檔案預覽",downloadFile:"下载文件"},Empty:{description:"無此資料"},Icon:{icon:"圖標"},Text:{edit:"編輯",copy:"複製",copied:"複製成功",expand:"展開"},Form:{optional:"(可選)",defaultValidateMessages:{default:"字段驗證錯誤${label}",required:"請輸入${label}",enum:"${label}必須是其中一個[${enum}]",whitespace:"${label}不能為空字符",date:{format:"${label}日期格式無效",parse:"${label}不能轉換為日期",invalid:"${label}是一個無效日期"},types:{string:rc,method:rc,array:rc,object:rc,number:rc,date:rc,boolean:rc,integer:rc,float:rc,regexp:rc,email:rc,url:rc,hex:rc},string:{len:"${label}須為${len}個字符",min:"${label}最少${min}個字符",max:"${label}最多${max}個字符",range:"${label}須在${min}-${max}字符之間"},number:{len:"${label}必須等於${len}",min:"${label}最小值為${min}",max:"${label}最大值為${max}",range:"${label}須在${min}-${max}之間"},array:{len:"須為${len}個${label}",min:"最少${min}個${label}",max:"最多${max}個${label}",range:"${label}數量須在${min}-${max}之間"},pattern:{mismatch:"${label}與模式不匹配${pattern}"}}},Image:{preview:"預覽"},QRCode:{expired:"二維碼過期",refresh:"點擊刷新",scanned:"已掃描"}};x6.default=zPe;var UPe=x6;const WPe=vi(UPe);function Ffe(){const e=localStorage.getItem(CX)||"light",[t,n]=f.useState(e),r=localStorage.getItem(SX)||"system",[i,o]=f.useState(r);return f.useEffect(()=>{r==="system"&&(window.matchMedia("(prefers-color-scheme: dark)").matches?n("dark"):n("light"),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",a=>{a.matches?n("dark"):n("light")}))},[]),f.useEffect(()=>{localStorage.setItem(SX,i),i==="light"?n("light"):i==="dark"?n("dark"):i==="system"&&(window.matchMedia("(prefers-color-scheme: dark)").matches?n("dark"):n("light"))},[i]),f.useEffect(()=>{localStorage.setItem(CX,t)},[t]),{themeName:t,setThemeName:n,themeMode:i,setThemeMode:o,isDarkMode:t==="dark",isLightMode:t==="light"}}function jfe(e,t){return function(){return e.apply(t,arguments)}}const{toString:VPe}=Object.prototype,{getPrototypeOf:fz}=Object,k6=(e=>t=>{const n=VPe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Gd=e=>(e=e.toLowerCase(),t=>k6(t)===e),O6=e=>t=>typeof t===e,{isArray:RS}=Array,Yw=O6("undefined");function KPe(e){return e!==null&&!Yw(e)&&e.constructor!==null&&!Yw(e.constructor)&&Ic(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Bfe=Gd("ArrayBuffer");function qPe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Bfe(e.buffer),t}const GPe=O6("string"),Ic=O6("function"),Hfe=O6("number"),P6=e=>e!==null&&typeof e=="object",YPe=e=>e===!0||e===!1,l8=e=>{if(k6(e)!=="object")return!1;const t=fz(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},XPe=Gd("Date"),QPe=Gd("File"),ZPe=Gd("Blob"),JPe=Gd("FileList"),eMe=e=>P6(e)&&Ic(e.pipe),tMe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ic(e.append)&&((t=k6(e))==="formdata"||t==="object"&&Ic(e.toString)&&e.toString()==="[object FormData]"))},nMe=Gd("URLSearchParams"),[rMe,iMe,oMe,aMe]=["ReadableStream","Request","Response","Headers"].map(Gd),sMe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function aE(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),RS(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let s;for(r=0;r<a;r++)s=o[r],t.call(null,e[s],s,e)}}function zfe(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const C1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ufe=e=>!Yw(e)&&e!==C1;function lD(){const{caseless:e}=Ufe(this)&&this||{},t={},n=(r,i)=>{const o=e&&zfe(t,i)||i;l8(t[o])&&l8(r)?t[o]=lD(t[o],r):l8(r)?t[o]=lD({},r):RS(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&aE(arguments[r],n);return t}const lMe=(e,t,n,{allOwnKeys:r}={})=>(aE(t,(i,o)=>{n&&Ic(i)?e[o]=jfe(i,n):e[o]=i},{allOwnKeys:r}),e),cMe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),uMe=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},dMe=(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&fz(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},fMe=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},hMe=e=>{if(!e)return null;if(RS(e))return e;let t=e.length;if(!Hfe(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},pMe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&fz(Uint8Array)),mMe=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},gMe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},vMe=Gd("HTMLFormElement"),yMe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),HX=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),bMe=Gd("RegExp"),Wfe=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};aE(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},SMe=e=>{Wfe(e,(t,n)=>{if(Ic(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ic(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},CMe=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return RS(e)?r(e):r(String(e).split(t)),n},xMe=()=>{},wMe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,T$="abcdefghijklmnopqrstuvwxyz",zX="0123456789",Vfe={DIGIT:zX,ALPHA:T$,ALPHA_DIGIT:T$+T$.toUpperCase()+zX},_Me=(e=16,t=Vfe.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function EMe(e){return!!(e&&Ic(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const TMe=e=>{const t=new Array(10),n=(r,i)=>{if(P6(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=RS(r)?[]:{};return aE(r,(a,s)=>{const l=n(a,i+1);!Yw(l)&&(o[s]=l)}),t[i]=void 0,o}}return r};return n(e,0)},kMe=Gd("AsyncFunction"),OMe=e=>e&&(P6(e)||Ic(e))&&Ic(e.then)&&Ic(e.catch),Kfe=((e,t)=>e?setImmediate:t?((n,r)=>(C1.addEventListener("message",({source:i,data:o})=>{i===C1&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),C1.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ic(C1.postMessage)),PMe=typeof queueMicrotask<"u"?queueMicrotask.bind(C1):typeof process<"u"&&process.nextTick||Kfe,sn={isArray:RS,isArrayBuffer:Bfe,isBuffer:KPe,isFormData:tMe,isArrayBufferView:qPe,isString:GPe,isNumber:Hfe,isBoolean:YPe,isObject:P6,isPlainObject:l8,isReadableStream:rMe,isRequest:iMe,isResponse:oMe,isHeaders:aMe,isUndefined:Yw,isDate:XPe,isFile:QPe,isBlob:ZPe,isRegExp:bMe,isFunction:Ic,isStream:eMe,isURLSearchParams:nMe,isTypedArray:pMe,isFileList:JPe,forEach:aE,merge:lD,extend:lMe,trim:sMe,stripBOM:cMe,inherits:uMe,toFlatObject:dMe,kindOf:k6,kindOfTest:Gd,endsWith:fMe,toArray:hMe,forEachEntry:mMe,matchAll:gMe,isHTMLForm:vMe,hasOwnProperty:HX,hasOwnProp:HX,reduceDescriptors:Wfe,freezeMethods:SMe,toObjectSet:CMe,toCamelCase:yMe,noop:xMe,toFiniteNumber:wMe,findKey:zfe,global:C1,isContextDefined:Ufe,ALPHABET:Vfe,generateString:_Me,isSpecCompliantForm:EMe,toJSONObject:TMe,isAsyncFn:kMe,isThenable:OMe,setImmediate:Kfe,asap:PMe};function Gr(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}sn.inherits(Gr,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:sn.toJSONObject(this.config),code:this.code,status:this.status}}});const qfe=Gr.prototype,Gfe={};["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","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Gfe[e]={value:e}});Object.defineProperties(Gr,Gfe);Object.defineProperty(qfe,"isAxiosError",{value:!0});Gr.from=(e,t,n,r,i,o)=>{const a=Object.create(qfe);return sn.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),Gr.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const MMe=null;function cD(e){return sn.isPlainObject(e)||sn.isArray(e)}function Yfe(e){return sn.endsWith(e,"[]")?e.slice(0,-2):e}function UX(e,t,n){return e?e.concat(t).map(function(i,o){return i=Yfe(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function IMe(e){return sn.isArray(e)&&!e.some(cD)}const $Me=sn.toFlatObject(sn,{},null,function(t){return/^is[A-Z]/.test(t)});function M6(e,t,n){if(!sn.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=sn.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,y){return!sn.isUndefined(y[v])});const r=n.metaTokens,i=n.visitor||u,o=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&sn.isSpecCompliantForm(t);if(!sn.isFunction(i))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(sn.isDate(m))return m.toISOString();if(!l&&sn.isBlob(m))throw new Gr("Blob is not supported. Use a Buffer instead.");return sn.isArrayBuffer(m)||sn.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,v,y){let S=m;if(m&&!y&&typeof m=="object"){if(sn.endsWith(v,"{}"))v=r?v:v.slice(0,-2),m=JSON.stringify(m);else if(sn.isArray(m)&&IMe(m)||(sn.isFileList(m)||sn.endsWith(v,"[]"))&&(S=sn.toArray(m)))return v=Yfe(v),S.forEach(function(C,_){!(sn.isUndefined(C)||C===null)&&t.append(a===!0?UX([v],_,o):a===null?v:v+"[]",c(C))}),!1}return cD(m)?!0:(t.append(UX(y,v,o),c(m)),!1)}const d=[],h=Object.assign($Me,{defaultVisitor:u,convertValue:c,isVisitable:cD});function p(m,v){if(!sn.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+v.join("."));d.push(m),sn.forEach(m,function(S,b){(!(sn.isUndefined(S)||S===null)&&i.call(t,S,sn.isString(b)?b.trim():b,v,h))===!0&&p(S,v?v.concat(b):[b])}),d.pop()}}if(!sn.isObject(e))throw new TypeError("data must be an object");return p(e),t}function WX(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function hz(e,t){this._pairs=[],e&&M6(e,this,t)}const Xfe=hz.prototype;Xfe.append=function(t,n){this._pairs.push([t,n])};Xfe.toString=function(t){const n=t?function(r){return t.call(this,r,WX)}:WX;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function RMe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Qfe(e,t,n){if(!t)return e;const r=n&&n.encode||RMe;sn.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(i?o=i(t,n):o=sn.isURLSearchParams(t)?t.toString():new hz(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class VX{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){sn.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Zfe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},AMe=typeof URLSearchParams<"u"?URLSearchParams:hz,NMe=typeof FormData<"u"?FormData:null,DMe=typeof Blob<"u"?Blob:null,LMe={isBrowser:!0,classes:{URLSearchParams:AMe,FormData:NMe,Blob:DMe},protocols:["http","https","file","blob","url","data"]},pz=typeof window<"u"&&typeof document<"u",uD=typeof navigator=="object"&&navigator||void 0,FMe=pz&&(!uD||["ReactNative","NativeScript","NS"].indexOf(uD.product)<0),jMe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",BMe=pz&&window.location.href||"http://localhost",HMe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:pz,hasStandardBrowserEnv:FMe,hasStandardBrowserWebWorkerEnv:jMe,navigator:uD,origin:BMe},Symbol.toStringTag,{value:"Module"})),Fs={...HMe,...LMe};function zMe(e,t){return M6(e,new Fs.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return Fs.isNode&&sn.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function UMe(e){return sn.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function WMe(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}function Jfe(e){function t(n,r,i,o){let a=n[o++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),l=o>=n.length;return a=!a&&sn.isArray(i)?i.length:a,l?(sn.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!sn.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&sn.isArray(i[a])&&(i[a]=WMe(i[a])),!s)}if(sn.isFormData(e)&&sn.isFunction(e.entries)){const n={};return sn.forEachEntry(e,(r,i)=>{t(UMe(r),i,n,0)}),n}return null}function VMe(e,t,n){if(sn.isString(e))try{return(t||JSON.parse)(e),sn.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const sE={transitional:Zfe,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=sn.isObject(t);if(o&&sn.isHTMLForm(t)&&(t=new FormData(t)),sn.isFormData(t))return i?JSON.stringify(Jfe(t)):t;if(sn.isArrayBuffer(t)||sn.isBuffer(t)||sn.isStream(t)||sn.isFile(t)||sn.isBlob(t)||sn.isReadableStream(t))return t;if(sn.isArrayBufferView(t))return t.buffer;if(sn.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return zMe(t,this.formSerializer).toString();if((s=sn.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return M6(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),VMe(t)):t}],transformResponse:[function(t){const n=this.transitional||sE.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(sn.isResponse(t)||sn.isReadableStream(t))return t;if(t&&sn.isString(t)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?Gr.from(s,Gr.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Fs.classes.FormData,Blob:Fs.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};sn.forEach(["delete","get","head","post","put","patch"],e=>{sE.headers[e]={}});const KMe=sn.toObjectSet(["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"]),qMe=e=>{const t={};let n,r,i;return e&&e.split(`
|
||
`).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&KMe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},KX=Symbol("internals");function _x(e){return e&&String(e).trim().toLowerCase()}function c8(e){return e===!1||e==null?e:sn.isArray(e)?e.map(c8):String(e)}function GMe(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const YMe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function k$(e,t,n,r,i){if(sn.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!sn.isString(t)){if(sn.isString(r))return t.indexOf(r)!==-1;if(sn.isRegExp(r))return r.test(t)}}function XMe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function QMe(e,t){const n=sn.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,a){return this[r].call(this,t,i,o,a)},configurable:!0})})}class Vl{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(s,l,c){const u=_x(l);if(!u)throw new Error("header name must be a non-empty string");const d=sn.findKey(i,u);(!d||i[d]===void 0||c===!0||c===void 0&&i[d]!==!1)&&(i[d||l]=c8(s))}const a=(s,l)=>sn.forEach(s,(c,u)=>o(c,u,l));if(sn.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(sn.isString(t)&&(t=t.trim())&&!YMe(t))a(qMe(t),n);else if(sn.isHeaders(t))for(const[s,l]of t.entries())o(l,s,r);else t!=null&&o(n,t,r);return this}get(t,n){if(t=_x(t),t){const r=sn.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return GMe(i);if(sn.isFunction(n))return n.call(this,i,r);if(sn.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=_x(t),t){const r=sn.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||k$(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=_x(a),a){const s=sn.findKey(r,a);s&&(!n||k$(r,r[s],s,n))&&(delete r[s],i=!0)}}return sn.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||k$(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return sn.forEach(this,(i,o)=>{const a=sn.findKey(r,o);if(a){n[a]=c8(i),delete n[o];return}const s=t?XMe(o):String(o).trim();s!==o&&delete n[o],n[s]=c8(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return sn.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&sn.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
||
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[KX]=this[KX]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=_x(a);r[s]||(QMe(i,a),r[s]=!0)}return sn.isArray(t)?t.forEach(o):o(t),this}}Vl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);sn.reduceDescriptors(Vl.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});sn.freezeMethods(Vl);function O$(e,t){const n=this||sE,r=t||n,i=Vl.from(r.headers);let o=r.data;return sn.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function ehe(e){return!!(e&&e.__CANCEL__)}function AS(e,t,n){Gr.call(this,e??"canceled",Gr.ERR_CANCELED,t,n),this.name="CanceledError"}sn.inherits(AS,Gr,{__CANCEL__:!0});function the(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Gr("Request failed with status code "+n.status,[Gr.ERR_BAD_REQUEST,Gr.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function ZMe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function JMe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[o];a||(a=c),n[i]=l,r[i]=c;let d=o,h=0;for(;d!==i;)h+=n[d++],d=d%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-a<t)return;const p=u&&c-u;return p?Math.round(h*1e3/p):void 0}}function eIe(e,t){let n=0,r=1e3/t,i,o;const a=(c,u=Date.now())=>{n=u,i=null,o&&(clearTimeout(o),o=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),d=u-n;d>=r?a(c,u):(i=c,o||(o=setTimeout(()=>{o=null,a(i)},r-d)))},()=>i&&a(i)]}const G3=(e,t,n=3)=>{let r=0;const i=JMe(50,250);return eIe(o=>{const a=o.loaded,s=o.lengthComputable?o.total:void 0,l=a-r,c=i(l),u=a<=s;r=a;const d={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-a)/c:void 0,event:o,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},n)},qX=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},GX=e=>(...t)=>sn.asap(()=>e(...t)),tIe=Fs.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Fs.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Fs.origin),Fs.navigator&&/(msie|trident)/i.test(Fs.navigator.userAgent)):()=>!0,nIe=Fs.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];sn.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),sn.isString(r)&&a.push("path="+r),sn.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function rIe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function iIe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function nhe(e,t){return e&&!rIe(t)?iIe(e,t):t}const YX=e=>e instanceof Vl?{...e}:e;function mv(e,t){t=t||{};const n={};function r(c,u,d,h){return sn.isPlainObject(c)&&sn.isPlainObject(u)?sn.merge.call({caseless:h},c,u):sn.isPlainObject(u)?sn.merge({},u):sn.isArray(u)?u.slice():u}function i(c,u,d,h){if(sn.isUndefined(u)){if(!sn.isUndefined(c))return r(void 0,c,d,h)}else return r(c,u,d,h)}function o(c,u){if(!sn.isUndefined(u))return r(void 0,u)}function a(c,u){if(sn.isUndefined(u)){if(!sn.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function s(c,u,d){if(d in t)return r(c,u);if(d in e)return r(void 0,c)}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(c,u,d)=>i(YX(c),YX(u),d,!0)};return sn.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=l[u]||i,h=d(e[u],t[u],u);sn.isUndefined(h)&&d!==s||(n[u]=h)}),n}const rhe=e=>{const t=mv({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=t;t.headers=a=Vl.from(a),t.url=Qfe(nhe(t.baseURL,t.url),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(sn.isFormData(n)){if(Fs.hasStandardBrowserEnv||Fs.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[c,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...u].join("; "))}}if(Fs.hasStandardBrowserEnv&&(r&&sn.isFunction(r)&&(r=r(t)),r||r!==!1&&tIe(t.url))){const c=i&&o&&nIe.read(o);c&&a.set(i,c)}return t},oIe=typeof XMLHttpRequest<"u",aIe=oIe&&function(e){return new Promise(function(n,r){const i=rhe(e);let o=i.data;const a=Vl.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=i,u,d,h,p,m;function v(){p&&p(),m&&m(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let y=new XMLHttpRequest;y.open(i.method.toUpperCase(),i.url,!0),y.timeout=i.timeout;function S(){if(!y)return;const C=Vl.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),T={data:!s||s==="text"||s==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:C,config:e,request:y};the(function(E){n(E),v()},function(E){r(E),v()},T),y=null}"onloadend"in y?y.onloadend=S:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(S)},y.onabort=function(){y&&(r(new Gr("Request aborted",Gr.ECONNABORTED,e,y)),y=null)},y.onerror=function(){r(new Gr("Network Error",Gr.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let _=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const T=i.transitional||Zfe;i.timeoutErrorMessage&&(_=i.timeoutErrorMessage),r(new Gr(_,T.clarifyTimeoutError?Gr.ETIMEDOUT:Gr.ECONNABORTED,e,y)),y=null},o===void 0&&a.setContentType(null),"setRequestHeader"in y&&sn.forEach(a.toJSON(),function(_,T){y.setRequestHeader(T,_)}),sn.isUndefined(i.withCredentials)||(y.withCredentials=!!i.withCredentials),s&&s!=="json"&&(y.responseType=i.responseType),c&&([h,m]=G3(c,!0),y.addEventListener("progress",h)),l&&y.upload&&([d,p]=G3(l),y.upload.addEventListener("progress",d),y.upload.addEventListener("loadend",p)),(i.cancelToken||i.signal)&&(u=C=>{y&&(r(!C||C.type?new AS(null,e,y):C),y.abort(),y=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const b=ZMe(i.url);if(b&&Fs.protocols.indexOf(b)===-1){r(new Gr("Unsupported protocol "+b+":",Gr.ERR_BAD_REQUEST,e));return}y.send(o||null)})},sIe=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const o=function(c){if(!i){i=!0,s();const u=c instanceof Error?c:this.reason;r.abort(u instanceof Gr?u:new AS(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,o(new Gr(`timeout ${t} of ms exceeded`,Gr.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>c.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=()=>sn.asap(s),l}},lIe=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},cIe=async function*(e,t){for await(const n of uIe(e))yield*lIe(n,t)},uIe=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},XX=(e,t,n,r)=>{const i=cIe(e,t);let o=0,a,s=l=>{a||(a=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await i.next();if(c){s(),l.close();return}let d=u.byteLength;if(n){let h=o+=d;n(h)}l.enqueue(new Uint8Array(u))}catch(c){throw s(c),c}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},I6=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ihe=I6&&typeof ReadableStream=="function",dIe=I6&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),ohe=(e,...t)=>{try{return!!e(...t)}catch{return!1}},fIe=ihe&&ohe(()=>{let e=!1;const t=new Request(Fs.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),QX=64*1024,dD=ihe&&ohe(()=>sn.isReadableStream(new Response("").body)),Y3={stream:dD&&(e=>e.body)};I6&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Y3[t]&&(Y3[t]=sn.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Gr(`Response type '${t}' is not supported`,Gr.ERR_NOT_SUPPORT,r)})})})(new Response);const hIe=async e=>{if(e==null)return 0;if(sn.isBlob(e))return e.size;if(sn.isSpecCompliantForm(e))return(await new Request(Fs.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(sn.isArrayBufferView(e)||sn.isArrayBuffer(e))return e.byteLength;if(sn.isURLSearchParams(e)&&(e=e+""),sn.isString(e))return(await dIe(e)).byteLength},pIe=async(e,t)=>{const n=sn.toFiniteNumber(e.getContentLength());return n??hIe(t)},mIe=I6&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:h}=rhe(e);c=c?(c+"").toLowerCase():"text";let p=sIe([i,o&&o.toAbortSignal()],a),m;const v=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let y;try{if(l&&fIe&&n!=="get"&&n!=="head"&&(y=await pIe(u,r))!==0){let T=new Request(t,{method:"POST",body:r,duplex:"half"}),x;if(sn.isFormData(r)&&(x=T.headers.get("content-type"))&&u.setContentType(x),T.body){const[E,k]=qX(y,G3(GX(l)));r=XX(T.body,QX,E,k)}}sn.isString(d)||(d=d?"include":"omit");const S="credentials"in Request.prototype;m=new Request(t,{...h,signal:p,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:S?d:void 0});let b=await fetch(m);const C=dD&&(c==="stream"||c==="response");if(dD&&(s||C&&v)){const T={};["status","statusText","headers"].forEach(M=>{T[M]=b[M]});const x=sn.toFiniteNumber(b.headers.get("content-length")),[E,k]=s&&qX(x,G3(GX(s),!0))||[];b=new Response(XX(b.body,QX,E,()=>{k&&k(),v&&v()}),T)}c=c||"text";let _=await Y3[sn.findKey(Y3,c)||"text"](b,e);return!C&&v&&v(),await new Promise((T,x)=>{the(T,x,{data:_,headers:Vl.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:m})})}catch(S){throw v&&v(),S&&S.name==="TypeError"&&/fetch/i.test(S.message)?Object.assign(new Gr("Network Error",Gr.ERR_NETWORK,e,m),{cause:S.cause||S}):Gr.from(S,S&&S.code,e,m)}}),fD={http:MMe,xhr:aIe,fetch:mIe};sn.forEach(fD,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ZX=e=>`- ${e}`,gIe=e=>sn.isFunction(e)||e===null||e===!1,ahe={getAdapter:e=>{e=sn.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o<t;o++){n=e[o];let a;if(r=n,!gIe(n)&&(r=fD[(a=String(n)).toLowerCase()],r===void 0))throw new Gr(`Unknown adapter '${a}'`);if(r)break;i[a||"#"+o]=r}if(!r){const o=Object.entries(i).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?o.length>1?`since :
|
||
`+o.map(ZX).join(`
|
||
`):" "+ZX(o[0]):"as no adapter specified";throw new Gr("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:fD};function P$(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new AS(null,e)}function JX(e){return P$(e),e.headers=Vl.from(e.headers),e.data=O$.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ahe.getAdapter(e.adapter||sE.adapter)(e).then(function(r){return P$(e),r.data=O$.call(e,e.transformResponse,r),r.headers=Vl.from(r.headers),r},function(r){return ehe(r)||(P$(e),r&&r.response&&(r.response.data=O$.call(e,e.transformResponse,r.response),r.response.headers=Vl.from(r.response.headers))),Promise.reject(r)})}const she="1.7.9",$6={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{$6[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const eQ={};$6.transitional=function(t,n,r){function i(o,a){return"[Axios v"+she+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,s)=>{if(t===!1)throw new Gr(i(a," has been removed"+(n?" in "+n:"")),Gr.ERR_DEPRECATED);return n&&!eQ[a]&&(eQ[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,s):!0}};$6.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function vIe(e,t,n){if(typeof e!="object")throw new Gr("options must be an object",Gr.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const s=e[o],l=s===void 0||a(s,o,e);if(l!==!0)throw new Gr("option "+o+" must be "+l,Gr.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Gr("Unknown option "+o,Gr.ERR_BAD_OPTION)}}const u8={assertOptions:vIe,validators:$6},df=u8.validators;class z1{constructor(t){this.defaults=t,this.interceptors={request:new VX,response:new VX}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
||
`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=mv(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&u8.assertOptions(r,{silentJSONParsing:df.transitional(df.boolean),forcedJSONParsing:df.transitional(df.boolean),clarifyTimeoutError:df.transitional(df.boolean)},!1),i!=null&&(sn.isFunction(i)?n.paramsSerializer={serialize:i}:u8.assertOptions(i,{encode:df.function,serialize:df.function},!0)),u8.assertOptions(n,{baseUrl:df.spelling("baseURL"),withXsrfToken:df.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&sn.merge(o.common,o[n.method]);o&&sn.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),n.headers=Vl.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(l=l&&v.synchronous,s.unshift(v.fulfilled,v.rejected))});const c=[];this.interceptors.response.forEach(function(v){c.push(v.fulfilled,v.rejected)});let u,d=0,h;if(!l){const m=[JX.bind(this),void 0];for(m.unshift.apply(m,s),m.push.apply(m,c),h=m.length,u=Promise.resolve(n);d<h;)u=u.then(m[d++],m[d++]);return u}h=s.length;let p=n;for(d=0;d<h;){const m=s[d++],v=s[d++];try{p=m(p)}catch(y){v.call(this,y);break}}try{u=JX.call(this,p)}catch(m){return Promise.reject(m)}for(d=0,h=c.length;d<h;)u=u.then(c[d++],c[d++]);return u}getUri(t){t=mv(this.defaults,t);const n=nhe(t.baseURL,t.url);return Qfe(n,t.params,t.paramsSerializer)}}sn.forEach(["delete","get","head","options"],function(t){z1.prototype[t]=function(n,r){return this.request(mv(r||{},{method:t,url:n,data:(r||{}).data}))}});sn.forEach(["post","put","patch"],function(t){function n(r){return function(o,a,s){return this.request(mv(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}z1.prototype[t]=n(),z1.prototype[t+"Form"]=n(!0)});class mz{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{r.subscribe(s),o=s}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,s){r.reason||(r.reason=new AS(o,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new mz(function(i){t=i}),cancel:t}}}function yIe(e){return function(n){return e.apply(null,n)}}function bIe(e){return sn.isObject(e)&&e.isAxiosError===!0}const hD={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(hD).forEach(([e,t])=>{hD[t]=e});function lhe(e){const t=new z1(e),n=jfe(z1.prototype.request,t);return sn.extend(n,z1.prototype,t,{allOwnKeys:!0}),sn.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return lhe(mv(e,i))},n}const da=lhe(sE);da.Axios=z1;da.CanceledError=AS;da.CancelToken=mz;da.isCancel=ehe;da.VERSION=she;da.toFormData=M6;da.AxiosError=Gr;da.Cancel=da.CanceledError;da.all=function(t){return Promise.all(t)};da.spread=yIe;da.isAxiosError=bIe;da.mergeConfig=mv;da.AxiosHeaders=Vl;da.formToJSON=e=>Jfe(sn.isHTMLForm(e)?new FormData(e):e);da.getAdapter=ahe.getAdapter;da.HttpStatusCode=hD;da.default=da;function SIe(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(i){i(n)}),(r=e.get("*"))&&r.slice().map(function(i){i(t,n)})}}}const Dr=SIe();async function CIe(){return Uo("/config/bytedesk/properties",{method:"GET",params:{client:bo}})}async function xIe(){try{const t=(await da.get("/notebase/config.json")).data;if(t.enabled)console.log("config enabled: ",t),localStorage.setItem(U2,"true"),localStorage.setItem(a8,t.apiUrl),localStorage.setItem(s8,t.websocketUrl),localStorage.setItem(_$,t.htmlUrl);else if(Q6e===Sfe){console.log("config opensource");const n=window.location.port,r=window.location.protocol+"//"+window.location.hostname+":"+n,i="ws://"+window.location.hostname+":9885/websocket";console.log("apiUrl: ",r," port:",n," websocketUrl:",i),localStorage.setItem(U2,"true"),localStorage.setItem(a8,r),localStorage.setItem(s8,i),localStorage.setItem(_$,r)}else console.log("config disabled"),localStorage.setItem(U2,"false"),localStorage.removeItem(a8),localStorage.removeItem(s8),localStorage.removeItem(_$)}catch(e){console.log("loadConfig error: ",e)}}function R6(){const e=localStorage.getItem(Ly);if(console.log("custom_enabled: ",e),e==="true"){const n=localStorage.getItem(p2);return n===null?w$:n}if(localStorage.getItem(U2)==="true"){const n=localStorage.getItem(a8);return n===null?w$:n}return w$}function che(){return R6()+"/api/v1/upload/file"}function wIe(){const e=localStorage.getItem(Ly);if(console.log("custom_enabled: ",e),e==="true"){const r=localStorage.getItem(m2);return r===null?gX:r}const t=localStorage.getItem(U2),n=localStorage.getItem(s8);return t==="true"?n:gX}async function _Ie(){const e=await CIe();return console.log("getConfigProperties response: ",e.data.data),e.data.code===200?(localStorage.setItem(f6,JSON.stringify(e.data.data)),e.data.data):null}function EIe(){const e=localStorage.getItem(f6);if(e){const t=JSON.parse(e);if(t.logo&&t.logo.length>0&&t.logo.startsWith("http"))return t.logo}return"/notebase/icons/logo.png"}function TIe(){const e=localStorage.getItem(f6);if(e){const t=JSON.parse(e);if(t.name&&t.name.length>0)return t.name}return null}function kIe(){const e=localStorage.getItem(f6);if(e){const t=JSON.parse(e);if(t.description&&t.description.length>0)return t.description}return null}const Uo=da.create({timeout:2e4,baseURL:R6(),paramsSerializer:{indexes:null}});Uo.interceptors.request.use(e=>{e.baseURL=R6();const t=localStorage.getItem(Vw);return t&&t.length>10&&e.url.startsWith("/api")&&(e.headers.Authorization=`Bearer ${t}`),!t&&e.url.startsWith("/api")?Promise.reject(OIe):e},e=>(console.debug("request error",e),e.response.status===403&&Dr.emit(Km,"403"),e.response.status===401&&Dr.emit(Km,"401"),Promise.reject(e)));Uo.interceptors.response.use(e=>e,e=>{var t,n,r;if(console.debug("response error",e),e!=null&&e.response)switch((t=e==null?void 0:e.response)==null?void 0:t.status){case 400:console.log("axios interception error 400"),Dr.emit(Km,"400");break;case 401:console.log("axios interception error 401"),Dr.emit(Km,"401");break;case 403:console.log("axios interception error 403"),Dr.emit(Km,"403");break;case 500:console.log("axios interception error 500"),Dr.emit(J6e,"500");break;case 601:console.log("axios interception error 601",e.message);break}return Promise.resolve({message:e==null?void 0:e.message,code:(n=e==null?void 0:e.response)==null?void 0:n.status,data:{message:e==null?void 0:e.message,code:(r=e==null?void 0:e.response)==null?void 0:r.status,data:!1}})});const M$={data:null,status:601,statusText:xfe,headers:{},config:{headers:void 0},request:null},OIe={message:"匿名用户,无需访问服务器接口",name:xfe,code:"601",config:M$.config,request:M$.request,response:M$,isAxiosError:!0,toJSON:function(){return{message:this.message,name:this.name,code:this.code,config:this.config,request:this.request,response:this.response}}};async function PIe(e){return Uo("/api/v1/agent/query",{method:"GET",params:{orgUid:e,client:bo}})}async function MIe(e){return Uo("/api/v1/agent/update",{method:"POST",data:{...e,client:bo}})}async function IIe(e){return Uo("/api/v1/agent/update/status",{method:"POST",data:{...e,client:bo}})}async function $Ie(e){return Uo("/api/v1/message_unread/query",{method:"GET",params:{userUid:e,client:bo}})}async function RIe(e){return Uo("/api/v1/message/rest/send",{method:"POST",data:{json:e,client:bo}})}var gz=Object.defineProperty,AIe=Object.getOwnPropertyDescriptor,NIe=Object.getOwnPropertyNames,DIe=Object.prototype.hasOwnProperty,_s=(e,t)=>()=>(e&&(t=e(e=0)),t),Tn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Bv=(e,t)=>{for(var n in t)gz(e,n,{get:t[n],enumerable:!0})},LIe=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of NIe(t))!DIe.call(e,i)&&i!==n&&gz(e,i,{get:()=>t[i],enumerable:!(r=AIe(t,i))||r.enumerable});return e},eo=e=>LIe(gz({},"__esModule",{value:!0}),e),pn=_s(()=>{}),Ni={};Bv(Ni,{_debugEnd:()=>KD,_debugProcess:()=>VD,_events:()=>sL,_eventsCount:()=>lL,_exiting:()=>ID,_fatalExceptions:()=>zD,_getActiveHandles:()=>ghe,_getActiveRequests:()=>mhe,_kill:()=>AD,_linkedBinding:()=>hhe,_maxListeners:()=>aL,_preload_modules:()=>iL,_rawDebug:()=>OD,_startProfilerIdleNotifier:()=>qD,_stopProfilerIdleNotifier:()=>GD,_tickCallback:()=>WD,abort:()=>ZD,addListener:()=>cL,allowedNodeEnvironmentFlags:()=>BD,arch:()=>mD,argv:()=>yD,argv0:()=>rL,assert:()=>vhe,binding:()=>wD,chdir:()=>TD,config:()=>$D,cpuUsage:()=>g2,cwd:()=>ED,debugPort:()=>nL,default:()=>yz,dlopen:()=>phe,domain:()=>MD,emit:()=>pL,emitWarning:()=>xD,env:()=>vD,execArgv:()=>bD,execPath:()=>tL,exit:()=>FD,features:()=>HD,hasUncaughtExceptionCaptureCallback:()=>yhe,hrtime:()=>d8,kill:()=>LD,listeners:()=>She,memoryUsage:()=>DD,moduleLoadList:()=>PD,nextTick:()=>dhe,off:()=>dL,on:()=>Th,once:()=>uL,openStdin:()=>jD,pid:()=>JD,platform:()=>gD,ppid:()=>eL,prependListener:()=>mL,prependOnceListener:()=>gL,reallyExit:()=>RD,release:()=>kD,removeAllListeners:()=>hL,removeListener:()=>fL,resourceUsage:()=>ND,setSourceMapsEnabled:()=>oL,setUncaughtExceptionCaptureCallback:()=>UD,stderr:()=>XD,stdin:()=>QD,stdout:()=>YD,title:()=>pD,umask:()=>_D,uptime:()=>bhe,version:()=>SD,versions:()=>CD});function vz(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function FIe(){!U1||!x1||(U1=!1,x1.length?Mf=x1.concat(Mf):W2=-1,Mf.length&&uhe())}function uhe(){if(!U1){var e=setTimeout(FIe,0);U1=!0;for(var t=Mf.length;t;){for(x1=Mf,Mf=[];++W2<t;)x1&&x1[W2].run();W2=-1,t=Mf.length}x1=null,U1=!1,clearTimeout(e)}}function dhe(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];Mf.push(new fhe(e,t)),Mf.length===1&&!U1&&setTimeout(uhe,0)}function fhe(e,t){this.fun=e,this.array=t}function Rs(){}function hhe(e){vz("_linkedBinding")}function phe(e){vz("dlopen")}function mhe(){return[]}function ghe(){return[]}function vhe(e,t){if(!e)throw new Error(t||"assertion error")}function yhe(){return!1}function bhe(){return Bh.now()/1e3}function d8(e){var t=Math.floor((Date.now()-Bh.now())*.001),n=Bh.now()*.001,r=Math.floor(n)+t,i=Math.floor(n%1*1e9);return e&&(r=r-e[0],i=i-e[1],i<0&&(r--,i+=f8)),[r,i]}function Th(){return yz}function She(e){return[]}var Mf,U1,x1,W2,pD,mD,gD,vD,yD,bD,SD,CD,xD,wD,_D,ED,TD,kD,OD,PD,MD,ID,$D,RD,AD,g2,ND,DD,LD,FD,jD,BD,HD,zD,UD,WD,VD,KD,qD,GD,YD,XD,QD,ZD,JD,eL,tL,nL,rL,iL,oL,Bh,I$,f8,aL,sL,lL,cL,uL,dL,fL,hL,pL,mL,gL,yz,jIe=_s(()=>{pn(),gn(),mn(),Mf=[],U1=!1,W2=-1,fhe.prototype.run=function(){this.fun.apply(null,this.array)},pD="browser",mD="x64",gD="browser",vD={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},yD=["/usr/bin/node"],bD=[],SD="v16.8.0",CD={},xD=function(e,t){console.warn((t?t+": ":"")+e)},wD=function(e){vz("binding")},_D=function(e){return 0},ED=function(){return"/"},TD=function(e){},kD={name:"node",sourceUrl:"",headersUrl:"",libUrl:""},OD=Rs,PD=[],MD={},ID=!1,$D={},RD=Rs,AD=Rs,g2=function(){return{}},ND=g2,DD=g2,LD=Rs,FD=Rs,jD=Rs,BD={},HD={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},zD=Rs,UD=Rs,WD=Rs,VD=Rs,KD=Rs,qD=Rs,GD=Rs,YD=void 0,XD=void 0,QD=void 0,ZD=Rs,JD=2,eL=1,tL="/bin/usr/node",nL=9229,rL="node",iL=[],oL=Rs,Bh={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0},Bh.now===void 0&&(I$=Date.now(),Bh.timing&&Bh.timing.navigationStart&&(I$=Bh.timing.navigationStart),Bh.now=()=>Date.now()-I$),f8=1e9,d8.bigint=function(e){var t=d8(e);return typeof BigInt>"u"?t[0]*f8+t[1]:BigInt(t[0]*f8)+BigInt(t[1])},aL=10,sL={},lL=0,cL=Th,uL=Th,dL=Th,fL=Th,hL=Th,pL=Rs,mL=Th,gL=Th,yz={version:SD,versions:CD,arch:mD,platform:gD,release:kD,_rawDebug:OD,moduleLoadList:PD,binding:wD,_linkedBinding:hhe,_events:sL,_eventsCount:lL,_maxListeners:aL,on:Th,addListener:cL,once:uL,off:dL,removeListener:fL,removeAllListeners:hL,emit:pL,prependListener:mL,prependOnceListener:gL,listeners:She,domain:MD,_exiting:ID,config:$D,dlopen:phe,uptime:bhe,_getActiveRequests:mhe,_getActiveHandles:ghe,reallyExit:RD,_kill:AD,cpuUsage:g2,resourceUsage:ND,memoryUsage:DD,kill:LD,exit:FD,openStdin:jD,allowedNodeEnvironmentFlags:BD,assert:vhe,features:HD,_fatalExceptions:zD,setUncaughtExceptionCaptureCallback:UD,hasUncaughtExceptionCaptureCallback:yhe,emitWarning:xD,nextTick:dhe,_tickCallback:WD,_debugProcess:VD,_debugEnd:KD,_startProfilerIdleNotifier:qD,_stopProfilerIdleNotifier:GD,stdout:YD,stdin:QD,stderr:XD,abort:ZD,umask:_D,chdir:TD,cwd:ED,env:vD,title:pD,argv:yD,execArgv:bD,pid:JD,ppid:eL,execPath:tL,debugPort:nL,hrtime:d8,argv0:rL,_preload_modules:iL,setSourceMapsEnabled:oL}}),mn=_s(()=>{jIe()}),Es={};Bv(Es,{Buffer:()=>X3,INSPECT_MAX_BYTES:()=>Che,default:()=>kh,kMaxLength:()=>xhe});function BIe(){if(vL)return vy;vL=!0,vy.byteLength=s,vy.toByteArray=c,vy.fromByteArray=h;for(var e=[],t=[],n=typeof Uint8Array<"u"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,o=r.length;i<o;++i)e[i]=r[i],t[r.charCodeAt(i)]=i;t[45]=62,t[95]=63;function a(p){var m=p.length;if(m%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var v=p.indexOf("=");v===-1&&(v=m);var y=v===m?0:4-v%4;return[v,y]}function s(p){var m=a(p),v=m[0],y=m[1];return(v+y)*3/4-y}function l(p,m,v){return(m+v)*3/4-v}function c(p){var m,v=a(p),y=v[0],S=v[1],b=new n(l(p,y,S)),C=0,_=S>0?y-4:y,T;for(T=0;T<_;T+=4)m=t[p.charCodeAt(T)]<<18|t[p.charCodeAt(T+1)]<<12|t[p.charCodeAt(T+2)]<<6|t[p.charCodeAt(T+3)],b[C++]=m>>16&255,b[C++]=m>>8&255,b[C++]=m&255;return S===2&&(m=t[p.charCodeAt(T)]<<2|t[p.charCodeAt(T+1)]>>4,b[C++]=m&255),S===1&&(m=t[p.charCodeAt(T)]<<10|t[p.charCodeAt(T+1)]<<4|t[p.charCodeAt(T+2)]>>2,b[C++]=m>>8&255,b[C++]=m&255),b}function u(p){return e[p>>18&63]+e[p>>12&63]+e[p>>6&63]+e[p&63]}function d(p,m,v){for(var y,S=[],b=m;b<v;b+=3)y=(p[b]<<16&16711680)+(p[b+1]<<8&65280)+(p[b+2]&255),S.push(u(y));return S.join("")}function h(p){for(var m,v=p.length,y=v%3,S=[],b=16383,C=0,_=v-y;C<_;C+=b)S.push(d(p,C,C+b>_?_:C+b));return y===1?(m=p[v-1],S.push(e[m>>2]+e[m<<4&63]+"==")):y===2&&(m=(p[v-2]<<8)+p[v-1],S.push(e[m>>10]+e[m>>4&63]+e[m<<2&63]+"=")),S.join("")}return vy}function HIe(){return yL?v2:(yL=!0,v2.read=function(e,t,n,r,i){var o,a,s=i*8-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?i-1:0,h=n?-1:1,p=e[t+d];for(d+=h,o=p&(1<<-u)-1,p>>=-u,u+=s;u>0;o=o*256+e[t+d],d+=h,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=a*256+e[t+d],d+=h,u-=8);if(o===0)o=1-c;else{if(o===l)return a?NaN:(p?-1:1)*(1/0);a=a+Math.pow(2,r),o=o-c}return(p?-1:1)*a*Math.pow(2,o-r)},v2.write=function(e,t,n,r,i,o){var a,s,l,c=o*8-i-1,u=(1<<c)-1,d=u>>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,m=r?1:-1,v=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+d>=1?t+=h/l:t+=h*Math.pow(2,1-d),t*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a=a+d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=s&255,p+=m,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[n+p]=a&255,p+=m,a/=256,c-=8);e[n+p-m]|=v*128},v2)}function zIe(){if(bL)return rm;bL=!0;let e=BIe(),t=HIe(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;rm.Buffer=a,rm.SlowBuffer=S,rm.INSPECT_MAX_BYTES=50;let r=2147483647;rm.kMaxLength=r,a.TYPED_ARRAY_SUPPORT=i(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{let Q=new Uint8Array(1),K={foo:function(){return 42}};return Object.setPrototypeOf(K,Uint8Array.prototype),Object.setPrototypeOf(Q,K),Q.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function o(Q){if(Q>r)throw new RangeError('The value "'+Q+'" is invalid for option "size"');let K=new Uint8Array(Q);return Object.setPrototypeOf(K,a.prototype),K}function a(Q,K,J){if(typeof Q=="number"){if(typeof K=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return u(Q)}return s(Q,K,J)}a.poolSize=8192;function s(Q,K,J){if(typeof Q=="string")return d(Q,K);if(ArrayBuffer.isView(Q))return p(Q);if(Q==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Q);if(Te(Q,ArrayBuffer)||Q&&Te(Q.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Te(Q,SharedArrayBuffer)||Q&&Te(Q.buffer,SharedArrayBuffer)))return m(Q,K,J);if(typeof Q=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let be=Q.valueOf&&Q.valueOf();if(be!=null&&be!==Q)return a.from(be,K,J);let Oe=v(Q);if(Oe)return Oe;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Q[Symbol.toPrimitive]=="function")return a.from(Q[Symbol.toPrimitive]("string"),K,J);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Q)}a.from=function(Q,K,J){return s(Q,K,J)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function l(Q){if(typeof Q!="number")throw new TypeError('"size" argument must be of type number');if(Q<0)throw new RangeError('The value "'+Q+'" is invalid for option "size"')}function c(Q,K,J){return l(Q),Q<=0?o(Q):K!==void 0?typeof J=="string"?o(Q).fill(K,J):o(Q).fill(K):o(Q)}a.alloc=function(Q,K,J){return c(Q,K,J)};function u(Q){return l(Q),o(Q<0?0:y(Q)|0)}a.allocUnsafe=function(Q){return u(Q)},a.allocUnsafeSlow=function(Q){return u(Q)};function d(Q,K){if((typeof K!="string"||K==="")&&(K="utf8"),!a.isEncoding(K))throw new TypeError("Unknown encoding: "+K);let J=b(Q,K)|0,be=o(J),Oe=be.write(Q,K);return Oe!==J&&(be=be.slice(0,Oe)),be}function h(Q){let K=Q.length<0?0:y(Q.length)|0,J=o(K);for(let be=0;be<K;be+=1)J[be]=Q[be]&255;return J}function p(Q){if(Te(Q,Uint8Array)){let K=new Uint8Array(Q);return m(K.buffer,K.byteOffset,K.byteLength)}return h(Q)}function m(Q,K,J){if(K<0||Q.byteLength<K)throw new RangeError('"offset" is outside of buffer bounds');if(Q.byteLength<K+(J||0))throw new RangeError('"length" is outside of buffer bounds');let be;return K===void 0&&J===void 0?be=new Uint8Array(Q):J===void 0?be=new Uint8Array(Q,K):be=new Uint8Array(Q,K,J),Object.setPrototypeOf(be,a.prototype),be}function v(Q){if(a.isBuffer(Q)){let K=y(Q.length)|0,J=o(K);return J.length===0||Q.copy(J,0,0,K),J}if(Q.length!==void 0)return typeof Q.length!="number"||ke(Q.length)?o(0):h(Q);if(Q.type==="Buffer"&&Array.isArray(Q.data))return h(Q.data)}function y(Q){if(Q>=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return Q|0}function S(Q){return+Q!=Q&&(Q=0),a.alloc(+Q)}a.isBuffer=function(Q){return Q!=null&&Q._isBuffer===!0&&Q!==a.prototype},a.compare=function(Q,K){if(Te(Q,Uint8Array)&&(Q=a.from(Q,Q.offset,Q.byteLength)),Te(K,Uint8Array)&&(K=a.from(K,K.offset,K.byteLength)),!a.isBuffer(Q)||!a.isBuffer(K))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Q===K)return 0;let J=Q.length,be=K.length;for(let Oe=0,Se=Math.min(J,be);Oe<Se;++Oe)if(Q[Oe]!==K[Oe]){J=Q[Oe],be=K[Oe];break}return J<be?-1:be<J?1:0},a.isEncoding=function(Q){switch(String(Q).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(Q,K){if(!Array.isArray(Q))throw new TypeError('"list" argument must be an Array of Buffers');if(Q.length===0)return a.alloc(0);let J;if(K===void 0)for(K=0,J=0;J<Q.length;++J)K+=Q[J].length;let be=a.allocUnsafe(K),Oe=0;for(J=0;J<Q.length;++J){let Se=Q[J];if(Te(Se,Uint8Array))Oe+Se.length>be.length?(a.isBuffer(Se)||(Se=a.from(Se)),Se.copy(be,Oe)):Uint8Array.prototype.set.call(be,Se,Oe);else if(a.isBuffer(Se))Se.copy(be,Oe);else throw new TypeError('"list" argument must be an Array of Buffers');Oe+=Se.length}return be};function b(Q,K){if(a.isBuffer(Q))return Q.length;if(ArrayBuffer.isView(Q)||Te(Q,ArrayBuffer))return Q.byteLength;if(typeof Q!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Q);let J=Q.length,be=arguments.length>2&&arguments[2]===!0;if(!be&&J===0)return 0;let Oe=!1;for(;;)switch(K){case"ascii":case"latin1":case"binary":return J;case"utf8":case"utf-8":return xe(Q).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J*2;case"hex":return J>>>1;case"base64":return Fe(Q).length;default:if(Oe)return be?-1:xe(Q).length;K=(""+K).toLowerCase(),Oe=!0}}a.byteLength=b;function C(Q,K,J){let be=!1;if((K===void 0||K<0)&&(K=0),K>this.length||((J===void 0||J>this.length)&&(J=this.length),J<=0)||(J>>>=0,K>>>=0,J<=K))return"";for(Q||(Q="utf8");;)switch(Q){case"hex":return q(this,K,J);case"utf8":case"utf-8":return A(this,K,J);case"ascii":return z(this,K,J);case"latin1":case"binary":return W(this,K,J);case"base64":return R(this,K,J);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Z(this,K,J);default:if(be)throw new TypeError("Unknown encoding: "+Q);Q=(Q+"").toLowerCase(),be=!0}}a.prototype._isBuffer=!0;function _(Q,K,J){let be=Q[K];Q[K]=Q[J],Q[J]=be}a.prototype.swap16=function(){let Q=this.length;if(Q%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let K=0;K<Q;K+=2)_(this,K,K+1);return this},a.prototype.swap32=function(){let Q=this.length;if(Q%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let K=0;K<Q;K+=4)_(this,K,K+3),_(this,K+1,K+2);return this},a.prototype.swap64=function(){let Q=this.length;if(Q%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let K=0;K<Q;K+=8)_(this,K,K+7),_(this,K+1,K+6),_(this,K+2,K+5),_(this,K+3,K+4);return this},a.prototype.toString=function(){let Q=this.length;return Q===0?"":arguments.length===0?A(this,0,Q):C.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(Q){if(!a.isBuffer(Q))throw new TypeError("Argument must be a Buffer");return this===Q?!0:a.compare(this,Q)===0},a.prototype.inspect=function(){let Q="",K=rm.INSPECT_MAX_BYTES;return Q=this.toString("hex",0,K).replace(/(.{2})/g,"$1 ").trim(),this.length>K&&(Q+=" ... "),"<Buffer "+Q+">"},n&&(a.prototype[n]=a.prototype.inspect),a.prototype.compare=function(Q,K,J,be,Oe){if(Te(Q,Uint8Array)&&(Q=a.from(Q,Q.offset,Q.byteLength)),!a.isBuffer(Q))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Q);if(K===void 0&&(K=0),J===void 0&&(J=Q?Q.length:0),be===void 0&&(be=0),Oe===void 0&&(Oe=this.length),K<0||J>Q.length||be<0||Oe>this.length)throw new RangeError("out of range index");if(be>=Oe&&K>=J)return 0;if(be>=Oe)return-1;if(K>=J)return 1;if(K>>>=0,J>>>=0,be>>>=0,Oe>>>=0,this===Q)return 0;let Se=Oe-be,Ke=J-K,tt=Math.min(Se,Ke),se=this.slice(be,Oe),ze=Q.slice(K,J);for(let Ye=0;Ye<tt;++Ye)if(se[Ye]!==ze[Ye]){Se=se[Ye],Ke=ze[Ye];break}return Se<Ke?-1:Ke<Se?1:0};function T(Q,K,J,be,Oe){if(Q.length===0)return-1;if(typeof J=="string"?(be=J,J=0):J>2147483647?J=2147483647:J<-2147483648&&(J=-2147483648),J=+J,ke(J)&&(J=Oe?0:Q.length-1),J<0&&(J=Q.length+J),J>=Q.length){if(Oe)return-1;J=Q.length-1}else if(J<0)if(Oe)J=0;else return-1;if(typeof K=="string"&&(K=a.from(K,be)),a.isBuffer(K))return K.length===0?-1:x(Q,K,J,be,Oe);if(typeof K=="number")return K=K&255,typeof Uint8Array.prototype.indexOf=="function"?Oe?Uint8Array.prototype.indexOf.call(Q,K,J):Uint8Array.prototype.lastIndexOf.call(Q,K,J):x(Q,[K],J,be,Oe);throw new TypeError("val must be string, number or Buffer")}function x(Q,K,J,be,Oe){let Se=1,Ke=Q.length,tt=K.length;if(be!==void 0&&(be=String(be).toLowerCase(),be==="ucs2"||be==="ucs-2"||be==="utf16le"||be==="utf-16le")){if(Q.length<2||K.length<2)return-1;Se=2,Ke/=2,tt/=2,J/=2}function se(Ye,Ue){return Se===1?Ye[Ue]:Ye.readUInt16BE(Ue*Se)}let ze;if(Oe){let Ye=-1;for(ze=J;ze<Ke;ze++)if(se(Q,ze)===se(K,Ye===-1?0:ze-Ye)){if(Ye===-1&&(Ye=ze),ze-Ye+1===tt)return Ye*Se}else Ye!==-1&&(ze-=ze-Ye),Ye=-1}else for(J+tt>Ke&&(J=Ke-tt),ze=J;ze>=0;ze--){let Ye=!0;for(let Ue=0;Ue<tt;Ue++)if(se(Q,ze+Ue)!==se(K,Ue)){Ye=!1;break}if(Ye)return ze}return-1}a.prototype.includes=function(Q,K,J){return this.indexOf(Q,K,J)!==-1},a.prototype.indexOf=function(Q,K,J){return T(this,Q,K,J,!0)},a.prototype.lastIndexOf=function(Q,K,J){return T(this,Q,K,J,!1)};function E(Q,K,J,be){J=Number(J)||0;let Oe=Q.length-J;be?(be=Number(be),be>Oe&&(be=Oe)):be=Oe;let Se=K.length;be>Se/2&&(be=Se/2);let Ke;for(Ke=0;Ke<be;++Ke){let tt=parseInt(K.substr(Ke*2,2),16);if(ke(tt))return Ke;Q[J+Ke]=tt}return Ke}function k(Q,K,J,be){return Ce(xe(K,Q.length-J),Q,J,be)}function M(Q,K,J,be){return Ce(we(K),Q,J,be)}function P(Q,K,J,be){return Ce(Fe(K),Q,J,be)}function D(Q,K,J,be){return Ce(De(K,Q.length-J),Q,J,be)}a.prototype.write=function(Q,K,J,be){if(K===void 0)be="utf8",J=this.length,K=0;else if(J===void 0&&typeof K=="string")be=K,J=this.length,K=0;else if(isFinite(K))K=K>>>0,isFinite(J)?(J=J>>>0,be===void 0&&(be="utf8")):(be=J,J=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let Oe=this.length-K;if((J===void 0||J>Oe)&&(J=Oe),Q.length>0&&(J<0||K<0)||K>this.length)throw new RangeError("Attempt to write outside buffer bounds");be||(be="utf8");let Se=!1;for(;;)switch(be){case"hex":return E(this,Q,K,J);case"utf8":case"utf-8":return k(this,Q,K,J);case"ascii":case"latin1":case"binary":return M(this,Q,K,J);case"base64":return P(this,Q,K,J);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,Q,K,J);default:if(Se)throw new TypeError("Unknown encoding: "+be);be=(""+be).toLowerCase(),Se=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function R(Q,K,J){return K===0&&J===Q.length?e.fromByteArray(Q):e.fromByteArray(Q.slice(K,J))}function A(Q,K,J){J=Math.min(Q.length,J);let be=[],Oe=K;for(;Oe<J;){let Se=Q[Oe],Ke=null,tt=Se>239?4:Se>223?3:Se>191?2:1;if(Oe+tt<=J){let se,ze,Ye,Ue;switch(tt){case 1:Se<128&&(Ke=Se);break;case 2:se=Q[Oe+1],(se&192)===128&&(Ue=(Se&31)<<6|se&63,Ue>127&&(Ke=Ue));break;case 3:se=Q[Oe+1],ze=Q[Oe+2],(se&192)===128&&(ze&192)===128&&(Ue=(Se&15)<<12|(se&63)<<6|ze&63,Ue>2047&&(Ue<55296||Ue>57343)&&(Ke=Ue));break;case 4:se=Q[Oe+1],ze=Q[Oe+2],Ye=Q[Oe+3],(se&192)===128&&(ze&192)===128&&(Ye&192)===128&&(Ue=(Se&15)<<18|(se&63)<<12|(ze&63)<<6|Ye&63,Ue>65535&&Ue<1114112&&(Ke=Ue))}}Ke===null?(Ke=65533,tt=1):Ke>65535&&(Ke-=65536,be.push(Ke>>>10&1023|55296),Ke=56320|Ke&1023),be.push(Ke),Oe+=tt}return F(be)}let H=4096;function F(Q){let K=Q.length;if(K<=H)return String.fromCharCode.apply(String,Q);let J="",be=0;for(;be<K;)J+=String.fromCharCode.apply(String,Q.slice(be,be+=H));return J}function z(Q,K,J){let be="";J=Math.min(Q.length,J);for(let Oe=K;Oe<J;++Oe)be+=String.fromCharCode(Q[Oe]&127);return be}function W(Q,K,J){let be="";J=Math.min(Q.length,J);for(let Oe=K;Oe<J;++Oe)be+=String.fromCharCode(Q[Oe]);return be}function q(Q,K,J){let be=Q.length;(!K||K<0)&&(K=0),(!J||J<0||J>be)&&(J=be);let Oe="";for(let Se=K;Se<J;++Se)Oe+=Pe[Q[Se]];return Oe}function Z(Q,K,J){let be=Q.slice(K,J),Oe="";for(let Se=0;Se<be.length-1;Se+=2)Oe+=String.fromCharCode(be[Se]+be[Se+1]*256);return Oe}a.prototype.slice=function(Q,K){let J=this.length;Q=~~Q,K=K===void 0?J:~~K,Q<0?(Q+=J,Q<0&&(Q=0)):Q>J&&(Q=J),K<0?(K+=J,K<0&&(K=0)):K>J&&(K=J),K<Q&&(K=Q);let be=this.subarray(Q,K);return Object.setPrototypeOf(be,a.prototype),be};function N(Q,K,J){if(Q%1!==0||Q<0)throw new RangeError("offset is not uint");if(Q+K>J)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(Q,K,J){Q=Q>>>0,K=K>>>0,J||N(Q,K,this.length);let be=this[Q],Oe=1,Se=0;for(;++Se<K&&(Oe*=256);)be+=this[Q+Se]*Oe;return be},a.prototype.readUintBE=a.prototype.readUIntBE=function(Q,K,J){Q=Q>>>0,K=K>>>0,J||N(Q,K,this.length);let be=this[Q+--K],Oe=1;for(;K>0&&(Oe*=256);)be+=this[Q+--K]*Oe;return be},a.prototype.readUint8=a.prototype.readUInt8=function(Q,K){return Q=Q>>>0,K||N(Q,1,this.length),this[Q]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(Q,K){return Q=Q>>>0,K||N(Q,2,this.length),this[Q]|this[Q+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(Q,K){return Q=Q>>>0,K||N(Q,2,this.length),this[Q]<<8|this[Q+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(Q,K){return Q=Q>>>0,K||N(Q,4,this.length),(this[Q]|this[Q+1]<<8|this[Q+2]<<16)+this[Q+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(Q,K){return Q=Q>>>0,K||N(Q,4,this.length),this[Q]*16777216+(this[Q+1]<<16|this[Q+2]<<8|this[Q+3])},a.prototype.readBigUInt64LE=Ne(function(Q){Q=Q>>>0,pe(Q,"offset");let K=this[Q],J=this[Q+7];(K===void 0||J===void 0)&&he(Q,this.length-8);let be=K+this[++Q]*2**8+this[++Q]*2**16+this[++Q]*2**24,Oe=this[++Q]+this[++Q]*2**8+this[++Q]*2**16+J*2**24;return BigInt(be)+(BigInt(Oe)<<BigInt(32))}),a.prototype.readBigUInt64BE=Ne(function(Q){Q=Q>>>0,pe(Q,"offset");let K=this[Q],J=this[Q+7];(K===void 0||J===void 0)&&he(Q,this.length-8);let be=K*2**24+this[++Q]*2**16+this[++Q]*2**8+this[++Q],Oe=this[++Q]*2**24+this[++Q]*2**16+this[++Q]*2**8+J;return(BigInt(be)<<BigInt(32))+BigInt(Oe)}),a.prototype.readIntLE=function(Q,K,J){Q=Q>>>0,K=K>>>0,J||N(Q,K,this.length);let be=this[Q],Oe=1,Se=0;for(;++Se<K&&(Oe*=256);)be+=this[Q+Se]*Oe;return Oe*=128,be>=Oe&&(be-=Math.pow(2,8*K)),be},a.prototype.readIntBE=function(Q,K,J){Q=Q>>>0,K=K>>>0,J||N(Q,K,this.length);let be=K,Oe=1,Se=this[Q+--be];for(;be>0&&(Oe*=256);)Se+=this[Q+--be]*Oe;return Oe*=128,Se>=Oe&&(Se-=Math.pow(2,8*K)),Se},a.prototype.readInt8=function(Q,K){return Q=Q>>>0,K||N(Q,1,this.length),this[Q]&128?(255-this[Q]+1)*-1:this[Q]},a.prototype.readInt16LE=function(Q,K){Q=Q>>>0,K||N(Q,2,this.length);let J=this[Q]|this[Q+1]<<8;return J&32768?J|4294901760:J},a.prototype.readInt16BE=function(Q,K){Q=Q>>>0,K||N(Q,2,this.length);let J=this[Q+1]|this[Q]<<8;return J&32768?J|4294901760:J},a.prototype.readInt32LE=function(Q,K){return Q=Q>>>0,K||N(Q,4,this.length),this[Q]|this[Q+1]<<8|this[Q+2]<<16|this[Q+3]<<24},a.prototype.readInt32BE=function(Q,K){return Q=Q>>>0,K||N(Q,4,this.length),this[Q]<<24|this[Q+1]<<16|this[Q+2]<<8|this[Q+3]},a.prototype.readBigInt64LE=Ne(function(Q){Q=Q>>>0,pe(Q,"offset");let K=this[Q],J=this[Q+7];(K===void 0||J===void 0)&&he(Q,this.length-8);let be=this[Q+4]+this[Q+5]*2**8+this[Q+6]*2**16+(J<<24);return(BigInt(be)<<BigInt(32))+BigInt(K+this[++Q]*2**8+this[++Q]*2**16+this[++Q]*2**24)}),a.prototype.readBigInt64BE=Ne(function(Q){Q=Q>>>0,pe(Q,"offset");let K=this[Q],J=this[Q+7];(K===void 0||J===void 0)&&he(Q,this.length-8);let be=(K<<24)+this[++Q]*2**16+this[++Q]*2**8+this[++Q];return(BigInt(be)<<BigInt(32))+BigInt(this[++Q]*2**24+this[++Q]*2**16+this[++Q]*2**8+J)}),a.prototype.readFloatLE=function(Q,K){return Q=Q>>>0,K||N(Q,4,this.length),t.read(this,Q,!0,23,4)},a.prototype.readFloatBE=function(Q,K){return Q=Q>>>0,K||N(Q,4,this.length),t.read(this,Q,!1,23,4)},a.prototype.readDoubleLE=function(Q,K){return Q=Q>>>0,K||N(Q,8,this.length),t.read(this,Q,!0,52,8)},a.prototype.readDoubleBE=function(Q,K){return Q=Q>>>0,K||N(Q,8,this.length),t.read(this,Q,!1,52,8)};function B(Q,K,J,be,Oe,Se){if(!a.isBuffer(Q))throw new TypeError('"buffer" argument must be a Buffer instance');if(K>Oe||K<Se)throw new RangeError('"value" argument is out of bounds');if(J+be>Q.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(Q,K,J,be){if(Q=+Q,K=K>>>0,J=J>>>0,!be){let Ke=Math.pow(2,8*J)-1;B(this,Q,K,J,Ke,0)}let Oe=1,Se=0;for(this[K]=Q&255;++Se<J&&(Oe*=256);)this[K+Se]=Q/Oe&255;return K+J},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(Q,K,J,be){if(Q=+Q,K=K>>>0,J=J>>>0,!be){let Ke=Math.pow(2,8*J)-1;B(this,Q,K,J,Ke,0)}let Oe=J-1,Se=1;for(this[K+Oe]=Q&255;--Oe>=0&&(Se*=256);)this[K+Oe]=Q/Se&255;return K+J},a.prototype.writeUint8=a.prototype.writeUInt8=function(Q,K,J){return Q=+Q,K=K>>>0,J||B(this,Q,K,1,255,0),this[K]=Q&255,K+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(Q,K,J){return Q=+Q,K=K>>>0,J||B(this,Q,K,2,65535,0),this[K]=Q&255,this[K+1]=Q>>>8,K+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(Q,K,J){return Q=+Q,K=K>>>0,J||B(this,Q,K,2,65535,0),this[K]=Q>>>8,this[K+1]=Q&255,K+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(Q,K,J){return Q=+Q,K=K>>>0,J||B(this,Q,K,4,4294967295,0),this[K+3]=Q>>>24,this[K+2]=Q>>>16,this[K+1]=Q>>>8,this[K]=Q&255,K+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(Q,K,J){return Q=+Q,K=K>>>0,J||B(this,Q,K,4,4294967295,0),this[K]=Q>>>24,this[K+1]=Q>>>16,this[K+2]=Q>>>8,this[K+3]=Q&255,K+4};function V(Q,K,J,be,Oe){me(K,be,Oe,Q,J,7);let Se=Number(K&BigInt(4294967295));Q[J++]=Se,Se=Se>>8,Q[J++]=Se,Se=Se>>8,Q[J++]=Se,Se=Se>>8,Q[J++]=Se;let Ke=Number(K>>BigInt(32)&BigInt(4294967295));return Q[J++]=Ke,Ke=Ke>>8,Q[J++]=Ke,Ke=Ke>>8,Q[J++]=Ke,Ke=Ke>>8,Q[J++]=Ke,J}function G(Q,K,J,be,Oe){me(K,be,Oe,Q,J,7);let Se=Number(K&BigInt(4294967295));Q[J+7]=Se,Se=Se>>8,Q[J+6]=Se,Se=Se>>8,Q[J+5]=Se,Se=Se>>8,Q[J+4]=Se;let Ke=Number(K>>BigInt(32)&BigInt(4294967295));return Q[J+3]=Ke,Ke=Ke>>8,Q[J+2]=Ke,Ke=Ke>>8,Q[J+1]=Ke,Ke=Ke>>8,Q[J]=Ke,J+8}a.prototype.writeBigUInt64LE=Ne(function(Q,K=0){return V(this,Q,K,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=Ne(function(Q,K=0){return G(this,Q,K,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(Q,K,J,be){if(Q=+Q,K=K>>>0,!be){let tt=Math.pow(2,8*J-1);B(this,Q,K,J,tt-1,-tt)}let Oe=0,Se=1,Ke=0;for(this[K]=Q&255;++Oe<J&&(Se*=256);)Q<0&&Ke===0&&this[K+Oe-1]!==0&&(Ke=1),this[K+Oe]=(Q/Se>>0)-Ke&255;return K+J},a.prototype.writeIntBE=function(Q,K,J,be){if(Q=+Q,K=K>>>0,!be){let tt=Math.pow(2,8*J-1);B(this,Q,K,J,tt-1,-tt)}let Oe=J-1,Se=1,Ke=0;for(this[K+Oe]=Q&255;--Oe>=0&&(Se*=256);)Q<0&&Ke===0&&this[K+Oe+1]!==0&&(Ke=1),this[K+Oe]=(Q/Se>>0)-Ke&255;return K+J},a.prototype.writeInt8=function(Q,K,J){return Q=+Q,K=K>>>0,J||B(this,Q,K,1,127,-128),Q<0&&(Q=255+Q+1),this[K]=Q&255,K+1},a.prototype.writeInt16LE=function(Q,K,J){return Q=+Q,K=K>>>0,J||B(this,Q,K,2,32767,-32768),this[K]=Q&255,this[K+1]=Q>>>8,K+2},a.prototype.writeInt16BE=function(Q,K,J){return Q=+Q,K=K>>>0,J||B(this,Q,K,2,32767,-32768),this[K]=Q>>>8,this[K+1]=Q&255,K+2},a.prototype.writeInt32LE=function(Q,K,J){return Q=+Q,K=K>>>0,J||B(this,Q,K,4,2147483647,-2147483648),this[K]=Q&255,this[K+1]=Q>>>8,this[K+2]=Q>>>16,this[K+3]=Q>>>24,K+4},a.prototype.writeInt32BE=function(Q,K,J){return Q=+Q,K=K>>>0,J||B(this,Q,K,4,2147483647,-2147483648),Q<0&&(Q=4294967295+Q+1),this[K]=Q>>>24,this[K+1]=Q>>>16,this[K+2]=Q>>>8,this[K+3]=Q&255,K+4},a.prototype.writeBigInt64LE=Ne(function(Q,K=0){return V(this,Q,K,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=Ne(function(Q,K=0){return G(this,Q,K,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ie(Q,K,J,be,Oe,Se){if(J+be>Q.length)throw new RangeError("Index out of range");if(J<0)throw new RangeError("Index out of range")}function ce(Q,K,J,be,Oe){return K=+K,J=J>>>0,Oe||ie(Q,K,J,4),t.write(Q,K,J,be,23,4),J+4}a.prototype.writeFloatLE=function(Q,K,J){return ce(this,Q,K,!0,J)},a.prototype.writeFloatBE=function(Q,K,J){return ce(this,Q,K,!1,J)};function fe(Q,K,J,be,Oe){return K=+K,J=J>>>0,Oe||ie(Q,K,J,8),t.write(Q,K,J,be,52,8),J+8}a.prototype.writeDoubleLE=function(Q,K,J){return fe(this,Q,K,!0,J)},a.prototype.writeDoubleBE=function(Q,K,J){return fe(this,Q,K,!1,J)},a.prototype.copy=function(Q,K,J,be){if(!a.isBuffer(Q))throw new TypeError("argument should be a Buffer");if(J||(J=0),!be&&be!==0&&(be=this.length),K>=Q.length&&(K=Q.length),K||(K=0),be>0&&be<J&&(be=J),be===J||Q.length===0||this.length===0)return 0;if(K<0)throw new RangeError("targetStart out of bounds");if(J<0||J>=this.length)throw new RangeError("Index out of range");if(be<0)throw new RangeError("sourceEnd out of bounds");be>this.length&&(be=this.length),Q.length-K<be-J&&(be=Q.length-K+J);let Oe=be-J;return this===Q&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(K,J,be):Uint8Array.prototype.set.call(Q,this.subarray(J,be),K),Oe},a.prototype.fill=function(Q,K,J,be){if(typeof Q=="string"){if(typeof K=="string"?(be=K,K=0,J=this.length):typeof J=="string"&&(be=J,J=this.length),be!==void 0&&typeof be!="string")throw new TypeError("encoding must be a string");if(typeof be=="string"&&!a.isEncoding(be))throw new TypeError("Unknown encoding: "+be);if(Q.length===1){let Se=Q.charCodeAt(0);(be==="utf8"&&Se<128||be==="latin1")&&(Q=Se)}}else typeof Q=="number"?Q=Q&255:typeof Q=="boolean"&&(Q=Number(Q));if(K<0||this.length<K||this.length<J)throw new RangeError("Out of range index");if(J<=K)return this;K=K>>>0,J=J===void 0?this.length:J>>>0,Q||(Q=0);let Oe;if(typeof Q=="number")for(Oe=K;Oe<J;++Oe)this[Oe]=Q;else{let Se=a.isBuffer(Q)?Q:a.from(Q,be),Ke=Se.length;if(Ke===0)throw new TypeError('The value "'+Q+'" is invalid for argument "value"');for(Oe=0;Oe<J-K;++Oe)this[Oe+K]=Se[Oe%Ke]}return this};let ee={};function ne(Q,K,J){ee[Q]=class extends J{constructor(){super(),Object.defineProperty(this,"message",{value:K.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${Q}]`,this.stack,delete this.name}get code(){return Q}set code(be){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:be,writable:!0})}toString(){return`${this.name} [${Q}]: ${this.message}`}}}ne("ERR_BUFFER_OUT_OF_BOUNDS",function(Q){return Q?`${Q} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),ne("ERR_INVALID_ARG_TYPE",function(Q,K){return`The "${Q}" argument must be of type number. Received type ${typeof K}`},TypeError),ne("ERR_OUT_OF_RANGE",function(Q,K,J){let be=`The value of "${Q}" is out of range.`,Oe=J;return Number.isInteger(J)&&Math.abs(J)>2**32?Oe=ue(String(J)):typeof J=="bigint"&&(Oe=String(J),(J>BigInt(2)**BigInt(32)||J<-(BigInt(2)**BigInt(32)))&&(Oe=ue(Oe)),Oe+="n"),be+=` It must be ${K}. Received ${Oe}`,be},RangeError);function ue(Q){let K="",J=Q.length,be=Q[0]==="-"?1:0;for(;J>=be+4;J-=3)K=`_${Q.slice(J-3,J)}${K}`;return`${Q.slice(0,J)}${K}`}function ye(Q,K,J){pe(K,"offset"),(Q[K]===void 0||Q[K+J]===void 0)&&he(K,Q.length-(J+1))}function me(Q,K,J,be,Oe,Se){if(Q>J||Q<K){let Ke=typeof K=="bigint"?"n":"",tt;throw K===0||K===BigInt(0)?tt=`>= 0${Ke} and < 2${Ke} ** ${(Se+1)*8}${Ke}`:tt=`>= -(2${Ke} ** ${(Se+1)*8-1}${Ke}) and < 2 ** ${(Se+1)*8-1}${Ke}`,new ee.ERR_OUT_OF_RANGE("value",tt,Q)}ye(be,Oe,Se)}function pe(Q,K){if(typeof Q!="number")throw new ee.ERR_INVALID_ARG_TYPE(K,"number",Q)}function he(Q,K,J){throw Math.floor(Q)!==Q?(pe(Q,J),new ee.ERR_OUT_OF_RANGE("offset","an integer",Q)):K<0?new ee.ERR_BUFFER_OUT_OF_BOUNDS:new ee.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${K}`,Q)}let _e=/[^+/0-9A-Za-z-_]/g;function le(Q){if(Q=Q.split("=")[0],Q=Q.trim().replace(_e,""),Q.length<2)return"";for(;Q.length%4!==0;)Q=Q+"=";return Q}function xe(Q,K){K=K||1/0;let J,be=Q.length,Oe=null,Se=[];for(let Ke=0;Ke<be;++Ke){if(J=Q.charCodeAt(Ke),J>55295&&J<57344){if(!Oe){if(J>56319){(K-=3)>-1&&Se.push(239,191,189);continue}else if(Ke+1===be){(K-=3)>-1&&Se.push(239,191,189);continue}Oe=J;continue}if(J<56320){(K-=3)>-1&&Se.push(239,191,189),Oe=J;continue}J=(Oe-55296<<10|J-56320)+65536}else Oe&&(K-=3)>-1&&Se.push(239,191,189);if(Oe=null,J<128){if((K-=1)<0)break;Se.push(J)}else if(J<2048){if((K-=2)<0)break;Se.push(J>>6|192,J&63|128)}else if(J<65536){if((K-=3)<0)break;Se.push(J>>12|224,J>>6&63|128,J&63|128)}else if(J<1114112){if((K-=4)<0)break;Se.push(J>>18|240,J>>12&63|128,J>>6&63|128,J&63|128)}else throw new Error("Invalid code point")}return Se}function we(Q){let K=[];for(let J=0;J<Q.length;++J)K.push(Q.charCodeAt(J)&255);return K}function De(Q,K){let J,be,Oe,Se=[];for(let Ke=0;Ke<Q.length&&!((K-=2)<0);++Ke)J=Q.charCodeAt(Ke),be=J>>8,Oe=J%256,Se.push(Oe),Se.push(be);return Se}function Fe(Q){return e.toByteArray(le(Q))}function Ce(Q,K,J,be){let Oe;for(Oe=0;Oe<be&&!(Oe+J>=K.length||Oe>=Q.length);++Oe)K[Oe+J]=Q[Oe];return Oe}function Te(Q,K){return Q instanceof K||Q!=null&&Q.constructor!=null&&Q.constructor.name!=null&&Q.constructor.name===K.name}function ke(Q){return Q!==Q}let Pe=function(){let Q="0123456789abcdef",K=new Array(256);for(let J=0;J<16;++J){let be=J*16;for(let Oe=0;Oe<16;++Oe)K[be+Oe]=Q[J]+Q[Oe]}return K}();function Ne(Q){return typeof BigInt>"u"?We:Q}function We(){throw new Error("BigInt not supported")}return rm}var vy,vL,v2,yL,rm,bL,kh,X3,Che,xhe,Ts=_s(()=>{pn(),gn(),mn(),vy={},vL=!1,v2={},yL=!1,rm={},bL=!1,kh=zIe(),kh.Buffer,kh.SlowBuffer,kh.INSPECT_MAX_BYTES,kh.kMaxLength,X3=kh.Buffer,Che=kh.INSPECT_MAX_BYTES,xhe=kh.kMaxLength}),gn=_s(()=>{Ts()}),UIe=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"__esModule",{value:!0});var t=class{constructor(n){this.aliasToTopic={},this.max=n}put(n,r){return r===0||r>this.max?!1:(this.aliasToTopic[r]=n,this.length=Object.keys(this.aliasToTopic).length,!0)}getTopicByAlias(n){return this.aliasToTopic[n]}clear(){this.aliasToTopic={}}};e.default=t}),Va=Tn((e,t)=>{pn(),gn(),mn(),t.exports={ArrayIsArray(n){return Array.isArray(n)},ArrayPrototypeIncludes(n,r){return n.includes(r)},ArrayPrototypeIndexOf(n,r){return n.indexOf(r)},ArrayPrototypeJoin(n,r){return n.join(r)},ArrayPrototypeMap(n,r){return n.map(r)},ArrayPrototypePop(n,r){return n.pop(r)},ArrayPrototypePush(n,r){return n.push(r)},ArrayPrototypeSlice(n,r,i){return n.slice(r,i)},Error,FunctionPrototypeCall(n,r,...i){return n.call(r,...i)},FunctionPrototypeSymbolHasInstance(n,r){return Function.prototype[Symbol.hasInstance].call(n,r)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(n,r){return Object.defineProperties(n,r)},ObjectDefineProperty(n,r,i){return Object.defineProperty(n,r,i)},ObjectGetOwnPropertyDescriptor(n,r){return Object.getOwnPropertyDescriptor(n,r)},ObjectKeys(n){return Object.keys(n)},ObjectSetPrototypeOf(n,r){return Object.setPrototypeOf(n,r)},Promise,PromisePrototypeCatch(n,r){return n.catch(r)},PromisePrototypeThen(n,r,i){return n.then(r,i)},PromiseReject(n){return Promise.reject(n)},ReflectApply:Reflect.apply,RegExpPrototypeTest(n,r){return n.test(r)},SafeSet:Set,String,StringPrototypeSlice(n,r,i){return n.slice(r,i)},StringPrototypeToLowerCase(n){return n.toLowerCase()},StringPrototypeToUpperCase(n){return n.toUpperCase()},StringPrototypeTrim(n){return n.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,TypedArrayPrototypeSet(n,r,i){return n.set(r,i)},Uint8Array}}),sp=Tn((e,t)=>{pn(),gn(),mn();var n=(Ts(),eo(Es)),r=Object.getPrototypeOf(async function(){}).constructor,i=globalThis.Blob||n.Blob,o=typeof i<"u"?function(s){return s instanceof i}:function(s){return!1},a=class extends Error{constructor(s){if(!Array.isArray(s))throw new TypeError(`Expected input to be an Array, got ${typeof s}`);let l="";for(let c=0;c<s.length;c++)l+=` ${s[c].stack}
|
||
`;super(l),this.name="AggregateError",this.errors=s}};t.exports={AggregateError:a,kEmptyObject:Object.freeze({}),once(s){let l=!1;return function(...c){l||(l=!0,s.apply(this,c))}},createDeferredPromise:function(){let s,l;return{promise:new Promise((c,u)=>{s=c,l=u}),resolve:s,reject:l}},promisify(s){return new Promise((l,c)=>{s((u,...d)=>u?c(u):l(...d))})},debuglog(){return function(){}},format(s,...l){return s.replace(/%([sdifj])/g,function(...[c,u]){let d=l.shift();return u==="f"?d.toFixed(6):u==="j"?JSON.stringify(d):u==="s"&&typeof d=="object"?`${d.constructor!==Object?d.constructor.name:""} {}`.trim():d.toString()})},inspect(s){switch(typeof s){case"string":if(s.includes("'"))if(s.includes('"')){if(!s.includes("`")&&!s.includes("${"))return`\`${s}\``}else return`"${s}"`;return`'${s}'`;case"number":return isNaN(s)?"NaN":Object.is(s,-0)?String(s):s;case"bigint":return`${String(s)}n`;case"boolean":case"undefined":return String(s);case"object":return"{}"}},types:{isAsyncFunction(s){return s instanceof r},isArrayBufferView(s){return ArrayBuffer.isView(s)}},isBlob:o},t.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),bz=Tn((e,t)=>{pn(),gn(),mn();var{AbortController:n,AbortSignal:r}=typeof self<"u"?self:typeof window<"u"?window:void 0;t.exports=n,t.exports.AbortSignal=r,t.exports.default=n}),Yl=Tn((e,t)=>{pn(),gn(),mn();var{format:n,inspect:r,AggregateError:i}=sp(),o=globalThis.AggregateError||i,a=Symbol("kIsNodeError"),s=["string","function","number","object","Function","Object","boolean","bigint","symbol"],l=/^([A-Z][a-z0-9]*)+$/,c="__node_internal_",u={};function d(b,C){if(!b)throw new u.ERR_INTERNAL_ASSERTION(C)}function h(b){let C="",_=b.length,T=b[0]==="-"?1:0;for(;_>=T+4;_-=3)C=`_${b.slice(_-3,_)}${C}`;return`${b.slice(0,_)}${C}`}function p(b,C,_){if(typeof C=="function")return d(C.length<=_.length,`Code: ${b}; The provided arguments length (${_.length}) does not match the required ones (${C.length}).`),C(..._);let T=(C.match(/%[dfijoOs]/g)||[]).length;return d(T===_.length,`Code: ${b}; The provided arguments length (${_.length}) does not match the required ones (${T}).`),_.length===0?C:n(C,..._)}function m(b,C,_){_||(_=Error);class T extends _{constructor(...E){super(p(b,C,E))}toString(){return`${this.name} [${b}]: ${this.message}`}}Object.defineProperties(T.prototype,{name:{value:_.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${b}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),T.prototype.code=b,T.prototype[a]=!0,u[b]=T}function v(b){let C=c+b.name;return Object.defineProperty(b,"name",{value:C}),b}function y(b,C){if(b&&C&&b!==C){if(Array.isArray(C.errors))return C.errors.push(b),C;let _=new o([C,b],C.message);return _.code=C.code,_}return b||C}var S=class extends Error{constructor(b="The operation was aborted",C=void 0){if(C!==void 0&&typeof C!="object")throw new u.ERR_INVALID_ARG_TYPE("options","Object",C);super(b,C),this.code="ABORT_ERR",this.name="AbortError"}};m("ERR_ASSERTION","%s",Error),m("ERR_INVALID_ARG_TYPE",(b,C,_)=>{d(typeof b=="string","'name' must be a string"),Array.isArray(C)||(C=[C]);let T="The ";b.endsWith(" argument")?T+=`${b} `:T+=`"${b}" ${b.includes(".")?"property":"argument"} `,T+="must be ";let x=[],E=[],k=[];for(let P of C)d(typeof P=="string","All expected entries have to be of type string"),s.includes(P)?x.push(P.toLowerCase()):l.test(P)?E.push(P):(d(P!=="object",'The value "object" should be written as "Object"'),k.push(P));if(E.length>0){let P=x.indexOf("object");P!==-1&&(x.splice(x,P,1),E.push("Object"))}if(x.length>0){switch(x.length){case 1:T+=`of type ${x[0]}`;break;case 2:T+=`one of type ${x[0]} or ${x[1]}`;break;default:{let P=x.pop();T+=`one of type ${x.join(", ")}, or ${P}`}}(E.length>0||k.length>0)&&(T+=" or ")}if(E.length>0){switch(E.length){case 1:T+=`an instance of ${E[0]}`;break;case 2:T+=`an instance of ${E[0]} or ${E[1]}`;break;default:{let P=E.pop();T+=`an instance of ${E.join(", ")}, or ${P}`}}k.length>0&&(T+=" or ")}switch(k.length){case 0:break;case 1:k[0].toLowerCase()!==k[0]&&(T+="an "),T+=`${k[0]}`;break;case 2:T+=`one of ${k[0]} or ${k[1]}`;break;default:{let P=k.pop();T+=`one of ${k.join(", ")}, or ${P}`}}if(_==null)T+=`. Received ${_}`;else if(typeof _=="function"&&_.name)T+=`. Received function ${_.name}`;else if(typeof _=="object"){var M;if((M=_.constructor)!==null&&M!==void 0&&M.name)T+=`. Received an instance of ${_.constructor.name}`;else{let P=r(_,{depth:-1});T+=`. Received ${P}`}}else{let P=r(_,{colors:!1});P.length>25&&(P=`${P.slice(0,25)}...`),T+=`. Received type ${typeof _} (${P})`}return T},TypeError),m("ERR_INVALID_ARG_VALUE",(b,C,_="is invalid")=>{let T=r(C);return T.length>128&&(T=T.slice(0,128)+"..."),`The ${b.includes(".")?"property":"argument"} '${b}' ${_}. Received ${T}`},TypeError),m("ERR_INVALID_RETURN_VALUE",(b,C,_)=>{var T;let x=_!=null&&(T=_.constructor)!==null&&T!==void 0&&T.name?`instance of ${_.constructor.name}`:`type ${typeof _}`;return`Expected ${b} to be returned from the "${C}" function but got ${x}.`},TypeError),m("ERR_MISSING_ARGS",(...b)=>{d(b.length>0,"At least one arg needs to be specified");let C,_=b.length;switch(b=(Array.isArray(b)?b:[b]).map(T=>`"${T}"`).join(" or "),_){case 1:C+=`The ${b[0]} argument`;break;case 2:C+=`The ${b[0]} and ${b[1]} arguments`;break;default:{let T=b.pop();C+=`The ${b.join(", ")}, and ${T} arguments`}break}return`${C} must be specified`},TypeError),m("ERR_OUT_OF_RANGE",(b,C,_)=>{d(C,'Missing "range" argument');let T;return Number.isInteger(_)&&Math.abs(_)>2**32?T=h(String(_)):typeof _=="bigint"?(T=String(_),(_>2n**32n||_<-(2n**32n))&&(T=h(T)),T+="n"):T=r(_),`The value of "${b}" is out of range. It must be ${C}. Received ${T}`},RangeError),m("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),m("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),m("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),m("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),m("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),m("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),m("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),m("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),m("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),m("ERR_STREAM_WRITE_AFTER_END","write after end",Error),m("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),t.exports={AbortError:S,aggregateTwoErrors:v(y),hideStackFrames:v,codes:u}}),A6=Tn((e,t)=>{pn(),gn(),mn();var{ArrayIsArray:n,ArrayPrototypeIncludes:r,ArrayPrototypeJoin:i,ArrayPrototypeMap:o,NumberIsInteger:a,NumberIsNaN:s,NumberMAX_SAFE_INTEGER:l,NumberMIN_SAFE_INTEGER:c,NumberParseInt:u,ObjectPrototypeHasOwnProperty:d,RegExpPrototypeExec:h,String:p,StringPrototypeToUpperCase:m,StringPrototypeTrim:v}=Va(),{hideStackFrames:y,codes:{ERR_SOCKET_BAD_PORT:S,ERR_INVALID_ARG_TYPE:b,ERR_INVALID_ARG_VALUE:C,ERR_OUT_OF_RANGE:_,ERR_UNKNOWN_SIGNAL:T}}=Yl(),{normalizeEncoding:x}=sp(),{isAsyncFunction:E,isArrayBufferView:k}=sp().types,M={};function P(Ce){return Ce===(Ce|0)}function D(Ce){return Ce===Ce>>>0}var R=/^[0-7]+$/,A="must be a 32-bit unsigned integer or an octal string";function H(Ce,Te,ke){if(typeof Ce>"u"&&(Ce=ke),typeof Ce=="string"){if(h(R,Ce)===null)throw new C(Te,Ce,A);Ce=u(Ce,8)}return W(Ce,Te),Ce}var F=y((Ce,Te,ke=c,Pe=l)=>{if(typeof Ce!="number")throw new b(Te,"number",Ce);if(!a(Ce))throw new _(Te,"an integer",Ce);if(Ce<ke||Ce>Pe)throw new _(Te,`>= ${ke} && <= ${Pe}`,Ce)}),z=y((Ce,Te,ke=-2147483648,Pe=2147483647)=>{if(typeof Ce!="number")throw new b(Te,"number",Ce);if(!a(Ce))throw new _(Te,"an integer",Ce);if(Ce<ke||Ce>Pe)throw new _(Te,`>= ${ke} && <= ${Pe}`,Ce)}),W=y((Ce,Te,ke=!1)=>{if(typeof Ce!="number")throw new b(Te,"number",Ce);if(!a(Ce))throw new _(Te,"an integer",Ce);let Pe=ke?1:0,Ne=4294967295;if(Ce<Pe||Ce>Ne)throw new _(Te,`>= ${Pe} && <= ${Ne}`,Ce)});function q(Ce,Te){if(typeof Ce!="string")throw new b(Te,"string",Ce)}function Z(Ce,Te,ke=void 0,Pe){if(typeof Ce!="number")throw new b(Te,"number",Ce);if(ke!=null&&Ce<ke||Pe!=null&&Ce>Pe||(ke!=null||Pe!=null)&&s(Ce))throw new _(Te,`${ke!=null?`>= ${ke}`:""}${ke!=null&&Pe!=null?" && ":""}${Pe!=null?`<= ${Pe}`:""}`,Ce)}var N=y((Ce,Te,ke)=>{if(!r(ke,Ce)){let Pe="must be one of: "+i(o(ke,Ne=>typeof Ne=="string"?`'${Ne}'`:p(Ne)),", ");throw new C(Te,Ce,Pe)}});function B(Ce,Te){if(typeof Ce!="boolean")throw new b(Te,"boolean",Ce)}function V(Ce,Te,ke){return Ce==null||!d(Ce,Te)?ke:Ce[Te]}var G=y((Ce,Te,ke=null)=>{let Pe=V(ke,"allowArray",!1),Ne=V(ke,"allowFunction",!1);if(!V(ke,"nullable",!1)&&Ce===null||!Pe&&n(Ce)||typeof Ce!="object"&&(!Ne||typeof Ce!="function"))throw new b(Te,"Object",Ce)}),ie=y((Ce,Te)=>{if(Ce!=null&&typeof Ce!="object"&&typeof Ce!="function")throw new b(Te,"a dictionary",Ce)}),ce=y((Ce,Te,ke=0)=>{if(!n(Ce))throw new b(Te,"Array",Ce);if(Ce.length<ke){let Pe=`must be longer than ${ke}`;throw new C(Te,Ce,Pe)}});function fe(Ce,Te){ce(Ce,Te);for(let ke=0;ke<Ce.length;ke++)q(Ce[ke],`${Te}[${ke}]`)}function ee(Ce,Te){ce(Ce,Te);for(let ke=0;ke<Ce.length;ke++)B(Ce[ke],`${Te}[${ke}]`)}function ne(Ce,Te="signal"){if(q(Ce,Te),M[Ce]===void 0)throw M[m(Ce)]!==void 0?new T(Ce+" (signals must use all capital letters)"):new T(Ce)}var ue=y((Ce,Te="buffer")=>{if(!k(Ce))throw new b(Te,["Buffer","TypedArray","DataView"],Ce)});function ye(Ce,Te){let ke=x(Te),Pe=Ce.length;if(ke==="hex"&&Pe%2!==0)throw new C("encoding",Te,`is invalid for data of length ${Pe}`)}function me(Ce,Te="Port",ke=!0){if(typeof Ce!="number"&&typeof Ce!="string"||typeof Ce=="string"&&v(Ce).length===0||+Ce!==+Ce>>>0||Ce>65535||Ce===0&&!ke)throw new S(Te,Ce,ke);return Ce|0}var pe=y((Ce,Te)=>{if(Ce!==void 0&&(Ce===null||typeof Ce!="object"||!("aborted"in Ce)))throw new b(Te,"AbortSignal",Ce)}),he=y((Ce,Te)=>{if(typeof Ce!="function")throw new b(Te,"Function",Ce)}),_e=y((Ce,Te)=>{if(typeof Ce!="function"||E(Ce))throw new b(Te,"Function",Ce)}),le=y((Ce,Te)=>{if(Ce!==void 0)throw new b(Te,"undefined",Ce)});function xe(Ce,Te,ke){if(!r(ke,Ce))throw new b(Te,`('${i(ke,"|")}')`,Ce)}var we=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function De(Ce,Te){if(typeof Ce>"u"||!h(we,Ce))throw new C(Te,Ce,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function Fe(Ce){if(typeof Ce=="string")return De(Ce,"hints"),Ce;if(n(Ce)){let Te=Ce.length,ke="";if(Te===0)return ke;for(let Pe=0;Pe<Te;Pe++){let Ne=Ce[Pe];De(Ne,"hints"),ke+=Ne,Pe!==Te-1&&(ke+=", ")}return ke}throw new C("hints",Ce,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}t.exports={isInt32:P,isUint32:D,parseFileMode:H,validateArray:ce,validateStringArray:fe,validateBooleanArray:ee,validateBoolean:B,validateBuffer:ue,validateDictionary:ie,validateEncoding:ye,validateFunction:he,validateInt32:z,validateInteger:F,validateNumber:Z,validateObject:G,validateOneOf:N,validatePlainFunction:_e,validatePort:me,validateSignalName:ne,validateString:q,validateUint32:W,validateUndefined:le,validateUnion:xe,validateAbortSignal:pe,validateLinkHeaderValue:Fe}}),Hv=Tn((e,t)=>{pn(),gn(),mn();var n=t.exports={},r,i;function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?r=setTimeout:r=o}catch{r=o}try{typeof clearTimeout=="function"?i=clearTimeout:i=a}catch{i=a}})();function s(S){if(r===setTimeout)return setTimeout(S,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(S,0);try{return r(S,0)}catch{try{return r.call(null,S,0)}catch{return r.call(this,S,0)}}}function l(S){if(i===clearTimeout)return clearTimeout(S);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(S);try{return i(S)}catch{try{return i.call(null,S)}catch{return i.call(this,S)}}}var c=[],u=!1,d,h=-1;function p(){!u||!d||(u=!1,d.length?c=d.concat(c):h=-1,c.length&&m())}function m(){if(!u){var S=s(p);u=!0;for(var b=c.length;b;){for(d=c,c=[];++h<b;)d&&d[h].run();h=-1,b=c.length}d=null,u=!1,l(S)}}n.nextTick=function(S){var b=new Array(arguments.length-1);if(arguments.length>1)for(var C=1;C<arguments.length;C++)b[C-1]=arguments[C];c.push(new v(S,b)),c.length===1&&!u&&s(m)};function v(S,b){this.fun=S,this.array=b}v.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={};function y(){}n.on=y,n.addListener=y,n.once=y,n.off=y,n.removeListener=y,n.removeAllListeners=y,n.emit=y,n.prependListener=y,n.prependOnceListener=y,n.listeners=function(S){return[]},n.binding=function(S){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(S){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}}),Cp=Tn((e,t)=>{pn(),gn(),mn();var{Symbol:n,SymbolAsyncIterator:r,SymbolIterator:i,SymbolFor:o}=Va(),a=n("kDestroyed"),s=n("kIsErrored"),l=n("kIsReadable"),c=n("kIsDisturbed"),u=o("nodejs.webstream.isClosedPromise"),d=o("nodejs.webstream.controllerErrorFunction");function h(V,G=!1){var ie;return!!(V&&typeof V.pipe=="function"&&typeof V.on=="function"&&(!G||typeof V.pause=="function"&&typeof V.resume=="function")&&(!V._writableState||((ie=V._readableState)===null||ie===void 0?void 0:ie.readable)!==!1)&&(!V._writableState||V._readableState))}function p(V){var G;return!!(V&&typeof V.write=="function"&&typeof V.on=="function"&&(!V._readableState||((G=V._writableState)===null||G===void 0?void 0:G.writable)!==!1))}function m(V){return!!(V&&typeof V.pipe=="function"&&V._readableState&&typeof V.on=="function"&&typeof V.write=="function")}function v(V){return V&&(V._readableState||V._writableState||typeof V.write=="function"&&typeof V.on=="function"||typeof V.pipe=="function"&&typeof V.on=="function")}function y(V){return!!(V&&!v(V)&&typeof V.pipeThrough=="function"&&typeof V.getReader=="function"&&typeof V.cancel=="function")}function S(V){return!!(V&&!v(V)&&typeof V.getWriter=="function"&&typeof V.abort=="function")}function b(V){return!!(V&&!v(V)&&typeof V.readable=="object"&&typeof V.writable=="object")}function C(V){return y(V)||S(V)||b(V)}function _(V,G){return V==null?!1:G===!0?typeof V[r]=="function":G===!1?typeof V[i]=="function":typeof V[r]=="function"||typeof V[i]=="function"}function T(V){if(!v(V))return null;let G=V._writableState,ie=V._readableState,ce=G||ie;return!!(V.destroyed||V[a]||ce!=null&&ce.destroyed)}function x(V){if(!p(V))return null;if(V.writableEnded===!0)return!0;let G=V._writableState;return G!=null&&G.errored?!1:typeof(G==null?void 0:G.ended)!="boolean"?null:G.ended}function E(V,G){if(!p(V))return null;if(V.writableFinished===!0)return!0;let ie=V._writableState;return ie!=null&&ie.errored?!1:typeof(ie==null?void 0:ie.finished)!="boolean"?null:!!(ie.finished||G===!1&&ie.ended===!0&&ie.length===0)}function k(V){if(!h(V))return null;if(V.readableEnded===!0)return!0;let G=V._readableState;return!G||G.errored?!1:typeof(G==null?void 0:G.ended)!="boolean"?null:G.ended}function M(V,G){if(!h(V))return null;let ie=V._readableState;return ie!=null&&ie.errored?!1:typeof(ie==null?void 0:ie.endEmitted)!="boolean"?null:!!(ie.endEmitted||G===!1&&ie.ended===!0&&ie.length===0)}function P(V){return V&&V[l]!=null?V[l]:typeof(V==null?void 0:V.readable)!="boolean"?null:T(V)?!1:h(V)&&V.readable&&!M(V)}function D(V){return typeof(V==null?void 0:V.writable)!="boolean"?null:T(V)?!1:p(V)&&V.writable&&!x(V)}function R(V,G){return v(V)?T(V)?!0:!((G==null?void 0:G.readable)!==!1&&P(V)||(G==null?void 0:G.writable)!==!1&&D(V)):null}function A(V){var G,ie;return v(V)?V.writableErrored?V.writableErrored:(G=(ie=V._writableState)===null||ie===void 0?void 0:ie.errored)!==null&&G!==void 0?G:null:null}function H(V){var G,ie;return v(V)?V.readableErrored?V.readableErrored:(G=(ie=V._readableState)===null||ie===void 0?void 0:ie.errored)!==null&&G!==void 0?G:null:null}function F(V){if(!v(V))return null;if(typeof V.closed=="boolean")return V.closed;let G=V._writableState,ie=V._readableState;return typeof(G==null?void 0:G.closed)=="boolean"||typeof(ie==null?void 0:ie.closed)=="boolean"?(G==null?void 0:G.closed)||(ie==null?void 0:ie.closed):typeof V._closed=="boolean"&&z(V)?V._closed:null}function z(V){return typeof V._closed=="boolean"&&typeof V._defaultKeepAlive=="boolean"&&typeof V._removedConnection=="boolean"&&typeof V._removedContLen=="boolean"}function W(V){return typeof V._sent100=="boolean"&&z(V)}function q(V){var G;return typeof V._consuming=="boolean"&&typeof V._dumped=="boolean"&&((G=V.req)===null||G===void 0?void 0:G.upgradeOrConnect)===void 0}function Z(V){if(!v(V))return null;let G=V._writableState,ie=V._readableState,ce=G||ie;return!ce&&W(V)||!!(ce&&ce.autoDestroy&&ce.emitClose&&ce.closed===!1)}function N(V){var G;return!!(V&&((G=V[c])!==null&&G!==void 0?G:V.readableDidRead||V.readableAborted))}function B(V){var G,ie,ce,fe,ee,ne,ue,ye,me,pe;return!!(V&&((G=(ie=(ce=(fe=(ee=(ne=V[s])!==null&&ne!==void 0?ne:V.readableErrored)!==null&&ee!==void 0?ee:V.writableErrored)!==null&&fe!==void 0?fe:(ue=V._readableState)===null||ue===void 0?void 0:ue.errorEmitted)!==null&&ce!==void 0?ce:(ye=V._writableState)===null||ye===void 0?void 0:ye.errorEmitted)!==null&&ie!==void 0?ie:(me=V._readableState)===null||me===void 0?void 0:me.errored)!==null&&G!==void 0?G:!((pe=V._writableState)===null||pe===void 0)&&pe.errored))}t.exports={kDestroyed:a,isDisturbed:N,kIsDisturbed:c,isErrored:B,kIsErrored:s,isReadable:P,kIsReadable:l,kIsClosedPromise:u,kControllerErrorFunction:d,isClosed:F,isDestroyed:T,isDuplexNodeStream:m,isFinished:R,isIterable:_,isReadableNodeStream:h,isReadableStream:y,isReadableEnded:k,isReadableFinished:M,isReadableErrored:H,isNodeStream:v,isWebStream:C,isWritable:D,isWritableNodeStream:p,isWritableStream:S,isWritableEnded:x,isWritableFinished:E,isWritableErrored:A,isServerRequest:q,isServerResponse:W,willEmitClose:Z,isTransformStream:b}}),hg=Tn((e,t)=>{pn(),gn(),mn();var n=Hv(),{AbortError:r,codes:i}=Yl(),{ERR_INVALID_ARG_TYPE:o,ERR_STREAM_PREMATURE_CLOSE:a}=i,{kEmptyObject:s,once:l}=sp(),{validateAbortSignal:c,validateFunction:u,validateObject:d,validateBoolean:h}=A6(),{Promise:p,PromisePrototypeThen:m}=Va(),{isClosed:v,isReadable:y,isReadableNodeStream:S,isReadableStream:b,isReadableFinished:C,isReadableErrored:_,isWritable:T,isWritableNodeStream:x,isWritableStream:E,isWritableFinished:k,isWritableErrored:M,isNodeStream:P,willEmitClose:D,kIsClosedPromise:R}=Cp();function A(q){return q.setHeader&&typeof q.abort=="function"}var H=()=>{};function F(q,Z,N){var B,V;if(arguments.length===2?(N=Z,Z=s):Z==null?Z=s:d(Z,"options"),u(N,"callback"),c(Z.signal,"options.signal"),N=l(N),b(q)||E(q))return z(q,Z,N);if(!P(q))throw new o("stream",["ReadableStream","WritableStream","Stream"],q);let G=(B=Z.readable)!==null&&B!==void 0?B:S(q),ie=(V=Z.writable)!==null&&V!==void 0?V:x(q),ce=q._writableState,fe=q._readableState,ee=()=>{q.writable||ye()},ne=D(q)&&S(q)===G&&x(q)===ie,ue=k(q,!1),ye=()=>{ue=!0,q.destroyed&&(ne=!1),!(ne&&(!q.readable||G))&&(!G||me)&&N.call(q)},me=C(q,!1),pe=()=>{me=!0,q.destroyed&&(ne=!1),!(ne&&(!q.writable||ie))&&(!ie||ue)&&N.call(q)},he=Fe=>{N.call(q,Fe)},_e=v(q),le=()=>{_e=!0;let Fe=M(q)||_(q);if(Fe&&typeof Fe!="boolean")return N.call(q,Fe);if(G&&!me&&S(q,!0)&&!C(q,!1))return N.call(q,new a);if(ie&&!ue&&!k(q,!1))return N.call(q,new a);N.call(q)},xe=()=>{_e=!0;let Fe=M(q)||_(q);if(Fe&&typeof Fe!="boolean")return N.call(q,Fe);N.call(q)},we=()=>{q.req.on("finish",ye)};A(q)?(q.on("complete",ye),ne||q.on("abort",le),q.req?we():q.on("request",we)):ie&&!ce&&(q.on("end",ee),q.on("close",ee)),!ne&&typeof q.aborted=="boolean"&&q.on("aborted",le),q.on("end",pe),q.on("finish",ye),Z.error!==!1&&q.on("error",he),q.on("close",le),_e?n.nextTick(le):ce!=null&&ce.errorEmitted||fe!=null&&fe.errorEmitted?ne||n.nextTick(xe):(!G&&(!ne||y(q))&&(ue||T(q)===!1)||!ie&&(!ne||T(q))&&(me||y(q)===!1)||fe&&q.req&&q.aborted)&&n.nextTick(xe);let De=()=>{N=H,q.removeListener("aborted",le),q.removeListener("complete",ye),q.removeListener("abort",le),q.removeListener("request",we),q.req&&q.req.removeListener("finish",ye),q.removeListener("end",ee),q.removeListener("close",ee),q.removeListener("finish",ye),q.removeListener("end",pe),q.removeListener("error",he),q.removeListener("close",le)};if(Z.signal&&!_e){let Fe=()=>{let Ce=N;De(),Ce.call(q,new r(void 0,{cause:Z.signal.reason}))};if(Z.signal.aborted)n.nextTick(Fe);else{let Ce=N;N=l((...Te)=>{Z.signal.removeEventListener("abort",Fe),Ce.apply(q,Te)}),Z.signal.addEventListener("abort",Fe)}}return De}function z(q,Z,N){let B=!1,V=H;if(Z.signal)if(V=()=>{B=!0,N.call(q,new r(void 0,{cause:Z.signal.reason}))},Z.signal.aborted)n.nextTick(V);else{let ie=N;N=l((...ce)=>{Z.signal.removeEventListener("abort",V),ie.apply(q,ce)}),Z.signal.addEventListener("abort",V)}let G=(...ie)=>{B||n.nextTick(()=>N.apply(q,ie))};return m(q[R].promise,G,G),H}function W(q,Z){var N;let B=!1;return Z===null&&(Z=s),(N=Z)!==null&&N!==void 0&&N.cleanup&&(h(Z.cleanup,"cleanup"),B=Z.cleanup),new p((V,G)=>{let ie=F(q,Z,ce=>{B&&ie(),ce?G(ce):V()})})}t.exports=F,t.exports.finished=W}),NS=Tn((e,t)=>{pn(),gn(),mn();var n=Hv(),{aggregateTwoErrors:r,codes:{ERR_MULTIPLE_CALLBACK:i},AbortError:o}=Yl(),{Symbol:a}=Va(),{kDestroyed:s,isDestroyed:l,isFinished:c,isServerRequest:u}=Cp(),d=a("kDestroy"),h=a("kConstruct");function p(R,A,H){R&&(R.stack,A&&!A.errored&&(A.errored=R),H&&!H.errored&&(H.errored=R))}function m(R,A){let H=this._readableState,F=this._writableState,z=F||H;return F!=null&&F.destroyed||H!=null&&H.destroyed?(typeof A=="function"&&A(),this):(p(R,F,H),F&&(F.destroyed=!0),H&&(H.destroyed=!0),z.constructed?v(this,R,A):this.once(d,function(W){v(this,r(W,R),A)}),this)}function v(R,A,H){let F=!1;function z(W){if(F)return;F=!0;let q=R._readableState,Z=R._writableState;p(W,Z,q),Z&&(Z.closed=!0),q&&(q.closed=!0),typeof H=="function"&&H(W),W?n.nextTick(y,R,W):n.nextTick(S,R)}try{R._destroy(A||null,z)}catch(W){z(W)}}function y(R,A){b(R,A),S(R)}function S(R){let A=R._readableState,H=R._writableState;H&&(H.closeEmitted=!0),A&&(A.closeEmitted=!0),(H!=null&&H.emitClose||A!=null&&A.emitClose)&&R.emit("close")}function b(R,A){let H=R._readableState,F=R._writableState;F!=null&&F.errorEmitted||H!=null&&H.errorEmitted||(F&&(F.errorEmitted=!0),H&&(H.errorEmitted=!0),R.emit("error",A))}function C(){let R=this._readableState,A=this._writableState;R&&(R.constructed=!0,R.closed=!1,R.closeEmitted=!1,R.destroyed=!1,R.errored=null,R.errorEmitted=!1,R.reading=!1,R.ended=R.readable===!1,R.endEmitted=R.readable===!1),A&&(A.constructed=!0,A.destroyed=!1,A.closed=!1,A.closeEmitted=!1,A.errored=null,A.errorEmitted=!1,A.finalCalled=!1,A.prefinished=!1,A.ended=A.writable===!1,A.ending=A.writable===!1,A.finished=A.writable===!1)}function _(R,A,H){let F=R._readableState,z=R._writableState;if(z!=null&&z.destroyed||F!=null&&F.destroyed)return this;F!=null&&F.autoDestroy||z!=null&&z.autoDestroy?R.destroy(A):A&&(A.stack,z&&!z.errored&&(z.errored=A),F&&!F.errored&&(F.errored=A),H?n.nextTick(b,R,A):b(R,A))}function T(R,A){if(typeof R._construct!="function")return;let H=R._readableState,F=R._writableState;H&&(H.constructed=!1),F&&(F.constructed=!1),R.once(h,A),!(R.listenerCount(h)>1)&&n.nextTick(x,R)}function x(R){let A=!1;function H(F){if(A){_(R,F??new i);return}A=!0;let z=R._readableState,W=R._writableState,q=W||z;z&&(z.constructed=!0),W&&(W.constructed=!0),q.destroyed?R.emit(d,F):F?_(R,F,!0):n.nextTick(E,R)}try{R._construct(F=>{n.nextTick(H,F)})}catch(F){n.nextTick(H,F)}}function E(R){R.emit(h)}function k(R){return(R==null?void 0:R.setHeader)&&typeof R.abort=="function"}function M(R){R.emit("close")}function P(R,A){R.emit("error",A),n.nextTick(M,R)}function D(R,A){!R||l(R)||(!A&&!c(R)&&(A=new o),u(R)?(R.socket=null,R.destroy(A)):k(R)?R.abort():k(R.req)?R.req.abort():typeof R.destroy=="function"?R.destroy(A):typeof R.close=="function"?R.close():A?n.nextTick(P,R,A):n.nextTick(M,R),R.destroyed||(R[s]=!0))}t.exports={construct:T,destroyer:D,destroy:m,undestroy:C,errorOrDestroy:_}});function Gi(){Gi.init.call(this)}function h8(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function whe(e){return e._maxListeners===void 0?Gi.defaultMaxListeners:e._maxListeners}function tQ(e,t,n,r){var i,o,a,s;if(h8(n),(o=e._events)===void 0?(o=e._events=Object.create(null),e._eventsCount=0):(o.newListener!==void 0&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),a===void 0)a=o[t]=n,++e._eventsCount;else if(typeof a=="function"?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=whe(e))>0&&a.length>i&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,s=l,console&&console.warn&&console.warn(s)}return e}function WIe(){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 nQ(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=WIe.bind(r);return i.listener=n,r.wrapFn=i,i}function rQ(e,t,n){var r=e._events;if(r===void 0)return[];var i=r[t];return i===void 0?[]:typeof i=="function"?n?[i.listener||i]:[i]:n?function(o){for(var a=new Array(o.length),s=0;s<a.length;++s)a[s]=o[s].listener||o[s];return a}(i):_he(i,i.length)}function iQ(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}function _he(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}var oQ,aQ,Bg,$$,R$,A$,vc,sQ=_s(()=>{pn(),gn(),mn(),Bg=typeof Reflect=="object"?Reflect:null,$$=Bg&&typeof Bg.apply=="function"?Bg.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},aQ=Bg&&typeof Bg.ownKeys=="function"?Bg.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)},R$=Number.isNaN||function(e){return e!=e},oQ=Gi,Gi.EventEmitter=Gi,Gi.prototype._events=void 0,Gi.prototype._eventsCount=0,Gi.prototype._maxListeners=void 0,A$=10,Object.defineProperty(Gi,"defaultMaxListeners",{enumerable:!0,get:function(){return A$},set:function(e){if(typeof e!="number"||e<0||R$(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");A$=e}}),Gi.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},Gi.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||R$(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},Gi.prototype.getMaxListeners=function(){return whe(this)},Gi.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r=e==="error",i=this._events;if(i!==void 0)r=r&&i.error===void 0;else if(!r)return!1;if(r){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var s=i[e];if(s===void 0)return!1;if(typeof s=="function")$$(s,this,t);else{var l=s.length,c=_he(s,l);for(n=0;n<l;++n)$$(c[n],this,t)}return!0},Gi.prototype.addListener=function(e,t){return tQ(this,e,t,!1)},Gi.prototype.on=Gi.prototype.addListener,Gi.prototype.prependListener=function(e,t){return tQ(this,e,t,!0)},Gi.prototype.once=function(e,t){return h8(t),this.on(e,nQ(this,e,t)),this},Gi.prototype.prependOnceListener=function(e,t){return h8(t),this.prependListener(e,nQ(this,e,t)),this},Gi.prototype.removeListener=function(e,t){var n,r,i,o,a;if(h8(t),(r=this._events)===void 0)return this;if((n=r[e])===void 0)return this;if(n===t||n.listener===t)--this._eventsCount==0?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if(typeof n!="function"){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;i===0?n.shift():function(s,l){for(;l+1<s.length;l++)s[l]=s[l+1];s.pop()}(n,i),n.length===1&&(r[e]=n[0]),r.removeListener!==void 0&&this.emit("removeListener",e,a||t)}return this},Gi.prototype.off=Gi.prototype.removeListener,Gi.prototype.removeAllListeners=function(e){var t,n,r;if((n=this._events)===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var i,o=Object.keys(n);for(r=0;r<o.length;++r)(i=o[r])!=="removeListener"&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(t=n[e])=="function")this.removeListener(e,t);else if(t!==void 0)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},Gi.prototype.listeners=function(e){return rQ(this,e,!0)},Gi.prototype.rawListeners=function(e){return rQ(this,e,!1)},Gi.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):iQ.call(e,t)},Gi.prototype.listenerCount=iQ,Gi.prototype.eventNames=function(){return this._eventsCount>0?aQ(this._events):[]},vc=oQ,vc.EventEmitter,vc.defaultMaxListeners,vc.init,vc.listenerCount,vc.EventEmitter,vc.defaultMaxListeners,vc.init,vc.listenerCount}),zv={};Bv(zv,{EventEmitter:()=>Ehe,default:()=>vc,defaultMaxListeners:()=>The,init:()=>khe,listenerCount:()=>Ohe,on:()=>Phe,once:()=>Mhe});var Ehe,The,khe,Ohe,Phe,Mhe,DS=_s(()=>{pn(),gn(),mn(),sQ(),sQ(),vc.once=function(e,t){return new Promise((n,r)=>{function i(...a){o!==void 0&&e.removeListener("error",o),n(a)}let o;t!=="error"&&(o=a=>{e.removeListener(name,i),r(a)},e.once("error",o)),e.once(t,i)})},vc.on=function(e,t){let n=[],r=[],i=null,o=!1,a={async next(){let c=n.shift();if(c)return createIterResult(c,!1);if(i){let u=Promise.reject(i);return i=null,u}return o?createIterResult(void 0,!0):new Promise((u,d)=>r.push({resolve:u,reject:d}))},async return(){e.removeListener(t,s),e.removeListener("error",l),o=!0;for(let c of r)c.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(c){i=c,e.removeListener(t,s),e.removeListener("error",l)},[Symbol.asyncIterator](){return this}};return e.on(t,s),e.on("error",l),a;function s(...c){let u=r.shift();u?u.resolve(createIterResult(c,!1)):n.push(c)}function l(c){o=!0;let u=r.shift();u?u.reject(c):i=c,a.return()}},{EventEmitter:Ehe,defaultMaxListeners:The,init:khe,listenerCount:Ohe,on:Phe,once:Mhe}=vc}),Sz=Tn((e,t)=>{pn(),gn(),mn();var{ArrayIsArray:n,ObjectSetPrototypeOf:r}=Va(),{EventEmitter:i}=(DS(),eo(zv));function o(s){i.call(this,s)}r(o.prototype,i.prototype),r(o,i),o.prototype.pipe=function(s,l){let c=this;function u(S){s.writable&&s.write(S)===!1&&c.pause&&c.pause()}c.on("data",u);function d(){c.readable&&c.resume&&c.resume()}s.on("drain",d),!s._isStdio&&(!l||l.end!==!1)&&(c.on("end",p),c.on("close",m));let h=!1;function p(){h||(h=!0,s.end())}function m(){h||(h=!0,typeof s.destroy=="function"&&s.destroy())}function v(S){y(),i.listenerCount(this,"error")===0&&this.emit("error",S)}a(c,"error",v),a(s,"error",v);function y(){c.removeListener("data",u),s.removeListener("drain",d),c.removeListener("end",p),c.removeListener("close",m),c.removeListener("error",v),s.removeListener("error",v),c.removeListener("end",y),c.removeListener("close",y),s.removeListener("close",y)}return c.on("end",y),c.on("close",y),s.on("close",y),s.emit("pipe",c),s};function a(s,l,c){if(typeof s.prependListener=="function")return s.prependListener(l,c);!s._events||!s._events[l]?s.on(l,c):n(s._events[l])?s._events[l].unshift(c):s._events[l]=[c,s._events[l]]}t.exports={Stream:o,prependListener:a}}),N6=Tn((e,t)=>{pn(),gn(),mn();var{AbortError:n,codes:r}=Yl(),{isNodeStream:i,isWebStream:o,kControllerErrorFunction:a}=Cp(),s=hg(),{ERR_INVALID_ARG_TYPE:l}=r,c=(u,d)=>{if(typeof u!="object"||!("aborted"in u))throw new l(d,"AbortSignal",u)};t.exports.addAbortSignal=function(u,d){if(c(u,"signal"),!i(d)&&!o(d))throw new l("stream",["ReadableStream","WritableStream","Stream"],d);return t.exports.addAbortSignalNoValidate(u,d)},t.exports.addAbortSignalNoValidate=function(u,d){if(typeof u!="object"||!("aborted"in u))return d;let h=i(d)?()=>{d.destroy(new n(void 0,{cause:u.reason}))}:()=>{d[a](new n(void 0,{cause:u.reason}))};return u.aborted?h():(u.addEventListener("abort",h),s(d,()=>u.removeEventListener("abort",h))),d}}),VIe=Tn((e,t)=>{pn(),gn(),mn();var{StringPrototypeSlice:n,SymbolIterator:r,TypedArrayPrototypeSet:i,Uint8Array:o}=Va(),{Buffer:a}=(Ts(),eo(Es)),{inspect:s}=sp();t.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(l){let c={data:l,next:null};this.length>0?this.tail.next=c:this.head=c,this.tail=c,++this.length}unshift(l){let c={data:l,next:this.head};this.length===0&&(this.tail=c),this.head=c,++this.length}shift(){if(this.length===0)return;let l=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,l}clear(){this.head=this.tail=null,this.length=0}join(l){if(this.length===0)return"";let c=this.head,u=""+c.data;for(;(c=c.next)!==null;)u+=l+c.data;return u}concat(l){if(this.length===0)return a.alloc(0);let c=a.allocUnsafe(l>>>0),u=this.head,d=0;for(;u;)i(c,u.data,d),d+=u.data.length,u=u.next;return c}consume(l,c){let u=this.head.data;if(l<u.length){let d=u.slice(0,l);return this.head.data=u.slice(l),d}return l===u.length?this.shift():c?this._getString(l):this._getBuffer(l)}first(){return this.head.data}*[r](){for(let l=this.head;l;l=l.next)yield l.data}_getString(l){let c="",u=this.head,d=0;do{let h=u.data;if(l>h.length)c+=h,l-=h.length;else{l===h.length?(c+=h,++d,u.next?this.head=u.next:this.head=this.tail=null):(c+=n(h,0,l),this.head=u,u.data=n(h,l));break}++d}while((u=u.next)!==null);return this.length-=d,c}_getBuffer(l){let c=a.allocUnsafe(l),u=l,d=this.head,h=0;do{let p=d.data;if(l>p.length)i(c,p,u-l),l-=p.length;else{l===p.length?(i(c,p,u-l),++h,d.next?this.head=d.next:this.head=this.tail=null):(i(c,new o(p.buffer,p.byteOffset,l),u-l),this.head=d,d.data=p.slice(l));break}++h}while((d=d.next)!==null);return this.length-=h,c}[Symbol.for("nodejs.util.inspect.custom")](l,c){return s(this,{...c,depth:0,customInspect:!1})}}}),Cz=Tn((e,t)=>{pn(),gn(),mn();var{MathFloor:n,NumberIsInteger:r}=Va(),{ERR_INVALID_ARG_VALUE:i}=Yl().codes;function o(l,c,u){return l.highWaterMark!=null?l.highWaterMark:c?l[u]:null}function a(l){return l?16:16*1024}function s(l,c,u,d){let h=o(c,d,u);if(h!=null){if(!r(h)||h<0){let p=d?`options.${u}`:"options.highWaterMark";throw new i(p,h)}return n(h)}return a(l.objectMode)}t.exports={getHighWaterMark:s,getDefaultHighWaterMark:a}});function lQ(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return n===-1&&(n=t),[n,n===t?0:4-n%4]}function KIe(e,t,n){for(var r,i,o=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(fd[(i=r)>>18&63]+fd[i>>12&63]+fd[i>>6&63]+fd[63&i]);return o.join("")}function Kh(e){if(e>2147483647)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,Sn.prototype),t}function Sn(e,t,n){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return SL(e)}return Ihe(e,t,n)}function Ihe(e,t,n){if(typeof e=="string")return function(o,a){if(typeof a=="string"&&a!==""||(a="utf8"),!Sn.isEncoding(a))throw new TypeError("Unknown encoding: "+a);var s=0|Rhe(o,a),l=Kh(s),c=l.write(o,a);return c!==s&&(l=l.slice(0,c)),l}(e,t);if(ArrayBuffer.isView(e))return N$(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(qh(e,ArrayBuffer)||e&&qh(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(qh(e,SharedArrayBuffer)||e&&qh(e.buffer,SharedArrayBuffer)))return qIe(e,t,n);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return Sn.from(r,t,n);var i=function(o){if(Sn.isBuffer(o)){var a=0|xz(o.length),s=Kh(a);return s.length===0||o.copy(s,0,0,a),s}if(o.length!==void 0)return typeof o.length!="number"||wz(o.length)?Kh(0):N$(o);if(o.type==="Buffer"&&Array.isArray(o.data))return N$(o.data)}(e);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return Sn.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function $he(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function SL(e){return $he(e),Kh(e<0?0:0|xz(e))}function N$(e){for(var t=e.length<0?0:0|xz(e.length),n=Kh(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function qIe(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;return r=t===void 0&&n===void 0?new Uint8Array(e):n===void 0?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,Sn.prototype),r}function xz(e){if(e>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function Rhe(e,t){if(Sn.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||qh(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&n===0)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return CL(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Lhe(e).length;default:if(i)return r?-1:CL(e).length;t=(""+t).toLowerCase(),i=!0}}function GIe(e,t,n){var r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return r$e(this,t,n);case"utf8":case"utf-8":return Nhe(this,t,n);case"ascii":return t$e(this,t,n);case"latin1":case"binary":return n$e(this,t,n);case"base64":return e$e(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i$e(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Hg(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function cQ(e,t,n,r,i){if(e.length===0)return-1;if(typeof n=="string"?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),wz(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if(typeof t=="string"&&(t=Sn.from(t,r)),Sn.isBuffer(t))return t.length===0?-1:uQ(e,t,n,r,i);if(typeof t=="number")return t&=255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):uQ(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function uQ(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(r!==void 0&&((r=String(r).toLowerCase())==="ucs2"||r==="ucs-2"||r==="utf16le"||r==="utf-16le")){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(p,m){return a===1?p[m]:p.readUInt16BE(m*a)}if(i){var u=-1;for(o=n;o<s;o++)if(c(e,o)===c(t,u===-1?0:o-u)){if(u===-1&&(u=o),o-u+1===l)return u*a}else u!==-1&&(o-=o-u),u=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var d=!0,h=0;h<l;h++)if(c(e,o+h)!==c(t,h)){d=!1;break}if(d)return o}return-1}function YIe(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(wz(s))return a;e[n+a]=s}return a}function XIe(e,t,n,r){return D6(CL(t,e.length-n),e,n,r)}function Ahe(e,t,n,r){return D6(function(i){for(var o=[],a=0;a<i.length;++a)o.push(255&i.charCodeAt(a));return o}(t),e,n,r)}function QIe(e,t,n,r){return Ahe(e,t,n,r)}function ZIe(e,t,n,r){return D6(Lhe(t),e,n,r)}function JIe(e,t,n,r){return D6(function(i,o){for(var a,s,l,c=[],u=0;u<i.length&&!((o-=2)<0);++u)a=i.charCodeAt(u),s=a>>8,l=a%256,c.push(l),c.push(s);return c}(t,e.length-n),e,n,r)}function e$e(e,t,n){return t===0&&n===e.length?Q3.fromByteArray(e):Q3.fromByteArray(e.slice(t,n))}function Nhe(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,l,c=e[i],u=null,d=c>239?4:c>223?3:c>191?2:1;if(i+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:(192&(o=e[i+1]))==128&&(l=(31&c)<<6|63&o)>127&&(u=l);break;case 3:o=e[i+1],a=e[i+2],(192&o)==128&&(192&a)==128&&(l=(15&c)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}u===null?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=d}return function(h){var p=h.length;if(p<=4096)return String.fromCharCode.apply(String,h);for(var m="",v=0;v<p;)m+=String.fromCharCode.apply(String,h.slice(v,v+=4096));return m}(r)}function t$e(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function n$e(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function r$e(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=jhe[e[o]];return i}function i$e(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function Qa(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function _l(e,t,n,r,i,o){if(!Sn.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function Dhe(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function dQ(e,t,n,r,i){return t=+t,n>>>=0,i||Dhe(e,0,n,4),d1.write(e,t,n,r,23,4),n+4}function fQ(e,t,n,r,i){return t=+t,n>>>=0,i||Dhe(e,0,n,8),d1.write(e,t,n,r,52,8),n+8}function CL(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function Lhe(e){return Q3.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(Fhe,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(e))}function D6(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function qh(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function wz(e){return e!=e}function hQ(e,t){for(var n in e)t[n]=e[n]}function zg(e,t,n){return td(e,t,n)}function Ex(e){var t;switch(this.encoding=function(n){var r=function(i){if(!i)return"utf8";for(var o;;)switch(i){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return i;default:if(o)return;i=(""+i).toLowerCase(),o=!0}}(n);if(typeof r!="string"&&(Z3.isEncoding===xL||!xL(n)))throw new Error("Unknown encoding: "+n);return r||n}(e),this.encoding){case"utf16le":this.text=a$e,this.end=s$e,t=4;break;case"utf8":this.fillLast=o$e,t=4;break;case"base64":this.text=l$e,this.end=c$e,t=3;break;default:return this.write=u$e,this.end=d$e,void 0}this.lastNeed=0,this.lastTotal=0,this.lastChar=Z3.allocUnsafe(t)}function D$(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function o$e(e){var t=this.lastTotal-this.lastNeed,n=function(r,i,o){if((192&i[0])!=128)return r.lastNeed=0,"<22>";if(r.lastNeed>1&&i.length>1){if((192&i[1])!=128)return r.lastNeed=1,"<22>";if(r.lastNeed>2&&i.length>2&&(192&i[2])!=128)return r.lastNeed=2,"<22>"}}(this,e);return n!==void 0?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length,void 0)}function a$e(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function s$e(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function l$e(e,t){var n=(e.length-t)%3;return n===0?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function c$e(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function u$e(e){return e.toString(this.encoding)}function d$e(e){return e&&e.length?this.write(e):""}var pQ,fd,ic,mQ,wT,Ug,gQ,vQ,ff,Q3,d1,L$,Fhe,jhe,Tx,kx,td,yQ,Fy,Z3,xL,bQ=_s(()=>{for(pn(),gn(),mn(),pQ={byteLength:function(e){var t=lQ(e),n=t[0],r=t[1];return 3*(n+r)/4-r},toByteArray:function(e){var t,n,r=lQ(e),i=r[0],o=r[1],a=new mQ(function(c,u,d){return 3*(u+d)/4-d}(0,i,o)),s=0,l=o>0?i-4:i;for(n=0;n<l;n+=4)t=ic[e.charCodeAt(n)]<<18|ic[e.charCodeAt(n+1)]<<12|ic[e.charCodeAt(n+2)]<<6|ic[e.charCodeAt(n+3)],a[s++]=t>>16&255,a[s++]=t>>8&255,a[s++]=255&t;return o===2&&(t=ic[e.charCodeAt(n)]<<2|ic[e.charCodeAt(n+1)]>>4,a[s++]=255&t),o===1&&(t=ic[e.charCodeAt(n)]<<10|ic[e.charCodeAt(n+1)]<<4|ic[e.charCodeAt(n+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t),a},fromByteArray:function(e){for(var t,n=e.length,r=n%3,i=[],o=0,a=n-r;o<a;o+=16383)i.push(KIe(e,o,o+16383>a?a:o+16383));return r===1?(t=e[n-1],i.push(fd[t>>2]+fd[t<<4&63]+"==")):r===2&&(t=(e[n-2]<<8)+e[n-1],i.push(fd[t>>10]+fd[t>>4&63]+fd[t<<2&63]+"=")),i.join("")}},fd=[],ic=[],mQ=typeof Uint8Array<"u"?Uint8Array:Array,wT="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ug=0,gQ=wT.length;Ug<gQ;++Ug)fd[Ug]=wT[Ug],ic[wT.charCodeAt(Ug)]=Ug;ic[45]=62,ic[95]=63,vQ={read:function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?i-1:0,h=n?-1:1,p=e[t+d];for(d+=h,o=p&(1<<-u)-1,p>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=h,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=h,u-=8);if(o===0)o=1-c;else{if(o===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=c}return(p?-1:1)*a*Math.pow(2,o-r)},write:function(e,t,n,r,i,o){var a,s,l,c=8*o-i-1,u=(1<<c)-1,d=u>>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,m=r?1:-1,v=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?h/l:h*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=m,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[n+p]=255&a,p+=m,a/=256,c-=8);e[n+p-m]|=128*v}},ff={},Q3=pQ,d1=vQ,L$=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null,ff.Buffer=Sn,ff.SlowBuffer=function(e){return+e!=e&&(e=0),Sn.alloc(+e)},ff.INSPECT_MAX_BYTES=50,ff.kMaxLength=2147483647,Sn.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}(),Sn.TYPED_ARRAY_SUPPORT||typeof console>"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(Sn.prototype,"parent",{enumerable:!0,get:function(){if(Sn.isBuffer(this))return this.buffer}}),Object.defineProperty(Sn.prototype,"offset",{enumerable:!0,get:function(){if(Sn.isBuffer(this))return this.byteOffset}}),Sn.poolSize=8192,Sn.from=function(e,t,n){return Ihe(e,t,n)},Object.setPrototypeOf(Sn.prototype,Uint8Array.prototype),Object.setPrototypeOf(Sn,Uint8Array),Sn.alloc=function(e,t,n){return function(r,i,o){return $he(r),r<=0?Kh(r):i!==void 0?typeof o=="string"?Kh(r).fill(i,o):Kh(r).fill(i):Kh(r)}(e,t,n)},Sn.allocUnsafe=function(e){return SL(e)},Sn.allocUnsafeSlow=function(e){return SL(e)},Sn.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==Sn.prototype},Sn.compare=function(e,t){if(qh(e,Uint8Array)&&(e=Sn.from(e,e.offset,e.byteLength)),qh(t,Uint8Array)&&(t=Sn.from(t,t.offset,t.byteLength)),!Sn.isBuffer(e)||!Sn.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},Sn.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Sn.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return Sn.alloc(0);var n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=Sn.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(qh(o,Uint8Array)&&(o=Sn.from(o)),!Sn.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},Sn.byteLength=Rhe,Sn.prototype._isBuffer=!0,Sn.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)Hg(this,t,t+1);return this},Sn.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)Hg(this,t,t+3),Hg(this,t+1,t+2);return this},Sn.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)Hg(this,t,t+7),Hg(this,t+1,t+6),Hg(this,t+2,t+5),Hg(this,t+3,t+4);return this},Sn.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?Nhe(this,0,e):GIe.apply(this,arguments)},Sn.prototype.toLocaleString=Sn.prototype.toString,Sn.prototype.equals=function(e){if(!Sn.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||Sn.compare(this,e)===0},Sn.prototype.inspect=function(){var e="",t=ff.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},L$&&(Sn.prototype[L$]=Sn.prototype.inspect),Sn.prototype.compare=function(e,t,n,r,i){if(qh(e,Uint8Array)&&(e=Sn.from(e,e.offset,e.byteLength)),!Sn.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),i===void 0&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(r,i),c=e.slice(t,n),u=0;u<s;++u)if(l[u]!==c[u]){o=l[u],a=c[u];break}return o<a?-1:a<o?1:0},Sn.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},Sn.prototype.indexOf=function(e,t,n){return cQ(this,e,t,n,!0)},Sn.prototype.lastIndexOf=function(e,t,n){return cQ(this,e,t,n,!1)},Sn.prototype.write=function(e,t,n,r){if(t===void 0)r="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return YIe(this,e,t,n);case"utf8":case"utf-8":return XIe(this,e,t,n);case"ascii":return Ahe(this,e,t,n);case"latin1":case"binary":return QIe(this,e,t,n);case"base64":return ZIe(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return JIe(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},Sn.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},Sn.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=t===void 0?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,Sn.prototype),r},Sn.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||Qa(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},Sn.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||Qa(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},Sn.prototype.readUInt8=function(e,t){return e>>>=0,t||Qa(e,1,this.length),this[e]},Sn.prototype.readUInt16LE=function(e,t){return e>>>=0,t||Qa(e,2,this.length),this[e]|this[e+1]<<8},Sn.prototype.readUInt16BE=function(e,t){return e>>>=0,t||Qa(e,2,this.length),this[e]<<8|this[e+1]},Sn.prototype.readUInt32LE=function(e,t){return e>>>=0,t||Qa(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Sn.prototype.readUInt32BE=function(e,t){return e>>>=0,t||Qa(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Sn.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||Qa(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},Sn.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||Qa(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},Sn.prototype.readInt8=function(e,t){return e>>>=0,t||Qa(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Sn.prototype.readInt16LE=function(e,t){e>>>=0,t||Qa(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},Sn.prototype.readInt16BE=function(e,t){e>>>=0,t||Qa(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},Sn.prototype.readInt32LE=function(e,t){return e>>>=0,t||Qa(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Sn.prototype.readInt32BE=function(e,t){return e>>>=0,t||Qa(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Sn.prototype.readFloatLE=function(e,t){return e>>>=0,t||Qa(e,4,this.length),d1.read(this,e,!0,23,4)},Sn.prototype.readFloatBE=function(e,t){return e>>>=0,t||Qa(e,4,this.length),d1.read(this,e,!1,23,4)},Sn.prototype.readDoubleLE=function(e,t){return e>>>=0,t||Qa(e,8,this.length),d1.read(this,e,!0,52,8)},Sn.prototype.readDoubleBE=function(e,t){return e>>>=0,t||Qa(e,8,this.length),d1.read(this,e,!1,52,8)},Sn.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||_l(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},Sn.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||_l(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},Sn.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||_l(this,e,t,1,255,0),this[t]=255&e,t+1},Sn.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||_l(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},Sn.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||_l(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},Sn.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||_l(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},Sn.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||_l(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},Sn.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);_l(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&s===0&&this[t+o-1]!==0&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},Sn.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);_l(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&s===0&&this[t+o+1]!==0&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},Sn.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||_l(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},Sn.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||_l(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},Sn.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||_l(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},Sn.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||_l(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},Sn.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||_l(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},Sn.prototype.writeFloatLE=function(e,t,n){return dQ(this,e,t,!0,n)},Sn.prototype.writeFloatBE=function(e,t,n){return dQ(this,e,t,!1,n)},Sn.prototype.writeDoubleLE=function(e,t,n){return fQ(this,e,t,!0,n)},Sn.prototype.writeDoubleBE=function(e,t,n){return fQ(this,e,t,!1,n)},Sn.prototype.copy=function(e,t,n,r){if(!Sn.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||r===0||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;if(this===e&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(t,n,r);else if(this===e&&n<t&&t<r)for(var o=i-1;o>=0;--o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},Sn.prototype.fill=function(e,t,n,r){if(typeof e=="string"){if(typeof t=="string"?(r=t,t=0,n=this.length):typeof n=="string"&&(r=n,n=this.length),r!==void 0&&typeof r!="string")throw new TypeError("encoding must be a string");if(typeof r=="string"&&!Sn.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(e.length===1){var i=e.charCodeAt(0);(r==="utf8"&&i<128||r==="latin1")&&(e=i)}}else typeof e=="number"?e&=255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=n===void 0?this.length:n>>>0,e||(e=0),typeof e=="number")for(o=t;o<n;++o)this[o]=e;else{var a=Sn.isBuffer(e)?e:Sn.from(e,r),s=a.length;if(s===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this},Fhe=/[^+/0-9A-Za-z-_]/g,jhe=function(){for(var e=new Array(256),t=0;t<16;++t)for(var n=16*t,r=0;r<16;++r)e[n+r]="0123456789abcdef"[t]+"0123456789abcdef"[r];return e}(),ff.Buffer,ff.INSPECT_MAX_BYTES,ff.kMaxLength,Tx={},kx=ff,td=kx.Buffer,td.from&&td.alloc&&td.allocUnsafe&&td.allocUnsafeSlow?Tx=kx:(hQ(kx,Tx),Tx.Buffer=zg),zg.prototype=Object.create(td.prototype),hQ(td,zg),zg.from=function(e,t,n){if(typeof e=="number")throw new TypeError("Argument must not be a number");return td(e,t,n)},zg.alloc=function(e,t,n){if(typeof e!="number")throw new TypeError("Argument must be a number");var r=td(e);return t!==void 0?typeof n=="string"?r.fill(t,n):r.fill(t):r.fill(0),r},zg.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return td(e)},zg.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return kx.SlowBuffer(e)},yQ=Tx,Fy={},Z3=yQ.Buffer,xL=Z3.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},Fy.StringDecoder=Ex,Ex.prototype.write=function(e){if(e.length===0)return"";var t,n;if(this.lastNeed){if((t=this.fillLast(e))===void 0)return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},Ex.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"<22>":t},Ex.prototype.text=function(e,t){var n=function(i,o,a){var s=o.length-1;if(s<a)return 0;var l=D$(o[s]);return l>=0?(l>0&&(i.lastNeed=l-1),l):--s<a||l===-2?0:(l=D$(o[s]))>=0?(l>0&&(i.lastNeed=l-2),l):--s<a||l===-2?0:(l=D$(o[s]))>=0?(l>0&&(l===2?l=0:i.lastNeed=l-3),l):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},Ex.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length},Fy.StringDecoder,Fy.StringDecoder}),Bhe={};Bv(Bhe,{StringDecoder:()=>Hhe,default:()=>Fy});var Hhe,f$e=_s(()=>{pn(),gn(),mn(),bQ(),bQ(),Hhe=Fy.StringDecoder}),zhe=Tn((e,t)=>{pn(),gn(),mn();var n=Hv(),{PromisePrototypeThen:r,SymbolAsyncIterator:i,SymbolIterator:o}=Va(),{Buffer:a}=(Ts(),eo(Es)),{ERR_INVALID_ARG_TYPE:s,ERR_STREAM_NULL_VALUES:l}=Yl().codes;function c(u,d,h){let p;if(typeof d=="string"||d instanceof a)return new u({objectMode:!0,...h,read(){this.push(d),this.push(null)}});let m;if(d&&d[i])m=!0,p=d[i]();else if(d&&d[o])m=!1,p=d[o]();else throw new s("iterable",["Iterable"],d);let v=new u({objectMode:!0,highWaterMark:1,...h}),y=!1;v._read=function(){y||(y=!0,b())},v._destroy=function(C,_){r(S(C),()=>n.nextTick(_,C),T=>n.nextTick(_,T||C))};async function S(C){let _=C!=null,T=typeof p.throw=="function";if(_&&T){let{value:x,done:E}=await p.throw(C);if(await x,E)return}if(typeof p.return=="function"){let{value:x}=await p.return();await x}}async function b(){for(;;){try{let{value:C,done:_}=m?await p.next():p.next();if(_)v.push(null);else{let T=C&&typeof C.then=="function"?await C:C;if(T===null)throw y=!1,new l;if(v.push(T))continue;y=!1}}catch(C){v.destroy(C)}break}}return v}t.exports=c}),L6=Tn((e,t)=>{pn(),gn(),mn();var n=Hv(),{ArrayPrototypeIndexOf:r,NumberIsInteger:i,NumberIsNaN:o,NumberParseInt:a,ObjectDefineProperties:s,ObjectKeys:l,ObjectSetPrototypeOf:c,Promise:u,SafeSet:d,SymbolAsyncIterator:h,Symbol:p}=Va();t.exports=V,V.ReadableState=B;var{EventEmitter:m}=(DS(),eo(zv)),{Stream:v,prependListener:y}=Sz(),{Buffer:S}=(Ts(),eo(Es)),{addAbortSignal:b}=N6(),C=hg(),_=sp().debuglog("stream",K=>{_=K}),T=VIe(),x=NS(),{getHighWaterMark:E,getDefaultHighWaterMark:k}=Cz(),{aggregateTwoErrors:M,codes:{ERR_INVALID_ARG_TYPE:P,ERR_METHOD_NOT_IMPLEMENTED:D,ERR_OUT_OF_RANGE:R,ERR_STREAM_PUSH_AFTER_EOF:A,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:H}}=Yl(),{validateObject:F}=A6(),z=p("kPaused"),{StringDecoder:W}=(f$e(),eo(Bhe)),q=zhe();c(V.prototype,v.prototype),c(V,v);var Z=()=>{},{errorOrDestroy:N}=x;function B(K,J,be){typeof be!="boolean"&&(be=J instanceof lp()),this.objectMode=!!(K&&K.objectMode),be&&(this.objectMode=this.objectMode||!!(K&&K.readableObjectMode)),this.highWaterMark=K?E(this,K,"readableHighWaterMark",be):k(!1),this.buffer=new T,this.length=0,this.pipes=[],this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.constructed=!0,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this[z]=null,this.errorEmitted=!1,this.emitClose=!K||K.emitClose!==!1,this.autoDestroy=!K||K.autoDestroy!==!1,this.destroyed=!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this.defaultEncoding=K&&K.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.multiAwaitDrain=!1,this.readingMore=!1,this.dataEmitted=!1,this.decoder=null,this.encoding=null,K&&K.encoding&&(this.decoder=new W(K.encoding),this.encoding=K.encoding)}function V(K){if(!(this instanceof V))return new V(K);let J=this instanceof lp();this._readableState=new B(K,this,J),K&&(typeof K.read=="function"&&(this._read=K.read),typeof K.destroy=="function"&&(this._destroy=K.destroy),typeof K.construct=="function"&&(this._construct=K.construct),K.signal&&!J&&b(K.signal,this)),v.call(this,K),x.construct(this,()=>{this._readableState.needReadable&&me(this,this._readableState)})}V.prototype.destroy=x.destroy,V.prototype._undestroy=x.undestroy,V.prototype._destroy=function(K,J){J(K)},V.prototype[m.captureRejectionSymbol]=function(K){this.destroy(K)},V.prototype.push=function(K,J){return G(this,K,J,!1)},V.prototype.unshift=function(K,J){return G(this,K,J,!0)};function G(K,J,be,Oe){_("readableAddChunk",J);let Se=K._readableState,Ke;if(Se.objectMode||(typeof J=="string"?(be=be||Se.defaultEncoding,Se.encoding!==be&&(Oe&&Se.encoding?J=S.from(J,be).toString(Se.encoding):(J=S.from(J,be),be=""))):J instanceof S?be="":v._isUint8Array(J)?(J=v._uint8ArrayToBuffer(J),be=""):J!=null&&(Ke=new P("chunk",["string","Buffer","Uint8Array"],J))),Ke)N(K,Ke);else if(J===null)Se.reading=!1,ne(K,Se);else if(Se.objectMode||J&&J.length>0)if(Oe)if(Se.endEmitted)N(K,new H);else{if(Se.destroyed||Se.errored)return!1;ie(K,Se,J,!0)}else if(Se.ended)N(K,new A);else{if(Se.destroyed||Se.errored)return!1;Se.reading=!1,Se.decoder&&!be?(J=Se.decoder.write(J),Se.objectMode||J.length!==0?ie(K,Se,J,!1):me(K,Se)):ie(K,Se,J,!1)}else Oe||(Se.reading=!1,me(K,Se));return!Se.ended&&(Se.length<Se.highWaterMark||Se.length===0)}function ie(K,J,be,Oe){J.flowing&&J.length===0&&!J.sync&&K.listenerCount("data")>0?(J.multiAwaitDrain?J.awaitDrainWriters.clear():J.awaitDrainWriters=null,J.dataEmitted=!0,K.emit("data",be)):(J.length+=J.objectMode?1:be.length,Oe?J.buffer.unshift(be):J.buffer.push(be),J.needReadable&&ue(K)),me(K,J)}V.prototype.isPaused=function(){let K=this._readableState;return K[z]===!0||K.flowing===!1},V.prototype.setEncoding=function(K){let J=new W(K);this._readableState.decoder=J,this._readableState.encoding=this._readableState.decoder.encoding;let be=this._readableState.buffer,Oe="";for(let Se of be)Oe+=J.write(Se);return be.clear(),Oe!==""&&be.push(Oe),this._readableState.length=Oe.length,this};var ce=1073741824;function fe(K){if(K>ce)throw new R("size","<= 1GiB",K);return K--,K|=K>>>1,K|=K>>>2,K|=K>>>4,K|=K>>>8,K|=K>>>16,K++,K}function ee(K,J){return K<=0||J.length===0&&J.ended?0:J.objectMode?1:o(K)?J.flowing&&J.length?J.buffer.first().length:J.length:K<=J.length?K:J.ended?J.length:0}V.prototype.read=function(K){_("read",K),K===void 0?K=NaN:i(K)||(K=a(K,10));let J=this._readableState,be=K;if(K>J.highWaterMark&&(J.highWaterMark=fe(K)),K!==0&&(J.emittedReadable=!1),K===0&&J.needReadable&&((J.highWaterMark!==0?J.length>=J.highWaterMark:J.length>0)||J.ended))return _("read: emitReadable",J.length,J.ended),J.length===0&&J.ended?ke(this):ue(this),null;if(K=ee(K,J),K===0&&J.ended)return J.length===0&&ke(this),null;let Oe=J.needReadable;if(_("need readable",Oe),(J.length===0||J.length-K<J.highWaterMark)&&(Oe=!0,_("length less than watermark",Oe)),J.ended||J.reading||J.destroyed||J.errored||!J.constructed)Oe=!1,_("reading, ended or constructing",Oe);else if(Oe){_("do read"),J.reading=!0,J.sync=!0,J.length===0&&(J.needReadable=!0);try{this._read(J.highWaterMark)}catch(Ke){N(this,Ke)}J.sync=!1,J.reading||(K=ee(be,J))}let Se;return K>0?Se=Te(K,J):Se=null,Se===null?(J.needReadable=J.length<=J.highWaterMark,K=0):(J.length-=K,J.multiAwaitDrain?J.awaitDrainWriters.clear():J.awaitDrainWriters=null),J.length===0&&(J.ended||(J.needReadable=!0),be!==K&&J.ended&&ke(this)),Se!==null&&!J.errorEmitted&&!J.closeEmitted&&(J.dataEmitted=!0,this.emit("data",Se)),Se};function ne(K,J){if(_("onEofChunk"),!J.ended){if(J.decoder){let be=J.decoder.end();be&&be.length&&(J.buffer.push(be),J.length+=J.objectMode?1:be.length)}J.ended=!0,J.sync?ue(K):(J.needReadable=!1,J.emittedReadable=!0,ye(K))}}function ue(K){let J=K._readableState;_("emitReadable",J.needReadable,J.emittedReadable),J.needReadable=!1,J.emittedReadable||(_("emitReadable",J.flowing),J.emittedReadable=!0,n.nextTick(ye,K))}function ye(K){let J=K._readableState;_("emitReadable_",J.destroyed,J.length,J.ended),!J.destroyed&&!J.errored&&(J.length||J.ended)&&(K.emit("readable"),J.emittedReadable=!1),J.needReadable=!J.flowing&&!J.ended&&J.length<=J.highWaterMark,De(K)}function me(K,J){!J.readingMore&&J.constructed&&(J.readingMore=!0,n.nextTick(pe,K,J))}function pe(K,J){for(;!J.reading&&!J.ended&&(J.length<J.highWaterMark||J.flowing&&J.length===0);){let be=J.length;if(_("maybeReadMore read 0"),K.read(0),be===J.length)break}J.readingMore=!1}V.prototype._read=function(K){throw new D("_read()")},V.prototype.pipe=function(K,J){let be=this,Oe=this._readableState;Oe.pipes.length===1&&(Oe.multiAwaitDrain||(Oe.multiAwaitDrain=!0,Oe.awaitDrainWriters=new d(Oe.awaitDrainWriters?[Oe.awaitDrainWriters]:[]))),Oe.pipes.push(K),_("pipe count=%d opts=%j",Oe.pipes.length,J);let Se=(!J||J.end!==!1)&&K!==n.stdout&&K!==n.stderr?tt:St;Oe.endEmitted?n.nextTick(Se):be.once("end",Se),K.on("unpipe",Ke);function Ke(Ot,Bt){_("onunpipe"),Ot===be&&Bt&&Bt.hasUnpiped===!1&&(Bt.hasUnpiped=!0,Ye())}function tt(){_("onend"),K.end()}let se,ze=!1;function Ye(){_("cleanup"),K.removeListener("close",rt),K.removeListener("finish",qt),se&&K.removeListener("drain",se),K.removeListener("error",Ze),K.removeListener("unpipe",Ke),be.removeListener("end",tt),be.removeListener("end",St),be.removeListener("data",Je),ze=!0,se&&Oe.awaitDrainWriters&&(!K._writableState||K._writableState.needDrain)&&se()}function Ue(){ze||(Oe.pipes.length===1&&Oe.pipes[0]===K?(_("false write response, pause",0),Oe.awaitDrainWriters=K,Oe.multiAwaitDrain=!1):Oe.pipes.length>1&&Oe.pipes.includes(K)&&(_("false write response, pause",Oe.awaitDrainWriters.size),Oe.awaitDrainWriters.add(K)),be.pause()),se||(se=he(be,K),K.on("drain",se))}be.on("data",Je);function Je(Ot){_("ondata");let Bt=K.write(Ot);_("dest.write",Bt),Bt===!1&&Ue()}function Ze(Ot){if(_("onerror",Ot),St(),K.removeListener("error",Ze),K.listenerCount("error")===0){let Bt=K._writableState||K._readableState;Bt&&!Bt.errorEmitted?N(K,Ot):K.emit("error",Ot)}}y(K,"error",Ze);function rt(){K.removeListener("finish",qt),St()}K.once("close",rt);function qt(){_("onfinish"),K.removeListener("close",rt),St()}K.once("finish",qt);function St(){_("unpipe"),be.unpipe(K)}return K.emit("pipe",be),K.writableNeedDrain===!0?Oe.flowing&&Ue():Oe.flowing||(_("pipe resume"),be.resume()),K};function he(K,J){return function(){let be=K._readableState;be.awaitDrainWriters===J?(_("pipeOnDrain",1),be.awaitDrainWriters=null):be.multiAwaitDrain&&(_("pipeOnDrain",be.awaitDrainWriters.size),be.awaitDrainWriters.delete(J)),(!be.awaitDrainWriters||be.awaitDrainWriters.size===0)&&K.listenerCount("data")&&K.resume()}}V.prototype.unpipe=function(K){let J=this._readableState,be={hasUnpiped:!1};if(J.pipes.length===0)return this;if(!K){let Se=J.pipes;J.pipes=[],this.pause();for(let Ke=0;Ke<Se.length;Ke++)Se[Ke].emit("unpipe",this,{hasUnpiped:!1});return this}let Oe=r(J.pipes,K);return Oe===-1?this:(J.pipes.splice(Oe,1),J.pipes.length===0&&this.pause(),K.emit("unpipe",this,be),this)},V.prototype.on=function(K,J){let be=v.prototype.on.call(this,K,J),Oe=this._readableState;return K==="data"?(Oe.readableListening=this.listenerCount("readable")>0,Oe.flowing!==!1&&this.resume()):K==="readable"&&!Oe.endEmitted&&!Oe.readableListening&&(Oe.readableListening=Oe.needReadable=!0,Oe.flowing=!1,Oe.emittedReadable=!1,_("on readable",Oe.length,Oe.reading),Oe.length?ue(this):Oe.reading||n.nextTick(le,this)),be},V.prototype.addListener=V.prototype.on,V.prototype.removeListener=function(K,J){let be=v.prototype.removeListener.call(this,K,J);return K==="readable"&&n.nextTick(_e,this),be},V.prototype.off=V.prototype.removeListener,V.prototype.removeAllListeners=function(K){let J=v.prototype.removeAllListeners.apply(this,arguments);return(K==="readable"||K===void 0)&&n.nextTick(_e,this),J};function _e(K){let J=K._readableState;J.readableListening=K.listenerCount("readable")>0,J.resumeScheduled&&J[z]===!1?J.flowing=!0:K.listenerCount("data")>0?K.resume():J.readableListening||(J.flowing=null)}function le(K){_("readable nexttick read 0"),K.read(0)}V.prototype.resume=function(){let K=this._readableState;return K.flowing||(_("resume"),K.flowing=!K.readableListening,xe(this,K)),K[z]=!1,this};function xe(K,J){J.resumeScheduled||(J.resumeScheduled=!0,n.nextTick(we,K,J))}function we(K,J){_("resume",J.reading),J.reading||K.read(0),J.resumeScheduled=!1,K.emit("resume"),De(K),J.flowing&&!J.reading&&K.read(0)}V.prototype.pause=function(){return _("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(_("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[z]=!0,this};function De(K){let J=K._readableState;for(_("flow",J.flowing);J.flowing&&K.read()!==null;);}V.prototype.wrap=function(K){let J=!1;K.on("data",Oe=>{!this.push(Oe)&&K.pause&&(J=!0,K.pause())}),K.on("end",()=>{this.push(null)}),K.on("error",Oe=>{N(this,Oe)}),K.on("close",()=>{this.destroy()}),K.on("destroy",()=>{this.destroy()}),this._read=()=>{J&&K.resume&&(J=!1,K.resume())};let be=l(K);for(let Oe=1;Oe<be.length;Oe++){let Se=be[Oe];this[Se]===void 0&&typeof K[Se]=="function"&&(this[Se]=K[Se].bind(K))}return this},V.prototype[h]=function(){return Fe(this)},V.prototype.iterator=function(K){return K!==void 0&&F(K,"options"),Fe(this,K)};function Fe(K,J){typeof K.read!="function"&&(K=V.wrap(K,{objectMode:!0}));let be=Ce(K,J);return be.stream=K,be}async function*Ce(K,J){let be=Z;function Oe(tt){this===K?(be(),be=Z):be=tt}K.on("readable",Oe);let Se,Ke=C(K,{writable:!1},tt=>{Se=tt?M(Se,tt):null,be(),be=Z});try{for(;;){let tt=K.destroyed?null:K.read();if(tt!==null)yield tt;else{if(Se)throw Se;if(Se===null)return;await new u(Oe)}}}catch(tt){throw Se=M(Se,tt),Se}finally{(Se||(J==null?void 0:J.destroyOnReturn)!==!1)&&(Se===void 0||K._readableState.autoDestroy)?x.destroyer(K,null):(K.off("readable",Oe),Ke())}}s(V.prototype,{readable:{__proto__:null,get(){let K=this._readableState;return!!K&&K.readable!==!1&&!K.destroyed&&!K.errorEmitted&&!K.endEmitted},set(K){this._readableState&&(this._readableState.readable=!!K)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(K){this._readableState&&(this._readableState.flowing=K)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(K){this._readableState&&(this._readableState.destroyed=K)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),s(B.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[z]!==!1},set(K){this[z]=!!K}}}),V._fromList=Te;function Te(K,J){if(J.length===0)return null;let be;return J.objectMode?be=J.buffer.shift():!K||K>=J.length?(J.decoder?be=J.buffer.join(""):J.buffer.length===1?be=J.buffer.first():be=J.buffer.concat(J.length),J.buffer.clear()):be=J.buffer.consume(K,J.decoder),be}function ke(K){let J=K._readableState;_("endReadable",J.endEmitted),J.endEmitted||(J.ended=!0,n.nextTick(Pe,J,K))}function Pe(K,J){if(_("endReadableNT",K.endEmitted,K.length),!K.errored&&!K.closeEmitted&&!K.endEmitted&&K.length===0){if(K.endEmitted=!0,J.emit("end"),J.writable&&J.allowHalfOpen===!1)n.nextTick(Ne,J);else if(K.autoDestroy){let be=J._writableState;(!be||be.autoDestroy&&(be.finished||be.writable===!1))&&J.destroy()}}}function Ne(K){K.writable&&!K.writableEnded&&!K.destroyed&&K.end()}V.from=function(K,J){return q(V,K,J)};var We;function Q(){return We===void 0&&(We={}),We}V.fromWeb=function(K,J){return Q().newStreamReadableFromReadableStream(K,J)},V.toWeb=function(K,J){return Q().newReadableStreamFromStreamReadable(K,J)},V.wrap=function(K,J){var be,Oe;return new V({objectMode:(be=(Oe=K.readableObjectMode)!==null&&Oe!==void 0?Oe:K.objectMode)!==null&&be!==void 0?be:!0,...J,destroy(Se,Ke){x.destroyer(K,Se),Ke(Se)}}).wrap(K)}}),Uhe=Tn((e,t)=>{pn(),gn(),mn();var n=Hv(),{ArrayPrototypeSlice:r,Error:i,FunctionPrototypeSymbolHasInstance:o,ObjectDefineProperty:a,ObjectDefineProperties:s,ObjectSetPrototypeOf:l,StringPrototypeToLowerCase:c,Symbol:u,SymbolHasInstance:d}=Va();t.exports=W,W.WritableState=F;var{EventEmitter:h}=(DS(),eo(zv)),p=Sz().Stream,{Buffer:m}=(Ts(),eo(Es)),v=NS(),{addAbortSignal:y}=N6(),{getHighWaterMark:S,getDefaultHighWaterMark:b}=Cz(),{ERR_INVALID_ARG_TYPE:C,ERR_METHOD_NOT_IMPLEMENTED:_,ERR_MULTIPLE_CALLBACK:T,ERR_STREAM_CANNOT_PIPE:x,ERR_STREAM_DESTROYED:E,ERR_STREAM_ALREADY_FINISHED:k,ERR_STREAM_NULL_VALUES:M,ERR_STREAM_WRITE_AFTER_END:P,ERR_UNKNOWN_ENCODING:D}=Yl().codes,{errorOrDestroy:R}=v;l(W.prototype,p.prototype),l(W,p);function A(){}var H=u("kOnFinished");function F(le,xe,we){typeof we!="boolean"&&(we=xe instanceof lp()),this.objectMode=!!(le&&le.objectMode),we&&(this.objectMode=this.objectMode||!!(le&&le.writableObjectMode)),this.highWaterMark=le?S(this,le,"writableHighWaterMark",we):b(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let De=!!(le&&le.decodeStrings===!1);this.decodeStrings=!De,this.defaultEncoding=le&&le.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=V.bind(void 0,xe),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,z(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!le||le.emitClose!==!1,this.autoDestroy=!le||le.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[H]=[]}function z(le){le.buffered=[],le.bufferedIndex=0,le.allBuffers=!0,le.allNoop=!0}F.prototype.getBuffer=function(){return r(this.buffered,this.bufferedIndex)},a(F.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function W(le){let xe=this instanceof lp();if(!xe&&!o(W,this))return new W(le);this._writableState=new F(le,this,xe),le&&(typeof le.write=="function"&&(this._write=le.write),typeof le.writev=="function"&&(this._writev=le.writev),typeof le.destroy=="function"&&(this._destroy=le.destroy),typeof le.final=="function"&&(this._final=le.final),typeof le.construct=="function"&&(this._construct=le.construct),le.signal&&y(le.signal,this)),p.call(this,le),v.construct(this,()=>{let we=this._writableState;we.writing||fe(this,we),ye(this,we)})}a(W,d,{__proto__:null,value:function(le){return o(this,le)?!0:this!==W?!1:le&&le._writableState instanceof F}}),W.prototype.pipe=function(){R(this,new x)};function q(le,xe,we,De){let Fe=le._writableState;if(typeof we=="function")De=we,we=Fe.defaultEncoding;else{if(!we)we=Fe.defaultEncoding;else if(we!=="buffer"&&!m.isEncoding(we))throw new D(we);typeof De!="function"&&(De=A)}if(xe===null)throw new M;if(!Fe.objectMode)if(typeof xe=="string")Fe.decodeStrings!==!1&&(xe=m.from(xe,we),we="buffer");else if(xe instanceof m)we="buffer";else if(p._isUint8Array(xe))xe=p._uint8ArrayToBuffer(xe),we="buffer";else throw new C("chunk",["string","Buffer","Uint8Array"],xe);let Ce;return Fe.ending?Ce=new P:Fe.destroyed&&(Ce=new E("write")),Ce?(n.nextTick(De,Ce),R(le,Ce,!0),Ce):(Fe.pendingcb++,Z(le,Fe,xe,we,De))}W.prototype.write=function(le,xe,we){return q(this,le,xe,we)===!0},W.prototype.cork=function(){this._writableState.corked++},W.prototype.uncork=function(){let le=this._writableState;le.corked&&(le.corked--,le.writing||fe(this,le))},W.prototype.setDefaultEncoding=function(le){if(typeof le=="string"&&(le=c(le)),!m.isEncoding(le))throw new D(le);return this._writableState.defaultEncoding=le,this};function Z(le,xe,we,De,Fe){let Ce=xe.objectMode?1:we.length;xe.length+=Ce;let Te=xe.length<xe.highWaterMark;return Te||(xe.needDrain=!0),xe.writing||xe.corked||xe.errored||!xe.constructed?(xe.buffered.push({chunk:we,encoding:De,callback:Fe}),xe.allBuffers&&De!=="buffer"&&(xe.allBuffers=!1),xe.allNoop&&Fe!==A&&(xe.allNoop=!1)):(xe.writelen=Ce,xe.writecb=Fe,xe.writing=!0,xe.sync=!0,le._write(we,De,xe.onwrite),xe.sync=!1),Te&&!xe.errored&&!xe.destroyed}function N(le,xe,we,De,Fe,Ce,Te){xe.writelen=De,xe.writecb=Te,xe.writing=!0,xe.sync=!0,xe.destroyed?xe.onwrite(new E("write")):we?le._writev(Fe,xe.onwrite):le._write(Fe,Ce,xe.onwrite),xe.sync=!1}function B(le,xe,we,De){--xe.pendingcb,De(we),ce(xe),R(le,we)}function V(le,xe){let we=le._writableState,De=we.sync,Fe=we.writecb;if(typeof Fe!="function"){R(le,new T);return}we.writing=!1,we.writecb=null,we.length-=we.writelen,we.writelen=0,xe?(xe.stack,we.errored||(we.errored=xe),le._readableState&&!le._readableState.errored&&(le._readableState.errored=xe),De?n.nextTick(B,le,we,xe,Fe):B(le,we,xe,Fe)):(we.buffered.length>we.bufferedIndex&&fe(le,we),De?we.afterWriteTickInfo!==null&&we.afterWriteTickInfo.cb===Fe?we.afterWriteTickInfo.count++:(we.afterWriteTickInfo={count:1,cb:Fe,stream:le,state:we},n.nextTick(G,we.afterWriteTickInfo)):ie(le,we,1,Fe))}function G({stream:le,state:xe,count:we,cb:De}){return xe.afterWriteTickInfo=null,ie(le,xe,we,De)}function ie(le,xe,we,De){for(!xe.ending&&!le.destroyed&&xe.length===0&&xe.needDrain&&(xe.needDrain=!1,le.emit("drain"));we-- >0;)xe.pendingcb--,De();xe.destroyed&&ce(xe),ye(le,xe)}function ce(le){if(le.writing)return;for(let Fe=le.bufferedIndex;Fe<le.buffered.length;++Fe){var xe;let{chunk:Ce,callback:Te}=le.buffered[Fe],ke=le.objectMode?1:Ce.length;le.length-=ke,Te((xe=le.errored)!==null&&xe!==void 0?xe:new E("write"))}let we=le[H].splice(0);for(let Fe=0;Fe<we.length;Fe++){var De;we[Fe]((De=le.errored)!==null&&De!==void 0?De:new E("end"))}z(le)}function fe(le,xe){if(xe.corked||xe.bufferProcessing||xe.destroyed||!xe.constructed)return;let{buffered:we,bufferedIndex:De,objectMode:Fe}=xe,Ce=we.length-De;if(!Ce)return;let Te=De;if(xe.bufferProcessing=!0,Ce>1&&le._writev){xe.pendingcb-=Ce-1;let ke=xe.allNoop?A:Ne=>{for(let We=Te;We<we.length;++We)we[We].callback(Ne)},Pe=xe.allNoop&&Te===0?we:r(we,Te);Pe.allBuffers=xe.allBuffers,N(le,xe,!0,xe.length,Pe,"",ke),z(xe)}else{do{let{chunk:ke,encoding:Pe,callback:Ne}=we[Te];we[Te++]=null;let We=Fe?1:ke.length;N(le,xe,!1,We,ke,Pe,Ne)}while(Te<we.length&&!xe.writing);Te===we.length?z(xe):Te>256?(we.splice(0,Te),xe.bufferedIndex=0):xe.bufferedIndex=Te}xe.bufferProcessing=!1}W.prototype._write=function(le,xe,we){if(this._writev)this._writev([{chunk:le,encoding:xe}],we);else throw new _("_write()")},W.prototype._writev=null,W.prototype.end=function(le,xe,we){let De=this._writableState;typeof le=="function"?(we=le,le=null,xe=null):typeof xe=="function"&&(we=xe,xe=null);let Fe;if(le!=null){let Ce=q(this,le,xe);Ce instanceof i&&(Fe=Ce)}return De.corked&&(De.corked=1,this.uncork()),Fe||(!De.errored&&!De.ending?(De.ending=!0,ye(this,De,!0),De.ended=!0):De.finished?Fe=new k("end"):De.destroyed&&(Fe=new E("end"))),typeof we=="function"&&(Fe||De.finished?n.nextTick(we,Fe):De[H].push(we)),this};function ee(le){return le.ending&&!le.destroyed&&le.constructed&&le.length===0&&!le.errored&&le.buffered.length===0&&!le.finished&&!le.writing&&!le.errorEmitted&&!le.closeEmitted}function ne(le,xe){let we=!1;function De(Fe){if(we){R(le,Fe??T());return}if(we=!0,xe.pendingcb--,Fe){let Ce=xe[H].splice(0);for(let Te=0;Te<Ce.length;Te++)Ce[Te](Fe);R(le,Fe,xe.sync)}else ee(xe)&&(xe.prefinished=!0,le.emit("prefinish"),xe.pendingcb++,n.nextTick(me,le,xe))}xe.sync=!0,xe.pendingcb++;try{le._final(De)}catch(Fe){De(Fe)}xe.sync=!1}function ue(le,xe){!xe.prefinished&&!xe.finalCalled&&(typeof le._final=="function"&&!xe.destroyed?(xe.finalCalled=!0,ne(le,xe)):(xe.prefinished=!0,le.emit("prefinish")))}function ye(le,xe,we){ee(xe)&&(ue(le,xe),xe.pendingcb===0&&(we?(xe.pendingcb++,n.nextTick((De,Fe)=>{ee(Fe)?me(De,Fe):Fe.pendingcb--},le,xe)):ee(xe)&&(xe.pendingcb++,me(le,xe))))}function me(le,xe){xe.pendingcb--,xe.finished=!0;let we=xe[H].splice(0);for(let De=0;De<we.length;De++)we[De]();if(le.emit("finish"),xe.autoDestroy){let De=le._readableState;(!De||De.autoDestroy&&(De.endEmitted||De.readable===!1))&&le.destroy()}}s(W.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(le){this._writableState&&(this._writableState.destroyed=le)}},writable:{__proto__:null,get(){let le=this._writableState;return!!le&&le.writable!==!1&&!le.destroyed&&!le.errored&&!le.ending&&!le.ended},set(le){this._writableState&&(this._writableState.writable=!!le)}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){let le=this._writableState;return le?!le.destroyed&&!le.ending&&le.needDrain:!1}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});var pe=v.destroy;W.prototype.destroy=function(le,xe){let we=this._writableState;return!we.destroyed&&(we.bufferedIndex<we.buffered.length||we[H].length)&&n.nextTick(ce,we),pe.call(this,le,xe),this},W.prototype._undestroy=v.undestroy,W.prototype._destroy=function(le,xe){xe(le)},W.prototype[h.captureRejectionSymbol]=function(le){this.destroy(le)};var he;function _e(){return he===void 0&&(he={}),he}W.fromWeb=function(le,xe){return _e().newStreamWritableFromWritableStream(le,xe)},W.toWeb=function(le){return _e().newWritableStreamFromStreamWritable(le)}}),h$e=Tn((e,t)=>{pn(),gn(),mn();var n=Hv(),r=(Ts(),eo(Es)),{isReadable:i,isWritable:o,isIterable:a,isNodeStream:s,isReadableNodeStream:l,isWritableNodeStream:c,isDuplexNodeStream:u}=Cp(),d=hg(),{AbortError:h,codes:{ERR_INVALID_ARG_TYPE:p,ERR_INVALID_RETURN_VALUE:m}}=Yl(),{destroyer:v}=NS(),y=lp(),S=L6(),{createDeferredPromise:b}=sp(),C=zhe(),_=globalThis.Blob||r.Blob,T=typeof _<"u"?function(D){return D instanceof _}:function(D){return!1},x=globalThis.AbortController||bz().AbortController,{FunctionPrototypeCall:E}=Va(),k=class extends y{constructor(D){super(D),(D==null?void 0:D.readable)===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),(D==null?void 0:D.writable)===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};t.exports=function D(R,A){if(u(R))return R;if(l(R))return P({readable:R});if(c(R))return P({writable:R});if(s(R))return P({writable:!1,readable:!1});if(typeof R=="function"){let{value:F,write:z,final:W,destroy:q}=M(R);if(a(F))return C(k,F,{objectMode:!0,write:z,final:W,destroy:q});let Z=F==null?void 0:F.then;if(typeof Z=="function"){let N,B=E(Z,F,V=>{if(V!=null)throw new m("nully","body",V)},V=>{v(N,V)});return N=new k({objectMode:!0,readable:!1,write:z,final(V){W(async()=>{try{await B,n.nextTick(V,null)}catch(G){n.nextTick(V,G)}})},destroy:q})}throw new m("Iterable, AsyncIterable or AsyncFunction",A,F)}if(T(R))return D(R.arrayBuffer());if(a(R))return C(k,R,{objectMode:!0,writable:!1});if(typeof(R==null?void 0:R.writable)=="object"||typeof(R==null?void 0:R.readable)=="object"){let F=R!=null&&R.readable?l(R==null?void 0:R.readable)?R==null?void 0:R.readable:D(R.readable):void 0,z=R!=null&&R.writable?c(R==null?void 0:R.writable)?R==null?void 0:R.writable:D(R.writable):void 0;return P({readable:F,writable:z})}let H=R==null?void 0:R.then;if(typeof H=="function"){let F;return E(H,R,z=>{z!=null&&F.push(z),F.push(null)},z=>{v(F,z)}),F=new k({objectMode:!0,writable:!1,read(){}})}throw new p(A,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],R)};function M(D){let{promise:R,resolve:A}=b(),H=new x,F=H.signal;return{value:D(async function*(){for(;;){let z=R;R=null;let{chunk:W,done:q,cb:Z}=await z;if(n.nextTick(Z),q)return;if(F.aborted)throw new h(void 0,{cause:F.reason});({promise:R,resolve:A}=b()),yield W}}(),{signal:F}),write(z,W,q){let Z=A;A=null,Z({chunk:z,done:!1,cb:q})},final(z){let W=A;A=null,W({done:!0,cb:z})},destroy(z,W){H.abort(),W(z)}}}function P(D){let R=D.readable&&typeof D.readable.read!="function"?S.wrap(D.readable):D.readable,A=D.writable,H=!!i(R),F=!!o(A),z,W,q,Z,N;function B(V){let G=Z;Z=null,G?G(V):V&&N.destroy(V)}return N=new k({readableObjectMode:!!(R!=null&&R.readableObjectMode),writableObjectMode:!!(A!=null&&A.writableObjectMode),readable:H,writable:F}),F&&(d(A,V=>{F=!1,V&&v(R,V),B(V)}),N._write=function(V,G,ie){A.write(V,G)?ie():z=ie},N._final=function(V){A.end(),W=V},A.on("drain",function(){if(z){let V=z;z=null,V()}}),A.on("finish",function(){if(W){let V=W;W=null,V()}})),H&&(d(R,V=>{H=!1,V&&v(R,V),B(V)}),R.on("readable",function(){if(q){let V=q;q=null,V()}}),R.on("end",function(){N.push(null)}),N._read=function(){for(;;){let V=R.read();if(V===null){q=N._read;return}if(!N.push(V))return}}),N._destroy=function(V,G){!V&&Z!==null&&(V=new h),q=null,z=null,W=null,Z===null?G(V):(Z=G,v(A,V),v(R,V))},N}}),lp=Tn((e,t)=>{pn(),gn(),mn();var{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:i,ObjectSetPrototypeOf:o}=Va();t.exports=l;var a=L6(),s=Uhe();o(l.prototype,a.prototype),o(l,a);{let h=i(s.prototype);for(let p=0;p<h.length;p++){let m=h[p];l.prototype[m]||(l.prototype[m]=s.prototype[m])}}function l(h){if(!(this instanceof l))return new l(h);a.call(this,h),s.call(this,h),h?(this.allowHalfOpen=h.allowHalfOpen!==!1,h.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),h.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}n(l.prototype,{writable:{__proto__:null,...r(s.prototype,"writable")},writableHighWaterMark:{__proto__:null,...r(s.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...r(s.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...r(s.prototype,"writableBuffer")},writableLength:{__proto__:null,...r(s.prototype,"writableLength")},writableFinished:{__proto__:null,...r(s.prototype,"writableFinished")},writableCorked:{__proto__:null,...r(s.prototype,"writableCorked")},writableEnded:{__proto__:null,...r(s.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...r(s.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(h){this._readableState&&this._writableState&&(this._readableState.destroyed=h,this._writableState.destroyed=h)}}});var c;function u(){return c===void 0&&(c={}),c}l.fromWeb=function(h,p){return u().newStreamDuplexFromReadableWritablePair(h,p)},l.toWeb=function(h){return u().newReadableWritablePairFromDuplex(h)};var d;l.from=function(h){return d||(d=h$e()),d(h,"body")}}),Whe=Tn((e,t)=>{pn(),gn(),mn();var{ObjectSetPrototypeOf:n,Symbol:r}=Va();t.exports=l;var{ERR_METHOD_NOT_IMPLEMENTED:i}=Yl().codes,o=lp(),{getHighWaterMark:a}=Cz();n(l.prototype,o.prototype),n(l,o);var s=r("kCallback");function l(d){if(!(this instanceof l))return new l(d);let h=d?a(this,d,"readableHighWaterMark",!0):null;h===0&&(d={...d,highWaterMark:null,readableHighWaterMark:h,writableHighWaterMark:d.writableHighWaterMark||0}),o.call(this,d),this._readableState.sync=!1,this[s]=null,d&&(typeof d.transform=="function"&&(this._transform=d.transform),typeof d.flush=="function"&&(this._flush=d.flush)),this.on("prefinish",u)}function c(d){typeof this._flush=="function"&&!this.destroyed?this._flush((h,p)=>{if(h){d?d(h):this.destroy(h);return}p!=null&&this.push(p),this.push(null),d&&d()}):(this.push(null),d&&d())}function u(){this._final!==c&&c.call(this)}l.prototype._final=c,l.prototype._transform=function(d,h,p){throw new i("_transform()")},l.prototype._write=function(d,h,p){let m=this._readableState,v=this._writableState,y=m.length;this._transform(d,h,(S,b)=>{if(S){p(S);return}b!=null&&this.push(b),v.ended||y===m.length||m.length<m.highWaterMark?p():this[s]=p})},l.prototype._read=function(){if(this[s]){let d=this[s];this[s]=null,d()}}}),Vhe=Tn((e,t)=>{pn(),gn(),mn();var{ObjectSetPrototypeOf:n}=Va();t.exports=i;var r=Whe();n(i.prototype,r.prototype),n(i,r);function i(o){if(!(this instanceof i))return new i(o);r.call(this,o)}i.prototype._transform=function(o,a,s){s(null,o)}}),_z=Tn((e,t)=>{pn(),gn(),mn();var n=Hv(),{ArrayIsArray:r,Promise:i,SymbolAsyncIterator:o}=Va(),a=hg(),{once:s}=sp(),l=NS(),c=lp(),{aggregateTwoErrors:u,codes:{ERR_INVALID_ARG_TYPE:d,ERR_INVALID_RETURN_VALUE:h,ERR_MISSING_ARGS:p,ERR_STREAM_DESTROYED:m,ERR_STREAM_PREMATURE_CLOSE:v},AbortError:y}=Yl(),{validateFunction:S,validateAbortSignal:b}=A6(),{isIterable:C,isReadable:_,isReadableNodeStream:T,isNodeStream:x,isTransformStream:E,isWebStream:k,isReadableStream:M,isReadableEnded:P}=Cp(),D=globalThis.AbortController||bz().AbortController,R,A;function H(G,ie,ce){let fe=!1;G.on("close",()=>{fe=!0});let ee=a(G,{readable:ie,writable:ce},ne=>{fe=!ne});return{destroy:ne=>{fe||(fe=!0,l.destroyer(G,ne||new m("pipe")))},cleanup:ee}}function F(G){return S(G[G.length-1],"streams[stream.length - 1]"),G.pop()}function z(G){if(C(G))return G;if(T(G))return W(G);throw new d("val",["Readable","Iterable","AsyncIterable"],G)}async function*W(G){A||(A=L6()),yield*A.prototype[o].call(G)}async function q(G,ie,ce,{end:fe}){let ee,ne=null,ue=pe=>{if(pe&&(ee=pe),ne){let he=ne;ne=null,he()}},ye=()=>new i((pe,he)=>{ee?he(ee):ne=()=>{ee?he(ee):pe()}});ie.on("drain",ue);let me=a(ie,{readable:!1},ue);try{ie.writableNeedDrain&&await ye();for await(let pe of G)ie.write(pe)||await ye();fe&&ie.end(),await ye(),ce()}catch(pe){ce(ee!==pe?u(ee,pe):pe)}finally{me(),ie.off("drain",ue)}}async function Z(G,ie,ce,{end:fe}){E(ie)&&(ie=ie.writable);let ee=ie.getWriter();try{for await(let ne of G)await ee.ready,ee.write(ne).catch(()=>{});await ee.ready,fe&&await ee.close(),ce()}catch(ne){try{await ee.abort(ne),ce(ne)}catch(ue){ce(ue)}}}function N(...G){return B(G,s(F(G)))}function B(G,ie,ce){if(G.length===1&&r(G[0])&&(G=G[0]),G.length<2)throw new p("streams");let fe=new D,ee=fe.signal,ne=ce==null?void 0:ce.signal,ue=[];b(ne,"options.signal");function ye(){xe(new y)}ne==null||ne.addEventListener("abort",ye);let me,pe,he=[],_e=0;function le(Ce){xe(Ce,--_e===0)}function xe(Ce,Te){if(Ce&&(!me||me.code==="ERR_STREAM_PREMATURE_CLOSE")&&(me=Ce),!(!me&&!Te)){for(;he.length;)he.shift()(me);ne==null||ne.removeEventListener("abort",ye),fe.abort(),Te&&(me||ue.forEach(ke=>ke()),n.nextTick(ie,me,pe))}}let we;for(let Ce=0;Ce<G.length;Ce++){let Te=G[Ce],ke=Ce<G.length-1,Pe=Ce>0,Ne=ke||(ce==null?void 0:ce.end)!==!1,We=Ce===G.length-1;if(x(Te)){let Q=function(K){K&&K.name!=="AbortError"&&K.code!=="ERR_STREAM_PREMATURE_CLOSE"&&le(K)};if(Ne){let{destroy:K,cleanup:J}=H(Te,ke,Pe);he.push(K),_(Te)&&We&&ue.push(J)}Te.on("error",Q),_(Te)&&We&&ue.push(()=>{Te.removeListener("error",Q)})}if(Ce===0)if(typeof Te=="function"){if(we=Te({signal:ee}),!C(we))throw new h("Iterable, AsyncIterable or Stream","source",we)}else C(Te)||T(Te)||E(Te)?we=Te:we=c.from(Te);else if(typeof Te=="function"){if(E(we)){var De;we=z((De=we)===null||De===void 0?void 0:De.readable)}else we=z(we);if(we=Te(we,{signal:ee}),ke){if(!C(we,!0))throw new h("AsyncIterable",`transform[${Ce-1}]`,we)}else{var Fe;R||(R=Vhe());let Q=new R({objectMode:!0}),K=(Fe=we)===null||Fe===void 0?void 0:Fe.then;if(typeof K=="function")_e++,K.call(we,Oe=>{pe=Oe,Oe!=null&&Q.write(Oe),Ne&&Q.end(),n.nextTick(le)},Oe=>{Q.destroy(Oe),n.nextTick(le,Oe)});else if(C(we,!0))_e++,q(we,Q,le,{end:Ne});else if(M(we)||E(we)){let Oe=we.readable||we;_e++,q(Oe,Q,le,{end:Ne})}else throw new h("AsyncIterable or Promise","destination",we);we=Q;let{destroy:J,cleanup:be}=H(we,!1,!0);he.push(J),We&&ue.push(be)}}else if(x(Te)){if(T(we)){_e+=2;let Q=V(we,Te,le,{end:Ne});_(Te)&&We&&ue.push(Q)}else if(E(we)||M(we)){let Q=we.readable||we;_e++,q(Q,Te,le,{end:Ne})}else if(C(we))_e++,q(we,Te,le,{end:Ne});else throw new d("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],we);we=Te}else if(k(Te)){if(T(we))_e++,Z(z(we),Te,le,{end:Ne});else if(M(we)||C(we))_e++,Z(we,Te,le,{end:Ne});else if(E(we))_e++,Z(we.readable,Te,le,{end:Ne});else throw new d("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],we);we=Te}else we=c.from(Te)}return(ee!=null&&ee.aborted||ne!=null&&ne.aborted)&&n.nextTick(ye),we}function V(G,ie,ce,{end:fe}){let ee=!1;if(ie.on("close",()=>{ee||ce(new v)}),G.pipe(ie,{end:!1}),fe){let ne=function(){ee=!0,ie.end()};P(G)?n.nextTick(ne):G.once("end",ne)}else ce();return a(G,{readable:!0,writable:!1},ne=>{let ue=G._readableState;ne&&ne.code==="ERR_STREAM_PREMATURE_CLOSE"&&ue&&ue.ended&&!ue.errored&&!ue.errorEmitted?G.once("end",ce).once("error",ce):ce(ne)}),a(ie,{readable:!1,writable:!0},ce)}t.exports={pipelineImpl:B,pipeline:N}}),Khe=Tn((e,t)=>{pn(),gn(),mn();var{pipeline:n}=_z(),r=lp(),{destroyer:i}=NS(),{isNodeStream:o,isReadable:a,isWritable:s,isWebStream:l,isTransformStream:c,isWritableStream:u,isReadableStream:d}=Cp(),{AbortError:h,codes:{ERR_INVALID_ARG_VALUE:p,ERR_MISSING_ARGS:m}}=Yl(),v=hg();t.exports=function(...y){if(y.length===0)throw new m("streams");if(y.length===1)return r.from(y[0]);let S=[...y];if(typeof y[0]=="function"&&(y[0]=r.from(y[0])),typeof y[y.length-1]=="function"){let R=y.length-1;y[R]=r.from(y[R])}for(let R=0;R<y.length;++R)if(!(!o(y[R])&&!l(y[R]))){if(R<y.length-1&&!(a(y[R])||d(y[R])||c(y[R])))throw new p(`streams[${R}]`,S[R],"must be readable");if(R>0&&!(s(y[R])||u(y[R])||c(y[R])))throw new p(`streams[${R}]`,S[R],"must be writable")}let b,C,_,T,x;function E(R){let A=T;T=null,A?A(R):R?x.destroy(R):!D&&!P&&x.destroy()}let k=y[0],M=n(y,E),P=!!(s(k)||u(k)||c(k)),D=!!(a(M)||d(M)||c(M));if(x=new r({writableObjectMode:!!(k!=null&&k.writableObjectMode),readableObjectMode:!!(M!=null&&M.writableObjectMode),writable:P,readable:D}),P){if(o(k))x._write=function(A,H,F){k.write(A,H)?F():b=F},x._final=function(A){k.end(),C=A},k.on("drain",function(){if(b){let A=b;b=null,A()}});else if(l(k)){let A=(c(k)?k.writable:k).getWriter();x._write=async function(H,F,z){try{await A.ready,A.write(H).catch(()=>{}),z()}catch(W){z(W)}},x._final=async function(H){try{await A.ready,A.close().catch(()=>{}),C=H}catch(F){H(F)}}}let R=c(M)?M.readable:M;v(R,()=>{if(C){let A=C;C=null,A()}})}if(D){if(o(M))M.on("readable",function(){if(_){let R=_;_=null,R()}}),M.on("end",function(){x.push(null)}),x._read=function(){for(;;){let R=M.read();if(R===null){_=x._read;return}if(!x.push(R))return}};else if(l(M)){let R=(c(M)?M.readable:M).getReader();x._read=async function(){for(;;)try{let{value:A,done:H}=await R.read();if(!x.push(A))return;if(H){x.push(null);return}}catch{return}}}}return x._destroy=function(R,A){!R&&T!==null&&(R=new h),_=null,b=null,C=null,T===null?A(R):(T=A,o(M)&&i(M,R))},x}}),p$e=Tn((e,t)=>{pn(),gn(),mn();var n=globalThis.AbortController||bz().AbortController,{codes:{ERR_INVALID_ARG_VALUE:r,ERR_INVALID_ARG_TYPE:i,ERR_MISSING_ARGS:o,ERR_OUT_OF_RANGE:a},AbortError:s}=Yl(),{validateAbortSignal:l,validateInteger:c,validateObject:u}=A6(),d=Va().Symbol("kWeak"),{finished:h}=hg(),p=Khe(),{addAbortSignalNoValidate:m}=N6(),{isWritable:v,isNodeStream:y}=Cp(),{ArrayPrototypePush:S,MathFloor:b,Number:C,NumberIsNaN:_,Promise:T,PromiseReject:x,PromisePrototypeThen:E,Symbol:k}=Va(),M=k("kEmpty"),P=k("kEof");function D(fe,ee){if(ee!=null&&u(ee,"options"),(ee==null?void 0:ee.signal)!=null&&l(ee.signal,"options.signal"),y(fe)&&!v(fe))throw new r("stream",fe,"must be writable");let ne=p(this,fe);return ee!=null&&ee.signal&&m(ee.signal,ne),ne}function R(fe,ee){if(typeof fe!="function")throw new i("fn",["Function","AsyncFunction"],fe);ee!=null&&u(ee,"options"),(ee==null?void 0:ee.signal)!=null&&l(ee.signal,"options.signal");let ne=1;return(ee==null?void 0:ee.concurrency)!=null&&(ne=b(ee.concurrency)),c(ne,"concurrency",1),(async function*(){var ue,ye;let me=new n,pe=this,he=[],_e=me.signal,le={signal:_e},xe=()=>me.abort();ee!=null&&(ue=ee.signal)!==null&&ue!==void 0&&ue.aborted&&xe(),ee==null||(ye=ee.signal)===null||ye===void 0||ye.addEventListener("abort",xe);let we,De,Fe=!1;function Ce(){Fe=!0}async function Te(){try{for await(let Ne of pe){var ke;if(Fe)return;if(_e.aborted)throw new s;try{Ne=fe(Ne,le)}catch(We){Ne=x(We)}Ne!==M&&(typeof((ke=Ne)===null||ke===void 0?void 0:ke.catch)=="function"&&Ne.catch(Ce),he.push(Ne),we&&(we(),we=null),!Fe&&he.length&&he.length>=ne&&await new T(We=>{De=We}))}he.push(P)}catch(Ne){let We=x(Ne);E(We,void 0,Ce),he.push(We)}finally{var Pe;Fe=!0,we&&(we(),we=null),ee==null||(Pe=ee.signal)===null||Pe===void 0||Pe.removeEventListener("abort",xe)}}Te();try{for(;;){for(;he.length>0;){let ke=await he[0];if(ke===P)return;if(_e.aborted)throw new s;ke!==M&&(yield ke),he.shift(),De&&(De(),De=null)}await new T(ke=>{we=ke})}}finally{me.abort(),Fe=!0,De&&(De(),De=null)}}).call(this)}function A(fe=void 0){return fe!=null&&u(fe,"options"),(fe==null?void 0:fe.signal)!=null&&l(fe.signal,"options.signal"),(async function*(){let ee=0;for await(let ue of this){var ne;if(fe!=null&&(ne=fe.signal)!==null&&ne!==void 0&&ne.aborted)throw new s({cause:fe.signal.reason});yield[ee++,ue]}}).call(this)}async function H(fe,ee=void 0){for await(let ne of q.call(this,fe,ee))return!0;return!1}async function F(fe,ee=void 0){if(typeof fe!="function")throw new i("fn",["Function","AsyncFunction"],fe);return!await H.call(this,async(...ne)=>!await fe(...ne),ee)}async function z(fe,ee){for await(let ne of q.call(this,fe,ee))return ne}async function W(fe,ee){if(typeof fe!="function")throw new i("fn",["Function","AsyncFunction"],fe);async function ne(ue,ye){return await fe(ue,ye),M}for await(let ue of R.call(this,ne,ee));}function q(fe,ee){if(typeof fe!="function")throw new i("fn",["Function","AsyncFunction"],fe);async function ne(ue,ye){return await fe(ue,ye)?ue:M}return R.call(this,ne,ee)}var Z=class extends o{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function N(fe,ee,ne){var ue;if(typeof fe!="function")throw new i("reducer",["Function","AsyncFunction"],fe);ne!=null&&u(ne,"options"),(ne==null?void 0:ne.signal)!=null&&l(ne.signal,"options.signal");let ye=arguments.length>1;if(ne!=null&&(ue=ne.signal)!==null&&ue!==void 0&&ue.aborted){let le=new s(void 0,{cause:ne.signal.reason});throw this.once("error",()=>{}),await h(this.destroy(le)),le}let me=new n,pe=me.signal;if(ne!=null&&ne.signal){let le={once:!0,[d]:this};ne.signal.addEventListener("abort",()=>me.abort(),le)}let he=!1;try{for await(let le of this){var _e;if(he=!0,ne!=null&&(_e=ne.signal)!==null&&_e!==void 0&&_e.aborted)throw new s;ye?ee=await fe(ee,le,{signal:pe}):(ee=le,ye=!0)}if(!he&&!ye)throw new Z}finally{me.abort()}return ee}async function B(fe){fe!=null&&u(fe,"options"),(fe==null?void 0:fe.signal)!=null&&l(fe.signal,"options.signal");let ee=[];for await(let ue of this){var ne;if(fe!=null&&(ne=fe.signal)!==null&&ne!==void 0&&ne.aborted)throw new s(void 0,{cause:fe.signal.reason});S(ee,ue)}return ee}function V(fe,ee){let ne=R.call(this,fe,ee);return(async function*(){for await(let ue of ne)yield*ue}).call(this)}function G(fe){if(fe=C(fe),_(fe))return 0;if(fe<0)throw new a("number",">= 0",fe);return fe}function ie(fe,ee=void 0){return ee!=null&&u(ee,"options"),(ee==null?void 0:ee.signal)!=null&&l(ee.signal,"options.signal"),fe=G(fe),(async function*(){var ne;if(ee!=null&&(ne=ee.signal)!==null&&ne!==void 0&&ne.aborted)throw new s;for await(let ye of this){var ue;if(ee!=null&&(ue=ee.signal)!==null&&ue!==void 0&&ue.aborted)throw new s;fe--<=0&&(yield ye)}}).call(this)}function ce(fe,ee=void 0){return ee!=null&&u(ee,"options"),(ee==null?void 0:ee.signal)!=null&&l(ee.signal,"options.signal"),fe=G(fe),(async function*(){var ne;if(ee!=null&&(ne=ee.signal)!==null&&ne!==void 0&&ne.aborted)throw new s;for await(let ye of this){var ue;if(ee!=null&&(ue=ee.signal)!==null&&ue!==void 0&&ue.aborted)throw new s;if(fe-- >0)yield ye;else return}}).call(this)}t.exports.streamReturningOperators={asIndexedPairs:A,drop:ie,filter:q,flatMap:V,map:R,take:ce,compose:D},t.exports.promiseReturningOperators={every:F,forEach:W,reduce:N,toArray:B,some:H,find:z}}),qhe=Tn((e,t)=>{pn(),gn(),mn();var{ArrayPrototypePop:n,Promise:r}=Va(),{isIterable:i,isNodeStream:o,isWebStream:a}=Cp(),{pipelineImpl:s}=_z(),{finished:l}=hg();Ghe();function c(...u){return new r((d,h)=>{let p,m,v=u[u.length-1];if(v&&typeof v=="object"&&!o(v)&&!i(v)&&!a(v)){let y=n(u);p=y.signal,m=y.end}s(u,(y,S)=>{y?h(y):d(S)},{signal:p,end:m})})}t.exports={finished:l,pipeline:c}}),Ghe=Tn((e,t)=>{pn(),gn(),mn();var{Buffer:n}=(Ts(),eo(Es)),{ObjectDefineProperty:r,ObjectKeys:i,ReflectApply:o}=Va(),{promisify:{custom:a}}=sp(),{streamReturningOperators:s,promiseReturningOperators:l}=p$e(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:c}}=Yl(),u=Khe(),{pipeline:d}=_z(),{destroyer:h}=NS(),p=hg(),m=qhe(),v=Cp(),y=t.exports=Sz().Stream;y.isDisturbed=v.isDisturbed,y.isErrored=v.isErrored,y.isReadable=v.isReadable,y.Readable=L6();for(let b of i(s)){let C=function(...T){if(new.target)throw c();return y.Readable.from(o(_,this,T))},_=s[b];r(C,"name",{__proto__:null,value:_.name}),r(C,"length",{__proto__:null,value:_.length}),r(y.Readable.prototype,b,{__proto__:null,value:C,enumerable:!1,configurable:!0,writable:!0})}for(let b of i(l)){let C=function(...T){if(new.target)throw c();return o(_,this,T)},_=l[b];r(C,"name",{__proto__:null,value:_.name}),r(C,"length",{__proto__:null,value:_.length}),r(y.Readable.prototype,b,{__proto__:null,value:C,enumerable:!1,configurable:!0,writable:!0})}y.Writable=Uhe(),y.Duplex=lp(),y.Transform=Whe(),y.PassThrough=Vhe(),y.pipeline=d;var{addAbortSignal:S}=N6();y.addAbortSignal=S,y.finished=p,y.destroy=h,y.compose=u,r(y,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return m}}),r(d,a,{__proto__:null,enumerable:!0,get(){return m.pipeline}}),r(p,a,{__proto__:null,enumerable:!0,get(){return m.finished}}),y.Stream=y,y._isUint8Array=function(b){return b instanceof Uint8Array},y._uint8ArrayToBuffer=function(b){return n.from(b.buffer,b.byteOffset,b.byteLength)}}),Uv=Tn((e,t)=>{pn(),gn(),mn();var n=Ghe(),r=qhe(),i=n.Readable.destroy;t.exports=n.Readable,t.exports._uint8ArrayToBuffer=n._uint8ArrayToBuffer,t.exports._isUint8Array=n._isUint8Array,t.exports.isDisturbed=n.isDisturbed,t.exports.isErrored=n.isErrored,t.exports.isReadable=n.isReadable,t.exports.Readable=n.Readable,t.exports.Writable=n.Writable,t.exports.Duplex=n.Duplex,t.exports.Transform=n.Transform,t.exports.PassThrough=n.PassThrough,t.exports.addAbortSignal=n.addAbortSignal,t.exports.finished=n.finished,t.exports.destroy=n.destroy,t.exports.destroy=i,t.exports.pipeline=n.pipeline,t.exports.compose=n.compose,Object.defineProperty(n,"promises",{configurable:!0,enumerable:!0,get(){return r}}),t.exports.Stream=n.Stream,t.exports.default=t.exports}),m$e=Tn((e,t)=>{pn(),gn(),mn(),typeof Object.create=="function"?t.exports=function(n,r){r&&(n.super_=r,n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(n,r){if(r){n.super_=r;var i=function(){};i.prototype=r.prototype,n.prototype=new i,n.prototype.constructor=n}}}),g$e=Tn((e,t)=>{pn(),gn(),mn();var{Buffer:n}=(Ts(),eo(Es)),r=Symbol.for("BufferList");function i(o){if(!(this instanceof i))return new i(o);i._init.call(this,o)}i._init=function(o){Object.defineProperty(this,r,{value:!0}),this._bufs=[],this.length=0,o&&this.append(o)},i.prototype._new=function(o){return new i(o)},i.prototype._offset=function(o){if(o===0)return[0,0];let a=0;for(let s=0;s<this._bufs.length;s++){let l=a+this._bufs[s].length;if(o<l||s===this._bufs.length-1)return[s,o-a];a=l}},i.prototype._reverseOffset=function(o){let a=o[0],s=o[1];for(let l=0;l<a;l++)s+=this._bufs[l].length;return s},i.prototype.get=function(o){if(o>this.length||o<0)return;let a=this._offset(o);return this._bufs[a[0]][a[1]]},i.prototype.slice=function(o,a){return typeof o=="number"&&o<0&&(o+=this.length),typeof a=="number"&&a<0&&(a+=this.length),this.copy(null,0,o,a)},i.prototype.copy=function(o,a,s,l){if((typeof s!="number"||s<0)&&(s=0),(typeof l!="number"||l>this.length)&&(l=this.length),s>=this.length||l<=0)return o||n.alloc(0);let c=!!o,u=this._offset(s),d=l-s,h=d,p=c&&a||0,m=u[1];if(s===0&&l===this.length){if(!c)return this._bufs.length===1?this._bufs[0]:n.concat(this._bufs,this.length);for(let v=0;v<this._bufs.length;v++)this._bufs[v].copy(o,p),p+=this._bufs[v].length;return o}if(h<=this._bufs[u[0]].length-m)return c?this._bufs[u[0]].copy(o,a,m,m+h):this._bufs[u[0]].slice(m,m+h);c||(o=n.allocUnsafe(d));for(let v=u[0];v<this._bufs.length;v++){let y=this._bufs[v].length-m;if(h>y)this._bufs[v].copy(o,p,m),p+=y;else{this._bufs[v].copy(o,p,m,m+h),p+=y;break}h-=y,m&&(m=0)}return o.length>p?o.slice(0,p):o},i.prototype.shallowSlice=function(o,a){if(o=o||0,a=typeof a!="number"?this.length:a,o<0&&(o+=this.length),a<0&&(a+=this.length),o===a)return this._new();let s=this._offset(o),l=this._offset(a),c=this._bufs.slice(s[0],l[0]+1);return l[1]===0?c.pop():c[c.length-1]=c[c.length-1].slice(0,l[1]),s[1]!==0&&(c[0]=c[0].slice(s[1])),this._new(c)},i.prototype.toString=function(o,a,s){return this.slice(a,s).toString(o)},i.prototype.consume=function(o){if(o=Math.trunc(o),Number.isNaN(o)||o<=0)return this;for(;this._bufs.length;)if(o>=this._bufs[0].length)o-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(o),this.length-=o;break}return this},i.prototype.duplicate=function(){let o=this._new();for(let a=0;a<this._bufs.length;a++)o.append(this._bufs[a]);return o},i.prototype.append=function(o){if(o==null)return this;if(o.buffer)this._appendBuffer(n.from(o.buffer,o.byteOffset,o.byteLength));else if(Array.isArray(o))for(let a=0;a<o.length;a++)this.append(o[a]);else if(this._isBufferList(o))for(let a=0;a<o._bufs.length;a++)this.append(o._bufs[a]);else typeof o=="number"&&(o=o.toString()),this._appendBuffer(n.from(o));return this},i.prototype._appendBuffer=function(o){this._bufs.push(o),this.length+=o.length},i.prototype.indexOf=function(o,a,s){if(s===void 0&&typeof a=="string"&&(s=a,a=void 0),typeof o=="function"||Array.isArray(o))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(typeof o=="number"?o=n.from([o]):typeof o=="string"?o=n.from(o,s):this._isBufferList(o)?o=o.slice():Array.isArray(o.buffer)?o=n.from(o.buffer,o.byteOffset,o.byteLength):n.isBuffer(o)||(o=n.from(o)),a=Number(a||0),isNaN(a)&&(a=0),a<0&&(a=this.length+a),a<0&&(a=0),o.length===0)return a>this.length?this.length:a;let l=this._offset(a),c=l[0],u=l[1];for(;c<this._bufs.length;c++){let d=this._bufs[c];for(;u<d.length;)if(d.length-u>=o.length){let h=d.indexOf(o,u);if(h!==-1)return this._reverseOffset([c,h]);u=d.length-o.length+1}else{let h=this._reverseOffset([c,u]);if(this._match(h,o))return h;u++}u=0}return-1},i.prototype._match=function(o,a){if(this.length-o<a.length)return!1;for(let s=0;s<a.length;s++)if(this.get(o+s)!==a[s])return!1;return!0},function(){let o={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readBigInt64BE:8,readBigInt64LE:8,readBigUInt64BE:8,readBigUInt64LE:8,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(let a in o)(function(s){o[s]===null?i.prototype[s]=function(l,c){return this.slice(l,l+c)[s](0,c)}:i.prototype[s]=function(l=0){return this.slice(l,l+o[s])[s](0)}})(a)}(),i.prototype._isBufferList=function(o){return o instanceof i||i.isBufferList(o)},i.isBufferList=function(o){return o!=null&&o[r]},t.exports=i}),v$e=Tn((e,t)=>{pn(),gn(),mn();var n=Uv().Duplex,r=m$e(),i=g$e();function o(a){if(!(this instanceof o))return new o(a);if(typeof a=="function"){this._callback=a;let s=(function(l){this._callback&&(this._callback(l),this._callback=null)}).bind(this);this.on("pipe",function(l){l.on("error",s)}),this.on("unpipe",function(l){l.removeListener("error",s)}),a=null}i._init.call(this,a),n.call(this)}r(o,n),Object.assign(o.prototype,i.prototype),o.prototype._new=function(a){return new o(a)},o.prototype._write=function(a,s,l){this._appendBuffer(a),typeof l=="function"&&l()},o.prototype._read=function(a){if(!this.length)return this.push(null);a=Math.min(a,this.length),this.push(this.slice(0,a)),this.consume(a)},o.prototype.end=function(a){n.prototype.end.call(this,a),this._callback&&(this._callback(null,this.slice()),this._callback=null)},o.prototype._destroy=function(a,s){this._bufs.length=0,this.length=0,s(a)},o.prototype._isBufferList=function(a){return a instanceof o||a instanceof i||o.isBufferList(a)},o.isBufferList=i.isBufferList,t.exports=o,t.exports.BufferListStream=o,t.exports.BufferList=i}),y$e=Tn((e,t)=>{pn(),gn(),mn();var n=class{constructor(){this.cmd=null,this.retain=!1,this.qos=0,this.dup=!1,this.length=-1,this.topic=null,this.payload=null}};t.exports=n}),Yhe=Tn((e,t)=>{pn(),gn(),mn();var n=t.exports,{Buffer:r}=(Ts(),eo(Es));n.types={0:"reserved",1:"connect",2:"connack",3:"publish",4:"puback",5:"pubrec",6:"pubrel",7:"pubcomp",8:"subscribe",9:"suback",10:"unsubscribe",11:"unsuback",12:"pingreq",13:"pingresp",14:"disconnect",15:"auth"},n.requiredHeaderFlags={1:0,2:0,4:0,5:0,6:2,7:0,8:2,9:0,10:2,11:0,12:0,13:0,14:0,15:0},n.requiredHeaderFlagsErrors={};for(let o in n.requiredHeaderFlags){let a=n.requiredHeaderFlags[o];n.requiredHeaderFlagsErrors[o]="Invalid header flag bits, must be 0x"+a.toString(16)+" for "+n.types[o]+" packet"}n.codes={};for(let o in n.types){let a=n.types[o];n.codes[a]=o}n.CMD_SHIFT=4,n.CMD_MASK=240,n.DUP_MASK=8,n.QOS_MASK=3,n.QOS_SHIFT=1,n.RETAIN_MASK=1,n.VARBYTEINT_MASK=127,n.VARBYTEINT_FIN_MASK=128,n.VARBYTEINT_MAX=268435455,n.SESSIONPRESENT_MASK=1,n.SESSIONPRESENT_HEADER=r.from([n.SESSIONPRESENT_MASK]),n.CONNACK_HEADER=r.from([n.codes.connack<<n.CMD_SHIFT]),n.USERNAME_MASK=128,n.PASSWORD_MASK=64,n.WILL_RETAIN_MASK=32,n.WILL_QOS_MASK=24,n.WILL_QOS_SHIFT=3,n.WILL_FLAG_MASK=4,n.CLEAN_SESSION_MASK=2,n.CONNECT_HEADER=r.from([n.codes.connect<<n.CMD_SHIFT]),n.properties={sessionExpiryInterval:17,willDelayInterval:24,receiveMaximum:33,maximumPacketSize:39,topicAliasMaximum:34,requestResponseInformation:25,requestProblemInformation:23,userProperties:38,authenticationMethod:21,authenticationData:22,payloadFormatIndicator:1,messageExpiryInterval:2,contentType:3,responseTopic:8,correlationData:9,maximumQoS:36,retainAvailable:37,assignedClientIdentifier:18,reasonString:31,wildcardSubscriptionAvailable:40,subscriptionIdentifiersAvailable:41,sharedSubscriptionAvailable:42,serverKeepAlive:19,responseInformation:26,serverReference:28,topicAlias:35,subscriptionIdentifier:11},n.propertiesCodes={};for(let o in n.properties){let a=n.properties[o];n.propertiesCodes[a]=o}n.propertiesTypes={sessionExpiryInterval:"int32",willDelayInterval:"int32",receiveMaximum:"int16",maximumPacketSize:"int32",topicAliasMaximum:"int16",requestResponseInformation:"byte",requestProblemInformation:"byte",userProperties:"pair",authenticationMethod:"string",authenticationData:"binary",payloadFormatIndicator:"byte",messageExpiryInterval:"int32",contentType:"string",responseTopic:"string",correlationData:"binary",maximumQoS:"int8",retainAvailable:"byte",assignedClientIdentifier:"string",reasonString:"string",wildcardSubscriptionAvailable:"byte",subscriptionIdentifiersAvailable:"byte",sharedSubscriptionAvailable:"byte",serverKeepAlive:"int16",responseInformation:"string",serverReference:"string",topicAlias:"int16",subscriptionIdentifier:"var"};function i(o){return[0,1,2].map(a=>[0,1].map(s=>[0,1].map(l=>{let c=r.alloc(1);return c.writeUInt8(n.codes[o]<<n.CMD_SHIFT|(s?n.DUP_MASK:0)|a<<n.QOS_SHIFT|l,0,!0),c})))}n.PUBLISH_HEADER=i("publish"),n.SUBSCRIBE_HEADER=i("subscribe"),n.SUBSCRIBE_OPTIONS_QOS_MASK=3,n.SUBSCRIBE_OPTIONS_NL_MASK=1,n.SUBSCRIBE_OPTIONS_NL_SHIFT=2,n.SUBSCRIBE_OPTIONS_RAP_MASK=1,n.SUBSCRIBE_OPTIONS_RAP_SHIFT=3,n.SUBSCRIBE_OPTIONS_RH_MASK=3,n.SUBSCRIBE_OPTIONS_RH_SHIFT=4,n.SUBSCRIBE_OPTIONS_RH=[0,16,32],n.SUBSCRIBE_OPTIONS_NL=4,n.SUBSCRIBE_OPTIONS_RAP=8,n.SUBSCRIBE_OPTIONS_QOS=[0,1,2],n.UNSUBSCRIBE_HEADER=i("unsubscribe"),n.ACKS={unsuback:i("unsuback"),puback:i("puback"),pubcomp:i("pubcomp"),pubrel:i("pubrel"),pubrec:i("pubrec")},n.SUBACK_HEADER=r.from([n.codes.suback<<n.CMD_SHIFT]),n.VERSION3=r.from([3]),n.VERSION4=r.from([4]),n.VERSION5=r.from([5]),n.VERSION131=r.from([131]),n.VERSION132=r.from([132]),n.QOS=[0,1,2].map(o=>r.from([o])),n.EMPTY={pingreq:r.from([n.codes.pingreq<<4,0]),pingresp:r.from([n.codes.pingresp<<4,0]),disconnect:r.from([n.codes.disconnect<<4,0])},n.MQTT5_PUBACK_PUBREC_CODES={0:"Success",16:"No matching subscribers",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",144:"Topic Name invalid",145:"Packet identifier in use",151:"Quota exceeded",153:"Payload format invalid"},n.MQTT5_PUBREL_PUBCOMP_CODES={0:"Success",146:"Packet Identifier not found"},n.MQTT5_SUBACK_CODES={0:"Granted QoS 0",1:"Granted QoS 1",2:"Granted QoS 2",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",143:"Topic Filter invalid",145:"Packet Identifier in use",151:"Quota exceeded",158:"Shared Subscriptions not supported",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"},n.MQTT5_UNSUBACK_CODES={0:"Success",17:"No subscription existed",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",143:"Topic Filter invalid",145:"Packet Identifier in use"},n.MQTT5_DISCONNECT_CODES={0:"Normal disconnection",4:"Disconnect with Will Message",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",135:"Not authorized",137:"Server busy",139:"Server shutting down",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"},n.MQTT5_AUTH_CODES={0:"Success",24:"Continue authentication",25:"Re-authenticate"}}),b$e=Tn((e,t)=>{pn(),gn(),mn();var n=1e3,r=n*60,i=r*60,o=i*24,a=o*7,s=o*365.25;t.exports=function(h,p){p=p||{};var m=typeof h;if(m==="string"&&h.length>0)return l(h);if(m==="number"&&isFinite(h))return p.long?u(h):c(h);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(h))};function l(h){if(h=String(h),!(h.length>100)){var p=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(h);if(p){var m=parseFloat(p[1]),v=(p[2]||"ms").toLowerCase();switch(v){case"years":case"year":case"yrs":case"yr":case"y":return m*s;case"weeks":case"week":case"w":return m*a;case"days":case"day":case"d":return m*o;case"hours":case"hour":case"hrs":case"hr":case"h":return m*i;case"minutes":case"minute":case"mins":case"min":case"m":return m*r;case"seconds":case"second":case"secs":case"sec":case"s":return m*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return m;default:return}}}}function c(h){var p=Math.abs(h);return p>=o?Math.round(h/o)+"d":p>=i?Math.round(h/i)+"h":p>=r?Math.round(h/r)+"m":p>=n?Math.round(h/n)+"s":h+"ms"}function u(h){var p=Math.abs(h);return p>=o?d(h,p,o,"day"):p>=i?d(h,p,i,"hour"):p>=r?d(h,p,r,"minute"):p>=n?d(h,p,n,"second"):h+" ms"}function d(h,p,m,v){var y=p>=m*1.5;return Math.round(h/m)+" "+v+(y?"s":"")}}),S$e=Tn((e,t)=>{pn(),gn(),mn();function n(r){o.debug=o,o.default=o,o.coerce=d,o.disable=l,o.enable=s,o.enabled=c,o.humanize=b$e(),o.destroy=h,Object.keys(r).forEach(p=>{o[p]=r[p]}),o.names=[],o.skips=[],o.formatters={};function i(p){let m=0;for(let v=0;v<p.length;v++)m=(m<<5)-m+p.charCodeAt(v),m|=0;return o.colors[Math.abs(m)%o.colors.length]}o.selectColor=i;function o(p){let m,v=null,y,S;function b(...C){if(!b.enabled)return;let _=b,T=Number(new Date),x=T-(m||T);_.diff=x,_.prev=m,_.curr=T,m=T,C[0]=o.coerce(C[0]),typeof C[0]!="string"&&C.unshift("%O");let E=0;C[0]=C[0].replace(/%([a-zA-Z%])/g,(k,M)=>{if(k==="%%")return"%";E++;let P=o.formatters[M];if(typeof P=="function"){let D=C[E];k=P.call(_,D),C.splice(E,1),E--}return k}),o.formatArgs.call(_,C),(_.log||o.log).apply(_,C)}return b.namespace=p,b.useColors=o.useColors(),b.color=o.selectColor(p),b.extend=a,b.destroy=o.destroy,Object.defineProperty(b,"enabled",{enumerable:!0,configurable:!1,get:()=>v!==null?v:(y!==o.namespaces&&(y=o.namespaces,S=o.enabled(p)),S),set:C=>{v=C}}),typeof o.init=="function"&&o.init(b),b}function a(p,m){let v=o(this.namespace+(typeof m>"u"?":":m)+p);return v.log=this.log,v}function s(p){o.save(p),o.namespaces=p,o.names=[],o.skips=[];let m,v=(typeof p=="string"?p:"").split(/[\s,]+/),y=v.length;for(m=0;m<y;m++)v[m]&&(p=v[m].replace(/\*/g,".*?"),p[0]==="-"?o.skips.push(new RegExp("^"+p.slice(1)+"$")):o.names.push(new RegExp("^"+p+"$")))}function l(){let p=[...o.names.map(u),...o.skips.map(u).map(m=>"-"+m)].join(",");return o.enable(""),p}function c(p){if(p[p.length-1]==="*")return!0;let m,v;for(m=0,v=o.skips.length;m<v;m++)if(o.skips[m].test(p))return!1;for(m=0,v=o.names.length;m<v;m++)if(o.names[m].test(p))return!0;return!1}function u(p){return p.toString().substring(2,p.toString().length-2).replace(/\.\*\?$/,"*")}function d(p){return p instanceof Error?p.stack||p.message:p}function h(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return o.enable(o.load()),o}t.exports=n}),cp=Tn((e,t)=>{pn(),gn(),mn(),e.formatArgs=r,e.save=i,e.load=o,e.useColors=n,e.storage=a(),e.destroy=(()=>{let l=!1;return()=>{l||(l=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;let c="color: "+this.color;l.splice(1,0,c,"color: inherit");let u=0,d=0;l[0].replace(/%[a-zA-Z%]/g,h=>{h!=="%%"&&(u++,h==="%c"&&(d=u))}),l.splice(d,0,c)}e.log=console.debug||console.log||(()=>{});function i(l){try{l?e.storage.setItem("debug",l):e.storage.removeItem("debug")}catch{}}function o(){let l;try{l=e.storage.getItem("debug")}catch{}return!l&&typeof Ni<"u"&&"env"in Ni&&(l=Ni.env.DEBUG),l}function a(){try{return localStorage}catch{}}t.exports=S$e()(e);var{formatters:s}=t.exports;s.j=function(l){try{return JSON.stringify(l)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}}}),C$e=Tn((e,t)=>{pn(),gn(),mn();var n=v$e(),{EventEmitter:r}=(DS(),eo(zv)),i=y$e(),o=Yhe(),a=cp()("mqtt-packet:parser"),s=class wL extends r{constructor(){super(),this.parser=this.constructor.parser}static parser(c){return this instanceof wL?(this.settings=c||{},this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState(),this):new wL().parser(c)}_resetState(){a("_resetState: resetting packet, error, _list, and _stateCounter"),this.packet=new i,this.error=null,this._list=n(),this._stateCounter=0}parse(c){for(this.error&&this._resetState(),this._list.append(c),a("parse: current state: %s",this._states[this._stateCounter]);(this.packet.length!==-1||this._list.length>0)&&this[this._states[this._stateCounter]]()&&!this.error;)this._stateCounter++,a("parse: state complete. _stateCounter is now: %d",this._stateCounter),a("parse: packet.length: %d, buffer list length: %d",this.packet.length,this._list.length),this._stateCounter>=this._states.length&&(this._stateCounter=0);return a("parse: exited while loop. packet: %d, buffer list length: %d",this.packet.length,this._list.length),this._list.length}_parseHeader(){let c=this._list.readUInt8(0),u=c>>o.CMD_SHIFT;this.packet.cmd=o.types[u];let d=c&15,h=o.requiredHeaderFlags[u];return h!=null&&d!==h?this._emitError(new Error(o.requiredHeaderFlagsErrors[u])):(this.packet.retain=(c&o.RETAIN_MASK)!==0,this.packet.qos=c>>o.QOS_SHIFT&o.QOS_MASK,this.packet.qos>2?this._emitError(new Error("Packet must not have both QoS bits set to 1")):(this.packet.dup=(c&o.DUP_MASK)!==0,a("_parseHeader: packet: %o",this.packet),this._list.consume(1),!0))}_parseLength(){let c=this._parseVarByteNum(!0);return c&&(this.packet.length=c.value,this._list.consume(c.bytes)),a("_parseLength %d",c.value),!!c}_parsePayload(){a("_parsePayload: payload %O",this._list);let c=!1;if(this.packet.length===0||this._list.length>=this.packet.length){switch(this._pos=0,this.packet.cmd){case"connect":this._parseConnect();break;case"connack":this._parseConnack();break;case"publish":this._parsePublish();break;case"puback":case"pubrec":case"pubrel":case"pubcomp":this._parseConfirmation();break;case"subscribe":this._parseSubscribe();break;case"suback":this._parseSuback();break;case"unsubscribe":this._parseUnsubscribe();break;case"unsuback":this._parseUnsuback();break;case"pingreq":case"pingresp":break;case"disconnect":this._parseDisconnect();break;case"auth":this._parseAuth();break;default:this._emitError(new Error("Not supported"))}c=!0}return a("_parsePayload complete result: %s",c),c}_parseConnect(){a("_parseConnect");let c,u,d,h,p={},m=this.packet,v=this._parseString();if(v===null)return this._emitError(new Error("Cannot parse protocolId"));if(v!=="MQTT"&&v!=="MQIsdp")return this._emitError(new Error("Invalid protocolId"));if(m.protocolId=v,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(m.protocolVersion=this._list.readUInt8(this._pos),m.protocolVersion>=128&&(m.bridgeMode=!0,m.protocolVersion=m.protocolVersion-128),m.protocolVersion!==3&&m.protocolVersion!==4&&m.protocolVersion!==5)return this._emitError(new Error("Invalid protocol version"));if(this._pos++,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(this._list.readUInt8(this._pos)&1)return this._emitError(new Error("Connect flag bit 0 must be 0, but got 1"));p.username=this._list.readUInt8(this._pos)&o.USERNAME_MASK,p.password=this._list.readUInt8(this._pos)&o.PASSWORD_MASK,p.will=this._list.readUInt8(this._pos)&o.WILL_FLAG_MASK;let y=!!(this._list.readUInt8(this._pos)&o.WILL_RETAIN_MASK),S=(this._list.readUInt8(this._pos)&o.WILL_QOS_MASK)>>o.WILL_QOS_SHIFT;if(p.will)m.will={},m.will.retain=y,m.will.qos=S;else{if(y)return this._emitError(new Error("Will Retain Flag must be set to zero when Will Flag is set to 0"));if(S)return this._emitError(new Error("Will QoS must be set to zero when Will Flag is set to 0"))}if(m.clean=(this._list.readUInt8(this._pos)&o.CLEAN_SESSION_MASK)!==0,this._pos++,m.keepalive=this._parseNum(),m.keepalive===-1)return this._emitError(new Error("Packet too short"));if(m.protocolVersion===5){let C=this._parseProperties();Object.getOwnPropertyNames(C).length&&(m.properties=C)}let b=this._parseString();if(b===null)return this._emitError(new Error("Packet too short"));if(m.clientId=b,a("_parseConnect: packet.clientId: %s",m.clientId),p.will){if(m.protocolVersion===5){let C=this._parseProperties();Object.getOwnPropertyNames(C).length&&(m.will.properties=C)}if(c=this._parseString(),c===null)return this._emitError(new Error("Cannot parse will topic"));if(m.will.topic=c,a("_parseConnect: packet.will.topic: %s",m.will.topic),u=this._parseBuffer(),u===null)return this._emitError(new Error("Cannot parse will payload"));m.will.payload=u,a("_parseConnect: packet.will.paylaod: %s",m.will.payload)}if(p.username){if(h=this._parseString(),h===null)return this._emitError(new Error("Cannot parse username"));m.username=h,a("_parseConnect: packet.username: %s",m.username)}if(p.password){if(d=this._parseBuffer(),d===null)return this._emitError(new Error("Cannot parse password"));m.password=d}return this.settings=m,a("_parseConnect: complete"),m}_parseConnack(){a("_parseConnack");let c=this.packet;if(this._list.length<1)return null;let u=this._list.readUInt8(this._pos++);if(u>1)return this._emitError(new Error("Invalid connack flags, bits 7-1 must be set to 0"));if(c.sessionPresent=!!(u&o.SESSIONPRESENT_MASK),this.settings.protocolVersion===5)this._list.length>=2?c.reasonCode=this._list.readUInt8(this._pos++):c.reasonCode=0;else{if(this._list.length<2)return null;c.returnCode=this._list.readUInt8(this._pos++)}if(c.returnCode===-1||c.reasonCode===-1)return this._emitError(new Error("Cannot parse return code"));if(this.settings.protocolVersion===5){let d=this._parseProperties();Object.getOwnPropertyNames(d).length&&(c.properties=d)}a("_parseConnack: complete")}_parsePublish(){a("_parsePublish");let c=this.packet;if(c.topic=this._parseString(),c.topic===null)return this._emitError(new Error("Cannot parse topic"));if(!(c.qos>0&&!this._parseMessageId())){if(this.settings.protocolVersion===5){let u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(c.properties=u)}c.payload=this._list.slice(this._pos,c.length),a("_parsePublish: payload from buffer list: %o",c.payload)}}_parseSubscribe(){a("_parseSubscribe");let c=this.packet,u,d,h,p,m,v,y;if(c.subscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let S=this._parseProperties();Object.getOwnPropertyNames(S).length&&(c.properties=S)}if(c.length<=0)return this._emitError(new Error("Malformed subscribe, no payload specified"));for(;this._pos<c.length;){if(u=this._parseString(),u===null)return this._emitError(new Error("Cannot parse topic"));if(this._pos>=c.length)return this._emitError(new Error("Malformed Subscribe Payload"));if(d=this._parseByte(),this.settings.protocolVersion===5){if(d&192)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-6 must be 0"))}else if(d&252)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-2 must be 0"));if(h=d&o.SUBSCRIBE_OPTIONS_QOS_MASK,h>2)return this._emitError(new Error("Invalid subscribe QoS, must be <= 2"));if(v=(d>>o.SUBSCRIBE_OPTIONS_NL_SHIFT&o.SUBSCRIBE_OPTIONS_NL_MASK)!==0,m=(d>>o.SUBSCRIBE_OPTIONS_RAP_SHIFT&o.SUBSCRIBE_OPTIONS_RAP_MASK)!==0,p=d>>o.SUBSCRIBE_OPTIONS_RH_SHIFT&o.SUBSCRIBE_OPTIONS_RH_MASK,p>2)return this._emitError(new Error("Invalid retain handling, must be <= 2"));y={topic:u,qos:h},this.settings.protocolVersion===5?(y.nl=v,y.rap=m,y.rh=p):this.settings.bridgeMode&&(y.rh=0,y.rap=!0,y.nl=!0),a("_parseSubscribe: push subscription `%s` to subscription",y),c.subscriptions.push(y)}}}_parseSuback(){a("_parseSuback");let c=this.packet;if(this.packet.granted=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(c.properties=u)}if(c.length<=0)return this._emitError(new Error("Malformed suback, no payload specified"));for(;this._pos<this.packet.length;){let u=this._list.readUInt8(this._pos++);if(this.settings.protocolVersion===5){if(!o.MQTT5_SUBACK_CODES[u])return this._emitError(new Error("Invalid suback code"))}else if(u>2&&u!==128)return this._emitError(new Error("Invalid suback QoS, must be 0, 1, 2 or 128"));this.packet.granted.push(u)}}}_parseUnsubscribe(){a("_parseUnsubscribe");let c=this.packet;if(c.unsubscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(c.properties=u)}if(c.length<=0)return this._emitError(new Error("Malformed unsubscribe, no payload specified"));for(;this._pos<c.length;){let u=this._parseString();if(u===null)return this._emitError(new Error("Cannot parse topic"));a("_parseUnsubscribe: push topic `%s` to unsubscriptions",u),c.unsubscriptions.push(u)}}}_parseUnsuback(){a("_parseUnsuback");let c=this.packet;if(!this._parseMessageId())return this._emitError(new Error("Cannot parse messageId"));if((this.settings.protocolVersion===3||this.settings.protocolVersion===4)&&c.length!==2)return this._emitError(new Error("Malformed unsuback, payload length must be 2"));if(c.length<=0)return this._emitError(new Error("Malformed unsuback, no payload specified"));if(this.settings.protocolVersion===5){let u=this._parseProperties();for(Object.getOwnPropertyNames(u).length&&(c.properties=u),c.granted=[];this._pos<this.packet.length;){let d=this._list.readUInt8(this._pos++);if(!o.MQTT5_UNSUBACK_CODES[d])return this._emitError(new Error("Invalid unsuback code"));this.packet.granted.push(d)}}}_parseConfirmation(){a("_parseConfirmation: packet.cmd: `%s`",this.packet.cmd);let c=this.packet;if(this._parseMessageId(),this.settings.protocolVersion===5){if(c.length>2){switch(c.reasonCode=this._parseByte(),this.packet.cmd){case"puback":case"pubrec":if(!o.MQTT5_PUBACK_PUBREC_CODES[c.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break;case"pubrel":case"pubcomp":if(!o.MQTT5_PUBREL_PUBCOMP_CODES[c.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break}a("_parseConfirmation: packet.reasonCode `%d`",c.reasonCode)}else c.reasonCode=0;if(c.length>3){let u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(c.properties=u)}}return!0}_parseDisconnect(){let c=this.packet;if(a("_parseDisconnect"),this.settings.protocolVersion===5){this._list.length>0?(c.reasonCode=this._parseByte(),o.MQTT5_DISCONNECT_CODES[c.reasonCode]||this._emitError(new Error("Invalid disconnect reason code"))):c.reasonCode=0;let u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(c.properties=u)}return a("_parseDisconnect result: true"),!0}_parseAuth(){a("_parseAuth");let c=this.packet;if(this.settings.protocolVersion!==5)return this._emitError(new Error("Not supported auth packet for this version MQTT"));if(c.reasonCode=this._parseByte(),!o.MQTT5_AUTH_CODES[c.reasonCode])return this._emitError(new Error("Invalid auth reason code"));let u=this._parseProperties();return Object.getOwnPropertyNames(u).length&&(c.properties=u),a("_parseAuth: result: true"),!0}_parseMessageId(){let c=this.packet;return c.messageId=this._parseNum(),c.messageId===null?(this._emitError(new Error("Cannot parse messageId")),!1):(a("_parseMessageId: packet.messageId %d",c.messageId),!0)}_parseString(c){let u=this._parseNum(),d=u+this._pos;if(u===-1||d>this._list.length||d>this.packet.length)return null;let h=this._list.toString("utf8",this._pos,d);return this._pos+=u,a("_parseString: result: %s",h),h}_parseStringPair(){return a("_parseStringPair"),{name:this._parseString(),value:this._parseString()}}_parseBuffer(){let c=this._parseNum(),u=c+this._pos;if(c===-1||u>this._list.length||u>this.packet.length)return null;let d=this._list.slice(this._pos,u);return this._pos+=c,a("_parseBuffer: result: %o",d),d}_parseNum(){if(this._list.length-this._pos<2)return-1;let c=this._list.readUInt16BE(this._pos);return this._pos+=2,a("_parseNum: result: %s",c),c}_parse4ByteNum(){if(this._list.length-this._pos<4)return-1;let c=this._list.readUInt32BE(this._pos);return this._pos+=4,a("_parse4ByteNum: result: %s",c),c}_parseVarByteNum(c){a("_parseVarByteNum");let u=4,d=0,h=1,p=0,m=!1,v,y=this._pos?this._pos:0;for(;d<u&&y+d<this._list.length;){if(v=this._list.readUInt8(y+d++),p+=h*(v&o.VARBYTEINT_MASK),h*=128,!(v&o.VARBYTEINT_FIN_MASK)){m=!0;break}if(this._list.length<=d)break}return!m&&d===u&&this._list.length>=d&&this._emitError(new Error("Invalid variable byte integer")),y&&(this._pos+=d),m?c?m={bytes:d,value:p}:m=p:m=!1,a("_parseVarByteNum: result: %o",m),m}_parseByte(){let c;return this._pos<this._list.length&&(c=this._list.readUInt8(this._pos),this._pos++),a("_parseByte: result: %o",c),c}_parseByType(c){switch(a("_parseByType: type: %s",c),c){case"byte":return this._parseByte()!==0;case"int8":return this._parseByte();case"int16":return this._parseNum();case"int32":return this._parse4ByteNum();case"var":return this._parseVarByteNum();case"string":return this._parseString();case"pair":return this._parseStringPair();case"binary":return this._parseBuffer()}}_parseProperties(){a("_parseProperties");let c=this._parseVarByteNum(),u=this._pos+c,d={};for(;this._pos<u;){let h=this._parseByte();if(!h)return this._emitError(new Error("Cannot parse property code type")),!1;let p=o.propertiesCodes[h];if(!p)return this._emitError(new Error("Unknown property")),!1;if(p==="userProperties"){d[p]||(d[p]=Object.create(null));let m=this._parseByType(o.propertiesTypes[p]);if(d[p][m.name])if(Array.isArray(d[p][m.name]))d[p][m.name].push(m.value);else{let v=d[p][m.name];d[p][m.name]=[v],d[p][m.name].push(m.value)}else d[p][m.name]=m.value;continue}d[p]?Array.isArray(d[p])?d[p].push(this._parseByType(o.propertiesTypes[p])):(d[p]=[d[p]],d[p].push(this._parseByType(o.propertiesTypes[p]))):d[p]=this._parseByType(o.propertiesTypes[p])}return d}_newPacket(){return a("_newPacket"),this.packet&&(this._list.consume(this.packet.length),a("_newPacket: parser emit packet: packet.cmd: %s, packet.payload: %s, packet.length: %d",this.packet.cmd,this.packet.payload,this.packet.length),this.emit("packet",this.packet)),a("_newPacket: new packet"),this.packet=new i,this._pos=0,!0}_emitError(c){a("_emitError",c),this.error=c,this.emit("error",c)}};t.exports=s}),x$e=Tn((e,t)=>{pn(),gn(),mn();var{Buffer:n}=(Ts(),eo(Es)),r=65536,i={},o=n.isBuffer(n.from([1,2]).subarray(0,1));function a(u){let d=n.allocUnsafe(2);return d.writeUInt8(u>>8,0),d.writeUInt8(u&255,1),d}function s(){for(let u=0;u<r;u++)i[u]=a(u)}function l(u){let d=0,h=0,p=n.allocUnsafe(4);do d=u%128|0,u=u/128|0,u>0&&(d=d|128),p.writeUInt8(d,h++);while(u>0&&h<4);return u>0&&(h=0),o?p.subarray(0,h):p.slice(0,h)}function c(u){let d=n.allocUnsafe(4);return d.writeUInt32BE(u,0),d}t.exports={cache:i,generateCache:s,generateNumber:a,genBufVariableByteInt:l,generate4ByteBuffer:c}}),w$e=Tn((e,t)=>{pn(),gn(),mn(),typeof Ni>"u"||!Ni.version||Ni.version.indexOf("v0.")===0||Ni.version.indexOf("v1.")===0&&Ni.version.indexOf("v1.8.")!==0?t.exports={nextTick:n}:t.exports=Ni;function n(r,i,o,a){if(typeof r!="function")throw new TypeError('"callback" argument must be a function');var s=arguments.length,l,c;switch(s){case 0:case 1:return Ni.nextTick(r);case 2:return Ni.nextTick(function(){r.call(null,i)});case 3:return Ni.nextTick(function(){r.call(null,i,o)});case 4:return Ni.nextTick(function(){r.call(null,i,o,a)});default:for(l=new Array(s-1),c=0;c<l.length;)l[c++]=arguments[c];return Ni.nextTick(function(){r.apply(null,l)})}}}),Xhe=Tn((e,t)=>{pn(),gn(),mn();var n=Yhe(),{Buffer:r}=(Ts(),eo(Es)),i=r.allocUnsafe(0),o=r.from([0]),a=x$e(),s=w$e().nextTick,l=cp()("mqtt-packet:writeToStream"),c=a.cache,u=a.generateNumber,d=a.generateCache,h=a.genBufVariableByteInt,p=a.generate4ByteBuffer,m=W,v=!0;function y(ee,ne,ue){switch(l("generate called"),ne.cork&&(ne.cork(),s(S,ne)),v&&(v=!1,d()),l("generate: packet.cmd: %s",ee.cmd),ee.cmd){case"connect":return b(ee,ne);case"connack":return C(ee,ne,ue);case"publish":return _(ee,ne,ue);case"puback":case"pubrec":case"pubrel":case"pubcomp":return T(ee,ne,ue);case"subscribe":return x(ee,ne,ue);case"suback":return E(ee,ne,ue);case"unsubscribe":return k(ee,ne,ue);case"unsuback":return M(ee,ne,ue);case"pingreq":case"pingresp":return P(ee,ne);case"disconnect":return D(ee,ne,ue);case"auth":return R(ee,ne,ue);default:return ne.destroy(new Error("Unknown command")),!1}}Object.defineProperty(y,"cacheNumbers",{get(){return m===W},set(ee){ee?((!c||Object.keys(c).length===0)&&(v=!0),m=W):(v=!1,m=q)}});function S(ee){ee.uncork()}function b(ee,ne,ue){let ye=ee||{},me=ye.protocolId||"MQTT",pe=ye.protocolVersion||4,he=ye.will,_e=ye.clean,le=ye.keepalive||0,xe=ye.clientId||"",we=ye.username,De=ye.password,Fe=ye.properties;_e===void 0&&(_e=!0);let Ce=0;if(!me||typeof me!="string"&&!r.isBuffer(me))return ne.destroy(new Error("Invalid protocolId")),!1;if(Ce+=me.length+2,pe!==3&&pe!==4&&pe!==5)return ne.destroy(new Error("Invalid protocol version")),!1;if(Ce+=1,(typeof xe=="string"||r.isBuffer(xe))&&(xe||pe>=4)&&(xe||_e))Ce+=r.byteLength(xe)+2;else{if(pe<4)return ne.destroy(new Error("clientId must be supplied before 3.1.1")),!1;if(_e*1===0)return ne.destroy(new Error("clientId must be given if cleanSession set to 0")),!1}if(typeof le!="number"||le<0||le>65535||le%1!==0)return ne.destroy(new Error("Invalid keepalive")),!1;Ce+=2,Ce+=1;let Te,ke;if(pe===5){if(Te=B(ne,Fe),!Te)return!1;Ce+=Te.length}if(he){if(typeof he!="object")return ne.destroy(new Error("Invalid will")),!1;if(!he.topic||typeof he.topic!="string")return ne.destroy(new Error("Invalid will topic")),!1;if(Ce+=r.byteLength(he.topic)+2,Ce+=2,he.payload)if(he.payload.length>=0)typeof he.payload=="string"?Ce+=r.byteLength(he.payload):Ce+=he.payload.length;else return ne.destroy(new Error("Invalid will payload")),!1;if(ke={},pe===5){if(ke=B(ne,he.properties),!ke)return!1;Ce+=ke.length}}let Pe=!1;if(we!=null)if(fe(we))Pe=!0,Ce+=r.byteLength(we)+2;else return ne.destroy(new Error("Invalid username")),!1;if(De!=null){if(!Pe)return ne.destroy(new Error("Username is required to use password")),!1;if(fe(De))Ce+=ce(De)+2;else return ne.destroy(new Error("Invalid password")),!1}ne.write(n.CONNECT_HEADER),H(ne,Ce),N(ne,me),ye.bridgeMode&&(pe+=128),ne.write(pe===131?n.VERSION131:pe===132?n.VERSION132:pe===4?n.VERSION4:pe===5?n.VERSION5:n.VERSION3);let Ne=0;return Ne|=we!=null?n.USERNAME_MASK:0,Ne|=De!=null?n.PASSWORD_MASK:0,Ne|=he&&he.retain?n.WILL_RETAIN_MASK:0,Ne|=he&&he.qos?he.qos<<n.WILL_QOS_SHIFT:0,Ne|=he?n.WILL_FLAG_MASK:0,Ne|=_e?n.CLEAN_SESSION_MASK:0,ne.write(r.from([Ne])),m(ne,le),pe===5&&Te.write(),N(ne,xe),he&&(pe===5&&ke.write(),F(ne,he.topic),N(ne,he.payload)),we!=null&&N(ne,we),De!=null&&N(ne,De),!0}function C(ee,ne,ue){let ye=ue?ue.protocolVersion:4,me=ee||{},pe=ye===5?me.reasonCode:me.returnCode,he=me.properties,_e=2;if(typeof pe!="number")return ne.destroy(new Error("Invalid return code")),!1;let le=null;if(ye===5){if(le=B(ne,he),!le)return!1;_e+=le.length}return ne.write(n.CONNACK_HEADER),H(ne,_e),ne.write(me.sessionPresent?n.SESSIONPRESENT_HEADER:o),ne.write(r.from([pe])),le==null||le.write(),!0}function _(ee,ne,ue){l("publish: packet: %o",ee);let ye=ue?ue.protocolVersion:4,me=ee||{},pe=me.qos||0,he=me.retain?n.RETAIN_MASK:0,_e=me.topic,le=me.payload||i,xe=me.messageId,we=me.properties,De=0;if(typeof _e=="string")De+=r.byteLength(_e)+2;else if(r.isBuffer(_e))De+=_e.length+2;else return ne.destroy(new Error("Invalid topic")),!1;if(r.isBuffer(le)?De+=le.length:De+=r.byteLength(le),pe&&typeof xe!="number")return ne.destroy(new Error("Invalid messageId")),!1;pe&&(De+=2);let Fe=null;if(ye===5){if(Fe=B(ne,we),!Fe)return!1;De+=Fe.length}return ne.write(n.PUBLISH_HEADER[pe][me.dup?1:0][he?1:0]),H(ne,De),m(ne,ce(_e)),ne.write(_e),pe>0&&m(ne,xe),Fe==null||Fe.write(),l("publish: payload: %o",le),ne.write(le)}function T(ee,ne,ue){let ye=ue?ue.protocolVersion:4,me=ee||{},pe=me.cmd||"puback",he=me.messageId,_e=me.dup&&pe==="pubrel"?n.DUP_MASK:0,le=0,xe=me.reasonCode,we=me.properties,De=ye===5?3:2;if(pe==="pubrel"&&(le=1),typeof he!="number")return ne.destroy(new Error("Invalid messageId")),!1;let Fe=null;if(ye===5&&typeof we=="object"){if(Fe=V(ne,we,ue,De),!Fe)return!1;De+=Fe.length}return ne.write(n.ACKS[pe][le][_e][0]),De===3&&(De+=xe!==0?1:-1),H(ne,De),m(ne,he),ye===5&&De!==2&&ne.write(r.from([xe])),Fe!==null?Fe.write():De===4&&ne.write(r.from([0])),!0}function x(ee,ne,ue){l("subscribe: packet: ");let ye=ue?ue.protocolVersion:4,me=ee||{},pe=me.dup?n.DUP_MASK:0,he=me.messageId,_e=me.subscriptions,le=me.properties,xe=0;if(typeof he!="number")return ne.destroy(new Error("Invalid messageId")),!1;xe+=2;let we=null;if(ye===5){if(we=B(ne,le),!we)return!1;xe+=we.length}if(typeof _e=="object"&&_e.length)for(let Fe=0;Fe<_e.length;Fe+=1){let Ce=_e[Fe].topic,Te=_e[Fe].qos;if(typeof Ce!="string")return ne.destroy(new Error("Invalid subscriptions - invalid topic")),!1;if(typeof Te!="number")return ne.destroy(new Error("Invalid subscriptions - invalid qos")),!1;if(ye===5){if(typeof(_e[Fe].nl||!1)!="boolean")return ne.destroy(new Error("Invalid subscriptions - invalid No Local")),!1;if(typeof(_e[Fe].rap||!1)!="boolean")return ne.destroy(new Error("Invalid subscriptions - invalid Retain as Published")),!1;let ke=_e[Fe].rh||0;if(typeof ke!="number"||ke>2)return ne.destroy(new Error("Invalid subscriptions - invalid Retain Handling")),!1}xe+=r.byteLength(Ce)+2+1}else return ne.destroy(new Error("Invalid subscriptions")),!1;l("subscribe: writing to stream: %o",n.SUBSCRIBE_HEADER),ne.write(n.SUBSCRIBE_HEADER[1][pe?1:0][0]),H(ne,xe),m(ne,he),we!==null&&we.write();let De=!0;for(let Fe of _e){let Ce=Fe.topic,Te=Fe.qos,ke=+Fe.nl,Pe=+Fe.rap,Ne=Fe.rh,We;F(ne,Ce),We=n.SUBSCRIBE_OPTIONS_QOS[Te],ye===5&&(We|=ke?n.SUBSCRIBE_OPTIONS_NL:0,We|=Pe?n.SUBSCRIBE_OPTIONS_RAP:0,We|=Ne?n.SUBSCRIBE_OPTIONS_RH[Ne]:0),De=ne.write(r.from([We]))}return De}function E(ee,ne,ue){let ye=ue?ue.protocolVersion:4,me=ee||{},pe=me.messageId,he=me.granted,_e=me.properties,le=0;if(typeof pe!="number")return ne.destroy(new Error("Invalid messageId")),!1;if(le+=2,typeof he=="object"&&he.length)for(let we=0;we<he.length;we+=1){if(typeof he[we]!="number")return ne.destroy(new Error("Invalid qos vector")),!1;le+=1}else return ne.destroy(new Error("Invalid qos vector")),!1;let xe=null;if(ye===5){if(xe=V(ne,_e,ue,le),!xe)return!1;le+=xe.length}return ne.write(n.SUBACK_HEADER),H(ne,le),m(ne,pe),xe!==null&&xe.write(),ne.write(r.from(he))}function k(ee,ne,ue){let ye=ue?ue.protocolVersion:4,me=ee||{},pe=me.messageId,he=me.dup?n.DUP_MASK:0,_e=me.unsubscriptions,le=me.properties,xe=0;if(typeof pe!="number")return ne.destroy(new Error("Invalid messageId")),!1;if(xe+=2,typeof _e=="object"&&_e.length)for(let Fe=0;Fe<_e.length;Fe+=1){if(typeof _e[Fe]!="string")return ne.destroy(new Error("Invalid unsubscriptions")),!1;xe+=r.byteLength(_e[Fe])+2}else return ne.destroy(new Error("Invalid unsubscriptions")),!1;let we=null;if(ye===5){if(we=B(ne,le),!we)return!1;xe+=we.length}ne.write(n.UNSUBSCRIBE_HEADER[1][he?1:0][0]),H(ne,xe),m(ne,pe),we!==null&&we.write();let De=!0;for(let Fe=0;Fe<_e.length;Fe++)De=F(ne,_e[Fe]);return De}function M(ee,ne,ue){let ye=ue?ue.protocolVersion:4,me=ee||{},pe=me.messageId,he=me.dup?n.DUP_MASK:0,_e=me.granted,le=me.properties,xe=me.cmd,we=0,De=2;if(typeof pe!="number")return ne.destroy(new Error("Invalid messageId")),!1;if(ye===5)if(typeof _e=="object"&&_e.length)for(let Ce=0;Ce<_e.length;Ce+=1){if(typeof _e[Ce]!="number")return ne.destroy(new Error("Invalid qos vector")),!1;De+=1}else return ne.destroy(new Error("Invalid qos vector")),!1;let Fe=null;if(ye===5){if(Fe=V(ne,le,ue,De),!Fe)return!1;De+=Fe.length}return ne.write(n.ACKS[xe][we][he][0]),H(ne,De),m(ne,pe),Fe!==null&&Fe.write(),ye===5&&ne.write(r.from(_e)),!0}function P(ee,ne,ue){return ne.write(n.EMPTY[ee.cmd])}function D(ee,ne,ue){let ye=ue?ue.protocolVersion:4,me=ee||{},pe=me.reasonCode,he=me.properties,_e=ye===5?1:0,le=null;if(ye===5){if(le=V(ne,he,ue,_e),!le)return!1;_e+=le.length}return ne.write(r.from([n.codes.disconnect<<4])),H(ne,_e),ye===5&&ne.write(r.from([pe])),le!==null&&le.write(),!0}function R(ee,ne,ue){let ye=ue?ue.protocolVersion:4,me=ee||{},pe=me.reasonCode,he=me.properties,_e=ye===5?1:0;ye!==5&&ne.destroy(new Error("Invalid mqtt version for auth packet"));let le=V(ne,he,ue,_e);return le?(_e+=le.length,ne.write(r.from([n.codes.auth<<4])),H(ne,_e),ne.write(r.from([pe])),le!==null&&le.write(),!0):!1}var A={};function H(ee,ne){if(ne>n.VARBYTEINT_MAX)return ee.destroy(new Error(`Invalid variable byte integer: ${ne}`)),!1;let ue=A[ne];return ue||(ue=h(ne),ne<16384&&(A[ne]=ue)),l("writeVarByteInt: writing to stream: %o",ue),ee.write(ue)}function F(ee,ne){let ue=r.byteLength(ne);return m(ee,ue),l("writeString: %s",ne),ee.write(ne,"utf8")}function z(ee,ne,ue){F(ee,ne),F(ee,ue)}function W(ee,ne){return l("writeNumberCached: number: %d",ne),l("writeNumberCached: %o",c[ne]),ee.write(c[ne])}function q(ee,ne){let ue=u(ne);return l("writeNumberGenerated: %o",ue),ee.write(ue)}function Z(ee,ne){let ue=p(ne);return l("write4ByteNumber: %o",ue),ee.write(ue)}function N(ee,ne){typeof ne=="string"?F(ee,ne):ne?(m(ee,ne.length),ee.write(ne)):m(ee,0)}function B(ee,ne){if(typeof ne!="object"||ne.length!=null)return{length:1,write(){ie(ee,{},0)}};let ue=0;function ye(me,pe){let he=n.propertiesTypes[me],_e=0;switch(he){case"byte":{if(typeof pe!="boolean")return ee.destroy(new Error(`Invalid ${me}: ${pe}`)),!1;_e+=2;break}case"int8":{if(typeof pe!="number"||pe<0||pe>255)return ee.destroy(new Error(`Invalid ${me}: ${pe}`)),!1;_e+=2;break}case"binary":{if(pe&&pe===null)return ee.destroy(new Error(`Invalid ${me}: ${pe}`)),!1;_e+=1+r.byteLength(pe)+2;break}case"int16":{if(typeof pe!="number"||pe<0||pe>65535)return ee.destroy(new Error(`Invalid ${me}: ${pe}`)),!1;_e+=3;break}case"int32":{if(typeof pe!="number"||pe<0||pe>4294967295)return ee.destroy(new Error(`Invalid ${me}: ${pe}`)),!1;_e+=5;break}case"var":{if(typeof pe!="number"||pe<0||pe>268435455)return ee.destroy(new Error(`Invalid ${me}: ${pe}`)),!1;_e+=1+r.byteLength(h(pe));break}case"string":{if(typeof pe!="string")return ee.destroy(new Error(`Invalid ${me}: ${pe}`)),!1;_e+=3+r.byteLength(pe.toString());break}case"pair":{if(typeof pe!="object")return ee.destroy(new Error(`Invalid ${me}: ${pe}`)),!1;_e+=Object.getOwnPropertyNames(pe).reduce((le,xe)=>{let we=pe[xe];return Array.isArray(we)?le+=we.reduce((De,Fe)=>(De+=3+r.byteLength(xe.toString())+2+r.byteLength(Fe.toString()),De),0):le+=3+r.byteLength(xe.toString())+2+r.byteLength(pe[xe].toString()),le},0);break}default:return ee.destroy(new Error(`Invalid property ${me}: ${pe}`)),!1}return _e}if(ne)for(let me in ne){let pe=0,he=0,_e=ne[me];if(Array.isArray(_e))for(let le=0;le<_e.length;le++){if(he=ye(me,_e[le]),!he)return!1;pe+=he}else{if(he=ye(me,_e),!he)return!1;pe=he}if(!pe)return!1;ue+=pe}return{length:r.byteLength(h(ue))+ue,write(){ie(ee,ne,ue)}}}function V(ee,ne,ue,ye){let me=["reasonString","userProperties"],pe=ue&&ue.properties&&ue.properties.maximumPacketSize?ue.properties.maximumPacketSize:0,he=B(ee,ne);if(pe)for(;ye+he.length>pe;){let _e=me.shift();if(_e&&ne[_e])delete ne[_e],he=B(ee,ne);else return!1}return he}function G(ee,ne,ue){switch(n.propertiesTypes[ne]){case"byte":{ee.write(r.from([n.properties[ne]])),ee.write(r.from([+ue]));break}case"int8":{ee.write(r.from([n.properties[ne]])),ee.write(r.from([ue]));break}case"binary":{ee.write(r.from([n.properties[ne]])),N(ee,ue);break}case"int16":{ee.write(r.from([n.properties[ne]])),m(ee,ue);break}case"int32":{ee.write(r.from([n.properties[ne]])),Z(ee,ue);break}case"var":{ee.write(r.from([n.properties[ne]])),H(ee,ue);break}case"string":{ee.write(r.from([n.properties[ne]])),F(ee,ue);break}case"pair":{Object.getOwnPropertyNames(ue).forEach(ye=>{let me=ue[ye];Array.isArray(me)?me.forEach(pe=>{ee.write(r.from([n.properties[ne]])),z(ee,ye.toString(),pe.toString())}):(ee.write(r.from([n.properties[ne]])),z(ee,ye.toString(),me.toString()))});break}default:return ee.destroy(new Error(`Invalid property ${ne} value: ${ue}`)),!1}}function ie(ee,ne,ue){H(ee,ue);for(let ye in ne)if(Object.prototype.hasOwnProperty.call(ne,ye)&&ne[ye]!==null){let me=ne[ye];if(Array.isArray(me))for(let pe=0;pe<me.length;pe++)G(ee,ye,me[pe]);else G(ee,ye,me)}}function ce(ee){return ee?ee instanceof r?ee.length:r.byteLength(ee):0}function fe(ee){return typeof ee=="string"||ee instanceof r}t.exports=y}),_$e=Tn((e,t)=>{pn(),gn(),mn();var n=Xhe(),{EventEmitter:r}=(DS(),eo(zv)),{Buffer:i}=(Ts(),eo(Es));function o(s,l){let c=new a;return n(s,c,l),c.concat()}var a=class extends r{constructor(){super(),this._array=new Array(20),this._i=0}write(s){return this._array[this._i++]=s,!0}concat(){let s=0,l=new Array(this._array.length),c=this._array,u=0,d;for(d=0;d<c.length&&c[d]!==void 0;d++)typeof c[d]!="string"?l[d]=c[d].length:l[d]=i.byteLength(c[d]),s+=l[d];let h=i.allocUnsafe(s);for(d=0;d<c.length&&c[d]!==void 0;d++)typeof c[d]!="string"?(c[d].copy(h,u),u+=l[d]):(h.write(c[d],u),u+=l[d]);return h}destroy(s){s&&this.emit("error",s)}};t.exports=o}),E$e=Tn(e=>{pn(),gn(),mn(),e.parser=C$e().parser,e.generate=_$e(),e.writeToStream=Xhe()}),Qhe=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"__esModule",{value:!0});var t=class{constructor(){this.nextId=Math.max(1,Math.floor(Math.random()*65535))}allocate(){let n=this.nextId++;return this.nextId===65536&&(this.nextId=1),n}getLastAllocated(){return this.nextId===1?65535:this.nextId-1}register(n){return!0}deallocate(n){}clear(){}};e.default=t}),T$e=Tn((e,t)=>{pn(),gn(),mn(),t.exports=r;function n(o){return o instanceof X3?X3.from(o):new o.constructor(o.buffer.slice(),o.byteOffset,o.length)}function r(o){if(o=o||{},o.circles)return i(o);return o.proto?l:s;function a(c,u){for(var d=Object.keys(c),h=new Array(d.length),p=0;p<d.length;p++){var m=d[p],v=c[m];typeof v!="object"||v===null?h[m]=v:v instanceof Date?h[m]=new Date(v):ArrayBuffer.isView(v)?h[m]=n(v):h[m]=u(v)}return h}function s(c){if(typeof c!="object"||c===null)return c;if(c instanceof Date)return new Date(c);if(Array.isArray(c))return a(c,s);if(c instanceof Map)return new Map(a(Array.from(c),s));if(c instanceof Set)return new Set(a(Array.from(c),s));var u={};for(var d in c)if(Object.hasOwnProperty.call(c,d)!==!1){var h=c[d];typeof h!="object"||h===null?u[d]=h:h instanceof Date?u[d]=new Date(h):h instanceof Map?u[d]=new Map(a(Array.from(h),s)):h instanceof Set?u[d]=new Set(a(Array.from(h),s)):ArrayBuffer.isView(h)?u[d]=n(h):u[d]=s(h)}return u}function l(c){if(typeof c!="object"||c===null)return c;if(c instanceof Date)return new Date(c);if(Array.isArray(c))return a(c,l);if(c instanceof Map)return new Map(a(Array.from(c),l));if(c instanceof Set)return new Set(a(Array.from(c),l));var u={};for(var d in c){var h=c[d];typeof h!="object"||h===null?u[d]=h:h instanceof Date?u[d]=new Date(h):h instanceof Map?u[d]=new Map(a(Array.from(h),l)):h instanceof Set?u[d]=new Set(a(Array.from(h),l)):ArrayBuffer.isView(h)?u[d]=n(h):u[d]=l(h)}return u}}function i(o){var a=[],s=[];return o.proto?u:c;function l(d,h){for(var p=Object.keys(d),m=new Array(p.length),v=0;v<p.length;v++){var y=p[v],S=d[y];if(typeof S!="object"||S===null)m[y]=S;else if(S instanceof Date)m[y]=new Date(S);else if(ArrayBuffer.isView(S))m[y]=n(S);else{var b=a.indexOf(S);b!==-1?m[y]=s[b]:m[y]=h(S)}}return m}function c(d){if(typeof d!="object"||d===null)return d;if(d instanceof Date)return new Date(d);if(Array.isArray(d))return l(d,c);if(d instanceof Map)return new Map(l(Array.from(d),c));if(d instanceof Set)return new Set(l(Array.from(d),c));var h={};a.push(d),s.push(h);for(var p in d)if(Object.hasOwnProperty.call(d,p)!==!1){var m=d[p];if(typeof m!="object"||m===null)h[p]=m;else if(m instanceof Date)h[p]=new Date(m);else if(m instanceof Map)h[p]=new Map(l(Array.from(m),c));else if(m instanceof Set)h[p]=new Set(l(Array.from(m),c));else if(ArrayBuffer.isView(m))h[p]=n(m);else{var v=a.indexOf(m);v!==-1?h[p]=s[v]:h[p]=c(m)}}return a.pop(),s.pop(),h}function u(d){if(typeof d!="object"||d===null)return d;if(d instanceof Date)return new Date(d);if(Array.isArray(d))return l(d,u);if(d instanceof Map)return new Map(l(Array.from(d),u));if(d instanceof Set)return new Set(l(Array.from(d),u));var h={};a.push(d),s.push(h);for(var p in d){var m=d[p];if(typeof m!="object"||m===null)h[p]=m;else if(m instanceof Date)h[p]=new Date(m);else if(m instanceof Map)h[p]=new Map(l(Array.from(m),u));else if(m instanceof Set)h[p]=new Set(l(Array.from(m),u));else if(ArrayBuffer.isView(m))h[p]=n(m);else{var v=a.indexOf(m);v!==-1?h[p]=s[v]:h[p]=u(m)}}return a.pop(),s.pop(),h}}}),k$e=Tn((e,t)=>{pn(),gn(),mn(),t.exports=T$e()()}),O$e=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"__esModule",{value:!0}),e.validateTopics=e.validateTopic=void 0;function t(r){let i=r.split("/");for(let o=0;o<i.length;o++)if(i[o]!=="+"){if(i[o]==="#")return o===i.length-1;if(i[o].indexOf("+")!==-1||i[o].indexOf("#")!==-1)return!1}return!0}e.validateTopic=t;function n(r){if(r.length===0)return"empty_topic_list";for(let i=0;i<r.length;i++)if(!t(r[i]))return r[i];return null}e.validateTopics=n}),Zhe=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"__esModule",{value:!0});var t=Uv(),n={objectMode:!0},r={clean:!0},i=class{constructor(o){this.options=o||{},this.options=Object.assign(Object.assign({},r),o),this._inflights=new Map}put(o,a){return this._inflights.set(o.messageId,o),a&&a(),this}createStream(){let o=new t.Readable(n),a=[],s=!1,l=0;return this._inflights.forEach((c,u)=>{a.push(c)}),o._read=()=>{!s&&l<a.length?o.push(a[l++]):o.push(null)},o.destroy=c=>{if(!s)return s=!0,setTimeout(()=>{o.emit("close")},0),o},o}del(o,a){let s=this._inflights.get(o.messageId);return s?(this._inflights.delete(o.messageId),a(null,s)):a&&a(new Error("missing packet")),this}get(o,a){let s=this._inflights.get(o.messageId);return s?a(null,s):a&&a(new Error("missing packet")),this}close(o){this.options.clean&&(this._inflights=null),o&&o()}};e.default=i}),P$e=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"__esModule",{value:!0});var t=[0,16,128,131,135,144,145,151,153],n=(r,i,o)=>{r.log("handlePublish: packet %o",i),o=typeof o<"u"?o:r.noop;let a=i.topic.toString(),s=i.payload,{qos:l}=i,{messageId:c}=i,{options:u}=r;if(r.options.protocolVersion===5){let d;if(i.properties&&(d=i.properties.topicAlias),typeof d<"u")if(a.length===0)if(d>0&&d<=65535){let h=r.topicAliasRecv.getTopicByAlias(d);if(h)a=h,r.log("handlePublish :: topic complemented by alias. topic: %s - alias: %d",a,d);else{r.log("handlePublish :: unregistered topic alias. alias: %d",d),r.emit("error",new Error("Received unregistered Topic Alias"));return}}else{r.log("handlePublish :: topic alias out of range. alias: %d",d),r.emit("error",new Error("Received Topic Alias is out of range"));return}else if(r.topicAliasRecv.put(a,d))r.log("handlePublish :: registered topic: %s - alias: %d",a,d);else{r.log("handlePublish :: topic alias out of range. alias: %d",d),r.emit("error",new Error("Received Topic Alias is out of range"));return}}switch(r.log("handlePublish: qos %d",l),l){case 2:{u.customHandleAcks(a,s,i,(d,h)=>{if(typeof d=="number"&&(h=d,d=null),d)return r.emit("error",d);if(t.indexOf(h)===-1)return r.emit("error",new Error("Wrong reason code for pubrec"));h?r._sendPacket({cmd:"pubrec",messageId:c,reasonCode:h},o):r.incomingStore.put(i,()=>{r._sendPacket({cmd:"pubrec",messageId:c},o)})});break}case 1:{u.customHandleAcks(a,s,i,(d,h)=>{if(typeof d=="number"&&(h=d,d=null),d)return r.emit("error",d);if(t.indexOf(h)===-1)return r.emit("error",new Error("Wrong reason code for puback"));h||r.emit("message",a,s,i),r.handleMessage(i,p=>{if(p)return o&&o(p);r._sendPacket({cmd:"puback",messageId:c,reasonCode:h},o)})});break}case 0:r.emit("message",a,s,i),r.handleMessage(i,o);break;default:r.log("handlePublish: unknown QoS. Doing nothing.");break}};e.default=n}),M$e=Tn((e,t)=>{t.exports={version:"5.10.3"}}),LS=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"__esModule",{value:!0}),e.MQTTJS_VERSION=e.nextTick=e.applyMixin=e.ErrorWithReasonCode=void 0;var t=class Jhe extends Error{constructor(i,o){super(i),this.code=o,Object.setPrototypeOf(this,Jhe.prototype),Object.getPrototypeOf(this).name="ErrorWithReasonCode"}};e.ErrorWithReasonCode=t;function n(r,i,o=!1){var a;let s=[i];for(;;){let l=s[0],c=Object.getPrototypeOf(l);if(c!=null&&c.prototype)s.unshift(c);else break}for(let l of s)for(let c of Object.getOwnPropertyNames(l.prototype))(o||c!=="constructor")&&Object.defineProperty(r.prototype,c,(a=Object.getOwnPropertyDescriptor(l.prototype,c))!==null&&a!==void 0?a:Object.create(null))}e.applyMixin=n,e.nextTick=typeof(Ni==null?void 0:Ni.nextTick)=="function"?Ni.nextTick:r=>{setTimeout(r,0)},e.MQTTJS_VERSION=M$e().version}),F6=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"__esModule",{value:!0}),e.ReasonCodes=void 0;var t=LS();e.ReasonCodes={0:"",1:"Unacceptable protocol version",2:"Identifier rejected",3:"Server unavailable",4:"Bad username or password",5:"Not authorized",16:"No matching subscribers",17:"No subscription existed",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",132:"Unsupported Protocol Version",133:"Client Identifier not valid",134:"Bad User Name or Password",135:"Not authorized",136:"Server unavailable",137:"Server busy",138:"Banned",139:"Server shutting down",140:"Bad authentication method",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",145:"Packet identifier in use",146:"Packet Identifier not found",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"};var n=(r,i)=>{let{messageId:o}=i,a=i.cmd,s=null,l=r.outgoing[o]?r.outgoing[o].cb:null,c=null;if(!l){r.log("_handleAck :: Server sent an ack in error. Ignoring.");return}switch(r.log("_handleAck :: packet type",a),a){case"pubcomp":case"puback":{let u=i.reasonCode;u&&u>0&&u!==16?(c=new t.ErrorWithReasonCode(`Publish error: ${e.ReasonCodes[u]}`,u),r._removeOutgoingAndStoreMessage(o,()=>{l(c,i)})):r._removeOutgoingAndStoreMessage(o,l);break}case"pubrec":{s={cmd:"pubrel",qos:2,messageId:o};let u=i.reasonCode;u&&u>0&&u!==16?(c=new t.ErrorWithReasonCode(`Publish error: ${e.ReasonCodes[u]}`,u),r._removeOutgoingAndStoreMessage(o,()=>{l(c,i)})):r._sendPacket(s);break}case"suback":{delete r.outgoing[o],r.messageIdProvider.deallocate(o);let u=i.granted;for(let d=0;d<u.length;d++){let h=u[d];if(h&128){c=new Error(`Subscribe error: ${e.ReasonCodes[h]}`),c.code=h;let p=r.messageIdToTopic[o];p&&p.forEach(m=>{delete r._resubscribeTopics[m]})}}delete r.messageIdToTopic[o],r._invokeStoreProcessingQueue(),l(c,i);break}case"unsuback":{delete r.outgoing[o],r.messageIdProvider.deallocate(o),r._invokeStoreProcessingQueue(),l(null,i);break}default:r.emit("error",new Error("unrecognized packet type"))}r.disconnecting&&Object.keys(r.outgoing).length===0&&r.emit("outgoingEmpty")};e.default=n}),I$e=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"__esModule",{value:!0});var t=LS(),n=F6(),r=(i,o)=>{let{options:a}=i,s=a.protocolVersion,l=s===5?o.reasonCode:o.returnCode;if(s!==5){let c=new t.ErrorWithReasonCode(`Protocol error: Auth packets are only supported in MQTT 5. Your version:${s}`,l);i.emit("error",c);return}i.handleAuth(o,(c,u)=>{if(c){i.emit("error",c);return}if(l===24)i.reconnecting=!1,i._sendPacket(u);else{let d=new t.ErrorWithReasonCode(`Connection refused: ${n.ReasonCodes[l]}`,l);i.emit("error",d)}})};e.default=r}),$$e=Tn(e=>{var p,m,v,y,S,b,C,_,T,x,E,k,M,P,D,R,A,H,F,z,W,q,Z,N,B,V,_L,ie,ce,fe,ee,epe,ue,ye,me,im,om,EL,p8,m8,_o,TL,y2,Ce;pn(),gn(),mn(),Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=void 0;var t=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,n=new Set,r=typeof Ni=="object"&&Ni?Ni:{},i=(Te,ke,Pe,Ne)=>{typeof r.emitWarning=="function"?r.emitWarning(Te,ke,Pe,Ne):console.error(`[${Pe}] ${ke}: ${Te}`)},o=globalThis.AbortController,a=globalThis.AbortSignal;if(typeof o>"u"){a=class{constructor(){xi(this,"onabort");xi(this,"_onabort",[]);xi(this,"reason");xi(this,"aborted",!1)}addEventListener(Pe,Ne){this._onabort.push(Ne)}},o=class{constructor(){xi(this,"signal",new a);ke()}abort(Pe){var Ne,We;if(!this.signal.aborted){this.signal.reason=Pe,this.signal.aborted=!0;for(let Q of this.signal._onabort)Q(Pe);(We=(Ne=this.signal).onabort)==null||We.call(Ne,Pe)}}};let Te=((p=r.env)==null?void 0:p.LRU_CACHE_IGNORE_AC_WARNING)!=="1",ke=()=>{Te&&(Te=!1,i("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",ke))}}var s=Te=>!n.has(Te),l=Te=>Te&&Te===Math.floor(Te)&&Te>0&&isFinite(Te),c=Te=>l(Te)?Te<=Math.pow(2,8)?Uint8Array:Te<=Math.pow(2,16)?Uint16Array:Te<=Math.pow(2,32)?Uint32Array:Te<=Number.MAX_SAFE_INTEGER?u:null:null,u=class extends Array{constructor(Te){super(Te),this.fill(0)}},d=(m=class{constructor(ke,Pe){xi(this,"heap");xi(this,"length");if(!Xe(m,v))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new Pe(ke),this.length=0}static create(ke){let Pe=c(ke);if(!Pe)return[];Nn(m,v,!0);let Ne=new m(ke,Pe);return Nn(m,v,!1),Ne}push(ke){this.heap[this.length++]=ke}pop(){return this.heap[--this.length]}},v=new WeakMap,sr(m,v,!1),m),h=(Ce=class{constructor(ke){sr(this,V);sr(this,y);sr(this,S);sr(this,b);sr(this,C);sr(this,_);xi(this,"ttl");xi(this,"ttlResolution");xi(this,"ttlAutopurge");xi(this,"updateAgeOnGet");xi(this,"updateAgeOnHas");xi(this,"allowStale");xi(this,"noDisposeOnSet");xi(this,"noUpdateTTL");xi(this,"maxEntrySize");xi(this,"sizeCalculation");xi(this,"noDeleteOnFetchRejection");xi(this,"noDeleteOnStaleGet");xi(this,"allowStaleOnFetchAbort");xi(this,"allowStaleOnFetchRejection");xi(this,"ignoreFetchAbort");sr(this,T);sr(this,x);sr(this,E);sr(this,k);sr(this,M);sr(this,P);sr(this,D);sr(this,R);sr(this,A);sr(this,H);sr(this,F);sr(this,z);sr(this,W);sr(this,q);sr(this,Z);sr(this,N);sr(this,B);sr(this,ie,()=>{});sr(this,ce,()=>{});sr(this,fe,()=>{});sr(this,ee,()=>!1);sr(this,ue,ke=>{});sr(this,ye,(ke,Pe,Ne)=>{});sr(this,me,(ke,Pe,Ne,We)=>{if(Ne||We)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});let{max:Pe=0,ttl:Ne,ttlResolution:We=1,ttlAutopurge:Q,updateAgeOnGet:K,updateAgeOnHas:J,allowStale:be,dispose:Oe,disposeAfter:Se,noDisposeOnSet:Ke,noUpdateTTL:tt,maxSize:se=0,maxEntrySize:ze=0,sizeCalculation:Ye,fetchMethod:Ue,noDeleteOnFetchRejection:Je,noDeleteOnStaleGet:Ze,allowStaleOnFetchRejection:rt,allowStaleOnFetchAbort:qt,ignoreFetchAbort:St}=ke;if(Pe!==0&&!l(Pe))throw new TypeError("max option must be a nonnegative integer");let Ot=Pe?c(Pe):Array;if(!Ot)throw new Error("invalid max value: "+Pe);if(Nn(this,y,Pe),Nn(this,S,se),this.maxEntrySize=ze||Xe(this,S),this.sizeCalculation=Ye,this.sizeCalculation){if(!Xe(this,S)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(Ue!==void 0&&typeof Ue!="function")throw new TypeError("fetchMethod must be a function if specified");if(Nn(this,_,Ue),Nn(this,N,!!Ue),Nn(this,E,new Map),Nn(this,k,new Array(Pe).fill(void 0)),Nn(this,M,new Array(Pe).fill(void 0)),Nn(this,P,new Ot(Pe)),Nn(this,D,new Ot(Pe)),Nn(this,R,0),Nn(this,A,0),Nn(this,H,d.create(Pe)),Nn(this,T,0),Nn(this,x,0),typeof Oe=="function"&&Nn(this,b,Oe),typeof Se=="function"?(Nn(this,C,Se),Nn(this,F,[])):(Nn(this,C,void 0),Nn(this,F,void 0)),Nn(this,Z,!!Xe(this,b)),Nn(this,B,!!Xe(this,C)),this.noDisposeOnSet=!!Ke,this.noUpdateTTL=!!tt,this.noDeleteOnFetchRejection=!!Je,this.allowStaleOnFetchRejection=!!rt,this.allowStaleOnFetchAbort=!!qt,this.ignoreFetchAbort=!!St,this.maxEntrySize!==0){if(Xe(this,S)!==0&&!l(Xe(this,S)))throw new TypeError("maxSize must be a positive integer if specified");if(!l(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");Jn(this,V,epe).call(this)}if(this.allowStale=!!be,this.noDeleteOnStaleGet=!!Ze,this.updateAgeOnGet=!!K,this.updateAgeOnHas=!!J,this.ttlResolution=l(We)||We===0?We:1,this.ttlAutopurge=!!Q,this.ttl=Ne||0,this.ttl){if(!l(this.ttl))throw new TypeError("ttl must be a positive integer if specified");Jn(this,V,_L).call(this)}if(Xe(this,y)===0&&this.ttl===0&&Xe(this,S)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!Xe(this,y)&&!Xe(this,S)){let Bt="LRU_CACHE_UNBOUNDED";s(Bt)&&(n.add(Bt),i("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",Bt,Ce))}}static unsafeExposeInternals(ke){return{starts:Xe(ke,W),ttls:Xe(ke,q),sizes:Xe(ke,z),keyMap:Xe(ke,E),keyList:Xe(ke,k),valList:Xe(ke,M),next:Xe(ke,P),prev:Xe(ke,D),get head(){return Xe(ke,R)},get tail(){return Xe(ke,A)},free:Xe(ke,H),isBackgroundFetch:Pe=>{var Ne;return Jn(Ne=ke,V,_o).call(Ne,Pe)},backgroundFetch:(Pe,Ne,We,Q)=>{var K;return Jn(K=ke,V,m8).call(K,Pe,Ne,We,Q)},moveToTail:Pe=>{var Ne;return Jn(Ne=ke,V,y2).call(Ne,Pe)},indexes:Pe=>{var Ne;return Jn(Ne=ke,V,im).call(Ne,Pe)},rindexes:Pe=>{var Ne;return Jn(Ne=ke,V,om).call(Ne,Pe)},isStale:Pe=>{var Ne;return Xe(Ne=ke,ee).call(Ne,Pe)}}}get max(){return Xe(this,y)}get maxSize(){return Xe(this,S)}get calculatedSize(){return Xe(this,x)}get size(){return Xe(this,T)}get fetchMethod(){return Xe(this,_)}get dispose(){return Xe(this,b)}get disposeAfter(){return Xe(this,C)}getRemainingTTL(ke){return Xe(this,E).has(ke)?1/0:0}*entries(){for(let ke of Jn(this,V,im).call(this))Xe(this,M)[ke]!==void 0&&Xe(this,k)[ke]!==void 0&&!Jn(this,V,_o).call(this,Xe(this,M)[ke])&&(yield[Xe(this,k)[ke],Xe(this,M)[ke]])}*rentries(){for(let ke of Jn(this,V,om).call(this))Xe(this,M)[ke]!==void 0&&Xe(this,k)[ke]!==void 0&&!Jn(this,V,_o).call(this,Xe(this,M)[ke])&&(yield[Xe(this,k)[ke],Xe(this,M)[ke]])}*keys(){for(let ke of Jn(this,V,im).call(this)){let Pe=Xe(this,k)[ke];Pe!==void 0&&!Jn(this,V,_o).call(this,Xe(this,M)[ke])&&(yield Pe)}}*rkeys(){for(let ke of Jn(this,V,om).call(this)){let Pe=Xe(this,k)[ke];Pe!==void 0&&!Jn(this,V,_o).call(this,Xe(this,M)[ke])&&(yield Pe)}}*values(){for(let ke of Jn(this,V,im).call(this))Xe(this,M)[ke]!==void 0&&!Jn(this,V,_o).call(this,Xe(this,M)[ke])&&(yield Xe(this,M)[ke])}*rvalues(){for(let ke of Jn(this,V,om).call(this))Xe(this,M)[ke]!==void 0&&!Jn(this,V,_o).call(this,Xe(this,M)[ke])&&(yield Xe(this,M)[ke])}[Symbol.iterator](){return this.entries()}find(ke,Pe={}){for(let Ne of Jn(this,V,im).call(this)){let We=Xe(this,M)[Ne],Q=Jn(this,V,_o).call(this,We)?We.__staleWhileFetching:We;if(Q!==void 0&&ke(Q,Xe(this,k)[Ne],this))return this.get(Xe(this,k)[Ne],Pe)}}forEach(ke,Pe=this){for(let Ne of Jn(this,V,im).call(this)){let We=Xe(this,M)[Ne],Q=Jn(this,V,_o).call(this,We)?We.__staleWhileFetching:We;Q!==void 0&&ke.call(Pe,Q,Xe(this,k)[Ne],this)}}rforEach(ke,Pe=this){for(let Ne of Jn(this,V,om).call(this)){let We=Xe(this,M)[Ne],Q=Jn(this,V,_o).call(this,We)?We.__staleWhileFetching:We;Q!==void 0&&ke.call(Pe,Q,Xe(this,k)[Ne],this)}}purgeStale(){let ke=!1;for(let Pe of Jn(this,V,om).call(this,{allowStale:!0}))Xe(this,ee).call(this,Pe)&&(this.delete(Xe(this,k)[Pe]),ke=!0);return ke}dump(){let ke=[];for(let Pe of Jn(this,V,im).call(this,{allowStale:!0})){let Ne=Xe(this,k)[Pe],We=Xe(this,M)[Pe],Q=Jn(this,V,_o).call(this,We)?We.__staleWhileFetching:We;if(Q===void 0||Ne===void 0)continue;let K={value:Q};if(Xe(this,q)&&Xe(this,W)){K.ttl=Xe(this,q)[Pe];let J=t.now()-Xe(this,W)[Pe];K.start=Math.floor(Date.now()-J)}Xe(this,z)&&(K.size=Xe(this,z)[Pe]),ke.unshift([Ne,K])}return ke}load(ke){this.clear();for(let[Pe,Ne]of ke){if(Ne.start){let We=Date.now()-Ne.start;Ne.start=t.now()-We}this.set(Pe,Ne.value,Ne)}}set(ke,Pe,Ne={}){var tt,se,ze,Ye,Ue;if(Pe===void 0)return this.delete(ke),this;let{ttl:We=this.ttl,start:Q,noDisposeOnSet:K=this.noDisposeOnSet,sizeCalculation:J=this.sizeCalculation,status:be}=Ne,{noUpdateTTL:Oe=this.noUpdateTTL}=Ne,Se=Xe(this,me).call(this,ke,Pe,Ne.size||0,J);if(this.maxEntrySize&&Se>this.maxEntrySize)return be&&(be.set="miss",be.maxEntrySizeExceeded=!0),this.delete(ke),this;let Ke=Xe(this,T)===0?void 0:Xe(this,E).get(ke);if(Ke===void 0)Ke=Xe(this,T)===0?Xe(this,A):Xe(this,H).length!==0?Xe(this,H).pop():Xe(this,T)===Xe(this,y)?Jn(this,V,p8).call(this,!1):Xe(this,T),Xe(this,k)[Ke]=ke,Xe(this,M)[Ke]=Pe,Xe(this,E).set(ke,Ke),Xe(this,P)[Xe(this,A)]=Ke,Xe(this,D)[Ke]=Xe(this,A),Nn(this,A,Ke),jg(this,T)._++,Xe(this,ye).call(this,Ke,Se,be),be&&(be.set="add"),Oe=!1;else{Jn(this,V,y2).call(this,Ke);let Je=Xe(this,M)[Ke];if(Pe!==Je){if(Xe(this,N)&&Jn(this,V,_o).call(this,Je)){Je.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:Ze}=Je;Ze!==void 0&&!K&&(Xe(this,Z)&&((tt=Xe(this,b))==null||tt.call(this,Ze,ke,"set")),Xe(this,B)&&((se=Xe(this,F))==null||se.push([Ze,ke,"set"])))}else K||(Xe(this,Z)&&((ze=Xe(this,b))==null||ze.call(this,Je,ke,"set")),Xe(this,B)&&((Ye=Xe(this,F))==null||Ye.push([Je,ke,"set"])));if(Xe(this,ue).call(this,Ke),Xe(this,ye).call(this,Ke,Se,be),Xe(this,M)[Ke]=Pe,be){be.set="replace";let Ze=Je&&Jn(this,V,_o).call(this,Je)?Je.__staleWhileFetching:Je;Ze!==void 0&&(be.oldValue=Ze)}}else be&&(be.set="update")}if(We!==0&&!Xe(this,q)&&Jn(this,V,_L).call(this),Xe(this,q)&&(Oe||Xe(this,fe).call(this,Ke,We,Q),be&&Xe(this,ce).call(this,be,Ke)),!K&&Xe(this,B)&&Xe(this,F)){let Je=Xe(this,F),Ze;for(;Ze=Je==null?void 0:Je.shift();)(Ue=Xe(this,C))==null||Ue.call(this,...Ze)}return this}pop(){var ke;try{for(;Xe(this,T);){let Pe=Xe(this,M)[Xe(this,R)];if(Jn(this,V,p8).call(this,!0),Jn(this,V,_o).call(this,Pe)){if(Pe.__staleWhileFetching)return Pe.__staleWhileFetching}else if(Pe!==void 0)return Pe}}finally{if(Xe(this,B)&&Xe(this,F)){let Pe=Xe(this,F),Ne;for(;Ne=Pe==null?void 0:Pe.shift();)(ke=Xe(this,C))==null||ke.call(this,...Ne)}}}has(ke,Pe={}){let{updateAgeOnHas:Ne=this.updateAgeOnHas,status:We}=Pe,Q=Xe(this,E).get(ke);if(Q!==void 0){let K=Xe(this,M)[Q];if(Jn(this,V,_o).call(this,K)&&K.__staleWhileFetching===void 0)return!1;if(Xe(this,ee).call(this,Q))We&&(We.has="stale",Xe(this,ce).call(this,We,Q));else return Ne&&Xe(this,ie).call(this,Q),We&&(We.has="hit",Xe(this,ce).call(this,We,Q)),!0}else We&&(We.has="miss");return!1}peek(ke,Pe={}){let{allowStale:Ne=this.allowStale}=Pe,We=Xe(this,E).get(ke);if(We!==void 0&&(Ne||!Xe(this,ee).call(this,We))){let Q=Xe(this,M)[We];return Jn(this,V,_o).call(this,Q)?Q.__staleWhileFetching:Q}}async fetch(ke,Pe={}){let{allowStale:Ne=this.allowStale,updateAgeOnGet:We=this.updateAgeOnGet,noDeleteOnStaleGet:Q=this.noDeleteOnStaleGet,ttl:K=this.ttl,noDisposeOnSet:J=this.noDisposeOnSet,size:be=0,sizeCalculation:Oe=this.sizeCalculation,noUpdateTTL:Se=this.noUpdateTTL,noDeleteOnFetchRejection:Ke=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:tt=this.allowStaleOnFetchRejection,ignoreFetchAbort:se=this.ignoreFetchAbort,allowStaleOnFetchAbort:ze=this.allowStaleOnFetchAbort,context:Ye,forceRefresh:Ue=!1,status:Je,signal:Ze}=Pe;if(!Xe(this,N))return Je&&(Je.fetch="get"),this.get(ke,{allowStale:Ne,updateAgeOnGet:We,noDeleteOnStaleGet:Q,status:Je});let rt={allowStale:Ne,updateAgeOnGet:We,noDeleteOnStaleGet:Q,ttl:K,noDisposeOnSet:J,size:be,sizeCalculation:Oe,noUpdateTTL:Se,noDeleteOnFetchRejection:Ke,allowStaleOnFetchRejection:tt,allowStaleOnFetchAbort:ze,ignoreFetchAbort:se,status:Je,signal:Ze},qt=Xe(this,E).get(ke);if(qt===void 0){Je&&(Je.fetch="miss");let St=Jn(this,V,m8).call(this,ke,qt,rt,Ye);return St.__returned=St}else{let St=Xe(this,M)[qt];if(Jn(this,V,_o).call(this,St)){let an=Ne&&St.__staleWhileFetching!==void 0;return Je&&(Je.fetch="inflight",an&&(Je.returnedStale=!0)),an?St.__staleWhileFetching:St.__returned=St}let Ot=Xe(this,ee).call(this,qt);if(!Ue&&!Ot)return Je&&(Je.fetch="hit"),Jn(this,V,y2).call(this,qt),We&&Xe(this,ie).call(this,qt),Je&&Xe(this,ce).call(this,Je,qt),St;let Bt=Jn(this,V,m8).call(this,ke,qt,rt,Ye),Dt=Bt.__staleWhileFetching!==void 0&&Ne;return Je&&(Je.fetch=Ot?"stale":"refresh",Dt&&Ot&&(Je.returnedStale=!0)),Dt?Bt.__staleWhileFetching:Bt.__returned=Bt}}get(ke,Pe={}){let{allowStale:Ne=this.allowStale,updateAgeOnGet:We=this.updateAgeOnGet,noDeleteOnStaleGet:Q=this.noDeleteOnStaleGet,status:K}=Pe,J=Xe(this,E).get(ke);if(J!==void 0){let be=Xe(this,M)[J],Oe=Jn(this,V,_o).call(this,be);return K&&Xe(this,ce).call(this,K,J),Xe(this,ee).call(this,J)?(K&&(K.get="stale"),Oe?(K&&Ne&&be.__staleWhileFetching!==void 0&&(K.returnedStale=!0),Ne?be.__staleWhileFetching:void 0):(Q||this.delete(ke),K&&Ne&&(K.returnedStale=!0),Ne?be:void 0)):(K&&(K.get="hit"),Oe?be.__staleWhileFetching:(Jn(this,V,y2).call(this,J),We&&Xe(this,ie).call(this,J),be))}else K&&(K.get="miss")}delete(ke){var Ne,We,Q,K;let Pe=!1;if(Xe(this,T)!==0){let J=Xe(this,E).get(ke);if(J!==void 0)if(Pe=!0,Xe(this,T)===1)this.clear();else{Xe(this,ue).call(this,J);let be=Xe(this,M)[J];Jn(this,V,_o).call(this,be)?be.__abortController.abort(new Error("deleted")):(Xe(this,Z)||Xe(this,B))&&(Xe(this,Z)&&((Ne=Xe(this,b))==null||Ne.call(this,be,ke,"delete")),Xe(this,B)&&((We=Xe(this,F))==null||We.push([be,ke,"delete"]))),Xe(this,E).delete(ke),Xe(this,k)[J]=void 0,Xe(this,M)[J]=void 0,J===Xe(this,A)?Nn(this,A,Xe(this,D)[J]):J===Xe(this,R)?Nn(this,R,Xe(this,P)[J]):(Xe(this,P)[Xe(this,D)[J]]=Xe(this,P)[J],Xe(this,D)[Xe(this,P)[J]]=Xe(this,D)[J]),jg(this,T)._--,Xe(this,H).push(J)}}if(Xe(this,B)&&((Q=Xe(this,F))!=null&&Q.length)){let J=Xe(this,F),be;for(;be=J==null?void 0:J.shift();)(K=Xe(this,C))==null||K.call(this,...be)}return Pe}clear(){var ke,Pe,Ne;for(let We of Jn(this,V,om).call(this,{allowStale:!0})){let Q=Xe(this,M)[We];if(Jn(this,V,_o).call(this,Q))Q.__abortController.abort(new Error("deleted"));else{let K=Xe(this,k)[We];Xe(this,Z)&&((ke=Xe(this,b))==null||ke.call(this,Q,K,"delete")),Xe(this,B)&&((Pe=Xe(this,F))==null||Pe.push([Q,K,"delete"]))}}if(Xe(this,E).clear(),Xe(this,M).fill(void 0),Xe(this,k).fill(void 0),Xe(this,q)&&Xe(this,W)&&(Xe(this,q).fill(0),Xe(this,W).fill(0)),Xe(this,z)&&Xe(this,z).fill(0),Nn(this,R,0),Nn(this,A,0),Xe(this,H).length=0,Nn(this,x,0),Nn(this,T,0),Xe(this,B)&&Xe(this,F)){let We=Xe(this,F),Q;for(;Q=We==null?void 0:We.shift();)(Ne=Xe(this,C))==null||Ne.call(this,...Q)}}},y=new WeakMap,S=new WeakMap,b=new WeakMap,C=new WeakMap,_=new WeakMap,T=new WeakMap,x=new WeakMap,E=new WeakMap,k=new WeakMap,M=new WeakMap,P=new WeakMap,D=new WeakMap,R=new WeakMap,A=new WeakMap,H=new WeakMap,F=new WeakMap,z=new WeakMap,W=new WeakMap,q=new WeakMap,Z=new WeakMap,N=new WeakMap,B=new WeakMap,V=new WeakSet,_L=function(){let ke=new u(Xe(this,y)),Pe=new u(Xe(this,y));Nn(this,q,ke),Nn(this,W,Pe),Nn(this,fe,(Q,K,J=t.now())=>{if(Pe[Q]=K!==0?J:0,ke[Q]=K,K!==0&&this.ttlAutopurge){let be=setTimeout(()=>{Xe(this,ee).call(this,Q)&&this.delete(Xe(this,k)[Q])},K+1);be.unref&&be.unref()}}),Nn(this,ie,Q=>{Pe[Q]=ke[Q]!==0?t.now():0}),Nn(this,ce,(Q,K)=>{if(ke[K]){let J=ke[K],be=Pe[K];Q.ttl=J,Q.start=be,Q.now=Ne||We();let Oe=Q.now-be;Q.remainingTTL=J-Oe}});let Ne=0,We=()=>{let Q=t.now();if(this.ttlResolution>0){Ne=Q;let K=setTimeout(()=>Ne=0,this.ttlResolution);K.unref&&K.unref()}return Q};this.getRemainingTTL=Q=>{let K=Xe(this,E).get(Q);if(K===void 0)return 0;let J=ke[K],be=Pe[K];if(J===0||be===0)return 1/0;let Oe=(Ne||We())-be;return J-Oe},Nn(this,ee,Q=>ke[Q]!==0&&Pe[Q]!==0&&(Ne||We())-Pe[Q]>ke[Q])},ie=new WeakMap,ce=new WeakMap,fe=new WeakMap,ee=new WeakMap,epe=function(){let ke=new u(Xe(this,y));Nn(this,x,0),Nn(this,z,ke),Nn(this,ue,Pe=>{Nn(this,x,Xe(this,x)-ke[Pe]),ke[Pe]=0}),Nn(this,me,(Pe,Ne,We,Q)=>{if(Jn(this,V,_o).call(this,Ne))return 0;if(!l(We))if(Q){if(typeof Q!="function")throw new TypeError("sizeCalculation must be a function");if(We=Q(Ne,Pe),!l(We))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return We}),Nn(this,ye,(Pe,Ne,We)=>{if(ke[Pe]=Ne,Xe(this,S)){let Q=Xe(this,S)-ke[Pe];for(;Xe(this,x)>Q;)Jn(this,V,p8).call(this,!0)}Nn(this,x,Xe(this,x)+ke[Pe]),We&&(We.entrySize=Ne,We.totalCalculatedSize=Xe(this,x))})},ue=new WeakMap,ye=new WeakMap,me=new WeakMap,im=function*({allowStale:ke=this.allowStale}={}){if(Xe(this,T))for(let Pe=Xe(this,A);!(!Jn(this,V,EL).call(this,Pe)||((ke||!Xe(this,ee).call(this,Pe))&&(yield Pe),Pe===Xe(this,R)));)Pe=Xe(this,D)[Pe]},om=function*({allowStale:ke=this.allowStale}={}){if(Xe(this,T))for(let Pe=Xe(this,R);!(!Jn(this,V,EL).call(this,Pe)||((ke||!Xe(this,ee).call(this,Pe))&&(yield Pe),Pe===Xe(this,A)));)Pe=Xe(this,P)[Pe]},EL=function(ke){return ke!==void 0&&Xe(this,E).get(Xe(this,k)[ke])===ke},p8=function(ke){var Q,K;let Pe=Xe(this,R),Ne=Xe(this,k)[Pe],We=Xe(this,M)[Pe];return Xe(this,N)&&Jn(this,V,_o).call(this,We)?We.__abortController.abort(new Error("evicted")):(Xe(this,Z)||Xe(this,B))&&(Xe(this,Z)&&((Q=Xe(this,b))==null||Q.call(this,We,Ne,"evict")),Xe(this,B)&&((K=Xe(this,F))==null||K.push([We,Ne,"evict"]))),Xe(this,ue).call(this,Pe),ke&&(Xe(this,k)[Pe]=void 0,Xe(this,M)[Pe]=void 0,Xe(this,H).push(Pe)),Xe(this,T)===1?(Nn(this,R,Nn(this,A,0)),Xe(this,H).length=0):Nn(this,R,Xe(this,P)[Pe]),Xe(this,E).delete(Ne),jg(this,T)._--,Pe},m8=function(ke,Pe,Ne,We){let Q=Pe===void 0?void 0:Xe(this,M)[Pe];if(Jn(this,V,_o).call(this,Q))return Q;let K=new o,{signal:J}=Ne;J==null||J.addEventListener("abort",()=>K.abort(J.reason),{signal:K.signal});let be={signal:K.signal,options:Ne,context:We},Oe=(Ye,Ue=!1)=>{let{aborted:Je}=K.signal,Ze=Ne.ignoreFetchAbort&&Ye!==void 0;if(Ne.status&&(Je&&!Ue?(Ne.status.fetchAborted=!0,Ne.status.fetchError=K.signal.reason,Ze&&(Ne.status.fetchAbortIgnored=!0)):Ne.status.fetchResolved=!0),Je&&!Ze&&!Ue)return Ke(K.signal.reason);let rt=se;return Xe(this,M)[Pe]===se&&(Ye===void 0?rt.__staleWhileFetching?Xe(this,M)[Pe]=rt.__staleWhileFetching:this.delete(ke):(Ne.status&&(Ne.status.fetchUpdated=!0),this.set(ke,Ye,be.options))),Ye},Se=Ye=>(Ne.status&&(Ne.status.fetchRejected=!0,Ne.status.fetchError=Ye),Ke(Ye)),Ke=Ye=>{let{aborted:Ue}=K.signal,Je=Ue&&Ne.allowStaleOnFetchAbort,Ze=Je||Ne.allowStaleOnFetchRejection,rt=Ze||Ne.noDeleteOnFetchRejection,qt=se;if(Xe(this,M)[Pe]===se&&(!rt||qt.__staleWhileFetching===void 0?this.delete(ke):Je||(Xe(this,M)[Pe]=qt.__staleWhileFetching)),Ze)return Ne.status&&qt.__staleWhileFetching!==void 0&&(Ne.status.returnedStale=!0),qt.__staleWhileFetching;if(qt.__returned===qt)throw Ye},tt=(Ye,Ue)=>{var Ze;let Je=(Ze=Xe(this,_))==null?void 0:Ze.call(this,ke,Q,be);Je&&Je instanceof Promise&&Je.then(rt=>Ye(rt===void 0?void 0:rt),Ue),K.signal.addEventListener("abort",()=>{(!Ne.ignoreFetchAbort||Ne.allowStaleOnFetchAbort)&&(Ye(void 0),Ne.allowStaleOnFetchAbort&&(Ye=rt=>Oe(rt,!0)))})};Ne.status&&(Ne.status.fetchDispatched=!0);let se=new Promise(tt).then(Oe,Se),ze=Object.assign(se,{__abortController:K,__staleWhileFetching:Q,__returned:void 0});return Pe===void 0?(this.set(ke,ze,{...be.options,status:void 0}),Pe=Xe(this,E).get(ke)):Xe(this,M)[Pe]=ze,ze},_o=function(ke){if(!Xe(this,N))return!1;let Pe=ke;return!!Pe&&Pe instanceof Promise&&Pe.hasOwnProperty("__staleWhileFetching")&&Pe.__abortController instanceof o},TL=function(ke,Pe){Xe(this,D)[Pe]=ke,Xe(this,P)[ke]=Pe},y2=function(ke){ke!==Xe(this,A)&&(ke===Xe(this,R)?Nn(this,R,Xe(this,P)[ke]):Jn(this,V,TL).call(this,Xe(this,D)[ke],Xe(this,P)[ke]),Jn(this,V,TL).call(this,Xe(this,A),ke),Nn(this,A,ke))},Ce);e.LRUCache=h}),xp=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"t",{value:!0}),e.ContainerIterator=e.Container=e.Base=void 0;var t=class{constructor(i=0){this.iteratorType=i}equals(i){return this.o===i.o}};e.ContainerIterator=t;var n=class{constructor(){this.i=0}get length(){return this.i}size(){return this.i}empty(){return this.i===0}};e.Base=n;var r=class extends n{};e.Container=r}),R$e=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=xp(),n=class extends t.Base{constructor(i=[]){super(),this.S=[];let o=this;i.forEach(function(a){o.push(a)})}clear(){this.i=0,this.S=[]}push(i){return this.S.push(i),this.i+=1,this.i}pop(){if(this.i!==0)return this.i-=1,this.S.pop()}top(){return this.S[this.i-1]}},r=n;e.default=r}),A$e=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=xp(),n=class extends t.Base{constructor(i=[]){super(),this.j=0,this.q=[];let o=this;i.forEach(function(a){o.push(a)})}clear(){this.q=[],this.i=this.j=0}push(i){let o=this.q.length;if(this.j/o>.5&&this.j+this.i>=o&&o>4096){let a=this.i;for(let s=0;s<a;++s)this.q[s]=this.q[this.j+s];this.j=0,this.q[this.i]=i}else this.q[this.j+this.i]=i;return++this.i}pop(){if(this.i===0)return;let i=this.q[this.j++];return this.i-=1,i}front(){if(this.i!==0)return this.q[this.j]}},r=n;e.default=r}),N$e=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=xp(),n=class extends t.Base{constructor(i=[],o=function(s,l){return s>l?-1:s<l?1:0},a=!0){if(super(),this.v=o,Array.isArray(i))this.C=a?[...i]:i;else{this.C=[];let l=this;i.forEach(function(c){l.C.push(c)})}this.i=this.C.length;let s=this.i>>1;for(let l=this.i-1>>1;l>=0;--l)this.k(l,s)}m(i){let o=this.C[i];for(;i>0;){let a=i-1>>1,s=this.C[a];if(this.v(s,o)<=0)break;this.C[i]=s,i=a}this.C[i]=o}k(i,o){let a=this.C[i];for(;i<o;){let s=i<<1|1,l=s+1,c=this.C[s];if(l<this.i&&this.v(c,this.C[l])>0&&(s=l,c=this.C[l]),this.v(c,a)>=0)break;this.C[i]=c,i=s}this.C[i]=a}clear(){this.i=0,this.C.length=0}push(i){this.C.push(i),this.m(this.i),this.i+=1}pop(){if(this.i===0)return;let i=this.C[0],o=this.C.pop();return this.i-=1,this.i&&(this.C[0]=o,this.k(0,this.i>>1)),i}top(){return this.C[0]}find(i){return this.C.indexOf(i)>=0}remove(i){let o=this.C.indexOf(i);return o<0?!1:(o===0?this.pop():o===this.i-1?(this.C.pop(),this.i-=1):(this.C.splice(o,1,this.C.pop()),this.i-=1,this.m(o),this.k(o,this.i>>1)),!0)}updateItem(i){let o=this.C.indexOf(i);return o<0?!1:(this.m(o),this.k(o,this.i>>1),!0)}toArray(){return[...this.C]}},r=n;e.default=r}),Ez=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=xp(),n=class extends t.Container{},r=n;e.default=r}),wp=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"t",{value:!0}),e.throwIteratorAccessError=t;function t(){throw new RangeError("Iterator access denied!")}}),tpe=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"t",{value:!0}),e.RandomIterator=void 0;var t=xp(),n=wp(),r=class extends t.ContainerIterator{constructor(i,o){super(o),this.o=i,this.iteratorType===0?(this.pre=function(){return this.o===0&&(0,n.throwIteratorAccessError)(),this.o-=1,this},this.next=function(){return this.o===this.container.size()&&(0,n.throwIteratorAccessError)(),this.o+=1,this}):(this.pre=function(){return this.o===this.container.size()-1&&(0,n.throwIteratorAccessError)(),this.o+=1,this},this.next=function(){return this.o===-1&&(0,n.throwIteratorAccessError)(),this.o-=1,this})}get pointer(){return this.container.getElementByPos(this.o)}set pointer(i){this.container.setElementByPos(this.o,i)}};e.RandomIterator=r}),D$e=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=r(Ez()),n=tpe();function r(s){return s&&s.t?s:{default:s}}var i=class npe extends n.RandomIterator{constructor(l,c,u){super(l,u),this.container=c}copy(){return new npe(this.o,this.container,this.iteratorType)}},o=class extends t.default{constructor(s=[],l=!0){if(super(),Array.isArray(s))this.J=l?[...s]:s,this.i=s.length;else{this.J=[];let c=this;s.forEach(function(u){c.pushBack(u)})}}clear(){this.i=0,this.J.length=0}begin(){return new i(0,this)}end(){return new i(this.i,this)}rBegin(){return new i(this.i-1,this,1)}rEnd(){return new i(-1,this,1)}front(){return this.J[0]}back(){return this.J[this.i-1]}getElementByPos(s){if(s<0||s>this.i-1)throw new RangeError;return this.J[s]}eraseElementByPos(s){if(s<0||s>this.i-1)throw new RangeError;return this.J.splice(s,1),this.i-=1,this.i}eraseElementByValue(s){let l=0;for(let c=0;c<this.i;++c)this.J[c]!==s&&(this.J[l++]=this.J[c]);return this.i=this.J.length=l,this.i}eraseElementByIterator(s){let l=s.o;return s=s.next(),this.eraseElementByPos(l),s}pushBack(s){return this.J.push(s),this.i+=1,this.i}popBack(){if(this.i!==0)return this.i-=1,this.J.pop()}setElementByPos(s,l){if(s<0||s>this.i-1)throw new RangeError;this.J[s]=l}insert(s,l,c=1){if(s<0||s>this.i)throw new RangeError;return this.J.splice(s,0,...new Array(c).fill(l)),this.i+=c,this.i}find(s){for(let l=0;l<this.i;++l)if(this.J[l]===s)return new i(l,this);return this.end()}reverse(){this.J.reverse()}unique(){let s=1;for(let l=1;l<this.i;++l)this.J[l]!==this.J[l-1]&&(this.J[s++]=this.J[l]);return this.i=this.J.length=s,this.i}sort(s){this.J.sort(s)}forEach(s){for(let l=0;l<this.i;++l)s(this.J[l],l,this)}[Symbol.iterator](){return(function*(){yield*this.J}).bind(this)()}},a=o;e.default=a}),L$e=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=i(Ez()),n=xp(),r=wp();function i(l){return l&&l.t?l:{default:l}}var o=class rpe extends n.ContainerIterator{constructor(c,u,d,h){super(h),this.o=c,this.h=u,this.container=d,this.iteratorType===0?(this.pre=function(){return this.o.L===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.L,this},this.next=function(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.B,this}):(this.pre=function(){return this.o.B===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.B,this},this.next=function(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.L,this})}get pointer(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o.l}set pointer(c){this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o.l=c}copy(){return new rpe(this.o,this.h,this.container,this.iteratorType)}},a=class extends t.default{constructor(l=[]){super(),this.h={},this.p=this._=this.h.L=this.h.B=this.h;let c=this;l.forEach(function(u){c.pushBack(u)})}V(l){let{L:c,B:u}=l;c.B=u,u.L=c,l===this.p&&(this.p=u),l===this._&&(this._=c),this.i-=1}G(l,c){let u=c.B,d={l,L:c,B:u};c.B=d,u.L=d,c===this.h&&(this.p=d),u===this.h&&(this._=d),this.i+=1}clear(){this.i=0,this.p=this._=this.h.L=this.h.B=this.h}begin(){return new o(this.p,this.h,this)}end(){return new o(this.h,this.h,this)}rBegin(){return new o(this._,this.h,this,1)}rEnd(){return new o(this.h,this.h,this,1)}front(){return this.p.l}back(){return this._.l}getElementByPos(l){if(l<0||l>this.i-1)throw new RangeError;let c=this.p;for(;l--;)c=c.B;return c.l}eraseElementByPos(l){if(l<0||l>this.i-1)throw new RangeError;let c=this.p;for(;l--;)c=c.B;return this.V(c),this.i}eraseElementByValue(l){let c=this.p;for(;c!==this.h;)c.l===l&&this.V(c),c=c.B;return this.i}eraseElementByIterator(l){let c=l.o;return c===this.h&&(0,r.throwIteratorAccessError)(),l=l.next(),this.V(c),l}pushBack(l){return this.G(l,this._),this.i}popBack(){if(this.i===0)return;let l=this._.l;return this.V(this._),l}pushFront(l){return this.G(l,this.h),this.i}popFront(){if(this.i===0)return;let l=this.p.l;return this.V(this.p),l}setElementByPos(l,c){if(l<0||l>this.i-1)throw new RangeError;let u=this.p;for(;l--;)u=u.B;u.l=c}insert(l,c,u=1){if(l<0||l>this.i)throw new RangeError;if(u<=0)return this.i;if(l===0)for(;u--;)this.pushFront(c);else if(l===this.i)for(;u--;)this.pushBack(c);else{let d=this.p;for(let p=1;p<l;++p)d=d.B;let h=d.B;for(this.i+=u;u--;)d.B={l:c,L:d},d.B.L=d,d=d.B;d.B=h,h.L=d}return this.i}find(l){let c=this.p;for(;c!==this.h;){if(c.l===l)return new o(c,this.h,this);c=c.B}return this.end()}reverse(){if(this.i<=1)return;let l=this.p,c=this._,u=0;for(;u<<1<this.i;){let d=l.l;l.l=c.l,c.l=d,l=l.B,c=c.L,u+=1}}unique(){if(this.i<=1)return this.i;let l=this.p;for(;l!==this.h;){let c=l;for(;c.B!==this.h&&c.l===c.B.l;)c=c.B,this.i-=1;l.B=c.B,l.B.L=l,l=l.B}return this.i}sort(l){if(this.i<=1)return;let c=[];this.forEach(function(d){c.push(d)}),c.sort(l);let u=this.p;c.forEach(function(d){u.l=d,u=u.B})}merge(l){let c=this;if(this.i===0)l.forEach(function(u){c.pushBack(u)});else{let u=this.p;l.forEach(function(d){for(;u!==c.h&&u.l<=d;)u=u.B;c.G(d,u.L)})}return this.i}forEach(l){let c=this.p,u=0;for(;c!==this.h;)l(c.l,u++,this),c=c.B}[Symbol.iterator](){return(function*(){if(this.i===0)return;let l=this.p;for(;l!==this.h;)yield l.l,l=l.B}).bind(this)()}},s=a;e.default=s}),F$e=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=r(Ez()),n=tpe();function r(s){return s&&s.t?s:{default:s}}var i=class ipe extends n.RandomIterator{constructor(l,c,u){super(l,u),this.container=c}copy(){return new ipe(this.o,this.container,this.iteratorType)}},o=class extends t.default{constructor(s=[],l=4096){super(),this.j=0,this.D=0,this.R=0,this.N=0,this.P=0,this.A=[];let c=(()=>{if(typeof s.length=="number")return s.length;if(typeof s.size=="number")return s.size;if(typeof s.size=="function")return s.size();throw new TypeError("Cannot get the length or size of the container")})();this.F=l,this.P=Math.max(Math.ceil(c/this.F),1);for(let h=0;h<this.P;++h)this.A.push(new Array(this.F));let u=Math.ceil(c/this.F);this.j=this.R=(this.P>>1)-(u>>1),this.D=this.N=this.F-c%this.F>>1;let d=this;s.forEach(function(h){d.pushBack(h)})}T(){let s=[],l=Math.max(this.P>>1,1);for(let c=0;c<l;++c)s[c]=new Array(this.F);for(let c=this.j;c<this.P;++c)s[s.length]=this.A[c];for(let c=0;c<this.R;++c)s[s.length]=this.A[c];s[s.length]=[...this.A[this.R]],this.j=l,this.R=s.length-1;for(let c=0;c<l;++c)s[s.length]=new Array(this.F);this.A=s,this.P=s.length}O(s){let l=this.D+s+1,c=l%this.F,u=c-1,d=this.j+(l-c)/this.F;return c===0&&(d-=1),d%=this.P,u<0&&(u+=this.F),{curNodeBucketIndex:d,curNodePointerIndex:u}}clear(){this.A=[new Array(this.F)],this.P=1,this.j=this.R=this.i=0,this.D=this.N=this.F>>1}begin(){return new i(0,this)}end(){return new i(this.i,this)}rBegin(){return new i(this.i-1,this,1)}rEnd(){return new i(-1,this,1)}front(){if(this.i!==0)return this.A[this.j][this.D]}back(){if(this.i!==0)return this.A[this.R][this.N]}pushBack(s){return this.i&&(this.N<this.F-1?this.N+=1:this.R<this.P-1?(this.R+=1,this.N=0):(this.R=0,this.N=0),this.R===this.j&&this.N===this.D&&this.T()),this.i+=1,this.A[this.R][this.N]=s,this.i}popBack(){if(this.i===0)return;let s=this.A[this.R][this.N];return this.i!==1&&(this.N>0?this.N-=1:this.R>0?(this.R-=1,this.N=this.F-1):(this.R=this.P-1,this.N=this.F-1)),this.i-=1,s}pushFront(s){return this.i&&(this.D>0?this.D-=1:this.j>0?(this.j-=1,this.D=this.F-1):(this.j=this.P-1,this.D=this.F-1),this.j===this.R&&this.D===this.N&&this.T()),this.i+=1,this.A[this.j][this.D]=s,this.i}popFront(){if(this.i===0)return;let s=this.A[this.j][this.D];return this.i!==1&&(this.D<this.F-1?this.D+=1:this.j<this.P-1?(this.j+=1,this.D=0):(this.j=0,this.D=0)),this.i-=1,s}getElementByPos(s){if(s<0||s>this.i-1)throw new RangeError;let{curNodeBucketIndex:l,curNodePointerIndex:c}=this.O(s);return this.A[l][c]}setElementByPos(s,l){if(s<0||s>this.i-1)throw new RangeError;let{curNodeBucketIndex:c,curNodePointerIndex:u}=this.O(s);this.A[c][u]=l}insert(s,l,c=1){if(s<0||s>this.i)throw new RangeError;if(s===0)for(;c--;)this.pushFront(l);else if(s===this.i)for(;c--;)this.pushBack(l);else{let u=[];for(let d=s;d<this.i;++d)u.push(this.getElementByPos(d));this.cut(s-1);for(let d=0;d<c;++d)this.pushBack(l);for(let d=0;d<u.length;++d)this.pushBack(u[d])}return this.i}cut(s){if(s<0)return this.clear(),0;let{curNodeBucketIndex:l,curNodePointerIndex:c}=this.O(s);return this.R=l,this.N=c,this.i=s+1,this.i}eraseElementByPos(s){if(s<0||s>this.i-1)throw new RangeError;if(s===0)this.popFront();else if(s===this.i-1)this.popBack();else{let l=[];for(let u=s+1;u<this.i;++u)l.push(this.getElementByPos(u));this.cut(s),this.popBack();let c=this;l.forEach(function(u){c.pushBack(u)})}return this.i}eraseElementByValue(s){if(this.i===0)return 0;let l=[];for(let u=0;u<this.i;++u){let d=this.getElementByPos(u);d!==s&&l.push(d)}let c=l.length;for(let u=0;u<c;++u)this.setElementByPos(u,l[u]);return this.cut(c-1)}eraseElementByIterator(s){let l=s.o;return this.eraseElementByPos(l),s=s.next(),s}find(s){for(let l=0;l<this.i;++l)if(this.getElementByPos(l)===s)return new i(l,this);return this.end()}reverse(){let s=0,l=this.i-1;for(;s<l;){let c=this.getElementByPos(s);this.setElementByPos(s,this.getElementByPos(l)),this.setElementByPos(l,c),s+=1,l-=1}}unique(){if(this.i<=1)return this.i;let s=1,l=this.getElementByPos(0);for(let c=1;c<this.i;++c){let u=this.getElementByPos(c);u!==l&&(l=u,this.setElementByPos(s++,u))}for(;this.i>s;)this.popBack();return this.i}sort(s){let l=[];for(let c=0;c<this.i;++c)l.push(this.getElementByPos(c));l.sort(s);for(let c=0;c<this.i;++c)this.setElementByPos(c,l[c])}shrinkToFit(){if(this.i===0)return;let s=[];this.forEach(function(l){s.push(l)}),this.P=Math.max(Math.ceil(this.i/this.F),1),this.i=this.j=this.R=this.D=this.N=0,this.A=[];for(let l=0;l<this.P;++l)this.A.push(new Array(this.F));for(let l=0;l<s.length;++l)this.pushBack(s[l])}forEach(s){for(let l=0;l<this.i;++l)s(this.getElementByPos(l),l,this)}[Symbol.iterator](){return(function*(){for(let s=0;s<this.i;++s)yield this.getElementByPos(s)}).bind(this)()}},a=o;e.default=a}),j$e=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"t",{value:!0}),e.TreeNodeEnableIndex=e.TreeNode=void 0;var t=class{constructor(r,i){this.ee=1,this.u=void 0,this.l=void 0,this.U=void 0,this.W=void 0,this.tt=void 0,this.u=r,this.l=i}L(){let r=this;if(r.ee===1&&r.tt.tt===r)r=r.W;else if(r.U)for(r=r.U;r.W;)r=r.W;else{let i=r.tt;for(;i.U===r;)r=i,i=r.tt;r=i}return r}B(){let r=this;if(r.W){for(r=r.W;r.U;)r=r.U;return r}else{let i=r.tt;for(;i.W===r;)r=i,i=r.tt;return r.W!==i?i:r}}te(){let r=this.tt,i=this.W,o=i.U;return r.tt===this?r.tt=i:r.U===this?r.U=i:r.W=i,i.tt=r,i.U=this,this.tt=i,this.W=o,o&&(o.tt=this),i}se(){let r=this.tt,i=this.U,o=i.W;return r.tt===this?r.tt=i:r.U===this?r.U=i:r.W=i,i.tt=r,i.W=this,this.tt=i,this.U=o,o&&(o.tt=this),i}};e.TreeNode=t;var n=class extends t{constructor(){super(...arguments),this.rt=1}te(){let r=super.te();return this.ie(),r.ie(),r}se(){let r=super.se();return this.ie(),r.ie(),r}ie(){this.rt=1,this.U&&(this.rt+=this.U.rt),this.W&&(this.rt+=this.W.rt)}};e.TreeNodeEnableIndex=n}),ope=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=j$e(),n=xp(),r=wp(),i=class extends n.Container{constructor(a=function(l,c){return l<c?-1:l>c?1:0},s=!1){super(),this.Y=void 0,this.v=a,s?(this.re=t.TreeNodeEnableIndex,this.M=function(l,c,u){let d=this.ne(l,c,u);if(d){let h=d.tt;for(;h!==this.h;)h.rt+=1,h=h.tt;let p=this.he(d);if(p){let{parentNode:m,grandParent:v,curNode:y}=p;m.ie(),v.ie(),y.ie()}}return this.i},this.V=function(l){let c=this.fe(l);for(;c!==this.h;)c.rt-=1,c=c.tt}):(this.re=t.TreeNode,this.M=function(l,c,u){let d=this.ne(l,c,u);return d&&this.he(d),this.i},this.V=this.fe),this.h=new this.re}X(a,s){let l=this.h;for(;a;){let c=this.v(a.u,s);if(c<0)a=a.W;else if(c>0)l=a,a=a.U;else return a}return l}Z(a,s){let l=this.h;for(;a;)this.v(a.u,s)<=0?a=a.W:(l=a,a=a.U);return l}$(a,s){let l=this.h;for(;a;){let c=this.v(a.u,s);if(c<0)l=a,a=a.W;else if(c>0)a=a.U;else return a}return l}rr(a,s){let l=this.h;for(;a;)this.v(a.u,s)<0?(l=a,a=a.W):a=a.U;return l}ue(a){for(;;){let s=a.tt;if(s===this.h)return;if(a.ee===1){a.ee=0;return}if(a===s.U){let l=s.W;if(l.ee===1)l.ee=0,s.ee=1,s===this.Y?this.Y=s.te():s.te();else if(l.W&&l.W.ee===1){l.ee=s.ee,s.ee=0,l.W.ee=0,s===this.Y?this.Y=s.te():s.te();return}else l.U&&l.U.ee===1?(l.ee=1,l.U.ee=0,l.se()):(l.ee=1,a=s)}else{let l=s.U;if(l.ee===1)l.ee=0,s.ee=1,s===this.Y?this.Y=s.se():s.se();else if(l.U&&l.U.ee===1){l.ee=s.ee,s.ee=0,l.U.ee=0,s===this.Y?this.Y=s.se():s.se();return}else l.W&&l.W.ee===1?(l.ee=1,l.W.ee=0,l.te()):(l.ee=1,a=s)}}}fe(a){if(this.i===1)return this.clear(),this.h;let s=a;for(;s.U||s.W;){if(s.W)for(s=s.W;s.U;)s=s.U;else s=s.U;[a.u,s.u]=[s.u,a.u],[a.l,s.l]=[s.l,a.l],a=s}this.h.U===s?this.h.U=s.tt:this.h.W===s&&(this.h.W=s.tt),this.ue(s);let l=s.tt;return s===l.U?l.U=void 0:l.W=void 0,this.i-=1,this.Y.ee=0,l}oe(a,s){return a===void 0?!1:this.oe(a.U,s)||s(a)?!0:this.oe(a.W,s)}he(a){for(;;){let s=a.tt;if(s.ee===0)return;let l=s.tt;if(s===l.U){let c=l.W;if(c&&c.ee===1){if(c.ee=s.ee=0,l===this.Y)return;l.ee=1,a=l;continue}else if(a===s.W){if(a.ee=0,a.U&&(a.U.tt=s),a.W&&(a.W.tt=l),s.W=a.U,l.U=a.W,a.U=s,a.W=l,l===this.Y)this.Y=a,this.h.tt=a;else{let u=l.tt;u.U===l?u.U=a:u.W=a}return a.tt=l.tt,s.tt=a,l.tt=a,l.ee=1,{parentNode:s,grandParent:l,curNode:a}}else s.ee=0,l===this.Y?this.Y=l.se():l.se(),l.ee=1}else{let c=l.U;if(c&&c.ee===1){if(c.ee=s.ee=0,l===this.Y)return;l.ee=1,a=l;continue}else if(a===s.U){if(a.ee=0,a.U&&(a.U.tt=l),a.W&&(a.W.tt=s),l.W=a.U,s.U=a.W,a.U=l,a.W=s,l===this.Y)this.Y=a,this.h.tt=a;else{let u=l.tt;u.U===l?u.U=a:u.W=a}return a.tt=l.tt,s.tt=a,l.tt=a,l.ee=1,{parentNode:s,grandParent:l,curNode:a}}else s.ee=0,l===this.Y?this.Y=l.te():l.te(),l.ee=1}return}}ne(a,s,l){if(this.Y===void 0){this.i+=1,this.Y=new this.re(a,s),this.Y.ee=0,this.Y.tt=this.h,this.h.tt=this.Y,this.h.U=this.Y,this.h.W=this.Y;return}let c,u=this.h.U,d=this.v(u.u,a);if(d===0){u.l=s;return}else if(d>0)u.U=new this.re(a,s),u.U.tt=u,c=u.U,this.h.U=c;else{let h=this.h.W,p=this.v(h.u,a);if(p===0){h.l=s;return}else if(p<0)h.W=new this.re(a,s),h.W.tt=h,c=h.W,this.h.W=c;else{if(l!==void 0){let m=l.o;if(m!==this.h){let v=this.v(m.u,a);if(v===0){m.l=s;return}else if(v>0){let y=m.L(),S=this.v(y.u,a);if(S===0){y.l=s;return}else S<0&&(c=new this.re(a,s),y.W===void 0?(y.W=c,c.tt=y):(m.U=c,c.tt=m))}}}if(c===void 0)for(c=this.Y;;){let m=this.v(c.u,a);if(m>0){if(c.U===void 0){c.U=new this.re(a,s),c.U.tt=c,c=c.U;break}c=c.U}else if(m<0){if(c.W===void 0){c.W=new this.re(a,s),c.W.tt=c,c=c.W;break}c=c.W}else{c.l=s;return}}}}return this.i+=1,c}I(a,s){for(;a;){let l=this.v(a.u,s);if(l<0)a=a.W;else if(l>0)a=a.U;else return a}return a||this.h}clear(){this.i=0,this.Y=void 0,this.h.tt=void 0,this.h.U=this.h.W=void 0}updateKeyByIterator(a,s){let l=a.o;if(l===this.h&&(0,r.throwIteratorAccessError)(),this.i===1)return l.u=s,!0;if(l===this.h.U)return this.v(l.B().u,s)>0?(l.u=s,!0):!1;if(l===this.h.W)return this.v(l.L().u,s)<0?(l.u=s,!0):!1;let c=l.L().u;if(this.v(c,s)>=0)return!1;let u=l.B().u;return this.v(u,s)<=0?!1:(l.u=s,!0)}eraseElementByPos(a){if(a<0||a>this.i-1)throw new RangeError;let s=0,l=this;return this.oe(this.Y,function(c){return a===s?(l.V(c),!0):(s+=1,!1)}),this.i}eraseElementByKey(a){if(this.i===0)return!1;let s=this.I(this.Y,a);return s===this.h?!1:(this.V(s),!0)}eraseElementByIterator(a){let s=a.o;s===this.h&&(0,r.throwIteratorAccessError)();let l=s.W===void 0;return a.iteratorType===0?l&&a.next():(!l||s.U===void 0)&&a.next(),this.V(s),a}forEach(a){let s=0;for(let l of this)a(l,s++,this)}getElementByPos(a){if(a<0||a>this.i-1)throw new RangeError;let s,l=0;for(let c of this){if(l===a){s=c;break}l+=1}return s}getHeight(){if(this.i===0)return 0;let a=function(s){return s?Math.max(a(s.U),a(s.W))+1:0};return a(this.Y)}},o=i;e.default=o}),ape=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=xp(),n=wp(),r=class extends t.ContainerIterator{constructor(o,a,s){super(s),this.o=o,this.h=a,this.iteratorType===0?(this.pre=function(){return this.o===this.h.U&&(0,n.throwIteratorAccessError)(),this.o=this.o.L(),this},this.next=function(){return this.o===this.h&&(0,n.throwIteratorAccessError)(),this.o=this.o.B(),this}):(this.pre=function(){return this.o===this.h.W&&(0,n.throwIteratorAccessError)(),this.o=this.o.B(),this},this.next=function(){return this.o===this.h&&(0,n.throwIteratorAccessError)(),this.o=this.o.L(),this})}get index(){let o=this.o,a=this.h.tt;if(o===this.h)return a?a.rt-1:0;let s=0;for(o.U&&(s+=o.U.rt);o!==a;){let l=o.tt;o===l.W&&(s+=1,l.U&&(s+=l.U.rt)),o=l}return s}},i=r;e.default=i}),B$e=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=i(ope()),n=i(ape()),r=wp();function i(l){return l&&l.t?l:{default:l}}var o=class spe extends n.default{constructor(c,u,d,h){super(c,u,h),this.container=d}get pointer(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o.u}copy(){return new spe(this.o,this.h,this.container,this.iteratorType)}},a=class extends t.default{constructor(l=[],c,u){super(c,u);let d=this;l.forEach(function(h){d.insert(h)})}*K(l){l!==void 0&&(yield*this.K(l.U),yield l.u,yield*this.K(l.W))}begin(){return new o(this.h.U||this.h,this.h,this)}end(){return new o(this.h,this.h,this)}rBegin(){return new o(this.h.W||this.h,this.h,this,1)}rEnd(){return new o(this.h,this.h,this,1)}front(){return this.h.U?this.h.U.u:void 0}back(){return this.h.W?this.h.W.u:void 0}insert(l,c){return this.M(l,void 0,c)}find(l){let c=this.I(this.Y,l);return new o(c,this.h,this)}lowerBound(l){let c=this.X(this.Y,l);return new o(c,this.h,this)}upperBound(l){let c=this.Z(this.Y,l);return new o(c,this.h,this)}reverseLowerBound(l){let c=this.$(this.Y,l);return new o(c,this.h,this)}reverseUpperBound(l){let c=this.rr(this.Y,l);return new o(c,this.h,this)}union(l){let c=this;return l.forEach(function(u){c.insert(u)}),this.i}[Symbol.iterator](){return this.K(this.Y)}},s=a;e.default=s}),H$e=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=i(ope()),n=i(ape()),r=wp();function i(l){return l&&l.t?l:{default:l}}var o=class lpe extends n.default{constructor(c,u,d,h){super(c,u,h),this.container=d}get pointer(){this.o===this.h&&(0,r.throwIteratorAccessError)();let c=this;return new Proxy([],{get(u,d){if(d==="0")return c.o.u;if(d==="1")return c.o.l},set(u,d,h){if(d!=="1")throw new TypeError("props must be 1");return c.o.l=h,!0}})}copy(){return new lpe(this.o,this.h,this.container,this.iteratorType)}},a=class extends t.default{constructor(l=[],c,u){super(c,u);let d=this;l.forEach(function(h){d.setElement(h[0],h[1])})}*K(l){l!==void 0&&(yield*this.K(l.U),yield[l.u,l.l],yield*this.K(l.W))}begin(){return new o(this.h.U||this.h,this.h,this)}end(){return new o(this.h,this.h,this)}rBegin(){return new o(this.h.W||this.h,this.h,this,1)}rEnd(){return new o(this.h,this.h,this,1)}front(){if(this.i===0)return;let l=this.h.U;return[l.u,l.l]}back(){if(this.i===0)return;let l=this.h.W;return[l.u,l.l]}lowerBound(l){let c=this.X(this.Y,l);return new o(c,this.h,this)}upperBound(l){let c=this.Z(this.Y,l);return new o(c,this.h,this)}reverseLowerBound(l){let c=this.$(this.Y,l);return new o(c,this.h,this)}reverseUpperBound(l){let c=this.rr(this.Y,l);return new o(c,this.h,this)}setElement(l,c,u){return this.M(l,c,u)}find(l){let c=this.I(this.Y,l);return new o(c,this.h,this)}getElementByKey(l){return this.I(this.Y,l).l}union(l){let c=this;return l.forEach(function(u){c.setElement(u[0],u[1])}),this.i}[Symbol.iterator](){return this.K(this.Y)}},s=a;e.default=s}),cpe=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"t",{value:!0}),e.default=t;function t(n){let r=typeof n;return r==="object"&&n!==null||r==="function"}}),upe=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"t",{value:!0}),e.HashContainerIterator=e.HashContainer=void 0;var t=xp(),n=i(cpe()),r=wp();function i(s){return s&&s.t?s:{default:s}}var o=class extends t.ContainerIterator{constructor(s,l,c){super(c),this.o=s,this.h=l,this.iteratorType===0?(this.pre=function(){return this.o.L===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.L,this},this.next=function(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.B,this}):(this.pre=function(){return this.o.B===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.B,this},this.next=function(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.L,this})}};e.HashContainerIterator=o;var a=class extends t.Container{constructor(){super(),this.H=[],this.g={},this.HASH_TAG=Symbol("@@HASH_TAG"),Object.setPrototypeOf(this.g,null),this.h={},this.h.L=this.h.B=this.p=this._=this.h}V(s){let{L:l,B:c}=s;l.B=c,c.L=l,s===this.p&&(this.p=c),s===this._&&(this._=l),this.i-=1}M(s,l,c){c===void 0&&(c=(0,n.default)(s));let u;if(c){let d=s[this.HASH_TAG];if(d!==void 0)return this.H[d].l=l,this.i;Object.defineProperty(s,this.HASH_TAG,{value:this.H.length,configurable:!0}),u={u:s,l,L:this._,B:this.h},this.H.push(u)}else{let d=this.g[s];if(d)return d.l=l,this.i;u={u:s,l,L:this._,B:this.h},this.g[s]=u}return this.i===0?(this.p=u,this.h.B=u):this._.B=u,this._=u,this.h.L=u,++this.i}I(s,l){if(l===void 0&&(l=(0,n.default)(s)),l){let c=s[this.HASH_TAG];return c===void 0?this.h:this.H[c]}else return this.g[s]||this.h}clear(){let s=this.HASH_TAG;this.H.forEach(function(l){delete l.u[s]}),this.H=[],this.g={},Object.setPrototypeOf(this.g,null),this.i=0,this.p=this._=this.h.L=this.h.B=this.h}eraseElementByKey(s,l){let c;if(l===void 0&&(l=(0,n.default)(s)),l){let u=s[this.HASH_TAG];if(u===void 0)return!1;delete s[this.HASH_TAG],c=this.H[u],delete this.H[u]}else{if(c=this.g[s],c===void 0)return!1;delete this.g[s]}return this.V(c),!0}eraseElementByIterator(s){let l=s.o;return l===this.h&&(0,r.throwIteratorAccessError)(),this.V(l),s.next()}eraseElementByPos(s){if(s<0||s>this.i-1)throw new RangeError;let l=this.p;for(;s--;)l=l.B;return this.V(l),this.i}};e.HashContainer=a}),z$e=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=upe(),n=wp(),r=class dpe extends t.HashContainerIterator{constructor(s,l,c,u){super(s,l,u),this.container=c}get pointer(){return this.o===this.h&&(0,n.throwIteratorAccessError)(),this.o.u}copy(){return new dpe(this.o,this.h,this.container,this.iteratorType)}},i=class extends t.HashContainer{constructor(a=[]){super();let s=this;a.forEach(function(l){s.insert(l)})}begin(){return new r(this.p,this.h,this)}end(){return new r(this.h,this.h,this)}rBegin(){return new r(this._,this.h,this,1)}rEnd(){return new r(this.h,this.h,this,1)}front(){return this.p.u}back(){return this._.u}insert(a,s){return this.M(a,void 0,s)}getElementByPos(a){if(a<0||a>this.i-1)throw new RangeError;let s=this.p;for(;a--;)s=s.B;return s.u}find(a,s){let l=this.I(a,s);return new r(l,this.h,this)}forEach(a){let s=0,l=this.p;for(;l!==this.h;)a(l.u,s++,this),l=l.B}[Symbol.iterator](){return(function*(){let a=this.p;for(;a!==this.h;)yield a.u,a=a.B}).bind(this)()}},o=i;e.default=o}),U$e=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=upe(),n=i(cpe()),r=wp();function i(l){return l&&l.t?l:{default:l}}var o=class fpe extends t.HashContainerIterator{constructor(c,u,d,h){super(c,u,h),this.container=d}get pointer(){this.o===this.h&&(0,r.throwIteratorAccessError)();let c=this;return new Proxy([],{get(u,d){if(d==="0")return c.o.u;if(d==="1")return c.o.l},set(u,d,h){if(d!=="1")throw new TypeError("props must be 1");return c.o.l=h,!0}})}copy(){return new fpe(this.o,this.h,this.container,this.iteratorType)}},a=class extends t.HashContainer{constructor(l=[]){super();let c=this;l.forEach(function(u){c.setElement(u[0],u[1])})}begin(){return new o(this.p,this.h,this)}end(){return new o(this.h,this.h,this)}rBegin(){return new o(this._,this.h,this,1)}rEnd(){return new o(this.h,this.h,this,1)}front(){if(this.i!==0)return[this.p.u,this.p.l]}back(){if(this.i!==0)return[this._.u,this._.l]}setElement(l,c,u){return this.M(l,c,u)}getElementByKey(l,c){if(c===void 0&&(c=(0,n.default)(l)),c){let d=l[this.HASH_TAG];return d!==void 0?this.H[d].l:void 0}let u=this.g[l];return u?u.l:void 0}getElementByPos(l){if(l<0||l>this.i-1)throw new RangeError;let c=this.p;for(;l--;)c=c.B;return[c.u,c.l]}find(l,c){let u=this.I(l,c);return new o(u,this.h,this)}forEach(l){let c=0,u=this.p;for(;u!==this.h;)l([u.u,u.l],c++,this),u=u.B}[Symbol.iterator](){return(function*(){let l=this.p;for(;l!==this.h;)yield[l.u,l.l],l=l.B}).bind(this)()}},s=a;e.default=s}),W$e=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"t",{value:!0}),Object.defineProperty(e,"Deque",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"HashMap",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"HashSet",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"LinkList",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"OrderedMap",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"OrderedSet",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"PriorityQueue",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"Queue",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"Stack",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"Vector",{enumerable:!0,get:function(){return i.default}});var t=d(R$e()),n=d(A$e()),r=d(N$e()),i=d(D$e()),o=d(L$e()),a=d(F$e()),s=d(B$e()),l=d(H$e()),c=d(z$e()),u=d(U$e());function d(h){return h&&h.t?h:{default:h}}}),V$e=Tn((e,t)=>{pn(),gn(),mn();var n=W$e().OrderedSet,r=cp()("number-allocator:trace"),i=cp()("number-allocator:error");function o(s,l){this.low=s,this.high=l}o.prototype.equals=function(s){return this.low===s.low&&this.high===s.high},o.prototype.compare=function(s){return this.low<s.low&&this.high<s.low?-1:s.low<this.low&&s.high<this.low?1:0};function a(s,l){if(!(this instanceof a))return new a(s,l);this.min=s,this.max=l,this.ss=new n([],(c,u)=>c.compare(u)),r("Create"),this.clear()}a.prototype.firstVacant=function(){return this.ss.size()===0?null:this.ss.front().low},a.prototype.alloc=function(){if(this.ss.size()===0)return r("alloc():empty"),null;let s=this.ss.begin(),l=s.pointer.low,c=s.pointer.high,u=l;return u+1<=c?this.ss.updateKeyByIterator(s,new o(l+1,c)):this.ss.eraseElementByPos(0),r("alloc():"+u),u},a.prototype.use=function(s){let l=new o(s,s),c=this.ss.lowerBound(l);if(!c.equals(this.ss.end())){let u=c.pointer.low,d=c.pointer.high;return c.pointer.equals(l)?(this.ss.eraseElementByIterator(c),r("use():"+s),!0):u>s?!1:u===s?(this.ss.updateKeyByIterator(c,new o(u+1,d)),r("use():"+s),!0):d===s?(this.ss.updateKeyByIterator(c,new o(u,d-1)),r("use():"+s),!0):(this.ss.updateKeyByIterator(c,new o(s+1,d)),this.ss.insert(new o(u,s-1)),r("use():"+s),!0)}return r("use():failed"),!1},a.prototype.free=function(s){if(s<this.min||s>this.max){i("free():"+s+" is out of range");return}let l=new o(s,s),c=this.ss.upperBound(l);if(c.equals(this.ss.end())){if(c.equals(this.ss.begin())){this.ss.insert(l);return}c.pre();let u=c.pointer.high;c.pointer.high+1===s?this.ss.updateKeyByIterator(c,new o(u,s)):this.ss.insert(l)}else if(c.equals(this.ss.begin()))if(s+1===c.pointer.low){let u=c.pointer.high;this.ss.updateKeyByIterator(c,new o(s,u))}else this.ss.insert(l);else{let u=c.pointer.low,d=c.pointer.high;c.pre();let h=c.pointer.low;c.pointer.high+1===s?s+1===u?(this.ss.eraseElementByIterator(c),this.ss.updateKeyByIterator(c,new o(h,d))):this.ss.updateKeyByIterator(c,new o(h,s)):s+1===u?(this.ss.eraseElementByIterator(c.next()),this.ss.insert(new o(s,d))):this.ss.insert(l)}r("free():"+s)},a.prototype.clear=function(){r("clear()"),this.ss.clear(),this.ss.insert(new o(this.min,this.max))},a.prototype.intervalCount=function(){return this.ss.size()},a.prototype.dump=function(){console.log("length:"+this.ss.size());for(let s of this.ss)console.log(s)},t.exports=a}),hpe=Tn((e,t)=>{pn(),gn(),mn();var n=V$e();t.exports.NumberAllocator=n}),K$e=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"__esModule",{value:!0});var t=$$e(),n=hpe(),r=class{constructor(i){i>0&&(this.aliasToTopic=new t.LRUCache({max:i}),this.topicToAlias={},this.numberAllocator=new n.NumberAllocator(1,i),this.max=i,this.length=0)}put(i,o){if(o===0||o>this.max)return!1;let a=this.aliasToTopic.get(o);return a&&delete this.topicToAlias[a],this.aliasToTopic.set(o,i),this.topicToAlias[i]=o,this.numberAllocator.use(o),this.length=this.aliasToTopic.size,!0}getTopicByAlias(i){return this.aliasToTopic.get(i)}getAliasByTopic(i){let o=this.topicToAlias[i];return typeof o<"u"&&this.aliasToTopic.get(o),o}clear(){this.aliasToTopic.clear(),this.topicToAlias={},this.numberAllocator.clear(),this.length=0}getLruAlias(){return this.numberAllocator.firstVacant()||[...this.aliasToTopic.keys()][this.aliasToTopic.size-1]}};e.default=r}),q$e=Tn(e=>{pn(),gn(),mn();var t=e&&e.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0});var n=F6(),r=t(K$e()),i=LS(),o=(a,s)=>{a.log("_handleConnack");let{options:l}=a,c=l.protocolVersion===5?s.reasonCode:s.returnCode;if(clearTimeout(a.connackTimer),delete a.topicAliasSend,s.properties){if(s.properties.topicAliasMaximum){if(s.properties.topicAliasMaximum>65535){a.emit("error",new Error("topicAliasMaximum from broker is out of range"));return}s.properties.topicAliasMaximum>0&&(a.topicAliasSend=new r.default(s.properties.topicAliasMaximum))}s.properties.serverKeepAlive&&l.keepalive&&(l.keepalive=s.properties.serverKeepAlive),s.properties.maximumPacketSize&&(l.properties||(l.properties={}),l.properties.maximumPacketSize=s.properties.maximumPacketSize)}if(c===0)a.reconnecting=!1,a._onConnect(s);else if(c>0){let u=new i.ErrorWithReasonCode(`Connection refused: ${n.ReasonCodes[c]}`,c);a.emit("error",u),a.options.reconnectOnConnackError&&a._cleanUp(!0)}};e.default=o}),G$e=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"__esModule",{value:!0});var t=(n,r,i)=>{n.log("handling pubrel packet");let o=typeof i<"u"?i:n.noop,{messageId:a}=r,s={cmd:"pubcomp",messageId:a};n.incomingStore.get(r,(l,c)=>{l?n._sendPacket(s,o):(n.emit("message",c.topic,c.payload,c),n.handleMessage(c,u=>{if(u)return o(u);n.incomingStore.del(c,n.noop),n._sendPacket(s,o)}))})};e.default=t}),Y$e=Tn(e=>{pn(),gn(),mn();var t=e&&e.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0});var n=t(P$e()),r=t(I$e()),i=t(q$e()),o=t(F6()),a=t(G$e()),s=(l,c,u)=>{let{options:d}=l;if(d.protocolVersion===5&&d.properties&&d.properties.maximumPacketSize&&d.properties.maximumPacketSize<c.length)return l.emit("error",new Error(`exceeding packets size ${c.cmd}`)),l.end({reasonCode:149,properties:{reasonString:"Maximum packet size was exceeded"}}),l;switch(l.log("_handlePacket :: emitting packetreceive"),l.emit("packetreceive",c),c.cmd){case"publish":(0,n.default)(l,c,u);break;case"puback":case"pubrec":case"pubcomp":case"suback":case"unsuback":l.reschedulePing(),(0,o.default)(l,c),u();break;case"pubrel":l.reschedulePing(),(0,a.default)(l,c,u);break;case"connack":(0,i.default)(l,c),u();break;case"auth":l.reschedulePing(),(0,r.default)(l,c),u();break;case"pingresp":l.log("_handlePacket :: received pingresp"),l.reschedulePing(!0),u();break;case"disconnect":l.emit("disconnect",c),u();break;default:l.log("_handlePacket :: unknown command"),u();break}};e.default=s}),X$e=Tn(e=>{pn(),gn(),mn();var t=e&&e.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0}),e.TypedEventEmitter=void 0;var n=t((DS(),eo(zv))),r=LS(),i=class{};e.TypedEventEmitter=i,(0,r.applyMixin)(i,n.default)}),j6=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"__esModule",{value:!0}),e.isReactNativeBrowser=e.isWebWorker=void 0;var t=()=>{var o;return typeof window<"u"?typeof navigator<"u"&&((o=navigator.userAgent)===null||o===void 0?void 0:o.toLowerCase().indexOf(" electron/"))>-1&&Ni!=null&&Ni.versions?!Object.prototype.hasOwnProperty.call(Ni.versions,"electron"):typeof window.document<"u":!1},n=()=>{var o,a;return!!(typeof self=="object"&&!((a=(o=self==null?void 0:self.constructor)===null||o===void 0?void 0:o.name)===null||a===void 0)&&a.includes("WorkerGlobalScope"))},r=()=>typeof navigator<"u"&&navigator.product==="ReactNative",i=t()||n()||r();e.isWebWorker=n(),e.isReactNativeBrowser=r(),e.default=i}),Q$e=Tn((e,t)=>{pn(),gn(),mn(),function(n,r){typeof e=="object"&&typeof t<"u"?r(e):typeof define=="function"&&define.amd?define(["exports"],r):(n=typeof globalThis<"u"?globalThis:n||self,r(n.fastUniqueNumbers={}))}(e,function(n){var r=function(p){return function(m){var v=p(m);return m.add(v),v}},i=function(p){return function(m,v){return p.set(m,v),v}},o=Number.MAX_SAFE_INTEGER===void 0?9007199254740991:Number.MAX_SAFE_INTEGER,a=536870912,s=a*2,l=function(p,m){return function(v){var y=m.get(v),S=y===void 0?v.size:y<s?y+1:0;if(!v.has(S))return p(v,S);if(v.size<a){for(;v.has(S);)S=Math.floor(Math.random()*s);return p(v,S)}if(v.size>o)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;v.has(S);)S=Math.floor(Math.random()*o);return p(v,S)}},c=new WeakMap,u=i(c),d=l(u,c),h=r(d);n.addUniqueNumber=h,n.generateUniqueNumber=d})}),Z$e=Tn((e,t)=>{pn(),gn(),mn(),function(n,r){typeof e=="object"&&typeof t<"u"?r(e,Q$e()):typeof define=="function"&&define.amd?define(["exports","fast-unique-numbers"],r):(n=typeof globalThis<"u"?globalThis:n||self,r(n.workerTimersBroker={},n.fastUniqueNumbers))}(e,function(n,r){var i=function(s){return s.method!==void 0&&s.method==="call"},o=function(s){return s.error===null&&typeof s.id=="number"},a=function(s){var l=new Map([[0,function(){}]]),c=new Map([[0,function(){}]]),u=new Map,d=new Worker(s);d.addEventListener("message",function(y){var S=y.data;if(i(S)){var b=S.params,C=b.timerId,_=b.timerType;if(_==="interval"){var T=l.get(C);if(typeof T=="number"){var x=u.get(T);if(x===void 0||x.timerId!==C||x.timerType!==_)throw new Error("The timer is in an undefined state.")}else if(typeof T<"u")T();else throw new Error("The timer is in an undefined state.")}else if(_==="timeout"){var E=c.get(C);if(typeof E=="number"){var k=u.get(E);if(k===void 0||k.timerId!==C||k.timerType!==_)throw new Error("The timer is in an undefined state.")}else if(typeof E<"u")E(),c.delete(C);else throw new Error("The timer is in an undefined state.")}}else if(o(S)){var M=S.id,P=u.get(M);if(P===void 0)throw new Error("The timer is in an undefined state.");var D=P.timerId,R=P.timerType;u.delete(M),R==="interval"?l.delete(D):c.delete(D)}else{var A=S.error.message;throw new Error(A)}});var h=function(y){var S=r.generateUniqueNumber(u);u.set(S,{timerId:y,timerType:"interval"}),l.set(y,S),d.postMessage({id:S,method:"clear",params:{timerId:y,timerType:"interval"}})},p=function(y){var S=r.generateUniqueNumber(u);u.set(S,{timerId:y,timerType:"timeout"}),c.set(y,S),d.postMessage({id:S,method:"clear",params:{timerId:y,timerType:"timeout"}})},m=function(y){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,b=r.generateUniqueNumber(l);return l.set(b,function(){y(),typeof l.get(b)=="function"&&d.postMessage({id:null,method:"set",params:{delay:S,now:performance.now(),timerId:b,timerType:"interval"}})}),d.postMessage({id:null,method:"set",params:{delay:S,now:performance.now(),timerId:b,timerType:"interval"}}),b},v=function(y){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,b=r.generateUniqueNumber(c);return c.set(b,y),d.postMessage({id:null,method:"set",params:{delay:S,now:performance.now(),timerId:b,timerType:"timeout"}}),b};return{clearInterval:h,clearTimeout:p,setInterval:m,setTimeout:v}};n.load=a})}),J$e=Tn((e,t)=>{pn(),gn(),mn(),function(n,r){typeof e=="object"&&typeof t<"u"?r(e,Z$e()):typeof define=="function"&&define.amd?define(["exports","worker-timers-broker"],r):(n=typeof globalThis<"u"?globalThis:n||self,r(n.workerTimers={},n.workerTimersBroker))}(e,function(n,r){var i=function(d,h){var p=null;return function(){if(p!==null)return p;var m=new Blob([h],{type:"application/javascript; charset=utf-8"}),v=URL.createObjectURL(m);return p=d(v),setTimeout(function(){return URL.revokeObjectURL(v)}),p}},o=`(()=>{var e={472:(e,t,r)=>{var o,i;void 0===(i="function"==typeof(o=function(){"use strict";var e=new Map,t=new Map,r=function(t){var r=e.get(t);if(void 0===r)throw new Error('There is no interval scheduled with the given id "'.concat(t,'".'));clearTimeout(r),e.delete(t)},o=function(e){var r=t.get(e);if(void 0===r)throw new Error('There is no timeout scheduled with the given id "'.concat(e,'".'));clearTimeout(r),t.delete(e)},i=function(e,t){var r,o=performance.now();return{expected:o+(r=e-Math.max(0,o-t)),remainingDelay:r}},n=function e(t,r,o,i){var n=performance.now();n>o?postMessage({id:null,method:"call",params:{timerId:r,timerType:i}}):t.set(r,setTimeout(e,o-n,t,r,o,i))},a=function(t,r,o){var a=i(t,o),s=a.expected,d=a.remainingDelay;e.set(r,setTimeout(n,d,e,r,s,"interval"))},s=function(e,r,o){var a=i(e,o),s=a.expected,d=a.remainingDelay;t.set(r,setTimeout(n,d,t,r,s,"timeout"))};addEventListener("message",(function(e){var t=e.data;try{if("clear"===t.method){var i=t.id,n=t.params,d=n.timerId,c=n.timerType;if("interval"===c)r(d),postMessage({error:null,id:i});else{if("timeout"!==c)throw new Error('The given type "'.concat(c,'" is not supported'));o(d),postMessage({error:null,id:i})}}else{if("set"!==t.method)throw new Error('The given method "'.concat(t.method,'" is not supported'));var u=t.params,l=u.delay,p=u.now,m=u.timerId,v=u.timerType;if("interval"===v)a(l,m,p);else{if("timeout"!==v)throw new Error('The given type "'.concat(v,'" is not supported'));s(l,m,p)}}}catch(e){postMessage({error:{message:e.message},id:t.id,result:null})}}))})?o.call(t,r,t,e):o)||(e.exports=i)}},t={};function r(o){var i=t[o];if(void 0!==i)return i.exports;var n=t[o]={exports:{}};return e[o](n,n.exports,r),n.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";r(472)})()})();`,a=i(r.load,o),s=function(d){return a().clearInterval(d)},l=function(d){return a().clearTimeout(d)},c=function(){var d;return(d=a()).setInterval.apply(d,arguments)},u=function(){var d;return(d=a()).setTimeout.apply(d,arguments)};n.clearInterval=s,n.clearTimeout=l,n.setInterval=c,n.setTimeout=u})}),eRe=Tn(e=>{pn(),gn(),mn();var t=e&&e.__createBinding||(Object.create?function(c,u,d,h){h===void 0&&(h=d);var p=Object.getOwnPropertyDescriptor(u,d);(!p||("get"in p?!u.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return u[d]}}),Object.defineProperty(c,h,p)}:function(c,u,d,h){h===void 0&&(h=d),c[h]=u[d]}),n=e&&e.__setModuleDefault||(Object.create?function(c,u){Object.defineProperty(c,"default",{enumerable:!0,value:u})}:function(c,u){c.default=u}),r=e&&e.__importStar||function(c){if(c&&c.__esModule)return c;var u={};if(c!=null)for(var d in c)d!=="default"&&Object.prototype.hasOwnProperty.call(c,d)&&t(u,c,d);return n(u,c),u};Object.defineProperty(e,"__esModule",{value:!0});var i=r(j6()),o=J$e(),a={set:o.setInterval,clear:o.clearInterval},s={set:(c,u)=>setInterval(c,u),clear:c=>clearInterval(c)},l=c=>{switch(c){case"native":return s;case"worker":return a;case"auto":default:return i.default&&!i.isWebWorker&&!i.isReactNativeBrowser?a:s}};e.default=l}),ppe=Tn(e=>{pn(),gn(),mn();var t=e&&e.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0});var n=t(eRe()),r=class{get keepaliveTimeoutTimestamp(){return this._keepaliveTimeoutTimestamp}get intervalEvery(){return this._intervalEvery}get keepalive(){return this._keepalive}constructor(i,o){this.destroyed=!1,this.client=i,this.timer=typeof o=="object"&&"set"in o&&"clear"in o?o:(0,n.default)(o),this.setKeepalive(i.options.keepalive)}clear(){this.timerId&&(this.timer.clear(this.timerId),this.timerId=null)}setKeepalive(i){if(i*=1e3,isNaN(i)||i<=0||i>2147483647)throw new Error(`Keepalive value must be an integer between 0 and 2147483647. Provided value is ${i}`);this._keepalive=i,this.reschedule(),this.client.log(`KeepaliveManager: set keepalive to ${i}ms`)}destroy(){this.clear(),this.destroyed=!0}reschedule(){if(this.destroyed)return;this.clear(),this.counter=0;let i=Math.ceil(this._keepalive*1.5);this._keepaliveTimeoutTimestamp=Date.now()+i,this._intervalEvery=Math.ceil(this._keepalive/2),this.timerId=this.timer.set(()=>{this.destroyed||(this.counter+=1,this.counter===2?this.client.sendPing():this.counter>2&&this.client.onKeepaliveTimeout())},this._intervalEvery)}};e.default=r}),kL=Tn(e=>{pn(),gn(),mn();var t=e&&e.__createBinding||(Object.create?function(T,x,E,k){k===void 0&&(k=E);var M=Object.getOwnPropertyDescriptor(x,E);(!M||("get"in M?!x.__esModule:M.writable||M.configurable))&&(M={enumerable:!0,get:function(){return x[E]}}),Object.defineProperty(T,k,M)}:function(T,x,E,k){k===void 0&&(k=E),T[k]=x[E]}),n=e&&e.__setModuleDefault||(Object.create?function(T,x){Object.defineProperty(T,"default",{enumerable:!0,value:x})}:function(T,x){T.default=x}),r=e&&e.__importStar||function(T){if(T&&T.__esModule)return T;var x={};if(T!=null)for(var E in T)E!=="default"&&Object.prototype.hasOwnProperty.call(T,E)&&t(x,T,E);return n(x,T),x},i=e&&e.__importDefault||function(T){return T&&T.__esModule?T:{default:T}};Object.defineProperty(e,"__esModule",{value:!0});var o=i(UIe()),a=i(E$e()),s=i(Qhe()),l=Uv(),c=i(k$e()),u=r(O$e()),d=i(cp()),h=i(Zhe()),p=i(Y$e()),m=LS(),v=X$e(),y=i(ppe()),S=r(j6()),b=globalThis.setImmediate||((...T)=>{let x=T.shift();(0,m.nextTick)(()=>{x(...T)})}),C={keepalive:60,reschedulePings:!0,protocolId:"MQTT",protocolVersion:4,reconnectPeriod:1e3,connectTimeout:30*1e3,clean:!0,resubscribe:!0,writeCache:!0,timerVariant:"auto"},_=class OL extends v.TypedEventEmitter{static defaultId(){return`mqttjs_${Math.random().toString(16).substr(2,8)}`}constructor(x,E){super(),this.options=E||{};for(let k in C)typeof this.options[k]>"u"?this.options[k]=C[k]:this.options[k]=E[k];this.log=this.options.log||(0,d.default)("mqttjs:client"),this.noop=this._noop.bind(this),this.log("MqttClient :: version:",OL.VERSION),S.isWebWorker?this.log("MqttClient :: environment","webworker"):this.log("MqttClient :: environment",S.default?"browser":"node"),this.log("MqttClient :: options.protocol",E.protocol),this.log("MqttClient :: options.protocolVersion",E.protocolVersion),this.log("MqttClient :: options.username",E.username),this.log("MqttClient :: options.keepalive",E.keepalive),this.log("MqttClient :: options.reconnectPeriod",E.reconnectPeriod),this.log("MqttClient :: options.rejectUnauthorized",E.rejectUnauthorized),this.log("MqttClient :: options.properties.topicAliasMaximum",E.properties?E.properties.topicAliasMaximum:void 0),this.options.clientId=typeof E.clientId=="string"?E.clientId:OL.defaultId(),this.log("MqttClient :: clientId",this.options.clientId),this.options.customHandleAcks=E.protocolVersion===5&&E.customHandleAcks?E.customHandleAcks:(...k)=>{k[3](null,0)},this.options.writeCache||(a.default.writeToStream.cacheNumbers=!1),this.streamBuilder=x,this.messageIdProvider=typeof this.options.messageIdProvider>"u"?new s.default:this.options.messageIdProvider,this.outgoingStore=E.outgoingStore||new h.default,this.incomingStore=E.incomingStore||new h.default,this.queueQoSZero=E.queueQoSZero===void 0?!0:E.queueQoSZero,this._resubscribeTopics={},this.messageIdToTopic={},this.keepaliveManager=null,this.connected=!1,this.disconnecting=!1,this.reconnecting=!1,this.queue=[],this.connackTimer=null,this.reconnectTimer=null,this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={},this._storeProcessingQueue=[],this.outgoing={},this._firstConnection=!0,E.properties&&E.properties.topicAliasMaximum>0&&(E.properties.topicAliasMaximum>65535?this.log("MqttClient :: options.properties.topicAliasMaximum is out of range"):this.topicAliasRecv=new o.default(E.properties.topicAliasMaximum)),this.on("connect",()=>{let{queue:k}=this,M=()=>{let P=k.shift();this.log("deliver :: entry %o",P);let D=null;if(!P){this._resubscribe();return}D=P.packet,this.log("deliver :: call _sendPacket for %o",D);let R=!0;D.messageId&&D.messageId!==0&&(this.messageIdProvider.register(D.messageId)||(R=!1)),R?this._sendPacket(D,A=>{P.cb&&P.cb(A),M()}):(this.log("messageId: %d has already used. The message is skipped and removed.",D.messageId),M())};this.log("connect :: sending queued packets"),M()}),this.on("close",()=>{this.log("close :: connected set to `false`"),this.connected=!1,this.log("close :: clearing connackTimer"),clearTimeout(this.connackTimer),this._destroyKeepaliveManager(),this.topicAliasRecv&&this.topicAliasRecv.clear(),this.log("close :: calling _setupReconnect"),this._setupReconnect()}),this.options.manualConnect||(this.log("MqttClient :: setting up stream"),this.connect())}handleAuth(x,E){E()}handleMessage(x,E){E()}_nextId(){return this.messageIdProvider.allocate()}getLastMessageId(){return this.messageIdProvider.getLastAllocated()}connect(){var x;let E=new l.Writable,k=a.default.parser(this.options),M=null,P=[];this.log("connect :: calling method to clear reconnect"),this._clearReconnect(),this.disconnected&&!this.reconnecting&&(this.incomingStore=this.options.incomingStore||new h.default,this.outgoingStore=this.options.outgoingStore||new h.default,this.disconnecting=!1,this.disconnected=!1),this.log("connect :: using streamBuilder provided to client to create stream"),this.stream=this.streamBuilder(this),k.on("packet",F=>{this.log("parser :: on packet push to packets array."),P.push(F)});let D=()=>{this.log("work :: getting next packet in queue");let F=P.shift();if(F)this.log("work :: packet pulled from queue"),(0,p.default)(this,F,R);else{this.log("work :: no packets in queue");let z=M;M=null,this.log("work :: done flag is %s",!!z),z&&z()}},R=()=>{if(P.length)(0,m.nextTick)(D);else{let F=M;M=null,F()}};E._write=(F,z,W)=>{M=W,this.log("writable stream :: parsing buffer"),k.parse(F),D()};let A=F=>{this.log("streamErrorHandler :: error",F.message),F.code?(this.log("streamErrorHandler :: emitting error"),this.emit("error",F)):this.noop(F)};this.log("connect :: pipe stream to writable stream"),this.stream.pipe(E),this.stream.on("error",A),this.stream.on("close",()=>{this.log("(%s)stream :: on close",this.options.clientId),this._flushVolatile(),this.log("stream: emit close to MqttClient"),this.emit("close")}),this.log("connect: sending packet `connect`");let H={cmd:"connect",protocolId:this.options.protocolId,protocolVersion:this.options.protocolVersion,clean:this.options.clean,clientId:this.options.clientId,keepalive:this.options.keepalive,username:this.options.username,password:this.options.password,properties:this.options.properties};if(this.options.will&&(H.will=Object.assign(Object.assign({},this.options.will),{payload:(x=this.options.will)===null||x===void 0?void 0:x.payload})),this.topicAliasRecv&&(H.properties||(H.properties={}),this.topicAliasRecv&&(H.properties.topicAliasMaximum=this.topicAliasRecv.max)),this._writePacket(H),k.on("error",this.emit.bind(this,"error")),this.options.properties){if(!this.options.properties.authenticationMethod&&this.options.properties.authenticationData)return this.end(()=>this.emit("error",new Error("Packet has no Authentication Method"))),this;if(this.options.properties.authenticationMethod&&this.options.authPacket&&typeof this.options.authPacket=="object"){let F=Object.assign({cmd:"auth",reasonCode:0},this.options.authPacket);this._writePacket(F)}}return this.stream.setMaxListeners(1e3),clearTimeout(this.connackTimer),this.connackTimer=setTimeout(()=>{this.log("!!connectTimeout hit!! Calling _cleanUp with force `true`"),this.emit("error",new Error("connack timeout")),this._cleanUp(!0)},this.options.connectTimeout),this}publish(x,E,k,M){this.log("publish :: message `%s` to topic `%s`",E,x);let{options:P}=this;typeof k=="function"&&(M=k,k=null),k=k||{},k=Object.assign(Object.assign({},{qos:0,retain:!1,dup:!1}),k);let{qos:D,retain:R,dup:A,properties:H,cbStorePut:F}=k;if(this._checkDisconnecting(M))return this;let z=()=>{let W=0;if((D===1||D===2)&&(W=this._nextId(),W===null))return this.log("No messageId left"),!1;let q={cmd:"publish",topic:x,payload:E,qos:D,retain:R,messageId:W,dup:A};switch(P.protocolVersion===5&&(q.properties=H),this.log("publish :: qos",D),D){case 1:case 2:this.outgoing[q.messageId]={volatile:!1,cb:M||this.noop},this.log("MqttClient:publish: packet cmd: %s",q.cmd),this._sendPacket(q,void 0,F);break;default:this.log("MqttClient:publish: packet cmd: %s",q.cmd),this._sendPacket(q,M,F);break}return!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!z())&&this._storeProcessingQueue.push({invoke:z,cbStorePut:k.cbStorePut,callback:M}),this}publishAsync(x,E,k){return new Promise((M,P)=>{this.publish(x,E,k,(D,R)=>{D?P(D):M(R)})})}subscribe(x,E,k){let M=this.options.protocolVersion;typeof E=="function"&&(k=E),k=k||this.noop;let P=!1,D=[];typeof x=="string"?(x=[x],D=x):Array.isArray(x)?D=x:typeof x=="object"&&(P=x.resubscribe,delete x.resubscribe,D=Object.keys(x));let R=u.validateTopics(D);if(R!==null)return b(k,new Error(`Invalid topic ${R}`)),this;if(this._checkDisconnecting(k))return this.log("subscribe: discconecting true"),this;let A={qos:0};M===5&&(A.nl=!1,A.rap=!1,A.rh=0),E=Object.assign(Object.assign({},A),E);let H=E.properties,F=[],z=(q,Z)=>{if(Z=Z||E,!Object.prototype.hasOwnProperty.call(this._resubscribeTopics,q)||this._resubscribeTopics[q].qos<Z.qos||P){let N={topic:q,qos:Z.qos};M===5&&(N.nl=Z.nl,N.rap=Z.rap,N.rh=Z.rh,N.properties=H),this.log("subscribe: pushing topic `%s` and qos `%s` to subs list",N.topic,N.qos),F.push(N)}};if(Array.isArray(x)?x.forEach(q=>{this.log("subscribe: array topic %s",q),z(q)}):Object.keys(x).forEach(q=>{this.log("subscribe: object topic %s, %o",q,x[q]),z(q,x[q])}),!F.length)return k(null,[]),this;let W=()=>{let q=this._nextId();if(q===null)return this.log("No messageId left"),!1;let Z={cmd:"subscribe",subscriptions:F,messageId:q};if(H&&(Z.properties=H),this.options.resubscribe){this.log("subscribe :: resubscribe true");let N=[];F.forEach(B=>{if(this.options.reconnectPeriod>0){let V={qos:B.qos};M===5&&(V.nl=B.nl||!1,V.rap=B.rap||!1,V.rh=B.rh||0,V.properties=B.properties),this._resubscribeTopics[B.topic]=V,N.push(B.topic)}}),this.messageIdToTopic[Z.messageId]=N}return this.outgoing[Z.messageId]={volatile:!0,cb(N,B){if(!N){let{granted:V}=B;for(let G=0;G<V.length;G+=1)F[G].qos=V[G]}k(N,F,B)}},this.log("subscribe :: call _sendPacket"),this._sendPacket(Z),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!W())&&this._storeProcessingQueue.push({invoke:W,callback:k}),this}subscribeAsync(x,E){return new Promise((k,M)=>{this.subscribe(x,E,(P,D)=>{P?M(P):k(D)})})}unsubscribe(x,E,k){typeof x=="string"&&(x=[x]),typeof E=="function"&&(k=E),k=k||this.noop;let M=u.validateTopics(x);if(M!==null)return b(k,new Error(`Invalid topic ${M}`)),this;if(this._checkDisconnecting(k))return this;let P=()=>{let D=this._nextId();if(D===null)return this.log("No messageId left"),!1;let R={cmd:"unsubscribe",messageId:D,unsubscriptions:[]};return typeof x=="string"?R.unsubscriptions=[x]:Array.isArray(x)&&(R.unsubscriptions=x),this.options.resubscribe&&R.unsubscriptions.forEach(A=>{delete this._resubscribeTopics[A]}),typeof E=="object"&&E.properties&&(R.properties=E.properties),this.outgoing[R.messageId]={volatile:!0,cb:k},this.log("unsubscribe: call _sendPacket"),this._sendPacket(R),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!P())&&this._storeProcessingQueue.push({invoke:P,callback:k}),this}unsubscribeAsync(x,E){return new Promise((k,M)=>{this.unsubscribe(x,E,(P,D)=>{P?M(P):k(D)})})}end(x,E,k){this.log("end :: (%s)",this.options.clientId),(x==null||typeof x!="boolean")&&(k=k||E,E=x,x=!1),typeof E!="object"&&(k=k||E,E=null),this.log("end :: cb? %s",!!k),(!k||typeof k!="function")&&(k=this.noop);let M=()=>{this.log("end :: closeStores: closing incoming and outgoing stores"),this.disconnected=!0,this.incomingStore.close(D=>{this.outgoingStore.close(R=>{if(this.log("end :: closeStores: emitting end"),this.emit("end"),k){let A=D||R;this.log("end :: closeStores: invoking callback with args"),k(A)}})}),this._deferredReconnect?this._deferredReconnect():(this.options.reconnectPeriod===0||this.options.manualConnect)&&(this.disconnecting=!1)},P=()=>{this.log("end :: (%s) :: finish :: calling _cleanUp with force %s",this.options.clientId,x),this._cleanUp(x,()=>{this.log("end :: finish :: calling process.nextTick on closeStores"),(0,m.nextTick)(M)},E)};return this.disconnecting?(k(),this):(this._clearReconnect(),this.disconnecting=!0,!x&&Object.keys(this.outgoing).length>0?(this.log("end :: (%s) :: calling finish in 10ms once outgoing is empty",this.options.clientId),this.once("outgoingEmpty",setTimeout.bind(null,P,10))):(this.log("end :: (%s) :: immediately calling finish",this.options.clientId),P()),this)}endAsync(x,E){return new Promise((k,M)=>{this.end(x,E,P=>{P?M(P):k()})})}removeOutgoingMessage(x){if(this.outgoing[x]){let{cb:E}=this.outgoing[x];this._removeOutgoingAndStoreMessage(x,()=>{E(new Error("Message removed"))})}return this}reconnect(x){this.log("client reconnect");let E=()=>{x?(this.options.incomingStore=x.incomingStore,this.options.outgoingStore=x.outgoingStore):(this.options.incomingStore=null,this.options.outgoingStore=null),this.incomingStore=this.options.incomingStore||new h.default,this.outgoingStore=this.options.outgoingStore||new h.default,this.disconnecting=!1,this.disconnected=!1,this._deferredReconnect=null,this._reconnect()};return this.disconnecting&&!this.disconnected?this._deferredReconnect=E:E(),this}_flushVolatile(){this.outgoing&&(this.log("_flushVolatile :: deleting volatile messages from the queue and setting their callbacks as error function"),Object.keys(this.outgoing).forEach(x=>{this.outgoing[x].volatile&&typeof this.outgoing[x].cb=="function"&&(this.outgoing[x].cb(new Error("Connection closed")),delete this.outgoing[x])}))}_flush(){this.outgoing&&(this.log("_flush: queue exists? %b",!!this.outgoing),Object.keys(this.outgoing).forEach(x=>{typeof this.outgoing[x].cb=="function"&&(this.outgoing[x].cb(new Error("Connection closed")),delete this.outgoing[x])}))}_removeTopicAliasAndRecoverTopicName(x){let E;x.properties&&(E=x.properties.topicAlias);let k=x.topic.toString();if(this.log("_removeTopicAliasAndRecoverTopicName :: alias %d, topic %o",E,k),k.length===0){if(typeof E>"u")return new Error("Unregistered Topic Alias");if(k=this.topicAliasSend.getTopicByAlias(E),typeof k>"u")return new Error("Unregistered Topic Alias");x.topic=k}E&&delete x.properties.topicAlias}_checkDisconnecting(x){return this.disconnecting&&(x&&x!==this.noop?x(new Error("client disconnecting")):this.emit("error",new Error("client disconnecting"))),this.disconnecting}_reconnect(){this.log("_reconnect: emitting reconnect to client"),this.emit("reconnect"),this.connected?(this.end(()=>{this.connect()}),this.log("client already connected. disconnecting first.")):(this.log("_reconnect: calling connect"),this.connect())}_setupReconnect(){!this.disconnecting&&!this.reconnectTimer&&this.options.reconnectPeriod>0?(this.reconnecting||(this.log("_setupReconnect :: emit `offline` state"),this.emit("offline"),this.log("_setupReconnect :: set `reconnecting` to `true`"),this.reconnecting=!0),this.log("_setupReconnect :: setting reconnectTimer for %d ms",this.options.reconnectPeriod),this.reconnectTimer=setInterval(()=>{this.log("reconnectTimer :: reconnect triggered!"),this._reconnect()},this.options.reconnectPeriod)):this.log("_setupReconnect :: doing nothing...")}_clearReconnect(){this.log("_clearReconnect : clearing reconnect timer"),this.reconnectTimer&&(clearInterval(this.reconnectTimer),this.reconnectTimer=null)}_cleanUp(x,E,k={}){if(E&&(this.log("_cleanUp :: done callback provided for on stream close"),this.stream.on("close",E)),this.log("_cleanUp :: forced? %s",x),x)this.options.reconnectPeriod===0&&this.options.clean&&this._flush(),this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),this.stream.destroy();else{let M=Object.assign({cmd:"disconnect"},k);this.log("_cleanUp :: (%s) :: call _sendPacket with disconnect packet",this.options.clientId),this._sendPacket(M,()=>{this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),b(()=>{this.stream.end(()=>{this.log("_cleanUp :: (%s) :: stream destroyed",this.options.clientId)})})})}!this.disconnecting&&!this.reconnecting&&(this.log("_cleanUp :: client not disconnecting/reconnecting. Clearing and resetting reconnect."),this._clearReconnect(),this._setupReconnect()),this._destroyKeepaliveManager(),E&&!this.connected&&(this.log("_cleanUp :: (%s) :: removing stream `done` callback `close` listener",this.options.clientId),this.stream.removeListener("close",E),E())}_storeAndSend(x,E,k){this.log("storeAndSend :: store packet with cmd %s to outgoingStore",x.cmd);let M=x,P;if(M.cmd==="publish"&&(M=(0,c.default)(x),P=this._removeTopicAliasAndRecoverTopicName(M),P))return E&&E(P);this.outgoingStore.put(M,D=>{if(D)return E&&E(D);k(),this._writePacket(x,E)})}_applyTopicAlias(x){if(this.options.protocolVersion===5&&x.cmd==="publish"){let E;x.properties&&(E=x.properties.topicAlias);let k=x.topic.toString();if(this.topicAliasSend)if(E){if(k.length!==0&&(this.log("applyTopicAlias :: register topic: %s - alias: %d",k,E),!this.topicAliasSend.put(k,E)))return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",k,E),new Error("Sending Topic Alias out of range")}else k.length!==0&&(this.options.autoAssignTopicAlias?(E=this.topicAliasSend.getAliasByTopic(k),E?(x.topic="",x.properties=Object.assign(Object.assign({},x.properties),{topicAlias:E}),this.log("applyTopicAlias :: auto assign(use) topic: %s - alias: %d",k,E)):(E=this.topicAliasSend.getLruAlias(),this.topicAliasSend.put(k,E),x.properties=Object.assign(Object.assign({},x.properties),{topicAlias:E}),this.log("applyTopicAlias :: auto assign topic: %s - alias: %d",k,E))):this.options.autoUseTopicAlias&&(E=this.topicAliasSend.getAliasByTopic(k),E&&(x.topic="",x.properties=Object.assign(Object.assign({},x.properties),{topicAlias:E}),this.log("applyTopicAlias :: auto use topic: %s - alias: %d",k,E))));else if(E)return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",k,E),new Error("Sending Topic Alias out of range")}}_noop(x){this.log("noop ::",x)}_writePacket(x,E){this.log("_writePacket :: packet: %O",x),this.log("_writePacket :: emitting `packetsend`"),this.emit("packetsend",x),this.log("_writePacket :: writing to stream");let k=a.default.writeToStream(x,this.stream,this.options);this.log("_writePacket :: writeToStream result %s",k),!k&&E&&E!==this.noop?(this.log("_writePacket :: handle events on `drain` once through callback."),this.stream.once("drain",E)):E&&(this.log("_writePacket :: invoking cb"),E())}_sendPacket(x,E,k,M){this.log("_sendPacket :: (%s) :: start",this.options.clientId),k=k||this.noop,E=E||this.noop;let P=this._applyTopicAlias(x);if(P){E(P);return}if(!this.connected){if(x.cmd==="auth"){this._writePacket(x,E);return}this.log("_sendPacket :: client not connected. Storing packet offline."),this._storePacket(x,E,k);return}if(M){this._writePacket(x,E);return}switch(x.cmd){case"publish":break;case"pubrel":this._storeAndSend(x,E,k);return;default:this._writePacket(x,E);return}switch(x.qos){case 2:case 1:this._storeAndSend(x,E,k);break;case 0:default:this._writePacket(x,E);break}this.log("_sendPacket :: (%s) :: end",this.options.clientId)}_storePacket(x,E,k){this.log("_storePacket :: packet: %o",x),this.log("_storePacket :: cb? %s",!!E),k=k||this.noop;let M=x;if(M.cmd==="publish"){M=(0,c.default)(x);let D=this._removeTopicAliasAndRecoverTopicName(M);if(D)return E&&E(D)}let P=M.qos||0;P===0&&this.queueQoSZero||M.cmd!=="publish"?this.queue.push({packet:M,cb:E}):P>0?(E=this.outgoing[M.messageId]?this.outgoing[M.messageId].cb:null,this.outgoingStore.put(M,D=>{if(D)return E&&E(D);k()})):E&&E(new Error("No connection to broker"))}_setupKeepaliveManager(){this.log("_setupKeepaliveManager :: keepalive %d (seconds)",this.options.keepalive),!this.keepaliveManager&&this.options.keepalive&&(this.keepaliveManager=new y.default(this,this.options.timerVariant))}_destroyKeepaliveManager(){this.keepaliveManager&&(this.log("_destroyKeepaliveManager :: destroying keepalive manager"),this.keepaliveManager.destroy(),this.keepaliveManager=null)}reschedulePing(x=!1){this.keepaliveManager&&this.options.keepalive&&(x||this.options.reschedulePings)&&this._reschedulePing()}_reschedulePing(){this.log("_reschedulePing :: rescheduling ping"),this.keepaliveManager.reschedule()}sendPing(){this.log("_sendPing :: sending pingreq"),this._sendPacket({cmd:"pingreq"})}onKeepaliveTimeout(){this.emit("error",new Error("Keepalive timeout")),this.log("onKeepaliveTimeout :: calling _cleanUp with force true"),this._cleanUp(!0)}_resubscribe(){this.log("_resubscribe");let x=Object.keys(this._resubscribeTopics);if(!this._firstConnection&&(this.options.clean||this.options.protocolVersion>=4&&!this.connackPacket.sessionPresent)&&x.length>0)if(this.options.resubscribe)if(this.options.protocolVersion===5){this.log("_resubscribe: protocolVersion 5");for(let E=0;E<x.length;E++){let k={};k[x[E]]=this._resubscribeTopics[x[E]],k.resubscribe=!0,this.subscribe(k,{properties:k[x[E]].properties})}}else this._resubscribeTopics.resubscribe=!0,this.subscribe(this._resubscribeTopics);else this._resubscribeTopics={};this._firstConnection=!1}_onConnect(x){if(this.disconnected){this.emit("connect",x);return}this.connackPacket=x,this.messageIdProvider.clear(),this._setupKeepaliveManager(),this.connected=!0;let E=()=>{let k=this.outgoingStore.createStream(),M=()=>{k.destroy(),k=null,this._flushStoreProcessingQueue(),P()},P=()=>{this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={}};this.once("close",M),k.on("error",R=>{P(),this._flushStoreProcessingQueue(),this.removeListener("close",M),this.emit("error",R)});let D=()=>{if(!k)return;let R=k.read(1),A;if(!R){k.once("readable",D);return}if(this._storeProcessing=!0,this._packetIdsDuringStoreProcessing[R.messageId]){D();return}!this.disconnecting&&!this.reconnectTimer?(A=this.outgoing[R.messageId]?this.outgoing[R.messageId].cb:null,this.outgoing[R.messageId]={volatile:!1,cb(H,F){A&&A(H,F),D()}},this._packetIdsDuringStoreProcessing[R.messageId]=!0,this.messageIdProvider.register(R.messageId)?this._sendPacket(R,void 0,void 0,!0):this.log("messageId: %d has already used.",R.messageId)):k.destroy&&k.destroy()};k.on("end",()=>{let R=!0;for(let A in this._packetIdsDuringStoreProcessing)if(!this._packetIdsDuringStoreProcessing[A]){R=!1;break}this.removeListener("close",M),R?(P(),this._invokeAllStoreProcessingQueue(),this.emit("connect",x)):E()}),D()};E()}_invokeStoreProcessingQueue(){if(!this._storeProcessing&&this._storeProcessingQueue.length>0){let x=this._storeProcessingQueue[0];if(x&&x.invoke())return this._storeProcessingQueue.shift(),!0}return!1}_invokeAllStoreProcessingQueue(){for(;this._invokeStoreProcessingQueue(););}_flushStoreProcessingQueue(){for(let x of this._storeProcessingQueue)x.cbStorePut&&x.cbStorePut(new Error("Connection closed")),x.callback&&x.callback(new Error("Connection closed"));this._storeProcessingQueue.splice(0)}_removeOutgoingAndStoreMessage(x,E){delete this.outgoing[x],this.outgoingStore.del({messageId:x},(k,M)=>{E(k,M),this.messageIdProvider.deallocate(x),this._invokeStoreProcessingQueue()})}};_.VERSION=m.MQTTJS_VERSION,e.default=_}),tRe=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"__esModule",{value:!0});var t=hpe(),n=class{constructor(){this.numberAllocator=new t.NumberAllocator(1,65535)}allocate(){return this.lastId=this.numberAllocator.alloc(),this.lastId}getLastAllocated(){return this.lastId}register(r){return this.numberAllocator.use(r)}deallocate(r){this.numberAllocator.free(r)}clear(){this.numberAllocator.clear()}};e.default=n});function Wg(e){throw new RangeError(gpe[e])}function SQ(e,t){let n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]);let i=function(o,a){let s=[],l=o.length;for(;l--;)s[l]=a(o[l]);return s}((e=e.replace(mpe,".")).split("."),t).join(".");return r+i}function CQ(e){let t=[],n=0,r=e.length;for(;n<r;){let i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){let o=e.charCodeAt(n++);(64512&o)==56320?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),n--)}else t.push(i)}return t}var xQ,wQ,mpe,gpe,Ju,_T,F$,j$,B$,H$,am,nRe=_s(()=>{pn(),gn(),mn(),xQ=/^xn--/,wQ=/[^\0-\x7E]/,mpe=/[\x2E\u3002\uFF0E\uFF61]/g,gpe={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ju=Math.floor,_T=String.fromCharCode,F$=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},j$=function(e,t,n){let r=0;for(e=n?Ju(e/700):e>>1,e+=Ju(e/t);e>455;r+=36)e=Ju(e/35);return Ju(r+36*e/(e+38))},B$=function(e){let t=[],n=e.length,r=0,i=128,o=72,a=e.lastIndexOf("-");a<0&&(a=0);for(let l=0;l<a;++l)e.charCodeAt(l)>=128&&Wg("not-basic"),t.push(e.charCodeAt(l));for(let l=a>0?a+1:0;l<n;){let c=r;for(let d=1,h=36;;h+=36){l>=n&&Wg("invalid-input");let p=(s=e.charCodeAt(l++))-48<10?s-22:s-65<26?s-65:s-97<26?s-97:36;(p>=36||p>Ju((2147483647-r)/d))&&Wg("overflow"),r+=p*d;let m=h<=o?1:h>=o+26?26:h-o;if(p<m)break;let v=36-m;d>Ju(2147483647/v)&&Wg("overflow"),d*=v}let u=t.length+1;o=j$(r-c,u,c==0),Ju(r/u)>2147483647-i&&Wg("overflow"),i+=Ju(r/u),r%=u,t.splice(r++,0,i)}var s;return String.fromCodePoint(...t)},H$=function(e){let t=[],n=(e=CQ(e)).length,r=128,i=0,o=72;for(let l of e)l<128&&t.push(_T(l));let a=t.length,s=a;for(a&&t.push("-");s<n;){let l=2147483647;for(let u of e)u>=r&&u<l&&(l=u);let c=s+1;l-r>Ju((2147483647-i)/c)&&Wg("overflow"),i+=(l-r)*c,r=l;for(let u of e)if(u<r&&++i>2147483647&&Wg("overflow"),u==r){let d=i;for(let h=36;;h+=36){let p=h<=o?1:h>=o+26?26:h-o;if(d<p)break;let m=d-p,v=36-p;t.push(_T(F$(p+m%v,0))),d=Ju(m/v)}t.push(_T(F$(d,0))),o=j$(i,c,s==a),i=0,++s}++i,++r}return t.join("")},am={version:"2.1.0",ucs2:{decode:CQ,encode:e=>String.fromCodePoint(...e)},decode:B$,encode:H$,toASCII:function(e){return SQ(e,function(t){return wQ.test(t)?"xn--"+H$(t):t})},toUnicode:function(e){return SQ(e,function(t){return xQ.test(t)?B$(t.slice(4).toLowerCase()):t})}},am.decode,am.encode,am.toASCII,am.toUnicode,am.ucs2,am.version});function rRe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var _Q,W0,EQ,mf,iRe=_s(()=>{pn(),gn(),mn(),_Q=function(e,t,n,r){t=t||"&",n=n||"=";var i={};if(typeof e!="string"||e.length===0)return i;var o=/\+/g;e=e.split(t);var a=1e3;r&&typeof r.maxKeys=="number"&&(a=r.maxKeys);var s=e.length;a>0&&s>a&&(s=a);for(var l=0;l<s;++l){var c,u,d,h,p=e[l].replace(o,"%20"),m=p.indexOf(n);m>=0?(c=p.substr(0,m),u=p.substr(m+1)):(c=p,u=""),d=decodeURIComponent(c),h=decodeURIComponent(u),rRe(i,d)?Array.isArray(i[d])?i[d].push(h):i[d]=[i[d],h]:i[d]=h}return i},W0=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},EQ=function(e,t,n,r){return t=t||"&",n=n||"=",e===null&&(e=void 0),typeof e=="object"?Object.keys(e).map(function(i){var o=encodeURIComponent(W0(i))+n;return Array.isArray(e[i])?e[i].map(function(a){return o+encodeURIComponent(W0(a))}).join(t):o+encodeURIComponent(W0(e[i]))}).join(t):r?encodeURIComponent(W0(r))+n+encodeURIComponent(W0(e)):""},mf={},mf.decode=mf.parse=_Q,mf.encode=mf.stringify=EQ,mf.decode,mf.encode,mf.parse,mf.stringify});function PL(){throw new Error("setTimeout has not been defined")}function ML(){throw new Error("clearTimeout has not been defined")}function vpe(e){if(Rh===setTimeout)return setTimeout(e,0);if((Rh===PL||!Rh)&&setTimeout)return Rh=setTimeout,setTimeout(e,0);try{return Rh(e,0)}catch{try{return Rh.call(null,e,0)}catch{return Rh.call(this||W1,e,0)}}}function oRe(){V1&&w1&&(V1=!1,w1.length?If=w1.concat(If):V2=-1,If.length&&ype())}function ype(){if(!V1){var e=vpe(oRe);V1=!0;for(var t=If.length;t;){for(w1=If,If=[];++V2<t;)w1&&w1[V2].run();V2=-1,t=If.length}w1=null,V1=!1,function(n){if(Ah===clearTimeout)return clearTimeout(n);if((Ah===ML||!Ah)&&clearTimeout)return Ah=clearTimeout,clearTimeout(n);try{Ah(n)}catch{try{return Ah.call(null,n)}catch{return Ah.call(this||W1,n)}}}(e)}}function TQ(e,t){(this||W1).fun=e,(this||W1).array=t}function gh(){}var kQ,Rh,Ah,W1,Ko,w1,If,V1,V2,Do,aRe=_s(()=>{pn(),gn(),mn(),W1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,Ko=kQ={},function(){try{Rh=typeof setTimeout=="function"?setTimeout:PL}catch{Rh=PL}try{Ah=typeof clearTimeout=="function"?clearTimeout:ML}catch{Ah=ML}}(),If=[],V1=!1,V2=-1,Ko.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];If.push(new TQ(e,t)),If.length!==1||V1||vpe(ype)},TQ.prototype.run=function(){(this||W1).fun.apply(null,(this||W1).array)},Ko.title="browser",Ko.browser=!0,Ko.env={},Ko.argv=[],Ko.version="",Ko.versions={},Ko.on=gh,Ko.addListener=gh,Ko.once=gh,Ko.off=gh,Ko.removeListener=gh,Ko.removeAllListeners=gh,Ko.emit=gh,Ko.prependListener=gh,Ko.prependOnceListener=gh,Ko.listeners=function(e){return[]},Ko.binding=function(e){throw new Error("process.binding is not supported")},Ko.cwd=function(){return"/"},Ko.chdir=function(e){throw new Error("process.chdir is not supported")},Ko.umask=function(){return 0},Do=kQ,Do.addListener,Do.argv,Do.binding,Do.browser,Do.chdir,Do.cwd,Do.emit,Do.env,Do.listeners,Do.nextTick,Do.off,Do.on,Do.once,Do.prependListener,Do.prependOnceListener,Do.removeAllListeners,Do.removeListener,Do.title,Do.umask,Do.version,Do.versions});function sRe(){if(IL)return g8;IL=!0;var e=g8={},t,n;function r(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?t=setTimeout:t=r}catch{t=r}try{typeof clearTimeout=="function"?n=clearTimeout:n=i}catch{n=i}})();function o(v){if(t===setTimeout)return setTimeout(v,0);if((t===r||!t)&&setTimeout)return t=setTimeout,setTimeout(v,0);try{return t(v,0)}catch{try{return t.call(null,v,0)}catch{return t.call(this||a1,v,0)}}}function a(v){if(n===clearTimeout)return clearTimeout(v);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(v);try{return n(v)}catch{try{return n.call(null,v)}catch{return n.call(this||a1,v)}}}var s=[],l=!1,c,u=-1;function d(){!l||!c||(l=!1,c.length?s=c.concat(s):u=-1,s.length&&h())}function h(){if(!l){var v=o(d);l=!0;for(var y=s.length;y;){for(c=s,s=[];++u<y;)c&&c[u].run();u=-1,y=s.length}c=null,l=!1,a(v)}}e.nextTick=function(v){var y=new Array(arguments.length-1);if(arguments.length>1)for(var S=1;S<arguments.length;S++)y[S-1]=arguments[S];s.push(new p(v,y)),s.length===1&&!l&&o(h)};function p(v,y){(this||a1).fun=v,(this||a1).array=y}p.prototype.run=function(){(this||a1).fun.apply(null,(this||a1).array)},e.title="browser",e.browser=!0,e.env={},e.argv=[],e.version="",e.versions={};function m(){}return e.on=m,e.addListener=m,e.once=m,e.off=m,e.removeListener=m,e.removeAllListeners=m,e.emit=m,e.prependListener=m,e.prependOnceListener=m,e.listeners=function(v){return[]},e.binding=function(v){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(v){throw new Error("process.chdir is not supported")},e.umask=function(){return 0},g8}var g8,IL,a1,Eo,bpe=_s(()=>{pn(),gn(),mn(),g8={},IL=!1,a1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,Eo=sRe(),Eo.platform="browser",Eo.addListener,Eo.argv,Eo.binding,Eo.browser,Eo.chdir,Eo.cwd,Eo.emit,Eo.env,Eo.listeners,Eo.nextTick,Eo.off,Eo.on,Eo.once,Eo.prependListener,Eo.prependOnceListener,Eo.removeAllListeners,Eo.removeListener,Eo.title,Eo.umask,Eo.version,Eo.versions});function lRe(){if($L)return v8;$L=!0;var e=Eo;function t(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function n(o,a){for(var s="",l=0,c=-1,u=0,d,h=0;h<=o.length;++h){if(h<o.length)d=o.charCodeAt(h);else{if(d===47)break;d=47}if(d===47){if(!(c===h-1||u===1))if(c!==h-1&&u===2){if(s.length<2||l!==2||s.charCodeAt(s.length-1)!==46||s.charCodeAt(s.length-2)!==46){if(s.length>2){var p=s.lastIndexOf("/");if(p!==s.length-1){p===-1?(s="",l=0):(s=s.slice(0,p),l=s.length-1-s.lastIndexOf("/")),c=h,u=0;continue}}else if(s.length===2||s.length===1){s="",l=0,c=h,u=0;continue}}a&&(s.length>0?s+="/..":s="..",l=2)}else s.length>0?s+="/"+o.slice(c+1,h):s=o.slice(c+1,h),l=h-c-1;c=h,u=0}else d===46&&u!==-1?++u:u=-1}return s}function r(o,a){var s=a.dir||a.root,l=a.base||(a.name||"")+(a.ext||"");return s?s===a.root?s+l:s+o+l:l}var i={resolve:function(){for(var o="",a=!1,s,l=arguments.length-1;l>=-1&&!a;l--){var c;l>=0?c=arguments[l]:(s===void 0&&(s=e.cwd()),c=s),t(c),c.length!==0&&(o=c+"/"+o,a=c.charCodeAt(0)===47)}return o=n(o,!a),a?o.length>0?"/"+o:"/":o.length>0?o:"."},normalize:function(o){if(t(o),o.length===0)return".";var a=o.charCodeAt(0)===47,s=o.charCodeAt(o.length-1)===47;return o=n(o,!a),o.length===0&&!a&&(o="."),o.length>0&&s&&(o+="/"),a?"/"+o:o},isAbsolute:function(o){return t(o),o.length>0&&o.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var o,a=0;a<arguments.length;++a){var s=arguments[a];t(s),s.length>0&&(o===void 0?o=s:o+="/"+s)}return o===void 0?".":i.normalize(o)},relative:function(o,a){if(t(o),t(a),o===a||(o=i.resolve(o),a=i.resolve(a),o===a))return"";for(var s=1;s<o.length&&o.charCodeAt(s)===47;++s);for(var l=o.length,c=l-s,u=1;u<a.length&&a.charCodeAt(u)===47;++u);for(var d=a.length,h=d-u,p=c<h?c:h,m=-1,v=0;v<=p;++v){if(v===p){if(h>p){if(a.charCodeAt(u+v)===47)return a.slice(u+v+1);if(v===0)return a.slice(u+v)}else c>p&&(o.charCodeAt(s+v)===47?m=v:v===0&&(m=0));break}var y=o.charCodeAt(s+v),S=a.charCodeAt(u+v);if(y!==S)break;y===47&&(m=v)}var b="";for(v=s+m+1;v<=l;++v)(v===l||o.charCodeAt(v)===47)&&(b.length===0?b+="..":b+="/..");return b.length>0?b+a.slice(u+m):(u+=m,a.charCodeAt(u)===47&&++u,a.slice(u))},_makeLong:function(o){return o},dirname:function(o){if(t(o),o.length===0)return".";for(var a=o.charCodeAt(0),s=a===47,l=-1,c=!0,u=o.length-1;u>=1;--u)if(a=o.charCodeAt(u),a===47){if(!c){l=u;break}}else c=!1;return l===-1?s?"/":".":s&&l===1?"//":o.slice(0,l)},basename:function(o,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');t(o);var s=0,l=-1,c=!0,u;if(a!==void 0&&a.length>0&&a.length<=o.length){if(a.length===o.length&&a===o)return"";var d=a.length-1,h=-1;for(u=o.length-1;u>=0;--u){var p=o.charCodeAt(u);if(p===47){if(!c){s=u+1;break}}else h===-1&&(c=!1,h=u+1),d>=0&&(p===a.charCodeAt(d)?--d===-1&&(l=u):(d=-1,l=h))}return s===l?l=h:l===-1&&(l=o.length),o.slice(s,l)}else{for(u=o.length-1;u>=0;--u)if(o.charCodeAt(u)===47){if(!c){s=u+1;break}}else l===-1&&(c=!1,l=u+1);return l===-1?"":o.slice(s,l)}},extname:function(o){t(o);for(var a=-1,s=0,l=-1,c=!0,u=0,d=o.length-1;d>=0;--d){var h=o.charCodeAt(d);if(h===47){if(!c){s=d+1;break}continue}l===-1&&(c=!1,l=d+1),h===46?a===-1?a=d:u!==1&&(u=1):a!==-1&&(u=-1)}return a===-1||l===-1||u===0||u===1&&a===l-1&&a===s+1?"":o.slice(a,l)},format:function(o){if(o===null||typeof o!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof o);return r("/",o)},parse:function(o){t(o);var a={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return a;var s=o.charCodeAt(0),l=s===47,c;l?(a.root="/",c=1):c=0;for(var u=-1,d=0,h=-1,p=!0,m=o.length-1,v=0;m>=c;--m){if(s=o.charCodeAt(m),s===47){if(!p){d=m+1;break}continue}h===-1&&(p=!1,h=m+1),s===46?u===-1?u=m:v!==1&&(v=1):u!==-1&&(v=-1)}return u===-1||h===-1||v===0||v===1&&u===h-1&&u===d+1?h!==-1&&(d===0&&l?a.base=a.name=o.slice(1,h):a.base=a.name=o.slice(d,h)):(d===0&&l?(a.name=o.slice(1,u),a.base=o.slice(1,h)):(a.name=o.slice(d,u),a.base=o.slice(d,h)),a.ext=o.slice(u,h)),d>0?a.dir=o.slice(0,d-1):l&&(a.dir="/"),a},sep:"/",delimiter:":",win32:null,posix:null};return i.posix=i,v8=i,v8}var v8,$L,RL,cRe=_s(()=>{pn(),gn(),mn(),bpe(),v8={},$L=!1,RL=lRe()}),Spe={};Bv(Spe,{URL:()=>Fpe,Url:()=>Rpe,default:()=>qi,fileURLToPath:()=>Cpe,format:()=>Ape,parse:()=>Lpe,pathToFileURL:()=>xpe,resolve:()=>Npe,resolveObject:()=>Dpe});function nu(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function Ox(e,t,n){if(e&&nd.isObject(e)&&e instanceof nu)return e;var r=new nu;return r.parse(e,t,n),r}function uRe(){if(AL)return y8;AL=!0;var e=Do;function t(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function n(o,a){for(var s="",l=0,c=-1,u=0,d,h=0;h<=o.length;++h){if(h<o.length)d=o.charCodeAt(h);else{if(d===47)break;d=47}if(d===47){if(!(c===h-1||u===1))if(c!==h-1&&u===2){if(s.length<2||l!==2||s.charCodeAt(s.length-1)!==46||s.charCodeAt(s.length-2)!==46){if(s.length>2){var p=s.lastIndexOf("/");if(p!==s.length-1){p===-1?(s="",l=0):(s=s.slice(0,p),l=s.length-1-s.lastIndexOf("/")),c=h,u=0;continue}}else if(s.length===2||s.length===1){s="",l=0,c=h,u=0;continue}}a&&(s.length>0?s+="/..":s="..",l=2)}else s.length>0?s+="/"+o.slice(c+1,h):s=o.slice(c+1,h),l=h-c-1;c=h,u=0}else d===46&&u!==-1?++u:u=-1}return s}function r(o,a){var s=a.dir||a.root,l=a.base||(a.name||"")+(a.ext||"");return s?s===a.root?s+l:s+o+l:l}var i={resolve:function(){for(var o="",a=!1,s,l=arguments.length-1;l>=-1&&!a;l--){var c;l>=0?c=arguments[l]:(s===void 0&&(s=e.cwd()),c=s),t(c),c.length!==0&&(o=c+"/"+o,a=c.charCodeAt(0)===47)}return o=n(o,!a),a?o.length>0?"/"+o:"/":o.length>0?o:"."},normalize:function(o){if(t(o),o.length===0)return".";var a=o.charCodeAt(0)===47,s=o.charCodeAt(o.length-1)===47;return o=n(o,!a),o.length===0&&!a&&(o="."),o.length>0&&s&&(o+="/"),a?"/"+o:o},isAbsolute:function(o){return t(o),o.length>0&&o.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var o,a=0;a<arguments.length;++a){var s=arguments[a];t(s),s.length>0&&(o===void 0?o=s:o+="/"+s)}return o===void 0?".":i.normalize(o)},relative:function(o,a){if(t(o),t(a),o===a||(o=i.resolve(o),a=i.resolve(a),o===a))return"";for(var s=1;s<o.length&&o.charCodeAt(s)===47;++s);for(var l=o.length,c=l-s,u=1;u<a.length&&a.charCodeAt(u)===47;++u);for(var d=a.length,h=d-u,p=c<h?c:h,m=-1,v=0;v<=p;++v){if(v===p){if(h>p){if(a.charCodeAt(u+v)===47)return a.slice(u+v+1);if(v===0)return a.slice(u+v)}else c>p&&(o.charCodeAt(s+v)===47?m=v:v===0&&(m=0));break}var y=o.charCodeAt(s+v),S=a.charCodeAt(u+v);if(y!==S)break;y===47&&(m=v)}var b="";for(v=s+m+1;v<=l;++v)(v===l||o.charCodeAt(v)===47)&&(b.length===0?b+="..":b+="/..");return b.length>0?b+a.slice(u+m):(u+=m,a.charCodeAt(u)===47&&++u,a.slice(u))},_makeLong:function(o){return o},dirname:function(o){if(t(o),o.length===0)return".";for(var a=o.charCodeAt(0),s=a===47,l=-1,c=!0,u=o.length-1;u>=1;--u)if(a=o.charCodeAt(u),a===47){if(!c){l=u;break}}else c=!1;return l===-1?s?"/":".":s&&l===1?"//":o.slice(0,l)},basename:function(o,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');t(o);var s=0,l=-1,c=!0,u;if(a!==void 0&&a.length>0&&a.length<=o.length){if(a.length===o.length&&a===o)return"";var d=a.length-1,h=-1;for(u=o.length-1;u>=0;--u){var p=o.charCodeAt(u);if(p===47){if(!c){s=u+1;break}}else h===-1&&(c=!1,h=u+1),d>=0&&(p===a.charCodeAt(d)?--d===-1&&(l=u):(d=-1,l=h))}return s===l?l=h:l===-1&&(l=o.length),o.slice(s,l)}else{for(u=o.length-1;u>=0;--u)if(o.charCodeAt(u)===47){if(!c){s=u+1;break}}else l===-1&&(c=!1,l=u+1);return l===-1?"":o.slice(s,l)}},extname:function(o){t(o);for(var a=-1,s=0,l=-1,c=!0,u=0,d=o.length-1;d>=0;--d){var h=o.charCodeAt(d);if(h===47){if(!c){s=d+1;break}continue}l===-1&&(c=!1,l=d+1),h===46?a===-1?a=d:u!==1&&(u=1):a!==-1&&(u=-1)}return a===-1||l===-1||u===0||u===1&&a===l-1&&a===s+1?"":o.slice(a,l)},format:function(o){if(o===null||typeof o!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof o);return r("/",o)},parse:function(o){t(o);var a={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return a;var s=o.charCodeAt(0),l=s===47,c;l?(a.root="/",c=1):c=0;for(var u=-1,d=0,h=-1,p=!0,m=o.length-1,v=0;m>=c;--m){if(s=o.charCodeAt(m),s===47){if(!p){d=m+1;break}continue}h===-1&&(p=!1,h=m+1),s===46?u===-1?u=m:v!==1&&(v=1):u!==-1&&(v=-1)}return u===-1||h===-1||v===0||v===1&&u===h-1&&u===d+1?h!==-1&&(d===0&&l?a.base=a.name=o.slice(1,h):a.base=a.name=o.slice(d,h)):(d===0&&l?(a.name=o.slice(1,u),a.base=o.slice(1,h)):(a.name=o.slice(d,u),a.base=o.slice(d,h)),a.ext=o.slice(u,h)),d>0?a.dir=o.slice(0,d-1):l&&(a.dir="/"),a},sep:"/",delimiter:":",win32:null,posix:null};return i.posix=i,y8=i,y8}function dRe(e){if(typeof e=="string")e=new URL(e);else if(!(e instanceof URL))throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");if(e.protocol!=="file:")throw new Deno.errors.InvalidData("invalid url scheme");return J3?fRe(e):hRe(e)}function fRe(e){let t=e.hostname,n=e.pathname;for(let r=0;r<n.length;r++)if(n[r]==="%"){let i=n.codePointAt(r+2)||32;if(n[r+1]==="2"&&i===102||n[r+1]==="5"&&i===99)throw new Deno.errors.InvalidData("must not include encoded \\ or / characters")}if(n=n.replace(kpe,"\\"),n=decodeURIComponent(n),t!=="")return`\\\\${t}${n}`;{let r=n.codePointAt(1)|32,i=n[2];if(r<Epe||r>Tpe||i!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return n.slice(1)}}function hRe(e){if(e.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let t=e.pathname;for(let n=0;n<t.length;n++)if(t[n]==="%"){let r=t.codePointAt(n+2)||32;if(t[n+1]==="2"&&r===102)throw new Deno.errors.InvalidData("must not include encoded / characters")}return decodeURIComponent(t)}function pRe(e){let t=NL.resolve(e),n=e.charCodeAt(e.length-1);(n===_pe||J3&&n===wpe)&&t[t.length-1]!==NL.sep&&(t+="/");let r=new URL("file://");return t.includes("%")&&(t=t.replace(Ope,"%25")),!J3&&t.includes("\\")&&(t=t.replace(Ppe,"%5C")),t.includes(`
|
||
`)&&(t=t.replace(Mpe,"%0A")),t.includes("\r")&&(t=t.replace(Ipe,"%0D")),t.includes(" ")&&(t=t.replace($pe,"%09")),r.pathname=t,r}function Cpe(e){if(typeof e=="string")e=new URL(e);else if(!(e instanceof URL))throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");if(e.protocol!=="file:")throw new Deno.errors.InvalidData("invalid url scheme");return e9?mRe(e):gRe(e)}function mRe(e){let t=e.hostname,n=e.pathname;for(let r=0;r<n.length;r++)if(n[r]==="%"){let i=n.codePointAt(r+2)||32;if(n[r+1]==="2"&&i===102||n[r+1]==="5"&&i===99)throw new Deno.errors.InvalidData("must not include encoded \\ or / characters")}if(n=n.replace(Upe,"\\"),n=decodeURIComponent(n),t!=="")return`\\\\${t}${n}`;{let r=n.codePointAt(1)|32,i=n[2];if(r<Hpe||r>zpe||i!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return n.slice(1)}}function gRe(e){if(e.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let t=e.pathname;for(let n=0;n<t.length;n++)if(t[n]==="%"){let r=t.codePointAt(n+2)||32;if(t[n+1]==="2"&&r===102)throw new Deno.errors.InvalidData("must not include encoded / characters")}return decodeURIComponent(t)}function xpe(e){let t=RL.resolve(e),n=e.charCodeAt(e.length-1);(n===Bpe||e9&&n===jpe)&&t[t.length-1]!==RL.sep&&(t+="/");let r=new URL("file://");return t.includes("%")&&(t=t.replace(Wpe,"%25")),!e9&&t.includes("\\")&&(t=t.replace(Vpe,"%5C")),t.includes(`
|
||
`)&&(t=t.replace(Kpe,"%0A")),t.includes("\r")&&(t=t.replace(qpe,"%0D")),t.includes(" ")&&(t=t.replace(Gpe,"%09")),r.pathname=t,r}var qi,OQ,nd,PQ,MQ,IQ,$Q,ET,z$,U$,W$,RQ,AQ,TT,Vg,kT,y8,AL,NL,NQ,wpe,_pe,Epe,Tpe,J3,kpe,Ope,Ppe,Mpe,Ipe,$pe,DQ,Rpe,Ape,Npe,Dpe,Lpe,Fpe,jpe,Bpe,Hpe,zpe,e9,Upe,Wpe,Vpe,Kpe,qpe,Gpe,vRe=_s(()=>{pn(),gn(),mn(),nRe(),iRe(),aRe(),cRe(),bpe(),qi={},OQ=am,nd={isString:function(e){return typeof e=="string"},isObject:function(e){return typeof e=="object"&&e!==null},isNull:function(e){return e===null},isNullOrUndefined:function(e){return e==null}},qi.parse=Ox,qi.resolve=function(e,t){return Ox(e,!1,!0).resolve(t)},qi.resolveObject=function(e,t){return e?Ox(e,!1,!0).resolveObject(t):t},qi.format=function(e){return nd.isString(e)&&(e=Ox(e)),e instanceof nu?e.format():nu.prototype.format.call(e)},qi.Url=nu,PQ=/^([a-z0-9.+-]+:)/i,MQ=/:[0-9]*$/,IQ=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,$Q=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",`
|
||
`," "]),ET=["'"].concat($Q),z$=["%","/","?",";","#"].concat(ET),U$=["/","?","#"],W$=/^[+a-z0-9A-Z_-]{0,63}$/,RQ=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,AQ={javascript:!0,"javascript:":!0},TT={javascript:!0,"javascript:":!0},Vg={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},kT=mf,nu.prototype.parse=function(e,t,n){if(!nd.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),i=r!==-1&&r<e.indexOf("#")?"?":"#",o=e.split(i);o[0]=o[0].replace(/\\/g,"/");var a=e=o.join(i);if(a=a.trim(),!n&&e.split("#").length===1){var s=IQ.exec(a);if(s)return this.path=a,this.href=a,this.pathname=s[1],s[2]?(this.search=s[2],this.query=t?kT.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var l=PQ.exec(a);if(l){var c=(l=l[0]).toLowerCase();this.protocol=c,a=a.substr(l.length)}if(n||l||a.match(/^\/\/[^@\/]+@[^@\/]+/)){var u=a.substr(0,2)==="//";!u||l&&TT[l]||(a=a.substr(2),this.slashes=!0)}if(!TT[l]&&(u||l&&!Vg[l])){for(var d,h,p=-1,m=0;m<U$.length;m++)(v=a.indexOf(U$[m]))!==-1&&(p===-1||v<p)&&(p=v);for((h=p===-1?a.lastIndexOf("@"):a.lastIndexOf("@",p))!==-1&&(d=a.slice(0,h),a=a.slice(h+1),this.auth=decodeURIComponent(d)),p=-1,m=0;m<z$.length;m++){var v;(v=a.indexOf(z$[m]))!==-1&&(p===-1||v<p)&&(p=v)}p===-1&&(p=a.length),this.host=a.slice(0,p),a=a.slice(p),this.parseHost(),this.hostname=this.hostname||"";var y=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!y)for(var S=this.hostname.split(/\./),b=(m=0,S.length);m<b;m++){var C=S[m];if(C&&!C.match(W$)){for(var _="",T=0,x=C.length;T<x;T++)C.charCodeAt(T)>127?_+="x":_+=C[T];if(!_.match(W$)){var E=S.slice(0,m),k=S.slice(m+1),M=C.match(RQ);M&&(E.push(M[1]),k.unshift(M[2])),k.length&&(a="/"+k.join(".")+a),this.hostname=E.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),y||(this.hostname=OQ.toASCII(this.hostname));var P=this.port?":"+this.port:"",D=this.hostname||"";this.host=D+P,this.href+=this.host,y&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),a[0]!=="/"&&(a="/"+a))}if(!AQ[c])for(m=0,b=ET.length;m<b;m++){var R=ET[m];if(a.indexOf(R)!==-1){var A=encodeURIComponent(R);A===R&&(A=escape(R)),a=a.split(R).join(A)}}var H=a.indexOf("#");H!==-1&&(this.hash=a.substr(H),a=a.slice(0,H));var F=a.indexOf("?");if(F!==-1?(this.search=a.substr(F),this.query=a.substr(F+1),t&&(this.query=kT.parse(this.query)),a=a.slice(0,F)):t&&(this.search="",this.query={}),a&&(this.pathname=a),Vg[c]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){P=this.pathname||"";var z=this.search||"";this.path=P+z}return this.href=this.format(),this},nu.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&nd.isObject(this.query)&&Object.keys(this.query).length&&(o=kT.stringify(this.query));var a=this.search||o&&"?"+o||"";return t&&t.substr(-1)!==":"&&(t+=":"),this.slashes||(!t||Vg[t])&&i!==!1?(i="//"+(i||""),n&&n.charAt(0)!=="/"&&(n="/"+n)):i||(i=""),r&&r.charAt(0)!=="#"&&(r="#"+r),a&&a.charAt(0)!=="?"&&(a="?"+a),t+i+(n=n.replace(/[?#]/g,function(s){return encodeURIComponent(s)}))+(a=a.replace("#","%23"))+r},nu.prototype.resolve=function(e){return this.resolveObject(Ox(e,!1,!0)).format()},nu.prototype.resolveObject=function(e){if(nd.isString(e)){var t=new nu;t.parse(e,!1,!0),e=t}for(var n=new nu,r=Object.keys(this),i=0;i<r.length;i++){var o=r[i];n[o]=this[o]}if(n.hash=e.hash,e.href==="")return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var a=Object.keys(e),s=0;s<a.length;s++){var l=a[s];l!=="protocol"&&(n[l]=e[l])}return Vg[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!Vg[e.protocol]){for(var c=Object.keys(e),u=0;u<c.length;u++){var d=c[u];n[d]=e[d]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||TT[e.protocol])n.pathname=e.pathname;else{for(var h=(e.pathname||"").split("/");h.length&&!(e.host=h.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),h[0]!==""&&h.unshift(""),h.length<2&&h.unshift(""),n.pathname=h.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var p=n.pathname||"",m=n.search||"";n.path=p+m}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var v=n.pathname&&n.pathname.charAt(0)==="/",y=e.host||e.pathname&&e.pathname.charAt(0)==="/",S=y||v||n.host&&e.pathname,b=S,C=n.pathname&&n.pathname.split("/")||[],_=(h=e.pathname&&e.pathname.split("/")||[],n.protocol&&!Vg[n.protocol]);if(_&&(n.hostname="",n.port=null,n.host&&(C[0]===""?C[0]=n.host:C.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(h[0]===""?h[0]=e.host:h.unshift(e.host)),e.host=null),S=S&&(h[0]===""||C[0]==="")),y)n.host=e.host||e.host===""?e.host:n.host,n.hostname=e.hostname||e.hostname===""?e.hostname:n.hostname,n.search=e.search,n.query=e.query,C=h;else if(h.length)C||(C=[]),C.pop(),C=C.concat(h),n.search=e.search,n.query=e.query;else if(!nd.isNullOrUndefined(e.search))return _&&(n.hostname=n.host=C.shift(),(M=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=M.shift(),n.host=n.hostname=M.shift())),n.search=e.search,n.query=e.query,nd.isNull(n.pathname)&&nd.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n;if(!C.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var T=C.slice(-1)[0],x=(n.host||e.host||C.length>1)&&(T==="."||T==="..")||T==="",E=0,k=C.length;k>=0;k--)(T=C[k])==="."?C.splice(k,1):T===".."?(C.splice(k,1),E++):E&&(C.splice(k,1),E--);if(!S&&!b)for(;E--;E)C.unshift("..");!S||C[0]===""||C[0]&&C[0].charAt(0)==="/"||C.unshift(""),x&&C.join("/").substr(-1)!=="/"&&C.push("");var M,P=C[0]===""||C[0]&&C[0].charAt(0)==="/";return _&&(n.hostname=n.host=P?"":C.length?C.shift():"",(M=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=M.shift(),n.host=n.hostname=M.shift())),(S=S||n.host&&C.length)&&!P&&C.unshift(""),C.length?n.pathname=C.join("/"):(n.pathname=null,n.path=null),nd.isNull(n.pathname)&&nd.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},nu.prototype.parseHost=function(){var e=this.host,t=MQ.exec(e);t&&((t=t[0])!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},qi.Url,qi.format,qi.resolve,qi.resolveObject,y8={},AL=!1,NL=uRe(),NQ=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,qi.URL=typeof URL<"u"?URL:null,qi.pathToFileURL=pRe,qi.fileURLToPath=dRe,qi.Url,qi.format,qi.resolve,qi.resolveObject,qi.URL,wpe=92,_pe=47,Epe=97,Tpe=122,J3=NQ==="win32",kpe=/\//g,Ope=/%/g,Ppe=/\\/g,Mpe=/\n/g,Ipe=/\r/g,$pe=/\t/g,DQ=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,qi.URL=typeof URL<"u"?URL:null,qi.pathToFileURL=xpe,qi.fileURLToPath=Cpe,Rpe=qi.Url,Ape=qi.format,Npe=qi.resolve,Dpe=qi.resolveObject,Lpe=qi.parse,Fpe=qi.URL,jpe=92,Bpe=47,Hpe=97,zpe=122,e9=DQ==="win32",Upe=/\//g,Wpe=/%/g,Vpe=/\\/g,Kpe=/\n/g,qpe=/\r/g,Gpe=/\t/g}),yRe=Tn((e,t)=>{pn(),gn(),mn(),t.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}}),Tz=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"__esModule",{value:!0}),e.BufferedDuplex=e.writev=void 0;var t=Uv(),n=(Ts(),eo(Es));function r(o,a){let s=new Array(o.length);for(let l=0;l<o.length;l++)typeof o[l].chunk=="string"?s[l]=n.Buffer.from(o[l].chunk,"utf8"):s[l]=o[l].chunk;this._write(n.Buffer.concat(s),"binary",a)}e.writev=r;var i=class extends t.Duplex{constructor(o,a,s){super({objectMode:!0}),this.proxy=a,this.socket=s,this.writeQueue=[],o.objectMode||(this._writev=r.bind(this)),this.isSocketOpen=!1,this.proxy.on("data",l=>{this.destroyed||this.push(l)})}_read(o){this.proxy.read(o)}_write(o,a,s){this.isSocketOpen?this.writeToProxy(o,a,s):this.writeQueue.push({chunk:o,encoding:a,cb:s})}_final(o){this.writeQueue=[],this.proxy.end(o)}_destroy(o,a){this.writeQueue=[],this.proxy.destroy(),a(o)}socketReady(){this.emit("connect"),this.isSocketOpen=!0,this.processWriteQueue()}writeToProxy(o,a,s){this.proxy.write(o,a)===!1?this.proxy.once("drain",s):s()}processWriteQueue(){for(;this.writeQueue.length>0;){let{chunk:o,encoding:a,cb:s}=this.writeQueue.shift();this.writeToProxy(o,a,s)}}};e.BufferedDuplex=i}),OT=Tn(e=>{pn(),gn(),mn();var t=e&&e.__importDefault||function(S){return S&&S.__esModule?S:{default:S}};Object.defineProperty(e,"__esModule",{value:!0}),e.streamBuilder=e.browserStreamBuilder=void 0;var n=(Ts(),eo(Es)),r=t(yRe()),i=t(cp()),o=Uv(),a=t(j6()),s=Tz(),l=(0,i.default)("mqttjs:ws"),c=["rejectUnauthorized","ca","cert","key","pfx","passphrase"];function u(S,b){let C=`${S.protocol}://${S.hostname}:${S.port}${S.path}`;return typeof S.transformWsUrl=="function"&&(C=S.transformWsUrl(C,S,b)),C}function d(S){let b=S;return S.port||(S.protocol==="wss"?b.port=443:b.port=80),S.path||(b.path="/"),S.wsOptions||(b.wsOptions={}),!a.default&&!S.forceNativeWebSocket&&S.protocol==="wss"&&c.forEach(C=>{Object.prototype.hasOwnProperty.call(S,C)&&!Object.prototype.hasOwnProperty.call(S.wsOptions,C)&&(b.wsOptions[C]=S[C])}),b}function h(S){let b=d(S);if(b.hostname||(b.hostname=b.host),!b.hostname){if(typeof document>"u")throw new Error("Could not determine host. Specify host manually.");let C=new URL(document.URL);b.hostname=C.hostname,b.port||(b.port=Number(C.port))}return b.objectMode===void 0&&(b.objectMode=!(b.binary===!0||b.binary===void 0)),b}function p(S,b,C){l("createWebSocket"),l(`protocol: ${C.protocolId} ${C.protocolVersion}`);let _=C.protocolId==="MQIsdp"&&C.protocolVersion===3?"mqttv3.1":"mqtt";l(`creating new Websocket for url: ${b} and protocol: ${_}`);let T;return C.createWebsocket?T=C.createWebsocket(b,[_],C):T=new r.default(b,[_],C.wsOptions),T}function m(S,b){let C=b.protocolId==="MQIsdp"&&b.protocolVersion===3?"mqttv3.1":"mqtt",_=u(b,S),T;return b.createWebsocket?T=b.createWebsocket(_,[C],b):T=new WebSocket(_,[C]),T.binaryType="arraybuffer",T}var v=(S,b)=>{l("streamBuilder");let C=d(b);C.hostname=C.hostname||C.host||"localhost";let _=u(C,S),T=p(S,_,C),x=r.default.createWebSocketStream(T,C.wsOptions);return x.url=_,T.on("close",()=>{x.destroy()}),x};e.streamBuilder=v;var y=(S,b)=>{l("browserStreamBuilder");let C,_=h(b).browserBufferSize||1024*512,T=b.browserBufferTimeout||1e3,x=!b.objectMode,E=m(S,b),k=P(b,F,z);b.objectMode||(k._writev=s.writev.bind(k)),k.on("close",()=>{E.close()});let M=typeof E.addEventListener<"u";E.readyState===E.OPEN?(C=k,C.socket=E):(C=new s.BufferedDuplex(b,k,E),M?E.addEventListener("open",D):E.onopen=D),M?(E.addEventListener("close",R),E.addEventListener("error",A),E.addEventListener("message",H)):(E.onclose=R,E.onerror=A,E.onmessage=H);function P(W,q,Z){let N=new o.Transform({objectMode:W.objectMode});return N._write=q,N._flush=Z,N}function D(){l("WebSocket onOpen"),C instanceof s.BufferedDuplex&&C.socketReady()}function R(W){l("WebSocket onClose",W),C.end(),C.destroy()}function A(W){l("WebSocket onError",W);let q=new Error("WebSocket error");q.event=W,C.destroy(q)}async function H(W){let{data:q}=W;q instanceof ArrayBuffer?q=n.Buffer.from(q):q instanceof Blob?q=n.Buffer.from(await new Response(q).arrayBuffer()):q=n.Buffer.from(q,"utf8"),k&&!k.destroyed&&k.push(q)}function F(W,q,Z){if(E.bufferedAmount>_){setTimeout(F,T,W,q,Z);return}x&&typeof W=="string"&&(W=n.Buffer.from(W,"utf8"));try{E.send(W)}catch(N){return Z(N)}Z()}function z(W){E.close(),W()}return C};e.browserStreamBuilder=y}),kz={};Bv(kz,{Server:()=>ko,Socket:()=>ko,Stream:()=>ko,_createServerHandle:()=>ko,_normalizeArgs:()=>ko,_setSimultaneousAccepts:()=>ko,connect:()=>ko,createConnection:()=>ko,createServer:()=>ko,default:()=>Ype,isIP:()=>ko,isIPv4:()=>ko,isIPv6:()=>ko});function ko(){throw new Error("Node.js net module is not supported by JSPM core outside of Node.js")}var Ype,Xpe=_s(()=>{pn(),gn(),mn(),Ype={_createServerHandle:ko,_normalizeArgs:ko,_setSimultaneousAccepts:ko,connect:ko,createConnection:ko,createServer:ko,isIP:ko,isIPv4:ko,isIPv6:ko,Server:ko,Socket:ko,Stream:ko}}),LQ=Tn(e=>{pn(),gn(),mn();var t=e&&e.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0});var n=t((Xpe(),eo(kz))),r=t(cp()),i=(0,r.default)("mqttjs:tcp"),o=(a,s)=>{s.port=s.port||1883,s.hostname=s.hostname||s.host||"localhost";let{port:l,path:c}=s,u=s.hostname;return i("port %d and host %s",l,u),n.default.createConnection({port:l,host:u,path:c})};e.default=o}),Qpe={};Bv(Qpe,{default:()=>Zpe});var Zpe,bRe=_s(()=>{pn(),gn(),mn(),Zpe={}}),FQ=Tn(e=>{pn(),gn(),mn();var t=e&&e.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0});var n=t((bRe(),eo(Qpe))),r=t((Xpe(),eo(kz))),i=t(cp()),o=(0,i.default)("mqttjs:tls"),a=(s,l)=>{l.port=l.port||8883,l.host=l.hostname||l.host||"localhost",r.default.isIP(l.host)===0&&(l.servername=l.host),l.rejectUnauthorized=l.rejectUnauthorized!==!1,delete l.path,o("port %d host %s rejectUnauthorized %b",l.port,l.host,l.rejectUnauthorized);let c=n.default.connect(l);c.on("secureConnect",()=>{l.rejectUnauthorized&&!c.authorized?c.emit("error",new Error("TLS not authorized")):c.removeListener("error",u)});function u(d){l.rejectUnauthorized&&s.emit("error",d),c.end()}return c.on("error",u),c};e.default=a}),jQ=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"__esModule",{value:!0});var t=(Ts(),eo(Es)),n=Uv(),r=Tz(),i,o,a;function s(){let h=new n.Transform;return h._write=(p,m,v)=>{i.send({data:p.buffer,success(){v()},fail(y){v(new Error(y))}})},h._flush=p=>{i.close({success(){p()}})},h}function l(h){h.hostname||(h.hostname="localhost"),h.path||(h.path="/"),h.wsOptions||(h.wsOptions={})}function c(h,p){let m=h.protocol==="wxs"?"wss":"ws",v=`${m}://${h.hostname}${h.path}`;return h.port&&h.port!==80&&h.port!==443&&(v=`${m}://${h.hostname}:${h.port}${h.path}`),typeof h.transformWsUrl=="function"&&(v=h.transformWsUrl(v,h,p)),v}function u(){i.onOpen(()=>{a.socketReady()}),i.onMessage(h=>{let{data:p}=h;p instanceof ArrayBuffer?p=t.Buffer.from(p):p=t.Buffer.from(p,"utf8"),o.push(p)}),i.onClose(()=>{a.emit("close"),a.end(),a.destroy()}),i.onError(h=>{let p=new Error(h.errMsg);a.destroy(p)})}var d=(h,p)=>{if(p.hostname=p.hostname||p.host,!p.hostname)throw new Error("Could not determine host. Specify host manually.");let m=p.protocolId==="MQIsdp"&&p.protocolVersion===3?"mqttv3.1":"mqtt";l(p);let v=c(p,h);i=wx.connectSocket({url:v,protocols:[m]}),o=s(),a=new r.BufferedDuplex(p,o,i),a._destroy=(S,b)=>{i.close({success(){b&&b(S)}})};let y=a.destroy;return a.destroy=(S,b)=>(a.destroy=y,setTimeout(()=>{i.close({fail(){a._destroy(S,b)}})},0),a),u(),a};e.default=d}),BQ=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"__esModule",{value:!0});var t=(Ts(),eo(Es)),n=Uv(),r=Tz(),i,o,a,s=!1;function l(){let p=new n.Transform;return p._write=(m,v,y)=>{i.sendSocketMessage({data:m.buffer,success(){y()},fail(){y(new Error)}})},p._flush=m=>{i.closeSocket({success(){m()}})},p}function c(p){p.hostname||(p.hostname="localhost"),p.path||(p.path="/"),p.wsOptions||(p.wsOptions={})}function u(p,m){let v=p.protocol==="alis"?"wss":"ws",y=`${v}://${p.hostname}${p.path}`;return p.port&&p.port!==80&&p.port!==443&&(y=`${v}://${p.hostname}:${p.port}${p.path}`),typeof p.transformWsUrl=="function"&&(y=p.transformWsUrl(y,p,m)),y}function d(){s||(s=!0,i.onSocketOpen(()=>{a.socketReady()}),i.onSocketMessage(p=>{if(typeof p.data=="string"){let m=t.Buffer.from(p.data,"base64");o.push(m)}else{let m=new FileReader;m.addEventListener("load",()=>{let v=m.result;v instanceof ArrayBuffer?v=t.Buffer.from(v):v=t.Buffer.from(v,"utf8"),o.push(v)}),m.readAsArrayBuffer(p.data)}}),i.onSocketClose(()=>{a.end(),a.destroy()}),i.onSocketError(p=>{a.destroy(p)}))}var h=(p,m)=>{if(m.hostname=m.hostname||m.host,!m.hostname)throw new Error("Could not determine host. Specify host manually.");let v=m.protocolId==="MQIsdp"&&m.protocolVersion===3?"mqttv3.1":"mqtt";c(m);let y=u(m,p);return i=m.my,i.connectSocket({url:y,protocols:v}),o=l(),a=new r.BufferedDuplex(m,o,i),d(),a};e.default=h}),SRe=Tn(e=>{pn(),gn(),mn();var t=e&&e.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.connectAsync=void 0;var n=t(cp()),r=t((vRe(),eo(Spe))),i=t(kL()),o=t(j6());typeof(Ni==null?void 0:Ni.nextTick)!="function"&&(Ni.nextTick=setImmediate);var a=(0,n.default)("mqttjs"),s=null;function l(d){let h;d.auth&&(h=d.auth.match(/^(.+):(.+)$/),h?(d.username=h[1],d.password=h[2]):d.username=d.auth)}function c(d,h){var p,m,v,y;if(a("connecting to an MQTT broker..."),typeof d=="object"&&!h&&(h=d,d=""),h=h||{},d&&typeof d=="string"){let C=r.default.parse(d,!0),_={};if(C.port!=null&&(_.port=Number(C.port)),_.host=C.hostname,_.query=C.query,_.auth=C.auth,_.protocol=C.protocol,_.path=C.path,_.protocol=(p=_.protocol)===null||p===void 0?void 0:p.replace(/:$/,""),h=Object.assign(Object.assign({},_),h),!h.protocol)throw new Error("Missing protocol")}if(h.unixSocket=h.unixSocket||((m=h.protocol)===null||m===void 0?void 0:m.includes("+unix")),h.unixSocket?h.protocol=h.protocol.replace("+unix",""):!(!((v=h.protocol)===null||v===void 0)&&v.startsWith("ws"))&&!(!((y=h.protocol)===null||y===void 0)&&y.startsWith("wx"))&&delete h.path,l(h),h.query&&typeof h.query.clientId=="string"&&(h.clientId=h.query.clientId),h.cert&&h.key)if(h.protocol){if(["mqtts","wss","wxs","alis"].indexOf(h.protocol)===-1)switch(h.protocol){case"mqtt":h.protocol="mqtts";break;case"ws":h.protocol="wss";break;case"wx":h.protocol="wxs";break;case"ali":h.protocol="alis";break;default:throw new Error(`Unknown protocol for secure connection: "${h.protocol}"!`)}}else throw new Error("Missing secure protocol key");if(s||(s={},!o.default&&!h.forceNativeWebSocket?(s.ws=OT().streamBuilder,s.wss=OT().streamBuilder,s.mqtt=LQ().default,s.tcp=LQ().default,s.ssl=FQ().default,s.tls=s.ssl,s.mqtts=FQ().default):(s.ws=OT().browserStreamBuilder,s.wss=OT().browserStreamBuilder,s.wx=jQ().default,s.wxs=jQ().default,s.ali=BQ().default,s.alis=BQ().default)),!s[h.protocol]){let C=["mqtts","wss"].indexOf(h.protocol)!==-1;h.protocol=["mqtt","mqtts","ws","wss","wx","wxs","ali","alis"].filter((_,T)=>C&&T%2===0?!1:typeof s[_]=="function")[0]}if(h.clean===!1&&!h.clientId)throw new Error("Missing clientId for unclean clients");h.protocol&&(h.defaultProtocol=h.protocol);function S(C){return h.servers&&((!C._reconnectCount||C._reconnectCount===h.servers.length)&&(C._reconnectCount=0),h.host=h.servers[C._reconnectCount].host,h.port=h.servers[C._reconnectCount].port,h.protocol=h.servers[C._reconnectCount].protocol?h.servers[C._reconnectCount].protocol:h.defaultProtocol,h.hostname=h.host,C._reconnectCount++),a("calling streambuilder for",h.protocol),s[h.protocol](C,h)}let b=new i.default(S,h);return b.on("error",()=>{}),b}function u(d,h,p=!0){return new Promise((m,v)=>{let y=c(d,h),S={connect:C=>{b(),m(y)},end:()=>{b(),m(y)},error:C=>{b(),y.end(),v(C)}};p===!1&&(S.close=()=>{S.error(new Error("Couldn't connect to server"))});function b(){Object.keys(S).forEach(C=>{y.off(C,S[C])})}Object.keys(S).forEach(C=>{y.on(C,S[C])})})}e.connectAsync=u,e.default=c}),HQ=Tn(e=>{pn(),gn(),mn();var t=e&&e.__createBinding||(Object.create?function(p,m,v,y){y===void 0&&(y=v);var S=Object.getOwnPropertyDescriptor(m,v);(!S||("get"in S?!m.__esModule:S.writable||S.configurable))&&(S={enumerable:!0,get:function(){return m[v]}}),Object.defineProperty(p,y,S)}:function(p,m,v,y){y===void 0&&(y=v),p[y]=m[v]}),n=e&&e.__setModuleDefault||(Object.create?function(p,m){Object.defineProperty(p,"default",{enumerable:!0,value:m})}:function(p,m){p.default=m}),r=e&&e.__importStar||function(p){if(p&&p.__esModule)return p;var m={};if(p!=null)for(var v in p)v!=="default"&&Object.prototype.hasOwnProperty.call(p,v)&&t(m,p,v);return n(m,p),m},i=e&&e.__exportStar||function(p,m){for(var v in p)v!=="default"&&!Object.prototype.hasOwnProperty.call(m,v)&&t(m,p,v)},o=e&&e.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(e,"__esModule",{value:!0}),e.ReasonCodes=e.KeepaliveManager=e.UniqueMessageIdProvider=e.DefaultMessageIdProvider=e.Store=e.MqttClient=e.connectAsync=e.connect=e.Client=void 0;var a=o(kL());e.MqttClient=a.default;var s=o(Qhe());e.DefaultMessageIdProvider=s.default;var l=o(tRe());e.UniqueMessageIdProvider=l.default;var c=o(Zhe());e.Store=c.default;var u=r(SRe());e.connect=u.default,Object.defineProperty(e,"connectAsync",{enumerable:!0,get:function(){return u.connectAsync}});var d=o(ppe());e.KeepaliveManager=d.default,e.Client=a.default,i(kL(),e),i(LS(),e);var h=F6();Object.defineProperty(e,"ReasonCodes",{enumerable:!0,get:function(){return h.ReasonCodes}})}),CRe=Tn(e=>{pn(),gn(),mn();var t=e&&e.__createBinding||(Object.create?function(a,s,l,c){c===void 0&&(c=l);var u=Object.getOwnPropertyDescriptor(s,l);(!u||("get"in u?!s.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return s[l]}}),Object.defineProperty(a,c,u)}:function(a,s,l,c){c===void 0&&(c=l),a[c]=s[l]}),n=e&&e.__setModuleDefault||(Object.create?function(a,s){Object.defineProperty(a,"default",{enumerable:!0,value:s})}:function(a,s){a.default=s}),r=e&&e.__importStar||function(a){if(a&&a.__esModule)return a;var s={};if(a!=null)for(var l in a)l!=="default"&&Object.prototype.hasOwnProperty.call(a,l)&&t(s,a,l);return n(s,a),s},i=e&&e.__exportStar||function(a,s){for(var l in a)l!=="default"&&!Object.prototype.hasOwnProperty.call(s,l)&&t(s,a,l)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(HQ());e.default=o,i(HQ(),e)});const xRe=CRe();/*! Bundled license information:
|
||
|
||
@jspm/core/nodelibs/browser/buffer.js:
|
||
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
||
*/var Vn={};(function(e){var t=typeof Object.defineProperties=="function"?Object.defineProperty:function(O,j,oe){O!=Array.prototype&&O!=Object.prototype&&(O[j]=oe.value)},n=(typeof window<"u"&&window===vo||typeof vo<"u"&&vo!=null,vo);function r(O,j){if(j){var oe=n;O=O.split(".");for(var Ae=0;Ae<O.length-1;Ae++){var Ge=O[Ae];Ge in oe||(oe[Ge]={}),oe=oe[Ge]}O=O[O.length-1],Ae=oe[O],j=j(Ae),j!=Ae&&j!=null&&t(oe,O,{configurable:!0,writable:!0,value:j})}}function i(O){var j=0;return function(){return j<O.length?{done:!1,value:O[j++]}:{done:!0}}}function o(){o=function(){},n.Symbol||(n.Symbol=s)}function a(O,j){this.a=O,t(this,"description",{configurable:!0,writable:!0,value:j})}a.prototype.toString=function(){return this.a};var s=function(){function O(oe){if(this instanceof O)throw new TypeError("Symbol is not a constructor");return new a("jscomp_symbol_"+(oe||"")+"_"+j++,oe)}var j=0;return O}();function l(){o();var O=n.Symbol.iterator;O||(O=n.Symbol.iterator=n.Symbol("Symbol.iterator")),typeof Array.prototype[O]!="function"&&t(Array.prototype,O,{configurable:!0,writable:!0,value:function(){return c(i(this))}}),l=function(){}}function c(O){return l(),O={next:O},O[n.Symbol.iterator]=function(){return this},O}function u(O,j){l(),O instanceof String&&(O+="");var oe=0,Ae={next:function(){if(oe<O.length){var Ge=oe++;return{value:j(Ge,O[Ge]),done:!1}}return Ae.next=function(){return{done:!0,value:void 0}},Ae.next()}};return Ae[Symbol.iterator]=function(){return Ae},Ae}r("Array.prototype.entries",function(O){return O||function(){return u(this,function(j,oe){return[j,oe]})}});var d=vo||self;function h(O,j,oe){O=O.split("."),oe=oe||d,O[0]in oe||typeof oe.execScript>"u"||oe.execScript("var "+O[0]);for(var Ae;O.length&&(Ae=O.shift());)O.length||j===void 0?oe[Ae]&&oe[Ae]!==Object.prototype[Ae]?oe=oe[Ae]:oe=oe[Ae]={}:oe[Ae]=j}function p(O){var j=typeof O;if(j=="object")if(O){if(O instanceof Array)return"array";if(O instanceof Object)return j;var oe=Object.prototype.toString.call(O);if(oe=="[object Window]")return"object";if(oe=="[object Array]"||typeof O.length=="number"&&typeof O.splice<"u"&&typeof O.propertyIsEnumerable<"u"&&!O.propertyIsEnumerable("splice"))return"array";if(oe=="[object Function]"||typeof O.call<"u"&&typeof O.propertyIsEnumerable<"u"&&!O.propertyIsEnumerable("call"))return"function"}else return"null";else if(j=="function"&&typeof O.call>"u")return"object";return j}function m(O){var j=typeof O;return j=="object"&&O!=null||j=="function"}function v(O,j,oe){h(O,j,oe)}function y(O,j){function oe(){}oe.prototype=j.prototype,O.prototype=new oe,O.prototype.constructor=O}var S="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function b(O,j){for(var oe,Ae,Ge=1;Ge<arguments.length;Ge++){Ae=arguments[Ge];for(oe in Ae)O[oe]=Ae[oe];for(var ft=0;ft<S.length;ft++)oe=S[ft],Object.prototype.hasOwnProperty.call(Ae,oe)&&(O[oe]=Ae[oe])}}var C=Array.prototype.forEach?function(O,j){Array.prototype.forEach.call(O,j,void 0)}:function(O,j){for(var oe=O.length,Ae=typeof O=="string"?O.split(""):O,Ge=0;Ge<oe;Ge++)Ge in Ae&&j.call(void 0,Ae[Ge],Ge,O)},_=Array.prototype.map?function(O,j){return Array.prototype.map.call(O,j,void 0)}:function(O,j){for(var oe=O.length,Ae=Array(oe),Ge=typeof O=="string"?O.split(""):O,ft=0;ft<oe;ft++)ft in Ge&&(Ae[ft]=j.call(void 0,Ge[ft],ft,O));return Ae};function T(O,j,oe){return 2>=arguments.length?Array.prototype.slice.call(O,j):Array.prototype.slice.call(O,j,oe)}function x(O,j,oe,Ae){var Ge="Assertion failed";if(oe){Ge+=": "+oe;var ft=Ae}else O&&(Ge+=": "+O,ft=j);throw Error(Ge,ft||[])}function E(O,j,oe){for(var Ae=[],Ge=2;Ge<arguments.length;++Ge)Ae[Ge-2]=arguments[Ge];return O||x("",null,j,Ae),O}function k(O,j,oe){for(var Ae=[],Ge=2;Ge<arguments.length;++Ge)Ae[Ge-2]=arguments[Ge];typeof O!="string"&&x("Expected string but got %s: %s.",[p(O),O],j,Ae)}function M(O,j,oe){for(var Ae=[],Ge=2;Ge<arguments.length;++Ge)Ae[Ge-2]=arguments[Ge];Array.isArray(O)||x("Expected array but got %s: %s.",[p(O),O],j,Ae)}function P(O,j){for(var oe=[],Ae=1;Ae<arguments.length;++Ae)oe[Ae-1]=arguments[Ae];throw Error("Failure"+(O?": "+O:""),oe)}function D(O,j,oe,Ae){for(var Ge=[],ft=3;ft<arguments.length;++ft)Ge[ft-3]=arguments[ft];O instanceof j||x("Expected instanceof %s but got %s.",[R(j),R(O)],oe,Ge)}function R(O){return O instanceof Function?O.displayName||O.name||"unknown type name":O instanceof Object?O.constructor.displayName||O.constructor.name||Object.prototype.toString.call(O):O===null?"null":typeof O}function A(O,j){if(this.c=O,this.b=j,this.a={},this.arrClean=!0,0<this.c.length){for(O=0;O<this.c.length;O++){j=this.c[O];var oe=j[0];this.a[oe.toString()]=new W(oe,j[1])}this.arrClean=!0}}h("jspb.Map",A,void 0),A.prototype.g=function(){if(this.arrClean){if(this.b){var O=this.a,j;for(j in O)if(Object.prototype.hasOwnProperty.call(O,j)){var oe=O[j].a;oe&&oe.g()}}}else{for(this.c.length=0,O=z(this),O.sort(),j=0;j<O.length;j++){var Ae=this.a[O[j]];(oe=Ae.a)&&oe.g(),this.c.push([Ae.key,Ae.value])}this.arrClean=!0}return this.c},A.prototype.toArray=A.prototype.g,A.prototype.Mc=function(O,j){for(var oe=this.g(),Ae=[],Ge=0;Ge<oe.length;Ge++){var ft=this.a[oe[Ge][0].toString()];F(this,ft);var Jt=ft.a;Jt?(E(j),Ae.push([ft.key,j(O,Jt)])):Ae.push([ft.key,ft.value])}return Ae},A.prototype.toObject=A.prototype.Mc,A.fromObject=function(O,j,oe){j=new A([],j);for(var Ae=0;Ae<O.length;Ae++){var Ge=O[Ae][0],ft=oe(O[Ae][1]);j.set(Ge,ft)}return j};function H(O){this.a=0,this.b=O}H.prototype.next=function(){return this.a<this.b.length?{done:!1,value:this.b[this.a++]}:{done:!0,value:void 0}},typeof Symbol<"u"&&(H.prototype[Symbol.iterator]=function(){return this}),A.prototype.Jb=function(){return z(this).length},A.prototype.getLength=A.prototype.Jb,A.prototype.clear=function(){this.a={},this.arrClean=!1},A.prototype.clear=A.prototype.clear,A.prototype.Cb=function(O){O=O.toString();var j=this.a.hasOwnProperty(O);return delete this.a[O],this.arrClean=!1,j},A.prototype.del=A.prototype.Cb,A.prototype.Eb=function(){var O=[],j=z(this);j.sort();for(var oe=0;oe<j.length;oe++){var Ae=this.a[j[oe]];O.push([Ae.key,Ae.value])}return O},A.prototype.getEntryList=A.prototype.Eb,A.prototype.entries=function(){var O=[],j=z(this);j.sort();for(var oe=0;oe<j.length;oe++){var Ae=this.a[j[oe]];O.push([Ae.key,F(this,Ae)])}return new H(O)},A.prototype.entries=A.prototype.entries,A.prototype.keys=function(){var O=[],j=z(this);j.sort();for(var oe=0;oe<j.length;oe++)O.push(this.a[j[oe]].key);return new H(O)},A.prototype.keys=A.prototype.keys,A.prototype.values=function(){var O=[],j=z(this);j.sort();for(var oe=0;oe<j.length;oe++)O.push(F(this,this.a[j[oe]]));return new H(O)},A.prototype.values=A.prototype.values,A.prototype.forEach=function(O,j){var oe=z(this);oe.sort();for(var Ae=0;Ae<oe.length;Ae++){var Ge=this.a[oe[Ae]];O.call(j,F(this,Ge),Ge.key,this)}},A.prototype.forEach=A.prototype.forEach,A.prototype.set=function(O,j){var oe=new W(O);return this.b?(oe.a=j,oe.value=j.g()):oe.value=j,this.a[O.toString()]=oe,this.arrClean=!1,this},A.prototype.set=A.prototype.set;function F(O,j){return O.b?(j.a||(j.a=new O.b(j.value)),j.a):j.value}A.prototype.get=function(O){if(O=this.a[O.toString()])return F(this,O)},A.prototype.get=A.prototype.get,A.prototype.has=function(O){return O.toString()in this.a},A.prototype.has=A.prototype.has,A.prototype.Jc=function(O,j,oe,Ae,Ge){var ft=z(this);ft.sort();for(var Jt=0;Jt<ft.length;Jt++){var on=this.a[ft[Jt]];j.Va(O),oe.call(j,1,on.key),this.b?Ae.call(j,2,F(this,on),Ge):Ae.call(j,2,on.value),j.Ya()}},A.prototype.serializeBinary=A.prototype.Jc,A.deserializeBinary=function(O,j,oe,Ae,Ge,ft,Jt){for(;j.oa()&&!j.bb();){var on=j.c;on==1?ft=oe.call(j):on==2&&(O.b?(E(Ge),Jt||(Jt=new O.b),Ae.call(j,Jt,Ge)):Jt=Ae.call(j))}E(ft!=null),E(Jt!=null),O.set(ft,Jt)};function z(O){O=O.a;var j=[],oe;for(oe in O)Object.prototype.hasOwnProperty.call(O,oe)&&j.push(oe);return j}function W(O,j){this.key=O,this.value=j,this.a=void 0}function q(O){if(8192>=O.length)return String.fromCharCode.apply(null,O);for(var j="",oe=0;oe<O.length;oe+=8192)j+=String.fromCharCode.apply(null,T(O,oe,oe+8192));return j}var Z={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},N={"'":"\\'"},B={},V=null;function G(O,j){j===void 0&&(j=0),fe(),j=B[j];for(var oe=[],Ae=0;Ae<O.length;Ae+=3){var Ge=O[Ae],ft=Ae+1<O.length,Jt=ft?O[Ae+1]:0,on=Ae+2<O.length,Zn=on?O[Ae+2]:0,ni=Ge>>2;Ge=(Ge&3)<<4|Jt>>4,Jt=(Jt&15)<<2|Zn>>6,Zn&=63,on||(Zn=64,ft||(Jt=64)),oe.push(j[ni],j[Ge],j[Jt]||"",j[Zn]||"")}return oe.join("")}function ie(O){var j=O.length,oe=3*j/4;oe%3?oe=Math.floor(oe):"=.".indexOf(O[j-1])!=-1&&(oe="=.".indexOf(O[j-2])!=-1?oe-2:oe-1);var Ae=new Uint8Array(oe),Ge=0;return ce(O,function(ft){Ae[Ge++]=ft}),Ae.subarray(0,Ge)}function ce(O,j){function oe(Zn){for(;Ae<O.length;){var ni=O.charAt(Ae++),zr=V[ni];if(zr!=null)return zr;if(!/^[\s\xa0]*$/.test(ni))throw Error("Unknown base64 encoding at char: "+ni)}return Zn}fe();for(var Ae=0;;){var Ge=oe(-1),ft=oe(0),Jt=oe(64),on=oe(64);if(on===64&&Ge===-1)break;j(Ge<<2|ft>>4),Jt!=64&&(j(ft<<4&240|Jt>>2),on!=64&&j(Jt<<6&192|on))}}function fe(){if(!V){V={};for(var O="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),j=["+/=","+/","-_=","-_.","-_"],oe=0;5>oe;oe++){var Ae=O.concat(j[oe].split(""));B[oe]=Ae;for(var Ge=0;Ge<Ae.length;Ge++){var ft=Ae[Ge];V[ft]===void 0&&(V[ft]=Ge)}}}}h("jspb.ConstBinaryMessage",function(){},void 0),h("jspb.BinaryMessage",function(){},void 0),h("jspb.BinaryConstants.FieldType",{yb:-1,ee:1,FLOAT:2,ke:3,te:4,je:5,xb:6,wb:7,BOOL:8,re:9,ie:10,le:11,ce:12,se:13,ge:14,me:15,ne:16,oe:17,pe:18,he:30,ve:31},void 0),h("jspb.BinaryConstants.WireType",{yb:-1,ue:0,xb:1,de:2,qe:3,fe:4,wb:5},void 0),h("jspb.BinaryConstants.FieldTypeToWireType",function(O){switch(O){case 5:case 3:case 13:case 4:case 17:case 18:case 8:case 14:case 31:return 0;case 1:case 6:case 16:case 30:return 1;case 9:case 11:case 12:return 2;case 2:case 7:case 15:return 5;default:return-1}},void 0),h("jspb.BinaryConstants.INVALID_FIELD_NUMBER",-1,void 0),h("jspb.BinaryConstants.FLOAT32_EPS",1401298464324817e-60,void 0),h("jspb.BinaryConstants.FLOAT32_MIN",11754943508222875e-54,void 0),h("jspb.BinaryConstants.FLOAT32_MAX",34028234663852886e22,void 0),h("jspb.BinaryConstants.FLOAT64_EPS",5e-324,void 0),h("jspb.BinaryConstants.FLOAT64_MIN",22250738585072014e-324,void 0),h("jspb.BinaryConstants.FLOAT64_MAX",17976931348623157e292,void 0),h("jspb.BinaryConstants.TWO_TO_20",1048576,void 0),h("jspb.BinaryConstants.TWO_TO_23",8388608,void 0),h("jspb.BinaryConstants.TWO_TO_31",2147483648,void 0),h("jspb.BinaryConstants.TWO_TO_32",4294967296,void 0),h("jspb.BinaryConstants.TWO_TO_52",4503599627370496,void 0),h("jspb.BinaryConstants.TWO_TO_63",9223372036854776e3,void 0),h("jspb.BinaryConstants.TWO_TO_64",18446744073709552e3,void 0),h("jspb.BinaryConstants.ZERO_HASH","\0\0\0\0\0\0\0\0",void 0);var ee=0,ne=0;h("jspb.utils.getSplit64Low",function(){return ee},void 0),h("jspb.utils.getSplit64High",function(){return ne},void 0);function ue(O){var j=O>>>0;O=Math.floor((O-j)/4294967296)>>>0,ee=j,ne=O}h("jspb.utils.splitUint64",ue,void 0);function ye(O){var j=0>O;O=Math.abs(O);var oe=O>>>0;O=Math.floor((O-oe)/4294967296),O>>>=0,j&&(O=~O>>>0,oe=(~oe>>>0)+1,4294967295<oe&&(oe=0,O++,4294967295<O&&(O=0))),ee=oe,ne=O}h("jspb.utils.splitInt64",ye,void 0);function me(O){var j=0>O;O=2*Math.abs(O),ue(O),O=ee;var oe=ne;j&&(O==0?oe==0?oe=O=4294967295:(oe--,O=4294967295):O--),ee=O,ne=oe}h("jspb.utils.splitZigzag64",me,void 0);function pe(O){var j=0>O?1:0;if(O=j?-O:O,O===0)0<1/O?ee=ne=0:(ne=0,ee=2147483648);else if(isNaN(O))ne=0,ee=2147483647;else if(34028234663852886e22<O)ne=0,ee=(j<<31|2139095040)>>>0;else if(11754943508222875e-54>O)O=Math.round(O/Math.pow(2,-149)),ne=0,ee=(j<<31|O)>>>0;else{var oe=Math.floor(Math.log(O)/Math.LN2);O*=Math.pow(2,-oe),O=Math.round(8388608*O),16777216<=O&&++oe,ne=0,ee=(j<<31|oe+127<<23|O&8388607)>>>0}}h("jspb.utils.splitFloat32",pe,void 0);function he(O){var j=0>O?1:0;if(O=j?-O:O,O===0)ne=0<1/O?0:2147483648,ee=0;else if(isNaN(O))ne=2147483647,ee=4294967295;else if(17976931348623157e292<O)ne=(j<<31|2146435072)>>>0,ee=0;else if(22250738585072014e-324>O)O/=Math.pow(2,-1074),ne=(j<<31|O/4294967296)>>>0,ee=O>>>0;else{var oe=O,Ae=0;if(2<=oe)for(;2<=oe&&1023>Ae;)Ae++,oe/=2;else for(;1>oe&&-1022<Ae;)oe*=2,Ae--;O*=Math.pow(2,-Ae),ne=(j<<31|Ae+1023<<20|1048576*O&1048575)>>>0,ee=4503599627370496*O>>>0}}h("jspb.utils.splitFloat64",he,void 0);function _e(O){var j=O.charCodeAt(4),oe=O.charCodeAt(5),Ae=O.charCodeAt(6),Ge=O.charCodeAt(7);ee=O.charCodeAt(0)+(O.charCodeAt(1)<<8)+(O.charCodeAt(2)<<16)+(O.charCodeAt(3)<<24)>>>0,ne=j+(oe<<8)+(Ae<<16)+(Ge<<24)>>>0}h("jspb.utils.splitHash64",_e,void 0);function le(O,j){return 4294967296*j+(O>>>0)}h("jspb.utils.joinUint64",le,void 0);function xe(O,j){var oe=j&2147483648;return oe&&(O=~O+1>>>0,j=~j>>>0,O==0&&(j=j+1>>>0)),O=le(O,j),oe?-O:O}h("jspb.utils.joinInt64",xe,void 0);function we(O,j,oe){var Ae=j>>31;return oe(O<<1^Ae,(j<<1|O>>>31)^Ae)}h("jspb.utils.toZigzag64",we,void 0);function De(O,j){return Fe(O,j,xe)}h("jspb.utils.joinZigzag64",De,void 0);function Fe(O,j,oe){var Ae=-(O&1);return oe((O>>>1|j<<31)^Ae,j>>>1^Ae)}h("jspb.utils.fromZigzag64",Fe,void 0);function Ce(O){var j=2*(O>>31)+1,oe=O>>>23&255;return O&=8388607,oe==255?O?NaN:1/0*j:oe==0?j*Math.pow(2,-149)*O:j*Math.pow(2,oe-150)*(O+Math.pow(2,23))}h("jspb.utils.joinFloat32",Ce,void 0);function Te(O,j){var oe=2*(j>>31)+1,Ae=j>>>20&2047;return O=4294967296*(j&1048575)+O,Ae==2047?O?NaN:1/0*oe:Ae==0?oe*Math.pow(2,-1074)*O:oe*Math.pow(2,Ae-1075)*(O+4503599627370496)}h("jspb.utils.joinFloat64",Te,void 0);function ke(O,j){return String.fromCharCode(O>>>0&255,O>>>8&255,O>>>16&255,O>>>24&255,j>>>0&255,j>>>8&255,j>>>16&255,j>>>24&255)}h("jspb.utils.joinHash64",ke,void 0),h("jspb.utils.DIGITS","0123456789abcdef".split(""),void 0);function Pe(O,j){function oe(Ge,ft){return Ge=Ge?String(Ge):"",ft?"0000000".slice(Ge.length)+Ge:Ge}if(2097151>=j)return""+le(O,j);var Ae=(O>>>24|j<<8)>>>0&16777215;return j=j>>16&65535,O=(O&16777215)+6777216*Ae+6710656*j,Ae+=8147497*j,j*=2,1e7<=O&&(Ae+=Math.floor(O/1e7),O%=1e7),1e7<=Ae&&(j+=Math.floor(Ae/1e7),Ae%=1e7),oe(j,0)+oe(Ae,j)+oe(O,1)}h("jspb.utils.joinUnsignedDecimalString",Pe,void 0);function Ne(O,j){var oe=j&2147483648;return oe&&(O=~O+1>>>0,j=~j+(O==0?1:0)>>>0),O=Pe(O,j),oe?"-"+O:O}h("jspb.utils.joinSignedDecimalString",Ne,void 0);function We(O,j){_e(O),O=ee;var oe=ne;return j?Ne(O,oe):Pe(O,oe)}h("jspb.utils.hash64ToDecimalString",We,void 0),h("jspb.utils.hash64ArrayToDecimalStrings",function(O,j){for(var oe=Array(O.length),Ae=0;Ae<O.length;Ae++)oe[Ae]=We(O[Ae],j);return oe},void 0);function Q(O){function j(Jt,on){for(var Zn=0;8>Zn&&(Jt!==1||0<on);Zn++)on=Jt*Ge[Zn]+on,Ge[Zn]=on&255,on>>>=8}function oe(){for(var Jt=0;8>Jt;Jt++)Ge[Jt]=~Ge[Jt]&255}E(0<O.length);var Ae=!1;O[0]==="-"&&(Ae=!0,O=O.slice(1));for(var Ge=[0,0,0,0,0,0,0,0],ft=0;ft<O.length;ft++)j(10,O.charCodeAt(ft)-48);return Ae&&(oe(),j(1,1)),q(Ge)}h("jspb.utils.decimalStringToHash64",Q,void 0),h("jspb.utils.splitDecimalString",function(O){_e(Q(O))},void 0);function K(O){return String.fromCharCode(10>O?48+O:87+O)}function J(O){return 97<=O?O-97+10:O-48}h("jspb.utils.hash64ToHexString",function(O){var j=Array(18);j[0]="0",j[1]="x";for(var oe=0;8>oe;oe++){var Ae=O.charCodeAt(7-oe);j[2*oe+2]=K(Ae>>4),j[2*oe+3]=K(Ae&15)}return j.join("")},void 0),h("jspb.utils.hexStringToHash64",function(O){O=O.toLowerCase(),E(O.length==18),E(O[0]=="0"),E(O[1]=="x");for(var j="",oe=0;8>oe;oe++)j=String.fromCharCode(16*J(O.charCodeAt(2*oe+2))+J(O.charCodeAt(2*oe+3)))+j;return j},void 0),h("jspb.utils.hash64ToNumber",function(O,j){_e(O),O=ee;var oe=ne;return j?xe(O,oe):le(O,oe)},void 0),h("jspb.utils.numberToHash64",function(O){return ye(O),ke(ee,ne)},void 0),h("jspb.utils.countVarints",function(O,j,oe){for(var Ae=0,Ge=j;Ge<oe;Ge++)Ae+=O[Ge]>>7;return oe-j-Ae},void 0),h("jspb.utils.countVarintFields",function(O,j,oe,Ae){var Ge=0;if(Ae*=8,128>Ae)for(;j<oe&&O[j++]==Ae;)for(Ge++;;){var ft=O[j++];if(!(ft&128))break}else for(;j<oe;){for(ft=Ae;128<ft;){if(O[j]!=(ft&127|128))return Ge;j++,ft>>=7}if(O[j++]!=ft)break;for(Ge++;ft=O[j++],(ft&128)!=0;);}return Ge},void 0);function be(O,j,oe,Ae,Ge){var ft=0;if(128>Ae)for(;j<oe&&O[j++]==Ae;)ft++,j+=Ge;else for(;j<oe;){for(var Jt=Ae;128<Jt;){if(O[j++]!=(Jt&127|128))return ft;Jt>>=7}if(O[j++]!=Jt)break;ft++,j+=Ge}return ft}h("jspb.utils.countFixed32Fields",function(O,j,oe,Ae){return be(O,j,oe,8*Ae+5,4)},void 0),h("jspb.utils.countFixed64Fields",function(O,j,oe,Ae){return be(O,j,oe,8*Ae+1,8)},void 0),h("jspb.utils.countDelimitedFields",function(O,j,oe,Ae){var Ge=0;for(Ae=8*Ae+2;j<oe;){for(var ft=Ae;128<ft;){if(O[j++]!=(ft&127|128))return Ge;ft>>=7}if(O[j++]!=ft)break;Ge++;for(var Jt=0,on=1;ft=O[j++],Jt+=(ft&127)*on,on*=128,(ft&128)!=0;);j+=Jt}return Ge},void 0),h("jspb.utils.debugBytesToTextFormat",function(O){var j='"';if(O){O=Oe(O);for(var oe=0;oe<O.length;oe++)j+="\\x",16>O[oe]&&(j+="0"),j+=O[oe].toString(16)}return j+'"'},void 0),h("jspb.utils.debugScalarToTextFormat",function(O){if(typeof O=="string"){O=String(O);for(var j=['"'],oe=0;oe<O.length;oe++){var Ae=O.charAt(oe),Ge=Ae.charCodeAt(0),ft=oe+1,Jt;(Jt=Z[Ae])||(31<Ge&&127>Ge||(Ge=Ae,Ge in N?Ae=N[Ge]:Ge in Z?Ae=N[Ge]=Z[Ge]:(Jt=Ge.charCodeAt(0),31<Jt&&127>Jt?Ae=Ge:(256>Jt?(Ae="\\x",(16>Jt||256<Jt)&&(Ae+="0")):(Ae="\\u",4096>Jt&&(Ae+="0")),Ae+=Jt.toString(16).toUpperCase()),Ae=N[Ge]=Ae)),Jt=Ae),j[ft]=Jt}j.push('"'),O=j.join("")}else O=O.toString();return O},void 0),h("jspb.utils.stringToByteArray",function(O){for(var j=new Uint8Array(O.length),oe=0;oe<O.length;oe++){var Ae=O.charCodeAt(oe);if(255<Ae)throw Error("Conversion error: string contains codepoint outside of byte range");j[oe]=Ae}return j},void 0);function Oe(O){return O.constructor===Uint8Array?O:O.constructor===ArrayBuffer?new Uint8Array(O):O.constructor===Array?new Uint8Array(O):O.constructor===String?ie(O):O instanceof Uint8Array?new Uint8Array(O.buffer,O.byteOffset,O.byteLength):(P("Type not convertible to Uint8Array."),new Uint8Array(0))}h("jspb.utils.byteSourceToUint8Array",Oe,void 0);function Se(O,j,oe){this.b=null,this.a=this.c=this.h=0,this.v=!1,O&&this.H(O,j,oe)}h("jspb.BinaryDecoder",Se,void 0);var Ke=[];Se.getInstanceCacheLength=function(){return Ke.length};function tt(O,j,oe){if(Ke.length){var Ae=Ke.pop();return O&&Ae.H(O,j,oe),Ae}return new Se(O,j,oe)}Se.alloc=tt,Se.prototype.Ca=function(){this.clear(),100>Ke.length&&Ke.push(this)},Se.prototype.free=Se.prototype.Ca,Se.prototype.clone=function(){return tt(this.b,this.h,this.c-this.h)},Se.prototype.clone=Se.prototype.clone,Se.prototype.clear=function(){this.b=null,this.a=this.c=this.h=0,this.v=!1},Se.prototype.clear=Se.prototype.clear,Se.prototype.Y=function(){return this.b},Se.prototype.getBuffer=Se.prototype.Y,Se.prototype.H=function(O,j,oe){this.b=Oe(O),this.h=j!==void 0?j:0,this.c=oe!==void 0?this.h+oe:this.b.length,this.a=this.h},Se.prototype.setBlock=Se.prototype.H,Se.prototype.Db=function(){return this.c},Se.prototype.getEnd=Se.prototype.Db,Se.prototype.setEnd=function(O){this.c=O},Se.prototype.setEnd=Se.prototype.setEnd,Se.prototype.reset=function(){this.a=this.h},Se.prototype.reset=Se.prototype.reset,Se.prototype.B=function(){return this.a},Se.prototype.getCursor=Se.prototype.B,Se.prototype.Ma=function(O){this.a=O},Se.prototype.setCursor=Se.prototype.Ma,Se.prototype.advance=function(O){this.a+=O,E(this.a<=this.c)},Se.prototype.advance=Se.prototype.advance,Se.prototype.ya=function(){return this.a==this.c},Se.prototype.atEnd=Se.prototype.ya,Se.prototype.Qb=function(){return this.a>this.c},Se.prototype.pastEnd=Se.prototype.Qb,Se.prototype.getError=function(){return this.v||0>this.a||this.a>this.c},Se.prototype.getError=Se.prototype.getError,Se.prototype.w=function(O){for(var j=128,oe=0,Ae=0,Ge=0;4>Ge&&128<=j;Ge++)j=this.b[this.a++],oe|=(j&127)<<7*Ge;if(128<=j&&(j=this.b[this.a++],oe|=(j&127)<<28,Ae|=(j&127)>>4),128<=j)for(Ge=0;5>Ge&&128<=j;Ge++)j=this.b[this.a++],Ae|=(j&127)<<7*Ge+3;if(128>j)return O(oe>>>0,Ae>>>0);P("Failed to read varint, encoding is invalid."),this.v=!0},Se.prototype.readSplitVarint64=Se.prototype.w,Se.prototype.ea=function(O){return this.w(function(j,oe){return Fe(j,oe,O)})},Se.prototype.readSplitZigzagVarint64=Se.prototype.ea,Se.prototype.ta=function(O){var j=this.b,oe=this.a;this.a+=8;for(var Ae=0,Ge=0,ft=oe+7;ft>=oe;ft--)Ae=Ae<<8|j[ft],Ge=Ge<<8|j[ft+4];return O(Ae,Ge)},Se.prototype.readSplitFixed64=Se.prototype.ta,Se.prototype.kb=function(){for(;this.b[this.a]&128;)this.a++;this.a++},Se.prototype.skipVarint=Se.prototype.kb,Se.prototype.mb=function(O){for(;128<O;)this.a--,O>>>=7;this.a--},Se.prototype.unskipVarint=Se.prototype.mb,Se.prototype.o=function(){var O=this.b,j=O[this.a],oe=j&127;return 128>j?(this.a+=1,E(this.a<=this.c),oe):(j=O[this.a+1],oe|=(j&127)<<7,128>j?(this.a+=2,E(this.a<=this.c),oe):(j=O[this.a+2],oe|=(j&127)<<14,128>j?(this.a+=3,E(this.a<=this.c),oe):(j=O[this.a+3],oe|=(j&127)<<21,128>j?(this.a+=4,E(this.a<=this.c),oe):(j=O[this.a+4],oe|=(j&15)<<28,128>j?(this.a+=5,E(this.a<=this.c),oe>>>0):(this.a+=5,128<=O[this.a++]&&128<=O[this.a++]&&128<=O[this.a++]&&128<=O[this.a++]&&128<=O[this.a++]&&E(!1),E(this.a<=this.c),oe)))))},Se.prototype.readUnsignedVarint32=Se.prototype.o,Se.prototype.da=function(){return~~this.o()},Se.prototype.readSignedVarint32=Se.prototype.da,Se.prototype.O=function(){return this.o().toString()},Se.prototype.Ea=function(){return this.da().toString()},Se.prototype.readSignedVarint32String=Se.prototype.Ea,Se.prototype.Ia=function(){var O=this.o();return O>>>1^-(O&1)},Se.prototype.readZigzagVarint32=Se.prototype.Ia,Se.prototype.Ga=function(){return this.w(le)},Se.prototype.readUnsignedVarint64=Se.prototype.Ga,Se.prototype.Ha=function(){return this.w(Pe)},Se.prototype.readUnsignedVarint64String=Se.prototype.Ha,Se.prototype.sa=function(){return this.w(xe)},Se.prototype.readSignedVarint64=Se.prototype.sa,Se.prototype.Fa=function(){return this.w(Ne)},Se.prototype.readSignedVarint64String=Se.prototype.Fa,Se.prototype.Ja=function(){return this.w(De)},Se.prototype.readZigzagVarint64=Se.prototype.Ja,Se.prototype.fb=function(){return this.ea(ke)},Se.prototype.readZigzagVarintHash64=Se.prototype.fb,Se.prototype.Ka=function(){return this.ea(Ne)},Se.prototype.readZigzagVarint64String=Se.prototype.Ka,Se.prototype.Gc=function(){var O=this.b[this.a];return this.a+=1,E(this.a<=this.c),O},Se.prototype.readUint8=Se.prototype.Gc,Se.prototype.Ec=function(){var O=this.b[this.a],j=this.b[this.a+1];return this.a+=2,E(this.a<=this.c),O<<0|j<<8},Se.prototype.readUint16=Se.prototype.Ec,Se.prototype.m=function(){var O=this.b[this.a],j=this.b[this.a+1],oe=this.b[this.a+2],Ae=this.b[this.a+3];return this.a+=4,E(this.a<=this.c),(O<<0|j<<8|oe<<16|Ae<<24)>>>0},Se.prototype.readUint32=Se.prototype.m,Se.prototype.ga=function(){var O=this.m(),j=this.m();return le(O,j)},Se.prototype.readUint64=Se.prototype.ga,Se.prototype.ha=function(){var O=this.m(),j=this.m();return Pe(O,j)},Se.prototype.readUint64String=Se.prototype.ha,Se.prototype.Xb=function(){var O=this.b[this.a];return this.a+=1,E(this.a<=this.c),O<<24>>24},Se.prototype.readInt8=Se.prototype.Xb,Se.prototype.Vb=function(){var O=this.b[this.a],j=this.b[this.a+1];return this.a+=2,E(this.a<=this.c),(O<<0|j<<8)<<16>>16},Se.prototype.readInt16=Se.prototype.Vb,Se.prototype.P=function(){var O=this.b[this.a],j=this.b[this.a+1],oe=this.b[this.a+2],Ae=this.b[this.a+3];return this.a+=4,E(this.a<=this.c),O<<0|j<<8|oe<<16|Ae<<24},Se.prototype.readInt32=Se.prototype.P,Se.prototype.ba=function(){var O=this.m(),j=this.m();return xe(O,j)},Se.prototype.readInt64=Se.prototype.ba,Se.prototype.ca=function(){var O=this.m(),j=this.m();return Ne(O,j)},Se.prototype.readInt64String=Se.prototype.ca,Se.prototype.aa=function(){var O=this.m();return Ce(O)},Se.prototype.readFloat=Se.prototype.aa,Se.prototype.Z=function(){var O=this.m(),j=this.m();return Te(O,j)},Se.prototype.readDouble=Se.prototype.Z,Se.prototype.pa=function(){return!!this.b[this.a++]},Se.prototype.readBool=Se.prototype.pa,Se.prototype.ra=function(){return this.da()},Se.prototype.readEnum=Se.prototype.ra,Se.prototype.fa=function(O){var j=this.b,oe=this.a;O=oe+O;for(var Ae=[],Ge="";oe<O;){var ft=j[oe++];if(128>ft)Ae.push(ft);else{if(192>ft)continue;if(224>ft){var Jt=j[oe++];Ae.push((ft&31)<<6|Jt&63)}else if(240>ft){Jt=j[oe++];var on=j[oe++];Ae.push((ft&15)<<12|(Jt&63)<<6|on&63)}else if(248>ft){Jt=j[oe++],on=j[oe++];var Zn=j[oe++];ft=(ft&7)<<18|(Jt&63)<<12|(on&63)<<6|Zn&63,ft-=65536,Ae.push((ft>>10&1023)+55296,(ft&1023)+56320)}}8192<=Ae.length&&(Ge+=String.fromCharCode.apply(null,Ae),Ae.length=0)}return Ge+=q(Ae),this.a=oe,Ge},Se.prototype.readString=Se.prototype.fa,Se.prototype.Dc=function(){var O=this.o();return this.fa(O)},Se.prototype.readStringWithLength=Se.prototype.Dc,Se.prototype.qa=function(O){if(0>O||this.a+O>this.b.length)return this.v=!0,P("Invalid byte length!"),new Uint8Array(0);var j=this.b.subarray(this.a,this.a+O);return this.a+=O,E(this.a<=this.c),j},Se.prototype.readBytes=Se.prototype.qa,Se.prototype.ia=function(){return this.w(ke)},Se.prototype.readVarintHash64=Se.prototype.ia,Se.prototype.$=function(){var O=this.b,j=this.a,oe=O[j],Ae=O[j+1],Ge=O[j+2],ft=O[j+3],Jt=O[j+4],on=O[j+5],Zn=O[j+6];return O=O[j+7],this.a+=8,String.fromCharCode(oe,Ae,Ge,ft,Jt,on,Zn,O)},Se.prototype.readFixedHash64=Se.prototype.$;function se(O,j,oe){this.a=tt(O,j,oe),this.O=this.a.B(),this.b=this.c=-1,this.h=!1,this.v=null}h("jspb.BinaryReader",se,void 0);var ze=[];se.clearInstanceCache=function(){ze=[]},se.getInstanceCacheLength=function(){return ze.length};function Ye(O,j,oe){if(ze.length){var Ae=ze.pop();return O&&Ae.a.H(O,j,oe),Ae}return new se(O,j,oe)}se.alloc=Ye,se.prototype.zb=Ye,se.prototype.alloc=se.prototype.zb,se.prototype.Ca=function(){this.a.clear(),this.b=this.c=-1,this.h=!1,this.v=null,100>ze.length&&ze.push(this)},se.prototype.free=se.prototype.Ca,se.prototype.Fb=function(){return this.O},se.prototype.getFieldCursor=se.prototype.Fb,se.prototype.B=function(){return this.a.B()},se.prototype.getCursor=se.prototype.B,se.prototype.Y=function(){return this.a.Y()},se.prototype.getBuffer=se.prototype.Y,se.prototype.Hb=function(){return this.c},se.prototype.getFieldNumber=se.prototype.Hb,se.prototype.Lb=function(){return this.b},se.prototype.getWireType=se.prototype.Lb,se.prototype.Mb=function(){return this.b==2},se.prototype.isDelimited=se.prototype.Mb,se.prototype.bb=function(){return this.b==4},se.prototype.isEndGroup=se.prototype.bb,se.prototype.getError=function(){return this.h||this.a.getError()},se.prototype.getError=se.prototype.getError,se.prototype.H=function(O,j,oe){this.a.H(O,j,oe),this.b=this.c=-1},se.prototype.setBlock=se.prototype.H,se.prototype.reset=function(){this.a.reset(),this.b=this.c=-1},se.prototype.reset=se.prototype.reset,se.prototype.advance=function(O){this.a.advance(O)},se.prototype.advance=se.prototype.advance,se.prototype.oa=function(){if(this.a.ya())return!1;if(this.getError())return P("Decoder hit an error"),!1;this.O=this.a.B();var O=this.a.o(),j=O>>>3;return O&=7,O!=0&&O!=5&&O!=1&&O!=2&&O!=3&&O!=4?(P("Invalid wire type: %s (at position %s)",O,this.O),this.h=!0,!1):(this.c=j,this.b=O,!0)},se.prototype.nextField=se.prototype.oa,se.prototype.Oa=function(){this.a.mb(this.c<<3|this.b)},se.prototype.unskipHeader=se.prototype.Oa,se.prototype.Lc=function(){var O=this.c;for(this.Oa();this.oa()&&this.c==O;)this.C();this.a.ya()||this.Oa()},se.prototype.skipMatchingFields=se.prototype.Lc,se.prototype.lb=function(){this.b!=0?(P("Invalid wire type for skipVarintField"),this.C()):this.a.kb()},se.prototype.skipVarintField=se.prototype.lb,se.prototype.gb=function(){if(this.b!=2)P("Invalid wire type for skipDelimitedField"),this.C();else{var O=this.a.o();this.a.advance(O)}},se.prototype.skipDelimitedField=se.prototype.gb,se.prototype.hb=function(){this.b!=5?(P("Invalid wire type for skipFixed32Field"),this.C()):this.a.advance(4)},se.prototype.skipFixed32Field=se.prototype.hb,se.prototype.ib=function(){this.b!=1?(P("Invalid wire type for skipFixed64Field"),this.C()):this.a.advance(8)},se.prototype.skipFixed64Field=se.prototype.ib,se.prototype.jb=function(){var O=this.c;do{if(!this.oa()){P("Unmatched start-group tag: stream EOF"),this.h=!0;break}if(this.b==4){this.c!=O&&(P("Unmatched end-group tag"),this.h=!0);break}this.C()}while(!0)},se.prototype.skipGroup=se.prototype.jb,se.prototype.C=function(){switch(this.b){case 0:this.lb();break;case 1:this.ib();break;case 2:this.gb();break;case 5:this.hb();break;case 3:this.jb();break;default:P("Invalid wire encoding for field.")}},se.prototype.skipField=se.prototype.C,se.prototype.Hc=function(O,j){this.v===null&&(this.v={}),E(!this.v[O]),this.v[O]=j},se.prototype.registerReadCallback=se.prototype.Hc,se.prototype.Ic=function(O){return E(this.v!==null),O=this.v[O],E(O),O(this)},se.prototype.runReadCallback=se.prototype.Ic,se.prototype.Yb=function(O,j){E(this.b==2);var oe=this.a.c,Ae=this.a.o();Ae=this.a.B()+Ae,this.a.setEnd(Ae),j(O,this),this.a.Ma(Ae),this.a.setEnd(oe)},se.prototype.readMessage=se.prototype.Yb,se.prototype.Ub=function(O,j,oe){E(this.b==3),E(this.c==O),oe(j,this),this.h||this.b==4||(P("Group submessage did not end with an END_GROUP tag"),this.h=!0)},se.prototype.readGroup=se.prototype.Ub,se.prototype.Gb=function(){E(this.b==2);var O=this.a.o(),j=this.a.B(),oe=j+O;return O=tt(this.a.Y(),j,O),this.a.Ma(oe),O},se.prototype.getFieldDecoder=se.prototype.Gb,se.prototype.P=function(){return E(this.b==0),this.a.da()},se.prototype.readInt32=se.prototype.P,se.prototype.Wb=function(){return E(this.b==0),this.a.Ea()},se.prototype.readInt32String=se.prototype.Wb,se.prototype.ba=function(){return E(this.b==0),this.a.sa()},se.prototype.readInt64=se.prototype.ba,se.prototype.ca=function(){return E(this.b==0),this.a.Fa()},se.prototype.readInt64String=se.prototype.ca,se.prototype.m=function(){return E(this.b==0),this.a.o()},se.prototype.readUint32=se.prototype.m,se.prototype.Fc=function(){return E(this.b==0),this.a.O()},se.prototype.readUint32String=se.prototype.Fc,se.prototype.ga=function(){return E(this.b==0),this.a.Ga()},se.prototype.readUint64=se.prototype.ga,se.prototype.ha=function(){return E(this.b==0),this.a.Ha()},se.prototype.readUint64String=se.prototype.ha,se.prototype.zc=function(){return E(this.b==0),this.a.Ia()},se.prototype.readSint32=se.prototype.zc,se.prototype.Ac=function(){return E(this.b==0),this.a.Ja()},se.prototype.readSint64=se.prototype.Ac,se.prototype.Bc=function(){return E(this.b==0),this.a.Ka()},se.prototype.readSint64String=se.prototype.Bc,se.prototype.Rb=function(){return E(this.b==5),this.a.m()},se.prototype.readFixed32=se.prototype.Rb,se.prototype.Sb=function(){return E(this.b==1),this.a.ga()},se.prototype.readFixed64=se.prototype.Sb,se.prototype.Tb=function(){return E(this.b==1),this.a.ha()},se.prototype.readFixed64String=se.prototype.Tb,se.prototype.vc=function(){return E(this.b==5),this.a.P()},se.prototype.readSfixed32=se.prototype.vc,se.prototype.wc=function(){return E(this.b==5),this.a.P().toString()},se.prototype.readSfixed32String=se.prototype.wc,se.prototype.xc=function(){return E(this.b==1),this.a.ba()},se.prototype.readSfixed64=se.prototype.xc,se.prototype.yc=function(){return E(this.b==1),this.a.ca()},se.prototype.readSfixed64String=se.prototype.yc,se.prototype.aa=function(){return E(this.b==5),this.a.aa()},se.prototype.readFloat=se.prototype.aa,se.prototype.Z=function(){return E(this.b==1),this.a.Z()},se.prototype.readDouble=se.prototype.Z,se.prototype.pa=function(){return E(this.b==0),!!this.a.o()},se.prototype.readBool=se.prototype.pa,se.prototype.ra=function(){return E(this.b==0),this.a.sa()},se.prototype.readEnum=se.prototype.ra,se.prototype.fa=function(){E(this.b==2);var O=this.a.o();return this.a.fa(O)},se.prototype.readString=se.prototype.fa,se.prototype.qa=function(){E(this.b==2);var O=this.a.o();return this.a.qa(O)},se.prototype.readBytes=se.prototype.qa,se.prototype.ia=function(){return E(this.b==0),this.a.ia()},se.prototype.readVarintHash64=se.prototype.ia,se.prototype.Cc=function(){return E(this.b==0),this.a.fb()},se.prototype.readSintHash64=se.prototype.Cc,se.prototype.w=function(O){return E(this.b==0),this.a.w(O)},se.prototype.readSplitVarint64=se.prototype.w,se.prototype.ea=function(O){return E(this.b==0),this.a.w(function(j,oe){return Fe(j,oe,O)})},se.prototype.readSplitZigzagVarint64=se.prototype.ea,se.prototype.$=function(){return E(this.b==1),this.a.$()},se.prototype.readFixedHash64=se.prototype.$,se.prototype.ta=function(O){return E(this.b==1),this.a.ta(O)},se.prototype.readSplitFixed64=se.prototype.ta;function Ue(O,j){E(O.b==2);var oe=O.a.o();oe=O.a.B()+oe;for(var Ae=[];O.a.B()<oe;)Ae.push(j.call(O.a));return Ae}se.prototype.gc=function(){return Ue(this,this.a.da)},se.prototype.readPackedInt32=se.prototype.gc,se.prototype.hc=function(){return Ue(this,this.a.Ea)},se.prototype.readPackedInt32String=se.prototype.hc,se.prototype.ic=function(){return Ue(this,this.a.sa)},se.prototype.readPackedInt64=se.prototype.ic,se.prototype.jc=function(){return Ue(this,this.a.Fa)},se.prototype.readPackedInt64String=se.prototype.jc,se.prototype.qc=function(){return Ue(this,this.a.o)},se.prototype.readPackedUint32=se.prototype.qc,se.prototype.rc=function(){return Ue(this,this.a.O)},se.prototype.readPackedUint32String=se.prototype.rc,se.prototype.sc=function(){return Ue(this,this.a.Ga)},se.prototype.readPackedUint64=se.prototype.sc,se.prototype.tc=function(){return Ue(this,this.a.Ha)},se.prototype.readPackedUint64String=se.prototype.tc,se.prototype.nc=function(){return Ue(this,this.a.Ia)},se.prototype.readPackedSint32=se.prototype.nc,se.prototype.oc=function(){return Ue(this,this.a.Ja)},se.prototype.readPackedSint64=se.prototype.oc,se.prototype.pc=function(){return Ue(this,this.a.Ka)},se.prototype.readPackedSint64String=se.prototype.pc,se.prototype.bc=function(){return Ue(this,this.a.m)},se.prototype.readPackedFixed32=se.prototype.bc,se.prototype.cc=function(){return Ue(this,this.a.ga)},se.prototype.readPackedFixed64=se.prototype.cc,se.prototype.dc=function(){return Ue(this,this.a.ha)},se.prototype.readPackedFixed64String=se.prototype.dc,se.prototype.kc=function(){return Ue(this,this.a.P)},se.prototype.readPackedSfixed32=se.prototype.kc,se.prototype.lc=function(){return Ue(this,this.a.ba)},se.prototype.readPackedSfixed64=se.prototype.lc,se.prototype.mc=function(){return Ue(this,this.a.ca)},se.prototype.readPackedSfixed64String=se.prototype.mc,se.prototype.fc=function(){return Ue(this,this.a.aa)},se.prototype.readPackedFloat=se.prototype.fc,se.prototype.$b=function(){return Ue(this,this.a.Z)},se.prototype.readPackedDouble=se.prototype.$b,se.prototype.Zb=function(){return Ue(this,this.a.pa)},se.prototype.readPackedBool=se.prototype.Zb,se.prototype.ac=function(){return Ue(this,this.a.ra)},se.prototype.readPackedEnum=se.prototype.ac,se.prototype.uc=function(){return Ue(this,this.a.ia)},se.prototype.readPackedVarintHash64=se.prototype.uc,se.prototype.ec=function(){return Ue(this,this.a.$)},se.prototype.readPackedFixedHash64=se.prototype.ec;function Je(O,j,oe,Ae,Ge){this.ma=O,this.Ba=j,this.la=oe,this.Na=Ae,this.na=Ge}h("jspb.ExtensionFieldInfo",Je,void 0);function Ze(O,j,oe,Ae,Ge,ft){this.Za=O,this.za=j,this.Aa=oe,this.Wa=Ae,this.Ab=Ge,this.Nb=ft}h("jspb.ExtensionFieldBinaryInfo",Ze,void 0),Je.prototype.F=function(){return!!this.la},Je.prototype.isMessageType=Je.prototype.F;function rt(){}h("jspb.Message",rt,void 0),rt.GENERATE_TO_OBJECT=!0,rt.GENERATE_FROM_OBJECT=!0;var qt=typeof Uint8Array=="function";rt.prototype.Ib=function(){return this.b},rt.prototype.getJsPbMessageId=rt.prototype.Ib,rt.initialize=function(O,j,oe,Ae,Ge,ft){O.f=null,j||(j=oe?[oe]:[]),O.b=oe?String(oe):void 0,O.D=oe===0?-1:0,O.u=j;e:{if(oe=O.u.length,j=-1,oe&&(j=oe-1,oe=O.u[j],!(oe===null||typeof oe!="object"||Array.isArray(oe)||qt&&oe instanceof Uint8Array))){O.G=j-O.D,O.i=oe;break e}-1<Ae?(O.G=Math.max(Ae,j+1-O.D),O.i=null):O.G=Number.MAX_VALUE}if(O.a={},Ge)for(Ae=0;Ae<Ge.length;Ae++)j=Ge[Ae],j<O.G?(j+=O.D,O.u[j]=O.u[j]||St):(Ot(O),O.i[j]=O.i[j]||St);if(ft&&ft.length)for(Ae=0;Ae<ft.length;Ae++)Lt(O,ft[Ae])};var St=Object.freeze?Object.freeze([]):[];function Ot(O){var j=O.G+O.D;O.u[j]||(O.i=O.u[j]={})}function Bt(O,j,oe){for(var Ae=[],Ge=0;Ge<O.length;Ge++)Ae[Ge]=j.call(O[Ge],oe,O[Ge]);return Ae}rt.toObjectList=Bt,rt.toObjectExtension=function(O,j,oe,Ae,Ge){for(var ft in oe){var Jt=oe[ft],on=Ae.call(O,Jt);if(on!=null){for(var Zn in Jt.Ba)if(Jt.Ba.hasOwnProperty(Zn))break;j[Zn]=Jt.Na?Jt.na?Bt(on,Jt.Na,Ge):Jt.Na(Ge,on):on}}},rt.serializeBinaryExtensions=function(O,j,oe,Ae){for(var Ge in oe){var ft=oe[Ge],Jt=ft.Za;if(!ft.Aa)throw Error("Message extension present that was generated without binary serialization support");var on=Ae.call(O,Jt);if(on!=null)if(Jt.F())if(ft.Wa)ft.Aa.call(j,Jt.ma,on,ft.Wa);else throw Error("Message extension present holding submessage without binary support enabled, and message is being serialized to binary format");else ft.Aa.call(j,Jt.ma,on)}},rt.readBinaryExtension=function(O,j,oe,Ae,Ge){var ft=oe[j.c];if(ft){if(oe=ft.Za,!ft.za)throw Error("Deserializing extension whose generated code does not support binary format");if(oe.F()){var Jt=new oe.la;ft.za.call(j,Jt,ft.Ab)}else Jt=ft.za.call(j);oe.na&&!ft.Nb?(j=Ae.call(O,oe))?j.push(Jt):Ge.call(O,oe,[Jt]):Ge.call(O,oe,Jt)}else j.C()};function Dt(O,j){if(j<O.G){j+=O.D;var oe=O.u[j];return oe===St?O.u[j]=[]:oe}if(O.i)return oe=O.i[j],oe===St?O.i[j]=[]:oe}rt.getField=Dt,rt.getRepeatedField=function(O,j){return Dt(O,j)};function an(O,j){return O=Dt(O,j),O==null?O:+O}rt.getOptionalFloatingPointField=an;function Vt(O,j){return O=Dt(O,j),O==null?O:!!O}rt.getBooleanField=Vt,rt.getRepeatedFloatingPointField=function(O,j){var oe=Dt(O,j);if(O.a||(O.a={}),!O.a[j]){for(var Ae=0;Ae<oe.length;Ae++)oe[Ae]=+oe[Ae];O.a[j]=!0}return oe},rt.getRepeatedBooleanField=function(O,j){var oe=Dt(O,j);if(O.a||(O.a={}),!O.a[j]){for(var Ae=0;Ae<oe.length;Ae++)oe[Ae]=!!oe[Ae];O.a[j]=!0}return oe};function Kt(O){return O==null||typeof O=="string"?O:qt&&O instanceof Uint8Array?G(O):(P("Cannot coerce to b64 string: "+p(O)),null)}rt.bytesAsB64=Kt;function Qt(O){return O==null||O instanceof Uint8Array?O:typeof O=="string"?ie(O):(P("Cannot coerce to Uint8Array: "+p(O)),null)}rt.bytesAsU8=Qt,rt.bytesListAsB64=function(O){return et(O),O.length&&typeof O[0]!="string"?_(O,Kt):O},rt.bytesListAsU8=function(O){return et(O),!O.length||O[0]instanceof Uint8Array?O:_(O,Qt)};function et(O){if(O&&1<O.length){var j=p(O[0]);C(O,function(oe){p(oe)!=j&&P("Inconsistent type in JSPB repeated field array. Got "+p(oe)+" expected "+j)})}}function ot(O,j,oe){return O=Dt(O,j),O??oe}rt.getFieldWithDefault=ot,rt.getBooleanFieldWithDefault=function(O,j,oe){return O=Vt(O,j),O??oe},rt.getFloatingPointFieldWithDefault=function(O,j,oe){return O=an(O,j),O??oe},rt.getFieldProto3=ot,rt.getMapField=function(O,j,oe,Ae){if(O.f||(O.f={}),j in O.f)return O.f[j];var Ge=Dt(O,j);if(!Ge){if(oe)return;Ge=[],Qe(O,j,Ge)}return O.f[j]=new A(Ge,Ae)};function Qe(O,j,oe){return D(O,rt),j<O.G?O.u[j+O.D]=oe:(Ot(O),O.i[j]=oe),O}rt.setField=Qe,rt.setProto3IntField=function(O,j,oe){return ut(O,j,oe,0)},rt.setProto3FloatField=function(O,j,oe){return ut(O,j,oe,0)},rt.setProto3BooleanField=function(O,j,oe){return ut(O,j,oe,!1)},rt.setProto3StringField=function(O,j,oe){return ut(O,j,oe,"")},rt.setProto3BytesField=function(O,j,oe){return ut(O,j,oe,"")},rt.setProto3EnumField=function(O,j,oe){return ut(O,j,oe,0)},rt.setProto3StringIntField=function(O,j,oe){return ut(O,j,oe,"0")};function ut(O,j,oe,Ae){return D(O,rt),oe!==Ae?Qe(O,j,oe):j<O.G?O.u[j+O.D]=null:(Ot(O),delete O.i[j]),O}rt.addToRepeatedField=function(O,j,oe,Ae){return D(O,rt),j=Dt(O,j),Ae!=null?j.splice(Ae,0,oe):j.push(oe),O};function Nt(O,j,oe,Ae){return D(O,rt),(oe=Lt(O,oe))&&oe!==j&&Ae!==void 0&&(O.f&&oe in O.f&&(O.f[oe]=void 0),Qe(O,oe,void 0)),Qe(O,j,Ae)}rt.setOneofField=Nt;function Lt(O,j){for(var oe,Ae,Ge=0;Ge<j.length;Ge++){var ft=j[Ge],Jt=Dt(O,ft);Jt!=null&&(oe=ft,Ae=Jt,Qe(O,ft,void 0))}return oe?(Qe(O,oe,Ae),oe):0}rt.computeOneofCase=Lt,rt.getWrapperField=function(O,j,oe,Ae){if(O.f||(O.f={}),!O.f[oe]){var Ge=Dt(O,oe);(Ae||Ge)&&(O.f[oe]=new j(Ge))}return O.f[oe]},rt.getRepeatedWrapperField=function(O,j,oe){return Zt(O,j,oe),j=O.f[oe],j==St&&(j=O.f[oe]=[]),j};function Zt(O,j,oe){if(O.f||(O.f={}),!O.f[oe]){for(var Ae=Dt(O,oe),Ge=[],ft=0;ft<Ae.length;ft++)Ge[ft]=new j(Ae[ft]);O.f[oe]=Ge}}rt.setWrapperField=function(O,j,oe){D(O,rt),O.f||(O.f={});var Ae=oe&&oe.g();return O.f[j]=oe,Qe(O,j,Ae)},rt.setOneofWrapperField=function(O,j,oe,Ae){D(O,rt),O.f||(O.f={});var Ge=Ae&&Ae.g();return O.f[j]=Ae,Nt(O,j,oe,Ge)},rt.setRepeatedWrapperField=function(O,j,oe){D(O,rt),O.f||(O.f={}),oe=oe||[];for(var Ae=[],Ge=0;Ge<oe.length;Ge++)Ae[Ge]=oe[Ge].g();return O.f[j]=oe,Qe(O,j,Ae)},rt.addToRepeatedWrapperField=function(O,j,oe,Ae,Ge){Zt(O,Ae,j);var ft=O.f[j];return ft||(ft=O.f[j]=[]),oe=oe||new Ae,O=Dt(O,j),Ge!=null?(ft.splice(Ge,0,oe),O.splice(Ge,0,oe.g())):(ft.push(oe),O.push(oe.g())),oe},rt.toMap=function(O,j,oe,Ae){for(var Ge={},ft=0;ft<O.length;ft++)Ge[j.call(O[ft])]=oe?oe.call(O[ft],Ae,O[ft]):O[ft];return Ge};function Wt(O){if(O.f)for(var j in O.f){var oe=O.f[j];if(Array.isArray(oe))for(var Ae=0;Ae<oe.length;Ae++)oe[Ae]&&oe[Ae].g();else oe&&oe.g()}}rt.prototype.g=function(){return Wt(this),this.u},rt.prototype.toArray=rt.prototype.g,rt.prototype.toString=function(){return Wt(this),this.u.toString()},rt.prototype.getExtension=function(O){if(this.i){this.f||(this.f={});var j=O.ma;if(O.na){if(O.F())return this.f[j]||(this.f[j]=_(this.i[j]||[],function(oe){return new O.la(oe)})),this.f[j]}else if(O.F())return!this.f[j]&&this.i[j]&&(this.f[j]=new O.la(this.i[j])),this.f[j];return this.i[j]}},rt.prototype.getExtension=rt.prototype.getExtension,rt.prototype.Kc=function(O,j){this.f||(this.f={}),Ot(this);var oe=O.ma;return O.na?(j=j||[],O.F()?(this.f[oe]=j,this.i[oe]=_(j,function(Ae){return Ae.g()})):this.i[oe]=j):O.F()?(this.f[oe]=j,this.i[oe]=j&&j.g()):this.i[oe]=j,this},rt.prototype.setExtension=rt.prototype.Kc,rt.difference=function(O,j){if(!(O instanceof j.constructor))throw Error("Messages have different types.");var oe=O.g();j=j.g();var Ae=[],Ge=0,ft=oe.length>j.length?oe.length:j.length;for(O.b&&(Ae[0]=O.b,Ge=1);Ge<ft;Ge++)$t(oe[Ge],j[Ge])||(Ae[Ge]=j[Ge]);return new O.constructor(Ae)},rt.equals=function(O,j){return O==j||!(!O||!j)&&O instanceof j.constructor&&$t(O.g(),j.g())};function At(O,j){O=O||{},j=j||{};var oe={},Ae;for(Ae in O)oe[Ae]=0;for(Ae in j)oe[Ae]=0;for(Ae in oe)if(!$t(O[Ae],j[Ae]))return!1;return!0}rt.compareExtensions=At;function $t(O,j){if(O==j)return!0;if(!m(O)||!m(j))return typeof O=="number"&&isNaN(O)||typeof j=="number"&&isNaN(j)?String(O)==String(j):!1;if(O.constructor!=j.constructor)return!1;if(qt&&O.constructor===Uint8Array){if(O.length!=j.length)return!1;for(var oe=0;oe<O.length;oe++)if(O[oe]!=j[oe])return!1;return!0}if(O.constructor===Array){var Ae=void 0,Ge=void 0,ft=Math.max(O.length,j.length);for(oe=0;oe<ft;oe++){var Jt=O[oe],on=j[oe];if(Jt&&Jt.constructor==Object&&(E(Ae===void 0),E(oe===O.length-1),Ae=Jt,Jt=void 0),on&&on.constructor==Object&&(E(Ge===void 0),E(oe===j.length-1),Ge=on,on=void 0),!$t(Jt,on))return!1}return Ae||Ge?(Ae=Ae||{},Ge=Ge||{},At(Ae,Ge)):!0}if(O.constructor===Object)return At(O,j);throw Error("Invalid type in JSPB array")}rt.compareFields=$t,rt.prototype.Bb=function(){return Gt(this)},rt.prototype.cloneMessage=rt.prototype.Bb,rt.prototype.clone=function(){return Gt(this)},rt.prototype.clone=rt.prototype.clone,rt.clone=function(O){return Gt(O)};function Gt(O){return new O.constructor(Ft(O.g()))}rt.copyInto=function(O,j){D(O,rt),D(j,rt),E(O.constructor==j.constructor,"Copy source and target message should have the same type."),O=Gt(O);for(var oe=j.g(),Ae=O.g(),Ge=oe.length=0;Ge<Ae.length;Ge++)oe[Ge]=Ae[Ge];j.f=O.f,j.i=O.i};function Ft(O){if(Array.isArray(O)){for(var j=Array(O.length),oe=0;oe<O.length;oe++){var Ae=O[oe];Ae!=null&&(j[oe]=typeof Ae=="object"?Ft(E(Ae)):Ae)}return j}if(qt&&O instanceof Uint8Array)return new Uint8Array(O);j={};for(oe in O)Ae=O[oe],Ae!=null&&(j[oe]=typeof Ae=="object"?Ft(E(Ae)):Ae);return j}rt.registerMessageType=function(O,j){j.we=O};var cn={dump:function(O){return D(O,rt,"jspb.Message instance expected"),E(O.getExtension,"Only unobfuscated and unoptimized compilation modes supported."),cn.X(O)}};h("jspb.debug.dump",cn.dump,void 0),cn.X=function(O){var j=p(O);if(j=="number"||j=="string"||j=="boolean"||j=="null"||j=="undefined"||typeof Uint8Array<"u"&&O instanceof Uint8Array)return O;if(j=="array")return M(O),_(O,cn.X);if(O instanceof A){var oe={};O=O.entries();for(var Ae=O.next();!Ae.done;Ae=O.next())oe[Ae.value[0]]=cn.X(Ae.value[1]);return oe}D(O,rt,"Only messages expected: "+O),j=O.constructor;var Ge={$name:j.name||j.displayName};for(on in j.prototype){var ft=/^get([A-Z]\w*)/.exec(on);if(ft&&on!="getExtension"&&on!="getJsPbMessageId"){var Jt="has"+ft[1];(!O[Jt]||O[Jt]())&&(Jt=O[on](),Ge[cn.$a(ft[1])]=cn.X(Jt))}}if(O.extensionObject_)return Ge.$extensions="Recursive dumping of extensions not supported in compiled code. Switch to uncompiled or dump extension object directly",Ge;for(Ae in j.extensions)if(/^\d+$/.test(Ae)){Jt=j.extensions[Ae];var on=O.getExtension(Jt);ft=void 0,Jt=Jt.Ba;var Zn=[],ni=0;for(ft in Jt)Zn[ni++]=ft;ft=Zn[0],on!=null&&(oe||(oe=Ge.$extensions={}),oe[cn.$a(ft)]=cn.X(on))}return Ge},cn.$a=function(O){return O.replace(/^[A-Z]/,function(j){return j.toLowerCase()})};function _t(){this.a=[]}h("jspb.BinaryEncoder",_t,void 0),_t.prototype.length=function(){return this.a.length},_t.prototype.length=_t.prototype.length,_t.prototype.end=function(){var O=this.a;return this.a=[],O},_t.prototype.end=_t.prototype.end,_t.prototype.l=function(O,j){for(E(O==Math.floor(O)),E(j==Math.floor(j)),E(0<=O&&4294967296>O),E(0<=j&&4294967296>j);0<j||127<O;)this.a.push(O&127|128),O=(O>>>7|j<<25)>>>0,j>>>=7;this.a.push(O)},_t.prototype.writeSplitVarint64=_t.prototype.l,_t.prototype.A=function(O,j){E(O==Math.floor(O)),E(j==Math.floor(j)),E(0<=O&&4294967296>O),E(0<=j&&4294967296>j),this.s(O),this.s(j)},_t.prototype.writeSplitFixed64=_t.prototype.A,_t.prototype.j=function(O){for(E(O==Math.floor(O)),E(0<=O&&4294967296>O);127<O;)this.a.push(O&127|128),O>>>=7;this.a.push(O)},_t.prototype.writeUnsignedVarint32=_t.prototype.j,_t.prototype.M=function(O){if(E(O==Math.floor(O)),E(-2147483648<=O&&2147483648>O),0<=O)this.j(O);else{for(var j=0;9>j;j++)this.a.push(O&127|128),O>>=7;this.a.push(1)}},_t.prototype.writeSignedVarint32=_t.prototype.M,_t.prototype.va=function(O){E(O==Math.floor(O)),E(0<=O&&18446744073709552e3>O),ye(O),this.l(ee,ne)},_t.prototype.writeUnsignedVarint64=_t.prototype.va,_t.prototype.ua=function(O){E(O==Math.floor(O)),E(-9223372036854776e3<=O&&9223372036854776e3>O),ye(O),this.l(ee,ne)},_t.prototype.writeSignedVarint64=_t.prototype.ua,_t.prototype.wa=function(O){E(O==Math.floor(O)),E(-2147483648<=O&&2147483648>O),this.j((O<<1^O>>31)>>>0)},_t.prototype.writeZigzagVarint32=_t.prototype.wa,_t.prototype.xa=function(O){E(O==Math.floor(O)),E(-9223372036854776e3<=O&&9223372036854776e3>O),me(O),this.l(ee,ne)},_t.prototype.writeZigzagVarint64=_t.prototype.xa,_t.prototype.Ta=function(O){this.W(Q(O))},_t.prototype.writeZigzagVarint64String=_t.prototype.Ta,_t.prototype.W=function(O){var j=this;_e(O),we(ee,ne,function(oe,Ae){j.l(oe>>>0,Ae>>>0)})},_t.prototype.writeZigzagVarintHash64=_t.prototype.W,_t.prototype.be=function(O){E(O==Math.floor(O)),E(0<=O&&256>O),this.a.push(O>>>0&255)},_t.prototype.writeUint8=_t.prototype.be,_t.prototype.ae=function(O){E(O==Math.floor(O)),E(0<=O&&65536>O),this.a.push(O>>>0&255),this.a.push(O>>>8&255)},_t.prototype.writeUint16=_t.prototype.ae,_t.prototype.s=function(O){E(O==Math.floor(O)),E(0<=O&&4294967296>O),this.a.push(O>>>0&255),this.a.push(O>>>8&255),this.a.push(O>>>16&255),this.a.push(O>>>24&255)},_t.prototype.writeUint32=_t.prototype.s,_t.prototype.V=function(O){E(O==Math.floor(O)),E(0<=O&&18446744073709552e3>O),ue(O),this.s(ee),this.s(ne)},_t.prototype.writeUint64=_t.prototype.V,_t.prototype.Qc=function(O){E(O==Math.floor(O)),E(-128<=O&&128>O),this.a.push(O>>>0&255)},_t.prototype.writeInt8=_t.prototype.Qc,_t.prototype.Pc=function(O){E(O==Math.floor(O)),E(-32768<=O&&32768>O),this.a.push(O>>>0&255),this.a.push(O>>>8&255)},_t.prototype.writeInt16=_t.prototype.Pc,_t.prototype.S=function(O){E(O==Math.floor(O)),E(-2147483648<=O&&2147483648>O),this.a.push(O>>>0&255),this.a.push(O>>>8&255),this.a.push(O>>>16&255),this.a.push(O>>>24&255)},_t.prototype.writeInt32=_t.prototype.S,_t.prototype.T=function(O){E(O==Math.floor(O)),E(-9223372036854776e3<=O&&9223372036854776e3>O),ye(O),this.A(ee,ne)},_t.prototype.writeInt64=_t.prototype.T,_t.prototype.ka=function(O){E(O==Math.floor(O)),E(-9223372036854776e3<=+O&&9223372036854776e3>+O),_e(Q(O)),this.A(ee,ne)},_t.prototype.writeInt64String=_t.prototype.ka,_t.prototype.L=function(O){E(O===1/0||O===-1/0||isNaN(O)||-34028234663852886e22<=O&&34028234663852886e22>=O),pe(O),this.s(ee)},_t.prototype.writeFloat=_t.prototype.L,_t.prototype.J=function(O){E(O===1/0||O===-1/0||isNaN(O)||-17976931348623157e292<=O&&17976931348623157e292>=O),he(O),this.s(ee),this.s(ne)},_t.prototype.writeDouble=_t.prototype.J,_t.prototype.I=function(O){E(typeof O=="boolean"||typeof O=="number"),this.a.push(O?1:0)},_t.prototype.writeBool=_t.prototype.I,_t.prototype.R=function(O){E(O==Math.floor(O)),E(-2147483648<=O&&2147483648>O),this.M(O)},_t.prototype.writeEnum=_t.prototype.R,_t.prototype.ja=function(O){this.a.push.apply(this.a,O)},_t.prototype.writeBytes=_t.prototype.ja,_t.prototype.N=function(O){_e(O),this.l(ee,ne)},_t.prototype.writeVarintHash64=_t.prototype.N,_t.prototype.K=function(O){_e(O),this.s(ee),this.s(ne)},_t.prototype.writeFixedHash64=_t.prototype.K,_t.prototype.U=function(O){var j=this.a.length;k(O);for(var oe=0;oe<O.length;oe++){var Ae=O.charCodeAt(oe);if(128>Ae)this.a.push(Ae);else if(2048>Ae)this.a.push(Ae>>6|192),this.a.push(Ae&63|128);else if(65536>Ae)if(55296<=Ae&&56319>=Ae&&oe+1<O.length){var Ge=O.charCodeAt(oe+1);56320<=Ge&&57343>=Ge&&(Ae=1024*(Ae-55296)+Ge-56320+65536,this.a.push(Ae>>18|240),this.a.push(Ae>>12&63|128),this.a.push(Ae>>6&63|128),this.a.push(Ae&63|128),oe++)}else this.a.push(Ae>>12|224),this.a.push(Ae>>6&63|128),this.a.push(Ae&63|128)}return this.a.length-j},_t.prototype.writeString=_t.prototype.U;function jt(O,j){this.lo=O,this.hi=j}h("jspb.arith.UInt64",jt,void 0),jt.prototype.cmp=function(O){return this.hi<O.hi||this.hi==O.hi&&this.lo<O.lo?-1:this.hi==O.hi&&this.lo==O.lo?0:1},jt.prototype.cmp=jt.prototype.cmp,jt.prototype.La=function(){return new jt((this.lo>>>1|(this.hi&1)<<31)>>>0,this.hi>>>1>>>0)},jt.prototype.rightShift=jt.prototype.La,jt.prototype.Da=function(){return new jt(this.lo<<1>>>0,(this.hi<<1|this.lo>>>31)>>>0)},jt.prototype.leftShift=jt.prototype.Da,jt.prototype.cb=function(){return!!(this.hi&2147483648)},jt.prototype.msb=jt.prototype.cb,jt.prototype.Ob=function(){return!!(this.lo&1)},jt.prototype.lsb=jt.prototype.Ob,jt.prototype.Ua=function(){return this.lo==0&&this.hi==0},jt.prototype.zero=jt.prototype.Ua,jt.prototype.add=function(O){return new jt((this.lo+O.lo&4294967295)>>>0>>>0,((this.hi+O.hi&4294967295)>>>0)+(4294967296<=this.lo+O.lo?1:0)>>>0)},jt.prototype.add=jt.prototype.add,jt.prototype.sub=function(O){return new jt((this.lo-O.lo&4294967295)>>>0>>>0,((this.hi-O.hi&4294967295)>>>0)-(0>this.lo-O.lo?1:0)>>>0)},jt.prototype.sub=jt.prototype.sub;function nn(O,j){var oe=O&65535;O>>>=16;var Ae=j&65535,Ge=j>>>16;for(j=oe*Ae+65536*(oe*Ge&65535)+65536*(O*Ae&65535),oe=O*Ge+(oe*Ge>>>16)+(O*Ae>>>16);4294967296<=j;)j-=4294967296,oe+=1;return new jt(j>>>0,oe>>>0)}jt.mul32x32=nn,jt.prototype.eb=function(O){var j=nn(this.lo,O);return O=nn(this.hi,O),O.hi=O.lo,O.lo=0,j.add(O)},jt.prototype.mul=jt.prototype.eb,jt.prototype.Xa=function(O){if(O==0)return[];var j=new jt(0,0),oe=new jt(this.lo,this.hi);O=new jt(O,0);for(var Ae=new jt(1,0);!O.cb();)O=O.Da(),Ae=Ae.Da();for(;!Ae.Ua();)0>=O.cmp(oe)&&(j=j.add(Ae),oe=oe.sub(O)),O=O.La(),Ae=Ae.La();return[j,oe]},jt.prototype.div=jt.prototype.Xa,jt.prototype.toString=function(){for(var O="",j=this;!j.Ua();){j=j.Xa(10);var oe=j[0];O=j[1].lo+O,j=oe}return O==""&&(O="0"),O},jt.prototype.toString=jt.prototype.toString;function Ht(O){for(var j=new jt(0,0),oe=new jt(0,0),Ae=0;Ae<O.length;Ae++){if("0">O[Ae]||"9"<O[Ae])return null;oe.lo=parseInt(O[Ae],10),j=j.eb(10).add(oe)}return j}jt.fromString=Ht,jt.prototype.clone=function(){return new jt(this.lo,this.hi)},jt.prototype.clone=jt.prototype.clone;function Tt(O,j){this.lo=O,this.hi=j}h("jspb.arith.Int64",Tt,void 0),Tt.prototype.add=function(O){return new Tt((this.lo+O.lo&4294967295)>>>0>>>0,((this.hi+O.hi&4294967295)>>>0)+(4294967296<=this.lo+O.lo?1:0)>>>0)},Tt.prototype.add=Tt.prototype.add,Tt.prototype.sub=function(O){return new Tt((this.lo-O.lo&4294967295)>>>0>>>0,((this.hi-O.hi&4294967295)>>>0)-(0>this.lo-O.lo?1:0)>>>0)},Tt.prototype.sub=Tt.prototype.sub,Tt.prototype.clone=function(){return new Tt(this.lo,this.hi)},Tt.prototype.clone=Tt.prototype.clone,Tt.prototype.toString=function(){var O=(this.hi&2147483648)!=0,j=new jt(this.lo,this.hi);return O&&(j=new jt(0,0).sub(j)),(O?"-":"")+j.toString()},Tt.prototype.toString=Tt.prototype.toString;function gt(O){var j=0<O.length&&O[0]=="-";return j&&(O=O.substring(1)),O=Ht(O),O===null?null:(j&&(O=new jt(0,0).sub(O)),new Tt(O.lo,O.hi))}Tt.fromString=gt;function Ve(){this.c=[],this.b=0,this.a=new _t,this.h=[]}h("jspb.BinaryWriter",Ve,void 0);function Yt(O,j){var oe=O.a.end();O.c.push(oe),O.c.push(j),O.b+=oe.length+j.length}function mt(O,j){return zt(O,j,2),j=O.a.end(),O.c.push(j),O.b+=j.length,j.push(O.b),j}function Mt(O,j){var oe=j.pop();for(oe=O.b+O.a.length()-oe,E(0<=oe);127<oe;)j.push(oe&127|128),oe>>>=7,O.b++;j.push(oe),O.b++}Ve.prototype.pb=function(O,j,oe){Yt(this,O.subarray(j,oe))},Ve.prototype.writeSerializedMessage=Ve.prototype.pb,Ve.prototype.Pb=function(O,j,oe){O!=null&&j!=null&&oe!=null&&this.pb(O,j,oe)},Ve.prototype.maybeWriteSerializedMessage=Ve.prototype.Pb,Ve.prototype.reset=function(){this.c=[],this.a.end(),this.b=0,this.h=[]},Ve.prototype.reset=Ve.prototype.reset,Ve.prototype.ab=function(){E(this.h.length==0);for(var O=new Uint8Array(this.b+this.a.length()),j=this.c,oe=j.length,Ae=0,Ge=0;Ge<oe;Ge++){var ft=j[Ge];O.set(ft,Ae),Ae+=ft.length}return j=this.a.end(),O.set(j,Ae),Ae+=j.length,E(Ae==O.length),this.c=[O],O},Ve.prototype.getResultBuffer=Ve.prototype.ab,Ve.prototype.Kb=function(O){return G(this.ab(),O)},Ve.prototype.getResultBase64String=Ve.prototype.Kb,Ve.prototype.Va=function(O){this.h.push(mt(this,O))},Ve.prototype.beginSubMessage=Ve.prototype.Va,Ve.prototype.Ya=function(){E(0<=this.h.length),Mt(this,this.h.pop())},Ve.prototype.endSubMessage=Ve.prototype.Ya;function zt(O,j,oe){E(1<=j&&j==Math.floor(j)),O.a.j(8*j+oe)}Ve.prototype.Nc=function(O,j,oe){switch(O){case 1:this.J(j,oe);break;case 2:this.L(j,oe);break;case 3:this.T(j,oe);break;case 4:this.V(j,oe);break;case 5:this.S(j,oe);break;case 6:this.Qa(j,oe);break;case 7:this.Pa(j,oe);break;case 8:this.I(j,oe);break;case 9:this.U(j,oe);break;case 10:P("Group field type not supported in writeAny()");break;case 11:P("Message field type not supported in writeAny()");break;case 12:this.ja(j,oe);break;case 13:this.s(j,oe);break;case 14:this.R(j,oe);break;case 15:this.Ra(j,oe);break;case 16:this.Sa(j,oe);break;case 17:this.rb(j,oe);break;case 18:this.sb(j,oe);break;case 30:this.K(j,oe);break;case 31:this.N(j,oe);break;default:P("Invalid field type in writeAny()")}},Ve.prototype.writeAny=Ve.prototype.Nc;function Dn(O,j,oe){oe!=null&&(zt(O,j,0),O.a.j(oe))}function Qn(O,j,oe){oe!=null&&(zt(O,j,0),O.a.M(oe))}Ve.prototype.S=function(O,j){j!=null&&(E(-2147483648<=j&&2147483648>j),Qn(this,O,j))},Ve.prototype.writeInt32=Ve.prototype.S,Ve.prototype.ob=function(O,j){j!=null&&(j=parseInt(j,10),E(-2147483648<=j&&2147483648>j),Qn(this,O,j))},Ve.prototype.writeInt32String=Ve.prototype.ob,Ve.prototype.T=function(O,j){j!=null&&(E(-9223372036854776e3<=j&&9223372036854776e3>j),j!=null&&(zt(this,O,0),this.a.ua(j)))},Ve.prototype.writeInt64=Ve.prototype.T,Ve.prototype.ka=function(O,j){j!=null&&(j=gt(j),zt(this,O,0),this.a.l(j.lo,j.hi))},Ve.prototype.writeInt64String=Ve.prototype.ka,Ve.prototype.s=function(O,j){j!=null&&(E(0<=j&&4294967296>j),Dn(this,O,j))},Ve.prototype.writeUint32=Ve.prototype.s,Ve.prototype.ub=function(O,j){j!=null&&(j=parseInt(j,10),E(0<=j&&4294967296>j),Dn(this,O,j))},Ve.prototype.writeUint32String=Ve.prototype.ub,Ve.prototype.V=function(O,j){j!=null&&(E(0<=j&&18446744073709552e3>j),j!=null&&(zt(this,O,0),this.a.va(j)))},Ve.prototype.writeUint64=Ve.prototype.V,Ve.prototype.vb=function(O,j){j!=null&&(j=Ht(j),zt(this,O,0),this.a.l(j.lo,j.hi))},Ve.prototype.writeUint64String=Ve.prototype.vb,Ve.prototype.rb=function(O,j){j!=null&&(E(-2147483648<=j&&2147483648>j),j!=null&&(zt(this,O,0),this.a.wa(j)))},Ve.prototype.writeSint32=Ve.prototype.rb,Ve.prototype.sb=function(O,j){j!=null&&(E(-9223372036854776e3<=j&&9223372036854776e3>j),j!=null&&(zt(this,O,0),this.a.xa(j)))},Ve.prototype.writeSint64=Ve.prototype.sb,Ve.prototype.$d=function(O,j){j!=null&&j!=null&&(zt(this,O,0),this.a.W(j))},Ve.prototype.writeSintHash64=Ve.prototype.$d,Ve.prototype.Zd=function(O,j){j!=null&&j!=null&&(zt(this,O,0),this.a.Ta(j))},Ve.prototype.writeSint64String=Ve.prototype.Zd,Ve.prototype.Pa=function(O,j){j!=null&&(E(0<=j&&4294967296>j),zt(this,O,5),this.a.s(j))},Ve.prototype.writeFixed32=Ve.prototype.Pa,Ve.prototype.Qa=function(O,j){j!=null&&(E(0<=j&&18446744073709552e3>j),zt(this,O,1),this.a.V(j))},Ve.prototype.writeFixed64=Ve.prototype.Qa,Ve.prototype.nb=function(O,j){j!=null&&(j=Ht(j),zt(this,O,1),this.a.A(j.lo,j.hi))},Ve.prototype.writeFixed64String=Ve.prototype.nb,Ve.prototype.Ra=function(O,j){j!=null&&(E(-2147483648<=j&&2147483648>j),zt(this,O,5),this.a.S(j))},Ve.prototype.writeSfixed32=Ve.prototype.Ra,Ve.prototype.Sa=function(O,j){j!=null&&(E(-9223372036854776e3<=j&&9223372036854776e3>j),zt(this,O,1),this.a.T(j))},Ve.prototype.writeSfixed64=Ve.prototype.Sa,Ve.prototype.qb=function(O,j){j!=null&&(j=gt(j),zt(this,O,1),this.a.A(j.lo,j.hi))},Ve.prototype.writeSfixed64String=Ve.prototype.qb,Ve.prototype.L=function(O,j){j!=null&&(zt(this,O,5),this.a.L(j))},Ve.prototype.writeFloat=Ve.prototype.L,Ve.prototype.J=function(O,j){j!=null&&(zt(this,O,1),this.a.J(j))},Ve.prototype.writeDouble=Ve.prototype.J,Ve.prototype.I=function(O,j){j!=null&&(E(typeof j=="boolean"||typeof j=="number"),zt(this,O,0),this.a.I(j))},Ve.prototype.writeBool=Ve.prototype.I,Ve.prototype.R=function(O,j){j!=null&&(E(-2147483648<=j&&2147483648>j),zt(this,O,0),this.a.M(j))},Ve.prototype.writeEnum=Ve.prototype.R,Ve.prototype.U=function(O,j){j!=null&&(O=mt(this,O),this.a.U(j),Mt(this,O))},Ve.prototype.writeString=Ve.prototype.U,Ve.prototype.ja=function(O,j){j!=null&&(j=Oe(j),zt(this,O,2),this.a.j(j.length),Yt(this,j))},Ve.prototype.writeBytes=Ve.prototype.ja,Ve.prototype.Rc=function(O,j,oe){j!=null&&(O=mt(this,O),oe(j,this),Mt(this,O))},Ve.prototype.writeMessage=Ve.prototype.Rc,Ve.prototype.Sc=function(O,j,oe){j!=null&&(zt(this,1,3),zt(this,2,0),this.a.M(O),O=mt(this,3),oe(j,this),Mt(this,O),zt(this,1,4))},Ve.prototype.writeMessageSet=Ve.prototype.Sc,Ve.prototype.Oc=function(O,j,oe){j!=null&&(zt(this,O,3),oe(j,this),zt(this,O,4))},Ve.prototype.writeGroup=Ve.prototype.Oc,Ve.prototype.K=function(O,j){j!=null&&(E(j.length==8),zt(this,O,1),this.a.K(j))},Ve.prototype.writeFixedHash64=Ve.prototype.K,Ve.prototype.N=function(O,j){j!=null&&(E(j.length==8),zt(this,O,0),this.a.N(j))},Ve.prototype.writeVarintHash64=Ve.prototype.N,Ve.prototype.A=function(O,j,oe){zt(this,O,1),this.a.A(j,oe)},Ve.prototype.writeSplitFixed64=Ve.prototype.A,Ve.prototype.l=function(O,j,oe){zt(this,O,0),this.a.l(j,oe)},Ve.prototype.writeSplitVarint64=Ve.prototype.l,Ve.prototype.tb=function(O,j,oe){zt(this,O,0);var Ae=this.a;we(j,oe,function(Ge,ft){Ae.l(Ge>>>0,ft>>>0)})},Ve.prototype.writeSplitZigzagVarint64=Ve.prototype.tb,Ve.prototype.Ed=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++)Qn(this,O,j[oe])},Ve.prototype.writeRepeatedInt32=Ve.prototype.Ed,Ve.prototype.Fd=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++)this.ob(O,j[oe])},Ve.prototype.writeRepeatedInt32String=Ve.prototype.Fd,Ve.prototype.Gd=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++){var Ae=j[oe];Ae!=null&&(zt(this,O,0),this.a.ua(Ae))}},Ve.prototype.writeRepeatedInt64=Ve.prototype.Gd,Ve.prototype.Qd=function(O,j,oe,Ae){if(j!=null)for(var Ge=0;Ge<j.length;Ge++)this.A(O,oe(j[Ge]),Ae(j[Ge]))},Ve.prototype.writeRepeatedSplitFixed64=Ve.prototype.Qd,Ve.prototype.Rd=function(O,j,oe,Ae){if(j!=null)for(var Ge=0;Ge<j.length;Ge++)this.l(O,oe(j[Ge]),Ae(j[Ge]))},Ve.prototype.writeRepeatedSplitVarint64=Ve.prototype.Rd,Ve.prototype.Sd=function(O,j,oe,Ae){if(j!=null)for(var Ge=0;Ge<j.length;Ge++)this.tb(O,oe(j[Ge]),Ae(j[Ge]))},Ve.prototype.writeRepeatedSplitZigzagVarint64=Ve.prototype.Sd,Ve.prototype.Hd=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++)this.ka(O,j[oe])},Ve.prototype.writeRepeatedInt64String=Ve.prototype.Hd,Ve.prototype.Ud=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++)Dn(this,O,j[oe])},Ve.prototype.writeRepeatedUint32=Ve.prototype.Ud,Ve.prototype.Vd=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++)this.ub(O,j[oe])},Ve.prototype.writeRepeatedUint32String=Ve.prototype.Vd,Ve.prototype.Wd=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++){var Ae=j[oe];Ae!=null&&(zt(this,O,0),this.a.va(Ae))}},Ve.prototype.writeRepeatedUint64=Ve.prototype.Wd,Ve.prototype.Xd=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++)this.vb(O,j[oe])},Ve.prototype.writeRepeatedUint64String=Ve.prototype.Xd,Ve.prototype.Md=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++){var Ae=j[oe];Ae!=null&&(zt(this,O,0),this.a.wa(Ae))}},Ve.prototype.writeRepeatedSint32=Ve.prototype.Md,Ve.prototype.Nd=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++){var Ae=j[oe];Ae!=null&&(zt(this,O,0),this.a.xa(Ae))}},Ve.prototype.writeRepeatedSint64=Ve.prototype.Nd,Ve.prototype.Od=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++){var Ae=j[oe];Ae!=null&&(zt(this,O,0),this.a.Ta(Ae))}},Ve.prototype.writeRepeatedSint64String=Ve.prototype.Od,Ve.prototype.Pd=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++){var Ae=j[oe];Ae!=null&&(zt(this,O,0),this.a.W(Ae))}},Ve.prototype.writeRepeatedSintHash64=Ve.prototype.Pd,Ve.prototype.yd=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++)this.Pa(O,j[oe])},Ve.prototype.writeRepeatedFixed32=Ve.prototype.yd,Ve.prototype.zd=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++)this.Qa(O,j[oe])},Ve.prototype.writeRepeatedFixed64=Ve.prototype.zd,Ve.prototype.Ad=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++)this.nb(O,j[oe])},Ve.prototype.writeRepeatedFixed64String=Ve.prototype.Ad,Ve.prototype.Jd=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++)this.Ra(O,j[oe])},Ve.prototype.writeRepeatedSfixed32=Ve.prototype.Jd,Ve.prototype.Kd=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++)this.Sa(O,j[oe])},Ve.prototype.writeRepeatedSfixed64=Ve.prototype.Kd,Ve.prototype.Ld=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++)this.qb(O,j[oe])},Ve.prototype.writeRepeatedSfixed64String=Ve.prototype.Ld,Ve.prototype.Cd=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++)this.L(O,j[oe])},Ve.prototype.writeRepeatedFloat=Ve.prototype.Cd,Ve.prototype.wd=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++)this.J(O,j[oe])},Ve.prototype.writeRepeatedDouble=Ve.prototype.wd,Ve.prototype.ud=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++)this.I(O,j[oe])},Ve.prototype.writeRepeatedBool=Ve.prototype.ud,Ve.prototype.xd=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++)this.R(O,j[oe])},Ve.prototype.writeRepeatedEnum=Ve.prototype.xd,Ve.prototype.Td=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++)this.U(O,j[oe])},Ve.prototype.writeRepeatedString=Ve.prototype.Td,Ve.prototype.vd=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++)this.ja(O,j[oe])},Ve.prototype.writeRepeatedBytes=Ve.prototype.vd,Ve.prototype.Id=function(O,j,oe){if(j!=null)for(var Ae=0;Ae<j.length;Ae++){var Ge=mt(this,O);oe(j[Ae],this),Mt(this,Ge)}},Ve.prototype.writeRepeatedMessage=Ve.prototype.Id,Ve.prototype.Dd=function(O,j,oe){if(j!=null)for(var Ae=0;Ae<j.length;Ae++)zt(this,O,3),oe(j[Ae],this),zt(this,O,4)},Ve.prototype.writeRepeatedGroup=Ve.prototype.Dd,Ve.prototype.Bd=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++)this.K(O,j[oe])},Ve.prototype.writeRepeatedFixedHash64=Ve.prototype.Bd,Ve.prototype.Yd=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++)this.N(O,j[oe])},Ve.prototype.writeRepeatedVarintHash64=Ve.prototype.Yd,Ve.prototype.ad=function(O,j){if(j!=null&&j.length){O=mt(this,O);for(var oe=0;oe<j.length;oe++)this.a.M(j[oe]);Mt(this,O)}},Ve.prototype.writePackedInt32=Ve.prototype.ad,Ve.prototype.bd=function(O,j){if(j!=null&&j.length){O=mt(this,O);for(var oe=0;oe<j.length;oe++)this.a.M(parseInt(j[oe],10));Mt(this,O)}},Ve.prototype.writePackedInt32String=Ve.prototype.bd,Ve.prototype.cd=function(O,j){if(j!=null&&j.length){O=mt(this,O);for(var oe=0;oe<j.length;oe++)this.a.ua(j[oe]);Mt(this,O)}},Ve.prototype.writePackedInt64=Ve.prototype.cd,Ve.prototype.md=function(O,j,oe,Ae){if(j!=null){O=mt(this,O);for(var Ge=0;Ge<j.length;Ge++)this.a.A(oe(j[Ge]),Ae(j[Ge]));Mt(this,O)}},Ve.prototype.writePackedSplitFixed64=Ve.prototype.md,Ve.prototype.nd=function(O,j,oe,Ae){if(j!=null){O=mt(this,O);for(var Ge=0;Ge<j.length;Ge++)this.a.l(oe(j[Ge]),Ae(j[Ge]));Mt(this,O)}},Ve.prototype.writePackedSplitVarint64=Ve.prototype.nd,Ve.prototype.od=function(O,j,oe,Ae){if(j!=null){O=mt(this,O);for(var Ge=this.a,ft=0;ft<j.length;ft++)we(oe(j[ft]),Ae(j[ft]),function(Jt,on){Ge.l(Jt>>>0,on>>>0)});Mt(this,O)}},Ve.prototype.writePackedSplitZigzagVarint64=Ve.prototype.od,Ve.prototype.dd=function(O,j){if(j!=null&&j.length){O=mt(this,O);for(var oe=0;oe<j.length;oe++){var Ae=gt(j[oe]);this.a.l(Ae.lo,Ae.hi)}Mt(this,O)}},Ve.prototype.writePackedInt64String=Ve.prototype.dd,Ve.prototype.pd=function(O,j){if(j!=null&&j.length){O=mt(this,O);for(var oe=0;oe<j.length;oe++)this.a.j(j[oe]);Mt(this,O)}},Ve.prototype.writePackedUint32=Ve.prototype.pd,Ve.prototype.qd=function(O,j){if(j!=null&&j.length){O=mt(this,O);for(var oe=0;oe<j.length;oe++)this.a.j(parseInt(j[oe],10));Mt(this,O)}},Ve.prototype.writePackedUint32String=Ve.prototype.qd,Ve.prototype.rd=function(O,j){if(j!=null&&j.length){O=mt(this,O);for(var oe=0;oe<j.length;oe++)this.a.va(j[oe]);Mt(this,O)}},Ve.prototype.writePackedUint64=Ve.prototype.rd,Ve.prototype.sd=function(O,j){if(j!=null&&j.length){O=mt(this,O);for(var oe=0;oe<j.length;oe++){var Ae=Ht(j[oe]);this.a.l(Ae.lo,Ae.hi)}Mt(this,O)}},Ve.prototype.writePackedUint64String=Ve.prototype.sd,Ve.prototype.hd=function(O,j){if(j!=null&&j.length){O=mt(this,O);for(var oe=0;oe<j.length;oe++)this.a.wa(j[oe]);Mt(this,O)}},Ve.prototype.writePackedSint32=Ve.prototype.hd,Ve.prototype.jd=function(O,j){if(j!=null&&j.length){O=mt(this,O);for(var oe=0;oe<j.length;oe++)this.a.xa(j[oe]);Mt(this,O)}},Ve.prototype.writePackedSint64=Ve.prototype.jd,Ve.prototype.kd=function(O,j){if(j!=null&&j.length){O=mt(this,O);for(var oe=0;oe<j.length;oe++)this.a.W(Q(j[oe]));Mt(this,O)}},Ve.prototype.writePackedSint64String=Ve.prototype.kd,Ve.prototype.ld=function(O,j){if(j!=null&&j.length){O=mt(this,O);for(var oe=0;oe<j.length;oe++)this.a.W(j[oe]);Mt(this,O)}},Ve.prototype.writePackedSintHash64=Ve.prototype.ld,Ve.prototype.Wc=function(O,j){if(j!=null&&j.length)for(zt(this,O,2),this.a.j(4*j.length),O=0;O<j.length;O++)this.a.s(j[O])},Ve.prototype.writePackedFixed32=Ve.prototype.Wc,Ve.prototype.Xc=function(O,j){if(j!=null&&j.length)for(zt(this,O,2),this.a.j(8*j.length),O=0;O<j.length;O++)this.a.V(j[O])},Ve.prototype.writePackedFixed64=Ve.prototype.Xc,Ve.prototype.Yc=function(O,j){if(j!=null&&j.length)for(zt(this,O,2),this.a.j(8*j.length),O=0;O<j.length;O++){var oe=Ht(j[O]);this.a.A(oe.lo,oe.hi)}},Ve.prototype.writePackedFixed64String=Ve.prototype.Yc,Ve.prototype.ed=function(O,j){if(j!=null&&j.length)for(zt(this,O,2),this.a.j(4*j.length),O=0;O<j.length;O++)this.a.S(j[O])},Ve.prototype.writePackedSfixed32=Ve.prototype.ed,Ve.prototype.fd=function(O,j){if(j!=null&&j.length)for(zt(this,O,2),this.a.j(8*j.length),O=0;O<j.length;O++)this.a.T(j[O])},Ve.prototype.writePackedSfixed64=Ve.prototype.fd,Ve.prototype.gd=function(O,j){if(j!=null&&j.length)for(zt(this,O,2),this.a.j(8*j.length),O=0;O<j.length;O++)this.a.ka(j[O])},Ve.prototype.writePackedSfixed64String=Ve.prototype.gd,Ve.prototype.$c=function(O,j){if(j!=null&&j.length)for(zt(this,O,2),this.a.j(4*j.length),O=0;O<j.length;O++)this.a.L(j[O])},Ve.prototype.writePackedFloat=Ve.prototype.$c,Ve.prototype.Uc=function(O,j){if(j!=null&&j.length)for(zt(this,O,2),this.a.j(8*j.length),O=0;O<j.length;O++)this.a.J(j[O])},Ve.prototype.writePackedDouble=Ve.prototype.Uc,Ve.prototype.Tc=function(O,j){if(j!=null&&j.length)for(zt(this,O,2),this.a.j(j.length),O=0;O<j.length;O++)this.a.I(j[O])},Ve.prototype.writePackedBool=Ve.prototype.Tc,Ve.prototype.Vc=function(O,j){if(j!=null&&j.length){O=mt(this,O);for(var oe=0;oe<j.length;oe++)this.a.R(j[oe]);Mt(this,O)}},Ve.prototype.writePackedEnum=Ve.prototype.Vc,Ve.prototype.Zc=function(O,j){if(j!=null&&j.length)for(zt(this,O,2),this.a.j(8*j.length),O=0;O<j.length;O++)this.a.K(j[O])},Ve.prototype.writePackedFixedHash64=Ve.prototype.Zc,Ve.prototype.td=function(O,j){if(j!=null&&j.length){O=mt(this,O);for(var oe=0;oe<j.length;oe++)this.a.N(j[oe]);Mt(this,O)}},Ve.prototype.writePackedVarintHash64=Ve.prototype.td,e.debug=cn,e.Map=A,e.Message=rt,e.BinaryReader=se,e.BinaryWriter=Ve,e.ExtensionFieldInfo=Je,e.ExtensionFieldBinaryInfo=Ze,e.exportSymbol=v,e.inherits=y,e.object={extend:b},e.typeOf=p})(Vn);const wRe=vi(Vn),Oz=Wk({__proto__:null,default:wRe},[Vn]);var Pz=Oz,DL=(function(){return this?this:typeof window<"u"?window:typeof DL<"u"?DL:typeof self<"u"?self:Function("return this")()}).call(null);Pz.exportSymbol("proto.User",null,DL);proto.User=function(e){Vn.Message.initialize(this,e,0,-1,null,null)};Pz.inherits(proto.User,Vn.Message);Pz.DEBUG&&!COMPILED&&(proto.User.displayName="proto.User");Vn.Message.GENERATE_TO_OBJECT&&(proto.User.prototype.toObject=function(e){return proto.User.toObject(e,this)},proto.User.toObject=function(e,t){var n={uid:Vn.Message.getFieldWithDefault(t,1,""),nickname:Vn.Message.getFieldWithDefault(t,2,""),avatar:Vn.Message.getFieldWithDefault(t,3,""),type:Vn.Message.getFieldWithDefault(t,4,""),extra:Vn.Message.getFieldWithDefault(t,5,"")};return e&&(n.$jspbMessageInstance=t),n});proto.User.deserializeBinary=function(e){var t=new Vn.BinaryReader(e),n=new proto.User;return proto.User.deserializeBinaryFromReader(n,t)};proto.User.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){var n=t.getFieldNumber();switch(n){case 1:var r=t.readString();e.setUid(r);break;case 2:var r=t.readString();e.setNickname(r);break;case 3:var r=t.readString();e.setAvatar(r);break;case 4:var r=t.readString();e.setType(r);break;case 5:var r=t.readString();e.setExtra(r);break;default:t.skipField();break}}return e};proto.User.prototype.serializeBinary=function(){var e=new Vn.BinaryWriter;return proto.User.serializeBinaryToWriter(this,e),e.getResultBuffer()};proto.User.serializeBinaryToWriter=function(e,t){var n=void 0;n=e.getUid(),n.length>0&&t.writeString(1,n),n=e.getNickname(),n.length>0&&t.writeString(2,n),n=e.getAvatar(),n.length>0&&t.writeString(3,n),n=e.getType(),n.length>0&&t.writeString(4,n),n=e.getExtra(),n.length>0&&t.writeString(5,n)};proto.User.prototype.getUid=function(){return Vn.Message.getFieldWithDefault(this,1,"")};proto.User.prototype.setUid=function(e){return Vn.Message.setProto3StringField(this,1,e)};proto.User.prototype.getNickname=function(){return Vn.Message.getFieldWithDefault(this,2,"")};proto.User.prototype.setNickname=function(e){return Vn.Message.setProto3StringField(this,2,e)};proto.User.prototype.getAvatar=function(){return Vn.Message.getFieldWithDefault(this,3,"")};proto.User.prototype.setAvatar=function(e){return Vn.Message.setProto3StringField(this,3,e)};proto.User.prototype.getType=function(){return Vn.Message.getFieldWithDefault(this,4,"")};proto.User.prototype.setType=function(e){return Vn.Message.setProto3StringField(this,4,e)};proto.User.prototype.getExtra=function(){return Vn.Message.getFieldWithDefault(this,5,"")};proto.User.prototype.setExtra=function(e){return Vn.Message.setProto3StringField(this,5,e)};const zQ=proto;var Mz=Oz,LL=(function(){return this?this:typeof window<"u"?window:typeof LL<"u"?LL:typeof self<"u"?self:Function("return this")()}).call(null);Mz.exportSymbol("proto.Thread",null,LL);proto.Thread=function(e){Vn.Message.initialize(this,e,0,-1,null,null)};Mz.inherits(proto.Thread,Vn.Message);Mz.DEBUG&&!COMPILED&&(proto.Thread.displayName="proto.Thread");Vn.Message.GENERATE_TO_OBJECT&&(proto.Thread.prototype.toObject=function(e){return proto.Thread.toObject(e,this)},proto.Thread.toObject=function(e,t){var n,r={uid:Vn.Message.getFieldWithDefault(t,1,""),topic:Vn.Message.getFieldWithDefault(t,2,""),type:Vn.Message.getFieldWithDefault(t,3,""),state:Vn.Message.getFieldWithDefault(t,4,""),user:(n=t.getUser())&&proto.User.toObject(e,n),extra:Vn.Message.getFieldWithDefault(t,6,"")};return e&&(r.$jspbMessageInstance=t),r});proto.Thread.deserializeBinary=function(e){var t=new Vn.BinaryReader(e),n=new proto.Thread;return proto.Thread.deserializeBinaryFromReader(n,t)};proto.Thread.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){var n=t.getFieldNumber();switch(n){case 1:var r=t.readString();e.setUid(r);break;case 2:var r=t.readString();e.setTopic(r);break;case 3:var r=t.readString();e.setType(r);break;case 4:var r=t.readString();e.setState(r);break;case 5:var r=new proto.User;t.readMessage(r,proto.User.deserializeBinaryFromReader),e.setUser(r);break;case 6:var r=t.readString();e.setExtra(r);break;default:t.skipField();break}}return e};proto.Thread.prototype.serializeBinary=function(){var e=new Vn.BinaryWriter;return proto.Thread.serializeBinaryToWriter(this,e),e.getResultBuffer()};proto.Thread.serializeBinaryToWriter=function(e,t){var n=void 0;n=e.getUid(),n.length>0&&t.writeString(1,n),n=e.getTopic(),n.length>0&&t.writeString(2,n),n=e.getType(),n.length>0&&t.writeString(3,n),n=e.getState(),n.length>0&&t.writeString(4,n),n=e.getUser(),n!=null&&t.writeMessage(5,n,proto.User.serializeBinaryToWriter),n=e.getExtra(),n.length>0&&t.writeString(6,n)};proto.Thread.prototype.getUid=function(){return Vn.Message.getFieldWithDefault(this,1,"")};proto.Thread.prototype.setUid=function(e){return Vn.Message.setProto3StringField(this,1,e)};proto.Thread.prototype.getTopic=function(){return Vn.Message.getFieldWithDefault(this,2,"")};proto.Thread.prototype.setTopic=function(e){return Vn.Message.setProto3StringField(this,2,e)};proto.Thread.prototype.getType=function(){return Vn.Message.getFieldWithDefault(this,3,"")};proto.Thread.prototype.setType=function(e){return Vn.Message.setProto3StringField(this,3,e)};proto.Thread.prototype.getState=function(){return Vn.Message.getFieldWithDefault(this,4,"")};proto.Thread.prototype.setState=function(e){return Vn.Message.setProto3StringField(this,4,e)};proto.Thread.prototype.getUser=function(){return Vn.Message.getWrapperField(this,proto.User,5)};proto.Thread.prototype.setUser=function(e){return Vn.Message.setWrapperField(this,5,e)};proto.Thread.prototype.clearUser=function(){return this.setUser(void 0)};proto.Thread.prototype.hasUser=function(){return Vn.Message.getField(this,5)!=null};proto.Thread.prototype.getExtra=function(){return Vn.Message.getFieldWithDefault(this,6,"")};proto.Thread.prototype.setExtra=function(e){return Vn.Message.setProto3StringField(this,6,e)};const _Re=proto;var Iz=Oz,FL=(function(){return this?this:typeof window<"u"?window:typeof FL<"u"?FL:typeof self<"u"?self:Function("return this")()}).call(null);Iz.exportSymbol("proto.Message",null,FL);proto.Message=function(e){Vn.Message.initialize(this,e,0,-1,null,null)};Iz.inherits(proto.Message,Vn.Message);Iz.DEBUG&&!COMPILED&&(proto.Message.displayName="proto.Message");Vn.Message.GENERATE_TO_OBJECT&&(proto.Message.prototype.toObject=function(e){return proto.Message.toObject(e,this)},proto.Message.toObject=function(e,t){var n,r={uid:Vn.Message.getFieldWithDefault(t,1,""),type:Vn.Message.getFieldWithDefault(t,2,""),content:Vn.Message.getFieldWithDefault(t,3,""),status:Vn.Message.getFieldWithDefault(t,4,""),createdat:Vn.Message.getFieldWithDefault(t,5,""),client:Vn.Message.getFieldWithDefault(t,6,""),thread:(n=t.getThread())&&proto.Thread.toObject(e,n),user:(n=t.getUser())&&proto.User.toObject(e,n),extra:Vn.Message.getFieldWithDefault(t,9,"")};return e&&(r.$jspbMessageInstance=t),r});proto.Message.deserializeBinary=function(e){var t=new Vn.BinaryReader(e),n=new proto.Message;return proto.Message.deserializeBinaryFromReader(n,t)};proto.Message.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){var n=t.getFieldNumber();switch(n){case 1:var r=t.readString();e.setUid(r);break;case 2:var r=t.readString();e.setType(r);break;case 3:var r=t.readString();e.setContent(r);break;case 4:var r=t.readString();e.setStatus(r);break;case 5:var r=t.readString();e.setCreatedat(r);break;case 6:var r=t.readString();e.setClient(r);break;case 7:var r=new proto.Thread;t.readMessage(r,proto.Thread.deserializeBinaryFromReader),e.setThread(r);break;case 8:var r=new proto.User;t.readMessage(r,proto.User.deserializeBinaryFromReader),e.setUser(r);break;case 9:var r=t.readString();e.setExtra(r);break;default:t.skipField();break}}return e};proto.Message.prototype.serializeBinary=function(){var e=new Vn.BinaryWriter;return proto.Message.serializeBinaryToWriter(this,e),e.getResultBuffer()};proto.Message.serializeBinaryToWriter=function(e,t){var n=void 0;n=e.getUid(),n.length>0&&t.writeString(1,n),n=e.getType(),n.length>0&&t.writeString(2,n),n=e.getContent(),n.length>0&&t.writeString(3,n),n=e.getStatus(),n.length>0&&t.writeString(4,n),n=e.getCreatedat(),n.length>0&&t.writeString(5,n),n=e.getClient(),n.length>0&&t.writeString(6,n),n=e.getThread(),n!=null&&t.writeMessage(7,n,proto.Thread.serializeBinaryToWriter),n=e.getUser(),n!=null&&t.writeMessage(8,n,proto.User.serializeBinaryToWriter),n=e.getExtra(),n.length>0&&t.writeString(9,n)};proto.Message.prototype.getUid=function(){return Vn.Message.getFieldWithDefault(this,1,"")};proto.Message.prototype.setUid=function(e){return Vn.Message.setProto3StringField(this,1,e)};proto.Message.prototype.getType=function(){return Vn.Message.getFieldWithDefault(this,2,"")};proto.Message.prototype.setType=function(e){return Vn.Message.setProto3StringField(this,2,e)};proto.Message.prototype.getContent=function(){return Vn.Message.getFieldWithDefault(this,3,"")};proto.Message.prototype.setContent=function(e){return Vn.Message.setProto3StringField(this,3,e)};proto.Message.prototype.getStatus=function(){return Vn.Message.getFieldWithDefault(this,4,"")};proto.Message.prototype.setStatus=function(e){return Vn.Message.setProto3StringField(this,4,e)};proto.Message.prototype.getCreatedat=function(){return Vn.Message.getFieldWithDefault(this,5,"")};proto.Message.prototype.setCreatedat=function(e){return Vn.Message.setProto3StringField(this,5,e)};proto.Message.prototype.getClient=function(){return Vn.Message.getFieldWithDefault(this,6,"")};proto.Message.prototype.setClient=function(e){return Vn.Message.setProto3StringField(this,6,e)};proto.Message.prototype.getThread=function(){return Vn.Message.getWrapperField(this,proto.Thread,7)};proto.Message.prototype.setThread=function(e){return Vn.Message.setWrapperField(this,7,e)};proto.Message.prototype.clearThread=function(){return this.setThread(void 0)};proto.Message.prototype.hasThread=function(){return Vn.Message.getField(this,7)!=null};proto.Message.prototype.getUser=function(){return Vn.Message.getWrapperField(this,proto.User,8)};proto.Message.prototype.setUser=function(e){return Vn.Message.setWrapperField(this,8,e)};proto.Message.prototype.clearUser=function(){return this.setUser(void 0)};proto.Message.prototype.hasUser=function(){return Vn.Message.getField(this,8)!=null};proto.Message.prototype.getExtra=function(){return Vn.Message.getFieldWithDefault(this,9,"")};proto.Message.prototype.setExtra=function(e){return Vn.Message.setProto3StringField(this,9,e)};const Jpe=proto,ERe="modulepreload",TRe=function(e){return"/notebase/"+e},UQ={},$z=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),s=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));i=Promise.allSettled(n.map(l=>{if(l=TRe(l),l in UQ)return;UQ[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":ERe,c||(d.as="script"),d.crossOrigin="",d.href=l,s&&d.setAttribute("nonce",s),document.head.appendChild(d),c)return new Promise((h,p)=>{d.addEventListener("load",h),d.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${l}`)))})}))}function o(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return i.then(a=>{for(const s of a||[])s.status==="rejected"&&o(s.reason);return t().catch(o)})};//! moment.js
|
||
//! version : 2.30.1
|
||
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
||
//! license : MIT
|
||
//! momentjs.com
|
||
var eme;function Kn(){return eme.apply(null,arguments)}function kRe(e){eme=e}function Ad(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function K1(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function Pi(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Rz(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(Pi(e,t))return!1;return!0}function Il(e){return e===void 0}function up(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function lE(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function tme(e,t){var n=[],r,i=e.length;for(r=0;r<i;++r)n.push(t(e[r],r));return n}function Mm(e,t){for(var n in t)Pi(t,n)&&(e[n]=t[n]);return Pi(t,"toString")&&(e.toString=t.toString),Pi(t,"valueOf")&&(e.valueOf=t.valueOf),e}function Qf(e,t,n,r){return _me(e,t,n,r,!0).utc()}function ORe(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function Qr(e){return e._pf==null&&(e._pf=ORe()),e._pf}var jL;Array.prototype.some?jL=Array.prototype.some:jL=function(e){var t=Object(this),n=t.length>>>0,r;for(r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function Az(e){var t=null,n=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=Qr(e),n=jL.call(t.parsedDateParts,function(i){return i!=null}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r;return e._isValid}function B6(e){var t=Qf(NaN);return e!=null?Mm(Qr(t),e):Qr(t).userInvalidated=!0,t}var WQ=Kn.momentProperties=[],V$=!1;function Nz(e,t){var n,r,i,o=WQ.length;if(Il(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),Il(t._i)||(e._i=t._i),Il(t._f)||(e._f=t._f),Il(t._l)||(e._l=t._l),Il(t._strict)||(e._strict=t._strict),Il(t._tzm)||(e._tzm=t._tzm),Il(t._isUTC)||(e._isUTC=t._isUTC),Il(t._offset)||(e._offset=t._offset),Il(t._pf)||(e._pf=Qr(t)),Il(t._locale)||(e._locale=t._locale),o>0)for(n=0;n<o;n++)r=WQ[n],i=t[r],Il(i)||(e[r]=i);return e}function cE(e){Nz(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),V$===!1&&(V$=!0,Kn.updateOffset(this),V$=!1)}function Nd(e){return e instanceof cE||e!=null&&e._isAMomentObject!=null}function nme(e){Kn.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function Ru(e,t){var n=!0;return Mm(function(){if(Kn.deprecationHandler!=null&&Kn.deprecationHandler(null,e),n){var r=[],i,o,a,s=arguments.length;for(o=0;o<s;o++){if(i="",typeof arguments[o]=="object"){i+=`
|
||
[`+o+"] ";for(a in arguments[0])Pi(arguments[0],a)&&(i+=a+": "+arguments[0][a]+", ");i=i.slice(0,-2)}else i=arguments[o];r.push(i)}nme(e+`
|
||
Arguments: `+Array.prototype.slice.call(r).join("")+`
|
||
`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var VQ={};function rme(e,t){Kn.deprecationHandler!=null&&Kn.deprecationHandler(e,t),VQ[e]||(nme(t),VQ[e]=!0)}Kn.suppressDeprecationWarnings=!1;Kn.deprecationHandler=null;function Zf(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function PRe(e){var t,n;for(n in e)Pi(e,n)&&(t=e[n],Zf(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function BL(e,t){var n=Mm({},e),r;for(r in t)Pi(t,r)&&(K1(e[r])&&K1(t[r])?(n[r]={},Mm(n[r],e[r]),Mm(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)Pi(e,r)&&!Pi(t,r)&&K1(e[r])&&(n[r]=Mm({},n[r]));return n}function Dz(e){e!=null&&this.set(e)}var HL;Object.keys?HL=Object.keys:HL=function(e){var t,n=[];for(t in e)Pi(e,t)&&n.push(t);return n};var MRe={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function IRe(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return Zf(r)?r.call(t,n):r}function Vf(e,t,n){var r=""+Math.abs(e),i=t-r.length,o=e>=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var Lz=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,PT=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,K$={},ib={};function wr(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(ib[e]=i),t&&(ib[t[0]]=function(){return Vf(i.apply(this,arguments),t[1],t[2])}),n&&(ib[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function $Re(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function RRe(e){var t=e.match(Lz),n,r;for(n=0,r=t.length;n<r;n++)ib[t[n]]?t[n]=ib[t[n]]:t[n]=$Re(t[n]);return function(i){var o="",a;for(a=0;a<r;a++)o+=Zf(t[a])?t[a].call(i,e):t[a];return o}}function b8(e,t){return e.isValid()?(t=ime(t,e.localeData()),K$[t]=K$[t]||RRe(t),K$[t](e)):e.localeData().invalidDate()}function ime(e,t){var n=5;function r(i){return t.longDateFormat(i)||i}for(PT.lastIndex=0;n>=0&&PT.test(e);)e=e.replace(PT,r),PT.lastIndex=0,n-=1;return e}var ARe={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function NRe(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(Lz).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var DRe="Invalid date";function LRe(){return this._invalidDate}var FRe="%d",jRe=/\d{1,2}/;function BRe(e){return this._ordinal.replace("%d",e)}var HRe={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function zRe(e,t,n,r){var i=this._relativeTime[n];return Zf(i)?i(e,t,n,r):i.replace(/%d/i,e)}function URe(e,t){var n=this._relativeTime[e>0?"future":"past"];return Zf(n)?n(t):n.replace(/%s/i,t)}var KQ={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Au(e){return typeof e=="string"?KQ[e]||KQ[e.toLowerCase()]:void 0}function Fz(e){var t={},n,r;for(r in e)Pi(e,r)&&(n=Au(r),n&&(t[n]=e[r]));return t}var WRe={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function VRe(e){var t=[],n;for(n in e)Pi(e,n)&&t.push({unit:n,priority:WRe[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var ome=/\d/,Wc=/\d\d/,ame=/\d{3}/,jz=/\d{4}/,H6=/[+-]?\d{6}/,xo=/\d\d?/,sme=/\d\d\d\d?/,lme=/\d\d\d\d\d\d?/,z6=/\d{1,3}/,Bz=/\d{1,4}/,U6=/[+-]?\d{1,6}/,FS=/\d+/,W6=/[+-]?\d+/,KRe=/Z|[+-]\d\d:?\d\d/gi,V6=/Z|[+-]\d\d(?::?\d\d)?/gi,qRe=/[+-]?\d+(\.\d{1,3})?/,uE=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,jS=/^[1-9]\d?/,Hz=/^([1-9]\d|\d)/,t9;t9={};function rr(e,t,n){t9[e]=Zf(t)?t:function(r,i){return r&&n?n:t}}function GRe(e,t){return Pi(t9,e)?t9[e](t._strict,t._locale):new RegExp(YRe(e))}function YRe(e){return Zh(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,o){return n||r||i||o}))}function Zh(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function du(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ui(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=du(t)),n}var zL={};function Zi(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),up(t)&&(r=function(o,a){a[t]=ui(o)}),i=e.length,n=0;n<i;n++)zL[e[n]]=r}function dE(e,t){Zi(e,function(n,r,i,o){i._w=i._w||{},t(n,i._w,i,o)})}function XRe(e,t,n){t!=null&&Pi(zL,e)&&zL[e](t,n._a,n,e)}function K6(e){return e%4===0&&e%100!==0||e%400===0}var zs=0,Gh=1,Of=2,za=3,yd=4,Yh=5,_1=6,QRe=7,ZRe=8;wr("Y",0,0,function(){var e=this.year();return e<=9999?Vf(e,4):"+"+e});wr(0,["YY",2],0,function(){return this.year()%100});wr(0,["YYYY",4],0,"year");wr(0,["YYYYY",5],0,"year");wr(0,["YYYYYY",6,!0],0,"year");rr("Y",W6);rr("YY",xo,Wc);rr("YYYY",Bz,jz);rr("YYYYY",U6,H6);rr("YYYYYY",U6,H6);Zi(["YYYYY","YYYYYY"],zs);Zi("YYYY",function(e,t){t[zs]=e.length===2?Kn.parseTwoDigitYear(e):ui(e)});Zi("YY",function(e,t){t[zs]=Kn.parseTwoDigitYear(e)});Zi("Y",function(e,t){t[zs]=parseInt(e,10)});function K2(e){return K6(e)?366:365}Kn.parseTwoDigitYear=function(e){return ui(e)+(ui(e)>68?1900:2e3)};var cme=BS("FullYear",!0);function JRe(){return K6(this.year())}function BS(e,t){return function(n){return n!=null?(ume(this,e,n),Kn.updateOffset(this,t),this):Xw(this,e)}}function Xw(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function ume(e,t,n){var r,i,o,a,s;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}o=n,a=e.month(),s=e.date(),s=s===29&&a===1&&!K6(o)?28:s,i?r.setUTCFullYear(o,a,s):r.setFullYear(o,a,s)}}function eAe(e){return e=Au(e),Zf(this[e])?this[e]():this}function tAe(e,t){if(typeof e=="object"){e=Fz(e);var n=VRe(e),r,i=n.length;for(r=0;r<i;r++)this[n[r].unit](e[n[r].unit])}else if(e=Au(e),Zf(this[e]))return this[e](t);return this}function nAe(e,t){return(e%t+t)%t}var la;Array.prototype.indexOf?la=Array.prototype.indexOf:la=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function zz(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=nAe(t,12);return e+=(t-n)/12,n===1?K6(e)?29:28:31-n%7%2}wr("M",["MM",2],"Mo",function(){return this.month()+1});wr("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});wr("MMMM",0,0,function(e){return this.localeData().months(this,e)});rr("M",xo,jS);rr("MM",xo,Wc);rr("MMM",function(e,t){return t.monthsShortRegex(e)});rr("MMMM",function(e,t){return t.monthsRegex(e)});Zi(["M","MM"],function(e,t){t[Gh]=ui(e)-1});Zi(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);i!=null?t[Gh]=i:Qr(n).invalidMonth=e});var rAe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),dme="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),fme=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,iAe=uE,oAe=uE;function aAe(e,t){return e?Ad(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||fme).test(t)?"format":"standalone"][e.month()]:Ad(this._months)?this._months:this._months.standalone}function sAe(e,t){return e?Ad(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[fme.test(t)?"format":"standalone"][e.month()]:Ad(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function lAe(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=Qf([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?t==="MMM"?(i=la.call(this._shortMonthsParse,a),i!==-1?i:null):(i=la.call(this._longMonthsParse,a),i!==-1?i:null):t==="MMM"?(i=la.call(this._shortMonthsParse,a),i!==-1?i:(i=la.call(this._longMonthsParse,a),i!==-1?i:null)):(i=la.call(this._longMonthsParse,a),i!==-1?i:(i=la.call(this._shortMonthsParse,a),i!==-1?i:null))}function cAe(e,t,n){var r,i,o;if(this._monthsParseExact)return lAe.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=Qf([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(n&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function hme(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=ui(t);else if(t=e.localeData().monthsParse(t),!up(t))return e}var n=t,r=e.date();return r=r<29?r:Math.min(r,zz(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function pme(e){return e!=null?(hme(this,e),Kn.updateOffset(this,!0),this):Xw(this,"Month")}function uAe(){return zz(this.year(),this.month())}function dAe(e){return this._monthsParseExact?(Pi(this,"_monthsRegex")||mme.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(Pi(this,"_monthsShortRegex")||(this._monthsShortRegex=iAe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function fAe(e){return this._monthsParseExact?(Pi(this,"_monthsRegex")||mme.call(this),e?this._monthsStrictRegex:this._monthsRegex):(Pi(this,"_monthsRegex")||(this._monthsRegex=oAe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function mme(){function e(l,c){return c.length-l.length}var t=[],n=[],r=[],i,o,a,s;for(i=0;i<12;i++)o=Qf([2e3,i]),a=Zh(this.monthsShort(o,"")),s=Zh(this.months(o,"")),t.push(a),n.push(s),r.push(s),r.push(a);t.sort(e),n.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function hAe(e,t,n,r,i,o,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,o,a),s}function Qw(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function n9(e,t,n){var r=7+t-n,i=(7+Qw(e,0,r).getUTCDay()-t)%7;return-i+r-1}function gme(e,t,n,r,i){var o=(7+n-r)%7,a=n9(e,r,i),s=1+7*(t-1)+o+a,l,c;return s<=0?(l=e-1,c=K2(l)+s):s>K2(e)?(l=e+1,c=s-K2(e)):(l=e,c=s),{year:l,dayOfYear:c}}function Zw(e,t,n){var r=n9(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,o,a;return i<1?(a=e.year()-1,o=i+Jh(a,t,n)):i>Jh(e.year(),t,n)?(o=i-Jh(e.year(),t,n),a=e.year()+1):(a=e.year(),o=i),{week:o,year:a}}function Jh(e,t,n){var r=n9(e,t,n),i=n9(e+1,t,n);return(K2(e)-r+i)/7}wr("w",["ww",2],"wo","week");wr("W",["WW",2],"Wo","isoWeek");rr("w",xo,jS);rr("ww",xo,Wc);rr("W",xo,jS);rr("WW",xo,Wc);dE(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=ui(e)});function pAe(e){return Zw(e,this._week.dow,this._week.doy).week}var mAe={dow:0,doy:6};function gAe(){return this._week.dow}function vAe(){return this._week.doy}function yAe(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function bAe(e){var t=Zw(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}wr("d",0,"do","day");wr("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});wr("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});wr("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});wr("e",0,0,"weekday");wr("E",0,0,"isoWeekday");rr("d",xo);rr("e",xo);rr("E",xo);rr("dd",function(e,t){return t.weekdaysMinRegex(e)});rr("ddd",function(e,t){return t.weekdaysShortRegex(e)});rr("dddd",function(e,t){return t.weekdaysRegex(e)});dE(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:Qr(n).invalidWeekday=e});dE(["d","e","E"],function(e,t,n,r){t[r]=ui(e)});function SAe(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function CAe(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Uz(e,t){return e.slice(t,7).concat(e.slice(0,t))}var xAe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),vme="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),wAe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),_Ae=uE,EAe=uE,TAe=uE;function kAe(e,t){var n=Ad(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Uz(n,this._week.dow):e?n[e.day()]:n}function OAe(e){return e===!0?Uz(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function PAe(e){return e===!0?Uz(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function MAe(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=Qf([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?t==="dddd"?(i=la.call(this._weekdaysParse,a),i!==-1?i:null):t==="ddd"?(i=la.call(this._shortWeekdaysParse,a),i!==-1?i:null):(i=la.call(this._minWeekdaysParse,a),i!==-1?i:null):t==="dddd"?(i=la.call(this._weekdaysParse,a),i!==-1||(i=la.call(this._shortWeekdaysParse,a),i!==-1)?i:(i=la.call(this._minWeekdaysParse,a),i!==-1?i:null)):t==="ddd"?(i=la.call(this._shortWeekdaysParse,a),i!==-1||(i=la.call(this._weekdaysParse,a),i!==-1)?i:(i=la.call(this._minWeekdaysParse,a),i!==-1?i:null)):(i=la.call(this._minWeekdaysParse,a),i!==-1||(i=la.call(this._weekdaysParse,a),i!==-1)?i:(i=la.call(this._shortWeekdaysParse,a),i!==-1?i:null))}function IAe(e,t,n){var r,i,o;if(this._weekdaysParseExact)return MAe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=Qf([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function $Ae(e){if(!this.isValid())return e!=null?this:NaN;var t=Xw(this,"Day");return e!=null?(e=SAe(e,this.localeData()),this.add(e-t,"d")):t}function RAe(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function AAe(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=CAe(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function NAe(e){return this._weekdaysParseExact?(Pi(this,"_weekdaysRegex")||Wz.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Pi(this,"_weekdaysRegex")||(this._weekdaysRegex=_Ae),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function DAe(e){return this._weekdaysParseExact?(Pi(this,"_weekdaysRegex")||Wz.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Pi(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=EAe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function LAe(e){return this._weekdaysParseExact?(Pi(this,"_weekdaysRegex")||Wz.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Pi(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=TAe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Wz(){function e(u,d){return d.length-u.length}var t=[],n=[],r=[],i=[],o,a,s,l,c;for(o=0;o<7;o++)a=Qf([2e3,1]).day(o),s=Zh(this.weekdaysMin(a,"")),l=Zh(this.weekdaysShort(a,"")),c=Zh(this.weekdays(a,"")),t.push(s),n.push(l),r.push(c),i.push(s),i.push(l),i.push(c);t.sort(e),n.sort(e),r.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Vz(){return this.hours()%12||12}function FAe(){return this.hours()||24}wr("H",["HH",2],0,"hour");wr("h",["hh",2],0,Vz);wr("k",["kk",2],0,FAe);wr("hmm",0,0,function(){return""+Vz.apply(this)+Vf(this.minutes(),2)});wr("hmmss",0,0,function(){return""+Vz.apply(this)+Vf(this.minutes(),2)+Vf(this.seconds(),2)});wr("Hmm",0,0,function(){return""+this.hours()+Vf(this.minutes(),2)});wr("Hmmss",0,0,function(){return""+this.hours()+Vf(this.minutes(),2)+Vf(this.seconds(),2)});function yme(e,t){wr(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}yme("a",!0);yme("A",!1);function bme(e,t){return t._meridiemParse}rr("a",bme);rr("A",bme);rr("H",xo,Hz);rr("h",xo,jS);rr("k",xo,jS);rr("HH",xo,Wc);rr("hh",xo,Wc);rr("kk",xo,Wc);rr("hmm",sme);rr("hmmss",lme);rr("Hmm",sme);rr("Hmmss",lme);Zi(["H","HH"],za);Zi(["k","kk"],function(e,t,n){var r=ui(e);t[za]=r===24?0:r});Zi(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});Zi(["h","hh"],function(e,t,n){t[za]=ui(e),Qr(n).bigHour=!0});Zi("hmm",function(e,t,n){var r=e.length-2;t[za]=ui(e.substr(0,r)),t[yd]=ui(e.substr(r)),Qr(n).bigHour=!0});Zi("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[za]=ui(e.substr(0,r)),t[yd]=ui(e.substr(r,2)),t[Yh]=ui(e.substr(i)),Qr(n).bigHour=!0});Zi("Hmm",function(e,t,n){var r=e.length-2;t[za]=ui(e.substr(0,r)),t[yd]=ui(e.substr(r))});Zi("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[za]=ui(e.substr(0,r)),t[yd]=ui(e.substr(r,2)),t[Yh]=ui(e.substr(i))});function jAe(e){return(e+"").toLowerCase().charAt(0)==="p"}var BAe=/[ap]\.?m?\.?/i,HAe=BS("Hours",!0);function zAe(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var Sme={calendar:MRe,longDateFormat:ARe,invalidDate:DRe,ordinal:FRe,dayOfMonthOrdinalParse:jRe,relativeTime:HRe,months:rAe,monthsShort:dme,week:mAe,weekdays:xAe,weekdaysMin:wAe,weekdaysShort:vme,meridiemParse:BAe},To={},Px={},Jw;function UAe(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function qQ(e){return e&&e.toLowerCase().replace("_","-")}function WAe(e){for(var t=0,n,r,i,o;t<e.length;){for(o=qQ(e[t]).split("-"),n=o.length,r=qQ(e[t+1]),r=r?r.split("-"):null;n>0;){if(i=q6(o.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&UAe(o,r)>=n-1)break;n--}t++}return Jw}function VAe(e){return!!(e&&e.match("^[^/\\\\]*$"))}function q6(e){var t=null,n;if(To[e]===void 0&&typeof module<"u"&&module&&module.exports&&VAe(e))try{t=Jw._abbr,n=require,n("./locale/"+e),qm(t)}catch{To[e]=null}return To[e]}function qm(e,t){var n;return e&&(Il(t)?n=_p(e):n=Kz(e,t),n?Jw=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Jw._abbr}function Kz(e,t){if(t!==null){var n,r=Sme;if(t.abbr=e,To[e]!=null)rme("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=To[e]._config;else if(t.parentLocale!=null)if(To[t.parentLocale]!=null)r=To[t.parentLocale]._config;else if(n=q6(t.parentLocale),n!=null)r=n._config;else return Px[t.parentLocale]||(Px[t.parentLocale]=[]),Px[t.parentLocale].push({name:e,config:t}),null;return To[e]=new Dz(BL(r,t)),Px[e]&&Px[e].forEach(function(i){Kz(i.name,i.config)}),qm(e),To[e]}else return delete To[e],null}function KAe(e,t){if(t!=null){var n,r,i=Sme;To[e]!=null&&To[e].parentLocale!=null?To[e].set(BL(To[e]._config,t)):(r=q6(e),r!=null&&(i=r._config),t=BL(i,t),r==null&&(t.abbr=e),n=new Dz(t),n.parentLocale=To[e],To[e]=n),qm(e)}else To[e]!=null&&(To[e].parentLocale!=null?(To[e]=To[e].parentLocale,e===qm()&&qm(e)):To[e]!=null&&delete To[e]);return To[e]}function _p(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Jw;if(!Ad(e)){if(t=q6(e),t)return t;e=[e]}return WAe(e)}function qAe(){return HL(To)}function qz(e){var t,n=e._a;return n&&Qr(e).overflow===-2&&(t=n[Gh]<0||n[Gh]>11?Gh:n[Of]<1||n[Of]>zz(n[zs],n[Gh])?Of:n[za]<0||n[za]>24||n[za]===24&&(n[yd]!==0||n[Yh]!==0||n[_1]!==0)?za:n[yd]<0||n[yd]>59?yd:n[Yh]<0||n[Yh]>59?Yh:n[_1]<0||n[_1]>999?_1:-1,Qr(e)._overflowDayOfYear&&(t<zs||t>Of)&&(t=Of),Qr(e)._overflowWeeks&&t===-1&&(t=QRe),Qr(e)._overflowWeekday&&t===-1&&(t=ZRe),Qr(e).overflow=t),e}var GAe=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,YAe=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,XAe=/Z|[+-]\d\d(?::?\d\d)?/,MT=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],q$=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],QAe=/^\/?Date\((-?\d+)/i,ZAe=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,JAe={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Cme(e){var t,n,r=e._i,i=GAe.exec(r)||YAe.exec(r),o,a,s,l,c=MT.length,u=q$.length;if(i){for(Qr(e).iso=!0,t=0,n=c;t<n;t++)if(MT[t][1].exec(i[1])){a=MT[t][0],o=MT[t][2]!==!1;break}if(a==null){e._isValid=!1;return}if(i[3]){for(t=0,n=u;t<n;t++)if(q$[t][1].exec(i[3])){s=(i[2]||" ")+q$[t][0];break}if(s==null){e._isValid=!1;return}}if(!o&&s!=null){e._isValid=!1;return}if(i[4])if(XAe.exec(i[4]))l="Z";else{e._isValid=!1;return}e._f=a+(s||"")+(l||""),Yz(e)}else e._isValid=!1}function eNe(e,t,n,r,i,o){var a=[tNe(e),dme.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&a.push(parseInt(o,10)),a}function tNe(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function nNe(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function rNe(e,t,n){if(e){var r=vme.indexOf(e),i=new Date(t[0],t[1],t[2]).getDay();if(r!==i)return Qr(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function iNe(e,t,n){if(e)return JAe[e];if(t)return 0;var r=parseInt(n,10),i=r%100,o=(r-i)/100;return o*60+i}function xme(e){var t=ZAe.exec(nNe(e._i)),n;if(t){if(n=eNe(t[4],t[3],t[2],t[5],t[6],t[7]),!rNe(t[1],n,e))return;e._a=n,e._tzm=iNe(t[8],t[9],t[10]),e._d=Qw.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),Qr(e).rfc2822=!0}else e._isValid=!1}function oNe(e){var t=QAe.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Cme(e),e._isValid===!1)delete e._isValid;else return;if(xme(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:Kn.createFromInputFallback(e)}Kn.createFromInputFallback=Ru("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function yy(e,t,n){return e??t??n}function aNe(e){var t=new Date(Kn.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Gz(e){var t,n,r=[],i,o,a;if(!e._d){for(i=aNe(e),e._w&&e._a[Of]==null&&e._a[Gh]==null&&sNe(e),e._dayOfYear!=null&&(a=yy(e._a[zs],i[zs]),(e._dayOfYear>K2(a)||e._dayOfYear===0)&&(Qr(e)._overflowDayOfYear=!0),n=Qw(a,0,e._dayOfYear),e._a[Gh]=n.getUTCMonth(),e._a[Of]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[za]===24&&e._a[yd]===0&&e._a[Yh]===0&&e._a[_1]===0&&(e._nextDay=!0,e._a[za]=0),e._d=(e._useUTC?Qw:hAe).apply(null,r),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[za]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==o&&(Qr(e).weekdayMismatch=!0)}}function sNe(e){var t,n,r,i,o,a,s,l,c;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(o=1,a=4,n=yy(t.GG,e._a[zs],Zw(So(),1,4).year),r=yy(t.W,1),i=yy(t.E,1),(i<1||i>7)&&(l=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,c=Zw(So(),o,a),n=yy(t.gg,e._a[zs],c.year),r=yy(t.w,c.week),t.d!=null?(i=t.d,(i<0||i>6)&&(l=!0)):t.e!=null?(i=t.e+o,(t.e<0||t.e>6)&&(l=!0)):i=o),r<1||r>Jh(n,o,a)?Qr(e)._overflowWeeks=!0:l!=null?Qr(e)._overflowWeekday=!0:(s=gme(n,r,i,o,a),e._a[zs]=s.year,e._dayOfYear=s.dayOfYear)}Kn.ISO_8601=function(){};Kn.RFC_2822=function(){};function Yz(e){if(e._f===Kn.ISO_8601){Cme(e);return}if(e._f===Kn.RFC_2822){xme(e);return}e._a=[],Qr(e).empty=!0;var t=""+e._i,n,r,i,o,a,s=t.length,l=0,c,u;for(i=ime(e._f,e._locale).match(Lz)||[],u=i.length,n=0;n<u;n++)o=i[n],r=(t.match(GRe(o,e))||[])[0],r&&(a=t.substr(0,t.indexOf(r)),a.length>0&&Qr(e).unusedInput.push(a),t=t.slice(t.indexOf(r)+r.length),l+=r.length),ib[o]?(r?Qr(e).empty=!1:Qr(e).unusedTokens.push(o),XRe(o,r,e)):e._strict&&!r&&Qr(e).unusedTokens.push(o);Qr(e).charsLeftOver=s-l,t.length>0&&Qr(e).unusedInput.push(t),e._a[za]<=12&&Qr(e).bigHour===!0&&e._a[za]>0&&(Qr(e).bigHour=void 0),Qr(e).parsedDateParts=e._a.slice(0),Qr(e).meridiem=e._meridiem,e._a[za]=lNe(e._locale,e._a[za],e._meridiem),c=Qr(e).era,c!==null&&(e._a[zs]=e._locale.erasConvertYear(c,e._a[zs])),Gz(e),qz(e)}function lNe(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function cNe(e){var t,n,r,i,o,a,s=!1,l=e._f.length;if(l===0){Qr(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;i<l;i++)o=0,a=!1,t=Nz({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[i],Yz(t),Az(t)&&(a=!0),o+=Qr(t).charsLeftOver,o+=Qr(t).unusedTokens.length*10,Qr(t).score=o,s?o<r&&(r=o,n=t):(r==null||o<r||a)&&(r=o,n=t,a&&(s=!0));Mm(e,n||t)}function uNe(e){if(!e._d){var t=Fz(e._i),n=t.day===void 0?t.date:t.day;e._a=tme([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),Gz(e)}}function dNe(e){var t=new cE(qz(wme(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function wme(e){var t=e._i,n=e._f;return e._locale=e._locale||_p(e._l),t===null||n===void 0&&t===""?B6({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),Nd(t)?new cE(qz(t)):(lE(t)?e._d=t:Ad(n)?cNe(e):n?Yz(e):fNe(e),Az(e)||(e._d=null),e))}function fNe(e){var t=e._i;Il(t)?e._d=new Date(Kn.now()):lE(t)?e._d=new Date(t.valueOf()):typeof t=="string"?oNe(e):Ad(t)?(e._a=tme(t.slice(0),function(n){return parseInt(n,10)}),Gz(e)):K1(t)?uNe(e):up(t)?e._d=new Date(t):Kn.createFromInputFallback(e)}function _me(e,t,n,r,i){var o={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(K1(e)&&Rz(e)||Ad(e)&&e.length===0)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=i,o._l=n,o._i=e,o._f=t,o._strict=r,dNe(o)}function So(e,t,n,r){return _me(e,t,n,r,!1)}var hNe=Ru("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=So.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:B6()}),pNe=Ru("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=So.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:B6()});function Eme(e,t){var n,r;if(t.length===1&&Ad(t[0])&&(t=t[0]),!t.length)return So();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function mNe(){var e=[].slice.call(arguments,0);return Eme("isBefore",e)}function gNe(){var e=[].slice.call(arguments,0);return Eme("isAfter",e)}var vNe=function(){return Date.now?Date.now():+new Date},Mx=["year","quarter","month","week","day","hour","minute","second","millisecond"];function yNe(e){var t,n=!1,r,i=Mx.length;for(t in e)if(Pi(e,t)&&!(la.call(Mx,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<i;++r)if(e[Mx[r]]){if(n)return!1;parseFloat(e[Mx[r]])!==ui(e[Mx[r]])&&(n=!0)}return!0}function bNe(){return this._isValid}function SNe(){return Yd(NaN)}function G6(e){var t=Fz(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,a=t.day||0,s=t.hour||0,l=t.minute||0,c=t.second||0,u=t.millisecond||0;this._isValid=yNe(t),this._milliseconds=+u+c*1e3+l*6e4+s*1e3*60*60,this._days=+a+o*7,this._months=+i+r*3+n*12,this._data={},this._locale=_p(),this._bubble()}function S8(e){return e instanceof G6}function UL(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function CNe(e,t,n){var r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),o=0,a;for(a=0;a<r;a++)ui(e[a])!==ui(t[a])&&o++;return o+i}function Tme(e,t){wr(e,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+Vf(~~(n/60),2)+t+Vf(~~n%60,2)})}Tme("Z",":");Tme("ZZ","");rr("Z",V6);rr("ZZ",V6);Zi(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Xz(V6,e)});var xNe=/([\+\-]|\d\d)/gi;function Xz(e,t){var n=(t||"").match(e),r,i,o;return n===null?null:(r=n[n.length-1]||[],i=(r+"").match(xNe)||["-",0,0],o=+(i[1]*60)+ui(i[2]),o===0?0:i[0]==="+"?o:-o)}function Qz(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(Nd(e)||lE(e)?e.valueOf():So(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),Kn.updateOffset(n,!1),n):So(e).local()}function WL(e){return-Math.round(e._d.getTimezoneOffset())}Kn.updateOffset=function(){};function wNe(e,t,n){var r=this._offset||0,i;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Xz(V6,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(i=WL(this)),this._offset=e,this._isUTC=!0,i!=null&&this.add(i,"m"),r!==e&&(!t||this._changeInProgress?Pme(this,Yd(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,Kn.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:WL(this)}function _Ne(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function ENe(e){return this.utcOffset(0,e)}function TNe(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(WL(this),"m")),this}function kNe(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Xz(KRe,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function ONe(e){return this.isValid()?(e=e?So(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function PNe(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function MNe(){if(!Il(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Nz(e,this),e=wme(e),e._a?(t=e._isUTC?Qf(e._a):So(e._a),this._isDSTShifted=this.isValid()&&CNe(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function INe(){return this.isValid()?!this._isUTC:!1}function $Ne(){return this.isValid()?this._isUTC:!1}function kme(){return this.isValid()?this._isUTC&&this._offset===0:!1}var RNe=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,ANe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Yd(e,t){var n=e,r=null,i,o,a;return S8(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:up(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=RNe.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:ui(r[Of])*i,h:ui(r[za])*i,m:ui(r[yd])*i,s:ui(r[Yh])*i,ms:ui(UL(r[_1]*1e3))*i}):(r=ANe.exec(e))?(i=r[1]==="-"?-1:1,n={y:Kg(r[2],i),M:Kg(r[3],i),w:Kg(r[4],i),d:Kg(r[5],i),h:Kg(r[6],i),m:Kg(r[7],i),s:Kg(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=NNe(So(n.from),So(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),o=new G6(n),S8(e)&&Pi(e,"_locale")&&(o._locale=e._locale),S8(e)&&Pi(e,"_isValid")&&(o._isValid=e._isValid),o}Yd.fn=G6.prototype;Yd.invalid=SNe;function Kg(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function GQ(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function NNe(e,t){var n;return e.isValid()&&t.isValid()?(t=Qz(t,e),e.isBefore(t)?n=GQ(e,t):(n=GQ(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Ome(e,t){return function(n,r){var i,o;return r!==null&&!isNaN(+r)&&(rme(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),i=Yd(n,r),Pme(this,i,e),this}}function Pme(e,t,n,r){var i=t._milliseconds,o=UL(t._days),a=UL(t._months);e.isValid()&&(r=r??!0,a&&hme(e,Xw(e,"Month")+a*n),o&&ume(e,"Date",Xw(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&Kn.updateOffset(e,o||a))}var DNe=Ome(1,"add"),LNe=Ome(-1,"subtract");function Mme(e){return typeof e=="string"||e instanceof String}function FNe(e){return Nd(e)||lE(e)||Mme(e)||up(e)||BNe(e)||jNe(e)||e===null||e===void 0}function jNe(e){var t=K1(e)&&!Rz(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,o,a=r.length;for(i=0;i<a;i+=1)o=r[i],n=n||Pi(e,o);return t&&n}function BNe(e){var t=Ad(e),n=!1;return t&&(n=e.filter(function(r){return!up(r)&&Mme(e)}).length===0),t&&n}function HNe(e){var t=K1(e)&&!Rz(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i,o;for(i=0;i<r.length;i+=1)o=r[i],n=n||Pi(e,o);return t&&n}function zNe(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function UNe(e,t){arguments.length===1&&(arguments[0]?FNe(arguments[0])?(e=arguments[0],t=void 0):HNe(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||So(),r=Qz(n,this).startOf("day"),i=Kn.calendarFormat(this,r)||"sameElse",o=t&&(Zf(t[i])?t[i].call(this,n):t[i]);return this.format(o||this.localeData().calendar(i,this,So(n)))}function WNe(){return new cE(this)}function VNe(e,t){var n=Nd(e)?e:So(e);return this.isValid()&&n.isValid()?(t=Au(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function KNe(e,t){var n=Nd(e)?e:So(e);return this.isValid()&&n.isValid()?(t=Au(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function qNe(e,t,n,r){var i=Nd(e)?e:So(e),o=Nd(t)?t:So(t);return this.isValid()&&i.isValid()&&o.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(i,n):!this.isBefore(i,n))&&(r[1]===")"?this.isBefore(o,n):!this.isAfter(o,n))):!1}function GNe(e,t){var n=Nd(e)?e:So(e),r;return this.isValid()&&n.isValid()?(t=Au(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function YNe(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function XNe(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function QNe(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(r=Qz(e,this),!r.isValid())return NaN;switch(i=(r.utcOffset()-this.utcOffset())*6e4,t=Au(t),t){case"year":o=C8(this,r)/12;break;case"month":o=C8(this,r);break;case"quarter":o=C8(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:du(o)}function C8(e,t){if(e.date()<t.date())return-C8(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months"),i,o;return t-r<0?(i=e.clone().add(n-1,"months"),o=(t-r)/(r-i)):(i=e.clone().add(n+1,"months"),o=(t-r)/(i-r)),-(n+o)||0}Kn.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";Kn.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function ZNe(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function JNe(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?b8(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Zf(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",b8(n,"Z")):b8(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function e7e(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,i,o;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",o=t+'[")]',this.format(n+r+i+o)}function t7e(e){e||(e=this.isUtc()?Kn.defaultFormatUtc:Kn.defaultFormat);var t=b8(this,e);return this.localeData().postformat(t)}function n7e(e,t){return this.isValid()&&(Nd(e)&&e.isValid()||So(e).isValid())?Yd({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function r7e(e){return this.from(So(),e)}function i7e(e,t){return this.isValid()&&(Nd(e)&&e.isValid()||So(e).isValid())?Yd({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function o7e(e){return this.to(So(),e)}function Ime(e){var t;return e===void 0?this._locale._abbr:(t=_p(e),t!=null&&(this._locale=t),this)}var $me=Ru("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Rme(){return this._locale}var r9=1e3,ob=60*r9,i9=60*ob,Ame=(365*400+97)*24*i9;function ab(e,t){return(e%t+t)%t}function Nme(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-Ame:new Date(e,t,n).valueOf()}function Dme(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-Ame:Date.UTC(e,t,n)}function a7e(e){var t,n;if(e=Au(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Dme:Nme,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ab(t+(this._isUTC?0:this.utcOffset()*ob),i9);break;case"minute":t=this._d.valueOf(),t-=ab(t,ob);break;case"second":t=this._d.valueOf(),t-=ab(t,r9);break}return this._d.setTime(t),Kn.updateOffset(this,!0),this}function s7e(e){var t,n;if(e=Au(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Dme:Nme,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=i9-ab(t+(this._isUTC?0:this.utcOffset()*ob),i9)-1;break;case"minute":t=this._d.valueOf(),t+=ob-ab(t,ob)-1;break;case"second":t=this._d.valueOf(),t+=r9-ab(t,r9)-1;break}return this._d.setTime(t),Kn.updateOffset(this,!0),this}function l7e(){return this._d.valueOf()-(this._offset||0)*6e4}function c7e(){return Math.floor(this.valueOf()/1e3)}function u7e(){return new Date(this.valueOf())}function d7e(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function f7e(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function h7e(){return this.isValid()?this.toISOString():null}function p7e(){return Az(this)}function m7e(){return Mm({},Qr(this))}function g7e(){return Qr(this).overflow}function v7e(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}wr("N",0,0,"eraAbbr");wr("NN",0,0,"eraAbbr");wr("NNN",0,0,"eraAbbr");wr("NNNN",0,0,"eraName");wr("NNNNN",0,0,"eraNarrow");wr("y",["y",1],"yo","eraYear");wr("y",["yy",2],0,"eraYear");wr("y",["yyy",3],0,"eraYear");wr("y",["yyyy",4],0,"eraYear");rr("N",Zz);rr("NN",Zz);rr("NNN",Zz);rr("NNNN",O7e);rr("NNNNN",P7e);Zi(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?Qr(n).era=i:Qr(n).invalidEra=e});rr("y",FS);rr("yy",FS);rr("yyy",FS);rr("yyyy",FS);rr("yo",M7e);Zi(["y","yy","yyy","yyyy"],zs);Zi(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[zs]=n._locale.eraYearOrdinalParse(e,i):t[zs]=parseInt(e,10)});function y7e(e,t){var n,r,i,o=this._eras||_p("en")._eras;for(n=0,r=o.length;n<r;++n){switch(typeof o[n].since){case"string":i=Kn(o[n].since).startOf("day"),o[n].since=i.valueOf();break}switch(typeof o[n].until){case"undefined":o[n].until=1/0;break;case"string":i=Kn(o[n].until).startOf("day").valueOf(),o[n].until=i.valueOf();break}}return o}function b7e(e,t,n){var r,i,o=this.eras(),a,s,l;for(e=e.toUpperCase(),r=0,i=o.length;r<i;++r)if(a=o[r].name.toUpperCase(),s=o[r].abbr.toUpperCase(),l=o[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(s===e)return o[r];break;case"NNNN":if(a===e)return o[r];break;case"NNNNN":if(l===e)return o[r];break}else if([a,s,l].indexOf(e)>=0)return o[r]}function S7e(e,t){var n=e.since<=e.until?1:-1;return t===void 0?Kn(e.since).year():Kn(e.since).year()+(t-e.offset)*n}function C7e(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].name;return""}function x7e(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].narrow;return""}function w7e(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].abbr;return""}function _7e(){var e,t,n,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=i[e].since<=i[e].until?1:-1,r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return(this.year()-Kn(i[e].since).year())*n+i[e].offset;return this.year()}function E7e(e){return Pi(this,"_erasNameRegex")||Jz.call(this),e?this._erasNameRegex:this._erasRegex}function T7e(e){return Pi(this,"_erasAbbrRegex")||Jz.call(this),e?this._erasAbbrRegex:this._erasRegex}function k7e(e){return Pi(this,"_erasNarrowRegex")||Jz.call(this),e?this._erasNarrowRegex:this._erasRegex}function Zz(e,t){return t.erasAbbrRegex(e)}function O7e(e,t){return t.erasNameRegex(e)}function P7e(e,t){return t.erasNarrowRegex(e)}function M7e(e,t){return t._eraYearOrdinalRegex||FS}function Jz(){var e=[],t=[],n=[],r=[],i,o,a,s,l,c=this.eras();for(i=0,o=c.length;i<o;++i)a=Zh(c[i].name),s=Zh(c[i].abbr),l=Zh(c[i].narrow),t.push(a),e.push(s),n.push(l),r.push(a),r.push(s),r.push(l);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}wr(0,["gg",2],0,function(){return this.weekYear()%100});wr(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Y6(e,t){wr(0,[e,e.length],0,t)}Y6("gggg","weekYear");Y6("ggggg","weekYear");Y6("GGGG","isoWeekYear");Y6("GGGGG","isoWeekYear");rr("G",W6);rr("g",W6);rr("GG",xo,Wc);rr("gg",xo,Wc);rr("GGGG",Bz,jz);rr("gggg",Bz,jz);rr("GGGGG",U6,H6);rr("ggggg",U6,H6);dE(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=ui(e)});dE(["gg","GG"],function(e,t,n,r){t[r]=Kn.parseTwoDigitYear(e)});function I7e(e){return Lme.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function $7e(e){return Lme.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function R7e(){return Jh(this.year(),1,4)}function A7e(){return Jh(this.isoWeekYear(),1,4)}function N7e(){var e=this.localeData()._week;return Jh(this.year(),e.dow,e.doy)}function D7e(){var e=this.localeData()._week;return Jh(this.weekYear(),e.dow,e.doy)}function Lme(e,t,n,r,i){var o;return e==null?Zw(this,r,i).year:(o=Jh(e,r,i),t>o&&(t=o),L7e.call(this,e,t,n,r,i))}function L7e(e,t,n,r,i){var o=gme(e,t,n,r,i),a=Qw(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}wr("Q",0,"Qo","quarter");rr("Q",ome);Zi("Q",function(e,t){t[Gh]=(ui(e)-1)*3});function F7e(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}wr("D",["DD",2],"Do","date");rr("D",xo,jS);rr("DD",xo,Wc);rr("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Zi(["D","DD"],Of);Zi("Do",function(e,t){t[Of]=ui(e.match(xo)[0])});var Fme=BS("Date",!0);wr("DDD",["DDDD",3],"DDDo","dayOfYear");rr("DDD",z6);rr("DDDD",ame);Zi(["DDD","DDDD"],function(e,t,n){n._dayOfYear=ui(e)});function j7e(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}wr("m",["mm",2],0,"minute");rr("m",xo,Hz);rr("mm",xo,Wc);Zi(["m","mm"],yd);var B7e=BS("Minutes",!1);wr("s",["ss",2],0,"second");rr("s",xo,Hz);rr("ss",xo,Wc);Zi(["s","ss"],Yh);var H7e=BS("Seconds",!1);wr("S",0,0,function(){return~~(this.millisecond()/100)});wr(0,["SS",2],0,function(){return~~(this.millisecond()/10)});wr(0,["SSS",3],0,"millisecond");wr(0,["SSSS",4],0,function(){return this.millisecond()*10});wr(0,["SSSSS",5],0,function(){return this.millisecond()*100});wr(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});wr(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});wr(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});wr(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});rr("S",z6,ome);rr("SS",z6,Wc);rr("SSS",z6,ame);var Im,jme;for(Im="SSSS";Im.length<=9;Im+="S")rr(Im,FS);function z7e(e,t){t[_1]=ui(("0."+e)*1e3)}for(Im="S";Im.length<=9;Im+="S")Zi(Im,z7e);jme=BS("Milliseconds",!1);wr("z",0,0,"zoneAbbr");wr("zz",0,0,"zoneName");function U7e(){return this._isUTC?"UTC":""}function W7e(){return this._isUTC?"Coordinated Universal Time":""}var In=cE.prototype;In.add=DNe;In.calendar=UNe;In.clone=WNe;In.diff=QNe;In.endOf=s7e;In.format=t7e;In.from=n7e;In.fromNow=r7e;In.to=i7e;In.toNow=o7e;In.get=eAe;In.invalidAt=g7e;In.isAfter=VNe;In.isBefore=KNe;In.isBetween=qNe;In.isSame=GNe;In.isSameOrAfter=YNe;In.isSameOrBefore=XNe;In.isValid=p7e;In.lang=$me;In.locale=Ime;In.localeData=Rme;In.max=pNe;In.min=hNe;In.parsingFlags=m7e;In.set=tAe;In.startOf=a7e;In.subtract=LNe;In.toArray=d7e;In.toObject=f7e;In.toDate=u7e;In.toISOString=JNe;In.inspect=e7e;typeof Symbol<"u"&&Symbol.for!=null&&(In[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});In.toJSON=h7e;In.toString=ZNe;In.unix=c7e;In.valueOf=l7e;In.creationData=v7e;In.eraName=C7e;In.eraNarrow=x7e;In.eraAbbr=w7e;In.eraYear=_7e;In.year=cme;In.isLeapYear=JRe;In.weekYear=I7e;In.isoWeekYear=$7e;In.quarter=In.quarters=F7e;In.month=pme;In.daysInMonth=uAe;In.week=In.weeks=yAe;In.isoWeek=In.isoWeeks=bAe;In.weeksInYear=N7e;In.weeksInWeekYear=D7e;In.isoWeeksInYear=R7e;In.isoWeeksInISOWeekYear=A7e;In.date=Fme;In.day=In.days=$Ae;In.weekday=RAe;In.isoWeekday=AAe;In.dayOfYear=j7e;In.hour=In.hours=HAe;In.minute=In.minutes=B7e;In.second=In.seconds=H7e;In.millisecond=In.milliseconds=jme;In.utcOffset=wNe;In.utc=ENe;In.local=TNe;In.parseZone=kNe;In.hasAlignedHourOffset=ONe;In.isDST=PNe;In.isLocal=INe;In.isUtcOffset=$Ne;In.isUtc=kme;In.isUTC=kme;In.zoneAbbr=U7e;In.zoneName=W7e;In.dates=Ru("dates accessor is deprecated. Use date instead.",Fme);In.months=Ru("months accessor is deprecated. Use month instead",pme);In.years=Ru("years accessor is deprecated. Use year instead",cme);In.zone=Ru("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",_Ne);In.isDSTShifted=Ru("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",MNe);function V7e(e){return So(e*1e3)}function K7e(){return So.apply(null,arguments).parseZone()}function Bme(e){return e}var Mi=Dz.prototype;Mi.calendar=IRe;Mi.longDateFormat=NRe;Mi.invalidDate=LRe;Mi.ordinal=BRe;Mi.preparse=Bme;Mi.postformat=Bme;Mi.relativeTime=zRe;Mi.pastFuture=URe;Mi.set=PRe;Mi.eras=y7e;Mi.erasParse=b7e;Mi.erasConvertYear=S7e;Mi.erasAbbrRegex=T7e;Mi.erasNameRegex=E7e;Mi.erasNarrowRegex=k7e;Mi.months=aAe;Mi.monthsShort=sAe;Mi.monthsParse=cAe;Mi.monthsRegex=fAe;Mi.monthsShortRegex=dAe;Mi.week=pAe;Mi.firstDayOfYear=vAe;Mi.firstDayOfWeek=gAe;Mi.weekdays=kAe;Mi.weekdaysMin=PAe;Mi.weekdaysShort=OAe;Mi.weekdaysParse=IAe;Mi.weekdaysRegex=NAe;Mi.weekdaysShortRegex=DAe;Mi.weekdaysMinRegex=LAe;Mi.isPM=jAe;Mi.meridiem=zAe;function o9(e,t,n,r){var i=_p(),o=Qf().set(r,t);return i[n](o,e)}function Hme(e,t,n){if(up(e)&&(t=e,e=void 0),e=e||"",t!=null)return o9(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=o9(e,r,n,"month");return i}function eU(e,t,n,r){typeof e=="boolean"?(up(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,up(t)&&(n=t,t=void 0),t=t||"");var i=_p(),o=e?i._week.dow:0,a,s=[];if(n!=null)return o9(t,(n+o)%7,r,"day");for(a=0;a<7;a++)s[a]=o9(t,(a+o)%7,r,"day");return s}function q7e(e,t){return Hme(e,t,"months")}function G7e(e,t){return Hme(e,t,"monthsShort")}function Y7e(e,t,n){return eU(e,t,n,"weekdays")}function X7e(e,t,n){return eU(e,t,n,"weekdaysShort")}function Q7e(e,t,n){return eU(e,t,n,"weekdaysMin")}qm("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=ui(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});Kn.lang=Ru("moment.lang is deprecated. Use moment.locale instead.",qm);Kn.langData=Ru("moment.langData is deprecated. Use moment.localeData instead.",_p);var vh=Math.abs;function Z7e(){var e=this._data;return this._milliseconds=vh(this._milliseconds),this._days=vh(this._days),this._months=vh(this._months),e.milliseconds=vh(e.milliseconds),e.seconds=vh(e.seconds),e.minutes=vh(e.minutes),e.hours=vh(e.hours),e.months=vh(e.months),e.years=vh(e.years),this}function zme(e,t,n,r){var i=Yd(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function J7e(e,t){return zme(this,e,t,1)}function eDe(e,t){return zme(this,e,t,-1)}function YQ(e){return e<0?Math.floor(e):Math.ceil(e)}function tDe(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,o,a,s,l;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=YQ(VL(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=du(e/1e3),r.seconds=i%60,o=du(i/60),r.minutes=o%60,a=du(o/60),r.hours=a%24,t+=du(a/24),l=du(Ume(t)),n+=l,t-=YQ(VL(l)),s=du(n/12),n%=12,r.days=t,r.months=n,r.years=s,this}function Ume(e){return e*4800/146097}function VL(e){return e*146097/4800}function nDe(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=Au(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+Ume(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(VL(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function Ep(e){return function(){return this.as(e)}}var Wme=Ep("ms"),rDe=Ep("s"),iDe=Ep("m"),oDe=Ep("h"),aDe=Ep("d"),sDe=Ep("w"),lDe=Ep("M"),cDe=Ep("Q"),uDe=Ep("y"),dDe=Wme;function fDe(){return Yd(this)}function hDe(e){return e=Au(e),this.isValid()?this[e+"s"]():NaN}function Wv(e){return function(){return this.isValid()?this._data[e]:NaN}}var pDe=Wv("milliseconds"),mDe=Wv("seconds"),gDe=Wv("minutes"),vDe=Wv("hours"),yDe=Wv("days"),bDe=Wv("months"),SDe=Wv("years");function CDe(){return du(this.days()/7)}var Nh=Math.round,jy={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function xDe(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function wDe(e,t,n,r){var i=Yd(e).abs(),o=Nh(i.as("s")),a=Nh(i.as("m")),s=Nh(i.as("h")),l=Nh(i.as("d")),c=Nh(i.as("M")),u=Nh(i.as("w")),d=Nh(i.as("y")),h=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||a<=1&&["m"]||a<n.m&&["mm",a]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return n.w!=null&&(h=h||u<=1&&["w"]||u<n.w&&["ww",u]),h=h||c<=1&&["M"]||c<n.M&&["MM",c]||d<=1&&["y"]||["yy",d],h[2]=t,h[3]=+e>0,h[4]=r,xDe.apply(null,h)}function _De(e){return e===void 0?Nh:typeof e=="function"?(Nh=e,!0):!1}function EDe(e,t){return jy[e]===void 0?!1:t===void 0?jy[e]:(jy[e]=t,e==="s"&&(jy.ss=t-1),!0)}function TDe(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=jy,i,o;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},jy,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),o=wDe(this,!n,r,i),n&&(o=i.pastFuture(+this,o)),i.postformat(o)}var G$=Math.abs;function V0(e){return(e>0)-(e<0)||+e}function X6(){if(!this.isValid())return this.localeData().invalidDate();var e=G$(this._milliseconds)/1e3,t=G$(this._days),n=G$(this._months),r,i,o,a,s=this.asSeconds(),l,c,u,d;return s?(r=du(e/60),i=du(r/60),e%=60,r%=60,o=du(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",c=V0(this._months)!==V0(s)?"-":"",u=V0(this._days)!==V0(s)?"-":"",d=V0(this._milliseconds)!==V0(s)?"-":"",l+"P"+(o?c+o+"Y":"")+(n?c+n+"M":"")+(t?u+t+"D":"")+(i||r||e?"T":"")+(i?d+i+"H":"")+(r?d+r+"M":"")+(e?d+a+"S":"")):"P0D"}var Si=G6.prototype;Si.isValid=bNe;Si.abs=Z7e;Si.add=J7e;Si.subtract=eDe;Si.as=nDe;Si.asMilliseconds=Wme;Si.asSeconds=rDe;Si.asMinutes=iDe;Si.asHours=oDe;Si.asDays=aDe;Si.asWeeks=sDe;Si.asMonths=lDe;Si.asQuarters=cDe;Si.asYears=uDe;Si.valueOf=dDe;Si._bubble=tDe;Si.clone=fDe;Si.get=hDe;Si.milliseconds=pDe;Si.seconds=mDe;Si.minutes=gDe;Si.hours=vDe;Si.days=yDe;Si.weeks=CDe;Si.months=bDe;Si.years=SDe;Si.humanize=TDe;Si.toISOString=X6;Si.toString=X6;Si.toJSON=X6;Si.locale=Ime;Si.localeData=Rme;Si.toIsoString=Ru("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",X6);Si.lang=$me;wr("X",0,0,"unix");wr("x",0,0,"valueOf");rr("x",W6);rr("X",qRe);Zi("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});Zi("x",function(e,t,n){n._d=new Date(ui(e))});//! moment.js
|
||
Kn.version="2.30.1";kRe(So);Kn.fn=In;Kn.min=mNe;Kn.max=gNe;Kn.now=vNe;Kn.utc=Qf;Kn.unix=V7e;Kn.months=q7e;Kn.isDate=lE;Kn.locale=qm;Kn.invalid=B6;Kn.duration=Yd;Kn.isMoment=Nd;Kn.weekdays=Y7e;Kn.parseZone=K7e;Kn.localeData=_p;Kn.isDuration=S8;Kn.monthsShort=G7e;Kn.weekdaysMin=Q7e;Kn.defineLocale=Kz;Kn.updateLocale=KAe;Kn.locales=qAe;Kn.weekdaysShort=X7e;Kn.normalizeUnits=Au;Kn.relativeTimeRounding=_De;Kn.relativeTimeThreshold=EDe;Kn.calendarFormat=zNe;Kn.prototype=In;Kn.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};let IT;const kDe=new Uint8Array(16);function ODe(){if(!IT&&(IT=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!IT))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return IT(kDe)}const hs=[];for(let e=0;e<256;++e)hs.push((e+256).toString(16).slice(1));function PDe(e,t=0){return hs[e[t+0]]+hs[e[t+1]]+hs[e[t+2]]+hs[e[t+3]]+"-"+hs[e[t+4]]+hs[e[t+5]]+"-"+hs[e[t+6]]+hs[e[t+7]]+"-"+hs[e[t+8]]+hs[e[t+9]]+"-"+hs[e[t+10]]+hs[e[t+11]]+hs[e[t+12]]+hs[e[t+13]]+hs[e[t+14]]+hs[e[t+15]]}const MDe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),XQ={randomUUID:MDe};function IDe(e,t,n){if(XQ.randomUUID&&!t&&!e)return XQ.randomUUID();e=e||{};const r=e.random||(e.rng||ODe)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,PDe(r)}const $De="1.0.2";function RDe(){return $De}function ADe(){const e=localStorage.getItem(o8);(e===null||e==="true")&&new Audio(TOe).play()}function NDe(){return Kn().format("YYYY-MM-DD HH:mm:ss")}function Q6(){return IDe().replaceAll(/-/g,"")}function K0(e){return e.endsWith("/")?e.slice(0,-1):e}function QQ(e,t){return e.length>t?e.slice(0,t-3)+"...":e}function DDe(e){if($Oe===e||ROe===e||AOe===e||NOe===e||DOe===e)return!0}function LDe(e){return e===qw||e===Gw}function FDe(e){return e===qw||e===Gw}function jDe(e){return e.startsWith(UOe)}function BDe(){console.log("%cWelcome to Bytedesk","font-family:Arial; color:#3370ff ; font-size:18px; font-weight:bold;","GitHub:https://github.com/bytedesk/bytedesk")}const pg=Uc()(Vd(Kd(qd(e=>({orgTree:[],currentOrg:{uid:"",name:"",logo:"",description:""},setCurrentOrg(t){e({currentOrg:t})},deleteOrg:()=>e({currentOrg:{uid:"",name:"",logo:"",description:""}})})),{name:aOe}))),bd=Uc()(Vd(Kd(qd((e,t)=>({threads:[],queuingThreads:[],currentThread:{uid:"",user:{uid:"",nickname:"",avatar:""},topic:"",content:"",type:"",unreadCount:0,extra:"",updatedAt:""},currentQueuingThread:{uid:"",user:{uid:"",nickname:"",avatar:""}},threadResult:{data:{content:[],last:!0}},showQueueButton:!1,showQueueList:!1,showRightPanel:!1,loading:!1,error:null,searchText:"",pagination:{pageNumber:0,pageSize:100,total:0},filters:{},addThread(n){var i,o;if(n.state===TX)return t().addQueuingThread(n),0;if(t().threads.some(a=>a.topic===n.topic))if(((i=t().currentThread)==null?void 0:i.topic)===""||((o=t().currentThread)==null?void 0:o.topic)!==n.topic){for(let a=0;a<t().threads.length;a++){const s=t().threads[a];s.topic===n.topic&&(n.unreadCount=s.unreadCount+1,n.top=s.top,n.mute=s.mute,n.unread=s.unread,n.agent=s.agent)}return e({threads:[n,...t().threads.filter(a=>a.topic!==n.topic)]}),n.unreadCount}else{const a=t().threads.map(s=>s.topic===n.topic?(n.top=s.top,n.mute=s.mute,n.unread=s.unread,n.agent=s.agent,n):s);return e({threads:a}),0}else return n.unreadCount=1,e({threads:[n,...t().threads]}),n.unreadCount},addThreadWithMessage(n,r){var s,l;if(r.type===IOe)return t().addQueuingThread(n),0;const i=t().threads.some(c=>c.topic===n.topic),o=!LDe(r.type);if(FDe(r.type)&&(n.state=kX),i)if(((s=t().currentThread)==null?void 0:s.topic)===""||((l=t().currentThread)==null?void 0:l.topic)!==n.topic){for(let c=0;c<t().threads.length;c++){const u=t().threads[c];u.topic===n.topic&&(o&&(n.unreadCount=u.unreadCount+1),n.top=u.top,n.mute=u.mute,n.unread=u.unread,n.agent=u.agent)}return e({threads:[n,...t().threads.filter(c=>c.topic!==n.topic)]}),n.unreadCount}else{const c=t().threads.map(u=>u.topic===n.topic?(n.top=u.top,n.mute=u.mute,n.unread=u.unread,n.agent=u.agent,n):u);return e({threads:c}),0}else return o&&(n.unreadCount=1),e({threads:[n,...t().threads]}),n.unreadCount},addQueuingThread(n){t().queuingThreads.some(i=>i.topic===n.topic)||e({queuingThreads:[n,...t().queuingThreads]})},updateThreadContent(n,r){let i=null;const o=t().threads.map(a=>a.topic===n?(i={...a,unreadCount:a.unreadCount+1,content:r},i):a);return e({threads:o}),i},updateThreadStatus(n,r){let i=null;const o=t().threads.map(a=>a.topic===n?(i={...a,state:r},i):a);return e({threads:o}),i},removeThread(n){e({threads:[...t().threads.filter(r=>(r==null?void 0:r.uid)!==(n==null?void 0:n.uid))]})},closeThread(n){const r=t().threads.map(i=>i.topic===n?{...i,state:kX}:i);e({threads:r})},addThreads(n){for(let r=0;r<n.length;r++){const i=n[r];if(i.state===TX){t().addQueuingThread(i);continue}if(!t().threads.some(a=>a.topic===i.topic))e({threads:[...t().threads,i]});else{const a=t().threads.map(s=>s.topic===i.topic?{...i,unreadCount:s.unreadCount}:s);e({threads:a})}}},setThreads(n){e(r=>{r.threads=n})},setQueuingThreads(n){e(r=>{r.queuingThreads=n})},setCurrentThread(n){e(o=>{o.showQueueList=!1});const r={...n,unreadCount:0},i=t().threads.map(o=>o.topic===r.topic?r:o);e(o=>{o.currentThread=r,o.threads=i})},setCurrentQueuingThread(n){e(r=>{r.currentQueuingThread=n})},setThreadResult(n){e(r=>{r.threadResult=n})},getUnreadCount(){return t().threads.reduce((n,r)=>{var i;return r.unreadCount>0&&r.topic!==((i=t().currentThread)==null?void 0:i.topic)?n+r.unreadCount:n},0)},setShowQueueButton(n){e(r=>{r.showQueueButton=n})},setShowQueueList(n){e(r=>{r.showQueueList=n,r.showRightPanel=!1})},setShowRightPanel(n){e(r=>{r.showRightPanel=n})},resetThreads(){e(n=>{n.threads=[],n.queuingThreads=[],n.currentThread={uid:"",user:{uid:"",nickname:"",avatar:""},topic:"",content:"",type:"",unreadCount:0,extra:"",updatedAt:""},n.currentQueuingThread={uid:"",user:{uid:"",nickname:"",avatar:""}},n.threadResult={data:{content:[],last:!0}},n.showQueueButton=!1,n.showQueueList=!1,n.showRightPanel=!1})},setLoading:n=>e({loading:n}),setError:n=>e({error:n}),setSearchText:n=>e({searchText:n}),setFilter:(n,r)=>e(i=>{i.filters[n]=r}),clearFilters:()=>e({filters:{}}),refreshThreads:async()=>{const{currentOrg:n}=pg.getState();if(n!=null&&n.uid){const{threadService:r}=await $z(async()=>{const{threadService:i}=await import("./threadService-BnNdPvdK.js");return{threadService:i}},[]);await r.loadThreads(n.uid)}},setPagination:n=>e({pagination:n})})),{name:fOe}))),Tp=Uc()(Vd(Kd(qd((e,t)=>({messageList:[],addMessage(n){if(t().messageList.some(i=>i.uid===n.uid)){if(n.type===Kw){const o=t().messageList.findIndex(a=>a.type===Kw&&a.uid===n.uid);if(o!==-1){const a=[...t().messageList];a[o].content+=n.content,e({messageList:a});return}}const i=t().messageList.findIndex(o=>o.uid===n.uid);if(i!==-1){const o=[...t().messageList];o[i]=n,e({messageList:o})}}else{const i=t().messageList[t().messageList.length-1];if(i&&n.type===rD&&i.type===rD){const o=t().messageList.findIndex(s=>s.uid===i.uid),a=[...t().messageList];a[o]=n,e({messageList:a})}else e({messageList:[...t().messageList,n]})}t().sortMessageList()},addMessageList(n){const r=[];for(let o=0;o<n.length;o++){const a=n[o];t().messageList.some(l=>l.uid===a.uid)||r.unshift(a)}const i=[...r,...t().messageList].sort((o,a)=>{const s=Kn(o.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),l=Kn(a.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf();return s-l});console.log("sortedMessageList",i),e({messageList:i})},updateMessageStatus(n,r){const i=t().messageList.findIndex(o=>o.uid===n);if(i!==-1){const o=[...t().messageList];o[i].status=r,e({messageList:o})}},updateMessage(n){const r=t().messageList.findIndex(i=>i.uid===n.uid);if(r!==-1){const i=[...t().messageList];i[r].content=n.content,e({messageList:i})}else console.log("找不到该消息")},deleteMessage(n){const r=t().messageList.findIndex(i=>i.uid===n);if(r!==-1){const i=[...t().messageList];i.splice(r,1),e({messageList:i})}},recallMessage(n){const r=t().messageList.findIndex(i=>i.uid===n);if(r!==-1){const i=[...t().messageList];i[r].type=Efe,i[r].content="该消息已被撤回",e({messageList:i})}},sortMessageList(){const n=t().messageList.sort((r,i)=>{const o=Kn(r.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),a=Kn(i.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf();return o-a});e({messageList:n})},resetMessageList(){e({messageList:[]})}})),{name:lOe}))),Ka=Uc()(Vd(Kd(qd((e,t)=>({userInfo:{uid:"",nickname:"",avatar:""},deviceUid:"",setUserInfo:n=>{e({userInfo:n})},setDeviceUid(n){e({deviceUid:n})},resetUserInfo(){e({userInfo:{uid:t().userInfo.uid,nickname:"",avatar:""}})}})),{name:uOe}))),Vv=Uc()(Vd(Kd(qd((e,t)=>({agentResult:{data:{content:[]}},agentInfo:{uid:"",orgUid:""},insertAgent(n){e(r=>{r.agentResult.data.content.unshift(n)})},updateAgent(n){e(r=>{const i=r.agentResult.data.content,o=i.findIndex(a=>a.uid===n.uid);o!==-1?i[o]=n:console.warn(`Agent with uid ${n.uid} not found.`)})},deleteAgent(n){e(r=>{const i=r.agentResult.data.content,o=i.findIndex(a=>a.uid===n.uid);o!==-1?i.splice(o,1):console.warn(`Agent with uid ${n.uid} not found.`)})},setAgentResult:n=>{e({agentResult:n})},setAgentInfo(n){e({agentInfo:n})},deleteAgentInfo(n){const r=t().agentResult.data.content,i=r.findIndex(o=>o.uid===n);i!==-1?e({agentResult:{...t().agentResult,data:{content:[...r.slice(0,i),...r.slice(i+1)]}}}):console.warn("Agent not found in cache:",n),t().agentInfo.uid===n&&e({agentInfo:{uid:"",orgUid:""}})},resetAgentInfo(){e({agentResult:{data:{content:[]}},agentInfo:{uid:"",orgUid:""}})}})),{name:pOe})));var Vme={exports:{}};/*!
|
||
Copyright (c) 2018 Jed Watson.
|
||
Licensed under the MIT License (MIT), see
|
||
http://jedwatson.github.io/classnames
|
||
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(o=i(o,r(s)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var a="";for(var s in o)t.call(o,s)&&o[s]&&(a=i(a,s));return a}function i(o,a){return a?o?o+" "+a:o+a:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Vme);var Z6=Vme.exports;const Re=vi(Z6);function st(){return st=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},st.apply(null,arguments)}function ln(e){"@babel/helpers - typeof";return ln=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ln(e)}var HDe=Symbol.for("react.element"),zDe=Symbol.for("react.transitional.element"),UDe=Symbol.for("react.fragment");function Kme(e){return e&&ln(e)==="object"&&(e.$$typeof===HDe||e.$$typeof===zDe)&&e.type===UDe}function zo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return ge.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(zo(r)):Kme(r)&&r.props?n=n.concat(zo(r.props.children,t)):n.push(r))}),n}var KL={},WDe=function(t){};function VDe(e,t){}function KDe(e,t){}function qDe(){KL={}}function qme(e,t,n){!t&&!KL[n]&&(e(!1,n),KL[n]=!0)}function fi(e,t){qme(VDe,e,t)}function a9(e,t){qme(KDe,e,t)}fi.preMessage=WDe;fi.resetWarned=qDe;fi.noteOnce=a9;function GDe(e,t){if(ln(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ln(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gme(e){var t=GDe(e,"string");return ln(t)=="symbol"?t:t+""}function ae(e,t,n){return(t=Gme(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZQ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function X(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZQ(Object(n),!0).forEach(function(r){ae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZQ(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function e_(e){return e instanceof HTMLElement||e instanceof SVGElement}function J6(e){return e&&ln(e)==="object"&&e_(e.nativeElement)?e.nativeElement:e_(e)?e:null}function q2(e){var t=J6(e);if(t)return t;if(e instanceof ge.Component){var n;return(n=Bw.findDOMNode)===null||n===void 0?void 0:n.call(Bw,e)}return null}var Yme={exports:{}},Hi={};/**
|
||
* @license React
|
||
* react-is.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var tU=Symbol.for("react.element"),nU=Symbol.for("react.portal"),eO=Symbol.for("react.fragment"),tO=Symbol.for("react.strict_mode"),nO=Symbol.for("react.profiler"),rO=Symbol.for("react.provider"),iO=Symbol.for("react.context"),YDe=Symbol.for("react.server_context"),oO=Symbol.for("react.forward_ref"),aO=Symbol.for("react.suspense"),sO=Symbol.for("react.suspense_list"),lO=Symbol.for("react.memo"),cO=Symbol.for("react.lazy"),XDe=Symbol.for("react.offscreen"),Xme;Xme=Symbol.for("react.module.reference");function Nu(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case tU:switch(e=e.type,e){case eO:case nO:case tO:case aO:case sO:return e;default:switch(e=e&&e.$$typeof,e){case YDe:case iO:case oO:case cO:case lO:case rO:return e;default:return t}}case nU:return t}}}Hi.ContextConsumer=iO;Hi.ContextProvider=rO;Hi.Element=tU;Hi.ForwardRef=oO;Hi.Fragment=eO;Hi.Lazy=cO;Hi.Memo=lO;Hi.Portal=nU;Hi.Profiler=nO;Hi.StrictMode=tO;Hi.Suspense=aO;Hi.SuspenseList=sO;Hi.isAsyncMode=function(){return!1};Hi.isConcurrentMode=function(){return!1};Hi.isContextConsumer=function(e){return Nu(e)===iO};Hi.isContextProvider=function(e){return Nu(e)===rO};Hi.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===tU};Hi.isForwardRef=function(e){return Nu(e)===oO};Hi.isFragment=function(e){return Nu(e)===eO};Hi.isLazy=function(e){return Nu(e)===cO};Hi.isMemo=function(e){return Nu(e)===lO};Hi.isPortal=function(e){return Nu(e)===nU};Hi.isProfiler=function(e){return Nu(e)===nO};Hi.isStrictMode=function(e){return Nu(e)===tO};Hi.isSuspense=function(e){return Nu(e)===aO};Hi.isSuspenseList=function(e){return Nu(e)===sO};Hi.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===eO||e===nO||e===tO||e===aO||e===sO||e===XDe||typeof e=="object"&&e!==null&&(e.$$typeof===cO||e.$$typeof===lO||e.$$typeof===rO||e.$$typeof===iO||e.$$typeof===oO||e.$$typeof===Xme||e.getModuleId!==void 0)};Hi.typeOf=Nu;Yme.exports=Hi;var Y$=Yme.exports;function dp(e,t,n){var r=f.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var t_=function(t,n){typeof t=="function"?t(n):ln(t)==="object"&&t&&"current"in t&&(t.current=n)},ga=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.filter(Boolean);return i.length<=1?i[0]:function(o){n.forEach(function(a){t_(a,o)})}},Xd=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return dp(function(){return ga.apply(void 0,n)},n,function(i,o){return i.length!==o.length||i.every(function(a,s){return a!==o[s]})})},Dd=function(t){var n,r;if(!t)return!1;if(rU(t)&&t.props.propertyIsEnumerable("ref"))return!0;var i=Y$.isMemo(t)?t.type.type:t.type;return!(typeof i=="function"&&!((n=i.prototype)!==null&&n!==void 0&&n.render)&&i.$$typeof!==Y$.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==Y$.ForwardRef)};function rU(e){return f.isValidElement(e)&&!Kme(e)}var QDe=function(t){return rU(t)&&Dd(t)},mg=function(t){if(t&&rU(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},qL=f.createContext(null);function ZDe(e){var t=e.children,n=e.onBatchResize,r=f.useRef(0),i=f.useRef([]),o=f.useContext(qL),a=f.useCallback(function(s,l,c){r.current+=1;var u=r.current;i.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===r.current&&(n==null||n(i.current),i.current=[])}),o==null||o(s,l,c)},[n,o]);return f.createElement(qL.Provider,{value:a},t)}var Qme=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(i,o){return i[0]===n?(r=o,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(n,r){var i=e(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,i=e(r,n);~i&&r.splice(i,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var i=0,o=this.__entries__;i<o.length;i++){var a=o[i];n.call(r,a[1],a[0])}},t}()}(),GL=typeof window<"u"&&typeof document<"u"&&window.document===document,s9=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),JDe=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(s9):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),eLe=2;function tLe(e,t){var n=!1,r=!1,i=0;function o(){n&&(n=!1,e()),r&&s()}function a(){JDe(o)}function s(){var l=Date.now();if(n){if(l-i<eLe)return;r=!0}else n=!0,r=!1,setTimeout(a,t);i=l}return s}var nLe=20,rLe=["top","right","bottom","left","width","height","size","weight"],iLe=typeof MutationObserver<"u",oLe=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=tLe(this.refresh.bind(this),nLe)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!GL||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),iLe?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!GL||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,i=rLe.some(function(o){return!!~r.indexOf(o)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Zme=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},Bb=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||s9},Jme=uO(0,0,0,0);function l9(e){return parseFloat(e)||0}function JQ(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,i){var o=e["border-"+i+"-width"];return r+l9(o)},0)}function aLe(e){for(var t=["top","right","bottom","left"],n={},r=0,i=t;r<i.length;r++){var o=i[r],a=e["padding-"+o];n[o]=l9(a)}return n}function sLe(e){var t=e.getBBox();return uO(0,0,t.width,t.height)}function lLe(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Jme;var r=Bb(e).getComputedStyle(e),i=aLe(r),o=i.left+i.right,a=i.top+i.bottom,s=l9(r.width),l=l9(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+o)!==t&&(s-=JQ(r,"left","right")+o),Math.round(l+a)!==n&&(l-=JQ(r,"top","bottom")+a)),!uLe(e)){var c=Math.round(s+o)-t,u=Math.round(l+a)-n;Math.abs(c)!==1&&(s-=c),Math.abs(u)!==1&&(l-=u)}return uO(i.left,i.top,s,l)}var cLe=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Bb(e).SVGGraphicsElement}:function(e){return e instanceof Bb(e).SVGElement&&typeof e.getBBox=="function"}}();function uLe(e){return e===Bb(e).document.documentElement}function dLe(e){return GL?cLe(e)?sLe(e):lLe(e):Jme}function fLe(e){var t=e.x,n=e.y,r=e.width,i=e.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(o.prototype);return Zme(a,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),a}function uO(e,t,n,r){return{x:e,y:t,width:n,height:r}}var hLe=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=uO(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=dLe(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),pLe=function(){function e(t,n){var r=fLe(n);Zme(this,{target:t,contentRect:r})}return e}(),mLe=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new Qme,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Bb(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new hLe(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Bb(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new pLe(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),ege=typeof WeakMap<"u"?new WeakMap:new Qme,tge=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=oLe.getInstance(),r=new mLe(t,n,this);ege.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){tge.prototype[e]=function(){var t;return(t=ege.get(this))[e].apply(t,arguments)}});var gLe=function(){return typeof s9.ResizeObserver<"u"?s9.ResizeObserver:tge}(),$m=new Map;function vLe(e){e.forEach(function(t){var n,r=t.target;(n=$m.get(r))===null||n===void 0||n.forEach(function(i){return i(r)})})}var nge=new gLe(vLe);function yLe(e,t){$m.has(e)||($m.set(e,new Set),nge.observe(e)),$m.get(e).add(t)}function bLe(e,t){$m.has(e)&&($m.get(e).delete(t),$m.get(e).size||(nge.unobserve(e),$m.delete(e)))}function hi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eZ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Gme(r.key),r)}}function pi(e,t,n){return t&&eZ(e.prototype,t),n&&eZ(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function n_(e,t){return n_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},n_(e,t)}function Ys(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&n_(e,t)}function gv(e){return gv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},gv(e)}function dO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dO=function(){return!!e})()}function On(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rge(e,t){if(t&&(ln(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return On(e)}function bl(e){var t=dO();return function(){var n,r=gv(e);if(t){var i=gv(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return rge(this,n)}}var SLe=function(e){Ys(n,e);var t=bl(n);function n(){return hi(this,n),t.apply(this,arguments)}return pi(n,[{key:"render",value:function(){return this.props.children}}]),n}(f.Component);function CLe(e,t){var n=e.children,r=e.disabled,i=f.useRef(null),o=f.useRef(null),a=f.useContext(qL),s=typeof n=="function",l=s?n(i):n,c=f.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&f.isValidElement(l)&&Dd(l),d=u?mg(l):null,h=Xd(d,i),p=function(){var S;return q2(i.current)||(i.current&&ln(i.current)==="object"?q2((S=i.current)===null||S===void 0?void 0:S.nativeElement):null)||q2(o.current)};f.useImperativeHandle(t,function(){return p()});var m=f.useRef(e);m.current=e;var v=f.useCallback(function(y){var S=m.current,b=S.onResize,C=S.data,_=y.getBoundingClientRect(),T=_.width,x=_.height,E=y.offsetWidth,k=y.offsetHeight,M=Math.floor(T),P=Math.floor(x);if(c.current.width!==M||c.current.height!==P||c.current.offsetWidth!==E||c.current.offsetHeight!==k){var D={width:M,height:P,offsetWidth:E,offsetHeight:k};c.current=D;var R=E===Math.round(T)?T:E,A=k===Math.round(x)?x:k,H=X(X({},D),{},{offsetWidth:R,offsetHeight:A});a==null||a(H,y,C),b&&Promise.resolve().then(function(){b(H,y)})}},[]);return f.useEffect(function(){var y=p();return y&&!r&&yLe(y,v),function(){return bLe(y,v)}},[i.current,r]),f.createElement(SLe,{ref:o},u?f.cloneElement(l,{ref:h}):l)}var xLe=f.forwardRef(CLe),wLe="rc-observer-key";function _Le(e,t){var n=e.children,r=typeof n=="function"?[n]:zo(n);return r.map(function(i,o){var a=(i==null?void 0:i.key)||"".concat(wLe,"-").concat(o);return f.createElement(xLe,st({},e,{key:a,ref:o===0?t:void 0}),i)})}var Wa=f.forwardRef(_Le);Wa.Collection=ZDe;function Pr(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}function YL(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ELe(e){if(Array.isArray(e))return YL(e)}function ige(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fO(e,t){if(e){if(typeof e=="string")return YL(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?YL(e,t):void 0}}function TLe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pt(e){return ELe(e)||ige(e)||fO(e)||TLe()}var oge=function(t){return+setTimeout(t,16)},age=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(oge=function(t){return window.requestAnimationFrame(t)},age=function(t){return window.cancelAnimationFrame(t)});var tZ=0,iU=new Map;function sge(e){iU.delete(e)}var Cr=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;tZ+=1;var r=tZ;function i(o){if(o===0)sge(r),t();else{var a=oge(function(){i(o-1)});iU.set(r,a)}}return i(n),r};Cr.cancel=function(e){var t=iU.get(e);return sge(e),age(t)};function lge(e){if(Array.isArray(e))return e}function kLe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function cge(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Le(e,t){return lge(e)||kLe(e,t)||fO(e,t)||cge()}function r_(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function HS(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function OLe(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var nZ="data-rc-order",rZ="data-rc-priority",PLe="rc-util-key",XL=new Map;function uge(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):PLe}function hO(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function MLe(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function oU(e){return Array.from((XL.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function dge(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!HS())return null;var n=t.csp,r=t.prepend,i=t.priority,o=i===void 0?0:i,a=MLe(r),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(nZ,a),s&&o&&l.setAttribute(rZ,"".concat(o)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=hO(t),u=c.firstChild;if(r){if(s){var d=(t.styles||oU(c)).filter(function(h){if(!["prepend","prependQueue"].includes(h.getAttribute(nZ)))return!1;var p=Number(h.getAttribute(rZ)||0);return o>=p});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function fge(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=hO(t);return(t.styles||oU(n)).find(function(r){return r.getAttribute(uge(t))===e})}function aU(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=fge(e,t);if(n){var r=hO(t);r.removeChild(n)}}function ILe(e,t){var n=XL.get(e);if(!n||!OLe(document,n)){var r=dge("",t),i=r.parentNode;XL.set(e,i),e.removeChild(r)}}function sb(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=hO(n),i=oU(r),o=X(X({},n),{},{styles:i});ILe(r,o);var a=fge(t,o);if(a){var s,l;if((s=o.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((l=o.csp)===null||l===void 0?void 0:l.nonce)){var c;a.nonce=(c=o.csp)===null||c===void 0?void 0:c.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var u=dge(e,o);return u.setAttribute(uge(o),t),u}function $Le(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function tn(e,t){if(e==null)return{};var n,r,i=$Le(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function RLe(e,t,n){var r=f.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var QL={},ALe=function(t){};function NLe(e,t){}function DLe(e,t){}function LLe(){QL={}}function hge(e,t,n){!t&&!QL[n]&&(e(!1,n),QL[n]=!0)}function fE(e,t){hge(NLe,e,t)}function FLe(e,t){hge(DLe,e,t)}fE.preMessage=ALe;fE.resetWarned=LLe;fE.noteOnce=FLe;function iZ(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(o,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(o);if(fE(!l,"Warning: There may be circular references"),l)return!1;if(o===a)return!0;if(n&&s>1)return!1;r.add(o);var c=s+1;if(Array.isArray(o)){if(!Array.isArray(a)||o.length!==a.length)return!1;for(var u=0;u<o.length;u++)if(!i(o[u],a[u],c))return!1;return!0}if(o&&a&&ln(o)==="object"&&ln(a)==="object"){var d=Object.keys(o);return d.length!==Object.keys(a).length?!1:d.every(function(h){return i(o[h],a[h],c)})}return!1}return i(e,t)}var jLe="%";function ZL(e){return e.join(jLe)}var BLe=function(){function e(t){hi(this,e),ae(this,"instanceId",void 0),ae(this,"cache",new Map),this.instanceId=t}return pi(e,[{key:"get",value:function(n){return this.opGet(ZL(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(ZL(n),r)}},{key:"opUpdate",value:function(n,r){var i=this.cache.get(n),o=r(i);o===null?this.cache.delete(n):this.cache.set(n,o)}}]),e}(),HLe=["children"],Hb="data-token-hash",_d="data-css-hash",Rm="__cssinjs_instance__";function sU(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(_d,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(i){i[Rm]=i[Rm]||e,i[Rm]===e&&document.head.insertBefore(i,n)});var r={};Array.from(document.querySelectorAll("style[".concat(_d,"]"))).forEach(function(i){var o=i.getAttribute(_d);if(r[o]){if(i[Rm]===e){var a;(a=i.parentNode)===null||a===void 0||a.removeChild(i)}}else r[o]=!0})}return new BLe(e)}var zb=f.createContext({hashPriority:"low",cache:sU(),defaultCache:!0}),zLe=function(t){var n=t.children,r=tn(t,HLe),i=f.useContext(zb),o=RLe(function(){var a=X({},i);Object.keys(r).forEach(function(l){var c=r[l];r[l]!==void 0&&(a[l]=c)});var s=r.cache;return a.cache=a.cache||sU(),a.defaultCache=!s&&i.defaultCache,a},[i,r],function(a,s){return!iZ(a[0],s[0],!0)||!iZ(a[1],s[1],!0)});return f.createElement(zb.Provider,{value:o},n)},pge=pi(function e(){hi(this,e)}),mge="CALC_UNIT",ULe=new RegExp(mge,"g");function X$(e){return typeof e=="number"?"".concat(e).concat(mge):e}var WLe=function(e){Ys(n,e);var t=bl(n);function n(r,i){var o;hi(this,n),o=t.call(this),ae(On(o),"result",""),ae(On(o),"unitlessCssVar",void 0),ae(On(o),"lowPriority",void 0);var a=ln(r);return o.unitlessCssVar=i,r instanceof n?o.result="(".concat(r.result,")"):a==="number"?o.result=X$(r):a==="string"&&(o.result=r),o}return pi(n,[{key:"add",value:function(i){return i instanceof n?this.result="".concat(this.result," + ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," + ").concat(X$(i))),this.lowPriority=!0,this}},{key:"sub",value:function(i){return i instanceof n?this.result="".concat(this.result," - ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," - ").concat(X$(i))),this.lowPriority=!0,this}},{key:"mul",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," * ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," * ").concat(i)),this.lowPriority=!1,this}},{key:"div",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," / ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," / ").concat(i)),this.lowPriority=!1,this}},{key:"getResult",value:function(i){return this.lowPriority||i?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(i){var o=this,a=i||{},s=a.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(c){return o.result.includes(c)})&&(l=!1),this.result=this.result.replace(ULe,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(pge),VLe=function(e){Ys(n,e);var t=bl(n);function n(r){var i;return hi(this,n),i=t.call(this),ae(On(i),"result",0),r instanceof n?i.result=r.result:typeof r=="number"&&(i.result=r),i}return pi(n,[{key:"add",value:function(i){return i instanceof n?this.result+=i.result:typeof i=="number"&&(this.result+=i),this}},{key:"sub",value:function(i){return i instanceof n?this.result-=i.result:typeof i=="number"&&(this.result-=i),this}},{key:"mul",value:function(i){return i instanceof n?this.result*=i.result:typeof i=="number"&&(this.result*=i),this}},{key:"div",value:function(i){return i instanceof n?this.result/=i.result:typeof i=="number"&&(this.result/=i),this}},{key:"equal",value:function(){return this.result}}]),n}(pge),KLe=function(t,n){var r=t==="css"?WLe:VLe;return function(i){return new r(i,n)}};function qLe(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var lU=function(){function e(){hi(this,e),ae(this,"cache",void 0),ae(this,"keys",void 0),ae(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return pi(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return n.forEach(function(s){if(!a)a=void 0;else{var l;a=(l=a)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(r=a)!==null&&r!==void 0&&r.value&&o&&(a.value[1]=this.cacheCallTimes++),(i=a)===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>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(c,u){var d=Le(c,2),h=d[1];return i.internalGet(u)[1]<h?[u,i.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),a=Le(o,1),s=a[0];this.delete(s)}this.keys.push(n)}var l=this.cache;n.forEach(function(c,u){if(u===n.length-1)l.set(c,{value:[r,i.cacheCallTimes++]});else{var d=l.get(c);d?d.map||(d.map=new Map):l.set(c,{map:new Map}),l=l.get(c).map}})}},{key:"deleteByPath",value:function(n,r){var i=n.get(r[0]);if(r.length===1){var o;return i.map?n.set(r[0],{map:i.map}):n.delete(r[0]),(o=i.value)===null||o===void 0?void 0:o[0]}var a=this.deleteByPath(i.map,r.slice(1));return(!i.map||i.map.size===0)&&!i.value&&n.delete(r[0]),a}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!qLe(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();ae(lU,"MAX_CACHE_SIZE",20);ae(lU,"MAX_CACHE_OFFSET",5);var oZ=0,cU=function(){function e(t){hi(this,e),ae(this,"derivatives",void 0),ae(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=oZ,t.length===0&&(t.length>0,void 0),oZ+=1}return pi(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,i){return i(n,r)},void 0)}}]),e}(),Q$=new lU;function vv(e){var t=Array.isArray(e)?e:[e];return Q$.has(t)||Q$.set(t,new cU(t)),Q$.get(t)}var GLe=new WeakMap,Z$={};function YLe(e,t){for(var n=GLe,r=0;r<t.length;r+=1){var i=t[r];n.has(i)||n.set(i,new WeakMap),n=n.get(i)}return n.has(Z$)||n.set(Z$,e()),n.get(Z$)}var aZ=new WeakMap;function G2(e){var t=aZ.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof cU?t+=r.id:r&&ln(r)==="object"?t+=G2(r):t+=r}),t=r_(t),aZ.set(e,t)),t}function sZ(e,t){return r_("".concat(t,"_").concat(G2(e)))}var Ub="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),gge="_bAmBoO_";function vge(e,t,n){if(HS()){var r,i;sb(e,Ub);var o=document.createElement("div");o.style.position="fixed",o.style.left="0",o.style.top="0",t==null||t(o),document.body.appendChild(o);var a=n?n(o):(r=getComputedStyle(o).content)===null||r===void 0?void 0:r.includes(gge);return(i=o.parentNode)===null||i===void 0||i.removeChild(o),aU(Ub),a}return!1}var J$=void 0;function XLe(){return J$===void 0&&(J$=vge(":where(.".concat(Ub,') { content: "').concat(gge,'"!important; }'),function(e){e.className=Ub})),J$}var eR=void 0;function QLe(){return eR===void 0&&(eR=vge(".".concat(Ub," { inset-block: 93px !important; }"),function(e){e.className=Ub},function(e){return getComputedStyle(e).bottom==="93px"})),eR}var JL=HS();function je(e){return typeof e=="number"?"".concat(e,"px"):e}function i_(e,t,n){var r,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(o)return e;var a=X(X({},i),{},(r={},ae(r,Hb,t),ae(r,_d,n),r)),s=Object.keys(a).map(function(l){var c=a[l];return c?"".concat(l,'="').concat(c,'"'):null}).filter(function(l){return l}).join(" ");return"<style ".concat(s,">").concat(e,"</style>")}var Y2=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).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()},ZLe=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(i){var o=Le(i,2),a=o[0],s=o[1];return"".concat(a,":").concat(s,";")}).join(""),"}"):""},yge=function(t,n,r){var i={},o={};return Object.entries(t).forEach(function(a){var s,l,c=Le(a,2),u=c[0],d=c[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[u])o[u]=d;else if((typeof d=="string"||typeof d=="number")&&!(r!=null&&(l=r.ignore)!==null&&l!==void 0&&l[u])){var h,p=Y2(u,r==null?void 0:r.prefix);i[p]=typeof d=="number"&&!(r!=null&&(h=r.unitless)!==null&&h!==void 0&&h[u])?"".concat(d,"px"):String(d),o[u]="var(".concat(p,")")}}),[o,ZLe(i,n,{scope:r==null?void 0:r.scope})]},lZ=HS()?f.useLayoutEffect:f.useEffect,JLe=function(t,n){var r=f.useRef(!0);lZ(function(){return t(r.current)},n),lZ(function(){return r.current=!1,function(){r.current=!0}},[])},eFe=X({},G_),cZ=eFe.useInsertionEffect,tFe=function(t,n,r){f.useMemo(t,r),JLe(function(){return n(!0)},r)},nFe=cZ?function(e,t,n){return cZ(function(){return e(),t()},n)}:tFe,rFe=X({},G_),iFe=rFe.useInsertionEffect,oFe=function(t){var n=[],r=!1;function i(o){r||n.push(o)}return f.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(o){return o()})}},t),i},aFe=function(){return function(t){t()}},sFe=typeof iFe<"u"?oFe:aFe;function uU(e,t,n,r,i){var o=f.useContext(zb),a=o.cache,s=[e].concat(pt(t)),l=ZL(s),c=sFe([l]),u=function(m){a.opUpdate(l,function(v){var y=v||[void 0,void 0],S=Le(y,2),b=S[0],C=b===void 0?0:b,_=S[1],T=_,x=T||n(),E=[C,x];return m?m(E):E})};f.useMemo(function(){u()},[l]);var d=a.opGet(l),h=d[1];return nFe(function(){i==null||i(h)},function(p){return u(function(m){var v=Le(m,2),y=v[0],S=v[1];return p&&y===0&&(i==null||i(h)),[y+1,S]}),function(){a.opUpdate(l,function(m){var v=m||[],y=Le(v,2),S=y[0],b=S===void 0?0:S,C=y[1],_=b-1;return _===0?(c(function(){(p||!a.opGet(l))&&(r==null||r(C,!1))}),null):[b-1,C]})}},[l]),h}var lFe={},cFe="css",f1=new Map;function uFe(e){f1.set(e,(f1.get(e)||0)+1)}function dFe(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Hb,'="').concat(e,'"]'));n.forEach(function(r){if(r[Rm]===t){var i;(i=r.parentNode)===null||i===void 0||i.removeChild(r)}})}}var fFe=0;function hFe(e,t){f1.set(e,(f1.get(e)||0)-1);var n=Array.from(f1.keys()),r=n.filter(function(i){var o=f1.get(i)||0;return o<=0});n.length-r.length>fFe&&r.forEach(function(i){dFe(i,t),f1.delete(i)})}var dU=function(t,n,r,i){var o=r.getDerivativeToken(t),a=X(X({},o),n);return i&&(a=i(a)),a},bge="token";function fU(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=f.useContext(zb),i=r.cache.instanceId,o=r.container,a=n.salt,s=a===void 0?"":a,l=n.override,c=l===void 0?lFe:l,u=n.formatToken,d=n.getComputedToken,h=n.cssVar,p=YLe(function(){return Object.assign.apply(Object,[{}].concat(pt(t)))},t),m=G2(p),v=G2(c),y=h?G2(h):"",S=uU(bge,[s,e.id,m,v,y],function(){var b,C=d?d(p,c,e):dU(p,c,e,u),_=X({},C),T="";if(h){var x=yge(C,h.key,{prefix:h.prefix,ignore:h.ignore,unitless:h.unitless,preserve:h.preserve}),E=Le(x,2);C=E[0],T=E[1]}var k=sZ(C,s);C._tokenKey=k,_._tokenKey=sZ(_,s);var M=(b=h==null?void 0:h.key)!==null&&b!==void 0?b:k;C._themeKey=M,uFe(M);var P="".concat(cFe,"-").concat(r_(k));return C._hashId=P,[C,P,_,T,(h==null?void 0:h.key)||""]},function(b){hFe(b[0]._themeKey,i)},function(b){var C=Le(b,4),_=C[0],T=C[3];if(h&&T){var x=sb(T,r_("css-variables-".concat(_._themeKey)),{mark:_d,prepend:"queue",attachTo:o,priority:-999});x[Rm]=i,x.setAttribute(Hb,_._themeKey)}});return S}var pFe=function(t,n,r){var i=Le(t,5),o=i[2],a=i[3],s=i[4],l=r||{},c=l.plain;if(!a)return null;var u=o._tokenKey,d=-999,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},p=i_(a,s,u,h,c);return[d,u,p]},Sge={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},Cge="comm",xge="rule",wge="decl",mFe="@import",gFe="@keyframes",vFe="@layer",_ge=Math.abs,hU=String.fromCharCode;function Ege(e){return e.trim()}function x8(e,t,n){return e.replace(t,n)}function yFe(e,t,n){return e.indexOf(t,n)}function o_(e,t){return e.charCodeAt(t)|0}function Wb(e,t,n){return e.slice(t,n)}function bf(e){return e.length}function bFe(e){return e.length}function $T(e,t){return t.push(e),e}var pO=1,Vb=1,Tge=0,Tu=0,_a=0,zS="";function pU(e,t,n,r,i,o,a,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:pO,column:Vb,length:a,return:"",siblings:s}}function SFe(){return _a}function CFe(){return _a=Tu>0?o_(zS,--Tu):0,Vb--,_a===10&&(Vb=1,pO--),_a}function Ed(){return _a=Tu<Tge?o_(zS,Tu++):0,Vb++,_a===10&&(Vb=1,pO++),_a}function Am(){return o_(zS,Tu)}function w8(){return Tu}function mO(e,t){return Wb(zS,e,t)}function a_(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function xFe(e){return pO=Vb=1,Tge=bf(zS=e),Tu=0,[]}function wFe(e){return zS="",e}function tR(e){return Ege(mO(Tu-1,eF(e===91?e+2:e===40?e+1:e)))}function _Fe(e){for(;(_a=Am())&&_a<33;)Ed();return a_(e)>2||a_(_a)>3?"":" "}function EFe(e,t){for(;--t&&Ed()&&!(_a<48||_a>102||_a>57&&_a<65||_a>70&&_a<97););return mO(e,w8()+(t<6&&Am()==32&&Ed()==32))}function eF(e){for(;Ed();)switch(_a){case e:return Tu;case 34:case 39:e!==34&&e!==39&&eF(_a);break;case 40:e===41&&eF(e);break;case 92:Ed();break}return Tu}function TFe(e,t){for(;Ed()&&e+_a!==57;)if(e+_a===84&&Am()===47)break;return"/*"+mO(t,Tu-1)+"*"+hU(e===47?e:Ed())}function kFe(e){for(;!a_(Am());)Ed();return mO(e,Tu)}function OFe(e){return wFe(_8("",null,null,null,[""],e=xFe(e),0,[0],e))}function _8(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,h=0,p=0,m=0,v=1,y=1,S=1,b=0,C="",_=i,T=o,x=r,E=C;y;)switch(m=b,b=Ed()){case 40:if(m!=108&&o_(E,d-1)==58){yFe(E+=x8(tR(b),"&","&\f"),"&\f",_ge(c?s[c-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:E+=tR(b);break;case 9:case 10:case 13:case 32:E+=_Fe(m);break;case 92:E+=EFe(w8()-1,7);continue;case 47:switch(Am()){case 42:case 47:$T(PFe(TFe(Ed(),w8()),t,n,l),l),(a_(m||1)==5||a_(Am()||1)==5)&&bf(E)&&Wb(E,-1,void 0)!==" "&&(E+=" ");break;default:E+="/"}break;case 123*v:s[c++]=bf(E)*S;case 125*v:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+u:S==-1&&(E=x8(E,/\f/g,"")),p>0&&(bf(E)-d||v===0&&m===47)&&$T(p>32?dZ(E+";",r,n,d-1,l):dZ(x8(E," ","")+";",r,n,d-2,l),l);break;case 59:E+=";";default:if($T(x=uZ(E,t,n,c,u,i,s,C,_=[],T=[],d,o),o),b===123)if(u===0)_8(E,t,x,x,_,o,d,s,T);else switch(h===99&&o_(E,3)===110?100:h){case 100:case 108:case 109:case 115:_8(e,x,x,r&&$T(uZ(e,x,x,0,0,i,s,C,i,_=[],d,T),T),i,T,d,s,r?_:T);break;default:_8(E,x,x,x,[""],T,0,s,T)}}c=u=p=0,v=S=1,C=E="",d=a;break;case 58:d=1+bf(E),p=m;default:if(v<1){if(b==123)--v;else if(b==125&&v++==0&&CFe()==125)continue}switch(E+=hU(b),b*v){case 38:S=u>0?1:(E+="\f",-1);break;case 44:s[c++]=(bf(E)-1)*S,S=1;break;case 64:Am()===45&&(E+=tR(Ed())),h=Am(),u=d=bf(C=E+=kFe(w8())),b++;break;case 45:m===45&&bf(E)==2&&(v=0)}}return o}function uZ(e,t,n,r,i,o,a,s,l,c,u,d){for(var h=i-1,p=i===0?o:[""],m=bFe(p),v=0,y=0,S=0;v<r;++v)for(var b=0,C=Wb(e,h+1,h=_ge(y=a[v])),_=e;b<m;++b)(_=Ege(y>0?p[b]+" "+C:x8(C,/&\f/g,p[b])))&&(l[S++]=_);return pU(e,t,n,i===0?xge:s,l,c,u,d)}function PFe(e,t,n,r){return pU(e,t,n,Cge,hU(SFe()),Wb(e,2,-2),0,r)}function dZ(e,t,n,r,i){return pU(e,t,n,wge,Wb(e,0,r),Wb(e,r+1,-1),r,i)}function tF(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function MFe(e,t,n,r){switch(e.type){case vFe:if(e.children.length)break;case mFe:case wge:return e.return=e.return||e.value;case Cge:return"";case gFe:return e.return=e.value+"{"+tF(e.children,r)+"}";case xge:if(!bf(e.value=e.props.join(",")))return""}return bf(n=tF(e.children,r))?e.return=e.value+"{"+n+"}":""}function E1(e,t){var n=t.path,r=t.parentSelectors;fE(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}function IFe(e){var t,n=((t=e.match(/:not\(([^)]*)\)/))===null||t===void 0?void 0:t[1])||"",r=n.split(/(\[[^[]*])|(?=[.#])/).filter(function(i){return i});return r.length>1}function $Fe(e){return e.parentSelectors.reduce(function(t,n){return t?n.includes("&")?n.replace(/&/g,t):"".concat(t," ").concat(n):n},"")}var RFe=function(t,n,r){var i=$Fe(r),o=i.match(/:not\([^)]*\)/g)||[];o.length>0&&o.some(IFe)&&E1("Concat ':not' selector not support in legacy browsers.",r)},AFe=function(t,n,r){switch(t){case"marginLeft":case"marginRight":case"paddingLeft":case"paddingRight":case"left":case"right":case"borderLeft":case"borderLeftWidth":case"borderLeftStyle":case"borderLeftColor":case"borderRight":case"borderRightWidth":case"borderRightStyle":case"borderRightColor":case"borderTopLeftRadius":case"borderTopRightRadius":case"borderBottomLeftRadius":case"borderBottomRightRadius":E1("You seem to be using non-logical property '".concat(t,"' which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),r);return;case"margin":case"padding":case"borderWidth":case"borderStyle":if(typeof n=="string"){var i=n.split(" ").map(function(s){return s.trim()});i.length===4&&i[1]!==i[3]&&E1("You seem to be using '".concat(t,"' property with different left ").concat(t," and right ").concat(t,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),r)}return;case"clear":case"textAlign":(n==="left"||n==="right")&&E1("You seem to be using non-logical value '".concat(n,"' of ").concat(t,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),r);return;case"borderRadius":if(typeof n=="string"){var o=n.split("/").map(function(s){return s.trim()}),a=o.reduce(function(s,l){if(s)return s;var c=l.split(" ").map(function(u){return u.trim()});return c.length>=2&&c[0]!==c[1]||c.length===3&&c[1]!==c[2]||c.length===4&&c[2]!==c[3]?!0:s},!1);a&&E1("You seem to be using non-logical value '".concat(n,"' of ").concat(t,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),r)}return}},NFe=function(t,n,r){(typeof n=="string"&&/NaN/g.test(n)||Number.isNaN(n))&&E1("Unexpected 'NaN' in property '".concat(t,": ").concat(n,"'."),r)},DFe=function(t,n,r){r.parentSelectors.some(function(i){var o=i.split(",");return o.some(function(a){return a.split("&").length>2})})&&E1("Should not use more than one `&` in a selector.",r)},X2="data-ant-cssinjs-cache-path",kge="_FILE_STYLE__";function LFe(e){return Object.keys(e).map(function(t){var n=e[t];return"".concat(t,":").concat(n)}).join(";")}var q1,Oge=!0;function FFe(){if(!q1&&(q1={},HS())){var e=document.createElement("div");e.className=X2,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(i){var o=i.split(":"),a=Le(o,2),s=a[0],l=a[1];q1[s]=l});var n=document.querySelector("style[".concat(X2,"]"));if(n){var r;Oge=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function jFe(e){return FFe(),!!q1[e]}function BFe(e){var t=q1[e],n=null;if(t&&HS())if(Oge)n=kge;else{var r=document.querySelector("style[".concat(_d,'="').concat(q1[e],'"]'));r?n=r.innerHTML:delete q1[e]}return[n,t]}var HFe="_skip_check_",Pge="_multi_value_";function E8(e){var t=tF(OFe(e),MFe);return t.replace(/\{%%%\:[^;];}/g,";")}function zFe(e){return ln(e)==="object"&&e&&(HFe in e||Pge in e)}function fZ(e,t,n){if(!t)return e;var r=".".concat(t),i=n==="low"?":where(".concat(r,")"):r,o=e.split(",").map(function(a){var s,l=a.trim().split(/\s+/),c=l[0]||"",u=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(u).concat(i).concat(c.slice(u.length)),[c].concat(pt(l.slice(1))).join(" ")});return o.join(",")}var UFe=function e(t){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,o=r.injectHash,a=r.parentSelectors,s=n.hashId,l=n.layer;n.path;var c=n.hashPriority,u=n.transformers,d=u===void 0?[]:u;n.linters;var h="",p={};function m(S){var b=S.getName(s);if(!p[b]){var C=e(S.style,n,{root:!1,parentSelectors:a}),_=Le(C,1),T=_[0];p[b]="@keyframes ".concat(S.getName(s)).concat(T)}}function v(S){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return S.forEach(function(C){Array.isArray(C)?v(C,b):C&&b.push(C)}),b}var y=v(Array.isArray(t)?t:[t]);return y.forEach(function(S){var b=typeof S=="string"&&!i?{}:S;if(typeof b=="string")h+="".concat(b,`
|
||
`);else if(b._keyframe)m(b);else{var C=d.reduce(function(_,T){var x;return(T==null||(x=T.visit)===null||x===void 0?void 0:x.call(T,_))||_},b);Object.keys(C).forEach(function(_){var T=C[_];if(ln(T)==="object"&&T&&(_!=="animationName"||!T._keyframe)&&!zFe(T)){var x=!1,E=_.trim(),k=!1;(i||o)&&s?E.startsWith("@")?x=!0:E==="&"?E=fZ("",s,c):E=fZ(_,s,c):i&&!s&&(E==="&"||E==="")&&(E="",k=!0);var M=e(T,n,{root:k,injectHash:x,parentSelectors:[].concat(pt(a),[E])}),P=Le(M,2),D=P[0],R=P[1];p=X(X({},p),R),h+="".concat(E).concat(D)}else{let F=function(z,W){var q=z.replace(/[A-Z]/g,function(N){return"-".concat(N.toLowerCase())}),Z=W;!Sge[z]&&typeof Z=="number"&&Z!==0&&(Z="".concat(Z,"px")),z==="animationName"&&W!==null&&W!==void 0&&W._keyframe&&(m(W),Z=W.getName(s)),h+="".concat(q,":").concat(Z,";")};var A,H=(A=T==null?void 0:T.value)!==null&&A!==void 0?A:T;ln(T)==="object"&&T!==null&&T!==void 0&&T[Pge]&&Array.isArray(H)?H.forEach(function(z){F(_,z)}):F(_,H)}})}}),i?l&&(h="@layer ".concat(l.name," {").concat(h,"}"),l.dependencies&&(p["@layer ".concat(l.name)]=l.dependencies.map(function(S){return"@layer ".concat(S,", ").concat(l.name,";")}).join(`
|
||
`))):h="{".concat(h,"}"),[h,p]};function Mge(e,t){return r_("".concat(e.join("%")).concat(t))}function WFe(){return null}var Ige="style";function s_(e,t){var n=e.token,r=e.path,i=e.hashId,o=e.layer,a=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=f.useContext(zb),d=u.autoClear;u.mock;var h=u.defaultCache,p=u.hashPriority,m=u.container,v=u.ssrInline,y=u.transformers,S=u.linters,b=u.cache,C=u.layer,_=n._tokenKey,T=[_];C&&T.push("layer"),T.push.apply(T,pt(r));var x=JL,E=uU(Ige,T,function(){var R=T.join("|");if(jFe(R)){var A=BFe(R),H=Le(A,2),F=H[0],z=H[1];if(F)return[F,_,z,{},s,c]}var W=t(),q=UFe(W,{hashId:i,hashPriority:p,layer:C?o:void 0,path:r.join("-"),transformers:y,linters:S}),Z=Le(q,2),N=Z[0],B=Z[1],V=E8(N),G=Mge(T,V);return[V,_,G,B,s,c]},function(R,A){var H=Le(R,3),F=H[2];(A||d)&&JL&&aU(F,{mark:_d})},function(R){var A=Le(R,4),H=A[0];A[1];var F=A[2],z=A[3];if(x&&H!==kge){var W={mark:_d,prepend:C?!1:"queue",attachTo:m,priority:c},q=typeof a=="function"?a():a;q&&(W.csp={nonce:q});var Z=[],N=[];Object.keys(z).forEach(function(V){V.startsWith("@layer")?Z.push(V):N.push(V)}),Z.forEach(function(V){sb(E8(z[V]),"_layer-".concat(V),X(X({},W),{},{prepend:!0}))});var B=sb(H,F,W);B[Rm]=b.instanceId,B.setAttribute(Hb,_),N.forEach(function(V){sb(E8(z[V]),"_effect-".concat(V),W)})}}),k=Le(E,3),M=k[0],P=k[1],D=k[2];return function(R){var A;if(!v||x||!h)A=f.createElement(WFe,null);else{var H;A=f.createElement("style",st({},(H={},ae(H,Hb,P),ae(H,_d,D),H),{dangerouslySetInnerHTML:{__html:M}}))}return f.createElement(f.Fragment,null,A,R)}}var VFe=function(t,n,r){var i=Le(t,6),o=i[0],a=i[1],s=i[2],l=i[3],c=i[4],u=i[5],d=r||{},h=d.plain;if(c)return null;var p=o,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return p=i_(o,a,s,m,h),l&&Object.keys(l).forEach(function(v){if(!n[v]){n[v]=!0;var y=E8(l[v]),S=i_(y,a,"_effect-".concat(v),m,h);v.startsWith("@layer")?p=S+p:p+=S}}),[u,s,p]},$ge="cssVar",Rge=function(t,n){var r=t.key,i=t.prefix,o=t.unitless,a=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=f.useContext(zb),d=u.cache.instanceId,h=u.container,p=s._tokenKey,m=[].concat(pt(t.path),[r,c,p]),v=uU($ge,m,function(){var y=n(),S=yge(y,r,{prefix:i,unitless:o,ignore:a,scope:c}),b=Le(S,2),C=b[0],_=b[1],T=Mge(m,_);return[C,_,T,r]},function(y){var S=Le(y,3),b=S[2];JL&&aU(b,{mark:_d})},function(y){var S=Le(y,3),b=S[1],C=S[2];if(b){var _=sb(b,C,{mark:_d,prepend:"queue",attachTo:h,priority:-999});_[Rm]=d,_.setAttribute(Hb,r)}});return v},KFe=function(t,n,r){var i=Le(t,4),o=i[1],a=i[2],s=i[3],l=r||{},c=l.plain;if(!o)return null;var u=-999,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},h=i_(o,s,a,d,c);return[u,a,h]},Ix,qFe=(Ix={},ae(Ix,Ige,VFe),ae(Ix,bge,pFe),ae(Ix,$ge,KFe),Ix);function GFe(e){return e!==null}function YFe(e,t){var n=typeof t=="boolean"?{plain:t}:t||{},r=n.plain,i=r===void 0?!1:r,o=n.types,a=o===void 0?["style","token","cssVar"]:o,s=new RegExp("^(".concat((typeof a=="string"?[a]:a).join("|"),")%")),l=Array.from(e.cache.keys()).filter(function(h){return s.test(h)}),c={},u={},d="";return l.map(function(h){var p=h.replace(s,"").replace(/%/g,"|"),m=h.split("%"),v=Le(m,1),y=v[0],S=qFe[y],b=S(e.cache.get(h)[1],c,{plain:i});if(!b)return null;var C=Le(b,3),_=C[0],T=C[1],x=C[2];return h.startsWith("style")&&(u[p]=T),[_,x]}).filter(GFe).sort(function(h,p){var m=Le(h,1),v=m[0],y=Le(p,1),S=y[0];return v-S}).forEach(function(h){var p=Le(h,2),m=p[1];d+=m}),d+=i_(".".concat(X2,'{content:"').concat(LFe(u),'";}'),void 0,void 0,ae({},X2,X2),i),d}var Mr=function(){function e(t,n){hi(this,e),ae(this,"name",void 0),ae(this,"style",void 0),ae(this,"_keyframe",!0),this.name=t,this.style=n}return pi(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function XFe(e){if(typeof e=="number")return[[e],!1];var t=String(e).trim(),n=t.match(/(.*)(!important)/),r=(n?n[1]:t).trim().split(/\s+/),i=[],o=0;return[r.reduce(function(a,s){if(s.includes("(")||s.includes(")")){var l=s.split("(").length-1,c=s.split(")").length-1;o+=l-c}return o>=0&&i.push(s),o===0&&(a.push(i.join(" ")),i=[]),a},[]),!!n]}function q0(e){return e.notSplit=!0,e}var QFe={inset:["top","right","bottom","left"],insetBlock:["top","bottom"],insetBlockStart:["top"],insetBlockEnd:["bottom"],insetInline:["left","right"],insetInlineStart:["left"],insetInlineEnd:["right"],marginBlock:["marginTop","marginBottom"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],marginInline:["marginLeft","marginRight"],marginInlineStart:["marginLeft"],marginInlineEnd:["marginRight"],paddingBlock:["paddingTop","paddingBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"],paddingInline:["paddingLeft","paddingRight"],paddingInlineStart:["paddingLeft"],paddingInlineEnd:["paddingRight"],borderBlock:q0(["borderTop","borderBottom"]),borderBlockStart:q0(["borderTop"]),borderBlockEnd:q0(["borderBottom"]),borderInline:q0(["borderLeft","borderRight"]),borderInlineStart:q0(["borderLeft"]),borderInlineEnd:q0(["borderRight"]),borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndWidth:["borderBottomWidth"],borderInlineWidth:["borderLeftWidth","borderRightWidth"],borderInlineStartWidth:["borderLeftWidth"],borderInlineEndWidth:["borderRightWidth"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderBlockStartStyle:["borderTopStyle"],borderBlockEndStyle:["borderBottomStyle"],borderInlineStyle:["borderLeftStyle","borderRightStyle"],borderInlineStartStyle:["borderLeftStyle"],borderInlineEndStyle:["borderRightStyle"],borderBlockColor:["borderTopColor","borderBottomColor"],borderBlockStartColor:["borderTopColor"],borderBlockEndColor:["borderBottomColor"],borderInlineColor:["borderLeftColor","borderRightColor"],borderInlineStartColor:["borderLeftColor"],borderInlineEndColor:["borderRightColor"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"]};function RT(e,t){var n=e;return t&&(n="".concat(n," !important")),{_skip_check_:!0,value:n}}var ZFe={visit:function(t){var n={};return Object.keys(t).forEach(function(r){var i=t[r],o=QFe[r];if(o&&(typeof i=="number"||typeof i=="string")){var a=XFe(i),s=Le(a,2),l=s[0],c=s[1];o.length&&o.notSplit?o.forEach(function(u){n[u]=RT(i,c)}):o.length===1?n[o[0]]=RT(l[0],c):o.length===2?o.forEach(function(u,d){var h;n[u]=RT((h=l[d])!==null&&h!==void 0?h:l[0],c)}):o.length===4?o.forEach(function(u,d){var h,p;n[u]=RT((h=(p=l[d])!==null&&p!==void 0?p:l[d-2])!==null&&h!==void 0?h:l[0],c)}):n[r]=i}else n[r]=i}),n}},nR=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function JFe(e,t){var n=Math.pow(10,t+1),r=Math.floor(e*n);return Math.round(r/10)*10/n}var eje=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.rootValue,r=n===void 0?16:n,i=t.precision,o=i===void 0?5:i,a=t.mediaQuery,s=a===void 0?!1:a,l=function(d,h){if(!h)return d;var p=parseFloat(h);if(p<=1)return d;var m=JFe(p/r,o);return"".concat(m,"rem")},c=function(d){var h=X({},d);return Object.entries(d).forEach(function(p){var m=Le(p,2),v=m[0],y=m[1];if(typeof y=="string"&&y.includes("px")){var S=y.replace(nR,l);h[v]=S}!Sge[v]&&typeof y=="number"&&y!==0&&(h[v]="".concat(y,"px").replace(nR,l));var b=v.trim();if(b.startsWith("@")&&b.includes("px")&&s){var C=v.replace(nR,l);h[C]=h[v],delete h[v]}}),h};return{visit:c}},tje={supportModernCSS:function(){return XLe()&&QLe()}};const nje=Object.freeze(Object.defineProperty({__proto__:null,Keyframes:Mr,NaNLinter:NFe,StyleProvider:zLe,Theme:cU,_experimental:tje,createCache:sU,createTheme:vv,extractStyle:YFe,genCalc:KLe,getComputedToken:dU,legacyLogicalPropertiesTransformer:ZFe,legacyNotSelectorLinter:RFe,logicalPropertiesLinter:AFe,parentSelectorLinter:DFe,px2remTransformer:eje,token2CSSVar:Y2,unit:je,useCSSVarRegister:Rge,useCacheToken:fU,useStyleRegister:s_},Symbol.toStringTag,{value:"Module"}));var gO=f.createContext({});function Age(e){return lge(e)||ige(e)||fO(e)||cge()}function jo(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function Nge(e,t,n,r){if(!t.length)return n;var i=Age(t),o=i[0],a=i.slice(1),s;return!e&&typeof o=="number"?s=[]:Array.isArray(e)?s=pt(e):s=X({},e),r&&n===void 0&&a.length===1?delete s[o][a[0]]:s[o]=Nge(s[o],a,n,r),s}function ca(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!jo(e,t.slice(0,-1))?e:Nge(e,t,n,r)}function rje(e){return ln(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function hZ(e){return Array.isArray(e)?[]:{}}var ije=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function By(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=hZ(t[0]);return t.forEach(function(i){function o(a,s){var l=new Set(s),c=jo(i,a),u=Array.isArray(c);if(u||rje(c)){if(!l.has(c)){l.add(c);var d=jo(r,a);u?r=ca(r,a,[]):(!d||ln(d)!=="object")&&(r=ca(r,a,hZ(c))),ije(c).forEach(function(h){o([].concat(pt(a),[h]),l)})}}else r=ca(r,a,c)}o([])}),r}function oje(){}const aje=f.createContext({}),Jf=()=>{const e=()=>{};return e.deprecated=oje,e},Dge=f.createContext(void 0);var Lge={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},Fge={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},sje=X(X({},Fge),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const jge={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},c9={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},sje),timePickerLocale:Object.assign({},jge)},oc="${label} is not a valid ${type}",Lc={locale:"en",Pagination:Lge,DatePicker:c9,TimePicker:jge,Calendar:c9,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},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:oc,method:oc,array:oc,object:oc,number:oc,date:oc,boolean:oc,integer:oc,float:oc,regexp:oc,email:oc,url:oc,hex:oc},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}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let T8=Object.assign({},Lc.Modal),k8=[];const pZ=()=>k8.reduce((e,t)=>Object.assign(Object.assign({},e),t),Lc.Modal);function lje(e){if(e){const t=Object.assign({},e);return k8.push(t),T8=pZ(),()=>{k8=k8.filter(n=>n!==t),T8=pZ()}}T8=Object.assign({},Lc.Modal)}function Bge(){return T8}const mU=f.createContext(void 0),ks=(e,t)=>{const n=f.useContext(mU),r=f.useMemo(()=>{var o;const a=t||Lc[e],s=(o=n==null?void 0:n[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,t,n]),i=f.useMemo(()=>{const o=n==null?void 0:n.locale;return n!=null&&n.exist&&!o?Lc.locale:o},[n]);return[r,i]},cje="internalMark",uje=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;f.useEffect(()=>lje(t==null?void 0:t.Modal),[t]);const i=f.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return f.createElement(mU.Provider,{value:i},n)},Za=Math.round;function rR(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)r[i]=t(r[i]||0,n[i]||"",i);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const mZ=(e,t,n)=>n===0?e:e/100;function $x(e,t){const n=t||255;return e>n?n:e<0?0:e}class xr{constructor(t){ae(this,"isValid",!0),ae(this,"r",0),ae(this,"g",0),ae(this,"b",0),ae(this,"a",1),ae(this,"_h",void 0),ae(this,"_s",void 0),ae(this,"_l",void 0),ae(this,"_v",void 0),ae(this,"_max",void 0),ae(this,"_min",void 0),ae(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let i=function(o){return r.startsWith(o)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):i("rgb")?this.fromRgbString(r):i("hsl")?this.fromHslString(r):(i("hsv")||i("hsb"))&&this.fromHsvString(r)}else if(t instanceof xr)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=$x(t.r),this.g=$x(t.g),this.b=$x(t.b),this.a=typeof t.a=="number"?$x(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(o){const a=o/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),i=t(this.b);return .2126*n+.7152*r+.0722*i}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Za(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()-t/100;return i<0&&(i=0),this._c({h:n,s:r,l:i,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()+t/100;return i>1&&(i=1),this._c({h:n,s:r,l:i,a:this.a})}mix(t,n=50){const r=this._c(t),i=n/100,o=s=>(r[s]-this[s])*i+this[s],a={r:Za(o("r")),g:Za(o("g")),b:Za(o("b")),a:Za(o("a")*100)/100};return this._c(a)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),i=o=>Za((this[o]*this.a+n[o]*n.a*(1-this.a))/r);return this._c({r:i("r"),g:i("g"),b:i("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const i=(this.b||0).toString(16);if(t+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const o=Za(this.a*255).toString(16);t+=o.length===2?o:"0"+o}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=Za(this.getSaturation()*100),r=Za(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const i=this.clone();return i[t]=$x(n,r),i}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(i,o){return parseInt(n[i]+n[o||i],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:i}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof i=="number"?i:1,n<=0){const h=Za(r*255);this.r=h,this.g=h,this.b=h}let o=0,a=0,s=0;const l=t/60,c=(1-Math.abs(2*r-1))*n,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(o=c,a=u):l>=1&&l<2?(o=u,a=c):l>=2&&l<3?(a=c,s=u):l>=3&&l<4?(a=u,s=c):l>=4&&l<5?(o=u,s=c):l>=5&&l<6&&(o=c,s=u);const d=r-c/2;this.r=Za((o+d)*255),this.g=Za((a+d)*255),this.b=Za((s+d)*255)}fromHsv({h:t,s:n,v:r,a:i}){this._h=t%360,this._s=n,this._v=r,this.a=typeof i=="number"?i:1;const o=Za(r*255);if(this.r=o,this.g=o,this.b=o,n<=0)return;const a=t/60,s=Math.floor(a),l=a-s,c=Za(r*(1-n)*255),u=Za(r*(1-n*l)*255),d=Za(r*(1-n*(1-l))*255);switch(s){case 0:this.g=d,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=d;break;case 3:this.r=c,this.g=u;break;case 4:this.r=d,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){const n=rR(t,mZ);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=rR(t,mZ);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=rR(t,(r,i)=>i.includes("%")?Za(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}const dje=Object.freeze(Object.defineProperty({__proto__:null,FastColor:xr},Symbol.toStringTag,{value:"Module"}));var AT=2,gZ=.16,fje=.05,hje=.05,pje=.15,Hge=5,zge=4,mje=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function vZ(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-AT*t:Math.round(e.h)+AT*t:r=n?Math.round(e.h)+AT*t:Math.round(e.h)-AT*t,r<0?r+=360:r>=360&&(r-=360),r}function yZ(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-gZ*t:t===zge?r=e.s+gZ:r=e.s+fje*t,r>1&&(r=1),n&&t===Hge&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function bZ(e,t,n){var r;return n?r=e.v+hje*t:r=e.v-pje*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function tg(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new xr(e),i=r.toHsv(),o=Hge;o>0;o-=1){var a=new xr({h:vZ(i,o,!0),s:yZ(i,o,!0),v:bZ(i,o,!0)});n.push(a)}n.push(r);for(var s=1;s<=zge;s+=1){var l=new xr({h:vZ(i,s),s:yZ(i,s),v:bZ(i,s)});n.push(l)}return t.theme==="dark"?mje.map(function(c){var u=c.index,d=c.amount;return new xr(t.backgroundColor||"#141414").mix(n[u],d).toHexString()}):n.map(function(c){return c.toHexString()})}var G1={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"},u9=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];u9.primary=u9[5];var d9=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];d9.primary=d9[5];var f9=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];f9.primary=f9[5];var l_=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];l_.primary=l_[5];var h9=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];h9.primary=h9[5];var p9=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];p9.primary=p9[5];var m9=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];m9.primary=m9[5];var g9=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];g9.primary=g9[5];var yv=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];yv.primary=yv[5];var v9=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];v9.primary=v9[5];var y9=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];y9.primary=y9[5];var b9=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];b9.primary=b9[5];var c_=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];c_.primary=c_[5];var gje=c_,O8={red:u9,volcano:d9,orange:f9,gold:l_,yellow:h9,lime:p9,green:m9,cyan:g9,blue:yv,geekblue:v9,purple:y9,magenta:b9,grey:c_},S9=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];S9.primary=S9[5];var C9=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];C9.primary=C9[5];var x9=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];x9.primary=x9[5];var w9=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];w9.primary=w9[5];var _9=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];_9.primary=_9[5];var E9=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];E9.primary=E9[5];var T9=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];T9.primary=T9[5];var k9=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];k9.primary=k9[5];var O9=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];O9.primary=O9[5];var P9=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];P9.primary=P9[5];var M9=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];M9.primary=M9[5];var I9=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];I9.primary=I9[5];var $9=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];$9.primary=$9[5];var vje={red:S9,volcano:C9,orange:x9,gold:w9,yellow:_9,lime:E9,green:T9,cyan:k9,blue:O9,geekblue:P9,purple:M9,magenta:I9,grey:$9};const yje=Object.freeze(Object.defineProperty({__proto__:null,blue:yv,blueDark:O9,cyan:g9,cyanDark:k9,geekblue:v9,geekblueDark:P9,generate:tg,gold:l_,goldDark:w9,gray:gje,green:m9,greenDark:T9,grey:c_,greyDark:$9,lime:p9,limeDark:E9,magenta:b9,magentaDark:I9,orange:f9,orangeDark:x9,presetDarkPalettes:vje,presetPalettes:O8,presetPrimaryColors:G1,purple:y9,purpleDark:M9,red:u9,redDark:S9,volcano:d9,volcanoDark:C9,yellow:h9,yellowDark:_9},Symbol.toStringTag,{value:"Module"})),gU={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"},Kb=Object.assign(Object.assign({},gU),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
||
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
||
'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 Uge(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:i,colorWarning:o,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=n(l),h=n(i),p=n(o),m=n(a),v=n(s),y=r(c,u),S=e.colorLink||e.colorInfo,b=n(S),C=new xr(m[1]).mix(new xr(m[3]),50).toHexString();return Object.assign(Object.assign({},y),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:h[1],colorSuccessBgHover:h[2],colorSuccessBorder:h[3],colorSuccessBorderHover:h[4],colorSuccessHover:h[4],colorSuccess:h[6],colorSuccessActive:h[7],colorSuccessTextHover:h[8],colorSuccessText:h[9],colorSuccessTextActive:h[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgFilledHover:C,colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new xr("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const bje=e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};function Sje(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:i+1},bje(r))}const Wge=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function P8(e){return(e+8)/e}function Cje(e){const t=new Array(10).fill(null).map((n,r)=>{const i=r-1,o=e*Math.pow(Math.E,i/5),a=r>1?Math.floor(o):Math.ceil(o);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:P8(n)}))}const Vge=e=>{const t=Cje(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),i=n[1],o=n[0],a=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:o,fontSize:i,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*i),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*o),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function xje(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const Qc=(e,t)=>new xr(e).setA(t).toRgbString(),Rx=(e,t)=>new xr(e).darken(t).toHexString(),wje=e=>{const t=tg(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},_je=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Qc(r,.88),colorTextSecondary:Qc(r,.65),colorTextTertiary:Qc(r,.45),colorTextQuaternary:Qc(r,.25),colorFill:Qc(r,.15),colorFillSecondary:Qc(r,.06),colorFillTertiary:Qc(r,.04),colorFillQuaternary:Qc(r,.02),colorBgSolid:Qc(r,1),colorBgSolidHover:Qc(r,.75),colorBgSolidActive:Qc(r,.95),colorBgLayout:Rx(n,4),colorBgContainer:Rx(n,0),colorBgElevated:Rx(n,0),colorBgSpotlight:Qc(r,.85),colorBgBlur:"transparent",colorBorder:Rx(n,15),colorBorderSecondary:Rx(n,6)}};function hE(e){G1.pink=G1.magenta,O8.pink=O8.magenta;const t=Object.keys(gU).map(n=>{const r=e[n]===G1[n]?O8[n]:tg(e[n]);return new Array(10).fill(1).reduce((i,o,a)=>(i[`${n}-${a+1}`]=r[a],i[`${n}${a+1}`]=r[a],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({},e),t),Uge(e,{generateColorPalettes:wje,generateNeutralColorPalettes:_je})),Vge(e.fontSize)),xje(e)),Wge(e)),Sje(e))}const Kge=vv(hE),u_={token:Kb,override:{override:Kb},hashed:!0},vU=ge.createContext(u_),d_="ant",vO="anticon",Eje=["outlined","borderless","filled"],Tje=(e,t)=>t||(e?`${d_}-${e}`:d_),hn=f.createContext({getPrefixCls:Tje,iconPrefixCls:vO});function pl(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function nF(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var SZ="data-rc-order",CZ="data-rc-priority",kje="rc-util-key",rF=new Map;function qge(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):kje}function yO(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Oje(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function yU(e){return Array.from((rF.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Gge(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!pl())return null;var n=t.csp,r=t.prepend,i=t.priority,o=i===void 0?0:i,a=Oje(r),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(SZ,a),s&&o&&l.setAttribute(CZ,"".concat(o)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=yO(t),u=c.firstChild;if(r){if(s){var d=(t.styles||yU(c)).filter(function(h){if(!["prepend","prependQueue"].includes(h.getAttribute(SZ)))return!1;var p=Number(h.getAttribute(CZ)||0);return o>=p});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function Yge(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=yO(t);return(t.styles||yU(n)).find(function(r){return r.getAttribute(qge(t))===e})}function iF(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Yge(e,t);if(n){var r=yO(t);r.removeChild(n)}}function Pje(e,t){var n=rF.get(e);if(!n||!nF(document,n)){var r=Gge("",t),i=r.parentNode;rF.set(e,i),e.removeChild(r)}}function bO(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=yO(n),i=yU(r),o=X(X({},n),{},{styles:i});Pje(r,o);var a=Yge(t,o);if(a){var s,l;if((s=o.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((l=o.csp)===null||l===void 0?void 0:l.nonce)){var c;a.nonce=(c=o.csp)===null||c===void 0?void 0:c.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var u=Gge(e,o);return u.setAttribute(qge(o),t),u}const Mje=`-ant-${Date.now()}-${Math.random()}`;function Ije(e,t){const n={},r=(a,s)=>{let l=a.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},i=(a,s)=>{const l=new xr(a),c=tg(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=c[1],n[`${s}-color-hover`]=c[4],n[`${s}-color-active`]=c[6],n[`${s}-color-outline`]=l.clone().setA(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=c[0],n[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){i(t.primaryColor,"primary");const a=new xr(t.primaryColor),s=tg(a.toRgbString());s.forEach((c,u)=>{n[`primary-${u+1}`]=c}),n["primary-color-deprecated-l-35"]=r(a,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(a,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(a,c=>c.setA(c.a*.12));const l=new xr(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,c=>c.setA(c.a*.3)),n["primary-color-active-deprecated-d-02"]=r(l,c=>c.darken(2))}return t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),`
|
||
:root {
|
||
${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(`
|
||
`)}
|
||
}
|
||
`.trim()}function $je(e,t){const n=Ije(e,t);pl()&&bO(n,`${Mje}-dynamic-theme`)}const Jo=f.createContext(!1),bU=e=>{let{children:t,disabled:n}=e;const r=f.useContext(Jo);return f.createElement(Jo.Provider,{value:n??r},t)},bv=f.createContext(void 0),Rje=e=>{let{children:t,size:n}=e;const r=f.useContext(bv);return f.createElement(bv.Provider,{value:n||r},t)};function Aje(){const e=f.useContext(Jo),t=f.useContext(bv);return{componentDisabled:e,componentSize:t}}function ku(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(o,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(o);if(fi(!l,"Warning: There may be circular references"),l)return!1;if(o===a)return!0;if(n&&s>1)return!1;r.add(o);var c=s+1;if(Array.isArray(o)){if(!Array.isArray(a)||o.length!==a.length)return!1;for(var u=0;u<o.length;u++)if(!i(o[u],a[u],c))return!1;return!0}if(o&&a&&ln(o)==="object"&&ln(a)==="object"){var d=Object.keys(o);return d.length!==Object.keys(a).length?!1:d.every(function(h){return i(o[h],a[h],c)})}return!1}return i(e,t)}var Xge=pi(function e(){hi(this,e)}),Qge="CALC_UNIT",Nje=new RegExp(Qge,"g");function iR(e){return typeof e=="number"?"".concat(e).concat(Qge):e}var Dje=function(e){Ys(n,e);var t=bl(n);function n(r,i){var o;hi(this,n),o=t.call(this),ae(On(o),"result",""),ae(On(o),"unitlessCssVar",void 0),ae(On(o),"lowPriority",void 0);var a=ln(r);return o.unitlessCssVar=i,r instanceof n?o.result="(".concat(r.result,")"):a==="number"?o.result=iR(r):a==="string"&&(o.result=r),o}return pi(n,[{key:"add",value:function(i){return i instanceof n?this.result="".concat(this.result," + ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," + ").concat(iR(i))),this.lowPriority=!0,this}},{key:"sub",value:function(i){return i instanceof n?this.result="".concat(this.result," - ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," - ").concat(iR(i))),this.lowPriority=!0,this}},{key:"mul",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," * ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," * ").concat(i)),this.lowPriority=!1,this}},{key:"div",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," / ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," / ").concat(i)),this.lowPriority=!1,this}},{key:"getResult",value:function(i){return this.lowPriority||i?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(i){var o=this,a=i||{},s=a.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(c){return o.result.includes(c)})&&(l=!1),this.result=this.result.replace(Nje,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(Xge),Lje=function(e){Ys(n,e);var t=bl(n);function n(r){var i;return hi(this,n),i=t.call(this),ae(On(i),"result",0),r instanceof n?i.result=r.result:typeof r=="number"&&(i.result=r),i}return pi(n,[{key:"add",value:function(i){return i instanceof n?this.result+=i.result:typeof i=="number"&&(this.result+=i),this}},{key:"sub",value:function(i){return i instanceof n?this.result-=i.result:typeof i=="number"&&(this.result-=i),this}},{key:"mul",value:function(i){return i instanceof n?this.result*=i.result:typeof i=="number"&&(this.result*=i),this}},{key:"div",value:function(i){return i instanceof n?this.result/=i.result:typeof i=="number"&&(this.result/=i),this}},{key:"equal",value:function(){return this.result}}]),n}(Xge),Zge=function(t,n){var r=t==="css"?Dje:Lje;return function(i){return new r(i,n)}},xZ=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function ur(e){var t=f.useRef();t.current=e;var n=f.useCallback(function(){for(var r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(o))},[]);return n}var wZ=pl()?f.useLayoutEffect:f.useEffect,Er=function(t,n){var r=f.useRef(!0);wZ(function(){return t(r.current)},n),wZ(function(){return r.current=!1,function(){r.current=!0}},[])},Y1=function(t,n){Er(function(r){if(!r)return t()},n)};function Sv(e){var t=f.useRef(!1),n=f.useState(e),r=Le(n,2),i=r[0],o=r[1];f.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(s,l){l&&t.current||o(s)}return[i,a]}function oR(e){return e!==void 0}function er(e,t){var n=t||{},r=n.defaultValue,i=n.value,o=n.onChange,a=n.postState,s=Sv(function(){return oR(i)?i:oR(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),l=Le(s,2),c=l[0],u=l[1],d=i!==void 0?i:c,h=a?a(d):d,p=ur(o),m=Sv([d]),v=Le(m,2),y=v[0],S=v[1];Y1(function(){var C=y[0];c!==C&&p(c,C)},[y]),Y1(function(){oR(i)||u(i)},[i]);var b=ur(function(C,_){u(C,_),S([d],_)});return[h,b]}function _Z(e,t,n,r){var i=X({},t[e]);if(r!=null&&r.deprecatedTokens){var o=r.deprecatedTokens;o.forEach(function(s){var l=Le(s,2),c=l[0],u=l[1];if(i!=null&&i[c]||i!=null&&i[u]){var d;(d=i[u])!==null&&d!==void 0||(i[u]=i==null?void 0:i[c])}})}var a=X(X({},n),i);return Object.keys(a).forEach(function(s){a[s]===t[s]&&delete a[s]}),a}var Jge=typeof CSSINJS_STATISTIC<"u",oF=!0;function dr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Jge)return Object.assign.apply(Object,[{}].concat(t));oF=!1;var r={};return t.forEach(function(i){if(ln(i)==="object"){var o=Object.keys(i);o.forEach(function(a){Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:function(){return i[a]}})})}}),oF=!0,r}var aF={};function Fje(){}var e1e=function(t){var n,r=t,i=Fje;return Jge&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(a,s){if(oF){var l;(l=n)===null||l===void 0||l.add(s)}return a[s]}}),i=function(a,s){var l;aF[a]={global:Array.from(n),component:X(X({},(l=aF[a])===null||l===void 0?void 0:l.component),s)}}),{token:r,keys:n,flush:i}};function EZ(e,t,n){if(typeof n=="function"){var r;return n(dr(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function jje(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return"max(".concat(r.map(function(o){return je(o)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return"min(".concat(r.map(function(o){return je(o)}).join(","),")")}}}var Bje=1e3*60*10,Hje=function(){function e(){hi(this,e),ae(this,"map",new Map),ae(this,"objectIDMap",new WeakMap),ae(this,"nextID",0),ae(this,"lastAccessBeat",new Map),ae(this,"accessBeat",0)}return pi(e,[{key:"set",value:function(n,r){this.clear();var i=this.getCompositeKey(n);this.map.set(i,r),this.lastAccessBeat.set(i,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),i=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,i}},{key:"getCompositeKey",value:function(n){var r=this,i=n.map(function(o){return o&&ln(o)==="object"?"obj_".concat(r.getObjectID(o)):"".concat(ln(o),"_").concat(o)});return i.join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);var r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){var n=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(i,o){r-i>Bje&&(n.map.delete(o),n.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e}(),TZ=new Hje;function zje(e,t){return ge.useMemo(function(){var n=TZ.get(t);if(n)return n;var r=e();return TZ.set(t,r),r},t)}var Uje=function(){return{}};function t1e(e){var t=e.useCSP,n=t===void 0?Uje:t,r=e.useToken,i=e.usePrefix,o=e.getResetStyles,a=e.getCommonStyle,s=e.getCompUnitless;function l(h,p,m,v){var y=Array.isArray(h)?h[0]:h;function S(k){return"".concat(String(y)).concat(k.slice(0,1).toUpperCase()).concat(k.slice(1))}var b=(v==null?void 0:v.unitless)||{},C=typeof s=="function"?s(h):{},_=X(X({},C),{},ae({},S("zIndexPopup"),!0));Object.keys(b).forEach(function(k){_[S(k)]=b[k]});var T=X(X({},v),{},{unitless:_,prefixToken:S}),x=u(h,p,m,T),E=c(y,m,T);return function(k){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k,P=x(k,M),D=Le(P,2),R=D[1],A=E(M),H=Le(A,2),F=H[0],z=H[1];return[F,R,z]}}function c(h,p,m){var v=m.unitless,y=m.injectStyle,S=y===void 0?!0:y,b=m.prefixToken,C=m.ignore,_=function(E){var k=E.rootCls,M=E.cssVar,P=M===void 0?{}:M,D=r(),R=D.realToken;return Rge({path:[h],prefix:P.prefix,key:P.key,unitless:v,ignore:C,token:R,scope:k},function(){var A=EZ(h,R,p),H=_Z(h,R,A,{deprecatedTokens:m==null?void 0:m.deprecatedTokens});return Object.keys(A).forEach(function(F){H[b(F)]=H[F],delete H[F]}),H}),null},T=function(E){var k=r(),M=k.cssVar;return[function(P){return S&&M?ge.createElement(ge.Fragment,null,ge.createElement(_,{rootCls:E,cssVar:M,component:h}),P):P},M==null?void 0:M.key]};return T}function u(h,p,m){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=Array.isArray(h)?h:[h,h],S=Le(y,1),b=S[0],C=y.join("-"),_=e.layer||{name:"antd"};return function(T){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:T,E=r(),k=E.theme,M=E.realToken,P=E.hashId,D=E.token,R=E.cssVar,A=i(),H=A.rootPrefixCls,F=A.iconPrefixCls,z=n(),W=R?"css":"js",q=zje(function(){var ie=new Set;return R&&Object.keys(v.unitless||{}).forEach(function(ce){ie.add(Y2(ce,R.prefix)),ie.add(Y2(ce,xZ(b,R.prefix)))}),Zge(W,ie)},[W,b,R==null?void 0:R.prefix]),Z=jje(W),N=Z.max,B=Z.min,V={theme:k,token:D,hashId:P,nonce:function(){return z.nonce},clientOnly:v.clientOnly,layer:_,order:v.order||-999};typeof o=="function"&&s_(X(X({},V),{},{clientOnly:!1,path:["Shared",H]}),function(){return o(D,{prefix:{rootPrefixCls:H,iconPrefixCls:F},csp:z})});var G=s_(X(X({},V),{},{path:[C,T,F]}),function(){if(v.injectStyle===!1)return[];var ie=e1e(D),ce=ie.token,fe=ie.flush,ee=EZ(b,M,m),ne=".".concat(T),ue=_Z(b,M,ee,{deprecatedTokens:v.deprecatedTokens});R&&ee&&ln(ee)==="object"&&Object.keys(ee).forEach(function(he){ee[he]="var(".concat(Y2(he,xZ(b,R.prefix)),")")});var ye=dr(ce,{componentCls:ne,prefixCls:T,iconCls:".".concat(F),antCls:".".concat(H),calc:q,max:N,min:B},R?ee:ue),me=p(ye,{hashId:P,prefixCls:T,rootPrefixCls:H,iconPrefixCls:F});fe(b,ue);var pe=typeof a=="function"?a(ye,T,x,v.resetFont):null;return[v.resetStyle===!1?null:pe,me]});return[G,P]}}function d(h,p,m){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=u(h,p,m,X({resetStyle:!1,order:-998},v)),S=function(C){var _=C.prefixCls,T=C.rootCls,x=T===void 0?_:T;return y(_,x),null};return S}return{genStyleHooks:l,genSubStyleComponent:d,genComponentStyleHook:u}}const Wje=Object.freeze(Object.defineProperty({__proto__:null,genCalc:Zge,genStyleUtils:t1e,mergeToken:dr,statistic:aF,statisticToken:e1e},Symbol.toStringTag,{value:"Module"})),Cv=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],fp="5.23.2";function aR(e){return e>=0&&e<=255}function NT(e,t){const{r:n,g:r,b:i,a:o}=new xr(e).toRgb();if(o<1)return e;const{r:a,g:s,b:l}=new xr(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-a*(1-c))/c),d=Math.round((r-s*(1-c))/c),h=Math.round((i-l*(1-c))/c);if(aR(u)&&aR(d)&&aR(h))return new xr({r:u,g:d,b:h,a:Math.round(c*100)/100}).toRgbString()}return new xr({r:n,g:r,b:i,a:1}).toRgbString()}var Vje=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function SU(e){const{override:t}=e,n=Vje(e,["override"]),r=Object.assign({},t);Object.keys(Kb).forEach(h=>{delete r[h]});const i=Object.assign(Object.assign({},n),r),o=480,a=576,s=768,l=992,c=1200,u=1600;if(i.motion===!1){const h="0s";i.motionDurationFast=h,i.motionDurationMid=h,i.motionDurationSlow=h}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:NT(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:NT(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:NT(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,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:NT(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:`
|
||
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
||
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
||
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
||
`,boxShadowSecondary:`
|
||
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
||
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
||
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
||
`,boxShadowTertiary:`
|
||
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
||
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
||
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
||
`,screenXS:o,screenXSMin:o,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
||
0 1px 2px -2px ${new xr("rgba(0, 0, 0, 0.16)").toRgbString()},
|
||
0 3px 6px 0 ${new xr("rgba(0, 0, 0, 0.12)").toRgbString()},
|
||
0 5px 12px 4px ${new xr("rgba(0, 0, 0, 0.09)").toRgbString()}
|
||
`,boxShadowDrawerRight:`
|
||
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
||
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
||
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
||
`,boxShadowDrawerLeft:`
|
||
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
||
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
||
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
||
`,boxShadowDrawerUp:`
|
||
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
||
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
||
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
||
`,boxShadowDrawerDown:`
|
||
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
||
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
||
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
||
`,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 kZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const n1e={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},Kje={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},qje={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},r1e=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:i}=t,o=kZ(t,["override"]);let a=Object.assign(Object.assign({},r),{override:i});return a=SU(a),o&&Object.entries(o).forEach(s=>{let[l,c]=s;const{theme:u}=c,d=kZ(c,["theme"]);let h=d;u&&(h=r1e(Object.assign(Object.assign({},a),d),{override:d},u)),a[l]=h}),a};function ta(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=ge.useContext(vU),o=`${fp}-${t||""}`,a=n||Kge,[s,l,c]=fU(a,[Kb,e],{salt:o,override:r,getComputedToken:r1e,formatToken:SU,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:n1e,ignore:Kje,preserve:qje}});return[a,c,t?l:"",s,i]}const Gl={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},$r=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},Kv=()=>({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"}}),Ld=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Gje=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),Yje=(e,t,n,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,o=n?`.${n}`:i,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},s),a),{[i]:a})}},Fd=(e,t)=>({outline:`${je(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),ml=(e,t)=>({"&:focus-visible":Object.assign({},Fd(e,t))}),i1e=e=>({[`.${e}`]:Object.assign(Object.assign({},Kv()),{[`.${e} .${e}-icon`]:{display:"block"}})}),CU=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},ml(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),{genStyleHooks:Tr,genComponentStyleHook:o1e,genSubStyleComponent:US}=t1e({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=f.useContext(hn);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=ta();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e}=f.useContext(hn);return e??{}},getResetStyles:(e,t)=>{var n;return[{"&":Gje(e)},i1e((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:vO)]},getCommonStyle:Yje,getCompUnitless:()=>n1e});function SO(e,t){return Cv.reduce((n,r)=>{const i=e[`${r}1`],o=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:o,darkColor:a,textColor:s}))},{})}const Xje=(e,t)=>{const[n,r]=ta();return s_({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[i1e(e)])},Qje=Object.assign({},G_),{useId:OZ}=Qje,Zje=()=>"",Jje=typeof OZ>"u"?Zje:OZ;function eBe(e,t,n){var r;Jf();const i=e||{},o=i.inherit===!1||!t?Object.assign(Object.assign({},u_),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:u_.hashed,cssVar:t==null?void 0:t.cssVar}):t,a=Jje();return dp(()=>{var s,l;if(!e)return t;const c=Object.assign({},o.components);Object.keys(e.components||{}).forEach(h=>{c[h]=Object.assign(Object.assign({},c[h]),e.components[h])});const u=`css-var-${a.replace(/:/g,"")}`,d=((s=i.cssVar)!==null&&s!==void 0?s:o.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof o.cssVar=="object"?o.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((l=i.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},o),i),{token:Object.assign(Object.assign({},o.token),i.token),components:c,cssVar:d})},[i,o],(s,l)=>s.some((c,u)=>{const d=l[u];return!ku(c,d,!0)}))}var tBe=["children"],a1e=f.createContext({});function s1e(e){var t=e.children,n=tn(e,tBe);return f.createElement(a1e.Provider,{value:n},t)}var nBe=function(e){Ys(n,e);var t=bl(n);function n(){return hi(this,n),t.apply(this,arguments)}return pi(n,[{key:"render",value:function(){return this.props.children}}]),n}(f.Component);function rBe(e){var t=f.useReducer(function(s){return s+1},0),n=Le(t,2),r=n[1],i=f.useRef(e),o=ur(function(){return i.current}),a=ur(function(s){i.current=typeof s=="function"?s(i.current):s,r()});return[o,a]}var sm="none",DT="appear",LT="enter",FT="leave",PZ="none",hd="prepare",Hy="start",zy="active",xU="end",l1e="prepared";function MZ(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function iBe(e,t){var n={animationend:MZ("Animation","AnimationEnd"),transitionend:MZ("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var oBe=iBe(pl(),typeof window<"u"?window:{}),c1e={};if(pl()){var aBe=document.createElement("div");c1e=aBe.style}var jT={};function u1e(e){if(jT[e])return jT[e];var t=oBe[e];if(t)for(var n=Object.keys(t),r=n.length,i=0;i<r;i+=1){var o=n[i];if(Object.prototype.hasOwnProperty.call(t,o)&&o in c1e)return jT[e]=t[o],jT[e]}return""}var d1e=u1e("animationend"),f1e=u1e("transitionend"),h1e=!!(d1e&&f1e),IZ=d1e||"animationend",$Z=f1e||"transitionend";function RZ(e,t){if(!e)return null;if(ln(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const sBe=function(e){var t=f.useRef();function n(i){i&&(i.removeEventListener($Z,e),i.removeEventListener(IZ,e))}function r(i){t.current&&t.current!==i&&n(t.current),i&&i!==t.current&&(i.addEventListener($Z,e),i.addEventListener(IZ,e),t.current=i)}return f.useEffect(function(){return function(){n(t.current)}},[]),[r,n]};var p1e=pl()?f.useLayoutEffect:f.useEffect;const lBe=function(){var e=f.useRef(null);function t(){Cr.cancel(e.current)}function n(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var o=Cr(function(){i<=1?r({isCanceled:function(){return o!==e.current}}):n(r,i-1)});e.current=o}return f.useEffect(function(){return function(){t()}},[]),[n,t]};var cBe=[hd,Hy,zy,xU],uBe=[hd,l1e],m1e=!1,dBe=!0;function g1e(e){return e===zy||e===xU}const fBe=function(e,t,n){var r=Sv(PZ),i=Le(r,2),o=i[0],a=i[1],s=lBe(),l=Le(s,2),c=l[0],u=l[1];function d(){a(hd,!0)}var h=t?uBe:cBe;return p1e(function(){if(o!==PZ&&o!==xU){var p=h.indexOf(o),m=h[p+1],v=n(o);v===m1e?a(m,!0):m&&c(function(y){function S(){y.isCanceled()||a(m,!0)}v===!0?S():Promise.resolve(v).then(S)})}},[e,o]),f.useEffect(function(){return function(){u()}},[]),[d,o]};function hBe(e,t,n,r){var i=r.motionEnter,o=i===void 0?!0:i,a=r.motionAppear,s=a===void 0?!0:a,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,d=r.motionLeaveImmediately,h=r.onAppearPrepare,p=r.onEnterPrepare,m=r.onLeavePrepare,v=r.onAppearStart,y=r.onEnterStart,S=r.onLeaveStart,b=r.onAppearActive,C=r.onEnterActive,_=r.onLeaveActive,T=r.onAppearEnd,x=r.onEnterEnd,E=r.onLeaveEnd,k=r.onVisibleChanged,M=Sv(),P=Le(M,2),D=P[0],R=P[1],A=rBe(sm),H=Le(A,2),F=H[0],z=H[1],W=Sv(null),q=Le(W,2),Z=q[0],N=q[1],B=F(),V=f.useRef(!1),G=f.useRef(null);function ie(){return n()}var ce=f.useRef(!1);function fe(){z(sm),N(null,!0)}var ee=ur(function(Te){var ke=F();if(ke!==sm){var Pe=ie();if(!(Te&&!Te.deadline&&Te.target!==Pe)){var Ne=ce.current,We;ke===DT&&Ne?We=T==null?void 0:T(Pe,Te):ke===LT&&Ne?We=x==null?void 0:x(Pe,Te):ke===FT&&Ne&&(We=E==null?void 0:E(Pe,Te)),Ne&&We!==!1&&fe()}}}),ne=sBe(ee),ue=Le(ne,1),ye=ue[0],me=function(ke){switch(ke){case DT:return ae(ae(ae({},hd,h),Hy,v),zy,b);case LT:return ae(ae(ae({},hd,p),Hy,y),zy,C);case FT:return ae(ae(ae({},hd,m),Hy,S),zy,_);default:return{}}},pe=f.useMemo(function(){return me(B)},[B]),he=fBe(B,!e,function(Te){if(Te===hd){var ke=pe[hd];return ke?ke(ie()):m1e}if(xe in pe){var Pe;N(((Pe=pe[xe])===null||Pe===void 0?void 0:Pe.call(pe,ie(),null))||null)}return xe===zy&&B!==sm&&(ye(ie()),u>0&&(clearTimeout(G.current),G.current=setTimeout(function(){ee({deadline:!0})},u))),xe===l1e&&fe(),dBe}),_e=Le(he,2),le=_e[0],xe=_e[1],we=g1e(xe);ce.current=we;var De=f.useRef(null);p1e(function(){if(!(V.current&&De.current===t)){R(t);var Te=V.current;V.current=!0;var ke;!Te&&t&&s&&(ke=DT),Te&&t&&o&&(ke=LT),(Te&&!t&&c||!Te&&d&&!t&&c)&&(ke=FT);var Pe=me(ke);ke&&(e||Pe[hd])?(z(ke),le()):z(sm),De.current=t}},[t]),f.useEffect(function(){(B===DT&&!s||B===LT&&!o||B===FT&&!c)&&z(sm)},[s,o,c]),f.useEffect(function(){return function(){V.current=!1,clearTimeout(G.current)}},[]);var Fe=f.useRef(!1);f.useEffect(function(){D&&(Fe.current=!0),D!==void 0&&B===sm&&((Fe.current||D)&&(k==null||k(D)),Fe.current=!0)},[D,B]);var Ce=Z;return pe[hd]&&xe===Hy&&(Ce=X({transition:"none"},Ce)),[B,xe,Ce,D??t]}function pBe(e){var t=e;ln(e)==="object"&&(t=e.transitionSupport);function n(i,o){return!!(i.motionName&&t&&o!==!1)}var r=f.forwardRef(function(i,o){var a=i.visible,s=a===void 0?!0:a,l=i.removeOnLeave,c=l===void 0?!0:l,u=i.forceRender,d=i.children,h=i.motionName,p=i.leavedClassName,m=i.eventProps,v=f.useContext(a1e),y=v.motion,S=n(i,y),b=f.useRef(),C=f.useRef();function _(){try{return b.current instanceof HTMLElement?b.current:q2(C.current)}catch{return null}}var T=hBe(S,s,_,i),x=Le(T,4),E=x[0],k=x[1],M=x[2],P=x[3],D=f.useRef(P);P&&(D.current=!0);var R=f.useCallback(function(q){b.current=q,t_(o,q)},[o]),A,H=X(X({},m),{},{visible:s});if(!d)A=null;else if(E===sm)P?A=d(X({},H),R):!c&&D.current&&p?A=d(X(X({},H),{},{className:p}),R):u||!c&&!p?A=d(X(X({},H),{},{style:{display:"none"}}),R):A=null;else{var F;k===hd?F="prepare":g1e(k)?F="active":k===Hy&&(F="start");var z=RZ(h,"".concat(E,"-").concat(F));A=d(X(X({},H),{},{className:Re(RZ(h,E),ae(ae({},z,z&&F),h,typeof h=="string")),style:M}),R)}if(f.isValidElement(A)&&Dd(A)){var W=mg(A);W||(A=f.cloneElement(A,{ref:R}))}return f.createElement(nBe,{ref:C},A)});return r.displayName="CSSMotion",r}const fa=pBe(h1e);var sF="add",lF="keep",cF="remove",sR="removed";function mBe(e){var t;return e&&ln(e)==="object"&&"key"in e?t=e:t={key:e},X(X({},t),{},{key:String(t.key)})}function uF(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(mBe)}function gBe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,i=t.length,o=uF(e),a=uF(t);o.forEach(function(c){for(var u=!1,d=r;d<i;d+=1){var h=a[d];if(h.key===c.key){r<d&&(n=n.concat(a.slice(r,d).map(function(p){return X(X({},p),{},{status:sF})})),r=d),n.push(X(X({},h),{},{status:lF})),r+=1,u=!0;break}}u||n.push(X(X({},c),{},{status:cF}))}),r<i&&(n=n.concat(a.slice(r).map(function(c){return X(X({},c),{},{status:sF})})));var s={};n.forEach(function(c){var u=c.key;s[u]=(s[u]||0)+1});var l=Object.keys(s).filter(function(c){return s[c]>1});return l.forEach(function(c){n=n.filter(function(u){var d=u.key,h=u.status;return d!==c||h!==cF}),n.forEach(function(u){u.key===c&&(u.status=lF)})}),n}var vBe=["component","children","onVisibleChanged","onAllRemoved"],yBe=["status"],bBe=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function SBe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:fa,n=function(r){Ys(o,r);var i=bl(o);function o(){var a;hi(this,o);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return a=i.call.apply(i,[this].concat(l)),ae(On(a),"state",{keyEntities:[]}),ae(On(a),"removeKey",function(u){a.setState(function(d){var h=d.keyEntities.map(function(p){return p.key!==u?p:X(X({},p),{},{status:sR})});return{keyEntities:h}},function(){var d=a.state.keyEntities,h=d.filter(function(p){var m=p.status;return m!==sR}).length;h===0&&a.props.onAllRemoved&&a.props.onAllRemoved()})}),a}return pi(o,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,u=c.component,d=c.children,h=c.onVisibleChanged;c.onAllRemoved;var p=tn(c,vBe),m=u||f.Fragment,v={};return bBe.forEach(function(y){v[y]=p[y],delete p[y]}),delete p.keys,f.createElement(m,p,l.map(function(y,S){var b=y.status,C=tn(y,yBe),_=b===sF||b===lF;return f.createElement(t,st({},v,{key:C.key,visible:_,eventProps:C,onVisibleChanged:function(x){h==null||h(x,{key:C.key}),x||s.removeKey(C.key)}}),function(T,x){return d(X(X({},T),{},{index:S}),x)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,u=l.keyEntities,d=uF(c),h=gBe(u,d);return{keyEntities:h.filter(function(p){var m=u.find(function(v){var y=v.key;return p.key===y});return!(m&&m.status===sR&&p.status===cF)})}}}]),o}(f.Component);return ae(n,"defaultProps",{component:"div"}),n}const CO=SBe(h1e),CBe=Object.freeze(Object.defineProperty({__proto__:null,CSSMotionList:CO,Provider:s1e,default:fa},Symbol.toStringTag,{value:"Module"}));function xBe(e){const{children:t}=e,[,n]=ta(),{motion:r}=n,i=f.useRef(!1);return i.current=i.current||r===!1,i.current?f.createElement(s1e,{motion:r},t):t}const wBe=()=>null;var _Be=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const EBe=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let R9,v1e,y1e,b1e;function M8(){return R9||d_}function TBe(){return v1e||vO}function kBe(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const OBe=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:i}=e;t!==void 0&&(R9=t),n!==void 0&&(v1e=n),"holderRender"in e&&(b1e=i),r&&(kBe(r)?$je(M8(),r):y1e=r)},S1e=()=>({getPrefixCls:(e,t)=>t||(e?`${M8()}-${e}`:M8()),getIconPrefixCls:TBe,getRootPrefixCls:()=>R9||M8(),getTheme:()=>y1e,holderRender:b1e}),PBe=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:i,anchor:o,form:a,locale:s,componentSize:l,direction:c,space:u,splitter:d,virtual:h,dropdownMatchSelectWidth:p,popupMatchSelectWidth:m,popupOverflow:v,legacyLocale:y,parentContext:S,iconPrefixCls:b,theme:C,componentDisabled:_,segmented:T,statistic:x,spin:E,calendar:k,carousel:M,cascader:P,collapse:D,typography:R,checkbox:A,descriptions:H,divider:F,drawer:z,skeleton:W,steps:q,image:Z,layout:N,list:B,mentions:V,modal:G,progress:ie,result:ce,slider:fe,breadcrumb:ee,menu:ne,pagination:ue,input:ye,textArea:me,empty:pe,badge:he,radio:_e,rate:le,switch:xe,transfer:we,avatar:De,message:Fe,tag:Ce,table:Te,card:ke,tabs:Pe,timeline:Ne,timePicker:We,upload:Q,notification:K,tree:J,colorPicker:be,datePicker:Oe,rangePicker:Se,flex:Ke,wave:tt,dropdown:se,warning:ze,tour:Ye,tooltip:Ue,popover:Je,popconfirm:Ze,floatButtonGroup:rt,variant:qt,inputNumber:St,treeSelect:Ot}=e,Bt=f.useCallback((Lt,Zt)=>{const{prefixCls:Wt}=e;if(Zt)return Zt;const At=Wt||S.getPrefixCls("");return Lt?`${At}-${Lt}`:At},[S.getPrefixCls,e.prefixCls]),Dt=b||S.iconPrefixCls||vO,an=n||S.csp;Xje(Dt,an);const Vt=eBe(C,S.theme,{prefixCls:Bt("")}),Kt={csp:an,autoInsertSpaceInButton:r,alert:i,anchor:o,locale:s||y,direction:c,space:u,splitter:d,virtual:h,popupMatchSelectWidth:m??p,popupOverflow:v,getPrefixCls:Bt,iconPrefixCls:Dt,theme:Vt,segmented:T,statistic:x,spin:E,calendar:k,carousel:M,cascader:P,collapse:D,typography:R,checkbox:A,descriptions:H,divider:F,drawer:z,skeleton:W,steps:q,image:Z,input:ye,textArea:me,layout:N,list:B,mentions:V,modal:G,progress:ie,result:ce,slider:fe,breadcrumb:ee,menu:ne,pagination:ue,empty:pe,badge:he,radio:_e,rate:le,switch:xe,transfer:we,avatar:De,message:Fe,tag:Ce,table:Te,card:ke,tabs:Pe,timeline:Ne,timePicker:We,upload:Q,notification:K,tree:J,colorPicker:be,datePicker:Oe,rangePicker:Se,flex:Ke,wave:tt,dropdown:se,warning:ze,tour:Ye,tooltip:Ue,popover:Je,popconfirm:Ze,floatButtonGroup:rt,variant:qt,inputNumber:St,treeSelect:Ot},Qt=Object.assign({},S);Object.keys(Kt).forEach(Lt=>{Kt[Lt]!==void 0&&(Qt[Lt]=Kt[Lt])}),EBe.forEach(Lt=>{const Zt=e[Lt];Zt&&(Qt[Lt]=Zt)}),typeof r<"u"&&(Qt.button=Object.assign({autoInsertSpace:r},Qt.button));const et=dp(()=>Qt,Qt,(Lt,Zt)=>{const Wt=Object.keys(Lt),At=Object.keys(Zt);return Wt.length!==At.length||Wt.some($t=>Lt[$t]!==Zt[$t])}),ot=f.useMemo(()=>({prefixCls:Dt,csp:an}),[Dt,an]);let Qe=f.createElement(f.Fragment,null,f.createElement(wBe,{dropdownMatchSelectWidth:p}),t);const ut=f.useMemo(()=>{var Lt,Zt,Wt,At;return By(((Lt=Lc.Form)===null||Lt===void 0?void 0:Lt.defaultValidateMessages)||{},((Wt=(Zt=et.locale)===null||Zt===void 0?void 0:Zt.Form)===null||Wt===void 0?void 0:Wt.defaultValidateMessages)||{},((At=et.form)===null||At===void 0?void 0:At.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[et,a==null?void 0:a.validateMessages]);Object.keys(ut).length>0&&(Qe=f.createElement(Dge.Provider,{value:ut},Qe)),s&&(Qe=f.createElement(uje,{locale:s,_ANT_MARK__:cje},Qe)),(Dt||an)&&(Qe=f.createElement(gO.Provider,{value:ot},Qe)),l&&(Qe=f.createElement(Rje,{size:l},Qe)),Qe=f.createElement(xBe,null,Qe);const Nt=f.useMemo(()=>{const Lt=Vt||{},{algorithm:Zt,token:Wt,components:At,cssVar:$t}=Lt,Gt=_Be(Lt,["algorithm","token","components","cssVar"]),Ft=Zt&&(!Array.isArray(Zt)||Zt.length>0)?vv(Zt):Kge,cn={};Object.entries(At||{}).forEach(jt=>{let[nn,Ht]=jt;const Tt=Object.assign({},Ht);"algorithm"in Tt&&(Tt.algorithm===!0?Tt.theme=Ft:(Array.isArray(Tt.algorithm)||typeof Tt.algorithm=="function")&&(Tt.theme=vv(Tt.algorithm)),delete Tt.algorithm),cn[nn]=Tt});const _t=Object.assign(Object.assign({},Kb),Wt);return Object.assign(Object.assign({},Gt),{theme:Ft,token:_t,components:cn,override:Object.assign({override:_t},cn),cssVar:$t})},[Vt]);return C&&(Qe=f.createElement(vU.Provider,{value:Nt},Qe)),et.warning&&(Qe=f.createElement(aje.Provider,{value:et.warning},Qe)),_!==void 0&&(Qe=f.createElement(bU,{disabled:_},Qe)),f.createElement(hn.Provider,{value:et},Qe)},ar=e=>{const t=f.useContext(hn),n=f.useContext(mU);return f.createElement(PBe,Object.assign({parentContext:t,legacyLocale:n},e))};ar.ConfigContext=hn;ar.SizeContext=bv;ar.config=OBe;ar.useConfig=Aje;Object.defineProperty(ar,"SizeContext",{get:()=>bv});var MBe={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"};function C1e(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function IBe(e){return C1e(e)instanceof ShadowRoot}function A9(e){return IBe(e)?C1e(e):null}function $Be(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function dF(e,t){fi(e,"[@ant-design/icons] ".concat(t))}function AZ(e){return ln(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(ln(e.icon)==="object"||typeof e.icon=="function")}function NZ(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[$Be(n)]=r}return t},{})}function fF(e,t,n){return n?ge.createElement(e.tag,X(X({key:t},NZ(e.attrs)),n),(e.children||[]).map(function(r,i){return fF(r,"".concat(t,"-").concat(e.tag,"-").concat(i))})):ge.createElement(e.tag,X({key:t},NZ(e.attrs)),(e.children||[]).map(function(r,i){return fF(r,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function x1e(e){return tg(e)[0]}function w1e(e){return e?Array.isArray(e)?e:[e]:[]}var RBe={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},ABe=`
|
||
.anticon {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
color: inherit;
|
||
font-style: normal;
|
||
line-height: 0;
|
||
text-align: center;
|
||
text-transform: none;
|
||
vertical-align: -0.125em;
|
||
text-rendering: optimizeLegibility;
|
||
-webkit-font-smoothing: antialiased;
|
||
-moz-osx-font-smoothing: grayscale;
|
||
}
|
||
|
||
.anticon > * {
|
||
line-height: 1;
|
||
}
|
||
|
||
.anticon svg {
|
||
display: inline-block;
|
||
}
|
||
|
||
.anticon::before {
|
||
display: none;
|
||
}
|
||
|
||
.anticon .anticon-icon {
|
||
display: block;
|
||
}
|
||
|
||
.anticon[tabindex] {
|
||
cursor: pointer;
|
||
}
|
||
|
||
.anticon-spin::before,
|
||
.anticon-spin {
|
||
display: inline-block;
|
||
-webkit-animation: loadingCircle 1s infinite linear;
|
||
animation: loadingCircle 1s infinite linear;
|
||
}
|
||
|
||
@-webkit-keyframes loadingCircle {
|
||
100% {
|
||
-webkit-transform: rotate(360deg);
|
||
transform: rotate(360deg);
|
||
}
|
||
}
|
||
|
||
@keyframes loadingCircle {
|
||
100% {
|
||
-webkit-transform: rotate(360deg);
|
||
transform: rotate(360deg);
|
||
}
|
||
}
|
||
`,_1e=function(t){var n=f.useContext(gO),r=n.csp,i=n.prefixCls,o=n.layer,a=ABe;i&&(a=a.replace(/anticon/g,i)),o&&(a="@layer ".concat(o,` {
|
||
`).concat(a,`
|
||
}`)),f.useEffect(function(){var s=t.current,l=A9(s);bO(a,"@ant-design-icons",{prepend:!o,csp:r,attachTo:l})},[])},NBe=["icon","className","onClick","style","primaryColor","secondaryColor"],Q2={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function DBe(e){var t=e.primaryColor,n=e.secondaryColor;Q2.primaryColor=t,Q2.secondaryColor=n||x1e(t),Q2.calculated=!!n}function LBe(){return X({},Q2)}var WS=function(t){var n=t.icon,r=t.className,i=t.onClick,o=t.style,a=t.primaryColor,s=t.secondaryColor,l=tn(t,NBe),c=f.useRef(),u=Q2;if(a&&(u={primaryColor:a,secondaryColor:s||x1e(a)}),_1e(c),dF(AZ(n),"icon should be icon definiton, but got ".concat(n)),!AZ(n))return null;var d=n;return d&&typeof d.icon=="function"&&(d=X(X({},d),{},{icon:d.icon(u.primaryColor,u.secondaryColor)})),fF(d.icon,"svg-".concat(d.name),X(X({className:r,onClick:i,style:o,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};WS.displayName="IconReact";WS.getTwoToneColors=LBe;WS.setTwoToneColors=DBe;function E1e(e){var t=w1e(e),n=Le(t,2),r=n[0],i=n[1];return WS.setTwoToneColors({primaryColor:r,secondaryColor:i})}function FBe(){var e=WS.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var jBe=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];E1e(yv.primary);var Yn=f.forwardRef(function(e,t){var n=e.className,r=e.icon,i=e.spin,o=e.rotate,a=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=tn(e,jBe),u=f.useContext(gO),d=u.prefixCls,h=d===void 0?"anticon":d,p=u.rootClassName,m=Re(p,h,ae(ae({},"".concat(h,"-").concat(r.name),!!r.name),"".concat(h,"-spin"),!!i||r.name==="loading"),n),v=a;v===void 0&&s&&(v=-1);var y=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,S=w1e(l),b=Le(S,2),C=b[0],_=b[1];return f.createElement("span",st({role:"img","aria-label":r.name},c,{ref:t,tabIndex:v,onClick:s,className:m}),f.createElement(WS,{icon:r,primaryColor:C,secondaryColor:_,style:y}))});Yn.displayName="AntdIcon";Yn.getTwoToneColor=FBe;Yn.setTwoToneColor=E1e;var BBe=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:MBe}))},qv=f.forwardRef(BBe),HBe={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"},zBe=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:HBe}))},eh=f.forwardRef(zBe),UBe={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"},WBe=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:UBe}))},th=f.forwardRef(WBe),VBe={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"},KBe=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:VBe}))},gg=f.forwardRef(KBe),qBe={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"},GBe=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:qBe}))},xO=f.forwardRef(GBe),YBe=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
||
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
||
charSet checked classID className colSpan cols content contentEditable contextMenu
|
||
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
||
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
||
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
||
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
||
mediaGroup method min minLength multiple muted name noValidate nonce open
|
||
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
||
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
||
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
||
summary tabIndex target title type useMap value width wmode wrap`,XBe=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
||
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
||
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
||
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
||
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
||
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
||
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,QBe="".concat(YBe," ").concat(XBe).split(/[\s\n]+/),ZBe="aria-",JBe="data-";function DZ(e,t){return e.indexOf(t)===0}function Bi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=X({},t);var r={};return Object.keys(e).forEach(function(i){(n.aria&&(i==="role"||DZ(i,ZBe))||n.data&&DZ(i,JBe)||n.attr&&QBe.includes(i))&&(r[i]=e[i])}),r}function T1e(e){return e&&ge.isValidElement(e)&&e.type===ge.Fragment}const wU=(e,t,n)=>ge.isValidElement(e)?ge.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function Io(e,t){return wU(e,e,t)}const BT=(e,t,n,r,i)=>({background:e,border:`${je(r.lineWidth)} ${r.lineType} ${t}`,[`${i}-icon`]:{color:n}}),eHe=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:i,fontSize:o,fontSizeLG:a,lineHeight:s,borderRadiusLG:l,motionEaseInOutCirc:c,withDescriptionIconSize:u,colorText:d,colorTextHeading:h,withDescriptionPadding:p,defaultPadding:m}=e;return{[t]:Object.assign(Object.assign({},$r(e)),{position:"relative",display:"flex",alignItems:"center",padding:m,wordWrap:"break-word",borderRadius:l,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:o,lineHeight:s},"&-message":{color:h},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${c}, opacity ${n} ${c},
|
||
padding-top ${n} ${c}, padding-bottom ${n} ${c},
|
||
margin-bottom ${n} ${c}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:p,[`${t}-icon`]:{marginInlineEnd:i,fontSize:u,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:h,fontSize:a},[`${t}-description`]:{display:"block",color:d}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},tHe=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:i,colorWarning:o,colorWarningBorder:a,colorWarningBg:s,colorError:l,colorErrorBorder:c,colorErrorBg:u,colorInfo:d,colorInfoBorder:h,colorInfoBg:p}=e;return{[t]:{"&-success":BT(i,r,n,e,t),"&-info":BT(p,h,d,e,t),"&-warning":BT(s,a,o,e,t),"&-error":Object.assign(Object.assign({},BT(u,c,l,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},nHe=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:i,fontSizeIcon:o,colorIcon:a,colorIconHover:s}=e;return{[t]:{"&-action":{marginInlineStart:i},[`${t}-close-icon`]:{marginInlineStart:i,padding:0,overflow:"hidden",fontSize:o,lineHeight:je(o),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:a,transition:`color ${r}`,"&:hover":{color:s}}},"&-close-text":{color:a,transition:`color ${r}`,"&:hover":{color:s}}}}},rHe=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),iHe=Tr("Alert",e=>[eHe(e),tHe(e),nHe(e)],rHe);var LZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const oHe={success:qv,info:xO,error:eh,warning:gg},aHe=e=>{const{icon:t,prefixCls:n,type:r}=e,i=oHe[r]||null;return t?wU(t,f.createElement("span",{className:`${n}-icon`},t),()=>({className:Re(`${n}-icon`,t.props.className)})):f.createElement(i,{className:`${n}-icon`})},sHe=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:i,ariaProps:o}=e,a=r===!0||r===void 0?f.createElement(th,null):r;return t?f.createElement("button",Object.assign({type:"button",onClick:i,className:`${n}-close-icon`,tabIndex:0},o),a):null},k1e=f.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:i,banner:o,className:a,rootClassName:s,style:l,onMouseEnter:c,onMouseLeave:u,onClick:d,afterClose:h,showIcon:p,closable:m,closeText:v,closeIcon:y,action:S,id:b}=e,C=LZ(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[_,T]=f.useState(!1),x=f.useRef(null);f.useImperativeHandle(t,()=>({nativeElement:x.current}));const{getPrefixCls:E,direction:k,alert:M}=f.useContext(hn),P=E("alert",r),[D,R,A]=iHe(P),H=V=>{var G;T(!0),(G=e.onClose)===null||G===void 0||G.call(e,V)},F=f.useMemo(()=>e.type!==void 0?e.type:o?"warning":"info",[e.type,o]),z=f.useMemo(()=>typeof m=="object"&&m.closeIcon||v?!0:typeof m=="boolean"?m:y!==!1&&y!==null&&y!==void 0?!0:!!(M!=null&&M.closable),[v,y,m,M==null?void 0:M.closable]),W=o&&p===void 0?!0:p,q=Re(P,`${P}-${F}`,{[`${P}-with-description`]:!!n,[`${P}-no-icon`]:!W,[`${P}-banner`]:!!o,[`${P}-rtl`]:k==="rtl"},M==null?void 0:M.className,a,s,A,R),Z=Bi(C,{aria:!0,data:!0}),N=f.useMemo(()=>{var V,G;return typeof m=="object"&&m.closeIcon?m.closeIcon:v||(y!==void 0?y:typeof(M==null?void 0:M.closable)=="object"&&(!((V=M==null?void 0:M.closable)===null||V===void 0)&&V.closeIcon)?(G=M==null?void 0:M.closable)===null||G===void 0?void 0:G.closeIcon:M==null?void 0:M.closeIcon)},[y,m,v,M==null?void 0:M.closeIcon]),B=f.useMemo(()=>{const V=m??(M==null?void 0:M.closable);return typeof V=="object"?LZ(V,["closeIcon"]):{}},[m,M==null?void 0:M.closable]);return D(f.createElement(fa,{visible:!_,motionName:`${P}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:V=>({maxHeight:V.offsetHeight}),onLeaveEnd:h},(V,G)=>{let{className:ie,style:ce}=V;return f.createElement("div",Object.assign({id:b,ref:ga(x,G),"data-show":!_,className:Re(q,ie),style:Object.assign(Object.assign(Object.assign({},M==null?void 0:M.style),l),ce),onMouseEnter:c,onMouseLeave:u,onClick:d,role:"alert"},Z),W?f.createElement(aHe,{description:n,icon:e.icon,prefixCls:P,type:F}):null,f.createElement("div",{className:`${P}-content`},i?f.createElement("div",{className:`${P}-message`},i):null,n?f.createElement("div",{className:`${P}-description`},n):null),S?f.createElement("div",{className:`${P}-action`},S):null,f.createElement(sHe,{isClosable:z,prefixCls:P,closeIcon:N,handleClose:H,ariaProps:B}))}))});function lHe(e,t,n){return t=gv(t),rge(e,dO()?Reflect.construct(t,n||[],gv(e).constructor):t.apply(e,n))}let cHe=function(e){function t(){var n;return hi(this,t),n=lHe(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return Ys(t,e),pi(t,[{key:"componentDidCatch",value:function(r,i){this.setState({error:r,info:i})}},{key:"render",value:function(){const{message:r,description:i,id:o,children:a}=this.props,{error:s,info:l}=this.state,c=(l==null?void 0:l.componentStack)||null,u=typeof r>"u"?(s||"").toString():r,d=typeof i>"u"?c:i;return s?f.createElement(k1e,{id:o,type:"error",message:u,description:f.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},d)}):a}}])}(f.Component);const O1e=k1e;O1e.ErrorBoundary=cHe;const FZ=e=>typeof e=="object"&&e!=null&&e.nodeType===1,jZ=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",lR=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return jZ(n.overflowY,t)||jZ(n.overflowX,t)||(r=>{const i=(o=>{if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!i&&(i.clientHeight<r.scrollHeight||i.clientWidth<r.scrollWidth)})(e)}return!1},HT=(e,t,n,r,i,o,a,s)=>o<e&&a>t||o>e&&a<t?0:o<=e&&s<=n||a>=t&&s>=n?o-e-r:a>t&&s<n||o<e&&s>n?a-t+i:0,uHe=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},BZ=(e,t)=>{var n,r,i,o;if(typeof document>"u")return[];const{scrollMode:a,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,d=typeof c=="function"?c:z=>z!==c;if(!FZ(e))throw new TypeError("Invalid target");const h=document.scrollingElement||document.documentElement,p=[];let m=e;for(;FZ(m)&&d(m);){if(m=uHe(m),m===h){p.push(m);break}m!=null&&m===document.body&&lR(m)&&!lR(document.documentElement)||m!=null&&lR(m,u)&&p.push(m)}const v=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,y=(o=(i=window.visualViewport)==null?void 0:i.height)!=null?o:innerHeight,{scrollX:S,scrollY:b}=window,{height:C,width:_,top:T,right:x,bottom:E,left:k}=e.getBoundingClientRect(),{top:M,right:P,bottom:D,left:R}=(z=>{const W=window.getComputedStyle(z);return{top:parseFloat(W.scrollMarginTop)||0,right:parseFloat(W.scrollMarginRight)||0,bottom:parseFloat(W.scrollMarginBottom)||0,left:parseFloat(W.scrollMarginLeft)||0}})(e);let A=s==="start"||s==="nearest"?T-M:s==="end"?E+D:T+C/2-M+D,H=l==="center"?k+_/2-R+P:l==="end"?x+P:k-R;const F=[];for(let z=0;z<p.length;z++){const W=p[z],{height:q,width:Z,top:N,right:B,bottom:V,left:G}=W.getBoundingClientRect();if(a==="if-needed"&&T>=0&&k>=0&&E<=y&&x<=v&&T>=N&&E<=V&&k>=G&&x<=B)return F;const ie=getComputedStyle(W),ce=parseInt(ie.borderLeftWidth,10),fe=parseInt(ie.borderTopWidth,10),ee=parseInt(ie.borderRightWidth,10),ne=parseInt(ie.borderBottomWidth,10);let ue=0,ye=0;const me="offsetWidth"in W?W.offsetWidth-W.clientWidth-ce-ee:0,pe="offsetHeight"in W?W.offsetHeight-W.clientHeight-fe-ne:0,he="offsetWidth"in W?W.offsetWidth===0?0:Z/W.offsetWidth:0,_e="offsetHeight"in W?W.offsetHeight===0?0:q/W.offsetHeight:0;if(h===W)ue=s==="start"?A:s==="end"?A-y:s==="nearest"?HT(b,b+y,y,fe,ne,b+A,b+A+C,C):A-y/2,ye=l==="start"?H:l==="center"?H-v/2:l==="end"?H-v:HT(S,S+v,v,ce,ee,S+H,S+H+_,_),ue=Math.max(0,ue+b),ye=Math.max(0,ye+S);else{ue=s==="start"?A-N-fe:s==="end"?A-V+ne+pe:s==="nearest"?HT(N,V,q,fe,ne+pe,A,A+C,C):A-(N+q/2)+pe/2,ye=l==="start"?H-G-ce:l==="center"?H-(G+Z/2)+me/2:l==="end"?H-B+ee+me:HT(G,B,Z,ce,ee+me,H,H+_,_);const{scrollLeft:le,scrollTop:xe}=W;ue=_e===0?0:Math.max(0,Math.min(xe+ue/_e,W.scrollHeight-q/_e+pe)),ye=he===0?0:Math.max(0,Math.min(le+ye/he,W.scrollWidth-Z/he+me)),A+=xe-ue,H+=le-ye}F.push({el:W,top:ue,left:ye})}return F},dHe=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function fHe(e,t){if(!e.isConnected||!(i=>{let o=i;for(;o&&o.parentNode;){if(o.parentNode===document)return!0;o=o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}return!1})(e))return;const n=(i=>{const o=window.getComputedStyle(i);return{top:parseFloat(o.scrollMarginTop)||0,right:parseFloat(o.scrollMarginRight)||0,bottom:parseFloat(o.scrollMarginBottom)||0,left:parseFloat(o.scrollMarginLeft)||0}})(e);if((i=>typeof i=="object"&&typeof i.behavior=="function")(t))return t.behavior(BZ(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:i,top:o,left:a}of BZ(e,dHe(t))){const s=o-n.top+n.bottom,l=a-n.left+n.right;i.scroll({top:s,left:l,behavior:r})}}function hF(e){return e!=null&&e===e.window}const hHe=e=>{var t,n;if(typeof window>"u")return 0;let r=0;return hF(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!hF(e)&&typeof r!="number"&&(r=(n=((t=e.ownerDocument)!==null&&t!==void 0?t:e).documentElement)===null||n===void 0?void 0:n.scrollTop),r};function pHe(e,t,n,r){const i=n-t;return e/=r/2,e<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t}function mHe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:r,duration:i=450}=t,o=n(),a=hHe(o),s=Date.now(),l=()=>{const u=Date.now()-s,d=pHe(u>i?i:u,a,e,i);hF(o)?o.scrollTo(window.pageXOffset,d):o instanceof Document||o.constructor.name==="HTMLDocument"?o.documentElement.scrollTop=d:o.scrollTop=d,u<i?Cr(l):typeof r=="function"&&r()};Cr(l)}const _i=e=>{const[,,,,t]=ta();return t?`${e}-css-var`:""};var Pt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=Pt.F1&&n<=Pt.F12)return!1;switch(n){case Pt.ALT:case Pt.CAPS_LOCK:case Pt.CONTEXT_MENU:case Pt.CTRL:case Pt.DOWN:case Pt.END:case Pt.ESC:case Pt.HOME:case Pt.INSERT:case Pt.LEFT:case Pt.MAC_FF_META:case Pt.META:case Pt.NUMLOCK:case Pt.NUM_CENTER:case Pt.PAGE_DOWN:case Pt.PAGE_UP:case Pt.PAUSE:case Pt.PRINT_SCREEN:case Pt.RIGHT:case Pt.SHIFT:case Pt.UP:case Pt.WIN_KEY:case Pt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=Pt.ZERO&&t<=Pt.NINE||t>=Pt.NUM_ZERO&&t<=Pt.NUM_MULTIPLY||t>=Pt.A&&t<=Pt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case Pt.SPACE:case Pt.QUESTION_MARK:case Pt.NUM_PLUS:case Pt.NUM_MINUS:case Pt.NUM_PERIOD:case Pt.NUM_DIVISION:case Pt.SEMICOLON:case Pt.DASH:case Pt.EQUALS:case Pt.COMMA:case Pt.PERIOD:case Pt.SLASH:case Pt.APOSTROPHE:case Pt.SINGLE_QUOTE:case Pt.OPEN_SQUARE_BRACKET:case Pt.BACKSLASH:case Pt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},P1e=f.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.className,o=e.duration,a=o===void 0?4.5:o,s=e.showProgress,l=e.pauseOnHover,c=l===void 0?!0:l,u=e.eventKey,d=e.content,h=e.closable,p=e.closeIcon,m=p===void 0?"x":p,v=e.props,y=e.onClick,S=e.onNoticeClose,b=e.times,C=e.hovering,_=f.useState(!1),T=Le(_,2),x=T[0],E=T[1],k=f.useState(0),M=Le(k,2),P=M[0],D=M[1],R=f.useState(0),A=Le(R,2),H=A[0],F=A[1],z=C||x,W=a>0&&s,q=function(){S(u)},Z=function(ce){(ce.key==="Enter"||ce.code==="Enter"||ce.keyCode===Pt.ENTER)&&q()};f.useEffect(function(){if(!z&&a>0){var ie=Date.now()-H,ce=setTimeout(function(){q()},a*1e3-H);return function(){c&&clearTimeout(ce),F(Date.now()-ie)}}},[a,z,b]),f.useEffect(function(){if(!z&&W&&(c||H===0)){var ie=performance.now(),ce,fe=function ee(){cancelAnimationFrame(ce),ce=requestAnimationFrame(function(ne){var ue=ne+H-ie,ye=Math.min(ue/(a*1e3),1);D(ye*100),ye<1&&ee()})};return fe(),function(){c&&cancelAnimationFrame(ce)}}},[a,H,z,W,b]);var N=f.useMemo(function(){return ln(h)==="object"&&h!==null?h:h?{closeIcon:m}:{}},[h,m]),B=Bi(N,!0),V=100-(!P||P<0?0:P>100?100:P),G="".concat(n,"-notice");return f.createElement("div",st({},v,{ref:t,className:Re(G,i,ae({},"".concat(G,"-closable"),h)),style:r,onMouseEnter:function(ce){var fe;E(!0),v==null||(fe=v.onMouseEnter)===null||fe===void 0||fe.call(v,ce)},onMouseLeave:function(ce){var fe;E(!1),v==null||(fe=v.onMouseLeave)===null||fe===void 0||fe.call(v,ce)},onClick:y}),f.createElement("div",{className:"".concat(G,"-content")},d),h&&f.createElement("a",st({tabIndex:0,className:"".concat(G,"-close"),onKeyDown:Z,"aria-label":"Close"},B,{onClick:function(ce){ce.preventDefault(),ce.stopPropagation(),q()}}),N.closeIcon),W&&f.createElement("progress",{className:"".concat(G,"-progress"),max:"100",value:V},V+"%"))}),M1e=ge.createContext({}),I1e=function(t){var n=t.children,r=t.classNames;return ge.createElement(M1e.Provider,{value:{classNames:r}},n)},HZ=8,zZ=3,UZ=16,gHe=function(t){var n={offset:HZ,threshold:zZ,gap:UZ};if(t&&ln(t)==="object"){var r,i,o;n.offset=(r=t.offset)!==null&&r!==void 0?r:HZ,n.threshold=(i=t.threshold)!==null&&i!==void 0?i:zZ,n.gap=(o=t.gap)!==null&&o!==void 0?o:UZ}return[!!t,n]},vHe=["className","style","classNames","styles"],yHe=function(t){var n=t.configList,r=t.placement,i=t.prefixCls,o=t.className,a=t.style,s=t.motion,l=t.onAllNoticeRemoved,c=t.onNoticeClose,u=t.stack,d=f.useContext(M1e),h=d.classNames,p=f.useRef({}),m=f.useState(null),v=Le(m,2),y=v[0],S=v[1],b=f.useState([]),C=Le(b,2),_=C[0],T=C[1],x=n.map(function(z){return{config:z,key:String(z.key)}}),E=gHe(u),k=Le(E,2),M=k[0],P=k[1],D=P.offset,R=P.threshold,A=P.gap,H=M&&(_.length>0||x.length<=R),F=typeof s=="function"?s(r):s;return f.useEffect(function(){M&&_.length>1&&T(function(z){return z.filter(function(W){return x.some(function(q){var Z=q.key;return W===Z})})})},[_,x,M]),f.useEffect(function(){var z;if(M&&p.current[(z=x[x.length-1])===null||z===void 0?void 0:z.key]){var W;S(p.current[(W=x[x.length-1])===null||W===void 0?void 0:W.key])}},[x,M]),ge.createElement(CO,st({key:r,className:Re(i,"".concat(i,"-").concat(r),h==null?void 0:h.list,o,ae(ae({},"".concat(i,"-stack"),!!M),"".concat(i,"-stack-expanded"),H)),style:a,keys:x,motionAppear:!0},F,{onAllRemoved:function(){l(r)}}),function(z,W){var q=z.config,Z=z.className,N=z.style,B=z.index,V=q,G=V.key,ie=V.times,ce=String(G),fe=q,ee=fe.className,ne=fe.style,ue=fe.classNames,ye=fe.styles,me=tn(fe,vHe),pe=x.findIndex(function(Ne){return Ne.key===ce}),he={};if(M){var _e=x.length-1-(pe>-1?pe:B-1),le=r==="top"||r==="bottom"?"-50%":"0";if(_e>0){var xe,we,De;he.height=H?(xe=p.current[ce])===null||xe===void 0?void 0:xe.offsetHeight:y==null?void 0:y.offsetHeight;for(var Fe=0,Ce=0;Ce<_e;Ce++){var Te;Fe+=((Te=p.current[x[x.length-1-Ce].key])===null||Te===void 0?void 0:Te.offsetHeight)+A}var ke=(H?Fe:_e*D)*(r.startsWith("top")?1:-1),Pe=!H&&y!==null&&y!==void 0&&y.offsetWidth&&(we=p.current[ce])!==null&&we!==void 0&&we.offsetWidth?((y==null?void 0:y.offsetWidth)-D*2*(_e<3?_e:3))/((De=p.current[ce])===null||De===void 0?void 0:De.offsetWidth):1;he.transform="translate3d(".concat(le,", ").concat(ke,"px, 0) scaleX(").concat(Pe,")")}else he.transform="translate3d(".concat(le,", 0, 0)")}return ge.createElement("div",{ref:W,className:Re("".concat(i,"-notice-wrapper"),Z,ue==null?void 0:ue.wrapper),style:X(X(X({},N),he),ye==null?void 0:ye.wrapper),onMouseEnter:function(){return T(function(We){return We.includes(ce)?We:[].concat(pt(We),[ce])})},onMouseLeave:function(){return T(function(We){return We.filter(function(Q){return Q!==ce})})}},ge.createElement(P1e,st({},me,{ref:function(We){pe>-1?p.current[ce]=We:delete p.current[ce]},prefixCls:i,classNames:ue,styles:ye,className:Re(ee,h==null?void 0:h.notice),style:ne,times:ie,key:G,eventKey:G,onNoticeClose:c,hovering:M&&_.length>0})))})},bHe=f.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,i=e.container,o=e.motion,a=e.maxCount,s=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,d=e.renderNotifications,h=f.useState([]),p=Le(h,2),m=p[0],v=p[1],y=function(M){var P,D=m.find(function(R){return R.key===M});D==null||(P=D.onClose)===null||P===void 0||P.call(D),v(function(R){return R.filter(function(A){return A.key!==M})})};f.useImperativeHandle(t,function(){return{open:function(M){v(function(P){var D=pt(P),R=D.findIndex(function(F){return F.key===M.key}),A=X({},M);if(R>=0){var H;A.times=(((H=P[R])===null||H===void 0?void 0:H.times)||0)+1,D[R]=A}else A.times=0,D.push(A);return a>0&&D.length>a&&(D=D.slice(-a)),D})},close:function(M){y(M)},destroy:function(){v([])}}});var S=f.useState({}),b=Le(S,2),C=b[0],_=b[1];f.useEffect(function(){var k={};m.forEach(function(M){var P=M.placement,D=P===void 0?"topRight":P;D&&(k[D]=k[D]||[],k[D].push(M))}),Object.keys(C).forEach(function(M){k[M]=k[M]||[]}),_(k)},[m]);var T=function(M){_(function(P){var D=X({},P),R=D[M]||[];return R.length||delete D[M],D})},x=f.useRef(!1);if(f.useEffect(function(){Object.keys(C).length>0?x.current=!0:x.current&&(c==null||c(),x.current=!1)},[C]),!i)return null;var E=Object.keys(C);return Ac.createPortal(f.createElement(f.Fragment,null,E.map(function(k){var M=C[k],P=f.createElement(yHe,{key:k,configList:M,placement:k,prefixCls:r,className:s==null?void 0:s(k),style:l==null?void 0:l(k),motion:o,onNoticeClose:y,onAllNoticeRemoved:T,stack:u});return d?d(P,{prefixCls:r,key:k}):P})),i)}),SHe=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],CHe=function(){return document.body},WZ=0;function xHe(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(i){i&&Object.keys(i).forEach(function(o){var a=i[o];a!==void 0&&(e[o]=a)})}),e}function $1e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?CHe:t,r=e.motion,i=e.prefixCls,o=e.maxCount,a=e.className,s=e.style,l=e.onAllRemoved,c=e.stack,u=e.renderNotifications,d=tn(e,SHe),h=f.useState(),p=Le(h,2),m=p[0],v=p[1],y=f.useRef(),S=f.createElement(bHe,{container:m,ref:y,prefixCls:i,motion:r,maxCount:o,className:a,style:s,onAllRemoved:l,stack:c,renderNotifications:u}),b=f.useState([]),C=Le(b,2),_=C[0],T=C[1],x=f.useMemo(function(){return{open:function(k){var M=xHe(d,k);(M.key===null||M.key===void 0)&&(M.key="rc-notification-".concat(WZ),WZ+=1),T(function(P){return[].concat(pt(P),[{type:"open",config:M}])})},close:function(k){T(function(M){return[].concat(pt(M),[{type:"close",key:k}])})},destroy:function(){T(function(k){return[].concat(pt(k),[{type:"destroy"}])})}}},[]);return f.useEffect(function(){v(n())}),f.useEffect(function(){y.current&&_.length&&(_.forEach(function(E){switch(E.type){case"open":y.current.open(E.config);break;case"close":y.current.close(E.key);break;case"destroy":y.current.destroy();break}}),T(function(E){return E.filter(function(k){return!_.includes(k)})}))},[_]),[x,S]}var wHe={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"},_He=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:wHe}))},jd=f.forwardRef(_He);const pE=ge.createContext(void 0),lm=100,EHe=10,_U=lm*EHe,R1e={Modal:lm,Drawer:lm,Popover:lm,Popconfirm:lm,Tooltip:lm,Tour:lm,FloatButton:lm},THe={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function kHe(e){return e in R1e}const Du=(e,t)=>{const[,n]=ta(),r=ge.useContext(pE),i=kHe(e);let o;if(t!==void 0)o=[t,t];else{let a=r??0;i?a+=(r?0:n.zIndexPopupBase)+R1e[e]:a+=THe[e],o=[r===void 0?t:a,a]}return o},OHe=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:i,colorSuccess:o,colorError:a,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:d,marginXS:h,paddingXS:p,borderRadiusLG:m,zIndexPopup:v,contentPadding:y,contentBg:S}=e,b=`${t}-notice`,C=new Mr("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:p,transform:"translateY(0)",opacity:1}}),_=new Mr("MessageMoveOut",{"0%":{maxHeight:e.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),T={padding:p,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:h,fontSize:c},[`${b}-content`]:{display:"inline-block",padding:y,background:S,borderRadius:m,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:o},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n},
|
||
${t}-loading > ${n}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},$r(e)),{color:i,position:"fixed",top:h,width:"100%",pointerEvents:"none",zIndex:v,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
|
||
${t}-move-up-appear,
|
||
${t}-move-up-enter
|
||
`]:{animationName:C,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`
|
||
${t}-move-up-appear${t}-move-up-appear-active,
|
||
${t}-move-up-enter${t}-move-up-enter-active
|
||
`]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:_,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${b}-wrapper`]:Object.assign({},T)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},T),{padding:0,textAlign:"start"})}]},PHe=e=>({zIndexPopup:e.zIndexPopupBase+_U+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),A1e=Tr("Message",e=>{const t=dr(e,{height:150});return[OHe(t)]},PHe);var MHe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const IHe={info:f.createElement(xO,null),success:f.createElement(qv,null),error:f.createElement(eh,null),warning:f.createElement(gg,null),loading:f.createElement(jd,null)},N1e=e=>{let{prefixCls:t,type:n,icon:r,children:i}=e;return f.createElement("div",{className:Re(`${t}-custom-content`,`${t}-${n}`)},r||IHe[n],f.createElement("span",null,i))},$He=e=>{const{prefixCls:t,className:n,type:r,icon:i,content:o}=e,a=MHe(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=f.useContext(hn),l=t||s("message"),c=_i(l),[u,d,h]=A1e(l,c);return u(f.createElement(P1e,Object.assign({},a,{prefixCls:l,className:Re(n,d,`${l}-notice-pure-panel`,h,c),eventKey:"pure",duration:null,content:f.createElement(N1e,{prefixCls:l,type:r,icon:i},o)})))};function RHe(e,t){return{motionName:t??`${e}-move-up`}}function EU(e){let t;const n=new Promise(i=>{t=e(()=>{i(!0)})}),r=()=>{t==null||t()};return r.then=(i,o)=>n.then(i,o),r.promise=n,r}var AHe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const NHe=8,DHe=3,LHe=e=>{let{children:t,prefixCls:n}=e;const r=_i(n),[i,o,a]=A1e(n,r);return i(f.createElement(I1e,{classNames:{list:Re(o,a,r)}},t))},FHe=(e,t)=>{let{prefixCls:n,key:r}=t;return f.createElement(LHe,{prefixCls:n,key:r},e)},jHe=f.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:i,maxCount:o,duration:a=DHe,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:d,message:h,direction:p}=f.useContext(hn),m=r||u("message"),v=()=>({left:"50%",transform:"translateX(-50%)",top:n??NHe}),y=()=>Re({[`${m}-rtl`]:s??p==="rtl"}),S=()=>RHe(m,l),b=f.createElement("span",{className:`${m}-close-x`},f.createElement(th,{className:`${m}-close-icon`})),[C,_]=$1e({prefixCls:m,style:v,className:y,motion:S,closable:!1,closeIcon:b,duration:a,getContainer:()=>(i==null?void 0:i())||(d==null?void 0:d())||document.body,maxCount:o,onAllRemoved:c,renderNotifications:FHe});return f.useImperativeHandle(t,()=>Object.assign(Object.assign({},C),{prefixCls:m,message:h})),_});let VZ=0;function D1e(e){const t=f.useRef(null);return Jf(),[f.useMemo(()=>{const r=l=>{var c;(c=t.current)===null||c===void 0||c.close(l)},i=l=>{if(!t.current){const x=()=>{};return x.then=()=>{},x}const{open:c,prefixCls:u,message:d}=t.current,h=`${u}-notice`,{content:p,icon:m,type:v,key:y,className:S,style:b,onClose:C}=l,_=AHe(l,["content","icon","type","key","className","style","onClose"]);let T=y;return T==null&&(VZ+=1,T=`antd-message-${VZ}`),EU(x=>(c(Object.assign(Object.assign({},_),{key:T,content:f.createElement(N1e,{prefixCls:u,type:v,icon:m},p),placement:"top",className:Re(v&&`${h}-${v}`,S,d==null?void 0:d.className),style:Object.assign(Object.assign({},d==null?void 0:d.style),b),onClose:()=>{C==null||C(),x()}})),()=>{r(T)}))},a={open:i,destroy:l=>{var c;l!==void 0?r(l):(c=t.current)===null||c===void 0||c.destroy()}};return["info","success","warning","error","loading"].forEach(l=>{const c=(u,d,h)=>{let p;u&&typeof u=="object"&&"content"in u?p=u:p={content:u};let m,v;typeof d=="function"?v=d:(m=d,v=h);const y=Object.assign(Object.assign({onClose:v,duration:m},p),{type:l});return i(y)};a[l]=c}),a},[]),f.createElement(jHe,Object.assign({key:"message-holder"},e,{ref:t}))]}function L1e(e){return D1e(e)}function BHe(){const[e,t]=f.useState([]),n=f.useCallback(r=>(t(i=>[].concat(pt(i),[r])),()=>{t(i=>i.filter(o=>o!==r))}),[]);return[e,n]}function Hr(){Hr=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(z,W,q){z[W]=q.value},o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(z,W,q){return Object.defineProperty(z,W,{value:q,enumerable:!0,configurable:!0,writable:!0}),z[W]}try{c({},"")}catch{c=function(q,Z,N){return q[Z]=N}}function u(z,W,q,Z){var N=W&&W.prototype instanceof S?W:S,B=Object.create(N.prototype),V=new H(Z||[]);return i(B,"_invoke",{value:P(z,q,V)}),B}function d(z,W,q){try{return{type:"normal",arg:z.call(W,q)}}catch(Z){return{type:"throw",arg:Z}}}t.wrap=u;var h="suspendedStart",p="suspendedYield",m="executing",v="completed",y={};function S(){}function b(){}function C(){}var _={};c(_,a,function(){return this});var T=Object.getPrototypeOf,x=T&&T(T(F([])));x&&x!==n&&r.call(x,a)&&(_=x);var E=C.prototype=S.prototype=Object.create(_);function k(z){["next","throw","return"].forEach(function(W){c(z,W,function(q){return this._invoke(W,q)})})}function M(z,W){function q(N,B,V,G){var ie=d(z[N],z,B);if(ie.type!=="throw"){var ce=ie.arg,fe=ce.value;return fe&&ln(fe)=="object"&&r.call(fe,"__await")?W.resolve(fe.__await).then(function(ee){q("next",ee,V,G)},function(ee){q("throw",ee,V,G)}):W.resolve(fe).then(function(ee){ce.value=ee,V(ce)},function(ee){return q("throw",ee,V,G)})}G(ie.arg)}var Z;i(this,"_invoke",{value:function(B,V){function G(){return new W(function(ie,ce){q(B,V,ie,ce)})}return Z=Z?Z.then(G,G):G()}})}function P(z,W,q){var Z=h;return function(N,B){if(Z===m)throw Error("Generator is already running");if(Z===v){if(N==="throw")throw B;return{value:e,done:!0}}for(q.method=N,q.arg=B;;){var V=q.delegate;if(V){var G=D(V,q);if(G){if(G===y)continue;return G}}if(q.method==="next")q.sent=q._sent=q.arg;else if(q.method==="throw"){if(Z===h)throw Z=v,q.arg;q.dispatchException(q.arg)}else q.method==="return"&&q.abrupt("return",q.arg);Z=m;var ie=d(z,W,q);if(ie.type==="normal"){if(Z=q.done?v:p,ie.arg===y)continue;return{value:ie.arg,done:q.done}}ie.type==="throw"&&(Z=v,q.method="throw",q.arg=ie.arg)}}}function D(z,W){var q=W.method,Z=z.iterator[q];if(Z===e)return W.delegate=null,q==="throw"&&z.iterator.return&&(W.method="return",W.arg=e,D(z,W),W.method==="throw")||q!=="return"&&(W.method="throw",W.arg=new TypeError("The iterator does not provide a '"+q+"' method")),y;var N=d(Z,z.iterator,W.arg);if(N.type==="throw")return W.method="throw",W.arg=N.arg,W.delegate=null,y;var B=N.arg;return B?B.done?(W[z.resultName]=B.value,W.next=z.nextLoc,W.method!=="return"&&(W.method="next",W.arg=e),W.delegate=null,y):B:(W.method="throw",W.arg=new TypeError("iterator result is not an object"),W.delegate=null,y)}function R(z){var W={tryLoc:z[0]};1 in z&&(W.catchLoc=z[1]),2 in z&&(W.finallyLoc=z[2],W.afterLoc=z[3]),this.tryEntries.push(W)}function A(z){var W=z.completion||{};W.type="normal",delete W.arg,z.completion=W}function H(z){this.tryEntries=[{tryLoc:"root"}],z.forEach(R,this),this.reset(!0)}function F(z){if(z||z===""){var W=z[a];if(W)return W.call(z);if(typeof z.next=="function")return z;if(!isNaN(z.length)){var q=-1,Z=function N(){for(;++q<z.length;)if(r.call(z,q))return N.value=z[q],N.done=!1,N;return N.value=e,N.done=!0,N};return Z.next=Z}}throw new TypeError(ln(z)+" is not iterable")}return b.prototype=C,i(E,"constructor",{value:C,configurable:!0}),i(C,"constructor",{value:b,configurable:!0}),b.displayName=c(C,l,"GeneratorFunction"),t.isGeneratorFunction=function(z){var W=typeof z=="function"&&z.constructor;return!!W&&(W===b||(W.displayName||W.name)==="GeneratorFunction")},t.mark=function(z){return Object.setPrototypeOf?Object.setPrototypeOf(z,C):(z.__proto__=C,c(z,l,"GeneratorFunction")),z.prototype=Object.create(E),z},t.awrap=function(z){return{__await:z}},k(M.prototype),c(M.prototype,s,function(){return this}),t.AsyncIterator=M,t.async=function(z,W,q,Z,N){N===void 0&&(N=Promise);var B=new M(u(z,W,q,Z),N);return t.isGeneratorFunction(W)?B:B.next().then(function(V){return V.done?V.value:B.next()})},k(E),c(E,l,"Generator"),c(E,a,function(){return this}),c(E,"toString",function(){return"[object Generator]"}),t.keys=function(z){var W=Object(z),q=[];for(var Z in W)q.push(Z);return q.reverse(),function N(){for(;q.length;){var B=q.pop();if(B in W)return N.value=B,N.done=!1,N}return N.done=!0,N}},t.values=F,H.prototype={constructor:H,reset:function(W){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!W)for(var q in this)q.charAt(0)==="t"&&r.call(this,q)&&!isNaN(+q.slice(1))&&(this[q]=e)},stop:function(){this.done=!0;var W=this.tryEntries[0].completion;if(W.type==="throw")throw W.arg;return this.rval},dispatchException:function(W){if(this.done)throw W;var q=this;function Z(ce,fe){return V.type="throw",V.arg=W,q.next=ce,fe&&(q.method="next",q.arg=e),!!fe}for(var N=this.tryEntries.length-1;N>=0;--N){var B=this.tryEntries[N],V=B.completion;if(B.tryLoc==="root")return Z("end");if(B.tryLoc<=this.prev){var G=r.call(B,"catchLoc"),ie=r.call(B,"finallyLoc");if(G&&ie){if(this.prev<B.catchLoc)return Z(B.catchLoc,!0);if(this.prev<B.finallyLoc)return Z(B.finallyLoc)}else if(G){if(this.prev<B.catchLoc)return Z(B.catchLoc,!0)}else{if(!ie)throw Error("try statement without catch or finally");if(this.prev<B.finallyLoc)return Z(B.finallyLoc)}}}},abrupt:function(W,q){for(var Z=this.tryEntries.length-1;Z>=0;--Z){var N=this.tryEntries[Z];if(N.tryLoc<=this.prev&&r.call(N,"finallyLoc")&&this.prev<N.finallyLoc){var B=N;break}}B&&(W==="break"||W==="continue")&&B.tryLoc<=q&&q<=B.finallyLoc&&(B=null);var V=B?B.completion:{};return V.type=W,V.arg=q,B?(this.method="next",this.next=B.finallyLoc,y):this.complete(V)},complete:function(W,q){if(W.type==="throw")throw W.arg;return W.type==="break"||W.type==="continue"?this.next=W.arg:W.type==="return"?(this.rval=this.arg=W.arg,this.method="return",this.next="end"):W.type==="normal"&&q&&(this.next=q),y},finish:function(W){for(var q=this.tryEntries.length-1;q>=0;--q){var Z=this.tryEntries[q];if(Z.finallyLoc===W)return this.complete(Z.completion,Z.afterLoc),A(Z),y}},catch:function(W){for(var q=this.tryEntries.length-1;q>=0;--q){var Z=this.tryEntries[q];if(Z.tryLoc===W){var N=Z.completion;if(N.type==="throw"){var B=N.arg;A(Z)}return B}}throw Error("illegal catch attempt")},delegateYield:function(W,q,Z){return this.delegate={iterator:F(W),resultName:q,nextLoc:Z},this.method==="next"&&(this.arg=e),y}},t}function KZ(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,i)}function Zo(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(l){KZ(o,r,i,a,s,"next",l)}function s(l){KZ(o,r,i,a,s,"throw",l)}a(void 0)})}}var mE=X({},sfe),HHe=mE.version,cR=mE.render,zHe=mE.unmountComponentAtNode,wO;try{var UHe=Number((HHe||"").split(".")[0]);UHe>=18&&(wO=mE.createRoot)}catch{}function qZ(e){var t=mE.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&ln(t)==="object"&&(t.usingClientEntryPoint=e)}var N9="__rc_react_root__";function WHe(e,t){qZ(!0);var n=t[N9]||wO(t);qZ(!1),n.render(e),t[N9]=n}function VHe(e,t){cR==null||cR(e,t)}function KHe(e,t){if(wO){WHe(e,t);return}VHe(e,t)}function qHe(e){return pF.apply(this,arguments)}function pF(){return pF=Zo(Hr().mark(function e(t){return Hr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var i;(i=t[N9])===null||i===void 0||i.unmount(),delete t[N9]}));case 1:case"end":return r.stop()}},e)})),pF.apply(this,arguments)}function GHe(e){zHe(e)}function YHe(e){return mF.apply(this,arguments)}function mF(){return mF=Zo(Hr().mark(function e(t){return Hr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(wO===void 0){r.next=2;break}return r.abrupt("return",qHe(t));case 2:GHe(t);case 3:case"end":return r.stop()}},e)})),mF.apply(this,arguments)}const XHe=(e,t)=>(KHe(e,t),()=>YHe(t));let QHe=XHe;function TU(){return QHe}const uR=()=>({height:0,opacity:0}),GZ=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},ZHe=e=>({height:e?e.offsetHeight:0}),dR=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",qb=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:d_}-motion-collapse`,onAppearStart:uR,onEnterStart:uR,onAppearActive:GZ,onEnterActive:GZ,onLeaveStart:ZHe,onLeaveActive:uR,onAppearEnd:dR,onEnterEnd:dR,onLeaveEnd:dR,motionDeadline:500}},os=(e,t,n)=>n!==void 0?n:`${e}-${t}`,VS=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var i=e.getBoundingClientRect(),o=i.width,a=i.height;if(o||a)return!0}}return!1},JHe=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},eze=o1e("Wave",e=>[JHe(e)]),_O=`${d_}-wave-target`;function fR(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function tze(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return fR(t)?t:fR(n)?n:fR(r)?r:null}function hR(e){return Number.isNaN(e)?0:e}const nze=e=>{const{className:t,target:n,component:r,registerUnmount:i}=e,o=f.useRef(null),a=f.useRef(null);f.useEffect(()=>{a.current=i()},[]);const[s,l]=f.useState(null),[c,u]=f.useState([]),[d,h]=f.useState(0),[p,m]=f.useState(0),[v,y]=f.useState(0),[S,b]=f.useState(0),[C,_]=f.useState(!1),T={left:d,top:p,width:v,height:S,borderRadius:c.map(k=>`${k}px`).join(" ")};s&&(T["--wave-color"]=s);function x(){const k=getComputedStyle(n);l(tze(n));const M=k.position==="static",{borderLeftWidth:P,borderTopWidth:D}=k;h(M?n.offsetLeft:hR(-parseFloat(P))),m(M?n.offsetTop:hR(-parseFloat(D))),y(n.offsetWidth),b(n.offsetHeight);const{borderTopLeftRadius:R,borderTopRightRadius:A,borderBottomLeftRadius:H,borderBottomRightRadius:F}=k;u([R,A,F,H].map(z=>hR(parseFloat(z))))}if(f.useEffect(()=>{if(n){const k=Cr(()=>{x(),_(!0)});let M;return typeof ResizeObserver<"u"&&(M=new ResizeObserver(x),M.observe(n)),()=>{Cr.cancel(k),M==null||M.disconnect()}}},[]),!C)return null;const E=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(_O));return f.createElement(fa,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(k,M)=>{var P,D;if(M.deadline||M.propertyName==="opacity"){const R=(P=o.current)===null||P===void 0?void 0:P.parentElement;(D=a.current)===null||D===void 0||D.call(a).then(()=>{R==null||R.remove()})}return!1}},(k,M)=>{let{className:P}=k;return f.createElement("div",{ref:ga(o,M),className:Re(t,P,{"wave-quick":E}),style:T})})},rze=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",e==null||e.insertBefore(i,e==null?void 0:e.firstChild);const o=TU();let a=null;function s(){return a}a=o(f.createElement(nze,Object.assign({},t,{target:e,registerUnmount:s})),i)},ize=(e,t,n)=>{const{wave:r}=f.useContext(hn),[,i,o]=ta(),a=ur(c=>{const u=e.current;if(r!=null&&r.disabled||!u)return;const d=u.querySelector(`.${_O}`)||u,{showEffect:h}=r||{};(h||rze)(d,{className:t,token:i,component:n,event:c,hashId:o})}),s=f.useRef(null);return c=>{Cr.cancel(s.current),s.current=Cr(()=>{a(c)})}},gE=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:i}=f.useContext(hn),o=f.useRef(null),a=i("wave"),[,s]=eze(a),l=ize(o,Re(a,s),r);if(ge.useEffect(()=>{const u=o.current;if(!u||u.nodeType!==1||n)return;const d=h=>{!VS(h.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l(h)};return u.addEventListener("click",d,!0),()=>{u.removeEventListener("click",d,!0)}},[n]),!ge.isValidElement(t))return t??null;const c=Dd(t)?ga(mg(t),o):o;return Io(t,{ref:c})},$o=e=>{const t=ge.useContext(bv);return ge.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},oze=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},aze=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},sze=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},F1e=Tr("Space",e=>{const t=dr(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[aze(t),sze(t),oze(t)]},()=>({}),{resetStyle:!1});var j1e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const EO=f.createContext(null),Qd=(e,t)=>{const n=f.useContext(EO),r=f.useMemo(()=>{if(!n)return"";const{compactDirection:i,isFirstItem:o,isLastItem:a}=n,s=i==="vertical"?"-vertical-":"-";return Re(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:o,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},lze=e=>{let{children:t}=e;return f.createElement(EO.Provider,{value:null},t)},cze=e=>{var{children:t}=e,n=j1e(e,["children"]);return f.createElement(EO.Provider,{value:n},t)},uze=e=>{const{getPrefixCls:t,direction:n}=f.useContext(hn),{size:r,direction:i,block:o,prefixCls:a,className:s,rootClassName:l,children:c}=e,u=j1e(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=$o(C=>r??C),h=t("space-compact",a),[p,m]=F1e(h),v=Re(h,m,{[`${h}-rtl`]:n==="rtl",[`${h}-block`]:o,[`${h}-vertical`]:i==="vertical"},s,l),y=f.useContext(EO),S=zo(c),b=f.useMemo(()=>S.map((C,_)=>{const T=(C==null?void 0:C.key)||`${h}-item-${_}`;return f.createElement(cze,{key:T,compactSize:d,compactDirection:i,isFirstItem:_===0&&(!y||(y==null?void 0:y.isFirstItem)),isLastItem:_===S.length-1&&(!y||(y==null?void 0:y.isLastItem))},C)}),[r,S,y]);return S.length===0?null:p(f.createElement("div",Object.assign({className:v},u),b))};var dze=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const B1e=f.createContext(void 0),fze=e=>{const{getPrefixCls:t,direction:n}=f.useContext(hn),{prefixCls:r,size:i,className:o}=e,a=dze(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=ta();let c="";switch(i){case"large":c="lg";break;case"small":c="sm";break}const u=Re(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},o,l);return f.createElement(B1e.Provider,{value:i},f.createElement("div",Object.assign({},a,{className:u})))},YZ=/^[\u4E00-\u9FA5]{2}$/,gF=YZ.test.bind(YZ);function kU(e){return e==="danger"?{danger:!0}:{type:e}}function XZ(e){return typeof e=="string"}function pR(e){return e==="text"||e==="link"}function hze(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&XZ(e.type)&&gF(e.props.children)?Io(e,{children:e.props.children.split("").join(n)}):XZ(e)?gF(e)?ge.createElement("span",null,e.split("").join(n)):ge.createElement("span",null,e):T1e(e)?ge.createElement("span",null,e):e}function pze(e,t){let n=!1;const r=[];return ge.Children.forEach(e,i=>{const o=typeof i,a=o==="string"||o==="number";if(n&&a){const s=r.length-1,l=r[s];r[s]=`${l}${i}`}else r.push(i);n=a}),ge.Children.map(r,i=>hze(i,t))}["default","primary","danger"].concat(pt(Cv));const vF=f.forwardRef((e,t)=>{const{className:n,style:r,children:i,prefixCls:o}=e,a=Re(`${o}-icon`,n);return ge.createElement("span",{ref:t,className:a,style:r},i)}),QZ=f.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:i,iconClassName:o}=e,a=Re(`${n}-loading-icon`,r);return ge.createElement(vF,{prefixCls:n,className:a,style:i,ref:t},ge.createElement(jd,{className:o}))}),mR=()=>({width:0,opacity:0,transform:"scale(0)"}),gR=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),mze=e=>{const{prefixCls:t,loading:n,existIcon:r,className:i,style:o,mount:a}=e,s=!!n;return r?ge.createElement(QZ,{prefixCls:t,className:i,style:o}):ge.createElement(fa,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:!0,onAppearStart:mR,onAppearActive:gR,onEnterStart:mR,onEnterActive:gR,onLeaveStart:gR,onLeaveActive:mR},(l,c)=>{let{className:u,style:d}=l;const h=Object.assign(Object.assign({},o),d);return ge.createElement(QZ,{prefixCls:t,className:Re(i,u),style:h,ref:c})})},ZZ=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),gze=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:i,colorErrorHover:o}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},ZZ(`${t}-primary`,i),ZZ(`${t}-danger`,o)]}};var vze=["b"],yze=["v"],vR=function(t){return Math.round(Number(t||0))},bze=function(t){if(t instanceof xr)return t;if(t&&ln(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,i=tn(n,vze);return X(X({},i),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Bd=function(e){Ys(n,e);var t=bl(n);function n(r){return hi(this,n),t.call(this,bze(r))}return pi(n,[{key:"toHsbString",value:function(){var i=this.toHsb(),o=vR(i.s*100),a=vR(i.b*100),s=vR(i.h),l=i.a,c="hsb(".concat(s,", ").concat(o,"%, ").concat(a,"%)"),u="hsba(".concat(s,", ").concat(o,"%, ").concat(a,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:u}},{key:"toHsb",value:function(){var i=this.toHsv(),o=i.v,a=tn(i,yze);return X(X({},a),{},{b:o,a:this.a})}}]),n}(xr),Sze="rc-color-picker",lb=function(t){return t instanceof Bd?t:new Bd(t)},Cze=lb("#1677ff"),H1e=function(t){var n=t.offset,r=t.targetRef,i=t.containerRef,o=t.color,a=t.type,s=i.current.getBoundingClientRect(),l=s.width,c=s.height,u=r.current.getBoundingClientRect(),d=u.width,h=u.height,p=d/2,m=h/2,v=(n.x+p)/l,y=1-(n.y+m)/c,S=o.toHsb(),b=v,C=(n.x+p)/l*360;if(a)switch(a){case"hue":return lb(X(X({},S),{},{h:C<=0?0:C}));case"alpha":return lb(X(X({},S),{},{a:b<=0?0:b}))}return lb({h:S.h,s:v<=0?0:v,b:y>=1?1:y,a:S.a})},z1e=function(t,n){var r=t.toHsb();switch(n){case"hue":return{x:r.h/360*100,y:50};case"alpha":return{x:t.a*100,y:50};default:return{x:r.s*100,y:(1-r.b)*100}}},OU=function(t){var n=t.color,r=t.prefixCls,i=t.className,o=t.style,a=t.onClick,s="".concat(r,"-color-block");return ge.createElement("div",{className:Re(s,i),style:o,onClick:a},ge.createElement("div",{className:"".concat(s,"-inner"),style:{background:n}}))};function xze(e){var t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-n,pageY:t.pageY-r}}function U1e(e){var t=e.targetRef,n=e.containerRef,r=e.direction,i=e.onDragChange,o=e.onDragChangeComplete,a=e.calculate,s=e.color,l=e.disabledDrag,c=f.useState({x:0,y:0}),u=Le(c,2),d=u[0],h=u[1],p=f.useRef(null),m=f.useRef(null);f.useEffect(function(){h(a())},[s]),f.useEffect(function(){return function(){document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",m.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",m.current),p.current=null,m.current=null}},[]);var v=function(_){var T=xze(_),x=T.pageX,E=T.pageY,k=n.current.getBoundingClientRect(),M=k.x,P=k.y,D=k.width,R=k.height,A=t.current.getBoundingClientRect(),H=A.width,F=A.height,z=H/2,W=F/2,q=Math.max(0,Math.min(x-M,D))-z,Z=Math.max(0,Math.min(E-P,R))-W,N={x:q,y:r==="x"?d.y:Z};if(H===0&&F===0||H!==F)return!1;i==null||i(N)},y=function(_){_.preventDefault(),v(_)},S=function(_){_.preventDefault(),document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",m.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",m.current),p.current=null,m.current=null,o==null||o()},b=function(_){document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",m.current),!l&&(v(_),document.addEventListener("mousemove",y),document.addEventListener("mouseup",S),document.addEventListener("touchmove",y),document.addEventListener("touchend",S),p.current=y,m.current=S)};return[d,b]}var W1e=function(t){var n=t.size,r=n===void 0?"default":n,i=t.color,o=t.prefixCls;return ge.createElement("div",{className:Re("".concat(o,"-handler"),ae({},"".concat(o,"-handler-sm"),r==="small")),style:{backgroundColor:i}})},V1e=function(t){var n=t.children,r=t.style,i=t.prefixCls;return ge.createElement("div",{className:"".concat(i,"-palette"),style:X({position:"relative"},r)},n)},K1e=f.forwardRef(function(e,t){var n=e.children,r=e.x,i=e.y;return ge.createElement("div",{ref:t,style:{position:"absolute",left:"".concat(r,"%"),top:"".concat(i,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},n)}),wze=function(t){var n=t.color,r=t.onChange,i=t.prefixCls,o=t.onChangeComplete,a=t.disabled,s=f.useRef(),l=f.useRef(),c=f.useRef(n),u=ur(function(v){var y=H1e({offset:v,targetRef:l,containerRef:s,color:n});c.current=y,r(y)}),d=U1e({color:n,containerRef:s,targetRef:l,calculate:function(){return z1e(n)},onDragChange:u,onDragChangeComplete:function(){return o==null?void 0:o(c.current)},disabledDrag:a}),h=Le(d,2),p=h[0],m=h[1];return ge.createElement("div",{ref:s,className:"".concat(i,"-select"),onMouseDown:m,onTouchStart:m},ge.createElement(V1e,{prefixCls:i},ge.createElement(K1e,{x:p.x,y:p.y,ref:l},ge.createElement(W1e,{color:n.toRgbString(),prefixCls:i})),ge.createElement("div",{className:"".concat(i,"-saturation"),style:{backgroundColor:"hsl(".concat(n.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},_ze=function(t,n){var r=er(t,{value:n}),i=Le(r,2),o=i[0],a=i[1],s=f.useMemo(function(){return lb(o)},[o]);return[s,a]},Eze=function(t){var n=t.colors,r=t.children,i=t.direction,o=i===void 0?"to right":i,a=t.type,s=t.prefixCls,l=f.useMemo(function(){return n.map(function(c,u){var d=lb(c);return a==="alpha"&&u===n.length-1&&(d=new Bd(d.setA(1))),d.toRgbString()}).join(",")},[n,a]);return ge.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(o,", ").concat(l,")")}},r)},Tze=function(t){var n=t.prefixCls,r=t.colors,i=t.disabled,o=t.onChange,a=t.onChangeComplete,s=t.color,l=t.type,c=f.useRef(),u=f.useRef(),d=f.useRef(s),h=function(T){return l==="hue"?T.getHue():T.a*100},p=ur(function(_){var T=H1e({offset:_,targetRef:u,containerRef:c,color:s,type:l});d.current=T,o(h(T))}),m=U1e({color:s,targetRef:u,containerRef:c,calculate:function(){return z1e(s,l)},onDragChange:p,onDragChangeComplete:function(){a(h(d.current))},direction:"x",disabledDrag:i}),v=Le(m,2),y=v[0],S=v[1],b=ge.useMemo(function(){if(l==="hue"){var _=s.toHsb();_.s=1,_.b=1,_.a=1;var T=new Bd(_);return T}return s},[s,l]),C=ge.useMemo(function(){return r.map(function(_){return"".concat(_.color," ").concat(_.percent,"%")})},[r]);return ge.createElement("div",{ref:c,className:Re("".concat(n,"-slider"),"".concat(n,"-slider-").concat(l)),onMouseDown:S,onTouchStart:S},ge.createElement(V1e,{prefixCls:n},ge.createElement(K1e,{x:y.x,y:y.y,ref:u},ge.createElement(W1e,{size:"small",color:b.toHexString(),prefixCls:n})),ge.createElement(Eze,{colors:C,type:l,prefixCls:n})))};function kze(e){return f.useMemo(function(){var t=e||{},n=t.slider;return[n||Tze]},[e])}var Oze=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],Pze=f.forwardRef(function(e,t){var n=e.value,r=e.defaultValue,i=e.prefixCls,o=i===void 0?Sze:i,a=e.onChange,s=e.onChangeComplete,l=e.className,c=e.style,u=e.panelRender,d=e.disabledAlpha,h=d===void 0?!1:d,p=e.disabled,m=p===void 0?!1:p,v=e.components,y=kze(v),S=Le(y,1),b=S[0],C=_ze(r||Cze,n),_=Le(C,2),T=_[0],x=_[1],E=f.useMemo(function(){return T.setA(1).toRgbString()},[T]),k=function(Z,N){n||x(Z),a==null||a(Z,N)},M=function(Z){return new Bd(T.setHue(Z))},P=function(Z){return new Bd(T.setA(Z/100))},D=function(Z){k(M(Z),{type:"hue",value:Z})},R=function(Z){k(P(Z),{type:"alpha",value:Z})},A=function(Z){s&&s(M(Z))},H=function(Z){s&&s(P(Z))},F=Re("".concat(o,"-panel"),l,ae({},"".concat(o,"-panel-disabled"),m)),z={prefixCls:o,disabled:m,color:T},W=ge.createElement(ge.Fragment,null,ge.createElement(wze,st({onChange:k},z,{onChangeComplete:s})),ge.createElement("div",{className:"".concat(o,"-slider-container")},ge.createElement("div",{className:Re("".concat(o,"-slider-group"),ae({},"".concat(o,"-slider-group-disabled-alpha"),h))},ge.createElement(b,st({},z,{type:"hue",colors:Oze,min:0,max:359,value:T.getHue(),onChange:D,onChangeComplete:A})),!h&&ge.createElement(b,st({},z,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:E}],min:0,max:100,value:T.a*100,onChange:R,onChangeComplete:H}))),ge.createElement(OU,{color:T.toRgbString(),prefixCls:o})));return ge.createElement("div",{className:F,style:c,ref:t},typeof u=="function"?u(W):W)});const b2=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",Mze=(e,t)=>e?b2(e,t):"";let _c=function(){function e(t){hi(this,e);var n;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)===null||n===void 0?void 0:n.map(i=>({color:new e(i.color),percent:i.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(i=>{let{color:o,percent:a}=i;return{color:new e(o),percent:a}}),this.metaColor=new Bd(this.colors[0].color.metaColor)):this.metaColor=new Bd(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return pi(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return Mze(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:n}=this;return n?`linear-gradient(90deg, ${n.map(i=>`${i.color.toRgbString()} ${i.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,i)=>{const o=n.colors[i];return r.percent===o.percent&&r.color.equals(o.color)}):this.toHexString()===n.toHexString()}}])}();var Ize={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},$ze=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:Ize}))},hp=f.forwardRef($ze),q1e=ge.forwardRef(function(e,t){var n=e.prefixCls,r=e.forceRender,i=e.className,o=e.style,a=e.children,s=e.isActive,l=e.role,c=e.classNames,u=e.styles,d=ge.useState(s||r),h=Le(d,2),p=h[0],m=h[1];return ge.useEffect(function(){(r||s)&&m(!0)},[r,s]),p?ge.createElement("div",{ref:t,className:Re("".concat(n,"-content"),ae(ae({},"".concat(n,"-content-active"),s),"".concat(n,"-content-inactive"),!s),i),style:o,role:l},ge.createElement("div",{className:Re("".concat(n,"-content-box"),c==null?void 0:c.body),style:u==null?void 0:u.body},a)):null});q1e.displayName="PanelContent";var Rze=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],G1e=ge.forwardRef(function(e,t){var n=e.showArrow,r=n===void 0?!0:n,i=e.headerClass,o=e.isActive,a=e.onItemClick,s=e.forceRender,l=e.className,c=e.classNames,u=c===void 0?{}:c,d=e.styles,h=d===void 0?{}:d,p=e.prefixCls,m=e.collapsible,v=e.accordion,y=e.panelKey,S=e.extra,b=e.header,C=e.expandIcon,_=e.openMotion,T=e.destroyInactivePanel,x=e.children,E=tn(e,Rze),k=m==="disabled",M=S!=null&&typeof S!="boolean",P=ae(ae(ae({onClick:function(){a==null||a(y)},onKeyDown:function(W){(W.key==="Enter"||W.keyCode===Pt.ENTER||W.which===Pt.ENTER)&&(a==null||a(y))},role:v?"tab":"button"},"aria-expanded",o),"aria-disabled",k),"tabIndex",k?-1:0),D=typeof C=="function"?C(e):ge.createElement("i",{className:"arrow"}),R=D&&ge.createElement("div",st({className:"".concat(p,"-expand-icon")},["header","icon"].includes(m)?P:{}),D),A=Re("".concat(p,"-item"),ae(ae({},"".concat(p,"-item-active"),o),"".concat(p,"-item-disabled"),k),l),H=Re(i,"".concat(p,"-header"),ae({},"".concat(p,"-collapsible-").concat(m),!!m),u.header),F=X({className:H,style:h.header},["header","icon"].includes(m)?{}:P);return ge.createElement("div",st({},E,{ref:t,className:A}),ge.createElement("div",F,r&&R,ge.createElement("span",st({className:"".concat(p,"-header-text")},m==="header"?P:{}),b),M&&ge.createElement("div",{className:"".concat(p,"-extra")},S)),ge.createElement(fa,st({visible:o,leavedClassName:"".concat(p,"-content-hidden")},_,{forceRender:s,removeOnLeave:T}),function(z,W){var q=z.className,Z=z.style;return ge.createElement(q1e,{ref:W,prefixCls:p,className:q,classNames:u,style:Z,styles:h,isActive:o,forceRender:s,role:v?"tabpanel":void 0},x)}))}),Aze=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],Nze=function(t,n){var r=n.prefixCls,i=n.accordion,o=n.collapsible,a=n.destroyInactivePanel,s=n.onItemClick,l=n.activeKey,c=n.openMotion,u=n.expandIcon;return t.map(function(d,h){var p=d.children,m=d.label,v=d.key,y=d.collapsible,S=d.onItemClick,b=d.destroyInactivePanel,C=tn(d,Aze),_=String(v??h),T=y??o,x=b??a,E=function(P){T!=="disabled"&&(s(P),S==null||S(P))},k=!1;return i?k=l[0]===_:k=l.indexOf(_)>-1,ge.createElement(G1e,st({},C,{prefixCls:r,key:_,panelKey:_,isActive:k,accordion:i,openMotion:c,expandIcon:u,header:m,collapsible:T,onItemClick:E,destroyInactivePanel:x}),p)})},Dze=function(t,n,r){if(!t)return null;var i=r.prefixCls,o=r.accordion,a=r.collapsible,s=r.destroyInactivePanel,l=r.onItemClick,c=r.activeKey,u=r.openMotion,d=r.expandIcon,h=t.key||String(n),p=t.props,m=p.header,v=p.headerClass,y=p.destroyInactivePanel,S=p.collapsible,b=p.onItemClick,C=!1;o?C=c[0]===h:C=c.indexOf(h)>-1;var _=S??a,T=function(k){_!=="disabled"&&(l(k),b==null||b(k))},x={key:h,panelKey:h,header:m,headerClass:v,isActive:C,prefixCls:i,destroyInactivePanel:y??s,openMotion:u,accordion:o,children:t.props.children,onItemClick:T,expandIcon:d,collapsible:_};return typeof t.type=="string"?t:(Object.keys(x).forEach(function(E){typeof x[E]>"u"&&delete x[E]}),ge.cloneElement(t,x))};function Lze(e,t,n){return Array.isArray(e)?Nze(e,n):zo(t).map(function(r,i){return Dze(r,i,n)})}function Fze(e){var t=e;if(!Array.isArray(t)){var n=ln(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var jze=ge.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,i=e.destroyInactivePanel,o=i===void 0?!1:i,a=e.style,s=e.accordion,l=e.className,c=e.children,u=e.collapsible,d=e.openMotion,h=e.expandIcon,p=e.activeKey,m=e.defaultActiveKey,v=e.onChange,y=e.items,S=Re(r,l),b=er([],{value:p,onChange:function(M){return v==null?void 0:v(M)},defaultValue:m,postState:Fze}),C=Le(b,2),_=C[0],T=C[1],x=function(M){return T(function(){if(s)return _[0]===M?[]:[M];var P=_.indexOf(M),D=P>-1;return D?_.filter(function(R){return R!==M}):[].concat(pt(_),[M])})};fi(!c,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var E=Lze(y,c,{prefixCls:r,accordion:s,openMotion:d,expandIcon:h,collapsible:u,destroyInactivePanel:o,onItemClick:x,activeKey:_});return ge.createElement("div",st({ref:t,className:S,style:a,role:s?"tablist":void 0},Bi(e,{aria:!0,data:!0})),E)});const PU=Object.assign(jze,{Panel:G1e});PU.Panel;const Bze=f.forwardRef((e,t)=>{const{getPrefixCls:n}=f.useContext(hn),{prefixCls:r,className:i,showArrow:o=!0}=e,a=n("collapse",r),s=Re({[`${a}-no-arrow`]:!o},i);return f.createElement(PU.Panel,Object.assign({ref:t},e,{prefixCls:a,className:s}))}),vE=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
||
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
||
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),Hze=e=>({animationDuration:e,animationFillMode:"both"}),zze=e=>({animationDuration:e,animationFillMode:"both"}),TO=function(e,t,n,r){const o=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
|
||
${o}${e}-enter,
|
||
${o}${e}-appear
|
||
`]:Object.assign(Object.assign({},Hze(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},zze(r)),{animationPlayState:"paused"}),[`
|
||
${o}${e}-enter${e}-enter-active,
|
||
${o}${e}-appear${e}-appear-active
|
||
`]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Uze=new Mr("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),Wze=new Mr("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),MU=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,i=t?"&":"";return[TO(r,Uze,Wze,e.motionDurationMid,t),{[`
|
||
${i}${r}-enter,
|
||
${i}${r}-appear
|
||
`]:{opacity:0,animationTimingFunction:"linear"},[`${i}${r}-leave`]:{animationTimingFunction:"linear"}}]},Vze=new Mr("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Kze=new Mr("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),qze=new Mr("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Gze=new Mr("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Yze=new Mr("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Xze=new Mr("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Qze=new Mr("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Zze=new Mr("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),Jze={"move-up":{inKeyframes:Qze,outKeyframes:Zze},"move-down":{inKeyframes:Vze,outKeyframes:Kze},"move-left":{inKeyframes:qze,outKeyframes:Gze},"move-right":{inKeyframes:Yze,outKeyframes:Xze}},Gb=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=Jze[t];return[TO(r,i,o,e.motionDurationMid),{[`
|
||
${r}-enter,
|
||
${r}-appear
|
||
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},kO=new Mr("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),OO=new Mr("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),PO=new Mr("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),MO=new Mr("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),eUe=new Mr("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),tUe=new Mr("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),nUe=new Mr("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),rUe=new Mr("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),iUe={"slide-up":{inKeyframes:kO,outKeyframes:OO},"slide-down":{inKeyframes:PO,outKeyframes:MO},"slide-left":{inKeyframes:eUe,outKeyframes:tUe},"slide-right":{inKeyframes:nUe,outKeyframes:rUe}},Kf=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=iUe[t];return[TO(r,i,o,e.motionDurationMid),{[`
|
||
${r}-enter,
|
||
${r}-appear
|
||
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},IU=new Mr("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),oUe=new Mr("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),JZ=new Mr("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),eJ=new Mr("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),aUe=new Mr("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),sUe=new Mr("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),lUe=new Mr("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),cUe=new Mr("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),uUe=new Mr("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),dUe=new Mr("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),fUe=new Mr("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),hUe=new Mr("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),pUe={zoom:{inKeyframes:IU,outKeyframes:oUe},"zoom-big":{inKeyframes:JZ,outKeyframes:eJ},"zoom-big-fast":{inKeyframes:JZ,outKeyframes:eJ},"zoom-left":{inKeyframes:lUe,outKeyframes:cUe},"zoom-right":{inKeyframes:uUe,outKeyframes:dUe},"zoom-up":{inKeyframes:aUe,outKeyframes:sUe},"zoom-down":{inKeyframes:fUe,outKeyframes:hUe}},KS=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=pUe[t];return[TO(r,i,o,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
|
||
${r}-enter,
|
||
${r}-appear
|
||
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},mUe=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:i,headerPadding:o,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:l,lineWidth:c,lineType:u,colorBorder:d,colorText:h,colorTextHeading:p,colorTextDisabled:m,fontSizeLG:v,lineHeight:y,lineHeightLG:S,marginSM:b,paddingSM:C,paddingLG:_,paddingXS:T,motionDurationSlow:x,fontSizeIcon:E,contentPadding:k,fontHeight:M,fontHeightLG:P}=e,D=`${je(c)} ${u} ${d}`;return{[t]:Object.assign(Object.assign({},$r(e)),{backgroundColor:i,border:D,borderRadius:l,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:D,"&:first-child":{[`
|
||
&,
|
||
& > ${t}-header`]:{borderRadius:`${je(l)} ${je(l)} 0 0`}},"&:last-child":{[`
|
||
&,
|
||
& > ${t}-header`]:{borderRadius:`0 0 ${je(l)} ${je(l)}`}},[`> ${t}-header`]:Object.assign(Object.assign({position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:o,color:p,lineHeight:y,cursor:"pointer",transition:`all ${x}, visibility 0s`},ml(e)),{[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:M,display:"flex",alignItems:"center",paddingInlineEnd:b},[`${t}-arrow`]:Object.assign(Object.assign({},Kv()),{fontSize:E,transition:`transform ${x}`,svg:{transition:`transform ${x}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}}),[`${t}-collapsible-header`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:h,backgroundColor:n,borderTop:D,[`& > ${t}-content-box`]:{padding:k},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:T,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(C).sub(T).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:C}}},"&-large":{[`> ${t}-item`]:{fontSize:v,lineHeight:S,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:P,marginInlineStart:e.calc(_).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:_}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${je(l)} ${je(l)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:m,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:b}}}}})}},gUe=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},vUe=e=>{const{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:i}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${i}`},[`
|
||
> ${t}-item:last-child,
|
||
> ${t}-item:last-child ${t}-header
|
||
`]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},yUe=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},bUe=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}),SUe=Tr("Collapse",e=>{const t=dr(e,{collapseHeaderPaddingSM:`${je(e.paddingXS)} ${je(e.paddingSM)}`,collapseHeaderPaddingLG:`${je(e.padding)} ${je(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[mUe(t),vUe(t),yUe(t),gUe(t),vE(t)]},bUe),CUe=f.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,collapse:i}=f.useContext(hn),{prefixCls:o,className:a,rootClassName:s,style:l,bordered:c=!0,ghost:u,size:d,expandIconPosition:h="start",children:p,expandIcon:m}=e,v=$o(D=>{var R;return(R=d??D)!==null&&R!==void 0?R:"middle"}),y=n("collapse",o),S=n(),[b,C,_]=SUe(y),T=f.useMemo(()=>h==="left"?"start":h==="right"?"end":h,[h]),x=m??(i==null?void 0:i.expandIcon),E=f.useCallback(function(){let D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const R=typeof x=="function"?x(D):f.createElement(hp,{rotate:D.isActive?r==="rtl"?-90:90:void 0,"aria-label":D.isActive?"expanded":"collapsed"});return Io(R,()=>{var A;return{className:Re((A=R==null?void 0:R.props)===null||A===void 0?void 0:A.className,`${y}-arrow`)}})},[x,y]),k=Re(`${y}-icon-position-${T}`,{[`${y}-borderless`]:!c,[`${y}-rtl`]:r==="rtl",[`${y}-ghost`]:!!u,[`${y}-${v}`]:v!=="middle"},i==null?void 0:i.className,a,s,C,_),M=Object.assign(Object.assign({},qb(S)),{motionAppear:!1,leavedClassName:`${y}-content-hidden`}),P=f.useMemo(()=>p?zo(p).map((D,R)=>{var A,H;const F=D.props;if(F!=null&&F.disabled){const z=(A=D.key)!==null&&A!==void 0?A:String(R),W=Object.assign(Object.assign({},Pr(D.props,["disabled"])),{key:z,collapsible:(H=F.collapsible)!==null&&H!==void 0?H:"disabled"});return Io(D,W)}return D}):null,[p]);return b(f.createElement(PU,Object.assign({ref:t,openMotion:M},Pr(e,["rootClassName"]),{expandIcon:E,prefixCls:y,className:k,style:Object.assign(Object.assign({},i==null?void 0:i.style),l)}),P))}),xUe=Object.assign(CUe,{Panel:Bze}),Vs=e=>e instanceof _c?e:new _c(e),I8=e=>Math.round(Number(e||0)),$U=e=>I8(e.toHsb().a*100),$8=(e,t)=>{const n=e.toRgb();if(!n.r&&!n.g&&!n.b){const r=e.toHsb();return r.a=1,Vs(r)}return n.a=1,Vs(n)},Y1e=(e,t)=>{const n=[{percent:0,color:e[0].color}].concat(pt(e),[{percent:100,color:e[e.length-1].color}]);for(let r=0;r<n.length-1;r+=1){const i=n[r].percent,o=n[r+1].percent,a=n[r].color,s=n[r+1].color;if(i<=t&&t<=o){const l=o-i;if(l===0)return a;const c=(t-i)/l*100,u=new Bd(a),d=new Bd(s);return u.mix(d,c).toRgbString()}}return""},yR=e=>e.map(t=>(t.colors=t.colors.map(Vs),t)),X1e=(e,t)=>{const{r:n,g:r,b:i,a:o}=e.toRgb(),a=new Bd(e.toRgbString()).onBackground(t).toHsv();return o<=.5?a.v>.5:n*.299+r*.587+i*.114>192},tJ=(e,t)=>{var n;return`panel-${(n=e.key)!==null&&n!==void 0?n:t}`},wUe=e=>{let{prefixCls:t,presets:n,value:r,onChange:i}=e;const[o]=ks("ColorPicker"),[,a]=ta(),[s]=er(yR(n),{value:yR(n),postState:yR}),l=`${t}-presets`,c=f.useMemo(()=>s.reduce((h,p,m)=>{const{defaultOpen:v=!0}=p;return v&&h.push(tJ(p,m)),h},[]),[s]),u=h=>{i==null||i(h)},d=s.map((h,p)=>{var m;return{key:tJ(h,p),label:ge.createElement("div",{className:`${l}-label`},h==null?void 0:h.label),children:ge.createElement("div",{className:`${l}-items`},Array.isArray(h==null?void 0:h.colors)&&((m=h.colors)===null||m===void 0?void 0:m.length)>0?h.colors.map((v,y)=>ge.createElement(OU,{key:`preset-${y}-${v.toHexString()}`,color:Vs(v).toRgbString(),prefixCls:t,className:Re(`${l}-color`,{[`${l}-color-checked`]:v.toHexString()===(r==null?void 0:r.toHexString()),[`${l}-color-bright`]:X1e(v,a.colorBgElevated)}),onClick:()=>u(v)})):ge.createElement("span",{className:`${l}-empty`},o.presetEmpty))}});return ge.createElement("div",{className:l},ge.createElement(xUe,{defaultActiveKey:c,ghost:!0,items:d}))},Q1e=e=>{const{paddingInline:t,onlyIconSize:n}=e;return dr(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},Z1e=e=>{var t,n,r,i,o,a;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,c=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,u=(i=e.contentLineHeight)!==null&&i!==void 0?i:P8(s),d=(o=e.contentLineHeightSM)!==null&&o!==void 0?o:P8(l),h=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:P8(c),p=X1e(new _c(e.colorBgSolid),"#fff")?"#000":"#fff";return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:p,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:h,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*h)/2-e.lineWidth,0)}},_Ue=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:i,motionDurationSlow:o,motionEaseInOut:a,marginXS:s,calc:l}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${je(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:Kv(),"> a":{color:"currentColor"},"&:not(:disabled)":ml(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:i,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${o} ${a}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(s).mul(-1).equal()}}}}}},J1e=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),EUe=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),TUe=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),kUe=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),RU=(e,t,n,r,i,o,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},J1e(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:i||void 0,borderColor:o||void 0}})}),OUe=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},kUe(e))}),PUe=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),IO=(e,t,n,r)=>{const o=r&&["link","text"].includes(r)?PUe:OUe;return Object.assign(Object.assign({},o(e)),J1e(e.componentCls,t,n))},$O=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},IO(e,r,i))}),RO=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},IO(e,r,i))}),AO=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),NO=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},IO(e,n,r))}),ng=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},IO(e,r,i,n))}),MUe=e=>{const{componentCls:t}=e;return Cv.reduce((n,r)=>{const i=e[`${r}6`],o=e[`${r}1`],a=e[`${r}5`],s=e[`${r}2`],l=e[`${r}3`],c=e[`${r}7`],u=`0 ${je(e.controlOutlineWidth)} 0 ${e[`${r}1`]}`;return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:i,boxShadow:u},$O(e,e.colorTextLightSolid,i,{background:a},{background:c})),RO(e,i,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),AO(e)),NO(e,o,{background:s},{background:l})),ng(e,i,"link",{color:a},{color:c})),ng(e,i,"text",{color:a,background:o},{color:c,background:l}))})},{})},IUe=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},$O(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),AO(e)),NO(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),ng(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),RU(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),$Ue=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},RO(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),AO(e)),NO(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),ng(e,e.colorLink,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),RU(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),RUe=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},$O(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),RO(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),AO(e)),NO(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),ng(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),ng(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),RU(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),AUe=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:IUe(e),[`${t}-color-primary`]:$Ue(e),[`${t}-color-dangerous`]:RUe(e)},MUe(e))},NUe=e=>Object.assign(Object.assign(Object.assign(Object.assign({},RO(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),ng(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),$O(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),ng(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),AU=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:i,borderRadius:o,buttonPaddingHorizontal:a,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:i,height:r,padding:`${je(l)} ${je(a)}`,borderRadius:o,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:c}}}},{[`${n}${n}-circle${t}`]:EUe(e)},{[`${n}${n}-round${t}`]:TUe(e)}]},DUe=e=>{const t=dr(e,{fontSize:e.contentFontSize});return AU(t,e.componentCls)},LUe=e=>{const t=dr(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return AU(t,`${e.componentCls}-sm`)},FUe=e=>{const t=dr(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return AU(t,`${e.componentCls}-lg`)},jUe=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},BUe=Tr("Button",e=>{const t=Q1e(e);return[_Ue(t),DUe(t),LUe(t),FUe(t),jUe(t),AUe(t),NUe(t),gze(t)]},Z1e,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function HUe(e,t,n){const{focusElCls:r,focus:i,borderElCls:o}=n,a=o?"> *":"",s=["hover",i?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function zUe(e,t,n){const{borderElCls:r}=n,i=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Gv(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},HUe(e,r,t)),zUe(n,r,t))}}function UUe(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function WUe(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function VUe(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},UUe(e,t)),WUe(e.componentCls,t))}}const KUe=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:i}=e,o=i(r).mul(-1).equal(),a=s=>{const l=`${t}-compact${s?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${l} + ${l}::before`]:{position:"absolute",top:s?o:0,insetInlineStart:s?0:o,backgroundColor:n,content:'""',width:s?"100%":r,height:s?r:"100%"}}};return Object.assign(Object.assign({},a()),a(!0))},qUe=US(["Button","compact"],e=>{const t=Q1e(e);return[Gv(t),VUe(t),KUe(t)]},Z1e);var GUe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function YUe(e){if(typeof e=="object"&&e){let t=e==null?void 0:e.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const XUe={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["primary","link"],text:["default","text"]},QUe=ge.forwardRef((e,t)=>{var n,r,i,o;const{loading:a=!1,prefixCls:s,color:l,variant:c,type:u,danger:d=!1,shape:h="default",size:p,styles:m,disabled:v,className:y,rootClassName:S,children:b,icon:C,iconPosition:_="start",ghost:T=!1,block:x=!1,htmlType:E="button",classNames:k,style:M={},autoInsertSpace:P,autoFocus:D}=e,R=GUe(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),A=u||"default",[H,F]=f.useMemo(()=>{if(l&&c)return[l,c];const tt=XUe[A]||[];return d?["danger",tt[1]]:tt},[u,l,c,d]),W=H==="danger"?"dangerous":H,{getPrefixCls:q,direction:Z,button:N}=f.useContext(hn),B=(n=P??(N==null?void 0:N.autoInsertSpace))!==null&&n!==void 0?n:!0,V=q("btn",s),[G,ie,ce]=BUe(V),fe=f.useContext(Jo),ee=v??fe,ne=f.useContext(B1e),ue=f.useMemo(()=>YUe(a),[a]),[ye,me]=f.useState(ue.loading),[pe,he]=f.useState(!1),_e=f.useRef(null),le=Xd(t,_e),xe=f.Children.count(b)===1&&!C&&!pR(F),we=f.useRef(!0);ge.useEffect(()=>(we.current=!1,()=>{we.current=!0}),[]),f.useEffect(()=>{let tt=null;ue.delay>0?tt=setTimeout(()=>{tt=null,me(!0)},ue.delay):me(ue.loading);function se(){tt&&(clearTimeout(tt),tt=null)}return se},[ue]),f.useEffect(()=>{if(!_e.current||!B)return;const tt=_e.current.textContent||"";xe&&gF(tt)?pe||he(!0):pe&&he(!1)}),f.useEffect(()=>{D&&_e.current&&_e.current.focus()},[]);const De=ge.useCallback(tt=>{var se;if(ye||ee){tt.preventDefault();return}(se=e.onClick)===null||se===void 0||se.call(e,tt)},[e.onClick,ye,ee]),{compactSize:Fe,compactItemClassnames:Ce}=Qd(V,Z),Te={large:"lg",small:"sm",middle:void 0},ke=$o(tt=>{var se,ze;return(ze=(se=p??Fe)!==null&&se!==void 0?se:ne)!==null&&ze!==void 0?ze:tt}),Pe=ke&&(r=Te[ke])!==null&&r!==void 0?r:"",Ne=ye?"loading":C,We=Pr(R,["navigate"]),Q=Re(V,ie,ce,{[`${V}-${h}`]:h!=="default"&&h,[`${V}-${A}`]:A,[`${V}-dangerous`]:d,[`${V}-color-${W}`]:W,[`${V}-variant-${F}`]:F,[`${V}-${Pe}`]:Pe,[`${V}-icon-only`]:!b&&b!==0&&!!Ne,[`${V}-background-ghost`]:T&&!pR(F),[`${V}-loading`]:ye,[`${V}-two-chinese-chars`]:pe&&B&&!ye,[`${V}-block`]:x,[`${V}-rtl`]:Z==="rtl",[`${V}-icon-end`]:_==="end"},Ce,y,S,N==null?void 0:N.className),K=Object.assign(Object.assign({},N==null?void 0:N.style),M),J=Re(k==null?void 0:k.icon,(i=N==null?void 0:N.classNames)===null||i===void 0?void 0:i.icon),be=Object.assign(Object.assign({},(m==null?void 0:m.icon)||{}),((o=N==null?void 0:N.styles)===null||o===void 0?void 0:o.icon)||{}),Oe=C&&!ye?ge.createElement(vF,{prefixCls:V,className:J,style:be},C):typeof a=="object"&&a.icon?ge.createElement(vF,{prefixCls:V,className:J,style:be},a.icon):ge.createElement(mze,{existIcon:!!C,prefixCls:V,loading:ye,mount:we.current}),Se=b||b===0?pze(b,xe&&B):null;if(We.href!==void 0)return G(ge.createElement("a",Object.assign({},We,{className:Re(Q,{[`${V}-disabled`]:ee}),href:ee?void 0:We.href,style:K,onClick:De,ref:le,tabIndex:ee?-1:0}),Oe,Se));let Ke=ge.createElement("button",Object.assign({},R,{type:E,className:Q,style:K,onClick:De,disabled:ee,ref:le}),Oe,Se,Ce&&ge.createElement(qUe,{prefixCls:V}));return pR(F)||(Ke=ge.createElement(gE,{component:"Button",disabled:ye},Ke)),G(Ke)}),pr=QUe;pr.Group=fze;pr.__ANT_BUTTON=!0;function bR(e){return!!(e!=null&&e.then)}const NU=e=>{const{type:t,children:n,prefixCls:r,buttonProps:i,close:o,autoFocus:a,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:u}=e,d=f.useRef(!1),h=f.useRef(null),[p,m]=Sv(!1),v=function(){o==null||o.apply(void 0,arguments)};f.useEffect(()=>{let b=null;return a&&(b=setTimeout(()=>{var C;(C=h.current)===null||C===void 0||C.focus({preventScroll:!0})})),()=>{b&&clearTimeout(b)}},[]);const y=b=>{bR(b)&&(m(!0),b.then(function(){m(!1,!0),v.apply(void 0,arguments),d.current=!1},C=>{if(m(!1,!0),d.current=!1,!(l!=null&&l()))return Promise.reject(C)}))},S=b=>{if(d.current)return;if(d.current=!0,!u){v();return}let C;if(s){if(C=u(b),c&&!bR(C)){d.current=!1,v(b);return}}else if(u.length)C=u(o),d.current=!1;else if(C=u(),!bR(C)){v();return}y(C)};return f.createElement(pr,Object.assign({},kU(t),{onClick:S,loading:p,prefixCls:r},i,{ref:h}),n)},yE=ge.createContext({}),{Provider:eve}=yE,nJ=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:i,rootPrefixCls:o,close:a,onCancel:s,onConfirm:l}=f.useContext(yE);return i?ge.createElement(NU,{isSilent:r,actionFn:s,close:function(){a==null||a.apply(void 0,arguments),l==null||l(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${o}-btn`},n):null},rJ=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:i,okTextLocale:o,okType:a,onConfirm:s,onOk:l}=f.useContext(yE);return ge.createElement(NU,{isSilent:n,type:a||"primary",actionFn:l,close:function(){t==null||t.apply(void 0,arguments),s==null||s(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${i}-btn`},o)};var tve=f.createContext(null),iJ=[];function ZUe(e,t){var n=f.useState(function(){if(!pl())return null;var m=document.createElement("div");return m}),r=Le(n,1),i=r[0],o=f.useRef(!1),a=f.useContext(tve),s=f.useState(iJ),l=Le(s,2),c=l[0],u=l[1],d=a||(o.current?void 0:function(m){u(function(v){var y=[m].concat(pt(v));return y})});function h(){i.parentElement||document.body.appendChild(i),o.current=!0}function p(){var m;(m=i.parentElement)===null||m===void 0||m.removeChild(i),o.current=!1}return Er(function(){return e?a?a(h):h():p(),p},[e]),Er(function(){c.length&&(c.forEach(function(m){return m()}),u(iJ))},[c]),[i,d]}var SR;function nve(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var i,o;if(e){var a=getComputedStyle(e);r.scrollbarColor=a.scrollbarColor,r.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",d=c?"height: ".concat(s.height,";"):"";bO(`
|
||
#`.concat(t,`::-webkit-scrollbar {
|
||
`).concat(u,`
|
||
`).concat(d,`
|
||
}`),t)}catch(m){console.error(m),i=l,o=c}}document.body.appendChild(n);var h=e&&i&&!isNaN(i)?i:n.offsetWidth-n.clientWidth,p=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),iF(t),{width:h,height:p}}function oJ(e){return typeof document>"u"?0:(SR===void 0&&(SR=nve()),SR.width)}function yF(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:nve(e)}function JUe(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var eWe="rc-util-locker-".concat(Date.now()),aJ=0;function tWe(e){var t=!!e,n=f.useState(function(){return aJ+=1,"".concat(eWe,"_").concat(aJ)}),r=Le(n,1),i=r[0];Er(function(){if(t){var o=yF(document.body).width,a=JUe();bO(`
|
||
html body {
|
||
overflow-y: hidden;
|
||
`.concat(a?"width: calc(100% - ".concat(o,"px);"):"",`
|
||
}`),i)}else iF(i);return function(){iF(i)}},[t,i])}var nWe=!1;function rWe(e){return nWe}var sJ=function(t){return t===!1?!1:!pl()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},bE=f.forwardRef(function(e,t){var n=e.open,r=e.autoLock,i=e.getContainer;e.debug;var o=e.autoDestroy,a=o===void 0?!0:o,s=e.children,l=f.useState(n),c=Le(l,2),u=c[0],d=c[1],h=u||n;f.useEffect(function(){(a||n)&&d(n)},[n,a]);var p=f.useState(function(){return sJ(i)}),m=Le(p,2),v=m[0],y=m[1];f.useEffect(function(){var D=sJ(i);y(D??null)});var S=ZUe(h&&!v),b=Le(S,2),C=b[0],_=b[1],T=v??C;tWe(r&&n&&pl()&&(T===C||T===document.body));var x=null;if(s&&Dd(s)&&t){var E=s;x=E.ref}var k=Xd(x,t);if(!h||!pl()||v===void 0)return null;var M=T===!1||rWe(),P=s;return t&&(P=f.cloneElement(s,{ref:k})),f.createElement(tve.Provider,{value:_},M?P:Ac.createPortal(P,T))}),rve=f.createContext({});function iWe(){var e=X({},G_);return e.useId}var lJ=0,cJ=iWe();const DO=cJ?function(t){var n=cJ();return t||n}:function(t){var n=f.useState("ssr-id"),r=Le(n,2),i=r[0],o=r[1];return f.useEffect(function(){var a=lJ;lJ+=1,o("rc_unique_".concat(a))},[]),t||i};function uJ(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function dJ(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var i=e.document;n=i.documentElement[r],typeof n!="number"&&(n=i.body[r])}return n}function oWe(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=dJ(i),n.top+=dJ(i,!0),n}const aWe=f.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var sWe={width:0,height:0,overflow:"hidden",outline:"none"},lWe={outline:"none"},ive=ge.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,o=e.title,a=e.ariaId,s=e.footer,l=e.closable,c=e.closeIcon,u=e.onClose,d=e.children,h=e.bodyStyle,p=e.bodyProps,m=e.modalRender,v=e.onMouseDown,y=e.onMouseUp,S=e.holderRef,b=e.visible,C=e.forceRender,_=e.width,T=e.height,x=e.classNames,E=e.styles,k=ge.useContext(rve),M=k.panel,P=Xd(S,M),D=f.useRef(),R=f.useRef();ge.useImperativeHandle(t,function(){return{focus:function(){var V;(V=D.current)===null||V===void 0||V.focus({preventScroll:!0})},changeActive:function(V){var G=document,ie=G.activeElement;V&&ie===R.current?D.current.focus({preventScroll:!0}):!V&&ie===D.current&&R.current.focus({preventScroll:!0})}}});var A={};_!==void 0&&(A.width=_),T!==void 0&&(A.height=T);var H=s?ge.createElement("div",{className:Re("".concat(n,"-footer"),x==null?void 0:x.footer),style:X({},E==null?void 0:E.footer)},s):null,F=o?ge.createElement("div",{className:Re("".concat(n,"-header"),x==null?void 0:x.header),style:X({},E==null?void 0:E.header)},ge.createElement("div",{className:"".concat(n,"-title"),id:a},o)):null,z=f.useMemo(function(){return ln(l)==="object"&&l!==null?l:l?{closeIcon:c??ge.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[l,c,n]),W=Bi(z,!0),q=ln(l)==="object"&&l.disabled,Z=l?ge.createElement("button",st({type:"button",onClick:u,"aria-label":"Close"},W,{className:"".concat(n,"-close"),disabled:q}),z.closeIcon):null,N=ge.createElement("div",{className:Re("".concat(n,"-content"),x==null?void 0:x.content),style:E==null?void 0:E.content},Z,F,ge.createElement("div",st({className:Re("".concat(n,"-body"),x==null?void 0:x.body),style:X(X({},h),E==null?void 0:E.body)},p),d),H);return ge.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":o?a:null,"aria-modal":"true",ref:P,style:X(X({},i),A),className:Re(n,r),onMouseDown:v,onMouseUp:y},ge.createElement("div",{ref:D,tabIndex:0,style:lWe},ge.createElement(aWe,{shouldUpdate:b||C},m?m(N):N)),ge.createElement("div",{tabIndex:0,ref:R,style:sWe}))}),ove=f.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,i=e.style,o=e.className,a=e.visible,s=e.forceRender,l=e.destroyOnClose,c=e.motionName,u=e.ariaId,d=e.onVisibleChanged,h=e.mousePosition,p=f.useRef(),m=f.useState(),v=Le(m,2),y=v[0],S=v[1],b={};y&&(b.transformOrigin=y);function C(){var _=oWe(p.current);S(h&&(h.x||h.y)?"".concat(h.x-_.left,"px ").concat(h.y-_.top,"px"):"")}return f.createElement(fa,{visible:a,onVisibleChanged:d,onAppearPrepare:C,onEnterPrepare:C,forceRender:s,motionName:c,removeOnLeave:l,ref:p},function(_,T){var x=_.className,E=_.style;return f.createElement(ive,st({},e,{ref:t,title:r,ariaId:u,prefixCls:n,holderRef:T,style:X(X(X({},E),i),b),className:Re(o,x)}))})});ove.displayName="Content";var cWe=function(t){var n=t.prefixCls,r=t.style,i=t.visible,o=t.maskProps,a=t.motionName,s=t.className;return f.createElement(fa,{key:"mask",visible:i,motionName:a,leavedClassName:"".concat(n,"-mask-hidden")},function(l,c){var u=l.className,d=l.style;return f.createElement("div",st({ref:c,style:X(X({},d),r),className:Re("".concat(n,"-mask"),u,s)},o))})},uWe=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,i=t.zIndex,o=t.visible,a=o===void 0?!1:o,s=t.keyboard,l=s===void 0?!0:s,c=t.focusTriggerAfterClose,u=c===void 0?!0:c,d=t.wrapStyle,h=t.wrapClassName,p=t.wrapProps,m=t.onClose,v=t.afterOpenChange,y=t.afterClose,S=t.transitionName,b=t.animation,C=t.closable,_=C===void 0?!0:C,T=t.mask,x=T===void 0?!0:T,E=t.maskTransitionName,k=t.maskAnimation,M=t.maskClosable,P=M===void 0?!0:M,D=t.maskStyle,R=t.maskProps,A=t.rootClassName,H=t.classNames,F=t.styles,z=f.useRef(),W=f.useRef(),q=f.useRef(),Z=f.useState(a),N=Le(Z,2),B=N[0],V=N[1],G=DO();function ie(){nF(W.current,document.activeElement)||(z.current=document.activeElement)}function ce(){if(!nF(W.current,document.activeElement)){var le;(le=q.current)===null||le===void 0||le.focus()}}function fe(le){if(le)ce();else{if(V(!1),x&&z.current&&u){try{z.current.focus({preventScroll:!0})}catch{}z.current=null}B&&(y==null||y())}v==null||v(le)}function ee(le){m==null||m(le)}var ne=f.useRef(!1),ue=f.useRef(),ye=function(){clearTimeout(ue.current),ne.current=!0},me=function(){ue.current=setTimeout(function(){ne.current=!1})},pe=null;P&&(pe=function(xe){ne.current?ne.current=!1:W.current===xe.target&&ee(xe)});function he(le){if(l&&le.keyCode===Pt.ESC){le.stopPropagation(),ee(le);return}a&&le.keyCode===Pt.TAB&&q.current.changeActive(!le.shiftKey)}f.useEffect(function(){a&&(V(!0),ie())},[a]),f.useEffect(function(){return function(){clearTimeout(ue.current)}},[]);var _e=X(X(X({zIndex:i},d),F==null?void 0:F.wrapper),{},{display:B?null:"none"});return f.createElement("div",st({className:Re("".concat(r,"-root"),A)},Bi(t,{data:!0})),f.createElement(cWe,{prefixCls:r,visible:x&&a,motionName:uJ(r,E,k),style:X(X({zIndex:i},D),F==null?void 0:F.mask),maskProps:R,className:H==null?void 0:H.mask}),f.createElement("div",st({tabIndex:-1,onKeyDown:he,className:Re("".concat(r,"-wrap"),h,H==null?void 0:H.wrapper),ref:W,onClick:pe,style:_e},p),f.createElement(ove,st({},t,{onMouseDown:ye,onMouseUp:me,ref:q,closable:_,ariaId:G,prefixCls:r,visible:a&&B,onClose:ee,onVisibleChanged:fe,motionName:uJ(r,S,b)}))))},DU=function(t){var n=t.visible,r=t.getContainer,i=t.forceRender,o=t.destroyOnClose,a=o===void 0?!1:o,s=t.afterClose,l=t.panelRef,c=f.useState(n),u=Le(c,2),d=u[0],h=u[1],p=f.useMemo(function(){return{panel:l}},[l]);return f.useEffect(function(){n&&h(!0)},[n]),!i&&a&&!d?null:f.createElement(rve.Provider,{value:p},f.createElement(bE,{open:n||i||d,autoDestroy:!1,getContainer:r,autoLock:n||d},f.createElement(uWe,st({},t,{destroyOnClose:a,afterClose:function(){s==null||s(),h(!1)}}))))};DU.displayName="Dialog";var T1="RC_FORM_INTERNAL_HOOKS",Ki=function(){fi(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},rg=f.createContext({getFieldValue:Ki,getFieldsValue:Ki,getFieldError:Ki,getFieldWarning:Ki,getFieldsError:Ki,isFieldsTouched:Ki,isFieldTouched:Ki,isFieldValidating:Ki,isFieldsValidating:Ki,resetFields:Ki,setFields:Ki,setFieldValue:Ki,setFieldsValue:Ki,validateFields:Ki,submit:Ki,getInternalHooks:function(){return Ki(),{dispatch:Ki,initEntityValue:Ki,registerField:Ki,useSubscribe:Ki,setInitialValues:Ki,destroyForm:Ki,setCallbacks:Ki,registerWatch:Ki,getFields:Ki,setValidateMessages:Ki,setPreserve:Ki,getInitialValue:Ki}}}),f_=f.createContext(null);function bF(e){return e==null?[]:Array.isArray(e)?e:[e]}function dWe(e){return e&&!!e._init}function SF(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var CF=SF();function fWe(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function hWe(e,t,n){if(dO())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&n_(i,n.prototype),i}function xF(e){var t=typeof Map=="function"?new Map:void 0;return xF=function(r){if(r===null||!fWe(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return hWe(r,arguments,gv(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),n_(i,r)},xF(e)}var pWe=/%[sdj%]/g,mWe=function(){};function wF(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Ec(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0,o=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var a=e.replace(pWe,function(s){if(s==="%%")return"%";if(i>=o)return s;switch(s){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return s}});return a}return e}function gWe(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function qa(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||gWe(t)&&typeof e=="string"&&!e)}function vWe(e,t,n){var r=[],i=0,o=e.length;function a(s){r.push.apply(r,pt(s||[])),i++,i===o&&n(r)}e.forEach(function(s){t(s,a)})}function fJ(e,t,n){var r=0,i=e.length;function o(a){if(a&&a.length){n(a);return}var s=r;r=r+1,s<i?t(e[s],o):n([])}o([])}function yWe(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,pt(e[n]||[]))}),t}var hJ=function(e){Ys(n,e);var t=bl(n);function n(r,i){var o;return hi(this,n),o=t.call(this,"Async Validation Error"),ae(On(o),"errors",void 0),ae(On(o),"fields",void 0),o.errors=r,o.fields=i,o}return pi(n)}(xF(Error));function bWe(e,t,n,r,i){if(t.first){var o=new Promise(function(h,p){var m=function(S){return r(S),S.length?p(new hJ(S,wF(S))):h(i)},v=yWe(e);fJ(v,n,m)});return o.catch(function(h){return h}),o}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],d=new Promise(function(h,p){var m=function(y){if(u.push.apply(u,y),c++,c===l)return r(u),u.length?p(new hJ(u,wF(u))):h(i)};s.length||(r(u),h(i)),s.forEach(function(v){var y=e[v];a.indexOf(v)!==-1?fJ(y,n,m):vWe(y,n,m)})});return d.catch(function(h){return h}),d}function SWe(e){return!!(e&&e.message!==void 0)}function CWe(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function pJ(e,t){return function(n){var r;return e.fullFields?r=CWe(t,e.fullFields):r=t[n.field||e.fullField],SWe(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function mJ(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];ln(r)==="object"&&ln(e[n])==="object"?e[n]=X(X({},e[n]),r):e[n]=r}}return e}var G0="enum",xWe=function(t,n,r,i,o){t[G0]=Array.isArray(t[G0])?t[G0]:[],t[G0].indexOf(n)===-1&&i.push(Ec(o.messages[G0],t.fullField,t[G0].join(", ")))},wWe=function(t,n,r,i,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||i.push(Ec(o.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||i.push(Ec(o.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},_We=function(t,n,r,i,o){var a=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=n,d=null,h=typeof n=="number",p=typeof n=="string",m=Array.isArray(n);if(h?d="number":p?d="string":m&&(d="array"),!d)return!1;m&&(u=n.length),p&&(u=n.replace(c,"_").length),a?u!==t.len&&i.push(Ec(o.messages[d].len,t.fullField,t.len)):s&&!l&&u<t.min?i.push(Ec(o.messages[d].min,t.fullField,t.min)):l&&!s&&u>t.max?i.push(Ec(o.messages[d].max,t.fullField,t.max)):s&&l&&(u<t.min||u>t.max)&&i.push(Ec(o.messages[d].range,t.fullField,t.min,t.max))},ave=function(t,n,r,i,o,a){t.required&&(!r.hasOwnProperty(t.field)||qa(n,a||t.type))&&i.push(Ec(o.messages.required,t.fullField))},zT;const EWe=function(){if(zT)return zT;var e="[a-fA-F\\d:]",t=function(x){return x&&x.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",i=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(i.join("|"),")").concat(o),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(a,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(a,"$")),u=function(x){return x&&x.exact?s:new RegExp("(?:".concat(t(x)).concat(n).concat(t(x),")|(?:").concat(t(x)).concat(a).concat(t(x),")"),"g")};u.v4=function(T){return T&&T.exact?l:new RegExp("".concat(t(T)).concat(n).concat(t(T)),"g")},u.v6=function(T){return T&&T.exact?c:new RegExp("".concat(t(T)).concat(a).concat(t(T)),"g")};var d="(?:(?:[a-z]+:)?//)",h="(?:\\S+(?::\\S*)?@)?",p=u.v4().source,m=u.v6().source,v="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",y="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",S="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",b="(?::\\d{2,5})?",C='(?:[/?#][^\\s"]*)?',_="(?:".concat(d,"|www\\.)").concat(h,"(?:localhost|").concat(p,"|").concat(m,"|").concat(v).concat(y).concat(S,")").concat(b).concat(C);return zT=new RegExp("(?:^".concat(_,"$)"),"i"),zT};var gJ={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},S2={integer:function(t){return S2.number(t)&&parseInt(t,10)===t},float:function(t){return S2.number(t)&&!S2.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return ln(t)==="object"&&!S2.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(gJ.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(EWe())},hex:function(t){return typeof t=="string"&&!!t.match(gJ.hex)}},TWe=function(t,n,r,i,o){if(t.required&&n===void 0){ave(t,n,r,i,o);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?S2[s](n)||i.push(Ec(o.messages.types[s],t.fullField,t.type)):s&&ln(n)!==t.type&&i.push(Ec(o.messages.types[s],t.fullField,t.type))},kWe=function(t,n,r,i,o){(/^\s+$/.test(n)||n==="")&&i.push(Ec(o.messages.whitespace,t.fullField))};const di={required:ave,whitespace:kWe,type:TWe,range:_We,enum:xWe,pattern:wWe};var OWe=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(qa(n)&&!t.required)return r();di.required(t,n,i,a,o)}r(a)},PWe=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();di.required(t,n,i,a,o,"array"),n!=null&&(di.type(t,n,i,a,o),di.range(t,n,i,a,o))}r(a)},MWe=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(qa(n)&&!t.required)return r();di.required(t,n,i,a,o),n!==void 0&&di.type(t,n,i,a,o)}r(a)},IWe=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(qa(n,"date")&&!t.required)return r();if(di.required(t,n,i,a,o),!qa(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),di.type(t,l,i,a,o),l&&di.range(t,l.getTime(),i,a,o)}}r(a)},$We="enum",RWe=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(qa(n)&&!t.required)return r();di.required(t,n,i,a,o),n!==void 0&&di[$We](t,n,i,a,o)}r(a)},AWe=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(qa(n)&&!t.required)return r();di.required(t,n,i,a,o),n!==void 0&&(di.type(t,n,i,a,o),di.range(t,n,i,a,o))}r(a)},NWe=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(qa(n)&&!t.required)return r();di.required(t,n,i,a,o),n!==void 0&&(di.type(t,n,i,a,o),di.range(t,n,i,a,o))}r(a)},DWe=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(qa(n)&&!t.required)return r();di.required(t,n,i,a,o),n!==void 0&&di.type(t,n,i,a,o)}r(a)},LWe=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),qa(n)&&!t.required)return r();di.required(t,n,i,a,o),n!==void 0&&(di.type(t,n,i,a,o),di.range(t,n,i,a,o))}r(a)},FWe=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(qa(n)&&!t.required)return r();di.required(t,n,i,a,o),n!==void 0&&di.type(t,n,i,a,o)}r(a)},jWe=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(qa(n,"string")&&!t.required)return r();di.required(t,n,i,a,o),qa(n,"string")||di.pattern(t,n,i,a,o)}r(a)},BWe=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(qa(n)&&!t.required)return r();di.required(t,n,i,a,o),qa(n)||di.type(t,n,i,a,o)}r(a)},HWe=function(t,n,r,i,o){var a=[],s=Array.isArray(n)?"array":ln(n);di.required(t,n,i,a,o,s),r(a)},zWe=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(qa(n,"string")&&!t.required)return r();di.required(t,n,i,a,o,"string"),qa(n,"string")||(di.type(t,n,i,a,o),di.range(t,n,i,a,o),di.pattern(t,n,i,a,o),t.whitespace===!0&&di.whitespace(t,n,i,a,o))}r(a)},CR=function(t,n,r,i,o){var a=t.type,s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(qa(n,a)&&!t.required)return r();di.required(t,n,i,s,o,a),qa(n,a)||di.type(t,n,i,s,o)}r(s)};const Z2={string:zWe,method:DWe,number:LWe,boolean:MWe,regexp:BWe,integer:NWe,float:AWe,array:PWe,object:FWe,enum:RWe,pattern:jWe,date:IWe,url:CR,hex:CR,email:CR,required:HWe,any:OWe};var SE=function(){function e(t){hi(this,e),ae(this,"rules",null),ae(this,"_messages",CF),this.define(t)}return pi(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(ln(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(i){var o=n[i];r.rules[i]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(n){return n&&(this._messages=mJ(SF(),n)),this._messages}},{key:"validate",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=n,s=i,l=o;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,a),Promise.resolve(a);function c(m){var v=[],y={};function S(C){if(Array.isArray(C)){var _;v=(_=v).concat.apply(_,pt(C))}else v.push(C)}for(var b=0;b<m.length;b++)S(m[b]);v.length?(y=wF(v),l(v,y)):l(null,a)}if(s.messages){var u=this.messages();u===CF&&(u=SF()),mJ(u,s.messages),s.messages=u}else s.messages=this.messages();var d={},h=s.keys||Object.keys(this.rules);h.forEach(function(m){var v=r.rules[m],y=a[m];v.forEach(function(S){var b=S;typeof b.transform=="function"&&(a===n&&(a=X({},a)),y=a[m]=b.transform(y),y!=null&&(b.type=b.type||(Array.isArray(y)?"array":ln(y)))),typeof b=="function"?b={validator:b}:b=X({},b),b.validator=r.getValidationMethod(b),b.validator&&(b.field=m,b.fullField=b.fullField||m,b.type=r.getType(b),d[m]=d[m]||[],d[m].push({rule:b,value:y,source:a,field:m}))})});var p={};return bWe(d,s,function(m,v){var y=m.rule,S=(y.type==="object"||y.type==="array")&&(ln(y.fields)==="object"||ln(y.defaultField)==="object");S=S&&(y.required||!y.required&&m.value),y.field=m.field;function b(E,k){return X(X({},k),{},{fullField:"".concat(y.fullField,".").concat(E),fullFields:y.fullFields?[].concat(pt(y.fullFields),[E]):[E]})}function C(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],k=Array.isArray(E)?E:[E];!s.suppressWarning&&k.length&&e.warning("async-validator:",k),k.length&&y.message!==void 0&&(k=[].concat(y.message));var M=k.map(pJ(y,a));if(s.first&&M.length)return p[y.field]=1,v(M);if(!S)v(M);else{if(y.required&&!m.value)return y.message!==void 0?M=[].concat(y.message).map(pJ(y,a)):s.error&&(M=[s.error(y,Ec(s.messages.required,y.field))]),v(M);var P={};y.defaultField&&Object.keys(m.value).map(function(A){P[A]=y.defaultField}),P=X(X({},P),m.rule.fields);var D={};Object.keys(P).forEach(function(A){var H=P[A],F=Array.isArray(H)?H:[H];D[A]=F.map(b.bind(null,A))});var R=new e(D);R.messages(s.messages),m.rule.options&&(m.rule.options.messages=s.messages,m.rule.options.error=s.error),R.validate(m.value,m.rule.options||s,function(A){var H=[];M&&M.length&&H.push.apply(H,pt(M)),A&&A.length&&H.push.apply(H,pt(A)),v(H.length?H:null)})}}var _;if(y.asyncValidator)_=y.asyncValidator(y,m.value,C,m.source,s);else if(y.validator){try{_=y.validator(y,m.value,C,m.source,s)}catch(E){var T,x;(T=(x=console).error)===null||T===void 0||T.call(x,E),s.suppressValidatorError||setTimeout(function(){throw E},0),C(E.message)}_===!0?C():_===!1?C(typeof y.message=="function"?y.message(y.fullField||y.field):y.message||"".concat(y.fullField||y.field," fails")):_ instanceof Array?C(_):_ instanceof Error&&C(_.message)}_&&_.then&&_.then(function(){return C()},function(E){return C(E)})},function(m){c(m)},a)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!Z2.hasOwnProperty(n.type))throw new Error(Ec("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),i=r.indexOf("message");return i!==-1&&r.splice(i,1),r.length===1&&r[0]==="required"?Z2.required:Z2[this.getType(n)]||void 0}}]),e}();ae(SE,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Z2[t]=n});ae(SE,"warning",mWe);ae(SE,"messages",CF);ae(SE,"validators",Z2);var ac="'${name}' is not a valid ${type}",sve={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:ac,method:ac,array:ac,object:ac,number:ac,date:ac,boolean:ac,integer:ac,float:ac,regexp:ac,email:ac,url:ac,hex:ac},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},vJ=SE;function UWe(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var yJ="CODE_LOGIC_ERROR";function _F(e,t,n,r,i){return EF.apply(this,arguments)}function EF(){return EF=Zo(Hr().mark(function e(t,n,r,i,o){var a,s,l,c,u,d,h,p,m;return Hr().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return a=X({},r),delete a.ruleIndex,vJ.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(S){return console.error(S),Promise.reject(yJ)}}),l=null,a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new vJ(ae({},t,[a])),u=By(sve,i.validateMessages),c.messages(u),d=[],y.prev=10,y.next=13,Promise.resolve(c.validate(ae({},t,n),X({},i)));case 13:y.next=18;break;case 15:y.prev=15,y.t0=y.catch(10),y.t0.errors&&(d=y.t0.errors.map(function(S,b){var C=S.message,_=C===yJ?u.default:C;return f.isValidElement(_)?f.cloneElement(_,{key:"error_".concat(b)}):_}));case 18:if(!(!d.length&&l)){y.next=23;break}return y.next=21,Promise.all(n.map(function(S,b){return _F("".concat(t,".").concat(b),S,l,i,o)}));case 21:return h=y.sent,y.abrupt("return",h.reduce(function(S,b){return[].concat(pt(S),pt(b))},[]));case 23:return p=X(X({},r),{},{name:t,enum:(r.enum||[]).join(", ")},o),m=d.map(function(S){return typeof S=="string"?UWe(S,p):S}),y.abrupt("return",m);case 26:case"end":return y.stop()}},e,null,[[10,15]])})),EF.apply(this,arguments)}function WWe(e,t,n,r,i,o){var a=e.join("."),s=n.map(function(u,d){var h=u.validator,p=X(X({},u),{},{ruleIndex:d});return h&&(p.validator=function(m,v,y){var S=!1,b=function(){for(var T=arguments.length,x=new Array(T),E=0;E<T;E++)x[E]=arguments[E];Promise.resolve().then(function(){fi(!S,"Your validator function has already return a promise. `callback` will be ignored."),S||y.apply(void 0,x)})},C=h(m,v,b);S=C&&typeof C.then=="function"&&typeof C.catch=="function",fi(S,"`callback` is deprecated. Please return a promise instead."),S&&C.then(function(){y()}).catch(function(_){y(_||" ")})}),p}).sort(function(u,d){var h=u.warningOnly,p=u.ruleIndex,m=d.warningOnly,v=d.ruleIndex;return!!h==!!m?p-v:h?1:-1}),l;if(i===!0)l=new Promise(function(){var u=Zo(Hr().mark(function d(h,p){var m,v,y;return Hr().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:m=0;case 1:if(!(m<s.length)){b.next=12;break}return v=s[m],b.next=5,_F(a,t,v,r,o);case 5:if(y=b.sent,!y.length){b.next=9;break}return p([{errors:y,rule:v}]),b.abrupt("return");case 9:m+=1,b.next=1;break;case 12:h([]);case 13:case"end":return b.stop()}},d)}));return function(d,h){return u.apply(this,arguments)}}());else{var c=s.map(function(u){return _F(a,t,u,r,o).then(function(d){return{errors:d,rule:u}})});l=(i?KWe(c):VWe(c)).then(function(u){return Promise.reject(u)})}return l.catch(function(u){return u}),l}function VWe(e){return TF.apply(this,arguments)}function TF(){return TF=Zo(Hr().mark(function e(t){return Hr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(i){var o,a=(o=[]).concat.apply(o,pt(i));return a}));case 1:case"end":return r.stop()}},e)})),TF.apply(this,arguments)}function KWe(e){return kF.apply(this,arguments)}function kF(){return kF=Zo(Hr().mark(function e(t){var n;return Hr().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return n=0,i.abrupt("return",new Promise(function(o){t.forEach(function(a){a.then(function(s){s.errors.length&&o([s]),n+=1,n===t.length&&o([])})})}));case 2:case"end":return i.stop()}},e)})),kF.apply(this,arguments)}function sa(e){return bF(e)}function bJ(e,t){var n={};return t.forEach(function(r){var i=jo(e,r);n=ca(n,r,i)}),n}function cb(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return lve(t,r,n)})}function lve(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,i){return e[i]===r})}function qWe(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||ln(e)!=="object"||ln(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),i=new Set([].concat(n,r));return pt(i).every(function(o){var a=e[o],s=t[o];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function GWe(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&ln(t.target)==="object"&&e in t.target?t.target[e]:t}function SJ(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var i=e[t],o=t-n;return o>0?[].concat(pt(e.slice(0,n)),[i],pt(e.slice(n,t)),pt(e.slice(t+1,r))):o<0?[].concat(pt(e.slice(0,t)),pt(e.slice(t+1,n+1)),[i],pt(e.slice(n+1,r))):e}var YWe=["name"],Zc=[];function xR(e,t,n,r,i,o){return typeof e=="function"?e(t,n,"source"in o?{source:o.source}:{}):r!==i}var LU=function(e){Ys(n,e);var t=bl(n);function n(r){var i;if(hi(this,n),i=t.call(this,r),ae(On(i),"state",{resetCount:0}),ae(On(i),"cancelRegisterFunc",null),ae(On(i),"mounted",!1),ae(On(i),"touched",!1),ae(On(i),"dirty",!1),ae(On(i),"validatePromise",void 0),ae(On(i),"prevValidating",void 0),ae(On(i),"errors",Zc),ae(On(i),"warnings",Zc),ae(On(i),"cancelRegister",function(){var l=i.props,c=l.preserve,u=l.isListField,d=l.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(u,c,sa(d)),i.cancelRegisterFunc=null}),ae(On(i),"getNamePath",function(){var l=i.props,c=l.name,u=l.fieldContext,d=u.prefixName,h=d===void 0?[]:d;return c!==void 0?[].concat(pt(h),pt(c)):[]}),ae(On(i),"getRules",function(){var l=i.props,c=l.rules,u=c===void 0?[]:c,d=l.fieldContext;return u.map(function(h){return typeof h=="function"?h(d):h})}),ae(On(i),"refresh",function(){i.mounted&&i.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),ae(On(i),"metaCache",null),ae(On(i),"triggerMetaEvent",function(l){var c=i.props.onMetaChange;if(c){var u=X(X({},i.getMeta()),{},{destroy:l});ku(i.metaCache,u)||c(u),i.metaCache=u}else i.metaCache=null}),ae(On(i),"onStoreChange",function(l,c,u){var d=i.props,h=d.shouldUpdate,p=d.dependencies,m=p===void 0?[]:p,v=d.onReset,y=u.store,S=i.getNamePath(),b=i.getValue(l),C=i.getValue(y),_=c&&cb(c,S);switch(u.type==="valueUpdate"&&u.source==="external"&&!ku(b,C)&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=Zc,i.warnings=Zc,i.triggerMetaEvent()),u.type){case"reset":if(!c||_){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=Zc,i.warnings=Zc,i.triggerMetaEvent(),v==null||v(),i.refresh();return}break;case"remove":{if(h&&xR(h,l,y,b,C,u)){i.reRender();return}break}case"setField":{var T=u.data;if(_){"touched"in T&&(i.touched=T.touched),"validating"in T&&!("originRCField"in T)&&(i.validatePromise=T.validating?Promise.resolve([]):null),"errors"in T&&(i.errors=T.errors||Zc),"warnings"in T&&(i.warnings=T.warnings||Zc),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in T&&cb(c,S,!0)){i.reRender();return}if(h&&!S.length&&xR(h,l,y,b,C,u)){i.reRender();return}break}case"dependenciesUpdate":{var x=m.map(sa);if(x.some(function(E){return cb(u.relatedFields,E)})){i.reRender();return}break}default:if(_||(!m.length||S.length||h)&&xR(h,l,y,b,C,u)){i.reRender();return}break}h===!0&&i.reRender()}),ae(On(i),"validateRules",function(l){var c=i.getNamePath(),u=i.getValue(),d=l||{},h=d.triggerName,p=d.validateOnly,m=p===void 0?!1:p,v=Promise.resolve().then(Zo(Hr().mark(function y(){var S,b,C,_,T,x,E;return Hr().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:if(i.mounted){M.next=2;break}return M.abrupt("return",[]);case 2:if(S=i.props,b=S.validateFirst,C=b===void 0?!1:b,_=S.messageVariables,T=S.validateDebounce,x=i.getRules(),h&&(x=x.filter(function(P){return P}).filter(function(P){var D=P.validateTrigger;if(!D)return!0;var R=bF(D);return R.includes(h)})),!(T&&h)){M.next=10;break}return M.next=8,new Promise(function(P){setTimeout(P,T)});case 8:if(i.validatePromise===v){M.next=10;break}return M.abrupt("return",[]);case 10:return E=WWe(c,u,x,l,C,_),E.catch(function(P){return P}).then(function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Zc;if(i.validatePromise===v){var D;i.validatePromise=null;var R=[],A=[];(D=P.forEach)===null||D===void 0||D.call(P,function(H){var F=H.rule.warningOnly,z=H.errors,W=z===void 0?Zc:z;F?A.push.apply(A,pt(W)):R.push.apply(R,pt(W))}),i.errors=R,i.warnings=A,i.triggerMetaEvent(),i.reRender()}}),M.abrupt("return",E);case 13:case"end":return M.stop()}},y)})));return m||(i.validatePromise=v,i.dirty=!0,i.errors=Zc,i.warnings=Zc,i.triggerMetaEvent(),i.reRender()),v}),ae(On(i),"isFieldValidating",function(){return!!i.validatePromise}),ae(On(i),"isFieldTouched",function(){return i.touched}),ae(On(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var l=i.props.fieldContext,c=l.getInternalHooks(T1),u=c.getInitialValue;return u(i.getNamePath())!==void 0}),ae(On(i),"getErrors",function(){return i.errors}),ae(On(i),"getWarnings",function(){return i.warnings}),ae(On(i),"isListField",function(){return i.props.isListField}),ae(On(i),"isList",function(){return i.props.isList}),ae(On(i),"isPreserve",function(){return i.props.preserve}),ae(On(i),"getMeta",function(){i.prevValidating=i.isFieldValidating();var l={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return l}),ae(On(i),"getOnlyChild",function(l){if(typeof l=="function"){var c=i.getMeta();return X(X({},i.getOnlyChild(l(i.getControlled(),c,i.props.fieldContext))),{},{isFunction:!0})}var u=zo(l);return u.length!==1||!f.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),ae(On(i),"getValue",function(l){var c=i.props.fieldContext.getFieldsValue,u=i.getNamePath();return jo(l||c(!0),u)}),ae(On(i),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=i.props,u=c.name,d=c.trigger,h=c.validateTrigger,p=c.getValueFromEvent,m=c.normalize,v=c.valuePropName,y=c.getValueProps,S=c.fieldContext,b=h!==void 0?h:S.validateTrigger,C=i.getNamePath(),_=S.getInternalHooks,T=S.getFieldsValue,x=_(T1),E=x.dispatch,k=i.getValue(),M=y||function(H){return ae({},v,H)},P=l[d],D=u!==void 0?M(k):{},R=X(X({},l),D);R[d]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var H,F=arguments.length,z=new Array(F),W=0;W<F;W++)z[W]=arguments[W];p?H=p.apply(void 0,z):H=GWe.apply(void 0,[v].concat(z)),m&&(H=m(H,k,T(!0))),H!==k&&E({type:"updateValue",namePath:C,value:H}),P&&P.apply(void 0,z)};var A=bF(b||[]);return A.forEach(function(H){var F=R[H];R[H]=function(){F&&F.apply(void 0,arguments);var z=i.props.rules;z&&z.length&&E({type:"validateField",namePath:C,triggerName:H})}}),R}),r.fieldContext){var o=r.fieldContext.getInternalHooks,a=o(T1),s=a.initEntityValue;s(On(i))}return i}return pi(n,[{key:"componentDidMount",value:function(){var i=this.props,o=i.shouldUpdate,a=i.fieldContext;if(this.mounted=!0,a){var s=a.getInternalHooks,l=s(T1),c=l.registerField;this.cancelRegisterFunc=c(this)}o===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var i=this.state.resetCount,o=this.props.children,a=this.getOnlyChild(o),s=a.child,l=a.isFunction,c;return l?c=s:f.isValidElement(s)?c=f.cloneElement(s,this.getControlled(s.props)):(fi(!s,"`children` of Field is not validate ReactElement."),c=s),f.createElement(f.Fragment,{key:i},c)}}]),n}(f.Component);ae(LU,"contextType",rg);ae(LU,"defaultProps",{trigger:"onChange",valuePropName:"value"});function FU(e){var t,n=e.name,r=tn(e,YWe),i=f.useContext(rg),o=f.useContext(f_),a=n!==void 0?sa(n):void 0,s=(t=r.isListField)!==null&&t!==void 0?t:!!o,l="keep";return s||(l="_".concat((a||[]).join("_"))),f.createElement(LU,st({key:l,name:a,isListField:s},r,{fieldContext:i}))}function cve(e){var t=e.name,n=e.initialValue,r=e.children,i=e.rules,o=e.validateTrigger,a=e.isListField,s=f.useContext(rg),l=f.useContext(f_),c=f.useRef({keys:[],id:0}),u=c.current,d=f.useMemo(function(){var v=sa(s.prefixName)||[];return[].concat(pt(v),pt(sa(t)))},[s.prefixName,t]),h=f.useMemo(function(){return X(X({},s),{},{prefixName:d})},[s,d]),p=f.useMemo(function(){return{getKey:function(y){var S=d.length,b=y[S];return[u.keys[b],y.slice(S+1)]}}},[d]);if(typeof r!="function")return fi(!1,"Form.List only accepts function as children."),null;var m=function(y,S,b){var C=b.source;return C==="internal"?!1:y!==S};return f.createElement(f_.Provider,{value:p},f.createElement(rg.Provider,{value:h},f.createElement(FU,{name:[],shouldUpdate:m,rules:i,validateTrigger:o,initialValue:n,isList:!0,isListField:a??!!l},function(v,y){var S=v.value,b=S===void 0?[]:S,C=v.onChange,_=s.getFieldValue,T=function(){var M=_(d||[]);return M||[]},x={add:function(M,P){var D=T();P>=0&&P<=D.length?(u.keys=[].concat(pt(u.keys.slice(0,P)),[u.id],pt(u.keys.slice(P))),C([].concat(pt(D.slice(0,P)),[M],pt(D.slice(P))))):(u.keys=[].concat(pt(u.keys),[u.id]),C([].concat(pt(D),[M]))),u.id+=1},remove:function(M){var P=T(),D=new Set(Array.isArray(M)?M:[M]);D.size<=0||(u.keys=u.keys.filter(function(R,A){return!D.has(A)}),C(P.filter(function(R,A){return!D.has(A)})))},move:function(M,P){if(M!==P){var D=T();M<0||M>=D.length||P<0||P>=D.length||(u.keys=SJ(u.keys,M,P),C(SJ(D,M,P)))}}},E=b||[];return Array.isArray(E)||(E=[]),r(E.map(function(k,M){var P=u.keys[M];return P===void 0&&(u.keys[M]=u.id,P=u.keys[M],u.id+=1),{name:M,key:P,isListField:!0}}),x,y)})))}function XWe(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(i,o){e.forEach(function(a,s){a.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&o(r),i(r))})})}):Promise.resolve([])}var uve="__@field_split__";function wR(e){return e.map(function(t){return"".concat(ln(t),":").concat(t)}).join(uve)}var Y0=function(){function e(){hi(this,e),ae(this,"kvs",new Map)}return pi(e,[{key:"set",value:function(n,r){this.kvs.set(wR(n),r)}},{key:"get",value:function(n){return this.kvs.get(wR(n))}},{key:"update",value:function(n,r){var i=this.get(n),o=r(i);o?this.set(n,o):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(wR(n))}},{key:"map",value:function(n){return pt(this.kvs.entries()).map(function(r){var i=Le(r,2),o=i[0],a=i[1],s=o.split(uve);return n({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=Le(c,3),d=u[1],h=u[2];return d==="number"?Number(h):h}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var i=r.key,o=r.value;return n[i.join(".")]=o,null}),n}}]),e}(),QWe=["name"],ZWe=pi(function e(t){var n=this;hi(this,e),ae(this,"formHooked",!1),ae(this,"forceRootUpdate",void 0),ae(this,"subscribable",!0),ae(this,"store",{}),ae(this,"fieldEntities",[]),ae(this,"initialValues",{}),ae(this,"callbacks",{}),ae(this,"validateMessages",null),ae(this,"preserve",null),ae(this,"lastValidatePromise",null),ae(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),ae(this,"getInternalHooks",function(r){return r===T1?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(fi(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),ae(this,"useSubscribe",function(r){n.subscribable=r}),ae(this,"prevWithoutPreserves",null),ae(this,"setInitialValues",function(r,i){if(n.initialValues=r||{},i){var o,a=By(r,n.store);(o=n.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var l=s.key;a=ca(a,l,jo(r,l))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),ae(this,"destroyForm",function(r){if(r)n.updateStore({});else{var i=new Y0;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||i.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=i}}),ae(this,"getInitialValue",function(r){var i=jo(n.initialValues,r);return r.length?By(i):i}),ae(this,"setCallbacks",function(r){n.callbacks=r}),ae(this,"setValidateMessages",function(r){n.validateMessages=r}),ae(this,"setPreserve",function(r){n.preserve=r}),ae(this,"watchList",[]),ae(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(i){return i!==r})}}),ae(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var i=n.getFieldsValue(),o=n.getFieldsValue(!0);n.watchList.forEach(function(a){a(i,o,r)})}}),ae(this,"timeoutId",null),ae(this,"warningUnhooked",function(){}),ae(this,"updateStore",function(r){n.store=r}),ae(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(i){return i.getNamePath().length}):n.fieldEntities}),ae(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new Y0;return n.getFieldEntities(r).forEach(function(o){var a=o.getNamePath();i.set(a,o)}),i}),ae(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var i=n.getFieldsMap(!0);return r.map(function(o){var a=sa(o);return i.get(a)||{INVALIDATE_NAME_PATH:sa(o)}})}),ae(this,"getFieldsValue",function(r,i){n.warningUnhooked();var o,a,s;if(r===!0||Array.isArray(r)?(o=r,a=i):r&&ln(r)==="object"&&(s=r.strict,a=r.filter),o===!0&&!a)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),c=[];return l.forEach(function(u){var d,h,p="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var m,v;if((m=(v=u).isList)!==null&&m!==void 0&&m.call(v))return}else if(!o&&(d=(h=u).isListField)!==null&&d!==void 0&&d.call(h))return;if(!a)c.push(p);else{var y="getMeta"in u?u.getMeta():null;a(y)&&c.push(p)}}),bJ(n.store,c.map(sa))}),ae(this,"getFieldValue",function(r){n.warningUnhooked();var i=sa(r);return jo(n.store,i)}),ae(this,"getFieldsError",function(r){n.warningUnhooked();var i=n.getFieldEntitiesForNamePathList(r);return i.map(function(o,a){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:sa(r[a]),errors:[],warnings:[]}})}),ae(this,"getFieldError",function(r){n.warningUnhooked();var i=sa(r),o=n.getFieldsError([i])[0];return o.errors}),ae(this,"getFieldWarning",function(r){n.warningUnhooked();var i=sa(r),o=n.getFieldsError([i])[0];return o.warnings}),ae(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=i[0],s=i[1],l,c=!1;i.length===0?l=null:i.length===1?Array.isArray(a)?(l=a.map(sa),c=!1):(l=null,c=a):(l=a.map(sa),c=s);var u=n.getFieldEntities(!0),d=function(y){return y.isFieldTouched()};if(!l)return c?u.every(function(v){return d(v)||v.isList()}):u.some(d);var h=new Y0;l.forEach(function(v){h.set(v,[])}),u.forEach(function(v){var y=v.getNamePath();l.forEach(function(S){S.every(function(b,C){return y[C]===b})&&h.update(S,function(b){return[].concat(pt(b),[v])})})});var p=function(y){return y.some(d)},m=h.map(function(v){var y=v.value;return y});return c?m.every(p):m.some(p)}),ae(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),ae(this,"isFieldsValidating",function(r){n.warningUnhooked();var i=n.getFieldEntities();if(!r)return i.some(function(a){return a.isFieldValidating()});var o=r.map(sa);return i.some(function(a){var s=a.getNamePath();return cb(o,s)&&a.isFieldValidating()})}),ae(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),ae(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=new Y0,o=n.getFieldEntities(!0);o.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var d=i.get(u)||new Set;d.add({entity:l,value:c}),i.set(u,d)}});var a=function(c){c.forEach(function(u){var d=u.props.initialValue;if(d!==void 0){var h=u.getNamePath(),p=n.getInitialValue(h);if(p!==void 0)fi(!1,"Form already set 'initialValues' with path '".concat(h.join("."),"'. Field can not overwrite it."));else{var m=i.get(h);if(m&&m.size>1)fi(!1,"Multiple Field with path '".concat(h.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(m){var v=n.getFieldValue(h),y=u.isListField();!y&&(!r.skipExist||v===void 0)&&n.updateStore(ca(n.store,h,pt(m)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var c=i.get(l);if(c){var u;(u=s).push.apply(u,pt(pt(c).map(function(d){return d.entity})))}})):s=o,a(s)}),ae(this,"resetFields",function(r){n.warningUnhooked();var i=n.store;if(!r){n.updateStore(By(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(i,null,{type:"reset"}),n.notifyWatch();return}var o=r.map(sa);o.forEach(function(a){var s=n.getInitialValue(a);n.updateStore(ca(n.store,a,s))}),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(i,o,{type:"reset"}),n.notifyWatch(o)}),ae(this,"setFields",function(r){n.warningUnhooked();var i=n.store,o=[];r.forEach(function(a){var s=a.name,l=tn(a,QWe),c=sa(s);o.push(c),"value"in l&&n.updateStore(ca(n.store,c,l.value)),n.notifyObservers(i,[c],{type:"setField",data:a})}),n.notifyWatch(o)}),ae(this,"getFields",function(){var r=n.getFieldEntities(!0),i=r.map(function(o){var a=o.getNamePath(),s=o.getMeta(),l=X(X({},s),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return i}),ae(this,"initEntityValue",function(r){var i=r.props.initialValue;if(i!==void 0){var o=r.getNamePath(),a=jo(n.store,o);a===void 0&&n.updateStore(ca(n.store,o,i))}}),ae(this,"isMergedPreserve",function(r){var i=r!==void 0?r:n.preserve;return i??!0}),ae(this,"registerField",function(r){n.fieldEntities.push(r);var i=r.getNamePath();if(n.notifyWatch([i]),r.props.initialValue!==void 0){var o=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(o,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(d){return d!==r}),!n.isMergedPreserve(s)&&(!a||l.length>1)){var c=a?void 0:n.getInitialValue(i);if(i.length&&n.getFieldValue(i)!==c&&n.fieldEntities.every(function(d){return!lve(d.getNamePath(),i)})){var u=n.store;n.updateStore(ca(u,i,c,!0)),n.notifyObservers(u,[i],{type:"remove"}),n.triggerDependenciesUpdate(u,i)}}n.notifyWatch([i])}}),ae(this,"dispatch",function(r){switch(r.type){case"updateValue":{var i=r.namePath,o=r.value;n.updateValue(i,o);break}case"validateField":{var a=r.namePath,s=r.triggerName;n.validateFields([a],{triggerName:s});break}}}),ae(this,"notifyObservers",function(r,i,o){if(n.subscribable){var a=X(X({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,i,a)})}else n.forceRootUpdate()}),ae(this,"triggerDependenciesUpdate",function(r,i){var o=n.getDependencyChildrenFields(i);return o.length&&n.validateFields(o),n.notifyObservers(r,o,{type:"dependenciesUpdate",relatedFields:[i].concat(pt(o))}),o}),ae(this,"updateValue",function(r,i){var o=sa(r),a=n.store;n.updateStore(ca(n.store,o,i)),n.notifyObservers(a,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);var s=n.triggerDependenciesUpdate(a,o),l=n.callbacks.onValuesChange;if(l){var c=bJ(n.store,[o]);l(c,n.getFieldsValue())}n.triggerOnFieldsChange([o].concat(pt(s)))}),ae(this,"setFieldsValue",function(r){n.warningUnhooked();var i=n.store;if(r){var o=By(n.store,r);n.updateStore(o)}n.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),ae(this,"setFieldValue",function(r,i){n.setFields([{name:r,value:i,errors:[],warnings:[]}])}),ae(this,"getDependencyChildrenFields",function(r){var i=new Set,o=[],a=new Y0;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var d=sa(u);a.update(d,function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return h.add(l),h})})});var s=function l(c){var u=a.get(c)||new Set;u.forEach(function(d){if(!i.has(d)){i.add(d);var h=d.getNamePath();d.isFieldDirty()&&h.length&&(o.push(h),l(h))}})};return s(r),o}),ae(this,"triggerOnFieldsChange",function(r,i){var o=n.callbacks.onFieldsChange;if(o){var a=n.getFields();if(i){var s=new Y0;i.forEach(function(c){var u=c.name,d=c.errors;s.set(u,d)}),a.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=a.filter(function(c){var u=c.name;return cb(r,u)});l.length&&o(l,a)}}),ae(this,"validateFields",function(r,i){n.warningUnhooked();var o,a;Array.isArray(r)||typeof r=="string"||typeof i=="string"?(o=r,a=i):a=r;var s=!!o,l=s?o.map(sa):[],c=[],u=String(Date.now()),d=new Set,h=a||{},p=h.recursive,m=h.dirty;n.getFieldEntities(!0).forEach(function(b){if(s||l.push(b.getNamePath()),!(!b.props.rules||!b.props.rules.length)&&!(m&&!b.isFieldDirty())){var C=b.getNamePath();if(d.add(C.join(u)),!s||cb(l,C,p)){var _=b.validateRules(X({validateMessages:X(X({},sve),n.validateMessages)},a));c.push(_.then(function(){return{name:C,errors:[],warnings:[]}}).catch(function(T){var x,E=[],k=[];return(x=T.forEach)===null||x===void 0||x.call(T,function(M){var P=M.rule.warningOnly,D=M.errors;P?k.push.apply(k,pt(D)):E.push.apply(E,pt(D))}),E.length?Promise.reject({name:C,errors:E,warnings:k}):{name:C,errors:E,warnings:k}}))}}});var v=XWe(c);n.lastValidatePromise=v,v.catch(function(b){return b}).then(function(b){var C=b.map(function(_){var T=_.name;return T});n.notifyObservers(n.store,C,{type:"validateFinish"}),n.triggerOnFieldsChange(C,b)});var y=v.then(function(){return n.lastValidatePromise===v?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(b){var C=b.filter(function(_){return _&&_.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:C,outOfDate:n.lastValidatePromise!==v})});y.catch(function(b){return b});var S=l.filter(function(b){return d.has(b.join(u))});return n.triggerOnFieldsChange(S),y}),ae(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var i=n.callbacks.onFinish;if(i)try{i(r)}catch(o){console.error(o)}}).catch(function(r){var i=n.callbacks.onFinishFailed;i&&i(r)})}),this.forceRootUpdate=t});function jU(e){var t=f.useRef(),n=f.useState({}),r=Le(n,2),i=r[1];if(!t.current)if(e)t.current=e;else{var o=function(){i({})},a=new ZWe(o);t.current=a.getForm()}return[t.current]}var OF=f.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),dve=function(t){var n=t.validateMessages,r=t.onFormChange,i=t.onFormFinish,o=t.children,a=f.useContext(OF),s=f.useRef({});return f.createElement(OF.Provider,{value:X(X({},a),{},{validateMessages:X(X({},a.validateMessages),n),triggerFormChange:function(c,u){r&&r(c,{changedFields:u,forms:s.current}),a.triggerFormChange(c,u)},triggerFormFinish:function(c,u){i&&i(c,{values:u,forms:s.current}),a.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=X(X({},s.current),{},ae({},c,u))),a.registerForm(c,u)},unregisterForm:function(c){var u=X({},s.current);delete u[c],s.current=u,a.unregisterForm(c)}})},o)},JWe=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],eVe=function(t,n){var r=t.name,i=t.initialValues,o=t.fields,a=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,d=t.validateMessages,h=t.validateTrigger,p=h===void 0?"onChange":h,m=t.onValuesChange,v=t.onFieldsChange,y=t.onFinish,S=t.onFinishFailed,b=t.clearOnDestroy,C=tn(t,JWe),_=f.useRef(null),T=f.useContext(OF),x=jU(a),E=Le(x,1),k=E[0],M=k.getInternalHooks(T1),P=M.useSubscribe,D=M.setInitialValues,R=M.setCallbacks,A=M.setValidateMessages,H=M.setPreserve,F=M.destroyForm;f.useImperativeHandle(n,function(){return X(X({},k),{},{nativeElement:_.current})}),f.useEffect(function(){return T.registerForm(r,k),function(){T.unregisterForm(r)}},[T,k,r]),A(X(X({},T.validateMessages),d)),R({onValuesChange:m,onFieldsChange:function(ie){if(T.triggerFormChange(r,ie),v){for(var ce=arguments.length,fe=new Array(ce>1?ce-1:0),ee=1;ee<ce;ee++)fe[ee-1]=arguments[ee];v.apply(void 0,[ie].concat(fe))}},onFinish:function(ie){T.triggerFormFinish(r,ie),y&&y(ie)},onFinishFailed:S}),H(s);var z=f.useRef(null);D(i,!z.current),z.current||(z.current=!0),f.useEffect(function(){return function(){return F(b)}},[]);var W,q=typeof l=="function";if(q){var Z=k.getFieldsValue(!0);W=l(Z,k)}else W=l;P(!q);var N=f.useRef();f.useEffect(function(){qWe(N.current||[],o||[])||k.setFields(o||[]),N.current=o},[o,k]);var B=f.useMemo(function(){return X(X({},k),{},{validateTrigger:p})},[k,p]),V=f.createElement(f_.Provider,{value:null},f.createElement(rg.Provider,{value:B},W));return u===!1?V:f.createElement(u,st({},C,{ref:_,onSubmit:function(ie){ie.preventDefault(),ie.stopPropagation(),k.submit()},onReset:function(ie){var ce;ie.preventDefault(),k.resetFields(),(ce=C.onReset)===null||ce===void 0||ce.call(C,ie)}}),V)};function CJ(e){try{return JSON.stringify(e)}catch{return Math.random()}}function fve(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],o=i===void 0?{}:i,a=dWe(o)?{form:o}:o,s=a.form,l=f.useState(),c=Le(l,2),u=c[0],d=c[1],h=f.useMemo(function(){return CJ(u)},[u]),p=f.useRef(h);p.current=h;var m=f.useContext(rg),v=s||m,y=v&&v._init,S=sa(r),b=f.useRef(S);return b.current=S,f.useEffect(function(){if(y){var C=v.getFieldsValue,_=v.getInternalHooks,T=_(T1),x=T.registerWatch,E=function(D,R){var A=a.preserve?R:D;return typeof r=="function"?r(A):jo(A,b.current)},k=x(function(P,D){var R=E(P,D),A=CJ(R);p.current!==A&&(p.current=A,d(R))}),M=E(C(),C(!0));return u!==M&&d(M),k}},[y]),u}var tVe=f.forwardRef(eVe),qS=tVe;qS.FormProvider=dve;qS.Field=FU;qS.List=cve;qS.useForm=jU;qS.useWatch=fve;const pp=f.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),hve=f.createContext(null),pve=e=>{const t=Pr(e,["prefixCls"]);return f.createElement(dve,Object.assign({},t))},BU=f.createContext({prefixCls:""}),ha=f.createContext({}),nVe=e=>{let{children:t,status:n,override:r}=e;const i=f.useContext(ha),o=f.useMemo(()=>{const a=Object.assign({},i);return r&&delete a.isFormItemInput,n&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[n,r,i]);return f.createElement(ha.Provider,{value:o},t)},mve=f.createContext(void 0),Hd=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let i=r;return n&&(i=ge.createElement(nVe,{override:!0,status:!0},i)),t&&(i=ge.createElement(lze,null,i)),i};function Yb(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function xJ(e){const{closable:t,closeIcon:n}=e||{};return ge.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}function wJ(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(i=>{i&&Object.keys(i).forEach(o=>{i[o]!==void 0&&(e[o]=i[o])})}),e}const rVe={};function HU(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:rVe;const r=xJ(e),i=xJ(t),o=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,a=ge.useMemo(()=>Object.assign({closeIcon:ge.createElement(th,null)},n),[n]),s=ge.useMemo(()=>r===!1?!1:r?wJ(a,i,r):i===!1?!1:i?wJ(a,i):a.closable?a:!1,[r,i,a]);return ge.useMemo(()=>{if(s===!1)return[!1,null,o];const{closeIconRender:l}=a,{closeIcon:c}=s;let u=c;if(u!=null){l&&(u=l(c));const d=Bi(s,!0);Object.keys(d).length&&(u=ge.isValidElement(u)?ge.cloneElement(u,d):ge.createElement("span",Object.assign({},d),u))}return[!0,u,o]},[s,a])}var gve=function(t){if(pl()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(i){return i in r.style})}return!1},iVe=function(t,n){if(!gve(t))return!1;var r=document.createElement("div"),i=r.style[t];return r.style[t]=n,r.style[t]!==i};function PF(e,t){return!Array.isArray(e)&&t!==void 0?iVe(e,t):gve(e)}const oVe=()=>pl()&&window.document.documentElement,LO=e=>{const{prefixCls:t,className:n,style:r,size:i,shape:o}=e,a=Re({[`${t}-lg`]:i==="large",[`${t}-sm`]:i==="small"}),s=Re({[`${t}-circle`]:o==="circle",[`${t}-square`]:o==="square",[`${t}-round`]:o==="round"}),l=f.useMemo(()=>typeof i=="number"?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return f.createElement("span",{className:Re(t,a,s,n),style:Object.assign(Object.assign({},l),r)})},aVe=new Mr("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),FO=e=>({height:e,lineHeight:je(e)}),ub=e=>Object.assign({width:e},FO(e)),sVe=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:aVe,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),_R=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},FO(e)),lVe=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:o}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},ub(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},ub(i)),[`${t}${t}-sm`]:Object.assign({},ub(o))}},cVe=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:o,gradientFromColor:a,calc:s}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},_R(t,s)),[`${r}-lg`]:Object.assign({},_R(i,s)),[`${r}-sm`]:Object.assign({},_R(o,s))}},_J=e=>Object.assign({width:e},FO(e)),uVe=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:i,calc:o}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:i},_J(o(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},_J(n)),{maxWidth:o(n).mul(4).equal(),maxHeight:o(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},ER=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},TR=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},FO(e)),dVe=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:o,gradientFromColor:a,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal()},TR(r,s))},ER(e,r,n)),{[`${n}-lg`]:Object.assign({},TR(i,s))}),ER(e,i,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},TR(o,s))}),ER(e,o,`${n}-sm`))},fVe=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:o,skeletonInputCls:a,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:u,gradientFromColor:d,padding:h,marginSM:p,borderRadius:m,titleHeight:v,blockRadius:y,paragraphLiHeight:S,controlHeightXS:b,paragraphMarginTop:C}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:h,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},ub(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},ub(c)),[`${n}-sm`]:Object.assign({},ub(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:v,background:d,borderRadius:y,[`+ ${i}`]:{marginBlockStart:u}},[i]:{padding:0,"> li":{width:"100%",height:S,listStyle:"none",background:d,borderRadius:y,"+ li":{marginBlockStart:b}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${i} > li`]:{borderRadius:m}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:p,[`+ ${i}`]:{marginBlockStart:C}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},dVe(e)),lVe(e)),cVe(e)),uVe(e)),[`${t}${t}-block`]:{width:"100%",[o]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`
|
||
${r},
|
||
${i} > li,
|
||
${n},
|
||
${o},
|
||
${a},
|
||
${s}
|
||
`]:Object.assign({},sVe(e))}}},hVe=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,i=n;return{color:r,colorGradientEnd:i,gradientFromColor:r,gradientToColor:i,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},GS=Tr("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=dr(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[fVe(r)]},hVe,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),pVe=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,shape:o="circle",size:a="default"}=e,{getPrefixCls:s}=f.useContext(hn),l=s("skeleton",t),[c,u,d]=GS(l),h=Pr(e,["prefixCls","className"]),p=Re(l,`${l}-element`,{[`${l}-active`]:i},n,r,u,d);return c(f.createElement("div",{className:p},f.createElement(LO,Object.assign({prefixCls:`${l}-avatar`,shape:o,size:a},h))))},mVe=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:o=!1,size:a="default"}=e,{getPrefixCls:s}=f.useContext(hn),l=s("skeleton",t),[c,u,d]=GS(l),h=Pr(e,["prefixCls"]),p=Re(l,`${l}-element`,{[`${l}-active`]:i,[`${l}-block`]:o},n,r,u,d);return c(f.createElement("div",{className:p},f.createElement(LO,Object.assign({prefixCls:`${l}-button`,size:a},h))))},gVe="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",vVe=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:o}=e,{getPrefixCls:a}=f.useContext(hn),s=a("skeleton",t),[l,c,u]=GS(s),d=Re(s,`${s}-element`,{[`${s}-active`]:o},n,r,c,u);return l(f.createElement("div",{className:d},f.createElement("div",{className:Re(`${s}-image`,n),style:i},f.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},f.createElement("title",null,"Image placeholder"),f.createElement("path",{d:gVe,className:`${s}-image-path`})))))},yVe=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:o,size:a="default"}=e,{getPrefixCls:s}=f.useContext(hn),l=s("skeleton",t),[c,u,d]=GS(l),h=Pr(e,["prefixCls"]),p=Re(l,`${l}-element`,{[`${l}-active`]:i,[`${l}-block`]:o},n,r,u,d);return c(f.createElement("div",{className:p},f.createElement(LO,Object.assign({prefixCls:`${l}-input`,size:a},h))))},bVe=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:o,children:a}=e,{getPrefixCls:s}=f.useContext(hn),l=s("skeleton",t),[c,u,d]=GS(l),h=Re(l,`${l}-element`,{[`${l}-active`]:o},u,n,r,d);return c(f.createElement("div",{className:h},f.createElement("div",{className:Re(`${l}-image`,n),style:i},a)))},SVe=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},CVe=e=>{const{prefixCls:t,className:n,style:r,rows:i}=e,o=pt(new Array(i)).map((a,s)=>f.createElement("li",{key:s,style:{width:SVe(s,e)}}));return f.createElement("ul",{className:Re(t,n),style:r},o)},xVe=e=>{let{prefixCls:t,className:n,width:r,style:i}=e;return f.createElement("h3",{className:Re(t,n),style:Object.assign({width:r},i)})};function kR(e){return e&&typeof e=="object"?e:{}}function wVe(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function _Ve(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function EVe(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const kp=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:i,style:o,children:a,avatar:s=!1,title:l=!0,paragraph:c=!0,active:u,round:d}=e,{getPrefixCls:h,direction:p,skeleton:m}=f.useContext(hn),v=h("skeleton",t),[y,S,b]=GS(v);if(n||!("loading"in e)){const C=!!s,_=!!l,T=!!c;let x;if(C){const M=Object.assign(Object.assign({prefixCls:`${v}-avatar`},wVe(_,T)),kR(s));x=f.createElement("div",{className:`${v}-header`},f.createElement(LO,Object.assign({},M)))}let E;if(_||T){let M;if(_){const D=Object.assign(Object.assign({prefixCls:`${v}-title`},_Ve(C,T)),kR(l));M=f.createElement(xVe,Object.assign({},D))}let P;if(T){const D=Object.assign(Object.assign({prefixCls:`${v}-paragraph`},EVe(C,_)),kR(c));P=f.createElement(CVe,Object.assign({},D))}E=f.createElement("div",{className:`${v}-content`},M,P)}const k=Re(v,{[`${v}-with-avatar`]:C,[`${v}-active`]:u,[`${v}-rtl`]:p==="rtl",[`${v}-round`]:d},m==null?void 0:m.className,r,i,S,b);return y(f.createElement("div",{className:k,style:Object.assign(Object.assign({},m==null?void 0:m.style),o)},x,E))}return a??null};kp.Button=mVe;kp.Avatar=pVe;kp.Input=yVe;kp.Image=vVe;kp.Node=bVe;function EJ(){}const TVe=f.createContext({add:EJ,remove:EJ});function vve(e){const t=f.useContext(TVe),n=f.useRef(null);return ur(i=>{if(i){const o=e?i.querySelector(e):i;t.add(o),n.current=o}else t.remove(n.current)})}const TJ=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=f.useContext(yE);return ge.createElement(pr,Object.assign({onClick:n},e),t)},kJ=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:i}=f.useContext(yE);return ge.createElement(pr,Object.assign({},kU(n),{loading:e,onClick:i},t),r)};function yve(e,t){return ge.createElement("span",{className:`${e}-close-x`},t||ge.createElement(th,{className:`${e}-close-icon`}))}const bve=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:i,onOk:o,onCancel:a,okButtonProps:s,cancelButtonProps:l,footer:c}=e,[u]=ks("Modal",Bge()),d=t||(u==null?void 0:u.okText),h=r||(u==null?void 0:u.cancelText),p={confirmLoading:i,okButtonProps:s,cancelButtonProps:l,okTextLocale:d,cancelTextLocale:h,okType:n,onOk:o,onCancel:a},m=ge.useMemo(()=>p,pt(Object.values(p)));let v;return typeof c=="function"||typeof c>"u"?(v=ge.createElement(ge.Fragment,null,ge.createElement(TJ,null),ge.createElement(kJ,null)),typeof c=="function"&&(v=c(v,{OkBtn:kJ,CancelBtn:TJ})),v=ge.createElement(eve,{value:m},v)):v=c,ge.createElement(bU,{disabled:!1},v)},kVe=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},OVe=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},PVe=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:i}=e,o={};for(let a=i;a>=0;a--)a===0?(o[`${r}${t}-${a}`]={display:"none"},o[`${r}-push-${a}`]={insetInlineStart:"auto"},o[`${r}-pull-${a}`]={insetInlineEnd:"auto"},o[`${r}${t}-push-${a}`]={insetInlineStart:"auto"},o[`${r}${t}-pull-${a}`]={insetInlineEnd:"auto"},o[`${r}${t}-offset-${a}`]={marginInlineStart:0},o[`${r}${t}-order-${a}`]={order:0}):(o[`${r}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/i*100}%`,maxWidth:`${a/i*100}%`}],o[`${r}${t}-push-${a}`]={insetInlineStart:`${a/i*100}%`},o[`${r}${t}-pull-${a}`]={insetInlineEnd:`${a/i*100}%`},o[`${r}${t}-offset-${a}`]={marginInlineStart:`${a/i*100}%`},o[`${r}${t}-order-${a}`]={order:a});return o[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},o},MF=(e,t)=>PVe(e,t),MVe=(e,t,n)=>({[`@media (min-width: ${je(t)})`]:Object.assign({},MF(e,n))}),IVe=()=>({}),$Ve=()=>({}),RVe=Tr("Grid",kVe,IVe),Sve=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),AVe=Tr("Grid",e=>{const t=dr(e,{gridColumns:24}),n=Sve(t);return delete n.xs,[OVe(t),MF(t,""),MF(t,"-xs"),Object.keys(n).map(r=>MVe(t,n[r],`-${r}`)).reduce((r,i)=>Object.assign(Object.assign({},r),i),{})]},$Ve);function OJ(e){return{position:e,inset:0}}const Cve=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},OJ("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},OJ("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:MU(e)}]},NVe=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${je(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},$r(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${je(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:je(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},ml(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${je(e.borderRadiusLG)} ${je(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${je(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,
|
||
${t}-body,
|
||
${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},DVe=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},LVe=e=>{const{componentCls:t}=e,n=Sve(e);delete n.xs;const r=Object.keys(n).map(i=>({[`@media (min-width: ${je(n[i])})`]:{width:`var(--${t.replace(".","")}-${i}-width)`}}));return{[`${t}-root`]:{[t]:[{width:`var(--${t.replace(".","")}-xs-width)`}].concat(pt(r))}}},xve=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return dr(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},wve=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${je(e.paddingMD)} ${je(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${je(e.padding)} ${je(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${je(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${je(e.paddingXS)} ${je(e.padding)}`:0,footerBorderTop:e.wireframe?`${je(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${je(e.borderRadiusLG)} ${je(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${je(e.padding*2)} ${je(e.padding*2)} ${je(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),_ve=Tr("Modal",e=>{const t=xve(e);return[NVe(t),DVe(t),Cve(t),KS(t,"zoom"),LVe(t)]},wve,{unitless:{titleLineHeight:!0}});var FVe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};let IF;const jVe=e=>{IF={x:e.pageX,y:e.pageY},setTimeout(()=>{IF=null},100)};oVe()&&document.documentElement.addEventListener("click",jVe,!0);const Eve=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:i,modal:o}=f.useContext(hn),a=fe=>{const{onCancel:ee}=e;ee==null||ee(fe)},s=fe=>{const{onOk:ee}=e;ee==null||ee(fe)},{prefixCls:l,className:c,rootClassName:u,open:d,wrapClassName:h,centered:p,getContainer:m,focusTriggerAfterClose:v=!0,style:y,visible:S,width:b=520,footer:C,classNames:_,styles:T,children:x,loading:E}=e,k=FVe(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),M=r("modal",l),P=r(),D=_i(M),[R,A,H]=_ve(M,D),F=Re(h,{[`${M}-centered`]:!!p,[`${M}-wrap-rtl`]:i==="rtl"}),z=C!==null&&!E?f.createElement(bve,Object.assign({},e,{onOk:s,onCancel:a})):null,[W,q,Z]=HU(Yb(e),Yb(o),{closable:!0,closeIcon:f.createElement(th,{className:`${M}-close-icon`}),closeIconRender:fe=>yve(M,fe)}),N=vve(`.${M}-content`),[B,V]=Du("Modal",k.zIndex),[G,ie]=f.useMemo(()=>b&&typeof b=="object"?[void 0,b]:[b,void 0],[b]),ce=f.useMemo(()=>{const fe={};return ie&&Object.keys(ie).forEach(ee=>{const ne=ie[ee];ne!==void 0&&(fe[`--${M}-${ee}-width`]=typeof ne=="number"?`${ne}px`:ne)}),fe},[ie]);return R(f.createElement(Hd,{form:!0,space:!0},f.createElement(pE.Provider,{value:V},f.createElement(DU,Object.assign({width:G},k,{zIndex:B,getContainer:m===void 0?n:m,prefixCls:M,rootClassName:Re(A,u,H,D),footer:z,visible:d??S,mousePosition:(t=k.mousePosition)!==null&&t!==void 0?t:IF,onClose:a,closable:W&&{disabled:Z,closeIcon:q},closeIcon:q,focusTriggerAfterClose:v,transitionName:os(P,"zoom",e.transitionName),maskTransitionName:os(P,"fade",e.maskTransitionName),className:Re(A,c,o==null?void 0:o.className),style:Object.assign(Object.assign(Object.assign({},o==null?void 0:o.style),y),ce),classNames:Object.assign(Object.assign(Object.assign({},o==null?void 0:o.classNames),_),{wrapper:Re(F,_==null?void 0:_.wrapper)}),styles:Object.assign(Object.assign({},o==null?void 0:o.styles),T),panelRef:N}),E?f.createElement(kp,{active:!0,title:!1,paragraph:{rows:4},className:`${M}-body-skeleton`}):x))))},BVe=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:i,fontSize:o,lineHeight:a,modalTitleHeight:s,fontHeight:l,confirmBodyPadding:c}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},Ld()),[`&${t} ${t}-body`]:{padding:c},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:i,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(l).sub(i).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(i).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${je(e.marginSM)})`},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${je(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${u}-content`]:{color:e.colorText,fontSize:o,lineHeight:a},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls},
|
||
${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},HVe=US(["Modal","confirm"],e=>{const t=xve(e);return[BVe(t)]},wve,{order:-1e3});var zVe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Tve(e){const{prefixCls:t,icon:n,okText:r,cancelText:i,confirmPrefixCls:o,type:a,okCancel:s,footer:l,locale:c}=e,u=zVe(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let d=n;if(!n&&n!==null)switch(a){case"info":d=f.createElement(xO,null);break;case"success":d=f.createElement(qv,null);break;case"error":d=f.createElement(eh,null);break;default:d=f.createElement(gg,null)}const h=s??a==="confirm",p=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[m]=ks("Modal"),v=c||m,y=r||(h?v==null?void 0:v.okText:v==null?void 0:v.justOkText),S=i||(v==null?void 0:v.cancelText),b=Object.assign({autoFocusButton:p,cancelTextLocale:S,okTextLocale:y,mergedOkCancel:h},u),C=f.useMemo(()=>b,pt(Object.values(b))),_=f.createElement(f.Fragment,null,f.createElement(nJ,null),f.createElement(rJ,null)),T=e.title!==void 0&&e.title!==null,x=`${o}-body`;return f.createElement("div",{className:`${o}-body-wrapper`},f.createElement("div",{className:Re(x,{[`${x}-has-title`]:T})},d,f.createElement("div",{className:`${o}-paragraph`},T&&f.createElement("span",{className:`${o}-title`},e.title),f.createElement("div",{className:`${o}-content`},e.content))),l===void 0||typeof l=="function"?f.createElement(eve,{value:C},f.createElement("div",{className:`${o}-btns`},typeof l=="function"?l(_,{OkBtn:rJ,CancelBtn:nJ}):_)):l,f.createElement(HVe,{prefixCls:t}))}const UVe=e=>{const{close:t,zIndex:n,maskStyle:r,direction:i,prefixCls:o,wrapClassName:a,rootPrefixCls:s,bodyStyle:l,closable:c=!1,onConfirm:u,styles:d}=e,h=`${o}-confirm`,p=e.width||416,m=e.style||{},v=e.mask===void 0?!0:e.mask,y=e.maskClosable===void 0?!1:e.maskClosable,S=Re(h,`${h}-${e.type}`,{[`${h}-rtl`]:i==="rtl"},e.className),[,b]=ta(),C=f.useMemo(()=>n!==void 0?n:b.zIndexPopupBase+_U,[n,b]);return f.createElement(Eve,Object.assign({},e,{className:S,wrapClassName:Re({[`${h}-centered`]:!!e.centered},a),onCancel:()=>{t==null||t({triggerCancel:!0}),u==null||u(!1)},title:"",footer:null,transitionName:os(s||"","zoom",e.transitionName),maskTransitionName:os(s||"","fade",e.maskTransitionName),mask:v,maskClosable:y,style:m,styles:Object.assign({body:l,mask:r},d),width:p,zIndex:C,closable:c}),f.createElement(Tve,Object.assign({},e,{confirmPrefixCls:h})))},kve=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:i}=e;return f.createElement(ar,{prefixCls:t,iconPrefixCls:n,direction:r,theme:i},f.createElement(UVe,Object.assign({},e)))},k1=[];let Ove="";function Pve(){return Ove}const WVe=e=>{var t,n;const{prefixCls:r,getContainer:i,direction:o}=e,a=Bge(),s=f.useContext(hn),l=Pve()||s.getPrefixCls(),c=r||`${l}-modal`;let u=i;return u===!1&&(u=void 0),ge.createElement(kve,Object.assign({},e,{rootPrefixCls:l,prefixCls:c,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:o??s.direction,locale:(n=(t=s.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:a,getContainer:u}))};function CE(e){const t=S1e(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:l,open:!0}),i,o;function a(){for(var u,d=arguments.length,h=new Array(d),p=0;p<d;p++)h[p]=arguments[p];if(h.some(y=>y==null?void 0:y.triggerCancel)){var v;(u=e.onCancel)===null||u===void 0||(v=u).call.apply(v,[e,()=>{}].concat(pt(h.slice(1))))}for(let y=0;y<k1.length;y++)if(k1[y]===l){k1.splice(y,1);break}o()}function s(u){clearTimeout(i),i=setTimeout(()=>{const d=t.getPrefixCls(void 0,Pve()),h=t.getIconPrefixCls(),p=t.getTheme(),m=ge.createElement(WVe,Object.assign({},u));o=TU()(ge.createElement(ar,{prefixCls:d,iconPrefixCls:h,theme:p},t.holderRender?t.holderRender(m):m),n)})}function l(){for(var u=arguments.length,d=new Array(u),h=0;h<u;h++)d[h]=arguments[h];r=Object.assign(Object.assign({},r),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),a.apply(this,d)}}),r.visible&&delete r.visible,s(r)}function c(u){typeof u=="function"?r=u(r):r=Object.assign(Object.assign({},r),u),s(r)}return s(r),k1.push(l),{destroy:l,update:c}}function Mve(e){return Object.assign(Object.assign({},e),{type:"warning"})}function Ive(e){return Object.assign(Object.assign({},e),{type:"info"})}function $ve(e){return Object.assign(Object.assign({},e),{type:"success"})}function Rve(e){return Object.assign(Object.assign({},e),{type:"error"})}function Ave(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function VVe(e){let{rootPrefixCls:t}=e;Ove=t}var KVe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const qVe=(e,t)=>{var n,{afterClose:r,config:i}=e,o=KVe(e,["afterClose","config"]);const[a,s]=f.useState(!0),[l,c]=f.useState(i),{direction:u,getPrefixCls:d}=f.useContext(hn),h=d("modal"),p=d(),m=()=>{var b;r(),(b=l.afterClose)===null||b===void 0||b.call(l)},v=function(){var b;s(!1);for(var C=arguments.length,_=new Array(C),T=0;T<C;T++)_[T]=arguments[T];if(_.some(k=>k==null?void 0:k.triggerCancel)){var E;(b=l.onCancel)===null||b===void 0||(E=b).call.apply(E,[l,()=>{}].concat(pt(_.slice(1))))}};f.useImperativeHandle(t,()=>({destroy:v,update:b=>{c(C=>Object.assign(Object.assign({},C),b))}}));const y=(n=l.okCancel)!==null&&n!==void 0?n:l.type==="confirm",[S]=ks("Modal",Lc.Modal);return f.createElement(kve,Object.assign({prefixCls:h,rootPrefixCls:p},l,{close:v,open:a,afterClose:m,okText:l.okText||(y?S==null?void 0:S.okText:S==null?void 0:S.justOkText),direction:l.direction||u,cancelText:l.cancelText||(S==null?void 0:S.cancelText)},o))},GVe=f.forwardRef(qVe);let PJ=0;const YVe=f.memo(f.forwardRef((e,t)=>{const[n,r]=BHe();return f.useImperativeHandle(t,()=>({patchElement:r}),[]),f.createElement(f.Fragment,null,n)}));function Nve(){const e=f.useRef(null),[t,n]=f.useState([]);f.useEffect(()=>{t.length&&(pt(t).forEach(a=>{a()}),n([]))},[t]);const r=f.useCallback(o=>function(s){var l;PJ+=1;const c=f.createRef();let u;const d=new Promise(y=>{u=y});let h=!1,p;const m=f.createElement(GVe,{key:`modal-${PJ}`,config:o(s),ref:c,afterClose:()=>{p==null||p()},isSilent:()=>h,onConfirm:y=>{u(y)}});return p=(l=e.current)===null||l===void 0?void 0:l.patchElement(m),p&&k1.push(p),{destroy:()=>{function y(){var S;(S=c.current)===null||S===void 0||S.destroy()}c.current?y():n(S=>[].concat(pt(S),[y]))},update:y=>{function S(){var b;(b=c.current)===null||b===void 0||b.update(y)}c.current?S():n(b=>[].concat(pt(b),[S]))},then:y=>(h=!0,d.then(y))}},[]);return[f.useMemo(()=>({info:r(Ive),success:r($ve),error:r(Rve),warning:r(Mve),confirm:r(Ave)}),[]),f.createElement(YVe,{key:"modal-holder",ref:e})]}const XVe=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,i=`${t}-notice`,o=new Mr("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),a=new Mr("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),s=new Mr("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),l=new Mr("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[i]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:o}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[i]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}}}}},QVe=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],ZVe={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},JVe=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[ZVe[t]]:{value:0,_skip_check_:!0}}}}},eKe=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},tKe=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},t)},nKe=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},eKe(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},tKe(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},QVe.map(n=>JVe(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},rKe=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:i,notificationMarginBottom:o,borderRadiusLG:a,colorSuccess:s,colorInfo:l,colorWarning:c,colorError:u,colorTextHeading:d,notificationBg:h,notificationPadding:p,notificationMarginEdge:m,notificationProgressBg:v,notificationProgressHeight:y,fontSize:S,lineHeight:b,width:C,notificationIconSize:_,colorText:T}=e,x=`${n}-notice`;return{position:"relative",marginBottom:o,marginInlineStart:"auto",background:h,borderRadius:a,boxShadow:r,[x]:{padding:p,width:C,maxWidth:`calc(100vw - ${je(e.calc(m).mul(2).equal())})`,overflow:"hidden",lineHeight:b,wordWrap:"break-word"},[`${x}-message`]:{marginBottom:e.marginXS,color:d,fontSize:i,lineHeight:e.lineHeightLG},[`${x}-description`]:{fontSize:S,color:T},[`${x}-closable ${x}-message`]:{paddingInlineEnd:e.paddingLG},[`${x}-with-icon ${x}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(_).equal(),fontSize:i},[`${x}-with-icon ${x}-description`]:{marginInlineStart:e.calc(e.marginSM).add(_).equal(),fontSize:S},[`${x}-icon`]:{position:"absolute",fontSize:_,lineHeight:1,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:l},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${x}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},ml(e)),[`${x}-progress`]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:`calc(100% - ${je(a)} * 2)`,left:{_skip_check_:!0,value:a},right:{_skip_check_:!0,value:a},bottom:0,blockSize:y,border:0,"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:v},"&::-webkit-progress-value":{borderRadius:a,background:v}},[`${x}-btn`]:{float:"right",marginTop:e.marginSM}}},iKe=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:i,motionEaseInOut:o}=e,a=`${t}-notice`,s=new Mr("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},$r(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:o,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:o,animationFillMode:"both",animationDuration:i,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:s,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${a}-btn`]:{float:"left"}}})},{[t]:{[`${a}-wrapper`]:Object.assign({},rKe(e))}}]},oKe=e=>({zIndexPopup:e.zIndexPopupBase+_U+50,width:384}),aKe=e=>{const t=e.paddingMD,n=e.paddingLG;return dr(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${je(e.paddingMD)} ${je(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},sKe=Tr("Notification",e=>{const t=aKe(e);return[iKe(t),XVe(t),nKe(t)]},oKe);function Dve(e,t){return t===null||t===!1?null:t||f.createElement(th,{className:`${e}-close-icon`})}const lKe={success:qv,info:xO,error:eh,warning:gg},cKe=e=>{const{prefixCls:t,icon:n,type:r,message:i,description:o,btn:a,role:s="alert"}=e;let l=null;return n?l=f.createElement("span",{className:`${t}-icon`},n):r&&(l=f.createElement(lKe[r]||null,{className:Re(`${t}-icon`,`${t}-icon-${r}`)})),f.createElement("div",{className:Re({[`${t}-with-icon`]:l}),role:s},l,f.createElement("div",{className:`${t}-message`},i),f.createElement("div",{className:`${t}-description`},o),a&&f.createElement("div",{className:`${t}-btn`},a))};function uKe(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,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 dKe(e){return{motionName:`${e}-fade`}}var fKe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const MJ=24,hKe=4.5,pKe="topRight",mKe=e=>{let{children:t,prefixCls:n}=e;const r=_i(n),[i,o,a]=sKe(n,r);return i(ge.createElement(I1e,{classNames:{list:Re(o,a,r)}},t))},gKe=(e,t)=>{let{prefixCls:n,key:r}=t;return ge.createElement(mKe,{prefixCls:n,key:r},e)},vKe=ge.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:i,getContainer:o,maxCount:a,rtl:s,onAllRemoved:l,stack:c,duration:u,pauseOnHover:d=!0,showProgress:h}=e,{getPrefixCls:p,getPopupContainer:m,notification:v,direction:y}=f.useContext(hn),[,S]=ta(),b=i||p("notification"),C=k=>uKe(k,n??MJ,r??MJ),_=()=>Re({[`${b}-rtl`]:s??y==="rtl"}),T=()=>dKe(b),[x,E]=$1e({prefixCls:b,style:C,className:_,motion:T,closable:!0,closeIcon:Dve(b),duration:u??hKe,getContainer:()=>(o==null?void 0:o())||(m==null?void 0:m())||document.body,maxCount:a,pauseOnHover:d,showProgress:h,onAllRemoved:l,renderNotifications:gKe,stack:c===!1?!1:{threshold:typeof c=="object"?c==null?void 0:c.threshold:void 0,offset:8,gap:S.margin}});return ge.useImperativeHandle(t,()=>Object.assign(Object.assign({},x),{prefixCls:b,notification:v})),E});function yKe(e){const t=ge.useRef(null);return Jf(),[ge.useMemo(()=>{const r=s=>{var l;if(!t.current)return;const{open:c,prefixCls:u,notification:d}=t.current,h=`${u}-notice`,{message:p,description:m,icon:v,type:y,btn:S,className:b,style:C,role:_="alert",closeIcon:T,closable:x}=s,E=fKe(s,["message","description","icon","type","btn","className","style","role","closeIcon","closable"]),k=Dve(h,typeof T<"u"?T:d==null?void 0:d.closeIcon);return c(Object.assign(Object.assign({placement:(l=e==null?void 0:e.placement)!==null&&l!==void 0?l:pKe},E),{content:ge.createElement(cKe,{prefixCls:h,icon:v,type:y,message:p,description:m,btn:S,role:_}),className:Re(y&&`${h}-${y}`,b,d==null?void 0:d.className),style:Object.assign(Object.assign({},d==null?void 0:d.style),C),closeIcon:k,closable:x??!!k}))},o={open:r,destroy:s=>{var l,c;s!==void 0?(l=t.current)===null||l===void 0||l.close(s):(c=t.current)===null||c===void 0||c.destroy()}};return["success","info","warning","error"].forEach(s=>{o[s]=l=>r(Object.assign(Object.assign({},l),{type:s}))}),o},[]),ge.createElement(vKe,Object.assign({key:"notification-holder"},e,{ref:t}))]}function bKe(e){return yKe(e)}const $F=ge.createContext({}),Lve=ge.createContext({message:{},notification:{},modal:{}}),SKe=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:i,fontFamily:o}=e;return{[t]:{color:n,fontSize:r,lineHeight:i,fontFamily:o,[`&${t}-rtl`]:{direction:"rtl"}}}},CKe=()=>({}),xKe=Tr("App",SKe,CKe),wKe=()=>ge.useContext(Lve),jO=e=>{const{prefixCls:t,children:n,className:r,rootClassName:i,message:o,notification:a,style:s,component:l="div"}=e,{direction:c,getPrefixCls:u}=f.useContext(hn),d=u("app",t),[h,p,m]=xKe(d),v=Re(p,d,r,i,m,{[`${d}-rtl`]:c==="rtl"}),y=f.useContext($F),S=ge.useMemo(()=>({message:Object.assign(Object.assign({},y.message),o),notification:Object.assign(Object.assign({},y.notification),a)}),[o,a,y.message,y.notification]),[b,C]=L1e(S.message),[_,T]=bKe(S.notification),[x,E]=Nve(),k=ge.useMemo(()=>({message:b,notification:_,modal:x}),[b,_,x]);Jf()(!(m&&l===!1),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");const M=l===!1?ge.Fragment:l,P={className:v,style:s};return h(ge.createElement(Lve.Provider,{value:k},ge.createElement($F.Provider,{value:S},ge.createElement(M,Object.assign({},l===!1?void 0:P),E,C,T,n))))};jO.useApp=wKe;function Fve(e){return t=>f.createElement(ar,{theme:{token:{motion:!1,zIndexPopupBase:0}}},f.createElement(e,Object.assign({},t)))}const vg=(e,t,n,r,i)=>Fve(a=>{const{prefixCls:s,style:l}=a,c=f.useRef(null),[u,d]=f.useState(0),[h,p]=f.useState(0),[m,v]=er(!1,{value:a.open}),{getPrefixCls:y}=f.useContext(hn),S=y(r||"select",s);f.useEffect(()=>{if(v(!0),typeof ResizeObserver<"u"){const _=new ResizeObserver(x=>{const E=x[0].target;d(E.offsetHeight+8),p(E.offsetWidth)}),T=setInterval(()=>{var x;const E=i?`.${i(S)}`:`.${S}-dropdown`,k=(x=c.current)===null||x===void 0?void 0:x.querySelector(E);k&&(clearInterval(T),_.observe(k))},10);return()=>{clearInterval(T),_.disconnect()}}},[]);let b=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},l),{margin:0}),open:m,visible:m,getPopupContainer:()=>c.current});n&&(b=n(b)),t&&Object.assign(b,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const C={paddingBottom:u,position:"relative",minWidth:h};return f.createElement("div",{ref:c,style:C},f.createElement(e,Object.assign({},b)))}),BO=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var HO=function(t){var n=t.className,r=t.customizeIcon,i=t.customizeIconProps,o=t.children,a=t.onMouseDown,s=t.onClick,l=typeof r=="function"?r(i):r;return f.createElement("span",{className:n,onMouseDown:function(u){u.preventDefault(),a==null||a(u)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},l!==void 0?l:f.createElement("span",{className:Re(n.split(/\s+/).map(function(c){return"".concat(c,"-icon")}))},o))},_Ke=function(t,n,r,i,o){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,c=ge.useMemo(function(){if(ln(i)==="object")return i.clearIcon;if(o)return o},[i,o]),u=ge.useMemo(function(){return!!(!a&&i&&(r.length||s)&&!(l==="combobox"&&s===""))},[i,a,r.length,s,l]);return{allowClear:u,clearIcon:ge.createElement(HO,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:c},"×")}},jve=f.createContext(null);function zU(){return f.useContext(jve)}function EKe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=f.useState(!1),n=Le(t,2),r=n[0],i=n[1],o=f.useRef(null),a=function(){window.clearTimeout(o.current)};f.useEffect(function(){return a},[]);var s=function(c,u){a(),o.current=window.setTimeout(function(){i(c),u&&u()},e)};return[r,s,a]}function Bve(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=f.useRef(null),n=f.useRef(null);f.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(i){(i||t.current===null)&&(t.current=i),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function TKe(e,t,n,r){var i=f.useRef(null);i.current={open:t,triggerOpen:n,customizedTrigger:r},f.useEffect(function(){function o(a){var s;if(!((s=i.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=a.target;l.shadowRoot&&a.composed&&(l=a.composedPath()[0]||l),i.current.open&&e().filter(function(c){return c}).every(function(c){return!c.contains(l)&&c!==l})&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",o),function(){return window.removeEventListener("mousedown",o)}},[])}function kKe(e){return e&&![Pt.ESC,Pt.SHIFT,Pt.BACKSPACE,Pt.TAB,Pt.WIN_KEY,Pt.ALT,Pt.META,Pt.WIN_KEY_RIGHT,Pt.CTRL,Pt.SEMICOLON,Pt.EQUALS,Pt.CAPS_LOCK,Pt.CONTEXT_MENU,Pt.F1,Pt.F2,Pt.F3,Pt.F4,Pt.F5,Pt.F6,Pt.F7,Pt.F8,Pt.F9,Pt.F10,Pt.F11,Pt.F12].includes(e)}var OKe=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],X0=void 0;function PKe(e,t){var n=e.prefixCls,r=e.invalidate,i=e.item,o=e.renderItem,a=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,d=e.style,h=e.children,p=e.display,m=e.order,v=e.component,y=v===void 0?"div":v,S=tn(e,OKe),b=a&&!p;function C(k){l(c,k)}f.useEffect(function(){return function(){C(null)}},[]);var _=o&&i!==X0?o(i):h,T;r||(T={opacity:b?0:1,height:b?0:X0,overflowY:b?"hidden":X0,order:a?m:X0,pointerEvents:b?"none":X0,position:b?"absolute":X0});var x={};b&&(x["aria-hidden"]=!0);var E=f.createElement(y,st({className:Re(!r&&n,u),style:X(X({},T),d)},x,S,{ref:t}),_);return a&&(E=f.createElement(Wa,{onResize:function(M){var P=M.offsetWidth;C(P)},disabled:s},E)),E}var J2=f.forwardRef(PKe);J2.displayName="Item";function MKe(e){if(typeof MessageChannel>"u")Cr(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function IKe(){var e=f.useRef(null),t=function(r){e.current||(e.current=[],MKe(function(){Ac.unstable_batchedUpdates(function(){e.current.forEach(function(i){i()}),e.current=null})})),e.current.push(r)};return t}function Ax(e,t){var n=f.useState(t),r=Le(n,2),i=r[0],o=r[1],a=ur(function(s){e(function(){o(s)})});return[i,a]}var D9=ge.createContext(null),$Ke=["component"],RKe=["className"],AKe=["className"],NKe=function(t,n){var r=f.useContext(D9);if(!r){var i=t.component,o=i===void 0?"div":i,a=tn(t,$Ke);return f.createElement(o,st({},a,{ref:n}))}var s=r.className,l=tn(r,RKe),c=t.className,u=tn(t,AKe);return f.createElement(D9.Provider,{value:null},f.createElement(J2,st({ref:n,className:Re(s,c)},l,u)))},Hve=f.forwardRef(NKe);Hve.displayName="RawItem";var DKe=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],zve="responsive",Uve="invalidate";function LKe(e){return"+ ".concat(e.length," ...")}function FKe(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,i=e.data,o=i===void 0?[]:i,a=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,d=e.ssr,h=e.style,p=e.className,m=e.maxCount,v=e.renderRest,y=e.renderRawRest,S=e.suffix,b=e.component,C=b===void 0?"div":b,_=e.itemComponent,T=e.onVisibleChange,x=tn(e,DKe),E=d==="full",k=IKe(),M=Ax(k,null),P=Le(M,2),D=P[0],R=P[1],A=D||0,H=Ax(k,new Map),F=Le(H,2),z=F[0],W=F[1],q=Ax(k,0),Z=Le(q,2),N=Z[0],B=Z[1],V=Ax(k,0),G=Le(V,2),ie=G[0],ce=G[1],fe=Ax(k,0),ee=Le(fe,2),ne=ee[0],ue=ee[1],ye=f.useState(null),me=Le(ye,2),pe=me[0],he=me[1],_e=f.useState(null),le=Le(_e,2),xe=le[0],we=le[1],De=f.useMemo(function(){return xe===null&&E?Number.MAX_SAFE_INTEGER:xe||0},[xe,D]),Fe=f.useState(!1),Ce=Le(Fe,2),Te=Ce[0],ke=Ce[1],Pe="".concat(r,"-item"),Ne=Math.max(N,ie),We=m===zve,Q=o.length&&We,K=m===Uve,J=Q||typeof m=="number"&&o.length>m,be=f.useMemo(function(){var Vt=o;return Q?D===null&&E?Vt=o:Vt=o.slice(0,Math.min(o.length,A/u)):typeof m=="number"&&(Vt=o.slice(0,m)),Vt},[o,u,D,m,Q]),Oe=f.useMemo(function(){return Q?o.slice(De+1):o.slice(be.length)},[o,be,Q,De]),Se=f.useCallback(function(Vt,Kt){var Qt;return typeof l=="function"?l(Vt):(Qt=l&&(Vt==null?void 0:Vt[l]))!==null&&Qt!==void 0?Qt:Kt},[l]),Ke=f.useCallback(a||function(Vt){return Vt},[a]);function tt(Vt,Kt,Qt){xe===Vt&&(Kt===void 0||Kt===pe)||(we(Vt),Qt||(ke(Vt<o.length-1),T==null||T(Vt)),Kt!==void 0&&he(Kt))}function se(Vt,Kt){R(Kt.clientWidth)}function ze(Vt,Kt){W(function(Qt){var et=new Map(Qt);return Kt===null?et.delete(Vt):et.set(Vt,Kt),et})}function Ye(Vt,Kt){ce(Kt),B(ie)}function Ue(Vt,Kt){ue(Kt)}function Je(Vt){return z.get(Se(be[Vt],Vt))}Er(function(){if(A&&typeof Ne=="number"&&be){var Vt=ne,Kt=be.length,Qt=Kt-1;if(!Kt){tt(0,null);return}for(var et=0;et<Kt;et+=1){var ot=Je(et);if(E&&(ot=ot||0),ot===void 0){tt(et-1,void 0,!0);break}if(Vt+=ot,Qt===0&&Vt<=A||et===Qt-1&&Vt+Je(Qt)<=A){tt(Qt,null);break}else if(Vt+Ne>A){tt(et-1,Vt-ot-ne+ie);break}}S&&Je(0)+ne>A&&he(null)}},[A,z,ie,ne,Se,be]);var Ze=Te&&!!Oe.length,rt={};pe!==null&&Q&&(rt={position:"absolute",left:pe,top:0});var qt={prefixCls:Pe,responsive:Q,component:_,invalidate:K},St=s?function(Vt,Kt){var Qt=Se(Vt,Kt);return f.createElement(D9.Provider,{key:Qt,value:X(X({},qt),{},{order:Kt,item:Vt,itemKey:Qt,registerSize:ze,display:Kt<=De})},s(Vt,Kt))}:function(Vt,Kt){var Qt=Se(Vt,Kt);return f.createElement(J2,st({},qt,{order:Kt,key:Qt,item:Vt,renderItem:Ke,itemKey:Qt,registerSize:ze,display:Kt<=De}))},Ot,Bt={order:Ze?De:Number.MAX_SAFE_INTEGER,className:"".concat(Pe,"-rest"),registerSize:Ye,display:Ze};if(y)y&&(Ot=f.createElement(D9.Provider,{value:X(X({},qt),Bt)},y(Oe)));else{var Dt=v||LKe;Ot=f.createElement(J2,st({},qt,Bt),typeof Dt=="function"?Dt(Oe):Dt)}var an=f.createElement(C,st({className:Re(!K&&r,p),style:h,ref:t},x),be.map(St),J?Ot:null,S&&f.createElement(J2,st({},qt,{responsive:We,responsiveDisabled:!Q,order:De,className:"".concat(Pe,"-suffix"),registerSize:Ue,display:!0,style:rt}),S));return We&&(an=f.createElement(Wa,{onResize:se,disabled:!Q},an)),an}var Td=f.forwardRef(FKe);Td.displayName="Overflow";Td.Item=Hve;Td.RESPONSIVE=zve;Td.INVALIDATE=Uve;var jKe=function(t,n){var r,i=t.prefixCls,o=t.id,a=t.inputElement,s=t.disabled,l=t.tabIndex,c=t.autoFocus,u=t.autoComplete,d=t.editable,h=t.activeDescendantId,p=t.value,m=t.maxLength,v=t.onKeyDown,y=t.onMouseDown,S=t.onChange,b=t.onPaste,C=t.onCompositionStart,_=t.onCompositionEnd,T=t.onBlur,x=t.open,E=t.attrs,k=a||f.createElement("input",null),M=k,P=M.ref,D=M.props,R=D.onKeyDown,A=D.onChange,H=D.onMouseDown,F=D.onCompositionStart,z=D.onCompositionEnd,W=D.onBlur,q=D.style;return"maxLength"in k.props,k=f.cloneElement(k,X(X(X({type:"search"},D),{},{id:o,ref:ga(n,P),disabled:s,tabIndex:l,autoComplete:u||"off",autoFocus:c,className:Re("".concat(i,"-selection-search-input"),(r=k)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":x||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":x?h:void 0},E),{},{value:d?p:"",maxLength:m,readOnly:!d,unselectable:d?null:"on",style:X(X({},q),{},{opacity:d?null:0}),onKeyDown:function(N){v(N),R&&R(N)},onMouseDown:function(N){y(N),H&&H(N)},onChange:function(N){S(N),A&&A(N)},onCompositionStart:function(N){C(N),F&&F(N)},onCompositionEnd:function(N){_(N),z&&z(N)},onPaste:b,onBlur:function(N){T(N),W&&W(N)}})),k},Wve=f.forwardRef(jKe);function Vve(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var BKe=typeof window<"u"&&window.document&&window.document.documentElement,HKe=BKe;function zKe(e){return e!=null}function UKe(e){return!e&&e!==0}function IJ(e){return["string","number"].includes(ln(e))}function Kve(e){var t=void 0;return e&&(IJ(e.title)?t=e.title.toString():IJ(e.label)&&(t=e.label.toString())),t}function WKe(e,t){HKe?f.useLayoutEffect(e,t):f.useEffect(e,t)}function VKe(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var $J=function(t){t.preventDefault(),t.stopPropagation()},KKe=function(t){var n=t.id,r=t.prefixCls,i=t.values,o=t.open,a=t.searchValue,s=t.autoClearSearchValue,l=t.inputRef,c=t.placeholder,u=t.disabled,d=t.mode,h=t.showSearch,p=t.autoFocus,m=t.autoComplete,v=t.activeDescendantId,y=t.tabIndex,S=t.removeIcon,b=t.maxTagCount,C=t.maxTagTextLength,_=t.maxTagPlaceholder,T=_===void 0?function(_e){return"+ ".concat(_e.length," ...")}:_,x=t.tagRender,E=t.onToggleOpen,k=t.onRemove,M=t.onInputChange,P=t.onInputPaste,D=t.onInputKeyDown,R=t.onInputMouseDown,A=t.onInputCompositionStart,H=t.onInputCompositionEnd,F=t.onInputBlur,z=f.useRef(null),W=f.useState(0),q=Le(W,2),Z=q[0],N=q[1],B=f.useState(!1),V=Le(B,2),G=V[0],ie=V[1],ce="".concat(r,"-selection"),fe=o||d==="multiple"&&s===!1||d==="tags"?a:"",ee=d==="tags"||d==="multiple"&&s===!1||h&&(o||G);WKe(function(){N(z.current.scrollWidth)},[fe]);var ne=function(le,xe,we,De,Fe){return f.createElement("span",{title:Kve(le),className:Re("".concat(ce,"-item"),ae({},"".concat(ce,"-item-disabled"),we))},f.createElement("span",{className:"".concat(ce,"-item-content")},xe),De&&f.createElement(HO,{className:"".concat(ce,"-item-remove"),onMouseDown:$J,onClick:Fe,customizeIcon:S},"×"))},ue=function(le,xe,we,De,Fe,Ce){var Te=function(Pe){$J(Pe),E(!o)};return f.createElement("span",{onMouseDown:Te},x({label:xe,value:le,disabled:we,closable:De,onClose:Fe,isMaxTag:!!Ce}))},ye=function(le){var xe=le.disabled,we=le.label,De=le.value,Fe=!u&&!xe,Ce=we;if(typeof C=="number"&&(typeof we=="string"||typeof we=="number")){var Te=String(Ce);Te.length>C&&(Ce="".concat(Te.slice(0,C),"..."))}var ke=function(Ne){Ne&&Ne.stopPropagation(),k(le)};return typeof x=="function"?ue(De,Ce,xe,Fe,ke):ne(le,Ce,xe,Fe,ke)},me=function(le){if(!i.length)return null;var xe=typeof T=="function"?T(le):T;return typeof x=="function"?ue(void 0,xe,!1,!1,void 0,!0):ne({title:xe},xe,!1)},pe=f.createElement("div",{className:"".concat(ce,"-search"),style:{width:Z},onFocus:function(){ie(!0)},onBlur:function(){ie(!1)}},f.createElement(Wve,{ref:l,open:o,prefixCls:r,id:n,inputElement:null,disabled:u,autoFocus:p,autoComplete:m,editable:ee,activeDescendantId:v,value:fe,onKeyDown:D,onMouseDown:R,onChange:M,onPaste:P,onCompositionStart:A,onCompositionEnd:H,onBlur:F,tabIndex:y,attrs:Bi(t,!0)}),f.createElement("span",{ref:z,className:"".concat(ce,"-search-mirror"),"aria-hidden":!0},fe," ")),he=f.createElement(Td,{prefixCls:"".concat(ce,"-overflow"),data:i,renderItem:ye,renderRest:me,suffix:pe,itemKey:VKe,maxCount:b});return f.createElement("span",{className:"".concat(ce,"-wrap")},he,!i.length&&!fe&&f.createElement("span",{className:"".concat(ce,"-placeholder")},c))},qKe=function(t){var n=t.inputElement,r=t.prefixCls,i=t.id,o=t.inputRef,a=t.disabled,s=t.autoFocus,l=t.autoComplete,c=t.activeDescendantId,u=t.mode,d=t.open,h=t.values,p=t.placeholder,m=t.tabIndex,v=t.showSearch,y=t.searchValue,S=t.activeValue,b=t.maxLength,C=t.onInputKeyDown,_=t.onInputMouseDown,T=t.onInputChange,x=t.onInputPaste,E=t.onInputCompositionStart,k=t.onInputCompositionEnd,M=t.onInputBlur,P=t.title,D=f.useState(!1),R=Le(D,2),A=R[0],H=R[1],F=u==="combobox",z=F||v,W=h[0],q=y||"";F&&S&&!A&&(q=S),f.useEffect(function(){F&&H(!1)},[F,S]);var Z=u!=="combobox"&&!d&&!v?!1:!!q,N=P===void 0?Kve(W):P,B=f.useMemo(function(){return W?null:f.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:Z?{visibility:"hidden"}:void 0},p)},[W,Z,p,r]);return f.createElement("span",{className:"".concat(r,"-selection-wrap")},f.createElement("span",{className:"".concat(r,"-selection-search")},f.createElement(Wve,{ref:o,prefixCls:r,id:i,open:d,inputElement:n,disabled:a,autoFocus:s,autoComplete:l,editable:z,activeDescendantId:c,value:q,onKeyDown:C,onMouseDown:_,onChange:function(G){H(!0),T(G)},onPaste:x,onCompositionStart:E,onCompositionEnd:k,onBlur:M,tabIndex:m,attrs:Bi(t,!0),maxLength:F?b:void 0})),!F&&W?f.createElement("span",{className:"".concat(r,"-selection-item"),title:N,style:Z?{visibility:"hidden"}:void 0},W.label):null,B)},GKe=function(t,n){var r=f.useRef(null),i=f.useRef(!1),o=t.prefixCls,a=t.open,s=t.mode,l=t.showSearch,c=t.tokenWithEnter,u=t.disabled,d=t.prefix,h=t.autoClearSearchValue,p=t.onSearch,m=t.onSearchSubmit,v=t.onToggleOpen,y=t.onInputKeyDown,S=t.onInputBlur,b=t.domRef;f.useImperativeHandle(n,function(){return{focus:function(N){r.current.focus(N)},blur:function(){r.current.blur()}}});var C=Bve(0),_=Le(C,2),T=_[0],x=_[1],E=function(N){var B=N.which,V=r.current instanceof HTMLTextAreaElement;!V&&a&&(B===Pt.UP||B===Pt.DOWN)&&N.preventDefault(),y&&y(N),B===Pt.ENTER&&s==="tags"&&!i.current&&!a&&(m==null||m(N.target.value)),!(V&&!a&&~[Pt.UP,Pt.DOWN,Pt.LEFT,Pt.RIGHT].indexOf(B))&&kKe(B)&&v(!0)},k=function(){x(!0)},M=f.useRef(null),P=function(N){p(N,!0,i.current)!==!1&&v(!0)},D=function(){i.current=!0},R=function(N){i.current=!1,s!=="combobox"&&P(N.target.value)},A=function(N){var B=N.target.value;if(c&&M.current&&/[\r\n]/.test(M.current)){var V=M.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");B=B.replace(V,M.current)}M.current=null,P(B)},H=function(N){var B=N.clipboardData,V=B==null?void 0:B.getData("text");M.current=V||""},F=function(N){var B=N.target;if(B!==r.current){var V=document.body.style.msTouchAction!==void 0;V?setTimeout(function(){r.current.focus()}):r.current.focus()}},z=function(N){var B=T();N.target!==r.current&&!B&&!(s==="combobox"&&u)&&N.preventDefault(),(s!=="combobox"&&(!l||!B)||!a)&&(a&&h!==!1&&p("",!0,!1),v())},W={inputRef:r,onInputKeyDown:E,onInputMouseDown:k,onInputChange:A,onInputPaste:H,onInputCompositionStart:D,onInputCompositionEnd:R,onInputBlur:S},q=s==="multiple"||s==="tags"?f.createElement(KKe,st({},t,W)):f.createElement(qKe,st({},t,W));return f.createElement("div",{ref:b,className:"".concat(o,"-selector"),onClick:F,onMouseDown:z},d&&f.createElement("div",{className:"".concat(o,"-prefix")},d),q)},YKe=f.forwardRef(GKe);function XKe(e){var t=e.prefixCls,n=e.align,r=e.arrow,i=e.arrowPos,o=r||{},a=o.className,s=o.content,l=i.x,c=l===void 0?0:l,u=i.y,d=u===void 0?0:u,h=f.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(n.autoArrow!==!1){var m=n.points[0],v=n.points[1],y=m[0],S=m[1],b=v[0],C=v[1];y===b||!["t","b"].includes(y)?p.top=d:y==="t"?p.top=0:p.bottom=0,S===C||!["l","r"].includes(S)?p.left=c:S==="l"?p.left=0:p.right=0}return f.createElement("div",{ref:h,className:Re("".concat(t,"-arrow"),a),style:p},s)}function QKe(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,o=e.motion;return i?f.createElement(fa,st({},o,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var s=a.className;return f.createElement("div",{style:{zIndex:r},className:Re("".concat(t,"-mask"),s)})}):null}var ZKe=f.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),JKe=f.forwardRef(function(e,t){var n=e.popup,r=e.className,i=e.prefixCls,o=e.style,a=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,d=e.onClick,h=e.mask,p=e.arrow,m=e.arrowPos,v=e.align,y=e.motion,S=e.maskMotion,b=e.forceRender,C=e.getPopupContainer,_=e.autoDestroy,T=e.portal,x=e.zIndex,E=e.onMouseEnter,k=e.onMouseLeave,M=e.onPointerEnter,P=e.onPointerDownCapture,D=e.ready,R=e.offsetX,A=e.offsetY,H=e.offsetR,F=e.offsetB,z=e.onAlign,W=e.onPrepare,q=e.stretch,Z=e.targetWidth,N=e.targetHeight,B=typeof n=="function"?n():n,V=l||c,G=(C==null?void 0:C.length)>0,ie=f.useState(!C||!G),ce=Le(ie,2),fe=ce[0],ee=ce[1];if(Er(function(){!fe&&G&&a&&ee(!0)},[fe,G,a]),!fe)return null;var ne="auto",ue={left:"-1000vw",top:"-1000vh",right:ne,bottom:ne};if(D||!l){var ye,me=v.points,pe=v.dynamicInset||((ye=v._experimental)===null||ye===void 0?void 0:ye.dynamicInset),he=pe&&me[0][1]==="r",_e=pe&&me[0][0]==="b";he?(ue.right=H,ue.left=ne):(ue.left=R,ue.right=ne),_e?(ue.bottom=F,ue.top=ne):(ue.top=A,ue.bottom=ne)}var le={};return q&&(q.includes("height")&&N?le.height=N:q.includes("minHeight")&&N&&(le.minHeight=N),q.includes("width")&&Z?le.width=Z:q.includes("minWidth")&&Z&&(le.minWidth=Z)),l||(le.pointerEvents="none"),f.createElement(T,{open:b||V,getContainer:C&&function(){return C(a)},autoDestroy:_},f.createElement(QKe,{prefixCls:i,open:l,zIndex:x,mask:h,motion:S}),f.createElement(Wa,{onResize:z,disabled:!l},function(xe){return f.createElement(fa,st({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(i,"-hidden")},y,{onAppearPrepare:W,onEnterPrepare:W,visible:l,onVisibleChanged:function(De){var Fe;y==null||(Fe=y.onVisibleChanged)===null||Fe===void 0||Fe.call(y,De),s(De)}}),function(we,De){var Fe=we.className,Ce=we.style,Te=Re(i,Fe,r);return f.createElement("div",{ref:ga(xe,t,De),className:Te,style:X(X(X(X({"--arrow-x":"".concat(m.x||0,"px"),"--arrow-y":"".concat(m.y||0,"px")},ue),le),Ce),{},{boxSizing:"border-box",zIndex:x},o),onMouseEnter:E,onMouseLeave:k,onPointerEnter:M,onClick:d,onPointerDownCapture:P},p&&f.createElement(XKe,{prefixCls:i,arrow:p,arrowPos:m,align:v}),f.createElement(ZKe,{cache:!l&&!u},B))})}))}),eqe=f.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=Dd(n),o=f.useCallback(function(s){t_(t,r?r(s):s)},[r]),a=Xd(o,mg(n));return i?f.cloneElement(n,{ref:a}):n}),RJ=f.createContext(null);function AJ(e){return e?Array.isArray(e)?e:[e]:[]}function tqe(e,t,n,r){return f.useMemo(function(){var i=AJ(n??t),o=AJ(r??t),a=new Set(i),s=new Set(o);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,n,r])}function nqe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function rqe(e,t,n,r){for(var i=n.points,o=Object.keys(e),a=0;a<o.length;a+=1){var s,l=o[a];if(nqe((s=e[l])===null||s===void 0?void 0:s.points,i,r))return"".concat(t,"-placement-").concat(l)}return""}function NJ(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function xE(e){return e.ownerDocument.defaultView}function RF(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var i=xE(n).getComputedStyle(n),o=i.overflowX,a=i.overflowY,s=i.overflow;[o,a,s].some(function(l){return r.includes(l)})&&t.push(n),n=n.parentElement}return t}function h_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Nx(e){return h_(parseFloat(e),0)}function DJ(e,t){var n=X({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var i=xE(r).getComputedStyle(r),o=i.overflow,a=i.overflowClipMargin,s=i.borderTopWidth,l=i.borderBottomWidth,c=i.borderLeftWidth,u=i.borderRightWidth,d=r.getBoundingClientRect(),h=r.offsetHeight,p=r.clientHeight,m=r.offsetWidth,v=r.clientWidth,y=Nx(s),S=Nx(l),b=Nx(c),C=Nx(u),_=h_(Math.round(d.width/m*1e3)/1e3),T=h_(Math.round(d.height/h*1e3)/1e3),x=(m-v-b-C)*_,E=(h-p-y-S)*T,k=y*T,M=S*T,P=b*_,D=C*_,R=0,A=0;if(o==="clip"){var H=Nx(a);R=H*_,A=H*T}var F=d.x+P-R,z=d.y+k-A,W=F+d.width+2*R-P-D-x,q=z+d.height+2*A-k-M-E;n.left=Math.max(n.left,F),n.top=Math.max(n.top,z),n.right=Math.min(n.right,W),n.bottom=Math.min(n.bottom,q)}}),n}function LJ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function FJ(e,t){var n=t||[],r=Le(n,2),i=r[0],o=r[1];return[LJ(e.width,i),LJ(e.height,o)]}function jJ(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Q0(e,t){var n=t[0],r=t[1],i,o;return n==="t"?o=e.y:n==="b"?o=e.y+e.height:o=e.y+e.height/2,r==="l"?i=e.x:r==="r"?i=e.x+e.width:i=e.x+e.width/2,{x:i,y:o}}function Gp(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,i){return i===t?n[r]||"c":r}).join("")}function iqe(e,t,n,r,i,o,a){var s=f.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),l=Le(s,2),c=l[0],u=l[1],d=f.useRef(0),h=f.useMemo(function(){return t?RF(t):[]},[t]),p=f.useRef({}),m=function(){p.current={}};e||m();var v=ur(function(){if(t&&n&&e){let Gn=function(jr,Ro){var na=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ne,Ei=ie.x+jr,ra=ie.y+Ro,Zl=Ei+he,qc=ra+pe,lh=Math.max(Ei,na.left),qn=Math.max(ra,na.top),kr=Math.min(Zl,na.right),Jr=Math.min(qc,na.bottom);return Math.max(0,(kr-lh)*(Jr-qn))},ir=function(){cn=ie.y+Qt,_t=cn+pe,jt=ie.x+Kt,nn=jt+he};var b,C,_,T,x=t,E=x.ownerDocument,k=xE(x),M=k.getComputedStyle(x),P=M.width,D=M.height,R=M.position,A=x.style.left,H=x.style.top,F=x.style.right,z=x.style.bottom,W=x.style.overflow,q=X(X({},i[r]),o),Z=E.createElement("div");(b=x.parentElement)===null||b===void 0||b.appendChild(Z),Z.style.left="".concat(x.offsetLeft,"px"),Z.style.top="".concat(x.offsetTop,"px"),Z.style.position=R,Z.style.height="".concat(x.offsetHeight,"px"),Z.style.width="".concat(x.offsetWidth,"px"),x.style.left="0",x.style.top="0",x.style.right="auto",x.style.bottom="auto",x.style.overflow="hidden";var N;if(Array.isArray(n))N={x:n[0],y:n[1],width:0,height:0};else{var B,V,G=n.getBoundingClientRect();G.x=(B=G.x)!==null&&B!==void 0?B:G.left,G.y=(V=G.y)!==null&&V!==void 0?V:G.top,N={x:G.x,y:G.y,width:G.width,height:G.height}}var ie=x.getBoundingClientRect();ie.x=(C=ie.x)!==null&&C!==void 0?C:ie.left,ie.y=(_=ie.y)!==null&&_!==void 0?_:ie.top;var ce=E.documentElement,fe=ce.clientWidth,ee=ce.clientHeight,ne=ce.scrollWidth,ue=ce.scrollHeight,ye=ce.scrollTop,me=ce.scrollLeft,pe=ie.height,he=ie.width,_e=N.height,le=N.width,xe={left:0,top:0,right:fe,bottom:ee},we={left:-me,top:-ye,right:ne-me,bottom:ue-ye},De=q.htmlRegion,Fe="visible",Ce="visibleFirst";De!=="scroll"&&De!==Ce&&(De=Fe);var Te=De===Ce,ke=DJ(we,h),Pe=DJ(xe,h),Ne=De===Fe?Pe:ke,We=Te?Pe:Ne;x.style.left="auto",x.style.top="auto",x.style.right="0",x.style.bottom="0";var Q=x.getBoundingClientRect();x.style.left=A,x.style.top=H,x.style.right=F,x.style.bottom=z,x.style.overflow=W,(T=x.parentElement)===null||T===void 0||T.removeChild(Z);var K=h_(Math.round(he/parseFloat(P)*1e3)/1e3),J=h_(Math.round(pe/parseFloat(D)*1e3)/1e3);if(K===0||J===0||e_(n)&&!VS(n))return;var be=q.offset,Oe=q.targetOffset,Se=FJ(ie,be),Ke=Le(Se,2),tt=Ke[0],se=Ke[1],ze=FJ(N,Oe),Ye=Le(ze,2),Ue=Ye[0],Je=Ye[1];N.x-=Ue,N.y-=Je;var Ze=q.points||[],rt=Le(Ze,2),qt=rt[0],St=rt[1],Ot=jJ(St),Bt=jJ(qt),Dt=Q0(N,Ot),an=Q0(ie,Bt),Vt=X({},q),Kt=Dt.x-an.x+tt,Qt=Dt.y-an.y+se,et=Gn(Kt,Qt),ot=Gn(Kt,Qt,Pe),Qe=Q0(N,["t","l"]),ut=Q0(ie,["t","l"]),Nt=Q0(N,["b","r"]),Lt=Q0(ie,["b","r"]),Zt=q.overflow||{},Wt=Zt.adjustX,At=Zt.adjustY,$t=Zt.shiftX,Gt=Zt.shiftY,Ft=function(Ro){return typeof Ro=="boolean"?Ro:Ro>=0},cn,_t,jt,nn;ir();var Ht=Ft(At),Tt=Bt[0]===Ot[0];if(Ht&&Bt[0]==="t"&&(_t>We.bottom||p.current.bt)){var gt=Qt;Tt?gt-=pe-_e:gt=Qe.y-Lt.y-se;var Ve=Gn(Kt,gt),Yt=Gn(Kt,gt,Pe);Ve>et||Ve===et&&(!Te||Yt>=ot)?(p.current.bt=!0,Qt=gt,se=-se,Vt.points=[Gp(Bt,0),Gp(Ot,0)]):p.current.bt=!1}if(Ht&&Bt[0]==="b"&&(cn<We.top||p.current.tb)){var mt=Qt;Tt?mt+=pe-_e:mt=Nt.y-ut.y-se;var Mt=Gn(Kt,mt),zt=Gn(Kt,mt,Pe);Mt>et||Mt===et&&(!Te||zt>=ot)?(p.current.tb=!0,Qt=mt,se=-se,Vt.points=[Gp(Bt,0),Gp(Ot,0)]):p.current.tb=!1}var Dn=Ft(Wt),Qn=Bt[1]===Ot[1];if(Dn&&Bt[1]==="l"&&(nn>We.right||p.current.rl)){var O=Kt;Qn?O-=he-le:O=Qe.x-Lt.x-tt;var j=Gn(O,Qt),oe=Gn(O,Qt,Pe);j>et||j===et&&(!Te||oe>=ot)?(p.current.rl=!0,Kt=O,tt=-tt,Vt.points=[Gp(Bt,1),Gp(Ot,1)]):p.current.rl=!1}if(Dn&&Bt[1]==="r"&&(jt<We.left||p.current.lr)){var Ae=Kt;Qn?Ae+=he-le:Ae=Nt.x-ut.x-tt;var Ge=Gn(Ae,Qt),ft=Gn(Ae,Qt,Pe);Ge>et||Ge===et&&(!Te||ft>=ot)?(p.current.lr=!0,Kt=Ae,tt=-tt,Vt.points=[Gp(Bt,1),Gp(Ot,1)]):p.current.lr=!1}ir();var Jt=$t===!0?0:$t;typeof Jt=="number"&&(jt<Pe.left&&(Kt-=jt-Pe.left-tt,N.x+le<Pe.left+Jt&&(Kt+=N.x-Pe.left+le-Jt)),nn>Pe.right&&(Kt-=nn-Pe.right-tt,N.x>Pe.right-Jt&&(Kt+=N.x-Pe.right+Jt)));var on=Gt===!0?0:Gt;typeof on=="number"&&(cn<Pe.top&&(Qt-=cn-Pe.top-se,N.y+_e<Pe.top+on&&(Qt+=N.y-Pe.top+_e-on)),_t>Pe.bottom&&(Qt-=_t-Pe.bottom-se,N.y>Pe.bottom-on&&(Qt+=N.y-Pe.bottom+on)));var Zn=ie.x+Kt,ni=Zn+he,zr=ie.y+Qt,Yr=zr+pe,Rr=N.x,wn=Rr+le,Pn=N.y,Ar=Pn+_e,bn=Math.max(Zn,Rr),Cn=Math.min(ni,wn),nr=(bn+Cn)/2,Ir=nr-Zn,li=Math.max(zr,Pn),Ui=Math.min(Yr,Ar),gr=(li+Ui)/2,Di=gr-zr;a==null||a(t,Vt);var fr=Q.right-ie.x-(Kt+ie.width),xn=Q.bottom-ie.y-(Qt+ie.height);K===1&&(Kt=Math.round(Kt),fr=Math.round(fr)),J===1&&(Qt=Math.round(Qt),xn=Math.round(xn));var zn={ready:!0,offsetX:Kt/K,offsetY:Qt/J,offsetR:fr/K,offsetB:xn/J,arrowX:Ir/K,arrowY:Di/J,scaleX:K,scaleY:J,align:Vt};u(zn)}}),y=function(){d.current+=1;var C=d.current;Promise.resolve().then(function(){d.current===C&&v()})},S=function(){u(function(C){return X(X({},C),{},{ready:!1})})};return Er(S,[r]),Er(function(){e||S()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,y]}function oqe(e,t,n,r,i){Er(function(){if(e&&t&&n){let d=function(){r(),i()};var o=t,a=n,s=RF(o),l=RF(a),c=xE(a),u=new Set([c].concat(pt(s),pt(l)));return u.forEach(function(h){h.addEventListener("scroll",d,{passive:!0})}),c.addEventListener("resize",d,{passive:!0}),r(),function(){u.forEach(function(h){h.removeEventListener("scroll",d),c.removeEventListener("resize",d)})}}},[e,t,n])}function aqe(e,t,n,r,i,o,a,s){var l=f.useRef(e);l.current=e;var c=f.useRef(!1);f.useEffect(function(){if(t&&r&&(!i||o)){var d=function(){c.current=!1},h=function(y){var S;l.current&&!a(((S=y.composedPath)===null||S===void 0||(S=S.call(y))===null||S===void 0?void 0:S[0])||y.target)&&!c.current&&s(!1)},p=xE(r);p.addEventListener("pointerdown",d,!0),p.addEventListener("mousedown",h,!0),p.addEventListener("contextmenu",h,!0);var m=A9(n);return m&&(m.addEventListener("mousedown",h,!0),m.addEventListener("contextmenu",h,!0)),function(){p.removeEventListener("pointerdown",d,!0),p.removeEventListener("mousedown",h,!0),p.removeEventListener("contextmenu",h,!0),m&&(m.removeEventListener("mousedown",h,!0),m.removeEventListener("contextmenu",h,!0))}}},[t,n,r,i,o]);function u(){c.current=!0}return u}var sqe=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function lqe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:bE,t=f.forwardRef(function(n,r){var i=n.prefixCls,o=i===void 0?"rc-trigger-popup":i,a=n.children,s=n.action,l=s===void 0?"hover":s,c=n.showAction,u=n.hideAction,d=n.popupVisible,h=n.defaultPopupVisible,p=n.onPopupVisibleChange,m=n.afterPopupVisibleChange,v=n.mouseEnterDelay,y=n.mouseLeaveDelay,S=y===void 0?.1:y,b=n.focusDelay,C=n.blurDelay,_=n.mask,T=n.maskClosable,x=T===void 0?!0:T,E=n.getPopupContainer,k=n.forceRender,M=n.autoDestroy,P=n.destroyPopupOnHide,D=n.popup,R=n.popupClassName,A=n.popupStyle,H=n.popupPlacement,F=n.builtinPlacements,z=F===void 0?{}:F,W=n.popupAlign,q=n.zIndex,Z=n.stretch,N=n.getPopupClassNameFromAlign,B=n.fresh,V=n.alignPoint,G=n.onPopupClick,ie=n.onPopupAlign,ce=n.arrow,fe=n.popupMotion,ee=n.maskMotion,ne=n.popupTransitionName,ue=n.popupAnimation,ye=n.maskTransitionName,me=n.maskAnimation,pe=n.className,he=n.getTriggerDOMNode,_e=tn(n,sqe),le=M||P||!1,xe=f.useState(!1),we=Le(xe,2),De=we[0],Fe=we[1];Er(function(){Fe(BO())},[]);var Ce=f.useRef({}),Te=f.useContext(RJ),ke=f.useMemo(function(){return{registerSubPopup:function(kr,Jr){Ce.current[kr]=Jr,Te==null||Te.registerSubPopup(kr,Jr)}}},[Te]),Pe=DO(),Ne=f.useState(null),We=Le(Ne,2),Q=We[0],K=We[1],J=f.useRef(null),be=ur(function(qn){J.current=qn,e_(qn)&&Q!==qn&&K(qn),Te==null||Te.registerSubPopup(Pe,qn)}),Oe=f.useState(null),Se=Le(Oe,2),Ke=Se[0],tt=Se[1],se=f.useRef(null),ze=ur(function(qn){e_(qn)&&Ke!==qn&&(tt(qn),se.current=qn)}),Ye=f.Children.only(a),Ue=(Ye==null?void 0:Ye.props)||{},Je={},Ze=ur(function(qn){var kr,Jr,Wi=Ke;return(Wi==null?void 0:Wi.contains(qn))||((kr=A9(Wi))===null||kr===void 0?void 0:kr.host)===qn||qn===Wi||(Q==null?void 0:Q.contains(qn))||((Jr=A9(Q))===null||Jr===void 0?void 0:Jr.host)===qn||qn===Q||Object.values(Ce.current).some(function(Li){return(Li==null?void 0:Li.contains(qn))||qn===Li})}),rt=NJ(o,fe,ue,ne),qt=NJ(o,ee,me,ye),St=f.useState(h||!1),Ot=Le(St,2),Bt=Ot[0],Dt=Ot[1],an=d??Bt,Vt=ur(function(qn){d===void 0&&Dt(qn)});Er(function(){Dt(d||!1)},[d]);var Kt=f.useRef(an);Kt.current=an;var Qt=f.useRef([]);Qt.current=[];var et=ur(function(qn){var kr;Vt(qn),((kr=Qt.current[Qt.current.length-1])!==null&&kr!==void 0?kr:an)!==qn&&(Qt.current.push(qn),p==null||p(qn))}),ot=f.useRef(),Qe=function(){clearTimeout(ot.current)},ut=function(kr){var Jr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Qe(),Jr===0?et(kr):ot.current=setTimeout(function(){et(kr)},Jr*1e3)};f.useEffect(function(){return Qe},[]);var Nt=f.useState(!1),Lt=Le(Nt,2),Zt=Lt[0],Wt=Lt[1];Er(function(qn){(!qn||an)&&Wt(!0)},[an]);var At=f.useState(null),$t=Le(At,2),Gt=$t[0],Ft=$t[1],cn=f.useState(null),_t=Le(cn,2),jt=_t[0],nn=_t[1],Ht=function(kr){nn([kr.clientX,kr.clientY])},Tt=iqe(an,Q,V&&jt!==null?jt:Ke,H,z,W,ie),gt=Le(Tt,11),Ve=gt[0],Yt=gt[1],mt=gt[2],Mt=gt[3],zt=gt[4],Dn=gt[5],Qn=gt[6],O=gt[7],j=gt[8],oe=gt[9],Ae=gt[10],Ge=tqe(De,l,c,u),ft=Le(Ge,2),Jt=ft[0],on=ft[1],Zn=Jt.has("click"),ni=on.has("click")||on.has("contextMenu"),zr=ur(function(){Zt||Ae()}),Yr=function(){Kt.current&&V&&ni&&ut(!1)};oqe(an,Ke,Q,zr,Yr),Er(function(){zr()},[jt,H]),Er(function(){an&&!(z!=null&&z[H])&&zr()},[JSON.stringify(W)]);var Rr=f.useMemo(function(){var qn=rqe(z,o,oe,V);return Re(qn,N==null?void 0:N(oe))},[oe,N,z,o,V]);f.useImperativeHandle(r,function(){return{nativeElement:se.current,popupElement:J.current,forceAlign:zr}});var wn=f.useState(0),Pn=Le(wn,2),Ar=Pn[0],bn=Pn[1],Cn=f.useState(0),nr=Le(Cn,2),Ir=nr[0],li=nr[1],Ui=function(){if(Z&&Ke){var kr=Ke.getBoundingClientRect();bn(kr.width),li(kr.height)}},gr=function(){Ui(),zr()},Di=function(kr){Wt(!1),Ae(),m==null||m(kr)},fr=function(){return new Promise(function(kr){Ui(),Ft(function(){return kr})})};Er(function(){Gt&&(Ae(),Gt(),Ft(null))},[Gt]);function xn(qn,kr,Jr,Wi){Je[qn]=function(Li){var Uu;Wi==null||Wi(Li),ut(kr,Jr);for(var Gc=arguments.length,Wu=new Array(Gc>1?Gc-1:0),ch=1;ch<Gc;ch++)Wu[ch-1]=arguments[ch];(Uu=Ue[qn])===null||Uu===void 0||Uu.call.apply(Uu,[Ue,Li].concat(Wu))}}(Zn||ni)&&(Je.onClick=function(qn){var kr;Kt.current&&ni?ut(!1):!Kt.current&&Zn&&(Ht(qn),ut(!0));for(var Jr=arguments.length,Wi=new Array(Jr>1?Jr-1:0),Li=1;Li<Jr;Li++)Wi[Li-1]=arguments[Li];(kr=Ue.onClick)===null||kr===void 0||kr.call.apply(kr,[Ue,qn].concat(Wi))});var zn=aqe(an,ni,Ke,Q,_,x,Ze,ut),Gn=Jt.has("hover"),ir=on.has("hover"),jr,Ro;Gn&&(xn("onMouseEnter",!0,v,function(qn){Ht(qn)}),xn("onPointerEnter",!0,v,function(qn){Ht(qn)}),jr=function(kr){(an||Zt)&&Q!==null&&Q!==void 0&&Q.contains(kr.target)&&ut(!0,v)},V&&(Je.onMouseMove=function(qn){var kr;(kr=Ue.onMouseMove)===null||kr===void 0||kr.call(Ue,qn)})),ir&&(xn("onMouseLeave",!1,S),xn("onPointerLeave",!1,S),Ro=function(){ut(!1,S)}),Jt.has("focus")&&xn("onFocus",!0,b),on.has("focus")&&xn("onBlur",!1,C),Jt.has("contextMenu")&&(Je.onContextMenu=function(qn){var kr;Kt.current&&on.has("contextMenu")?ut(!1):(Ht(qn),ut(!0)),qn.preventDefault();for(var Jr=arguments.length,Wi=new Array(Jr>1?Jr-1:0),Li=1;Li<Jr;Li++)Wi[Li-1]=arguments[Li];(kr=Ue.onContextMenu)===null||kr===void 0||kr.call.apply(kr,[Ue,qn].concat(Wi))}),pe&&(Je.className=Re(Ue.className,pe));var na=X(X({},Ue),Je),Ei={},ra=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];ra.forEach(function(qn){_e[qn]&&(Ei[qn]=function(){for(var kr,Jr=arguments.length,Wi=new Array(Jr),Li=0;Li<Jr;Li++)Wi[Li]=arguments[Li];(kr=na[qn])===null||kr===void 0||kr.call.apply(kr,[na].concat(Wi)),_e[qn].apply(_e,Wi)})});var Zl=f.cloneElement(Ye,X(X({},na),Ei)),qc={x:Dn,y:Qn},lh=ce?X({},ce!==!0?ce:{}):null;return f.createElement(f.Fragment,null,f.createElement(Wa,{disabled:!an,ref:ze,onResize:gr},f.createElement(eqe,{getTriggerDOMNode:he},Zl)),f.createElement(RJ.Provider,{value:ke},f.createElement(JKe,{portal:e,ref:be,prefixCls:o,popup:D,className:Re(R,Rr),style:A,target:Ke,onMouseEnter:jr,onMouseLeave:Ro,onPointerEnter:jr,zIndex:q,open:an,keepDom:Zt,fresh:B,onClick:G,onPointerDownCapture:zn,mask:_,motion:rt,maskMotion:qt,onVisibleChanged:Di,onPrepare:fr,forceRender:k,autoDestroy:le,getPopupContainer:E,align:oe,arrow:lh,arrowPos:qc,ready:Ve,offsetX:Yt,offsetY:mt,offsetR:Mt,offsetB:zt,onAlign:zr,stretch:Z,targetWidth:Ar/O,targetHeight:Ir/j})))});return t}const wE=lqe(bE);var cqe=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],uqe=function(t){var n=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"}}},dqe=function(t,n){var r=t.prefixCls;t.disabled;var i=t.visible,o=t.children,a=t.popupElement,s=t.animation,l=t.transitionName,c=t.dropdownStyle,u=t.dropdownClassName,d=t.direction,h=d===void 0?"ltr":d,p=t.placement,m=t.builtinPlacements,v=t.dropdownMatchSelectWidth,y=t.dropdownRender,S=t.dropdownAlign,b=t.getPopupContainer,C=t.empty,_=t.getTriggerDOMNode,T=t.onPopupVisibleChange,x=t.onPopupMouseEnter,E=tn(t,cqe),k="".concat(r,"-dropdown"),M=a;y&&(M=y(a));var P=f.useMemo(function(){return m||uqe(v)},[m,v]),D=s?"".concat(k,"-").concat(s):l,R=typeof v=="number",A=f.useMemo(function(){return R?null:v===!1?"minWidth":"width"},[v,R]),H=c;R&&(H=X(X({},H),{},{width:v}));var F=f.useRef(null);return f.useImperativeHandle(n,function(){return{getPopupElement:function(){var W;return(W=F.current)===null||W===void 0?void 0:W.popupElement}}}),f.createElement(wE,st({},E,{showAction:T?["click"]:[],hideAction:T?["click"]:[],popupPlacement:p||(h==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:P,prefixCls:k,popupTransitionName:D,popup:f.createElement("div",{onMouseEnter:x},M),ref:F,stretch:A,popupAlign:S,popupVisible:i,getPopupContainer:b,popupClassName:Re(u,ae({},"".concat(k,"-empty"),C)),popupStyle:H,getTriggerDOMNode:_,onPopupVisibleChange:T}),o)},fqe=f.forwardRef(dqe);function BJ(e,t){var n=e.key,r;return"value"in e&&(r=e.value),n??(r!==void 0?r:"rc-index-key-".concat(t))}function AF(e){return typeof e<"u"&&!Number.isNaN(e)}function qve(e,t){var n=e||{},r=n.label,i=n.value,o=n.options,a=n.groupLabel,s=r||(t?"children":"label");return{label:s,value:i||"value",options:o||"options",groupLabel:a||s}}function hqe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,i=[],o=qve(n,!1),a=o.label,s=o.value,l=o.options,c=o.groupLabel;function u(d,h){Array.isArray(d)&&d.forEach(function(p){if(h||!(l in p)){var m=p[s];i.push({key:BJ(p,i.length),groupOption:h,data:p,label:p[a],value:m})}else{var v=p[c];v===void 0&&r&&(v=p.label),i.push({key:BJ(p,i.length),group:!0,data:p,label:v}),u(p[l],!0)}})}return u(e,!1),i}function NF(e){var t=X({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return fi(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var pqe=function(t,n,r){if(!n||!n.length)return null;var i=!1,o=function s(l,c){var u=Age(c),d=u[0],h=u.slice(1);if(!d)return[l];var p=l.split(d);return i=i||p.length>1,p.reduce(function(m,v){return[].concat(pt(m),pt(s(v,h)))},[]).filter(Boolean)},a=o(t,n);return i?typeof r<"u"?a.slice(0,r):a:null},UU=f.createContext(null);function mqe(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return f.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(i){var o=i.label,a=i.value;return["number","string"].includes(ln(o))?o:a}).join(", ")),n.length>r?", ...":null)}var gqe=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],vqe=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],DF=function(t){return t==="tags"||t==="multiple"},WU=f.forwardRef(function(e,t){var n,r=e.id,i=e.prefixCls,o=e.className,a=e.showSearch,s=e.tagRender,l=e.direction,c=e.omitDomProps,u=e.displayValues,d=e.onDisplayValuesChange,h=e.emptyOptions,p=e.notFoundContent,m=p===void 0?"Not Found":p,v=e.onClear,y=e.mode,S=e.disabled,b=e.loading,C=e.getInputElement,_=e.getRawInputElement,T=e.open,x=e.defaultOpen,E=e.onDropdownVisibleChange,k=e.activeValue,M=e.onActiveValueChange,P=e.activeDescendantId,D=e.searchValue,R=e.autoClearSearchValue,A=e.onSearch,H=e.onSearchSplit,F=e.tokenSeparators,z=e.allowClear,W=e.prefix,q=e.suffixIcon,Z=e.clearIcon,N=e.OptionList,B=e.animation,V=e.transitionName,G=e.dropdownStyle,ie=e.dropdownClassName,ce=e.dropdownMatchSelectWidth,fe=e.dropdownRender,ee=e.dropdownAlign,ne=e.placement,ue=e.builtinPlacements,ye=e.getPopupContainer,me=e.showAction,pe=me===void 0?[]:me,he=e.onFocus,_e=e.onBlur,le=e.onKeyUp,xe=e.onKeyDown,we=e.onMouseDown,De=tn(e,gqe),Fe=DF(y),Ce=(a!==void 0?a:Fe)||y==="combobox",Te=X({},De);vqe.forEach(function(wn){delete Te[wn]}),c==null||c.forEach(function(wn){delete Te[wn]});var ke=f.useState(!1),Pe=Le(ke,2),Ne=Pe[0],We=Pe[1];f.useEffect(function(){We(BO())},[]);var Q=f.useRef(null),K=f.useRef(null),J=f.useRef(null),be=f.useRef(null),Oe=f.useRef(null),Se=f.useRef(!1),Ke=EKe(),tt=Le(Ke,3),se=tt[0],ze=tt[1],Ye=tt[2];f.useImperativeHandle(t,function(){var wn,Pn;return{focus:(wn=be.current)===null||wn===void 0?void 0:wn.focus,blur:(Pn=be.current)===null||Pn===void 0?void 0:Pn.blur,scrollTo:function(bn){var Cn;return(Cn=Oe.current)===null||Cn===void 0?void 0:Cn.scrollTo(bn)},nativeElement:Q.current||K.current}});var Ue=f.useMemo(function(){var wn;if(y!=="combobox")return D;var Pn=(wn=u[0])===null||wn===void 0?void 0:wn.value;return typeof Pn=="string"||typeof Pn=="number"?String(Pn):""},[D,y,u]),Je=y==="combobox"&&typeof C=="function"&&C()||null,Ze=typeof _=="function"&&_(),rt=Xd(K,Ze==null||(n=Ze.props)===null||n===void 0?void 0:n.ref),qt=f.useState(!1),St=Le(qt,2),Ot=St[0],Bt=St[1];Er(function(){Bt(!0)},[]);var Dt=er(!1,{defaultValue:x,value:T}),an=Le(Dt,2),Vt=an[0],Kt=an[1],Qt=Ot?Vt:!1,et=!m&&h;(S||et&&Qt&&y==="combobox")&&(Qt=!1);var ot=et?!1:Qt,Qe=f.useCallback(function(wn){var Pn=wn!==void 0?wn:!Qt;S||(Kt(Pn),Qt!==Pn&&(E==null||E(Pn)))},[S,Qt,Kt,E]),ut=f.useMemo(function(){return(F||[]).some(function(wn){return[`
|
||
`,`\r
|
||
`].includes(wn)})},[F]),Nt=f.useContext(UU)||{},Lt=Nt.maxCount,Zt=Nt.rawValues,Wt=function(Pn,Ar,bn){if(!(Fe&&AF(Lt)&&(Zt==null?void 0:Zt.size)>=Lt)){var Cn=!0,nr=Pn;M==null||M(null);var Ir=pqe(Pn,F,AF(Lt)?Lt-Zt.size:void 0),li=bn?null:Ir;return y!=="combobox"&&li&&(nr="",H==null||H(li),Qe(!1),Cn=!1),A&&Ue!==nr&&A(nr,{source:Ar?"typing":"effect"}),Cn}},At=function(Pn){!Pn||!Pn.trim()||A(Pn,{source:"submit"})};f.useEffect(function(){!Qt&&!Fe&&y!=="combobox"&&Wt("",!1,!1)},[Qt]),f.useEffect(function(){Vt&&S&&Kt(!1),S&&!Se.current&&ze(!1)},[S]);var $t=Bve(),Gt=Le($t,2),Ft=Gt[0],cn=Gt[1],_t=f.useRef(!1),jt=function(Pn){var Ar=Ft(),bn=Pn.key,Cn=bn==="Enter";if(Cn&&(y!=="combobox"&&Pn.preventDefault(),Qt||Qe(!0)),cn(!!Ue),bn==="Backspace"&&!Ar&&Fe&&!Ue&&u.length){for(var nr=pt(u),Ir=null,li=nr.length-1;li>=0;li-=1){var Ui=nr[li];if(!Ui.disabled){nr.splice(li,1),Ir=Ui;break}}Ir&&d(nr,{type:"remove",values:[Ir]})}for(var gr=arguments.length,Di=new Array(gr>1?gr-1:0),fr=1;fr<gr;fr++)Di[fr-1]=arguments[fr];if(Qt&&(!Cn||!_t.current)){var xn;Cn&&(_t.current=!0),(xn=Oe.current)===null||xn===void 0||xn.onKeyDown.apply(xn,[Pn].concat(Di))}xe==null||xe.apply(void 0,[Pn].concat(Di))},nn=function(Pn){for(var Ar=arguments.length,bn=new Array(Ar>1?Ar-1:0),Cn=1;Cn<Ar;Cn++)bn[Cn-1]=arguments[Cn];if(Qt){var nr;(nr=Oe.current)===null||nr===void 0||nr.onKeyUp.apply(nr,[Pn].concat(bn))}Pn.key==="Enter"&&(_t.current=!1),le==null||le.apply(void 0,[Pn].concat(bn))},Ht=function(Pn){var Ar=u.filter(function(bn){return bn!==Pn});d(Ar,{type:"remove",values:[Pn]})},Tt=function(){_t.current=!1},gt=f.useRef(!1),Ve=function(){ze(!0),S||(he&&!gt.current&&he.apply(void 0,arguments),pe.includes("focus")&&Qe(!0)),gt.current=!0},Yt=function(){Se.current=!0,ze(!1,function(){gt.current=!1,Se.current=!1,Qe(!1)}),!S&&(Ue&&(y==="tags"?A(Ue,{source:"submit"}):y==="multiple"&&A("",{source:"blur"})),_e&&_e.apply(void 0,arguments))},mt=[];f.useEffect(function(){return function(){mt.forEach(function(wn){return clearTimeout(wn)}),mt.splice(0,mt.length)}},[]);var Mt=function(Pn){var Ar,bn=Pn.target,Cn=(Ar=J.current)===null||Ar===void 0?void 0:Ar.getPopupElement();if(Cn&&Cn.contains(bn)){var nr=setTimeout(function(){var gr=mt.indexOf(nr);if(gr!==-1&&mt.splice(gr,1),Ye(),!Ne&&!Cn.contains(document.activeElement)){var Di;(Di=be.current)===null||Di===void 0||Di.focus()}});mt.push(nr)}for(var Ir=arguments.length,li=new Array(Ir>1?Ir-1:0),Ui=1;Ui<Ir;Ui++)li[Ui-1]=arguments[Ui];we==null||we.apply(void 0,[Pn].concat(li))},zt=f.useState({}),Dn=Le(zt,2),Qn=Dn[1];function O(){Qn({})}var j;Ze&&(j=function(Pn){Qe(Pn)}),TKe(function(){var wn;return[Q.current,(wn=J.current)===null||wn===void 0?void 0:wn.getPopupElement()]},ot,Qe,!!Ze);var oe=f.useMemo(function(){return X(X({},e),{},{notFoundContent:m,open:Qt,triggerOpen:ot,id:r,showSearch:Ce,multiple:Fe,toggleOpen:Qe})},[e,m,ot,Qt,r,Ce,Fe,Qe]),Ae=!!q||b,Ge;Ae&&(Ge=f.createElement(HO,{className:Re("".concat(i,"-arrow"),ae({},"".concat(i,"-arrow-loading"),b)),customizeIcon:q,customizeIconProps:{loading:b,searchValue:Ue,open:Qt,focused:se,showSearch:Ce}}));var ft=function(){var Pn;v==null||v(),(Pn=be.current)===null||Pn===void 0||Pn.focus(),d([],{type:"clear",values:u}),Wt("",!1,!1)},Jt=_Ke(i,ft,u,z,Z,S,Ue,y),on=Jt.allowClear,Zn=Jt.clearIcon,ni=f.createElement(N,{ref:Oe}),zr=Re(i,o,ae(ae(ae(ae(ae(ae(ae(ae(ae(ae({},"".concat(i,"-focused"),se),"".concat(i,"-multiple"),Fe),"".concat(i,"-single"),!Fe),"".concat(i,"-allow-clear"),z),"".concat(i,"-show-arrow"),Ae),"".concat(i,"-disabled"),S),"".concat(i,"-loading"),b),"".concat(i,"-open"),Qt),"".concat(i,"-customize-input"),Je),"".concat(i,"-show-search"),Ce)),Yr=f.createElement(fqe,{ref:J,disabled:S,prefixCls:i,visible:ot,popupElement:ni,animation:B,transitionName:V,dropdownStyle:G,dropdownClassName:ie,direction:l,dropdownMatchSelectWidth:ce,dropdownRender:fe,dropdownAlign:ee,placement:ne,builtinPlacements:ue,getPopupContainer:ye,empty:h,getTriggerDOMNode:function(Pn){return K.current||Pn},onPopupVisibleChange:j,onPopupMouseEnter:O},Ze?f.cloneElement(Ze,{ref:rt}):f.createElement(YKe,st({},e,{domRef:K,prefixCls:i,inputElement:Je,ref:be,id:r,prefix:W,showSearch:Ce,autoClearSearchValue:R,mode:y,activeDescendantId:P,tagRender:s,values:u,open:Qt,onToggleOpen:Qe,activeValue:k,searchValue:Ue,onSearch:Wt,onSearchSubmit:At,onRemove:Ht,tokenWithEnter:ut,onInputBlur:Tt}))),Rr;return Ze?Rr=Yr:Rr=f.createElement("div",st({className:zr},Te,{ref:Q,onMouseDown:Mt,onKeyDown:jt,onKeyUp:nn,onFocus:Ve,onBlur:Yt}),f.createElement(mqe,{visible:se&&!Qt,values:u}),Yr,Ge,on&&Zn),f.createElement(jve.Provider,{value:oe},Rr)}),VU=function(){return null};VU.isSelectOptGroup=!0;var KU=function(){return null};KU.isSelectOption=!0;var Gve=f.forwardRef(function(e,t){var n=e.height,r=e.offsetY,i=e.offsetX,o=e.children,a=e.prefixCls,s=e.onInnerResize,l=e.innerProps,c=e.rtl,u=e.extra,d={},h={display:"flex",flexDirection:"column"};return r!==void 0&&(d={height:n,position:"relative",overflow:"hidden"},h=X(X({},h),{},ae(ae(ae(ae(ae({transform:"translateY(".concat(r,"px)")},c?"marginRight":"marginLeft",-i),"position","absolute"),"left",0),"right",0),"top",0))),f.createElement("div",{style:d},f.createElement(Wa,{onResize:function(m){var v=m.offsetHeight;v&&s&&s()}},f.createElement("div",st({style:h,className:Re(ae({},"".concat(a,"-holder-inner"),a)),ref:t},l),o,u)))});Gve.displayName="Filler";function yqe(e){var t=e.children,n=e.setRef,r=f.useCallback(function(i){n(i)},[]);return f.cloneElement(t,{ref:r})}function bqe(e,t,n,r,i,o,a,s){var l=s.getKey;return e.slice(t,n+1).map(function(c,u){var d=t+u,h=a(c,d,{style:{width:r},offsetX:i}),p=l(c);return f.createElement(yqe,{key:p,setRef:function(v){return o(c,v)}},h)})}function Sqe(e,t,n){var r=e.length,i=t.length,o,a;if(r===0&&i===0)return null;r<i?(o=e,a=t):(o=t,a=e);var s={__EMPTY_ITEM__:!0};function l(m){return m!==void 0?n(m):s}for(var c=null,u=Math.abs(r-i)!==1,d=0;d<a.length;d+=1){var h=l(o[d]),p=l(a[d]);if(h!==p){c=d,u=u||h!==l(a[d+1]);break}}return c===null?null:{index:c,multiple:u}}function Cqe(e,t,n){var r=f.useState(e),i=Le(r,2),o=i[0],a=i[1],s=f.useState(null),l=Le(s,2),c=l[0],u=l[1];return f.useEffect(function(){var d=Sqe(o||[],e||[],t);(d==null?void 0:d.index)!==void 0&&u(e[d.index]),a(e)},[e]),[c]}var HJ=(typeof navigator>"u"?"undefined":ln(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const Yve=function(e,t,n,r){var i=f.useRef(!1),o=f.useRef(null);function a(){clearTimeout(o.current),i.current=!0,o.current=setTimeout(function(){i.current=!1},50)}var s=f.useRef({top:e,bottom:t,left:n,right:r});return s.current.top=e,s.current.bottom=t,s.current.left=n,s.current.right=r,function(l,c){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,d=l?c<0&&s.current.left||c>0&&s.current.right:c<0&&s.current.top||c>0&&s.current.bottom;return u&&d?(clearTimeout(o.current),i.current=!1):(!d||i.current)&&a(),!i.current&&d}};function xqe(e,t,n,r,i,o,a){var s=f.useRef(0),l=f.useRef(null),c=f.useRef(null),u=f.useRef(!1),d=Yve(t,n,r,i);function h(b,C){if(Cr.cancel(l.current),!d(!1,C)){var _=b;if(!_._virtualHandled)_._virtualHandled=!0;else return;s.current+=C,c.current=C,HJ||_.preventDefault(),l.current=Cr(function(){var T=u.current?10:1;a(s.current*T,!1),s.current=0})}}function p(b,C){a(C,!0),HJ||b.preventDefault()}var m=f.useRef(null),v=f.useRef(null);function y(b){if(e){Cr.cancel(v.current),v.current=Cr(function(){m.current=null},2);var C=b.deltaX,_=b.deltaY,T=b.shiftKey,x=C,E=_;(m.current==="sx"||!m.current&&T&&_&&!C)&&(x=_,E=0,m.current="sx");var k=Math.abs(x),M=Math.abs(E);m.current===null&&(m.current=o&&k>M?"x":"y"),m.current==="y"?h(b,E):p(b,x)}}function S(b){e&&(u.current=b.detail===c.current)}return[y,S]}function wqe(e,t,n,r){var i=f.useMemo(function(){return[new Map,[]]},[e,n.id,r]),o=Le(i,2),a=o[0],s=o[1],l=function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u,h=a.get(u),p=a.get(d);if(h===void 0||p===void 0)for(var m=e.length,v=s.length;v<m;v+=1){var y,S=e[v],b=t(S);a.set(b,v);var C=(y=n.get(b))!==null&&y!==void 0?y:r;if(s[v]=(s[v-1]||0)+C,b===u&&(h=v),b===d&&(p=v),h!==void 0&&p!==void 0)break}return{top:s[h-1]||0,bottom:s[p]}};return l}var _qe=function(){function e(){hi(this,e),ae(this,"maps",void 0),ae(this,"id",0),this.maps=Object.create(null)}return pi(e,[{key:"set",value:function(n,r){this.maps[n]=r,this.id+=1}},{key:"get",value:function(n){return this.maps[n]}}]),e}();function zJ(e){var t=parseFloat(e);return isNaN(t)?0:t}function Eqe(e,t,n){var r=f.useState(0),i=Le(r,2),o=i[0],a=i[1],s=f.useRef(new Map),l=f.useRef(new _qe),c=f.useRef();function u(){Cr.cancel(c.current)}function d(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;u();var m=function(){s.current.forEach(function(y,S){if(y&&y.offsetParent){var b=q2(y),C=b.offsetHeight,_=getComputedStyle(b),T=_.marginTop,x=_.marginBottom,E=zJ(T),k=zJ(x),M=C+E+k;l.current.get(S)!==M&&l.current.set(S,M)}}),a(function(y){return y+1})};p?m():c.current=Cr(m)}function h(p,m){var v=e(p);s.current.get(v),m?(s.current.set(v,m),d()):s.current.delete(v)}return f.useEffect(function(){return u},[]),[h,d,l.current,o]}var UJ=14/15;function Tqe(e,t,n){var r=f.useRef(!1),i=f.useRef(0),o=f.useRef(0),a=f.useRef(null),s=f.useRef(null),l,c=function(p){if(r.current){var m=Math.ceil(p.touches[0].pageX),v=Math.ceil(p.touches[0].pageY),y=i.current-m,S=o.current-v,b=Math.abs(y)>Math.abs(S);b?i.current=m:o.current=v;var C=n(b,b?y:S,!1,p);C&&p.preventDefault(),clearInterval(s.current),C&&(s.current=setInterval(function(){b?y*=UJ:S*=UJ;var _=Math.floor(b?y:S);(!n(b,_,!0)||Math.abs(_)<=.1)&&clearInterval(s.current)},16))}},u=function(){r.current=!1,l()},d=function(p){l(),p.touches.length===1&&!r.current&&(r.current=!0,i.current=Math.ceil(p.touches[0].pageX),o.current=Math.ceil(p.touches[0].pageY),a.current=p.target,a.current.addEventListener("touchmove",c,{passive:!1}),a.current.addEventListener("touchend",u,{passive:!0}))};l=function(){a.current&&(a.current.removeEventListener("touchmove",c),a.current.removeEventListener("touchend",u))},Er(function(){return e&&t.current.addEventListener("touchstart",d,{passive:!0}),function(){var h;(h=t.current)===null||h===void 0||h.removeEventListener("touchstart",d),l(),clearInterval(s.current)}},[e])}var kqe=10;function Oqe(e,t,n,r,i,o,a,s){var l=f.useRef(),c=f.useState(null),u=Le(c,2),d=u[0],h=u[1];return Er(function(){if(d&&d.times<kqe){if(!e.current){h(function(Z){return X({},Z)});return}o();var p=d.targetAlign,m=d.originAlign,v=d.index,y=d.offset,S=e.current.clientHeight,b=!1,C=p,_=null;if(S){for(var T=p||m,x=0,E=0,k=0,M=Math.min(t.length-1,v),P=0;P<=M;P+=1){var D=i(t[P]);E=x;var R=n.get(D);k=E+(R===void 0?r:R),x=k}for(var A=T==="top"?y:S-y,H=M;H>=0;H-=1){var F=i(t[H]),z=n.get(F);if(z===void 0){b=!0;break}if(A-=z,A<=0)break}switch(T){case"top":_=E-y;break;case"bottom":_=k-S+y;break;default:{var W=e.current.scrollTop,q=W+S;E<W?C="top":k>q&&(C="bottom")}}_!==null&&a(_),_!==d.lastTop&&(b=!0)}b&&h(X(X({},d),{},{times:d.times+1,targetAlign:C,lastTop:_}))}},[d,e.current]),function(p){if(p==null){s();return}if(Cr.cancel(l.current),typeof p=="number")a(p);else if(p&&ln(p)==="object"){var m,v=p.align;"index"in p?m=p.index:m=t.findIndex(function(b){return i(b)===p.key});var y=p.offset,S=y===void 0?0:y;h({times:0,index:m,offset:S,originAlign:v})}}}function WJ(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]}var VJ=f.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,i=e.scrollOffset,o=e.scrollRange,a=e.onStartMove,s=e.onStopMove,l=e.onScroll,c=e.horizontal,u=e.spinSize,d=e.containerSize,h=e.style,p=e.thumbStyle,m=f.useState(!1),v=Le(m,2),y=v[0],S=v[1],b=f.useState(null),C=Le(b,2),_=C[0],T=C[1],x=f.useState(null),E=Le(x,2),k=E[0],M=E[1],P=!r,D=f.useRef(),R=f.useRef(),A=f.useState(!1),H=Le(A,2),F=H[0],z=H[1],W=f.useRef(),q=function(){clearTimeout(W.current),z(!0),W.current=setTimeout(function(){z(!1)},3e3)},Z=o-d||0,N=d-u||0,B=f.useMemo(function(){if(i===0||Z===0)return 0;var ye=i/Z;return ye*N},[i,Z,N]),V=function(me){me.stopPropagation(),me.preventDefault()},G=f.useRef({top:B,dragging:y,pageY:_,startTop:k});G.current={top:B,dragging:y,pageY:_,startTop:k};var ie=function(me){S(!0),T(WJ(me,c)),M(G.current.top),a(),me.stopPropagation(),me.preventDefault()};f.useEffect(function(){var ye=function(_e){_e.preventDefault()},me=D.current,pe=R.current;return me.addEventListener("touchstart",ye,{passive:!1}),pe.addEventListener("touchstart",ie,{passive:!1}),function(){me.removeEventListener("touchstart",ye),pe.removeEventListener("touchstart",ie)}},[]);var ce=f.useRef();ce.current=Z;var fe=f.useRef();fe.current=N,f.useEffect(function(){if(y){var ye,me=function(_e){var le=G.current,xe=le.dragging,we=le.pageY,De=le.startTop;Cr.cancel(ye);var Fe=D.current.getBoundingClientRect(),Ce=d/(c?Fe.width:Fe.height);if(xe){var Te=(WJ(_e,c)-we)*Ce,ke=De;!P&&c?ke-=Te:ke+=Te;var Pe=ce.current,Ne=fe.current,We=Ne?ke/Ne:0,Q=Math.ceil(We*Pe);Q=Math.max(Q,0),Q=Math.min(Q,Pe),ye=Cr(function(){l(Q,c)})}},pe=function(){S(!1),s()};return window.addEventListener("mousemove",me,{passive:!0}),window.addEventListener("touchmove",me,{passive:!0}),window.addEventListener("mouseup",pe,{passive:!0}),window.addEventListener("touchend",pe,{passive:!0}),function(){window.removeEventListener("mousemove",me),window.removeEventListener("touchmove",me),window.removeEventListener("mouseup",pe),window.removeEventListener("touchend",pe),Cr.cancel(ye)}}},[y]),f.useEffect(function(){return q(),function(){clearTimeout(W.current)}},[i]),f.useImperativeHandle(t,function(){return{delayHidden:q}});var ee="".concat(n,"-scrollbar"),ne={position:"absolute",visibility:F?null:"hidden"},ue={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return c?(ne.height=8,ne.left=0,ne.right=0,ne.bottom=0,ue.height="100%",ue.width=u,P?ue.left=B:ue.right=B):(ne.width=8,ne.top=0,ne.bottom=0,P?ne.right=0:ne.left=0,ue.width="100%",ue.height=u,ue.top=B),f.createElement("div",{ref:D,className:Re(ee,ae(ae(ae({},"".concat(ee,"-horizontal"),c),"".concat(ee,"-vertical"),!c),"".concat(ee,"-visible"),F)),style:X(X({},ne),h),onMouseDown:V,onMouseMove:q},f.createElement("div",{ref:R,className:Re("".concat(ee,"-thumb"),ae({},"".concat(ee,"-thumb-moving"),y)),style:X(X({},ue),p),onMouseDown:ie}))}),Pqe=20;function KJ(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,Pqe),Math.floor(n)}var Mqe=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],Iqe=[],$qe={overflowY:"auto",overflowAnchor:"none"};function Rqe(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,i=e.className,o=e.height,a=e.itemHeight,s=e.fullHeight,l=s===void 0?!0:s,c=e.style,u=e.data,d=e.children,h=e.itemKey,p=e.virtual,m=e.direction,v=e.scrollWidth,y=e.component,S=y===void 0?"div":y,b=e.onScroll,C=e.onVirtualScroll,_=e.onVisibleChange,T=e.innerProps,x=e.extraRender,E=e.styles,k=tn(e,Mqe),M=f.useCallback(function(Ht){return typeof h=="function"?h(Ht):Ht==null?void 0:Ht[h]},[h]),P=Eqe(M),D=Le(P,4),R=D[0],A=D[1],H=D[2],F=D[3],z=!!(p!==!1&&o&&a),W=f.useMemo(function(){return Object.values(H.maps).reduce(function(Ht,Tt){return Ht+Tt},0)},[H.id,H.maps]),q=z&&u&&(Math.max(a*u.length,W)>o||!!v),Z=m==="rtl",N=Re(r,ae({},"".concat(r,"-rtl"),Z),i),B=u||Iqe,V=f.useRef(),G=f.useRef(),ie=f.useRef(),ce=f.useState(0),fe=Le(ce,2),ee=fe[0],ne=fe[1],ue=f.useState(0),ye=Le(ue,2),me=ye[0],pe=ye[1],he=f.useState(!1),_e=Le(he,2),le=_e[0],xe=_e[1],we=function(){xe(!0)},De=function(){xe(!1)},Fe={getKey:M};function Ce(Ht){ne(function(Tt){var gt;typeof Ht=="function"?gt=Ht(Tt):gt=Ht;var Ve=St(gt);return V.current.scrollTop=Ve,Ve})}var Te=f.useRef({start:0,end:B.length}),ke=f.useRef(),Pe=Cqe(B,M),Ne=Le(Pe,1),We=Ne[0];ke.current=We;var Q=f.useMemo(function(){if(!z)return{scrollHeight:void 0,start:0,end:B.length-1,offset:void 0};if(!q){var Ht;return{scrollHeight:((Ht=G.current)===null||Ht===void 0?void 0:Ht.offsetHeight)||0,start:0,end:B.length-1,offset:void 0}}for(var Tt=0,gt,Ve,Yt,mt=B.length,Mt=0;Mt<mt;Mt+=1){var zt=B[Mt],Dn=M(zt),Qn=H.get(Dn),O=Tt+(Qn===void 0?a:Qn);O>=ee&>===void 0&&(gt=Mt,Ve=Tt),O>ee+o&&Yt===void 0&&(Yt=Mt),Tt=O}return gt===void 0&&(gt=0,Ve=0,Yt=Math.ceil(o/a)),Yt===void 0&&(Yt=B.length-1),Yt=Math.min(Yt+1,B.length-1),{scrollHeight:Tt,start:gt,end:Yt,offset:Ve}},[q,z,ee,B,F,o]),K=Q.scrollHeight,J=Q.start,be=Q.end,Oe=Q.offset;Te.current.start=J,Te.current.end=be;var Se=f.useState({width:0,height:o}),Ke=Le(Se,2),tt=Ke[0],se=Ke[1],ze=function(Tt){se({width:Tt.offsetWidth,height:Tt.offsetHeight})},Ye=f.useRef(),Ue=f.useRef(),Je=f.useMemo(function(){return KJ(tt.width,v)},[tt.width,v]),Ze=f.useMemo(function(){return KJ(tt.height,K)},[tt.height,K]),rt=K-o,qt=f.useRef(rt);qt.current=rt;function St(Ht){var Tt=Ht;return Number.isNaN(qt.current)||(Tt=Math.min(Tt,qt.current)),Tt=Math.max(Tt,0),Tt}var Ot=ee<=0,Bt=ee>=rt,Dt=me<=0,an=me>=v,Vt=Yve(Ot,Bt,Dt,an),Kt=function(){return{x:Z?-me:me,y:ee}},Qt=f.useRef(Kt()),et=ur(function(Ht){if(C){var Tt=X(X({},Kt()),Ht);(Qt.current.x!==Tt.x||Qt.current.y!==Tt.y)&&(C(Tt),Qt.current=Tt)}});function ot(Ht,Tt){var gt=Ht;Tt?(Ac.flushSync(function(){pe(gt)}),et()):Ce(gt)}function Qe(Ht){var Tt=Ht.currentTarget.scrollTop;Tt!==ee&&Ce(Tt),b==null||b(Ht),et()}var ut=function(Tt){var gt=Tt,Ve=v?v-tt.width:0;return gt=Math.max(gt,0),gt=Math.min(gt,Ve),gt},Nt=ur(function(Ht,Tt){Tt?(Ac.flushSync(function(){pe(function(gt){var Ve=gt+(Z?-Ht:Ht);return ut(Ve)})}),et()):Ce(function(gt){var Ve=gt+Ht;return Ve})}),Lt=xqe(z,Ot,Bt,Dt,an,!!v,Nt),Zt=Le(Lt,2),Wt=Zt[0],At=Zt[1];Tqe(z,V,function(Ht,Tt,gt,Ve){var Yt=Ve;return Vt(Ht,Tt,gt)?!1:!Yt||!Yt._virtualHandled?(Yt&&(Yt._virtualHandled=!0),Wt({preventDefault:function(){},deltaX:Ht?Tt:0,deltaY:Ht?0:Tt}),!0):!1}),Er(function(){function Ht(gt){var Ve=Ot&>.detail<0,Yt=Bt&>.detail>0;z&&!Ve&&!Yt&>.preventDefault()}var Tt=V.current;return Tt.addEventListener("wheel",Wt,{passive:!1}),Tt.addEventListener("DOMMouseScroll",At,{passive:!0}),Tt.addEventListener("MozMousePixelScroll",Ht,{passive:!1}),function(){Tt.removeEventListener("wheel",Wt),Tt.removeEventListener("DOMMouseScroll",At),Tt.removeEventListener("MozMousePixelScroll",Ht)}},[z,Ot,Bt]),Er(function(){if(v){var Ht=ut(me);pe(Ht),et({x:Ht})}},[tt.width,v]);var $t=function(){var Tt,gt;(Tt=Ye.current)===null||Tt===void 0||Tt.delayHidden(),(gt=Ue.current)===null||gt===void 0||gt.delayHidden()},Gt=Oqe(V,B,H,a,M,function(){return A(!0)},Ce,$t);f.useImperativeHandle(t,function(){return{nativeElement:ie.current,getScrollInfo:Kt,scrollTo:function(Tt){function gt(Ve){return Ve&&ln(Ve)==="object"&&("left"in Ve||"top"in Ve)}gt(Tt)?(Tt.left!==void 0&&pe(ut(Tt.left)),Gt(Tt.top)):Gt(Tt)}}}),Er(function(){if(_){var Ht=B.slice(J,be+1);_(Ht,B)}},[J,be,B]);var Ft=wqe(B,M,H,a),cn=x==null?void 0:x({start:J,end:be,virtual:q,offsetX:me,offsetY:Oe,rtl:Z,getSize:Ft}),_t=bqe(B,J,be,v,me,R,d,Fe),jt=null;o&&(jt=X(ae({},l?"height":"maxHeight",o),$qe),z&&(jt.overflowY="hidden",v&&(jt.overflowX="hidden"),le&&(jt.pointerEvents="none")));var nn={};return Z&&(nn.dir="rtl"),f.createElement("div",st({ref:ie,style:X(X({},c),{},{position:"relative"}),className:N},nn,k),f.createElement(Wa,{onResize:ze},f.createElement(S,{className:"".concat(r,"-holder"),style:jt,ref:V,onScroll:Qe,onMouseEnter:$t},f.createElement(Gve,{prefixCls:r,height:K,offsetX:me,offsetY:Oe,scrollWidth:v,onInnerResize:A,ref:G,innerProps:T,rtl:Z,extra:cn},_t))),q&&K>o&&f.createElement(VJ,{ref:Ye,prefixCls:r,scrollOffset:ee,scrollRange:K,rtl:Z,onScroll:ot,onStartMove:we,onStopMove:De,spinSize:Ze,containerSize:tt.height,style:E==null?void 0:E.verticalScrollBar,thumbStyle:E==null?void 0:E.verticalScrollBarThumb}),q&&v>tt.width&&f.createElement(VJ,{ref:Ue,prefixCls:r,scrollOffset:me,scrollRange:v,rtl:Z,onScroll:ot,onStartMove:we,onStopMove:De,spinSize:Je,containerSize:tt.width,horizontal:!0,style:E==null?void 0:E.horizontalScrollBar,thumbStyle:E==null?void 0:E.horizontalScrollBarThumb}))}var zO=f.forwardRef(Rqe);zO.displayName="List";function Aqe(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Nqe=["disabled","title","children","style","className"];function qJ(e){return typeof e=="string"||typeof e=="number"}var Dqe=function(t,n){var r=zU(),i=r.prefixCls,o=r.id,a=r.open,s=r.multiple,l=r.mode,c=r.searchValue,u=r.toggleOpen,d=r.notFoundContent,h=r.onPopupScroll,p=f.useContext(UU),m=p.maxCount,v=p.flattenOptions,y=p.onActiveValue,S=p.defaultActiveFirstOption,b=p.onSelect,C=p.menuItemSelectedIcon,_=p.rawValues,T=p.fieldNames,x=p.virtual,E=p.direction,k=p.listHeight,M=p.listItemHeight,P=p.optionRender,D="".concat(i,"-item"),R=dp(function(){return v},[a,v],function(me,pe){return pe[0]&&me[1]!==pe[1]}),A=f.useRef(null),H=f.useMemo(function(){return s&&AF(m)&&(_==null?void 0:_.size)>=m},[s,m,_==null?void 0:_.size]),F=function(pe){pe.preventDefault()},z=function(pe){var he;(he=A.current)===null||he===void 0||he.scrollTo(typeof pe=="number"?{index:pe}:pe)},W=f.useCallback(function(me){return l==="combobox"?!1:_.has(me)},[l,pt(_).toString(),_.size]),q=function(pe){for(var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,_e=R.length,le=0;le<_e;le+=1){var xe=(pe+le*he+_e)%_e,we=R[xe]||{},De=we.group,Fe=we.data;if(!De&&!(Fe!=null&&Fe.disabled)&&(W(Fe.value)||!H))return xe}return-1},Z=f.useState(function(){return q(0)}),N=Le(Z,2),B=N[0],V=N[1],G=function(pe){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;V(pe);var _e={source:he?"keyboard":"mouse"},le=R[pe];if(!le){y(null,-1,_e);return}y(le.value,pe,_e)};f.useEffect(function(){G(S!==!1?q(0):-1)},[R.length,c]);var ie=f.useCallback(function(me){return l==="combobox"?String(me).toLowerCase()===c.toLowerCase():_.has(me)},[l,c,pt(_).toString(),_.size]);f.useEffect(function(){var me=setTimeout(function(){if(!s&&a&&_.size===1){var he=Array.from(_)[0],_e=R.findIndex(function(le){var xe=le.data;return xe.value===he});_e!==-1&&(G(_e),z(_e))}});if(a){var pe;(pe=A.current)===null||pe===void 0||pe.scrollTo(void 0)}return function(){return clearTimeout(me)}},[a,c]);var ce=function(pe){pe!==void 0&&b(pe,{selected:!_.has(pe)}),s||u(!1)};if(f.useImperativeHandle(n,function(){return{onKeyDown:function(pe){var he=pe.which,_e=pe.ctrlKey;switch(he){case Pt.N:case Pt.P:case Pt.UP:case Pt.DOWN:{var le=0;if(he===Pt.UP?le=-1:he===Pt.DOWN?le=1:Aqe()&&_e&&(he===Pt.N?le=1:he===Pt.P&&(le=-1)),le!==0){var xe=q(B+le,le);z(xe),G(xe,!0)}break}case Pt.TAB:case Pt.ENTER:{var we,De=R[B];De&&!(De!=null&&(we=De.data)!==null&&we!==void 0&&we.disabled)&&!H?ce(De.value):ce(void 0),a&&pe.preventDefault();break}case Pt.ESC:u(!1),a&&pe.stopPropagation()}},onKeyUp:function(){},scrollTo:function(pe){z(pe)}}}),R.length===0)return f.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat(D,"-empty"),onMouseDown:F},d);var fe=Object.keys(T).map(function(me){return T[me]}),ee=function(pe){return pe.label};function ne(me,pe){var he=me.group;return{role:he?"presentation":"option",id:"".concat(o,"_list_").concat(pe)}}var ue=function(pe){var he=R[pe];if(!he)return null;var _e=he.data||{},le=_e.value,xe=he.group,we=Bi(_e,!0),De=ee(he);return he?f.createElement("div",st({"aria-label":typeof De=="string"&&!xe?De:null},we,{key:pe},ne(he,pe),{"aria-selected":ie(le)}),le):null},ye={role:"listbox",id:"".concat(o,"_list")};return f.createElement(f.Fragment,null,x&&f.createElement("div",st({},ye,{style:{height:0,width:0,overflow:"hidden"}}),ue(B-1),ue(B),ue(B+1)),f.createElement(zO,{itemKey:"key",ref:A,data:R,height:k,itemHeight:M,fullHeight:!1,onMouseDown:F,onScroll:h,virtual:x,direction:E,innerProps:x?null:ye},function(me,pe){var he=me.group,_e=me.groupOption,le=me.data,xe=me.label,we=me.value,De=le.key;if(he){var Fe,Ce=(Fe=le.title)!==null&&Fe!==void 0?Fe:qJ(xe)?xe.toString():void 0;return f.createElement("div",{className:Re(D,"".concat(D,"-group"),le.className),title:Ce},xe!==void 0?xe:De)}var Te=le.disabled,ke=le.title;le.children;var Pe=le.style,Ne=le.className,We=tn(le,Nqe),Q=Pr(We,fe),K=W(we),J=Te||!K&&H,be="".concat(D,"-option"),Oe=Re(D,be,Ne,ae(ae(ae(ae({},"".concat(be,"-grouped"),_e),"".concat(be,"-active"),B===pe&&!J),"".concat(be,"-disabled"),J),"".concat(be,"-selected"),K)),Se=ee(me),Ke=!C||typeof C=="function"||K,tt=typeof Se=="number"?Se:Se||we,se=qJ(tt)?tt.toString():void 0;return ke!==void 0&&(se=ke),f.createElement("div",st({},Bi(Q),x?{}:ne(me,pe),{"aria-selected":ie(we),className:Oe,title:se,onMouseMove:function(){B===pe||J||G(pe)},onClick:function(){J||ce(we)},style:Pe}),f.createElement("div",{className:"".concat(be,"-content")},typeof P=="function"?P(me,{index:pe}):tt),f.isValidElement(C)||K,Ke&&f.createElement(HO,{className:"".concat(D,"-option-state"),customizeIcon:C,customizeIconProps:{value:we,disabled:J,isSelected:K}},K?"✓":null))}))},Lqe=f.forwardRef(Dqe);const Fqe=function(e,t){var n=f.useRef({values:new Map,options:new Map}),r=f.useMemo(function(){var o=n.current,a=o.values,s=o.options,l=e.map(function(d){if(d.label===void 0){var h;return X(X({},d),{},{label:(h=a.get(d.value))===null||h===void 0?void 0:h.label})}return d}),c=new Map,u=new Map;return l.forEach(function(d){c.set(d.value,d),u.set(d.value,t.get(d.value)||s.get(d.value))}),n.current.values=c,n.current.options=u,l},[e,t]),i=f.useCallback(function(o){return t.get(o)||n.current.options.get(o)},[t]);return[r,i]};function OR(e,t){return Vve(e).join("").toUpperCase().includes(t)}const jqe=function(e,t,n,r,i){return f.useMemo(function(){if(!n||r===!1)return e;var o=t.options,a=t.label,s=t.value,l=[],c=typeof r=="function",u=n.toUpperCase(),d=c?r:function(p,m){return i?OR(m[i],u):m[o]?OR(m[a!=="children"?a:"label"],u):OR(m[s],u)},h=c?function(p){return NF(p)}:function(p){return p};return e.forEach(function(p){if(p[o]){var m=d(n,h(p));if(m)l.push(p);else{var v=p[o].filter(function(y){return d(n,h(y))});v.length&&l.push(X(X({},p),{},ae({},o,v)))}return}d(n,h(p))&&l.push(p)}),l},[e,r,i,n,t])};var GJ=0,Bqe=pl();function Hqe(){var e;return Bqe?(e=GJ,GJ+=1):e="TEST_OR_SSR",e}function qU(e){var t=f.useState(),n=Le(t,2),r=n[0],i=n[1];return f.useEffect(function(){i("rc_select_".concat(Hqe()))},[]),e||r}var zqe=["children","value"],Uqe=["children"];function Wqe(e){var t=e,n=t.key,r=t.props,i=r.children,o=r.value,a=tn(r,zqe);return X({key:n,value:o!==void 0?o:n,children:i},a)}function Xve(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return zo(e).map(function(n,r){if(!f.isValidElement(n)||!n.type)return null;var i=n,o=i.type.isSelectOptGroup,a=i.key,s=i.props,l=s.children,c=tn(s,Uqe);return t||!o?Wqe(n):X(X({key:"__RC_SELECT_GRP__".concat(a===null?r:a,"__"),label:a},c),{},{options:Xve(l)})}).filter(function(n){return n})}var Vqe=function(t,n,r,i,o){return f.useMemo(function(){var a=t,s=!t;s&&(a=Xve(n));var l=new Map,c=new Map,u=function(p,m,v){v&&typeof v=="string"&&p.set(m[v],m)},d=function h(p){for(var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=0;v<p.length;v+=1){var y=p[v];!y[r.options]||m?(l.set(y[r.value],y),u(c,y,r.label),u(c,y,i),u(c,y,o)):h(y[r.options],!0)}};return d(a),{options:a,valueOptions:l,labelOptions:c}},[t,n,r,i,o])};function YJ(e){var t=f.useRef();t.current=e;var n=f.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var Kqe=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],qqe=["inputValue"];function Gqe(e){return!e||ln(e)!=="object"}var Yqe=f.forwardRef(function(e,t){var n=e.id,r=e.mode,i=e.prefixCls,o=i===void 0?"rc-select":i,a=e.backfill,s=e.fieldNames,l=e.inputValue,c=e.searchValue,u=e.onSearch,d=e.autoClearSearchValue,h=d===void 0?!0:d,p=e.onSelect,m=e.onDeselect,v=e.dropdownMatchSelectWidth,y=v===void 0?!0:v,S=e.filterOption,b=e.filterSort,C=e.optionFilterProp,_=e.optionLabelProp,T=e.options,x=e.optionRender,E=e.children,k=e.defaultActiveFirstOption,M=e.menuItemSelectedIcon,P=e.virtual,D=e.direction,R=e.listHeight,A=R===void 0?200:R,H=e.listItemHeight,F=H===void 0?20:H,z=e.labelRender,W=e.value,q=e.defaultValue,Z=e.labelInValue,N=e.onChange,B=e.maxCount,V=tn(e,Kqe),G=qU(n),ie=DF(r),ce=!!(!T&&E),fe=f.useMemo(function(){return S===void 0&&r==="combobox"?!1:S},[S,r]),ee=f.useMemo(function(){return qve(s,ce)},[JSON.stringify(s),ce]),ne=er("",{value:c!==void 0?c:l,postState:function(ut){return ut||""}}),ue=Le(ne,2),ye=ue[0],me=ue[1],pe=Vqe(T,E,ee,C,_),he=pe.valueOptions,_e=pe.labelOptions,le=pe.options,xe=f.useCallback(function(Qe){var ut=Vve(Qe);return ut.map(function(Nt){var Lt,Zt,Wt,At,$t;if(Gqe(Nt))Lt=Nt;else{var Gt;Wt=Nt.key,Zt=Nt.label,Lt=(Gt=Nt.value)!==null&&Gt!==void 0?Gt:Wt}var Ft=he.get(Lt);if(Ft){var cn;Zt===void 0&&(Zt=Ft==null?void 0:Ft[_||ee.label]),Wt===void 0&&(Wt=(cn=Ft==null?void 0:Ft.key)!==null&&cn!==void 0?cn:Lt),At=Ft==null?void 0:Ft.disabled,$t=Ft==null?void 0:Ft.title}return{label:Zt,value:Lt,key:Wt,disabled:At,title:$t}})},[ee,_,he]),we=er(q,{value:W}),De=Le(we,2),Fe=De[0],Ce=De[1],Te=f.useMemo(function(){var Qe,ut=ie&&Fe===null?[]:Fe,Nt=xe(ut);return r==="combobox"&&UKe((Qe=Nt[0])===null||Qe===void 0?void 0:Qe.value)?[]:Nt},[Fe,xe,r,ie]),ke=Fqe(Te,he),Pe=Le(ke,2),Ne=Pe[0],We=Pe[1],Q=f.useMemo(function(){if(!r&&Ne.length===1){var Qe=Ne[0];if(Qe.value===null&&(Qe.label===null||Qe.label===void 0))return[]}return Ne.map(function(ut){var Nt;return X(X({},ut),{},{label:(Nt=typeof z=="function"?z(ut):ut.label)!==null&&Nt!==void 0?Nt:ut.value})})},[r,Ne,z]),K=f.useMemo(function(){return new Set(Ne.map(function(Qe){return Qe.value}))},[Ne]);f.useEffect(function(){if(r==="combobox"){var Qe,ut=(Qe=Ne[0])===null||Qe===void 0?void 0:Qe.value;me(zKe(ut)?String(ut):"")}},[Ne]);var J=YJ(function(Qe,ut){var Nt=ut??Qe;return ae(ae({},ee.value,Qe),ee.label,Nt)}),be=f.useMemo(function(){if(r!=="tags")return le;var Qe=pt(le),ut=function(Lt){return he.has(Lt)};return pt(Ne).sort(function(Nt,Lt){return Nt.value<Lt.value?-1:1}).forEach(function(Nt){var Lt=Nt.value;ut(Lt)||Qe.push(J(Lt,Nt.label))}),Qe},[J,le,he,Ne,r]),Oe=jqe(be,ee,ye,fe,C),Se=f.useMemo(function(){return r!=="tags"||!ye||Oe.some(function(Qe){return Qe[C||"value"]===ye})||Oe.some(function(Qe){return Qe[ee.value]===ye})?Oe:[J(ye)].concat(pt(Oe))},[J,C,r,Oe,ye,ee]),Ke=function Qe(ut){var Nt=pt(ut).sort(function(Lt,Zt){return b(Lt,Zt,{searchValue:ye})});return Nt.map(function(Lt){return Array.isArray(Lt.options)?X(X({},Lt),{},{options:Lt.options.length>0?Qe(Lt.options):Lt.options}):Lt})},tt=f.useMemo(function(){return b?Ke(Se):Se},[Se,b,ye]),se=f.useMemo(function(){return hqe(tt,{fieldNames:ee,childrenAsData:ce})},[tt,ee,ce]),ze=function(ut){var Nt=xe(ut);if(Ce(Nt),N&&(Nt.length!==Ne.length||Nt.some(function(Wt,At){var $t;return(($t=Ne[At])===null||$t===void 0?void 0:$t.value)!==(Wt==null?void 0:Wt.value)}))){var Lt=Z?Nt:Nt.map(function(Wt){return Wt.value}),Zt=Nt.map(function(Wt){return NF(We(Wt.value))});N(ie?Lt:Lt[0],ie?Zt:Zt[0])}},Ye=f.useState(null),Ue=Le(Ye,2),Je=Ue[0],Ze=Ue[1],rt=f.useState(0),qt=Le(rt,2),St=qt[0],Ot=qt[1],Bt=k!==void 0?k:r!=="combobox",Dt=f.useCallback(function(Qe,ut){var Nt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Lt=Nt.source,Zt=Lt===void 0?"keyboard":Lt;Ot(ut),a&&r==="combobox"&&Qe!==null&&Zt==="keyboard"&&Ze(String(Qe))},[a,r]),an=function(ut,Nt,Lt){var Zt=function(){var Ht,Tt=We(ut);return[Z?{label:Tt==null?void 0:Tt[ee.label],value:ut,key:(Ht=Tt==null?void 0:Tt.key)!==null&&Ht!==void 0?Ht:ut}:ut,NF(Tt)]};if(Nt&&p){var Wt=Zt(),At=Le(Wt,2),$t=At[0],Gt=At[1];p($t,Gt)}else if(!Nt&&m&&Lt!=="clear"){var Ft=Zt(),cn=Le(Ft,2),_t=cn[0],jt=cn[1];m(_t,jt)}},Vt=YJ(function(Qe,ut){var Nt,Lt=ie?ut.selected:!0;Lt?Nt=ie?[].concat(pt(Ne),[Qe]):[Qe]:Nt=Ne.filter(function(Zt){return Zt.value!==Qe}),ze(Nt),an(Qe,Lt),r==="combobox"?Ze(""):(!DF||h)&&(me(""),Ze(""))}),Kt=function(ut,Nt){ze(ut);var Lt=Nt.type,Zt=Nt.values;(Lt==="remove"||Lt==="clear")&&Zt.forEach(function(Wt){an(Wt.value,!1,Lt)})},Qt=function(ut,Nt){if(me(ut),Ze(null),Nt.source==="submit"){var Lt=(ut||"").trim();if(Lt){var Zt=Array.from(new Set([].concat(pt(K),[Lt])));ze(Zt),an(Lt,!0),me("")}return}Nt.source!=="blur"&&(r==="combobox"&&ze(ut),u==null||u(ut))},et=function(ut){var Nt=ut;r!=="tags"&&(Nt=ut.map(function(Zt){var Wt=_e.get(Zt);return Wt==null?void 0:Wt.value}).filter(function(Zt){return Zt!==void 0}));var Lt=Array.from(new Set([].concat(pt(K),pt(Nt))));ze(Lt),Lt.forEach(function(Zt){an(Zt,!0)})},ot=f.useMemo(function(){var Qe=P!==!1&&y!==!1;return X(X({},pe),{},{flattenOptions:se,onActiveValue:Dt,defaultActiveFirstOption:Bt,onSelect:Vt,menuItemSelectedIcon:M,rawValues:K,fieldNames:ee,virtual:Qe,direction:D,listHeight:A,listItemHeight:F,childrenAsData:ce,maxCount:B,optionRender:x})},[B,pe,se,Dt,Bt,Vt,M,K,ee,P,y,D,A,F,ce,x]);return f.createElement(UU.Provider,{value:ot},f.createElement(WU,st({},V,{id:G,prefixCls:o,ref:t,omitDomProps:qqe,mode:r,displayValues:Q,onDisplayValuesChange:Kt,direction:D,searchValue:ye,onSearch:Qt,autoClearSearchValue:h,onSearchSplit:et,dropdownMatchSelectWidth:y,OptionList:Lqe,emptyOptions:!se.length,activeValue:Je,activeDescendantId:"".concat(G,"_list_").concat(St)})))}),GU=Yqe;GU.Option=KU;GU.OptGroup=VU;function zd(e,t,n){return Re({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const Op=(e,t)=>t||e,Xqe=()=>{const[,e]=ta(),[t]=ks("Empty"),r=new xr(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return f.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},f.createElement("title",null,(t==null?void 0:t.description)||"Empty"),f.createElement("g",{fill:"none",fillRule:"evenodd"},f.createElement("g",{transform:"translate(24 31.67)"},f.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),f.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),f.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),f.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),f.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),f.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),f.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},f.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),f.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},Qqe=()=>{const[,e]=ta(),[t]=ks("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:o}=e,{borderColor:a,shadowColor:s,contentColor:l}=f.useMemo(()=>({borderColor:new xr(n).onBackground(o).toHexString(),shadowColor:new xr(r).onBackground(o).toHexString(),contentColor:new xr(i).onBackground(o).toHexString()}),[n,r,i,o]);return f.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},f.createElement("title",null,(t==null?void 0:t.description)||"Empty"),f.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},f.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),f.createElement("g",{fillRule:"nonzero",stroke:a},f.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),f.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:l}))))},Zqe=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:i,fontSize:o,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:o,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:i,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},Jqe=Tr("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,i=dr(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[Zqe(i)]});var eGe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Qve=f.createElement(Xqe,null),Zve=f.createElement(Qqe,null),Hh=e=>{var t,n,r,i,o,a,s,l;const{className:c,rootClassName:u,prefixCls:d,image:h=Qve,description:p,children:m,imageStyle:v,style:y,classNames:S,styles:b}=e,C=eGe(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:_,direction:T,empty:x}=f.useContext(hn),E=_("empty",d),[k,M,P]=Jqe(E),[D]=ks("Empty"),R=typeof p<"u"?p:D==null?void 0:D.description,A=typeof R=="string"?R:"empty";let H=null;return typeof h=="string"?H=f.createElement("img",{alt:A,src:h}):H=h,k(f.createElement("div",Object.assign({className:Re(M,P,E,x==null?void 0:x.className,{[`${E}-normal`]:h===Zve,[`${E}-rtl`]:T==="rtl"},c,u,(t=x==null?void 0:x.classNames)===null||t===void 0?void 0:t.root,S==null?void 0:S.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},(n=x==null?void 0:x.styles)===null||n===void 0?void 0:n.root),x==null?void 0:x.style),b==null?void 0:b.root),y)},C),f.createElement("div",{className:Re(`${E}-image`,(r=x==null?void 0:x.classNames)===null||r===void 0?void 0:r.image,S==null?void 0:S.image),style:Object.assign(Object.assign(Object.assign({},v),(i=x==null?void 0:x.styles)===null||i===void 0?void 0:i.image),b==null?void 0:b.image)},H),R&&f.createElement("div",{className:Re(`${E}-description`,(o=x==null?void 0:x.classNames)===null||o===void 0?void 0:o.description,S==null?void 0:S.description),style:Object.assign(Object.assign({},(a=x==null?void 0:x.styles)===null||a===void 0?void 0:a.description),b==null?void 0:b.description)},R),m&&f.createElement("div",{className:Re(`${E}-footer`,(s=x==null?void 0:x.classNames)===null||s===void 0?void 0:s.footer,S==null?void 0:S.footer),style:Object.assign(Object.assign({},(l=x==null?void 0:x.styles)===null||l===void 0?void 0:l.footer),b==null?void 0:b.footer)},m)))};Hh.PRESENTED_IMAGE_DEFAULT=Qve;Hh.PRESENTED_IMAGE_SIMPLE=Zve;const YS=e=>{const{componentName:t}=e,{getPrefixCls:n}=f.useContext(hn),r=n("empty");switch(t){case"Table":case"List":return ge.createElement(Hh,{image:Hh.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ge.createElement(Hh,{image:Hh.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return ge.createElement(Hh,null)}},Pp=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,i;const{variant:o,[e]:a}=f.useContext(hn),s=f.useContext(mve),l=a==null?void 0:a.variant;let c;typeof t<"u"?c=t:n===!1?c="borderless":c=(i=(r=s??l)!==null&&r!==void 0?r:o)!==null&&i!==void 0?i:"outlined";const u=Eje.includes(c);return[c,u]},tGe=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function YU(e,t){return e||tGe(t)}const XJ=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:i}=e;return{position:"relative",display:"block",minHeight:t,padding:i,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},nGe=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,i=`&${t}-slide-up-enter${t}-slide-up-enter-active`,o=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`,l=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},$r(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
|
||
${i}${s}bottomLeft,
|
||
${o}${s}bottomLeft
|
||
`]:{animationName:kO},[`
|
||
${i}${s}topLeft,
|
||
${o}${s}topLeft,
|
||
${i}${s}topRight,
|
||
${o}${s}topRight
|
||
`]:{animationName:PO},[`${a}${s}bottomLeft`]:{animationName:OO},[`
|
||
${a}${s}topLeft,
|
||
${a}${s}topRight
|
||
`]:{animationName:MO},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},XJ(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Gl),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},XJ(e)),{color:e.colorTextDisabled})}),[`${l}:has(+ ${l})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},Kf(e,"slide-up"),Kf(e,"slide-down"),Gb(e,"move-up"),Gb(e,"move-down")]},Jve=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:i}=e,o=e.max(e.calc(n).sub(r).equal(),0),a=e.max(e.calc(o).sub(i).equal(),0);return{basePadding:o,containerPadding:a,itemHeight:je(t),itemLineHeight:je(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},rGe=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},e0e=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:i,paddingXS:o,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:s,colorIcon:l,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:u}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:r,cursor:"default",transition:`font-size ${i}, line-height ${i}, height ${i}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:o,paddingInlineEnd:e.calc(o).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(o).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},Kv()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},iGe=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,i=`${n}-selection-overflow`,o=e.multipleSelectItemHeight,a=rGe(e),s=t?`${n}-${t}`:"",l=Jve(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},e0e(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:l.basePadding,paddingBlock:l.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${je(r)} 0`,lineHeight:je(o),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:je(l.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:je(o),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal()},[`${i}-item + ${i}-item,
|
||
${n}-prefix + ${n}-selection-wrap
|
||
`]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${i}-item-suffix`]:{minHeight:l.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n &-input,\n &-mirror\n ":{height:o,fontFamily:e.fontFamily,lineHeight:je(o),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function PR(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",i={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`
|
||
&${n}-show-arrow ${n}-selector,
|
||
&${n}-allow-clear ${n}-selector
|
||
`]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[iGe(e,t),i]}const oGe=e=>{const{componentCls:t}=e,n=dr(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=dr(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[PR(e),PR(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},PR(r,"lg")]};function MR(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:i}=e,o=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),a=t?`${n}-${t}`:"";return{[`${n}-single${a}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},$r(e,!0)),{display:"flex",borderRadius:i,flex:"1 1 auto",[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
|
||
${n}-selection-item,
|
||
${n}-selection-placeholder
|
||
`]:{display:"block",padding:0,lineHeight:je(o),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
||
&${n}-show-arrow ${n}-selection-item,
|
||
&${n}-show-arrow ${n}-selection-search,
|
||
&${n}-show-arrow ${n}-selection-placeholder
|
||
`]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${je(r)}`,[`${n}-selection-search-input`]:{height:o},"&:after":{lineHeight:je(o)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${je(r)}`,"&:after":{display:"none"}}}}}}}function aGe(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[MR(e),MR(dr(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${je(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
|
||
&${t}-show-arrow ${t}-selection-item,
|
||
&${t}-show-arrow ${t}-selection-placeholder
|
||
`]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},MR(dr(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const sGe=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:i,controlHeightSM:o,controlHeightLG:a,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:u,fontWeightStrong:d,controlItemBgActive:h,controlItemBgHover:p,colorBgContainer:m,colorFillSecondary:v,colorBgContainerDisabled:y,colorTextDisabled:S,colorPrimaryHover:b,colorPrimary:C,controlOutline:_}=e,T=s*2,x=r*2,E=Math.min(i-T,i-x),k=Math.min(o-T,o-x),M=Math.min(a-T,a-x);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:h,optionActiveBg:p,optionPadding:`${(i-t*n)/2}px ${l}px`,optionFontSize:t,optionLineHeight:n,optionHeight:i,selectorBg:m,clearBg:m,singleItemHeightLG:a,multipleItemBg:v,multipleItemBorderColor:"transparent",multipleItemHeight:E,multipleItemHeightSM:k,multipleItemHeightLG:M,multipleSelectorBgDisabled:y,multipleItemColorDisabled:S,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:b,activeBorderColor:C,activeOutlineColor:_,selectAffixPadding:s}},t0e=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:i}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${je(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${je(i)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},QJ=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},t0e(e,t))}),lGe=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},t0e(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),QJ(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),QJ(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${je(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),n0e=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${je(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},ZJ=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},n0e(e,t))}),cGe=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},n0e(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),ZJ(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),ZJ(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${je(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),uGe=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${je(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${je(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),dGe=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},lGe(e)),cGe(e)),uGe(e))}),fGe=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},hGe=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},pGe=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:i}=e;return{[n]:Object.assign(Object.assign({},$r(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},fGe(e)),hGe(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Gl),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Gl),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},Kv()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[i]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},mGe=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},pGe(e),aGe(e),oGe(e),nGe(e),{[`${t}-rtl`]:{direction:"rtl"}},Gv(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},XU=Tr("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=dr(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[mGe(r),dGe(r)]},sGe,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var gGe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},vGe=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:gGe}))},ep=f.forwardRef(vGe),yGe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},bGe=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:yGe}))},_E=f.forwardRef(bGe),SGe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},CGe=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:SGe}))},UO=f.forwardRef(CGe);function WO(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:i,loading:o,multiple:a,hasFeedback:s,prefixCls:l,showSuffixIcon:c,feedbackIcon:u,showArrow:d,componentName:h}=e;const p=n??f.createElement(eh,null),m=b=>t===null&&!s&&!d?null:f.createElement(f.Fragment,null,c!==!1&&b,s&&u);let v=null;if(t!==void 0)v=m(t);else if(o)v=m(f.createElement(jd,{spin:!0}));else{const b=`${l}-suffix`;v=C=>{let{open:_,showSearch:T}=C;return m(_&&T?f.createElement(UO,{className:b}):f.createElement(_E,{className:b}))}}let y=null;r!==void 0?y=r:a?y=f.createElement(ep,null):y=null;let S=null;return i!==void 0?S=i:S=f.createElement(th,null),{clearIcon:p,suffixIcon:v,itemIcon:y,removeIcon:S}}function QU(e,t){return t!==void 0?t:e!==null}var xGe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const r0e="SECRET_COMBOBOX_MODE_DO_NOT_USE",wGe=(e,t)=>{var n;const{prefixCls:r,bordered:i,className:o,rootClassName:a,getPopupContainer:s,popupClassName:l,dropdownClassName:c,listHeight:u=256,placement:d,listItemHeight:h,size:p,disabled:m,notFoundContent:v,status:y,builtinPlacements:S,dropdownMatchSelectWidth:b,popupMatchSelectWidth:C,direction:_,style:T,allowClear:x,variant:E,dropdownStyle:k,transitionName:M,tagRender:P,maxCount:D,prefix:R}=e,A=xGe(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:H,getPrefixCls:F,renderEmpty:z,direction:W,virtual:q,popupMatchSelectWidth:Z,popupOverflow:N,select:B}=f.useContext(hn),[,V]=ta(),G=h??(V==null?void 0:V.controlHeight),ie=F("select",r),ce=F(),fe=_??W,{compactSize:ee,compactItemClassnames:ne}=Qd(ie,fe),[ue,ye]=Pp("select",E,i),me=_i(ie),[pe,he,_e]=XU(ie,me),le=f.useMemo(()=>{const{mode:Je}=e;if(Je!=="combobox")return Je===r0e?"combobox":Je},[e.mode]),xe=le==="multiple"||le==="tags",we=QU(e.suffixIcon,e.showArrow),De=(n=C??b)!==null&&n!==void 0?n:Z,{status:Fe,hasFeedback:Ce,isFormItemInput:Te,feedbackIcon:ke}=f.useContext(ha),Pe=Op(Fe,y);let Ne;v!==void 0?Ne=v:le==="combobox"?Ne=null:Ne=(z==null?void 0:z("Select"))||f.createElement(YS,{componentName:"Select"});const{suffixIcon:We,itemIcon:Q,removeIcon:K,clearIcon:J}=WO(Object.assign(Object.assign({},A),{multiple:xe,hasFeedback:Ce,feedbackIcon:ke,showSuffixIcon:we,prefixCls:ie,componentName:"Select"})),be=x===!0?{clearIcon:J}:x,Oe=Pr(A,["suffixIcon","itemIcon"]),Se=Re(l||c,{[`${ie}-dropdown-${fe}`]:fe==="rtl"},a,_e,me,he),Ke=$o(Je=>{var Ze;return(Ze=p??ee)!==null&&Ze!==void 0?Ze:Je}),tt=f.useContext(Jo),se=m??tt,ze=Re({[`${ie}-lg`]:Ke==="large",[`${ie}-sm`]:Ke==="small",[`${ie}-rtl`]:fe==="rtl",[`${ie}-${ue}`]:ye,[`${ie}-in-form-item`]:Te},zd(ie,Pe,Ce),ne,B==null?void 0:B.className,o,a,_e,me,he),Ye=f.useMemo(()=>d!==void 0?d:fe==="rtl"?"bottomRight":"bottomLeft",[d,fe]),[Ue]=Du("SelectLike",k==null?void 0:k.zIndex);return pe(f.createElement(GU,Object.assign({ref:t,virtual:q,showSearch:B==null?void 0:B.showSearch},Oe,{style:Object.assign(Object.assign({},B==null?void 0:B.style),T),dropdownMatchSelectWidth:De,transitionName:os(ce,"slide-up",M),builtinPlacements:YU(S,N),listHeight:u,listItemHeight:G,mode:le,prefixCls:ie,placement:Ye,direction:fe,prefix:R,suffixIcon:We,menuItemSelectedIcon:Q,removeIcon:K,allowClear:be,notFoundContent:Ne,className:ze,getPopupContainer:s||H,dropdownClassName:Se,disabled:se,dropdownStyle:Object.assign(Object.assign({},k),{zIndex:Ue}),maxCount:xe?D:void 0,tagRender:xe?P:void 0})))},ys=f.forwardRef(wGe),_Ge=vg(ys,"dropdownAlign");ys.SECRET_COMBOBOX_MODE_DO_NOT_USE=r0e;ys.Option=KU;ys.OptGroup=VU;ys._InternalPanelDoNotUseOrYouWillBeFired=_Ge;const ig=["xxl","xl","lg","md","sm","xs"],EGe=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),TGe=e=>{const t=e,n=[].concat(ig).reverse();return n.forEach((r,i)=>{const o=r.toUpperCase(),a=`screen${o}Min`,s=`screen${o}`;if(!(t[a]<=t[s]))throw new Error(`${a}<=${s} fails : !(${t[a]}<=${t[s]})`);if(i<n.length-1){const l=`screen${o}Max`;if(!(t[s]<=t[l]))throw new Error(`${s}<=${l} fails : !(${t[s]}<=${t[l]})`);const u=`screen${n[i+1].toUpperCase()}Min`;if(!(t[l]<=t[u]))throw new Error(`${l}<=${u} fails : !(${t[l]}<=${t[u]})`)}}),e};function i0e(){const[,e]=ta(),t=EGe(TGe(e));return ge.useMemo(()=>{const n=new Map;let r=-1,i={};return{matchHandlers:{},dispatch(o){return i=o,n.forEach(a=>a(i)),n.size>=1},subscribe(o){return n.size||this.register(),r+=1,n.set(r,o),o(i),r},unsubscribe(o){n.delete(o),n.size||this.unregister()},unregister(){Object.keys(t).forEach(o=>{const a=t[o],s=this.matchHandlers[a];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),n.clear()},register(){Object.keys(t).forEach(o=>{const a=t[o],s=c=>{let{matches:u}=c;this.dispatch(Object.assign(Object.assign({},i),{[o]:u}))},l=window.matchMedia(a);l.addListener(s),this.matchHandlers[a]={mql:l,listener:s},s(l)})},responsiveMap:t}},[e])}function ZU(){const[,e]=f.useReducer(t=>t+1,0);return e}function VO(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=f.useRef({}),n=ZU(),r=i0e();return Er(()=>{const i=r.subscribe(o=>{t.current=o,e&&n()});return()=>r.unsubscribe(i)},[]),t.current}const LF=f.createContext({}),kGe=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:i,avatarColor:o,containerSize:a,containerSizeLG:s,containerSizeSM:l,textFontSize:c,textFontSizeLG:u,textFontSizeSM:d,borderRadius:h,borderRadiusLG:p,borderRadiusSM:m,lineWidth:v,lineType:y}=e,S=(b,C,_)=>({width:b,height:b,borderRadius:"50%",[`&${n}-square`]:{borderRadius:_},[`&${n}-icon`]:{fontSize:C,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},$r(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:o,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:i,border:`${je(v)} ${y} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),S(a,c,h)),{"&-lg":Object.assign({},S(s,u,p)),"&-sm":Object.assign({},S(l,d,m)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},OGe=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:i}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:i}}}},PGe=e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:i,fontSizeLG:o,fontSizeXL:a,fontSizeHeading3:s,marginXS:l,marginXXS:c,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((o+a)/2),textFontSizeLG:s,textFontSizeSM:i,groupSpace:c,groupOverlapping:-l,groupBorderColor:u}},o0e=Tr("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=dr(e,{avatarBg:n,avatarColor:t});return[kGe(r),OGe(r)]},PGe);var MGe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const IGe=(e,t)=>{const[n,r]=f.useState(1),[i,o]=f.useState(!1),[a,s]=f.useState(!0),l=f.useRef(null),c=f.useRef(null),u=ga(t,l),{getPrefixCls:d,avatar:h}=f.useContext(hn),p=f.useContext(LF),m=()=>{if(!c.current||!l.current)return;const ne=c.current.offsetWidth,ue=l.current.offsetWidth;if(ne!==0&&ue!==0){const{gap:ye=4}=e;ye*2<ue&&r(ue-ye*2<ne?(ue-ye*2)/ne:1)}};f.useEffect(()=>{o(!0)},[]),f.useEffect(()=>{s(!0),r(1)},[e.src]),f.useEffect(m,[e.gap]);const v=()=>{const{onError:ne}=e;(ne==null?void 0:ne())!==!1&&s(!1)},{prefixCls:y,shape:S,size:b,src:C,srcSet:_,icon:T,className:x,rootClassName:E,alt:k,draggable:M,children:P,crossOrigin:D}=e,R=MGe(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),A=$o(ne=>{var ue,ye;return(ye=(ue=b??(p==null?void 0:p.size))!==null&&ue!==void 0?ue:ne)!==null&&ye!==void 0?ye:"default"}),H=Object.keys(typeof A=="object"?A||{}:{}).some(ne=>["xs","sm","md","lg","xl","xxl"].includes(ne)),F=VO(H),z=f.useMemo(()=>{if(typeof A!="object")return{};const ne=ig.find(ye=>F[ye]),ue=A[ne];return ue?{width:ue,height:ue,fontSize:ue&&(T||P)?ue/2:18}:{}},[F,A]),W=d("avatar",y),q=_i(W),[Z,N,B]=o0e(W,q),V=Re({[`${W}-lg`]:A==="large",[`${W}-sm`]:A==="small"}),G=f.isValidElement(C),ie=S||(p==null?void 0:p.shape)||"circle",ce=Re(W,V,h==null?void 0:h.className,`${W}-${ie}`,{[`${W}-image`]:G||C&&a,[`${W}-icon`]:!!T},B,q,x,E,N),fe=typeof A=="number"?{width:A,height:A,fontSize:T?A/2:18}:{};let ee;if(typeof C=="string"&&a)ee=f.createElement("img",{src:C,draggable:M,srcSet:_,onError:v,alt:k,crossOrigin:D});else if(G)ee=C;else if(T)ee=T;else if(i||n!==1){const ne=`scale(${n})`,ue={msTransform:ne,WebkitTransform:ne,transform:ne};ee=f.createElement(Wa,{onResize:m},f.createElement("span",{className:`${W}-string`,ref:c,style:Object.assign({},ue)},P))}else ee=f.createElement("span",{className:`${W}-string`,style:{opacity:0},ref:c},P);return delete R.onError,delete R.gap,Z(f.createElement("span",Object.assign({},R,{style:Object.assign(Object.assign(Object.assign(Object.assign({},fe),z),h==null?void 0:h.style),R.style),className:ce,ref:u}),ee))},a0e=f.forwardRef(IGe),Xb=e=>e?typeof e=="function"?e():e:null;function JU(e){var t=e.children,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle,o=e.bodyClassName,a=e.className,s=e.style;return f.createElement("div",{className:Re("".concat(n,"-content"),a),style:s},f.createElement("div",{className:Re("".concat(n,"-inner"),o),id:r,role:"tooltip",style:i},typeof t=="function"?t():t))}var Z0={shiftX:64,adjustY:1},J0={adjustX:1,shiftY:!0},Jc=[0,0],$Ge={left:{points:["cr","cl"],overflow:J0,offset:[-4,0],targetOffset:Jc},right:{points:["cl","cr"],overflow:J0,offset:[4,0],targetOffset:Jc},top:{points:["bc","tc"],overflow:Z0,offset:[0,-4],targetOffset:Jc},bottom:{points:["tc","bc"],overflow:Z0,offset:[0,4],targetOffset:Jc},topLeft:{points:["bl","tl"],overflow:Z0,offset:[0,-4],targetOffset:Jc},leftTop:{points:["tr","tl"],overflow:J0,offset:[-4,0],targetOffset:Jc},topRight:{points:["br","tr"],overflow:Z0,offset:[0,-4],targetOffset:Jc},rightTop:{points:["tl","tr"],overflow:J0,offset:[4,0],targetOffset:Jc},bottomRight:{points:["tr","br"],overflow:Z0,offset:[0,4],targetOffset:Jc},rightBottom:{points:["bl","br"],overflow:J0,offset:[4,0],targetOffset:Jc},bottomLeft:{points:["tl","bl"],overflow:Z0,offset:[0,4],targetOffset:Jc},leftBottom:{points:["br","bl"],overflow:J0,offset:[-4,0],targetOffset:Jc}},RGe=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],AGe=function(t,n){var r=t.overlayClassName,i=t.trigger,o=i===void 0?["hover"]:i,a=t.mouseEnterDelay,s=a===void 0?0:a,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,d=t.prefixCls,h=d===void 0?"rc-tooltip":d,p=t.children,m=t.onVisibleChange,v=t.afterVisibleChange,y=t.transitionName,S=t.animation,b=t.motion,C=t.placement,_=C===void 0?"right":C,T=t.align,x=T===void 0?{}:T,E=t.destroyTooltipOnHide,k=E===void 0?!1:E,M=t.defaultVisible,P=t.getTooltipContainer,D=t.overlayInnerStyle;t.arrowContent;var R=t.overlay,A=t.id,H=t.showArrow,F=H===void 0?!0:H,z=t.classNames,W=t.styles,q=tn(t,RGe),Z=f.useRef(null);f.useImperativeHandle(n,function(){return Z.current});var N=X({},q);"visible"in t&&(N.popupVisible=t.visible);var B=function(){return f.createElement(JU,{key:"content",prefixCls:h,id:A,bodyClassName:z==null?void 0:z.body,overlayInnerStyle:X(X({},D),W==null?void 0:W.body)},R)};return f.createElement(wE,st({popupClassName:Re(r,z==null?void 0:z.root),prefixCls:h,popup:B,action:o,builtinPlacements:$Ge,popupPlacement:_,ref:Z,popupAlign:x,getPopupContainer:P,onPopupVisibleChange:m,afterPopupVisibleChange:v,popupTransitionName:y,popupAnimation:S,popupMotion:b,defaultPopupVisible:M,autoDestroy:k,mouseLeaveDelay:c,popupStyle:X(X({},u),W==null?void 0:W.root),mouseEnterDelay:s,arrow:F},N),p)};const NGe=f.forwardRef(AGe);function KO(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,o=0,a=i,s=r*1/Math.sqrt(2),l=i-r*(1-1/Math.sqrt(2)),c=i-n*(1/Math.sqrt(2)),u=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),d=2*i-c,h=u,p=2*i-s,m=l,v=2*i-o,y=a,S=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),b=r*(Math.sqrt(2)-1),C=`polygon(${b}px 100%, 50% ${b}px, ${2*i-b}px 100%, ${b}px 100%)`,_=`path('M ${o} ${a} A ${r} ${r} 0 0 0 ${s} ${l} L ${c} ${u} A ${n} ${n} 0 0 1 ${d} ${h} L ${p} ${m} A ${r} ${r} 0 0 0 ${v} ${y} Z')`;return{arrowShadowWidth:S,arrowPath:_,arrowPolygon:C}}const s0e=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:o,arrowShadowWidth:a,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${je(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},l0e=8;function qO(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?l0e:r}}function UT(e,t){return e?t:{}}function eW(e,t,n){const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:o,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},s0e(e,t,i)),{"&:before":{background:t}})]},UT(!!l.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${je(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),UT(!!l.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${je(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),UT(!!l.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:o},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:o}})),UT(!!l.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:o},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:o}}))}}function DGe(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const i=r&&typeof r=="object"?r:{},o={};switch(e){case"top":case"bottom":o.shiftX=t.arrowOffsetHorizontal*2+n,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=t.arrowOffsetVertical*2+n,o.shiftX=!0,o.adjustX=!0;break}const a=Object.assign(Object.assign({},o),i);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const JJ={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},LGe={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},FGe=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function c0e(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:o,visibleFirst:a}=e,s=t/2,l={};return Object.keys(JJ).forEach(c=>{const u=r&&LGe[c]||JJ[c],d=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[c]=d,FGe.has(c)&&(d.autoArrow=!1),c){case"top":case"topLeft":case"topRight":d.offset[1]=-s-i;break;case"bottom":case"bottomLeft":case"bottomRight":d.offset[1]=s+i;break;case"left":case"leftTop":case"leftBottom":d.offset[0]=-s-i;break;case"right":case"rightTop":case"rightBottom":d.offset[0]=s+i;break}const h=qO({contentRadius:o,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":d.offset[0]=-h.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":d.offset[0]=h.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":d.offset[1]=-h.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":d.offset[1]=h.arrowOffsetHorizontal*2-s;break}d.overflow=DGe(c,h,t,n),a&&(d.htmlRegion="visibleFirst")}),l}const jGe=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:o,tooltipBorderRadius:a,zIndexPopup:s,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:h,sizePopupArrow:p}=e,m=t(a).add(p).add(h).equal(),v=t(a).mul(2).add(p).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},$r(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${n}-inner`]:{minWidth:v,minHeight:l,padding:`${je(e.calc(u).div(2).equal())} ${je(d)}`,color:i,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:a,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:m},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(a,l0e)}},[`${n}-content`]:{position:"relative"}}),SO(e,(y,S)=>{let{darkColor:b}=S;return{[`&${n}-${y}`]:{[`${n}-inner`]:{backgroundColor:b},[`${n}-arrow`]:{"--antd-arrow-background-color":b}}}})),{"&-rtl":{direction:"rtl"}})},eW(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},BGe=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},qO({contentRadius:e.borderRadius,limitVerticalRadius:!0})),KO(dr(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),u0e=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Tr("Tooltip",r=>{const{borderRadius:i,colorTextLightSolid:o,colorBgSpotlight:a}=r,s=dr(r,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:i,tooltipBg:a});return[jGe(s),KS(r,"zoom-big-fast")]},BGe,{resetStyle:!1,injectStyle:t})(e)},HGe=Cv.map(e=>`${e}-inverse`),zGe=["success","processing","error","default","warning"];function GO(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(pt(HGe),pt(Cv)).includes(e):Cv.includes(e)}function UGe(e){return zGe.includes(e)}function d0e(e,t){const n=GO(t),r=Re({[`${e}-${t}`]:t&&n}),i={},o={};return t&&!n&&(i.background=t,o["--antd-arrow-background-color"]=t),{className:r,overlayStyle:i,arrowStyle:o}}const WGe=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:o,overlayInnerStyle:a}=e,{getPrefixCls:s}=f.useContext(hn),l=s("tooltip",t),[c,u,d]=u0e(l),h=d0e(l,o),p=h.arrowStyle,m=Object.assign(Object.assign({},a),h.overlayStyle),v=Re(u,d,l,`${l}-pure`,`${l}-placement-${r}`,n,h.className);return c(f.createElement("div",{className:v,style:p},f.createElement("div",{className:`${l}-arrow`}),f.createElement(JU,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:m}),i)))};var VGe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const KGe=f.forwardRef((e,t)=>{var n,r,i,o,a,s;const{prefixCls:l,openClassName:c,getTooltipContainer:u,color:d,overlayInnerStyle:h,children:p,afterOpenChange:m,afterVisibleChange:v,destroyTooltipOnHide:y,arrow:S=!0,title:b,overlay:C,builtinPlacements:_,arrowPointAtCenter:T=!1,autoAdjustOverflow:x=!0}=e,E=!!S,[,k]=ta(),{getPopupContainer:M,getPrefixCls:P,direction:D,tooltip:R}=f.useContext(hn),A=Jf(),H=f.useRef(null),F=()=>{var Oe;(Oe=H.current)===null||Oe===void 0||Oe.forceAlign()};f.useImperativeHandle(t,()=>{var Oe;return{forceAlign:F,forcePopupAlign:()=>{A.deprecated(!1,"forcePopupAlign","forceAlign"),F()},nativeElement:(Oe=H.current)===null||Oe===void 0?void 0:Oe.nativeElement}});const[z,W]=er(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),q=!b&&!C&&b!==0,Z=Oe=>{var Se,Ke;W(q?!1:Oe),q||((Se=e.onOpenChange)===null||Se===void 0||Se.call(e,Oe),(Ke=e.onVisibleChange)===null||Ke===void 0||Ke.call(e,Oe))},N=f.useMemo(()=>{var Oe,Se;let Ke=T;return typeof S=="object"&&(Ke=(Se=(Oe=S.pointAtCenter)!==null&&Oe!==void 0?Oe:S.arrowPointAtCenter)!==null&&Se!==void 0?Se:T),_||c0e({arrowPointAtCenter:Ke,autoAdjustOverflow:x,arrowWidth:E?k.sizePopupArrow:0,borderRadius:k.borderRadius,offset:k.marginXXS,visibleFirst:!0})},[T,S,_,k]),B=f.useMemo(()=>b===0?b:C||b||"",[C,b]),V=f.createElement(Hd,{space:!0},typeof B=="function"?B():B),{getPopupContainer:G,placement:ie="top",mouseEnterDelay:ce=.1,mouseLeaveDelay:fe=.1,overlayStyle:ee,rootClassName:ne,overlayClassName:ue,styles:ye,classNames:me}=e,pe=VGe(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),he=P("tooltip",l),_e=P(),le=e["data-popover-inject"];let xe=z;!("open"in e)&&!("visible"in e)&&q&&(xe=!1);const we=f.isValidElement(p)&&!T1e(p)?p:f.createElement("span",null,p),De=we.props,Fe=!De.className||typeof De.className=="string"?Re(De.className,c||`${he}-open`):De.className,[Ce,Te,ke]=u0e(he,!le),Pe=d0e(he,d),Ne=Pe.arrowStyle,We=Re(ue,{[`${he}-rtl`]:D==="rtl"},Pe.className,ne,Te,ke,R==null?void 0:R.className,(i=R==null?void 0:R.classNames)===null||i===void 0?void 0:i.root,me==null?void 0:me.root),Q=Re((o=R==null?void 0:R.classNames)===null||o===void 0?void 0:o.body,me==null?void 0:me.body),[K,J]=Du("Tooltip",pe.zIndex),be=f.createElement(NGe,Object.assign({},pe,{zIndex:K,showArrow:E,placement:ie,mouseEnterDelay:ce,mouseLeaveDelay:fe,prefixCls:he,classNames:{root:We,body:Q},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ne),(a=R==null?void 0:R.styles)===null||a===void 0?void 0:a.root),R==null?void 0:R.style),ee),ye==null?void 0:ye.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},(s=R==null?void 0:R.styles)===null||s===void 0?void 0:s.body),h),ye==null?void 0:ye.body),Pe.overlayStyle)},getTooltipContainer:G||u||M,ref:H,builtinPlacements:N,overlay:V,visible:xe,onVisibleChange:Z,afterVisibleChange:m??v,arrowContent:f.createElement("span",{className:`${he}-arrow-content`}),motion:{motionName:os(_e,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!y}),xe?Io(we,{className:Fe}):we);return Ce(f.createElement(pE.Provider,{value:J},be))}),ea=KGe;ea._InternalPanelDoNotUseOrYouWillBeFired=WGe;const qGe=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:i,innerPadding:o,boxShadowSecondary:a,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:d,popoverBg:h,titleBorderBottom:p,innerContentPadding:m,titlePadding:v}=e;return[{[t]:Object.assign(Object.assign({},$r(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":d,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:h,backgroundClip:"padding-box",borderRadius:l,boxShadow:a,padding:o},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:i,borderBottom:p,padding:v},[`${t}-inner-content`]:{color:n,padding:m}})},eW(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},GGe=e=>{const{componentCls:t}=e;return{[t]:Cv.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},YGe=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:i,wireframe:o,zIndexPopupBase:a,borderRadiusLG:s,marginXS:l,lineType:c,colorSplit:u,paddingSM:d}=e,h=n-r,p=h/2,m=h/2-t,v=i;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},KO(e)),qO({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:o?0:12,titleMarginBottom:o?0:l,titlePadding:o?`${p}px ${v}px ${m}px`:0,titleBorderBottom:o?`${t}px ${c} ${u}`:"none",innerContentPadding:o?`${d}px ${v}px`:0})},f0e=Tr("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=dr(e,{popoverBg:t,popoverColor:n});return[qGe(r),GGe(r),KS(r,"zoom-big")]},YGe,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var XGe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const h0e=e=>{let{title:t,content:n,prefixCls:r}=e;return!t&&!n?null:f.createElement(f.Fragment,null,t&&f.createElement("div",{className:`${r}-title`},t),n&&f.createElement("div",{className:`${r}-inner-content`},n))},QGe=e=>{const{hashId:t,prefixCls:n,className:r,style:i,placement:o="top",title:a,content:s,children:l}=e,c=Xb(a),u=Xb(s),d=Re(t,n,`${n}-pure`,`${n}-placement-${o}`,r);return f.createElement("div",{className:d,style:i},f.createElement("div",{className:`${n}-arrow`}),f.createElement(JU,Object.assign({},e,{className:t,prefixCls:n}),l||f.createElement(h0e,{prefixCls:n,title:c,content:u})))},p0e=e=>{const{prefixCls:t,className:n}=e,r=XGe(e,["prefixCls","className"]),{getPrefixCls:i}=f.useContext(hn),o=i("popover",t),[a,s,l]=f0e(o);return a(f.createElement(QGe,Object.assign({},r,{prefixCls:o,hashId:s,className:Re(n,l)})))};var ZGe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const JGe=f.forwardRef((e,t)=>{var n,r,i,o,a,s;const{prefixCls:l,title:c,content:u,overlayClassName:d,placement:h="top",trigger:p="hover",children:m,mouseEnterDelay:v=.1,mouseLeaveDelay:y=.1,onOpenChange:S,overlayStyle:b={},styles:C,classNames:_}=e,T=ZGe(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{popover:x,getPrefixCls:E}=f.useContext(hn),k=E("popover",l),[M,P,D]=f0e(k),R=E(),A=Re(d,P,D,(n=x==null?void 0:x.classNames)===null||n===void 0?void 0:n.root,_==null?void 0:_.root),H=Re((r=x==null?void 0:x.classNames)===null||r===void 0?void 0:r.body,_==null?void 0:_.body),[F,z]=er(!1,{value:(i=e.open)!==null&&i!==void 0?i:e.visible,defaultValue:(o=e.defaultOpen)!==null&&o!==void 0?o:e.defaultVisible}),W=(V,G)=>{z(V,!0),S==null||S(V,G)},q=V=>{V.keyCode===Pt.ESC&&W(!1,V)},Z=V=>{W(V)},N=Xb(c),B=Xb(u);return M(f.createElement(ea,Object.assign({placement:h,trigger:p,mouseEnterDelay:v,mouseLeaveDelay:y},T,{prefixCls:k,classNames:{root:A,body:H},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},(a=x==null?void 0:x.styles)===null||a===void 0?void 0:a.root),x==null?void 0:x.style),b),C==null?void 0:C.root),body:Object.assign(Object.assign({},(s=x==null?void 0:x.styles)===null||s===void 0?void 0:s.body),C==null?void 0:C.body)},ref:t,open:F,onOpenChange:Z,overlay:N||B?f.createElement(h0e,{prefixCls:k,title:N,content:B}):null,transitionName:os(R,"zoom-big",T.transitionName),"data-popover-inject":!0}),Io(m,{onKeyDown:V=>{var G,ie;f.isValidElement(m)&&((ie=m==null?void 0:(G=m.props).onKeyDown)===null||ie===void 0||ie.call(G,V)),q(V)}})))}),Ou=JGe;Ou._InternalPanelDoNotUseOrYouWillBeFired=p0e;const eee=e=>{const{size:t,shape:n}=f.useContext(LF),r=f.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return f.createElement(LF.Provider,{value:r},e.children)},eYe=e=>{var t,n,r,i;const{getPrefixCls:o,direction:a}=f.useContext(hn),{prefixCls:s,className:l,rootClassName:c,style:u,maxCount:d,maxStyle:h,size:p,shape:m,maxPopoverPlacement:v,maxPopoverTrigger:y,children:S,max:b}=e,C=o("avatar",s),_=`${C}-group`,T=_i(C),[x,E,k]=o0e(C,T),M=Re(_,{[`${_}-rtl`]:a==="rtl"},k,T,l,c,E),P=zo(S).map((A,H)=>Io(A,{key:`avatar-key-${H}`})),D=(b==null?void 0:b.count)||d,R=P.length;if(D&&D<R){const A=P.slice(0,D),H=P.slice(D,R),F=(b==null?void 0:b.style)||h,z=((t=b==null?void 0:b.popover)===null||t===void 0?void 0:t.trigger)||y||"hover",W=((n=b==null?void 0:b.popover)===null||n===void 0?void 0:n.placement)||v||"top",q=Object.assign(Object.assign({content:H},b==null?void 0:b.popover),{classNames:{root:Re(`${_}-popover`,(i=(r=b==null?void 0:b.popover)===null||r===void 0?void 0:r.classNames)===null||i===void 0?void 0:i.root)},placement:W,trigger:z});return A.push(f.createElement(Ou,Object.assign({key:"avatar-popover-key",destroyTooltipOnHide:!0},q),f.createElement(a0e,{style:F},`+${R-D}`))),x(f.createElement(eee,{shape:m,size:p},f.createElement("div",{className:M,style:u},A)))}return x(f.createElement(eee,{shape:m,size:p},f.createElement("div",{className:M,style:u},P)))},yg=a0e;yg.Group=eYe;const tYe=new Mr("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),nYe=new Mr("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),rYe=new Mr("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),iYe=new Mr("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),oYe=new Mr("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),aYe=new Mr("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),sYe=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:i,textFontSize:o,textFontSizeSM:a,statusSize:s,dotSize:l,textFontWeight:c,indicatorHeight:u,indicatorHeightSM:d,marginXS:h,calc:p}=e,m=`${r}-scroll-number`,v=SO(e,(y,S)=>{let{darkColor:b}=S;return{[`&${t} ${t}-color-${y}`]:{background:b,[`&:not(${t}-count)`]:{color:b},"a:hover &":{background:b}}}});return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},$r(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:u,height:u,color:e.badgeTextColor,fontWeight:c,fontSize:o,lineHeight:je(u),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:p(u).div(2).equal(),boxShadow:`0 0 0 ${je(i)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:d,height:d,fontSize:a,lineHeight:je(d),borderRadius:p(d).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${je(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:l,minWidth:l,height:l,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${je(i)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${m}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:aYe,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:i,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:tYe,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:h,color:e.colorText,fontSize:e.fontSize}}}),v),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:nYe,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:rYe,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:iYe,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:oYe,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${m}-custom-component, ${t}-count`]:{transform:"none"},[`${m}-custom-component, ${m}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[m]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${m}-only`]:{position:"relative",display:"inline-block",height:u,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${m}-only-unit`]:{height:u,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${m}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${m}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},m0e=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:i}=e,o=t,a=n,s=e.colorTextLightSolid,l=e.colorError,c=e.colorErrorHover;return dr(e,{badgeFontHeight:o,badgeShadowSize:a,badgeTextColor:s,badgeColor:l,badgeColorHover:c,badgeShadowColor:i,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},g0e=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:i}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*i,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},lYe=Tr("Badge",e=>{const t=m0e(e);return sYe(t)},g0e),cYe=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:i,calc:o}=e,a=`${t}-ribbon`,s=`${t}-ribbon-wrapper`,l=SO(e,(c,u)=>{let{darkColor:d}=u;return{[`&${a}-color-${c}`]:{background:d,color:d}}});return{[s]:{position:"relative"},[a]:Object.assign(Object.assign(Object.assign(Object.assign({},$r(e)),{position:"absolute",top:r,padding:`0 ${je(e.paddingXS)}`,color:e.colorPrimary,lineHeight:je(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${a}-text`]:{color:e.badgeTextColor},[`${a}-corner`]:{position:"absolute",top:"100%",width:i,height:i,color:"currentcolor",border:`${je(o(i).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),l),{[`&${a}-placement-end`]:{insetInlineEnd:o(i).mul(-1).equal(),borderEndEndRadius:0,[`${a}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${a}-placement-start`]:{insetInlineStart:o(i).mul(-1).equal(),borderEndStartRadius:0,[`${a}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},uYe=Tr(["Badge","Ribbon"],e=>{const t=m0e(e);return cYe(t)},g0e),dYe=e=>{const{className:t,prefixCls:n,style:r,color:i,children:o,text:a,placement:s="end",rootClassName:l}=e,{getPrefixCls:c,direction:u}=f.useContext(hn),d=c("ribbon",n),h=`${d}-wrapper`,[p,m,v]=uYe(d,h),y=GO(i,!1),S=Re(d,`${d}-placement-${s}`,{[`${d}-rtl`]:u==="rtl",[`${d}-color-${i}`]:y},t),b={},C={};return i&&!y&&(b.background=i,C.color=i),p(f.createElement("div",{className:Re(h,l,m,v)},o,f.createElement("div",{className:Re(S,m),style:Object.assign(Object.assign({},b),r)},f.createElement("span",{className:`${d}-text`},a),f.createElement("div",{className:`${d}-corner`,style:C}))))},tee=e=>{const{prefixCls:t,value:n,current:r,offset:i=0}=e;let o;return i&&(o={position:"absolute",top:`${i}00%`,left:0}),f.createElement("span",{style:o,className:Re(`${t}-only-unit`,{current:r})},n)};function fYe(e,t,n){let r=e,i=0;for(;(r+10)%10!==t;)r+=n,i+=n;return i}const hYe=e=>{const{prefixCls:t,count:n,value:r}=e,i=Number(r),o=Math.abs(n),[a,s]=f.useState(i),[l,c]=f.useState(o),u=()=>{s(i),c(o)};f.useEffect(()=>{const p=setTimeout(u,1e3);return()=>clearTimeout(p)},[i]);let d,h;if(a===i||Number.isNaN(i)||Number.isNaN(a))d=[f.createElement(tee,Object.assign({},e,{key:i,current:!0}))],h={transition:"none"};else{d=[];const p=i+10,m=[];for(let b=i;b<=p;b+=1)m.push(b);const v=l<o?1:-1,y=m.findIndex(b=>b%10===a);d=(v<0?m.slice(0,y+1):m.slice(y)).map((b,C)=>{const _=b%10;return f.createElement(tee,Object.assign({},e,{key:b,value:_,offset:v<0?C-y:C,current:C===y}))}),h={transform:`translateY(${-fYe(a,i,v)}00%)`}}return f.createElement("span",{className:`${t}-only`,style:h,onTransitionEnd:u},d)};var pYe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const mYe=f.forwardRef((e,t)=>{const{prefixCls:n,count:r,className:i,motionClassName:o,style:a,title:s,show:l,component:c="sup",children:u}=e,d=pYe(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:h}=f.useContext(hn),p=h("scroll-number",n),m=Object.assign(Object.assign({},d),{"data-show":l,style:a,className:Re(p,i,o),title:s});let v=r;if(r&&Number(r)%1===0){const y=String(r).split("");v=f.createElement("bdi",null,y.map((S,b)=>f.createElement(hYe,{prefixCls:p,count:Number(r),value:S,key:y.length-b})))}return a!=null&&a.borderColor&&(m.style=Object.assign(Object.assign({},a),{boxShadow:`0 0 0 1px ${a.borderColor} inset`})),u?Io(u,y=>({className:Re(`${p}-custom-component`,y==null?void 0:y.className,o)})):f.createElement(c,Object.assign({},m,{ref:t}),v)});var gYe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const vYe=f.forwardRef((e,t)=>{var n,r,i,o,a;const{prefixCls:s,scrollNumberPrefixCls:l,children:c,status:u,text:d,color:h,count:p=null,overflowCount:m=99,dot:v=!1,size:y="default",title:S,offset:b,style:C,className:_,rootClassName:T,classNames:x,styles:E,showZero:k=!1}=e,M=gYe(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:P,direction:D,badge:R}=f.useContext(hn),A=P("badge",s),[H,F,z]=lYe(A),W=p>m?`${m}+`:p,q=W==="0"||W===0,Z=p===null||q&&!k,N=(u!=null||h!=null)&&Z,B=v&&!q,V=B?"":W,G=f.useMemo(()=>(V==null||V===""||q&&!k)&&!B,[V,q,k,B]),ie=f.useRef(p);G||(ie.current=p);const ce=ie.current,fe=f.useRef(V);G||(fe.current=V);const ee=fe.current,ne=f.useRef(B);G||(ne.current=B);const ue=f.useMemo(()=>{if(!b)return Object.assign(Object.assign({},R==null?void 0:R.style),C);const we={marginTop:b[1]};return D==="rtl"?we.left=parseInt(b[0],10):we.right=-parseInt(b[0],10),Object.assign(Object.assign(Object.assign({},we),R==null?void 0:R.style),C)},[D,b,C,R==null?void 0:R.style]),ye=S??(typeof ce=="string"||typeof ce=="number"?ce:void 0),me=G||!d?null:f.createElement("span",{className:`${A}-status-text`},d),pe=!ce||typeof ce!="object"?void 0:Io(ce,we=>({style:Object.assign(Object.assign({},ue),we.style)})),he=GO(h,!1),_e=Re(x==null?void 0:x.indicator,(n=R==null?void 0:R.classNames)===null||n===void 0?void 0:n.indicator,{[`${A}-status-dot`]:N,[`${A}-status-${u}`]:!!u,[`${A}-color-${h}`]:he}),le={};h&&!he&&(le.color=h,le.background=h);const xe=Re(A,{[`${A}-status`]:N,[`${A}-not-a-wrapper`]:!c,[`${A}-rtl`]:D==="rtl"},_,T,R==null?void 0:R.className,(r=R==null?void 0:R.classNames)===null||r===void 0?void 0:r.root,x==null?void 0:x.root,F,z);if(!c&&N){const we=ue.color;return H(f.createElement("span",Object.assign({},M,{className:xe,style:Object.assign(Object.assign(Object.assign({},E==null?void 0:E.root),(i=R==null?void 0:R.styles)===null||i===void 0?void 0:i.root),ue)}),f.createElement("span",{className:_e,style:Object.assign(Object.assign(Object.assign({},E==null?void 0:E.indicator),(o=R==null?void 0:R.styles)===null||o===void 0?void 0:o.indicator),le)}),d&&f.createElement("span",{style:{color:we},className:`${A}-status-text`},d)))}return H(f.createElement("span",Object.assign({ref:t},M,{className:xe,style:Object.assign(Object.assign({},(a=R==null?void 0:R.styles)===null||a===void 0?void 0:a.root),E==null?void 0:E.root)}),c,f.createElement(fa,{visible:!G,motionName:`${A}-zoom`,motionAppear:!1,motionDeadline:1e3},we=>{let{className:De}=we;var Fe,Ce;const Te=P("scroll-number",l),ke=ne.current,Pe=Re(x==null?void 0:x.indicator,(Fe=R==null?void 0:R.classNames)===null||Fe===void 0?void 0:Fe.indicator,{[`${A}-dot`]:ke,[`${A}-count`]:!ke,[`${A}-count-sm`]:y==="small",[`${A}-multiple-words`]:!ke&&ee&&ee.toString().length>1,[`${A}-status-${u}`]:!!u,[`${A}-color-${h}`]:he});let Ne=Object.assign(Object.assign(Object.assign({},E==null?void 0:E.indicator),(Ce=R==null?void 0:R.styles)===null||Ce===void 0?void 0:Ce.indicator),ue);return h&&!he&&(Ne=Ne||{},Ne.background=h),f.createElement(mYe,{prefixCls:Te,show:!G,motionClassName:De,className:Pe,count:ee,title:ye,style:Ne,key:"scrollNumber"},pe)}),me))}),Rl=vYe;Rl.Ribbon=dYe;var yYe=Pt.ESC,bYe=Pt.TAB;function SYe(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,i=e.autoFocus,o=e.overlayRef,a=f.useRef(!1),s=function(){if(t){var d,h;(d=n.current)===null||d===void 0||(h=d.focus)===null||h===void 0||h.call(d),r==null||r(!1)}},l=function(){var d;return(d=o.current)!==null&&d!==void 0&&d.focus?(o.current.focus(),a.current=!0,!0):!1},c=function(d){switch(d.keyCode){case yYe:s();break;case bYe:{var h=!1;a.current||(h=l()),h?d.preventDefault():s();break}}};f.useEffect(function(){return t?(window.addEventListener("keydown",c),i&&Cr(l,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}},[t])}var CYe=f.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,i=e.prefixCls,o=f.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),a=ga(t,mg(o));return ge.createElement(ge.Fragment,null,r&&ge.createElement("div",{className:"".concat(i,"-arrow")}),ge.cloneElement(o,{ref:Dd(o)?a:void 0}))}),ey={adjustX:1,adjustY:1},ty=[0,0],xYe={topLeft:{points:["bl","tl"],overflow:ey,offset:[0,-4],targetOffset:ty},top:{points:["bc","tc"],overflow:ey,offset:[0,-4],targetOffset:ty},topRight:{points:["br","tr"],overflow:ey,offset:[0,-4],targetOffset:ty},bottomLeft:{points:["tl","bl"],overflow:ey,offset:[0,4],targetOffset:ty},bottom:{points:["tc","bc"],overflow:ey,offset:[0,4],targetOffset:ty},bottomRight:{points:["tr","br"],overflow:ey,offset:[0,4],targetOffset:ty}},wYe=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function _Ye(e,t){var n,r=e.arrow,i=r===void 0?!1:r,o=e.prefixCls,a=o===void 0?"rc-dropdown":o,s=e.transitionName,l=e.animation,c=e.align,u=e.placement,d=u===void 0?"bottomLeft":u,h=e.placements,p=h===void 0?xYe:h,m=e.getPopupContainer,v=e.showAction,y=e.hideAction,S=e.overlayClassName,b=e.overlayStyle,C=e.visible,_=e.trigger,T=_===void 0?["hover"]:_,x=e.autoFocus,E=e.overlay,k=e.children,M=e.onVisibleChange,P=tn(e,wYe),D=ge.useState(),R=Le(D,2),A=R[0],H=R[1],F="visible"in e?C:A,z=ge.useRef(null),W=ge.useRef(null),q=ge.useRef(null);ge.useImperativeHandle(t,function(){return z.current});var Z=function(ne){H(ne),M==null||M(ne)};SYe({visible:F,triggerRef:q,onVisibleChange:Z,autoFocus:x,overlayRef:W});var N=function(ne){var ue=e.onOverlayClick;H(!1),ue&&ue(ne)},B=function(){return ge.createElement(CYe,{ref:W,overlay:E,prefixCls:a,arrow:i})},V=function(){return typeof E=="function"?B:B()},G=function(){var ne=e.minOverlayWidthMatchTrigger,ue=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?ne:!ue},ie=function(){var ne=e.openClassName;return ne!==void 0?ne:"".concat(a,"-open")},ce=ge.cloneElement(k,{className:Re((n=k.props)===null||n===void 0?void 0:n.className,F&&ie()),ref:Dd(k)?ga(q,mg(k)):void 0}),fe=y;return!fe&&T.indexOf("contextMenu")!==-1&&(fe=["click"]),ge.createElement(wE,st({builtinPlacements:p},P,{prefixCls:a,ref:z,popupClassName:Re(S,ae({},"".concat(a,"-show-arrow"),i)),popupStyle:b,action:T,showAction:v,hideAction:fe,popupPlacement:d,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:F,stretch:G()?"minWidth":"",popup:V(),onPopupVisibleChange:Z,onPopupClick:N,getPopupContainer:m}),ce)}const v0e=ge.forwardRef(_Ye),EYe=e=>typeof e!="object"&&typeof e!="function"||e===null;var y0e=f.createContext(null);function b0e(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function S0e(e){var t=f.useContext(y0e);return b0e(t,e)}var TYe=["children","locked"],Ud=f.createContext(null);function kYe(e,t){var n=X({},e);return Object.keys(t).forEach(function(r){var i=t[r];i!==void 0&&(n[r]=i)}),n}function p_(e){var t=e.children,n=e.locked,r=tn(e,TYe),i=f.useContext(Ud),o=dp(function(){return kYe(i,r)},[i,r],function(a,s){return!n&&(a[0]!==s[0]||!ku(a[1],s[1],!0))});return f.createElement(Ud.Provider,{value:o},t)}var OYe=[],C0e=f.createContext(null);function YO(){return f.useContext(C0e)}var x0e=f.createContext(OYe);function XS(e){var t=f.useContext(x0e);return f.useMemo(function(){return e!==void 0?[].concat(pt(t),[e]):t},[t,e])}var w0e=f.createContext(null),tW=f.createContext({});function nee(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(VS(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),o=Number(i),a=null;return i&&!Number.isNaN(o)?a=o:r&&a===null&&(a=0),r&&e.disabled&&(a=null),a!==null&&(a>=0||t&&a<0)}return!1}function PYe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=pt(e.querySelectorAll("*")).filter(function(r){return nee(r,t)});return nee(e,t)&&n.unshift(e),n}var FF=Pt.LEFT,jF=Pt.RIGHT,BF=Pt.UP,R8=Pt.DOWN,A8=Pt.ENTER,_0e=Pt.ESC,Dx=Pt.HOME,Lx=Pt.END,ree=[BF,R8,FF,jF];function MYe(e,t,n,r){var i,o="prev",a="next",s="children",l="parent";if(e==="inline"&&r===A8)return{inlineTrigger:!0};var c=ae(ae({},BF,o),R8,a),u=ae(ae(ae(ae({},FF,n?a:o),jF,n?o:a),R8,s),A8,s),d=ae(ae(ae(ae(ae(ae({},BF,o),R8,a),A8,s),_0e,l),FF,n?s:l),jF,n?l:s),h={inline:c,horizontal:u,vertical:d,inlineSub:c,horizontalSub:d,verticalSub:d},p=(i=h["".concat(e).concat(t?"":"Sub")])===null||i===void 0?void 0:i[r];switch(p){case o:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case l:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}function IYe(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function $Ye(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function nW(e,t){var n=PYe(e,!0);return n.filter(function(r){return t.has(r)})}function iee(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var i=nW(e,t),o=i.length,a=i.findIndex(function(s){return n===s});return r<0?a===-1?a=o-1:a-=1:r>0&&(a+=1),a=(a+o)%o,i[a]}var HF=function(t,n){var r=new Set,i=new Map,o=new Map;return t.forEach(function(a){var s=document.querySelector("[data-menu-id='".concat(b0e(n,a),"']"));s&&(r.add(s),o.set(s,a),i.set(a,s))}),{elements:r,key2element:i,element2key:o}};function RYe(e,t,n,r,i,o,a,s,l,c){var u=f.useRef(),d=f.useRef();d.current=t;var h=function(){Cr.cancel(u.current)};return f.useEffect(function(){return function(){h()}},[]),function(p){var m=p.which;if([].concat(ree,[A8,_0e,Dx,Lx]).includes(m)){var v=o(),y=HF(v,r),S=y,b=S.elements,C=S.key2element,_=S.element2key,T=C.get(t),x=$Ye(T,b),E=_.get(x),k=MYe(e,a(E,!0).length===1,n,m);if(!k&&m!==Dx&&m!==Lx)return;(ree.includes(m)||[Dx,Lx].includes(m))&&p.preventDefault();var M=function(W){if(W){var q=W,Z=W.querySelector("a");Z!=null&&Z.getAttribute("href")&&(q=Z);var N=_.get(W);s(N),h(),u.current=Cr(function(){d.current===N&&q.focus()})}};if([Dx,Lx].includes(m)||k.sibling||!x){var P;!x||e==="inline"?P=i.current:P=IYe(x);var D,R=nW(P,b);m===Dx?D=R[0]:m===Lx?D=R[R.length-1]:D=iee(P,b,x,k.offset),M(D)}else if(k.inlineTrigger)l(E);else if(k.offset>0)l(E,!0),h(),u.current=Cr(function(){y=HF(v,r);var z=x.getAttribute("aria-controls"),W=document.getElementById(z),q=iee(W,y.elements);M(q)},5);else if(k.offset<0){var A=a(E,!0),H=A[A.length-2],F=C.get(H);l(H,!1),M(F)}}c==null||c(p)}}function AYe(e){Promise.resolve().then(e)}var rW="__RC_UTIL_PATH_SPLIT__",oee=function(t){return t.join(rW)},NYe=function(t){return t.split(rW)},zF="rc-menu-more";function DYe(){var e=f.useState({}),t=Le(e,2),n=t[1],r=f.useRef(new Map),i=f.useRef(new Map),o=f.useState([]),a=Le(o,2),s=a[0],l=a[1],c=f.useRef(0),u=f.useRef(!1),d=function(){u.current||n({})},h=f.useCallback(function(C,_){var T=oee(_);i.current.set(T,C),r.current.set(C,T),c.current+=1;var x=c.current;AYe(function(){x===c.current&&d()})},[]),p=f.useCallback(function(C,_){var T=oee(_);i.current.delete(T),r.current.delete(C)},[]),m=f.useCallback(function(C){l(C)},[]),v=f.useCallback(function(C,_){var T=r.current.get(C)||"",x=NYe(T);return _&&s.includes(x[0])&&x.unshift(zF),x},[s]),y=f.useCallback(function(C,_){return C.filter(function(T){return T!==void 0}).some(function(T){var x=v(T,!0);return x.includes(_)})},[v]),S=function(){var _=pt(r.current.keys());return s.length&&_.push(zF),_},b=f.useCallback(function(C){var _="".concat(r.current.get(C)).concat(rW),T=new Set;return pt(i.current.keys()).forEach(function(x){x.startsWith(_)&&T.add(i.current.get(x))}),T},[]);return f.useEffect(function(){return function(){u.current=!0}},[]),{registerPath:h,unregisterPath:p,refreshOverflowKeys:m,isSubPathKey:y,getKeyPath:v,getKeys:S,getSubPathKeys:b}}function C2(e){var t=f.useRef(e);t.current=e;var n=f.useCallback(function(){for(var r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(o))},[]);return e?n:void 0}var LYe=Math.random().toFixed(5).toString().slice(2),aee=0;function FYe(e){var t=er(e,{value:e}),n=Le(t,2),r=n[0],i=n[1];return f.useEffect(function(){aee+=1;var o="".concat(LYe,"-").concat(aee);i("rc-menu-uuid-".concat(o))},[]),r}function E0e(e,t,n,r){var i=f.useContext(Ud),o=i.activeKey,a=i.onActive,s=i.onInactive,l={active:o===e};return t||(l.onMouseEnter=function(c){n==null||n({key:e,domEvent:c}),a(e)},l.onMouseLeave=function(c){r==null||r({key:e,domEvent:c}),s(e)}),l}function T0e(e){var t=f.useContext(Ud),n=t.mode,r=t.rtl,i=t.inlineIndent;if(n!=="inline")return null;var o=e;return r?{paddingRight:o*i}:{paddingLeft:o*i}}function k0e(e){var t=e.icon,n=e.props,r=e.children,i;return t===null||t===!1?null:(typeof t=="function"?i=f.createElement(t,X({},n)):typeof t!="boolean"&&(i=t),i||r||null)}var jYe=["item"];function L9(e){var t=e.item,n=tn(e,jYe);return Object.defineProperty(n,"item",{get:function(){return fi(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var BYe=["title","attribute","elementRef"],HYe=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],zYe=["active"],UYe=function(e){Ys(n,e);var t=bl(n);function n(){return hi(this,n),t.apply(this,arguments)}return pi(n,[{key:"render",value:function(){var i=this.props,o=i.title,a=i.attribute,s=i.elementRef,l=tn(i,BYe),c=Pr(l,["eventKey","popupClassName","popupOffset","onTitleClick"]);return fi(!a,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),f.createElement(Td.Item,st({},a,{title:typeof o=="string"?o:void 0},c,{ref:s}))}}]),n}(f.Component),WYe=f.forwardRef(function(e,t){var n=e.style,r=e.className,i=e.eventKey;e.warnKey;var o=e.disabled,a=e.itemIcon,s=e.children,l=e.role,c=e.onMouseEnter,u=e.onMouseLeave,d=e.onClick,h=e.onKeyDown,p=e.onFocus,m=tn(e,HYe),v=S0e(i),y=f.useContext(Ud),S=y.prefixCls,b=y.onItemClick,C=y.disabled,_=y.overflowDisabled,T=y.itemIcon,x=y.selectedKeys,E=y.onActive,k=f.useContext(tW),M=k._internalRenderMenuItem,P="".concat(S,"-item"),D=f.useRef(),R=f.useRef(),A=C||o,H=Xd(t,R),F=XS(i),z=function(ue){return{key:i,keyPath:pt(F).reverse(),item:D.current,domEvent:ue}},W=a||T,q=E0e(i,A,c,u),Z=q.active,N=tn(q,zYe),B=x.includes(i),V=T0e(F.length),G=function(ue){if(!A){var ye=z(ue);d==null||d(L9(ye)),b(ye)}},ie=function(ue){if(h==null||h(ue),ue.which===Pt.ENTER){var ye=z(ue);d==null||d(L9(ye)),b(ye)}},ce=function(ue){E(i),p==null||p(ue)},fe={};e.role==="option"&&(fe["aria-selected"]=B);var ee=f.createElement(UYe,st({ref:D,elementRef:H,role:l===null?"none":l||"menuitem",tabIndex:o?null:-1,"data-menu-id":_&&v?null:v},Pr(m,["extra"]),N,fe,{component:"li","aria-disabled":o,style:X(X({},V),n),className:Re(P,ae(ae(ae({},"".concat(P,"-active"),Z),"".concat(P,"-selected"),B),"".concat(P,"-disabled"),A),r),onClick:G,onKeyDown:ie,onFocus:ce}),s,f.createElement(k0e,{props:X(X({},e),{},{isSelected:B}),icon:W}));return M&&(ee=M(ee,e,{selected:B})),ee});function VYe(e,t){var n=e.eventKey,r=YO(),i=XS(n);return f.useEffect(function(){if(r)return r.registerPath(n,i),function(){r.unregisterPath(n,i)}},[i]),r?null:f.createElement(WYe,st({},e,{ref:t}))}const EE=f.forwardRef(VYe);var KYe=["className","children"],qYe=function(t,n){var r=t.className,i=t.children,o=tn(t,KYe),a=f.useContext(Ud),s=a.prefixCls,l=a.mode,c=a.rtl;return f.createElement("ul",st({className:Re(s,c&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(l==="inline"?"inline":"vertical"),r),role:"menu"},o,{"data-menu-list":!0,ref:n}),i)},iW=f.forwardRef(qYe);iW.displayName="SubMenuList";function oW(e,t){return zo(e).map(function(n,r){if(f.isValidElement(n)){var i,o,a=n.key,s=(i=(o=n.props)===null||o===void 0?void 0:o.eventKey)!==null&&i!==void 0?i:a,l=s==null;l&&(s="tmp_key-".concat([].concat(pt(t),[r]).join("-")));var c={key:s,eventKey:s};return f.cloneElement(n,c)}return n})}var Ds={adjustX:1,adjustY:1},GYe={topLeft:{points:["bl","tl"],overflow:Ds},topRight:{points:["br","tr"],overflow:Ds},bottomLeft:{points:["tl","bl"],overflow:Ds},bottomRight:{points:["tr","br"],overflow:Ds},leftTop:{points:["tr","tl"],overflow:Ds},leftBottom:{points:["br","bl"],overflow:Ds},rightTop:{points:["tl","tr"],overflow:Ds},rightBottom:{points:["bl","br"],overflow:Ds}},YYe={topLeft:{points:["bl","tl"],overflow:Ds},topRight:{points:["br","tr"],overflow:Ds},bottomLeft:{points:["tl","bl"],overflow:Ds},bottomRight:{points:["tr","br"],overflow:Ds},rightTop:{points:["tr","tl"],overflow:Ds},rightBottom:{points:["br","bl"],overflow:Ds},leftTop:{points:["tl","tr"],overflow:Ds},leftBottom:{points:["bl","br"],overflow:Ds}};function O0e(e,t,n){if(t)return t;if(n)return n[e]||n.other}var XYe={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function QYe(e){var t=e.prefixCls,n=e.visible,r=e.children,i=e.popup,o=e.popupStyle,a=e.popupClassName,s=e.popupOffset,l=e.disabled,c=e.mode,u=e.onVisibleChange,d=f.useContext(Ud),h=d.getPopupContainer,p=d.rtl,m=d.subMenuOpenDelay,v=d.subMenuCloseDelay,y=d.builtinPlacements,S=d.triggerSubMenuAction,b=d.forceSubMenuRender,C=d.rootClassName,_=d.motion,T=d.defaultMotions,x=f.useState(!1),E=Le(x,2),k=E[0],M=E[1],P=X(p?X({},YYe):X({},GYe),y),D=XYe[c],R=O0e(c,_,T),A=f.useRef(R);c!=="inline"&&(A.current=R);var H=X(X({},A.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),F=f.useRef();return f.useEffect(function(){return F.current=Cr(function(){M(n)}),function(){Cr.cancel(F.current)}},[n]),f.createElement(wE,{prefixCls:t,popupClassName:Re("".concat(t,"-popup"),ae({},"".concat(t,"-rtl"),p),a,C),stretch:c==="horizontal"?"minWidth":null,getPopupContainer:h,builtinPlacements:P,popupPlacement:D,popupVisible:k,popup:i,popupStyle:o,popupAlign:s&&{offset:s},action:l?[]:[S],mouseEnterDelay:m,mouseLeaveDelay:v,onPopupVisibleChange:u,forceRender:b,popupMotion:H,fresh:!0},r)}function ZYe(e){var t=e.id,n=e.open,r=e.keyPath,i=e.children,o="inline",a=f.useContext(Ud),s=a.prefixCls,l=a.forceSubMenuRender,c=a.motion,u=a.defaultMotions,d=a.mode,h=f.useRef(!1);h.current=d===o;var p=f.useState(!h.current),m=Le(p,2),v=m[0],y=m[1],S=h.current?n:!1;f.useEffect(function(){h.current&&y(!1)},[d]);var b=X({},O0e(o,c,u));r.length>1&&(b.motionAppear=!1);var C=b.onVisibleChanged;return b.onVisibleChanged=function(_){return!h.current&&!_&&y(!0),C==null?void 0:C(_)},v?null:f.createElement(p_,{mode:o,locked:!h.current},f.createElement(fa,st({visible:S},b,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(_){var T=_.className,x=_.style;return f.createElement(iW,{id:t,className:T,style:x},i)}))}var JYe=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],eXe=["active"],tXe=f.forwardRef(function(e,t){var n=e.style,r=e.className,i=e.title,o=e.eventKey;e.warnKey;var a=e.disabled,s=e.internalPopupClose,l=e.children,c=e.itemIcon,u=e.expandIcon,d=e.popupClassName,h=e.popupOffset,p=e.popupStyle,m=e.onClick,v=e.onMouseEnter,y=e.onMouseLeave,S=e.onTitleClick,b=e.onTitleMouseEnter,C=e.onTitleMouseLeave,_=tn(e,JYe),T=S0e(o),x=f.useContext(Ud),E=x.prefixCls,k=x.mode,M=x.openKeys,P=x.disabled,D=x.overflowDisabled,R=x.activeKey,A=x.selectedKeys,H=x.itemIcon,F=x.expandIcon,z=x.onItemClick,W=x.onOpenChange,q=x.onActive,Z=f.useContext(tW),N=Z._internalRenderSubMenuItem,B=f.useContext(w0e),V=B.isSubPathKey,G=XS(),ie="".concat(E,"-submenu"),ce=P||a,fe=f.useRef(),ee=f.useRef(),ne=c??H,ue=u??F,ye=M.includes(o),me=!D&&ye,pe=V(A,o),he=E0e(o,ce,b,C),_e=he.active,le=tn(he,eXe),xe=f.useState(!1),we=Le(xe,2),De=we[0],Fe=we[1],Ce=function(ze){ce||Fe(ze)},Te=function(ze){Ce(!0),v==null||v({key:o,domEvent:ze})},ke=function(ze){Ce(!1),y==null||y({key:o,domEvent:ze})},Pe=f.useMemo(function(){return _e||(k!=="inline"?De||V([R],o):!1)},[k,_e,R,De,o,V]),Ne=T0e(G.length),We=function(ze){ce||(S==null||S({key:o,domEvent:ze}),k==="inline"&&W(o,!ye))},Q=C2(function(se){m==null||m(L9(se)),z(se)}),K=function(ze){k!=="inline"&&W(o,ze)},J=function(){q(o)},be=T&&"".concat(T,"-popup"),Oe=f.createElement("div",st({role:"menuitem",style:Ne,className:"".concat(ie,"-title"),tabIndex:ce?null:-1,ref:fe,title:typeof i=="string"?i:null,"data-menu-id":D&&T?null:T,"aria-expanded":me,"aria-haspopup":!0,"aria-controls":be,"aria-disabled":ce,onClick:We,onFocus:J},le),i,f.createElement(k0e,{icon:k!=="horizontal"?ue:void 0,props:X(X({},e),{},{isOpen:me,isSubMenu:!0})},f.createElement("i",{className:"".concat(ie,"-arrow")}))),Se=f.useRef(k);if(k!=="inline"&&G.length>1?Se.current="vertical":Se.current=k,!D){var Ke=Se.current;Oe=f.createElement(QYe,{mode:Ke,prefixCls:ie,visible:!s&&me&&k!=="inline",popupClassName:d,popupOffset:h,popupStyle:p,popup:f.createElement(p_,{mode:Ke==="horizontal"?"vertical":Ke},f.createElement(iW,{id:be,ref:ee},l)),disabled:ce,onVisibleChange:K},Oe)}var tt=f.createElement(Td.Item,st({ref:t,role:"none"},_,{component:"li",style:n,className:Re(ie,"".concat(ie,"-").concat(k),r,ae(ae(ae(ae({},"".concat(ie,"-open"),me),"".concat(ie,"-active"),Pe),"".concat(ie,"-selected"),pe),"".concat(ie,"-disabled"),ce)),onMouseEnter:Te,onMouseLeave:ke}),Oe,!D&&f.createElement(ZYe,{id:be,open:me,keyPath:G},l));return N&&(tt=N(tt,e,{selected:pe,active:Pe,open:me,disabled:ce})),f.createElement(p_,{onItemClick:Q,mode:k==="horizontal"?"vertical":k,itemIcon:ne,expandIcon:ue},tt)}),XO=f.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=XS(n),o=oW(r,i),a=YO();f.useEffect(function(){if(a)return a.registerPath(n,i),function(){a.unregisterPath(n,i)}},[i]);var s;return a?s=o:s=f.createElement(tXe,st({ref:t},e),o),f.createElement(x0e.Provider,{value:i},s)});function aW(e){var t=e.className,n=e.style,r=f.useContext(Ud),i=r.prefixCls,o=YO();return o?null:f.createElement("li",{role:"separator",className:Re("".concat(i,"-item-divider"),t),style:n})}var nXe=["className","title","eventKey","children"],rXe=f.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var i=e.children,o=tn(e,nXe),a=f.useContext(Ud),s=a.prefixCls,l="".concat(s,"-item-group");return f.createElement("li",st({ref:t,role:"presentation"},o,{onClick:function(u){return u.stopPropagation()},className:Re(l,n)}),f.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof r=="string"?r:void 0},r),f.createElement("ul",{role:"group",className:"".concat(l,"-list")},i))}),sW=f.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=XS(n),o=oW(r,i),a=YO();return a?o:f.createElement(rXe,st({ref:t},Pr(e,["warnKey"])),o)}),iXe=["label","children","key","type","extra"];function UF(e,t,n){var r=t.item,i=t.group,o=t.submenu,a=t.divider;return(e||[]).map(function(s,l){if(s&&ln(s)==="object"){var c=s,u=c.label,d=c.children,h=c.key,p=c.type,m=c.extra,v=tn(c,iXe),y=h??"tmp-".concat(l);return d||p==="group"?p==="group"?f.createElement(i,st({key:y},v,{title:u}),UF(d,t,n)):f.createElement(o,st({key:y},v,{title:u}),UF(d,t,n)):p==="divider"?f.createElement(a,st({key:y},v)):f.createElement(r,st({key:y},v,{extra:m}),u,(!!m||m===0)&&f.createElement("span",{className:"".concat(n,"-item-extra")},m))}return null}).filter(function(s){return s})}function see(e,t,n,r,i){var o=e,a=X({divider:aW,item:EE,group:sW,submenu:XO},r);return t&&(o=UF(t,a,i)),oW(o,n)}var oXe=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],qg=[],aXe=f.forwardRef(function(e,t){var n,r=e,i=r.prefixCls,o=i===void 0?"rc-menu":i,a=r.rootClassName,s=r.style,l=r.className,c=r.tabIndex,u=c===void 0?0:c,d=r.items,h=r.children,p=r.direction,m=r.id,v=r.mode,y=v===void 0?"vertical":v,S=r.inlineCollapsed,b=r.disabled,C=r.disabledOverflow,_=r.subMenuOpenDelay,T=_===void 0?.1:_,x=r.subMenuCloseDelay,E=x===void 0?.1:x,k=r.forceSubMenuRender,M=r.defaultOpenKeys,P=r.openKeys,D=r.activeKey,R=r.defaultActiveFirst,A=r.selectable,H=A===void 0?!0:A,F=r.multiple,z=F===void 0?!1:F,W=r.defaultSelectedKeys,q=r.selectedKeys,Z=r.onSelect,N=r.onDeselect,B=r.inlineIndent,V=B===void 0?24:B,G=r.motion,ie=r.defaultMotions,ce=r.triggerSubMenuAction,fe=ce===void 0?"hover":ce,ee=r.builtinPlacements,ne=r.itemIcon,ue=r.expandIcon,ye=r.overflowedIndicator,me=ye===void 0?"...":ye,pe=r.overflowedIndicatorPopupClassName,he=r.getPopupContainer,_e=r.onClick,le=r.onOpenChange,xe=r.onKeyDown;r.openAnimation,r.openTransitionName;var we=r._internalRenderMenuItem,De=r._internalRenderSubMenuItem,Fe=r._internalComponents,Ce=tn(r,oXe),Te=f.useMemo(function(){return[see(h,d,qg,Fe,o),see(h,d,qg,{},o)]},[h,d,Fe]),ke=Le(Te,2),Pe=ke[0],Ne=ke[1],We=f.useState(!1),Q=Le(We,2),K=Q[0],J=Q[1],be=f.useRef(),Oe=FYe(m),Se=p==="rtl",Ke=er(M,{value:P,postState:function(wn){return wn||qg}}),tt=Le(Ke,2),se=tt[0],ze=tt[1],Ye=function(wn){var Pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Ar(){ze(wn),le==null||le(wn)}Pn?Ac.flushSync(Ar):Ar()},Ue=f.useState(se),Je=Le(Ue,2),Ze=Je[0],rt=Je[1],qt=f.useRef(!1),St=f.useMemo(function(){return(y==="inline"||y==="vertical")&&S?["vertical",S]:[y,!1]},[y,S]),Ot=Le(St,2),Bt=Ot[0],Dt=Ot[1],an=Bt==="inline",Vt=f.useState(Bt),Kt=Le(Vt,2),Qt=Kt[0],et=Kt[1],ot=f.useState(Dt),Qe=Le(ot,2),ut=Qe[0],Nt=Qe[1];f.useEffect(function(){et(Bt),Nt(Dt),qt.current&&(an?ze(Ze):Ye(qg))},[Bt,Dt]);var Lt=f.useState(0),Zt=Le(Lt,2),Wt=Zt[0],At=Zt[1],$t=Wt>=Pe.length-1||Qt!=="horizontal"||C;f.useEffect(function(){an&&rt(se)},[se]),f.useEffect(function(){return qt.current=!0,function(){qt.current=!1}},[]);var Gt=DYe(),Ft=Gt.registerPath,cn=Gt.unregisterPath,_t=Gt.refreshOverflowKeys,jt=Gt.isSubPathKey,nn=Gt.getKeyPath,Ht=Gt.getKeys,Tt=Gt.getSubPathKeys,gt=f.useMemo(function(){return{registerPath:Ft,unregisterPath:cn}},[Ft,cn]),Ve=f.useMemo(function(){return{isSubPathKey:jt}},[jt]);f.useEffect(function(){_t($t?qg:Pe.slice(Wt+1).map(function(Rr){return Rr.key}))},[Wt,$t]);var Yt=er(D||R&&((n=Pe[0])===null||n===void 0?void 0:n.key),{value:D}),mt=Le(Yt,2),Mt=mt[0],zt=mt[1],Dn=C2(function(Rr){zt(Rr)}),Qn=C2(function(){zt(void 0)});f.useImperativeHandle(t,function(){return{list:be.current,focus:function(wn){var Pn,Ar=Ht(),bn=HF(Ar,Oe),Cn=bn.elements,nr=bn.key2element,Ir=bn.element2key,li=nW(be.current,Cn),Ui=Mt??(li[0]?Ir.get(li[0]):(Pn=Pe.find(function(fr){return!fr.props.disabled}))===null||Pn===void 0?void 0:Pn.key),gr=nr.get(Ui);if(Ui&&gr){var Di;gr==null||(Di=gr.focus)===null||Di===void 0||Di.call(gr,wn)}}}});var O=er(W||[],{value:q,postState:function(wn){return Array.isArray(wn)?wn:wn==null?qg:[wn]}}),j=Le(O,2),oe=j[0],Ae=j[1],Ge=function(wn){if(H){var Pn=wn.key,Ar=oe.includes(Pn),bn;z?Ar?bn=oe.filter(function(nr){return nr!==Pn}):bn=[].concat(pt(oe),[Pn]):bn=[Pn],Ae(bn);var Cn=X(X({},wn),{},{selectedKeys:bn});Ar?N==null||N(Cn):Z==null||Z(Cn)}!z&&se.length&&Qt!=="inline"&&Ye(qg)},ft=C2(function(Rr){_e==null||_e(L9(Rr)),Ge(Rr)}),Jt=C2(function(Rr,wn){var Pn=se.filter(function(bn){return bn!==Rr});if(wn)Pn.push(Rr);else if(Qt!=="inline"){var Ar=Tt(Rr);Pn=Pn.filter(function(bn){return!Ar.has(bn)})}ku(se,Pn,!0)||Ye(Pn,!0)}),on=function(wn,Pn){var Ar=Pn??!se.includes(wn);Jt(wn,Ar)},Zn=RYe(Qt,Mt,Se,Oe,be,Ht,nn,zt,on,xe);f.useEffect(function(){J(!0)},[]);var ni=f.useMemo(function(){return{_internalRenderMenuItem:we,_internalRenderSubMenuItem:De}},[we,De]),zr=Qt!=="horizontal"||C?Pe:Pe.map(function(Rr,wn){return f.createElement(p_,{key:Rr.key,overflowDisabled:wn>Wt},Rr)}),Yr=f.createElement(Td,st({id:m,ref:be,prefixCls:"".concat(o,"-overflow"),component:"ul",itemComponent:EE,className:Re(o,"".concat(o,"-root"),"".concat(o,"-").concat(Qt),l,ae(ae({},"".concat(o,"-inline-collapsed"),ut),"".concat(o,"-rtl"),Se),a),dir:p,style:s,role:"menu",tabIndex:u,data:zr,renderRawItem:function(wn){return wn},renderRawRest:function(wn){var Pn=wn.length,Ar=Pn?Pe.slice(-Pn):null;return f.createElement(XO,{eventKey:zF,title:me,disabled:$t,internalPopupClose:Pn===0,popupClassName:pe},Ar)},maxCount:Qt!=="horizontal"||C?Td.INVALIDATE:Td.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(wn){At(wn)},onKeyDown:Zn},Ce));return f.createElement(tW.Provider,{value:ni},f.createElement(y0e.Provider,{value:Oe},f.createElement(p_,{prefixCls:o,rootClassName:a,mode:Qt,openKeys:se,rtl:Se,disabled:b,motion:K?G:null,defaultMotions:K?ie:null,activeKey:Mt,onActive:Dn,onInactive:Qn,selectedKeys:oe,inlineIndent:V,subMenuOpenDelay:T,subMenuCloseDelay:E,forceSubMenuRender:k,builtinPlacements:ee,triggerSubMenuAction:fe,getPopupContainer:he,itemIcon:ne,expandIcon:ue,onItemClick:ft,onOpenChange:Jt},f.createElement(w0e.Provider,{value:Ve},Yr),f.createElement("div",{style:{display:"none"},"aria-hidden":!0},f.createElement(C0e.Provider,{value:gt},Ne)))))}),QS=aXe;QS.Item=EE;QS.SubMenu=XO;QS.ItemGroup=sW;QS.Divider=aW;var sXe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},lXe=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:sXe}))},lW=f.forwardRef(lXe),cXe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},uXe=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:cXe}))},Qb=f.forwardRef(uXe);const P0e=f.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),dXe=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:o,headerPadding:a,headerColor:s,footerPadding:l,fontSize:c,bodyBg:u,headerBg:d}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:u,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:o,padding:a,color:s,lineHeight:je(o),background:d,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:l,color:r,fontSize:c,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},M0e=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:o,marginXXS:a,colorTextLightSolid:s,colorBgContainer:l}=e,c=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${c}px`,headerColor:i,footerPadding:`${o}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+a*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:i}},I0e=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],$0e=Tr("Layout",e=>[dXe(e)],M0e,{deprecatedTokens:I0e}),fXe=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:o,triggerHeight:a,triggerColor:s,triggerBg:l,headerHeight:c,zeroTriggerWidth:u,zeroTriggerHeight:d,borderRadiusLG:h,lightSiderBg:p,lightTriggerColor:m,lightTriggerBg:v,bodyBg:y}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:a},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${o}-menu${o}-menu-inline-collapsed`]:{width:"auto"}},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:s,lineHeight:je(a),textAlign:"center",background:l,cursor:"pointer",transition:`all ${r}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:c,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:d,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${je(h)} ${je(h)} 0`,cursor:"pointer",transition:`background ${i} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${i}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${je(h)} 0 0 ${je(h)}`}}},"&-light":{background:p,[`${t}-trigger`]:{color:m,background:v},[`${t}-zero-width-trigger`]:{color:m,background:v,border:`1px solid ${y}`,borderInlineStart:0}}}}},hXe=Tr(["Layout","Sider"],e=>[fXe(e)],M0e,{deprecatedTokens:I0e});var pXe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const lee={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},mXe=e=>!Number.isNaN(Number.parseFloat(e))&&isFinite(e),QO=f.createContext({}),gXe=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),R0e=f.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:o,defaultCollapsed:a=!1,theme:s="dark",style:l={},collapsible:c=!1,reverseArrow:u=!1,width:d=200,collapsedWidth:h=80,zeroWidthTriggerStyle:p,breakpoint:m,onCollapse:v,onBreakpoint:y}=e,S=pXe(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:b}=f.useContext(P0e),[C,_]=f.useState("collapsed"in e?e.collapsed:a),[T,x]=f.useState(!1);f.useEffect(()=>{"collapsed"in e&&_(e.collapsed)},[e.collapsed]);const E=(ne,ue)=>{"collapsed"in e||_(ne),v==null||v(ne,ue)},{getPrefixCls:k,direction:M}=f.useContext(hn),P=k("layout-sider",n),[D,R,A]=hXe(P),H=f.useRef(null);H.current=ne=>{x(ne.matches),y==null||y(ne.matches),C!==ne.matches&&E(ne.matches,"responsive")},f.useEffect(()=>{function ne(ye){return H.current(ye)}let ue;if(typeof window<"u"){const{matchMedia:ye}=window;if(ye&&m&&m in lee){ue=ye(`screen and (max-width: ${lee[m]})`);try{ue.addEventListener("change",ne)}catch{ue.addListener(ne)}ne(ue)}}return()=>{try{ue==null||ue.removeEventListener("change",ne)}catch{ue==null||ue.removeListener(ne)}}},[m]),f.useEffect(()=>{const ne=gXe("ant-sider-");return b.addSider(ne),()=>b.removeSider(ne)},[]);const F=()=>{E(!C,"clickTrigger")},z=Pr(S,["collapsed"]),W=C?h:d,q=mXe(W)?`${W}px`:String(W),Z=parseFloat(String(h||0))===0?f.createElement("span",{onClick:F,className:Re(`${P}-zero-width-trigger`,`${P}-zero-width-trigger-${u?"right":"left"}`),style:p},i||f.createElement(lW,null)):null,N=M==="rtl"==!u,G={expanded:N?f.createElement(hp,null):f.createElement(Qb,null),collapsed:N?f.createElement(Qb,null):f.createElement(hp,null)}[C?"collapsed":"expanded"],ie=i!==null?Z||f.createElement("div",{className:`${P}-trigger`,onClick:F,style:{width:q}},i||G):null,ce=Object.assign(Object.assign({},l),{flex:`0 0 ${q}`,maxWidth:q,minWidth:q,width:q}),fe=Re(P,`${P}-${s}`,{[`${P}-collapsed`]:!!C,[`${P}-has-trigger`]:c&&i!==null&&!Z,[`${P}-below`]:!!T,[`${P}-zero-width`]:parseFloat(q)===0},r,R,A),ee=f.useMemo(()=>({siderCollapsed:C}),[C]);return D(f.createElement(QO.Provider,{value:ee},f.createElement("aside",Object.assign({className:fe},z,{style:ce,ref:t}),f.createElement("div",{className:`${P}-children`},o),c||T&&Z?ie:null)))});var vXe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},yXe=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:vXe}))},cW=f.forwardRef(yXe);const F9=f.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var bXe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const A0e=e=>{const{prefixCls:t,className:n,dashed:r}=e,i=bXe(e,["prefixCls","className","dashed"]),{getPrefixCls:o}=f.useContext(hn),a=o("menu",t),s=Re({[`${a}-item-divider-dashed`]:!!r},n);return f.createElement(aW,Object.assign({className:s},i))},N0e=e=>{var t;const{className:n,children:r,icon:i,title:o,danger:a,extra:s}=e,{prefixCls:l,firstLevel:c,direction:u,disableMenuItemTitleTooltip:d,inlineCollapsed:h}=f.useContext(F9),p=C=>{const _=r==null?void 0:r[0],T=f.createElement("span",{className:Re(`${l}-title-content`,{[`${l}-title-content-with-extra`]:!!s||s===0})},r);return(!i||f.isValidElement(r)&&r.type==="span")&&r&&C&&c&&typeof _=="string"?f.createElement("div",{className:`${l}-inline-collapsed-noicon`},_.charAt(0)):T},{siderCollapsed:m}=f.useContext(QO);let v=o;typeof o>"u"?v=c?r:"":o===!1&&(v="");const y={title:v};!m&&!h&&(y.title=null,y.open=!1);const S=zo(r).length;let b=f.createElement(EE,Object.assign({},Pr(e,["title","icon","danger"]),{className:Re({[`${l}-item-danger`]:a,[`${l}-item-only-child`]:(i?S+1:S)===1},n),title:typeof o=="string"?o:void 0}),Io(i,{className:Re(f.isValidElement(i)?(t=i.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),p(h));return d||(b=f.createElement(ea,Object.assign({},y,{placement:u==="rtl"?"left":"right",classNames:{root:`${l}-inline-collapsed-tooltip`}}),b)),b};var SXe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const j9=f.createContext(null),D0e=f.forwardRef((e,t)=>{const{children:n}=e,r=SXe(e,["children"]),i=f.useContext(j9),o=f.useMemo(()=>Object.assign(Object.assign({},i),r),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),a=QDe(n),s=Xd(t,a?mg(n):null);return f.createElement(j9.Provider,{value:o},f.createElement(Hd,{space:!0},a?f.cloneElement(n,{ref:s}):n))}),CXe=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:i,lineWidth:o,lineType:a,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${je(o)} ${a} ${i}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover,
|
||
> ${t}-item-active,
|
||
> ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},xXe=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,
|
||
${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${je(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${je(n)})`}}}}},cee=e=>Object.assign({},Fd(e)),uee=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:i,subMenuItemSelectedColor:o,groupTitleColor:a,itemBg:s,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:h,motionDurationSlow:p,motionEaseInOut:m,motionEaseOut:v,itemPaddingInline:y,motionDurationMid:S,itemHoverColor:b,lineType:C,colorSplit:_,itemDisabledColor:T,dangerItemColor:x,dangerItemHoverColor:E,dangerItemSelectedColor:k,dangerItemActiveBg:M,dangerItemSelectedBg:P,popupBg:D,itemHoverBg:R,itemActiveBg:A,menuSubMenuBg:H,horizontalItemSelectedColor:F,horizontalItemSelectedBg:z,horizontalItemBorderRadius:W,horizontalItemHoverBg:q}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:s,[`&${n}-root:focus-visible`]:Object.assign({},cee(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:a}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:o},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},cee(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${T} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:b}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:R},"&:active":{backgroundColor:A}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:R},"&:active":{backgroundColor:A}}},[`${n}-item-danger`]:{color:x,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:E}},[`&${n}-item:active`]:{background:M}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:k},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:P}},[`&${n}-submenu > ${n}`]:{backgroundColor:H},[`&${n}-popup > ${n}`]:{backgroundColor:D},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:D},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:h,marginTop:e.calc(h).mul(-1).equal(),marginBottom:0,borderRadius:W,"&::after":{position:"absolute",insetInline:y,bottom:0,borderBottom:`${je(u)} solid transparent`,transition:`border-color ${p} ${m}`,content:'""'},"&:hover, &-active, &-open":{background:q,"&::after":{borderBottomWidth:u,borderBottomColor:F}},"&-selected":{color:F,backgroundColor:z,"&:hover":{backgroundColor:z},"&::after":{borderBottomWidth:u,borderBottomColor:F}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${je(h)} ${C} ${_}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${je(d)} solid ${i}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${S} ${v}`,`opacity ${S} ${v}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:k}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${S} ${m}`,`opacity ${S} ${m}`].join(",")}}}}}},dee=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:o,marginXS:a,itemMarginBlock:s,itemWidth:l,itemPaddingInline:c}=e,u=e.calc(o).add(i).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:je(n),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:l},[`> ${t}-item,
|
||
> ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:je(n)},[`${t}-item-group-list ${t}-submenu-title,
|
||
${t}-submenu-title`]:{paddingInlineEnd:u}}},wXe=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:i,dropdownWidth:o,controlHeightLG:a,motionEaseOut:s,paddingXL:l,itemMarginInline:c,fontSizeLG:u,motionDurationFast:d,motionDurationSlow:h,paddingXS:p,boxShadowSecondary:m,collapsedWidth:v,collapsedIconSize:y}=e,S={height:r,lineHeight:je(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},dee(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},dee(e)),{boxShadow:m})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:o,maxHeight:`calc(100vh - ${je(e.calc(a).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${h}`,`background ${h}`,`padding ${d} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:S,[`& ${t}-item-group-title`]:{paddingInlineStart:l}},[`${t}-item`]:S}},{[`${t}-inline-collapsed`]:{width:v,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:"center"}}},[`> ${t}-item,
|
||
> ${t}-item-group > ${t}-item-group-list > ${t}-item,
|
||
> ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
|
||
> ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${je(e.calc(y).div(2).equal())} - ${je(c)})`,textOverflow:"clip",[`
|
||
${t}-submenu-arrow,
|
||
${t}-submenu-expand-icon
|
||
`]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:y,lineHeight:je(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:i}},[`${t}-item-group-title`]:Object.assign(Object.assign({},Gl),{paddingInline:p})}}]},fee=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:i,motionEaseOut:o,iconCls:a,iconSize:s,iconMarginInlineEnd:l}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${i}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${o}`,`margin ${n} ${i}`,`color ${n}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${n} ${i}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},Kv()),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},hee=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:i,menuArrowSize:o,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:o,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(o).mul(.6).equal(),height:e.calc(o).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:i,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${je(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${je(a)})`}}}}},_Xe=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:o,motionEaseInOut:a,paddingXS:s,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:d,borderRadiusLG:h,subMenuItemBorderRadius:p,menuArrowSize:m,menuArrowOffset:v,lineType:y,groupTitleLineHeight:S,groupTitleFontSize:b}=e;return[{"":{[n]:Object.assign(Object.assign({},Ld()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},$r(e)),Ld()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${i} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${je(s)} ${je(l)}`,fontSize:b,lineHeight:S,transition:`all ${i}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${i} ${a}`,`background ${i} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${i} ${a}`,`background ${i} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${i} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${i}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:y,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),fee(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${je(e.calc(r).mul(2).equal())} ${je(l)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:h,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:h},fee(e)),hee(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${i} ${a}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),hee(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
|
||
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${je(v)})`},"&::after":{transform:`rotate(45deg) translateX(${je(e.calc(v).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${je(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${je(e.calc(v).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${je(v)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},EXe=e=>{var t,n,r;const{colorPrimary:i,colorError:o,colorTextDisabled:a,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:u,colorFillAlter:d,colorFillContent:h,lineWidth:p,lineWidthBold:m,controlItemBgActive:v,colorBgTextHover:y,controlHeightLG:S,lineHeight:b,colorBgElevated:C,marginXXS:_,padding:T,fontSize:x,controlHeightSM:E,fontSizeLG:k,colorTextLightSolid:M,colorErrorHover:P}=e,D=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,R=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:p,A=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,H=new xr(M).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:l,itemColor:l,colorItemTextHover:l,itemHoverColor:l,colorItemTextHoverHorizontal:i,horizontalItemHoverColor:i,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:i,itemSelectedColor:i,subMenuItemSelectedColor:i,colorItemTextSelectedHorizontal:i,horizontalItemSelectedColor:i,colorItemBg:u,itemBg:u,colorItemBgHover:y,itemHoverBg:y,colorItemBgActive:h,itemActiveBg:v,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:v,itemSelectedBg:v,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:D,colorActiveBarHeight:m,activeBarHeight:m,colorActiveBarBorderSize:p,activeBarBorderWidth:R,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:o,dangerItemColor:o,colorDangerItemTextHover:o,dangerItemHoverColor:o,colorDangerItemTextSelected:o,dangerItemSelectedColor:o,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:A,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:S,groupTitleLineHeight:b,collapsedWidth:S*2,popupBg:C,itemMarginBlock:_,itemPaddingInline:T,horizontalLineHeight:`${S*1.15}px`,iconSize:x,iconMarginInlineEnd:E-x,collapsedIconSize:k,groupTitleFontSize:x,darkItemDisabledColor:new xr(M).setA(.25).toRgbString(),darkItemColor:H,darkDangerItemColor:o,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:M,darkItemSelectedBg:i,darkDangerItemSelectedBg:o,darkItemHoverBg:"transparent",darkGroupTitleColor:H,darkItemHoverColor:M,darkDangerItemHoverColor:P,darkDangerItemSelectedColor:M,darkDangerItemActiveBg:o,itemWidth:D?`calc(100% + ${R}px)`:`calc(100% - ${A*2}px)`}},TXe=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return Tr("Menu",i=>{const{colorBgElevated:o,controlHeightLG:a,fontSize:s,darkItemColor:l,darkDangerItemColor:c,darkItemBg:u,darkSubMenuItemBg:d,darkItemSelectedColor:h,darkItemSelectedBg:p,darkDangerItemSelectedBg:m,darkItemHoverBg:v,darkGroupTitleColor:y,darkItemHoverColor:S,darkItemDisabledColor:b,darkDangerItemHoverColor:C,darkDangerItemSelectedColor:_,darkDangerItemActiveBg:T,popupBg:x,darkPopupBg:E}=i,k=i.calc(s).div(7).mul(5).equal(),M=dr(i,{menuArrowSize:k,menuHorizontalHeight:i.calc(a).mul(1.15).equal(),menuArrowOffset:i.calc(k).mul(.25).equal(),menuSubMenuBg:o,calc:i.calc,popupBg:x}),P=dr(M,{itemColor:l,itemHoverColor:S,groupTitleColor:y,itemSelectedColor:h,itemBg:u,popupBg:E,subMenuItemBg:d,itemActiveBg:"transparent",itemSelectedBg:p,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:v,itemDisabledColor:b,dangerItemColor:c,dangerItemHoverColor:C,dangerItemSelectedColor:_,dangerItemActiveBg:T,dangerItemSelectedBg:m,menuSubMenuBg:d,horizontalItemSelectedColor:h,horizontalItemSelectedBg:p});return[_Xe(M),CXe(M),wXe(M),uee(M,"light"),uee(P,"dark"),xXe(M),vE(M),Kf(M,"slide-up"),Kf(M,"slide-down"),KS(M,"zoom-big")]},EXe,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t)},L0e=e=>{var t;const{popupClassName:n,icon:r,title:i,theme:o}=e,a=f.useContext(F9),{prefixCls:s,inlineCollapsed:l,theme:c}=a,u=XS();let d;if(!r)d=l&&!u.length&&i&&typeof i=="string"?f.createElement("div",{className:`${s}-inline-collapsed-noicon`},i.charAt(0)):f.createElement("span",{className:`${s}-title-content`},i);else{const m=f.isValidElement(i)&&i.type==="span";d=f.createElement(f.Fragment,null,Io(r,{className:Re(f.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),m?i:f.createElement("span",{className:`${s}-title-content`},i))}const h=f.useMemo(()=>Object.assign(Object.assign({},a),{firstLevel:!1}),[a]),[p]=Du("Menu");return f.createElement(F9.Provider,{value:h},f.createElement(XO,Object.assign({},Pr(e,["icon"]),{title:d,popupClassName:Re(s,n,`${s}-${o||c}`),popupStyle:Object.assign({zIndex:p},e.popupStyle)})))};var kXe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function IR(e){return e===null||e===!1}const OXe={item:N0e,submenu:L0e,divider:A0e},PXe=f.forwardRef((e,t)=>{var n;const r=f.useContext(j9),i=r||{},{getPrefixCls:o,getPopupContainer:a,direction:s,menu:l}=f.useContext(hn),c=o(),{prefixCls:u,className:d,style:h,theme:p="light",expandIcon:m,_internalDisableMenuItemTitleTooltip:v,inlineCollapsed:y,siderCollapsed:S,rootClassName:b,mode:C,selectable:_,onClick:T,overflowedIndicatorPopupClassName:x}=e,E=kXe(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),k=Pr(E,["collapsedWidth"]);(n=i.validator)===null||n===void 0||n.call(i,{mode:C});const M=ur(function(){var V;T==null||T.apply(void 0,arguments),(V=i.onClick)===null||V===void 0||V.call(i)}),P=i.mode||C,D=_??i.selectable,R=y??S,A={horizontal:{motionName:`${c}-slide-up`},inline:qb(c),other:{motionName:`${c}-zoom-big`}},H=o("menu",u||i.prefixCls),F=_i(H),[z,W,q]=TXe(H,F,!r),Z=Re(`${H}-${p}`,l==null?void 0:l.className,d),N=f.useMemo(()=>{var V,G;if(typeof m=="function"||IR(m))return m||null;if(typeof i.expandIcon=="function"||IR(i.expandIcon))return i.expandIcon||null;if(typeof(l==null?void 0:l.expandIcon)=="function"||IR(l==null?void 0:l.expandIcon))return(l==null?void 0:l.expandIcon)||null;const ie=(V=m??(i==null?void 0:i.expandIcon))!==null&&V!==void 0?V:l==null?void 0:l.expandIcon;return Io(ie,{className:Re(`${H}-submenu-expand-icon`,f.isValidElement(ie)?(G=ie.props)===null||G===void 0?void 0:G.className:void 0)})},[m,i==null?void 0:i.expandIcon,l==null?void 0:l.expandIcon,H]),B=f.useMemo(()=>({prefixCls:H,inlineCollapsed:R||!1,direction:s,firstLevel:!0,theme:p,mode:P,disableMenuItemTitleTooltip:v}),[H,R,s,v,p]);return z(f.createElement(j9.Provider,{value:null},f.createElement(F9.Provider,{value:B},f.createElement(QS,Object.assign({getPopupContainer:a,overflowedIndicator:f.createElement(cW,null),overflowedIndicatorPopupClassName:Re(H,`${H}-${p}`,x),mode:P,selectable:D,onClick:M},k,{inlineCollapsed:R,style:Object.assign(Object.assign({},l==null?void 0:l.style),h),className:Z,prefixCls:H,direction:s,defaultMotions:A,expandIcon:N,ref:t,rootClassName:Re(b,W,i.rootClassName,q,F),_internalComponents:OXe})))))}),Zd=f.forwardRef((e,t)=>{const n=f.useRef(null),r=f.useContext(QO);return f.useImperativeHandle(t,()=>({menu:n.current,focus:i=>{var o;(o=n.current)===null||o===void 0||o.focus(i)}})),f.createElement(PXe,Object.assign({ref:n},e,r))});Zd.Item=N0e;Zd.SubMenu=L0e;Zd.Divider=A0e;Zd.ItemGroup=sW;const MXe=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:i}=e,o=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${o}`]:{[`&${o}-danger:not(${o}-disabled)`]:{color:r,"&:hover":{color:i,backgroundColor:r}}}}}},IXe=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:i,sizePopupArrow:o,antCls:a,iconCls:s,motionDurationMid:l,paddingBlock:c,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:h,fontSizeIcon:p,controlPaddingHorizontal:m,colorBgElevated:v}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(o).div(2).sub(i).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${a}-btn`]:{[`& > ${s}-down, & > ${a}-btn-icon > ${s}-down`]:{fontSize:p}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${s}-down`]:{fontSize:p},[`${s}-down::before`]:{transition:`transform ${l}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,
|
||
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,
|
||
&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,
|
||
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,
|
||
&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,
|
||
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:kO},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,
|
||
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,
|
||
&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,
|
||
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,
|
||
&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,
|
||
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:PO},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,
|
||
&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,
|
||
&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:OO},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,
|
||
&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,
|
||
&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:MO}}},eW(e,v,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},$r(e)),{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:v,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},ml(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${je(c)} ${je(m)}`,color:e.colorTextDescription,transition:`all ${l}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${l}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${je(c)} ${je(m)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},ml(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:h,cursor:"not-allowed","&:hover":{color:h,backgroundColor:v,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${je(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:p,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${je(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(m).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:h,backgroundColor:v,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[Kf(e,"slide-up"),Kf(e,"slide-down"),Gb(e,"move-up"),Gb(e,"move-down"),KS(e,"zoom-big")]]},$Xe=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},qO({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),KO(e)),RXe=Tr("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:i}=e,o=dr(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[IXe(o),MXe(o)]},$Xe,{resetStyle:!1}),TE=e=>{var t;const{menu:n,arrow:r,prefixCls:i,children:o,trigger:a,disabled:s,dropdownRender:l,getPopupContainer:c,overlayClassName:u,rootClassName:d,overlayStyle:h,open:p,onOpenChange:m,visible:v,onVisibleChange:y,mouseEnterDelay:S=.15,mouseLeaveDelay:b=.1,autoAdjustOverflow:C=!0,placement:_="",overlay:T,transitionName:x}=e,{getPopupContainer:E,getPrefixCls:k,direction:M,dropdown:P}=f.useContext(hn);Jf();const D=f.useMemo(()=>{const he=k();return x!==void 0?x:_.includes("top")?`${he}-slide-down`:`${he}-slide-up`},[k,_,x]),R=f.useMemo(()=>_?_.includes("Center")?_.slice(0,_.indexOf("Center")):_:M==="rtl"?"bottomRight":"bottomLeft",[_,M]),A=k("dropdown",i),H=_i(A),[F,z,W]=RXe(A,H),[,q]=ta(),Z=f.Children.only(EYe(o)?f.createElement("span",null,o):o),N=Io(Z,{className:Re(`${A}-trigger`,{[`${A}-rtl`]:M==="rtl"},Z.props.className),disabled:(t=Z.props.disabled)!==null&&t!==void 0?t:s}),B=s?[]:a,V=!!(B!=null&&B.includes("contextMenu")),[G,ie]=er(!1,{value:p??v}),ce=ur(he=>{m==null||m(he,{source:"trigger"}),y==null||y(he),ie(he)}),fe=Re(u,d,z,W,H,P==null?void 0:P.className,{[`${A}-rtl`]:M==="rtl"}),ee=c0e({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:C,offset:q.marginXXS,arrowWidth:r?q.sizePopupArrow:0,borderRadius:q.borderRadius}),ne=f.useCallback(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(m==null||m(!1,{source:"menu"}),ie(!1))},[n==null?void 0:n.selectable,n==null?void 0:n.multiple]),ue=()=>{let he;return n!=null&&n.items?he=f.createElement(Zd,Object.assign({},n)):typeof T=="function"?he=T():he=T,l&&(he=l(he)),he=f.Children.only(typeof he=="string"?f.createElement("span",null,he):he),f.createElement(D0e,{prefixCls:`${A}-menu`,rootClassName:Re(W,H),expandIcon:f.createElement("span",{className:`${A}-menu-submenu-arrow`},f.createElement(hp,{className:`${A}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:ne,validator:_e=>{}},he)},[ye,me]=Du("Dropdown",h==null?void 0:h.zIndex);let pe=f.createElement(v0e,Object.assign({alignPoint:V},Pr(e,["rootClassName"]),{mouseEnterDelay:S,mouseLeaveDelay:b,visible:G,builtinPlacements:ee,arrow:!!r,overlayClassName:fe,prefixCls:A,getPopupContainer:c||E,transitionName:D,trigger:B,overlay:ue,placement:R,onVisibleChange:ce,overlayStyle:Object.assign(Object.assign(Object.assign({},P==null?void 0:P.style),h),{zIndex:ye})}),N);return ye&&(pe=f.createElement(pE.Provider,{value:me},pe)),F(pe)},AXe=vg(TE,"align",void 0,"dropdown",e=>e),NXe=e=>f.createElement(AXe,Object.assign({},e),f.createElement("span",null));TE._InternalPanelDoNotUseOrYouWillBeFired=NXe;const ZO=e=>{let{children:t}=e;const{getPrefixCls:n}=f.useContext(hn),r=n("breadcrumb");return f.createElement("li",{className:`${r}-separator`,"aria-hidden":"true"},t===""?t:t||"/")};ZO.__ANT_BREADCRUMB_SEPARATOR=!0;var DXe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function LXe(e,t){if(e.title===void 0||e.title===null)return null;const n=Object.keys(t).join("|");return typeof e.title=="object"?e.title:String(e.title).replace(new RegExp(`:(${n})`,"g"),(r,i)=>t[i]||r)}function F0e(e,t,n,r){if(n==null)return null;const{className:i,onClick:o}=t,a=DXe(t,["className","onClick"]),s=Object.assign(Object.assign({},Bi(a,{data:!0,aria:!0})),{onClick:o});return r!==void 0?f.createElement("a",Object.assign({},s,{className:Re(`${e}-link`,i),href:r}),n):f.createElement("span",Object.assign({},s,{className:Re(`${e}-link`,i)}),n)}function FXe(e,t){return(r,i,o,a,s)=>{if(t)return t(r,i,o,a);const l=LXe(r,i);return F0e(e,r,l,s)}}var WF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const j0e=e=>{const{prefixCls:t,separator:n="/",children:r,menu:i,overlay:o,dropdownProps:a,href:s}=e,c=(u=>{if(i||o){const d=Object.assign({},a);if(i){const h=i||{},{items:p}=h,m=WF(h,["items"]);d.menu=Object.assign(Object.assign({},m),{items:p==null?void 0:p.map((v,y)=>{var{key:S,title:b,label:C,path:_}=v,T=WF(v,["key","title","label","path"]);let x=C??b;return _&&(x=f.createElement("a",{href:`${s}${_}`},x)),Object.assign(Object.assign({},T),{key:S??y,label:x})})})}else o&&(d.overlay=o);return f.createElement(TE,Object.assign({placement:"bottom"},d),f.createElement("span",{className:`${t}-overlay-link`},u,f.createElement(_E,null)))}return u})(r);return c!=null?f.createElement(f.Fragment,null,f.createElement("li",null,c),n&&f.createElement(ZO,null,n)):null},B0e=e=>{const{prefixCls:t,children:n,href:r}=e,i=WF(e,["prefixCls","children","href"]),{getPrefixCls:o}=f.useContext(hn),a=o("breadcrumb",t);return f.createElement(j0e,Object.assign({},i,{prefixCls:a}),F0e(a,i,n,r))};B0e.__ANT_BREADCRUMB_ITEM=!0;const jXe=e=>{const{componentCls:t,iconCls:n,calc:r}=e;return{[t]:Object.assign(Object.assign({},$r(e)),{color:e.itemColor,fontSize:e.fontSize,[n]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${je(e.paddingXXS)}`,borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",marginInline:r(e.marginXXS).mul(-1).equal(),"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},ml(e)),"li:last-child":{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[`
|
||
> ${n} + span,
|
||
> ${n} + a
|
||
`]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",padding:`0 ${je(e.paddingXXS)}`,marginInline:r(e.marginXXS).mul(-1).equal(),[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},BXe=e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}),HXe=Tr("Breadcrumb",e=>{const t=dr(e,{});return jXe(t)},BXe);var pee=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function zXe(e){const{breadcrumbName:t,children:n}=e,r=pee(e,["breadcrumbName","children"]),i=Object.assign({title:t},r);return n&&(i.menu={items:n.map(o=>{var{breadcrumbName:a}=o,s=pee(o,["breadcrumbName"]);return Object.assign(Object.assign({},s),{title:a})})}),i}function UXe(e,t){return f.useMemo(()=>e||(t?t.map(zXe):null),[e,t])}var WXe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const VXe=(e,t)=>{if(t===void 0)return t;let n=(t||"").replace(/^\//,"");return Object.keys(e).forEach(r=>{n=n.replace(`:${r}`,e[r])}),n},uW=e=>{const{prefixCls:t,separator:n="/",style:r,className:i,rootClassName:o,routes:a,items:s,children:l,itemRender:c,params:u={}}=e,d=WXe(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:h,direction:p,breadcrumb:m}=f.useContext(hn);let v;const y=h("breadcrumb",t),[S,b,C]=HXe(y),_=UXe(s,a),T=FXe(y,c);if(_&&_.length>0){const k=[],M=s||a;v=_.map((P,D)=>{const{path:R,key:A,type:H,menu:F,overlay:z,onClick:W,className:q,separator:Z,dropdownProps:N}=P,B=VXe(u,R);B!==void 0&&k.push(B);const V=A??D;if(H==="separator")return f.createElement(ZO,{key:V},Z);const G={},ie=D===_.length-1;F?G.menu=F:z&&(G.overlay=z);let{href:ce}=P;return k.length&&B!==void 0&&(ce=`#/${k.join("/")}`),f.createElement(j0e,Object.assign({key:V},G,Bi(P,{data:!0,aria:!0}),{className:q,dropdownProps:N,href:ce,separator:ie?"":n,onClick:W,prefixCls:y}),T(P,u,M,k,ce))})}else if(l){const k=zo(l).length;v=zo(l).map((M,P)=>{if(!M)return M;const D=P===k-1;return Io(M,{separator:D?"":n,key:P})})}const x=Re(y,m==null?void 0:m.className,{[`${y}-rtl`]:p==="rtl"},i,o,b,C),E=Object.assign(Object.assign({},m==null?void 0:m.style),r);return S(f.createElement("nav",Object.assign({className:x,style:E},d),f.createElement("ol",null,v)))};uW.Item=B0e;uW.Separator=ZO;var H0e={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(vo,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",s="minute",l="hour",c="day",u="week",d="month",h="quarter",p="year",m="date",v="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(H){var F=["th","st","nd","rd"],z=H%100;return"["+H+(F[(z-20)%10]||F[z]||F[0])+"]"}},C=function(H,F,z){var W=String(H);return!W||W.length>=F?H:""+Array(F+1-W.length).join(z)+H},_={s:C,z:function(H){var F=-H.utcOffset(),z=Math.abs(F),W=Math.floor(z/60),q=z%60;return(F<=0?"+":"-")+C(W,2,"0")+":"+C(q,2,"0")},m:function H(F,z){if(F.date()<z.date())return-H(z,F);var W=12*(z.year()-F.year())+(z.month()-F.month()),q=F.clone().add(W,d),Z=z-q<0,N=F.clone().add(W+(Z?-1:1),d);return+(-(W+(z-q)/(Z?q-N:N-q))||0)},a:function(H){return H<0?Math.ceil(H)||0:Math.floor(H)},p:function(H){return{M:d,y:p,w:u,d:c,D:m,h:l,m:s,s:a,ms:o,Q:h}[H]||String(H||"").toLowerCase().replace(/s$/,"")},u:function(H){return H===void 0}},T="en",x={};x[T]=b;var E="$isDayjsObject",k=function(H){return H instanceof R||!(!H||!H[E])},M=function H(F,z,W){var q;if(!F)return T;if(typeof F=="string"){var Z=F.toLowerCase();x[Z]&&(q=Z),z&&(x[Z]=z,q=Z);var N=F.split("-");if(!q&&N.length>1)return H(N[0])}else{var B=F.name;x[B]=F,q=B}return!W&&q&&(T=q),q||!W&&T},P=function(H,F){if(k(H))return H.clone();var z=typeof F=="object"?F:{};return z.date=H,z.args=arguments,new R(z)},D=_;D.l=M,D.i=k,D.w=function(H,F){return P(H,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var R=function(){function H(z){this.$L=M(z.locale,null,!0),this.parse(z),this.$x=this.$x||z.x||{},this[E]=!0}var F=H.prototype;return F.parse=function(z){this.$d=function(W){var q=W.date,Z=W.utc;if(q===null)return new Date(NaN);if(D.u(q))return new Date;if(q instanceof Date)return new Date(q);if(typeof q=="string"&&!/Z$/i.test(q)){var N=q.match(y);if(N){var B=N[2]-1||0,V=(N[7]||"0").substring(0,3);return Z?new Date(Date.UTC(N[1],B,N[3]||1,N[4]||0,N[5]||0,N[6]||0,V)):new Date(N[1],B,N[3]||1,N[4]||0,N[5]||0,N[6]||0,V)}}return new Date(q)}(z),this.init()},F.init=function(){var z=this.$d;this.$y=z.getFullYear(),this.$M=z.getMonth(),this.$D=z.getDate(),this.$W=z.getDay(),this.$H=z.getHours(),this.$m=z.getMinutes(),this.$s=z.getSeconds(),this.$ms=z.getMilliseconds()},F.$utils=function(){return D},F.isValid=function(){return this.$d.toString()!==v},F.isSame=function(z,W){var q=P(z);return this.startOf(W)<=q&&q<=this.endOf(W)},F.isAfter=function(z,W){return P(z)<this.startOf(W)},F.isBefore=function(z,W){return this.endOf(W)<P(z)},F.$g=function(z,W,q){return D.u(z)?this[W]:this.set(q,z)},F.unix=function(){return Math.floor(this.valueOf()/1e3)},F.valueOf=function(){return this.$d.getTime()},F.startOf=function(z,W){var q=this,Z=!!D.u(W)||W,N=D.p(z),B=function(ue,ye){var me=D.w(q.$u?Date.UTC(q.$y,ye,ue):new Date(q.$y,ye,ue),q);return Z?me:me.endOf(c)},V=function(ue,ye){return D.w(q.toDate()[ue].apply(q.toDate("s"),(Z?[0,0,0,0]:[23,59,59,999]).slice(ye)),q)},G=this.$W,ie=this.$M,ce=this.$D,fe="set"+(this.$u?"UTC":"");switch(N){case p:return Z?B(1,0):B(31,11);case d:return Z?B(1,ie):B(0,ie+1);case u:var ee=this.$locale().weekStart||0,ne=(G<ee?G+7:G)-ee;return B(Z?ce-ne:ce+(6-ne),ie);case c:case m:return V(fe+"Hours",0);case l:return V(fe+"Minutes",1);case s:return V(fe+"Seconds",2);case a:return V(fe+"Milliseconds",3);default:return this.clone()}},F.endOf=function(z){return this.startOf(z,!1)},F.$set=function(z,W){var q,Z=D.p(z),N="set"+(this.$u?"UTC":""),B=(q={},q[c]=N+"Date",q[m]=N+"Date",q[d]=N+"Month",q[p]=N+"FullYear",q[l]=N+"Hours",q[s]=N+"Minutes",q[a]=N+"Seconds",q[o]=N+"Milliseconds",q)[Z],V=Z===c?this.$D+(W-this.$W):W;if(Z===d||Z===p){var G=this.clone().set(m,1);G.$d[B](V),G.init(),this.$d=G.set(m,Math.min(this.$D,G.daysInMonth())).$d}else B&&this.$d[B](V);return this.init(),this},F.set=function(z,W){return this.clone().$set(z,W)},F.get=function(z){return this[D.p(z)]()},F.add=function(z,W){var q,Z=this;z=Number(z);var N=D.p(W),B=function(ie){var ce=P(Z);return D.w(ce.date(ce.date()+Math.round(ie*z)),Z)};if(N===d)return this.set(d,this.$M+z);if(N===p)return this.set(p,this.$y+z);if(N===c)return B(1);if(N===u)return B(7);var V=(q={},q[s]=r,q[l]=i,q[a]=n,q)[N]||1,G=this.$d.getTime()+z*V;return D.w(G,this)},F.subtract=function(z,W){return this.add(-1*z,W)},F.format=function(z){var W=this,q=this.$locale();if(!this.isValid())return q.invalidDate||v;var Z=z||"YYYY-MM-DDTHH:mm:ssZ",N=D.z(this),B=this.$H,V=this.$m,G=this.$M,ie=q.weekdays,ce=q.months,fe=q.meridiem,ee=function(ye,me,pe,he){return ye&&(ye[me]||ye(W,Z))||pe[me].slice(0,he)},ne=function(ye){return D.s(B%12||12,ye,"0")},ue=fe||function(ye,me,pe){var he=ye<12?"AM":"PM";return pe?he.toLowerCase():he};return Z.replace(S,function(ye,me){return me||function(pe){switch(pe){case"YY":return String(W.$y).slice(-2);case"YYYY":return D.s(W.$y,4,"0");case"M":return G+1;case"MM":return D.s(G+1,2,"0");case"MMM":return ee(q.monthsShort,G,ce,3);case"MMMM":return ee(ce,G);case"D":return W.$D;case"DD":return D.s(W.$D,2,"0");case"d":return String(W.$W);case"dd":return ee(q.weekdaysMin,W.$W,ie,2);case"ddd":return ee(q.weekdaysShort,W.$W,ie,3);case"dddd":return ie[W.$W];case"H":return String(B);case"HH":return D.s(B,2,"0");case"h":return ne(1);case"hh":return ne(2);case"a":return ue(B,V,!0);case"A":return ue(B,V,!1);case"m":return String(V);case"mm":return D.s(V,2,"0");case"s":return String(W.$s);case"ss":return D.s(W.$s,2,"0");case"SSS":return D.s(W.$ms,3,"0");case"Z":return N}return null}(ye)||N.replace(":","")})},F.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},F.diff=function(z,W,q){var Z,N=this,B=D.p(W),V=P(z),G=(V.utcOffset()-this.utcOffset())*r,ie=this-V,ce=function(){return D.m(N,V)};switch(B){case p:Z=ce()/12;break;case d:Z=ce();break;case h:Z=ce()/3;break;case u:Z=(ie-G)/6048e5;break;case c:Z=(ie-G)/864e5;break;case l:Z=ie/i;break;case s:Z=ie/r;break;case a:Z=ie/n;break;default:Z=ie}return q?Z:D.a(Z)},F.daysInMonth=function(){return this.endOf(d).$D},F.$locale=function(){return x[this.$L]},F.locale=function(z,W){if(!z)return this.$L;var q=this.clone(),Z=M(z,W,!0);return Z&&(q.$L=Z),q},F.clone=function(){return D.w(this.$d,this)},F.toDate=function(){return new Date(this.valueOf())},F.toJSON=function(){return this.isValid()?this.toISOString():null},F.toISOString=function(){return this.$d.toISOString()},F.toString=function(){return this.$d.toUTCString()},H}(),A=R.prototype;return P.prototype=A,[["$ms",o],["$s",a],["$m",s],["$H",l],["$W",c],["$M",d],["$y",p],["$D",m]].forEach(function(H){A[H[1]]=function(F){return this.$g(F,H[0],H[1])}}),P.extend=function(H,F){return H.$i||(H(F,R,P),H.$i=!0),P},P.locale=M,P.isDayjs=k,P.unix=function(H){return P(1e3*H)},P.en=x[T],P.Ls=x,P.p={},P})})(H0e);var z0e=H0e.exports;const Fr=vi(z0e);var U0e={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(vo,function(){return function(n,r){r.prototype.weekday=function(i){var o=this.$locale().weekStart||0,a=this.$W,s=(a<o?a+7:a)-o;return this.$utils().u(i)?s:this.subtract(s,"day").add(i,"day")}}})})(U0e);var KXe=U0e.exports;const W0e=vi(KXe);var V0e={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(vo,function(){return function(n,r,i){var o=r.prototype,a=function(d){return d&&(d.indexOf?d:d.s)},s=function(d,h,p,m,v){var y=d.name?d:d.$locale(),S=a(y[h]),b=a(y[p]),C=S||b.map(function(T){return T.slice(0,m)});if(!v)return C;var _=y.weekStart;return C.map(function(T,x){return C[(x+(_||0))%7]})},l=function(){return i.Ls[i.locale()]},c=function(d,h){return d.formats[h]||function(p){return p.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(m,v,y){return v||y.slice(1)})}(d.formats[h.toUpperCase()])},u=function(){var d=this;return{months:function(h){return h?h.format("MMMM"):s(d,"months")},monthsShort:function(h){return h?h.format("MMM"):s(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):s(d,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):s(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):s(d,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return c(d.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return u.bind(this)()},i.localeData=function(){var d=l();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return i.weekdays()},weekdaysShort:function(){return i.weekdaysShort()},weekdaysMin:function(){return i.weekdaysMin()},months:function(){return i.months()},monthsShort:function(){return i.monthsShort()},longDateFormat:function(h){return c(d,h)},meridiem:d.meridiem,ordinal:d.ordinal}},i.months=function(){return s(l(),"months")},i.monthsShort=function(){return s(l(),"monthsShort","months",3)},i.weekdays=function(d){return s(l(),"weekdays",null,null,d)},i.weekdaysShort=function(d){return s(l(),"weekdaysShort","weekdays",3,d)},i.weekdaysMin=function(d){return s(l(),"weekdaysMin","weekdays",2,d)}}})})(V0e);var qXe=V0e.exports;const K0e=vi(qXe);var q0e={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(vo,function(){var n="week",r="year";return function(i,o,a){var s=o.prototype;s.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var u=a(this).startOf(r).add(1,r).date(c),d=a(this).endOf(n);if(u.isBefore(d))return 1}var h=a(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),p=this.diff(h,n,!0);return p<0?a(this).startOf("week").week():Math.ceil(p)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(q0e);var GXe=q0e.exports;const dW=vi(GXe);var G0e={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(vo,function(){return function(n,r){r.prototype.weekYear=function(){var i=this.month(),o=this.week(),a=this.year();return o===1&&i===11?a+1:i===0&&o>=52?a-1:a}}})})(G0e);var YXe=G0e.exports;const XXe=vi(YXe);var Y0e={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(vo,function(){return function(n,r){var i=r.prototype,o=i.format;i.format=function(a){var s=this,l=this.$locale();if(!this.isValid())return o.bind(this)(a);var c=this.$utils(),u=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(d){switch(d){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return l.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return l.ordinal(s.week(),"W");case"w":case"ww":return c.s(s.week(),d==="w"?1:2,"0");case"W":case"WW":return c.s(s.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return c.s(String(s.$H===0?24:s.$H),d==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return d}});return o.bind(this)(u)}}})})(Y0e);var QXe=Y0e.exports;const X0e=vi(QXe);var Q0e={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(vo,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,o=/\d\d/,a=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,l={},c=function(y){return(y=+y)+(y>68?1900:2e3)},u=function(y){return function(S){this[y]=+S}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=function(S){if(!S||S==="Z")return 0;var b=S.match(/([+-]|\d\d)/g),C=60*b[1]+(+b[2]||0);return C===0?0:b[0]==="+"?-C:C}(y)}],h=function(y){var S=l[y];return S&&(S.indexOf?S:S.s.concat(S.f))},p=function(y,S){var b,C=l.meridiem;if(C){for(var _=1;_<=24;_+=1)if(y.indexOf(C(_,0,S))>-1){b=_>12;break}}else b=y===(S?"pm":"PM");return b},m={A:[s,function(y){this.afternoon=p(y,!1)}],a:[s,function(y){this.afternoon=p(y,!0)}],Q:[i,function(y){this.month=3*(y-1)+1}],S:[i,function(y){this.milliseconds=100*+y}],SS:[o,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[a,u("seconds")],ss:[a,u("seconds")],m:[a,u("minutes")],mm:[a,u("minutes")],H:[a,u("hours")],h:[a,u("hours")],HH:[a,u("hours")],hh:[a,u("hours")],D:[a,u("day")],DD:[o,u("day")],Do:[s,function(y){var S=l.ordinal,b=y.match(/\d+/);if(this.day=b[0],S)for(var C=1;C<=31;C+=1)S(C).replace(/\[|\]/g,"")===y&&(this.day=C)}],w:[a,u("week")],ww:[o,u("week")],M:[a,u("month")],MM:[o,u("month")],MMM:[s,function(y){var S=h("months"),b=(h("monthsShort")||S.map(function(C){return C.slice(0,3)})).indexOf(y)+1;if(b<1)throw new Error;this.month=b%12||b}],MMMM:[s,function(y){var S=h("months").indexOf(y)+1;if(S<1)throw new Error;this.month=S%12||S}],Y:[/[+-]?\d+/,u("year")],YY:[o,function(y){this.year=c(y)}],YYYY:[/\d{4}/,u("year")],Z:d,ZZ:d};function v(y){var S,b;S=y,b=l&&l.formats;for(var C=(y=S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(P,D,R){var A=R&&R.toUpperCase();return D||b[R]||n[R]||b[A].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(H,F,z){return F||z.slice(1)})})).match(r),_=C.length,T=0;T<_;T+=1){var x=C[T],E=m[x],k=E&&E[0],M=E&&E[1];C[T]=M?{regex:k,parser:M}:x.replace(/^\[|\]$/g,"")}return function(P){for(var D={},R=0,A=0;R<_;R+=1){var H=C[R];if(typeof H=="string")A+=H.length;else{var F=H.regex,z=H.parser,W=P.slice(A),q=F.exec(W)[0];z.call(D,q),P=P.replace(q,"")}}return function(Z){var N=Z.afternoon;if(N!==void 0){var B=Z.hours;N?B<12&&(Z.hours+=12):B===12&&(Z.hours=0),delete Z.afternoon}}(D),D}}return function(y,S,b){b.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(c=y.parseTwoDigitYear);var C=S.prototype,_=C.parse;C.parse=function(T){var x=T.date,E=T.utc,k=T.args;this.$u=E;var M=k[1];if(typeof M=="string"){var P=k[2]===!0,D=k[3]===!0,R=P||D,A=k[2];D&&(A=k[2]),l=this.$locale(),!P&&A&&(l=b.Ls[A]),this.$d=function(W,q,Z,N){try{if(["x","X"].indexOf(q)>-1)return new Date((q==="X"?1e3:1)*W);var B=v(q)(W),V=B.year,G=B.month,ie=B.day,ce=B.hours,fe=B.minutes,ee=B.seconds,ne=B.milliseconds,ue=B.zone,ye=B.week,me=new Date,pe=ie||(V||G?1:me.getDate()),he=V||me.getFullYear(),_e=0;V&&!G||(_e=G>0?G-1:me.getMonth());var le,xe=ce||0,we=fe||0,De=ee||0,Fe=ne||0;return ue?new Date(Date.UTC(he,_e,pe,xe,we,De,Fe+60*ue.offset*1e3)):Z?new Date(Date.UTC(he,_e,pe,xe,we,De,Fe)):(le=new Date(he,_e,pe,xe,we,De,Fe),ye&&(le=N(le).week(ye).toDate()),le)}catch{return new Date("")}}(x,M,E,b),this.init(),A&&A!==!0&&(this.$L=this.locale(A).$L),R&&x!=this.format(M)&&(this.$d=new Date("")),l={}}else if(M instanceof Array)for(var H=M.length,F=1;F<=H;F+=1){k[1]=M[F-1];var z=b.apply(this,k);if(z.isValid()){this.$d=z.$d,this.$L=z.$L,this.init();break}F===H&&(this.$d=new Date(""))}else _.call(this,T)}}})})(Q0e);var ZXe=Q0e.exports;const Z0e=vi(ZXe);Fr.extend(Z0e);Fr.extend(X0e);Fr.extend(W0e);Fr.extend(K0e);Fr.extend(dW);Fr.extend(XXe);Fr.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(o){var a=(o||"").replace("Wo","wo");return r.bind(this)(a)}});var JXe={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},Gg=function(t){var n=JXe[t];return n||t.split("_")[0]},eQe={getNow:function(){var t=Fr();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return Fr(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var n=t.locale("en");return n.weekday()+n.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,n){return t.add(n,"year")},addMonth:function(t,n){return t.add(n,"month")},addDate:function(t,n){return t.add(n,"day")},setYear:function(t,n){return t.year(n)},setMonth:function(t,n){return t.month(n)},setDate:function(t,n){return t.date(n)},setHour:function(t,n){return t.hour(n)},setMinute:function(t,n){return t.minute(n)},setSecond:function(t,n){return t.second(n)},setMillisecond:function(t,n){return t.millisecond(n)},isAfter:function(t,n){return t.isAfter(n)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return Fr().locale(Gg(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(Gg(t)).weekday(0)},getWeek:function(t,n){return n.locale(Gg(t)).week()},getShortWeekDays:function(t){return Fr().locale(Gg(t)).localeData().weekdaysMin()},getShortMonths:function(t){return Fr().locale(Gg(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(Gg(t)).format(r)},parse:function(t,n,r){for(var i=Gg(t),o=0;o<r.length;o+=1){var a=r[o],s=n;if(a.includes("wo")||a.includes("Wo")){for(var l=s.split("-")[0],c=s.split("-")[1],u=Fr(l,"YYYY").startOf("year").locale(i),d=0;d<=52;d+=1){var h=u.add(d,"week");if(h.format("Wo")===c)return h}return null}var p=Fr(s,a,!0).locale(i);if(p.isValid())return p}return null}}};function JO(e,t){return e!==void 0?e:t?"bottomRight":"bottomLeft"}function J0e(e,t){var n=JO(e,t),r=n==null?void 0:n.toLowerCase().endsWith("right"),i=r?"insetInlineEnd":"insetInlineStart";return t&&(i=["insetInlineStart","insetInlineEnd"].find(function(o){return o!==i})),i}var Jd=f.createContext(null),tQe={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function eye(e){var t=e.popupElement,n=e.popupStyle,r=e.popupClassName,i=e.popupAlign,o=e.transitionName,a=e.getPopupContainer,s=e.children,l=e.range,c=e.placement,u=e.builtinPlacements,d=u===void 0?tQe:u,h=e.direction,p=e.visible,m=e.onClose,v=f.useContext(Jd),y=v.prefixCls,S="".concat(y,"-dropdown"),b=JO(c,h==="rtl");return f.createElement(wE,{showAction:[],hideAction:["click"],popupPlacement:b,builtinPlacements:d,prefixCls:S,popupTransitionName:o,popup:t,popupAlign:i,popupVisible:p,popupClassName:Re(r,ae(ae({},"".concat(S,"-range"),l),"".concat(S,"-rtl"),h==="rtl")),popupStyle:n,stretch:"minWidth",getPopupContainer:a,onPopupVisibleChange:function(_){_||m()}},s)}function fW(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length<t;)r="".concat(n).concat(r);return r}function Yv(e){return e==null?[]:Array.isArray(e)?e:[e]}function ew(e,t,n){var r=pt(e);return r[t]=n,r}function eP(e,t){var n={},r=t||Object.keys(e);return r.forEach(function(i){e[i]!==void 0&&(n[i]=e[i])}),n}function tye(e,t,n){if(n)return n;switch(e){case"time":return t.fieldTimeFormat;case"datetime":return t.fieldDateTimeFormat;case"month":return t.fieldMonthFormat;case"year":return t.fieldYearFormat;case"quarter":return t.fieldQuarterFormat;case"week":return t.fieldWeekFormat;default:return t.fieldDateFormat}}function nye(e,t,n){var r=n!==void 0?n:t[t.length-1],i=t.find(function(o){return e[o]});return r!==i?e[i]:void 0}function rye(e){return eP(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function hW(e,t,n,r){var i=f.useMemo(function(){return e||function(a,s){var l=a;return t&&s.type==="date"?t(l,s.today):n&&s.type==="month"?n(l,s.locale):s.originNode}},[e,n,t]),o=f.useCallback(function(a,s){return i(a,X(X({},s),{},{range:r}))},[i,r]);return o}function iye(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=f.useState([!1,!1]),i=Le(r,2),o=i[0],a=i[1],s=function(u,d){a(function(h){return ew(h,d,u)})},l=f.useMemo(function(){return o.map(function(c,u){if(c)return!0;var d=e[u];return d?!!(!n[u]&&!d||d&&t(d,{activeIndex:u})):!1})},[e,o,t,n]);return[l,s]}function oye(e,t,n,r,i){var o="",a=[];return e&&a.push(i?"hh":"HH"),t&&a.push("mm"),n&&a.push("ss"),o=a.join(":"),r&&(o+=".SSS"),i&&(o+=" A"),o}function nQe(e,t,n,r,i,o){var a=e.fieldDateTimeFormat,s=e.fieldDateFormat,l=e.fieldTimeFormat,c=e.fieldMonthFormat,u=e.fieldYearFormat,d=e.fieldWeekFormat,h=e.fieldQuarterFormat,p=e.yearFormat,m=e.cellYearFormat,v=e.cellQuarterFormat,y=e.dayFormat,S=e.cellDateFormat,b=oye(t,n,r,i,o);return X(X({},e),{},{fieldDateTimeFormat:a||"YYYY-MM-DD ".concat(b),fieldDateFormat:s||"YYYY-MM-DD",fieldTimeFormat:l||b,fieldMonthFormat:c||"YYYY-MM",fieldYearFormat:u||"YYYY",fieldWeekFormat:d||"gggg-wo",fieldQuarterFormat:h||"YYYY-[Q]Q",yearFormat:p||"YYYY",cellYearFormat:m||"YYYY",cellQuarterFormat:v||"[Q]Q",cellDateFormat:S||y||"D"})}function aye(e,t){var n=t.showHour,r=t.showMinute,i=t.showSecond,o=t.showMillisecond,a=t.use12Hours;return ge.useMemo(function(){return nQe(e,n,r,i,o,a)},[e,n,r,i,o,a])}function Fx(e,t,n){return n??t.some(function(r){return e.includes(r)})}var rQe=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function iQe(e){var t=eP(e,rQe),n=e.format,r=e.picker,i=null;return n&&(i=n,Array.isArray(i)&&(i=i[0]),i=ln(i)==="object"?i.format:i),r==="time"&&(t.format=i),[t,i]}function oQe(e){return e&&typeof e=="string"}function sye(e,t,n,r){return[e,t,n,r].some(function(i){return i!==void 0})}function lye(e,t,n,r,i){var o=t,a=n,s=r;if(!e&&!o&&!a&&!s&&!i)o=!0,a=!0,s=!0;else if(e){var l,c,u,d=[o,a,s].some(function(m){return m===!1}),h=[o,a,s].some(function(m){return m===!0}),p=d?!0:!h;o=(l=o)!==null&&l!==void 0?l:p,a=(c=a)!==null&&c!==void 0?c:p,s=(u=s)!==null&&u!==void 0?u:p}return[o,a,s,i]}function cye(e){var t=e.showTime,n=iQe(e),r=Le(n,2),i=r[0],o=r[1],a=t&&ln(t)==="object"?t:{},s=X(X({defaultOpenValue:a.defaultOpenValue||a.defaultValue},i),a),l=s.showMillisecond,c=s.showHour,u=s.showMinute,d=s.showSecond,h=sye(c,u,d,l),p=lye(h,c,u,d,l),m=Le(p,3);return c=m[0],u=m[1],d=m[2],[s,X(X({},s),{},{showHour:c,showMinute:u,showSecond:d,showMillisecond:l}),s.format,o]}function uye(e,t,n,r,i){var o=e==="time";if(e==="datetime"||o){for(var a=r,s=tye(e,i,null),l=s,c=[t,n],u=0;u<c.length;u+=1){var d=Yv(c[u])[0];if(oQe(d)){l=d;break}}var h=a.showHour,p=a.showMinute,m=a.showSecond,v=a.showMillisecond,y=a.use12Hours,S=Fx(l,["a","A","LT","LLL","LTS"],y),b=sye(h,p,m,v);b||(h=Fx(l,["H","h","k","LT","LLL"]),p=Fx(l,["m","LT","LLL"]),m=Fx(l,["s","LTS"]),v=Fx(l,["SSS"]));var C=lye(b,h,p,m,v),_=Le(C,3);h=_[0],p=_[1],m=_[2];var T=t||oye(h,p,m,v,S);return X(X({},a),{},{format:T,showHour:h,showMinute:p,showSecond:m,showMillisecond:v,use12Hours:S})}return null}function aQe(e,t,n){if(t===!1)return null;var r=t&&ln(t)==="object"?t:{};return r.clearIcon||n||f.createElement("span",{className:"".concat(e,"-clear-btn")})}var $R=7;function bg(e,t,n){return!e&&!t||e===t?!0:!e||!t?!1:n()}function VF(e,t,n){return bg(t,n,function(){var r=Math.floor(e.getYear(t)/10),i=Math.floor(e.getYear(n)/10);return r===i})}function xv(e,t,n){return bg(t,n,function(){return e.getYear(t)===e.getYear(n)})}function mee(e,t){var n=Math.floor(e.getMonth(t)/3);return n+1}function sQe(e,t,n){return bg(t,n,function(){return xv(e,t,n)&&mee(e,t)===mee(e,n)})}function pW(e,t,n){return bg(t,n,function(){return xv(e,t,n)&&e.getMonth(t)===e.getMonth(n)})}function mW(e,t,n){return bg(t,n,function(){return xv(e,t,n)&&pW(e,t,n)&&e.getDate(t)===e.getDate(n)})}function dye(e,t,n){return bg(t,n,function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)})}function fye(e,t,n){return bg(t,n,function(){return mW(e,t,n)&&dye(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)})}function x2(e,t,n,r){return bg(n,r,function(){var i=e.locale.getWeekFirstDate(t,n),o=e.locale.getWeekFirstDate(t,r);return xv(e,i,o)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)})}function Bs(e,t,n,r,i){switch(i){case"date":return mW(e,n,r);case"week":return x2(e,t.locale,n,r);case"month":return pW(e,n,r);case"quarter":return sQe(e,n,r);case"year":return xv(e,n,r);case"decade":return VF(e,n,r);case"time":return dye(e,n,r);default:return fye(e,n,r)}}function tP(e,t,n,r){return!t||!n||!r?!1:e.isAfter(r,t)&&e.isAfter(n,r)}function WT(e,t,n,r,i){return Bs(e,t,n,r,i)?!0:e.isAfter(n,r)}function lQe(e,t,n){var r=t.locale.getWeekFirstDay(e),i=t.setDate(n,1),o=t.getWeekDay(i),a=t.addDate(i,r-o);return t.getMonth(a)===t.getMonth(n)&&t.getDate(a)>1&&(a=t.addDate(a,-7)),a}function Ua(e,t){var n=t.generateConfig,r=t.locale,i=t.format;return e?typeof i=="function"?i(e):n.locale.format(r.locale,e,i):""}function B9(e,t,n){var r=t,i=["getHour","getMinute","getSecond","getMillisecond"],o=["setHour","setMinute","setSecond","setMillisecond"];return o.forEach(function(a,s){n?r=e[a](r,e[i[s]](n)):r=e[a](r,0)}),r}function cQe(e,t,n,r,i){var o=ur(function(a,s){return!!(n&&n(a,s)||r&&e.isAfter(r,a)&&!Bs(e,t,r,a,s.type)||i&&e.isAfter(a,i)&&!Bs(e,t,i,a,s.type))});return o}function uQe(e,t,n){return f.useMemo(function(){var r=tye(e,t,n),i=Yv(r),o=i[0],a=ln(o)==="object"&&o.type==="mask"?o.format:null;return[i.map(function(s){return typeof s=="string"||typeof s=="function"?s:s.format}),a]},[e,t,n])}function dQe(e,t,n){return typeof e[0]=="function"||n?!0:t}function fQe(e,t,n,r){var i=ur(function(o,a){var s=X({type:t},a);if(delete s.activeIndex,!e.isValidate(o)||n&&n(o,s))return!0;if((t==="date"||t==="time")&&r){var l,c=a&&a.activeIndex===1?"end":"start",u=((l=r.disabledTime)===null||l===void 0?void 0:l.call(r,o,c,{from:s.from}))||{},d=u.disabledHours,h=u.disabledMinutes,p=u.disabledSeconds,m=u.disabledMilliseconds,v=r.disabledHours,y=r.disabledMinutes,S=r.disabledSeconds,b=d||v,C=h||y,_=p||S,T=e.getHour(o),x=e.getMinute(o),E=e.getSecond(o),k=e.getMillisecond(o);if(b&&b().includes(T)||C&&C(T).includes(x)||_&&_(T,x).includes(E)||m&&m(T,x,E).includes(k))return!0}return!1});return i}function VT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=f.useMemo(function(){var r=e&&Yv(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function hye(e,t){var n=e.generateConfig,r=e.locale,i=e.picker,o=i===void 0?"date":i,a=e.prefixCls,s=a===void 0?"rc-picker":a,l=e.styles,c=l===void 0?{}:l,u=e.classNames,d=u===void 0?{}:u,h=e.order,p=h===void 0?!0:h,m=e.components,v=m===void 0?{}:m,y=e.inputRender,S=e.allowClear,b=e.clearIcon,C=e.needConfirm,_=e.multiple,T=e.format,x=e.inputReadOnly,E=e.disabledDate,k=e.minDate,M=e.maxDate,P=e.showTime,D=e.value,R=e.defaultValue,A=e.pickerValue,H=e.defaultPickerValue,F=VT(D),z=VT(R),W=VT(A),q=VT(H),Z=o==="date"&&P?"datetime":o,N=Z==="time"||Z==="datetime",B=N||_,V=C??N,G=cye(e),ie=Le(G,4),ce=ie[0],fe=ie[1],ee=ie[2],ne=ie[3],ue=aye(r,fe),ye=f.useMemo(function(){return uye(Z,ee,ne,ce,ue)},[Z,ee,ne,ce,ue]),me=f.useMemo(function(){return X(X({},e),{},{prefixCls:s,locale:ue,picker:o,styles:c,classNames:d,order:p,components:X({input:y},v),clearIcon:aQe(s,S,b),showTime:ye,value:F,defaultValue:z,pickerValue:W,defaultPickerValue:q},t==null?void 0:t())},[e]),pe=uQe(Z,ue,T),he=Le(pe,2),_e=he[0],le=he[1],xe=dQe(_e,x,_),we=cQe(n,r,E,k,M),De=fQe(n,o,we,ye),Fe=f.useMemo(function(){return X(X({},me),{},{needConfirm:V,inputReadOnly:xe,disabledDate:we})},[me,V,xe,we]);return[Fe,Z,B,_e,le,De]}function hQe(e,t,n){var r=er(t,{value:e}),i=Le(r,2),o=i[0],a=i[1],s=ge.useRef(e),l=ge.useRef(),c=function(){Cr.cancel(l.current)},u=ur(function(){a(s.current),n&&o!==s.current&&n(s.current)}),d=ur(function(h,p){c(),s.current=h,h||p?u():l.current=Cr(u)});return ge.useEffect(function(){return c},[]),[o,d]}function pye(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,i=n.every(function(u){return u})?!1:e,o=hQe(i,t||!1,r),a=Le(o,2),s=a[0],l=a[1];function c(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!d.inherit||s)&&l(u,d.force)}return[s,c]}function mye(e){var t=f.useRef();return f.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(i){var o;(o=t.current)===null||o===void 0||o.focus(i)},blur:function(){var i;(i=t.current)===null||i===void 0||i.blur()}}}),t}function gye(e,t){return f.useMemo(function(){return e||(t?(fi(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=Le(n,2),i=r[0],o=r[1];return{label:i,value:o}})):[])},[e,t])}function gW(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=f.useRef(t);r.current=t,Y1(function(){if(e)r.current(e);else{var i=Cr(function(){r.current(e)},n);return function(){Cr.cancel(i)}}},[e])}function vye(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=f.useState(0),i=Le(r,2),o=i[0],a=i[1],s=f.useState(!1),l=Le(s,2),c=l[0],u=l[1],d=f.useRef([]),h=f.useRef(null),p=f.useRef(null),m=function(_){h.current=_},v=function(_){return h.current===_},y=function(_){u(_)},S=function(_){return _&&(p.current=_),p.current},b=function(_){var T=d.current,x=new Set(T.filter(function(k){return _[k]||t[k]})),E=T[T.length-1]===0?1:0;return x.size>=2||e[E]?null:E};return gW(c||n,function(){c||(d.current=[],m(null))}),f.useEffect(function(){c&&d.current.push(o)},[c,o]),[c,y,S,o,a,b,d.current,m,v]}function pQe(e,t,n,r,i,o){var a=n[n.length-1],s=function(c,u){var d=Le(e,2),h=d[0],p=d[1],m=X(X({},u),{},{from:nye(e,n)});return a===1&&t[0]&&h&&!Bs(r,i,h,c,m.type)&&r.isAfter(h,c)||a===0&&t[1]&&p&&!Bs(r,i,p,c,m.type)&&r.isAfter(c,p)?!0:o==null?void 0:o(c,m)};return s}function w2(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,r*10);case"decade":return e.addYear(n,r*100);default:return n}}var RR=[];function yye(e,t,n,r,i,o,a,s){var l=arguments.length>8&&arguments[8]!==void 0?arguments[8]:RR,c=arguments.length>9&&arguments[9]!==void 0?arguments[9]:RR,u=arguments.length>10&&arguments[10]!==void 0?arguments[10]:RR,d=arguments.length>11?arguments[11]:void 0,h=arguments.length>12?arguments[12]:void 0,p=arguments.length>13?arguments[13]:void 0,m=a==="time",v=o||0,y=function(W){var q=e.getNow();return m&&(q=B9(e,q)),l[W]||n[W]||q},S=Le(c,2),b=S[0],C=S[1],_=er(function(){return y(0)},{value:b}),T=Le(_,2),x=T[0],E=T[1],k=er(function(){return y(1)},{value:C}),M=Le(k,2),P=M[0],D=M[1],R=f.useMemo(function(){var z=[x,P][v];return m?z:B9(e,z,u[v])},[m,x,P,v,e,u]),A=function(W){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",Z=[E,D][v];Z(W);var N=[x,P];N[v]=W,d&&(!Bs(e,t,x,N[0],a)||!Bs(e,t,P,N[1],a))&&d(N,{source:q,range:v===1?"end":"start",mode:r})},H=function(W,q){if(s){var Z={date:"month",week:"month",month:"year",quarter:"year"},N=Z[a];if(N&&!Bs(e,t,W,q,N))return w2(e,a,q,-1);if(a==="year"&&W){var B=Math.floor(e.getYear(W)/10),V=Math.floor(e.getYear(q)/10);if(B!==V)return w2(e,a,q,-1)}}return q},F=f.useRef(null);return Er(function(){if(i&&!l[v]){var z=m?null:e.getNow();if(F.current!==null&&F.current!==v?z=[x,P][v^1]:n[v]?z=v===0?n[0]:H(n[0],n[1]):n[v^1]&&(z=n[v^1]),z){h&&e.isAfter(h,z)&&(z=h);var W=s?w2(e,a,z,1):z;p&&e.isAfter(W,p)&&(z=s?w2(e,a,p,-1):p),A(z,"reset")}}},[i,v,n[v]]),f.useEffect(function(){i?F.current=v:F.current=null},[i,v]),Er(function(){i&&l&&l[v]&&A(l[v],"reset")},[i,v]),[R,A]}function bye(e,t){var n=f.useRef(e),r=f.useState({}),i=Le(r,2),o=i[1],a=function(c){return c&&t!==void 0?t:n.current},s=function(c){n.current=c,o({})};return[a,s,a(!0)]}var mQe=[];function Sye(e,t,n){var r=function(a){return a.map(function(s){return Ua(s,{generateConfig:e,locale:t,format:n[0]})})},i=function(a,s){for(var l=Math.max(a.length,s.length),c=-1,u=0;u<l;u+=1){var d=a[u]||null,h=s[u]||null;if(d!==h&&!fye(e,d,h)){c=u;break}}return[c<0,c!==0]};return[r,i]}function Cye(e,t){return pt(e).sort(function(n,r){return t.isAfter(n,r)?1:-1})}function gQe(e){var t=bye(e),n=Le(t,2),r=n[0],i=n[1],o=ur(function(){i(e)});return f.useEffect(function(){o()},[e]),[r,i]}function xye(e,t,n,r,i,o,a,s,l){var c=er(o,{value:a}),u=Le(c,2),d=u[0],h=u[1],p=d||mQe,m=gQe(p),v=Le(m,2),y=v[0],S=v[1],b=Sye(e,t,n),C=Le(b,2),_=C[0],T=C[1],x=ur(function(k){var M=pt(k);if(r)for(var P=0;P<2;P+=1)M[P]=M[P]||null;else i&&(M=Cye(M.filter(function(z){return z}),e));var D=T(y(),M),R=Le(D,2),A=R[0],H=R[1];if(!A&&(S(M),s)){var F=_(M);s(M,F,{range:H?"end":"start"})}}),E=function(){l&&l(y())};return[p,h,y,x,E]}function wye(e,t,n,r,i,o,a,s,l,c){var u=e.generateConfig,d=e.locale,h=e.picker,p=e.onChange,m=e.allowEmpty,v=e.order,y=o.some(function(A){return A})?!1:v,S=Sye(u,d,a),b=Le(S,2),C=b[0],_=b[1],T=bye(t),x=Le(T,2),E=x[0],k=x[1],M=ur(function(){k(t)});f.useEffect(function(){M()},[t]);var P=ur(function(A){var H=A===null,F=pt(A||E());if(H)for(var z=Math.max(o.length,F.length),W=0;W<z;W+=1)o[W]||(F[W]=null);y&&F[0]&&F[1]&&(F=Cye(F,u)),i(F);var q=F,Z=Le(q,2),N=Z[0],B=Z[1],V=!N,G=!B,ie=m?(!V||m[0])&&(!G||m[1]):!0,ce=!v||V||G||Bs(u,d,N,B,h)||u.isAfter(B,N),fe=(o[0]||!N||!c(N,{activeIndex:0}))&&(o[1]||!B||!c(B,{from:N,activeIndex:1})),ee=H||ie&&ce&&fe;if(ee){n(F);var ne=_(F,t),ue=Le(ne,1),ye=ue[0];p&&!ye&&p(H&&F.every(function(me){return!me})?null:F,C(F))}return ee}),D=ur(function(A,H){var F=ew(E(),A,r()[A]);k(F),H&&P()}),R=!s&&!l;return gW(!R,function(){R&&(P(),i(t),M())},2),[D,P]}function _ye(e,t,n,r,i){return t!=="date"&&t!=="time"?!1:n!==void 0?n:r!==void 0?r:!i&&(e==="date"||e==="time")}function vQe(e,t,n,r,i,o){var a=e;function s(d,h,p){var m=o[d](a),v=p.find(function(C){return C.value===m});if(!v||v.disabled){var y=p.filter(function(C){return!C.disabled}),S=pt(y).reverse(),b=S.find(function(C){return C.value<=m})||y[0];b&&(m=b.value,a=o[h](a,m))}return m}var l=s("getHour","setHour",t()),c=s("getMinute","setMinute",n(l)),u=s("getSecond","setSecond",r(l,c));return s("getMillisecond","setMillisecond",i(l,c,u)),a}function KT(){return[]}function qT(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,a=[],s=n>=1?n|0:1,l=e;l<=t;l+=s){var c=i.includes(l);(!c||!r)&&a.push({label:fW(l,o),value:l,disabled:c})}return a}function vW(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},i=r.use12Hours,o=r.hourStep,a=o===void 0?1:o,s=r.minuteStep,l=s===void 0?1:s,c=r.secondStep,u=c===void 0?1:c,d=r.millisecondStep,h=d===void 0?100:d,p=r.hideDisabledOptions,m=r.disabledTime,v=r.disabledHours,y=r.disabledMinutes,S=r.disabledSeconds,b=f.useMemo(function(){return n||e.getNow()},[n,e]),C=f.useCallback(function(q){var Z=(m==null?void 0:m(q))||{};return[Z.disabledHours||v||KT,Z.disabledMinutes||y||KT,Z.disabledSeconds||S||KT,Z.disabledMilliseconds||KT]},[m,v,y,S]),_=f.useMemo(function(){return C(b)},[b,C]),T=Le(_,4),x=T[0],E=T[1],k=T[2],M=T[3],P=f.useCallback(function(q,Z,N,B){var V=qT(0,23,a,p,q()),G=i?V.map(function(ee){return X(X({},ee),{},{label:fW(ee.value%12||12,2)})}):V,ie=function(ne){return qT(0,59,l,p,Z(ne))},ce=function(ne,ue){return qT(0,59,u,p,N(ne,ue))},fe=function(ne,ue,ye){return qT(0,999,h,p,B(ne,ue,ye),3)};return[G,ie,ce,fe]},[p,a,i,h,l,u]),D=f.useMemo(function(){return P(x,E,k,M)},[P,x,E,k,M]),R=Le(D,4),A=R[0],H=R[1],F=R[2],z=R[3],W=function(Z,N){var B=function(){return A},V=H,G=F,ie=z;if(N){var ce=C(N),fe=Le(ce,4),ee=fe[0],ne=fe[1],ue=fe[2],ye=fe[3],me=P(ee,ne,ue,ye),pe=Le(me,4),he=pe[0],_e=pe[1],le=pe[2],xe=pe[3];B=function(){return he},V=_e,G=le,ie=xe}var we=vQe(Z,B,V,G,ie,e);return we};return[W,A,H,F,z]}function yQe(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,i=e.showNow,o=e.showTime,a=e.onSubmit,s=e.onNow,l=e.invalid,c=e.needConfirm,u=e.generateConfig,d=e.disabledDate,h=f.useContext(Jd),p=h.prefixCls,m=h.locale,v=h.button,y=v===void 0?"button":v,S=u.getNow(),b=vW(u,o,S),C=Le(b,1),_=C[0],T=r==null?void 0:r(t),x=d(S,{type:t}),E=function(){if(!x){var H=_(S);s(H)}},k="".concat(p,"-now"),M="".concat(k,"-btn"),P=i&&f.createElement("li",{className:k},f.createElement("a",{className:Re(M,x&&"".concat(M,"-disabled")),"aria-disabled":x,onClick:E},n==="date"?m.today:m.now)),D=c&&f.createElement("li",{className:"".concat(p,"-ok")},f.createElement(y,{disabled:l,onClick:a},m.ok)),R=(P||D)&&f.createElement("ul",{className:"".concat(p,"-ranges")},P,D);return!T&&!R?null:f.createElement("div",{className:"".concat(p,"-footer")},T&&f.createElement("div",{className:"".concat(p,"-footer-extra")},T),R)}function Eye(e,t,n){function r(i,o){var a=i.findIndex(function(l){return Bs(e,t,l,o,n)});if(a===-1)return[].concat(pt(i),[o]);var s=pt(i);return s.splice(a,1),s}return r}var Xv=f.createContext(null);function nP(){return f.useContext(Xv)}function ZS(e,t){var n=e.prefixCls,r=e.generateConfig,i=e.locale,o=e.disabledDate,a=e.minDate,s=e.maxDate,l=e.cellRender,c=e.hoverValue,u=e.hoverRangeValue,d=e.onHover,h=e.values,p=e.pickerValue,m=e.onSelect,v=e.prevIcon,y=e.nextIcon,S=e.superPrevIcon,b=e.superNextIcon,C=r.getNow(),_={now:C,values:h,pickerValue:p,prefixCls:n,disabledDate:o,minDate:a,maxDate:s,cellRender:l,hoverValue:c,hoverRangeValue:u,onHover:d,locale:i,generateConfig:r,onSelect:m,panelType:t,prevIcon:v,nextIcon:y,superPrevIcon:S,superNextIcon:b};return[_,C]}var Gm=f.createContext({});function kE(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,i=e.getCellDate,o=e.prefixColumn,a=e.rowClassName,s=e.titleFormat,l=e.getCellText,c=e.getCellClassName,u=e.headerCells,d=e.cellSelection,h=d===void 0?!0:d,p=e.disabledDate,m=nP(),v=m.prefixCls,y=m.panelType,S=m.now,b=m.disabledDate,C=m.cellRender,_=m.onHover,T=m.hoverValue,x=m.hoverRangeValue,E=m.generateConfig,k=m.values,M=m.locale,P=m.onSelect,D=p||b,R="".concat(v,"-cell"),A=f.useContext(Gm),H=A.onCellDblClick,F=function(G){return k.some(function(ie){return ie&&Bs(E,M,G,ie,y)})},z=[],W=0;W<t;W+=1){for(var q=[],Z=void 0,N=function(){var G=W*n+B,ie=i(r,G),ce=D==null?void 0:D(ie,{type:y});B===0&&(Z=ie,o&&q.push(o(Z)));var fe=!1,ee=!1,ne=!1;if(h&&x){var ue=Le(x,2),ye=ue[0],me=ue[1];fe=tP(E,ye,me,ie),ee=Bs(E,M,ie,ye,y),ne=Bs(E,M,ie,me,y)}var pe=s?Ua(ie,{locale:M,format:s,generateConfig:E}):void 0,he=f.createElement("div",{className:"".concat(R,"-inner")},l(ie));q.push(f.createElement("td",{key:B,title:pe,className:Re(R,X(ae(ae(ae(ae(ae(ae({},"".concat(R,"-disabled"),ce),"".concat(R,"-hover"),(T||[]).some(function(_e){return Bs(E,M,ie,_e,y)})),"".concat(R,"-in-range"),fe&&!ee&&!ne),"".concat(R,"-range-start"),ee),"".concat(R,"-range-end"),ne),"".concat(v,"-cell-selected"),!x&&y!=="week"&&F(ie)),c(ie))),onClick:function(){ce||P(ie)},onDoubleClick:function(){!ce&&H&&H()},onMouseEnter:function(){ce||_==null||_(ie)},onMouseLeave:function(){ce||_==null||_(null)}},C?C(ie,{prefixCls:v,originNode:he,today:S,type:y,locale:M}):he))},B=0;B<n;B+=1)N();z.push(f.createElement("tr",{key:W,className:a==null?void 0:a(Z)},q))}return f.createElement("div",{className:"".concat(v,"-body")},f.createElement("table",{className:"".concat(v,"-content")},u&&f.createElement("thead",null,f.createElement("tr",null,u)),f.createElement("tbody",null,z)))}var GT={visibility:"hidden"};function JS(e){var t=e.offset,n=e.superOffset,r=e.onChange,i=e.getStart,o=e.getEnd,a=e.children,s=nP(),l=s.prefixCls,c=s.prevIcon,u=c===void 0?"‹":c,d=s.nextIcon,h=d===void 0?"›":d,p=s.superPrevIcon,m=p===void 0?"«":p,v=s.superNextIcon,y=v===void 0?"»":v,S=s.minDate,b=s.maxDate,C=s.generateConfig,_=s.locale,T=s.pickerValue,x=s.panelType,E="".concat(l,"-header"),k=f.useContext(Gm),M=k.hidePrev,P=k.hideNext,D=k.hideHeader,R=f.useMemo(function(){if(!S||!t||!o)return!1;var V=o(t(-1,T));return!WT(C,_,V,S,x)},[S,t,T,o,C,_,x]),A=f.useMemo(function(){if(!S||!n||!o)return!1;var V=o(n(-1,T));return!WT(C,_,V,S,x)},[S,n,T,o,C,_,x]),H=f.useMemo(function(){if(!b||!t||!i)return!1;var V=i(t(1,T));return!WT(C,_,b,V,x)},[b,t,T,i,C,_,x]),F=f.useMemo(function(){if(!b||!n||!i)return!1;var V=i(n(1,T));return!WT(C,_,b,V,x)},[b,n,T,i,C,_,x]),z=function(G){t&&r(t(G,T))},W=function(G){n&&r(n(G,T))};if(D)return null;var q="".concat(E,"-prev-btn"),Z="".concat(E,"-next-btn"),N="".concat(E,"-super-prev-btn"),B="".concat(E,"-super-next-btn");return f.createElement("div",{className:E},n&&f.createElement("button",{type:"button","aria-label":"super-prev-year",onClick:function(){return W(-1)},tabIndex:-1,className:Re(N,A&&"".concat(N,"-disabled")),disabled:A,style:M?GT:{}},m),t&&f.createElement("button",{type:"button","aria-label":"prev-year",onClick:function(){return z(-1)},tabIndex:-1,className:Re(q,R&&"".concat(q,"-disabled")),disabled:R,style:M?GT:{}},u),f.createElement("div",{className:"".concat(E,"-view")},a),t&&f.createElement("button",{type:"button","aria-label":"next-year",onClick:function(){return z(1)},tabIndex:-1,className:Re(Z,H&&"".concat(Z,"-disabled")),disabled:H,style:P?GT:{}},h),n&&f.createElement("button",{type:"button","aria-label":"super-next-year",onClick:function(){return W(1)},tabIndex:-1,className:Re(B,F&&"".concat(B,"-disabled")),disabled:F,style:P?GT:{}},y))}function rP(e){var t=e.prefixCls,n=e.panelName,r=n===void 0?"date":n,i=e.locale,o=e.generateConfig,a=e.pickerValue,s=e.onPickerValueChange,l=e.onModeChange,c=e.mode,u=c===void 0?"date":c,d=e.disabledDate,h=e.onSelect,p=e.onHover,m=e.showWeek,v="".concat(t,"-").concat(r,"-panel"),y="".concat(t,"-cell"),S=u==="week",b=ZS(e,u),C=Le(b,2),_=C[0],T=C[1],x=o.locale.getWeekFirstDay(i.locale),E=o.setDate(a,1),k=lQe(i.locale,o,E),M=o.getMonth(a),P=m===void 0?S:m,D=P?function(V){var G=d==null?void 0:d(V,{type:"week"});return f.createElement("td",{key:"week",className:Re(y,"".concat(y,"-week"),ae({},"".concat(y,"-disabled"),G)),onClick:function(){G||h(V)},onMouseEnter:function(){G||p==null||p(V)},onMouseLeave:function(){G||p==null||p(null)}},f.createElement("div",{className:"".concat(y,"-inner")},o.locale.getWeek(i.locale,V)))}:null,R=[],A=i.shortWeekDays||(o.locale.getShortWeekDays?o.locale.getShortWeekDays(i.locale):[]);D&&R.push(f.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var H=0;H<$R;H+=1)R.push(f.createElement("th",{key:H},A[(H+x)%$R]));var F=function(G,ie){return o.addDate(G,ie)},z=function(G){return Ua(G,{locale:i,format:i.cellDateFormat,generateConfig:o})},W=function(G){var ie=ae(ae({},"".concat(t,"-cell-in-view"),pW(o,G,a)),"".concat(t,"-cell-today"),mW(o,G,T));return ie},q=i.shortMonths||(o.locale.getShortMonths?o.locale.getShortMonths(i.locale):[]),Z=f.createElement("button",{type:"button","aria-label":"year panel",key:"year",onClick:function(){l("year",a)},tabIndex:-1,className:"".concat(t,"-year-btn")},Ua(a,{locale:i,format:i.yearFormat,generateConfig:o})),N=f.createElement("button",{type:"button","aria-label":"month panel",key:"month",onClick:function(){l("month",a)},tabIndex:-1,className:"".concat(t,"-month-btn")},i.monthFormat?Ua(a,{locale:i,format:i.monthFormat,generateConfig:o}):q[M]),B=i.monthBeforeYear?[N,Z]:[Z,N];return f.createElement(Xv.Provider,{value:_},f.createElement("div",{className:Re(v,m&&"".concat(v,"-show-week"))},f.createElement(JS,{offset:function(G){return o.addMonth(a,G)},superOffset:function(G){return o.addYear(a,G)},onChange:s,getStart:function(G){return o.setDate(G,1)},getEnd:function(G){var ie=o.setDate(G,1);return ie=o.addMonth(ie,1),o.addDate(ie,-1)}},B),f.createElement(kE,st({titleFormat:i.fieldDateFormat},e,{colNum:$R,rowNum:6,baseDate:k,headerCells:R,getCellDate:F,getCellText:z,getCellClassName:W,prefixColumn:D,cellSelection:!S}))))}var bQe=1/3;function SQe(e,t){var n=f.useRef(!1),r=f.useRef(null),i=f.useRef(null),o=function(){return n.current},a=function(){Cr.cancel(r.current),n.current=!1},s=f.useRef(),l=function(){var d=e.current;if(i.current=null,s.current=0,d){var h=d.querySelector('[data-value="'.concat(t,'"]')),p=d.querySelector("li"),m=function v(){a(),n.current=!0,s.current+=1;var y=d.scrollTop,S=p.offsetTop,b=h.offsetTop,C=b-S;if(b===0&&h!==p||!VS(d)){s.current<=5&&(r.current=Cr(v));return}var _=y+(C-y)*bQe,T=Math.abs(C-_);if(i.current!==null&&i.current<T){a();return}if(i.current=T,T<=1){d.scrollTop=C,a();return}d.scrollTop=_,r.current=Cr(v)};h&&p&&m()}},c=ur(l);return[c,a,o]}var CQe=300;function xQe(e){return e.map(function(t){var n=t.value,r=t.label,i=t.disabled;return[n,r,i].join(",")}).join(";")}function jx(e){var t=e.units,n=e.value,r=e.optionalValue,i=e.type,o=e.onChange,a=e.onHover,s=e.onDblClick,l=e.changeOnScroll,c=nP(),u=c.prefixCls,d=c.cellRender,h=c.now,p=c.locale,m="".concat(u,"-time-panel"),v="".concat(u,"-time-panel-cell"),y=f.useRef(null),S=f.useRef(),b=function(){clearTimeout(S.current)},C=SQe(y,n??r),_=Le(C,3),T=_[0],x=_[1],E=_[2];Er(function(){return T(),b(),function(){x(),b()}},[n,r,xQe(t)]);var k=function(D){b();var R=D.target;!E()&&l&&(S.current=setTimeout(function(){var A=y.current,H=A.querySelector("li").offsetTop,F=Array.from(A.querySelectorAll("li")),z=F.map(function(B){return B.offsetTop-H}),W=z.map(function(B,V){return t[V].disabled?Number.MAX_SAFE_INTEGER:Math.abs(B-R.scrollTop)}),q=Math.min.apply(Math,pt(W)),Z=W.findIndex(function(B){return B===q}),N=t[Z];N&&!N.disabled&&o(N.value)},CQe))},M="".concat(m,"-column");return f.createElement("ul",{className:M,ref:y,"data-type":i,onScroll:k},t.map(function(P){var D=P.label,R=P.value,A=P.disabled,H=f.createElement("div",{className:"".concat(v,"-inner")},D);return f.createElement("li",{key:R,className:Re(v,ae(ae({},"".concat(v,"-selected"),n===R),"".concat(v,"-disabled"),A)),onClick:function(){A||o(R)},onDoubleClick:function(){!A&&s&&s()},onMouseEnter:function(){a(R)},onMouseLeave:function(){a(null)},"data-value":R},d?d(R,{prefixCls:u,originNode:H,today:h,type:"time",subType:i,locale:p}):H)}))}function Yp(e){return e<12}function wQe(e){var t=e.showHour,n=e.showMinute,r=e.showSecond,i=e.showMillisecond,o=e.use12Hours,a=e.changeOnScroll,s=nP(),l=s.prefixCls,c=s.values,u=s.generateConfig,d=s.locale,h=s.onSelect,p=s.onHover,m=p===void 0?function(){}:p,v=s.pickerValue,y=(c==null?void 0:c[0])||null,S=f.useContext(Gm),b=S.onCellDblClick,C=vW(u,e,y),_=Le(C,5),T=_[0],x=_[1],E=_[2],k=_[3],M=_[4],P=function(Je){var Ze=y&&u[Je](y),rt=v&&u[Je](v);return[Ze,rt]},D=P("getHour"),R=Le(D,2),A=R[0],H=R[1],F=P("getMinute"),z=Le(F,2),W=z[0],q=z[1],Z=P("getSecond"),N=Le(Z,2),B=N[0],V=N[1],G=P("getMillisecond"),ie=Le(G,2),ce=ie[0],fe=ie[1],ee=A===null?null:Yp(A)?"am":"pm",ne=f.useMemo(function(){return o?Yp(A)?x.filter(function(Ue){return Yp(Ue.value)}):x.filter(function(Ue){return!Yp(Ue.value)}):x},[A,x,o]),ue=function(Je,Ze){var rt,qt=Je.filter(function(St){return!St.disabled});return Ze??(qt==null||(rt=qt[0])===null||rt===void 0?void 0:rt.value)},ye=ue(x,A),me=f.useMemo(function(){return E(ye)},[E,ye]),pe=ue(me,W),he=f.useMemo(function(){return k(ye,pe)},[k,ye,pe]),_e=ue(he,B),le=f.useMemo(function(){return M(ye,pe,_e)},[M,ye,pe,_e]),xe=ue(le,ce),we=f.useMemo(function(){if(!o)return[];var Ue=u.getNow(),Je=u.setHour(Ue,6),Ze=u.setHour(Ue,18),rt=function(St,Ot){var Bt=d.cellMeridiemFormat;return Bt?Ua(St,{generateConfig:u,locale:d,format:Bt}):Ot};return[{label:rt(Je,"AM"),value:"am",disabled:x.every(function(qt){return qt.disabled||!Yp(qt.value)})},{label:rt(Ze,"PM"),value:"pm",disabled:x.every(function(qt){return qt.disabled||Yp(qt.value)})}]},[x,o,u,d]),De=function(Je){var Ze=T(Je);h(Ze)},Fe=f.useMemo(function(){var Ue=y||v||u.getNow(),Je=function(rt){return rt!=null};return Je(A)?(Ue=u.setHour(Ue,A),Ue=u.setMinute(Ue,W),Ue=u.setSecond(Ue,B),Ue=u.setMillisecond(Ue,ce)):Je(H)?(Ue=u.setHour(Ue,H),Ue=u.setMinute(Ue,q),Ue=u.setSecond(Ue,V),Ue=u.setMillisecond(Ue,fe)):Je(ye)&&(Ue=u.setHour(Ue,ye),Ue=u.setMinute(Ue,pe),Ue=u.setSecond(Ue,_e),Ue=u.setMillisecond(Ue,xe)),Ue},[y,v,A,W,B,ce,ye,pe,_e,xe,H,q,V,fe,u]),Ce=function(Je,Ze){return Je===null?null:u[Ze](Fe,Je)},Te=function(Je){return Ce(Je,"setHour")},ke=function(Je){return Ce(Je,"setMinute")},Pe=function(Je){return Ce(Je,"setSecond")},Ne=function(Je){return Ce(Je,"setMillisecond")},We=function(Je){return Je===null?null:Je==="am"&&!Yp(A)?u.setHour(Fe,A-12):Je==="pm"&&Yp(A)?u.setHour(Fe,A+12):Fe},Q=function(Je){De(Te(Je))},K=function(Je){De(ke(Je))},J=function(Je){De(Pe(Je))},be=function(Je){De(Ne(Je))},Oe=function(Je){De(We(Je))},Se=function(Je){m(Te(Je))},Ke=function(Je){m(ke(Je))},tt=function(Je){m(Pe(Je))},se=function(Je){m(Ne(Je))},ze=function(Je){m(We(Je))},Ye={onDblClick:b,changeOnScroll:a};return f.createElement("div",{className:"".concat(l,"-content")},t&&f.createElement(jx,st({units:ne,value:A,optionalValue:H,type:"hour",onChange:Q,onHover:Se},Ye)),n&&f.createElement(jx,st({units:me,value:W,optionalValue:q,type:"minute",onChange:K,onHover:Ke},Ye)),r&&f.createElement(jx,st({units:he,value:B,optionalValue:V,type:"second",onChange:J,onHover:tt},Ye)),i&&f.createElement(jx,st({units:le,value:ce,optionalValue:fe,type:"millisecond",onChange:be,onHover:se},Ye)),o&&f.createElement(jx,st({units:we,value:ee,type:"meridiem",onChange:Oe,onHover:ze},Ye)))}function Tye(e){var t=e.prefixCls,n=e.value,r=e.locale,i=e.generateConfig,o=e.showTime,a=o||{},s=a.format,l="".concat(t,"-time-panel"),c=ZS(e,"time"),u=Le(c,1),d=u[0];return f.createElement(Xv.Provider,{value:d},f.createElement("div",{className:Re(l)},f.createElement(JS,null,n?Ua(n,{locale:r,format:s,generateConfig:i}):" "),f.createElement(wQe,o)))}function _Qe(e){var t=e.prefixCls,n=e.generateConfig,r=e.showTime,i=e.onSelect,o=e.value,a=e.pickerValue,s=e.onHover,l="".concat(t,"-datetime-panel"),c=vW(n,r),u=Le(c,1),d=u[0],h=function(y){return o?B9(n,y,o):B9(n,y,a)},p=function(y){s==null||s(y&&h(y))},m=function(y){var S=h(y);i(d(S,S))};return f.createElement("div",{className:l},f.createElement(rP,st({},e,{onSelect:m,onHover:p})),f.createElement(Tye,e))}function EQe(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,i=e.pickerValue,o=e.disabledDate,a=e.onPickerValueChange,s="".concat(t,"-decade-panel"),l=ZS(e,"decade"),c=Le(l,1),u=c[0],d=function(x){var E=Math.floor(r.getYear(x)/100)*100;return r.setYear(x,E)},h=function(x){var E=d(x);return r.addYear(E,99)},p=d(i),m=h(i),v=r.addYear(p,-10),y=function(x,E){return r.addYear(x,E*10)},S=function(x){var E=n.cellYearFormat,k=Ua(x,{locale:n,format:E,generateConfig:r}),M=Ua(r.addYear(x,9),{locale:n,format:E,generateConfig:r});return"".concat(k,"-").concat(M)},b=function(x){return ae({},"".concat(t,"-cell-in-view"),VF(r,x,p)||VF(r,x,m)||tP(r,p,m,x))},C=o?function(T,x){var E=r.setDate(T,1),k=r.setMonth(E,0),M=r.setYear(k,Math.floor(r.getYear(k)/10)*10),P=r.addYear(M,10),D=r.addDate(P,-1);return o(M,x)&&o(D,x)}:null,_="".concat(Ua(p,{locale:n,format:n.yearFormat,generateConfig:r}),"-").concat(Ua(m,{locale:n,format:n.yearFormat,generateConfig:r}));return f.createElement(Xv.Provider,{value:u},f.createElement("div",{className:s},f.createElement(JS,{superOffset:function(x){return r.addYear(i,x*100)},onChange:a,getStart:d,getEnd:h},_),f.createElement(kE,st({},e,{disabledDate:C,colNum:3,rowNum:4,baseDate:v,getCellDate:y,getCellText:S,getCellClassName:b}))))}function TQe(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,i=e.pickerValue,o=e.disabledDate,a=e.onPickerValueChange,s=e.onModeChange,l="".concat(t,"-month-panel"),c=ZS(e,"month"),u=Le(c,1),d=u[0],h=r.setMonth(i,0),p=n.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(n.locale):[]),m=function(_,T){return r.addMonth(_,T)},v=function(_){var T=r.getMonth(_);return n.monthFormat?Ua(_,{locale:n,format:n.monthFormat,generateConfig:r}):p[T]},y=function(){return ae({},"".concat(t,"-cell-in-view"),!0)},S=o?function(C,_){var T=r.setDate(C,1),x=r.setMonth(T,r.getMonth(T)+1),E=r.addDate(x,-1);return o(T,_)&&o(E,_)}:null,b=f.createElement("button",{type:"button",key:"year","aria-label":"year panel",onClick:function(){s("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},Ua(i,{locale:n,format:n.yearFormat,generateConfig:r}));return f.createElement(Xv.Provider,{value:d},f.createElement("div",{className:l},f.createElement(JS,{superOffset:function(_){return r.addYear(i,_)},onChange:a,getStart:function(_){return r.setMonth(_,0)},getEnd:function(_){return r.setMonth(_,11)}},b),f.createElement(kE,st({},e,{disabledDate:S,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:h,getCellDate:m,getCellText:v,getCellClassName:y}))))}function kQe(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,i=e.pickerValue,o=e.onPickerValueChange,a=e.onModeChange,s="".concat(t,"-quarter-panel"),l=ZS(e,"quarter"),c=Le(l,1),u=c[0],d=r.setMonth(i,0),h=function(S,b){return r.addMonth(S,b*3)},p=function(S){return Ua(S,{locale:n,format:n.cellQuarterFormat,generateConfig:r})},m=function(){return ae({},"".concat(t,"-cell-in-view"),!0)},v=f.createElement("button",{type:"button",key:"year","aria-label":"year panel",onClick:function(){a("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},Ua(i,{locale:n,format:n.yearFormat,generateConfig:r}));return f.createElement(Xv.Provider,{value:u},f.createElement("div",{className:s},f.createElement(JS,{superOffset:function(S){return r.addYear(i,S)},onChange:o,getStart:function(S){return r.setMonth(S,0)},getEnd:function(S){return r.setMonth(S,11)}},v),f.createElement(kE,st({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:d,getCellDate:h,getCellText:p,getCellClassName:m}))))}function OQe(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,i=e.value,o=e.hoverValue,a=e.hoverRangeValue,s=r.locale,l="".concat(t,"-week-panel-row"),c=function(d){var h={};if(a){var p=Le(a,2),m=p[0],v=p[1],y=x2(n,s,m,d),S=x2(n,s,v,d);h["".concat(l,"-range-start")]=y,h["".concat(l,"-range-end")]=S,h["".concat(l,"-range-hover")]=!y&&!S&&tP(n,m,v,d)}return o&&(h["".concat(l,"-hover")]=o.some(function(b){return x2(n,s,d,b)})),Re(l,ae({},"".concat(l,"-selected"),!a&&x2(n,s,i,d)),h)};return f.createElement(rP,st({},e,{mode:"week",panelName:"week",rowClassName:c}))}function PQe(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,i=e.pickerValue,o=e.disabledDate,a=e.onPickerValueChange,s=e.onModeChange,l="".concat(t,"-year-panel"),c=ZS(e,"year"),u=Le(c,1),d=u[0],h=function(E){var k=Math.floor(r.getYear(E)/10)*10;return r.setYear(E,k)},p=function(E){var k=h(E);return r.addYear(k,9)},m=h(i),v=p(i),y=r.addYear(m,-1),S=function(E,k){return r.addYear(E,k)},b=function(E){return Ua(E,{locale:n,format:n.cellYearFormat,generateConfig:r})},C=function(E){return ae({},"".concat(t,"-cell-in-view"),xv(r,E,m)||xv(r,E,v)||tP(r,m,v,E))},_=o?function(x,E){var k=r.setMonth(x,0),M=r.setDate(k,1),P=r.addYear(M,1),D=r.addDate(P,-1);return o(M,E)&&o(D,E)}:null,T=f.createElement("button",{type:"button",key:"decade","aria-label":"decade panel",onClick:function(){s("decade")},tabIndex:-1,className:"".concat(t,"-decade-btn")},Ua(m,{locale:n,format:n.yearFormat,generateConfig:r}),"-",Ua(v,{locale:n,format:n.yearFormat,generateConfig:r}));return f.createElement(Xv.Provider,{value:d},f.createElement("div",{className:l},f.createElement(JS,{superOffset:function(E){return r.addYear(i,E*10)},onChange:a,getStart:h,getEnd:p},T),f.createElement(kE,st({},e,{disabledDate:_,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:y,getCellDate:S,getCellText:b,getCellClassName:C}))))}var MQe={date:rP,datetime:_Qe,week:OQe,month:TQe,quarter:kQe,year:PQe,decade:EQe,time:Tye};function IQe(e,t){var n,r=e.locale,i=e.generateConfig,o=e.direction,a=e.prefixCls,s=e.tabIndex,l=s===void 0?0:s,c=e.multiple,u=e.defaultValue,d=e.value,h=e.onChange,p=e.onSelect,m=e.defaultPickerValue,v=e.pickerValue,y=e.onPickerValueChange,S=e.mode,b=e.onPanelChange,C=e.picker,_=C===void 0?"date":C,T=e.showTime,x=e.hoverValue,E=e.hoverRangeValue,k=e.cellRender,M=e.dateRender,P=e.monthCellRender,D=e.components,R=D===void 0?{}:D,A=e.hideHeader,H=((n=f.useContext(Jd))===null||n===void 0?void 0:n.prefixCls)||a||"rc-picker",F=f.useRef();f.useImperativeHandle(t,function(){return{nativeElement:F.current}});var z=cye(e),W=Le(z,4),q=W[0],Z=W[1],N=W[2],B=W[3],V=aye(r,Z),G=_==="date"&&T?"datetime":_,ie=f.useMemo(function(){return uye(G,N,B,q,V)},[G,N,B,q,V]),ce=i.getNow(),fe=er(_,{value:S,postState:function(ze){return ze||"date"}}),ee=Le(fe,2),ne=ee[0],ue=ee[1],ye=ne==="date"&&ie?"datetime":ne,me=Eye(i,r,G),pe=er(u,{value:d}),he=Le(pe,2),_e=he[0],le=he[1],xe=f.useMemo(function(){var se=Yv(_e).filter(function(ze){return ze});return c?se:se.slice(0,1)},[_e,c]),we=ur(function(se){le(se),h&&(se===null||xe.length!==se.length||xe.some(function(ze,Ye){return!Bs(i,r,ze,se[Ye],G)}))&&(h==null||h(c?se:se[0]))}),De=ur(function(se){if(p==null||p(se),ne===_){var ze=c?me(xe,se):[se];we(ze)}}),Fe=er(m||xe[0]||ce,{value:v}),Ce=Le(Fe,2),Te=Ce[0],ke=Ce[1];f.useEffect(function(){xe[0]&&!v&&ke(xe[0])},[xe[0]]);var Pe=function(ze,Ye){b==null||b(ze||v,Ye||ne)},Ne=function(ze){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;ke(ze),y==null||y(ze),Ye&&Pe(ze)},We=function(ze,Ye){ue(ze),Ye&&Ne(Ye),Pe(Ye,ze)},Q=function(ze){if(De(ze),Ne(ze),ne!==_){var Ye=["decade","year"],Ue=[].concat(Ye,["month"]),Je={quarter:[].concat(Ye,["quarter"]),week:[].concat(pt(Ue),["week"]),date:[].concat(pt(Ue),["date"])},Ze=Je[_]||Ue,rt=Ze.indexOf(ne),qt=Ze[rt+1];qt&&We(qt,ze)}},K=f.useMemo(function(){var se,ze;if(Array.isArray(E)){var Ye=Le(E,2);se=Ye[0],ze=Ye[1]}else se=E;return!se&&!ze?null:(se=se||ze,ze=ze||se,i.isAfter(se,ze)?[ze,se]:[se,ze])},[E,i]),J=hW(k,M,P),be=R[ye]||MQe[ye]||rP,Oe=f.useContext(Gm),Se=f.useMemo(function(){return X(X({},Oe),{},{hideHeader:A})},[Oe,A]),Ke="".concat(H,"-panel"),tt=eP(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return f.createElement(Gm.Provider,{value:Se},f.createElement("div",{ref:F,tabIndex:l,className:Re(Ke,ae({},"".concat(Ke,"-rtl"),o==="rtl"))},f.createElement(be,st({},tt,{showTime:ie,prefixCls:H,locale:V,generateConfig:i,onModeChange:We,pickerValue:Te,onPickerValueChange:function(ze){Ne(ze,!0)},value:xe[0],onSelect:Q,values:xe,cellRender:J,hoverRangeValue:K,hoverValue:x}))))}var AR=f.memo(f.forwardRef(IQe));function $Qe(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,i=e.onPickerValueChange,o=e.needConfirm,a=e.onSubmit,s=e.range,l=e.hoverValue,c=f.useContext(Jd),u=c.prefixCls,d=c.generateConfig,h=f.useCallback(function(b,C){return w2(d,t,b,C)},[d,t]),p=f.useMemo(function(){return h(r,1)},[r,h]),m=function(C){i(h(C,-1))},v={onCellDblClick:function(){o&&a()}},y=t==="time",S=X(X({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:y});return s?S.hoverRangeValue=l:S.hoverValue=l,n?f.createElement("div",{className:"".concat(u,"-panels")},f.createElement(Gm.Provider,{value:X(X({},v),{},{hideNext:!0})},f.createElement(AR,S)),f.createElement(Gm.Provider,{value:X(X({},v),{},{hidePrev:!0})},f.createElement(AR,st({},S,{pickerValue:p,onPickerValueChange:m})))):f.createElement(Gm.Provider,{value:X({},v)},f.createElement(AR,S))}function gee(e){return typeof e=="function"?e():e}function RQe(e){var t=e.prefixCls,n=e.presets,r=e.onClick,i=e.onHover;return n.length?f.createElement("div",{className:"".concat(t,"-presets")},f.createElement("ul",null,n.map(function(o,a){var s=o.label,l=o.value;return f.createElement("li",{key:a,onClick:function(){r(gee(l))},onMouseEnter:function(){i(gee(l))},onMouseLeave:function(){i(null)}},s)}))):null}function kye(e){var t=e.panelRender,n=e.internalMode,r=e.picker,i=e.showNow,o=e.range,a=e.multiple,s=e.activeOffset,l=s===void 0?0:s,c=e.placement,u=e.presets,d=e.onPresetHover,h=e.onPresetSubmit,p=e.onFocus,m=e.onBlur,v=e.onPanelMouseDown,y=e.direction,S=e.value,b=e.onSelect,C=e.isInvalid,_=e.defaultOpenValue,T=e.onOk,x=e.onSubmit,E=f.useContext(Jd),k=E.prefixCls,M="".concat(k,"-panel"),P=y==="rtl",D=f.useRef(null),R=f.useRef(null),A=f.useState(0),H=Le(A,2),F=H[0],z=H[1],W=f.useState(0),q=Le(W,2),Z=q[0],N=q[1],B=function(we){we.offsetWidth&&z(we.offsetWidth)};f.useEffect(function(){if(o){var xe,we=((xe=D.current)===null||xe===void 0?void 0:xe.offsetWidth)||0,De=F-we;l<=De?N(0):N(l+we-F)}},[F,l,o]);function V(xe){return xe.filter(function(we){return we})}var G=f.useMemo(function(){return V(Yv(S))},[S]),ie=r==="time"&&!G.length,ce=f.useMemo(function(){return ie?V([_]):G},[ie,G,_]),fe=ie?_:G,ee=f.useMemo(function(){return ce.length?ce.some(function(xe){return C(xe)}):!0},[ce,C]),ne=function(){ie&&b(_),T(),x()},ue=f.createElement("div",{className:"".concat(k,"-panel-layout")},f.createElement(RQe,{prefixCls:k,presets:u,onClick:h,onHover:d}),f.createElement("div",null,f.createElement($Qe,st({},e,{value:fe})),f.createElement(yQe,st({},e,{showNow:a?!1:i,invalid:ee,onSubmit:ne}))));t&&(ue=t(ue));var ye="".concat(M,"-container"),me="marginLeft",pe="marginRight",he=f.createElement("div",{onMouseDown:v,tabIndex:-1,className:Re(ye,"".concat(k,"-").concat(n,"-panel-container")),style:ae(ae({},P?pe:me,Z),P?me:pe,"auto"),onFocus:p,onBlur:m},ue);if(o){var _e=JO(c,P),le=J0e(_e,P);he=f.createElement("div",{onMouseDown:v,ref:R,className:Re("".concat(k,"-range-wrapper"),"".concat(k,"-").concat(r,"-range-wrapper"))},f.createElement("div",{ref:D,className:"".concat(k,"-range-arrow"),style:ae({},le,l)}),f.createElement(Wa,{onResize:B},he))}return he}function Oye(e,t){var n=e.format,r=e.maskFormat,i=e.generateConfig,o=e.locale,a=e.preserveInvalidOnBlur,s=e.inputReadOnly,l=e.required,c=e["aria-required"],u=e.onSubmit,d=e.onFocus,h=e.onBlur,p=e.onInputChange,m=e.onInvalid,v=e.open,y=e.onOpenChange,S=e.onKeyDown,b=e.onChange,C=e.activeHelp,_=e.name,T=e.autoComplete,x=e.id,E=e.value,k=e.invalid,M=e.placeholder,P=e.disabled,D=e.activeIndex,R=e.allHelp,A=e.picker,H=function(V,G){var ie=i.locale.parse(o.locale,V,[G]);return ie&&i.isValidate(ie)?ie:null},F=n[0],z=f.useCallback(function(B){return Ua(B,{locale:o,format:F,generateConfig:i})},[o,i,F]),W=f.useMemo(function(){return E.map(z)},[E,z]),q=f.useMemo(function(){var B=A==="time"?8:10,V=typeof F=="function"?F(i.getNow()).length:F.length;return Math.max(B,V)+2},[F,A,i]),Z=function(V){for(var G=0;G<n.length;G+=1){var ie=n[G];if(typeof ie=="string"){var ce=H(V,ie);if(ce)return ce}}return!1},N=function(V){function G(fe){return V!==void 0?fe[V]:fe}var ie=Bi(e,{aria:!0,data:!0}),ce=X(X({},ie),{},{format:r,validateFormat:function(ee){return!!Z(ee)},preserveInvalidOnBlur:a,readOnly:s,required:l,"aria-required":c,name:_,autoComplete:T,size:q,id:G(x),value:G(W)||"",invalid:G(k),placeholder:G(M),active:D===V,helped:R||C&&D===V,disabled:G(P),onFocus:function(ee){d(ee,V)},onBlur:function(ee){h(ee,V)},onSubmit:u,onChange:function(ee){p();var ne=Z(ee);if(ne){m(!1,V),b(ne,V);return}m(!!ee,V)},onHelp:function(){y(!0,{index:V})},onKeyDown:function(ee){var ne=!1;if(S==null||S(ee,function(){ne=!0}),!ee.defaultPrevented&&!ne)switch(ee.key){case"Escape":y(!1,{index:V});break;case"Enter":v||y(!0);break}}},t==null?void 0:t({valueTexts:W}));return Object.keys(ce).forEach(function(fe){ce[fe]===void 0&&delete ce[fe]}),ce};return[N,z]}var AQe=["onMouseEnter","onMouseLeave"];function Pye(e){return f.useMemo(function(){return eP(e,AQe)},[e])}var NQe=["icon","type"],DQe=["onClear"];function iP(e){var t=e.icon,n=e.type,r=tn(e,NQe),i=f.useContext(Jd),o=i.prefixCls;return t?f.createElement("span",st({className:"".concat(o,"-").concat(n)},r),t):null}function KF(e){var t=e.onClear,n=tn(e,DQe);return f.createElement(iP,st({},n,{type:"clear",role:"button",onMouseDown:function(i){i.preventDefault()},onClick:function(i){i.stopPropagation(),t()}}))}var NR=["YYYY","MM","DD","HH","mm","ss","SSS"],vee="顧",LQe=function(){function e(t){hi(this,e),ae(this,"format",void 0),ae(this,"maskFormat",void 0),ae(this,"cells",void 0),ae(this,"maskCells",void 0),this.format=t;var n=NR.map(function(s){return"(".concat(s,")")}).join("|"),r=new RegExp(n,"g");this.maskFormat=t.replace(r,function(s){return vee.repeat(s.length)});var i=new RegExp("(".concat(NR.join("|"),")")),o=(t.split(i)||[]).filter(function(s){return s}),a=0;this.cells=o.map(function(s){var l=NR.includes(s),c=a,u=a+s.length;return a=u,{text:s,mask:l,start:c,end:u}}),this.maskCells=this.cells.filter(function(s){return s.mask})}return pi(e,[{key:"getSelection",value:function(n){var r=this.maskCells[n]||{},i=r.start,o=r.end;return[i||0,o||0]}},{key:"match",value:function(n){for(var r=0;r<this.maskFormat.length;r+=1){var i=this.maskFormat[r],o=n[r];if(!o||i!==vee&&i!==o)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(n){for(var r=Number.MAX_SAFE_INTEGER,i=0,o=0;o<this.maskCells.length;o+=1){var a=this.maskCells[o],s=a.start,l=a.end;if(n>=s&&n<=l)return o;var c=Math.min(Math.abs(n-s),Math.abs(n-l));c<r&&(r=c,i=o)}return i}}]),e}();function FQe(e){var t={YYYY:[0,9999,new Date().getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]};return t[e]}var jQe=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],qF=f.forwardRef(function(e,t){var n=e.active,r=e.showActiveCls,i=r===void 0?!0:r,o=e.suffixIcon,a=e.format,s=e.validateFormat,l=e.onChange;e.onInput;var c=e.helped,u=e.onHelp,d=e.onSubmit,h=e.onKeyDown,p=e.preserveInvalidOnBlur,m=p===void 0?!1:p,v=e.invalid,y=e.clearIcon,S=tn(e,jQe),b=e.value,C=e.onFocus,_=e.onBlur,T=e.onMouseUp,x=f.useContext(Jd),E=x.prefixCls,k=x.input,M=k===void 0?"input":k,P="".concat(E,"-input"),D=f.useState(!1),R=Le(D,2),A=R[0],H=R[1],F=f.useState(b),z=Le(F,2),W=z[0],q=z[1],Z=f.useState(""),N=Le(Z,2),B=N[0],V=N[1],G=f.useState(null),ie=Le(G,2),ce=ie[0],fe=ie[1],ee=f.useState(null),ne=Le(ee,2),ue=ne[0],ye=ne[1],me=W||"";f.useEffect(function(){q(b)},[b]);var pe=f.useRef(),he=f.useRef();f.useImperativeHandle(t,function(){return{nativeElement:pe.current,inputElement:he.current,focus:function(se){he.current.focus(se)},blur:function(){he.current.blur()}}});var _e=f.useMemo(function(){return new LQe(a||"")},[a]),le=f.useMemo(function(){return c?[0,0]:_e.getSelection(ce)},[_e,ce,c]),xe=Le(le,2),we=xe[0],De=xe[1],Fe=function(se){se&&se!==a&&se!==b&&u()},Ce=ur(function(tt){s(tt)&&l(tt),q(tt),Fe(tt)}),Te=function(se){if(!a){var ze=se.target.value;Fe(ze),q(ze),l(ze)}},ke=function(se){var ze=se.clipboardData.getData("text");s(ze)&&Ce(ze)},Pe=f.useRef(!1),Ne=function(){Pe.current=!0},We=function(se){var ze=se.target,Ye=ze.selectionStart,Ue=_e.getMaskCellIndex(Ye);fe(Ue),ye({}),T==null||T(se),Pe.current=!1},Q=function(se){H(!0),fe(0),V(""),C(se)},K=function(se){_(se)},J=function(se){H(!1),K(se)};gW(n,function(){!n&&!m&&q(b)});var be=function(se){se.key==="Enter"&&s(me)&&d(),h==null||h(se)},Oe=function(se){be(se);var ze=se.key,Ye=null,Ue=null,Je=De-we,Ze=a.slice(we,De),rt=function(Bt){fe(function(Dt){var an=Dt+Bt;return an=Math.max(an,0),an=Math.min(an,_e.size()-1),an})},qt=function(Bt){var Dt=FQe(Ze),an=Le(Dt,3),Vt=an[0],Kt=an[1],Qt=an[2],et=me.slice(we,De),ot=Number(et);if(isNaN(ot))return String(Qt||(Bt>0?Vt:Kt));var Qe=ot+Bt,ut=Kt-Vt+1;return String(Vt+(ut+Qe-Vt)%ut)};switch(ze){case"Backspace":case"Delete":Ye="",Ue=Ze;break;case"ArrowLeft":Ye="",rt(-1);break;case"ArrowRight":Ye="",rt(1);break;case"ArrowUp":Ye="",Ue=qt(1);break;case"ArrowDown":Ye="",Ue=qt(-1);break;default:isNaN(Number(ze))||(Ye=B+ze,Ue=Ye);break}if(Ye!==null&&(V(Ye),Ye.length>=Je&&(rt(1),V(""))),Ue!==null){var St=me.slice(0,we)+fW(Ue,Je)+me.slice(De);Ce(St.slice(0,a.length))}ye({})},Se=f.useRef();Er(function(){if(!(!A||!a||Pe.current)){if(!_e.match(me)){Ce(a);return}return he.current.setSelectionRange(we,De),Se.current=Cr(function(){he.current.setSelectionRange(we,De)}),function(){Cr.cancel(Se.current)}}},[_e,a,A,me,ce,we,De,ue,Ce]);var Ke=a?{onFocus:Q,onBlur:J,onKeyDown:Oe,onMouseDown:Ne,onMouseUp:We,onPaste:ke}:{};return f.createElement("div",{ref:pe,className:Re(P,ae(ae({},"".concat(P,"-active"),n&&i),"".concat(P,"-placeholder"),c))},f.createElement(M,st({ref:he,"aria-invalid":v,autoComplete:"off"},S,{onKeyDown:be,onBlur:K},Ke,{value:me,onChange:Te})),f.createElement(iP,{type:"suffix",icon:o}),y)}),BQe=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveOffset","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],HQe=["index"],zQe=["insetInlineStart","insetInlineEnd"];function UQe(e,t){var n=e.id,r=e.prefix,i=e.clearIcon,o=e.suffixIcon,a=e.separator,s=a===void 0?"~":a,l=e.activeIndex;e.activeHelp,e.allHelp;var c=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var u=e.placeholder,d=e.className,h=e.style,p=e.onClick,m=e.onClear,v=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var y=e.disabled,S=e.invalid;e.inputReadOnly;var b=e.direction;e.onOpenChange;var C=e.onActiveOffset,_=e.placement,T=e.onMouseDown;e.required,e["aria-required"];var x=e.autoFocus,E=e.tabIndex,k=tn(e,BQe),M=b==="rtl",P=f.useContext(Jd),D=P.prefixCls,R=f.useMemo(function(){if(typeof n=="string")return[n];var he=n||{};return[he.start,he.end]},[n]),A=f.useRef(),H=f.useRef(),F=f.useRef(),z=function(_e){var le;return(le=[H,F][_e])===null||le===void 0?void 0:le.current};f.useImperativeHandle(t,function(){return{nativeElement:A.current,focus:function(_e){if(ln(_e)==="object"){var le,xe=_e||{},we=xe.index,De=we===void 0?0:we,Fe=tn(xe,HQe);(le=z(De))===null||le===void 0||le.focus(Fe)}else{var Ce;(Ce=z(_e??0))===null||Ce===void 0||Ce.focus()}},blur:function(){var _e,le;(_e=z(0))===null||_e===void 0||_e.blur(),(le=z(1))===null||le===void 0||le.blur()}}});var W=Pye(k),q=f.useMemo(function(){return Array.isArray(u)?u:[u,u]},[u]),Z=Oye(X(X({},e),{},{id:R,placeholder:q})),N=Le(Z,1),B=N[0],V=JO(_,M),G=J0e(V,M),ie=V==null?void 0:V.toLowerCase().endsWith("right"),ce=f.useState({position:"absolute",width:0}),fe=Le(ce,2),ee=fe[0],ne=fe[1],ue=ur(function(){var he=z(l);if(he){var _e=he.nativeElement,le=_e.offsetWidth,xe=_e.offsetLeft,we=_e.offsetParent,De=(we==null?void 0:we.offsetWidth)||0,Fe=ie?De-le-xe:xe;ne(function(Ce){Ce.insetInlineStart,Ce.insetInlineEnd;var Te=tn(Ce,zQe);return X(X({},Te),{},ae({width:le},G,Fe))}),C(Fe)}});f.useEffect(function(){ue()},[l]);var ye=i&&(v[0]&&!y[0]||v[1]&&!y[1]),me=x&&!y[0],pe=x&&!me&&!y[1];return f.createElement(Wa,{onResize:ue},f.createElement("div",st({},W,{className:Re(D,"".concat(D,"-range"),ae(ae(ae(ae({},"".concat(D,"-focused"),c),"".concat(D,"-disabled"),y.every(function(he){return he})),"".concat(D,"-invalid"),S.some(function(he){return he})),"".concat(D,"-rtl"),M),d),style:h,ref:A,onClick:p,onMouseDown:function(_e){var le=_e.target;le!==H.current.inputElement&&le!==F.current.inputElement&&_e.preventDefault(),T==null||T(_e)}}),r&&f.createElement("div",{className:"".concat(D,"-prefix")},r),f.createElement(qF,st({ref:H},B(0),{autoFocus:me,tabIndex:E,"date-range":"start"})),f.createElement("div",{className:"".concat(D,"-range-separator")},s),f.createElement(qF,st({ref:F},B(1),{autoFocus:pe,tabIndex:E,"date-range":"end"})),f.createElement("div",{className:"".concat(D,"-active-bar"),style:ee}),f.createElement(iP,{type:"suffix",icon:o}),ye&&f.createElement(KF,{icon:i,onClear:m})))}var WQe=f.forwardRef(UQe);function yee(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function YT(e){return e===1?"end":"start"}function VQe(e,t){var n=hye(e,function(){var xn=e.disabled,zn=e.allowEmpty,Gn=yee(xn,!1),ir=yee(zn,!1);return{disabled:Gn,allowEmpty:ir}}),r=Le(n,6),i=r[0],o=r[1],a=r[2],s=r[3],l=r[4],c=r[5],u=i.prefixCls,d=i.styles,h=i.classNames,p=i.placement,m=i.defaultValue,v=i.value,y=i.needConfirm,S=i.onKeyDown,b=i.disabled,C=i.allowEmpty,_=i.disabledDate,T=i.minDate,x=i.maxDate,E=i.defaultOpen,k=i.open,M=i.onOpenChange,P=i.locale,D=i.generateConfig,R=i.picker,A=i.showNow,H=i.showToday,F=i.showTime,z=i.mode,W=i.onPanelChange,q=i.onCalendarChange,Z=i.onOk,N=i.defaultPickerValue,B=i.pickerValue,V=i.onPickerValueChange,G=i.inputReadOnly,ie=i.suffixIcon,ce=i.onFocus,fe=i.onBlur,ee=i.presets,ne=i.ranges,ue=i.components,ye=i.cellRender,me=i.dateRender,pe=i.monthCellRender,he=i.onClick,_e=mye(t),le=pye(k,E,b,M),xe=Le(le,2),we=xe[0],De=xe[1],Fe=function(zn,Gn){(b.some(function(ir){return!ir})||!zn)&&De(zn,Gn)},Ce=xye(D,P,s,!0,!1,m,v,q,Z),Te=Le(Ce,5),ke=Te[0],Pe=Te[1],Ne=Te[2],We=Te[3],Q=Te[4],K=Ne(),J=vye(b,C,we),be=Le(J,9),Oe=be[0],Se=be[1],Ke=be[2],tt=be[3],se=be[4],ze=be[5],Ye=be[6],Ue=be[7],Je=be[8],Ze=function(zn,Gn){Se(!0),ce==null||ce(zn,{range:YT(Gn??tt)})},rt=function(zn,Gn){Se(!1),fe==null||fe(zn,{range:YT(Gn??tt)})},qt=f.useMemo(function(){if(!F)return null;var xn=F.disabledTime,zn=xn?function(Gn){var ir=YT(tt),jr=nye(K,Ye,tt);return xn(Gn,ir,{from:jr})}:void 0;return X(X({},F),{},{disabledTime:zn})},[F,tt,K,Ye]),St=er([R,R],{value:z}),Ot=Le(St,2),Bt=Ot[0],Dt=Ot[1],an=Bt[tt]||R,Vt=an==="date"&&qt?"datetime":an,Kt=Vt===R&&Vt!=="time",Qt=_ye(R,an,A,H,!0),et=wye(i,ke,Pe,Ne,We,b,s,Oe,we,c),ot=Le(et,2),Qe=ot[0],ut=ot[1],Nt=pQe(K,b,Ye,D,P,_),Lt=iye(K,c,C),Zt=Le(Lt,2),Wt=Zt[0],At=Zt[1],$t=yye(D,P,K,Bt,we,tt,o,Kt,N,B,qt==null?void 0:qt.defaultOpenValue,V,T,x),Gt=Le($t,2),Ft=Gt[0],cn=Gt[1],_t=ur(function(xn,zn,Gn){var ir=ew(Bt,tt,zn);if((ir[0]!==Bt[0]||ir[1]!==Bt[1])&&Dt(ir),W&&Gn!==!1){var jr=pt(K);xn&&(jr[tt]=xn),W(jr,ir)}}),jt=function(zn,Gn){return ew(K,Gn,zn)},nn=function(zn,Gn){var ir=K;zn&&(ir=jt(zn,tt)),Ue(tt);var jr=ze(ir);We(ir),Qe(tt,jr===null),jr===null?Fe(!1,{force:!0}):Gn||_e.current.focus({index:jr})},Ht=function(zn){var Gn,ir=zn.target.getRootNode();if(!_e.current.nativeElement.contains((Gn=ir.activeElement)!==null&&Gn!==void 0?Gn:document.activeElement)){var jr=b.findIndex(function(Ro){return!Ro});jr>=0&&_e.current.focus({index:jr})}Fe(!0),he==null||he(zn)},Tt=function(){ut(null),Fe(!1,{force:!0})},gt=f.useState(null),Ve=Le(gt,2),Yt=Ve[0],mt=Ve[1],Mt=f.useState(null),zt=Le(Mt,2),Dn=zt[0],Qn=zt[1],O=f.useMemo(function(){return Dn||K},[K,Dn]);f.useEffect(function(){we||Qn(null)},[we]);var j=f.useState(0),oe=Le(j,2),Ae=oe[0],Ge=oe[1],ft=gye(ee,ne),Jt=function(zn){Qn(zn),mt("preset")},on=function(zn){var Gn=ut(zn);Gn&&Fe(!1,{force:!0})},Zn=function(zn){nn(zn)},ni=function(zn){Qn(zn?jt(zn,tt):null),mt("cell")},zr=function(zn){Fe(!0),Ze(zn)},Yr=function(){Ke("panel")},Rr=function(zn){var Gn=ew(K,tt,zn);We(Gn),!y&&!a&&o===Vt&&nn(zn)},wn=function(){Fe(!1)},Pn=hW(ye,me,pe,YT(tt)),Ar=K[tt]||null,bn=ur(function(xn){return c(xn,{activeIndex:tt})}),Cn=f.useMemo(function(){var xn=Bi(i,!1),zn=Pr(i,[].concat(pt(Object.keys(xn)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return zn},[i]),nr=f.createElement(kye,st({},Cn,{showNow:Qt,showTime:qt,range:!0,multiplePanel:Kt,activeOffset:Ae,placement:p,disabledDate:Nt,onFocus:zr,onBlur:rt,onPanelMouseDown:Yr,picker:R,mode:an,internalMode:Vt,onPanelChange:_t,format:l,value:Ar,isInvalid:bn,onChange:null,onSelect:Rr,pickerValue:Ft,defaultOpenValue:Yv(F==null?void 0:F.defaultOpenValue)[tt],onPickerValueChange:cn,hoverValue:O,onHover:ni,needConfirm:y,onSubmit:nn,onOk:Q,presets:ft,onPresetHover:Jt,onPresetSubmit:on,onNow:Zn,cellRender:Pn})),Ir=function(zn,Gn){var ir=jt(zn,Gn);We(ir)},li=function(){Ke("input")},Ui=function(zn,Gn){var ir=Ye.length,jr=Ye[ir-1];if(ir&&jr!==Gn&&y&&!C[jr]&&!Je(jr)&&K[jr]){_e.current.focus({index:jr});return}Ke("input"),Fe(!0,{inherit:!0}),tt!==Gn&&we&&!y&&a&&nn(null,!0),se(Gn),Ze(zn,Gn)},gr=function(zn,Gn){if(Fe(!1),!y&&Ke()==="input"){var ir=ze(K);Qe(tt,ir===null)}rt(zn,Gn)},Di=function(zn,Gn){zn.key==="Tab"&&nn(null,!0),S==null||S(zn,Gn)},fr=f.useMemo(function(){return{prefixCls:u,locale:P,generateConfig:D,button:ue.button,input:ue.input}},[u,P,D,ue.button,ue.input]);return Er(function(){we&&tt!==void 0&&_t(null,R,!1)},[we,tt,R]),Er(function(){var xn=Ke();!we&&xn==="input"&&(Fe(!1),nn(null,!0)),!we&&a&&!y&&xn==="panel"&&(Fe(!0),nn())},[we]),f.createElement(Jd.Provider,{value:fr},f.createElement(eye,st({},rye(i),{popupElement:nr,popupStyle:d.popup,popupClassName:h.popup,visible:we,onClose:wn,range:!0}),f.createElement(WQe,st({},i,{ref:_e,suffixIcon:ie,activeIndex:Oe||we?tt:null,activeHelp:!!Dn,allHelp:!!Dn&&Yt==="preset",focused:Oe,onFocus:Ui,onBlur:gr,onKeyDown:Di,onSubmit:nn,value:O,maskFormat:l,onChange:Ir,onInputChange:li,format:s,inputReadOnly:G,disabled:b,open:we,onOpenChange:Fe,onClick:Ht,onClear:Tt,invalid:Wt,onInvalid:At,onActiveOffset:Ge}))))}var KQe=f.forwardRef(VQe);function qQe(e){var t=e.prefixCls,n=e.value,r=e.onRemove,i=e.removeIcon,o=i===void 0?"×":i,a=e.formatDate,s=e.disabled,l=e.maxTagCount,c=e.placeholder,u="".concat(t,"-selector"),d="".concat(t,"-selection"),h="".concat(d,"-overflow");function p(y,S){return f.createElement("span",{className:Re("".concat(d,"-item")),title:typeof y=="string"?y:null},f.createElement("span",{className:"".concat(d,"-item-content")},y),!s&&S&&f.createElement("span",{onMouseDown:function(C){C.preventDefault()},onClick:S,className:"".concat(d,"-item-remove")},o))}function m(y){var S=a(y),b=function(_){_&&_.stopPropagation(),r(y)};return p(S,b)}function v(y){var S="+ ".concat(y.length," ...");return p(S)}return f.createElement("div",{className:u},f.createElement(Td,{prefixCls:h,data:n,renderItem:m,renderRest:v,itemKey:function(S){return a(S)},maxCount:l}),!n.length&&f.createElement("span",{className:"".concat(t,"-selection-placeholder")},c))}var GQe=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function YQe(e,t){e.id;var n=e.open,r=e.prefix,i=e.clearIcon,o=e.suffixIcon;e.activeHelp,e.allHelp;var a=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var s=e.locale,l=e.generateConfig,c=e.placeholder,u=e.className,d=e.style,h=e.onClick,p=e.onClear,m=e.internalPicker,v=e.value,y=e.onChange,S=e.onSubmit;e.onInputChange;var b=e.multiple,C=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var _=e.disabled,T=e.invalid;e.inputReadOnly;var x=e.direction;e.onOpenChange;var E=e.onMouseDown;e.required,e["aria-required"];var k=e.autoFocus,M=e.tabIndex,P=e.removeIcon,D=tn(e,GQe),R=x==="rtl",A=f.useContext(Jd),H=A.prefixCls,F=f.useRef(),z=f.useRef();f.useImperativeHandle(t,function(){return{nativeElement:F.current,focus:function(ee){var ne;(ne=z.current)===null||ne===void 0||ne.focus(ee)},blur:function(){var ee;(ee=z.current)===null||ee===void 0||ee.blur()}}});var W=Pye(D),q=function(ee){y([ee])},Z=function(ee){var ne=v.filter(function(ue){return ue&&!Bs(l,s,ue,ee,m)});y(ne),n||S()},N=Oye(X(X({},e),{},{onChange:q}),function(fe){var ee=fe.valueTexts;return{value:ee[0]||"",active:a}}),B=Le(N,2),V=B[0],G=B[1],ie=!!(i&&v.length&&!_),ce=b?f.createElement(f.Fragment,null,f.createElement(qQe,{prefixCls:H,value:v,onRemove:Z,formatDate:G,maxTagCount:C,disabled:_,removeIcon:P,placeholder:c}),f.createElement("input",{className:"".concat(H,"-multiple-input"),value:v.map(G).join(","),ref:z,readOnly:!0,autoFocus:k,tabIndex:M}),f.createElement(iP,{type:"suffix",icon:o}),ie&&f.createElement(KF,{icon:i,onClear:p})):f.createElement(qF,st({ref:z},V(),{autoFocus:k,tabIndex:M,suffixIcon:o,clearIcon:ie&&f.createElement(KF,{icon:i,onClear:p}),showActiveCls:!1}));return f.createElement("div",st({},W,{className:Re(H,ae(ae(ae(ae(ae({},"".concat(H,"-multiple"),b),"".concat(H,"-focused"),a),"".concat(H,"-disabled"),_),"".concat(H,"-invalid"),T),"".concat(H,"-rtl"),R),u),style:d,ref:F,onClick:h,onMouseDown:function(ee){var ne,ue=ee.target;ue!==((ne=z.current)===null||ne===void 0?void 0:ne.inputElement)&&ee.preventDefault(),E==null||E(ee)}}),r&&f.createElement("div",{className:"".concat(H,"-prefix")},r),ce)}var XQe=f.forwardRef(YQe);function QQe(e,t){var n=hye(e),r=Le(n,6),i=r[0],o=r[1],a=r[2],s=r[3],l=r[4],c=r[5],u=i,d=u.prefixCls,h=u.styles,p=u.classNames,m=u.order,v=u.defaultValue,y=u.value,S=u.needConfirm,b=u.onChange,C=u.onKeyDown,_=u.disabled,T=u.disabledDate,x=u.minDate,E=u.maxDate,k=u.defaultOpen,M=u.open,P=u.onOpenChange,D=u.locale,R=u.generateConfig,A=u.picker,H=u.showNow,F=u.showToday,z=u.showTime,W=u.mode,q=u.onPanelChange,Z=u.onCalendarChange,N=u.onOk,B=u.multiple,V=u.defaultPickerValue,G=u.pickerValue,ie=u.onPickerValueChange,ce=u.inputReadOnly,fe=u.suffixIcon,ee=u.removeIcon,ne=u.onFocus,ue=u.onBlur,ye=u.presets,me=u.components,pe=u.cellRender,he=u.dateRender,_e=u.monthCellRender,le=u.onClick,xe=mye(t);function we(bn){return bn===null?null:B?bn:bn[0]}var De=Eye(R,D,o),Fe=pye(M,k,[_],P),Ce=Le(Fe,2),Te=Ce[0],ke=Ce[1],Pe=function(Cn,nr,Ir){if(Z){var li=X({},Ir);delete li.range,Z(we(Cn),we(nr),li)}},Ne=function(Cn){N==null||N(we(Cn))},We=xye(R,D,s,!1,m,v,y,Pe,Ne),Q=Le(We,5),K=Q[0],J=Q[1],be=Q[2],Oe=Q[3],Se=Q[4],Ke=be(),tt=vye([_]),se=Le(tt,4),ze=se[0],Ye=se[1],Ue=se[2],Je=se[3],Ze=function(Cn){Ye(!0),ne==null||ne(Cn,{})},rt=function(Cn){Ye(!1),ue==null||ue(Cn,{})},qt=er(A,{value:W}),St=Le(qt,2),Ot=St[0],Bt=St[1],Dt=Ot==="date"&&z?"datetime":Ot,an=_ye(A,Ot,H,F),Vt=b&&function(bn,Cn){b(we(bn),we(Cn))},Kt=wye(X(X({},i),{},{onChange:Vt}),K,J,be,Oe,[],s,ze,Te,c),Qt=Le(Kt,2),et=Qt[1],ot=iye(Ke,c),Qe=Le(ot,2),ut=Qe[0],Nt=Qe[1],Lt=f.useMemo(function(){return ut.some(function(bn){return bn})},[ut]),Zt=function(Cn,nr){if(ie){var Ir=X(X({},nr),{},{mode:nr.mode[0]});delete Ir.range,ie(Cn[0],Ir)}},Wt=yye(R,D,Ke,[Ot],Te,Je,o,!1,V,G,Yv(z==null?void 0:z.defaultOpenValue),Zt,x,E),At=Le(Wt,2),$t=At[0],Gt=At[1],Ft=ur(function(bn,Cn,nr){if(Bt(Cn),q&&nr!==!1){var Ir=bn||Ke[Ke.length-1];q(Ir,Cn)}}),cn=function(){et(be()),ke(!1,{force:!0})},_t=function(Cn){!_&&!xe.current.nativeElement.contains(document.activeElement)&&xe.current.focus(),ke(!0),le==null||le(Cn)},jt=function(){et(null),ke(!1,{force:!0})},nn=f.useState(null),Ht=Le(nn,2),Tt=Ht[0],gt=Ht[1],Ve=f.useState(null),Yt=Le(Ve,2),mt=Yt[0],Mt=Yt[1],zt=f.useMemo(function(){var bn=[mt].concat(pt(Ke)).filter(function(Cn){return Cn});return B?bn:bn.slice(0,1)},[Ke,mt,B]),Dn=f.useMemo(function(){return!B&&mt?[mt]:Ke.filter(function(bn){return bn})},[Ke,mt,B]);f.useEffect(function(){Te||Mt(null)},[Te]);var Qn=gye(ye),O=function(Cn){Mt(Cn),gt("preset")},j=function(Cn){var nr=B?De(be(),Cn):[Cn],Ir=et(nr);Ir&&!B&&ke(!1,{force:!0})},oe=function(Cn){j(Cn)},Ae=function(Cn){Mt(Cn),gt("cell")},Ge=function(Cn){ke(!0),Ze(Cn)},ft=function(Cn){if(Ue("panel"),!(B&&Dt!==A)){var nr=B?De(be(),Cn):[Cn];Oe(nr),!S&&!a&&o===Dt&&cn()}},Jt=function(){ke(!1)},on=hW(pe,he,_e),Zn=f.useMemo(function(){var bn=Bi(i,!1),Cn=Pr(i,[].concat(pt(Object.keys(bn)),["onChange","onCalendarChange","style","className","onPanelChange"]));return X(X({},Cn),{},{multiple:i.multiple})},[i]),ni=f.createElement(kye,st({},Zn,{showNow:an,showTime:z,disabledDate:T,onFocus:Ge,onBlur:rt,picker:A,mode:Ot,internalMode:Dt,onPanelChange:Ft,format:l,value:Ke,isInvalid:c,onChange:null,onSelect:ft,pickerValue:$t,defaultOpenValue:z==null?void 0:z.defaultOpenValue,onPickerValueChange:Gt,hoverValue:zt,onHover:Ae,needConfirm:S,onSubmit:cn,onOk:Se,presets:Qn,onPresetHover:O,onPresetSubmit:j,onNow:oe,cellRender:on})),zr=function(Cn){Oe(Cn)},Yr=function(){Ue("input")},Rr=function(Cn){Ue("input"),ke(!0,{inherit:!0}),Ze(Cn)},wn=function(Cn){ke(!1),rt(Cn)},Pn=function(Cn,nr){Cn.key==="Tab"&&cn(),C==null||C(Cn,nr)},Ar=f.useMemo(function(){return{prefixCls:d,locale:D,generateConfig:R,button:me.button,input:me.input}},[d,D,R,me.button,me.input]);return Er(function(){Te&&Je!==void 0&&Ft(null,A,!1)},[Te,Je,A]),Er(function(){var bn=Ue();!Te&&bn==="input"&&(ke(!1),cn()),!Te&&a&&!S&&bn==="panel"&&(ke(!0),cn())},[Te]),f.createElement(Jd.Provider,{value:Ar},f.createElement(eye,st({},rye(i),{popupElement:ni,popupStyle:h.popup,popupClassName:p.popup,visible:Te,onClose:Jt}),f.createElement(XQe,st({},i,{ref:xe,suffixIcon:fe,removeIcon:ee,activeHelp:!!mt,allHelp:!!mt&&Tt==="preset",focused:ze,onFocus:Rr,onBlur:wn,onKeyDown:Pn,onSubmit:cn,value:Dn,maskFormat:l,onChange:zr,onInputChange:Yr,internalPicker:o,format:s,inputReadOnly:ce,disabled:_,open:Te,onOpenChange:ke,onClick:_t,onClear:jt,invalid:Lt,onInvalid:function(Cn){Nt(Cn,0)}}))))}var ZQe=f.forwardRef(QQe);const Mye=f.createContext(null),JQe=Mye.Provider,Iye=f.createContext(null),eZe=Iye.Provider;var tZe=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],$ye=f.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,i=e.className,o=e.style,a=e.checked,s=e.disabled,l=e.defaultChecked,c=l===void 0?!1:l,u=e.type,d=u===void 0?"checkbox":u,h=e.title,p=e.onChange,m=tn(e,tZe),v=f.useRef(null),y=f.useRef(null),S=er(c,{value:a}),b=Le(S,2),C=b[0],_=b[1];f.useImperativeHandle(t,function(){return{focus:function(k){var M;(M=v.current)===null||M===void 0||M.focus(k)},blur:function(){var k;(k=v.current)===null||k===void 0||k.blur()},input:v.current,nativeElement:y.current}});var T=Re(r,i,ae(ae({},"".concat(r,"-checked"),C),"".concat(r,"-disabled"),s)),x=function(k){s||("checked"in e||_(k.target.checked),p==null||p({target:X(X({},e),{},{type:d,checked:k.target.checked}),stopPropagation:function(){k.stopPropagation()},preventDefault:function(){k.preventDefault()},nativeEvent:k.nativeEvent}))};return f.createElement("span",{className:T,title:h,style:o,ref:y},f.createElement("input",st({},m,{className:"".concat(r,"-input"),ref:v,onChange:x,disabled:s,checked:!!C,type:d})),f.createElement("span",{className:"".concat(r,"-inner")}))});function Rye(e){const t=ge.useRef(null),n=()=>{Cr.cancel(t.current),t.current=null};return[()=>{n(),t.current=Cr(()=>{t.current=null})},o=>{t.current&&(o.stopPropagation(),n()),e==null||e(o)}]}const nZe=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},$r(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},rZe=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:i,motionDurationSlow:o,motionDurationMid:a,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:c,lineWidth:u,colorBgContainerDisabled:d,colorTextDisabled:h,paddingXS:p,dotColorDisabled:m,lineType:v,radioColor:y,radioBgColor:S,calc:b}=e,C=`${t}-inner`,T=b(i).sub(b(4).mul(2)),x=b(1).mul(i).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},$r(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${je(u)} ${v} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},$r(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
|
||
&:hover ${C}`]:{borderColor:r},[`${t}-input:focus-visible + ${C}`]:Object.assign({},Fd(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:x,height:x,marginBlockStart:b(1).mul(i).div(-2).equal({unit:!0}),marginInlineStart:b(1).mul(i).div(-2).equal({unit:!0}),backgroundColor:y,borderBlockStart:0,borderInlineStart:0,borderRadius:x,transform:"scale(0)",opacity:0,transition:`all ${o} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:x,height:x,backgroundColor:l,borderColor:c,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[C]:{borderColor:r,backgroundColor:S,"&::after":{transform:`scale(${e.calc(e.dotSize).div(i).equal()})`,opacity:1,transition:`all ${o} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[C]:{backgroundColor:d,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:m}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:h,cursor:"not-allowed"},[`&${t}-checked`]:{[C]:{"&::after":{transform:`scale(${b(T).div(i).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:p,paddingInlineEnd:p}})}},iZe=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:i,lineType:o,colorBorder:a,motionDurationSlow:s,motionDurationMid:l,buttonPaddingInline:c,fontSize:u,buttonBg:d,fontSizeLG:h,controlHeightLG:p,controlHeightSM:m,paddingXS:v,borderRadius:y,borderRadiusSM:S,borderRadiusLG:b,buttonCheckedBg:C,buttonSolidCheckedColor:_,colorTextDisabled:T,colorBgContainerDisabled:x,buttonCheckedBgDisabled:E,buttonCheckedColorDisabled:k,colorPrimary:M,colorPrimaryHover:P,colorPrimaryActive:D,buttonSolidCheckedBg:R,buttonSolidCheckedHoverBg:A,buttonSolidCheckedActiveBg:H,calc:F}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:je(F(n).sub(F(i).mul(2)).equal()),background:d,border:`${je(i)} ${o} ${a}`,borderBlockStartWidth:F(i).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:i,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:F(i).mul(-1).equal(),insetInlineStart:F(i).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:i,paddingInline:0,backgroundColor:a,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${je(i)} ${o} ${a}`,borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y},"&:first-child:last-child":{borderRadius:y},[`${r}-group-large &`]:{height:p,fontSize:h,lineHeight:je(F(p).sub(F(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${r}-group-small &`]:{height:m,paddingInline:F(v).sub(i).equal(),paddingBlock:0,lineHeight:je(F(m).sub(F(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:S,borderEndStartRadius:S},"&:last-child":{borderStartEndRadius:S,borderEndEndRadius:S}},"&:hover":{position:"relative",color:M},"&:has(:focus-visible)":Object.assign({},Fd(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:M,background:C,borderColor:M,"&::before":{backgroundColor:M},"&:first-child":{borderColor:M},"&:hover":{color:P,borderColor:P,"&::before":{backgroundColor:P}},"&:active":{color:D,borderColor:D,"&::before":{backgroundColor:D}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:_,background:R,borderColor:R,"&:hover":{color:_,background:A,borderColor:A},"&:active":{color:_,background:H,borderColor:H}},"&-disabled":{color:T,backgroundColor:x,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:T,backgroundColor:x,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:k,backgroundColor:E,borderColor:a,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},oZe=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:i,fontSizeLG:o,colorText:a,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:h,colorPrimaryActive:p,colorWhite:m}=e,v=4,y=o,S=t?y-v*2:y-(v+i)*2;return{radioSize:y,dotSize:S,dotColorDisabled:l,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:h,buttonSolidCheckedActiveBg:p,buttonBg:s,buttonCheckedBg:s,buttonColor:a,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-i,wrapperMarginInlineEnd:r,radioColor:t?d:m,radioBgColor:t?s:d}},Aye=Tr("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${je(n)} ${t}`,o=dr(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[nZe(o),rZe(o),iZe(o)]},oZe,{unitless:{radioSize:!0,dotSize:!0}});var aZe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const sZe=(e,t)=>{var n,r;const i=f.useContext(Mye),o=f.useContext(Iye),{getPrefixCls:a,direction:s,radio:l}=f.useContext(hn),c=f.useRef(null),u=ga(t,c),{isFormItemInput:d}=f.useContext(ha),h=z=>{var W,q;(W=e.onChange)===null||W===void 0||W.call(e,z),(q=i==null?void 0:i.onChange)===null||q===void 0||q.call(i,z)},{prefixCls:p,className:m,rootClassName:v,children:y,style:S,title:b}=e,C=aZe(e,["prefixCls","className","rootClassName","children","style","title"]),_=a("radio",p),T=((i==null?void 0:i.optionType)||o)==="button",x=T?`${_}-button`:_,E=_i(_),[k,M,P]=Aye(_,E),D=Object.assign({},C),R=f.useContext(Jo);i&&(D.name=i.name,D.onChange=h,D.checked=e.value===i.value,D.disabled=(n=D.disabled)!==null&&n!==void 0?n:i.disabled),D.disabled=(r=D.disabled)!==null&&r!==void 0?r:R;const A=Re(`${x}-wrapper`,{[`${x}-wrapper-checked`]:D.checked,[`${x}-wrapper-disabled`]:D.disabled,[`${x}-wrapper-rtl`]:s==="rtl",[`${x}-wrapper-in-form-item`]:d,[`${x}-wrapper-block`]:!!(i!=null&&i.block)},l==null?void 0:l.className,m,v,M,P,E),[H,F]=Rye(D.onClick);return k(f.createElement(gE,{component:"Radio",disabled:D.disabled},f.createElement("label",{className:A,style:Object.assign(Object.assign({},l==null?void 0:l.style),S),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:b,onClick:H},f.createElement($ye,Object.assign({},D,{className:Re(D.className,{[_O]:!T}),type:"radio",prefixCls:x,ref:u,onClick:F})),y!==void 0?f.createElement("span",null,y):null)))},H9=f.forwardRef(sZe),lZe=f.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=f.useContext(hn),i=DO(),{prefixCls:o,className:a,rootClassName:s,options:l,buttonStyle:c="outline",disabled:u,children:d,size:h,style:p,id:m,optionType:v,name:y=i,defaultValue:S,value:b,block:C=!1,onChange:_,onMouseEnter:T,onMouseLeave:x,onFocus:E,onBlur:k}=e,[M,P]=er(S,{value:b}),D=f.useCallback(V=>{const G=M,ie=V.target.value;"value"in e||P(ie),ie!==G&&(_==null||_(V))},[M,P,_]),R=n("radio",o),A=`${R}-group`,H=_i(R),[F,z,W]=Aye(R,H);let q=d;l&&l.length>0&&(q=l.map(V=>typeof V=="string"||typeof V=="number"?f.createElement(H9,{key:V.toString(),prefixCls:R,disabled:u,value:V,checked:M===V},V):f.createElement(H9,{key:`radio-group-value-options-${V.value}`,prefixCls:R,disabled:V.disabled||u,value:V.value,checked:M===V.value,title:V.title,style:V.style,id:V.id,required:V.required},V.label)));const Z=$o(h),N=Re(A,`${A}-${c}`,{[`${A}-${Z}`]:Z,[`${A}-rtl`]:r==="rtl",[`${A}-block`]:C},a,s,z,W,H),B=f.useMemo(()=>({onChange:D,value:M,disabled:u,name:y,optionType:v,block:C}),[D,M,u,y,v,C]);return F(f.createElement("div",Object.assign({},Bi(e,{aria:!0,data:!0}),{className:N,style:p,onMouseEnter:T,onMouseLeave:x,onFocus:E,onBlur:k,id:m,ref:t}),f.createElement(JQe,{value:B},q)))}),cZe=f.memo(lZe);var uZe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const dZe=(e,t)=>{const{getPrefixCls:n}=f.useContext(hn),{prefixCls:r}=e,i=uZe(e,["prefixCls"]),o=n("radio",r);return f.createElement(eZe,{value:"button"},f.createElement(H9,Object.assign({prefixCls:o},i,{type:"radio",ref:t})))},fZe=f.forwardRef(dZe),ti=H9;ti.Button=fZe;ti.Group=cZe;ti.__ANT_RADIO=!0;function OE(e){return dr(e,{inputAffixPadding:e.paddingXXS})}const PE=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:o,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:h,colorPrimaryHover:p,colorPrimary:m,controlOutlineWidth:v,controlOutline:y,colorErrorOutline:S,colorWarningOutline:b,colorBgContainer:C}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-i,0),paddingBlockSM:Math.max(Math.round((o-n*r)/2*10)/10-i,0),paddingBlockLG:Math.ceil((a-s*l)/2*10)/10-i,paddingInline:c-i,paddingInlineSM:u-i,paddingInlineLG:d-i,addonBg:h,activeBorderColor:m,hoverBorderColor:p,activeShadow:`0 0 0 ${v}px ${y}`,errorActiveShadow:`0 0 0 ${v}px ${S}`,warningActiveShadow:`0 0 0 ${v}px ${b}`,hoverBg:C,activeBg:C,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},hZe=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),oP=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},hZe(dr(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),yW=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),bee=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},yW(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),bW=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},yW(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},oP(e))}),bee(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),bee(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),See=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Nye=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${je(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},See(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),See(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},oP(e))}})}),SW=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},Dye=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),Cee=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Dye(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),CW=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Dye(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},oP(e))}),Cee(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Cee(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),xee=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Lye=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${je(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${je(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},xee(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),xee(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${je(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${je(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${je(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${je(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${je(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${je(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),xW=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Fye=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${je(t)} ${je(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},wW=e=>({padding:`${je(e.paddingBlockSM)} ${je(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),ME=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${je(e.paddingBlock)} ${je(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},xW(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},Fye(e)),"&-sm":Object.assign({},wW(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),jye=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},Fye(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},wW(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${je(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${je(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${je(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${je(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${je(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},Ld()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
|
||
& > ${t}-affix-wrapper,
|
||
& > ${t}-number-affix-wrapper,
|
||
& > ${n}-picker-range
|
||
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,
|
||
& > ${n}-select-auto-complete ${t},
|
||
& > ${n}-cascader-picker ${t},
|
||
& > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
||
& > ${n}-select:first-child > ${n}-select-selector,
|
||
& > ${n}-select-auto-complete:first-child ${t},
|
||
& > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
||
& > ${n}-select:last-child > ${n}-select-selector,
|
||
& > ${n}-cascader-picker:last-child ${t},
|
||
& > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},pZe=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:i}=e,a=i(n).sub(i(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},$r(e)),ME(e)),bW(e)),CW(e)),SW(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},mZe=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${je(e.inputAffixPadding)}`}}}},gZe=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:o,colorIconHover:a,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},ME(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),mZe(e)),{[`${s}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:a}}}),[c]:{[`${s}${t}-password-icon`]:{color:o,cursor:"not-allowed","&:hover":{color:o}}}}},vZe=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},$r(e)),jye(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},Nye(e)),Lye(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},yZe=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
|
||
> ${t},
|
||
${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},bZe=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
||
&-allow-clear > ${t},
|
||
&-affix-wrapper${r}-has-feedback ${t}
|
||
`]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},SZe=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},_W=Tr("Input",e=>{const t=dr(e,OE(e));return[pZe(t),bZe(t),gZe(t),vZe(t),yZe(t),SZe(t),Gv(t)]},PE,{resetFont:!1}),DR=(e,t)=>{const{componentCls:n,controlHeight:r}=e,i=t?`${n}-${t}`:"",o=Jve(e);return[{[`${n}-multiple${i}`]:{paddingBlock:o.containerPadding,paddingInlineStart:o.basePadding,minHeight:r,[`${n}-selection-item`]:{height:o.itemHeight,lineHeight:je(o.itemLineHeight)}}}]},CZe=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,i=dr(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),o=dr(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[DR(i,"small"),DR(e),DR(o,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},e0e(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},xZe=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:i,motionDurationMid:o,cellHoverBg:a,lineWidth:s,lineType:l,colorPrimary:c,cellActiveWithRangeBg:u,colorTextLightSolid:d,colorTextDisabled:h,cellBgDisabled:p,colorFillSecondary:m}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:je(r),borderRadius:i,transition:`background ${o}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),
|
||
&:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:a}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${je(s)} ${l} ${c}`,borderRadius:i,content:'""'}},[`&-in-view${t}-in-range,
|
||
&-in-view${t}-range-start,
|
||
&-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:u}},[`&-in-view${t}-selected,
|
||
&-in-view${t}-range-start,
|
||
&-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:d,background:c},[`&${t}-disabled ${n}`]:{background:m}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:i,borderEndStartRadius:i,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i},"&-disabled":{color:h,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:p}},[`&-disabled${t}-today ${n}::before`]:{borderColor:h}}},wZe=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:i,pickerControlIconSize:o,cellWidth:a,paddingSM:s,paddingXS:l,paddingXXS:c,colorBgContainer:u,lineWidth:d,lineType:h,borderRadiusLG:p,colorPrimary:m,colorTextHeading:v,colorSplit:y,pickerControlIconBorderWidth:S,colorIcon:b,textHeight:C,motionDurationMid:_,colorIconHover:T,fontWeightStrong:x,cellHeight:E,pickerCellPaddingVertical:k,colorTextDisabled:M,colorText:P,fontSize:D,motionDurationSlow:R,withoutTimeCellHeight:A,pickerQuarterPanelContentHeight:H,borderRadiusSM:F,colorTextLightSolid:z,cellHoverBg:W,timeColumnHeight:q,timeColumnWidth:Z,timeCellHeight:N,controlItemBgActive:B,marginXXS:V,pickerDatePanelPaddingHorizontal:G,pickerControlIconMargin:ie}=e,ce=e.calc(a).mul(7).add(e.calc(G).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,borderRadius:p,outline:"none","&-focused":{borderColor:m},"&-rtl":{[`${t}-prev-icon,
|
||
${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,
|
||
${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:ce},"&-header":{display:"flex",padding:`0 ${je(l)}`,color:v,borderBottom:`${je(d)} ${h} ${y}`,"> *":{flex:"none"},button:{padding:0,color:b,lineHeight:je(C),background:"transparent",border:0,cursor:"pointer",transition:`color ${_}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:D,"&:hover":{color:T},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:x,lineHeight:je(C),"> button":{color:"inherit",fontWeight:"inherit","&:not(:first-child)":{marginInlineStart:l},"&:hover":{color:m}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:o,height:o,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:o,height:o,border:"0 solid currentcolor",borderBlockWidth:`${je(S)} 0`,borderInlineWidth:`${je(S)} 0`,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:ie,insetInlineStart:ie,display:"inline-block",width:o,height:o,border:"0 solid currentcolor",borderBlockWidth:`${je(S)} 0`,borderInlineWidth:`${je(S)} 0`,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:E,fontWeight:"normal"},th:{height:e.calc(E).add(e.calc(k).mul(2)).equal(),color:P,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${je(k)} 0`,color:M,cursor:"pointer","&-in-view":{color:P}},xZe(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(A).mul(4).equal()},[r]:{padding:`0 ${je(l)}`}},"&-quarter-panel":{[`${t}-content`]:{height:H}},"&-decade-panel":{[r]:{padding:`0 ${je(e.calc(l).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${je(l)}`},[r]:{width:i}},"&-date-panel":{[`${t}-body`]:{padding:`${je(l)} ${je(G)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${r},
|
||
&-selected ${r},
|
||
${r}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${_}`},"&:first-child:before":{borderStartStartRadius:F,borderEndStartRadius:F},"&:last-child:before":{borderStartEndRadius:F,borderEndEndRadius:F}},"&:hover td:before":{background:W},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:m},[`&${t}-cell-week`]:{color:new xr(z).setA(.5).toHexString()},[r]:{color:z}}},"&-range-hover td:before":{background:B}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${je(l)} ${je(s)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${je(d)} ${h} ${y}`},[`${t}-date-panel,
|
||
${t}-time-panel`]:{transition:`opacity ${R}`},"&-active":{[`${t}-date-panel,
|
||
${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:q},"&-column":{flex:"1 0 auto",width:Z,margin:`${je(c)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${_}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${je(N)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${je(d)} ${h} ${y}`},"&-active":{background:new xr(B).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:V,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(Z).sub(e.calc(V).mul(2)).equal(),height:N,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(Z).sub(N).div(2).equal(),color:P,lineHeight:je(N),borderRadius:F,cursor:"pointer",transition:`background ${_}`,"&:hover":{background:W}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:B}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:M,background:"transparent",cursor:"not-allowed"}}}}}}}}},_Ze=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:i,antCls:o,colorPrimary:a,cellActiveWithRangeBg:s,colorPrimaryBorder:l,lineType:c,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${je(r)} ${c} ${u}`,"&-extra":{padding:`0 ${je(i)}`,lineHeight:je(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${je(r)} ${c} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:je(i),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:je(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${o}-tag-blue`]:{color:a,background:s,borderColor:l,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},EZe=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:i}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(i).add(e.calc(r).div(2)).equal()}},TZe=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:i,paddingXXS:o,lineWidth:a}=e,s=o*2,l=a*2,c=Math.min(n-s,n-l),u=Math.min(r-s,r-l),d=Math.min(i-s,i-l);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(o/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new xr(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new xr(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:i*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:i,withoutTimeCellHeight:i*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:c,multipleItemHeightSM:u,multipleItemHeightLG:d,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},kZe=e=>Object.assign(Object.assign(Object.assign(Object.assign({},PE(e)),TZe(e)),KO(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),OZe=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign({},bW(e)),CW(e)),SW(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${je(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${je(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${je(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},LR=(e,t,n,r)=>{const i=e.calc(n).add(2).equal(),o=e.max(e.calc(t).sub(i).div(2).equal(),0),a=e.max(e.calc(t).sub(i).sub(o).equal(),0);return{padding:`${je(o)} ${je(r)} ${je(a)}`}},PZe=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},MZe=e=>{const{componentCls:t,antCls:n,controlHeight:r,paddingInline:i,lineWidth:o,lineType:a,colorBorder:s,borderRadius:l,motionDurationMid:c,colorTextDisabled:u,colorTextPlaceholder:d,controlHeightLG:h,fontSizeLG:p,controlHeightSM:m,paddingInlineSM:v,paddingXS:y,marginXS:S,colorTextDescription:b,lineWidthBold:C,colorPrimary:_,motionDurationSlow:T,zIndexPopup:x,paddingXXS:E,sizePopupArrow:k,colorBgElevated:M,borderRadiusLG:P,boxShadowSecondary:D,borderRadiusSM:R,colorSplit:A,cellHoverBg:H,presetsWidth:F,presetsMaxWidth:z,boxShadowPopoverArrow:W,fontHeight:q,fontHeightLG:Z,lineHeightLG:N}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},$r(e)),LR(e,r,q,i)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:l,transition:`border ${c}, box-shadow ${c}, background ${c}`,[`${t}-prefix`]:{marginInlineEnd:e.inputAffixPadding},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${c}`},xW(d)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:u,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:d}}},"&-large":Object.assign(Object.assign({},LR(e,h,Z,i)),{[`${t}-input > input`]:{fontSize:p,lineHeight:N}}),"&-small":Object.assign({},LR(e,m,q,v)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(y).div(2).equal(),color:u,lineHeight:1,pointerEvents:"none",transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:S}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:u,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top"},"&:hover":{color:b}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:p,color:u,fontSize:p,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:b},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(o).mul(-1).equal(),height:C,background:_,opacity:0,transition:`all ${T} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${je(y)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:i},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:v}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},$r(e)),wZe(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:x,[`&${t}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${t}-dropdown-placement-bottomLeft,
|
||
&${t}-dropdown-placement-bottomRight`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft,
|
||
&${t}-dropdown-placement-topRight`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft,
|
||
&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight,
|
||
&${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft,
|
||
&${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:PO},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft,
|
||
&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight,
|
||
&${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft,
|
||
&${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:kO},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft,
|
||
&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:MO},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft,
|
||
&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:OO},[`${t}-panel > ${t}-time-panel`]:{paddingTop:E},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(i).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${T} ease-out`},s0e(e,M,W)),{"&:before":{insetInlineStart:e.calc(i).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:M,borderRadius:P,boxShadow:D,transition:`margin ${T}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:F,maxWidth:z,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:y,borderInlineEnd:`${je(o)} ${a} ${A}`,li:Object.assign(Object.assign({},Gl),{borderRadius:R,paddingInline:y,paddingBlock:e.calc(m).sub(q).div(2).equal(),cursor:"pointer",transition:`all ${T}`,"+ li":{marginTop:S},"&:hover":{background:H}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:s}}}}),"&-dropdown-range":{padding:`${je(e.calc(k).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},Kf(e,"slide-up"),Kf(e,"slide-down"),Gb(e,"move-up"),Gb(e,"move-down")]},Bye=Tr("DatePicker",e=>{const t=dr(OE(e),EZe(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[_Ze(t),MZe(t),OZe(t),PZe(t),CZe(t),Gv(e,{focusElCls:`${e.componentCls}-focused`})]},kZe);var IZe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},$Ze=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:IZe}))},eC=f.forwardRef($Ze);const aP=f.createContext(null);var RZe=function(t){var n=t.activeTabOffset,r=t.horizontal,i=t.rtl,o=t.indicator,a=o===void 0?{}:o,s=a.size,l=a.align,c=l===void 0?"center":l,u=f.useState(),d=Le(u,2),h=d[0],p=d[1],m=f.useRef(),v=ge.useCallback(function(S){return typeof s=="function"?s(S):typeof s=="number"?s:S},[s]);function y(){Cr.cancel(m.current)}return f.useEffect(function(){var S={};if(n)if(r){S.width=v(n.width);var b=i?"right":"left";c==="start"&&(S[b]=n[b]),c==="center"&&(S[b]=n[b]+n.width/2,S.transform=i?"translateX(50%)":"translateX(-50%)"),c==="end"&&(S[b]=n[b]+n.width,S.transform="translateX(-100%)")}else S.height=v(n.height),c==="start"&&(S.top=n.top),c==="center"&&(S.top=n.top+n.height/2,S.transform="translateY(-50%)"),c==="end"&&(S.top=n.top+n.height,S.transform="translateY(-100%)");return y(),m.current=Cr(function(){p(S)}),y},[n,r,i,c,v]),{style:h}},wee={width:0,height:0,left:0,top:0};function AZe(e,t,n){return f.useMemo(function(){for(var r,i=new Map,o=t.get((r=e[0])===null||r===void 0?void 0:r.key)||wee,a=o.left+o.width,s=0;s<e.length;s+=1){var l=e[s].key,c=t.get(l);if(!c){var u;c=t.get((u=e[s-1])===null||u===void 0?void 0:u.key)||wee}var d=i.get(l)||X({},c);d.right=a-d.left-d.width,i.set(l,d)}return i},[e.map(function(r){return r.key}).join("_"),t,n])}function _ee(e,t){var n=f.useRef(e),r=f.useState({}),i=Le(r,2),o=i[1];function a(s){var l=typeof s=="function"?s(n.current):s;l!==n.current&&t(l,n.current),n.current=l,o({})}return[n.current,a]}var NZe=.1,Eee=.01,N8=20,Tee=Math.pow(.995,N8);function DZe(e,t){var n=f.useState(),r=Le(n,2),i=r[0],o=r[1],a=f.useState(0),s=Le(a,2),l=s[0],c=s[1],u=f.useState(0),d=Le(u,2),h=d[0],p=d[1],m=f.useState(),v=Le(m,2),y=v[0],S=v[1],b=f.useRef();function C(M){var P=M.touches[0],D=P.screenX,R=P.screenY;o({x:D,y:R}),window.clearInterval(b.current)}function _(M){if(i){var P=M.touches[0],D=P.screenX,R=P.screenY;o({x:D,y:R});var A=D-i.x,H=R-i.y;t(A,H);var F=Date.now();c(F),p(F-l),S({x:A,y:H})}}function T(){if(i&&(o(null),S(null),y)){var M=y.x/h,P=y.y/h,D=Math.abs(M),R=Math.abs(P);if(Math.max(D,R)<NZe)return;var A=M,H=P;b.current=window.setInterval(function(){if(Math.abs(A)<Eee&&Math.abs(H)<Eee){window.clearInterval(b.current);return}A*=Tee,H*=Tee,t(A*N8,H*N8)},N8)}}var x=f.useRef();function E(M){var P=M.deltaX,D=M.deltaY,R=0,A=Math.abs(P),H=Math.abs(D);A===H?R=x.current==="x"?P:D:A>H?(R=P,x.current="x"):(R=D,x.current="y"),t(-R,-R)&&M.preventDefault()}var k=f.useRef(null);k.current={onTouchStart:C,onTouchMove:_,onTouchEnd:T,onWheel:E},f.useEffect(function(){function M(A){k.current.onTouchStart(A)}function P(A){k.current.onTouchMove(A)}function D(A){k.current.onTouchEnd(A)}function R(A){k.current.onWheel(A)}return document.addEventListener("touchmove",P,{passive:!1}),document.addEventListener("touchend",D,{passive:!0}),e.current.addEventListener("touchstart",M,{passive:!0}),e.current.addEventListener("wheel",R,{passive:!1}),function(){document.removeEventListener("touchmove",P),document.removeEventListener("touchend",D)}},[])}function Hye(e){var t=f.useState(0),n=Le(t,2),r=n[0],i=n[1],o=f.useRef(0),a=f.useRef();return a.current=e,Y1(function(){var s;(s=a.current)===null||s===void 0||s.call(a)},[r]),function(){o.current===r&&(o.current+=1,i(o.current))}}function LZe(e){var t=f.useRef([]),n=f.useState({}),r=Le(n,2),i=r[1],o=f.useRef(typeof e=="function"?e():e),a=Hye(function(){var l=o.current;t.current.forEach(function(c){l=c(l)}),t.current=[],o.current=l,i({})});function s(l){t.current.push(l),a()}return[o.current,s]}var kee={width:0,height:0,left:0,top:0,right:0};function FZe(e,t,n,r,i,o,a){var s=a.tabs,l=a.tabPosition,c=a.rtl,u,d,h;return["top","bottom"].includes(l)?(u="width",d=c?"right":"left",h=Math.abs(n)):(u="height",d="top",h=-n),f.useMemo(function(){if(!s.length)return[0,0];for(var p=s.length,m=p,v=0;v<p;v+=1){var y=e.get(s[v].key)||kee;if(Math.floor(y[d]+y[u])>Math.floor(h+t)){m=v-1;break}}for(var S=0,b=p-1;b>=0;b-=1){var C=e.get(s[b].key)||kee;if(C[d]<h){S=b+1;break}}return S>=m?[0,0]:[S,m]},[e,t,r,i,o,h,l,s.map(function(p){return p.key}).join("_"),c])}function Oee(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var jZe="TABS_DQ";function zye(e){return String(e).replace(/"/g,jZe)}function EW(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var Uye=f.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,i=e.locale,o=e.style;return!r||r.showAdd===!1?null:f.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:o,"aria-label":(i==null?void 0:i.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s})}},r.addIcon||"+")}),Pee=f.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,i=e.extra;if(!i)return null;var o,a={};return ln(i)==="object"&&!f.isValidElement(i)?a=i:a.right=i,n==="right"&&(o=a.right),n==="left"&&(o=a.left),o?f.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},o):null}),BZe=f.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,i=e.tabs,o=e.locale,a=e.mobile,s=e.more,l=s===void 0?{}:s,c=e.style,u=e.className,d=e.editable,h=e.tabBarGutter,p=e.rtl,m=e.removeAriaLabel,v=e.onTabClick,y=e.getPopupContainer,S=e.popupClassName,b=f.useState(!1),C=Le(b,2),_=C[0],T=C[1],x=f.useState(null),E=Le(x,2),k=E[0],M=E[1],P=l.icon,D=P===void 0?"More":P,R="".concat(r,"-more-popup"),A="".concat(n,"-dropdown"),H=k!==null?"".concat(R,"-").concat(k):null,F=o==null?void 0:o.dropdownAriaLabel;function z(G,ie){G.preventDefault(),G.stopPropagation(),d.onEdit("remove",{key:ie,event:G})}var W=f.createElement(QS,{onClick:function(ie){var ce=ie.key,fe=ie.domEvent;v(ce,fe),T(!1)},prefixCls:"".concat(A,"-menu"),id:R,tabIndex:-1,role:"listbox","aria-activedescendant":H,selectedKeys:[k],"aria-label":F!==void 0?F:"expanded dropdown"},i.map(function(G){var ie=G.closable,ce=G.disabled,fe=G.closeIcon,ee=G.key,ne=G.label,ue=EW(ie,fe,d,ce);return f.createElement(EE,{key:ee,id:"".concat(R,"-").concat(ee),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(ee),disabled:ce},f.createElement("span",null,ne),ue&&f.createElement("button",{type:"button","aria-label":m||"remove",tabIndex:0,className:"".concat(A,"-menu-item-remove"),onClick:function(me){me.stopPropagation(),z(me,ee)}},fe||d.removeIcon||"×"))}));function q(G){for(var ie=i.filter(function(ue){return!ue.disabled}),ce=ie.findIndex(function(ue){return ue.key===k})||0,fe=ie.length,ee=0;ee<fe;ee+=1){ce=(ce+G+fe)%fe;var ne=ie[ce];if(!ne.disabled){M(ne.key);return}}}function Z(G){var ie=G.which;if(!_){[Pt.DOWN,Pt.SPACE,Pt.ENTER].includes(ie)&&(T(!0),G.preventDefault());return}switch(ie){case Pt.UP:q(-1),G.preventDefault();break;case Pt.DOWN:q(1),G.preventDefault();break;case Pt.ESC:T(!1);break;case Pt.SPACE:case Pt.ENTER:k!==null&&v(k,G);break}}f.useEffect(function(){var G=document.getElementById(H);G&&G.scrollIntoView&&G.scrollIntoView(!1)},[k]),f.useEffect(function(){_||M(null)},[_]);var N=ae({},p?"marginRight":"marginLeft",h);i.length||(N.visibility="hidden",N.order=1);var B=Re(ae({},"".concat(A,"-rtl"),p)),V=a?null:f.createElement(v0e,st({prefixCls:A,overlay:W,visible:i.length?_:!1,onVisibleChange:T,overlayClassName:Re(B,S),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:y},l),f.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:N,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":R,id:"".concat(r,"-more"),"aria-expanded":_,onKeyDown:Z},D));return f.createElement("div",{className:Re("".concat(n,"-nav-operations"),u),style:c,ref:t},V,f.createElement(Uye,{prefixCls:n,locale:o,editable:d}))});const HZe=f.memo(BZe,function(e,t){return t.tabMoving});var zZe=function(t){var n=t.prefixCls,r=t.id,i=t.active,o=t.focus,a=t.tab,s=a.key,l=a.label,c=a.disabled,u=a.closeIcon,d=a.icon,h=t.closable,p=t.renderWrapper,m=t.removeAriaLabel,v=t.editable,y=t.onClick,S=t.onFocus,b=t.onBlur,C=t.onKeyDown,_=t.onMouseDown,T=t.onMouseUp,x=t.style,E=t.tabCount,k=t.currentPosition,M="".concat(n,"-tab"),P=EW(h,u,v,c);function D(z){c||y(z)}function R(z){z.preventDefault(),z.stopPropagation(),v.onEdit("remove",{key:s,event:z})}var A=f.useMemo(function(){return d&&typeof l=="string"?f.createElement("span",null,l):l},[l,d]),H=f.useRef(null);f.useEffect(function(){o&&H.current&&H.current.focus()},[o]);var F=f.createElement("div",{key:s,"data-node-key":zye(s),className:Re(M,ae(ae(ae(ae({},"".concat(M,"-with-remove"),P),"".concat(M,"-active"),i),"".concat(M,"-disabled"),c),"".concat(M,"-focus"),o)),style:x,onClick:D},f.createElement("div",{ref:H,role:"tab","aria-selected":i,id:r&&"".concat(r,"-tab-").concat(s),className:"".concat(M,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(s),"aria-disabled":c,tabIndex:c?null:i?0:-1,onClick:function(W){W.stopPropagation(),D(W)},onKeyDown:C,onMouseDown:_,onMouseUp:T,onFocus:S,onBlur:b},o&&f.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(k," of ").concat(E)),d&&f.createElement("span",{className:"".concat(M,"-icon")},d),l&&A),P&&f.createElement("button",{type:"button","aria-label":m||"remove",tabIndex:i?0:-1,className:"".concat(M,"-remove"),onClick:function(W){W.stopPropagation(),R(W)}},u||v.removeIcon||"×"));return p?p(F):F},UZe=function(t,n){var r=t.offsetWidth,i=t.offsetHeight,o=t.offsetTop,a=t.offsetLeft,s=t.getBoundingClientRect(),l=s.width,c=s.height,u=s.left,d=s.top;return Math.abs(l-r)<1?[l,c,u-n.left,d-n.top]:[r,i,a,o]},ny=function(t){var n=t.current||{},r=n.offsetWidth,i=r===void 0?0:r,o=n.offsetHeight,a=o===void 0?0:o;if(t.current){var s=t.current.getBoundingClientRect(),l=s.width,c=s.height;if(Math.abs(l-i)<1)return[l,c]}return[i,a]},XT=function(t,n){return t[n?0:1]},Mee=f.forwardRef(function(e,t){var n=e.className,r=e.style,i=e.id,o=e.animated,a=e.activeKey,s=e.rtl,l=e.extra,c=e.editable,u=e.locale,d=e.tabPosition,h=e.tabBarGutter,p=e.children,m=e.onTabClick,v=e.onTabScroll,y=e.indicator,S=f.useContext(aP),b=S.prefixCls,C=S.tabs,_=f.useRef(null),T=f.useRef(null),x=f.useRef(null),E=f.useRef(null),k=f.useRef(null),M=f.useRef(null),P=f.useRef(null),D=d==="top"||d==="bottom",R=_ee(0,function(Yt,mt){D&&v&&v({direction:Yt>mt?"left":"right"})}),A=Le(R,2),H=A[0],F=A[1],z=_ee(0,function(Yt,mt){!D&&v&&v({direction:Yt>mt?"top":"bottom"})}),W=Le(z,2),q=W[0],Z=W[1],N=f.useState([0,0]),B=Le(N,2),V=B[0],G=B[1],ie=f.useState([0,0]),ce=Le(ie,2),fe=ce[0],ee=ce[1],ne=f.useState([0,0]),ue=Le(ne,2),ye=ue[0],me=ue[1],pe=f.useState([0,0]),he=Le(pe,2),_e=he[0],le=he[1],xe=LZe(new Map),we=Le(xe,2),De=we[0],Fe=we[1],Ce=AZe(C,De,fe[0]),Te=XT(V,D),ke=XT(fe,D),Pe=XT(ye,D),Ne=XT(_e,D),We=Math.floor(Te)<Math.floor(ke+Pe),Q=We?Te-Ne:Te-Pe,K="".concat(b,"-nav-operations-hidden"),J=0,be=0;D&&s?(J=0,be=Math.max(0,ke-Q)):(J=Math.min(0,Q-ke),be=0);function Oe(Yt){return Yt<J?J:Yt>be?be:Yt}var Se=f.useRef(null),Ke=f.useState(),tt=Le(Ke,2),se=tt[0],ze=tt[1];function Ye(){ze(Date.now())}function Ue(){Se.current&&clearTimeout(Se.current)}DZe(E,function(Yt,mt){function Mt(zt,Dn){zt(function(Qn){var O=Oe(Qn+Dn);return O})}return We?(D?Mt(F,Yt):Mt(Z,mt),Ue(),Ye(),!0):!1}),f.useEffect(function(){return Ue(),se&&(Se.current=setTimeout(function(){ze(0)},100)),Ue},[se]);var Je=FZe(Ce,Q,D?H:q,ke,Pe,Ne,X(X({},e),{},{tabs:C})),Ze=Le(Je,2),rt=Ze[0],qt=Ze[1],St=ur(function(){var Yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a,mt=Ce.get(Yt)||{width:0,height:0,left:0,right:0,top:0};if(D){var Mt=H;s?mt.right<H?Mt=mt.right:mt.right+mt.width>H+Q&&(Mt=mt.right+mt.width-Q):mt.left<-H?Mt=-mt.left:mt.left+mt.width>-H+Q&&(Mt=-(mt.left+mt.width-Q)),Z(0),F(Oe(Mt))}else{var zt=q;mt.top<-q?zt=-mt.top:mt.top+mt.height>-q+Q&&(zt=-(mt.top+mt.height-Q)),F(0),Z(Oe(zt))}}),Ot=f.useState(),Bt=Le(Ot,2),Dt=Bt[0],an=Bt[1],Vt=f.useState(!1),Kt=Le(Vt,2),Qt=Kt[0],et=Kt[1],ot=C.filter(function(Yt){return!Yt.disabled}).map(function(Yt){return Yt.key}),Qe=function(mt){var Mt=ot.indexOf(Dt||a),zt=ot.length,Dn=(Mt+mt+zt)%zt,Qn=ot[Dn];an(Qn)},ut=function(mt){var Mt=mt.code,zt=s&&D,Dn=ot[0],Qn=ot[ot.length-1];switch(Mt){case"ArrowLeft":{D&&Qe(zt?1:-1);break}case"ArrowRight":{D&&Qe(zt?-1:1);break}case"ArrowUp":{mt.preventDefault(),D||Qe(-1);break}case"ArrowDown":{mt.preventDefault(),D||Qe(1);break}case"Home":{mt.preventDefault(),an(Dn);break}case"End":{mt.preventDefault(),an(Qn);break}case"Enter":case"Space":{mt.preventDefault(),m(Dt,mt);break}case"Backspace":case"Delete":{var O=ot.indexOf(Dt),j=C.find(function(Ae){return Ae.key===Dt}),oe=EW(j==null?void 0:j.closable,j==null?void 0:j.closeIcon,c,j==null?void 0:j.disabled);oe&&(mt.preventDefault(),mt.stopPropagation(),c.onEdit("remove",{key:Dt,event:mt}),O===ot.length-1?Qe(-1):Qe(1));break}}},Nt={};D?Nt[s?"marginRight":"marginLeft"]=h:Nt.marginTop=h;var Lt=C.map(function(Yt,mt){var Mt=Yt.key;return f.createElement(zZe,{id:i,prefixCls:b,key:Mt,tab:Yt,style:mt===0?void 0:Nt,closable:Yt.closable,editable:c,active:Mt===a,focus:Mt===Dt,renderWrapper:p,removeAriaLabel:u==null?void 0:u.removeAriaLabel,tabCount:ot.length,currentPosition:mt+1,onClick:function(Dn){m(Mt,Dn)},onKeyDown:ut,onFocus:function(){Qt||an(Mt),St(Mt),Ye(),E.current&&(s||(E.current.scrollLeft=0),E.current.scrollTop=0)},onBlur:function(){an(void 0)},onMouseDown:function(){et(!0)},onMouseUp:function(){et(!1)}})}),Zt=function(){return Fe(function(){var mt,Mt=new Map,zt=(mt=k.current)===null||mt===void 0?void 0:mt.getBoundingClientRect();return C.forEach(function(Dn){var Qn,O=Dn.key,j=(Qn=k.current)===null||Qn===void 0?void 0:Qn.querySelector('[data-node-key="'.concat(zye(O),'"]'));if(j){var oe=UZe(j,zt),Ae=Le(oe,4),Ge=Ae[0],ft=Ae[1],Jt=Ae[2],on=Ae[3];Mt.set(O,{width:Ge,height:ft,left:Jt,top:on})}}),Mt})};f.useEffect(function(){Zt()},[C.map(function(Yt){return Yt.key}).join("_")]);var Wt=Hye(function(){var Yt=ny(_),mt=ny(T),Mt=ny(x);G([Yt[0]-mt[0]-Mt[0],Yt[1]-mt[1]-Mt[1]]);var zt=ny(P);me(zt);var Dn=ny(M);le(Dn);var Qn=ny(k);ee([Qn[0]-zt[0],Qn[1]-zt[1]]),Zt()}),At=C.slice(0,rt),$t=C.slice(qt+1),Gt=[].concat(pt(At),pt($t)),Ft=Ce.get(a),cn=RZe({activeTabOffset:Ft,horizontal:D,indicator:y,rtl:s}),_t=cn.style;f.useEffect(function(){St()},[a,J,be,Oee(Ft),Oee(Ce),D]),f.useEffect(function(){Wt()},[s]);var jt=!!Gt.length,nn="".concat(b,"-nav-wrap"),Ht,Tt,gt,Ve;return D?s?(Tt=H>0,Ht=H!==be):(Ht=H<0,Tt=H!==J):(gt=q<0,Ve=q!==J),f.createElement(Wa,{onResize:Wt},f.createElement("div",{ref:Xd(t,_),role:"tablist","aria-orientation":D?"horizontal":"vertical",className:Re("".concat(b,"-nav"),n),style:r,onKeyDown:function(){Ye()}},f.createElement(Pee,{ref:T,position:"left",extra:l,prefixCls:b}),f.createElement(Wa,{onResize:Wt},f.createElement("div",{className:Re(nn,ae(ae(ae(ae({},"".concat(nn,"-ping-left"),Ht),"".concat(nn,"-ping-right"),Tt),"".concat(nn,"-ping-top"),gt),"".concat(nn,"-ping-bottom"),Ve)),ref:E},f.createElement(Wa,{onResize:Wt},f.createElement("div",{ref:k,className:"".concat(b,"-nav-list"),style:{transform:"translate(".concat(H,"px, ").concat(q,"px)"),transition:se?"none":void 0}},Lt,f.createElement(Uye,{ref:P,prefixCls:b,locale:u,editable:c,style:X(X({},Lt.length===0?void 0:Nt),{},{visibility:jt?"hidden":null})}),f.createElement("div",{className:Re("".concat(b,"-ink-bar"),ae({},"".concat(b,"-ink-bar-animated"),o.inkBar)),style:_t}))))),f.createElement(HZe,st({},e,{removeAriaLabel:u==null?void 0:u.removeAriaLabel,ref:M,prefixCls:b,tabs:Gt,className:!jt&&K,tabMoving:!!se})),f.createElement(Pee,{ref:x,position:"right",extra:l,prefixCls:b})))}),Wye=f.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,o=e.id,a=e.active,s=e.tabKey,l=e.children;return f.createElement("div",{id:o&&"".concat(o,"-panel-").concat(s),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(s),"aria-hidden":!a,style:i,className:Re(n,a&&"".concat(n,"-active"),r),ref:t},l)}),WZe=["renderTabBar"],VZe=["label","key"],KZe=function(t){var n=t.renderTabBar,r=tn(t,WZe),i=f.useContext(aP),o=i.tabs;if(n){var a=X(X({},r),{},{panes:o.map(function(s){var l=s.label,c=s.key,u=tn(s,VZe);return f.createElement(Wye,st({tab:l,key:c,tabKey:c},u))})});return n(a,Mee)}return f.createElement(Mee,r)},qZe=["key","forceRender","style","className","destroyInactiveTabPane"],GZe=function(t){var n=t.id,r=t.activeKey,i=t.animated,o=t.tabPosition,a=t.destroyInactiveTabPane,s=f.useContext(aP),l=s.prefixCls,c=s.tabs,u=i.tabPane,d="".concat(l,"-tabpane");return f.createElement("div",{className:Re("".concat(l,"-content-holder"))},f.createElement("div",{className:Re("".concat(l,"-content"),"".concat(l,"-content-").concat(o),ae({},"".concat(l,"-content-animated"),u))},c.map(function(h){var p=h.key,m=h.forceRender,v=h.style,y=h.className,S=h.destroyInactiveTabPane,b=tn(h,qZe),C=p===r;return f.createElement(fa,st({key:p,visible:C,forceRender:m,removeOnLeave:!!(a||S),leavedClassName:"".concat(d,"-hidden")},i.tabPaneMotion),function(_,T){var x=_.style,E=_.className;return f.createElement(Wye,st({},b,{prefixCls:d,id:n,tabKey:p,animated:u,active:C,style:X(X({},v),x),className:Re(y,E),ref:T}))})})))};function YZe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=X({inkBar:!0},ln(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var XZe=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],Iee=0,QZe=f.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=r===void 0?"rc-tabs":r,o=e.className,a=e.items,s=e.direction,l=e.activeKey,c=e.defaultActiveKey,u=e.editable,d=e.animated,h=e.tabPosition,p=h===void 0?"top":h,m=e.tabBarGutter,v=e.tabBarStyle,y=e.tabBarExtraContent,S=e.locale,b=e.more,C=e.destroyInactiveTabPane,_=e.renderTabBar,T=e.onChange,x=e.onTabClick,E=e.onTabScroll,k=e.getPopupContainer,M=e.popupClassName,P=e.indicator,D=tn(e,XZe),R=f.useMemo(function(){return(a||[]).filter(function(_e){return _e&&ln(_e)==="object"&&"key"in _e})},[a]),A=s==="rtl",H=YZe(d),F=f.useState(!1),z=Le(F,2),W=z[0],q=z[1];f.useEffect(function(){q(BO())},[]);var Z=er(function(){var _e;return(_e=R[0])===null||_e===void 0?void 0:_e.key},{value:l,defaultValue:c}),N=Le(Z,2),B=N[0],V=N[1],G=f.useState(function(){return R.findIndex(function(_e){return _e.key===B})}),ie=Le(G,2),ce=ie[0],fe=ie[1];f.useEffect(function(){var _e=R.findIndex(function(xe){return xe.key===B});if(_e===-1){var le;_e=Math.max(0,Math.min(ce,R.length-1)),V((le=R[_e])===null||le===void 0?void 0:le.key)}fe(_e)},[R.map(function(_e){return _e.key}).join("_"),B,ce]);var ee=er(null,{value:n}),ne=Le(ee,2),ue=ne[0],ye=ne[1];f.useEffect(function(){n||(ye("rc-tabs-".concat(Iee)),Iee+=1)},[]);function me(_e,le){x==null||x(_e,le);var xe=_e!==B;V(_e),xe&&(T==null||T(_e))}var pe={id:ue,activeKey:B,animated:H,tabPosition:p,rtl:A,mobile:W},he=X(X({},pe),{},{editable:u,locale:S,more:b,tabBarGutter:m,onTabClick:me,onTabScroll:E,extra:y,style:v,panes:null,getPopupContainer:k,popupClassName:M,indicator:P});return f.createElement(aP.Provider,{value:{tabs:R,prefixCls:i}},f.createElement("div",st({ref:t,id:n,className:Re(i,"".concat(i,"-").concat(p),ae(ae(ae({},"".concat(i,"-mobile"),W),"".concat(i,"-editable"),u),"".concat(i,"-rtl"),A),o)},D),f.createElement(KZe,st({},he,{renderTabBar:_})),f.createElement(GZe,st({destroyInactiveTabPane:C},pe,{animated:H}))))});const ZZe={motionAppear:!1,motionEnter:!0,motionLeave:!0};function JZe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},ZZe),{motionName:os(e,"switch")})),n}var eJe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function tJe(e){return e.filter(t=>t)}function nJe(e,t){if(e)return e;const n=zo(t).map(r=>{if(f.isValidElement(r)){const{key:i,props:o}=r,a=o||{},{tab:s}=a,l=eJe(a,["tab"]);return Object.assign(Object.assign({key:String(i)},l),{label:s})}return null});return tJe(n)}const rJe=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[Kf(e,"slide-up"),Kf(e,"slide-down")]]},iJe=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:i,colorBorderSecondary:o,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${je(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-tab-focus`]:Object.assign({},Fd(e,-3)),[`${t}-ink-bar`]:{visibility:"hidden"},[`& ${t}-tab${t}-tab-focus ${t}-tab-btn`]:{outline:"none"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:je(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${je(e.borderRadiusLG)} ${je(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${je(e.borderRadiusLG)} ${je(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:je(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${je(e.borderRadiusLG)} 0 0 ${je(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${je(e.borderRadiusLG)} ${je(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},oJe=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},$r(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${je(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Gl),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${je(e.paddingXXS)} ${je(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},aJe=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:o,verticalItemMargin:a,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${je(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
|
||
right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
|
||
> div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:o,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:je(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${je(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${je(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},sJe=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:i,horizontalItemPaddingLG:o}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${je(e.borderRadius)} ${je(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${je(e.borderRadius)} ${je(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${je(e.borderRadius)} ${je(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${je(e.borderRadius)} 0 0 ${je(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},lJe=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:o,horizontalItemPadding:a,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},ml(e)),"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-focus ${c}-btn`]:Object.assign({},Fd(e)),[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${i}`]:{margin:0},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:o}}}},cJe=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:i,calc:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:je(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:je(e.marginXS)},marginLeft:{_skip_check_:!0,value:je(o(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},uJe=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:o,itemActiveColor:a,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},$r(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,marginLeft:{_skip_check_:!0,value:i},padding:je(e.paddingXS),background:"transparent",border:`${je(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${je(e.borderRadiusLG)} ${je(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:a}},ml(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),lJe(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},ml(e)),{"&-hidden":{display:"none"}})}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},dJe=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},fJe=Tr("Tabs",e=>{const t=dr(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${je(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${je(e.horizontalItemGutter)}`});return[sJe(t),cJe(t),aJe(t),oJe(t),iJe(t),uJe(t),rJe(t)]},dJe),hJe=()=>null;var pJe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const tC=e=>{var t,n,r,i,o,a,s,l,c,u,d;const{type:h,className:p,rootClassName:m,size:v,onEdit:y,hideAdd:S,centered:b,addIcon:C,removeIcon:_,moreIcon:T,more:x,popupClassName:E,children:k,items:M,animated:P,style:D,indicatorSize:R,indicator:A}=e,H=pJe(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:F}=H,{direction:z,tabs:W,getPrefixCls:q,getPopupContainer:Z}=f.useContext(hn),N=q("tabs",F),B=_i(N),[V,G,ie]=fJe(N,B);let ce;h==="editable-card"&&(ce={onEdit:(pe,he)=>{let{key:_e,event:le}=he;y==null||y(pe==="add"?le:_e,pe)},removeIcon:(t=_??(W==null?void 0:W.removeIcon))!==null&&t!==void 0?t:f.createElement(th,null),addIcon:(C??(W==null?void 0:W.addIcon))||f.createElement(eC,null),showAdd:S!==!0});const fe=q(),ee=$o(v),ne=nJe(M,k),ue=JZe(N,P),ye=Object.assign(Object.assign({},W==null?void 0:W.style),D),me={align:(n=A==null?void 0:A.align)!==null&&n!==void 0?n:(r=W==null?void 0:W.indicator)===null||r===void 0?void 0:r.align,size:(s=(o=(i=A==null?void 0:A.size)!==null&&i!==void 0?i:R)!==null&&o!==void 0?o:(a=W==null?void 0:W.indicator)===null||a===void 0?void 0:a.size)!==null&&s!==void 0?s:W==null?void 0:W.indicatorSize};return V(f.createElement(QZe,Object.assign({direction:z,getPopupContainer:Z},H,{items:ne,className:Re({[`${N}-${ee}`]:ee,[`${N}-card`]:["card","editable-card"].includes(h),[`${N}-editable-card`]:h==="editable-card",[`${N}-centered`]:b},W==null?void 0:W.className,p,m,G,ie,B),popupClassName:Re(E,G,ie,B),style:ye,editable:ce,more:Object.assign({icon:(d=(u=(c=(l=W==null?void 0:W.more)===null||l===void 0?void 0:l.icon)!==null&&c!==void 0?c:W==null?void 0:W.moreIcon)!==null&&u!==void 0?u:T)!==null&&d!==void 0?d:f.createElement(cW,null),transitionName:`${fe}-slide-up`},x),prefixCls:N,animated:ue,indicator:me})))};tC.TabPane=hJe;var mJe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Vye=e=>{var{prefixCls:t,className:n,hoverable:r=!0}=e,i=mJe(e,["prefixCls","className","hoverable"]);const{getPrefixCls:o}=f.useContext(hn),a=o("card",t),s=Re(`${a}-grid`,n,{[`${a}-grid-hoverable`]:r});return f.createElement("div",Object.assign({},i,{className:s}))},gJe=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:i,tabsMarginBottom:o}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${je(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${je(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${je(e.borderRadiusLG)} ${je(e.borderRadiusLG)} 0 0`},Ld()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Gl),{[`
|
||
> ${n}-typography,
|
||
> ${n}-typography-edit-content
|
||
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:o,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${je(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},vJe=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
|
||
${je(i)} 0 0 0 ${n},
|
||
0 ${je(i)} 0 0 ${n},
|
||
${je(i)} ${je(i)} 0 0 ${n},
|
||
${je(i)} 0 0 0 ${n} inset,
|
||
0 ${je(i)} 0 0 ${n} inset;
|
||
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},yJe=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:o,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${je(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${je(e.borderRadiusLG)} ${je(e.borderRadiusLG)}`},Ld()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:je(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:je(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${je(e.lineWidth)} ${e.lineType} ${o}`}}})},bJe=e=>Object.assign(Object.assign({margin:`${je(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},Ld()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Gl),"&-description":{color:e.colorTextDescription}}),SJe=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:i}=e;return{[`${t}-head`]:{padding:`0 ${je(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${je(e.padding)} ${je(i)}`}}},CJe=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},xJe=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:o,bodyPadding:a,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},$r(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:o},[`${t}-head`]:gJe(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:a,borderRadius:`0 0 ${je(e.borderRadiusLG)} ${je(e.borderRadiusLG)}`},Ld()),[`${t}-grid`]:vJe(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${je(e.borderRadiusLG)} ${je(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:yJe(e),[`${t}-meta`]:bJe(e)}),[`${t}-bordered`]:{border:`${je(e.lineWidth)} ${e.lineType} ${i}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${je(e.borderRadiusLG)} ${je(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:SJe(e),[`${t}-loading`]:CJe(e),[`${t}-rtl`]:{direction:"rtl"}}},wJe=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:i,headerFontSizeSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:i,padding:`0 ${je(r)}`,fontSize:o,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},_Je=e=>{var t,n;return{headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:(t=e.bodyPadding)!==null&&t!==void 0?t:e.paddingLG,headerPadding:(n=e.headerPadding)!==null&&n!==void 0?n:e.paddingLG}},EJe=Tr("Card",e=>{const t=dr(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[xJe(t),wJe(t)]},_Je);var $ee=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const TJe=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return f.createElement("ul",{className:t,style:r},n.map((i,o)=>{const a=`action-${o}`;return f.createElement("li",{style:{width:`${100/n.length}%`},key:a},f.createElement("span",null,i))}))},kJe=f.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:o,extra:a,headStyle:s={},bodyStyle:l={},title:c,loading:u,bordered:d=!0,size:h,type:p,cover:m,actions:v,tabList:y,children:S,activeTabKey:b,defaultActiveTabKey:C,tabBarExtraContent:_,hoverable:T,tabProps:x={},classNames:E,styles:k}=e,M=$ee(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:P,direction:D,card:R}=f.useContext(hn),A=De=>{var Fe;(Fe=e.onTabChange)===null||Fe===void 0||Fe.call(e,De)},H=De=>{var Fe;return Re((Fe=R==null?void 0:R.classNames)===null||Fe===void 0?void 0:Fe[De],E==null?void 0:E[De])},F=De=>{var Fe;return Object.assign(Object.assign({},(Fe=R==null?void 0:R.styles)===null||Fe===void 0?void 0:Fe[De]),k==null?void 0:k[De])},z=f.useMemo(()=>{let De=!1;return f.Children.forEach(S,Fe=>{(Fe==null?void 0:Fe.type)===Vye&&(De=!0)}),De},[S]),W=P("card",n),[q,Z,N]=EJe(W),B=f.createElement(kp,{loading:!0,active:!0,paragraph:{rows:4},title:!1},S),V=b!==void 0,G=Object.assign(Object.assign({},x),{[V?"activeKey":"defaultActiveKey"]:V?b:C,tabBarExtraContent:_});let ie;const ce=$o(h),fe=!ce||ce==="default"?"large":ce,ee=y?f.createElement(tC,Object.assign({size:fe},G,{className:`${W}-head-tabs`,onChange:A,items:y.map(De=>{var{tab:Fe}=De,Ce=$ee(De,["tab"]);return Object.assign({label:Fe},Ce)})})):null;if(c||a||ee){const De=Re(`${W}-head`,H("header")),Fe=Re(`${W}-head-title`,H("title")),Ce=Re(`${W}-extra`,H("extra")),Te=Object.assign(Object.assign({},s),F("header"));ie=f.createElement("div",{className:De,style:Te},f.createElement("div",{className:`${W}-head-wrapper`},c&&f.createElement("div",{className:Fe,style:F("title")},c),a&&f.createElement("div",{className:Ce,style:F("extra")},a)),ee)}const ne=Re(`${W}-cover`,H("cover")),ue=m?f.createElement("div",{className:ne,style:F("cover")},m):null,ye=Re(`${W}-body`,H("body")),me=Object.assign(Object.assign({},l),F("body")),pe=f.createElement("div",{className:ye,style:me},u?B:S),he=Re(`${W}-actions`,H("actions")),_e=v!=null&&v.length?f.createElement(TJe,{actionClasses:he,actionStyle:F("actions"),actions:v}):null,le=Pr(M,["onTabChange"]),xe=Re(W,R==null?void 0:R.className,{[`${W}-loading`]:u,[`${W}-bordered`]:d,[`${W}-hoverable`]:T,[`${W}-contain-grid`]:z,[`${W}-contain-tabs`]:y==null?void 0:y.length,[`${W}-${ce}`]:ce,[`${W}-type-${p}`]:!!p,[`${W}-rtl`]:D==="rtl"},r,i,Z,N),we=Object.assign(Object.assign({},R==null?void 0:R.style),o);return q(f.createElement("div",Object.assign({ref:t},le,{className:xe,style:we}),ie,ue,pe,_e))});var OJe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const PJe=e=>{const{prefixCls:t,className:n,avatar:r,title:i,description:o}=e,a=OJe(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=f.useContext(hn),l=s("card",t),c=Re(`${l}-meta`,n),u=r?f.createElement("div",{className:`${l}-meta-avatar`},r):null,d=i?f.createElement("div",{className:`${l}-meta-title`},i):null,h=o?f.createElement("div",{className:`${l}-meta-description`},o):null,p=d||h?f.createElement("div",{className:`${l}-meta-detail`},d,h):null;return f.createElement("div",Object.assign({},a,{className:c}),u,p)},Qv=kJe;Qv.Grid=Vye;Qv.Meta=PJe;function MJe(e,t,n){var r=n||{},i=r.noTrailing,o=i===void 0?!1:i,a=r.noLeading,s=a===void 0?!1:a,l=r.debounceMode,c=l===void 0?void 0:l,u,d=!1,h=0;function p(){u&&clearTimeout(u)}function m(y){var S=y||{},b=S.upcomingOnly,C=b===void 0?!1:b;p(),d=!C}function v(){for(var y=arguments.length,S=new Array(y),b=0;b<y;b++)S[b]=arguments[b];var C=this,_=Date.now()-h;if(d)return;function T(){h=Date.now(),t.apply(C,S)}function x(){u=void 0}!s&&c&&!u&&T(),p(),c===void 0&&_>e?s?(h=Date.now(),o||(u=setTimeout(c?x:T,e))):T():o!==!0&&(u=setTimeout(c?x:T,c===void 0?e-_:e))}return v.cancel=m,v}function IJe(e,t,n){var r={},i=r.atBegin,o=i===void 0?!1:i;return MJe(e,t,{debounceMode:o!==!1})}var nC=f.createContext({}),db="__rc_cascader_search_mark__",$Je=function(t,n,r){var i=r.label,o=i===void 0?"":i;return n.some(function(a){return String(a[o]).toLowerCase().includes(t.toLowerCase())})},RJe=function(t,n,r,i){return n.map(function(o){return o[i.label]}).join(" / ")},AJe=function(t,n,r,i,o,a){var s=o.filter,l=s===void 0?$Je:s,c=o.render,u=c===void 0?RJe:c,d=o.limit,h=d===void 0?50:d,p=o.sort;return f.useMemo(function(){var m=[];if(!t)return[];function v(y,S){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;y.forEach(function(C){if(!(!p&&h!==!1&&h>0&&m.length>=h)){var _=[].concat(pt(S),[C]),T=C[r.children],x=b||C.disabled;if((!T||T.length===0||a)&&l(t,_,{label:r.label})){var E;m.push(X(X({},C),{},(E={disabled:x},ae(E,r.label,u(t,_,i,r)),ae(E,db,_),ae(E,r.children,void 0),E)))}T&&v(C[r.children],_,x)}})}return v(n,[]),p&&m.sort(function(y,S){return p(y[db],S[db],t,r)}),h!==!1&&h>0?m.slice(0,h):m},[t,n,r,i,u,a,l,p,h])},TW="__RC_CASCADER_SPLIT__",Kye="SHOW_PARENT",qye="SHOW_CHILD";function kd(e){return e.join(TW)}function Zb(e){return e.map(kd)}function NJe(e){return e.split(TW)}function Gye(e){var t=e||{},n=t.label,r=t.value,i=t.children,o=r||"value";return{label:n||"label",value:o,key:o,children:i||"children"}}function _2(e,t){var n,r;return(n=e.isLeaf)!==null&&n!==void 0?n:!((r=e[t.children])!==null&&r!==void 0&&r.length)}function DJe(e){var t=e.parentElement;if(t){var n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}}function Yye(e,t){return e.map(function(n){var r;return(r=n[db])===null||r===void 0?void 0:r.map(function(i){return i[t.value]})})}function LJe(e){return Array.isArray(e)&&Array.isArray(e[0])}function z9(e){return e?LJe(e)?e:(e.length===0?[]:[e]).map(function(t){return Array.isArray(t)?t:[t]}):[]}function Xye(e,t,n){var r=new Set(e),i=t();return e.filter(function(o){var a=i[o],s=a?a.parent:null,l=a?a.children:null;return a&&a.node.disabled?!0:n===qye?!(l&&l.some(function(c){return c.key&&r.has(c.key)})):!(s&&!s.node.disabled&&r.has(s.key))})}function Jb(e,t,n){for(var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=t,o=[],a=function(){var c,u,d,h=e[s],p=(c=i)===null||c===void 0?void 0:c.findIndex(function(v){var y=v[n.value];return r?String(y)===String(h):y===h}),m=p!==-1?(u=i)===null||u===void 0?void 0:u[p]:null;o.push({value:(d=m==null?void 0:m[n.value])!==null&&d!==void 0?d:h,index:p,option:m}),i=m==null?void 0:m[n.children]},s=0;s<e.length;s+=1)a();return o}const FJe=function(e,t,n,r,i){return f.useMemo(function(){var o=i||function(a){var s=r?a.slice(-1):a,l=" / ";return s.every(function(c){return["string","number"].includes(ln(c))})?s.join(l):s.reduce(function(c,u,d){var h=f.isValidElement(u)?f.cloneElement(u,{key:d}):u;return d===0?[h]:[].concat(pt(c),[l,h])},[])};return e.map(function(a){var s,l=Jb(a,t,n),c=o(l.map(function(d){var h,p=d.option,m=d.value;return(h=p==null?void 0:p[n.label])!==null&&h!==void 0?h:m}),l.map(function(d){var h=d.option;return h})),u=kd(a);return{label:c,value:u,key:u,valueCells:a,disabled:(s=l[l.length-1])===null||s===void 0||(s=s.option)===null||s===void 0?void 0:s.disabled}})},[e,t,n,i,r])};function Qye(e,t){return f.useCallback(function(n){var r=[],i=[];return n.forEach(function(o){var a=Jb(o,e,t);a.every(function(s){return s.option})?i.push(o):r.push(o)}),[i,r]},[e,t])}function Fl(e,t){return e[t]}var jJe=["children"];function Zye(e,t){return"".concat(e,"-").concat(t)}function BJe(e){return e&&e.type&&e.type.isTreeNode}function IE(e,t){return e??t}function eS(e){var t=e||{},n=t.title,r=t._title,i=t.key,o=t.children,a=n||"title";return{title:a,_title:r||[a],key:i||"key",children:o||"children"}}function Jye(e){function t(n){var r=zo(n);return r.map(function(i){if(!BJe(i))return fi(!i,"Tree/TreeNode can only accept TreeNode as children."),null;var o=i.key,a=i.props,s=a.children,l=tn(a,jJe),c=X({key:o},l),u=t(s);return u.length&&(c.children=u),c}).filter(function(i){return i})}return t(e)}function FR(e,t,n){var r=eS(n),i=r._title,o=r.key,a=r.children,s=new Set(t===!0?[]:t),l=[];function c(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map(function(h,p){for(var m=Zye(d?d.pos:"0",p),v=IE(h[o],m),y,S=0;S<i.length;S+=1){var b=i[S];if(h[b]!==void 0){y=h[b];break}}var C=Object.assign(Pr(h,[].concat(pt(i),[o,a])),{title:y,key:v,parent:d,pos:m,children:null,data:h,isStart:[].concat(pt(d?d.isStart:[]),[p===0]),isEnd:[].concat(pt(d?d.isEnd:[]),[p===u.length-1])});return l.push(C),t===!0||s.has(v)?C.children=c(h[a]||[],C):C.children=[],C})}return c(e),l}function HJe(e,t,n){var r={};ln(n)==="object"?r=n:r={externalGetKey:n},r=r||{};var i=r,o=i.childrenPropName,a=i.externalGetKey,s=i.fieldNames,l=eS(s),c=l.key,u=l.children,d=o||u,h;a?typeof a=="string"?h=function(v){return v[a]}:typeof a=="function"&&(h=function(v){return a(v)}):h=function(v,y){return IE(v[c],y)};function p(m,v,y,S){var b=m?m[d]:e,C=m?Zye(y.pos,v):"0",_=m?[].concat(pt(S),[m]):[];if(m){var T=h(m,C),x={node:m,index:v,pos:C,key:T,parentPos:y.node?y.pos:null,level:y.level+1,nodes:_};t(x)}b&&b.forEach(function(E,k){p(E,k,{node:m,pos:C,level:y?y.level+1:-1},_)})}p(null)}function $E(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,i=t.onProcessFinished,o=t.externalGetKey,a=t.childrenPropName,s=t.fieldNames,l=arguments.length>2?arguments[2]:void 0,c=o||l,u={},d={},h={posEntities:u,keyEntities:d};return n&&(h=n(h)||h),HJe(e,function(p){var m=p.node,v=p.index,y=p.pos,S=p.key,b=p.parentPos,C=p.level,_=p.nodes,T={node:m,nodes:_,index:v,key:S,pos:y,level:C},x=IE(S,y);u[y]=T,d[x]=T,T.parent=u[b],T.parent&&(T.parent.children=T.parent.children||[],T.parent.children.push(T)),r&&r(T,h)},{externalGetKey:c,childrenPropName:a,fieldNames:s}),i&&i(h),h}function tw(e,t){var n=t.expandedKeys,r=t.selectedKeys,i=t.loadedKeys,o=t.loadingKeys,a=t.checkedKeys,s=t.halfCheckedKeys,l=t.dragOverNodeKey,c=t.dropPosition,u=t.keyEntities,d=Fl(u,e),h={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:i.indexOf(e)!==-1,loading:o.indexOf(e)!==-1,checked:a.indexOf(e)!==-1,halfChecked:s.indexOf(e)!==-1,pos:String(d?d.pos:""),dragOver:l===e&&c===0,dragOverGapTop:l===e&&c===-1,dragOverGapBottom:l===e&&c===1};return h}function xa(e){var t=e.data,n=e.expanded,r=e.selected,i=e.checked,o=e.loaded,a=e.loading,s=e.halfChecked,l=e.dragOver,c=e.dragOverGapTop,u=e.dragOverGapBottom,d=e.pos,h=e.active,p=e.eventKey,m=X(X({},t),{},{expanded:n,selected:r,checked:i,loaded:o,loading:a,halfChecked:s,dragOver:l,dragOverGapTop:c,dragOverGapBottom:u,pos:d,active:h,key:p});return"props"in m||Object.defineProperty(m,"props",{get:function(){return fi(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),m}const zJe=function(e,t){var n=f.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),r=f.useCallback(function(){return n.current.options!==e&&(n.current.options=e,n.current.info=$E(e,{fieldNames:t,initWrapper:function(o){return X(X({},o),{},{pathKeyEntities:{}})},processEntity:function(o,a){var s=o.nodes.map(function(l){return l[t.value]}).join(TW);a.pathKeyEntities[s]=o,o.key=s}})),n.current.info.pathKeyEntities},[t,e]);return r};function ebe(e,t){var n=f.useMemo(function(){return t||[]},[t]),r=zJe(n,e),i=f.useCallback(function(o){var a=r();return o.map(function(s){var l=a[s].nodes;return l.map(function(c){return c[e.value]})})},[r,e]);return[n,r,i]}function UJe(e){return f.useMemo(function(){if(!e)return[!1,{}];var t={matchInputWidth:!0,limit:50};return e&&ln(e)==="object"&&(t=X(X({},t),e)),t.limit<=0&&(t.limit=!1),[!0,t]},[e])}function tbe(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function WJe(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,i=t.checkable;return!!(n||r)||i===!1}function VJe(e,t,n,r){for(var i=new Set(e),o=new Set,a=0;a<=n;a+=1){var s=t.get(a)||new Set;s.forEach(function(d){var h=d.key,p=d.node,m=d.children,v=m===void 0?[]:m;i.has(h)&&!r(p)&&v.filter(function(y){return!r(y.node)}).forEach(function(y){i.add(y.key)})})}for(var l=new Set,c=n;c>=0;c-=1){var u=t.get(c)||new Set;u.forEach(function(d){var h=d.parent,p=d.node;if(!(r(p)||!d.parent||l.has(d.parent.key))){if(r(d.parent.node)){l.add(h.key);return}var m=!0,v=!1;(h.children||[]).filter(function(y){return!r(y.node)}).forEach(function(y){var S=y.key,b=i.has(S);m&&!b&&(m=!1),!v&&(b||o.has(S))&&(v=!0)}),m&&i.add(h.key),v&&o.add(h.key),l.add(h.key)}})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(tbe(o,i))}}function KJe(e,t,n,r,i){for(var o=new Set(e),a=new Set(t),s=0;s<=r;s+=1){var l=n.get(s)||new Set;l.forEach(function(h){var p=h.key,m=h.node,v=h.children,y=v===void 0?[]:v;!o.has(p)&&!a.has(p)&&!i(m)&&y.filter(function(S){return!i(S.node)}).forEach(function(S){o.delete(S.key)})})}a=new Set;for(var c=new Set,u=r;u>=0;u-=1){var d=n.get(u)||new Set;d.forEach(function(h){var p=h.parent,m=h.node;if(!(i(m)||!h.parent||c.has(h.parent.key))){if(i(h.parent.node)){c.add(p.key);return}var v=!0,y=!1;(p.children||[]).filter(function(S){return!i(S.node)}).forEach(function(S){var b=S.key,C=o.has(b);v&&!C&&(v=!1),!y&&(C||a.has(b))&&(y=!0)}),v||o.delete(p.key),y&&a.add(p.key),c.add(p.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(tbe(a,o))}}function bu(e,t,n,r){var i=[],o;r?o=r:o=WJe;var a=new Set(e.filter(function(u){var d=!!Fl(n,u);return d||i.push(u),d})),s=new Map,l=0;Object.keys(n).forEach(function(u){var d=n[u],h=d.level,p=s.get(h);p||(p=new Set,s.set(h,p)),p.add(d),l=Math.max(l,h)}),fi(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map(function(u){return"'".concat(u,"'")}).join(", ")));var c;return t===!0?c=VJe(a,s,l,o):c=KJe(a,t.halfCheckedKeys,s,l,o),c}function nbe(e,t,n,r,i,o,a,s){return function(l){if(!e)t(l);else{var c=kd(l),u=Zb(n),d=Zb(r),h=u.includes(c),p=i.some(function(x){return kd(x)===c}),m=n,v=i;if(p&&!h)v=i.filter(function(x){return kd(x)!==c});else{var y=h?u.filter(function(x){return x!==c}):[].concat(pt(u),[c]),S=o(),b;if(h){var C=bu(y,{checked:!1,halfCheckedKeys:d},S);b=C.checkedKeys}else{var _=bu(y,!0,S);b=_.checkedKeys}var T=Xye(b,o,s);m=a(T)}t([].concat(pt(v),pt(m)))}}}function rbe(e,t,n,r,i){return f.useMemo(function(){var o=i(t),a=Le(o,2),s=a[0],l=a[1];if(!e||!t.length)return[s,[],l];var c=Zb(s),u=n(),d=bu(c,!0,u),h=d.checkedKeys,p=d.halfCheckedKeys;return[r(h),r(p),l]},[e,t,n,r,i])}var qJe=f.memo(function(e){var t=e.children;return t},function(e,t){return!t.open});function GJe(e){var t,n=e.prefixCls,r=e.checked,i=e.halfChecked,o=e.disabled,a=e.onClick,s=e.disableCheckbox,l=f.useContext(nC),c=l.checkable,u=typeof c!="boolean"?c:null;return f.createElement("span",{className:Re("".concat(n),(t={},ae(t,"".concat(n,"-checked"),r),ae(t,"".concat(n,"-indeterminate"),!r&&i),ae(t,"".concat(n,"-disabled"),o||s),t)),onClick:a},u)}var ibe="__cascader_fix_label__";function YJe(e){var t=e.prefixCls,n=e.multiple,r=e.options,i=e.activeValue,o=e.prevValuePath,a=e.onToggleOpen,s=e.onSelect,l=e.onActive,c=e.checkedSet,u=e.halfCheckedSet,d=e.loadingKeys,h=e.isSelectable,p=e.disabled,m="".concat(t,"-menu"),v="".concat(t,"-menu-item"),y=f.useContext(nC),S=y.fieldNames,b=y.changeOnSelect,C=y.expandTrigger,_=y.expandIcon,T=y.loadingIcon,x=y.dropdownMenuColumnStyle,E=y.optionRender,k=C==="hover",M=function(R){return p||R},P=f.useMemo(function(){return r.map(function(D){var R,A=D.disabled,H=D.disableCheckbox,F=D[db],z=(R=D[ibe])!==null&&R!==void 0?R:D[S.label],W=D[S.value],q=_2(D,S),Z=F?F.map(function(ie){return ie[S.value]}):[].concat(pt(o),[W]),N=kd(Z),B=d.includes(N),V=c.has(N),G=u.has(N);return{disabled:A,label:z,value:W,isLeaf:q,isLoading:B,checked:V,halfChecked:G,option:D,disableCheckbox:H,fullPath:Z,fullPathKey:N}})},[r,c,S,u,d,o]);return f.createElement("ul",{className:m,role:"menu"},P.map(function(D){var R,A=D.disabled,H=D.label,F=D.value,z=D.isLeaf,W=D.isLoading,q=D.checked,Z=D.halfChecked,N=D.option,B=D.fullPath,V=D.fullPathKey,G=D.disableCheckbox,ie=function(){if(!M(A)){var ne=pt(B);k&&z&&ne.pop(),l(ne)}},ce=function(){h(N)&&!M(A)&&s(B,z)},fe;return typeof N.title=="string"?fe=N.title:typeof H=="string"&&(fe=H),f.createElement("li",{key:V,className:Re(v,(R={},ae(R,"".concat(v,"-expand"),!z),ae(R,"".concat(v,"-active"),i===F||i===V),ae(R,"".concat(v,"-disabled"),M(A)),ae(R,"".concat(v,"-loading"),W),R)),style:x,role:"menuitemcheckbox",title:fe,"aria-checked":q,"data-path-key":V,onClick:function(){ie(),!G&&(!n||z)&&ce()},onDoubleClick:function(){b&&a(!1)},onMouseEnter:function(){k&&ie()},onMouseDown:function(ne){ne.preventDefault()}},n&&f.createElement(GJe,{prefixCls:"".concat(t,"-checkbox"),checked:q,halfChecked:Z,disabled:M(A)||G,disableCheckbox:G,onClick:function(ne){G||(ne.stopPropagation(),ce())}}),f.createElement("div",{className:"".concat(v,"-content")},E?E(N):H),!W&&_&&!z&&f.createElement("div",{className:"".concat(v,"-expand-icon")},_),W&&T&&f.createElement("div",{className:"".concat(v,"-loading-icon")},T))}))}var XJe=function(t,n){var r=f.useContext(nC),i=r.values,o=i[0],a=f.useState([]),s=Le(a,2),l=s[0],c=s[1];return f.useEffect(function(){t||c(o||[])},[n,o]),[l,c]};const QJe=function(e,t,n,r,i,o,a){var s=a.direction,l=a.searchValue,c=a.toggleOpen,u=a.open,d=s==="rtl",h=f.useMemo(function(){for(var x=-1,E=t,k=[],M=[],P=r.length,D=Yye(t,n),R=function(W){var q=E.findIndex(function(Z,N){return(D[N]?kd(D[N]):Z[n.value])===r[W]});if(q===-1)return 1;x=q,k.push(x),M.push(r[W]),E=E[x][n.children]},A=0;A<P&&E&&!R(A);A+=1);for(var H=t,F=0;F<k.length-1;F+=1)H=H[k[F]][n.children];return[M,x,H,D]},[r,n,t]),p=Le(h,4),m=p[0],v=p[1],y=p[2],S=p[3],b=function(E){i(E)},C=function(E){var k=y.length,M=v;M===-1&&E<0&&(M=k);for(var P=0;P<k;P+=1){M=(M+E+k)%k;var D=y[M];if(D&&!D.disabled){var R=m.slice(0,-1).concat(S[M]?kd(S[M]):D[n.value]);b(R);return}}},_=function(){if(m.length>1){var E=m.slice(0,-1);b(E)}else c(!1)},T=function(){var E,k=((E=y[v])===null||E===void 0?void 0:E[n.children])||[],M=k.find(function(D){return!D.disabled});if(M){var P=[].concat(pt(m),[M[n.value]]);b(P)}};f.useImperativeHandle(e,function(){return{onKeyDown:function(E){var k=E.which;switch(k){case Pt.UP:case Pt.DOWN:{var M=0;k===Pt.UP?M=-1:k===Pt.DOWN&&(M=1),M!==0&&C(M);break}case Pt.LEFT:{if(l)break;d?T():_();break}case Pt.RIGHT:{if(l)break;d?_():T();break}case Pt.BACKSPACE:{l||_();break}case Pt.ENTER:{if(m.length){var P=y[v],D=(P==null?void 0:P[db])||[];D.length?o(D.map(function(R){return R[n.value]}),D[D.length-1]):o(m,y[v])}break}case Pt.ESC:c(!1),u&&E.stopPropagation()}},onKeyUp:function(){}}})};var obe=f.forwardRef(function(e,t){var n,r,i,o=e.prefixCls,a=e.multiple,s=e.searchValue,l=e.toggleOpen,c=e.notFoundContent,u=e.direction,d=e.open,h=e.disabled,p=f.useRef(null),m=u==="rtl",v=f.useContext(nC),y=v.options,S=v.values,b=v.halfValues,C=v.fieldNames,_=v.changeOnSelect,T=v.onSelect,x=v.searchOptions,E=v.dropdownPrefixCls,k=v.loadData,M=v.expandTrigger,P=E||o,D=f.useState([]),R=Le(D,2),A=R[0],H=R[1],F=function(_e){if(!(!k||s)){var le=Jb(_e,y,C),xe=le.map(function(Fe){var Ce=Fe.option;return Ce}),we=xe[xe.length-1];if(we&&!_2(we,C)){var De=kd(_e);H(function(Fe){return[].concat(pt(Fe),[De])}),k(xe)}}};f.useEffect(function(){A.length&&A.forEach(function(he){var _e=NJe(he),le=Jb(_e,y,C,!0).map(function(we){var De=we.option;return De}),xe=le[le.length-1];(!xe||xe[C.children]||_2(xe,C))&&H(function(we){return we.filter(function(De){return De!==he})})})},[y,A,C]);var z=f.useMemo(function(){return new Set(Zb(S))},[S]),W=f.useMemo(function(){return new Set(Zb(b))},[b]),q=XJe(a,d),Z=Le(q,2),N=Z[0],B=Z[1],V=function(_e){B(_e),F(_e)},G=function(_e){if(h)return!1;var le=_e.disabled,xe=_2(_e,C);return!le&&(xe||_||a)},ie=function(_e,le){var xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;T(_e),!a&&(le||_&&(M==="hover"||xe))&&l(!1)},ce=f.useMemo(function(){return s?x:y},[s,x,y]),fe=f.useMemo(function(){for(var he=[{options:ce}],_e=ce,le=Yye(_e,C),xe=function(){var Fe=N[we],Ce=_e.find(function(ke,Pe){return(le[Pe]?kd(le[Pe]):ke[C.value])===Fe}),Te=Ce==null?void 0:Ce[C.children];if(!(Te!=null&&Te.length))return 1;_e=Te,he.push({options:Te})},we=0;we<N.length&&!xe();we+=1);return he},[ce,N,C]),ee=function(_e,le){G(le)&&ie(_e,_2(le,C),!0)};QJe(t,ce,C,N,V,ee,{direction:u,searchValue:s,toggleOpen:l,open:d}),f.useEffect(function(){if(!s)for(var he=0;he<N.length;he+=1){var _e,le=N.slice(0,he+1),xe=kd(le),we=(_e=p.current)===null||_e===void 0?void 0:_e.querySelector('li[data-path-key="'.concat(xe.replace(/\\{0,2}"/g,'\\"'),'"]'));we&&DJe(we)}},[N,s]);var ne=!((n=fe[0])!==null&&n!==void 0&&(n=n.options)!==null&&n!==void 0&&n.length),ue=[(r={},ae(r,C.value,"__EMPTY__"),ae(r,ibe,c),ae(r,"disabled",!0),r)],ye=X(X({},e),{},{multiple:!ne&&a,onSelect:ie,onActive:V,onToggleOpen:l,checkedSet:z,halfCheckedSet:W,loadingKeys:A,isSelectable:G}),me=ne?[{options:ue}]:fe,pe=me.map(function(he,_e){var le=N.slice(0,_e),xe=N[_e];return f.createElement(YJe,st({key:_e},ye,{prefixCls:P,options:he.options,prevValuePath:le,activeValue:xe}))});return f.createElement(qJe,{open:d},f.createElement("div",{className:Re("".concat(P,"-menus"),(i={},ae(i,"".concat(P,"-menu-empty"),ne),ae(i,"".concat(P,"-rtl"),m),i)),ref:p},pe))}),ZJe=f.forwardRef(function(e,t){var n=zU();return f.createElement(obe,st({},e,n,{ref:t}))});function JJe(){}function abe(e){var t,n=e,r=n.prefixCls,i=r===void 0?"rc-cascader":r,o=n.style,a=n.className,s=n.options,l=n.checkable,c=n.defaultValue,u=n.value,d=n.fieldNames,h=n.changeOnSelect,p=n.onChange,m=n.showCheckedStrategy,v=n.loadData,y=n.expandTrigger,S=n.expandIcon,b=S===void 0?">":S,C=n.loadingIcon,_=n.direction,T=n.notFoundContent,x=T===void 0?"Not Found":T,E=n.disabled,k=!!l,M=er(c,{value:u,postState:z9}),P=Le(M,2),D=P[0],R=P[1],A=f.useMemo(function(){return Gye(d)},[JSON.stringify(d)]),H=ebe(A,s),F=Le(H,3),z=F[0],W=F[1],q=F[2],Z=Qye(z,A),N=rbe(k,D,W,q,Z),B=Le(N,3),V=B[0],G=B[1],ie=B[2],ce=ur(function(me){if(R(me),p){var pe=z9(me),he=pe.map(function(xe){return Jb(xe,z,A).map(function(we){return we.option})}),_e=k?pe:pe[0],le=k?he:he[0];p(_e,le)}}),fe=nbe(k,ce,V,G,ie,W,q,m),ee=ur(function(me){fe(me)}),ne=f.useMemo(function(){return{options:z,fieldNames:A,values:V,halfValues:G,changeOnSelect:h,onSelect:ee,checkable:l,searchOptions:[],dropdownPrefixCls:void 0,loadData:v,expandTrigger:y,expandIcon:b,loadingIcon:C,dropdownMenuColumnStyle:void 0}},[z,A,V,G,h,ee,l,v,y,b,C]),ue="".concat(i,"-panel"),ye=!z.length;return f.createElement(nC.Provider,{value:ne},f.createElement("div",{className:Re(ue,(t={},ae(t,"".concat(ue,"-rtl"),_==="rtl"),ae(t,"".concat(ue,"-empty"),ye),t),a),style:o},ye?x:f.createElement(obe,{prefixCls:i,searchValue:"",multiple:k,toggleOpen:JJe,open:!0,direction:_,disabled:E})))}var eet=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],RE=f.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=r===void 0?"rc-cascader":r,o=e.fieldNames,a=e.defaultValue,s=e.value,l=e.changeOnSelect,c=e.onChange,u=e.displayRender,d=e.checkable,h=e.autoClearSearchValue,p=h===void 0?!0:h,m=e.searchValue,v=e.onSearch,y=e.showSearch,S=e.expandTrigger,b=e.options,C=e.dropdownPrefixCls,_=e.loadData,T=e.popupVisible,x=e.open,E=e.popupClassName,k=e.dropdownClassName,M=e.dropdownMenuColumnStyle,P=e.dropdownStyle,D=e.popupPlacement,R=e.placement,A=e.onDropdownVisibleChange,H=e.onPopupVisibleChange,F=e.expandIcon,z=F===void 0?">":F,W=e.loadingIcon,q=e.children,Z=e.dropdownMatchSelectWidth,N=Z===void 0?!1:Z,B=e.showCheckedStrategy,V=B===void 0?Kye:B,G=e.optionRender,ie=tn(e,eet),ce=qU(n),fe=!!d,ee=er(a,{value:s,postState:z9}),ne=Le(ee,2),ue=ne[0],ye=ne[1],me=f.useMemo(function(){return Gye(o)},[JSON.stringify(o)]),pe=ebe(me,b),he=Le(pe,3),_e=he[0],le=he[1],xe=he[2],we=er("",{value:m,postState:function(Vt){return Vt||""}}),De=Le(we,2),Fe=De[0],Ce=De[1],Te=function(Vt,Kt){Ce(Vt),Kt.source!=="blur"&&v&&v(Vt)},ke=UJe(y),Pe=Le(ke,2),Ne=Pe[0],We=Pe[1],Q=AJe(Fe,_e,me,C||i,We,l||fe),K=Qye(_e,me),J=rbe(fe,ue,le,xe,K),be=Le(J,3),Oe=be[0],Se=be[1],Ke=be[2],tt=f.useMemo(function(){var an=Zb(Oe),Vt=Xye(an,le,V);return[].concat(pt(Ke),pt(xe(Vt)))},[Oe,le,xe,Ke,V]),se=FJe(tt,_e,me,fe,u),ze=ur(function(an){if(ye(an),c){var Vt=z9(an),Kt=Vt.map(function(ot){return Jb(ot,_e,me).map(function(Qe){return Qe.option})}),Qt=fe?Vt:Vt[0],et=fe?Kt:Kt[0];c(Qt,et)}}),Ye=nbe(fe,ze,Oe,Se,Ke,le,xe,V),Ue=ur(function(an){(!fe||p)&&Ce(""),Ye(an)}),Je=function(Vt,Kt){if(Kt.type==="clear"){ze([]);return}var Qt=Kt.values[0],et=Qt.valueCells;Ue(et)},Ze=x!==void 0?x:T,rt=k||E,qt=R||D,St=function(Vt){A==null||A(Vt),H==null||H(Vt)},Ot=f.useMemo(function(){return{options:_e,fieldNames:me,values:Oe,halfValues:Se,changeOnSelect:l,onSelect:Ue,checkable:d,searchOptions:Q,dropdownPrefixCls:C,loadData:_,expandTrigger:S,expandIcon:z,loadingIcon:W,dropdownMenuColumnStyle:M,optionRender:G}},[_e,me,Oe,Se,l,Ue,d,Q,C,_,S,z,W,M,G]),Bt=!(Fe?Q:_e).length,Dt=Fe&&We.matchInputWidth||Bt?{}:{minWidth:"auto"};return f.createElement(nC.Provider,{value:Ot},f.createElement(WU,st({},ie,{ref:t,id:ce,prefixCls:i,autoClearSearchValue:p,dropdownMatchSelectWidth:N,dropdownStyle:X(X({},Dt),P),displayValues:se,onDisplayValuesChange:Je,mode:fe?"multiple":void 0,searchValue:Fe,onSearch:Te,showSearch:Ne,OptionList:ZJe,emptyOptions:Bt,open:Ze,dropdownClassName:rt,placement:qt,onDropdownVisibleChange:St,getRawInputElement:function(){return q}})))});RE.SHOW_PARENT=Kye;RE.SHOW_CHILD=qye;RE.Panel=abe;function sbe(e,t){const{getPrefixCls:n,direction:r,renderEmpty:i}=f.useContext(hn),o=t||r,a=n("select",e),s=n("cascader",e);return[a,s,o,i]}function lbe(e,t){return f.useMemo(()=>t?f.createElement("span",{className:`${e}-checkbox-inner`}):!1,[t])}const cbe=(e,t,n)=>{let r=n;n||(r=t?f.createElement(Qb,null):f.createElement(hp,null));const i=f.createElement("span",{className:`${e}-menu-item-loading-icon`},f.createElement(jd,{spin:!0}));return f.useMemo(()=>[r,i],[r])},tet=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},$r(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},$r(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},$r(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},Fd(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${je(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${je(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`
|
||
${n}:not(${n}-disabled),
|
||
${t}:not(${t}-disabled)
|
||
`]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`
|
||
${n}-checked:not(${n}-disabled),
|
||
${t}-checked:not(${t}-disabled)
|
||
`]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function sP(e,t){const n=dr(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[tet(n)]}const ube=Tr("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[sP(n,e)]}),dbe=e=>{const{prefixCls:t,componentCls:n}=e,r=`${n}-menu-item`,i=`
|
||
&${r}-expand ${r}-expand-icon,
|
||
${r}-loading-icon
|
||
`;return[sP(`${t}-checkbox`,e),{[n]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${n}-menu-empty`]:{[`${n}-menu`]:{width:"100%",height:"auto",[r]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${je(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&-item":Object.assign(Object.assign({},Gl),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:e.optionPadding,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[i]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg}},"&-content":{flex:"auto"},[i]:{marginInlineStart:e.paddingXXS,color:e.colorTextDescription,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},net=e=>{const{componentCls:t,antCls:n}=e;return[{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[{[`&${n}-select-dropdown`]:{padding:0}},dbe(e)]},{[`${t}-dropdown-rtl`]:{direction:"rtl"}},Gv(e)]},fbe=e=>{const t=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:e.controlItemBgActive,optionSelectedFontWeight:e.fontWeightStrong,optionPadding:`${t}px ${e.paddingSM}px`,menuPadding:e.paddingXXS,optionSelectedColor:e.colorText}},hbe=Tr("Cascader",e=>[net(e)],fbe),ret=e=>{const{componentCls:t}=e;return{[`${t}-panel`]:[dbe(e),{display:"inline-flex",border:`${je(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:e.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${t}-menus`]:{alignItems:"stretch"},[`${t}-menu`]:{height:"auto"},"&-empty":{padding:e.paddingXXS}}]}},iet=o1e(["Cascader","Panel"],e=>ret(e),fbe);function oet(e){const{prefixCls:t,className:n,multiple:r,rootClassName:i,notFoundContent:o,direction:a,expandIcon:s,disabled:l}=e,c=f.useContext(Jo),u=l??c,[d,h,p,m]=sbe(t,a),v=_i(h),[y,S,b]=hbe(h,v);iet(h);const C=p==="rtl",[_,T]=cbe(d,C,s),x=o||(m==null?void 0:m("Cascader"))||f.createElement(YS,{componentName:"Cascader"}),E=lbe(h,r);return y(f.createElement(abe,Object.assign({},e,{checkable:E,prefixCls:h,className:Re(n,S,i,b,v),notFoundContent:x,direction:p,expandIcon:_,loadingIcon:T,disabled:u})))}var aet=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const{SHOW_CHILD:set,SHOW_PARENT:cet}=RE;function uet(e,t,n){const r=e.toLowerCase().split(t).reduce((a,s,l)=>l===0?[s]:[].concat(pt(a),[t,s]),[]),i=[];let o=0;return r.forEach((a,s)=>{const l=o+a.length;let c=e.slice(o,l);o=l,s%2===1&&(c=f.createElement("span",{className:`${n}-menu-item-keyword`,key:`separator-${s}`},c)),i.push(c)}),i}const det=(e,t,n,r)=>{const i=[],o=e.toLowerCase();return t.forEach((a,s)=>{s!==0&&i.push(" / ");let l=a[r.label];const c=typeof l;(c==="string"||c==="number")&&(l=uet(String(l),o,n)),i.push(l)}),i},rC=f.forwardRef((e,t)=>{var n;const{prefixCls:r,size:i,disabled:o,className:a,rootClassName:s,multiple:l,bordered:c=!0,transitionName:u,choiceTransitionName:d="",popupClassName:h,dropdownClassName:p,expandIcon:m,placement:v,showSearch:y,allowClear:S=!0,notFoundContent:b,direction:C,getPopupContainer:_,status:T,showArrow:x,builtinPlacements:E,style:k,variant:M}=e,P=aet(e,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant"]),D=Pr(P,["suffixIcon"]),{getPopupContainer:R,getPrefixCls:A,popupOverflow:H,cascader:F}=f.useContext(hn),{status:z,hasFeedback:W,isFormItemInput:q,feedbackIcon:Z}=f.useContext(ha),N=Op(z,T),[B,V,G,ie]=sbe(r,C),ce=G==="rtl",fe=A(),ee=_i(B),[ne,ue,ye]=XU(B,ee),me=_i(V),[pe]=hbe(V,me),{compactSize:he,compactItemClassnames:_e}=Qd(B,C),[le,xe]=Pp("cascader",M,c),we=b||(ie==null?void 0:ie("Cascader"))||f.createElement(YS,{componentName:"Cascader"}),De=Re(h||p,`${V}-dropdown`,{[`${V}-dropdown-rtl`]:G==="rtl"},s,ee,me,ue,ye),Fe=f.useMemo(()=>{if(!y)return y;let se={render:det};return typeof y=="object"&&(se=Object.assign(Object.assign({},se),y)),se},[y]),Ce=$o(se=>{var ze;return(ze=i??he)!==null&&ze!==void 0?ze:se}),Te=f.useContext(Jo),ke=o??Te,[Pe,Ne]=cbe(B,ce,m),We=lbe(V,l),Q=QU(e.suffixIcon,x),{suffixIcon:K,removeIcon:J,clearIcon:be}=WO(Object.assign(Object.assign({},e),{hasFeedback:W,feedbackIcon:Z,showSuffixIcon:Q,multiple:l,prefixCls:B,componentName:"Cascader"})),Oe=f.useMemo(()=>v!==void 0?v:ce?"bottomRight":"bottomLeft",[v,ce]),Se=S===!0?{clearIcon:be}:S,[Ke]=Du("SelectLike",(n=D.dropdownStyle)===null||n===void 0?void 0:n.zIndex),tt=f.createElement(RE,Object.assign({prefixCls:B,className:Re(!r&&V,{[`${B}-lg`]:Ce==="large",[`${B}-sm`]:Ce==="small",[`${B}-rtl`]:ce,[`${B}-${le}`]:xe,[`${B}-in-form-item`]:q},zd(B,N,W),_e,F==null?void 0:F.className,a,s,ee,me,ue,ye),disabled:ke,style:Object.assign(Object.assign({},F==null?void 0:F.style),k)},D,{builtinPlacements:YU(E,H),direction:G,placement:Oe,notFoundContent:we,allowClear:Se,showSearch:Fe,expandIcon:Pe,suffixIcon:K,removeIcon:J,loadingIcon:Ne,checkable:We,dropdownClassName:De,dropdownPrefixCls:r||V,dropdownStyle:Object.assign(Object.assign({},D.dropdownStyle),{zIndex:Ke}),choiceTransitionName:os(fe,"",d),transitionName:os(fe,"slide-up",u),getPopupContainer:_||R,ref:t}));return pe(ne(tt))}),fet=vg(rC,"dropdownAlign",e=>Pr(e,["visible"]));rC.SHOW_PARENT=cet;rC.SHOW_CHILD=set;rC.Panel=oet;rC._InternalPanelDoNotUseOrYouWillBeFired=fet;const pbe=ge.createContext(null);var het=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const pet=(e,t)=>{var n;const{prefixCls:r,className:i,rootClassName:o,children:a,indeterminate:s=!1,style:l,onMouseEnter:c,onMouseLeave:u,skipGroup:d=!1,disabled:h}=e,p=het(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:m,direction:v,checkbox:y}=f.useContext(hn),S=f.useContext(pbe),{isFormItemInput:b}=f.useContext(ha),C=f.useContext(Jo),_=(n=(S==null?void 0:S.disabled)||h)!==null&&n!==void 0?n:C,T=f.useRef(p.value),x=f.useRef(null),E=ga(t,x);f.useEffect(()=>{S==null||S.registerValue(p.value)},[]),f.useEffect(()=>{if(!d)return p.value!==T.current&&(S==null||S.cancelValue(T.current),S==null||S.registerValue(p.value),T.current=p.value),()=>S==null?void 0:S.cancelValue(p.value)},[p.value]),f.useEffect(()=>{var q;!((q=x.current)===null||q===void 0)&&q.input&&(x.current.input.indeterminate=s)},[s]);const k=m("checkbox",r),M=_i(k),[P,D,R]=ube(k,M),A=Object.assign({},p);S&&!d&&(A.onChange=function(){p.onChange&&p.onChange.apply(p,arguments),S.toggleOption&&S.toggleOption({label:a,value:p.value})},A.name=S.name,A.checked=S.value.includes(p.value));const H=Re(`${k}-wrapper`,{[`${k}-rtl`]:v==="rtl",[`${k}-wrapper-checked`]:A.checked,[`${k}-wrapper-disabled`]:_,[`${k}-wrapper-in-form-item`]:b},y==null?void 0:y.className,i,o,R,M,D),F=Re({[`${k}-indeterminate`]:s},_O,D),[z,W]=Rye(A.onClick);return P(f.createElement(gE,{component:"Checkbox",disabled:_},f.createElement("label",{className:H,style:Object.assign(Object.assign({},y==null?void 0:y.style),l),onMouseEnter:c,onMouseLeave:u,onClick:z},f.createElement($ye,Object.assign({},A,{onClick:W,prefixCls:k,className:F,disabled:_,ref:E})),a!==void 0&&f.createElement("span",null,a))))},mbe=f.forwardRef(pet);var met=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const get=f.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:i=[],prefixCls:o,className:a,rootClassName:s,style:l,onChange:c}=e,u=met(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:d,direction:h}=f.useContext(hn),[p,m]=f.useState(u.value||n||[]),[v,y]=f.useState([]);f.useEffect(()=>{"value"in u&&m(u.value||[])},[u.value]);const S=f.useMemo(()=>i.map(F=>typeof F=="string"||typeof F=="number"?{label:F,value:F}:F),[i]),b=F=>{y(z=>z.filter(W=>W!==F))},C=F=>{y(z=>[].concat(pt(z),[F]))},_=F=>{const z=p.indexOf(F.value),W=pt(p);z===-1?W.push(F.value):W.splice(z,1),"value"in u||m(W),c==null||c(W.filter(q=>v.includes(q)).sort((q,Z)=>{const N=S.findIndex(V=>V.value===q),B=S.findIndex(V=>V.value===Z);return N-B}))},T=d("checkbox",o),x=`${T}-group`,E=_i(T),[k,M,P]=ube(T,E),D=Pr(u,["value","disabled"]),R=i.length?S.map(F=>f.createElement(mbe,{prefixCls:T,key:F.value.toString(),disabled:"disabled"in F?F.disabled:u.disabled,value:F.value,checked:p.includes(F.value),onChange:F.onChange,className:`${x}-item`,style:F.style,title:F.title,id:F.id,required:F.required},F.label)):r,A={toggleOption:_,value:p,disabled:u.disabled,name:u.name,registerValue:C,cancelValue:b},H=Re(x,{[`${x}-rtl`]:h==="rtl"},a,s,P,E,M);return k(f.createElement("div",Object.assign({className:H,style:l},D,{ref:t}),f.createElement(pbe.Provider,{value:A},R)))}),mp=mbe;mp.Group=get;mp.__ANT_CHECKBOX=!0;const gbe=f.createContext({});var vet=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Ree(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const yet=["xs","sm","md","lg","xl","xxl"],wv=f.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=f.useContext(hn),{gutter:i,wrap:o}=f.useContext(gbe),{prefixCls:a,span:s,order:l,offset:c,push:u,pull:d,className:h,children:p,flex:m,style:v}=e,y=vet(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),S=n("col",a),[b,C,_]=AVe(S),T={};let x={};yet.forEach(M=>{let P={};const D=e[M];typeof D=="number"?P.span=D:typeof D=="object"&&(P=D||{}),delete y[M],x=Object.assign(Object.assign({},x),{[`${S}-${M}-${P.span}`]:P.span!==void 0,[`${S}-${M}-order-${P.order}`]:P.order||P.order===0,[`${S}-${M}-offset-${P.offset}`]:P.offset||P.offset===0,[`${S}-${M}-push-${P.push}`]:P.push||P.push===0,[`${S}-${M}-pull-${P.pull}`]:P.pull||P.pull===0,[`${S}-rtl`]:r==="rtl"}),P.flex&&(x[`${S}-${M}-flex`]=!0,T[`--${S}-${M}-flex`]=Ree(P.flex))});const E=Re(S,{[`${S}-${s}`]:s!==void 0,[`${S}-order-${l}`]:l,[`${S}-offset-${c}`]:c,[`${S}-push-${u}`]:u,[`${S}-pull-${d}`]:d},h,x,C,_),k={};if(i&&i[0]>0){const M=i[0]/2;k.paddingLeft=M,k.paddingRight=M}return m&&(k.flex=Ree(m),o===!1&&!k.minWidth&&(k.minWidth=0)),b(f.createElement("div",Object.assign({},y,{style:Object.assign(Object.assign(Object.assign({},k),v),T),className:E,ref:t}),p))});var bet=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Aee(e,t){const[n,r]=f.useState(typeof e=="string"?e:""),i=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let o=0;o<ig.length;o++){const a=ig[o];if(!t[a])continue;const s=e[a];if(s!==void 0){r(s);return}}};return f.useEffect(()=>{i()},[JSON.stringify(e),t]),n}const AE=f.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:i,className:o,style:a,children:s,gutter:l=0,wrap:c}=e,u=bet(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:d,direction:h}=f.useContext(hn),[p,m]=f.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[v,y]=f.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),S=Aee(i,v),b=Aee(r,v),C=f.useRef(l),_=i0e();f.useEffect(()=>{const W=_.subscribe(q=>{y(q);const Z=C.current||0;(!Array.isArray(Z)&&typeof Z=="object"||Array.isArray(Z)&&(typeof Z[0]=="object"||typeof Z[1]=="object"))&&m(q)});return()=>_.unsubscribe(W)},[]);const T=()=>{const W=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach((Z,N)=>{if(typeof Z=="object")for(let B=0;B<ig.length;B++){const V=ig[B];if(p[V]&&Z[V]!==void 0){W[N]=Z[V];break}}else W[N]=Z}),W},x=d("row",n),[E,k,M]=RVe(x),P=T(),D=Re(x,{[`${x}-no-wrap`]:c===!1,[`${x}-${b}`]:b,[`${x}-${S}`]:S,[`${x}-rtl`]:h==="rtl"},o,k,M),R={},A=P[0]!=null&&P[0]>0?P[0]/-2:void 0;A&&(R.marginLeft=A,R.marginRight=A);const[H,F]=P;R.rowGap=F;const z=f.useMemo(()=>({gutter:[H,F],wrap:c}),[H,F,c]);return E(f.createElement(gbe.Provider,{value:z},f.createElement("div",Object.assign({},u,{className:D,style:Object.assign(Object.assign({},R),a),ref:t}),s)))}),Cet=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:i,textPaddingInline:o,orientationMargin:a,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},$r(e)),{borderBlockStart:`${je(i)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${je(i)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${je(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${je(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${je(i)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${a} * 100%)`},"&::after":{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${a} * 100%)`},"&::after":{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:o},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${je(i)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${je(i)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},xet=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),wet=Tr("Divider",e=>{const t=dr(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[Cet(t)]},xet,{unitless:{orientationMargin:!0}});var _et=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Eet=e=>{const{getPrefixCls:t,direction:n,divider:r}=f.useContext(hn),{prefixCls:i,type:o="horizontal",orientation:a="center",orientationMargin:s,className:l,rootClassName:c,children:u,dashed:d,variant:h="solid",plain:p,style:m}=e,v=_et(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),y=t("divider",i),[S,b,C]=wet(y),_=!!u,T=a==="left"&&s!=null,x=a==="right"&&s!=null,E=Re(y,r==null?void 0:r.className,b,C,`${y}-${o}`,{[`${y}-with-text`]:_,[`${y}-with-text-${a}`]:_,[`${y}-dashed`]:!!d,[`${y}-${h}`]:h!=="solid",[`${y}-plain`]:!!p,[`${y}-rtl`]:n==="rtl",[`${y}-no-default-orientation-margin-left`]:T,[`${y}-no-default-orientation-margin-right`]:x},l,c),k=f.useMemo(()=>typeof s=="number"?s:/^\d+$/.test(s)?Number(s):s,[s]),M=Object.assign(Object.assign({},T&&{marginLeft:k}),x&&{marginRight:k});return S(f.createElement("div",Object.assign({className:E,style:Object.assign(Object.assign({},r==null?void 0:r.style),m)},v,{role:"separator"}),u&&o!=="vertical"&&f.createElement("span",{className:`${y}-inner-text`,style:M},u)))};var Nee=function(t,n){if(!t)return null;var r={left:t.offsetLeft,right:t.parentElement.clientWidth-t.clientWidth-t.offsetLeft,width:t.clientWidth,top:t.offsetTop,bottom:t.parentElement.clientHeight-t.clientHeight-t.offsetTop,height:t.clientHeight};return n?{left:0,right:0,width:0,top:r.top,bottom:r.bottom,height:r.height}:{left:r.left,right:r.right,width:r.width,top:0,bottom:0,height:0}},hf=function(t){return t!==void 0?"".concat(t,"px"):void 0};function Tet(e){var t=e.prefixCls,n=e.containerRef,r=e.value,i=e.getValueIndex,o=e.motionName,a=e.onMotionStart,s=e.onMotionEnd,l=e.direction,c=e.vertical,u=c===void 0?!1:c,d=f.useRef(null),h=f.useState(r),p=Le(h,2),m=p[0],v=p[1],y=function(F){var z,W=i(F),q=(z=n.current)===null||z===void 0?void 0:z.querySelectorAll(".".concat(t,"-item"))[W];return(q==null?void 0:q.offsetParent)&&q},S=f.useState(null),b=Le(S,2),C=b[0],_=b[1],T=f.useState(null),x=Le(T,2),E=x[0],k=x[1];Er(function(){if(m!==r){var H=y(m),F=y(r),z=Nee(H,u),W=Nee(F,u);v(r),_(z),k(W),H&&F?a():s()}},[r]);var M=f.useMemo(function(){if(u){var H;return hf((H=C==null?void 0:C.top)!==null&&H!==void 0?H:0)}return hf(l==="rtl"?-(C==null?void 0:C.right):C==null?void 0:C.left)},[u,l,C]),P=f.useMemo(function(){if(u){var H;return hf((H=E==null?void 0:E.top)!==null&&H!==void 0?H:0)}return hf(l==="rtl"?-(E==null?void 0:E.right):E==null?void 0:E.left)},[u,l,E]),D=function(){return u?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},R=function(){return u?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},A=function(){_(null),k(null),s()};return!C||!E?null:f.createElement(fa,{visible:!0,motionName:o,motionAppear:!0,onAppearStart:D,onAppearActive:R,onVisibleChanged:A},function(H,F){var z=H.className,W=H.style,q=X(X({},W),{},{"--thumb-start-left":M,"--thumb-start-width":hf(C==null?void 0:C.width),"--thumb-active-left":P,"--thumb-active-width":hf(E==null?void 0:E.width),"--thumb-start-top":M,"--thumb-start-height":hf(C==null?void 0:C.height),"--thumb-active-top":P,"--thumb-active-height":hf(E==null?void 0:E.height)}),Z={ref:ga(d,F),style:q,className:Re("".concat(t,"-thumb"),z)};return f.createElement("div",Z)})}var ket=["prefixCls","direction","vertical","options","disabled","defaultValue","value","name","onChange","className","motionName"];function Oet(e){if(typeof e.title<"u")return e.title;if(ln(e.label)!=="object"){var t;return(t=e.label)===null||t===void 0?void 0:t.toString()}}function Pet(e){return e.map(function(t){if(ln(t)==="object"&&t!==null){var n=Oet(t);return X(X({},t),{},{title:n})}return{label:t==null?void 0:t.toString(),title:t==null?void 0:t.toString(),value:t}})}var Met=function(t){var n=t.prefixCls,r=t.className,i=t.disabled,o=t.checked,a=t.label,s=t.title,l=t.value,c=t.name,u=t.onChange,d=t.onFocus,h=t.onBlur,p=t.onKeyDown,m=t.onKeyUp,v=t.onMouseDown,y=function(b){i||u(b,l)};return f.createElement("label",{className:Re(r,ae({},"".concat(n,"-item-disabled"),i)),onMouseDown:v},f.createElement("input",{name:c,className:"".concat(n,"-item-input"),type:"radio",disabled:i,checked:o,onChange:y,onFocus:d,onBlur:h,onKeyDown:p,onKeyUp:m}),f.createElement("div",{className:"".concat(n,"-item-label"),title:s,"aria-selected":o},a))},Iet=f.forwardRef(function(e,t){var n,r,i=e.prefixCls,o=i===void 0?"rc-segmented":i,a=e.direction,s=e.vertical,l=e.options,c=l===void 0?[]:l,u=e.disabled,d=e.defaultValue,h=e.value,p=e.name,m=e.onChange,v=e.className,y=v===void 0?"":v,S=e.motionName,b=S===void 0?"thumb-motion":S,C=tn(e,ket),_=f.useRef(null),T=f.useMemo(function(){return ga(_,t)},[_,t]),x=f.useMemo(function(){return Pet(c)},[c]),E=er((n=x[0])===null||n===void 0?void 0:n.value,{value:h,defaultValue:d}),k=Le(E,2),M=k[0],P=k[1],D=f.useState(!1),R=Le(D,2),A=R[0],H=R[1],F=function(pe,he){P(he),m==null||m(he)},z=Pr(C,["children"]),W=f.useState(!1),q=Le(W,2),Z=q[0],N=q[1],B=f.useState(!1),V=Le(B,2),G=V[0],ie=V[1],ce=function(){ie(!0)},fe=function(){ie(!1)},ee=function(){N(!1)},ne=function(pe){pe.key==="Tab"&&N(!0)},ue=function(pe){var he=x.findIndex(function(we){return we.value===M}),_e=x.length,le=(he+pe+_e)%_e,xe=x[le];xe&&(P(xe.value),m==null||m(xe.value))},ye=function(pe){switch(pe.key){case"ArrowLeft":case"ArrowUp":ue(-1);break;case"ArrowRight":case"ArrowDown":ue(1);break}};return f.createElement("div",st({role:"radiogroup","aria-label":"segmented control",tabIndex:u?void 0:0},z,{className:Re(o,(r={},ae(r,"".concat(o,"-rtl"),a==="rtl"),ae(r,"".concat(o,"-disabled"),u),ae(r,"".concat(o,"-vertical"),s),r),y),ref:T}),f.createElement("div",{className:"".concat(o,"-group")},f.createElement(Tet,{vertical:s,prefixCls:o,value:M,containerRef:_,motionName:"".concat(o,"-").concat(b),direction:a,getValueIndex:function(pe){return x.findIndex(function(he){return he.value===pe})},onMotionStart:function(){H(!0)},onMotionEnd:function(){H(!1)}}),x.map(function(me){var pe;return f.createElement(Met,st({},me,{name:p,key:me.value,prefixCls:o,className:Re(me.className,"".concat(o,"-item"),(pe={},ae(pe,"".concat(o,"-item-selected"),me.value===M&&!A),ae(pe,"".concat(o,"-item-focused"),G&&Z&&me.value===M),pe)),checked:me.value===M,onChange:F,onFocus:ce,onBlur:fe,onKeyDown:ye,onKeyUp:ne,onMouseDown:ee,disabled:!!u||!!me.disabled}))})))}),$et=Iet;function Dee(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function Lee(e){return{backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const Ret=Object.assign({overflow:"hidden"},Gl),Aet=e=>{const{componentCls:t}=e,n=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),r=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),i=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},$r(e)),{display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`}),ml(e)),{[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:"column"},[`${t}-thumb`]:{width:"100%",height:0,padding:`0 ${je(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},Lee(e)),{color:e.itemSelectedColor}),"&-focused":Object.assign({},Fd(e)),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemHoverBg}},[`&:active:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:n,lineHeight:je(n),padding:`0 ${je(e.segmentedPaddingHorizontal)}`},Ret),"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},Lee(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${je(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, height ${e.motionDurationSlow} ${e.motionEaseInOut}`,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:r,lineHeight:je(r),padding:`0 ${je(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:i,lineHeight:je(i),padding:`0 ${je(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),Dee(`&-disabled ${t}-item`,e)),Dee(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},Net=e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:i,colorFill:o,lineWidthBold:a,colorBgLayout:s}=e;return{trackPadding:a,trackBg:s,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:i,itemActiveBg:o,itemSelectedColor:n}},Det=Tr("Segmented",e=>{const{lineWidth:t,calc:n}=e,r=dr(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return[Aet(r)]},Net);var Fee=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Let(e){return typeof e=="object"&&!!(e!=null&&e.icon)}const Fet=f.forwardRef((e,t)=>{const n=DO(),{prefixCls:r,className:i,rootClassName:o,block:a,options:s=[],size:l="middle",style:c,vertical:u,name:d=n}=e,h=Fee(e,["prefixCls","className","rootClassName","block","options","size","style","vertical","name"]),{getPrefixCls:p,direction:m,segmented:v}=f.useContext(hn),y=p("segmented",r),[S,b,C]=Det(y),_=$o(l),T=f.useMemo(()=>s.map(k=>{if(Let(k)){const{icon:M,label:P}=k,D=Fee(k,["icon","label"]);return Object.assign(Object.assign({},D),{label:f.createElement(f.Fragment,null,f.createElement("span",{className:`${y}-item-icon`},M),P&&f.createElement("span",null,P))})}return k}),[s,y]),x=Re(i,o,v==null?void 0:v.className,{[`${y}-block`]:a,[`${y}-sm`]:_==="small",[`${y}-lg`]:_==="large",[`${y}-vertical`]:u},b,C),E=Object.assign(Object.assign({},v==null?void 0:v.style),c);return S(f.createElement($et,Object.assign({},h,{name:d,className:x,style:E,options:T,ref:t,prefixCls:y,direction:m,vertical:u})))}),vbe=Fet,ybe=ge.createContext({}),bbe=ge.createContext({}),Sbe=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=()=>{if(r&&n&&!n.cleared){const o=n.toHsb();o.a=0;const a=Vs(o);a.cleared=!0,r(a)}};return ge.createElement("div",{className:`${t}-clear`,onClick:i})};var Ym;(function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb"})(Ym||(Ym={}));var jet={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},Bet=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:jet}))},Het=f.forwardRef(Bet);function GF(){return typeof BigInt=="function"}function Cbe(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function X1(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",i=r.split("."),o=i[0]||"0",a=i[1]||"0";o==="0"&&a==="0"&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:o,decimalStr:a,fullStr:"".concat(s).concat(r)}}function kW(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function O1(e){var t=String(e);if(kW(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&OW(t)?t.length-t.indexOf(".")-1:0}function lP(e){var t=String(e);if(kW(e)){if(e>Number.MAX_SAFE_INTEGER)return String(GF()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(GF()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(O1(t))}return X1(t).fullStr}function OW(e){return typeof e=="number"?!Number.isNaN(e):e?/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e):!1}var zet=function(){function e(t){if(hi(this,e),ae(this,"origin",""),ae(this,"negative",void 0),ae(this,"integer",void 0),ae(this,"decimal",void 0),ae(this,"decimalLen",void 0),ae(this,"empty",void 0),ae(this,"nan",void 0),Cbe(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(kW(n)&&(n=Number(n)),n=typeof n=="string"?n:lP(n),OW(n)){var r=X1(n);this.negative=r.negative;var i=r.trimStr.split(".");this.integer=BigInt(i[0]);var o=i[1]||"0";this.decimal=BigInt(o),this.decimalLen=o.length}else this.nan=!0}return pi(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(n){var r="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(n,"0"));return BigInt(r)}},{key:"negate",value:function(){var n=new e(this.toString());return n.negative=!n.negative,n}},{key:"cal",value:function(n,r,i){var o=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),a=this.alignDecimal(o),s=n.alignDecimal(o),l=r(a,s).toString(),c=i(o),u=X1(l),d=u.negativeStr,h=u.trimStr,p="".concat(d).concat(h.padStart(c+1,"0"));return new e("".concat(p.slice(0,-c),".").concat(p.slice(-c)))}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=new e(n);return r.isInvalidate()?this:this.cal(r,function(i,o){return i+o},function(i){return i})}},{key:"multi",value:function(n){var r=new e(n);return this.isInvalidate()||r.isInvalidate()?new e(NaN):this.cal(r,function(i,o){return i*o},function(i){return i*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toString()===(n==null?void 0:n.toString())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":X1("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),Uet=function(){function e(t){if(hi(this,e),ae(this,"origin",""),ae(this,"number",void 0),ae(this,"empty",void 0),Cbe(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return pi(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var i=this.number+r;if(i>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(i<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(O1(this.number),O1(r));return new e(i.toFixed(o))}},{key:"multi",value:function(n){var r=Number(n);if(this.isInvalidate()||Number.isNaN(r))return new e(NaN);var i=this.number*r;if(i>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(i<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(O1(this.number),O1(r));return new e(i.toFixed(o))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toNumber()===(n==null?void 0:n.toNumber())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":lP(this.number):this.origin}}]),e}();function sd(e){return GF()?new zet(e):new Uet(e)}function D8(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var i=X1(e),o=i.negativeStr,a=i.integerStr,s=i.decimalStr,l="".concat(t).concat(s),c="".concat(o).concat(a);if(n>=0){var u=Number(s[n]);if(u>=5&&!r){var d=sd(e).add("".concat(o,"0.").concat("0".repeat(n)).concat(10-u));return D8(d.toString(),t,n,r)}return n===0?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return l===".0"?c:"".concat(c).concat(l)}function Wet(e){return!!(e.addonBefore||e.addonAfter)}function Vet(e){return!!(e.prefix||e.suffix||e.allowClear)}function jee(e,t,n){var r=t.cloneNode(!0),i=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},i}function U9(e,t,n,r){if(n){var i=t;if(t.type==="click"){i=jee(t,e,""),n(i);return}if(e.type!=="file"&&r!==void 0){i=jee(t,e,r),n(i);return}n(i)}}function PW(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var i=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(i,i);break;default:e.setSelectionRange(0,i)}}}}var MW=ge.forwardRef(function(e,t){var n,r,i,o=e.inputElement,a=e.children,s=e.prefixCls,l=e.prefix,c=e.suffix,u=e.addonBefore,d=e.addonAfter,h=e.className,p=e.style,m=e.disabled,v=e.readOnly,y=e.focused,S=e.triggerFocus,b=e.allowClear,C=e.value,_=e.handleReset,T=e.hidden,x=e.classes,E=e.classNames,k=e.dataAttrs,M=e.styles,P=e.components,D=e.onClear,R=a??o,A=(P==null?void 0:P.affixWrapper)||"span",H=(P==null?void 0:P.groupWrapper)||"span",F=(P==null?void 0:P.wrapper)||"span",z=(P==null?void 0:P.groupAddon)||"span",W=f.useRef(null),q=function(le){var xe;(xe=W.current)!==null&&xe!==void 0&&xe.contains(le.target)&&(S==null||S())},Z=Vet(e),N=f.cloneElement(R,{value:C,className:Re((n=R.props)===null||n===void 0?void 0:n.className,!Z&&(E==null?void 0:E.variant))||null}),B=f.useRef(null);if(ge.useImperativeHandle(t,function(){return{nativeElement:B.current||W.current}}),Z){var V=null;if(b){var G=!m&&!v&&C,ie="".concat(s,"-clear-icon"),ce=ln(b)==="object"&&b!==null&&b!==void 0&&b.clearIcon?b.clearIcon:"✖";V=ge.createElement("button",{type:"button",onClick:function(le){_==null||_(le),D==null||D()},onMouseDown:function(le){return le.preventDefault()},className:Re(ie,ae(ae({},"".concat(ie,"-hidden"),!G),"".concat(ie,"-has-suffix"),!!c))},ce)}var fe="".concat(s,"-affix-wrapper"),ee=Re(fe,ae(ae(ae(ae(ae({},"".concat(s,"-disabled"),m),"".concat(fe,"-disabled"),m),"".concat(fe,"-focused"),y),"".concat(fe,"-readonly"),v),"".concat(fe,"-input-with-clear-btn"),c&&b&&C),x==null?void 0:x.affixWrapper,E==null?void 0:E.affixWrapper,E==null?void 0:E.variant),ne=(c||b)&&ge.createElement("span",{className:Re("".concat(s,"-suffix"),E==null?void 0:E.suffix),style:M==null?void 0:M.suffix},V,c);N=ge.createElement(A,st({className:ee,style:M==null?void 0:M.affixWrapper,onClick:q},k==null?void 0:k.affixWrapper,{ref:W}),l&&ge.createElement("span",{className:Re("".concat(s,"-prefix"),E==null?void 0:E.prefix),style:M==null?void 0:M.prefix},l),N,ne)}if(Wet(e)){var ue="".concat(s,"-group"),ye="".concat(ue,"-addon"),me="".concat(ue,"-wrapper"),pe=Re("".concat(s,"-wrapper"),ue,x==null?void 0:x.wrapper,E==null?void 0:E.wrapper),he=Re(me,ae({},"".concat(me,"-disabled"),m),x==null?void 0:x.group,E==null?void 0:E.groupWrapper);N=ge.createElement(H,{className:he,ref:B},ge.createElement(F,{className:pe},u&&ge.createElement(z,{className:ye},u),N,d&&ge.createElement(z,{className:ye},d)))}return ge.cloneElement(N,{className:Re((r=N.props)===null||r===void 0?void 0:r.className,h)||null,style:X(X({},(i=N.props)===null||i===void 0?void 0:i.style),p),hidden:T})}),Ket=["show"];function xbe(e,t){return f.useMemo(function(){var n={};t&&(n.show=ln(t)==="object"&&t.formatter?t.formatter:!!t),n=X(X({},n),e);var r=n,i=r.show,o=tn(r,Ket);return X(X({},o),{},{show:!!i,showFormatter:typeof i=="function"?i:void 0,strategy:o.strategy||function(a){return a.length}})},[e,t])}var qet=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],Get=f.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,i=e.onFocus,o=e.onBlur,a=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,c=e.prefixCls,u=c===void 0?"rc-input":c,d=e.disabled,h=e.htmlSize,p=e.className,m=e.maxLength,v=e.suffix,y=e.showCount,S=e.count,b=e.type,C=b===void 0?"text":b,_=e.classes,T=e.classNames,x=e.styles,E=e.onCompositionStart,k=e.onCompositionEnd,M=tn(e,qet),P=f.useState(!1),D=Le(P,2),R=D[0],A=D[1],H=f.useRef(!1),F=f.useRef(!1),z=f.useRef(null),W=f.useRef(null),q=function(Ne){z.current&&PW(z.current,Ne)},Z=er(e.defaultValue,{value:e.value}),N=Le(Z,2),B=N[0],V=N[1],G=B==null?"":String(B),ie=f.useState(null),ce=Le(ie,2),fe=ce[0],ee=ce[1],ne=xbe(S,y),ue=ne.max||m,ye=ne.strategy(G),me=!!ue&&ye>ue;f.useImperativeHandle(t,function(){var Pe;return{focus:q,blur:function(){var We;(We=z.current)===null||We===void 0||We.blur()},setSelectionRange:function(We,Q,K){var J;(J=z.current)===null||J===void 0||J.setSelectionRange(We,Q,K)},select:function(){var We;(We=z.current)===null||We===void 0||We.select()},input:z.current,nativeElement:((Pe=W.current)===null||Pe===void 0?void 0:Pe.nativeElement)||z.current}}),f.useEffect(function(){F.current&&(F.current=!1),A(function(Pe){return Pe&&d?!1:Pe})},[d]);var pe=function(Ne,We,Q){var K=We;if(!H.current&&ne.exceedFormatter&&ne.max&&ne.strategy(We)>ne.max){if(K=ne.exceedFormatter(We,{max:ne.max}),We!==K){var J,be;ee([((J=z.current)===null||J===void 0?void 0:J.selectionStart)||0,((be=z.current)===null||be===void 0?void 0:be.selectionEnd)||0])}}else if(Q.source==="compositionEnd")return;V(K),z.current&&U9(z.current,Ne,r,K)};f.useEffect(function(){if(fe){var Pe;(Pe=z.current)===null||Pe===void 0||Pe.setSelectionRange.apply(Pe,pt(fe))}},[fe]);var he=function(Ne){pe(Ne,Ne.target.value,{source:"change"})},_e=function(Ne){H.current=!1,pe(Ne,Ne.currentTarget.value,{source:"compositionEnd"}),k==null||k(Ne)},le=function(Ne){a&&Ne.key==="Enter"&&!F.current&&(F.current=!0,a(Ne)),s==null||s(Ne)},xe=function(Ne){Ne.key==="Enter"&&(F.current=!1),l==null||l(Ne)},we=function(Ne){A(!0),i==null||i(Ne)},De=function(Ne){F.current&&(F.current=!1),A(!1),o==null||o(Ne)},Fe=function(Ne){V(""),q(),z.current&&U9(z.current,Ne,r)},Ce=me&&"".concat(u,"-out-of-range"),Te=function(){var Ne=Pr(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return ge.createElement("input",st({autoComplete:n},Ne,{onChange:he,onFocus:we,onBlur:De,onKeyDown:le,onKeyUp:xe,className:Re(u,ae({},"".concat(u,"-disabled"),d),T==null?void 0:T.input),style:x==null?void 0:x.input,ref:z,size:h,type:C,onCompositionStart:function(Q){H.current=!0,E==null||E(Q)},onCompositionEnd:_e}))},ke=function(){var Ne=Number(ue)>0;if(v||ne.show){var We=ne.showFormatter?ne.showFormatter({value:G,count:ye,maxLength:ue}):"".concat(ye).concat(Ne?" / ".concat(ue):"");return ge.createElement(ge.Fragment,null,ne.show&&ge.createElement("span",{className:Re("".concat(u,"-show-count-suffix"),ae({},"".concat(u,"-show-count-has-suffix"),!!v),T==null?void 0:T.count),style:X({},x==null?void 0:x.count)},We),v)}return null};return ge.createElement(MW,st({},M,{prefixCls:u,className:Re(p,Ce),handleReset:Fe,value:G,focused:R,triggerFocus:q,suffix:ke(),disabled:d,classes:_,classNames:T,styles:x}),Te())});function Yet(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,i){if(t[i])return t[i];var o=r[i];return typeof o=="function"?o.bind(r):o}}):e}function Xet(e,t){var n=f.useRef(null);function r(){try{var o=e.selectionStart,a=e.selectionEnd,s=e.value,l=s.substring(0,o),c=s.substring(a);n.current={start:o,end:a,value:s,beforeTxt:l,afterTxt:c}}catch{}}function i(){if(e&&n.current&&t)try{var o=e.value,a=n.current,s=a.beforeTxt,l=a.afterTxt,c=a.start,u=o.length;if(o.startsWith(s))u=s.length;else if(o.endsWith(l))u=o.length-n.current.afterTxt.length;else{var d=s[c-1],h=o.indexOf(d,c-1);h!==-1&&(u=h+1)}e.setSelectionRange(u,u)}catch(p){fi(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(p.message))}}return[r,i]}var Qet=function(){var t=f.useState(!1),n=Le(t,2),r=n[0],i=n[1];return Er(function(){i(BO())},[]),r},Zet=200,Jet=600;function ett(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,i=e.upDisabled,o=e.downDisabled,a=e.onStep,s=f.useRef(),l=f.useRef([]),c=f.useRef();c.current=a;var u=function(){clearTimeout(s.current)},d=function(C,_){C.preventDefault(),u(),c.current(_);function T(){c.current(_),s.current=setTimeout(T,Zet)}s.current=setTimeout(T,Jet)};f.useEffect(function(){return function(){u(),l.current.forEach(function(b){return Cr.cancel(b)})}},[]);var h=Qet();if(h)return null;var p="".concat(t,"-handler"),m=Re(p,"".concat(p,"-up"),ae({},"".concat(p,"-up-disabled"),i)),v=Re(p,"".concat(p,"-down"),ae({},"".concat(p,"-down-disabled"),o)),y=function(){return l.current.push(Cr(u))},S={unselectable:"on",role:"button",onMouseUp:y,onMouseLeave:y};return f.createElement("div",{className:"".concat(p,"-wrap")},f.createElement("span",st({},S,{onMouseDown:function(C){d(C,!0)},"aria-label":"Increase Value","aria-disabled":i,className:m}),n||f.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),f.createElement("span",st({},S,{onMouseDown:function(C){d(C,!1)},"aria-label":"Decrease Value","aria-disabled":o,className:v}),r||f.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function Bee(e){var t=typeof e=="number"?lP(e):X1(e).fullStr,n=t.includes(".");return n?X1(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const ttt=function(){var e=f.useRef(0),t=function(){Cr.cancel(e.current)};return f.useEffect(function(){return t},[]),function(n){t(),e.current=Cr(function(){n()})}};var ntt=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],rtt=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],Hee=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},zee=function(t){var n=sd(t);return n.isInvalidate()?null:n},itt=f.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,o=e.min,a=e.max,s=e.step,l=s===void 0?1:s,c=e.defaultValue,u=e.value,d=e.disabled,h=e.readOnly,p=e.upHandler,m=e.downHandler,v=e.keyboard,y=e.changeOnWheel,S=y===void 0?!1:y,b=e.controls,C=b===void 0?!0:b;e.classNames;var _=e.stringMode,T=e.parser,x=e.formatter,E=e.precision,k=e.decimalSeparator,M=e.onChange,P=e.onInput,D=e.onPressEnter,R=e.onStep,A=e.changeOnBlur,H=A===void 0?!0:A,F=e.domRef,z=tn(e,ntt),W="".concat(n,"-input"),q=f.useRef(null),Z=f.useState(!1),N=Le(Z,2),B=N[0],V=N[1],G=f.useRef(!1),ie=f.useRef(!1),ce=f.useRef(!1),fe=f.useState(function(){return sd(u??c)}),ee=Le(fe,2),ne=ee[0],ue=ee[1];function ye(St){u===void 0&&ue(St)}var me=f.useCallback(function(St,Ot){if(!Ot)return E>=0?E:Math.max(O1(St),O1(l))},[E,l]),pe=f.useCallback(function(St){var Ot=String(St);if(T)return T(Ot);var Bt=Ot;return k&&(Bt=Bt.replace(k,".")),Bt.replace(/[^\w.-]+/g,"")},[T,k]),he=f.useRef(""),_e=f.useCallback(function(St,Ot){if(x)return x(St,{userTyping:Ot,input:String(he.current)});var Bt=typeof St=="number"?lP(St):St;if(!Ot){var Dt=me(Bt,Ot);if(OW(Bt)&&(k||Dt>=0)){var an=k||".";Bt=D8(Bt,an,Dt)}}return Bt},[x,me,k]),le=f.useState(function(){var St=c??u;return ne.isInvalidate()&&["string","number"].includes(ln(St))?Number.isNaN(St)?"":St:_e(ne.toString(),!1)}),xe=Le(le,2),we=xe[0],De=xe[1];he.current=we;function Fe(St,Ot){De(_e(St.isInvalidate()?St.toString(!1):St.toString(!Ot),Ot))}var Ce=f.useMemo(function(){return zee(a)},[a,E]),Te=f.useMemo(function(){return zee(o)},[o,E]),ke=f.useMemo(function(){return!Ce||!ne||ne.isInvalidate()?!1:Ce.lessEquals(ne)},[Ce,ne]),Pe=f.useMemo(function(){return!Te||!ne||ne.isInvalidate()?!1:ne.lessEquals(Te)},[Te,ne]),Ne=Xet(q.current,B),We=Le(Ne,2),Q=We[0],K=We[1],J=function(Ot){return Ce&&!Ot.lessEquals(Ce)?Ce:Te&&!Te.lessEquals(Ot)?Te:null},be=function(Ot){return!J(Ot)},Oe=function(Ot,Bt){var Dt=Ot,an=be(Dt)||Dt.isEmpty();if(!Dt.isEmpty()&&!Bt&&(Dt=J(Dt)||Dt,an=!0),!h&&!d&&an){var Vt=Dt.toString(),Kt=me(Vt,Bt);return Kt>=0&&(Dt=sd(D8(Vt,".",Kt)),be(Dt)||(Dt=sd(D8(Vt,".",Kt,!0)))),Dt.equals(ne)||(ye(Dt),M==null||M(Dt.isEmpty()?null:Hee(_,Dt)),u===void 0&&Fe(Dt,Bt)),Dt}return ne},Se=ttt(),Ke=function St(Ot){if(Q(),he.current=Ot,De(Ot),!ie.current){var Bt=pe(Ot),Dt=sd(Bt);Dt.isNaN()||Oe(Dt,!0)}P==null||P(Ot),Se(function(){var an=Ot;T||(an=Ot.replace(/。/g,".")),an!==Ot&&St(an)})},tt=function(){ie.current=!0},se=function(){ie.current=!1,Ke(q.current.value)},ze=function(Ot){Ke(Ot.target.value)},Ye=function(Ot){var Bt;if(!(Ot&&ke||!Ot&&Pe)){G.current=!1;var Dt=sd(ce.current?Bee(l):l);Ot||(Dt=Dt.negate());var an=(ne||sd(0)).add(Dt.toString()),Vt=Oe(an,!1);R==null||R(Hee(_,Vt),{offset:ce.current?Bee(l):l,type:Ot?"up":"down"}),(Bt=q.current)===null||Bt===void 0||Bt.focus()}},Ue=function(Ot){var Bt=sd(pe(we)),Dt;Bt.isNaN()?Dt=Oe(ne,Ot):Dt=Oe(Bt,Ot),u!==void 0?Fe(ne,!1):Dt.isNaN()||Fe(Dt,!1)},Je=function(){G.current=!0},Ze=function(Ot){var Bt=Ot.key,Dt=Ot.shiftKey;G.current=!0,ce.current=Dt,Bt==="Enter"&&(ie.current||(G.current=!1),Ue(!1),D==null||D(Ot)),v!==!1&&!ie.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Bt)&&(Ye(Bt==="Up"||Bt==="ArrowUp"),Ot.preventDefault())},rt=function(){G.current=!1,ce.current=!1};f.useEffect(function(){if(S&&B){var St=function(Dt){Ye(Dt.deltaY<0),Dt.preventDefault()},Ot=q.current;if(Ot)return Ot.addEventListener("wheel",St,{passive:!1}),function(){return Ot.removeEventListener("wheel",St)}}});var qt=function(){H&&Ue(!1),V(!1),G.current=!1};return Y1(function(){ne.isInvalidate()||Fe(ne,!1)},[E,x]),Y1(function(){var St=sd(u);ue(St);var Ot=sd(pe(we));(!St.equals(Ot)||!G.current||x)&&Fe(St,G.current)},[u]),Y1(function(){x&&K()},[we]),f.createElement("div",{ref:F,className:Re(n,r,ae(ae(ae(ae(ae({},"".concat(n,"-focused"),B),"".concat(n,"-disabled"),d),"".concat(n,"-readonly"),h),"".concat(n,"-not-a-number"),ne.isNaN()),"".concat(n,"-out-of-range"),!ne.isInvalidate()&&!be(ne))),style:i,onFocus:function(){V(!0)},onBlur:qt,onKeyDown:Ze,onKeyUp:rt,onCompositionStart:tt,onCompositionEnd:se,onBeforeInput:Je},C&&f.createElement(ett,{prefixCls:n,upNode:p,downNode:m,upDisabled:ke,downDisabled:Pe,onStep:Ye}),f.createElement("div",{className:"".concat(W,"-wrap")},f.createElement("input",st({autoComplete:"off",role:"spinbutton","aria-valuemin":o,"aria-valuemax":a,"aria-valuenow":ne.isInvalidate()?null:ne.toString(),step:l},z,{ref:ga(q,t),className:W,value:we,onChange:ze,disabled:d,readOnly:h}))))}),ott=f.forwardRef(function(e,t){var n=e.disabled,r=e.style,i=e.prefixCls,o=i===void 0?"rc-input-number":i,a=e.value,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,d=e.className,h=e.classNames,p=tn(e,rtt),m=f.useRef(null),v=f.useRef(null),y=f.useRef(null),S=function(C){y.current&&PW(y.current,C)};return f.useImperativeHandle(t,function(){return Yet(y.current,{focus:S,nativeElement:m.current.nativeElement||v.current})}),f.createElement(MW,{className:d,triggerFocus:S,prefixCls:o,value:a,disabled:n,style:r,prefix:s,suffix:l,addonAfter:u,addonBefore:c,classNames:h,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:m},f.createElement(itt,st({prefixCls:o,disabled:n,ref:y,domRef:v,className:h==null?void 0:h.input},p)))});const att=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto",r=e.controlHeightSM-e.lineWidth*2;return Object.assign(Object.assign({},PE(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new xr(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0,handleVisibleWidth:n===!0?r:0})},Uee=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:i}=e;const o=t==="lg"?i:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:o,borderEndEndRadius:o},[`${n}-handler-up`]:{borderStartEndRadius:o},[`${n}-handler-down`]:{borderEndEndRadius:o}}}},stt=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:i,inputFontSizeSM:o,inputFontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,paddingBlockSM:d,paddingBlockLG:h,paddingInlineLG:p,colorTextDescription:m,motionDurationMid:v,handleHoverColor:y,handleOpacity:S,paddingInline:b,paddingBlock:C,handleBg:_,handleActiveBg:T,colorTextDisabled:x,borderRadiusSM:E,borderRadiusLG:k,controlWidth:M,handleBorderColor:P,filledHandleBg:D,lineHeightLG:R,calc:A}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},$r(e)),ME(e)),{display:"inline-block",width:M,margin:0,padding:0,borderRadius:i}),bW(e,{[`${t}-handler-wrap`]:{background:_,[`${t}-handler-down`]:{borderBlockStart:`${je(n)} ${r} ${P}`}}})),CW(e,{[`${t}-handler-wrap`]:{background:D,[`${t}-handler-down`]:{borderBlockStart:`${je(n)} ${r} ${P}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:_}}})),SW(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:R,borderRadius:k,[`input${t}-input`]:{height:A(s).sub(A(n).mul(2)).equal(),padding:`${je(h)} ${je(p)}`}},"&-sm":{padding:0,fontSize:o,borderRadius:E,[`input${t}-input`]:{height:A(l).sub(A(n).mul(2)).equal(),padding:`${je(d)} ${je(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},$r(e)),jye(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:k,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:E}}},Nye(e)),Lye(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},$r(e)),{width:"100%",padding:`${je(C)} ${je(b)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${v} linear`,appearance:"textfield",fontSize:"inherit"}),xW(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:S,height:"100%",borderStartStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${v}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
||
${t}-handler-up-inner,
|
||
${t}-handler-down-inner
|
||
`]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:m,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${je(n)} ${r} ${P}`,transition:`all ${v} linear`,"&:active":{background:T},"&:hover":{height:"60%",[`
|
||
${t}-handler-up-inner,
|
||
${t}-handler-down-inner
|
||
`]:{color:y}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},Kv()),{color:m,transition:`all ${v} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:i},[`${t}-handler-down`]:{borderEndEndRadius:i}},Uee(e,"lg")),Uee(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`
|
||
${t}-handler-up-disabled,
|
||
${t}-handler-down-disabled
|
||
`]:{cursor:"not-allowed"},[`
|
||
${t}-handler-up-disabled:hover &-handler-up-inner,
|
||
${t}-handler-down-disabled:hover &-handler-down-inner
|
||
`]:{color:x}})}]},ltt=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:i,controlWidth:o,borderRadiusLG:a,borderRadiusSM:s,paddingInlineLG:l,paddingInlineSM:c,paddingBlockLG:u,paddingBlockSM:d,motionDurationMid:h}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${je(n)} 0`}},ME(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:o,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:a,paddingInlineStart:l,[`input${t}-input`]:{padding:`${je(u)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${je(d)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:i},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:i,transition:`margin ${h}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(r).equal()}})}},ctt=Tr("InputNumber",e=>{const t=dr(e,OE(e));return[stt(t),ltt(t),Gv(t)]},att,{unitless:{handleOpacity:!0}});var utt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const wbe=f.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=f.useContext(hn),i=f.useRef(null);f.useImperativeHandle(t,()=>i.current);const{className:o,rootClassName:a,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:d,prefix:h,suffix:p,bordered:m,readOnly:v,status:y,controls:S,variant:b}=e,C=utt(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),_=n("input-number",c),T=_i(_),[x,E,k]=ctt(_,T),{compactSize:M,compactItemClassnames:P}=Qd(_,r);let D=f.createElement(Het,{className:`${_}-handler-up-inner`}),R=f.createElement(_E,{className:`${_}-handler-down-inner`});const A=typeof S=="boolean"?S:void 0;typeof S=="object"&&(D=typeof S.upIcon>"u"?D:f.createElement("span",{className:`${_}-handler-up-inner`},S.upIcon),R=typeof S.downIcon>"u"?R:f.createElement("span",{className:`${_}-handler-down-inner`},S.downIcon));const{hasFeedback:H,status:F,isFormItemInput:z,feedbackIcon:W}=f.useContext(ha),q=Op(F,y),Z=$o(ne=>{var ue;return(ue=s??M)!==null&&ue!==void 0?ue:ne}),N=f.useContext(Jo),B=l??N,[V,G]=Pp("inputNumber",b,m),ie=H&&f.createElement(f.Fragment,null,W),ce=Re({[`${_}-lg`]:Z==="large",[`${_}-sm`]:Z==="small",[`${_}-rtl`]:r==="rtl",[`${_}-in-form-item`]:z},E),fe=`${_}-group`,ee=f.createElement(ott,Object.assign({ref:i,disabled:B,className:Re(k,T,o,a,P),upHandler:D,downHandler:R,prefixCls:_,readOnly:v,controls:A,prefix:h,suffix:ie||p,addonBefore:u&&f.createElement(Hd,{form:!0,space:!0},u),addonAfter:d&&f.createElement(Hd,{form:!0,space:!0},d),classNames:{input:ce,variant:Re({[`${_}-${V}`]:G},zd(_,q,H)),affixWrapper:Re({[`${_}-affix-wrapper-sm`]:Z==="small",[`${_}-affix-wrapper-lg`]:Z==="large",[`${_}-affix-wrapper-rtl`]:r==="rtl",[`${_}-affix-wrapper-without-controls`]:S===!1},E),wrapper:Re({[`${fe}-rtl`]:r==="rtl"},E),groupWrapper:Re({[`${_}-group-wrapper-sm`]:Z==="small",[`${_}-group-wrapper-lg`]:Z==="large",[`${_}-group-wrapper-rtl`]:r==="rtl",[`${_}-group-wrapper-${V}`]:G},zd(`${_}-group-wrapper`,q,H),E)}},C));return x(ee)}),gp=wbe,dtt=e=>f.createElement(ar,{theme:{components:{InputNumber:{handleVisible:!0}}}},f.createElement(wbe,Object.assign({},e)));gp._InternalPanelDoNotUseOrYouWillBeFired=dtt;const Q1=e=>{let{prefixCls:t,min:n=0,max:r=100,value:i,onChange:o,className:a,formatter:s}=e;const l=`${t}-steppers`,[c,u]=f.useState(i);return f.useEffect(()=>{Number.isNaN(i)||u(i)},[i]),ge.createElement(gp,{className:Re(l,a),min:n,max:r,value:c,formatter:s,size:"small",onChange:d=>{i||u(d||0),o==null||o(d)}})},ftt=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-alpha-input`,[o,a]=f.useState(Vs(n||"#000"));f.useEffect(()=>{n&&a(n)},[n]);const s=l=>{const c=o.toHsb();c.a=(l||0)/100;const u=Vs(c);n||a(u),r==null||r(u)};return ge.createElement(Q1,{value:$U(o),prefixCls:t,formatter:l=>`${l}%`,className:i,onChange:s})},htt=e=>{const{getPrefixCls:t,direction:n}=f.useContext(hn),{prefixCls:r,className:i}=e,o=t("input-group",r),a=t("input"),[s,l]=_W(a),c=Re(o,{[`${o}-lg`]:e.size==="large",[`${o}-sm`]:e.size==="small",[`${o}-compact`]:e.compact,[`${o}-rtl`]:n==="rtl"},l,i),u=f.useContext(ha),d=f.useMemo(()=>Object.assign(Object.assign({},u),{isFormItemInput:!1}),[u]);return s(f.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},f.createElement(ha.Provider,{value:d},e.children)))},_be=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:ge.createElement(eh,null)}),t};function Ebe(e,t){const n=f.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var i,o,a,s;!((i=e.current)===null||i===void 0)&&i.input&&((o=e.current)===null||o===void 0?void 0:o.input.getAttribute("type"))==="password"&&(!((a=e.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return f.useEffect(()=>(t&&r(),()=>n.current.forEach(i=>{i&&clearTimeout(i)})),[]),r}function ptt(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var mtt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const cP=f.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:i=!0,status:o,size:a,disabled:s,onBlur:l,onFocus:c,suffix:u,allowClear:d,addonAfter:h,addonBefore:p,className:m,style:v,styles:y,rootClassName:S,onChange:b,classNames:C,variant:_}=e,T=mtt(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:x,direction:E,input:k}=ge.useContext(hn),M=x("input",r),P=f.useRef(null),D=_i(M),[R,A,H]=_W(M,D),{compactSize:F,compactItemClassnames:z}=Qd(M,E),W=$o(he=>{var _e;return(_e=a??F)!==null&&_e!==void 0?_e:he}),q=ge.useContext(Jo),Z=s??q,{status:N,hasFeedback:B,feedbackIcon:V}=f.useContext(ha),G=Op(N,o),ie=ptt(e)||!!B;f.useRef(ie);const ce=Ebe(P,!0),fe=he=>{ce(),l==null||l(he)},ee=he=>{ce(),c==null||c(he)},ne=he=>{ce(),b==null||b(he)},ue=(B||u)&&ge.createElement(ge.Fragment,null,u,B&&V),ye=_be(d??(k==null?void 0:k.allowClear)),[me,pe]=Pp("input",_,i);return R(ge.createElement(Get,Object.assign({ref:ga(t,P),prefixCls:M,autoComplete:k==null?void 0:k.autoComplete},T,{disabled:Z,onBlur:fe,onFocus:ee,style:Object.assign(Object.assign({},k==null?void 0:k.style),v),styles:Object.assign(Object.assign({},k==null?void 0:k.styles),y),suffix:ue,allowClear:ye,className:Re(m,S,H,D,z,k==null?void 0:k.className),onChange:ne,addonBefore:p&&ge.createElement(Hd,{form:!0,space:!0},p),addonAfter:h&&ge.createElement(Hd,{form:!0,space:!0},h),classNames:Object.assign(Object.assign(Object.assign({},C),k==null?void 0:k.classNames),{input:Re({[`${M}-sm`]:W==="small",[`${M}-lg`]:W==="large",[`${M}-rtl`]:E==="rtl"},C==null?void 0:C.input,(n=k==null?void 0:k.classNames)===null||n===void 0?void 0:n.input,A),variant:Re({[`${M}-${me}`]:pe},zd(M,G)),affixWrapper:Re({[`${M}-affix-wrapper-sm`]:W==="small",[`${M}-affix-wrapper-lg`]:W==="large",[`${M}-affix-wrapper-rtl`]:E==="rtl"},A),wrapper:Re({[`${M}-group-rtl`]:E==="rtl"},A),groupWrapper:Re({[`${M}-group-wrapper-sm`]:W==="small",[`${M}-group-wrapper-lg`]:W==="large",[`${M}-group-wrapper-rtl`]:E==="rtl",[`${M}-group-wrapper-${me}`]:pe},zd(`${M}-group-wrapper`,G,B),A)})})))}),gtt=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},vtt=Tr(["Input","OTP"],e=>{const t=dr(e,OE(e));return[gtt(t)]},PE);var ytt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const btt=f.forwardRef((e,t)=>{const{value:n,onChange:r,onActiveChange:i,index:o,mask:a}=e,s=ytt(e,["value","onChange","onActiveChange","index","mask"]),l=n&&typeof a=="string"?a:n,c=m=>{r(o,m.target.value)},u=f.useRef(null);f.useImperativeHandle(t,()=>u.current);const d=()=>{Cr(()=>{var m;const v=(m=u.current)===null||m===void 0?void 0:m.input;document.activeElement===v&&v&&v.select()})},h=m=>{const{key:v,ctrlKey:y,metaKey:S}=m;v==="ArrowLeft"?i(o-1):v==="ArrowRight"?i(o+1):v==="z"&&(y||S)&&m.preventDefault(),d()},p=m=>{m.key==="Backspace"&&!n&&i(o-1),d()};return f.createElement(cP,Object.assign({type:a===!0?"password":"text"},s,{ref:u,value:l,onInput:c,onFocus:d,onKeyDown:h,onKeyUp:p,onMouseDown:d,onMouseUp:d}))});var Stt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function QT(e){return(e||"").split("")}const Ctt=f.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:i,defaultValue:o,value:a,onChange:s,formatter:l,variant:c,disabled:u,status:d,autoFocus:h,mask:p,type:m,onInput:v,inputMode:y}=e,S=Stt(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:b,direction:C}=f.useContext(hn),_=b("otp",n),T=Bi(S,{aria:!0,data:!0,attr:!0}),x=_i(_),[E,k,M]=vtt(_,x),P=$o(ie=>i??ie),D=f.useContext(ha),R=Op(D.status,d),A=f.useMemo(()=>Object.assign(Object.assign({},D),{status:R,hasFeedback:!1,feedbackIcon:null}),[D,R]),H=f.useRef(null),F=f.useRef({});f.useImperativeHandle(t,()=>({focus:()=>{var ie;(ie=F.current[0])===null||ie===void 0||ie.focus()},blur:()=>{var ie;for(let ce=0;ce<r;ce+=1)(ie=F.current[ce])===null||ie===void 0||ie.blur()},nativeElement:H.current}));const z=ie=>l?l(ie):ie,[W,q]=f.useState(QT(z(o||"")));f.useEffect(()=>{a!==void 0&&q(QT(a))},[a]);const Z=ur(ie=>{q(ie),v&&v(ie),s&&ie.length===r&&ie.every(ce=>ce)&&ie.some((ce,fe)=>W[fe]!==ce)&&s(ie.join(""))}),N=ur((ie,ce)=>{let fe=pt(W);for(let ne=0;ne<ie;ne+=1)fe[ne]||(fe[ne]="");ce.length<=1?fe[ie]=ce:fe=fe.slice(0,ie).concat(QT(ce)),fe=fe.slice(0,r);for(let ne=fe.length-1;ne>=0&&!fe[ne];ne-=1)fe.pop();const ee=z(fe.map(ne=>ne||" ").join(""));return fe=QT(ee).map((ne,ue)=>ne===" "&&!fe[ue]?fe[ue]:ne),fe}),B=(ie,ce)=>{var fe;const ee=N(ie,ce),ne=Math.min(ie+ce.length,r-1);ne!==ie&&ee[ie]!==void 0&&((fe=F.current[ne])===null||fe===void 0||fe.focus()),Z(ee)},V=ie=>{var ce;(ce=F.current[ie])===null||ce===void 0||ce.focus()},G={variant:c,disabled:u,status:R,mask:p,type:m,inputMode:y};return E(f.createElement("div",Object.assign({},T,{ref:H,className:Re(_,{[`${_}-sm`]:P==="small",[`${_}-lg`]:P==="large",[`${_}-rtl`]:C==="rtl"},M,k)}),f.createElement(ha.Provider,{value:A},Array.from({length:r}).map((ie,ce)=>{const fe=`otp-${ce}`,ee=W[ce]||"";return f.createElement(btt,Object.assign({ref:ne=>{F.current[ce]=ne},key:fe,index:ce,size:P,htmlSize:1,className:`${_}-input`,onChange:B,value:ee,onActiveChange:V,autoFocus:ce===0&&h},G))}))))});var xtt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},wtt=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:xtt}))},Tbe=f.forwardRef(wtt),_tt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},Ett=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:_tt}))},iC=f.forwardRef(Ett),Ttt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const ktt=e=>e?f.createElement(iC,null):f.createElement(Tbe,null),Ott={click:"onClick",hover:"onMouseOver"},Ptt=f.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:i=!0,iconRender:o=ktt}=e,a=f.useContext(Jo),s=n??a,l=typeof i=="object"&&i.visible!==void 0,[c,u]=f.useState(()=>l?i.visible:!1),d=f.useRef(null);f.useEffect(()=>{l&&u(i.visible)},[l,i]);const h=Ebe(d),p=()=>{var P;if(s)return;c&&h();const D=!c;u(D),typeof i=="object"&&((P=i.onVisibleChange)===null||P===void 0||P.call(i,D))},m=P=>{const D=Ott[r]||"",R=o(c),A={[D]:p,className:`${P}-icon`,key:"passwordIcon",onMouseDown:H=>{H.preventDefault()},onMouseUp:H=>{H.preventDefault()}};return f.cloneElement(f.isValidElement(R)?R:f.createElement("span",null,R),A)},{className:v,prefixCls:y,inputPrefixCls:S,size:b}=e,C=Ttt(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:_}=f.useContext(hn),T=_("input",S),x=_("input-password",y),E=i&&m(x),k=Re(x,v,{[`${x}-${b}`]:!!b}),M=Object.assign(Object.assign({},Pr(C,["suffix","iconRender","visibilityToggle"])),{type:c?"text":"password",className:k,prefixCls:T,suffix:E});return b&&(M.size=b),f.createElement(cP,Object.assign({ref:ga(t,d)},M))});var Mtt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Itt=f.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:i,size:o,suffix:a,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:d,onChange:h,onCompositionStart:p,onCompositionEnd:m}=e,v=Mtt(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:y,direction:S}=f.useContext(hn),b=f.useRef(!1),C=y("input-search",n),_=y("input",r),{compactSize:T}=Qd(C,S),x=$o(B=>{var V;return(V=o??T)!==null&&V!==void 0?V:B}),E=f.useRef(null),k=B=>{B!=null&&B.target&&B.type==="click"&&d&&d(B.target.value,B,{source:"clear"}),h==null||h(B)},M=B=>{var V;document.activeElement===((V=E.current)===null||V===void 0?void 0:V.input)&&B.preventDefault()},P=B=>{var V,G;d&&d((G=(V=E.current)===null||V===void 0?void 0:V.input)===null||G===void 0?void 0:G.value,B,{source:"input"})},D=B=>{b.current||c||P(B)},R=typeof s=="boolean"?f.createElement(UO,null):null,A=`${C}-button`;let H;const F=s||{},z=F.type&&F.type.__ANT_BUTTON===!0;z||F.type==="button"?H=Io(F,Object.assign({onMouseDown:M,onClick:B=>{var V,G;(G=(V=F==null?void 0:F.props)===null||V===void 0?void 0:V.onClick)===null||G===void 0||G.call(V,B),P(B)},key:"enterButton"},z?{className:A,size:x}:{})):H=f.createElement(pr,{className:A,type:s?"primary":void 0,size:x,disabled:u,key:"enterButton",onMouseDown:M,onClick:P,loading:c,icon:R},s),l&&(H=[H,Io(l,{key:"addonAfter"})]);const W=Re(C,{[`${C}-rtl`]:S==="rtl",[`${C}-${x}`]:!!x,[`${C}-with-button`]:!!s},i),q=Object.assign(Object.assign({},v),{className:W,prefixCls:_,type:"search"}),Z=B=>{b.current=!0,p==null||p(B)},N=B=>{b.current=!1,m==null||m(B)};return f.createElement(cP,Object.assign({ref:ga(E,t),onPressEnter:D},q,{size:x,onCompositionStart:Z,onCompositionEnd:N,addonAfter:H,suffix:a,onChange:k,disabled:u}))});var $tt=`
|
||
min-height:0 !important;
|
||
max-height:none !important;
|
||
height:0 !important;
|
||
visibility:hidden !important;
|
||
overflow:hidden !important;
|
||
position:absolute !important;
|
||
z-index:-1000 !important;
|
||
top:0 !important;
|
||
right:0 !important;
|
||
pointer-events: none !important;
|
||
`,Rtt=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],jR={},sc;function Att(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&jR[n])return jR[n];var r=window.getComputedStyle(e),i=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),o=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=Rtt.map(function(c){return"".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:o,borderSize:a,boxSizing:i};return t&&n&&(jR[n]=l),l}function Ntt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;sc||(sc=document.createElement("textarea"),sc.setAttribute("tab-index","-1"),sc.setAttribute("aria-hidden","true"),sc.setAttribute("name","hiddenTextarea"),document.body.appendChild(sc)),e.getAttribute("wrap")?sc.setAttribute("wrap",e.getAttribute("wrap")):sc.removeAttribute("wrap");var i=Att(e,t),o=i.paddingSize,a=i.borderSize,s=i.boxSizing,l=i.sizingStyle;sc.setAttribute("style","".concat(l,";").concat($tt)),sc.value=e.value||e.placeholder||"";var c=void 0,u=void 0,d,h=sc.scrollHeight;if(s==="border-box"?h+=a:s==="content-box"&&(h-=o),n!==null||r!==null){sc.value=" ";var p=sc.scrollHeight-o;n!==null&&(c=p*n,s==="border-box"&&(c=c+o+a),h=Math.max(c,h)),r!==null&&(u=p*r,s==="border-box"&&(u=u+o+a),d=h>u?"":"hidden",h=Math.min(u,h))}var m={height:h,overflowY:d,resize:"none"};return c&&(m.minHeight=c),u&&(m.maxHeight=u),m}var Dtt=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],BR=0,HR=1,zR=2,Ltt=f.forwardRef(function(e,t){var n=e,r=n.prefixCls,i=n.defaultValue,o=n.value,a=n.autoSize,s=n.onResize,l=n.className,c=n.style,u=n.disabled,d=n.onChange;n.onInternalAutoSize;var h=tn(n,Dtt),p=er(i,{value:o,postState:function(ie){return ie??""}}),m=Le(p,2),v=m[0],y=m[1],S=function(ie){y(ie.target.value),d==null||d(ie)},b=f.useRef();f.useImperativeHandle(t,function(){return{textArea:b.current}});var C=f.useMemo(function(){return a&&ln(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),_=Le(C,2),T=_[0],x=_[1],E=!!a,k=function(){try{if(document.activeElement===b.current){var ie=b.current,ce=ie.selectionStart,fe=ie.selectionEnd,ee=ie.scrollTop;b.current.setSelectionRange(ce,fe),b.current.scrollTop=ee}}catch{}},M=f.useState(zR),P=Le(M,2),D=P[0],R=P[1],A=f.useState(),H=Le(A,2),F=H[0],z=H[1],W=function(){R(BR)};Er(function(){E&&W()},[o,T,x,E]),Er(function(){if(D===BR)R(HR);else if(D===HR){var G=Ntt(b.current,!1,T,x);R(zR),z(G)}else k()},[D]);var q=f.useRef(),Z=function(){Cr.cancel(q.current)},N=function(ie){D===zR&&(s==null||s(ie),a&&(Z(),q.current=Cr(function(){W()})))};f.useEffect(function(){return Z},[]);var B=E?F:null,V=X(X({},c),B);return(D===BR||D===HR)&&(V.overflowY="hidden",V.overflowX="hidden"),f.createElement(Wa,{onResize:N,disabled:!(a||s)},f.createElement("textarea",st({},h,{ref:b,style:V,className:Re(r,l,ae({},"".concat(r,"-disabled"),u)),disabled:u,value:v,onChange:S})))}),Ftt=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],jtt=ge.forwardRef(function(e,t){var n,r=e.defaultValue,i=e.value,o=e.onFocus,a=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,u=e.onCompositionStart,d=e.onCompositionEnd,h=e.suffix,p=e.prefixCls,m=p===void 0?"rc-textarea":p,v=e.showCount,y=e.count,S=e.className,b=e.style,C=e.disabled,_=e.hidden,T=e.classNames,x=e.styles,E=e.onResize,k=e.onClear,M=e.onPressEnter,P=e.readOnly,D=e.autoSize,R=e.onKeyDown,A=tn(e,Ftt),H=er(r,{value:i,defaultValue:r}),F=Le(H,2),z=F[0],W=F[1],q=z==null?"":String(z),Z=ge.useState(!1),N=Le(Z,2),B=N[0],V=N[1],G=ge.useRef(!1),ie=ge.useState(null),ce=Le(ie,2),fe=ce[0],ee=ce[1],ne=f.useRef(null),ue=f.useRef(null),ye=function(){var se;return(se=ue.current)===null||se===void 0?void 0:se.textArea},me=function(){ye().focus()};f.useImperativeHandle(t,function(){var tt;return{resizableTextArea:ue.current,focus:me,blur:function(){ye().blur()},nativeElement:((tt=ne.current)===null||tt===void 0?void 0:tt.nativeElement)||ye()}}),f.useEffect(function(){V(function(tt){return!C&&tt})},[C]);var pe=ge.useState(null),he=Le(pe,2),_e=he[0],le=he[1];ge.useEffect(function(){if(_e){var tt;(tt=ye()).setSelectionRange.apply(tt,pt(_e))}},[_e]);var xe=xbe(y,v),we=(n=xe.max)!==null&&n!==void 0?n:c,De=Number(we)>0,Fe=xe.strategy(q),Ce=!!we&&Fe>we,Te=function(se,ze){var Ye=ze;!G.current&&xe.exceedFormatter&&xe.max&&xe.strategy(ze)>xe.max&&(Ye=xe.exceedFormatter(ze,{max:xe.max}),ze!==Ye&&le([ye().selectionStart||0,ye().selectionEnd||0])),W(Ye),U9(se.currentTarget,se,s,Ye)},ke=function(se){G.current=!0,u==null||u(se)},Pe=function(se){G.current=!1,Te(se,se.currentTarget.value),d==null||d(se)},Ne=function(se){Te(se,se.target.value)},We=function(se){se.key==="Enter"&&M&&M(se),R==null||R(se)},Q=function(se){V(!0),o==null||o(se)},K=function(se){V(!1),a==null||a(se)},J=function(se){W(""),me(),U9(ye(),se,s)},be=h,Oe;xe.show&&(xe.showFormatter?Oe=xe.showFormatter({value:q,count:Fe,maxLength:we}):Oe="".concat(Fe).concat(De?" / ".concat(we):""),be=ge.createElement(ge.Fragment,null,be,ge.createElement("span",{className:Re("".concat(m,"-data-count"),T==null?void 0:T.count),style:x==null?void 0:x.count},Oe)));var Se=function(se){var ze;E==null||E(se),(ze=ye())!==null&&ze!==void 0&&ze.style.height&&ee(!0)},Ke=!D&&!v&&!l;return ge.createElement(MW,{ref:ne,value:q,allowClear:l,handleReset:J,suffix:be,prefixCls:m,classNames:X(X({},T),{},{affixWrapper:Re(T==null?void 0:T.affixWrapper,ae(ae({},"".concat(m,"-show-count"),v),"".concat(m,"-textarea-allow-clear"),l))}),disabled:C,focused:B,className:Re(S,Ce&&"".concat(m,"-out-of-range")),style:X(X({},b),fe&&!Ke?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Oe=="string"?Oe:void 0}},hidden:_,readOnly:P,onClear:k},ge.createElement(Ltt,st({},A,{autoSize:D,maxLength:c,onKeyDown:We,onChange:Ne,onFocus:Q,onBlur:K,onCompositionStart:ke,onCompositionEnd:Pe,className:Re(T==null?void 0:T.textarea),style:X(X({},x==null?void 0:x.textarea),{},{resize:b==null?void 0:b.resize}),disabled:C,prefixCls:m,onResize:Se,ref:ue,readOnly:P})))}),Btt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const kbe=f.forwardRef((e,t)=>{var n,r;const{prefixCls:i,bordered:o=!0,size:a,disabled:s,status:l,allowClear:c,classNames:u,rootClassName:d,className:h,style:p,styles:m,variant:v}=e,y=Btt(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:S,direction:b,textArea:C}=f.useContext(hn),_=$o(a),T=f.useContext(Jo),x=s??T,{status:E,hasFeedback:k,feedbackIcon:M}=f.useContext(ha),P=Op(E,l),D=f.useRef(null);f.useImperativeHandle(t,()=>{var N;return{resizableTextArea:(N=D.current)===null||N===void 0?void 0:N.resizableTextArea,focus:B=>{var V,G;PW((G=(V=D.current)===null||V===void 0?void 0:V.resizableTextArea)===null||G===void 0?void 0:G.textArea,B)},blur:()=>{var B;return(B=D.current)===null||B===void 0?void 0:B.blur()}}});const R=S("input",i),A=_i(R),[H,F,z]=_W(R,A),[W,q]=Pp("textArea",v,o),Z=_be(c??(C==null?void 0:C.allowClear));return H(f.createElement(jtt,Object.assign({autoComplete:C==null?void 0:C.autoComplete},y,{style:Object.assign(Object.assign({},C==null?void 0:C.style),p),styles:Object.assign(Object.assign({},C==null?void 0:C.styles),m),disabled:x,allowClear:Z,className:Re(z,A,h,d,C==null?void 0:C.className),classNames:Object.assign(Object.assign(Object.assign({},u),C==null?void 0:C.classNames),{textarea:Re({[`${R}-sm`]:_==="small",[`${R}-lg`]:_==="large"},F,u==null?void 0:u.textarea,(n=C==null?void 0:C.classNames)===null||n===void 0?void 0:n.textarea),variant:Re({[`${R}-${W}`]:q},zd(R,P)),affixWrapper:Re(`${R}-textarea-affix-wrapper`,{[`${R}-affix-wrapper-rtl`]:b==="rtl",[`${R}-affix-wrapper-sm`]:_==="small",[`${R}-affix-wrapper-lg`]:_==="large",[`${R}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},F)}),prefixCls:R,suffix:k&&f.createElement("span",{className:`${R}-textarea-suffix`},M),ref:D})))}),$i=cP;$i.Group=htt;$i.Search=Itt;$i.TextArea=kbe;$i.Password=Ptt;$i.OTP=Ctt;const Htt=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,ztt=e=>Htt.test(`#${e}`),Utt=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-hex-input`,[o,a]=f.useState(()=>n?b2(n.toHexString()):void 0);f.useEffect(()=>{n&&a(b2(n.toHexString()))},[n]);const s=l=>{const c=l.target.value;a(b2(c)),ztt(b2(c,!0))&&(r==null||r(Vs(c)))};return ge.createElement($i,{className:i,value:o,prefix:"#",onChange:s,size:"small"})},Wtt=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-hsb-input`,[o,a]=f.useState(Vs(n||"#000"));f.useEffect(()=>{n&&a(n)},[n]);const s=(l,c)=>{const u=o.toHsb();u[c]=c==="h"?l:(l||0)/100;const d=Vs(u);n||a(d),r==null||r(d)};return ge.createElement("div",{className:i},ge.createElement(Q1,{max:360,min:0,value:Number(o.toHsb().h),prefixCls:t,className:i,formatter:l=>I8(l||0).toString(),onChange:l=>s(Number(l),"h")}),ge.createElement(Q1,{max:100,min:0,value:Number(o.toHsb().s)*100,prefixCls:t,className:i,formatter:l=>`${I8(l||0)}%`,onChange:l=>s(Number(l),"s")}),ge.createElement(Q1,{max:100,min:0,value:Number(o.toHsb().b)*100,prefixCls:t,className:i,formatter:l=>`${I8(l||0)}%`,onChange:l=>s(Number(l),"b")}))},Vtt=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-rgb-input`,[o,a]=f.useState(Vs(n||"#000"));f.useEffect(()=>{n&&a(n)},[n]);const s=(l,c)=>{const u=o.toRgb();u[c]=l||0;const d=Vs(u);n||a(d),r==null||r(d)};return ge.createElement("div",{className:i},ge.createElement(Q1,{max:255,min:0,value:Number(o.toRgb().r),prefixCls:t,className:i,onChange:l=>s(Number(l),"r")}),ge.createElement(Q1,{max:255,min:0,value:Number(o.toRgb().g),prefixCls:t,className:i,onChange:l=>s(Number(l),"g")}),ge.createElement(Q1,{max:255,min:0,value:Number(o.toRgb().b),prefixCls:t,className:i,onChange:l=>s(Number(l),"b")}))},Ktt=[Ym.hex,Ym.hsb,Ym.rgb].map(e=>({value:e,label:e.toLocaleUpperCase()})),qtt=e=>{const{prefixCls:t,format:n,value:r,disabledAlpha:i,onFormatChange:o,onChange:a,disabledFormat:s}=e,[l,c]=er(Ym.hex,{value:n,onChange:o}),u=`${t}-input`,d=p=>{c(p)},h=f.useMemo(()=>{const p={value:r,prefixCls:t,onChange:a};switch(l){case Ym.hsb:return ge.createElement(Wtt,Object.assign({},p));case Ym.rgb:return ge.createElement(Vtt,Object.assign({},p));default:return ge.createElement(Utt,Object.assign({},p))}},[l,t,r,a]);return ge.createElement("div",{className:`${u}-container`},!s&&ge.createElement(ys,{value:l,variant:"borderless",getPopupContainer:p=>p,popupMatchSelectWidth:68,placement:"bottomRight",onChange:d,className:`${t}-format-select`,size:"small",options:Ktt}),ge.createElement("div",{className:u},h),!i&&ge.createElement(ftt,{prefixCls:t,value:r,onChange:a}))};function YF(e,t,n){return(e-t)/(n-t)}function IW(e,t,n,r){var i=YF(t,n,r),o={};switch(e){case"rtl":o.right="".concat(i*100,"%"),o.transform="translateX(50%)";break;case"btt":o.bottom="".concat(i*100,"%"),o.transform="translateY(50%)";break;case"ttb":o.top="".concat(i*100,"%"),o.transform="translateY(-50%)";break;default:o.left="".concat(i*100,"%"),o.transform="translateX(-50%)";break}return o}function h1(e,t){return Array.isArray(e)?e[t]:e}var Zv=f.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),Obe=f.createContext({}),Gtt=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],Wee=f.forwardRef(function(e,t){var n=e.prefixCls,r=e.value,i=e.valueIndex,o=e.onStartMove,a=e.onDelete,s=e.style,l=e.render,c=e.dragging,u=e.draggingDelete,d=e.onOffsetChange,h=e.onChangeComplete,p=e.onFocus,m=e.onMouseEnter,v=tn(e,Gtt),y=f.useContext(Zv),S=y.min,b=y.max,C=y.direction,_=y.disabled,T=y.keyboard,x=y.range,E=y.tabIndex,k=y.ariaLabelForHandle,M=y.ariaLabelledByForHandle,P=y.ariaRequired,D=y.ariaValueTextFormatterForHandle,R=y.styles,A=y.classNames,H="".concat(n,"-handle"),F=function(ce){_||o(ce,i)},z=function(ce){p==null||p(ce,i)},W=function(ce){m(ce,i)},q=function(ce){if(!_&&T){var fe=null;switch(ce.which||ce.keyCode){case Pt.LEFT:fe=C==="ltr"||C==="btt"?-1:1;break;case Pt.RIGHT:fe=C==="ltr"||C==="btt"?1:-1;break;case Pt.UP:fe=C!=="ttb"?1:-1;break;case Pt.DOWN:fe=C!=="ttb"?-1:1;break;case Pt.HOME:fe="min";break;case Pt.END:fe="max";break;case Pt.PAGE_UP:fe=2;break;case Pt.PAGE_DOWN:fe=-2;break;case Pt.BACKSPACE:case Pt.DELETE:a(i);break}fe!==null&&(ce.preventDefault(),d(fe,i))}},Z=function(ce){switch(ce.which||ce.keyCode){case Pt.LEFT:case Pt.RIGHT:case Pt.UP:case Pt.DOWN:case Pt.HOME:case Pt.END:case Pt.PAGE_UP:case Pt.PAGE_DOWN:h==null||h();break}},N=IW(C,r,S,b),B={};if(i!==null){var V;B={tabIndex:_?null:h1(E,i),role:"slider","aria-valuemin":S,"aria-valuemax":b,"aria-valuenow":r,"aria-disabled":_,"aria-label":h1(k,i),"aria-labelledby":h1(M,i),"aria-required":h1(P,i),"aria-valuetext":(V=h1(D,i))===null||V===void 0?void 0:V(r),"aria-orientation":C==="ltr"||C==="rtl"?"horizontal":"vertical",onMouseDown:F,onTouchStart:F,onFocus:z,onMouseEnter:W,onKeyDown:q,onKeyUp:Z}}var G=f.createElement("div",st({ref:t,className:Re(H,ae(ae(ae({},"".concat(H,"-").concat(i+1),i!==null&&x),"".concat(H,"-dragging"),c),"".concat(H,"-dragging-delete"),u),A.handle),style:X(X(X({},N),s),R.handle)},B,v));return l&&(G=l(G,{index:i,prefixCls:n,value:r,dragging:c,draggingDelete:u})),G}),Ytt=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],Xtt=f.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.onStartMove,o=e.onOffsetChange,a=e.values,s=e.handleRender,l=e.activeHandleRender,c=e.draggingIndex,u=e.draggingDelete,d=e.onFocus,h=tn(e,Ytt),p=f.useRef({}),m=f.useState(!1),v=Le(m,2),y=v[0],S=v[1],b=f.useState(-1),C=Le(b,2),_=C[0],T=C[1],x=function(D){T(D),S(!0)},E=function(D,R){x(R),d==null||d(D)},k=function(D,R){x(R)};f.useImperativeHandle(t,function(){return{focus:function(D){var R;(R=p.current[D])===null||R===void 0||R.focus()},hideHelp:function(){Ac.flushSync(function(){S(!1)})}}});var M=X({prefixCls:n,onStartMove:i,onOffsetChange:o,render:s,onFocus:E,onMouseEnter:k},h);return f.createElement(f.Fragment,null,a.map(function(P,D){var R=c===D;return f.createElement(Wee,st({ref:function(H){H?p.current[D]=H:delete p.current[D]},dragging:R,draggingDelete:R&&u,style:h1(r,D),key:D,value:P,valueIndex:D},M))}),l&&y&&f.createElement(Wee,st({key:"a11y"},M,{value:a[_],valueIndex:null,dragging:c!==-1,draggingDelete:u,render:l,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),Qtt=function(t){var n=t.prefixCls,r=t.style,i=t.children,o=t.value,a=t.onClick,s=f.useContext(Zv),l=s.min,c=s.max,u=s.direction,d=s.includedStart,h=s.includedEnd,p=s.included,m="".concat(n,"-text"),v=IW(u,o,l,c);return f.createElement("span",{className:Re(m,ae({},"".concat(m,"-active"),p&&d<=o&&o<=h)),style:X(X({},v),r),onMouseDown:function(S){S.stopPropagation()},onClick:function(){a(o)}},i)},Ztt=function(t){var n=t.prefixCls,r=t.marks,i=t.onClick,o="".concat(n,"-mark");return r.length?f.createElement("div",{className:o},r.map(function(a){var s=a.value,l=a.style,c=a.label;return f.createElement(Qtt,{key:s,prefixCls:o,style:l,value:s,onClick:i},c)})):null},Jtt=function(t){var n=t.prefixCls,r=t.value,i=t.style,o=t.activeStyle,a=f.useContext(Zv),s=a.min,l=a.max,c=a.direction,u=a.included,d=a.includedStart,h=a.includedEnd,p="".concat(n,"-dot"),m=u&&d<=r&&r<=h,v=X(X({},IW(c,r,s,l)),typeof i=="function"?i(r):i);return m&&(v=X(X({},v),typeof o=="function"?o(r):o)),f.createElement("span",{className:Re(p,ae({},"".concat(p,"-active"),m)),style:v})},ent=function(t){var n=t.prefixCls,r=t.marks,i=t.dots,o=t.style,a=t.activeStyle,s=f.useContext(Zv),l=s.min,c=s.max,u=s.step,d=f.useMemo(function(){var h=new Set;if(r.forEach(function(m){h.add(m.value)}),i&&u!==null)for(var p=l;p<=c;)h.add(p),p+=u;return Array.from(h)},[l,c,u,i,r]);return f.createElement("div",{className:"".concat(n,"-step")},d.map(function(h){return f.createElement(Jtt,{prefixCls:n,key:h,value:h,style:o,activeStyle:a})}))},Vee=function(t){var n=t.prefixCls,r=t.style,i=t.start,o=t.end,a=t.index,s=t.onStartMove,l=t.replaceCls,c=f.useContext(Zv),u=c.direction,d=c.min,h=c.max,p=c.disabled,m=c.range,v=c.classNames,y="".concat(n,"-track"),S=YF(i,d,h),b=YF(o,d,h),C=function(E){!p&&s&&s(E,-1)},_={};switch(u){case"rtl":_.right="".concat(S*100,"%"),_.width="".concat(b*100-S*100,"%");break;case"btt":_.bottom="".concat(S*100,"%"),_.height="".concat(b*100-S*100,"%");break;case"ttb":_.top="".concat(S*100,"%"),_.height="".concat(b*100-S*100,"%");break;default:_.left="".concat(S*100,"%"),_.width="".concat(b*100-S*100,"%")}var T=l||Re(y,ae(ae({},"".concat(y,"-").concat(a+1),a!==null&&m),"".concat(n,"-track-draggable"),s),v.track);return f.createElement("div",{className:T,style:X(X({},_),r),onMouseDown:C,onTouchStart:C})},tnt=function(t){var n=t.prefixCls,r=t.style,i=t.values,o=t.startPoint,a=t.onStartMove,s=f.useContext(Zv),l=s.included,c=s.range,u=s.min,d=s.styles,h=s.classNames,p=f.useMemo(function(){if(!c){if(i.length===0)return[];var v=o??u,y=i[0];return[{start:Math.min(v,y),end:Math.max(v,y)}]}for(var S=[],b=0;b<i.length-1;b+=1)S.push({start:i[b],end:i[b+1]});return S},[i,c,o,u]);if(!l)return null;var m=p!=null&&p.length&&(h.tracks||d.tracks)?f.createElement(Vee,{index:null,prefixCls:n,start:p[0].start,end:p[p.length-1].end,replaceCls:Re(h.tracks,"".concat(n,"-tracks")),style:d.tracks}):null;return f.createElement(f.Fragment,null,m,p.map(function(v,y){var S=v.start,b=v.end;return f.createElement(Vee,{index:y,prefixCls:n,style:X(X({},h1(r,y)),d.track),start:S,end:b,key:y,onStartMove:a})}))},nnt=130;function Kee(e){var t="targetTouches"in e?e.targetTouches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function rnt(e,t,n,r,i,o,a,s,l,c,u){var d=f.useState(null),h=Le(d,2),p=h[0],m=h[1],v=f.useState(-1),y=Le(v,2),S=y[0],b=y[1],C=f.useState(!1),_=Le(C,2),T=_[0],x=_[1],E=f.useState(n),k=Le(E,2),M=k[0],P=k[1],D=f.useState(n),R=Le(D,2),A=R[0],H=R[1],F=f.useRef(null),z=f.useRef(null),W=f.useRef(null),q=f.useContext(Obe),Z=q.onDragStart,N=q.onDragChange;Er(function(){S===-1&&P(n)},[n,S]),f.useEffect(function(){return function(){document.removeEventListener("mousemove",F.current),document.removeEventListener("mouseup",z.current),W.current&&(W.current.removeEventListener("touchmove",F.current),W.current.removeEventListener("touchend",z.current))}},[]);var B=function(fe,ee,ne){ee!==void 0&&m(ee),P(fe);var ue=fe;ne&&(ue=fe.filter(function(ye,me){return me!==S})),a(ue),N&&N({rawValues:fe,deleteIndex:ne?S:-1,draggingIndex:S,draggingValue:ee})},V=ur(function(ce,fe,ee){if(ce===-1){var ne=A[0],ue=A[A.length-1],ye=r-ne,me=i-ue,pe=fe*(i-r);pe=Math.max(pe,ye),pe=Math.min(pe,me);var he=o(ne+pe);pe=he-ne;var _e=A.map(function(De){return De+pe});B(_e)}else{var le=(i-r)*fe,xe=pt(M);xe[ce]=A[ce];var we=l(xe,le,ce,"dist");B(we.values,we.value,ee)}}),G=function(fe,ee,ne){fe.stopPropagation();var ue=ne||n,ye=ue[ee];b(ee),m(ye),H(ue),P(ue),x(!1);var me=Kee(fe),pe=me.pageX,he=me.pageY,_e=!1;Z&&Z({rawValues:ue,draggingIndex:ee,draggingValue:ye});var le=function(De){De.preventDefault();var Fe=Kee(De),Ce=Fe.pageX,Te=Fe.pageY,ke=Ce-pe,Pe=Te-he,Ne=e.current.getBoundingClientRect(),We=Ne.width,Q=Ne.height,K,J;switch(t){case"btt":K=-Pe/Q,J=ke;break;case"ttb":K=Pe/Q,J=ke;break;case"rtl":K=-ke/We,J=Pe;break;default:K=ke/We,J=Pe}_e=c?Math.abs(J)>nnt&&u<M.length:!1,x(_e),V(ee,K,_e)},xe=function we(De){De.preventDefault(),document.removeEventListener("mouseup",we),document.removeEventListener("mousemove",le),W.current&&(W.current.removeEventListener("touchmove",F.current),W.current.removeEventListener("touchend",z.current)),F.current=null,z.current=null,W.current=null,s(_e),b(-1),x(!1)};document.addEventListener("mouseup",xe),document.addEventListener("mousemove",le),fe.currentTarget.addEventListener("touchend",xe),fe.currentTarget.addEventListener("touchmove",le),F.current=le,z.current=xe,W.current=fe.currentTarget},ie=f.useMemo(function(){var ce=pt(n).sort(function(ye,me){return ye-me}),fe=pt(M).sort(function(ye,me){return ye-me}),ee={};fe.forEach(function(ye){ee[ye]=(ee[ye]||0)+1}),ce.forEach(function(ye){ee[ye]=(ee[ye]||0)-1});var ne=c?1:0,ue=Object.values(ee).reduce(function(ye,me){return ye+Math.abs(me)},0);return ue<=ne?M:n},[n,M,c]);return[S,p,T,ie,G]}function int(e,t,n,r,i,o){var a=f.useCallback(function(p){return Math.max(e,Math.min(t,p))},[e,t]),s=f.useCallback(function(p){if(n!==null){var m=e+Math.round((a(p)-e)/n)*n,v=function(C){return(String(C).split(".")[1]||"").length},y=Math.max(v(n),v(t),v(e)),S=Number(m.toFixed(y));return e<=S&&S<=t?S:null}return null},[n,e,t,a]),l=f.useCallback(function(p){var m=a(p),v=r.map(function(b){return b.value});n!==null&&v.push(s(p)),v.push(e,t);var y=v[0],S=t-e;return v.forEach(function(b){var C=Math.abs(m-b);C<=S&&(y=b,S=C)}),y},[e,t,r,n,a,s]),c=function p(m,v,y){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof v=="number"){var b,C=m[y],_=C+v,T=[];r.forEach(function(P){T.push(P.value)}),T.push(e,t),T.push(s(C));var x=v>0?1:-1;S==="unit"?T.push(s(C+x*n)):T.push(s(_)),T=T.filter(function(P){return P!==null}).filter(function(P){return v<0?P<=C:P>=C}),S==="unit"&&(T=T.filter(function(P){return P!==C}));var E=S==="unit"?C:_;b=T[0];var k=Math.abs(b-E);if(T.forEach(function(P){var D=Math.abs(P-E);D<k&&(b=P,k=D)}),b===void 0)return v<0?e:t;if(S==="dist")return b;if(Math.abs(v)>1){var M=pt(m);return M[y]=b,p(M,v-x,y,S)}return b}else{if(v==="min")return e;if(v==="max")return t}},u=function(m,v,y){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",b=m[y],C=c(m,v,y,S);return{value:C,changed:C!==b}},d=function(m){return o===null&&m===0||typeof o=="number"&&m<o},h=function(m,v,y){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",b=m.map(l),C=b[y],_=c(b,v,y,S);if(b[y]=_,i===!1){var T=o||0;y>0&&b[y-1]!==C&&(b[y]=Math.max(b[y],b[y-1]+T)),y<b.length-1&&b[y+1]!==C&&(b[y]=Math.min(b[y],b[y+1]-T))}else if(typeof o=="number"||o===null){for(var x=y+1;x<b.length;x+=1)for(var E=!0;d(b[x]-b[x-1])&&E;){var k=u(b,1,x);b[x]=k.value,E=k.changed}for(var M=y;M>0;M-=1)for(var P=!0;d(b[M]-b[M-1])&&P;){var D=u(b,-1,M-1);b[M-1]=D.value,P=D.changed}for(var R=b.length-1;R>0;R-=1)for(var A=!0;d(b[R]-b[R-1])&&A;){var H=u(b,-1,R-1);b[R-1]=H.value,A=H.changed}for(var F=0;F<b.length-1;F+=1)for(var z=!0;d(b[F+1]-b[F])&&z;){var W=u(b,1,F+1);b[F+1]=W.value,z=W.changed}}return{value:b[y],values:b}};return[l,h]}function ont(e){return f.useMemo(function(){if(e===!0||!e)return[!!e,!1,!1,0];var t=e.editable,n=e.draggableTrack,r=e.minCount,i=e.maxCount;return[!0,t,!t&&n,r||0,i]},[e])}var ant=f.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-slider":n,i=e.className,o=e.style,a=e.classNames,s=e.styles,l=e.id,c=e.disabled,u=c===void 0?!1:c,d=e.keyboard,h=d===void 0?!0:d,p=e.autoFocus,m=e.onFocus,v=e.onBlur,y=e.min,S=y===void 0?0:y,b=e.max,C=b===void 0?100:b,_=e.step,T=_===void 0?1:_,x=e.value,E=e.defaultValue,k=e.range,M=e.count,P=e.onChange,D=e.onBeforeChange,R=e.onAfterChange,A=e.onChangeComplete,H=e.allowCross,F=H===void 0?!0:H,z=e.pushable,W=z===void 0?!1:z,q=e.reverse,Z=e.vertical,N=e.included,B=N===void 0?!0:N,V=e.startPoint,G=e.trackStyle,ie=e.handleStyle,ce=e.railStyle,fe=e.dotStyle,ee=e.activeDotStyle,ne=e.marks,ue=e.dots,ye=e.handleRender,me=e.activeHandleRender,pe=e.track,he=e.tabIndex,_e=he===void 0?0:he,le=e.ariaLabelForHandle,xe=e.ariaLabelledByForHandle,we=e.ariaRequired,De=e.ariaValueTextFormatterForHandle,Fe=f.useRef(null),Ce=f.useRef(null),Te=f.useMemo(function(){return Z?q?"ttb":"btt":q?"rtl":"ltr"},[q,Z]),ke=ont(k),Pe=Le(ke,5),Ne=Pe[0],We=Pe[1],Q=Pe[2],K=Pe[3],J=Pe[4],be=f.useMemo(function(){return isFinite(S)?S:0},[S]),Oe=f.useMemo(function(){return isFinite(C)?C:100},[C]),Se=f.useMemo(function(){return T!==null&&T<=0?1:T},[T]),Ke=f.useMemo(function(){return typeof W=="boolean"?W?Se:!1:W>=0?W:!1},[W,Se]),tt=f.useMemo(function(){return Object.keys(ne||{}).map(function(Yt){var mt=ne[Yt],Mt={value:Number(Yt)};return mt&&ln(mt)==="object"&&!f.isValidElement(mt)&&("label"in mt||"style"in mt)?(Mt.style=mt.style,Mt.label=mt.label):Mt.label=mt,Mt}).filter(function(Yt){var mt=Yt.label;return mt||typeof mt=="number"}).sort(function(Yt,mt){return Yt.value-mt.value})},[ne]),se=int(be,Oe,Se,tt,F,Ke),ze=Le(se,2),Ye=ze[0],Ue=ze[1],Je=er(E,{value:x}),Ze=Le(Je,2),rt=Ze[0],qt=Ze[1],St=f.useMemo(function(){var Yt=rt==null?[]:Array.isArray(rt)?rt:[rt],mt=Le(Yt,1),Mt=mt[0],zt=Mt===void 0?be:Mt,Dn=rt===null?[]:[zt];if(Ne){if(Dn=pt(Yt),M||rt===void 0){var Qn=M>=0?M+1:2;for(Dn=Dn.slice(0,Qn);Dn.length<Qn;){var O;Dn.push((O=Dn[Dn.length-1])!==null&&O!==void 0?O:be)}}Dn.sort(function(j,oe){return j-oe})}return Dn.forEach(function(j,oe){Dn[oe]=Ye(j)}),Dn},[rt,Ne,be,M,Ye]),Ot=function(mt){return Ne?mt:mt[0]},Bt=ur(function(Yt){var mt=pt(Yt).sort(function(Mt,zt){return Mt-zt});P&&!ku(mt,St,!0)&&P(Ot(mt)),qt(mt)}),Dt=ur(function(Yt){Yt&&Fe.current.hideHelp();var mt=Ot(St);R==null||R(mt),fi(!R,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),A==null||A(mt)}),an=function(mt){if(!(u||!We||St.length<=K)){var Mt=pt(St);Mt.splice(mt,1),D==null||D(Ot(Mt)),Bt(Mt);var zt=Math.max(0,mt-1);Fe.current.hideHelp(),Fe.current.focus(zt)}},Vt=rnt(Ce,Te,St,be,Oe,Ye,Bt,Dt,Ue,We,K),Kt=Le(Vt,5),Qt=Kt[0],et=Kt[1],ot=Kt[2],Qe=Kt[3],ut=Kt[4],Nt=function(mt,Mt){if(!u){var zt=pt(St),Dn=0,Qn=0,O=Oe-be;St.forEach(function(ft,Jt){var on=Math.abs(mt-ft);on<=O&&(O=on,Dn=Jt),ft<mt&&(Qn=Jt)});var j=Dn;We&&O!==0&&(!J||St.length<J)?(zt.splice(Qn+1,0,mt),j=Qn+1):zt[Dn]=mt,Ne&&!St.length&&M===void 0&&zt.push(mt);var oe=Ot(zt);if(D==null||D(oe),Bt(zt),Mt){var Ae,Ge;(Ae=document.activeElement)===null||Ae===void 0||(Ge=Ae.blur)===null||Ge===void 0||Ge.call(Ae),Fe.current.focus(j),ut(Mt,j,zt)}else R==null||R(oe),fi(!R,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),A==null||A(oe)}},Lt=function(mt){mt.preventDefault();var Mt=Ce.current.getBoundingClientRect(),zt=Mt.width,Dn=Mt.height,Qn=Mt.left,O=Mt.top,j=Mt.bottom,oe=Mt.right,Ae=mt.clientX,Ge=mt.clientY,ft;switch(Te){case"btt":ft=(j-Ge)/Dn;break;case"ttb":ft=(Ge-O)/Dn;break;case"rtl":ft=(oe-Ae)/zt;break;default:ft=(Ae-Qn)/zt}var Jt=be+ft*(Oe-be);Nt(Ye(Jt),mt)},Zt=f.useState(null),Wt=Le(Zt,2),At=Wt[0],$t=Wt[1],Gt=function(mt,Mt){if(!u){var zt=Ue(St,mt,Mt);D==null||D(Ot(St)),Bt(zt.values),$t(zt.value)}};f.useEffect(function(){if(At!==null){var Yt=St.indexOf(At);Yt>=0&&Fe.current.focus(Yt)}$t(null)},[At]);var Ft=f.useMemo(function(){return Q&&Se===null?!1:Q},[Q,Se]),cn=ur(function(Yt,mt){ut(Yt,mt),D==null||D(Ot(St))}),_t=Qt!==-1;f.useEffect(function(){if(!_t){var Yt=St.lastIndexOf(et);Fe.current.focus(Yt)}},[_t]);var jt=f.useMemo(function(){return pt(Qe).sort(function(Yt,mt){return Yt-mt})},[Qe]),nn=f.useMemo(function(){return Ne?[jt[0],jt[jt.length-1]]:[be,jt[0]]},[jt,Ne,be]),Ht=Le(nn,2),Tt=Ht[0],gt=Ht[1];f.useImperativeHandle(t,function(){return{focus:function(){Fe.current.focus(0)},blur:function(){var mt,Mt=document,zt=Mt.activeElement;(mt=Ce.current)!==null&&mt!==void 0&&mt.contains(zt)&&(zt==null||zt.blur())}}}),f.useEffect(function(){p&&Fe.current.focus(0)},[]);var Ve=f.useMemo(function(){return{min:be,max:Oe,direction:Te,disabled:u,keyboard:h,step:Se,included:B,includedStart:Tt,includedEnd:gt,range:Ne,tabIndex:_e,ariaLabelForHandle:le,ariaLabelledByForHandle:xe,ariaRequired:we,ariaValueTextFormatterForHandle:De,styles:s||{},classNames:a||{}}},[be,Oe,Te,u,h,Se,B,Tt,gt,Ne,_e,le,xe,we,De,s,a]);return f.createElement(Zv.Provider,{value:Ve},f.createElement("div",{ref:Ce,className:Re(r,i,ae(ae(ae(ae({},"".concat(r,"-disabled"),u),"".concat(r,"-vertical"),Z),"".concat(r,"-horizontal"),!Z),"".concat(r,"-with-marks"),tt.length)),style:o,onMouseDown:Lt,id:l},f.createElement("div",{className:Re("".concat(r,"-rail"),a==null?void 0:a.rail),style:X(X({},ce),s==null?void 0:s.rail)}),pe!==!1&&f.createElement(tnt,{prefixCls:r,style:G,values:St,startPoint:V,onStartMove:Ft?cn:void 0}),f.createElement(ent,{prefixCls:r,marks:tt,dots:ue,style:fe,activeStyle:ee}),f.createElement(Xtt,{ref:Fe,prefixCls:r,style:ie,values:Qe,draggingIndex:Qt,draggingDelete:ot,onStartMove:cn,onOffsetChange:Gt,onFocus:m,onBlur:v,handleRender:ye,activeHandleRender:me,onChangeComplete:Dt,onDelete:We?an:void 0}),f.createElement(Ztt,{prefixCls:r,marks:tt,onClick:Nt})))});const Pbe=f.createContext({}),qee=f.forwardRef((e,t)=>{const{open:n,draggingDelete:r}=e,i=f.useRef(null),o=n&&!r,a=f.useRef(null);function s(){Cr.cancel(a.current),a.current=null}function l(){a.current=Cr(()=>{var c;(c=i.current)===null||c===void 0||c.forceAlign(),a.current=null})}return f.useEffect(()=>(o?l():s(),s),[o,e.title]),f.createElement(ea,Object.assign({ref:ga(i,t)},e,{open:o}))}),snt=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:i,marginFull:o,marginPart:a,colorFillContentHover:s,handleColorDisabled:l,calc:c,handleSize:u,handleSizeHover:d,handleActiveColor:h,handleActiveOutlineColor:p,handleLineWidth:m,handleLineWidthHover:v,motionDurationMid:y}=e;return{[t]:Object.assign(Object.assign({},$r(e)),{position:"relative",height:r,margin:`${je(a)} ${je(o)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${je(o)} ${je(a)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${y}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${y}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${je(m)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:u,height:u,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:c(m).mul(-1).equal(),insetBlockStart:c(m).mul(-1).equal(),width:c(u).add(c(m).mul(2)).equal(),height:c(u).add(c(m).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:u,height:u,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${je(m)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:`
|
||
inset-inline-start ${y},
|
||
inset-block-start ${y},
|
||
width ${y},
|
||
height ${y},
|
||
box-shadow ${y},
|
||
outline ${y}
|
||
`},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:c(d).sub(u).div(2).add(v).mul(-1).equal(),insetBlockStart:c(d).sub(u).div(2).add(v).mul(-1).equal(),width:c(d).add(c(v).mul(2)).equal(),height:c(d).add(c(v).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${je(v)} ${h}`,outline:`6px solid ${p}`,width:d,height:d,insetInlineStart:e.calc(u).sub(d).div(2).equal(),insetBlockStart:e.calc(u).sub(d).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:i,height:i,backgroundColor:e.colorBgElevated,border:`${je(m)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`
|
||
${t}-dot
|
||
`]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:u,height:u,boxShadow:`0 0 0 ${je(m)} ${l}`,insetInlineStart:0,insetBlockStart:0},[`
|
||
${t}-mark-text,
|
||
${t}-dot
|
||
`]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},Mbe=(e,t)=>{const{componentCls:n,railSize:r,handleSize:i,dotSize:o,marginFull:a,calc:s}=e,l=t?"paddingBlock":"paddingInline",c=t?"width":"height",u=t?"height":"width",d=t?"insetBlockStart":"insetInlineStart",h=t?"top":"insetInlineStart",p=s(r).mul(3).sub(i).div(2).equal(),m=s(i).sub(r).div(2).equal(),v=t?{borderWidth:`${je(m)} 0`,transform:`translateY(${je(s(m).mul(-1).equal())})`}:{borderWidth:`0 ${je(m)}`,transform:`translateX(${je(e.calc(m).mul(-1).equal())})`};return{[l]:r,[u]:s(r).mul(3).equal(),[`${n}-rail`]:{[c]:"100%",[u]:r},[`${n}-track,${n}-tracks`]:{[u]:r},[`${n}-track-draggable`]:Object.assign({},v),[`${n}-handle`]:{[d]:p},[`${n}-mark`]:{insetInlineStart:0,top:0,[h]:s(r).mul(3).add(t?0:a).equal(),[c]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[h]:r,[c]:"100%",[u]:r},[`${n}-dot`]:{position:"absolute",[d]:s(r).sub(o).div(2).equal()}}},lnt=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},Mbe(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},cnt=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},Mbe(e,!1)),{height:"100%"})}},unt=e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,i=e.lineWidth+1,o=e.lineWidth+1*1.5,a=e.colorPrimary,s=new xr(a).setA(.2).toRgbString();return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:i,handleLineWidthHover:o,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:a,handleActiveOutlineColor:s,handleColorDisabled:new xr(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},dnt=Tr("Slider",e=>{const t=dr(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[snt(t),lnt(t),cnt(t)]},unt);function UR(){const[e,t]=f.useState(!1),n=f.useRef(null),r=()=>{Cr.cancel(n.current)},i=o=>{r(),o?t(o):n.current=Cr(()=>{t(o)})};return f.useEffect(()=>r,[]),[e,i]}var fnt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function hnt(e,t){return e||e===null?e:t||t===null?t:n=>typeof n=="number"?n.toString():""}const Ibe=ge.forwardRef((e,t)=>{var n,r,i,o,a,s,l,c,u,d;const{prefixCls:h,range:p,className:m,rootClassName:v,style:y,disabled:S,tooltipPrefixCls:b,tipFormatter:C,tooltipVisible:_,getTooltipPopupContainer:T,tooltipPlacement:x,tooltip:E={},onChangeComplete:k,classNames:M,styles:P}=e,D=fnt(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:R}=e,{direction:A,slider:H,getPrefixCls:F,getPopupContainer:z}=ge.useContext(hn),W=ge.useContext(Jo),q=S??W,{handleRender:Z,direction:N}=ge.useContext(Pbe),V=(N||A)==="rtl",[G,ie]=UR(),[ce,fe]=UR(),ee=Object.assign({},E),{open:ne,placement:ue,getPopupContainer:ye,prefixCls:me,formatter:pe}=ee,he=ne??_,_e=(G||ce)&&he!==!1,le=hnt(pe,C),[xe,we]=UR(),De=Se=>{k==null||k(Se),we(!1)},Fe=(Se,Ke)=>Se||(Ke?V?"left":"right":"top"),Ce=F("slider",h),[Te,ke,Pe]=dnt(Ce),Ne=Re(m,H==null?void 0:H.className,(n=H==null?void 0:H.classNames)===null||n===void 0?void 0:n.root,M==null?void 0:M.root,v,{[`${Ce}-rtl`]:V,[`${Ce}-lock`]:xe},ke,Pe);V&&!D.vertical&&(D.reverse=!D.reverse),ge.useEffect(()=>{const Se=()=>{Cr(()=>{fe(!1)},1)};return document.addEventListener("mouseup",Se),()=>{document.removeEventListener("mouseup",Se)}},[]);const We=p&&!he,Q=Z||((Se,Ke)=>{const{index:tt}=Ke,se=Se.props;function ze(Ze,rt,qt){var St,Ot,Bt,Dt;qt&&((Ot=(St=D)[Ze])===null||Ot===void 0||Ot.call(St,rt)),(Dt=(Bt=se)[Ze])===null||Dt===void 0||Dt.call(Bt,rt)}const Ye=Object.assign(Object.assign({},se),{onMouseEnter:Ze=>{ie(!0),ze("onMouseEnter",Ze)},onMouseLeave:Ze=>{ie(!1),ze("onMouseLeave",Ze)},onMouseDown:Ze=>{fe(!0),we(!0),ze("onMouseDown",Ze)},onFocus:Ze=>{var rt;fe(!0),(rt=D.onFocus)===null||rt===void 0||rt.call(D,Ze),ze("onFocus",Ze,!0)},onBlur:Ze=>{var rt;fe(!1),(rt=D.onBlur)===null||rt===void 0||rt.call(D,Ze),ze("onBlur",Ze,!0)}}),Ue=ge.cloneElement(Se,Ye),Je=(!!he||_e)&&le!==null;return We?Ue:ge.createElement(qee,Object.assign({},ee,{prefixCls:F("tooltip",me??b),title:le?le(Ke.value):"",open:Je,placement:Fe(ue??x,R),key:tt,classNames:{root:`${Ce}-tooltip`},getPopupContainer:ye||T||z}),Ue)}),K=We?(Se,Ke)=>{const tt=ge.cloneElement(Se,{style:Object.assign(Object.assign({},Se.props.style),{visibility:"hidden"})});return ge.createElement(qee,Object.assign({},ee,{prefixCls:F("tooltip",me??b),title:le?le(Ke.value):"",open:le!==null&&_e,placement:Fe(ue??x,R),key:"tooltip",classNames:{root:`${Ce}-tooltip`},getPopupContainer:ye||T||z,draggingDelete:Ke.draggingDelete}),tt)}:void 0,J=Object.assign(Object.assign(Object.assign(Object.assign({},(r=H==null?void 0:H.styles)===null||r===void 0?void 0:r.root),H==null?void 0:H.style),P==null?void 0:P.root),y),be=Object.assign(Object.assign({},(i=H==null?void 0:H.styles)===null||i===void 0?void 0:i.tracks),P==null?void 0:P.tracks),Oe=Re((o=H==null?void 0:H.classNames)===null||o===void 0?void 0:o.tracks,M==null?void 0:M.tracks);return Te(ge.createElement(ant,Object.assign({},D,{classNames:Object.assign({handle:Re((a=H==null?void 0:H.classNames)===null||a===void 0?void 0:a.handle,M==null?void 0:M.handle),rail:Re((s=H==null?void 0:H.classNames)===null||s===void 0?void 0:s.rail,M==null?void 0:M.rail),track:Re((l=H==null?void 0:H.classNames)===null||l===void 0?void 0:l.track,M==null?void 0:M.track)},Oe?{tracks:Oe}:{}),styles:Object.assign({handle:Object.assign(Object.assign({},(c=H==null?void 0:H.styles)===null||c===void 0?void 0:c.handle),P==null?void 0:P.handle),rail:Object.assign(Object.assign({},(u=H==null?void 0:H.styles)===null||u===void 0?void 0:u.rail),P==null?void 0:P.rail),track:Object.assign(Object.assign({},(d=H==null?void 0:H.styles)===null||d===void 0?void 0:d.track),P==null?void 0:P.track)},Object.keys(be).length?{tracks:be}:{}),step:D.step,range:p,className:Ne,style:J,disabled:q,ref:t,prefixCls:Ce,handleRender:Q,activeHandleRender:K,onChangeComplete:De})))});var pnt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const $be=e=>{const{prefixCls:t,colors:n,type:r,color:i,range:o=!1,className:a,activeIndex:s,onActive:l,onDragStart:c,onDragChange:u,onKeyDelete:d}=e,h=pnt(e,["prefixCls","colors","type","color","range","className","activeIndex","onActive","onDragStart","onDragChange","onKeyDelete"]),p=Object.assign(Object.assign({},h),{track:!1}),m=f.useMemo(()=>`linear-gradient(90deg, ${n.map(x=>`${x.color} ${x.percent}%`).join(", ")})`,[n]),v=f.useMemo(()=>!i||!r?null:r==="alpha"?i.toRgbString():`hsl(${i.toHsb().h}, 100%, 50%)`,[i,r]),y=ur(c),S=ur(u),b=f.useMemo(()=>({onDragStart:y,onDragChange:S}),[]),C=ur((T,x)=>{const{onFocus:E,style:k,className:M,onKeyDown:P}=T.props,D=Object.assign({},k);return r==="gradient"&&(D.background=Y1e(n,x.value)),f.cloneElement(T,{onFocus:R=>{l==null||l(x.index),E==null||E(R)},style:D,className:Re(M,{[`${t}-slider-handle-active`]:s===x.index}),onKeyDown:R=>{(R.key==="Delete"||R.key==="Backspace")&&d&&d(x.index),P==null||P(R)}})}),_=f.useMemo(()=>({direction:"ltr",handleRender:C}),[]);return f.createElement(Pbe.Provider,{value:_},f.createElement(Obe.Provider,{value:b},f.createElement(Ibe,Object.assign({},p,{className:Re(a,`${t}-slider`),tooltip:{open:!1},range:{editable:o,minCount:2},styles:{rail:{background:m},handle:v?{background:v}:{}},classNames:{rail:`${t}-slider-rail`,handle:`${t}-slider-handle`}}))))},mnt=e=>{const{value:t,onChange:n,onChangeComplete:r}=e,i=a=>n(a[0]),o=a=>r(a[0]);return f.createElement($be,Object.assign({},e,{value:[t],onChange:i,onChangeComplete:o}))};function Gee(e){return pt(e).sort((t,n)=>t.percent-n.percent)}const gnt=e=>{const{prefixCls:t,mode:n,onChange:r,onChangeComplete:i,onActive:o,activeIndex:a,onGradientDragging:s,colors:l}=e,c=n==="gradient",u=f.useMemo(()=>l.map(S=>({percent:S.percent,color:S.color.toRgbString()})),[l]),d=f.useMemo(()=>u.map(S=>S.percent),[u]),h=f.useRef(u),p=S=>{let{rawValues:b,draggingIndex:C,draggingValue:_}=S;if(b.length>u.length){const T=Y1e(u,_),x=pt(u);x.splice(C,0,{percent:_,color:T}),h.current=x}else h.current=u;s(!0),r(new _c(Gee(h.current)),!0)},m=S=>{let{deleteIndex:b,draggingIndex:C,draggingValue:_}=S,T=pt(h.current);b!==-1?T.splice(b,1):(T[C]=Object.assign(Object.assign({},T[C]),{percent:_}),T=Gee(T)),r(new _c(T),!0)},v=S=>{const b=pt(u);b.splice(S,1);const C=new _c(b);r(C),i(C)},y=S=>{i(new _c(u)),a>=S.length&&o(S.length-1),s(!1)};return c?f.createElement($be,{min:0,max:100,prefixCls:t,className:`${t}-gradient-slider`,colors:u,color:null,value:d,range:!0,onChangeComplete:y,disabled:!1,type:"gradient",activeIndex:a,onActive:o,onDragStart:p,onDragChange:m,onKeyDelete:v}):null},vnt=f.memo(gnt);var ynt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const bnt={slider:mnt},Yee=()=>{const e=f.useContext(ybe),{mode:t,onModeChange:n,modeOptions:r,prefixCls:i,allowClear:o,value:a,disabledAlpha:s,onChange:l,onClear:c,onChangeComplete:u,activeIndex:d,gradientDragging:h}=e,p=ynt(e,["mode","onModeChange","modeOptions","prefixCls","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete","activeIndex","gradientDragging"]),m=ge.useMemo(()=>a.cleared?[{percent:0,color:new _c("")},{percent:100,color:new _c("")}]:a.getColors(),[a]),v=!a.isGradient(),[y,S]=ge.useState(a);Er(()=>{var H;v||S((H=m[d])===null||H===void 0?void 0:H.color)},[h,d]);const b=ge.useMemo(()=>{var H;return v?a:h?y:(H=m[d])===null||H===void 0?void 0:H.color},[a,d,v,y,h]),[C,_]=ge.useState(b),[T,x]=ge.useState(0),E=C!=null&&C.equals(b)?b:C;Er(()=>{_(b)},[T,b==null?void 0:b.toHexString()]);const k=(H,F)=>{let z=Vs(H);if(a.cleared){const q=z.toRgb();if(!q.r&&!q.g&&!q.b&&F){const{type:Z,value:N=0}=F;z=new _c({h:Z==="hue"?N:0,s:1,b:1,a:Z==="alpha"?N/100:1})}else z=$8(z)}if(t==="single")return z;const W=pt(m);return W[d]=Object.assign(Object.assign({},W[d]),{color:z}),new _c(W)},M=(H,F,z)=>{const W=k(H,z);_(W.isGradient()?W.getColors()[d].color:W),l(W,F)},P=(H,F)=>{u(k(H,F)),x(z=>z+1)},D=H=>{l(k(H))};let R=null;const A=r.length>1;return(o||A)&&(R=ge.createElement("div",{className:`${i}-operation`},A&&ge.createElement(vbe,{size:"small",options:r,value:t,onChange:n}),ge.createElement(Sbe,Object.assign({prefixCls:i,value:a,onChange:H=>{l(H),c==null||c()}},p)))),ge.createElement(ge.Fragment,null,R,ge.createElement(vnt,Object.assign({},e,{colors:m})),ge.createElement(Pze,{prefixCls:i,value:E==null?void 0:E.toHsb(),disabledAlpha:s,onChange:(H,F)=>{M(H,!0,F)},onChangeComplete:(H,F)=>{P(H,F)},components:bnt}),ge.createElement(qtt,Object.assign({value:b,onChange:D,prefixCls:i,disabledAlpha:s},p)))},Xee=()=>{const{prefixCls:e,value:t,presets:n,onChange:r}=f.useContext(bbe);return Array.isArray(n)?ge.createElement(wUe,{value:t,presets:n,prefixCls:e,onChange:r}):null},Snt=e=>{const{prefixCls:t,presets:n,panelRender:r,value:i,onChange:o,onClear:a,allowClear:s,disabledAlpha:l,mode:c,onModeChange:u,modeOptions:d,onChangeComplete:h,activeIndex:p,onActive:m,format:v,onFormatChange:y,gradientDragging:S,onGradientDragging:b,disabledFormat:C}=e,_=`${t}-inner`,T=ge.useMemo(()=>({prefixCls:t,value:i,onChange:o,onClear:a,allowClear:s,disabledAlpha:l,mode:c,onModeChange:u,modeOptions:d,onChangeComplete:h,activeIndex:p,onActive:m,format:v,onFormatChange:y,gradientDragging:S,onGradientDragging:b,disabledFormat:C}),[t,i,o,a,s,l,c,u,d,h,p,m,v,y,S,b,C]),x=ge.useMemo(()=>({prefixCls:t,value:i,presets:n,onChange:o}),[t,i,n,o]),E=ge.createElement("div",{className:`${_}-content`},ge.createElement(Yee,null),Array.isArray(n)&&ge.createElement(Eet,null),ge.createElement(Xee,null));return ge.createElement(ybe.Provider,{value:T},ge.createElement(bbe.Provider,{value:x},ge.createElement("div",{className:_},typeof r=="function"?r(E,{components:{Picker:Yee,Presets:Xee}}):E)))};var Cnt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const xnt=f.forwardRef((e,t)=>{const{color:n,prefixCls:r,open:i,disabled:o,format:a,className:s,showText:l,activeIndex:c}=e,u=Cnt(e,["color","prefixCls","open","disabled","format","className","showText","activeIndex"]),d=`${r}-trigger`,h=`${d}-text`,p=`${h}-cell`,[m]=ks("ColorPicker"),v=ge.useMemo(()=>{if(!l)return"";if(typeof l=="function")return l(n);if(n.cleared)return m.transparent;if(n.isGradient())return n.getColors().map((C,_)=>{const T=c!==-1&&c!==_;return ge.createElement("span",{key:_,className:Re(p,T&&`${p}-inactive`)},C.color.toRgbString()," ",C.percent,"%")});const S=n.toHexString().toUpperCase(),b=$U(n);switch(a){case"rgb":return n.toRgbString();case"hsb":return n.toHsbString();default:return b<100?`${S.slice(0,7)},${b}%`:S}},[n,a,l,c]),y=f.useMemo(()=>n.cleared?ge.createElement(Sbe,{prefixCls:r}):ge.createElement(OU,{prefixCls:r,color:n.toCssString()}),[n,r]);return ge.createElement("div",Object.assign({ref:t,className:Re(d,s,{[`${d}-active`]:i,[`${d}-disabled`]:o})},Bi(u)),y,l&&ge.createElement("div",{className:h},v))});function wnt(e,t,n){const[r]=ks("ColorPicker"),[i,o]=er(e,{value:t}),[a,s]=f.useState("single"),[l,c]=f.useMemo(()=>{const v=(Array.isArray(n)?n:[n]).filter(C=>C);v.length||v.push("single");const y=new Set(v),S=[],b=(C,_)=>{y.has(C)&&S.push({label:_,value:C})};return b("single",r.singleColor),b("gradient",r.gradientColor),[S,y]},[n]),[u,d]=f.useState(null),h=ur(v=>{d(v),o(v)}),p=f.useMemo(()=>{const v=Vs(i||"");return v.equals(u)?u:v},[i,u]),m=f.useMemo(()=>{var v;return c.has(a)?a:(v=l[0])===null||v===void 0?void 0:v.value},[c,a,l]);return f.useEffect(()=>{s(p.isGradient()?"gradient":"single")},[p]),[p,h,m,s,l]}const Rbe=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),Qee=(e,t)=>{const{componentCls:n,borderRadiusSM:r,colorPickerInsetShadow:i,lineWidth:o,colorFillSecondary:a}=e;return{[`${n}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:r,width:t,height:t,boxShadow:i,flex:"none"},Rbe("50%",e.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",boxShadow:`inset 0 0 0 ${je(o)} ${a}`,borderRadius:"inherit"}})}},_nt=e=>{const{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:i,colorPickerAlphaInputWidth:o,marginXXS:a,paddingXXS:s,controlHeightSM:l,marginXS:c,fontSizeIcon:u,paddingXS:d,colorTextPlaceholder:h,colorPickerInputNumberHandleWidth:p,lineWidth:m}=e;return{[`${t}-input-container`]:{display:"flex",[`${t}-steppers${n}-input-number`]:{fontSize:r,lineHeight:i,[`${n}-input-number-input`]:{paddingInlineStart:s,paddingInlineEnd:0},[`${n}-input-number-handler-wrap`]:{width:p}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${je(o)}`,marginInlineStart:a},[`${t}-format-select${n}-select`]:{marginInlineEnd:c,width:"auto","&-single":{[`${n}-select-selector`]:{padding:0,border:0},[`${n}-select-arrow`]:{insetInlineEnd:0},[`${n}-select-selection-item`]:{paddingInlineEnd:e.calc(u).add(a).equal(),fontSize:r,lineHeight:je(l)},[`${n}-select-item-option-content`]:{fontSize:r,lineHeight:i},[`${n}-select-dropdown`]:{[`${n}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:a,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:a,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${n}-input-affix-wrapper`]:{flex:1,padding:`0 ${je(d)}`,[`${n}-input`]:{fontSize:r,textTransform:"uppercase",lineHeight:je(e.calc(l).sub(e.calc(m).mul(2)).equal())},[`${n}-input-prefix`]:{color:h}}}}}},Ent=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:i,marginSM:o,colorBgElevated:a,colorFillSecondary:s,lineWidthBold:l,colorPickerHandlerSize:c}=e;return{userSelect:"none",[`${t}-select`]:{[`${t}-palette`]:{minHeight:e.calc(n).mul(4).equal(),overflow:"hidden",borderRadius:r},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:i,inset:0},marginBottom:o},[`${t}-handler`]:{width:c,height:c,border:`${je(l)} solid ${a}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${i}, 0 0 0 1px ${s}`}}},Tnt=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:i,colorPickerPresetColorSize:o,fontSizeSM:a,colorText:s,lineHeightSM:l,lineWidth:c,borderRadius:u,colorFill:d,colorWhite:h,marginXXS:p,paddingXS:m,fontHeightSM:v}=e;return{[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:v,color:r,paddingInlineEnd:i}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:p},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${je(m)} 0`},"&-label":{fontSize:a,color:s,lineHeight:l},"&-items":{display:"flex",flexWrap:"wrap",gap:e.calc(p).mul(1.5).equal(),[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:o,height:o,"&::before":{content:'""',pointerEvents:"none",width:e.calc(o).add(e.calc(c).mul(4)).equal(),height:e.calc(o).add(e.calc(c).mul(4)).equal(),position:"absolute",top:e.calc(c).mul(-2).equal(),insetInlineStart:e.calc(c).mul(-2).equal(),borderRadius:u,border:`${je(c)} solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:d},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.calc(o).div(13).mul(5).equal(),height:e.calc(o).div(13).mul(8).equal(),border:`${je(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:h,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:a,color:r}}}},knt=e=>{const{componentCls:t,colorPickerInsetShadow:n,colorBgElevated:r,colorFillSecondary:i,lineWidthBold:o,colorPickerHandlerSizeSM:a,colorPickerSliderHeight:s,marginSM:l,marginXS:c}=e,u=e.calc(a).sub(e.calc(o).mul(2).equal()).equal(),d=e.calc(a).add(e.calc(o).mul(2).equal()).equal(),h={"&:after":{transform:"scale(1)",boxShadow:`${n}, 0 0 0 1px ${e.colorPrimaryActive}`}};return{[`${t}-slider`]:[Rbe(je(s),e.colorFillSecondary),{margin:0,padding:0,height:s,borderRadius:e.calc(s).div(2).equal(),"&-rail":{height:s,borderRadius:e.calc(s).div(2).equal(),boxShadow:n},[`& ${t}-slider-handle`]:{width:u,height:u,top:0,borderRadius:"100%","&:before":{display:"block",position:"absolute",background:"transparent",left:{_skip_check_:!0,value:"50%"},top:"50%",transform:"translate(-50%, -50%)",width:d,height:d,borderRadius:"100%"},"&:after":{width:a,height:a,border:`${je(o)} solid ${r}`,boxShadow:`${n}, 0 0 0 1px ${i}`,outline:"none",insetInlineStart:e.calc(o).mul(-1).equal(),top:e.calc(o).mul(-1).equal(),background:"transparent",transition:"none"},"&:focus":h}}],[`${t}-slider-container`]:{display:"flex",gap:l,marginBottom:l,[`${t}-slider-group`]:{flex:1,flexDirection:"column",justifyContent:"space-between",display:"flex","&-disabled-alpha":{justifyContent:"center"}}},[`${t}-gradient-slider`]:{marginBottom:c,[`& ${t}-slider-handle`]:{"&:after":{transform:"scale(0.8)"},"&-active, &:focus":h}}}},XF=(e,t,n)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${je(e.controlOutlineWidth)} ${n}`,outline:0}),Ont=e=>{const{componentCls:t}=e;return{"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},Zee=(e,t,n)=>{const{componentCls:r,borderRadiusSM:i,lineWidth:o,colorSplit:a,colorBorder:s,red6:l}=e;return{[`${r}-clear`]:Object.assign(Object.assign({width:t,height:t,borderRadius:i,border:`${je(o)} solid ${a}`,position:"relative",overflow:"hidden",cursor:"inherit",transition:`all ${e.motionDurationFast}`},n),{"&::after":{content:'""',position:"absolute",insetInlineEnd:e.calc(o).mul(-1).equal(),top:e.calc(o).mul(-1).equal(),display:"block",width:40,height:2,transformOrigin:"calc(100% - 1px) 1px",transform:"rotate(-45deg)",backgroundColor:l},"&:hover":{borderColor:s}})}},Pnt=e=>{const{componentCls:t,colorError:n,colorWarning:r,colorErrorHover:i,colorWarningHover:o,colorErrorOutline:a,colorWarningOutline:s}=e;return{[`&${t}-status-error`]:{borderColor:n,"&:hover":{borderColor:i},[`&${t}-trigger-active`]:Object.assign({},XF(e,n,a))},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:o},[`&${t}-trigger-active`]:Object.assign({},XF(e,r,s))}}},Mnt=e=>{const{componentCls:t,controlHeightLG:n,controlHeightSM:r,controlHeight:i,controlHeightXS:o,borderRadius:a,borderRadiusSM:s,borderRadiusXS:l,borderRadiusLG:c,fontSizeLG:u}=e;return{[`&${t}-lg`]:{minWidth:n,minHeight:n,borderRadius:c,[`${t}-color-block, ${t}-clear`]:{width:i,height:i,borderRadius:a},[`${t}-trigger-text`]:{fontSize:u}},[`&${t}-sm`]:{minWidth:r,minHeight:r,borderRadius:s,[`${t}-color-block, ${t}-clear`]:{width:o,height:o,borderRadius:l},[`${t}-trigger-text`]:{lineHeight:je(o)}}}},Int=e=>{const{antCls:t,componentCls:n,colorPickerWidth:r,colorPrimary:i,motionDurationMid:o,colorBgElevated:a,colorTextDisabled:s,colorText:l,colorBgContainerDisabled:c,borderRadius:u,marginXS:d,marginSM:h,controlHeight:p,controlHeightSM:m,colorBgTextActive:v,colorPickerPresetColorSize:y,colorPickerPreviewSize:S,lineWidth:b,colorBorder:C,paddingXXS:_,fontSize:T,colorPrimaryHover:x,controlOutline:E}=e;return[{[n]:Object.assign({[`${n}-inner`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"&-content":{display:"flex",flexDirection:"column",width:r,[`& > ${t}-divider`]:{margin:`${je(h)} 0 ${je(d)}`}},[`${n}-panel`]:Object.assign({},Ent(e))},knt(e)),Qee(e,S)),_nt(e)),Tnt(e)),Zee(e,y,{marginInlineStart:"auto"})),{[`${n}-operation`]:{display:"flex",justifyContent:"space-between",marginBottom:d}}),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:p,minHeight:p,borderRadius:u,border:`${je(b)} solid ${C}`,cursor:"pointer",display:"inline-flex",alignItems:"flex-start",justifyContent:"center",transition:`all ${o}`,background:a,padding:e.calc(_).sub(b).equal(),[`${n}-trigger-text`]:{marginInlineStart:d,marginInlineEnd:e.calc(d).sub(e.calc(_).sub(b)).equal(),fontSize:T,color:l,alignSelf:"center","&-cell":{"&:not(:last-child):after":{content:'", "'},"&-inactive":{color:s}}},"&:hover":{borderColor:x},[`&${n}-trigger-active`]:Object.assign({},XF(e,i,E)),"&-disabled":{color:s,background:c,cursor:"not-allowed","&:hover":{borderColor:v},[`${n}-trigger-text`]:{color:s}}},Zee(e,m)),Qee(e,m)),Pnt(e)),Mnt(e))},Ont(e))},Gv(e,{focusElCls:`${n}-trigger-active`})]},$nt=Tr("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=8,i=dr(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:24,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:r,colorPickerPreviewSize:e.calc(r).mul(2).add(n).equal()});return[Int(i)]});var Rnt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const $W=e=>{const{mode:t,value:n,defaultValue:r,format:i,defaultFormat:o,allowClear:a=!1,presets:s,children:l,trigger:c="click",open:u,disabled:d,placement:h="bottomLeft",arrow:p=!0,panelRender:m,showText:v,style:y,className:S,size:b,rootClassName:C,prefixCls:_,styles:T,disabledAlpha:x=!1,onFormatChange:E,onChange:k,onClear:M,onOpenChange:P,onChangeComplete:D,getPopupContainer:R,autoAdjustOverflow:A=!0,destroyTooltipOnHide:H,disabledFormat:F}=e,z=Rnt(e,["mode","value","defaultValue","format","defaultFormat","allowClear","presets","children","trigger","open","disabled","placement","arrow","panelRender","showText","style","className","size","rootClassName","prefixCls","styles","disabledAlpha","onFormatChange","onChange","onClear","onOpenChange","onChangeComplete","getPopupContainer","autoAdjustOverflow","destroyTooltipOnHide","disabledFormat"]),{getPrefixCls:W,direction:q,colorPicker:Z}=f.useContext(hn),N=f.useContext(Jo),B=d??N,[V,G]=er(!1,{value:u,postState:Ye=>!B&&Ye,onChange:P}),[ie,ce]=er(i,{value:i,defaultValue:o,onChange:E}),fe=W("color-picker",_),[ee,ne,ue,ye,me]=wnt(r,n,t),pe=f.useMemo(()=>$U(ee)<100,[ee]),[he,_e]=ge.useState(null),le=Ye=>{if(D){let Ue=Vs(Ye);x&&pe&&(Ue=$8(Ye)),D(Ue)}},xe=(Ye,Ue)=>{let Je=Vs(Ye);x&&pe&&(Je=$8(Je)),ne(Je),_e(null),k&&k(Je,Je.toCssString()),Ue||le(Je)},[we,De]=ge.useState(0),[Fe,Ce]=ge.useState(!1),Te=Ye=>{if(ye(Ye),Ye==="single"&&ee.isGradient())De(0),xe(new _c(ee.getColors()[0].color)),_e(ee);else if(Ye==="gradient"&&!ee.isGradient()){const Ue=pe?$8(ee):ee;xe(new _c(he||[{percent:0,color:Ue},{percent:100,color:Ue}]))}},{status:ke}=ge.useContext(ha),{compactSize:Pe,compactItemClassnames:Ne}=Qd(fe,q),We=$o(Ye=>{var Ue;return(Ue=b??Pe)!==null&&Ue!==void 0?Ue:Ye}),Q=_i(fe),[K,J,be]=$nt(fe,Q),Oe={[`${fe}-rtl`]:q},Se=Re(C,be,Q,Oe),Ke=Re(zd(fe,ke),{[`${fe}-sm`]:We==="small",[`${fe}-lg`]:We==="large"},Ne,Z==null?void 0:Z.className,Se,S,J),tt=Re(fe,Se),se={open:V,trigger:c,placement:h,arrow:p,rootClassName:C,getPopupContainer:R,autoAdjustOverflow:A,destroyTooltipOnHide:H},ze=Object.assign(Object.assign({},Z==null?void 0:Z.style),y);return K(ge.createElement(Ou,Object.assign({style:T==null?void 0:T.popup,styles:{body:T==null?void 0:T.popupOverlayInner},onOpenChange:Ye=>{(!Ye||!B)&&G(Ye)},content:ge.createElement(Hd,{form:!0},ge.createElement(Snt,{mode:ue,onModeChange:Te,modeOptions:me,prefixCls:fe,value:ee,allowClear:a,disabled:B,disabledAlpha:x,presets:s,panelRender:m,format:ie,onFormatChange:ce,onChange:xe,onChangeComplete:le,onClear:M,activeIndex:we,onActive:De,gradientDragging:Fe,onGradientDragging:Ce,disabledFormat:F})),classNames:{root:tt}},se),l||ge.createElement(xnt,Object.assign({activeIndex:V?we:-1,open:V,className:Ke,style:ze,prefixCls:fe,disabled:B,showText:v,format:ie},z,{color:ee}))))},Ant=vg($W,void 0,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}),"color-picker",e=>e);$W._InternalPanelDoNotUseOrYouWillBeFired=Ant;var Nnt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},Dnt=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:Nnt}))},Abe=f.forwardRef(Dnt),Lnt={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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},Fnt=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:Lnt}))},Nbe=f.forwardRef(Fnt),jnt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},Bnt=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:jnt}))},Hnt=f.forwardRef(Bnt);function znt(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function Unt(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function Dbe(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:i}=WO(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[f.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),i]}const[Wnt,Vnt]=["week","WeekPicker"],[Knt,qnt]=["month","MonthPicker"],[Gnt,Ynt]=["year","YearPicker"],[Xnt,Qnt]=["quarter","QuarterPicker"],[Lbe,Jee]=["time","TimePicker"],Znt=e=>f.createElement(pr,Object.assign({size:"small",type:"primary"},e));function Fbe(e){return f.useMemo(()=>Object.assign({button:Znt},e),[e])}var Jnt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const ert=e=>f.forwardRef((n,r)=>{var i;const{prefixCls:o,getPopupContainer:a,components:s,className:l,style:c,placement:u,size:d,disabled:h,bordered:p=!0,placeholder:m,popupClassName:v,dropdownClassName:y,status:S,rootClassName:b,variant:C,picker:_}=n,T=Jnt(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),x=f.useRef(null),{getPrefixCls:E,direction:k,getPopupContainer:M,rangePicker:P}=f.useContext(hn),D=E("picker",o),{compactSize:R,compactItemClassnames:A}=Qd(D,k),H=E(),[F,z]=Pp("rangePicker",C,p),W=_i(D),[q,Z,N]=Bye(D,W),[B]=Dbe(n,D),V=Fbe(s),G=$o(_e=>{var le;return(le=d??R)!==null&&le!==void 0?le:_e}),ie=f.useContext(Jo),ce=h??ie,fe=f.useContext(ha),{hasFeedback:ee,status:ne,feedbackIcon:ue}=fe,ye=f.createElement(f.Fragment,null,_===Lbe?f.createElement(Nbe,null):f.createElement(Abe,null),ee&&ue);f.useImperativeHandle(r,()=>x.current);const[me]=ks("Calendar",c9),pe=Object.assign(Object.assign({},me),n.locale),[he]=Du("DatePicker",(i=n.popupStyle)===null||i===void 0?void 0:i.zIndex);return q(f.createElement(Hd,{space:!0},f.createElement(KQe,Object.assign({separator:f.createElement("span",{"aria-label":"to",className:`${D}-separator`},f.createElement(Hnt,null)),disabled:ce,ref:x,placement:u,placeholder:Unt(pe,_,m),suffixIcon:ye,prevIcon:f.createElement("span",{className:`${D}-prev-icon`}),nextIcon:f.createElement("span",{className:`${D}-next-icon`}),superPrevIcon:f.createElement("span",{className:`${D}-super-prev-icon`}),superNextIcon:f.createElement("span",{className:`${D}-super-next-icon`}),transitionName:`${H}-slide-up`,picker:_},T,{className:Re({[`${D}-${G}`]:G,[`${D}-${F}`]:z},zd(D,Op(ne,S),ee),Z,A,l,P==null?void 0:P.className,N,W,b),style:Object.assign(Object.assign({},P==null?void 0:P.style),c),locale:pe.lang,prefixCls:D,getPopupContainer:a||M,generateConfig:e,components:V,direction:k,classNames:{popup:Re(Z,v||y,N,W,b)},styles:{popup:Object.assign(Object.assign({},n.popupStyle),{zIndex:he})},allowClear:B}))))});var trt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const nrt=e=>{const t=(l,c)=>{const u=c===Jee?"timePicker":"datePicker";return f.forwardRef((h,p)=>{var m;const{prefixCls:v,getPopupContainer:y,components:S,style:b,className:C,rootClassName:_,size:T,bordered:x,placement:E,placeholder:k,popupClassName:M,dropdownClassName:P,disabled:D,status:R,variant:A,onCalendarChange:H}=h,F=trt(h,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:z,direction:W,getPopupContainer:q,[u]:Z}=f.useContext(hn),N=z("picker",v),{compactSize:B,compactItemClassnames:V}=Qd(N,W),G=f.useRef(null),[ie,ce]=Pp("datePicker",A,x),fe=_i(N),[ee,ne,ue]=Bye(N,fe);f.useImperativeHandle(p,()=>G.current);const ye={showToday:!0},me=l||h.picker,pe=z(),{onSelect:he,multiple:_e}=F,le=he&&l==="time"&&!_e,xe=(Se,Ke,tt)=>{H==null||H(Se,Ke,tt),le&&he(Se)},[we,De]=Dbe(h,N),Fe=Fbe(S),Ce=$o(Se=>{var Ke;return(Ke=T??B)!==null&&Ke!==void 0?Ke:Se}),Te=f.useContext(Jo),ke=D??Te,Pe=f.useContext(ha),{hasFeedback:Ne,status:We,feedbackIcon:Q}=Pe,K=f.createElement(f.Fragment,null,me==="time"?f.createElement(Nbe,null):f.createElement(Abe,null),Ne&&Q),[J]=ks("DatePicker",c9),be=Object.assign(Object.assign({},J),h.locale),[Oe]=Du("DatePicker",(m=h.popupStyle)===null||m===void 0?void 0:m.zIndex);return ee(f.createElement(Hd,{space:!0},f.createElement(ZQe,Object.assign({ref:G,placeholder:znt(be,me,k),suffixIcon:K,placement:E,prevIcon:f.createElement("span",{className:`${N}-prev-icon`}),nextIcon:f.createElement("span",{className:`${N}-next-icon`}),superPrevIcon:f.createElement("span",{className:`${N}-super-prev-icon`}),superNextIcon:f.createElement("span",{className:`${N}-super-next-icon`}),transitionName:`${pe}-slide-up`,picker:l,onCalendarChange:xe},ye,F,{locale:be.lang,className:Re({[`${N}-${Ce}`]:Ce,[`${N}-${ie}`]:ce},zd(N,Op(We,R),Ne),ne,V,Z==null?void 0:Z.className,C,ue,fe,_),style:Object.assign(Object.assign({},Z==null?void 0:Z.style),b),prefixCls:N,getPopupContainer:y||q,generateConfig:e,components:Fe,direction:W,disabled:ke,classNames:{popup:Re(ne,ue,fe,_,M||P)},styles:{popup:Object.assign(Object.assign({},h.popupStyle),{zIndex:Oe})},allowClear:we,removeIcon:De}))))})},n=t(),r=t(Wnt,Vnt),i=t(Knt,qnt),o=t(Gnt,Ynt),a=t(Xnt,Qnt),s=t(Lbe,Jee);return{DatePicker:n,WeekPicker:r,MonthPicker:i,YearPicker:o,TimePicker:s,QuarterPicker:a}},jbe=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:i,TimePicker:o,QuarterPicker:a}=nrt(e),s=ert(e),l=t;return l.WeekPicker=n,l.MonthPicker=r,l.YearPicker=i,l.RangePicker=s,l.TimePicker=o,l.QuarterPicker=a,l},Pu=jbe(eQe),rrt=vg(Pu,"popupAlign",void 0,"picker");Pu._InternalPanelDoNotUseOrYouWillBeFired=rrt;const irt=vg(Pu.RangePicker,"popupAlign",void 0,"picker");Pu._InternalRangePanelDoNotUseOrYouWillBeFired=irt;Pu.generatePicker=jbe;var ete=f.createContext(null),Bbe=f.createContext({}),ort=["prefixCls","className","containerRef"],art=function(t){var n=t.prefixCls,r=t.className,i=t.containerRef,o=tn(t,ort),a=f.useContext(Bbe),s=a.panel,l=Xd(s,i);return f.createElement("div",st({className:Re("".concat(n,"-content"),r),role:"dialog",ref:l},Bi(t,{aria:!0}),{"aria-modal":"true"},o))};function tte(e){return typeof e=="string"&&String(Number(e))===e?(fi(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var nte={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function srt(e,t){var n,r,i,o=e.prefixCls,a=e.open,s=e.placement,l=e.inline,c=e.push,u=e.forceRender,d=e.autoFocus,h=e.keyboard,p=e.classNames,m=e.rootClassName,v=e.rootStyle,y=e.zIndex,S=e.className,b=e.id,C=e.style,_=e.motion,T=e.width,x=e.height,E=e.children,k=e.mask,M=e.maskClosable,P=e.maskMotion,D=e.maskClassName,R=e.maskStyle,A=e.afterOpenChange,H=e.onClose,F=e.onMouseEnter,z=e.onMouseOver,W=e.onMouseLeave,q=e.onClick,Z=e.onKeyDown,N=e.onKeyUp,B=e.styles,V=e.drawerRender,G=f.useRef(),ie=f.useRef(),ce=f.useRef();f.useImperativeHandle(t,function(){return G.current});var fe=function(ke){var Pe=ke.keyCode,Ne=ke.shiftKey;switch(Pe){case Pt.TAB:{if(Pe===Pt.TAB){if(!Ne&&document.activeElement===ce.current){var We;(We=ie.current)===null||We===void 0||We.focus({preventScroll:!0})}else if(Ne&&document.activeElement===ie.current){var Q;(Q=ce.current)===null||Q===void 0||Q.focus({preventScroll:!0})}}break}case Pt.ESC:{H&&h&&(ke.stopPropagation(),H(ke));break}}};f.useEffect(function(){if(a&&d){var Te;(Te=G.current)===null||Te===void 0||Te.focus({preventScroll:!0})}},[a]);var ee=f.useState(!1),ne=Le(ee,2),ue=ne[0],ye=ne[1],me=f.useContext(ete),pe;typeof c=="boolean"?pe=c?{}:{distance:0}:pe=c||{};var he=(n=(r=(i=pe)===null||i===void 0?void 0:i.distance)!==null&&r!==void 0?r:me==null?void 0:me.pushDistance)!==null&&n!==void 0?n:180,_e=f.useMemo(function(){return{pushDistance:he,push:function(){ye(!0)},pull:function(){ye(!1)}}},[he]);f.useEffect(function(){if(a){var Te;me==null||(Te=me.push)===null||Te===void 0||Te.call(me)}else{var ke;me==null||(ke=me.pull)===null||ke===void 0||ke.call(me)}},[a]),f.useEffect(function(){return function(){var Te;me==null||(Te=me.pull)===null||Te===void 0||Te.call(me)}},[]);var le=k&&f.createElement(fa,st({key:"mask"},P,{visible:a}),function(Te,ke){var Pe=Te.className,Ne=Te.style;return f.createElement("div",{className:Re("".concat(o,"-mask"),Pe,p==null?void 0:p.mask,D),style:X(X(X({},Ne),R),B==null?void 0:B.mask),onClick:M&&a?H:void 0,ref:ke})}),xe=typeof _=="function"?_(s):_,we={};if(ue&&he)switch(s){case"top":we.transform="translateY(".concat(he,"px)");break;case"bottom":we.transform="translateY(".concat(-he,"px)");break;case"left":we.transform="translateX(".concat(he,"px)");break;default:we.transform="translateX(".concat(-he,"px)");break}s==="left"||s==="right"?we.width=tte(T):we.height=tte(x);var De={onMouseEnter:F,onMouseOver:z,onMouseLeave:W,onClick:q,onKeyDown:Z,onKeyUp:N},Fe=f.createElement(fa,st({key:"panel"},xe,{visible:a,forceRender:u,onVisibleChanged:function(ke){A==null||A(ke)},removeOnLeave:!1,leavedClassName:"".concat(o,"-content-wrapper-hidden")}),function(Te,ke){var Pe=Te.className,Ne=Te.style,We=f.createElement(art,st({id:b,containerRef:ke,prefixCls:o,className:Re(S,p==null?void 0:p.content),style:X(X({},C),B==null?void 0:B.content)},Bi(e,{aria:!0}),De),E);return f.createElement("div",st({className:Re("".concat(o,"-content-wrapper"),p==null?void 0:p.wrapper,Pe),style:X(X(X({},we),Ne),B==null?void 0:B.wrapper)},Bi(e,{data:!0})),V?V(We):We)}),Ce=X({},v);return y&&(Ce.zIndex=y),f.createElement(ete.Provider,{value:_e},f.createElement("div",{className:Re(o,"".concat(o,"-").concat(s),m,ae(ae({},"".concat(o,"-open"),a),"".concat(o,"-inline"),l)),style:Ce,tabIndex:-1,ref:G,onKeyDown:fe},le,f.createElement("div",{tabIndex:0,ref:ie,style:nte,"aria-hidden":"true","data-sentinel":"start"}),Fe,f.createElement("div",{tabIndex:0,ref:ce,style:nte,"aria-hidden":"true","data-sentinel":"end"})))}var lrt=f.forwardRef(srt),crt=function(t){var n=t.open,r=n===void 0?!1:n,i=t.prefixCls,o=i===void 0?"rc-drawer":i,a=t.placement,s=a===void 0?"right":a,l=t.autoFocus,c=l===void 0?!0:l,u=t.keyboard,d=u===void 0?!0:u,h=t.width,p=h===void 0?378:h,m=t.mask,v=m===void 0?!0:m,y=t.maskClosable,S=y===void 0?!0:y,b=t.getContainer,C=t.forceRender,_=t.afterOpenChange,T=t.destroyOnClose,x=t.onMouseEnter,E=t.onMouseOver,k=t.onMouseLeave,M=t.onClick,P=t.onKeyDown,D=t.onKeyUp,R=t.panelRef,A=f.useState(!1),H=Le(A,2),F=H[0],z=H[1],W=f.useState(!1),q=Le(W,2),Z=q[0],N=q[1];Er(function(){N(!0)},[]);var B=Z?r:!1,V=f.useRef(),G=f.useRef();Er(function(){B&&(G.current=document.activeElement)},[B]);var ie=function(ue){var ye;if(z(ue),_==null||_(ue),!ue&&G.current&&!((ye=V.current)!==null&&ye!==void 0&&ye.contains(G.current))){var me;(me=G.current)===null||me===void 0||me.focus({preventScroll:!0})}},ce=f.useMemo(function(){return{panel:R}},[R]);if(!C&&!F&&!B&&T)return null;var fe={onMouseEnter:x,onMouseOver:E,onMouseLeave:k,onClick:M,onKeyDown:P,onKeyUp:D},ee=X(X({},t),{},{open:B,prefixCls:o,placement:s,autoFocus:c,keyboard:d,width:p,mask:v,maskClosable:S,inline:b===!1,afterOpenChange:ie,ref:V},fe);return f.createElement(Bbe.Provider,{value:ce},f.createElement(bE,{open:B||C||F,autoDestroy:!1,getContainer:b,autoLock:v&&(B||F)},f.createElement(lrt,ee)))};const Hbe=e=>{var t,n;const{prefixCls:r,title:i,footer:o,extra:a,loading:s,onClose:l,headerStyle:c,bodyStyle:u,footerStyle:d,children:h,classNames:p,styles:m}=e,{drawer:v}=f.useContext(hn),y=f.useCallback(T=>f.createElement("button",{type:"button",onClick:l,"aria-label":"Close",className:`${r}-close`},T),[l]),[S,b]=HU(Yb(e),Yb(v),{closable:!0,closeIconRender:y}),C=f.useMemo(()=>{var T,x;return!i&&!S?null:f.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(T=v==null?void 0:v.styles)===null||T===void 0?void 0:T.header),c),m==null?void 0:m.header),className:Re(`${r}-header`,{[`${r}-header-close-only`]:S&&!i&&!a},(x=v==null?void 0:v.classNames)===null||x===void 0?void 0:x.header,p==null?void 0:p.header)},f.createElement("div",{className:`${r}-header-title`},b,i&&f.createElement("div",{className:`${r}-title`},i)),a&&f.createElement("div",{className:`${r}-extra`},a))},[S,b,a,c,r,i]),_=f.useMemo(()=>{var T,x;if(!o)return null;const E=`${r}-footer`;return f.createElement("div",{className:Re(E,(T=v==null?void 0:v.classNames)===null||T===void 0?void 0:T.footer,p==null?void 0:p.footer),style:Object.assign(Object.assign(Object.assign({},(x=v==null?void 0:v.styles)===null||x===void 0?void 0:x.footer),d),m==null?void 0:m.footer)},o)},[o,d,r]);return f.createElement(f.Fragment,null,C,f.createElement("div",{className:Re(`${r}-body`,p==null?void 0:p.body,(t=v==null?void 0:v.classNames)===null||t===void 0?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},(n=v==null?void 0:v.styles)===null||n===void 0?void 0:n.body),u),m==null?void 0:m.body)},s?f.createElement(kp,{active:!0,title:!1,paragraph:{rows:5},className:`${r}-body-skeleton`}):h),_)},urt=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},zbe=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),Ube=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},zbe({opacity:e},{opacity:1})),drt=(e,t)=>[Ube(.7,t),zbe({transform:urt(e)},{transform:"none"})],frt=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:Ube(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,i)=>Object.assign(Object.assign({},r),{[`&-${i}`]:drt(i,n)}),{})}}},hrt=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:i,colorBgElevated:o,motionDurationSlow:a,motionDurationMid:s,paddingXS:l,padding:c,paddingLG:u,fontSizeLG:d,lineHeightLG:h,lineWidth:p,lineType:m,colorSplit:v,marginXS:y,colorIcon:S,colorIconHover:b,colorBgTextHover:C,colorBgTextActive:_,colorText:T,fontWeightStrong:x,footerPaddingBlock:E,footerPaddingInline:k,calc:M}=e,P=`${n}-content-wrapper`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:T,"&-pure":{position:"relative",background:o,display:"flex",flexDirection:"column",[`&${n}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${n}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${n}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${n}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${n}-mask`]:{position:"absolute",inset:0,zIndex:r,background:i,pointerEvents:"auto"},[P]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${a}`,"&-hidden":{display:"none"}},[`&-left > ${P}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${P}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${P}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${P}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:o,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${je(c)} ${je(u)}`,fontSize:d,lineHeight:h,borderBottom:`${je(p)} ${m} ${v}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:Object.assign({display:"inline-flex",width:M(d).add(l).equal(),height:M(d).add(l).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",marginInlineEnd:y,color:S,fontWeight:x,fontSize:d,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${s}`,textRendering:"auto","&:hover":{color:b,backgroundColor:C,textDecoration:"none"},"&:active":{backgroundColor:_}},ml(e)),[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:d,lineHeight:h},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:u,overflow:"auto",[`${n}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${n}-footer`]:{flexShrink:0,padding:`${je(E)} ${je(k)}`,borderTop:`${je(p)} ${m} ${v}`},"&-rtl":{direction:"rtl"}}}},prt=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}),Wbe=Tr("Drawer",e=>{const t=dr(e,{});return[hrt(t),frt(t)]},prt);var Vbe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const mrt={distance:180},Kbe=e=>{const{rootClassName:t,width:n,height:r,size:i="default",mask:o=!0,push:a=mrt,open:s,afterOpenChange:l,onClose:c,prefixCls:u,getContainer:d,style:h,className:p,visible:m,afterVisibleChange:v,maskStyle:y,drawerStyle:S,contentWrapperStyle:b}=e,C=Vbe(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:_,getPrefixCls:T,direction:x,drawer:E}=f.useContext(hn),k=T("drawer",u),[M,P,D]=Wbe(k),R=d===void 0&&_?()=>_(document.body):d,A=Re({"no-mask":!o,[`${k}-rtl`]:x==="rtl"},t,P,D),H=f.useMemo(()=>n??(i==="large"?736:378),[n,i]),F=f.useMemo(()=>r??(i==="large"?736:378),[r,i]),z={motionName:os(k,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},W=ce=>({motionName:os(k,`panel-motion-${ce}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),q=vve(),[Z,N]=Du("Drawer",C.zIndex),{classNames:B={},styles:V={}}=C,{classNames:G={},styles:ie={}}=E||{};return M(f.createElement(Hd,{form:!0,space:!0},f.createElement(pE.Provider,{value:N},f.createElement(crt,Object.assign({prefixCls:k,onClose:c,maskMotion:z,motion:W},C,{classNames:{mask:Re(B.mask,G.mask),content:Re(B.content,G.content),wrapper:Re(B.wrapper,G.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},V.mask),y),ie.mask),content:Object.assign(Object.assign(Object.assign({},V.content),S),ie.content),wrapper:Object.assign(Object.assign(Object.assign({},V.wrapper),b),ie.wrapper)},open:s??m,mask:o,push:a,width:H,height:F,style:Object.assign(Object.assign({},E==null?void 0:E.style),h),className:Re(E==null?void 0:E.className,p),rootClassName:A,getContainer:R,afterOpenChange:l??v,panelRef:q,zIndex:Z}),f.createElement(Hbe,Object.assign({prefixCls:k},C,{onClose:c}))))))},grt=e=>{const{prefixCls:t,style:n,className:r,placement:i="right"}=e,o=Vbe(e,["prefixCls","style","className","placement"]),{getPrefixCls:a}=f.useContext(hn),s=a("drawer",t),[l,c,u]=Wbe(s),d=Re(s,`${s}-pure`,`${s}-${i}`,c,u,r);return l(f.createElement("div",{className:d,style:n},f.createElement(Hbe,Object.assign({prefixCls:s},o))))};Kbe._InternalPanelDoNotUseOrYouWillBeFired=grt;function rte(e){return["small","middle","large"].includes(e)}function ite(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const qbe=ge.createContext({latestIndex:0}),vrt=qbe.Provider,yrt=e=>{let{className:t,index:n,children:r,split:i,style:o}=e;const{latestIndex:a}=f.useContext(qbe);return r==null?null:f.createElement(f.Fragment,null,f.createElement("div",{className:t,style:o},r),n<a&&i&&f.createElement("span",{className:`${t}-split`},i))};var brt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Srt=f.forwardRef((e,t)=>{var n,r,i;const{getPrefixCls:o,space:a,direction:s}=f.useContext(hn),{size:l=(n=a==null?void 0:a.size)!==null&&n!==void 0?n:"small",align:c,className:u,rootClassName:d,children:h,direction:p="horizontal",prefixCls:m,split:v,style:y,wrap:S=!1,classNames:b,styles:C}=e,_=brt(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[T,x]=Array.isArray(l)?l:[l,l],E=rte(x),k=rte(T),M=ite(x),P=ite(T),D=zo(h,{keepEmpty:!0}),R=c===void 0&&p==="horizontal"?"center":c,A=o("space",m),[H,F,z]=F1e(A),W=Re(A,a==null?void 0:a.className,F,`${A}-${p}`,{[`${A}-rtl`]:s==="rtl",[`${A}-align-${R}`]:R,[`${A}-gap-row-${x}`]:E,[`${A}-gap-col-${T}`]:k},u,d,z),q=Re(`${A}-item`,(r=b==null?void 0:b.item)!==null&&r!==void 0?r:(i=a==null?void 0:a.classNames)===null||i===void 0?void 0:i.item);let Z=0;const N=D.map((G,ie)=>{var ce,fe;G!=null&&(Z=ie);const ee=(G==null?void 0:G.key)||`${q}-${ie}`;return f.createElement(yrt,{className:q,key:ee,index:ie,split:v,style:(ce=C==null?void 0:C.item)!==null&&ce!==void 0?ce:(fe=a==null?void 0:a.styles)===null||fe===void 0?void 0:fe.item},G)}),B=f.useMemo(()=>({latestIndex:Z}),[Z]);if(D.length===0)return null;const V={};return S&&(V.flexWrap="wrap"),!k&&P&&(V.columnGap=T),!E&&M&&(V.rowGap=x),H(f.createElement("div",Object.assign({ref:t,className:W,style:Object.assign(Object.assign(Object.assign({},V),a==null?void 0:a.style),y)},_),f.createElement(vrt,{value:B},N)))}),pa=Srt;pa.Compact=uze;var Crt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Gbe=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=f.useContext(hn),{prefixCls:i,type:o="default",danger:a,disabled:s,loading:l,onClick:c,htmlType:u,children:d,className:h,menu:p,arrow:m,autoFocus:v,overlay:y,trigger:S,align:b,open:C,onOpenChange:_,placement:T,getPopupContainer:x,href:E,icon:k=f.createElement(cW,null),title:M,buttonsRender:P=ne=>ne,mouseEnterDelay:D,mouseLeaveDelay:R,overlayClassName:A,overlayStyle:H,destroyPopupOnHide:F,dropdownRender:z}=e,W=Crt(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),q=n("dropdown",i),Z=`${q}-button`,N={menu:p,arrow:m,autoFocus:v,align:b,disabled:s,trigger:s?[]:S,onOpenChange:_,getPopupContainer:x||t,mouseEnterDelay:D,mouseLeaveDelay:R,overlayClassName:A,overlayStyle:H,destroyPopupOnHide:F,dropdownRender:z},{compactSize:B,compactItemClassnames:V}=Qd(q,r),G=Re(Z,V,h);"overlay"in e&&(N.overlay=y),"open"in e&&(N.open=C),"placement"in e?N.placement=T:N.placement=r==="rtl"?"bottomLeft":"bottomRight";const ie=f.createElement(pr,{type:o,danger:a,disabled:s,loading:l,onClick:c,htmlType:u,href:E,title:M},d),ce=f.createElement(pr,{type:o,danger:a,icon:k}),[fe,ee]=P([ie,ce]);return f.createElement(pa.Compact,Object.assign({className:G,size:B,block:!0},W),fe,f.createElement(TE,Object.assign({},N),ee))};Gbe.__ANT_BUTTON=!0;const uP=TE;uP.Button=Gbe;var xrt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"},wrt=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:xrt}))},_rt=f.forwardRef(wrt);function W9(e){const[t,n]=f.useState(e);return f.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const Ert=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},
|
||
opacity ${e.motionDurationFast} ${e.motionEaseInOut},
|
||
transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},Trt=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${je(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${je(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),ote=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},krt=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},$r(e)),Trt(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},ote(e,e.controlHeightSM)),"&-large":Object.assign({},ote(e,e.controlHeightLG))})}},Ort=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:i,antCls:o,labelRequiredMarkColor:a,labelColor:s,labelFontSize:l,labelHeight:c,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:d,itemMarginBottom:h}=e;return{[t]:Object.assign(Object.assign({},$r(e)),{marginBottom:h,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
||
&-hidden${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:c,color:s,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:u,marginInlineEnd:d},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${i}-col-'"]):not([class*="' ${i}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:IU,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},ate=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},Prt=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,
|
||
> ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},vd=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Ybe=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:vd(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Mrt=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,
|
||
${r}-col-24${n}-label,
|
||
${r}-col-xl-24${n}-label`]:vd(e)}},[`@media (max-width: ${je(e.screenXSMax)})`]:[Ybe(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:vd(e)}}}],[`@media (max-width: ${je(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:vd(e)}}},[`@media (max-width: ${je(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:vd(e)}}},[`@media (max-width: ${je(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:vd(e)}}}}},Irt=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label,
|
||
${n}-col-24${t}-label,
|
||
${n}-col-xl-24${t}-label`]:vd(e),[`@media (max-width: ${je(e.screenXSMax)})`]:[Ybe(e),{[t]:{[`${n}-col-xs-24${t}-label`]:vd(e)}}],[`@media (max-width: ${je(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:vd(e)}},[`@media (max-width: ${je(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:vd(e)}},[`@media (max-width: ${je(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:vd(e)}}}},$rt=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Xbe=(e,t)=>dr(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),RW=Tr("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=Xbe(e,n);return[krt(r),Ort(r),Ert(r),ate(r,r.componentCls),ate(r,r.formItemCls),Prt(r),Mrt(r),Irt(r),vE(r),IU]},$rt,{order:-1e3}),ste=[];function WR(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const Qbe=e=>{let{help:t,helpStatus:n,errors:r=ste,warnings:i=ste,className:o,fieldId:a,onVisibleChanged:s}=e;const{prefixCls:l}=f.useContext(BU),c=`${l}-item-explain`,u=_i(l),[d,h,p]=RW(l,u),m=f.useMemo(()=>qb(l),[l]),v=W9(r),y=W9(i),S=f.useMemo(()=>t!=null?[WR(t,"help",n)]:[].concat(pt(v.map((_,T)=>WR(_,"error","error",T))),pt(y.map((_,T)=>WR(_,"warning","warning",T)))),[t,n,v,y]),b=f.useMemo(()=>{const _={};return S.forEach(T=>{let{key:x}=T;_[x]=(_[x]||0)+1}),S.map((T,x)=>Object.assign(Object.assign({},T),{key:_[T.key]>1?`${T.key}-fallback-${x}`:T.key}))},[S]),C={};return a&&(C.id=`${a}_help`),d(f.createElement(fa,{motionDeadline:m.motionDeadline,motionName:`${l}-show-help`,visible:!!b.length,onVisibleChanged:s},_=>{const{className:T,style:x}=_;return f.createElement("div",Object.assign({},C,{className:Re(c,T,p,u,o,h),style:x,role:"alert"}),f.createElement(CO,Object.assign({keys:b},qb(l),{motionName:`${l}-show-help-item`,component:!1}),E=>{const{key:k,error:M,errorStatus:P,className:D,style:R}=E;return f.createElement("div",{key:k,className:Re(D,{[`${c}-${P}`]:P}),style:R},M)}))}))},Rrt=["parentNode"],Art="form_item";function nw(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function Zbe(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:Rrt.includes(n)?`${Art}_${n}`:n}function Jbe(e,t,n,r,i,o){let a=r;return o!==void 0?a=o:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||i&&n.validated)&&(a="success"),a}function lte(e){return nw(e).join("_")}function cte(e,t){const n=t.getFieldInstance(e),r=J6(n);if(r)return r;const i=Zbe(nw(e),t.__INTERNAL__.name);if(i)return document.getElementById(i)}function eSe(e){const[t]=jU(),n=f.useRef({}),r=f.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:i=>o=>{const a=lte(i);o?n.current[a]=o:delete n.current[a]}},scrollToField:function(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const a=cte(i,r);a&&fHe(a,Object.assign({scrollMode:"if-needed",block:"nearest"},o))},focusField:i=>{var o;const a=cte(i,r);a&&((o=a.focus)===null||o===void 0||o.call(a))},getFieldInstance:i=>{const o=lte(i);return n.current[o]}}),[e,t]);return[r]}var Nrt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Drt=(e,t)=>{const n=f.useContext(Jo),{getPrefixCls:r,direction:i,form:o}=f.useContext(hn),{prefixCls:a,className:s,rootClassName:l,size:c,disabled:u=n,form:d,colon:h,labelAlign:p,labelWrap:m,labelCol:v,wrapperCol:y,hideRequiredMark:S,layout:b="horizontal",scrollToFirstError:C,requiredMark:_,onFinishFailed:T,name:x,style:E,feedbackIcons:k,variant:M}=e,P=Nrt(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),D=$o(c),R=f.useContext(Dge),A=f.useMemo(()=>_!==void 0?_:S?!1:o&&o.requiredMark!==void 0?o.requiredMark:!0,[S,_,o]),H=h??(o==null?void 0:o.colon),F=r("form",a),z=_i(F),[W,q,Z]=RW(F,z),N=Re(F,`${F}-${b}`,{[`${F}-hide-required-mark`]:A===!1,[`${F}-rtl`]:i==="rtl",[`${F}-${D}`]:D},Z,z,q,o==null?void 0:o.className,s,l),[B]=eSe(d),{__INTERNAL__:V}=B;V.name=x;const G=f.useMemo(()=>({name:x,labelAlign:p,labelCol:v,labelWrap:m,wrapperCol:y,vertical:b==="vertical",colon:H,requiredMark:A,itemRef:V.itemRef,form:B,feedbackIcons:k}),[x,p,v,y,b,H,A,B,k]),ie=f.useRef(null);f.useImperativeHandle(t,()=>{var ee;return Object.assign(Object.assign({},B),{nativeElement:(ee=ie.current)===null||ee===void 0?void 0:ee.nativeElement})});const ce=(ee,ne)=>{if(ee){let ue={block:"nearest"};typeof ee=="object"&&(ue=Object.assign(Object.assign({},ue),ee)),B.scrollToField(ne,ue),ue.focus&&B.focusField(ne)}},fe=ee=>{if(T==null||T(ee),ee.errorFields.length){const ne=ee.errorFields[0].name;if(C!==void 0){ce(C,ne);return}o&&o.scrollToFirstError!==void 0&&ce(o.scrollToFirstError,ne)}};return W(f.createElement(mve.Provider,{value:M},f.createElement(bU,{disabled:u},f.createElement(bv.Provider,{value:D},f.createElement(pve,{validateMessages:R},f.createElement(pp.Provider,{value:G},f.createElement(qS,Object.assign({id:x},P,{name:x,onFinishFailed:fe,form:B,ref:ie,style:Object.assign(Object.assign({},o==null?void 0:o.style),E),className:N}))))))))},Lrt=f.forwardRef(Drt);function Frt(e){if(typeof e=="function")return e;const t=zo(e);return t.length<=1?t[0]:t}const tSe=()=>{const{status:e,errors:t=[],warnings:n=[]}=f.useContext(ha);return{status:e,errors:t,warnings:n}};tSe.Context=ha;function jrt(e){const[t,n]=f.useState(e),r=f.useRef(null),i=f.useRef([]),o=f.useRef(!1);f.useEffect(()=>(o.current=!1,()=>{o.current=!0,Cr.cancel(r.current),r.current=null}),[]);function a(s){o.current||(r.current===null&&(i.current=[],r.current=Cr(()=>{r.current=null,n(l=>{let c=l;return i.current.forEach(u=>{c=u(c)}),c})})),i.current.push(s))}return[t,a]}function Brt(){const{itemRef:e}=f.useContext(pp),t=f.useRef({});function n(r,i){const o=i&&typeof i=="object"&&mg(i),a=r.join("_");return(t.current.name!==a||t.current.originRef!==o)&&(t.current.name=a,t.current.originRef=o,t.current.ref=ga(e(r),o)),t.current.ref}return n}const Hrt=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},zrt=US(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=Xbe(e,n);return[Hrt(r)]});var Urt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Wrt=24,Vrt=e=>{const{prefixCls:t,status:n,labelCol:r,wrapperCol:i,children:o,errors:a,warnings:s,_internalItemRender:l,extra:c,help:u,fieldId:d,marginBottom:h,onErrorVisibleChanged:p,label:m}=e,v=`${t}-item`,y=f.useContext(pp),S=f.useMemo(()=>{let H=Object.assign({},i||y.wrapperCol||{});return m===null&&!r&&!i&&y.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(z=>{const W=z?[z]:[],q=jo(y.labelCol,W),Z=typeof q=="object"?q:{},N=jo(H,W),B=typeof N=="object"?N:{};"span"in Z&&!("offset"in B)&&Z.span<Wrt&&(H=ca(H,[].concat(W,["offset"]),Z.span))}),H},[i,y]),b=Re(`${v}-control`,S.className),C=f.useMemo(()=>Urt(y,["labelCol","wrapperCol"]),[y]),_=f.useRef(null),[T,x]=f.useState(0);Er(()=>{c&&_.current?x(_.current.clientHeight):x(0)},[c]);const E=f.createElement("div",{className:`${v}-control-input`},f.createElement("div",{className:`${v}-control-input-content`},o)),k=f.useMemo(()=>({prefixCls:t,status:n}),[t,n]),M=h!==null||a.length||s.length?f.createElement(BU.Provider,{value:k},f.createElement(Qbe,{fieldId:d,errors:a,warnings:s,help:u,helpStatus:n,className:`${v}-explain-connected`,onVisibleChanged:p})):null,P={};d&&(P.id=`${d}_extra`);const D=c?f.createElement("div",Object.assign({},P,{className:`${v}-extra`,ref:_}),c):null,R=M||D?f.createElement("div",{className:`${v}-additional`,style:h?{minHeight:h+T}:{}},M,D):null,A=l&&l.mark==="pro_table_render"&&l.render?l.render(e,{input:E,errorList:M,extra:D}):f.createElement(f.Fragment,null,E,R);return f.createElement(pp.Provider,{value:C},f.createElement(wv,Object.assign({},S,{className:b}),A),f.createElement(zrt,{prefixCls:t}))};var Krt={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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},qrt=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:Krt}))},Grt=f.forwardRef(qrt),Yrt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Xrt(e){return e?typeof e=="object"&&!f.isValidElement(e)?e:{title:e}:null}const Qrt=e=>{let{prefixCls:t,label:n,htmlFor:r,labelCol:i,labelAlign:o,colon:a,required:s,requiredMark:l,tooltip:c,vertical:u}=e;var d;const[h]=ks("Form"),{labelAlign:p,labelCol:m,labelWrap:v,colon:y}=f.useContext(pp);if(!n)return null;const S=i||m||{},b=o||p,C=`${t}-item-label`,_=Re(C,b==="left"&&`${C}-left`,S.className,{[`${C}-wrap`]:!!v});let T=n;const x=a===!0||y!==!1&&a!==!1;x&&!u&&typeof n=="string"&&n.trim()&&(T=n.replace(/[:|:]\s*$/,""));const k=Xrt(c);if(k){const{icon:R=f.createElement(Grt,null)}=k,A=Yrt(k,["icon"]),H=f.createElement(ea,Object.assign({},A),f.cloneElement(R,{className:`${t}-item-tooltip`,title:"",onClick:F=>{F.preventDefault()},tabIndex:null}));T=f.createElement(f.Fragment,null,T,H)}const M=l==="optional",P=typeof l=="function";P?T=l(T,{required:!!s}):M&&!s&&(T=f.createElement(f.Fragment,null,T,f.createElement("span",{className:`${t}-item-optional`,title:""},(h==null?void 0:h.optional)||((d=Lc.Form)===null||d===void 0?void 0:d.optional))));const D=Re({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:M||P,[`${t}-item-no-colon`]:!x});return f.createElement(wv,Object.assign({},S,{className:_}),f.createElement("label",{htmlFor:r,className:D,title:typeof n=="string"?n:""},T))},Zrt={success:qv,warning:gg,error:eh,validating:jd};function nSe(e){let{children:t,errors:n,warnings:r,hasFeedback:i,validateStatus:o,prefixCls:a,meta:s,noStyle:l}=e;const c=`${a}-item`,{feedbackIcons:u}=f.useContext(pp),d=Jbe(n,r,s,null,!!i,o),{isFormItemInput:h,status:p,hasFeedback:m,feedbackIcon:v}=f.useContext(ha),y=f.useMemo(()=>{var S;let b;if(i){const _=i!==!0&&i.icons||u,T=d&&((S=_==null?void 0:_({status:d,errors:n,warnings:r}))===null||S===void 0?void 0:S[d]),x=d&&Zrt[d];b=T!==!1&&x?f.createElement("span",{className:Re(`${c}-feedback-icon`,`${c}-feedback-icon-${d}`)},T||f.createElement(x,null)):null}const C={status:d||"",errors:n,warnings:r,hasFeedback:!!i,feedbackIcon:b,isFormItemInput:!0};return l&&(C.status=(d??p)||"",C.isFormItemInput=h,C.hasFeedback=!!(i??m),C.feedbackIcon=i!==void 0?C.feedbackIcon:v),C},[d,i,l,h,p]);return f.createElement(ha.Provider,{value:y},t)}var Jrt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function eit(e){const{prefixCls:t,className:n,rootClassName:r,style:i,help:o,errors:a,warnings:s,validateStatus:l,meta:c,hasFeedback:u,hidden:d,children:h,fieldId:p,required:m,isRequired:v,onSubItemMetaChange:y,layout:S}=e,b=Jrt(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),C=`${t}-item`,{requiredMark:_,vertical:T}=f.useContext(pp),x=T||S==="vertical",E=f.useRef(null),k=W9(a),M=W9(s),P=o!=null,D=!!(P||a.length||s.length),R=!!E.current&&VS(E.current),[A,H]=f.useState(null);Er(()=>{if(D&&E.current){const Z=getComputedStyle(E.current);H(parseInt(Z.marginBottom,10))}},[D,R]);const F=Z=>{Z||H(null)},W=function(){let Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const N=Z?k:c.errors,B=Z?M:c.warnings;return Jbe(N,B,c,"",!!u,l)}(),q=Re(C,n,r,{[`${C}-with-help`]:P||k.length||M.length,[`${C}-has-feedback`]:W&&u,[`${C}-has-success`]:W==="success",[`${C}-has-warning`]:W==="warning",[`${C}-has-error`]:W==="error",[`${C}-is-validating`]:W==="validating",[`${C}-hidden`]:d,[`${C}-${S}`]:S});return f.createElement("div",{className:q,style:i,ref:E},f.createElement(AE,Object.assign({className:`${C}-row`},Pr(b,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),f.createElement(Qrt,Object.assign({htmlFor:p},e,{requiredMark:_,required:m??v,prefixCls:t,vertical:x})),f.createElement(Vrt,Object.assign({},e,c,{errors:k,warnings:M,prefixCls:t,status:W,help:o,marginBottom:A,onErrorVisibleChanged:F}),f.createElement(hve.Provider,{value:y},f.createElement(nSe,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:W},h)))),!!A&&f.createElement("div",{className:`${C}-margin-offset`,style:{marginBottom:-A}}))}const tit="__SPLIT__";function nit(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(i=>{const o=e[i],a=t[i];return o===a||typeof o=="function"||typeof a=="function"})}const rit=f.memo(e=>{let{children:t}=e;return t},(e,t)=>nit(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function ute(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function iit(e){const{name:t,noStyle:n,className:r,dependencies:i,prefixCls:o,shouldUpdate:a,rules:s,children:l,required:c,label:u,messageVariables:d,trigger:h="onChange",validateTrigger:p,hidden:m,help:v,layout:y}=e,{getPrefixCls:S}=f.useContext(hn),{name:b}=f.useContext(pp),C=Frt(l),_=typeof C=="function",T=f.useContext(hve),{validateTrigger:x}=f.useContext(rg),E=p!==void 0?p:x,k=t!=null,M=S("form",o),P=_i(M),[D,R,A]=RW(M,P);Jf();const H=f.useContext(f_),F=f.useRef(null),[z,W]=jrt({}),[q,Z]=Sv(()=>ute()),N=ee=>{const ne=H==null?void 0:H.getKey(ee.name);if(Z(ee.destroy?ute():ee,!0),n&&v!==!1&&T){let ue=ee.name;if(ee.destroy)ue=F.current||ue;else if(ne!==void 0){const[ye,me]=ne;ue=[ye].concat(pt(me)),F.current=ue}T(ee,ue)}},B=(ee,ne)=>{W(ue=>{const ye=Object.assign({},ue),pe=[].concat(pt(ee.name.slice(0,-1)),pt(ne)).join(tit);return ee.destroy?delete ye[pe]:ye[pe]=ee,ye})},[V,G]=f.useMemo(()=>{const ee=pt(q.errors),ne=pt(q.warnings);return Object.values(z).forEach(ue=>{ee.push.apply(ee,pt(ue.errors||[])),ne.push.apply(ne,pt(ue.warnings||[]))}),[ee,ne]},[z,q.errors,q.warnings]),ie=Brt();function ce(ee,ne,ue){return n&&!m?f.createElement(nSe,{prefixCls:M,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:q,errors:V,warnings:G,noStyle:!0},ee):f.createElement(eit,Object.assign({key:"row"},e,{className:Re(r,A,P,R),prefixCls:M,fieldId:ne,isRequired:ue,errors:V,warnings:G,meta:q,onSubItemMetaChange:B,layout:y}),ee)}if(!k&&!_&&!i)return D(ce(C));let fe={};return typeof u=="string"?fe.label=u:t&&(fe.label=String(t)),d&&(fe=Object.assign(Object.assign({},fe),d)),D(f.createElement(FU,Object.assign({},e,{messageVariables:fe,trigger:h,validateTrigger:E,onMetaChange:N}),(ee,ne,ue)=>{const ye=nw(t).length&&ne?ne.name:[],me=Zbe(ye,b),pe=c!==void 0?c:!!(s!=null&&s.some(le=>{if(le&&typeof le=="object"&&le.required&&!le.warningOnly)return!0;if(typeof le=="function"){const xe=le(ue);return(xe==null?void 0:xe.required)&&!(xe!=null&&xe.warningOnly)}return!1})),he=Object.assign({},ee);let _e=null;if(Array.isArray(C)&&k)_e=C;else if(!(_&&(!(a||i)||k))){if(!(i&&!_&&!k))if(f.isValidElement(C)){const le=Object.assign(Object.assign({},C.props),he);if(le.id||(le.id=me),v||V.length>0||G.length>0||e.extra){const De=[];(v||V.length>0)&&De.push(`${me}_help`),e.extra&&De.push(`${me}_extra`),le["aria-describedby"]=De.join(" ")}V.length>0&&(le["aria-invalid"]="true"),pe&&(le["aria-required"]="true"),Dd(C)&&(le.ref=ie(ye,C)),new Set([].concat(pt(nw(h)),pt(nw(E)))).forEach(De=>{le[De]=function(){for(var Fe,Ce,Te,ke,Pe,Ne=arguments.length,We=new Array(Ne),Q=0;Q<Ne;Q++)We[Q]=arguments[Q];(Te=he[De])===null||Te===void 0||(Fe=Te).call.apply(Fe,[he].concat(We)),(Pe=(ke=C.props)[De])===null||Pe===void 0||(Ce=Pe).call.apply(Ce,[ke].concat(We))}});const we=[le["aria-required"],le["aria-invalid"],le["aria-describedby"]];_e=f.createElement(rit,{control:he,update:C,childProps:we},Io(C,le))}else _&&(a||i)&&!k?_e=C(ue):_e=C}return ce(_e,me,pe)}))}const rSe=iit;rSe.useStatus=tSe;var oit=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const ait=e=>{var{prefixCls:t,children:n}=e,r=oit(e,["prefixCls","children"]);const{getPrefixCls:i}=f.useContext(hn),o=i("form",t),a=f.useMemo(()=>({prefixCls:o,status:"error"}),[o]);return f.createElement(cve,Object.assign({},r),(s,l,c)=>f.createElement(BU.Provider,{value:a},n(s.map(u=>Object.assign(Object.assign({},u),{fieldKey:u.key})),l,{errors:c.errors,warnings:c.warnings})))};function sit(){const{form:e}=f.useContext(pp);return e}const Or=Lrt;Or.Item=rSe;Or.List=ait;Or.ErrorList=Qbe;Or.useForm=eSe;Or.useFormInstance=sit;Or.useWatch=fve;Or.Provider=pve;Or.create=()=>{};function iSe(){var e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function lit(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function $f(e,t,n,r){var i=Bw.unstable_batchedUpdates?function(a){Bw.unstable_batchedUpdates(n,a)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,i,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,i,r)}}}var NE=f.createContext(null),cit=function(t){var n=t.visible,r=t.maskTransitionName,i=t.getContainer,o=t.prefixCls,a=t.rootClassName,s=t.icons,l=t.countRender,c=t.showSwitch,u=t.showProgress,d=t.current,h=t.transform,p=t.count,m=t.scale,v=t.minScale,y=t.maxScale,S=t.closeIcon,b=t.onActive,C=t.onClose,_=t.onZoomIn,T=t.onZoomOut,x=t.onRotateRight,E=t.onRotateLeft,k=t.onFlipX,M=t.onFlipY,P=t.onReset,D=t.toolbarRender,R=t.zIndex,A=t.image,H=f.useContext(NE),F=s.rotateLeft,z=s.rotateRight,W=s.zoomIn,q=s.zoomOut,Z=s.close,N=s.left,B=s.right,V=s.flipX,G=s.flipY,ie="".concat(o,"-operations-operation");f.useEffect(function(){var xe=function(De){De.keyCode===Pt.ESC&&C()};return n&&window.addEventListener("keydown",xe),function(){window.removeEventListener("keydown",xe)}},[n]);var ce=function(we,De){we.preventDefault(),we.stopPropagation(),b(De)},fe=f.useCallback(function(xe){var we=xe.type,De=xe.disabled,Fe=xe.onClick,Ce=xe.icon;return f.createElement("div",{key:we,className:Re(ie,"".concat(o,"-operations-operation-").concat(we),ae({},"".concat(o,"-operations-operation-disabled"),!!De)),onClick:Fe},Ce)},[ie,o]),ee=c?fe({icon:N,onClick:function(we){return ce(we,-1)},type:"prev",disabled:d===0}):void 0,ne=c?fe({icon:B,onClick:function(we){return ce(we,1)},type:"next",disabled:d===p-1}):void 0,ue=fe({icon:G,onClick:M,type:"flipY"}),ye=fe({icon:V,onClick:k,type:"flipX"}),me=fe({icon:F,onClick:E,type:"rotateLeft"}),pe=fe({icon:z,onClick:x,type:"rotateRight"}),he=fe({icon:q,onClick:T,type:"zoomOut",disabled:m<=v}),_e=fe({icon:W,onClick:_,type:"zoomIn",disabled:m===y}),le=f.createElement("div",{className:"".concat(o,"-operations")},ue,ye,me,pe,he,_e);return f.createElement(fa,{visible:n,motionName:r},function(xe){var we=xe.className,De=xe.style;return f.createElement(bE,{open:!0,getContainer:i??document.body},f.createElement("div",{className:Re("".concat(o,"-operations-wrapper"),we,a),style:X(X({},De),{},{zIndex:R})},S===null?null:f.createElement("button",{className:"".concat(o,"-close"),onClick:C},S||Z),c&&f.createElement(f.Fragment,null,f.createElement("div",{className:Re("".concat(o,"-switch-left"),ae({},"".concat(o,"-switch-left-disabled"),d===0)),onClick:function(Ce){return ce(Ce,-1)}},N),f.createElement("div",{className:Re("".concat(o,"-switch-right"),ae({},"".concat(o,"-switch-right-disabled"),d===p-1)),onClick:function(Ce){return ce(Ce,1)}},B)),f.createElement("div",{className:"".concat(o,"-footer")},u&&f.createElement("div",{className:"".concat(o,"-progress")},l?l(d+1,p):"".concat(d+1," / ").concat(p)),D?D(le,X(X({icons:{prevIcon:ee,nextIcon:ne,flipYIcon:ue,flipXIcon:ye,rotateLeftIcon:me,rotateRightIcon:pe,zoomOutIcon:he,zoomInIcon:_e},actions:{onActive:b,onFlipY:M,onFlipX:k,onRotateLeft:E,onRotateRight:x,onZoomOut:T,onZoomIn:_,onReset:P,onClose:C},transform:h},H?{current:d,total:p}:{}),{},{image:A})):le)))})},ZT={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function uit(e,t,n,r){var i=f.useRef(null),o=f.useRef([]),a=f.useState(ZT),s=Le(a,2),l=s[0],c=s[1],u=function(m){c(ZT),ku(ZT,l)||r==null||r({transform:ZT,action:m})},d=function(m,v){i.current===null&&(o.current=[],i.current=Cr(function(){c(function(y){var S=y;return o.current.forEach(function(b){S=X(X({},S),b)}),i.current=null,r==null||r({transform:S,action:v}),S})})),o.current.push(X(X({},l),m))},h=function(m,v,y,S,b){var C=e.current,_=C.width,T=C.height,x=C.offsetWidth,E=C.offsetHeight,k=C.offsetLeft,M=C.offsetTop,P=m,D=l.scale*m;D>n?(D=n,P=n/l.scale):D<t&&(D=b?D:t,P=D/l.scale);var R=y??innerWidth/2,A=S??innerHeight/2,H=P-1,F=H*_*.5,z=H*T*.5,W=H*(R-l.x-k),q=H*(A-l.y-M),Z=l.x-(W-F),N=l.y-(q-z);if(m<1&&D===1){var B=x*D,V=E*D,G=iSe(),ie=G.width,ce=G.height;B<=ie&&V<=ce&&(Z=0,N=0)}d({x:Z,y:N,scale:D},v)};return{transform:l,resetTransform:u,updateTransform:d,dispatchZoomChange:h}}function dte(e,t,n,r){var i=t+n,o=(n-r)/2;if(n>r){if(t>0)return ae({},e,o);if(t<0&&i<r)return ae({},e,-o)}else if(t<0||i>r)return ae({},e,t<0?o:-o);return{}}function oSe(e,t,n,r){var i=iSe(),o=i.width,a=i.height,s=null;return e<=o&&t<=a?s={x:0,y:0}:(e>o||t>a)&&(s=X(X({},dte("x",n,e,o)),dte("y",r,t,a))),s}var Uy=1,dit=1;function fit(e,t,n,r,i,o,a){var s=i.rotate,l=i.scale,c=i.x,u=i.y,d=f.useState(!1),h=Le(d,2),p=h[0],m=h[1],v=f.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),y=function(T){!t||T.button!==0||(T.preventDefault(),T.stopPropagation(),v.current={diffX:T.pageX-c,diffY:T.pageY-u,transformX:c,transformY:u},m(!0))},S=function(T){n&&p&&o({x:T.pageX-v.current.diffX,y:T.pageY-v.current.diffY},"move")},b=function(){if(n&&p){m(!1);var T=v.current,x=T.transformX,E=T.transformY,k=c!==x&&u!==E;if(!k)return;var M=e.current.offsetWidth*l,P=e.current.offsetHeight*l,D=e.current.getBoundingClientRect(),R=D.left,A=D.top,H=s%180!==0,F=oSe(H?P:M,H?M:P,R,A);F&&o(X({},F),"dragRebound")}},C=function(T){if(!(!n||T.deltaY==0)){var x=Math.abs(T.deltaY/100),E=Math.min(x,dit),k=Uy+E*r;T.deltaY>0&&(k=Uy/k),a(k,"wheel",T.clientX,T.clientY)}};return f.useEffect(function(){var _,T,x,E;if(t){x=$f(window,"mouseup",b,!1),E=$f(window,"mousemove",S,!1);try{window.top!==window.self&&(_=$f(window.top,"mouseup",b,!1),T=$f(window.top,"mousemove",S,!1))}catch{}}return function(){var k,M,P,D;(k=x)===null||k===void 0||k.remove(),(M=E)===null||M===void 0||M.remove(),(P=_)===null||P===void 0||P.remove(),(D=T)===null||D===void 0||D.remove()}},[n,p,c,u,s,t]),{isMoving:p,onMouseDown:y,onMouseMove:S,onMouseUp:b,onWheel:C}}function hit(e){return new Promise(function(t){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e})}function aSe(e){var t=e.src,n=e.isCustomPlaceholder,r=e.fallback,i=f.useState(n?"loading":"normal"),o=Le(i,2),a=o[0],s=o[1],l=f.useRef(!1),c=a==="error";f.useEffect(function(){var p=!0;return hit(t).then(function(m){!m&&p&&s("error")}),function(){p=!1}},[t]),f.useEffect(function(){n&&!l.current?s("loading"):c&&s("normal")},[t]);var u=function(){s("normal")},d=function(m){l.current=!1,a==="loading"&&m!==null&&m!==void 0&&m.complete&&(m.naturalWidth||m.naturalHeight)&&(l.current=!0,u())},h=c&&r?{src:r}:{onLoad:u,src:t};return[d,h,a]}function V9(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function pit(e,t,n,r){var i=V9(e,n),o=V9(t,r);if(i===0&&o===0)return[e.x,e.y];var a=i/(i+o),s=e.x+a*(t.x-e.x),l=e.y+a*(t.y-e.y);return[s,l]}function mit(e,t,n,r,i,o,a){var s=i.rotate,l=i.scale,c=i.x,u=i.y,d=f.useState(!1),h=Le(d,2),p=h[0],m=h[1],v=f.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),y=function(T){v.current=X(X({},v.current),T)},S=function(T){if(t){T.stopPropagation(),m(!0);var x=T.touches,E=x===void 0?[]:x;E.length>1?y({point1:{x:E[0].clientX,y:E[0].clientY},point2:{x:E[1].clientX,y:E[1].clientY},eventType:"touchZoom"}):y({point1:{x:E[0].clientX-c,y:E[0].clientY-u},eventType:"move"})}},b=function(T){var x=T.touches,E=x===void 0?[]:x,k=v.current,M=k.point1,P=k.point2,D=k.eventType;if(E.length>1&&D==="touchZoom"){var R={x:E[0].clientX,y:E[0].clientY},A={x:E[1].clientX,y:E[1].clientY},H=pit(M,P,R,A),F=Le(H,2),z=F[0],W=F[1],q=V9(R,A)/V9(M,P);a(q,"touchZoom",z,W,!0),y({point1:R,point2:A,eventType:"touchZoom"})}else D==="move"&&(o({x:E[0].clientX-M.x,y:E[0].clientY-M.y},"move"),y({eventType:"move"}))},C=function(){if(n){if(p&&m(!1),y({eventType:"none"}),r>l)return o({x:0,y:0,scale:r},"touchZoom");var T=e.current.offsetWidth*l,x=e.current.offsetHeight*l,E=e.current.getBoundingClientRect(),k=E.left,M=E.top,P=s%180!==0,D=oSe(P?x:T,P?T:x,k,M);D&&o(X({},D),"dragRebound")}};return f.useEffect(function(){var _;return n&&t&&(_=$f(window,"touchmove",function(T){return T.preventDefault()},{passive:!1})),function(){var T;(T=_)===null||T===void 0||T.remove()}},[n,t]),{isTouching:p,onTouchStart:S,onTouchMove:b,onTouchEnd:C}}var git=["fallback","src","imgRef"],vit=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],yit=function(t){var n=t.fallback,r=t.src,i=t.imgRef,o=tn(t,git),a=aSe({src:r,fallback:n}),s=Le(a,2),l=s[0],c=s[1];return ge.createElement("img",st({ref:function(d){i.current=d,l(d)}},o,c))},sSe=function(t){var n=t.prefixCls,r=t.src,i=t.alt,o=t.imageInfo,a=t.fallback,s=t.movable,l=s===void 0?!0:s,c=t.onClose,u=t.visible,d=t.icons,h=d===void 0?{}:d,p=t.rootClassName,m=t.closeIcon,v=t.getContainer,y=t.current,S=y===void 0?0:y,b=t.count,C=b===void 0?1:b,_=t.countRender,T=t.scaleStep,x=T===void 0?.5:T,E=t.minScale,k=E===void 0?1:E,M=t.maxScale,P=M===void 0?50:M,D=t.transitionName,R=D===void 0?"zoom":D,A=t.maskTransitionName,H=A===void 0?"fade":A,F=t.imageRender,z=t.imgCommonProps,W=t.toolbarRender,q=t.onTransform,Z=t.onChange,N=tn(t,vit),B=f.useRef(),V=f.useContext(NE),G=V&&C>1,ie=V&&C>=1,ce=f.useState(!0),fe=Le(ce,2),ee=fe[0],ne=fe[1],ue=uit(B,k,P,q),ye=ue.transform,me=ue.resetTransform,pe=ue.updateTransform,he=ue.dispatchZoomChange,_e=fit(B,l,u,x,ye,pe,he),le=_e.isMoving,xe=_e.onMouseDown,we=_e.onWheel,De=mit(B,l,u,k,ye,pe,he),Fe=De.isTouching,Ce=De.onTouchStart,Te=De.onTouchMove,ke=De.onTouchEnd,Pe=ye.rotate,Ne=ye.scale,We=Re(ae({},"".concat(n,"-moving"),le));f.useEffect(function(){ee||ne(!0)},[ee]);var Q=function(){me("close")},K=function(){he(Uy+x,"zoomIn")},J=function(){he(Uy/(Uy+x),"zoomOut")},be=function(){pe({rotate:Pe+90},"rotateRight")},Oe=function(){pe({rotate:Pe-90},"rotateLeft")},Se=function(){pe({flipX:!ye.flipX},"flipX")},Ke=function(){pe({flipY:!ye.flipY},"flipY")},tt=function(){me("reset")},se=function(rt){var qt=S+rt;!Number.isInteger(qt)||qt<0||qt>C-1||(ne(!1),me(rt<0?"prev":"next"),Z==null||Z(qt,S))},ze=function(rt){!u||!G||(rt.keyCode===Pt.LEFT?se(-1):rt.keyCode===Pt.RIGHT&&se(1))},Ye=function(rt){u&&(Ne!==1?pe({x:0,y:0,scale:1},"doubleClick"):he(Uy+x,"doubleClick",rt.clientX,rt.clientY))};f.useEffect(function(){var Ze=$f(window,"keydown",ze,!1);return function(){Ze.remove()}},[u,G,S]);var Ue=ge.createElement(yit,st({},z,{width:t.width,height:t.height,imgRef:B,className:"".concat(n,"-img"),alt:i,style:{transform:"translate3d(".concat(ye.x,"px, ").concat(ye.y,"px, 0) scale3d(").concat(ye.flipX?"-":"").concat(Ne,", ").concat(ye.flipY?"-":"").concat(Ne,", 1) rotate(").concat(Pe,"deg)"),transitionDuration:(!ee||Fe)&&"0s"},fallback:a,src:r,onWheel:we,onMouseDown:xe,onDoubleClick:Ye,onTouchStart:Ce,onTouchMove:Te,onTouchEnd:ke,onTouchCancel:ke})),Je=X({url:r,alt:i},o);return ge.createElement(ge.Fragment,null,ge.createElement(DU,st({transitionName:R,maskTransitionName:H,closable:!1,keyboard:!0,prefixCls:n,onClose:c,visible:u,classNames:{wrapper:We},rootClassName:p,getContainer:v},N,{afterClose:Q}),ge.createElement("div",{className:"".concat(n,"-img-wrapper")},F?F(Ue,X({transform:ye,image:Je},V?{current:S}:{})):Ue)),ge.createElement(cit,{visible:u,transform:ye,maskTransitionName:H,closeIcon:m,getContainer:v,prefixCls:n,rootClassName:p,icons:h,countRender:_,showSwitch:G,showProgress:ie,current:S,count:C,scale:Ne,minScale:k,maxScale:P,toolbarRender:W,onActive:se,onZoomIn:K,onZoomOut:J,onRotateRight:be,onRotateLeft:Oe,onFlipX:Se,onFlipY:Ke,onClose:c,onReset:tt,zIndex:N.zIndex!==void 0?N.zIndex+1:void 0,image:Je}))},QF=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function bit(e){var t=f.useState({}),n=Le(t,2),r=n[0],i=n[1],o=f.useCallback(function(s,l){return i(function(c){return X(X({},c),{},ae({},s,l))}),function(){i(function(c){var u=X({},c);return delete u[s],u})}},[]),a=f.useMemo(function(){return e?e.map(function(s){if(typeof s=="string")return{data:{src:s}};var l={};return Object.keys(s).forEach(function(c){["src"].concat(pt(QF)).includes(c)&&(l[c]=s[c])}),{data:l}}):Object.keys(r).reduce(function(s,l){var c=r[l],u=c.canPreview,d=c.data;return u&&s.push({data:d,id:l}),s},[])},[e,r]);return[a,o,!!e]}var Sit=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],Cit=["src"],xit=function(t){var n,r=t.previewPrefixCls,i=r===void 0?"rc-image-preview":r,o=t.children,a=t.icons,s=a===void 0?{}:a,l=t.items,c=t.preview,u=t.fallback,d=ln(c)==="object"?c:{},h=d.visible,p=d.onVisibleChange,m=d.getContainer,v=d.current,y=d.movable,S=d.minScale,b=d.maxScale,C=d.countRender,_=d.closeIcon,T=d.onChange,x=d.onTransform,E=d.toolbarRender,k=d.imageRender,M=tn(d,Sit),P=bit(l),D=Le(P,3),R=D[0],A=D[1],H=D[2],F=er(0,{value:v}),z=Le(F,2),W=z[0],q=z[1],Z=f.useState(!1),N=Le(Z,2),B=N[0],V=N[1],G=((n=R[W])===null||n===void 0?void 0:n.data)||{},ie=G.src,ce=tn(G,Cit),fe=er(!!h,{value:h,onChange:function(Fe,Ce){p==null||p(Fe,Ce,W)}}),ee=Le(fe,2),ne=ee[0],ue=ee[1],ye=f.useState(null),me=Le(ye,2),pe=me[0],he=me[1],_e=f.useCallback(function(De,Fe,Ce,Te){var ke=H?R.findIndex(function(Pe){return Pe.data.src===Fe}):R.findIndex(function(Pe){return Pe.id===De});q(ke<0?0:ke),ue(!0),he({x:Ce,y:Te}),V(!0)},[R,H]);f.useEffect(function(){ne?B||q(0):V(!1)},[ne]);var le=function(Fe,Ce){q(Fe),T==null||T(Fe,Ce)},xe=function(){ue(!1),he(null)},we=f.useMemo(function(){return{register:A,onPreview:_e}},[A,_e]);return f.createElement(NE.Provider,{value:we},o,f.createElement(sSe,st({"aria-hidden":!ne,movable:y,visible:ne,prefixCls:i,closeIcon:_,onClose:xe,mousePosition:pe,imgCommonProps:ce,src:ie,fallback:u,icons:s,minScale:S,maxScale:b,getContainer:m,current:W,count:R.length,countRender:C,onTransform:x,toolbarRender:E,imageRender:k,onChange:le},M)))},fte=0;function wit(e,t){var n=f.useState(function(){return fte+=1,String(fte)}),r=Le(n,1),i=r[0],o=f.useContext(NE),a={data:t,canPreview:e};return f.useEffect(function(){if(o)return o.register(i,a)},[]),f.useEffect(function(){o&&o.register(i,a)},[e,t]),i}var _it=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],Eit=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],AW=function(t){var n=t.src,r=t.alt,i=t.onPreviewClose,o=t.prefixCls,a=o===void 0?"rc-image":o,s=t.previewPrefixCls,l=s===void 0?"".concat(a,"-preview"):s,c=t.placeholder,u=t.fallback,d=t.width,h=t.height,p=t.style,m=t.preview,v=m===void 0?!0:m,y=t.className,S=t.onClick,b=t.onError,C=t.wrapperClassName,_=t.wrapperStyle,T=t.rootClassName,x=tn(t,_it),E=c&&c!==!0,k=ln(v)==="object"?v:{},M=k.src,P=k.visible,D=P===void 0?void 0:P,R=k.onVisibleChange,A=R===void 0?i:R,H=k.getContainer,F=H===void 0?void 0:H,z=k.mask,W=k.maskClassName,q=k.movable,Z=k.icons,N=k.scaleStep,B=k.minScale,V=k.maxScale,G=k.imageRender,ie=k.toolbarRender,ce=tn(k,Eit),fe=M??n,ee=er(!!D,{value:D,onChange:A}),ne=Le(ee,2),ue=ne[0],ye=ne[1],me=aSe({src:n,isCustomPlaceholder:E,fallback:u}),pe=Le(me,3),he=pe[0],_e=pe[1],le=pe[2],xe=f.useState(null),we=Le(xe,2),De=we[0],Fe=we[1],Ce=f.useContext(NE),Te=!!v,ke=function(){ye(!1),Fe(null)},Pe=Re(a,C,T,ae({},"".concat(a,"-error"),le==="error")),Ne=f.useMemo(function(){var J={};return QF.forEach(function(be){t[be]!==void 0&&(J[be]=t[be])}),J},QF.map(function(J){return t[J]})),We=f.useMemo(function(){return X(X({},Ne),{},{src:fe})},[fe,Ne]),Q=wit(Te,We),K=function(be){var Oe=lit(be.target),Se=Oe.left,Ke=Oe.top;Ce?Ce.onPreview(Q,fe,Se,Ke):(Fe({x:Se,y:Ke}),ye(!0)),S==null||S(be)};return f.createElement(f.Fragment,null,f.createElement("div",st({},x,{className:Pe,onClick:Te?K:S,style:X({width:d,height:h},_)}),f.createElement("img",st({},Ne,{className:Re("".concat(a,"-img"),ae({},"".concat(a,"-img-placeholder"),c===!0),y),style:X({height:h},p),ref:he},_e,{width:d,height:h,onError:b})),le==="loading"&&f.createElement("div",{"aria-hidden":"true",className:"".concat(a,"-placeholder")},c),z&&Te&&f.createElement("div",{className:Re("".concat(a,"-mask"),W),style:{display:(p==null?void 0:p.display)==="none"?"none":void 0}},z)),!Ce&&Te&&f.createElement(sSe,st({"aria-hidden":!ue,visible:ue,prefixCls:l,onClose:ke,mousePosition:De,src:fe,alt:r,imageInfo:{width:d,height:h},fallback:u,getContainer:F,icons:Z,movable:q,scaleStep:N,minScale:B,maxScale:V,rootClassName:T,imageRender:G,imgCommonProps:Ne,toolbarRender:ie},ce)))};AW.PreviewGroup=xit;var Tit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},kit=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:Tit}))},Oit=f.forwardRef(kit),Pit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},Mit=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:Pit}))},Iit=f.forwardRef(Mit),$it={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},Rit=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:$it}))},hte=f.forwardRef(Rit),Ait={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},Nit=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:Ait}))},Dit=f.forwardRef(Nit),Lit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},Fit=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:Lit}))},jit=f.forwardRef(Fit);const ZF=e=>({position:e||"absolute",inset:0}),Bit=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:i,prefixCls:o,colorTextLightSolid:a}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:a,background:new xr("#000").setA(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${o}-mask-info`]:Object.assign(Object.assign({},Gl),{padding:`0 ${je(r)}`,[t]:{marginInlineEnd:i,svg:{verticalAlign:"baseline"}}})}},Hit=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:i,margin:o,paddingLG:a,previewOperationColorDisabled:s,previewOperationHoverColor:l,motionDurationSlow:c,iconCls:u,colorTextLightSolid:d}=e,h=new xr(n).setA(.1),p=h.clone().setA(.2);return{[`${t}-footer`]:{position:"fixed",bottom:i,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:o},[`${t}-close`]:{position:"fixed",top:i,right:{_skip_check_:!0,value:i},display:"flex",color:d,backgroundColor:h.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${c}`,"&:hover":{backgroundColor:p.toRgbString()},[`& > ${u}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${je(a)}`,backgroundColor:h.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${c}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${u}`]:{color:l},"&-disabled":{color:s,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${u}`]:{fontSize:e.previewOperationSize}}}}},zit=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:i,zIndexPopup:o,motionDurationSlow:a}=e,s=new xr(t).setA(.1),l=s.clone().setA(.2);return{[`${i}-switch-left, ${i}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(o).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:s.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${a}`,userSelect:"none","&:hover":{background:l.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${i}-switch-left`]:{insetInlineStart:e.marginSM},[`${i}-switch-right`]:{insetInlineEnd:e.marginSM}}},Uit=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:i}=e;return[{[`${i}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},ZF()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},ZF()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${i}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${i}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[Hit(e),zit(e)]}]},Wit=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},Bit(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},ZF())}}},Vit=e=>{const{previewCls:t}=e;return{[`${t}-root`]:KS(e,"zoom"),"&":MU(e,!0)}},Kit=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new xr(e.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new xr(e.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new xr(e.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5}),lSe=Tr("Image",e=>{const t=`${e.componentCls}-preview`,n=dr(e,{previewCls:t,modalMaskBg:new xr("#000").setA(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[Wit(n),Uit(n),Cve(dr(n,{componentCls:t})),Vit(n)]},Kit);var qit=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const cSe={rotateLeft:f.createElement(Oit,null),rotateRight:f.createElement(Iit,null),zoomIn:f.createElement(Dit,null),zoomOut:f.createElement(jit,null),close:f.createElement(th,null),left:f.createElement(Qb,null),right:f.createElement(hp,null),flipX:f.createElement(hte,null),flipY:f.createElement(hte,{rotate:90})},Git=e=>{var{previewPrefixCls:t,preview:n}=e,r=qit(e,["previewPrefixCls","preview"]);const{getPrefixCls:i}=f.useContext(hn),o=i("image",t),a=`${o}-preview`,s=i(),l=_i(o),[c,u,d]=lSe(o,l),[h]=Du("ImagePreview",typeof n=="object"?n.zIndex:void 0),p=f.useMemo(()=>{var m;if(n===!1)return n;const v=typeof n=="object"?n:{},y=Re(u,d,l,(m=v.rootClassName)!==null&&m!==void 0?m:"");return Object.assign(Object.assign({},v),{transitionName:os(s,"zoom",v.transitionName),maskTransitionName:os(s,"fade",v.maskTransitionName),rootClassName:y,zIndex:h})},[n]);return c(f.createElement(AW.PreviewGroup,Object.assign({preview:p,previewPrefixCls:a,icons:cSe},r)))};var pte=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const uSe=e=>{var t;const{prefixCls:n,preview:r,className:i,rootClassName:o,style:a}=e,s=pte(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:l,locale:c=Lc,getPopupContainer:u,image:d}=f.useContext(hn),h=l("image",n),p=l(),m=c.Image||Lc.Image,v=_i(h),[y,S,b]=lSe(h,v),C=Re(o,S,b,v),_=Re(i,S,d==null?void 0:d.className),[T]=Du("ImagePreview",typeof r=="object"?r.zIndex:void 0),x=f.useMemo(()=>{var k;if(r===!1)return r;const M=typeof r=="object"?r:{},{getContainer:P,closeIcon:D,rootClassName:R}=M,A=pte(M,["getContainer","closeIcon","rootClassName"]);return Object.assign(Object.assign({mask:f.createElement("div",{className:`${h}-mask-info`},f.createElement(iC,null),m==null?void 0:m.preview),icons:cSe},A),{rootClassName:Re(C,R),getContainer:P??u,transitionName:os(p,"zoom",M.transitionName),maskTransitionName:os(p,"fade",M.maskTransitionName),zIndex:T,closeIcon:D??((k=d==null?void 0:d.preview)===null||k===void 0?void 0:k.closeIcon)})},[r,m,(t=d==null?void 0:d.preview)===null||t===void 0?void 0:t.closeIcon]),E=Object.assign(Object.assign({},d==null?void 0:d.style),a);return y(f.createElement(AW,Object.assign({prefixCls:h,preview:x,rootClassName:C,className:_,style:E},s)))};uSe.PreviewGroup=Git;function Yit(e,t,n){return typeof n=="boolean"?n:e.length?!0:zo(t).some(i=>i.type===R0e)}var dSe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function dP(e){let{suffixCls:t,tagName:n,displayName:r}=e;return i=>f.forwardRef((a,s)=>f.createElement(i,Object.assign({ref:s,suffixCls:t,tagName:n},a)))}const NW=f.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:o}=e,a=dSe(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=f.useContext(hn),l=s("layout",n),[c,u,d]=$0e(l),h=r?`${l}-${r}`:l;return c(f.createElement(o,Object.assign({className:Re(n||h,i,u,d),ref:t},a)))}),Xit=f.forwardRef((e,t)=>{const{direction:n}=f.useContext(hn),[r,i]=f.useState([]),{prefixCls:o,className:a,rootClassName:s,children:l,hasSider:c,tagName:u,style:d}=e,h=dSe(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),p=Pr(h,["suffixCls"]),{getPrefixCls:m,layout:v}=f.useContext(hn),y=m("layout",o),S=Yit(r,l,c),[b,C,_]=$0e(y),T=Re(y,{[`${y}-has-sider`]:S,[`${y}-rtl`]:n==="rtl"},v==null?void 0:v.className,a,s,C,_),x=f.useMemo(()=>({siderHook:{addSider:E=>{i(k=>[].concat(pt(k),[E]))},removeSider:E=>{i(k=>k.filter(M=>M!==E))}}}),[]);return b(f.createElement(P0e.Provider,{value:x},f.createElement(u,Object.assign({ref:t,className:T,style:Object.assign(Object.assign({},v==null?void 0:v.style),d)},p),l)))}),Qit=dP({tagName:"div",displayName:"Layout"})(Xit),K9=dP({suffixCls:"header",tagName:"header",displayName:"Header"})(NW),Zit=dP({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(NW),Jit=dP({suffixCls:"content",tagName:"main",displayName:"Content"})(NW),Co=Qit;Co.Header=K9;Co.Footer=Zit;Co.Content=Jit;Co.Sider=R0e;Co._InternalSiderContext=QO;const DW=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t<arguments.length;t++){const n=t<0||arguments.length<=t?void 0:arguments[t];n&&Object.keys(n).forEach(r=>{const i=n[r];i!==void 0&&(e[r]=i)})}return e};var eot={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},tot=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:eot}))},mte=f.forwardRef(tot),not={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},rot=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:not}))},gte=f.forwardRef(rot),fSe={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},iot=[10,20,50,100],oot=function(t){var n=t.pageSizeOptions,r=n===void 0?iot:n,i=t.locale,o=t.changeSize,a=t.pageSize,s=t.goButton,l=t.quickGo,c=t.rootPrefixCls,u=t.disabled,d=t.buildOptionText,h=t.showSizeChanger,p=t.sizeChangerRender,m=ge.useState(""),v=Le(m,2),y=v[0],S=v[1],b=function(){return!y||Number.isNaN(y)?void 0:Number(y)},C=typeof d=="function"?d:function(R){return"".concat(R," ").concat(i.items_per_page)},_=function(A){S(A.target.value)},T=function(A){s||y===""||(S(""),!(A.relatedTarget&&(A.relatedTarget.className.indexOf("".concat(c,"-item-link"))>=0||A.relatedTarget.className.indexOf("".concat(c,"-item"))>=0))&&(l==null||l(b())))},x=function(A){y!==""&&(A.keyCode===Pt.ENTER||A.type==="click")&&(S(""),l==null||l(b()))},E=function(){return r.some(function(A){return A.toString()===a.toString()})?r:r.concat([a]).sort(function(A,H){var F=Number.isNaN(Number(A))?0:Number(A),z=Number.isNaN(Number(H))?0:Number(H);return F-z})},k="".concat(c,"-options");if(!h&&!l)return null;var M=null,P=null,D=null;return h&&p&&(M=p({disabled:u,size:a,onSizeChange:function(A){o==null||o(Number(A))},"aria-label":i.page_size,className:"".concat(k,"-size-changer"),options:E().map(function(R){return{label:C(R),value:R}})})),l&&(s&&(D=typeof s=="boolean"?ge.createElement("button",{type:"button",onClick:x,onKeyUp:x,disabled:u,className:"".concat(k,"-quick-jumper-button")},i.jump_to_confirm):ge.createElement("span",{onClick:x,onKeyUp:x},s)),P=ge.createElement("div",{className:"".concat(k,"-quick-jumper")},i.jump_to,ge.createElement("input",{disabled:u,type:"text",value:y,onChange:_,onKeyUp:x,onBlur:T,"aria-label":i.page}),i.page,D)),ge.createElement("li",{className:k},M,P)},Bx=function(t){var n,r=t.rootPrefixCls,i=t.page,o=t.active,a=t.className,s=t.showTitle,l=t.onClick,c=t.onKeyPress,u=t.itemRender,d="".concat(r,"-item"),h=Re(d,"".concat(d,"-").concat(i),(n={},ae(n,"".concat(d,"-active"),o),ae(n,"".concat(d,"-disabled"),!i),n),a),p=function(){l(i)},m=function(S){c(S,l,i)},v=u(i,"page",ge.createElement("a",{rel:"nofollow"},i));return v?ge.createElement("li",{title:s?String(i):null,className:h,onClick:p,onKeyDown:m,tabIndex:0},v):null},aot=function(t,n,r){return r};function vte(){}function yte(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Yg(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var sot=function(t){var n,r=t.prefixCls,i=r===void 0?"rc-pagination":r,o=t.selectPrefixCls,a=o===void 0?"rc-select":o,s=t.className,l=t.current,c=t.defaultCurrent,u=c===void 0?1:c,d=t.total,h=d===void 0?0:d,p=t.pageSize,m=t.defaultPageSize,v=m===void 0?10:m,y=t.onChange,S=y===void 0?vte:y,b=t.hideOnSinglePage,C=t.align,_=t.showPrevNextJumpers,T=_===void 0?!0:_,x=t.showQuickJumper,E=t.showLessItems,k=t.showTitle,M=k===void 0?!0:k,P=t.onShowSizeChange,D=P===void 0?vte:P,R=t.locale,A=R===void 0?fSe:R,H=t.style,F=t.totalBoundaryShowSizeChanger,z=F===void 0?50:F,W=t.disabled,q=t.simple,Z=t.showTotal,N=t.showSizeChanger,B=N===void 0?h>z:N,V=t.sizeChangerRender,G=t.pageSizeOptions,ie=t.itemRender,ce=ie===void 0?aot:ie,fe=t.jumpPrevIcon,ee=t.jumpNextIcon,ne=t.prevIcon,ue=t.nextIcon,ye=ge.useRef(null),me=er(10,{value:p,defaultValue:v}),pe=Le(me,2),he=pe[0],_e=pe[1],le=er(1,{value:l,defaultValue:u,postState:function(oe){return Math.max(1,Math.min(oe,Yg(void 0,he,h)))}}),xe=Le(le,2),we=xe[0],De=xe[1],Fe=ge.useState(we),Ce=Le(Fe,2),Te=Ce[0],ke=Ce[1];f.useEffect(function(){ke(we)},[we]);var Pe=Math.max(1,we-(E?3:5)),Ne=Math.min(Yg(void 0,he,h),we+(E?3:5));function We(j,oe){var Ae=j||ge.createElement("button",{type:"button","aria-label":oe,className:"".concat(i,"-item-link")});return typeof j=="function"&&(Ae=ge.createElement(j,X({},t))),Ae}function Q(j){var oe=j.target.value,Ae=Yg(void 0,he,h),Ge;return oe===""?Ge=oe:Number.isNaN(Number(oe))?Ge=Te:oe>=Ae?Ge=Ae:Ge=Number(oe),Ge}function K(j){return yte(j)&&j!==we&&yte(h)&&h>0}var J=h>he?x:!1;function be(j){(j.keyCode===Pt.UP||j.keyCode===Pt.DOWN)&&j.preventDefault()}function Oe(j){var oe=Q(j);switch(oe!==Te&&ke(oe),j.keyCode){case Pt.ENTER:tt(oe);break;case Pt.UP:tt(oe-1);break;case Pt.DOWN:tt(oe+1);break}}function Se(j){tt(Q(j))}function Ke(j){var oe=Yg(j,he,h),Ae=we>oe&&oe!==0?oe:we;_e(j),ke(Ae),D==null||D(we,j),De(Ae),S==null||S(Ae,j)}function tt(j){if(K(j)&&!W){var oe=Yg(void 0,he,h),Ae=j;return j>oe?Ae=oe:j<1&&(Ae=1),Ae!==Te&&ke(Ae),De(Ae),S==null||S(Ae,he),Ae}return we}var se=we>1,ze=we<Yg(void 0,he,h);function Ye(){se&&tt(we-1)}function Ue(){ze&&tt(we+1)}function Je(){tt(Pe)}function Ze(){tt(Ne)}function rt(j,oe){if(j.key==="Enter"||j.charCode===Pt.ENTER||j.keyCode===Pt.ENTER){for(var Ae=arguments.length,Ge=new Array(Ae>2?Ae-2:0),ft=2;ft<Ae;ft++)Ge[ft-2]=arguments[ft];oe.apply(void 0,Ge)}}function qt(j){rt(j,Ye)}function St(j){rt(j,Ue)}function Ot(j){rt(j,Je)}function Bt(j){rt(j,Ze)}function Dt(j){var oe=ce(j,"prev",We(ne,"prev page"));return ge.isValidElement(oe)?ge.cloneElement(oe,{disabled:!se}):oe}function an(j){var oe=ce(j,"next",We(ue,"next page"));return ge.isValidElement(oe)?ge.cloneElement(oe,{disabled:!ze}):oe}function Vt(j){(j.type==="click"||j.keyCode===Pt.ENTER)&&tt(Te)}var Kt=null,Qt=Bi(t,{aria:!0,data:!0}),et=Z&&ge.createElement("li",{className:"".concat(i,"-total-text")},Z(h,[h===0?0:(we-1)*he+1,we*he>h?h:we*he])),ot=null,Qe=Yg(void 0,he,h);if(b&&h<=he)return null;var ut=[],Nt={rootPrefixCls:i,onClick:tt,onKeyPress:rt,showTitle:M,itemRender:ce,page:-1},Lt=we-1>0?we-1:0,Zt=we+1<Qe?we+1:Qe,Wt=x&&x.goButton,At=ln(q)==="object"?q.readOnly:!q,$t=Wt,Gt=null;q&&(Wt&&(typeof Wt=="boolean"?$t=ge.createElement("button",{type:"button",onClick:Vt,onKeyUp:Vt},A.jump_to_confirm):$t=ge.createElement("span",{onClick:Vt,onKeyUp:Vt},Wt),$t=ge.createElement("li",{title:M?"".concat(A.jump_to).concat(we,"/").concat(Qe):null,className:"".concat(i,"-simple-pager")},$t)),Gt=ge.createElement("li",{title:M?"".concat(we,"/").concat(Qe):null,className:"".concat(i,"-simple-pager")},At?Te:ge.createElement("input",{type:"text",value:Te,disabled:W,onKeyDown:be,onKeyUp:Oe,onChange:Oe,onBlur:Se,size:3}),ge.createElement("span",{className:"".concat(i,"-slash")},"/"),Qe));var Ft=E?1:2;if(Qe<=3+Ft*2){Qe||ut.push(ge.createElement(Bx,st({},Nt,{key:"noPager",page:1,className:"".concat(i,"-item-disabled")})));for(var cn=1;cn<=Qe;cn+=1)ut.push(ge.createElement(Bx,st({},Nt,{key:cn,page:cn,active:we===cn})))}else{var _t=E?A.prev_3:A.prev_5,jt=E?A.next_3:A.next_5,nn=ce(Pe,"jump-prev",We(fe,"prev page")),Ht=ce(Ne,"jump-next",We(ee,"next page"));T&&(Kt=nn?ge.createElement("li",{title:M?_t:null,key:"prev",onClick:Je,tabIndex:0,onKeyDown:Ot,className:Re("".concat(i,"-jump-prev"),ae({},"".concat(i,"-jump-prev-custom-icon"),!!fe))},nn):null,ot=Ht?ge.createElement("li",{title:M?jt:null,key:"next",onClick:Ze,tabIndex:0,onKeyDown:Bt,className:Re("".concat(i,"-jump-next"),ae({},"".concat(i,"-jump-next-custom-icon"),!!ee))},Ht):null);var Tt=Math.max(1,we-Ft),gt=Math.min(we+Ft,Qe);we-1<=Ft&&(gt=1+Ft*2),Qe-we<=Ft&&(Tt=Qe-Ft*2);for(var Ve=Tt;Ve<=gt;Ve+=1)ut.push(ge.createElement(Bx,st({},Nt,{key:Ve,page:Ve,active:we===Ve})));if(we-1>=Ft*2&&we!==3&&(ut[0]=ge.cloneElement(ut[0],{className:Re("".concat(i,"-item-after-jump-prev"),ut[0].props.className)}),ut.unshift(Kt)),Qe-we>=Ft*2&&we!==Qe-2){var Yt=ut[ut.length-1];ut[ut.length-1]=ge.cloneElement(Yt,{className:Re("".concat(i,"-item-before-jump-next"),Yt.props.className)}),ut.push(ot)}Tt!==1&&ut.unshift(ge.createElement(Bx,st({},Nt,{key:1,page:1}))),gt!==Qe&&ut.push(ge.createElement(Bx,st({},Nt,{key:Qe,page:Qe})))}var mt=Dt(Lt);if(mt){var Mt=!se||!Qe;mt=ge.createElement("li",{title:M?A.prev_page:null,onClick:Ye,tabIndex:Mt?null:0,onKeyDown:qt,className:Re("".concat(i,"-prev"),ae({},"".concat(i,"-disabled"),Mt)),"aria-disabled":Mt},mt)}var zt=an(Zt);if(zt){var Dn,Qn;q?(Dn=!ze,Qn=se?0:null):(Dn=!ze||!Qe,Qn=Dn?null:0),zt=ge.createElement("li",{title:M?A.next_page:null,onClick:Ue,tabIndex:Qn,onKeyDown:St,className:Re("".concat(i,"-next"),ae({},"".concat(i,"-disabled"),Dn)),"aria-disabled":Dn},zt)}var O=Re(i,s,(n={},ae(n,"".concat(i,"-start"),C==="start"),ae(n,"".concat(i,"-center"),C==="center"),ae(n,"".concat(i,"-end"),C==="end"),ae(n,"".concat(i,"-simple"),q),ae(n,"".concat(i,"-disabled"),W),n));return ge.createElement("ul",st({className:O,style:H,ref:ye},Qt),et,mt,q?Gt:ut,zt,ge.createElement(oot,{locale:A,rootPrefixCls:i,disabled:W,selectPrefixCls:a,changeSize:Ke,pageSize:he,pageSizeOptions:G,quickGo:J?tt:null,goButton:$t,showSizeChanger:B,sizeChangerRender:V}))};const lot=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},cot=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:je(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:je(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:je(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`
|
||
&${t}-mini ${t}-prev ${t}-item-link,
|
||
&${t}-mini ${t}-next ${t}-item-link
|
||
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:je(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:je(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:je(e.itemSizeSM),input:Object.assign(Object.assign({},wW(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},uot=e=>{const{componentCls:t}=e;return{[`
|
||
&${t}-simple ${t}-prev,
|
||
&${t}-simple ${t}-next
|
||
`]:{height:e.itemSizeSM,lineHeight:je(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:je(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${je(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${je(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${je(e.inputOutlineOffset)} 0 ${je(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},dot=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
|
||
${t}-prev,
|
||
${t}-jump-prev,
|
||
${t}-jump-next
|
||
`]:{marginInlineEnd:e.marginXS},[`
|
||
${t}-prev,
|
||
${t}-next,
|
||
${t}-jump-prev,
|
||
${t}-jump-next
|
||
`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:je(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${je(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:je(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},ME(e)),yW(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},oP(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},fot=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:je(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${je(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${je(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},hot=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},$r(e)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:je(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),fot(e)),dot(e)),uot(e)),cot(e)),lot(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},pot=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},ml(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Fd(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},Fd(e))}}}},hSe=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},PE(e)),pSe=e=>dr(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},OE(e)),mot=Tr("Pagination",e=>{const t=pSe(e);return[hot(t),pot(t)]},hSe),got=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${je(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},vot=US(["Pagination","bordered"],e=>{const t=pSe(e);return[got(t)]},hSe);function bte(e){return f.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var yot=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const mSe=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:i,rootClassName:o,style:a,size:s,locale:l,responsive:c,showSizeChanger:u,selectComponentClass:d,pageSizeOptions:h}=e,p=yot(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:m}=VO(c),[,v]=ta(),{getPrefixCls:y,direction:S,pagination:b={}}=f.useContext(hn),C=y("pagination",n),[_,T,x]=mot(C),E=$o(s),k=E==="small"||!!(m&&!E&&c),[M]=ks("Pagination",Lge),P=Object.assign(Object.assign({},M),l),[D,R]=bte(u),[A,H]=bte(b.showSizeChanger),F=D??A,z=R??H,W=d||ys,q=f.useMemo(()=>h?h.map(ie=>Number(ie)):void 0,[h]),Z=ie=>{var ce;const{disabled:fe,size:ee,onSizeChange:ne,"aria-label":ue,className:ye,options:me}=ie,{className:pe,onChange:he}=z||{},_e=(ce=me.find(le=>String(le.value)===String(ee)))===null||ce===void 0?void 0:ce.value;return f.createElement(W,Object.assign({disabled:fe,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:le=>le.parentNode,"aria-label":ue,options:me},z,{value:_e,onChange:(le,xe)=>{ne==null||ne(le),he==null||he(le,xe)},size:k?"small":"middle",className:Re(ye,pe)}))},N=f.useMemo(()=>{const ie=f.createElement("span",{className:`${C}-item-ellipsis`},"•••"),ce=f.createElement("button",{className:`${C}-item-link`,type:"button",tabIndex:-1},S==="rtl"?f.createElement(hp,null):f.createElement(Qb,null)),fe=f.createElement("button",{className:`${C}-item-link`,type:"button",tabIndex:-1},S==="rtl"?f.createElement(Qb,null):f.createElement(hp,null)),ee=f.createElement("a",{className:`${C}-item-link`},f.createElement("div",{className:`${C}-item-container`},S==="rtl"?f.createElement(gte,{className:`${C}-item-link-icon`}):f.createElement(mte,{className:`${C}-item-link-icon`}),ie)),ne=f.createElement("a",{className:`${C}-item-link`},f.createElement("div",{className:`${C}-item-container`},S==="rtl"?f.createElement(mte,{className:`${C}-item-link-icon`}):f.createElement(gte,{className:`${C}-item-link-icon`}),ie));return{prevIcon:ce,nextIcon:fe,jumpPrevIcon:ee,jumpNextIcon:ne}},[S,C]),B=y("select",r),V=Re({[`${C}-${t}`]:!!t,[`${C}-mini`]:k,[`${C}-rtl`]:S==="rtl",[`${C}-bordered`]:v.wireframe},b==null?void 0:b.className,i,o,T,x),G=Object.assign(Object.assign({},b==null?void 0:b.style),a);return _(f.createElement(f.Fragment,null,v.wireframe&&f.createElement(vot,{prefixCls:C}),f.createElement(sot,Object.assign({},N,p,{style:G,prefixCls:C,selectPrefixCls:B,className:V,locale:P,pageSizeOptions:q,showSizeChanger:F,sizeChangerRender:Z}))))},q9=100,gSe=q9/5,vSe=q9/2-gSe/2,VR=vSe*2*Math.PI,Ste=50,Cte=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return f.createElement("circle",{className:Re(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:vSe,cx:Ste,cy:Ste,strokeWidth:gSe,style:n})},bot=e=>{let{percent:t,prefixCls:n}=e;const r=`${n}-dot`,i=`${r}-holder`,o=`${i}-hidden`,[a,s]=f.useState(!1);Er(()=>{t!==0&&s(!0)},[t!==0]);const l=Math.max(Math.min(t,100),0);if(!a)return null;const c={strokeDashoffset:`${VR/4}`,strokeDasharray:`${VR*l/100} ${VR*(100-l)/100}`};return f.createElement("span",{className:Re(i,`${r}-progress`,l<=0&&o)},f.createElement("svg",{viewBox:`0 0 ${q9} ${q9}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l},f.createElement(Cte,{dotClassName:r,hasCircleCls:!0}),f.createElement(Cte,{dotClassName:r,style:c})))};function Sot(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,i=`${r}-holder`,o=`${i}-hidden`;return f.createElement(f.Fragment,null,f.createElement("span",{className:Re(i,n>0&&o)},f.createElement("span",{className:Re(r,`${t}-dot-spin`)},[1,2,3,4].map(a=>f.createElement("i",{className:`${t}-dot-item`,key:a})))),f.createElement(bot,{prefixCls:t,percent:n}))}function Cot(e){const{prefixCls:t,indicator:n,percent:r}=e,i=`${t}-dot`;return n&&f.isValidElement(n)?Io(n,{className:Re(n.props.className,i),percent:r}):f.createElement(Sot,{prefixCls:t,percent:r})}const xot=new Mr("antSpinMove",{to:{opacity:1}}),wot=new Mr("antRotate",{to:{transform:"rotate(405deg)"}}),_ot=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},$r(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",top:"50%",transform:"translate(-50%, -50%)",insetInlineStart:"50%"},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:xot,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:wot,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(r=>`${r} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},Eot=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},Tot=Tr("Spin",e=>{const t=dr(e,{spinDotDefault:e.colorTextDescription});return[_ot(t)]},Eot),kot=200,xte=[[30,.05],[70,.03],[96,.01]];function Oot(e,t){const[n,r]=f.useState(0),i=f.useRef(null),o=t==="auto";return f.useEffect(()=>(o&&e&&(r(0),i.current=setInterval(()=>{r(a=>{const s=100-a;for(let l=0;l<xte.length;l+=1){const[c,u]=xte[l];if(a<=c)return a+s*u}return a})},kot)),()=>{clearInterval(i.current)}),[o,e]),o?n:t}var Pot=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};let ySe;function Mot(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const Sl=e=>{var t;const{prefixCls:n,spinning:r=!0,delay:i=0,className:o,rootClassName:a,size:s="default",tip:l,wrapperClassName:c,style:u,children:d,fullscreen:h=!1,indicator:p,percent:m}=e,v=Pot(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:y,direction:S,spin:b}=f.useContext(hn),C=y("spin",n),[_,T,x]=Tot(C),[E,k]=f.useState(()=>r&&!Mot(r,i)),M=Oot(E,m);f.useEffect(()=>{if(r){const z=IJe(i,()=>{k(!0)});return z(),()=>{var W;(W=z==null?void 0:z.cancel)===null||W===void 0||W.call(z)}}k(!1)},[i,r]);const P=f.useMemo(()=>typeof d<"u"&&!h,[d,h]),D=Re(C,b==null?void 0:b.className,{[`${C}-sm`]:s==="small",[`${C}-lg`]:s==="large",[`${C}-spinning`]:E,[`${C}-show-text`]:!!l,[`${C}-rtl`]:S==="rtl"},o,!h&&a,T,x),R=Re(`${C}-container`,{[`${C}-blur`]:E}),A=(t=p??(b==null?void 0:b.indicator))!==null&&t!==void 0?t:ySe,H=Object.assign(Object.assign({},b==null?void 0:b.style),u),F=f.createElement("div",Object.assign({},v,{style:H,className:D,"aria-live":"polite","aria-busy":E}),f.createElement(Cot,{prefixCls:C,indicator:A,percent:M}),l&&(P||h)?f.createElement("div",{className:`${C}-text`},l):null);return _(P?f.createElement("div",Object.assign({},v,{className:Re(`${C}-nested-loading`,c,T,x)}),E&&f.createElement("div",{key:"loading"},F),f.createElement("div",{className:R,key:"container"},d)):h?f.createElement("div",{className:Re(`${C}-fullscreen`,{[`${C}-fullscreen-show`]:E},a,T,x)},F):F)};Sl.setDefaultIndicator=e=>{ySe=e};const LW=ge.createContext({});LW.Consumer;var bSe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Iot=e=>{var{prefixCls:t,className:n,avatar:r,title:i,description:o}=e,a=bSe(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:s}=f.useContext(hn),l=s("list",t),c=Re(`${l}-item-meta`,n),u=ge.createElement("div",{className:`${l}-item-meta-content`},i&&ge.createElement("h4",{className:`${l}-item-meta-title`},i),o&&ge.createElement("div",{className:`${l}-item-meta-description`},o));return ge.createElement("div",Object.assign({},a,{className:c}),r&&ge.createElement("div",{className:`${l}-item-meta-avatar`},r),(i||o)&&u)},$ot=ge.forwardRef((e,t)=>{const{prefixCls:n,children:r,actions:i,extra:o,styles:a,className:s,classNames:l,colStyle:c}=e,u=bSe(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:d,itemLayout:h}=f.useContext(LW),{getPrefixCls:p,list:m}=f.useContext(hn),v=E=>{var k,M;return Re((M=(k=m==null?void 0:m.item)===null||k===void 0?void 0:k.classNames)===null||M===void 0?void 0:M[E],l==null?void 0:l[E])},y=E=>{var k,M;return Object.assign(Object.assign({},(M=(k=m==null?void 0:m.item)===null||k===void 0?void 0:k.styles)===null||M===void 0?void 0:M[E]),a==null?void 0:a[E])},S=()=>{let E=!1;return f.Children.forEach(r,k=>{typeof k=="string"&&(E=!0)}),E&&f.Children.count(r)>1},b=()=>h==="vertical"?!!o:!S(),C=p("list",n),_=i&&i.length>0&&ge.createElement("ul",{className:Re(`${C}-item-action`,v("actions")),key:"actions",style:y("actions")},i.map((E,k)=>ge.createElement("li",{key:`${C}-item-action-${k}`},E,k!==i.length-1&&ge.createElement("em",{className:`${C}-item-action-split`})))),T=d?"div":"li",x=ge.createElement(T,Object.assign({},u,d?{}:{ref:t},{className:Re(`${C}-item`,{[`${C}-item-no-flex`]:!b()},s)}),h==="vertical"&&o?[ge.createElement("div",{className:`${C}-item-main`,key:"content"},r,_),ge.createElement("div",{className:Re(`${C}-item-extra`,v("extra")),key:"extra",style:y("extra")},o)]:[r,_,Io(o,{key:"extra"})]);return d?ge.createElement(wv,{ref:t,flex:1,style:c},x):x}),SSe=$ot;SSe.Meta=Iot;const Rot=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:i,itemPaddingSM:o,itemPaddingLG:a,marginLG:s,borderRadiusLG:l}=e;return{[t]:{border:`${je(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:l,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${je(i)} ${je(s)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:o}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:a}}}},Aot=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:i,marginSM:o,margin:a}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:i}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:o}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${je(a)}`}}}}}},Not=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:i,paddingSM:o,marginLG:a,padding:s,itemPadding:l,colorPrimary:c,itemPaddingSM:u,itemPaddingLG:d,paddingXS:h,margin:p,colorText:m,colorTextDescription:v,motionDurationSlow:y,lineWidth:S,headerBg:b,footerBg:C,emptyTextPadding:_,metaMarginBottom:T,avatarMarginRight:x,titleMarginBottom:E,descriptionFontSize:k}=e;return{[t]:Object.assign(Object.assign({},$r(e)),{position:"relative","*":{outline:"none"},[`${t}-header`]:{background:b},[`${t}-footer`]:{background:C},[`${t}-header, ${t}-footer`]:{paddingBlock:o},[`${t}-pagination`]:{marginBlockStart:a,[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:i,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:l,color:m,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:x},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:m},[`${t}-item-meta-title`]:{margin:`0 0 ${je(e.marginXXS)} 0`,color:m,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:m,transition:`all ${y}`,"&:hover":{color:c}}},[`${t}-item-meta-description`]:{color:v,fontSize:k,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${je(h)}`,color:v,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:S,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${je(s)} 0`,color:v,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:_,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:p,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:a},[`${t}-item-meta`]:{marginBlockEnd:T,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:E,color:m,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:s,marginInlineStart:"auto","> li":{padding:`0 ${je(s)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${je(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${je(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${je(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${je(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:d},[`${t}-sm ${t}-item`]:{padding:u},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},Dot=e=>({contentWidth:220,itemPadding:`${je(e.paddingContentVertical)} 0`,itemPaddingSM:`${je(e.paddingContentVerticalSM)} ${je(e.paddingContentHorizontal)}`,itemPaddingLG:`${je(e.paddingContentVerticalLG)} ${je(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),Lot=Tr("List",e=>{const t=dr(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[Not(t),Rot(t),Aot(t)]},Dot);var Fot=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function jot(e,t){var{pagination:n=!1,prefixCls:r,bordered:i=!1,split:o=!0,className:a,rootClassName:s,style:l,children:c,itemLayout:u,loadMore:d,grid:h,dataSource:p=[],size:m,header:v,footer:y,loading:S=!1,rowKey:b,renderItem:C,locale:_}=e,T=Fot(e,["pagination","prefixCls","bordered","split","className","rootClassName","style","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]);const x=n&&typeof n=="object"?n:{},[E,k]=f.useState(x.defaultCurrent||1),[M,P]=f.useState(x.defaultPageSize||10),{getPrefixCls:D,renderEmpty:R,direction:A,list:H}=f.useContext(hn),F={current:1,total:0},z=Te=>(ke,Pe)=>{var Ne;k(ke),P(Pe),n&&((Ne=n==null?void 0:n[Te])===null||Ne===void 0||Ne.call(n,ke,Pe))},W=z("onChange"),q=z("onShowSizeChange"),Z=(Te,ke)=>{if(!C)return null;let Pe;return typeof b=="function"?Pe=b(Te):b?Pe=Te[b]:Pe=Te.key,Pe||(Pe=`list-item-${ke}`),f.createElement(f.Fragment,{key:Pe},C(Te,ke))},N=()=>!!(d||n||y),B=D("list",r),[V,G,ie]=Lot(B);let ce=S;typeof ce=="boolean"&&(ce={spinning:ce});const fe=!!(ce!=null&&ce.spinning),ee=$o(m);let ne="";switch(ee){case"large":ne="lg";break;case"small":ne="sm";break}const ue=Re(B,{[`${B}-vertical`]:u==="vertical",[`${B}-${ne}`]:ne,[`${B}-split`]:o,[`${B}-bordered`]:i,[`${B}-loading`]:fe,[`${B}-grid`]:!!h,[`${B}-something-after-last-item`]:N(),[`${B}-rtl`]:A==="rtl"},H==null?void 0:H.className,a,s,G,ie),ye=DW(F,{total:p.length,current:E,pageSize:M},n||{}),me=Math.ceil(ye.total/ye.pageSize);ye.current>me&&(ye.current=me);const pe=n&&f.createElement("div",{className:Re(`${B}-pagination`)},f.createElement(mSe,Object.assign({align:"end"},ye,{onChange:W,onShowSizeChange:q})));let he=pt(p);n&&p.length>(ye.current-1)*ye.pageSize&&(he=pt(p).splice((ye.current-1)*ye.pageSize,ye.pageSize));const _e=Object.keys(h||{}).some(Te=>["xs","sm","md","lg","xl","xxl"].includes(Te)),le=VO(_e),xe=f.useMemo(()=>{for(let Te=0;Te<ig.length;Te+=1){const ke=ig[Te];if(le[ke])return ke}},[le]),we=f.useMemo(()=>{if(!h)return;const Te=xe&&h[xe]?h[xe]:h.column;if(Te)return{width:`${100/Te}%`,maxWidth:`${100/Te}%`}},[JSON.stringify(h),xe]);let De=fe&&f.createElement("div",{style:{minHeight:53}});if(he.length>0){const Te=he.map((ke,Pe)=>Z(ke,Pe));De=h?f.createElement(AE,{gutter:h.gutter},f.Children.map(Te,ke=>f.createElement("div",{key:ke==null?void 0:ke.key,style:we},ke))):f.createElement("ul",{className:`${B}-items`},Te)}else!c&&!fe&&(De=f.createElement("div",{className:`${B}-empty-text`},(_==null?void 0:_.emptyText)||(R==null?void 0:R("List"))||f.createElement(YS,{componentName:"List"})));const Fe=ye.position||"bottom",Ce=f.useMemo(()=>({grid:h,itemLayout:u}),[JSON.stringify(h),u]);return V(f.createElement(LW.Provider,{value:Ce},f.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},H==null?void 0:H.style),l),className:ue},T),(Fe==="top"||Fe==="both")&&pe,v&&f.createElement("div",{className:`${B}-header`},v),f.createElement(Sl,Object.assign({},ce),De,c),y&&f.createElement("div",{className:`${B}-footer`},y),d||(Fe==="bottom"||Fe==="both")&&pe)))}const Bot=f.forwardRef(jot),JF=Bot;JF.Item=SSe;function Hot(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)&&e==null?[]:Array.isArray(e)?e:[e]}let au=null,P1=e=>e(),m_=[],g_={};function wte(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:i}=g_,o=(e==null?void 0:e())||document.body;return{getContainer:()=>o,duration:t,rtl:n,maxCount:r,top:i}}const zot=ge.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:i}=f.useContext(hn),o=g_.prefixCls||i("message"),a=f.useContext($F),[s,l]=D1e(Object.assign(Object.assign(Object.assign({},n),{prefixCls:o}),a.message));return ge.useImperativeHandle(t,()=>{const c=Object.assign({},s);return Object.keys(c).forEach(u=>{c[u]=function(){return r(),s[u].apply(s,arguments)}}),{instance:c,sync:r}}),l}),Uot=ge.forwardRef((e,t)=>{const[n,r]=ge.useState(wte),i=()=>{r(wte)};ge.useEffect(i,[]);const o=S1e(),a=o.getRootPrefixCls(),s=o.getIconPrefixCls(),l=o.getTheme(),c=ge.createElement(zot,{ref:t,sync:i,messageConfig:n});return ge.createElement(ar,{prefixCls:a,iconPrefixCls:s,theme:l},o.holderRender?o.holderRender(c):c)});function fP(){if(!au){const e=document.createDocumentFragment(),t={fragment:e};au=t,P1(()=>{TU()(ge.createElement(Uot,{ref:r=>{const{instance:i,sync:o}=r||{};Promise.resolve().then(()=>{!t.instance&&i&&(t.instance=i,t.sync=o,fP())})}}),e)});return}au.instance&&(m_.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{P1(()=>{const r=au.instance.open(Object.assign(Object.assign({},g_),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":P1(()=>{au==null||au.instance.destroy(e.key)});break;default:P1(()=>{var r;const i=(r=au.instance)[t].apply(r,pt(e.args));i==null||i.then(e.resolve),e.setCloseFn(i)})}}),m_=[])}function Wot(e){g_=Object.assign(Object.assign({},g_),e),P1(()=>{var t;(t=au==null?void 0:au.sync)===null||t===void 0||t.call(au)})}function Vot(e){const t=EU(n=>{let r;const i={type:"open",config:e,resolve:n,setCloseFn:o=>{r=o}};return m_.push(i),()=>{r?P1(()=>{r()}):i.skipped=!0}});return fP(),t}function Kot(e,t){const n=EU(r=>{let i;const o={type:e,args:t,resolve:r,setCloseFn:a=>{i=a}};return m_.push(o),()=>{i?P1(()=>{i()}):o.skipped=!0}});return fP(),n}const qot=e=>{m_.push({type:"destroy",key:e}),fP()},Got=["success","info","warning","error","loading"],Yot={open:Vot,destroy:qot,config:Wot,useMessage:L1e,_InternalPanelDoNotUseOrYouWillBeFired:$He},xs=Yot;Got.forEach(e=>{xs[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Kot(e,n)}});var Xot=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Qot=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:i,type:o,title:a,children:s,footer:l}=e,c=Xot(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:u}=f.useContext(hn),d=u(),h=t||u("modal"),p=_i(d),[m,v,y]=_ve(h,p),S=`${h}-confirm`;let b={};return o?b={closable:i??!1,title:"",footer:"",children:f.createElement(Tve,Object.assign({},e,{prefixCls:h,confirmPrefixCls:S,rootPrefixCls:d,content:s}))}:b={closable:i??!0,title:a,footer:l!==null&&f.createElement(bve,Object.assign({},e)),children:s},m(f.createElement(ive,Object.assign({prefixCls:h,className:Re(v,`${h}-pure-panel`,o&&S,o&&`${S}-${o}`,n,y,p)},c,{closeIcon:yve(h,r),closable:i},b)))},Zot=Fve(Qot);function CSe(e){return CE(Mve(e))}const Ma=Eve;Ma.useModal=Nve;Ma.info=function(t){return CE(Ive(t))};Ma.success=function(t){return CE($ve(t))};Ma.error=function(t){return CE(Rve(t))};Ma.warning=CSe;Ma.warn=CSe;Ma.confirm=function(t){return CE(Ave(t))};Ma.destroyAll=function(){for(;k1.length;){const t=k1.pop();t&&t()}};Ma.config=VVe;Ma._InternalPanelDoNotUseOrYouWillBeFired=Zot;const Jot=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:i,colorText:o,colorWarning:a,marginXXS:s,marginXS:l,fontSize:c,fontWeightStrong:u,colorTextHeading:d}=e;return{[t]:{zIndex:i,[`&${r}-popover`]:{fontSize:c},[`${t}-message`]:{marginBottom:l,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:a,fontSize:c,lineHeight:1,marginInlineEnd:l},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:s,color:o}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:l}}}}},eat=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},xSe=Tr("Popconfirm",e=>Jot(e),eat,{resetStyle:!1});var tat=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const wSe=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:i,description:o,cancelText:a,okText:s,okType:l="primary",icon:c=f.createElement(gg,null),showCancel:u=!0,close:d,onConfirm:h,onCancel:p,onPopupClick:m}=e,{getPrefixCls:v}=f.useContext(hn),[y]=ks("Popconfirm",Lc.Popconfirm),S=Xb(i),b=Xb(o);return f.createElement("div",{className:`${t}-inner-content`,onClick:m},f.createElement("div",{className:`${t}-message`},c&&f.createElement("span",{className:`${t}-message-icon`},c),f.createElement("div",{className:`${t}-message-text`},S&&f.createElement("div",{className:`${t}-title`},S),b&&f.createElement("div",{className:`${t}-description`},b))),f.createElement("div",{className:`${t}-buttons`},u&&f.createElement(pr,Object.assign({onClick:p,size:"small"},r),a||(y==null?void 0:y.cancelText)),f.createElement(NU,{buttonProps:Object.assign(Object.assign({size:"small"},kU(l)),n),actionFn:h,close:d,prefixCls:v("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s||(y==null?void 0:y.okText))))},nat=e=>{const{prefixCls:t,placement:n,className:r,style:i}=e,o=tat(e,["prefixCls","placement","className","style"]),{getPrefixCls:a}=f.useContext(hn),s=a("popconfirm",t),[l]=xSe(s);return l(f.createElement(p0e,{placement:n,className:Re(s,r),style:i,content:f.createElement(wSe,Object.assign({prefixCls:s},o))}))};var rat=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const iat=f.forwardRef((e,t)=>{var n,r,i,o,a,s;const{prefixCls:l,placement:c="top",trigger:u="click",okType:d="primary",icon:h=f.createElement(gg,null),children:p,overlayClassName:m,onOpenChange:v,onVisibleChange:y,overlayStyle:S,styles:b,classNames:C}=e,_=rat(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:T,popconfirm:x}=f.useContext(hn),[E,k]=er(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),M=(q,Z)=>{k(q,!0),y==null||y(q),v==null||v(q,Z)},P=q=>{M(!1,q)},D=q=>{var Z;return(Z=e.onConfirm)===null||Z===void 0?void 0:Z.call(void 0,q)},R=q=>{var Z;M(!1,q),(Z=e.onCancel)===null||Z===void 0||Z.call(void 0,q)},A=(q,Z)=>{const{disabled:N=!1}=e;N||M(q,Z)},H=T("popconfirm",l),F=Re(H,m,(i=x==null?void 0:x.classNames)===null||i===void 0?void 0:i.root,C==null?void 0:C.root),z=Re((o=x==null?void 0:x.classNames)===null||o===void 0?void 0:o.body,C==null?void 0:C.body),[W]=xSe(H);return W(f.createElement(Ou,Object.assign({},Pr(_,["title"]),{trigger:u,placement:c,onOpenChange:A,open:E,ref:t,classNames:{root:F,body:z},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},(a=x==null?void 0:x.styles)===null||a===void 0?void 0:a.root),x==null?void 0:x.style),S),b==null?void 0:b.root),body:Object.assign(Object.assign({},(s=x==null?void 0:x.styles)===null||s===void 0?void 0:s.body),b==null?void 0:b.body)},content:f.createElement(wSe,Object.assign({okType:d,icon:h},e,{prefixCls:H,close:P,onConfirm:D,onCancel:R})),"data-popover-inject":!0}),p))}),_Se=iat;_Se._InternalPanelDoNotUseOrYouWillBeFired=nat;var oat={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},aat=function(){var t=f.useRef([]),n=f.useRef(null);return f.useEffect(function(){var r=Date.now(),i=!1;t.current.forEach(function(o){if(o){i=!0;var a=o.style;a.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(a.transitionDuration="0s, 0s")}}),i&&(n.current=Date.now())}),t.current},_te=0,sat=pl();function lat(){var e;return sat?(e=_te,_te+=1):e="TEST_OR_SSR",e}const cat=function(e){var t=f.useState(),n=Le(t,2),r=n[0],i=n[1];return f.useEffect(function(){i("rc_progress_".concat(lat()))},[]),e||r};var Ete=function(t){var n=t.bg,r=t.children;return f.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function Tte(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n),i="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(i)})}var uat=f.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,i=e.gradientId,o=e.radius,a=e.style,s=e.ptg,l=e.strokeLinecap,c=e.strokeWidth,u=e.size,d=e.gapDegree,h=r&&ln(r)==="object",p=h?"#FFF":void 0,m=u/2,v=f.createElement("circle",{className:"".concat(n,"-circle-path"),r:o,cx:m,cy:m,stroke:p,strokeLinecap:l,strokeWidth:c,opacity:s===0?0:1,style:a,ref:t});if(!h)return v;var y="".concat(i,"-conic"),S=d?"".concat(180+d/2,"deg"):"0deg",b=Tte(r,(360-d)/360),C=Tte(r,1),_="conic-gradient(from ".concat(S,", ").concat(b.join(", "),")"),T="linear-gradient(to ".concat(d?"bottom":"top",", ").concat(C.join(", "),")");return f.createElement(f.Fragment,null,f.createElement("mask",{id:y},v),f.createElement("foreignObject",{x:0,y:0,width:u,height:u,mask:"url(#".concat(y,")")},f.createElement(Ete,{bg:T},f.createElement(Ete,{bg:_}))))}),E2=100,KR=function(t,n,r,i,o,a,s,l,c,u){var d=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,h=r/100*360*((360-a)/360),p=a===0?0:{bottom:0,top:180,left:90,right:-90}[s],m=(100-i)/100*n;c==="round"&&i!==100&&(m+=u/2,m>=n&&(m=n-.01));var v=E2/2;return{stroke:typeof l=="string"?l:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:m+d,transform:"rotate(".concat(o+h+p,"deg)"),transformOrigin:"".concat(v,"px ").concat(v,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},dat=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function kte(e){var t=e??[];return Array.isArray(t)?t:[t]}var fat=function(t){var n=X(X({},oat),t),r=n.id,i=n.prefixCls,o=n.steps,a=n.strokeWidth,s=n.trailWidth,l=n.gapDegree,c=l===void 0?0:l,u=n.gapPosition,d=n.trailColor,h=n.strokeLinecap,p=n.style,m=n.className,v=n.strokeColor,y=n.percent,S=tn(n,dat),b=E2/2,C=cat(r),_="".concat(C,"-gradient"),T=b-a/2,x=Math.PI*2*T,E=c>0?90+c/2:-90,k=x*((360-c)/360),M=ln(o)==="object"?o:{count:o,gap:2},P=M.count,D=M.gap,R=kte(y),A=kte(v),H=A.find(function(B){return B&&ln(B)==="object"}),F=H&&ln(H)==="object",z=F?"butt":h,W=KR(x,k,0,100,E,c,u,d,z,a),q=aat(),Z=function(){var V=0;return R.map(function(G,ie){var ce=A[ie]||A[A.length-1],fe=KR(x,k,V,G,E,c,u,ce,z,a);return V+=G,f.createElement(uat,{key:ie,color:ce,ptg:G,radius:T,prefixCls:i,gradientId:_,style:fe,strokeLinecap:z,strokeWidth:a,gapDegree:c,ref:function(ne){q[ie]=ne},size:E2})}).reverse()},N=function(){var V=Math.round(P*(R[0]/100)),G=100/P,ie=0;return new Array(P).fill(null).map(function(ce,fe){var ee=fe<=V-1?A[0]:d,ne=ee&&ln(ee)==="object"?"url(#".concat(_,")"):void 0,ue=KR(x,k,ie,G,E,c,u,ee,"butt",a,D);return ie+=(k-ue.strokeDashoffset+D)*100/k,f.createElement("circle",{key:fe,className:"".concat(i,"-circle-path"),r:T,cx:b,cy:b,stroke:ne,strokeWidth:a,opacity:1,style:ue,ref:function(me){q[fe]=me}})})};return f.createElement("svg",st({className:Re("".concat(i,"-circle"),m),viewBox:"0 0 ".concat(E2," ").concat(E2),style:p,id:r,role:"presentation"},S),!P&&f.createElement("circle",{className:"".concat(i,"-circle-trail"),r:T,cx:b,cy:b,stroke:d,strokeLinecap:z,strokeWidth:s||a,style:W}),P?N():Z())};function Xm(e){return!e||e<0?0:e>100?100:e}function G9(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}const hat=e=>{let{percent:t,success:n,successPercent:r}=e;const i=Xm(G9({success:n,successPercent:r}));return[i,Xm(Xm(t)-i)]},pat=e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||G1.green,n||null]},hP=(e,t,n)=>{var r,i,o,a;let s=-1,l=-1;if(t==="step"){const c=n.steps,u=n.strokeWidth;typeof e=="string"||typeof e>"u"?(s=e==="small"?2:14,l=u??8):typeof e=="number"?[s,l]=[e,e]:[s=14,l=8]=Array.isArray(e)?e:[e.width,e.height],s*=c}else if(t==="line"){const c=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?l=c||(e==="small"?6:8):typeof e=="number"?[s,l]=[e,e]:[s=-1,l=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[s,l]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[s,l]=[e,e]:Array.isArray(e)&&(s=(i=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&i!==void 0?i:120,l=(a=(o=e[0])!==null&&o!==void 0?o:e[1])!==null&&a!==void 0?a:120));return[s,l]},mat=3,gat=e=>mat/e*100,vat=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:i,gapDegree:o,width:a=120,type:s,children:l,success:c,size:u=a,steps:d}=e,[h,p]=hP(u,"circle");let{strokeWidth:m}=e;m===void 0&&(m=Math.max(gat(h),6));const v={width:h,height:p,fontSize:h*.15+6},y=f.useMemo(()=>{if(o||o===0)return o;if(s==="dashboard")return 75},[o,s]),S=hat(e),b=i||s==="dashboard"&&"bottom"||void 0,C=Object.prototype.toString.call(e.strokeColor)==="[object Object]",_=pat({success:c,strokeColor:e.strokeColor}),T=Re(`${t}-inner`,{[`${t}-circle-gradient`]:C}),x=f.createElement(fat,{steps:d,percent:d?S[1]:S,strokeWidth:m,trailWidth:m,strokeColor:d?_[1]:_,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:y,gapPosition:b}),E=h<=20,k=f.createElement("div",{className:T,style:v},x,!E&&l);return E?f.createElement(ea,{title:l},k):k},Y9="--progress-line-stroke-color",ESe="--progress-percent",Ote=e=>{const t=e?"100%":"-100%";return new Mr(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},yat=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},$r(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${Y9})`]},height:"100%",width:`calc(1 / var(${ESe}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${je(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:Ote(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:Ote(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},bat=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},Sat=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},Cat=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},xat=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),wat=Tr("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=dr(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[yat(n),bat(n),Sat(n),Cat(n)]},xat);var _at=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Eat=e=>{let t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));Number.isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(n=>{let{key:r,value:i}=n;return`${i} ${r}%`}).join(", ")},Tat=(e,t)=>{const{from:n=G1.blue,to:r=G1.blue,direction:i=t==="rtl"?"to left":"to right"}=e,o=_at(e,["from","to","direction"]);if(Object.keys(o).length!==0){const s=Eat(o),l=`linear-gradient(${i}, ${s})`;return{background:l,[Y9]:l}}const a=`linear-gradient(${i}, ${n}, ${r})`;return{background:a,[Y9]:a}},kat=e=>{const{prefixCls:t,direction:n,percent:r,size:i,strokeWidth:o,strokeColor:a,strokeLinecap:s="round",children:l,trailColor:c=null,percentPosition:u,success:d}=e,{align:h,type:p}=u,m=a&&typeof a!="string"?Tat(a,n):{[Y9]:a,background:a},v=s==="square"||s==="butt"?0:void 0,y=i??[-1,o||(i==="small"?6:8)],[S,b]=hP(y,"line",{strokeWidth:o}),C={backgroundColor:c||void 0,borderRadius:v},_=Object.assign(Object.assign({width:`${Xm(r)}%`,height:b,borderRadius:v},m),{[ESe]:Xm(r)/100}),T=G9(e),x={width:`${Xm(T)}%`,height:b,borderRadius:v,backgroundColor:d==null?void 0:d.strokeColor},E={width:S<0?"100%":S},k=f.createElement("div",{className:`${t}-inner`,style:C},f.createElement("div",{className:Re(`${t}-bg`,`${t}-bg-${p}`),style:_},p==="inner"&&l),T!==void 0&&f.createElement("div",{className:`${t}-success-bg`,style:x})),M=p==="outer"&&h==="start",P=p==="outer"&&h==="end";return p==="outer"&&h==="center"?f.createElement("div",{className:`${t}-layout-bottom`},k,l):f.createElement("div",{className:`${t}-outer`,style:E},M&&l,k,P&&l)},Oat=e=>{const{size:t,steps:n,percent:r=0,strokeWidth:i=8,strokeColor:o,trailColor:a=null,prefixCls:s,children:l}=e,c=Math.round(n*(r/100)),d=t??[t==="small"?2:14,i],[h,p]=hP(d,"step",{steps:n,strokeWidth:i}),m=h/n,v=new Array(n);for(let y=0;y<n;y++){const S=Array.isArray(o)?o[y]:o;v[y]=f.createElement("div",{key:y,className:Re(`${s}-steps-item`,{[`${s}-steps-item-active`]:y<=c-1}),style:{backgroundColor:y<=c-1?S:a,width:m,height:p}})}return f.createElement("div",{className:`${s}-steps-outer`},v,l)};var Pat=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Mat=["normal","exception","active","success"],TSe=f.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,steps:o,strokeColor:a,percent:s=0,size:l="default",showInfo:c=!0,type:u="line",status:d,format:h,style:p,percentPosition:m={}}=e,v=Pat(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:y="end",type:S="outer"}=m,b=Array.isArray(a)?a[0]:a,C=typeof a=="string"||Array.isArray(a)?a:void 0,_=f.useMemo(()=>{if(b){const Z=typeof b=="string"?b:Object.values(b)[0];return new xr(Z).isLight()}return!1},[a]),T=f.useMemo(()=>{var Z,N;const B=G9(e);return parseInt(B!==void 0?(Z=B??0)===null||Z===void 0?void 0:Z.toString():(N=s??0)===null||N===void 0?void 0:N.toString(),10)},[s,e.success,e.successPercent]),x=f.useMemo(()=>!Mat.includes(d)&&T>=100?"success":d||"normal",[d,T]),{getPrefixCls:E,direction:k,progress:M}=f.useContext(hn),P=E("progress",n),[D,R,A]=wat(P),H=u==="line",F=H&&!o,z=f.useMemo(()=>{if(!c)return null;const Z=G9(e);let N;const B=h||(G=>`${G}%`),V=H&&_&&S==="inner";return S==="inner"||h||x!=="exception"&&x!=="success"?N=B(Xm(s),Xm(Z)):x==="exception"?N=H?f.createElement(eh,null):f.createElement(th,null):x==="success"&&(N=H?f.createElement(qv,null):f.createElement(ep,null)),f.createElement("span",{className:Re(`${P}-text`,{[`${P}-text-bright`]:V,[`${P}-text-${y}`]:F,[`${P}-text-${S}`]:F}),title:typeof N=="string"?N:void 0},N)},[c,s,T,x,u,P,h]);let W;u==="line"?W=o?f.createElement(Oat,Object.assign({},e,{strokeColor:C,prefixCls:P,steps:typeof o=="object"?o.count:o}),z):f.createElement(kat,Object.assign({},e,{strokeColor:b,prefixCls:P,direction:k,percentPosition:{align:y,type:S}}),z):(u==="circle"||u==="dashboard")&&(W=f.createElement(vat,Object.assign({},e,{strokeColor:b,prefixCls:P,progressStatus:x}),z));const q=Re(P,`${P}-status-${x}`,{[`${P}-${u==="dashboard"&&"circle"||u}`]:u!=="line",[`${P}-inline-circle`]:u==="circle"&&hP(l,"circle")[0]<=20,[`${P}-line`]:F,[`${P}-line-align-${y}`]:F,[`${P}-line-position-${S}`]:F,[`${P}-steps`]:o,[`${P}-show-info`]:c,[`${P}-${l}`]:typeof l=="string",[`${P}-rtl`]:k==="rtl"},M==null?void 0:M.className,r,i,R,A);return D(f.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},M==null?void 0:M.style),p),className:q,role:"progressbar","aria-valuenow":T,"aria-valuemin":0,"aria-valuemax":100},Pr(v,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),W))});function Rf(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=fO(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return a=c.done,c},e:function(c){s=!0,o=c},f:function(){try{a||n.return==null||n.return()}finally{if(s)throw o}}}}var oC,DE;function Dl(e,t,n){if(t<0||t>31||e>>>t)throw new RangeError("Value out of range");for(var r=t-1;r>=0;r--)n.push(e>>>r&1)}function yh(e,t){return(e>>>t&1)!=0}function lc(e){if(!e)throw new Error("Assertion error")}var Af=function(){function e(t,n){hi(this,e),ae(this,"modeBits",void 0),ae(this,"numBitsCharCount",void 0),this.modeBits=t,this.numBitsCharCount=n}return pi(e,[{key:"numCharCountBits",value:function(n){return this.numBitsCharCount[Math.floor((n+7)/17)]}}]),e}();oC=Af;ae(Af,"NUMERIC",new oC(1,[10,12,14]));ae(Af,"ALPHANUMERIC",new oC(2,[9,11,13]));ae(Af,"BYTE",new oC(4,[8,16,16]));ae(Af,"KANJI",new oC(8,[8,10,12]));ae(Af,"ECI",new oC(7,[0,0,0]));var vu=pi(function e(t,n){hi(this,e),ae(this,"ordinal",void 0),ae(this,"formatBits",void 0),this.ordinal=t,this.formatBits=n});DE=vu;ae(vu,"LOW",new DE(0,1));ae(vu,"MEDIUM",new DE(1,0));ae(vu,"QUARTILE",new DE(2,3));ae(vu,"HIGH",new DE(3,2));var Z1=function(){function e(t,n,r){if(hi(this,e),ae(this,"mode",void 0),ae(this,"numChars",void 0),ae(this,"bitData",void 0),this.mode=t,this.numChars=n,this.bitData=r,n<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}return pi(e,[{key:"getData",value:function(){return this.bitData.slice()}}],[{key:"makeBytes",value:function(n){var r=[],i=Rf(n),o;try{for(i.s();!(o=i.n()).done;){var a=o.value;Dl(a,8,r)}}catch(s){i.e(s)}finally{i.f()}return new e(Af.BYTE,n.length,r)}},{key:"makeNumeric",value:function(n){if(!e.isNumeric(n))throw new RangeError("String contains non-numeric characters");for(var r=[],i=0;i<n.length;){var o=Math.min(n.length-i,3);Dl(parseInt(n.substring(i,i+o),10),o*3+1,r),i+=o}return new e(Af.NUMERIC,n.length,r)}},{key:"makeAlphanumeric",value:function(n){if(!e.isAlphanumeric(n))throw new RangeError("String contains unencodable characters in alphanumeric mode");var r=[],i;for(i=0;i+2<=n.length;i+=2){var o=e.ALPHANUMERIC_CHARSET.indexOf(n.charAt(i))*45;o+=e.ALPHANUMERIC_CHARSET.indexOf(n.charAt(i+1)),Dl(o,11,r)}return i<n.length&&Dl(e.ALPHANUMERIC_CHARSET.indexOf(n.charAt(i)),6,r),new e(Af.ALPHANUMERIC,n.length,r)}},{key:"makeSegments",value:function(n){return n==""?[]:e.isNumeric(n)?[e.makeNumeric(n)]:e.isAlphanumeric(n)?[e.makeAlphanumeric(n)]:[e.makeBytes(e.toUtf8ByteArray(n))]}},{key:"makeEci",value:function(n){var r=[];if(n<0)throw new RangeError("ECI assignment value out of range");if(n<128)Dl(n,8,r);else if(n<16384)Dl(2,2,r),Dl(n,14,r);else if(n<1e6)Dl(6,3,r),Dl(n,21,r);else throw new RangeError("ECI assignment value out of range");return new e(Af.ECI,0,r)}},{key:"isNumeric",value:function(n){return e.NUMERIC_REGEX.test(n)}},{key:"isAlphanumeric",value:function(n){return e.ALPHANUMERIC_REGEX.test(n)}},{key:"getTotalBits",value:function(n,r){var i=0,o=Rf(n),a;try{for(o.s();!(a=o.n()).done;){var s=a.value,l=s.mode.numCharCountBits(r);if(s.numChars>=1<<l)return 1/0;i+=4+l+s.bitData.length}}catch(c){o.e(c)}finally{o.f()}return i}},{key:"toUtf8ByteArray",value:function(n){for(var r=encodeURI(n),i=[],o=0;o<r.length;o++)r.charAt(o)!="%"?i.push(r.charCodeAt(o)):(i.push(parseInt(r.substring(o+1,o+3),16)),o+=2);return i}}]),e}();ae(Z1,"NUMERIC_REGEX",/^[0-9]*$/);ae(Z1,"ALPHANUMERIC_REGEX",/^[A-Z0-9 $%*+.\/:-]*$/);ae(Z1,"ALPHANUMERIC_CHARSET","0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:");var Mp=function(){function e(t,n,r,i){hi(this,e),ae(this,"size",void 0),ae(this,"mask",void 0),ae(this,"modules",[]),ae(this,"isFunction",[]),ae(this,"version",void 0),ae(this,"errorCorrectionLevel",void 0);var o=i;if(this.version=t,this.errorCorrectionLevel=n,t<e.MIN_VERSION||t>e.MAX_VERSION)throw new RangeError("Version value out of range");if(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=t*4+17;for(var a=[],s=0;s<this.size;s++)a.push(!1);for(var l=0;l<this.size;l++)this.modules.push(a.slice()),this.isFunction.push(a.slice());this.drawFunctionPatterns();var c=this.addEccAndInterleave(r);if(this.drawCodewords(c),o==-1)for(var u=1e9,d=0;d<8;d++){this.applyMask(d),this.drawFormatBits(d);var h=this.getPenaltyScore();h<u&&(o=d,u=h),this.applyMask(d)}lc(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}return pi(e,[{key:"getModule",value:function(n,r){return 0<=n&&n<this.size&&0<=r&&r<this.size&&this.modules[r][n]}},{key:"getModules",value:function(){return this.modules}},{key:"drawFunctionPatterns",value:function(){for(var n=0;n<this.size;n++)this.setFunctionModule(6,n,n%2==0),this.setFunctionModule(n,6,n%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var r=this.getAlignmentPatternPositions(),i=r.length,o=0;o<i;o++)for(var a=0;a<i;a++)o==0&&a==0||o==0&&a==i-1||o==i-1&&a==0||this.drawAlignmentPattern(r[o],r[a]);this.drawFormatBits(0),this.drawVersion()}},{key:"drawFormatBits",value:function(n){for(var r=this.errorCorrectionLevel.formatBits<<3|n,i=r,o=0;o<10;o++)i=i<<1^(i>>>9)*1335;var a=(r<<10|i)^21522;lc(a>>>15==0);for(var s=0;s<=5;s++)this.setFunctionModule(8,s,yh(a,s));this.setFunctionModule(8,7,yh(a,6)),this.setFunctionModule(8,8,yh(a,7)),this.setFunctionModule(7,8,yh(a,8));for(var l=9;l<15;l++)this.setFunctionModule(14-l,8,yh(a,l));for(var c=0;c<8;c++)this.setFunctionModule(this.size-1-c,8,yh(a,c));for(var u=8;u<15;u++)this.setFunctionModule(8,this.size-15+u,yh(a,u));this.setFunctionModule(8,this.size-8,!0)}},{key:"drawVersion",value:function(){if(!(this.version<7)){for(var n=this.version,r=0;r<12;r++)n=n<<1^(n>>>11)*7973;var i=this.version<<12|n;lc(i>>>18==0);for(var o=0;o<18;o++){var a=yh(i,o),s=this.size-11+o%3,l=Math.floor(o/3);this.setFunctionModule(s,l,a),this.setFunctionModule(l,s,a)}}}},{key:"drawFinderPattern",value:function(n,r){for(var i=-4;i<=4;i++)for(var o=-4;o<=4;o++){var a=Math.max(Math.abs(o),Math.abs(i)),s=n+o,l=r+i;0<=s&&s<this.size&&0<=l&&l<this.size&&this.setFunctionModule(s,l,a!=2&&a!=4)}}},{key:"drawAlignmentPattern",value:function(n,r){for(var i=-2;i<=2;i++)for(var o=-2;o<=2;o++)this.setFunctionModule(n+o,r+i,Math.max(Math.abs(o),Math.abs(i))!=1)}},{key:"setFunctionModule",value:function(n,r,i){this.modules[r][n]=i,this.isFunction[r][n]=!0}},{key:"addEccAndInterleave",value:function(n){var r=this.version,i=this.errorCorrectionLevel;if(n.length!=e.getNumDataCodewords(r,i))throw new RangeError("Invalid argument");for(var o=e.NUM_ERROR_CORRECTION_BLOCKS[i.ordinal][r],a=e.ECC_CODEWORDS_PER_BLOCK[i.ordinal][r],s=Math.floor(e.getNumRawDataModules(r)/8),l=o-s%o,c=Math.floor(s/o),u=[],d=e.reedSolomonComputeDivisor(a),h=0,p=0;h<o;h++){var m=n.slice(p,p+c-a+(h<l?0:1));p+=m.length;var v=e.reedSolomonComputeRemainder(m,d);h<l&&m.push(0),u.push(m.concat(v))}for(var y=[],S=function(_){u.forEach(function(T,x){(_!=c-a||x>=l)&&y.push(T[_])})},b=0;b<u[0].length;b++)S(b);return lc(y.length==s),y}},{key:"drawCodewords",value:function(n){if(n.length!=Math.floor(e.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var r=0,i=this.size-1;i>=1;i-=2){i==6&&(i=5);for(var o=0;o<this.size;o++)for(var a=0;a<2;a++){var s=i-a,l=(i+1&2)==0,c=l?this.size-1-o:o;!this.isFunction[c][s]&&r<n.length*8&&(this.modules[c][s]=yh(n[r>>>3],7-(r&7)),r++)}}lc(r==n.length*8)}},{key:"applyMask",value:function(n){if(n<0||n>7)throw new RangeError("Mask value out of range");for(var r=0;r<this.size;r++)for(var i=0;i<this.size;i++){var o=void 0;switch(n){case 0:o=(i+r)%2==0;break;case 1:o=r%2==0;break;case 2:o=i%3==0;break;case 3:o=(i+r)%3==0;break;case 4:o=(Math.floor(i/3)+Math.floor(r/2))%2==0;break;case 5:o=i*r%2+i*r%3==0;break;case 6:o=(i*r%2+i*r%3)%2==0;break;case 7:o=((i+r)%2+i*r%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[r][i]&&o&&(this.modules[r][i]=!this.modules[r][i])}}},{key:"getPenaltyScore",value:function(){for(var n=0,r=0;r<this.size;r++){for(var i=!1,o=0,a=[0,0,0,0,0,0,0],s=0;s<this.size;s++)this.modules[r][s]==i?(o++,o==5?n+=e.PENALTY_N1:o>5&&n++):(this.finderPenaltyAddHistory(o,a),i||(n+=this.finderPenaltyCountPatterns(a)*e.PENALTY_N3),i=this.modules[r][s],o=1);n+=this.finderPenaltyTerminateAndCount(i,o,a)*e.PENALTY_N3}for(var l=0;l<this.size;l++){for(var c=!1,u=0,d=[0,0,0,0,0,0,0],h=0;h<this.size;h++)this.modules[h][l]==c?(u++,u==5?n+=e.PENALTY_N1:u>5&&n++):(this.finderPenaltyAddHistory(u,d),c||(n+=this.finderPenaltyCountPatterns(d)*e.PENALTY_N3),c=this.modules[h][l],u=1);n+=this.finderPenaltyTerminateAndCount(c,u,d)*e.PENALTY_N3}for(var p=0;p<this.size-1;p++)for(var m=0;m<this.size-1;m++){var v=this.modules[p][m];v==this.modules[p][m+1]&&v==this.modules[p+1][m]&&v==this.modules[p+1][m+1]&&(n+=e.PENALTY_N2)}var y=0,S=Rf(this.modules),b;try{for(S.s();!(b=S.n()).done;){var C=b.value;y=C.reduce(function(x,E){return x+(E?1:0)},y)}}catch(x){S.e(x)}finally{S.f()}var _=this.size*this.size,T=Math.ceil(Math.abs(y*20-_*10)/_)-1;return lc(0<=T&&T<=9),n+=T*e.PENALTY_N4,lc(0<=n&&n<=2568888),n}},{key:"getAlignmentPatternPositions",value:function(){if(this.version==1)return[];for(var n=Math.floor(this.version/7)+2,r=this.version==32?26:Math.ceil((this.version*4+4)/(n*2-2))*2,i=[6],o=this.size-7;i.length<n;o-=r)i.splice(1,0,o);return i}},{key:"finderPenaltyCountPatterns",value:function(n){var r=n[1];lc(r<=this.size*3);var i=r>0&&n[2]==r&&n[3]==r*3&&n[4]==r&&n[5]==r;return(i&&n[0]>=r*4&&n[6]>=r?1:0)+(i&&n[6]>=r*4&&n[0]>=r?1:0)}},{key:"finderPenaltyTerminateAndCount",value:function(n,r,i){var o=r;return n&&(this.finderPenaltyAddHistory(o,i),o=0),o+=this.size,this.finderPenaltyAddHistory(o,i),this.finderPenaltyCountPatterns(i)}},{key:"finderPenaltyAddHistory",value:function(n,r){var i=n;r[0]==0&&(i+=this.size),r.pop(),r.unshift(i)}}],[{key:"encodeText",value:function(n,r){var i=Z1.makeSegments(n);return e.encodeSegments(i,r)}},{key:"encodeBinary",value:function(n,r){var i=Z1.makeBytes(n);return e.encodeSegments([i],r)}},{key:"encodeSegments",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:40,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;if(!(e.MIN_VERSION<=i&&i<=o&&o<=e.MAX_VERSION)||a<-1||a>7)throw new RangeError("Invalid value");var l,c;for(l=i;;l++){var u=e.getNumDataCodewords(l,r)*8,d=Z1.getTotalBits(n,l);if(d<=u){c=d;break}if(l>=o)throw new RangeError("Data too long")}for(var h=r,p=0,m=[vu.MEDIUM,vu.QUARTILE,vu.HIGH];p<m.length;p++){var v=m[p];s&&c<=e.getNumDataCodewords(l,v)*8&&(h=v)}var y=[],S=Rf(n),b;try{for(S.s();!(b=S.n()).done;){var C=b.value;Dl(C.mode.modeBits,4,y),Dl(C.numChars,C.mode.numCharCountBits(l),y);var _=Rf(C.getData()),T;try{for(_.s();!(T=_.n()).done;){var x=T.value;y.push(x)}}catch(P){_.e(P)}finally{_.f()}}}catch(P){S.e(P)}finally{S.f()}lc(y.length==c);var E=e.getNumDataCodewords(l,h)*8;lc(y.length<=E),Dl(0,Math.min(4,E-y.length),y),Dl(0,(8-y.length%8)%8,y),lc(y.length%8==0);for(var k=236;y.length<E;k^=253)Dl(k,8,y);for(var M=[];M.length*8<y.length;)M.push(0);return y.forEach(function(P,D){return M[D>>>3]|=P<<7-(D&7)}),new e(l,h,M,a)}},{key:"getNumRawDataModules",value:function(n){if(n<e.MIN_VERSION||n>e.MAX_VERSION)throw new RangeError("Version number out of range");var r=(16*n+128)*n+64;if(n>=2){var i=Math.floor(n/7)+2;r-=(25*i-10)*i-55,n>=7&&(r-=36)}return lc(208<=r&&r<=29648),r}},{key:"getNumDataCodewords",value:function(n,r){return Math.floor(e.getNumRawDataModules(n)/8)-e.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n]*e.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n]}},{key:"reedSolomonComputeDivisor",value:function(n){if(n<1||n>255)throw new RangeError("Degree out of range");for(var r=[],i=0;i<n-1;i++)r.push(0);r.push(1);for(var o=1,a=0;a<n;a++){for(var s=0;s<r.length;s++)r[s]=e.reedSolomonMultiply(r[s],o),s+1<r.length&&(r[s]^=r[s+1]);o=e.reedSolomonMultiply(o,2)}return r}},{key:"reedSolomonComputeRemainder",value:function(n,r){var i=r.map(function(){return 0}),o=Rf(n),a;try{var s=function(){var c=a.value,u=c^i.shift();i.push(0),r.forEach(function(d,h){return i[h]^=e.reedSolomonMultiply(d,u)})};for(o.s();!(a=o.n()).done;)s()}catch(l){o.e(l)}finally{o.f()}return i}},{key:"reedSolomonMultiply",value:function(n,r){if(n>>>8||r>>>8)throw new RangeError("Byte out of range");for(var i=0,o=7;o>=0;o--)i=i<<1^(i>>>7)*285,i^=(r>>>o&1)*n;return lc(i>>>8==0),i}}]),e}();ae(Mp,"MIN_VERSION",1);ae(Mp,"MAX_VERSION",40);ae(Mp,"PENALTY_N1",3);ae(Mp,"PENALTY_N2",3);ae(Mp,"PENALTY_N3",40);ae(Mp,"PENALTY_N4",10);ae(Mp,"ECC_CODEWORDS_PER_BLOCK",[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]]);ae(Mp,"NUM_ERROR_CORRECTION_BLOCKS",[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]]);var Iat={L:vu.LOW,M:vu.MEDIUM,Q:vu.QUARTILE,H:vu.HIGH},kSe=128,OSe="L",PSe="#FFFFFF",MSe="#000000",ISe=!1,$Se=1,$at=4,Rat=0,Aat=.1;function RSe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=[];return e.forEach(function(r,i){var o=null;r.forEach(function(a,s){if(!a&&o!==null){n.push("M".concat(o+t," ").concat(i+t,"h").concat(s-o,"v1H").concat(o+t,"z")),o=null;return}if(s===r.length-1){if(!a)return;o===null?n.push("M".concat(s+t,",").concat(i+t," h1v1H").concat(s+t,"z")):n.push("M".concat(o+t,",").concat(i+t," h").concat(s+1-o,"v1H").concat(o+t,"z"));return}a&&o===null&&(o=s)})}),n.join("")}function ASe(e,t){return e.slice().map(function(n,r){return r<t.y||r>=t.y+t.h?n:n.map(function(i,o){return o<t.x||o>=t.x+t.w?i:!1})})}function Nat(e,t,n,r){if(r==null)return null;var i=e.length+n*2,o=Math.floor(t*Aat),a=i/t,s=(r.width||o)*a,l=(r.height||o)*a,c=r.x==null?e.length/2-s/2:r.x*a,u=r.y==null?e.length/2-l/2:r.y*a,d=r.opacity==null?1:r.opacity,h=null;if(r.excavate){var p=Math.floor(c),m=Math.floor(u),v=Math.ceil(s+c-p),y=Math.ceil(l+u-m);h={x:p,y:m,w:v,h:y}}var S=r.crossOrigin;return{x:c,y:u,h:l,w:s,excavation:h,opacity:d,crossOrigin:S}}function Dat(e,t){return t!=null?Math.floor(t):e?$at:Rat}var Lat=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}();function NSe(e){var t=e.value,n=e.level,r=e.minVersion,i=e.includeMargin,o=e.marginSize,a=e.imageSettings,s=e.size,l=f.useMemo(function(){var m=Z1.makeSegments(t);return Mp.encodeSegments(m,Iat[n],r)},[t,n,r]),c=f.useMemo(function(){var m=l.getModules(),v=Dat(i,o),y=m.length+v*2,S=Nat(m,s,v,a);return{cells:m,margin:v,numCells:y,calculatedImageSettings:S}},[l,s,a,i,o]),u=c.cells,d=c.margin,h=c.numCells,p=c.calculatedImageSettings;return{qrcode:l,margin:d,cells:u,numCells:h,calculatedImageSettings:p}}var Fat=["value","size","level","bgColor","fgColor","includeMargin","minVersion","marginSize","style","imageSettings"],DSe=ge.forwardRef(function(t,n){var r=t.value,i=t.size,o=i===void 0?kSe:i,a=t.level,s=a===void 0?OSe:a,l=t.bgColor,c=l===void 0?PSe:l,u=t.fgColor,d=u===void 0?MSe:u,h=t.includeMargin,p=h===void 0?ISe:h,m=t.minVersion,v=m===void 0?$Se:m,y=t.marginSize,S=t.style,b=t.imageSettings,C=tn(t,Fat),_=b==null?void 0:b.src,T=f.useRef(null),x=f.useRef(null),E=f.useCallback(function(q){T.current=q,typeof n=="function"?n(q):n&&(n.current=q)},[n]),k=f.useState(!1),M=Le(k,2),P=M[1],D=NSe({value:r,level:s,minVersion:v,includeMargin:p,marginSize:y,imageSettings:b,size:o}),R=D.margin,A=D.cells,H=D.numCells,F=D.calculatedImageSettings;f.useEffect(function(){if(T.current!=null){var q=T.current,Z=q.getContext("2d");if(!Z)return;var N=A,B=x.current,V=F!=null&&B!==null&&B.complete&&B.naturalHeight!==0&&B.naturalWidth!==0;V&&F.excavation!=null&&(N=ASe(A,F.excavation));var G=window.devicePixelRatio||1;q.height=q.width=o*G;var ie=o/H*G;Z.scale(ie,ie),Z.fillStyle=c,Z.fillRect(0,0,H,H),Z.fillStyle=d,Lat?Z.fill(new Path2D(RSe(N,R))):A.forEach(function(ce,fe){ce.forEach(function(ee,ne){ee&&Z.fillRect(ne+R,fe+R,1,1)})}),F&&(Z.globalAlpha=F.opacity),V&&Z.drawImage(B,F.x+R,F.y+R,F.w,F.h)}}),f.useEffect(function(){P(!1)},[_]);var z=X({height:o,width:o},S),W=null;return _!=null&&(W=ge.createElement("img",{src:_,key:_,style:{display:"none"},onLoad:function(){P(!0)},ref:x,crossOrigin:F==null?void 0:F.crossOrigin})),ge.createElement(ge.Fragment,null,ge.createElement("canvas",st({style:z,height:o,width:o,ref:E,role:"img"},C)),W)});DSe.displayName="QRCodeCanvas";var jat=["value","size","level","bgColor","fgColor","includeMargin","minVersion","title","marginSize","imageSettings"],LSe=ge.forwardRef(function(t,n){var r=t.value,i=t.size,o=i===void 0?kSe:i,a=t.level,s=a===void 0?OSe:a,l=t.bgColor,c=l===void 0?PSe:l,u=t.fgColor,d=u===void 0?MSe:u,h=t.includeMargin,p=h===void 0?ISe:h,m=t.minVersion,v=m===void 0?$Se:m,y=t.title,S=t.marginSize,b=t.imageSettings,C=tn(t,jat),_=NSe({value:r,level:s,minVersion:v,includeMargin:p,marginSize:S,imageSettings:b,size:o}),T=_.margin,x=_.cells,E=_.numCells,k=_.calculatedImageSettings,M=x,P=null;b!=null&&k!=null&&(k.excavation!=null&&(M=ASe(x,k.excavation)),P=ge.createElement("image",{href:b.src,height:k.h,width:k.w,x:k.x+T,y:k.y+T,preserveAspectRatio:"none",opacity:k.opacity,crossOrigin:k.crossOrigin}));var D=RSe(M,T);return ge.createElement("svg",st({height:o,width:o,viewBox:"0 0 ".concat(E," ").concat(E),ref:n,role:"img"},C),!!y&&ge.createElement("title",null,y),ge.createElement("path",{fill:c,d:"M0,0 h".concat(E,"v").concat(E,"H0z"),shapeRendering:"crispEdges"}),ge.createElement("path",{fill:d,d:D,shapeRendering:"crispEdges"}),P)});LSe.displayName="QRCodeSVG";var Bat={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z"}}]},name:"appstore",theme:"outlined"},Hat=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:Bat}))},FSe=f.forwardRef(Hat),zat={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},Uat=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:zat}))},Wat=f.forwardRef(Uat),Vat={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},Kat=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:Vat}))},qat=f.forwardRef(Kat),Gat={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},Yat=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:Gat}))},Xat=f.forwardRef(Yat),Qat={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},Zat=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:Qat}))},Jat=f.forwardRef(Zat),est={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},tst=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:est}))},nst=f.forwardRef(tst),rst={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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm5.6-532.7c53 0 89 33.8 93 83.4.3 4.2 3.8 7.4 8 7.4h56.7c2.6 0 4.7-2.1 4.7-4.7 0-86.7-68.4-147.4-162.7-147.4C407.4 290 344 364.2 344 486.8v52.3C344 660.8 407.4 734 517.3 734c94 0 162.7-58.8 162.7-141.4 0-2.6-2.1-4.7-4.7-4.7h-56.8c-4.2 0-7.6 3.2-8 7.3-4.2 46.1-40.1 77.8-93 77.8-65.3 0-102.1-47.9-102.1-133.6v-52.6c.1-87 37-135.5 102.2-135.5z"}}]},name:"copyright",theme:"outlined"},ist=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:rst}))},ost=f.forwardRef(ist),ast={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},sst=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:ast}))},pP=f.forwardRef(sst),lst={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},cst=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:lst}))},ust=f.forwardRef(cst),dst={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},fst=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:dst}))},v_=f.forwardRef(fst),hst={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},pst=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:hst}))},mst=f.forwardRef(pst),gst={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},vst=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:gst}))},mP=f.forwardRef(vst),yst={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:n}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"},bst=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:yst}))},Sst=f.forwardRef(bst),Cst={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},xst=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:Cst}))},wst=f.forwardRef(xst),_st={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},Est=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:_st}))},Tst=f.forwardRef(Est),kst={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},Ost=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:kst}))},Pst=f.forwardRef(Ost),Mst={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"},Ist=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:Mst}))},$st=f.forwardRef(Ist),Rst={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},Ast=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:Rst}))},Nst=f.forwardRef(Ast),Dst={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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},Lst=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:Dst}))},Fst=f.forwardRef(Lst),jst={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"},Bst=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:jst}))},Jv=f.forwardRef(Bst),Hst={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 110.8V792H136V270.8l-27.6-21.5 39.3-50.5 42.8 33.3h643.1l42.8-33.3 39.3 50.5-27.7 21.5zM833.6 232L512 482 190.4 232l-42.8-33.3-39.3 50.5 27.6 21.5 341.6 265.6a55.99 55.99 0 0068.7 0L888 270.8l27.6-21.5-39.3-50.5-42.7 33.2z"}}]},name:"mail",theme:"outlined"},zst=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:Hst}))},Ust=f.forwardRef(zst),Wst={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"},Vst=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:Wst}))},Kst=f.forwardRef(Vst),qst={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z"}}]},name:"message",theme:"outlined"},Gst=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:qst}))},jSe=f.forwardRef(Gst),Yst={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},Xst=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:Yst}))},Qst=f.forwardRef(Xst),Zst={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zm-8 824H288V134h448v752zM472 784a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"mobile",theme:"outlined"},Jst=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:Zst}))},LE=f.forwardRef(Jst),elt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M456 231a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"more",theme:"outlined"},tlt=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:elt}))},nlt=f.forwardRef(tlt),rlt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},ilt=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:rlt}))},olt=f.forwardRef(ilt),alt={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:n}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:n}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:n}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"},slt=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:alt}))},llt=f.forwardRef(slt),clt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},ult=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:clt}))},dlt=f.forwardRef(ult),flt={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 64zm0 708c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm62.9-219.5a48.3 48.3 0 00-30.9 44.8V620c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-21.5c0-23.1 6.7-45.9 19.9-64.9 12.9-18.6 30.9-32.8 52.1-40.9 34-13.1 56-41.6 56-72.7 0-44.1-43.1-80-96-80s-96 35.9-96 80v7.6c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V420c0-39.3 17.2-76 48.4-103.3C430.4 290.4 470 276 512 276s81.6 14.5 111.6 40.7C654.8 344 672 380.7 672 420c0 57.8-38.1 109.8-97.1 132.5z"}}]},name:"question-circle",theme:"filled"},hlt=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:flt}))},BSe=f.forwardRef(hlt),plt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"},mlt=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:plt}))},glt=f.forwardRef(mlt),vlt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 328a60 60 0 10120 0 60 60 0 10-120 0zM852 64H172c-17.7 0-32 14.3-32 32v660c0 17.7 14.3 32 32 32h680c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-32 660H204V128h616v596zM604 328a60 60 0 10120 0 60 60 0 10-120 0zm250.2 556H169.8c-16.5 0-29.8 14.3-29.8 32v36c0 4.4 3.3 8 7.4 8h729.1c4.1 0 7.4-3.6 7.4-8v-36c.1-17.7-13.2-32-29.7-32zM664 508H360c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"robot",theme:"outlined"},ylt=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:vlt}))},blt=f.forwardRef(ylt),Slt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M793 242H366v-74c0-6.7-7.7-10.4-12.9-6.3l-142 112a8 8 0 000 12.6l142 112c5.2 4.1 12.9.4 12.9-6.3v-74h415v470H175c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h618c35.3 0 64-28.7 64-64V306c0-35.3-28.7-64-64-64z"}}]},name:"rollback",theme:"outlined"},Clt=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:Slt}))},HSe=f.forwardRef(Clt),xlt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"},wlt=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:xlt}))},_lt=f.forwardRef(wlt),Elt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},Tlt=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:Elt}))},gP=f.forwardRef(Tlt),klt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M752 664c-28.5 0-54.8 10-75.4 26.7L469.4 540.8a160.68 160.68 0 000-57.6l207.2-149.9C697.2 350 723.5 360 752 360c66.2 0 120-53.8 120-120s-53.8-120-120-120-120 53.8-120 120c0 11.6 1.6 22.7 4.7 33.3L439.9 415.8C410.7 377.1 364.3 352 312 352c-88.4 0-160 71.6-160 160s71.6 160 160 160c52.3 0 98.7-25.1 127.9-63.8l196.8 142.5c-3.1 10.6-4.7 21.8-4.7 33.3 0 66.2 53.8 120 120 120s120-53.8 120-120-53.8-120-120-120zm0-476c28.7 0 52 23.3 52 52s-23.3 52-52 52-52-23.3-52-52 23.3-52 52-52zM312 600c-48.5 0-88-39.5-88-88s39.5-88 88-88 88 39.5 88 88-39.5 88-88 88zm440 236c-28.7 0-52-23.3-52-52s23.3-52 52-52 52 23.3 52 52-23.3 52-52 52z"}}]},name:"share-alt",theme:"outlined"},Olt=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:klt}))},Plt=f.forwardRef(Olt),Mlt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},Ilt=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:Mlt}))},tS=f.forwardRef(Ilt),$lt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM664.8 561.6l36.1 210.3L512 672.7 323.1 772l36.1-210.3-152.8-149L417.6 382 512 190.7 606.4 382l211.2 30.7-152.8 148.9z"}}]},name:"star",theme:"outlined"},Rlt=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:$lt}))},y_=f.forwardRef(Rlt),Alt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M824.2 699.9a301.55 301.55 0 00-86.4-60.4C783.1 602.8 812 546.8 812 484c0-110.8-92.4-201.7-203.2-200-109.1 1.7-197 90.6-197 200 0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 00-86.4 60.4C345 754.6 314 826.8 312 903.8a8 8 0 008 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5A226.62 226.62 0 01612 684c60.9 0 118.2 23.7 161.3 66.8C814.5 792 838 846.3 840 904.3c.1 4.3 3.7 7.7 8 7.7h56a8 8 0 008-8.2c-2-77-33-149.2-87.8-203.9zM612 612c-34.2 0-66.4-13.3-90.5-37.5a126.86 126.86 0 01-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4 0 34.2-13.3 66.3-37.5 90.5A127.3 127.3 0 01612 612zM361.5 510.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 01-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.9-1.7-203.3 89.2-203.3 199.9 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 008 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.9-1 6.5-4.7 6-8.7z"}}]},name:"team",theme:"outlined"},Nlt=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:Alt}))},FW=f.forwardRef(Nlt),Dlt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},Llt=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:Dlt}))},jW=f.forwardRef(Llt),Flt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},jlt=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:Flt}))},BW=f.forwardRef(jlt),Blt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"},Hlt=function(t,n){return f.createElement(Yn,st({},t,{ref:n,icon:Blt}))},zlt=f.forwardRef(Hlt),Ult=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],zSe=f.forwardRef(function(e,t){var n=e.className,r=e.component,i=e.viewBox,o=e.spin,a=e.rotate,s=e.tabIndex,l=e.onClick,c=e.children,u=tn(e,Ult),d=f.useRef(),h=Xd(d,t);dF(!!(r||c),"Should have `component` prop or `children`."),_1e(d);var p=f.useContext(gO),m=p.prefixCls,v=m===void 0?"anticon":m,y=p.rootClassName,S=Re(y,v,ae({},"".concat(v,"-spin"),!!o&&!!r),n),b=Re(ae({},"".concat(v,"-spin"),!!o)),C=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,_=X(X({},RBe),{},{className:b,style:C,viewBox:i});i||delete _.viewBox;var T=function(){return r?f.createElement(r,_,c):c?(dF(!!i||f.Children.count(c)===1&&f.isValidElement(c)&&f.Children.only(c).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),f.createElement("svg",st({},_,{viewBox:i}),c)):null},x=s;return x===void 0&&l&&(x=-1),f.createElement("span",st({role:"img"},u,{ref:h,tabIndex:x,onClick:l,className:S}),T())});zSe.displayName="AntdIcon";var Wlt=["type","children"],USe=new Set;function Vlt(e){return!!(typeof e=="string"&&e.length&&!USe.has(e))}function X9(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e[t];if(Vlt(n)){var r=document.createElement("script");r.setAttribute("src",n),r.setAttribute("data-namespace",n),e.length>t+1&&(r.onload=function(){X9(e,t+1)},r.onerror=function(){X9(e,t+1)}),USe.add(n),document.body.appendChild(r)}}function WSe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.scriptUrl,n=e.extraCommonProps,r=n===void 0?{}:n;t&&typeof document<"u"&&typeof window<"u"&&typeof document.createElement=="function"&&(Array.isArray(t)?X9(t.reverse()):X9([t]));var i=f.forwardRef(function(o,a){var s=o.type,l=o.children,c=tn(o,Wlt),u=null;return o.type&&(u=f.createElement("use",{xlinkHref:"#".concat(s)})),l&&(u=l),f.createElement(zSe,st({},r,c,{ref:a}),u)});return i.displayName="Iconfont",i}const Klt=ge.createElement(Sl,null);function qlt(e){let{prefixCls:t,locale:n,onRefresh:r,statusRender:i,status:o}=e;const a=ge.createElement(ge.Fragment,null,ge.createElement("p",{className:`${t}-expired`},n==null?void 0:n.expired),r&&ge.createElement(pr,{type:"link",icon:ge.createElement(glt,null),onClick:r},n==null?void 0:n.refresh)),s=ge.createElement("p",{className:`${t}-scanned`},n==null?void 0:n.scanned),l={expired:a,loading:Klt,scanned:s};return(i??(d=>l[d.status]))({status:o,locale:n,onRefresh:r})}const Glt=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:i}=e;return{[t]:Object.assign(Object.assign({},$r(e)),{display:"flex",justifyContent:"center",alignItems:"center",padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:`${je(n)} ${r} ${i}`,position:"relative",overflow:"hidden",[`& > ${t}-mask`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:e.colorText,lineHeight:e.lineHeight,background:e.QRCodeMaskBackgroundColor,textAlign:"center",[`& > ${t}-expired, & > ${t}-scanned`]:{color:e.QRCodeTextColor}},"> canvas":{alignSelf:"stretch",flex:"auto",minWidth:0},"&-icon":{marginBlockEnd:e.marginXS,fontSize:e.controlHeight}}),[`${t}-borderless`]:{borderColor:"transparent",padding:0,borderRadius:0}}},Ylt=e=>({QRCodeMaskBackgroundColor:new xr(e.colorBgContainer).setA(.96).toRgbString()}),Xlt=Tr("QRCode",e=>{const t=dr(e,{QRCodeTextColor:e.colorText});return Glt(t)},Ylt);var Qlt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const VSe=e=>{var t,n,r,i;const[,o]=ta(),{value:a,type:s="canvas",icon:l="",size:c=160,iconSize:u,color:d=o.colorText,errorLevel:h="M",status:p="active",bordered:m=!0,onRefresh:v,style:y,className:S,rootClassName:b,prefixCls:C,bgColor:_="transparent",statusRender:T}=e,x=Qlt(e,["value","type","icon","size","iconSize","color","errorLevel","status","bordered","onRefresh","style","className","rootClassName","prefixCls","bgColor","statusRender"]),{getPrefixCls:E}=f.useContext(hn),k=E("qrcode",C),[M,P,D]=Xlt(k),R={src:l,x:void 0,y:void 0,height:typeof u=="number"?u:(t=u==null?void 0:u.height)!==null&&t!==void 0?t:40,width:typeof u=="number"?u:(n=u==null?void 0:u.width)!==null&&n!==void 0?n:40,excavate:!0,crossOrigin:"anonymous"},A=Bi(x,!0),H=Pr(x,Object.keys(A)),F=Object.assign({value:a,size:c,level:h,bgColor:_,fgColor:d,style:{width:y==null?void 0:y.width,height:y==null?void 0:y.height},imageSettings:l?R:void 0},A),[z]=ks("QRCode");if(!a)return null;const W=Re(k,S,b,P,D,{[`${k}-borderless`]:!m}),q=Object.assign(Object.assign({backgroundColor:_},y),{width:(r=y==null?void 0:y.width)!==null&&r!==void 0?r:c,height:(i=y==null?void 0:y.height)!==null&&i!==void 0?i:c});return M(ge.createElement("div",Object.assign({},H,{className:W,style:q}),p!=="active"&&ge.createElement("div",{className:`${k}-mask`},ge.createElement(qlt,{prefixCls:k,locale:z,status:p,onRefresh:v,statusRender:T})),s==="canvas"?ge.createElement(DSe,Object.assign({},F)):ge.createElement(LSe,Object.assign({},F))))};function Zlt(e,t){var n=e.disabled,r=e.prefixCls,i=e.character,o=e.characterRender,a=e.index,s=e.count,l=e.value,c=e.allowHalf,u=e.focused,d=e.onHover,h=e.onClick,p=function(T){d(T,a)},m=function(T){h(T,a)},v=function(T){T.keyCode===Pt.ENTER&&h(T,a)},y=a+1,S=new Set([r]);l===0&&a===0&&u?S.add("".concat(r,"-focused")):c&&l+.5>=y&&l<y?(S.add("".concat(r,"-half")),S.add("".concat(r,"-active")),u&&S.add("".concat(r,"-focused"))):(y<=l?S.add("".concat(r,"-full")):S.add("".concat(r,"-zero")),y===l&&u&&S.add("".concat(r,"-focused")));var b=typeof i=="function"?i(e):i,C=ge.createElement("li",{className:Re(Array.from(S)),ref:t},ge.createElement("div",{onClick:n?null:m,onKeyDown:n?null:v,onMouseMove:n?null:p,role:"radio","aria-checked":l>a?"true":"false","aria-posinset":a+1,"aria-setsize":s,tabIndex:n?-1:0},ge.createElement("div",{className:"".concat(r,"-first")},b),ge.createElement("div",{className:"".concat(r,"-second")},b)));return o&&(C=o(C,e)),C}const Jlt=ge.forwardRef(Zlt);function ect(){var e=f.useRef({});function t(r){return e.current[r]}function n(r){return function(i){e.current[r]=i}}return[t,n]}function tct(e){var t=e.pageXOffset,n="scrollLeft";if(typeof t!="number"){var r=e.document;t=r.documentElement[n],typeof t!="number"&&(t=r.body[n])}return t}function nct(e){var t,n,r=e.ownerDocument,i=r.body,o=r&&r.documentElement,a=e.getBoundingClientRect();return t=a.left,n=a.top,t-=o.clientLeft||i.clientLeft||0,n-=o.clientTop||i.clientTop||0,{left:t,top:n}}function rct(e){var t=nct(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=tct(r),t.left}var ict=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function oct(e,t){var n=e.prefixCls,r=n===void 0?"rc-rate":n,i=e.className,o=e.defaultValue,a=e.value,s=e.count,l=s===void 0?5:s,c=e.allowHalf,u=c===void 0?!1:c,d=e.allowClear,h=d===void 0?!0:d,p=e.keyboard,m=p===void 0?!0:p,v=e.character,y=v===void 0?"★":v,S=e.characterRender,b=e.disabled,C=e.direction,_=C===void 0?"ltr":C,T=e.tabIndex,x=T===void 0?0:T,E=e.autoFocus,k=e.onHoverChange,M=e.onChange,P=e.onFocus,D=e.onBlur,R=e.onKeyDown,A=e.onMouseLeave,H=tn(e,ict),F=ect(),z=Le(F,2),W=z[0],q=z[1],Z=ge.useRef(null),N=function(){if(!b){var J;(J=Z.current)===null||J===void 0||J.focus()}};ge.useImperativeHandle(t,function(){return{focus:N,blur:function(){if(!b){var J;(J=Z.current)===null||J===void 0||J.blur()}}}});var B=er(o||0,{value:a}),V=Le(B,2),G=V[0],ie=V[1],ce=er(null),fe=Le(ce,2),ee=fe[0],ne=fe[1],ue=function(J,be){var Oe=_==="rtl",Se=J+1;if(u){var Ke=W(J),tt=rct(Ke),se=Ke.clientWidth;(Oe&&be-tt>se/2||!Oe&&be-tt<se/2)&&(Se-=.5)}return Se},ye=function(J){ie(J),M==null||M(J)},me=ge.useState(!1),pe=Le(me,2),he=pe[0],_e=pe[1],le=function(){_e(!0),P==null||P()},xe=function(){_e(!1),D==null||D()},we=ge.useState(null),De=Le(we,2),Fe=De[0],Ce=De[1],Te=function(J,be){var Oe=ue(be,J.pageX);Oe!==ee&&(Ce(Oe),ne(null)),k==null||k(Oe)},ke=function(J){b||(Ce(null),ne(null),k==null||k(void 0)),J&&(A==null||A(J))},Pe=function(J,be){var Oe=ue(be,J.pageX),Se=!1;h&&(Se=Oe===G),ke(),ye(Se?0:Oe),ne(Se?Oe:null)},Ne=function(J){var be=J.keyCode,Oe=_==="rtl",Se=u?.5:1;m&&(be===Pt.RIGHT&&G<l&&!Oe?(ye(G+Se),J.preventDefault()):be===Pt.LEFT&&G>0&&!Oe||be===Pt.RIGHT&&G>0&&Oe?(ye(G-Se),J.preventDefault()):be===Pt.LEFT&&G<l&&Oe&&(ye(G+Se),J.preventDefault())),R==null||R(J)};ge.useEffect(function(){E&&!b&&N()},[]);var We=new Array(l).fill(0).map(function(K,J){return ge.createElement(Jlt,{ref:q(J),index:J,count:l,disabled:b,prefixCls:"".concat(r,"-star"),allowHalf:u,value:Fe===null?G:Fe,onClick:Pe,onHover:Te,key:K||J,character:y,characterRender:S,focused:he})}),Q=Re(r,i,ae(ae({},"".concat(r,"-disabled"),b),"".concat(r,"-rtl"),_==="rtl"));return ge.createElement("ul",st({className:Q,onMouseLeave:ke,tabIndex:b?-1:x,onFocus:b?null:le,onBlur:b?null:xe,onKeyDown:b?null:Ne,ref:Z,role:"radiogroup"},Bi(H,{aria:!0,data:!0,attr:!0})),We)}const act=ge.forwardRef(oct),sct=e=>{const{componentCls:t}=e;return{[`${t}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${je(e.lineWidth)} dashed ${e.starColor}`,transform:e.starHoverScale}},"&-first, &-second":{color:e.starBg,transition:`all ${e.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:"inherit"}}}},lct=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),cct=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},$r(e)),{display:"inline-block",margin:0,padding:0,color:e.starColor,fontSize:e.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${t} ${t}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),sct(e)),lct(e))}},uct=e=>({starColor:e.yellow6,starSize:e.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:e.colorFillContent}),dct=Tr("Rate",e=>{const t=dr(e,{});return[cct(t)]},uct);var fct=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Pte=f.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:o,tooltips:a,character:s=f.createElement(tS,null),disabled:l}=e,c=fct(e,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),u=(T,x)=>{let{index:E}=x;return a?f.createElement(ea,{title:a[E]},T):T},{getPrefixCls:d,direction:h,rate:p}=f.useContext(hn),m=d("rate",n),[v,y,S]=dct(m),b=Object.assign(Object.assign({},p==null?void 0:p.style),o),C=f.useContext(Jo),_=l??C;return v(f.createElement(act,Object.assign({ref:t,character:s,characterRender:u,disabled:_},c,{className:Re(r,i,y,S,p==null?void 0:p.className),style:b,prefixCls:m,direction:h})))}),hct=()=>f.createElement("svg",{width:"252",height:"294"},f.createElement("title",null,"No Found"),f.createElement("defs",null,f.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),f.createElement("g",{fill:"none",fillRule:"evenodd"},f.createElement("g",{transform:"translate(0 .012)"},f.createElement("mask",{fill:"#fff"}),f.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),f.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),f.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),f.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),f.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),f.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),f.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),f.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),f.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),f.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),f.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1677ff"}),f.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),f.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),f.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),f.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),f.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),f.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),f.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),f.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),f.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),f.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),f.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),f.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),f.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),f.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),f.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),f.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),f.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),f.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),f.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),f.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),f.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),f.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),f.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),f.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),f.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),f.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),f.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),f.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),f.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),f.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),f.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),pct=()=>f.createElement("svg",{width:"254",height:"294"},f.createElement("title",null,"Server Error"),f.createElement("defs",null,f.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),f.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),f.createElement("g",{fill:"none",fillRule:"evenodd"},f.createElement("g",{transform:"translate(0 .067)"},f.createElement("mask",{fill:"#fff"}),f.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),f.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),f.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),f.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),f.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),f.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),f.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),f.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),f.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),f.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),f.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),f.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),f.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),f.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),f.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),f.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),f.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),f.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),f.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),f.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),f.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),f.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),f.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),f.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),f.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),f.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),f.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),f.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),f.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),f.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),f.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),f.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),f.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),f.createElement("mask",{fill:"#fff"}),f.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),f.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),f.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),f.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),f.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),f.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),f.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),f.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),f.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),f.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),f.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"}))),mct=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:i,paddingXL:o,paddingXS:a,paddingLG:s,marginXS:l,lineHeight:c}=e;return{[t]:{padding:`${je(e.calc(s).mul(2).equal())} ${je(o)}`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:s,textAlign:"center",[`& > ${r}`]:{fontSize:e.iconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:n,marginBlock:l,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:c,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:s,padding:`${je(s)} ${je(e.calc(i).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:a,"&:last-child":{marginInlineEnd:0}}}}},gct=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},vct=e=>[mct(e),gct(e)],yct=e=>vct(e),bct=e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:e.fontSizeHeading3*3,extraMargin:`${e.paddingLG}px 0 0 0`}),Sct=Tr("Result",e=>{const t=e.colorInfo,n=e.colorError,r=e.colorSuccess,i=e.colorWarning,o=dr(e,{resultInfoIconColor:t,resultErrorIconColor:n,resultSuccessIconColor:r,resultWarningIconColor:i,imageWidth:250,imageHeight:295});return[yct(o)]},bct),Cct=()=>f.createElement("svg",{width:"251",height:"294"},f.createElement("title",null,"Unauthorized"),f.createElement("g",{fill:"none",fillRule:"evenodd"},f.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),f.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),f.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),f.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),f.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),f.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),f.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),f.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),f.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),f.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),f.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),f.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),f.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),f.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),f.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),f.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),f.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),f.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),f.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),f.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),f.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),f.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),f.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),f.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),f.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),f.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),f.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),f.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),f.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),f.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),f.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),f.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),f.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),f.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),f.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),f.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),f.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),f.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),f.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}))),xct={success:qv,error:eh,info:gg,warning:zlt},FE={404:hct,500:pct,403:Cct},wct=Object.keys(FE),_ct=e=>{let{prefixCls:t,icon:n,status:r}=e;const i=Re(`${t}-icon`);if(wct.includes(`${r}`)){const a=FE[r];return f.createElement("div",{className:`${i} ${t}-image`},f.createElement(a,null))}const o=f.createElement(xct[r]);return n===null||n===!1?null:f.createElement("div",{className:i},n||o)},Ect=e=>{let{prefixCls:t,extra:n}=e;return n?f.createElement("div",{className:`${t}-extra`},n):null},jE=e=>{let{prefixCls:t,className:n,rootClassName:r,subTitle:i,title:o,style:a,children:s,status:l="info",icon:c,extra:u}=e;const{getPrefixCls:d,direction:h,result:p}=f.useContext(hn),m=d("result",t),[v,y,S]=Sct(m),b=Re(m,`${m}-${l}`,n,p==null?void 0:p.className,r,{[`${m}-rtl`]:h==="rtl"},y,S),C=Object.assign(Object.assign({},p==null?void 0:p.style),a);return v(f.createElement("div",{className:b,style:C},f.createElement(_ct,{prefixCls:m,status:l,icon:c}),f.createElement("div",{className:`${m}-title`},o),i&&f.createElement("div",{className:`${m}-subtitle`},i),f.createElement(Ect,{prefixCls:m,extra:u}),s&&f.createElement("div",{className:`${m}-content`},s)))};jE.PRESENTED_IMAGE_403=FE[403];jE.PRESENTED_IMAGE_404=FE[404];jE.PRESENTED_IMAGE_500=FE[500];var Tct=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],KSe=f.forwardRef(function(e,t){var n,r=e.prefixCls,i=r===void 0?"rc-switch":r,o=e.className,a=e.checked,s=e.defaultChecked,l=e.disabled,c=e.loadingIcon,u=e.checkedChildren,d=e.unCheckedChildren,h=e.onClick,p=e.onChange,m=e.onKeyDown,v=tn(e,Tct),y=er(!1,{value:a,defaultValue:s}),S=Le(y,2),b=S[0],C=S[1];function _(k,M){var P=b;return l||(P=k,C(P),p==null||p(P,M)),P}function T(k){k.which===Pt.LEFT?_(!1,k):k.which===Pt.RIGHT&&_(!0,k),m==null||m(k)}function x(k){var M=_(!b,k);h==null||h(M,k)}var E=Re(i,o,(n={},ae(n,"".concat(i,"-checked"),b),ae(n,"".concat(i,"-disabled"),l),n));return f.createElement("button",st({},v,{type:"button",role:"switch","aria-checked":b,disabled:l,className:E,ref:t,onKeyDown:T,onClick:x}),c,f.createElement("span",{className:"".concat(i,"-inner")},f.createElement("span",{className:"".concat(i,"-inner-checked")},u),f.createElement("span",{className:"".concat(i,"-inner-unchecked")},d)))});KSe.displayName="Switch";const kct=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:i,innerMinMarginSM:o,innerMaxMarginSM:a,handleSizeSM:s,calc:l}=e,c=`${t}-inner`,u=je(l(s).add(l(r).mul(2)).equal()),d=je(l(a).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:i,height:n,lineHeight:je(n),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${c}-checked, ${c}-unchecked`]:{minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${c}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:l(l(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${je(l(s).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(e.marginXXS).div(2).equal(),marginInlineEnd:l(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:l(e.marginXXS).div(2).equal()}}}}}}},Oct=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},Pct=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:i,handleSize:o,calc:a}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:n,insetInlineStart:n,width:o,height:o,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:a(o).div(2).equal(),boxShadow:i,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${je(a(o).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},Mct=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:i,innerMaxMargin:o,handleSize:a,calc:s}=e,l=`${t}-inner`,c=je(s(a).add(s(r).mul(2)).equal()),u=je(s(o).mul(2).equal());return{[t]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:o,paddingInlineEnd:i,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${l}-checked, ${l}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${u})`,marginInlineEnd:`calc(100% - ${c} + ${u})`},[`${l}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:i,paddingInlineEnd:o,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${u})`,marginInlineEnd:`calc(-100% + ${c} - ${u})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:s(r).mul(2).equal(),marginInlineEnd:s(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:s(r).mul(-1).mul(2).equal(),marginInlineEnd:s(r).mul(2).equal()}}}}}},Ict=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},$r(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:je(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),ml(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},$ct=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:i}=e,o=t*n,a=r/2,s=2,l=o-s*2,c=a-s*2;return{trackHeight:o,trackHeightSM:a,trackMinWidth:l*2+s*4,trackMinWidthSM:c*2+s*2,trackPadding:s,handleBg:i,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new xr("#00230b").setA(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+s+s*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+s+s*2}},Rct=Tr("Switch",e=>{const t=dr(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Ict(t),Mct(t),Pct(t),Oct(t),kct(t)]},$ct);var Act=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Nct=f.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:i,loading:o,className:a,rootClassName:s,style:l,checked:c,value:u,defaultChecked:d,defaultValue:h,onChange:p}=e,m=Act(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[v,y]=er(!1,{value:c??u,defaultValue:d??h}),{getPrefixCls:S,direction:b,switch:C}=f.useContext(hn),_=f.useContext(Jo),T=(i??_)||o,x=S("switch",n),E=f.createElement("div",{className:`${x}-handle`},o&&f.createElement(jd,{className:`${x}-loading-icon`})),[k,M,P]=Rct(x),D=$o(r),R=Re(C==null?void 0:C.className,{[`${x}-small`]:D==="small",[`${x}-loading`]:o,[`${x}-rtl`]:b==="rtl"},a,s,M,P),A=Object.assign(Object.assign({},C==null?void 0:C.style),l),H=function(){y(arguments.length<=0?void 0:arguments[0]),p==null||p.apply(void 0,arguments)};return k(f.createElement(gE,{component:"Switch"},f.createElement(KSe,Object.assign({},m,{checked:v,onChange:H,prefixCls:x,className:R,style:A,disabled:T,ref:t,loadingIcon:E}))))}),Q9=Nct;Q9.__ANT_SWITCH=!0;var Dh={},BE="rc-table-internal-hook";function HW(e){var t=f.createContext(void 0),n=function(i){var o=i.value,a=i.children,s=f.useRef(o);s.current=o;var l=f.useState(function(){return{getValue:function(){return s.current},listeners:new Set}}),c=Le(l,1),u=c[0];return Er(function(){Ac.unstable_batchedUpdates(function(){u.listeners.forEach(function(d){d(o)})})},[o]),f.createElement(t.Provider,{value:u},a)};return{Context:t,Provider:n,defaultValue:e}}function ws(e,t){var n=ur(typeof t=="function"?t:function(d){if(t===void 0)return d;if(!Array.isArray(t))return d[t];var h={};return t.forEach(function(p){h[p]=d[p]}),h}),r=f.useContext(e==null?void 0:e.Context),i=r||{},o=i.listeners,a=i.getValue,s=f.useRef();s.current=n(r?a():e==null?void 0:e.defaultValue);var l=f.useState({}),c=Le(l,2),u=c[1];return Er(function(){if(!r)return;function d(h){var p=n(h);ku(s.current,p,!0)||u({})}return o.add(d),function(){o.delete(d)}},[r]),s.current}function Dct(){var e=f.createContext(null);function t(){return f.useContext(e)}function n(i,o){var a=Dd(i),s=function(c,u){var d=a?{ref:u}:{},h=f.useRef(0),p=f.useRef(c),m=t();return m!==null?f.createElement(i,st({},c,d)):((!o||o(p.current,c))&&(h.current+=1),p.current=c,f.createElement(e.Provider,{value:h.current},f.createElement(i,st({},c,d))))};return a?f.forwardRef(s):s}function r(i,o){var a=Dd(i),s=function(c,u){var d=a?{ref:u}:{};return t(),f.createElement(i,st({},c,d))};return a?f.memo(f.forwardRef(s),o):f.memo(s,o)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var zW=Dct(),qSe=zW.makeImmutable,aC=zW.responseImmutable,Lct=zW.useImmutableMark,Cl=HW(),GSe=f.createContext({renderWithProps:!1}),Fct="RC_TABLE_KEY";function jct(e){return e==null?[]:Array.isArray(e)?e:[e]}function vP(e){var t=[],n={};return e.forEach(function(r){for(var i=r||{},o=i.key,a=i.dataIndex,s=o||jct(a).join("-")||Fct;n[s];)s="".concat(s,"_next");n[s]=!0,t.push(s)}),t}function ej(e){return e!=null}function Bct(e){return typeof e=="number"&&!Number.isNaN(e)}function Hct(e){return e&&ln(e)==="object"&&!Array.isArray(e)&&!f.isValidElement(e)}function zct(e,t,n,r,i,o){var a=f.useContext(GSe),s=Lct(),l=dp(function(){if(ej(r))return[r];var c=t==null||t===""?[]:Array.isArray(t)?t:[t],u=jo(e,c),d=u,h=void 0;if(i){var p=i(u,e,n);Hct(p)?(d=p.children,h=p.props,a.renderWithProps=!0):d=p}return[d,h]},[s,e,r,t,i,n],function(c,u){if(o){var d=Le(c,2),h=d[1],p=Le(u,2),m=p[1];return o(m,h)}return a.renderWithProps?!0:!ku(c,u,!0)});return l}function Uct(e,t,n,r){var i=e+t-1;return e<=r&&i>=n}function Wct(e,t){return ws(Cl,function(n){var r=Uct(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var Vct=function(t){var n=t.ellipsis,r=t.rowType,i=t.children,o,a=n===!0?{showTitle:!0}:n;return a&&(a.showTitle||r==="header")&&(typeof i=="string"||typeof i=="number"?o=i.toString():f.isValidElement(i)&&typeof i.props.children=="string"&&(o=i.props.children)),o};function Kct(e){var t,n,r,i,o,a,s,l,c=e.component,u=e.children,d=e.ellipsis,h=e.scope,p=e.prefixCls,m=e.className,v=e.align,y=e.record,S=e.render,b=e.dataIndex,C=e.renderIndex,_=e.shouldCellUpdate,T=e.index,x=e.rowType,E=e.colSpan,k=e.rowSpan,M=e.fixLeft,P=e.fixRight,D=e.firstFixLeft,R=e.lastFixLeft,A=e.firstFixRight,H=e.lastFixRight,F=e.appendNode,z=e.additionalProps,W=z===void 0?{}:z,q=e.isSticky,Z="".concat(p,"-cell"),N=ws(Cl,["supportSticky","allColumnsFixedLeft","rowHoverable"]),B=N.supportSticky,V=N.allColumnsFixedLeft,G=N.rowHoverable,ie=zct(y,b,C,u,S,_),ce=Le(ie,2),fe=ce[0],ee=ce[1],ne={},ue=typeof M=="number"&&B,ye=typeof P=="number"&&B;ue&&(ne.position="sticky",ne.left=M),ye&&(ne.position="sticky",ne.right=P);var me=(t=(n=(r=ee==null?void 0:ee.colSpan)!==null&&r!==void 0?r:W.colSpan)!==null&&n!==void 0?n:E)!==null&&t!==void 0?t:1,pe=(i=(o=(a=ee==null?void 0:ee.rowSpan)!==null&&a!==void 0?a:W.rowSpan)!==null&&o!==void 0?o:k)!==null&&i!==void 0?i:1,he=Wct(T,pe),_e=Le(he,2),le=_e[0],xe=_e[1],we=ur(function(Ne){var We;y&&xe(T,T+pe-1),W==null||(We=W.onMouseEnter)===null||We===void 0||We.call(W,Ne)}),De=ur(function(Ne){var We;y&&xe(-1,-1),W==null||(We=W.onMouseLeave)===null||We===void 0||We.call(W,Ne)});if(me===0||pe===0)return null;var Fe=(s=W.title)!==null&&s!==void 0?s:Vct({rowType:x,ellipsis:d,children:fe}),Ce=Re(Z,m,(l={},ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(l,"".concat(Z,"-fix-left"),ue&&B),"".concat(Z,"-fix-left-first"),D&&B),"".concat(Z,"-fix-left-last"),R&&B),"".concat(Z,"-fix-left-all"),R&&V&&B),"".concat(Z,"-fix-right"),ye&&B),"".concat(Z,"-fix-right-first"),A&&B),"".concat(Z,"-fix-right-last"),H&&B),"".concat(Z,"-ellipsis"),d),"".concat(Z,"-with-append"),F),"".concat(Z,"-fix-sticky"),(ue||ye)&&q&&B),ae(l,"".concat(Z,"-row-hover"),!ee&&le)),W.className,ee==null?void 0:ee.className),Te={};v&&(Te.textAlign=v);var ke=X(X(X(X({},ee==null?void 0:ee.style),ne),Te),W.style),Pe=fe;return ln(Pe)==="object"&&!Array.isArray(Pe)&&!f.isValidElement(Pe)&&(Pe=null),d&&(R||A)&&(Pe=f.createElement("span",{className:"".concat(Z,"-content")},Pe)),f.createElement(c,st({},ee,W,{className:Ce,style:ke,title:Fe,scope:h,onMouseEnter:G?we:void 0,onMouseLeave:G?De:void 0,colSpan:me!==1?me:null,rowSpan:pe!==1?pe:null}),F,Pe)}const sC=f.memo(Kct);function UW(e,t,n,r,i){var o=n[e]||{},a=n[t]||{},s,l;o.fixed==="left"?s=r.left[i==="rtl"?t:e]:a.fixed==="right"&&(l=r.right[i==="rtl"?e:t]);var c=!1,u=!1,d=!1,h=!1,p=n[t+1],m=n[e-1],v=p&&!p.fixed||m&&!m.fixed||n.every(function(_){return _.fixed==="left"});if(i==="rtl"){if(s!==void 0){var y=m&&m.fixed==="left";h=!y&&v}else if(l!==void 0){var S=p&&p.fixed==="right";d=!S&&v}}else if(s!==void 0){var b=p&&p.fixed==="left";c=!b&&v}else if(l!==void 0){var C=m&&m.fixed==="right";u=!C&&v}return{fixLeft:s,fixRight:l,lastFixLeft:c,firstFixRight:u,lastFixRight:d,firstFixLeft:h,isSticky:r.isSticky}}var YSe=f.createContext({});function qct(e){var t=e.className,n=e.index,r=e.children,i=e.colSpan,o=i===void 0?1:i,a=e.rowSpan,s=e.align,l=ws(Cl,["prefixCls","direction"]),c=l.prefixCls,u=l.direction,d=f.useContext(YSe),h=d.scrollColumnIndex,p=d.stickyOffsets,m=d.flattenColumns,v=n+o-1,y=v+1===h?o+1:o,S=UW(n,n+y-1,m,p,u);return f.createElement(sC,st({className:t,index:n,component:"td",prefixCls:c,record:null,dataIndex:null,align:s,colSpan:y,rowSpan:a,render:function(){return r}},S))}var Gct=["children"];function Yct(e){var t=e.children,n=tn(e,Gct);return f.createElement("tr",n,t)}function yP(e){var t=e.children;return t}yP.Row=Yct;yP.Cell=qct;function Xct(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,i=ws(Cl,"prefixCls"),o=r.length-1,a=r[o],s=f.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:a!=null&&a.scrollbar?o:null}},[a,r,o,n]);return f.createElement(YSe.Provider,{value:s},f.createElement("tfoot",{className:"".concat(i,"-summary")},t))}const JT=aC(Xct);var XSe=yP;function Qct(e){return null}function Zct(e){return null}function QSe(e,t,n,r,i,o,a){e.push({record:t,indent:n,index:a});var s=o(t),l=i==null?void 0:i.has(s);if(t&&Array.isArray(t[r])&&l)for(var c=0;c<t[r].length;c+=1)QSe(e,t[r][c],n+1,r,i,o,c)}function ZSe(e,t,n,r){var i=f.useMemo(function(){if(n!=null&&n.size){for(var o=[],a=0;a<(e==null?void 0:e.length);a+=1){var s=e[a];QSe(o,s,0,t,n,r,a)}return o}return e==null?void 0:e.map(function(l,c){return{record:l,indent:0,index:c}})},[e,t,n,r]);return i}function JSe(e,t,n,r){var i=ws(Cl,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),o=i.flattenColumns,a=i.expandableType,s=i.expandedKeys,l=i.childrenColumnName,c=i.onTriggerExpand,u=i.rowExpandable,d=i.onRow,h=i.expandRowByClick,p=i.rowClassName,m=a==="nest",v=a==="row"&&(!u||u(e)),y=v||m,S=s&&s.has(t),b=l&&e&&e[l],C=ur(c),_=d==null?void 0:d(e,n),T=_==null?void 0:_.onClick,x=function(P){h&&y&&c(e,P);for(var D=arguments.length,R=new Array(D>1?D-1:0),A=1;A<D;A++)R[A-1]=arguments[A];T==null||T.apply(void 0,[P].concat(R))},E;typeof p=="string"?E=p:typeof p=="function"&&(E=p(e,n,r));var k=vP(o);return X(X({},i),{},{columnsKey:k,nestExpandable:m,expanded:S,hasNestChildren:b,record:e,onTriggerExpand:C,rowSupportExpand:v,expandable:y,rowProps:X(X({},_),{},{className:Re(E,_==null?void 0:_.className),onClick:x})})}function eCe(e){var t=e.prefixCls,n=e.children,r=e.component,i=e.cellComponent,o=e.className,a=e.expanded,s=e.colSpan,l=e.isEmpty,c=ws(Cl,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),u=c.scrollbarSize,d=c.fixHeader,h=c.fixColumn,p=c.componentWidth,m=c.horizonScroll,v=n;return(l?m&&p:h)&&(v=f.createElement("div",{style:{width:p-(d&&!l?u:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},v)),f.createElement(r,{className:o,style:{display:a?null:"none"}},f.createElement(sC,{component:i,prefixCls:t,colSpan:s},v))}function Jct(e){var t=e.prefixCls,n=e.record,r=e.onExpand,i=e.expanded,o=e.expandable,a="".concat(t,"-row-expand-icon");if(!o)return f.createElement("span",{className:Re(a,"".concat(t,"-row-spaced"))});var s=function(c){r(n,c),c.stopPropagation()};return f.createElement("span",{className:Re(a,ae(ae({},"".concat(t,"-row-expanded"),i),"".concat(t,"-row-collapsed"),!i)),onClick:s})}function eut(e,t,n){var r=[];function i(o){(o||[]).forEach(function(a,s){r.push(t(a,s)),i(a[n])})}return i(e),r}function tCe(e,t,n,r){return typeof e=="string"?e:typeof e=="function"?e(t,n,r):""}function nCe(e,t,n,r,i){var o=e.record,a=e.prefixCls,s=e.columnsKey,l=e.fixedInfoList,c=e.expandIconColumnIndex,u=e.nestExpandable,d=e.indentSize,h=e.expandIcon,p=e.expanded,m=e.hasNestChildren,v=e.onTriggerExpand,y=s[n],S=l[n],b;n===(c||0)&&u&&(b=f.createElement(f.Fragment,null,f.createElement("span",{style:{paddingLeft:"".concat(d*r,"px")},className:"".concat(a,"-row-indent indent-level-").concat(r)}),h({prefixCls:a,expanded:p,expandable:m,record:o,onExpand:v})));var C;return t.onCell&&(C=t.onCell(o,i)),{key:y,fixedInfo:S,appendCellNode:b,additionalCellProps:C||{}}}function tut(e){var t=e.className,n=e.style,r=e.record,i=e.index,o=e.renderIndex,a=e.rowKey,s=e.indent,l=s===void 0?0:s,c=e.rowComponent,u=e.cellComponent,d=e.scopeCellComponent,h=JSe(r,a,i,l),p=h.prefixCls,m=h.flattenColumns,v=h.expandedRowClassName,y=h.expandedRowRender,S=h.rowProps,b=h.expanded,C=h.rowSupportExpand,_=f.useRef(!1);_.current||(_.current=b);var T=tCe(v,r,i,l),x=f.createElement(c,st({},S,{"data-row-key":a,className:Re(t,"".concat(p,"-row"),"".concat(p,"-row-level-").concat(l),S==null?void 0:S.className,ae({},T,l>=1)),style:X(X({},n),S==null?void 0:S.style)}),m.map(function(M,P){var D=M.render,R=M.dataIndex,A=M.className,H=nCe(h,M,P,l,i),F=H.key,z=H.fixedInfo,W=H.appendCellNode,q=H.additionalCellProps;return f.createElement(sC,st({className:A,ellipsis:M.ellipsis,align:M.align,scope:M.rowScope,component:M.rowScope?d:u,prefixCls:p,key:F,record:r,index:i,renderIndex:o,dataIndex:R,render:D,shouldCellUpdate:M.shouldCellUpdate},z,{appendNode:W,additionalProps:q}))})),E;if(C&&(_.current||b)){var k=y(r,i,l+1,b);E=f.createElement(eCe,{expanded:b,className:Re("".concat(p,"-expanded-row"),"".concat(p,"-expanded-row-level-").concat(l+1),T),prefixCls:p,component:c,cellComponent:u,colSpan:m.length,isEmpty:!1},k)}return f.createElement(f.Fragment,null,x,E)}const nut=aC(tut);function rut(e){var t=e.columnKey,n=e.onColumnResize,r=f.useRef();return f.useEffect(function(){r.current&&n(t,r.current.offsetWidth)},[]),f.createElement(Wa,{data:t},f.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},f.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function iut(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize;return f.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},f.createElement(Wa.Collection,{onBatchResize:function(o){o.forEach(function(a){var s=a.data,l=a.size;r(s,l.offsetWidth)})}},n.map(function(i){return f.createElement(rut,{key:i,columnKey:i,onColumnResize:r})})))}function out(e){var t=e.data,n=e.measureColumnWidth,r=ws(Cl,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),i=r.prefixCls,o=r.getComponent,a=r.onColumnResize,s=r.flattenColumns,l=r.getRowKey,c=r.expandedKeys,u=r.childrenColumnName,d=r.emptyNode,h=ZSe(t,u,c,l),p=f.useRef({renderWithProps:!1}),m=o(["body","wrapper"],"tbody"),v=o(["body","row"],"tr"),y=o(["body","cell"],"td"),S=o(["body","cell"],"th"),b;t.length?b=h.map(function(_,T){var x=_.record,E=_.indent,k=_.index,M=l(x,T);return f.createElement(nut,{key:M,rowKey:M,record:x,index:T,renderIndex:k,rowComponent:v,cellComponent:y,scopeCellComponent:S,indent:E})}):b=f.createElement(eCe,{expanded:!0,className:"".concat(i,"-placeholder"),prefixCls:i,component:v,cellComponent:y,colSpan:s.length,isEmpty:!0},d);var C=vP(s);return f.createElement(GSe.Provider,{value:p.current},f.createElement(m,{className:"".concat(i,"-tbody")},n&&f.createElement(iut,{prefixCls:i,columnsKey:C,onColumnResize:a}),b))}const aut=aC(out);var sut=["expandable"],rw="RC_TABLE_INTERNAL_COL_DEFINE";function lut(e){var t=e.expandable,n=tn(e,sut),r;return"expandable"in e?r=X(X({},n),t):r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var cut=["columnType"];function rCe(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,i=ws(Cl,["tableLayout"]),o=i.tableLayout,a=[],s=r||n.length,l=!1,c=s-1;c>=0;c-=1){var u=t[c],d=n&&n[c],h=void 0,p=void 0;if(d&&(h=d[rw],o==="auto"&&(p=d.minWidth)),u||p||h||l){var m=h||{};m.columnType;var v=tn(m,cut);a.unshift(f.createElement("col",st({key:c,style:{width:u,minWidth:p}},v))),l=!0}}return f.createElement("colgroup",null,a)}var uut=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function dut(e,t){return f.useMemo(function(){for(var n=[],r=0;r<t;r+=1){var i=e[r];if(i!==void 0)n[r]=i;else return null}return n},[e.join("_"),t])}var fut=f.forwardRef(function(e,t){var n=e.className,r=e.noData,i=e.columns,o=e.flattenColumns,a=e.colWidths,s=e.columCount,l=e.stickyOffsets,c=e.direction,u=e.fixHeader,d=e.stickyTopOffset,h=e.stickyBottomOffset,p=e.stickyClassName,m=e.onScroll,v=e.maxContentScroll,y=e.children,S=tn(e,uut),b=ws(Cl,["prefixCls","scrollbarSize","isSticky","getComponent"]),C=b.prefixCls,_=b.scrollbarSize,T=b.isSticky,x=b.getComponent,E=x(["header","table"],"table"),k=T&&!u?0:_,M=f.useRef(null),P=f.useCallback(function(q){t_(t,q),t_(M,q)},[]);f.useEffect(function(){var q;function Z(N){var B=N,V=B.currentTarget,G=B.deltaX;G&&(m({currentTarget:V,scrollLeft:V.scrollLeft+G}),N.preventDefault())}return(q=M.current)===null||q===void 0||q.addEventListener("wheel",Z,{passive:!1}),function(){var N;(N=M.current)===null||N===void 0||N.removeEventListener("wheel",Z)}},[]);var D=f.useMemo(function(){return o.every(function(q){return q.width})},[o]),R=o[o.length-1],A={fixed:R?R.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(C,"-cell-scrollbar")}}},H=f.useMemo(function(){return k?[].concat(pt(i),[A]):i},[k,i]),F=f.useMemo(function(){return k?[].concat(pt(o),[A]):o},[k,o]),z=f.useMemo(function(){var q=l.right,Z=l.left;return X(X({},l),{},{left:c==="rtl"?[].concat(pt(Z.map(function(N){return N+k})),[0]):Z,right:c==="rtl"?q:[].concat(pt(q.map(function(N){return N+k})),[0]),isSticky:T})},[k,l,T]),W=dut(a,s);return f.createElement("div",{style:X({overflow:"hidden"},T?{top:d,bottom:h}:{}),ref:P,className:Re(n,ae({},p,!!p))},f.createElement(E,{style:{tableLayout:"fixed",visibility:r||W?null:"hidden"}},(!r||!v||D)&&f.createElement(rCe,{colWidths:W?[].concat(pt(W),[k]):[],columCount:s+1,columns:F}),y(X(X({},S),{},{stickyOffsets:z,columns:H,flattenColumns:F}))))});const Mte=f.memo(fut);var hut=function(t){var n=t.cells,r=t.stickyOffsets,i=t.flattenColumns,o=t.rowComponent,a=t.cellComponent,s=t.onHeaderRow,l=t.index,c=ws(Cl,["prefixCls","direction"]),u=c.prefixCls,d=c.direction,h;s&&(h=s(n.map(function(m){return m.column}),l));var p=vP(n.map(function(m){return m.column}));return f.createElement(o,h,n.map(function(m,v){var y=m.column,S=UW(m.colStart,m.colEnd,i,r,d),b;return y&&y.onHeaderCell&&(b=m.column.onHeaderCell(y)),f.createElement(sC,st({},m,{scope:y.title?m.colSpan>1?"colgroup":"col":null,ellipsis:y.ellipsis,align:y.align,component:a,prefixCls:u,key:p[v]},S,{additionalProps:b,rowType:"header"}))}))};function put(e){var t=[];function n(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[l]=t[l]||[];var c=s,u=a.filter(Boolean).map(function(d){var h={key:d.key,className:d.className||"",children:d.title,column:d,colStart:c},p=1,m=d.children;return m&&m.length>0&&(p=n(m,c,l+1).reduce(function(v,y){return v+y},0),h.hasSubColumns=!0),"colSpan"in d&&(p=d.colSpan),"rowSpan"in d&&(h.rowSpan=d.rowSpan),h.colSpan=p,h.colEnd=h.colStart+p-1,t[l].push(h),c+=p,p});return u}n(e,0);for(var r=t.length,i=function(s){t[s].forEach(function(l){!("rowSpan"in l)&&!l.hasSubColumns&&(l.rowSpan=r-s)})},o=0;o<r;o+=1)i(o);return t}var mut=function(t){var n=t.stickyOffsets,r=t.columns,i=t.flattenColumns,o=t.onHeaderRow,a=ws(Cl,["prefixCls","getComponent"]),s=a.prefixCls,l=a.getComponent,c=f.useMemo(function(){return put(r)},[r]),u=l(["header","wrapper"],"thead"),d=l(["header","row"],"tr"),h=l(["header","cell"],"th");return f.createElement(u,{className:"".concat(s,"-thead")},c.map(function(p,m){var v=f.createElement(hut,{key:m,flattenColumns:i,cells:p,stickyOffsets:n,rowComponent:d,cellComponent:h,onHeaderRow:o,index:m});return v}))};const Ite=aC(mut);function $te(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function gut(e,t,n){return f.useMemo(function(){if(t&&t>0){var r=0,i=0;e.forEach(function(h){var p=$te(t,h.width);p?r+=p:i+=1});var o=Math.max(t,n),a=Math.max(o-r,i),s=i,l=a/i,c=0,u=e.map(function(h){var p=X({},h),m=$te(t,p.width);if(m)p.width=m;else{var v=Math.floor(l);p.width=s===1?a:v,a-=v,s-=1}return c+=p.width,p});if(c<o){var d=o/c;a=o,u.forEach(function(h,p){var m=Math.floor(h.width*d);h.width=p===u.length-1?a:m,a-=m})}return[u,Math.max(c,o)]}return[e,t]},[e,t,n])}var vut=["children"],yut=["fixed"];function WW(e){return zo(e).filter(function(t){return f.isValidElement(t)}).map(function(t){var n=t.key,r=t.props,i=r.children,o=tn(r,vut),a=X({key:n},o);return i&&(a.children=WW(i)),a})}function iCe(e){return e.filter(function(t){return t&&ln(t)==="object"&&!t.hidden}).map(function(t){var n=t.children;return n&&n.length>0?X(X({},t),{},{children:iCe(n)}):t})}function tj(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&ln(n)==="object"}).reduce(function(n,r,i){var o=r.fixed,a=o===!0?"left":o,s="".concat(t,"-").concat(i),l=r.children;return l&&l.length>0?[].concat(pt(n),pt(tj(l,s).map(function(c){return X({fixed:a},c)}))):[].concat(pt(n),[X(X({key:s},r),{},{fixed:a})])},[])}function but(e){return e.map(function(t){var n=t.fixed,r=tn(t,yut),i=n;return n==="left"?i="right":n==="right"&&(i="left"),X({fixed:i},r)})}function Sut(e,t){var n=e.prefixCls,r=e.columns,i=e.children,o=e.expandable,a=e.expandedKeys,s=e.columnTitle,l=e.getRowKey,c=e.onTriggerExpand,u=e.expandIcon,d=e.rowExpandable,h=e.expandIconColumnIndex,p=e.direction,m=e.expandRowByClick,v=e.columnWidth,y=e.fixed,S=e.scrollWidth,b=e.clientWidth,C=f.useMemo(function(){var R=r||WW(i)||[];return iCe(R.slice())},[r,i]),_=f.useMemo(function(){if(o){var R=C.slice();if(!R.includes(Dh)){var A=h||0;A>=0&&(A||y==="left"||!y)&&R.splice(A,0,Dh),y==="right"&&R.splice(C.length,0,Dh)}var H=R.indexOf(Dh);R=R.filter(function(q,Z){return q!==Dh||Z===H});var F=C[H],z;y?z=y:z=F?F.fixed:null;var W=ae(ae(ae(ae(ae(ae({},rw,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",s),"fixed",z),"className","".concat(n,"-row-expand-icon-cell")),"width",v),"render",function(Z,N,B){var V=l(N,B),G=a.has(V),ie=d?d(N):!0,ce=u({prefixCls:n,expanded:G,expandable:ie,record:N,onExpand:c});return m?f.createElement("span",{onClick:function(ee){return ee.stopPropagation()}},ce):ce});return R.map(function(q){return q===Dh?W:q})}return C.filter(function(q){return q!==Dh})},[o,C,l,a,u,p]),T=f.useMemo(function(){var R=_;return t&&(R=t(R)),R.length||(R=[{render:function(){return null}}]),R},[t,_,p]),x=f.useMemo(function(){return p==="rtl"?but(tj(T)):tj(T)},[T,p,S]),E=f.useMemo(function(){for(var R=-1,A=x.length-1;A>=0;A-=1){var H=x[A].fixed;if(H==="left"||H===!0){R=A;break}}if(R>=0)for(var F=0;F<=R;F+=1){var z=x[F].fixed;if(z!=="left"&&z!==!0)return!0}var W=x.findIndex(function(N){var B=N.fixed;return B==="right"});if(W>=0)for(var q=W;q<x.length;q+=1){var Z=x[q].fixed;if(Z!=="right")return!0}return!1},[x]),k=gut(x,S,b),M=Le(k,2),P=M[0],D=M[1];return[T,P,D,E]}function Cut(e,t,n){var r=lut(e),i=r.expandIcon,o=r.expandedRowKeys,a=r.defaultExpandedRowKeys,s=r.defaultExpandAllRows,l=r.expandedRowRender,c=r.onExpand,u=r.onExpandedRowsChange,d=r.childrenColumnName,h=i||Jct,p=d||"children",m=f.useMemo(function(){return l?"row":e.expandable&&e.internalHooks===BE&&e.expandable.__PARENT_RENDER_ICON__||t.some(function(T){return T&&ln(T)==="object"&&T[p]})?"nest":!1},[!!l,t]),v=f.useState(function(){return a||(s?eut(t,n,p):[])}),y=Le(v,2),S=y[0],b=y[1],C=f.useMemo(function(){return new Set(o||S||[])},[o,S]),_=f.useCallback(function(T){var x=n(T,t.indexOf(T)),E,k=C.has(x);k?(C.delete(x),E=pt(C)):E=[].concat(pt(C),[x]),b(E),c&&c(!k,T),u&&u(E)},[n,C,t,c,u]);return[r,m,C,h,p,_]}function xut(e,t,n){var r=e.map(function(i,o){return UW(o,o,e,t,n)});return dp(function(){return r},[r],function(i,o){return!ku(i,o)})}function oCe(e){var t=f.useRef(e),n=f.useState({}),r=Le(n,2),i=r[1],o=f.useRef(null),a=f.useRef([]);function s(l){a.current.push(l);var c=Promise.resolve();o.current=c,c.then(function(){if(o.current===c){var u=a.current,d=t.current;a.current=[],u.forEach(function(h){t.current=h(t.current)}),o.current=null,d!==t.current&&i({})}})}return f.useEffect(function(){return function(){o.current=null}},[]),[t.current,s]}function wut(e){var t=f.useRef(null),n=f.useRef();function r(){window.clearTimeout(n.current)}function i(a){t.current=a,r(),n.current=window.setTimeout(function(){t.current=null,n.current=void 0},100)}function o(){return t.current}return f.useEffect(function(){return r},[]),[i,o]}function _ut(){var e=f.useState(-1),t=Le(e,2),n=t[0],r=t[1],i=f.useState(-1),o=Le(i,2),a=o[0],s=o[1],l=f.useCallback(function(c,u){r(c),s(u)},[]);return[n,a,l]}var Rte=pl()?window:null;function Eut(e,t){var n=ln(e)==="object"?e:{},r=n.offsetHeader,i=r===void 0?0:r,o=n.offsetSummary,a=o===void 0?0:o,s=n.offsetScroll,l=s===void 0?0:s,c=n.getContainer,u=c===void 0?function(){return Rte}:c,d=u()||Rte,h=!!e;return f.useMemo(function(){return{isSticky:h,stickyClassName:h?"".concat(t,"-sticky-holder"):"",offsetHeader:i,offsetSummary:a,offsetScroll:l,container:d}},[h,l,i,a,t,d])}function Tut(e,t,n){var r=f.useMemo(function(){var i=t.length,o=function(c,u,d){for(var h=[],p=0,m=c;m!==u;m+=d)h.push(p),t[m].fixed&&(p+=e[m]||0);return h},a=o(0,i,1),s=o(i-1,-1,-1).reverse();return n==="rtl"?{left:s,right:a}:{left:a,right:s}},[e,t,n]);return r}function Ate(e){var t=e.className,n=e.children;return f.createElement("div",{className:t},n)}function Nte(e){var t=J6(e),n=t.getBoundingClientRect(),r=document.documentElement;return{left:n.left+(window.pageXOffset||r.scrollLeft)-(r.clientLeft||document.body.clientLeft||0),top:n.top+(window.pageYOffset||r.scrollTop)-(r.clientTop||document.body.clientTop||0)}}var kut=function(t,n){var r,i,o=t.scrollBodyRef,a=t.onScroll,s=t.offsetScroll,l=t.container,c=t.direction,u=ws(Cl,"prefixCls"),d=((r=o.current)===null||r===void 0?void 0:r.scrollWidth)||0,h=((i=o.current)===null||i===void 0?void 0:i.clientWidth)||0,p=d&&h*(h/d),m=f.useRef(),v=oCe({scrollLeft:0,isHiddenScrollBar:!0}),y=Le(v,2),S=y[0],b=y[1],C=f.useRef({delta:0,x:0}),_=f.useState(!1),T=Le(_,2),x=T[0],E=T[1],k=f.useRef(null);f.useEffect(function(){return function(){Cr.cancel(k.current)}},[]);var M=function(){E(!1)},P=function(F){F.persist(),C.current.delta=F.pageX-S.scrollLeft,C.current.x=0,E(!0),F.preventDefault()},D=function(F){var z,W=F||((z=window)===null||z===void 0?void 0:z.event),q=W.buttons;if(!x||q===0){x&&E(!1);return}var Z=C.current.x+F.pageX-C.current.x-C.current.delta,N=c==="rtl";Z=Math.max(N?p-h:0,Math.min(N?0:h-p,Z));var B=!N||Math.abs(Z)+Math.abs(p)<h;B&&(a({scrollLeft:Z/h*(d+2)}),C.current.x=F.pageX)},R=function(){k.current=Cr(function(){if(o.current){var F=Nte(o.current).top,z=F+o.current.offsetHeight,W=l===window?document.documentElement.scrollTop+window.innerHeight:Nte(l).top+l.clientHeight;z-oJ()<=W||F>=W-s?b(function(q){return X(X({},q),{},{isHiddenScrollBar:!0})}):b(function(q){return X(X({},q),{},{isHiddenScrollBar:!1})})}})},A=function(F){b(function(z){return X(X({},z),{},{scrollLeft:F/d*h||0})})};return f.useImperativeHandle(n,function(){return{setScrollLeft:A,checkScrollBarVisible:R}}),f.useEffect(function(){var H=$f(document.body,"mouseup",M,!1),F=$f(document.body,"mousemove",D,!1);return R(),function(){H.remove(),F.remove()}},[p,x]),f.useEffect(function(){var H=$f(l,"scroll",R,!1),F=$f(window,"resize",R,!1);return function(){H.remove(),F.remove()}},[l]),f.useEffect(function(){S.isHiddenScrollBar||b(function(H){var F=o.current;return F?X(X({},H),{},{scrollLeft:F.scrollLeft/F.scrollWidth*F.clientWidth}):H})},[S.isHiddenScrollBar]),d<=h||!p||S.isHiddenScrollBar?null:f.createElement("div",{style:{height:oJ(),width:h,bottom:s},className:"".concat(u,"-sticky-scroll")},f.createElement("div",{onMouseDown:P,ref:m,className:Re("".concat(u,"-sticky-scroll-bar"),ae({},"".concat(u,"-sticky-scroll-bar-active"),x)),style:{width:"".concat(p,"px"),transform:"translate3d(".concat(S.scrollLeft,"px, 0, 0)")}}))};const Out=f.forwardRef(kut);var aCe="rc-table",Put=[],Mut={};function Iut(){return"No Data"}function $ut(e,t){var n=X({rowKey:"key",prefixCls:aCe,emptyText:Iut},e),r=n.prefixCls,i=n.className,o=n.rowClassName,a=n.style,s=n.data,l=n.rowKey,c=n.scroll,u=n.tableLayout,d=n.direction,h=n.title,p=n.footer,m=n.summary,v=n.caption,y=n.id,S=n.showHeader,b=n.components,C=n.emptyText,_=n.onRow,T=n.onHeaderRow,x=n.onScroll,E=n.internalHooks,k=n.transformColumns,M=n.internalRefs,P=n.tailor,D=n.getContainerWidth,R=n.sticky,A=n.rowHoverable,H=A===void 0?!0:A,F=s||Put,z=!!F.length,W=E===BE,q=f.useCallback(function(fr,xn){return jo(b,fr)||xn},[b]),Z=f.useMemo(function(){return typeof l=="function"?l:function(fr){var xn=fr&&fr[l];return xn}},[l]),N=q(["body"]),B=_ut(),V=Le(B,3),G=V[0],ie=V[1],ce=V[2],fe=Cut(n,F,Z),ee=Le(fe,6),ne=ee[0],ue=ee[1],ye=ee[2],me=ee[3],pe=ee[4],he=ee[5],_e=c==null?void 0:c.x,le=f.useState(0),xe=Le(le,2),we=xe[0],De=xe[1],Fe=Sut(X(X(X({},n),ne),{},{expandable:!!ne.expandedRowRender,columnTitle:ne.columnTitle,expandedKeys:ye,getRowKey:Z,onTriggerExpand:he,expandIcon:me,expandIconColumnIndex:ne.expandIconColumnIndex,direction:d,scrollWidth:W&&P&&typeof _e=="number"?_e:null,clientWidth:we}),W?k:null),Ce=Le(Fe,4),Te=Ce[0],ke=Ce[1],Pe=Ce[2],Ne=Ce[3],We=Pe??_e,Q=f.useMemo(function(){return{columns:Te,flattenColumns:ke}},[Te,ke]),K=f.useRef(),J=f.useRef(),be=f.useRef(),Oe=f.useRef();f.useImperativeHandle(t,function(){return{nativeElement:K.current,scrollTo:function(xn){var zn;if(be.current instanceof HTMLElement){var Gn=xn.index,ir=xn.top,jr=xn.key;if(Bct(ir)){var Ro;(Ro=be.current)===null||Ro===void 0||Ro.scrollTo({top:ir})}else{var na,Ei=jr??Z(F[Gn]);(na=be.current.querySelector('[data-row-key="'.concat(Ei,'"]')))===null||na===void 0||na.scrollIntoView()}}else(zn=be.current)!==null&&zn!==void 0&&zn.scrollTo&&be.current.scrollTo(xn)}}});var Se=f.useRef(),Ke=f.useState(!1),tt=Le(Ke,2),se=tt[0],ze=tt[1],Ye=f.useState(!1),Ue=Le(Ye,2),Je=Ue[0],Ze=Ue[1],rt=oCe(new Map),qt=Le(rt,2),St=qt[0],Ot=qt[1],Bt=vP(ke),Dt=Bt.map(function(fr){return St.get(fr)}),an=f.useMemo(function(){return Dt},[Dt.join("_")]),Vt=Tut(an,ke,d),Kt=c&&ej(c.y),Qt=c&&ej(We)||!!ne.fixed,et=Qt&&ke.some(function(fr){var xn=fr.fixed;return xn}),ot=f.useRef(),Qe=Eut(R,r),ut=Qe.isSticky,Nt=Qe.offsetHeader,Lt=Qe.offsetSummary,Zt=Qe.offsetScroll,Wt=Qe.stickyClassName,At=Qe.container,$t=f.useMemo(function(){return m==null?void 0:m(F)},[m,F]),Gt=(Kt||ut)&&f.isValidElement($t)&&$t.type===yP&&$t.props.fixed,Ft,cn,_t;Kt&&(cn={overflowY:z?"scroll":"auto",maxHeight:c.y}),Qt&&(Ft={overflowX:"auto"},Kt||(cn={overflowY:"hidden"}),_t={width:We===!0?"auto":We,minWidth:"100%"});var jt=f.useCallback(function(fr,xn){VS(K.current)&&Ot(function(zn){if(zn.get(fr)!==xn){var Gn=new Map(zn);return Gn.set(fr,xn),Gn}return zn})},[]),nn=wut(),Ht=Le(nn,2),Tt=Ht[0],gt=Ht[1];function Ve(fr,xn){xn&&(typeof xn=="function"?xn(fr):xn.scrollLeft!==fr&&(xn.scrollLeft=fr,xn.scrollLeft!==fr&&setTimeout(function(){xn.scrollLeft=fr},0)))}var Yt=ur(function(fr){var xn=fr.currentTarget,zn=fr.scrollLeft,Gn=d==="rtl",ir=typeof zn=="number"?zn:xn.scrollLeft,jr=xn||Mut;if(!gt()||gt()===jr){var Ro;Tt(jr),Ve(ir,J.current),Ve(ir,be.current),Ve(ir,Se.current),Ve(ir,(Ro=ot.current)===null||Ro===void 0?void 0:Ro.setScrollLeft)}var na=xn||J.current;if(na){var Ei=W&&P&&typeof We=="number"?We:na.scrollWidth,ra=na.clientWidth;if(Ei===ra){ze(!1),Ze(!1);return}Gn?(ze(-ir<Ei-ra),Ze(-ir>0)):(ze(ir>0),Ze(ir<Ei-ra))}}),mt=ur(function(fr){Yt(fr),x==null||x(fr)}),Mt=function(){if(Qt&&be.current){var xn;Yt({currentTarget:J6(be.current),scrollLeft:(xn=be.current)===null||xn===void 0?void 0:xn.scrollLeft})}else ze(!1),Ze(!1)},zt=function(xn){var zn,Gn=xn.width;(zn=ot.current)===null||zn===void 0||zn.checkScrollBarVisible();var ir=K.current?K.current.offsetWidth:Gn;W&&D&&K.current&&(ir=D(K.current,ir)||ir),ir!==we&&(Mt(),De(ir))},Dn=f.useRef(!1);f.useEffect(function(){Dn.current&&Mt()},[Qt,s,Te.length]),f.useEffect(function(){Dn.current=!0},[]);var Qn=f.useState(0),O=Le(Qn,2),j=O[0],oe=O[1],Ae=f.useState(!0),Ge=Le(Ae,2),ft=Ge[0],Jt=Ge[1];f.useEffect(function(){(!P||!W)&&(be.current instanceof Element?oe(yF(be.current).width):oe(yF(Oe.current).width)),Jt(PF("position","sticky"))},[]),f.useEffect(function(){W&&M&&(M.body.current=be.current)});var on=f.useCallback(function(fr){return f.createElement(f.Fragment,null,f.createElement(Ite,fr),Gt==="top"&&f.createElement(JT,fr,$t))},[Gt,$t]),Zn=f.useCallback(function(fr){return f.createElement(JT,fr,$t)},[$t]),ni=q(["table"],"table"),zr=f.useMemo(function(){return u||(et?We==="max-content"?"auto":"fixed":Kt||ut||ke.some(function(fr){var xn=fr.ellipsis;return xn})?"fixed":"auto")},[Kt,et,ke,u,ut]),Yr,Rr={colWidths:an,columCount:ke.length,stickyOffsets:Vt,onHeaderRow:T,fixHeader:Kt,scroll:c},wn=f.useMemo(function(){return z?null:typeof C=="function"?C():C},[z,C]),Pn=f.createElement(aut,{data:F,measureColumnWidth:Kt||Qt||ut}),Ar=f.createElement(rCe,{colWidths:ke.map(function(fr){var xn=fr.width;return xn}),columns:ke}),bn=v!=null?f.createElement("caption",{className:"".concat(r,"-caption")},v):void 0,Cn=Bi(n,{data:!0}),nr=Bi(n,{aria:!0});if(Kt||ut){var Ir;typeof N=="function"?(Ir=N(F,{scrollbarSize:j,ref:be,onScroll:Yt}),Rr.colWidths=ke.map(function(fr,xn){var zn=fr.width,Gn=xn===ke.length-1?zn-j:zn;return typeof Gn=="number"&&!Number.isNaN(Gn)?Gn:0})):Ir=f.createElement("div",{style:X(X({},Ft),cn),onScroll:mt,ref:be,className:Re("".concat(r,"-body"))},f.createElement(ni,st({style:X(X({},_t),{},{tableLayout:zr})},nr),bn,Ar,Pn,!Gt&&$t&&f.createElement(JT,{stickyOffsets:Vt,flattenColumns:ke},$t)));var li=X(X(X({noData:!F.length,maxContentScroll:Qt&&We==="max-content"},Rr),Q),{},{direction:d,stickyClassName:Wt,onScroll:Yt});Yr=f.createElement(f.Fragment,null,S!==!1&&f.createElement(Mte,st({},li,{stickyTopOffset:Nt,className:"".concat(r,"-header"),ref:J}),on),Ir,Gt&&Gt!=="top"&&f.createElement(Mte,st({},li,{stickyBottomOffset:Lt,className:"".concat(r,"-summary"),ref:Se}),Zn),ut&&be.current&&be.current instanceof Element&&f.createElement(Out,{ref:ot,offsetScroll:Zt,scrollBodyRef:be,onScroll:Yt,container:At,direction:d}))}else Yr=f.createElement("div",{style:X(X({},Ft),cn),className:Re("".concat(r,"-content")),onScroll:Yt,ref:be},f.createElement(ni,st({style:X(X({},_t),{},{tableLayout:zr})},nr),bn,Ar,S!==!1&&f.createElement(Ite,st({},Rr,Q)),Pn,$t&&f.createElement(JT,{stickyOffsets:Vt,flattenColumns:ke},$t)));var Ui=f.createElement("div",st({className:Re(r,i,ae(ae(ae(ae(ae(ae(ae(ae(ae(ae({},"".concat(r,"-rtl"),d==="rtl"),"".concat(r,"-ping-left"),se),"".concat(r,"-ping-right"),Je),"".concat(r,"-layout-fixed"),u==="fixed"),"".concat(r,"-fixed-header"),Kt),"".concat(r,"-fixed-column"),et),"".concat(r,"-fixed-column-gapped"),et&&Ne),"".concat(r,"-scroll-horizontal"),Qt),"".concat(r,"-has-fix-left"),ke[0]&&ke[0].fixed),"".concat(r,"-has-fix-right"),ke[ke.length-1]&&ke[ke.length-1].fixed==="right")),style:a,id:y,ref:K},Cn),h&&f.createElement(Ate,{className:"".concat(r,"-title")},h(F)),f.createElement("div",{ref:Oe,className:"".concat(r,"-container")},Yr),p&&f.createElement(Ate,{className:"".concat(r,"-footer")},p(F)));Qt&&(Ui=f.createElement(Wa,{onResize:zt},Ui));var gr=xut(ke,Vt,d),Di=f.useMemo(function(){return{scrollX:We,prefixCls:r,getComponent:q,scrollbarSize:j,direction:d,fixedInfoList:gr,isSticky:ut,supportSticky:ft,componentWidth:we,fixHeader:Kt,fixColumn:et,horizonScroll:Qt,tableLayout:zr,rowClassName:o,expandedRowClassName:ne.expandedRowClassName,expandIcon:me,expandableType:ue,expandRowByClick:ne.expandRowByClick,expandedRowRender:ne.expandedRowRender,onTriggerExpand:he,expandIconColumnIndex:ne.expandIconColumnIndex,indentSize:ne.indentSize,allColumnsFixedLeft:ke.every(function(fr){return fr.fixed==="left"}),emptyNode:wn,columns:Te,flattenColumns:ke,onColumnResize:jt,hoverStartRow:G,hoverEndRow:ie,onHover:ce,rowExpandable:ne.rowExpandable,onRow:_,getRowKey:Z,expandedKeys:ye,childrenColumnName:pe,rowHoverable:H}},[We,r,q,j,d,gr,ut,ft,we,Kt,et,Qt,zr,o,ne.expandedRowClassName,me,ue,ne.expandRowByClick,ne.expandedRowRender,he,ne.expandIconColumnIndex,ne.indentSize,wn,Te,ke,jt,G,ie,ce,ne.rowExpandable,_,Z,ye,pe,H]);return f.createElement(Cl.Provider,{value:Di},Ui)}var Rut=f.forwardRef($ut);function sCe(e){return qSe(Rut,e)}var lC=sCe();lC.EXPAND_COLUMN=Dh;lC.INTERNAL_HOOKS=BE;lC.Column=Qct;lC.ColumnGroup=Zct;lC.Summary=XSe;var VW=HW(null),lCe=HW(null);function Aut(e,t,n){var r=t||1;return n[e+r]-(n[e]||0)}function Nut(e){var t=e.rowInfo,n=e.column,r=e.colIndex,i=e.indent,o=e.index,a=e.component,s=e.renderIndex,l=e.record,c=e.style,u=e.className,d=e.inverse,h=e.getHeight,p=n.render,m=n.dataIndex,v=n.className,y=n.width,S=ws(lCe,["columnsOffset"]),b=S.columnsOffset,C=nCe(t,n,r,i,o),_=C.key,T=C.fixedInfo,x=C.appendCellNode,E=C.additionalCellProps,k=E.style,M=E.colSpan,P=M===void 0?1:M,D=E.rowSpan,R=D===void 0?1:D,A=r-1,H=Aut(A,P,b),F=P>1?y-H:0,z=X(X(X({},k),c),{},{flex:"0 0 ".concat(H,"px"),width:"".concat(H,"px"),marginRight:F,pointerEvents:"auto"}),W=f.useMemo(function(){return d?R<=1:P===0||R===0||R>1},[R,P,d]);W?z.visibility="hidden":d&&(z.height=h==null?void 0:h(R));var q=W?function(){return null}:p,Z={};return(R===0||P===0)&&(Z.rowSpan=1,Z.colSpan=1),f.createElement(sC,st({className:Re(v,u),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:a,prefixCls:t.prefixCls,key:_,record:l,index:o,renderIndex:s,dataIndex:m,render:q,shouldCellUpdate:n.shouldCellUpdate},T,{appendNode:x,additionalProps:X(X({},E),{},{style:z},Z)}))}var Dut=["data","index","className","rowKey","style","extra","getHeight"],Lut=f.forwardRef(function(e,t){var n=e.data,r=e.index,i=e.className,o=e.rowKey,a=e.style,s=e.extra,l=e.getHeight,c=tn(e,Dut),u=n.record,d=n.indent,h=n.index,p=ws(Cl,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),m=p.scrollX,v=p.flattenColumns,y=p.prefixCls,S=p.fixColumn,b=p.componentWidth,C=ws(VW,["getComponent"]),_=C.getComponent,T=JSe(u,o,r,d),x=_(["body","row"],"div"),E=_(["body","cell"],"div"),k=T.rowSupportExpand,M=T.expanded,P=T.rowProps,D=T.expandedRowRender,R=T.expandedRowClassName,A;if(k&&M){var H=D(u,r,d+1,M),F=tCe(R,u,r,d),z={};S&&(z={style:ae({},"--virtual-width","".concat(b,"px"))});var W="".concat(y,"-expanded-row-cell");A=f.createElement(x,{className:Re("".concat(y,"-expanded-row"),"".concat(y,"-expanded-row-level-").concat(d+1),F)},f.createElement(sC,{component:E,prefixCls:y,className:Re(W,ae({},"".concat(W,"-fixed"),S)),additionalProps:z},H))}var q=X(X({},a),{},{width:m});s&&(q.position="absolute",q.pointerEvents="none");var Z=f.createElement(x,st({},P,c,{"data-row-key":o,ref:k?null:t,className:Re(i,"".concat(y,"-row"),P==null?void 0:P.className,ae({},"".concat(y,"-row-extra"),s)),style:X(X({},q),P==null?void 0:P.style)}),v.map(function(N,B){return f.createElement(Nut,{key:B,component:E,rowInfo:T,column:N,colIndex:B,indent:d,index:r,renderIndex:h,record:u,inverse:s,getHeight:l})}));return k?f.createElement("div",{ref:t},Z,A):Z}),Dte=aC(Lut),Fut=f.forwardRef(function(e,t){var n=e.data,r=e.onScroll,i=ws(Cl,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),o=i.flattenColumns,a=i.onColumnResize,s=i.getRowKey,l=i.expandedKeys,c=i.prefixCls,u=i.childrenColumnName,d=i.scrollX,h=i.direction,p=ws(VW),m=p.sticky,v=p.scrollY,y=p.listItemHeight,S=p.getComponent,b=p.onScroll,C=f.useRef(),_=ZSe(n,u,l,s),T=f.useMemo(function(){var A=0;return o.map(function(H){var F=H.width,z=H.key;return A+=F,[z,F,A]})},[o]),x=f.useMemo(function(){return T.map(function(A){return A[2]})},[T]);f.useEffect(function(){T.forEach(function(A){var H=Le(A,2),F=H[0],z=H[1];a(F,z)})},[T]),f.useImperativeHandle(t,function(){var A,H={scrollTo:function(z){var W;(W=C.current)===null||W===void 0||W.scrollTo(z)},nativeElement:(A=C.current)===null||A===void 0?void 0:A.nativeElement};return Object.defineProperty(H,"scrollLeft",{get:function(){var z;return((z=C.current)===null||z===void 0?void 0:z.getScrollInfo().x)||0},set:function(z){var W;(W=C.current)===null||W===void 0||W.scrollTo({left:z})}}),H});var E=function(H,F){var z,W=(z=_[F])===null||z===void 0?void 0:z.record,q=H.onCell;if(q){var Z,N=q(W,F);return(Z=N==null?void 0:N.rowSpan)!==null&&Z!==void 0?Z:1}return 1},k=function(H){var F=H.start,z=H.end,W=H.getSize,q=H.offsetY;if(z<0)return null;for(var Z=o.filter(function(me){return E(me,F)===0}),N=F,B=function(pe){if(Z=Z.filter(function(he){return E(he,pe)===0}),!Z.length)return N=pe,1},V=F;V>=0&&!B(V);V-=1);for(var G=o.filter(function(me){return E(me,z)!==1}),ie=z,ce=function(pe){if(G=G.filter(function(he){return E(he,pe)!==1}),!G.length)return ie=Math.max(pe-1,z),1},fe=z;fe<_.length&&!ce(fe);fe+=1);for(var ee=[],ne=function(pe){var he=_[pe];if(!he)return 1;o.some(function(_e){return E(_e,pe)>1})&&ee.push(pe)},ue=N;ue<=ie;ue+=1)ne(ue);var ye=ee.map(function(me){var pe=_[me],he=s(pe.record,me),_e=function(we){var De=me+we-1,Fe=s(_[De].record,De),Ce=W(he,Fe);return Ce.bottom-Ce.top},le=W(he);return f.createElement(Dte,{key:me,data:pe,rowKey:he,index:me,style:{top:-q+le.top},extra:!0,getHeight:_e})});return ye},M=f.useMemo(function(){return{columnsOffset:x}},[x]),P="".concat(c,"-tbody"),D=S(["body","wrapper"]),R={};return m&&(R.position="sticky",R.bottom=0,ln(m)==="object"&&m.offsetScroll&&(R.bottom=m.offsetScroll)),f.createElement(lCe.Provider,{value:M},f.createElement(zO,{fullHeight:!1,ref:C,prefixCls:"".concat(P,"-virtual"),styles:{horizontalScrollBar:R},className:P,height:v,itemHeight:y||24,data:_,itemKey:function(H){return s(H.record)},component:D,scrollWidth:d,direction:h,onVirtualScroll:function(H){var F,z=H.x;r({currentTarget:(F=C.current)===null||F===void 0?void 0:F.nativeElement,scrollLeft:z})},onScroll:b,extraRender:k},function(A,H,F){var z=s(A.record,H);return f.createElement(Dte,{data:A,rowKey:z,index:H,style:F.style})}))}),jut=aC(Fut),But=function(t,n){var r=n.ref,i=n.onScroll;return f.createElement(jut,{ref:r,data:t,onScroll:i})};function Hut(e,t){var n=e.data,r=e.columns,i=e.scroll,o=e.sticky,a=e.prefixCls,s=a===void 0?aCe:a,l=e.className,c=e.listItemHeight,u=e.components,d=e.onScroll,h=i||{},p=h.x,m=h.y;typeof p!="number"&&(p=1),typeof m!="number"&&(m=500);var v=ur(function(b,C){return jo(u,b)||C}),y=ur(d),S=f.useMemo(function(){return{sticky:o,scrollY:m,listItemHeight:c,getComponent:v,onScroll:y}},[o,m,c,v,y]);return f.createElement(VW.Provider,{value:S},f.createElement(lC,st({},e,{className:Re(l,"".concat(s,"-virtual")),scroll:X(X({},i),{},{x:p}),components:X(X({},u),{},{body:n!=null&&n.length?But:void 0}),columns:r,internalHooks:BE,tailor:!0,ref:t})))}var zut=f.forwardRef(Hut);function cCe(e){return qSe(zut,e)}cCe();const Uut=e=>null,Wut=e=>null;var KW=f.createContext(null),uCe=f.createContext({}),Vut=function(t){for(var n=t.prefixCls,r=t.level,i=t.isStart,o=t.isEnd,a="".concat(n,"-indent-unit"),s=[],l=0;l<r;l+=1)s.push(f.createElement("span",{key:l,className:Re(a,ae(ae({},"".concat(a,"-start"),i[l]),"".concat(a,"-end"),o[l]))}));return f.createElement("span",{"aria-hidden":"true",className:"".concat(n,"-indent")},s)};const Kut=f.memo(Vut);var qut=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],Lte="open",Fte="close",Gut="---",b_=function(t){var n,r,i=t.eventKey,o=t.className,a=t.style,s=t.dragOver,l=t.dragOverGapTop,c=t.dragOverGapBottom,u=t.isLeaf,d=t.isStart,h=t.isEnd,p=t.expanded,m=t.selected,v=t.checked,y=t.halfChecked,S=t.loading,b=t.domRef,C=t.active,_=t.data,T=t.onMouseMove,x=t.selectable,E=tn(t,qut),k=ge.useContext(KW),M=ge.useContext(uCe),P=ge.useRef(null),D=ge.useState(!1),R=Le(D,2),A=R[0],H=R[1],F=ge.useMemo(function(){var Oe;return!!(k.disabled||t.disabled||(Oe=M.nodeDisabled)!==null&&Oe!==void 0&&Oe.call(M,_))},[k.disabled,t.disabled,M.nodeDisabled,_]),z=ge.useMemo(function(){return!k.checkable||t.checkable===!1?!1:k.checkable},[k.checkable,t.checkable]),W=function(Se){F||k.onNodeSelect(Se,xa(t))},q=function(Se){F||!z||t.disableCheckbox||k.onNodeCheck(Se,xa(t),!v)},Z=ge.useMemo(function(){return typeof x=="boolean"?x:k.selectable},[x,k.selectable]),N=function(Se){k.onNodeClick(Se,xa(t)),Z?W(Se):q(Se)},B=function(Se){k.onNodeDoubleClick(Se,xa(t))},V=function(Se){k.onNodeMouseEnter(Se,xa(t))},G=function(Se){k.onNodeMouseLeave(Se,xa(t))},ie=function(Se){k.onNodeContextMenu(Se,xa(t))},ce=ge.useMemo(function(){return!!(k.draggable&&(!k.draggable.nodeDraggable||k.draggable.nodeDraggable(_)))},[k.draggable,_]),fe=function(Se){Se.stopPropagation(),H(!0),k.onNodeDragStart(Se,t);try{Se.dataTransfer.setData("text/plain","")}catch{}},ee=function(Se){Se.preventDefault(),Se.stopPropagation(),k.onNodeDragEnter(Se,t)},ne=function(Se){Se.preventDefault(),Se.stopPropagation(),k.onNodeDragOver(Se,t)},ue=function(Se){Se.stopPropagation(),k.onNodeDragLeave(Se,t)},ye=function(Se){Se.stopPropagation(),H(!1),k.onNodeDragEnd(Se,t)},me=function(Se){Se.preventDefault(),Se.stopPropagation(),H(!1),k.onNodeDrop(Se,t)},pe=function(Se){S||k.onNodeExpand(Se,xa(t))},he=ge.useMemo(function(){var Oe=Fl(k.keyEntities,i)||{},Se=Oe.children;return!!(Se||[]).length},[k.keyEntities,i]),_e=ge.useMemo(function(){return u===!1?!1:u||!k.loadData&&!he||k.loadData&&t.loaded&&!he},[u,k.loadData,he,t.loaded]);ge.useEffect(function(){S||typeof k.loadData=="function"&&p&&!_e&&!t.loaded&&k.onNodeLoad(xa(t))},[S,k.loadData,k.onNodeLoad,p,_e,t]);var le=ge.useMemo(function(){var Oe;return(Oe=k.draggable)!==null&&Oe!==void 0&&Oe.icon?ge.createElement("span",{className:"".concat(k.prefixCls,"-draggable-icon")},k.draggable.icon):null},[k.draggable]),xe=function(Se){var Ke=t.switcherIcon||k.switcherIcon;return typeof Ke=="function"?Ke(X(X({},t),{},{isLeaf:Se})):Ke},we=function(){if(_e){var Se=xe(!0);return Se!==!1?ge.createElement("span",{className:Re("".concat(k.prefixCls,"-switcher"),"".concat(k.prefixCls,"-switcher-noop"))},Se):null}var Ke=xe(!1);return Ke!==!1?ge.createElement("span",{onClick:pe,className:Re("".concat(k.prefixCls,"-switcher"),"".concat(k.prefixCls,"-switcher_").concat(p?Lte:Fte))},Ke):null},De=ge.useMemo(function(){if(!z)return null;var Oe=typeof z!="boolean"?z:null;return ge.createElement("span",{className:Re("".concat(k.prefixCls,"-checkbox"),ae(ae(ae({},"".concat(k.prefixCls,"-checkbox-checked"),v),"".concat(k.prefixCls,"-checkbox-indeterminate"),!v&&y),"".concat(k.prefixCls,"-checkbox-disabled"),F||t.disableCheckbox)),onClick:q,role:"checkbox","aria-checked":y?"mixed":v,"aria-disabled":F||t.disableCheckbox,"aria-label":"Select ".concat(typeof t.title=="string"?t.title:"tree node")},Oe)},[z,v,y,F,t.disableCheckbox,t.title]),Fe=ge.useMemo(function(){return _e?null:p?Lte:Fte},[_e,p]),Ce=ge.useMemo(function(){return ge.createElement("span",{className:Re("".concat(k.prefixCls,"-iconEle"),"".concat(k.prefixCls,"-icon__").concat(Fe||"docu"),ae({},"".concat(k.prefixCls,"-icon_loading"),S))})},[k.prefixCls,Fe,S]),Te=ge.useMemo(function(){var Oe=!!k.draggable,Se=!t.disabled&&Oe&&k.dragOverNodeKey===i;return Se?k.dropIndicatorRender({dropPosition:k.dropPosition,dropLevelOffset:k.dropLevelOffset,indent:k.indent,prefixCls:k.prefixCls,direction:k.direction}):null},[k.dropPosition,k.dropLevelOffset,k.indent,k.prefixCls,k.direction,k.draggable,k.dragOverNodeKey,k.dropIndicatorRender]),ke=ge.useMemo(function(){var Oe=t.title,Se=Oe===void 0?Gut:Oe,Ke="".concat(k.prefixCls,"-node-content-wrapper"),tt;if(k.showIcon){var se=t.icon||k.icon;tt=se?ge.createElement("span",{className:Re("".concat(k.prefixCls,"-iconEle"),"".concat(k.prefixCls,"-icon__customize"))},typeof se=="function"?se(t):se):Ce}else k.loadData&&S&&(tt=Ce);var ze;return typeof Se=="function"?ze=Se(_):k.titleRender?ze=k.titleRender(_):ze=Se,ge.createElement("span",{ref:P,title:typeof Se=="string"?Se:"",className:Re(Ke,"".concat(Ke,"-").concat(Fe||"normal"),ae({},"".concat(k.prefixCls,"-node-selected"),!F&&(m||A))),onMouseEnter:V,onMouseLeave:G,onContextMenu:ie,onClick:N,onDoubleClick:B},tt,ge.createElement("span",{className:"".concat(k.prefixCls,"-title")},ze),Te)},[k.prefixCls,k.showIcon,t,k.icon,Ce,k.titleRender,_,Fe,V,G,ie,N,B]),Pe=Bi(E,{aria:!0,data:!0}),Ne=Fl(k.keyEntities,i)||{},We=Ne.level,Q=h[h.length-1],K=!F&&ce,J=k.draggingNodeKey===i,be=x!==void 0?{"aria-selected":!!x}:void 0;return ge.createElement("div",st({ref:b,role:"treeitem","aria-expanded":u?void 0:p,className:Re(o,"".concat(k.prefixCls,"-treenode"),(r={},ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(r,"".concat(k.prefixCls,"-treenode-disabled"),F),"".concat(k.prefixCls,"-treenode-switcher-").concat(p?"open":"close"),!u),"".concat(k.prefixCls,"-treenode-checkbox-checked"),v),"".concat(k.prefixCls,"-treenode-checkbox-indeterminate"),y),"".concat(k.prefixCls,"-treenode-selected"),m),"".concat(k.prefixCls,"-treenode-loading"),S),"".concat(k.prefixCls,"-treenode-active"),C),"".concat(k.prefixCls,"-treenode-leaf-last"),Q),"".concat(k.prefixCls,"-treenode-draggable"),ce),"dragging",J),ae(ae(ae(ae(ae(ae(ae(r,"drop-target",k.dropTargetKey===i),"drop-container",k.dropContainerKey===i),"drag-over",!F&&s),"drag-over-gap-top",!F&&l),"drag-over-gap-bottom",!F&&c),"filter-node",(n=k.filterTreeNode)===null||n===void 0?void 0:n.call(k,xa(t))),"".concat(k.prefixCls,"-treenode-leaf"),_e))),style:a,draggable:K,onDragStart:K?fe:void 0,onDragEnter:ce?ee:void 0,onDragOver:ce?ne:void 0,onDragLeave:ce?ue:void 0,onDrop:ce?me:void 0,onDragEnd:ce?ye:void 0,onMouseMove:T},be,Pe),ge.createElement(Kut,{prefixCls:k.prefixCls,level:We,isStart:d,isEnd:h}),le,we(),De,ke)};b_.isTreeNode=1;function gf(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function Oh(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function qW(e){return e.split("-")}function Yut(e,t){var n=[],r=Fl(t,e);function i(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];o.forEach(function(a){var s=a.key,l=a.children;n.push(s),i(l)})}return i(r.children),n}function Xut(e){if(e.parent){var t=qW(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function Qut(e){var t=qW(e.pos);return Number(t[t.length-1])===0}function jte(e,t,n,r,i,o,a,s,l,c){var u,d=e.clientX,h=e.clientY,p=e.target.getBoundingClientRect(),m=p.top,v=p.height,y=(c==="rtl"?-1:1)*(((i==null?void 0:i.x)||0)-d),S=(y-12)/r,b=l.filter(function(z){var W;return(W=s[z])===null||W===void 0||(W=W.children)===null||W===void 0?void 0:W.length}),C=Fl(s,n.eventKey);if(h<m+v/2){var _=a.findIndex(function(z){return z.key===C.key}),T=_<=0?0:_-1,x=a[T].key;C=Fl(s,x)}var E=C.key,k=C,M=C.key,P=0,D=0;if(!b.includes(E))for(var R=0;R<S&&Xut(C);R+=1)C=C.parent,D+=1;var A=t.data,H=C.node,F=!0;return Qut(C)&&C.level===0&&h<m+v/2&&o({dragNode:A,dropNode:H,dropPosition:-1})&&C.key===n.eventKey?P=-1:(k.children||[]).length&&b.includes(M)?o({dragNode:A,dropNode:H,dropPosition:0})?P=0:F=!1:D===0?S>-1.5?o({dragNode:A,dropNode:H,dropPosition:1})?P=1:F=!1:o({dragNode:A,dropNode:H,dropPosition:0})?P=0:o({dragNode:A,dropNode:H,dropPosition:1})?P=1:F=!1:o({dragNode:A,dropNode:H,dropPosition:1})?P=1:F=!1,{dropPosition:P,dropLevelOffset:D,dropTargetKey:C.key,dropTargetPos:C.pos,dragOverNodeKey:M,dropContainerKey:P===0?null:((u=C.parent)===null||u===void 0?void 0:u.key)||null,dropAllowed:F}}function Bte(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function qR(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(ln(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return fi(!1,"`checkedKeys` is not an array or an object"),null;return t}function nj(e,t){var n=new Set;function r(i){if(!n.has(i)){var o=Fl(t,i);if(o){n.add(i);var a=o.parent,s=o.node;s.disabled||a&&r(a.key)}}}return(e||[]).forEach(function(i){r(i)}),pt(n)}function Zut(e){const[t,n]=f.useState(null);return[f.useCallback((o,a,s)=>{const l=t??o,c=Math.min(l||0,o),u=Math.max(l||0,o),d=a.slice(c,u+1).map(m=>e(m)),h=d.some(m=>!s.has(m)),p=[];return d.forEach(m=>{h?(s.has(m)||p.push(m),s.add(m)):(s.delete(m),p.push(m))}),n(h?u:null),p},[t]),o=>{n(o)}]}const cm={},rj="SELECT_ALL",ij="SELECT_INVERT",oj="SELECT_NONE",Hte=[],dCe=(e,t)=>{let n=[];return(t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&(n=[].concat(pt(n),pt(dCe(e,r[e]))))}),n},Jut=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:i,getCheckboxProps:o,onChange:a,onSelect:s,onSelectAll:l,onSelectInvert:c,onSelectNone:u,onSelectMultiple:d,columnWidth:h,type:p,selections:m,fixed:v,renderCell:y,hideSelectAll:S,checkStrictly:b=!0}=t||{},{prefixCls:C,data:_,pageData:T,getRecordByKey:x,getRowKey:E,expandType:k,childrenColumnName:M,locale:P,getPopupContainer:D}=e,R=Jf(),[A,H]=Zut(me=>me),[F,z]=er(r||i||Hte,{value:r}),W=f.useRef(new Map),q=f.useCallback(me=>{if(n){const pe=new Map;me.forEach(he=>{let _e=x(he);!_e&&W.current.has(he)&&(_e=W.current.get(he)),pe.set(he,_e)}),W.current=pe}},[x,n]);f.useEffect(()=>{q(F)},[F]);const Z=f.useMemo(()=>dCe(M,T),[M,T]),{keyEntities:N}=f.useMemo(()=>{if(b)return{keyEntities:null};let me=_;if(n){const pe=new Set(Z.map((_e,le)=>E(_e,le))),he=Array.from(W.current).reduce((_e,le)=>{let[xe,we]=le;return pe.has(xe)?_e:_e.concat(we)},[]);me=[].concat(pt(me),pt(he))}return $E(me,{externalGetKey:E,childrenPropName:M})},[_,E,b,M,n,Z]),B=f.useMemo(()=>{const me=new Map;return Z.forEach((pe,he)=>{const _e=E(pe,he),le=(o?o(pe):null)||{};me.set(_e,le)}),me},[Z,E,o]),V=f.useCallback(me=>{const pe=E(me);let he;return B.has(pe)?he=B.get(E(me)):he=o?o(me):void 0,!!(he!=null&&he.disabled)},[B,E]),[G,ie]=f.useMemo(()=>{if(b)return[F||[],[]];const{checkedKeys:me,halfCheckedKeys:pe}=bu(F,!0,N,V);return[me||[],pe]},[F,b,N,V]),ce=f.useMemo(()=>{const me=p==="radio"?G.slice(0,1):G;return new Set(me)},[G,p]),fe=f.useMemo(()=>p==="radio"?new Set:new Set(ie),[ie,p]);f.useEffect(()=>{t||z(Hte)},[!!t]);const ee=f.useCallback((me,pe)=>{let he,_e;q(me),n?(he=me,_e=me.map(le=>W.current.get(le))):(he=[],_e=[],me.forEach(le=>{const xe=x(le);xe!==void 0&&(he.push(le),_e.push(xe))})),z(he),a==null||a(he,_e,{type:pe})},[z,x,a,n]),ne=f.useCallback((me,pe,he,_e)=>{if(s){const le=he.map(xe=>x(xe));s(x(me),pe,le,_e)}ee(he,"single")},[s,x,ee]),ue=f.useMemo(()=>!m||S?null:(m===!0?[rj,ij,oj]:m).map(pe=>pe===rj?{key:"all",text:P.selectionAll,onSelect(){ee(_.map((he,_e)=>E(he,_e)).filter(he=>{const _e=B.get(he);return!(_e!=null&&_e.disabled)||ce.has(he)}),"all")}}:pe===ij?{key:"invert",text:P.selectInvert,onSelect(){const he=new Set(ce);T.forEach((le,xe)=>{const we=E(le,xe),De=B.get(we);De!=null&&De.disabled||(he.has(we)?he.delete(we):he.add(we))});const _e=Array.from(he);c&&(R.deprecated(!1,"onSelectInvert","onChange"),c(_e)),ee(_e,"invert")}}:pe===oj?{key:"none",text:P.selectNone,onSelect(){u==null||u(),ee(Array.from(ce).filter(he=>{const _e=B.get(he);return _e==null?void 0:_e.disabled}),"none")}}:pe).map(pe=>Object.assign(Object.assign({},pe),{onSelect:function(){for(var he,_e,le=arguments.length,xe=new Array(le),we=0;we<le;we++)xe[we]=arguments[we];(_e=pe.onSelect)===null||_e===void 0||(he=_e).call.apply(he,[pe].concat(xe)),H(null)}})),[m,ce,T,E,c,ee]);return[f.useCallback(me=>{var pe;if(!t)return me.filter(Oe=>Oe!==cm);let he=pt(me);const _e=new Set(ce),le=Z.map(E).filter(Oe=>!B.get(Oe).disabled),xe=le.every(Oe=>_e.has(Oe)),we=le.some(Oe=>_e.has(Oe)),De=()=>{const Oe=[];xe?le.forEach(Ke=>{_e.delete(Ke),Oe.push(Ke)}):le.forEach(Ke=>{_e.has(Ke)||(_e.add(Ke),Oe.push(Ke))});const Se=Array.from(_e);l==null||l(!xe,Se.map(Ke=>x(Ke)),Oe.map(Ke=>x(Ke))),ee(Se,"all"),H(null)};let Fe,Ce;if(p!=="radio"){let Oe;if(ue){const ze={getPopupContainer:D,items:ue.map((Ye,Ue)=>{const{key:Je,text:Ze,onSelect:rt}=Ye;return{key:Je??Ue,onClick:()=>{rt==null||rt(le)},label:Ze}})};Oe=f.createElement("div",{className:`${C}-selection-extra`},f.createElement(uP,{menu:ze,getPopupContainer:D},f.createElement("span",null,f.createElement(_E,null))))}const Se=Z.map((ze,Ye)=>{const Ue=E(ze,Ye),Je=B.get(Ue)||{};return Object.assign({checked:_e.has(Ue)},Je)}).filter(ze=>{let{disabled:Ye}=ze;return Ye}),Ke=!!Se.length&&Se.length===Z.length,tt=Ke&&Se.every(ze=>{let{checked:Ye}=ze;return Ye}),se=Ke&&Se.some(ze=>{let{checked:Ye}=ze;return Ye});Ce=f.createElement(mp,{checked:Ke?tt:!!Z.length&&xe,indeterminate:Ke?!tt&&se:!xe&&we,onChange:De,disabled:Z.length===0||Ke,"aria-label":Oe?"Custom selection":"Select all",skipGroup:!0}),Fe=!S&&f.createElement("div",{className:`${C}-selection`},Ce,Oe)}let Te;p==="radio"?Te=(Oe,Se,Ke)=>{const tt=E(Se,Ke),se=_e.has(tt),ze=B.get(tt);return{node:f.createElement(ti,Object.assign({},ze,{checked:se,onClick:Ye=>{var Ue;Ye.stopPropagation(),(Ue=ze==null?void 0:ze.onClick)===null||Ue===void 0||Ue.call(ze,Ye)},onChange:Ye=>{var Ue;_e.has(tt)||ne(tt,!0,[tt],Ye.nativeEvent),(Ue=ze==null?void 0:ze.onChange)===null||Ue===void 0||Ue.call(ze,Ye)}})),checked:se}}:Te=(Oe,Se,Ke)=>{var tt;const se=E(Se,Ke),ze=_e.has(se),Ye=fe.has(se),Ue=B.get(se);let Je;return k==="nest"?Je=Ye:Je=(tt=Ue==null?void 0:Ue.indeterminate)!==null&&tt!==void 0?tt:Ye,{node:f.createElement(mp,Object.assign({},Ue,{indeterminate:Je,checked:ze,skipGroup:!0,onClick:Ze=>{var rt;Ze.stopPropagation(),(rt=Ue==null?void 0:Ue.onClick)===null||rt===void 0||rt.call(Ue,Ze)},onChange:Ze=>{var rt;const{nativeEvent:qt}=Ze,{shiftKey:St}=qt,Ot=le.findIndex(Dt=>Dt===se),Bt=G.some(Dt=>le.includes(Dt));if(St&&b&&Bt){const Dt=A(Ot,le,_e),an=Array.from(_e);d==null||d(!ze,an.map(Vt=>x(Vt)),Dt.map(Vt=>x(Vt))),ee(an,"multiple")}else{const Dt=G;if(b){const an=ze?gf(Dt,se):Oh(Dt,se);ne(se,!ze,an,qt)}else{const an=bu([].concat(pt(Dt),[se]),!0,N,V),{checkedKeys:Vt,halfCheckedKeys:Kt}=an;let Qt=Vt;if(ze){const et=new Set(Vt);et.delete(se),Qt=bu(Array.from(et),{checked:!1,halfCheckedKeys:Kt},N,V).checkedKeys}ne(se,!ze,Qt,qt)}}H(ze?null:Ot),(rt=Ue==null?void 0:Ue.onChange)===null||rt===void 0||rt.call(Ue,Ze)}})),checked:ze}};const ke=(Oe,Se,Ke)=>{const{node:tt,checked:se}=Te(Oe,Se,Ke);return y?y(se,Se,Ke,tt):tt};if(!he.includes(cm))if(he.findIndex(Oe=>{var Se;return((Se=Oe[rw])===null||Se===void 0?void 0:Se.columnType)==="EXPAND_COLUMN"})===0){const[Oe,...Se]=he;he=[Oe,cm].concat(pt(Se))}else he=[cm].concat(pt(he));const Pe=he.indexOf(cm);he=he.filter((Oe,Se)=>Oe!==cm||Se===Pe);const Ne=he[Pe-1],We=he[Pe+1];let Q=v;Q===void 0&&((We==null?void 0:We.fixed)!==void 0?Q=We.fixed:(Ne==null?void 0:Ne.fixed)!==void 0&&(Q=Ne.fixed)),Q&&Ne&&((pe=Ne[rw])===null||pe===void 0?void 0:pe.columnType)==="EXPAND_COLUMN"&&Ne.fixed===void 0&&(Ne.fixed=Q);const K=Re(`${C}-selection-col`,{[`${C}-selection-col-with-dropdown`]:m&&p==="checkbox"}),J=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(Ce):t.columnTitle:Fe,be={fixed:Q,width:h,className:`${C}-selection-column`,title:J(),render:ke,onCell:t.onCell,[rw]:{className:K}};return he.map(Oe=>Oe===cm?be:Oe)},[E,Z,t,G,ce,fe,h,ue,k,B,d,ne,V]),ce]};function edt(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){const r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e}function tdt(e,t){return f.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy<"u"?new Proxy(r,{get(i,o){return n[o]?n[o]:Reflect.get(i,o)}}):edt(r,n)})}function ndt(e){return t=>{const{prefixCls:n,onExpand:r,record:i,expanded:o,expandable:a}=t,s=`${n}-row-expand-icon`;return f.createElement("button",{type:"button",onClick:l=>{r(i,l),l.stopPropagation()},className:Re(s,{[`${s}-spaced`]:!a,[`${s}-expanded`]:a&&o,[`${s}-collapsed`]:a&&!o}),"aria-label":o?e.collapse:e.expand,"aria-expanded":o})}}function rdt(e){return(n,r)=>{const i=n.querySelector(`.${e}-container`);let o=r;if(i){const a=getComputedStyle(i),s=parseInt(a.borderLeftWidth,10),l=parseInt(a.borderRightWidth,10);o=r-s-l}return o}}const og=(e,t)=>"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function cC(e,t){return t?`${t}-${e}`:`${e}`}const bP=(e,t)=>typeof e=="function"?e(t):e,idt=(e,t)=>{const n=bP(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n};function odt(e){const t=f.useRef(e),n=ZU();return[()=>t.current,r=>{t.current=r,n()}]}var adt=function(t){var n=t.dropPosition,r=t.dropLevelOffset,i=t.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:o.top=0,o.left=-r*i;break;case 1:o.bottom=0,o.left=-r*i;break;case 0:o.bottom=0,o.left=i;break}return ge.createElement("div",{style:o})};function fCe(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function sdt(e,t){var n=f.useState(!1),r=Le(n,2),i=r[0],o=r[1];Er(function(){if(i)return e(),function(){t()}},[i]),Er(function(){return o(!0),function(){o(!1)}},[])}var ldt=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],cdt=f.forwardRef(function(e,t){var n=e.className,r=e.style,i=e.motion,o=e.motionNodes,a=e.motionType,s=e.onMotionStart,l=e.onMotionEnd,c=e.active,u=e.treeNodeRequiredProps,d=tn(e,ldt),h=f.useState(!0),p=Le(h,2),m=p[0],v=p[1],y=f.useContext(KW),S=y.prefixCls,b=o&&a!=="hide";Er(function(){o&&b!==m&&v(b)},[o]);var C=function(){o&&s()},_=f.useRef(!1),T=function(){o&&!_.current&&(_.current=!0,l())};sdt(C,T);var x=function(k){b===k&&T()};return o?f.createElement(fa,st({ref:t,visible:m},i,{motionAppear:a==="show",onVisibleChanged:x}),function(E,k){var M=E.className,P=E.style;return f.createElement("div",{ref:k,className:Re("".concat(S,"-treenode-motion"),M),style:P},o.map(function(D){var R=Object.assign({},(fCe(D.data),D.data)),A=D.title,H=D.key,F=D.isStart,z=D.isEnd;delete R.children;var W=tw(H,u);return f.createElement(b_,st({},R,W,{title:A,active:c,data:D.data,key:H,isStart:F,isEnd:z}))}))}):f.createElement(b_,st({domRef:t,className:n,style:r},d,{active:c}))});function udt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function i(o,a){var s=new Map;o.forEach(function(c){s.set(c,!0)});var l=a.filter(function(c){return!s.has(c)});return l.length===1?l[0]:null}return n<r?{add:!0,key:i(e,t)}:{add:!1,key:i(t,e)}}function zte(e,t,n){var r=e.findIndex(function(s){return s.key===n}),i=e[r+1],o=t.findIndex(function(s){return s.key===n});if(i){var a=t.findIndex(function(s){return s.key===i.key});return t.slice(o+1,a)}return t.slice(o+1)}var ddt=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],Ute={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},fdt=function(){},_v="RC_TREE_MOTION_".concat(Math.random()),aj={key:_v},hCe={key:_v,level:0,index:0,pos:"0",node:aj,nodes:[aj]},Wte={parent:null,children:[],pos:hCe.pos,data:aj,title:null,key:_v,isStart:[],isEnd:[]};function Vte(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function Kte(e){var t=e.key,n=e.pos;return IE(t,n)}function hdt(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}var pdt=f.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var i=e.expandedKeys,o=e.selectedKeys,a=e.checkedKeys,s=e.loadedKeys,l=e.loadingKeys,c=e.halfCheckedKeys,u=e.keyEntities,d=e.disabled,h=e.dragging,p=e.dragOverNodeKey,m=e.dropPosition,v=e.motion,y=e.height,S=e.itemHeight,b=e.virtual,C=e.scrollWidth,_=e.focusable,T=e.activeItem,x=e.focused,E=e.tabIndex,k=e.onKeyDown,M=e.onFocus,P=e.onBlur,D=e.onActiveChange,R=e.onListChangeStart,A=e.onListChangeEnd,H=tn(e,ddt),F=f.useRef(null),z=f.useRef(null);f.useImperativeHandle(t,function(){return{scrollTo:function(ke){F.current.scrollTo(ke)},getIndentWidth:function(){return z.current.offsetWidth}}});var W=f.useState(i),q=Le(W,2),Z=q[0],N=q[1],B=f.useState(r),V=Le(B,2),G=V[0],ie=V[1],ce=f.useState(r),fe=Le(ce,2),ee=fe[0],ne=fe[1],ue=f.useState([]),ye=Le(ue,2),me=ye[0],pe=ye[1],he=f.useState(null),_e=Le(he,2),le=_e[0],xe=_e[1],we=f.useRef(r);we.current=r;function De(){var Te=we.current;ie(Te),ne(Te),pe([]),xe(null),A()}Er(function(){N(i);var Te=udt(Z,i);if(Te.key!==null)if(Te.add){var ke=G.findIndex(function(J){var be=J.key;return be===Te.key}),Pe=Vte(zte(G,r,Te.key),b,y,S),Ne=G.slice();Ne.splice(ke+1,0,Wte),ne(Ne),pe(Pe),xe("show")}else{var We=r.findIndex(function(J){var be=J.key;return be===Te.key}),Q=Vte(zte(r,G,Te.key),b,y,S),K=r.slice();K.splice(We+1,0,Wte),ne(K),pe(Q),xe("hide")}else G!==r&&(ie(r),ne(r))},[i,r]),f.useEffect(function(){h||De()},[h]);var Fe=v?ee:r,Ce={expandedKeys:i,selectedKeys:o,loadedKeys:s,loadingKeys:l,checkedKeys:a,halfCheckedKeys:c,dragOverNodeKey:p,dropPosition:m,keyEntities:u};return f.createElement(f.Fragment,null,x&&T&&f.createElement("span",{style:Ute,"aria-live":"assertive"},hdt(T)),f.createElement("div",null,f.createElement("input",{style:Ute,disabled:_===!1||d,tabIndex:_!==!1?E:null,onKeyDown:k,onFocus:M,onBlur:P,value:"",onChange:fdt,"aria-label":"for screen reader"})),f.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},f.createElement("div",{className:"".concat(n,"-indent")},f.createElement("div",{ref:z,className:"".concat(n,"-indent-unit")}))),f.createElement(zO,st({},H,{data:Fe,itemKey:Kte,height:y,fullHeight:!1,virtual:b,itemHeight:S,scrollWidth:C,prefixCls:"".concat(n,"-list"),ref:F,role:"tree",onVisibleChange:function(ke){ke.every(function(Pe){return Kte(Pe)!==_v})&&De()}}),function(Te){var ke=Te.pos,Pe=Object.assign({},(fCe(Te.data),Te.data)),Ne=Te.title,We=Te.key,Q=Te.isStart,K=Te.isEnd,J=IE(We,ke);delete Pe.key,delete Pe.children;var be=tw(J,Ce);return f.createElement(cdt,st({},Pe,be,{title:Ne,active:!!T&&We===T.key,pos:ke,data:Te.data,isStart:Q,isEnd:K,motion:v,motionNodes:We===_v?me:null,motionType:le,onMotionStart:R,onMotionEnd:De,treeNodeRequiredProps:Ce,onMouseMove:function(){D(null)}}))}))}),mdt=10,SP=function(e){Ys(n,e);var t=bl(n);function n(){var r;hi(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),ae(On(r),"destroyed",!1),ae(On(r),"delayedDragEnterLogic",void 0),ae(On(r),"loadingRetryTimes",{}),ae(On(r),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:eS()}),ae(On(r),"dragStartMousePosition",null),ae(On(r),"dragNodeProps",null),ae(On(r),"currentMouseOverDroppableNodeKey",null),ae(On(r),"listRef",f.createRef()),ae(On(r),"onNodeDragStart",function(s,l){var c=r.state,u=c.expandedKeys,d=c.keyEntities,h=r.props.onDragStart,p=l.eventKey;r.dragNodeProps=l,r.dragStartMousePosition={x:s.clientX,y:s.clientY};var m=gf(u,p);r.setState({draggingNodeKey:p,dragChildrenKeys:Yut(p,d),indent:r.listRef.current.getIndentWidth()}),r.setExpandedKeys(m),window.addEventListener("dragend",r.onWindowDragEnd),h==null||h({event:s,node:xa(l)})}),ae(On(r),"onNodeDragEnter",function(s,l){var c=r.state,u=c.expandedKeys,d=c.keyEntities,h=c.dragChildrenKeys,p=c.flattenNodes,m=c.indent,v=r.props,y=v.onDragEnter,S=v.onExpand,b=v.allowDrop,C=v.direction,_=l.pos,T=l.eventKey;if(r.currentMouseOverDroppableNodeKey!==T&&(r.currentMouseOverDroppableNodeKey=T),!r.dragNodeProps){r.resetDragState();return}var x=jte(s,r.dragNodeProps,l,m,r.dragStartMousePosition,b,p,d,u,C),E=x.dropPosition,k=x.dropLevelOffset,M=x.dropTargetKey,P=x.dropContainerKey,D=x.dropTargetPos,R=x.dropAllowed,A=x.dragOverNodeKey;if(h.includes(M)||!R){r.resetDragState();return}if(r.delayedDragEnterLogic||(r.delayedDragEnterLogic={}),Object.keys(r.delayedDragEnterLogic).forEach(function(H){clearTimeout(r.delayedDragEnterLogic[H])}),r.dragNodeProps.eventKey!==l.eventKey&&(s.persist(),r.delayedDragEnterLogic[_]=window.setTimeout(function(){if(r.state.draggingNodeKey!==null){var H=pt(u),F=Fl(d,l.eventKey);F&&(F.children||[]).length&&(H=Oh(u,l.eventKey)),r.props.hasOwnProperty("expandedKeys")||r.setExpandedKeys(H),S==null||S(H,{node:xa(l),expanded:!0,nativeEvent:s.nativeEvent})}},800)),r.dragNodeProps.eventKey===M&&k===0){r.resetDragState();return}r.setState({dragOverNodeKey:A,dropPosition:E,dropLevelOffset:k,dropTargetKey:M,dropContainerKey:P,dropTargetPos:D,dropAllowed:R}),y==null||y({event:s,node:xa(l),expandedKeys:u})}),ae(On(r),"onNodeDragOver",function(s,l){var c=r.state,u=c.dragChildrenKeys,d=c.flattenNodes,h=c.keyEntities,p=c.expandedKeys,m=c.indent,v=r.props,y=v.onDragOver,S=v.allowDrop,b=v.direction;if(r.dragNodeProps){var C=jte(s,r.dragNodeProps,l,m,r.dragStartMousePosition,S,d,h,p,b),_=C.dropPosition,T=C.dropLevelOffset,x=C.dropTargetKey,E=C.dropContainerKey,k=C.dropTargetPos,M=C.dropAllowed,P=C.dragOverNodeKey;u.includes(x)||!M||(r.dragNodeProps.eventKey===x&&T===0?r.state.dropPosition===null&&r.state.dropLevelOffset===null&&r.state.dropTargetKey===null&&r.state.dropContainerKey===null&&r.state.dropTargetPos===null&&r.state.dropAllowed===!1&&r.state.dragOverNodeKey===null||r.resetDragState():_===r.state.dropPosition&&T===r.state.dropLevelOffset&&x===r.state.dropTargetKey&&E===r.state.dropContainerKey&&k===r.state.dropTargetPos&&M===r.state.dropAllowed&&P===r.state.dragOverNodeKey||r.setState({dropPosition:_,dropLevelOffset:T,dropTargetKey:x,dropContainerKey:E,dropTargetPos:k,dropAllowed:M,dragOverNodeKey:P}),y==null||y({event:s,node:xa(l)}))}}),ae(On(r),"onNodeDragLeave",function(s,l){r.currentMouseOverDroppableNodeKey===l.eventKey&&!s.currentTarget.contains(s.relatedTarget)&&(r.resetDragState(),r.currentMouseOverDroppableNodeKey=null);var c=r.props.onDragLeave;c==null||c({event:s,node:xa(l)})}),ae(On(r),"onWindowDragEnd",function(s){r.onNodeDragEnd(s,null,!0),window.removeEventListener("dragend",r.onWindowDragEnd)}),ae(On(r),"onNodeDragEnd",function(s,l){var c=r.props.onDragEnd;r.setState({dragOverNodeKey:null}),r.cleanDragState(),c==null||c({event:s,node:xa(l)}),r.dragNodeProps=null,window.removeEventListener("dragend",r.onWindowDragEnd)}),ae(On(r),"onNodeDrop",function(s,l){var c,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,d=r.state,h=d.dragChildrenKeys,p=d.dropPosition,m=d.dropTargetKey,v=d.dropTargetPos,y=d.dropAllowed;if(y){var S=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),m!==null){var b=X(X({},tw(m,r.getTreeNodeRequiredProps())),{},{active:((c=r.getActiveItem())===null||c===void 0?void 0:c.key)===m,data:Fl(r.state.keyEntities,m).node}),C=h.includes(m);fi(!C,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var _=qW(v),T={event:s,node:xa(b),dragNode:r.dragNodeProps?xa(r.dragNodeProps):null,dragNodesKeys:[r.dragNodeProps.eventKey].concat(h),dropToGap:p!==0,dropPosition:p+Number(_[_.length-1])};u||S==null||S(T),r.dragNodeProps=null}}}),ae(On(r),"cleanDragState",function(){var s=r.state.draggingNodeKey;s!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),ae(On(r),"triggerExpandActionExpand",function(s,l){var c=r.state,u=c.expandedKeys,d=c.flattenNodes,h=l.expanded,p=l.key,m=l.isLeaf;if(!(m||s.shiftKey||s.metaKey||s.ctrlKey)){var v=d.filter(function(S){return S.key===p})[0],y=xa(X(X({},tw(p,r.getTreeNodeRequiredProps())),{},{data:v.data}));r.setExpandedKeys(h?gf(u,p):Oh(u,p)),r.onNodeExpand(s,y)}}),ae(On(r),"onNodeClick",function(s,l){var c=r.props,u=c.onClick,d=c.expandAction;d==="click"&&r.triggerExpandActionExpand(s,l),u==null||u(s,l)}),ae(On(r),"onNodeDoubleClick",function(s,l){var c=r.props,u=c.onDoubleClick,d=c.expandAction;d==="doubleClick"&&r.triggerExpandActionExpand(s,l),u==null||u(s,l)}),ae(On(r),"onNodeSelect",function(s,l){var c=r.state.selectedKeys,u=r.state,d=u.keyEntities,h=u.fieldNames,p=r.props,m=p.onSelect,v=p.multiple,y=l.selected,S=l[h.key],b=!y;b?v?c=Oh(c,S):c=[S]:c=gf(c,S);var C=c.map(function(_){var T=Fl(d,_);return T?T.node:null}).filter(Boolean);r.setUncontrolledState({selectedKeys:c}),m==null||m(c,{event:"select",selected:b,node:l,selectedNodes:C,nativeEvent:s.nativeEvent})}),ae(On(r),"onNodeCheck",function(s,l,c){var u=r.state,d=u.keyEntities,h=u.checkedKeys,p=u.halfCheckedKeys,m=r.props,v=m.checkStrictly,y=m.onCheck,S=l.key,b,C={event:"check",node:l,checked:c,nativeEvent:s.nativeEvent};if(v){var _=c?Oh(h,S):gf(h,S),T=gf(p,S);b={checked:_,halfChecked:T},C.checkedNodes=_.map(function(D){return Fl(d,D)}).filter(Boolean).map(function(D){return D.node}),r.setUncontrolledState({checkedKeys:_})}else{var x=bu([].concat(pt(h),[S]),!0,d),E=x.checkedKeys,k=x.halfCheckedKeys;if(!c){var M=new Set(E);M.delete(S);var P=bu(Array.from(M),{checked:!1,halfCheckedKeys:k},d);E=P.checkedKeys,k=P.halfCheckedKeys}b=E,C.checkedNodes=[],C.checkedNodesPositions=[],C.halfCheckedKeys=k,E.forEach(function(D){var R=Fl(d,D);if(R){var A=R.node,H=R.pos;C.checkedNodes.push(A),C.checkedNodesPositions.push({node:A,pos:H})}}),r.setUncontrolledState({checkedKeys:E},!1,{halfCheckedKeys:k})}y==null||y(b,C)}),ae(On(r),"onNodeLoad",function(s){var l,c=s.key,u=r.state.keyEntities,d=Fl(u,c);if(!(d!=null&&(l=d.children)!==null&&l!==void 0&&l.length)){var h=new Promise(function(p,m){r.setState(function(v){var y=v.loadedKeys,S=y===void 0?[]:y,b=v.loadingKeys,C=b===void 0?[]:b,_=r.props,T=_.loadData,x=_.onLoad;if(!T||S.includes(c)||C.includes(c))return null;var E=T(s);return E.then(function(){var k=r.state.loadedKeys,M=Oh(k,c);x==null||x(M,{event:"load",node:s}),r.setUncontrolledState({loadedKeys:M}),r.setState(function(P){return{loadingKeys:gf(P.loadingKeys,c)}}),p()}).catch(function(k){if(r.setState(function(P){return{loadingKeys:gf(P.loadingKeys,c)}}),r.loadingRetryTimes[c]=(r.loadingRetryTimes[c]||0)+1,r.loadingRetryTimes[c]>=mdt){var M=r.state.loadedKeys;fi(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:Oh(M,c)}),p()}m(k)}),{loadingKeys:Oh(C,c)}})});return h.catch(function(){}),h}}),ae(On(r),"onNodeMouseEnter",function(s,l){var c=r.props.onMouseEnter;c==null||c({event:s,node:l})}),ae(On(r),"onNodeMouseLeave",function(s,l){var c=r.props.onMouseLeave;c==null||c({event:s,node:l})}),ae(On(r),"onNodeContextMenu",function(s,l){var c=r.props.onRightClick;c&&(s.preventDefault(),c({event:s,node:l}))}),ae(On(r),"onFocus",function(){var s=r.props.onFocus;r.setState({focused:!0});for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];s==null||s.apply(void 0,c)}),ae(On(r),"onBlur",function(){var s=r.props.onBlur;r.setState({focused:!1}),r.onActiveChange(null);for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];s==null||s.apply(void 0,c)}),ae(On(r),"getTreeNodeRequiredProps",function(){var s=r.state,l=s.expandedKeys,c=s.selectedKeys,u=s.loadedKeys,d=s.loadingKeys,h=s.checkedKeys,p=s.halfCheckedKeys,m=s.dragOverNodeKey,v=s.dropPosition,y=s.keyEntities;return{expandedKeys:l||[],selectedKeys:c||[],loadedKeys:u||[],loadingKeys:d||[],checkedKeys:h||[],halfCheckedKeys:p||[],dragOverNodeKey:m,dropPosition:v,keyEntities:y}}),ae(On(r),"setExpandedKeys",function(s){var l=r.state,c=l.treeData,u=l.fieldNames,d=FR(c,s,u);r.setUncontrolledState({expandedKeys:s,flattenNodes:d},!0)}),ae(On(r),"onNodeExpand",function(s,l){var c=r.state.expandedKeys,u=r.state,d=u.listChanging,h=u.fieldNames,p=r.props,m=p.onExpand,v=p.loadData,y=l.expanded,S=l[h.key];if(!d){var b=c.includes(S),C=!y;if(fi(y&&b||!y&&!b,"Expand state not sync with index check"),c=C?Oh(c,S):gf(c,S),r.setExpandedKeys(c),m==null||m(c,{node:l,expanded:C,nativeEvent:s.nativeEvent}),C&&v){var _=r.onNodeLoad(l);_&&_.then(function(){var T=FR(r.state.treeData,c,h);r.setUncontrolledState({flattenNodes:T})}).catch(function(){var T=r.state.expandedKeys,x=gf(T,S);r.setExpandedKeys(x)})}}}),ae(On(r),"onListChangeStart",function(){r.setUncontrolledState({listChanging:!0})}),ae(On(r),"onListChangeEnd",function(){setTimeout(function(){r.setUncontrolledState({listChanging:!1})})}),ae(On(r),"onActiveChange",function(s){var l=r.state.activeKey,c=r.props,u=c.onActiveChange,d=c.itemScrollOffset,h=d===void 0?0:d;l!==s&&(r.setState({activeKey:s}),s!==null&&r.scrollTo({key:s,offset:h}),u==null||u(s))}),ae(On(r),"getActiveItem",function(){var s=r.state,l=s.activeKey,c=s.flattenNodes;return l===null?null:c.find(function(u){var d=u.key;return d===l})||null}),ae(On(r),"offsetActiveKey",function(s){var l=r.state,c=l.flattenNodes,u=l.activeKey,d=c.findIndex(function(m){var v=m.key;return v===u});d===-1&&s<0&&(d=c.length),d=(d+s+c.length)%c.length;var h=c[d];if(h){var p=h.key;r.onActiveChange(p)}else r.onActiveChange(null)}),ae(On(r),"onKeyDown",function(s){var l=r.state,c=l.activeKey,u=l.expandedKeys,d=l.checkedKeys,h=l.fieldNames,p=r.props,m=p.onKeyDown,v=p.checkable,y=p.selectable;switch(s.which){case Pt.UP:{r.offsetActiveKey(-1),s.preventDefault();break}case Pt.DOWN:{r.offsetActiveKey(1),s.preventDefault();break}}var S=r.getActiveItem();if(S&&S.data){var b=r.getTreeNodeRequiredProps(),C=S.data.isLeaf===!1||!!(S.data[h.children]||[]).length,_=xa(X(X({},tw(c,b)),{},{data:S.data,active:!0}));switch(s.which){case Pt.LEFT:{C&&u.includes(c)?r.onNodeExpand({},_):S.parent&&r.onActiveChange(S.parent.key),s.preventDefault();break}case Pt.RIGHT:{C&&!u.includes(c)?r.onNodeExpand({},_):S.children&&S.children.length&&r.onActiveChange(S.children[0].key),s.preventDefault();break}case Pt.ENTER:case Pt.SPACE:{v&&!_.disabled&&_.checkable!==!1&&!_.disableCheckbox?r.onNodeCheck({},_,!d.includes(c)):!v&&y&&!_.disabled&&_.selectable!==!1&&r.onNodeSelect({},_);break}}}m==null||m(s)}),ae(On(r),"setUncontrolledState",function(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var u=!1,d=!0,h={};Object.keys(s).forEach(function(p){if(r.props.hasOwnProperty(p)){d=!1;return}u=!0,h[p]=s[p]}),u&&(!l||d)&&r.setState(X(X({},h),c))}}),ae(On(r),"scrollTo",function(s){r.listRef.current.scrollTo(s)}),r}return pi(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var i=this.props,o=i.activeKey,a=i.itemScrollOffset,s=a===void 0?0:a;o!==void 0&&o!==this.state.activeKey&&(this.setState({activeKey:o}),o!==null&&this.scrollTo({key:o,offset:s}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var i=this.state,o=i.focused,a=i.flattenNodes,s=i.keyEntities,l=i.draggingNodeKey,c=i.activeKey,u=i.dropLevelOffset,d=i.dropContainerKey,h=i.dropTargetKey,p=i.dropPosition,m=i.dragOverNodeKey,v=i.indent,y=this.props,S=y.prefixCls,b=y.className,C=y.style,_=y.showLine,T=y.focusable,x=y.tabIndex,E=x===void 0?0:x,k=y.selectable,M=y.showIcon,P=y.icon,D=y.switcherIcon,R=y.draggable,A=y.checkable,H=y.checkStrictly,F=y.disabled,z=y.motion,W=y.loadData,q=y.filterTreeNode,Z=y.height,N=y.itemHeight,B=y.scrollWidth,V=y.virtual,G=y.titleRender,ie=y.dropIndicatorRender,ce=y.onContextMenu,fe=y.onScroll,ee=y.direction,ne=y.rootClassName,ue=y.rootStyle,ye=Bi(this.props,{aria:!0,data:!0}),me;R&&(ln(R)==="object"?me=R:typeof R=="function"?me={nodeDraggable:R}:me={});var pe={prefixCls:S,selectable:k,showIcon:M,icon:P,switcherIcon:D,draggable:me,draggingNodeKey:l,checkable:A,checkStrictly:H,disabled:F,keyEntities:s,dropLevelOffset:u,dropContainerKey:d,dropTargetKey:h,dropPosition:p,dragOverNodeKey:m,indent:v,direction:ee,dropIndicatorRender:ie,loadData:W,filterTreeNode:q,titleRender:G,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return f.createElement(KW.Provider,{value:pe},f.createElement("div",{className:Re(S,b,ne,ae(ae(ae({},"".concat(S,"-show-line"),_),"".concat(S,"-focused"),o),"".concat(S,"-active-focused"),c!==null)),style:ue},f.createElement(pdt,st({ref:this.listRef,prefixCls:S,style:C,data:a,disabled:F,selectable:k,checkable:!!A,motion:z,dragging:l!==null,height:Z,itemHeight:N,virtual:V,focusable:T,focused:o,tabIndex:E,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:ce,onScroll:fe,scrollWidth:B},this.getTreeNodeRequiredProps(),ye))))}}],[{key:"getDerivedStateFromProps",value:function(i,o){var a=o.prevProps,s={prevProps:i};function l(E){return!a&&i.hasOwnProperty(E)||a&&a[E]!==i[E]}var c,u=o.fieldNames;if(l("fieldNames")&&(u=eS(i.fieldNames),s.fieldNames=u),l("treeData")?c=i.treeData:l("children")&&(fi(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),c=Jye(i.children)),c){s.treeData=c;var d=$E(c,{fieldNames:u});s.keyEntities=X(ae({},_v,hCe),d.keyEntities)}var h=s.keyEntities||o.keyEntities;if(l("expandedKeys")||a&&l("autoExpandParent"))s.expandedKeys=i.autoExpandParent||!a&&i.defaultExpandParent?nj(i.expandedKeys,h):i.expandedKeys;else if(!a&&i.defaultExpandAll){var p=X({},h);delete p[_v];var m=[];Object.keys(p).forEach(function(E){var k=p[E];k.children&&k.children.length&&m.push(k.key)}),s.expandedKeys=m}else!a&&i.defaultExpandedKeys&&(s.expandedKeys=i.autoExpandParent||i.defaultExpandParent?nj(i.defaultExpandedKeys,h):i.defaultExpandedKeys);if(s.expandedKeys||delete s.expandedKeys,c||s.expandedKeys){var v=FR(c||o.treeData,s.expandedKeys||o.expandedKeys,u);s.flattenNodes=v}if(i.selectable&&(l("selectedKeys")?s.selectedKeys=Bte(i.selectedKeys,i):!a&&i.defaultSelectedKeys&&(s.selectedKeys=Bte(i.defaultSelectedKeys,i))),i.checkable){var y;if(l("checkedKeys")?y=qR(i.checkedKeys)||{}:!a&&i.defaultCheckedKeys?y=qR(i.defaultCheckedKeys)||{}:c&&(y=qR(i.checkedKeys)||{checkedKeys:o.checkedKeys,halfCheckedKeys:o.halfCheckedKeys}),y){var S=y,b=S.checkedKeys,C=b===void 0?[]:b,_=S.halfCheckedKeys,T=_===void 0?[]:_;if(!i.checkStrictly){var x=bu(C,!0,h);C=x.checkedKeys,T=x.halfCheckedKeys}s.checkedKeys=C,s.halfCheckedKeys=T}}return l("loadedKeys")&&(s.loadedKeys=i.loadedKeys),s}}]),n}(f.Component);ae(SP,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:adt,allowDrop:function(){return!0},expandAction:!1});ae(SP,"TreeNode",b_);const gdt=e=>{let{treeCls:t,treeNodeCls:n,directoryNodeSelectedBg:r,directoryNodeSelectedColor:i,motionDurationMid:o,borderRadius:a,controlItemBgHover:s}=e;return{[`${t}${t}-directory ${n}`]:{[`${t}-node-content-wrapper`]:{position:"static",[`> *:not(${t}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${o}`,content:'""',borderRadius:a},"&:hover:before":{background:s}},[`${t}-switcher, ${t}-checkbox, ${t}-draggable-icon`]:{zIndex:1},"&-selected":{[`${t}-switcher, ${t}-draggable-icon`]:{color:i},[`${t}-node-content-wrapper`]:{color:i,background:"transparent","&:before, &:hover:before":{background:r}}}}}},vdt=new Mr("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),ydt=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),bdt=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${je(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Sdt=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:i,titleHeight:o,indentSize:a,nodeSelectedBg:s,nodeHoverBg:l,colorTextQuaternary:c,controlItemBgActiveDisabled:u}=t;return{[n]:Object.assign(Object.assign({},$r(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},Fd(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:vdt,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:i,lineHeight:je(o),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:i},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${n}-checkbox-disabled + ${n}-node-selected,&${r}-disabled${r}-selected ${n}-node-content-wrapper`]:{backgroundColor:u},[`&:not(${r}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:o,textAlign:"center",visibility:"visible",color:c},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:a}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(o).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},ydt(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:o,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:o,height:o,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(o).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(o).div(2).equal()).mul(.8).equal(),height:t.calc(o).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:o,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},bdt(e,t)),{"&:hover":{backgroundColor:l},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:s},[`${n}-iconEle`]:{display:"inline-block",width:o,height:o,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(o).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last ${n}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${je(t.calc(o).div(2).equal())} !important`}})}},pCe=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,i=t.calc(t.paddingXS).div(2).equal(),o=dr(t,{treeCls:n,treeNodeCls:r,treeNodePadding:i});return[Sdt(e,o),gdt(o)]},mCe=e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,i=t;return{titleHeight:i,indentSize:i,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},Cdt=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},mCe(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},xdt=Tr("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:sP(`${n}-checkbox`,e)},pCe(n,e),vE(e)]},Cdt),qte=4;function wdt(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:i,direction:o="ltr"}=e,a=o==="ltr"?"left":"right",s=o==="ltr"?"right":"left",l={[a]:-n*i+qte,[s]:0};switch(t){case-1:l.top=-3;break;case 1:l.bottom=-3;break;default:l.bottom=-3,l[a]=i+qte;break}return ge.createElement("div",{style:l,className:`${r}-drop-indicator`})}const gCe=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:i,switcherLoadingIcon:o}=e,{isLeaf:a,expanded:s,loading:l}=r;if(l)return f.isValidElement(o)?o:f.createElement(jd,{className:`${t}-switcher-loading-icon`});let c;if(i&&typeof i=="object"&&(c=i.showLeafIcon),a){if(!i)return null;if(typeof c!="boolean"&&c){const h=typeof c=="function"?c(r):c,p=`${t}-switcher-line-custom-icon`;return f.isValidElement(h)?Io(h,{className:Re(h.props.className||"",p)}):h}return c?f.createElement(mP,{className:`${t}-switcher-line-icon`}):f.createElement("span",{className:`${t}-switcher-leaf-line`})}const u=`${t}-switcher-icon`,d=typeof n=="function"?n(r):n;return f.isValidElement(d)?Io(d,{className:Re(d.props.className||"",u)}):d!==void 0?d:i?s?f.createElement(Qst,{className:`${t}-switcher-line-icon`}):f.createElement(dlt,{className:`${t}-switcher-line-icon`}):f.createElement(qat,{className:u})},vCe=ge.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:i,virtual:o,tree:a}=ge.useContext(hn),{prefixCls:s,className:l,showIcon:c=!1,showLine:u,switcherIcon:d,switcherLoadingIcon:h,blockNode:p=!1,children:m,checkable:v=!1,selectable:y=!0,draggable:S,motion:b,style:C}=e,_=r("tree",s),T=r(),x=b??Object.assign(Object.assign({},qb(T)),{motionAppear:!1}),E=Object.assign(Object.assign({},e),{checkable:v,selectable:y,showIcon:c,motion:x,blockNode:p,showLine:!!u,dropIndicatorRender:wdt}),[k,M,P]=xdt(_),[,D]=ta(),R=D.paddingXS/2+(((n=D.Tree)===null||n===void 0?void 0:n.titleHeight)||D.controlHeightSM),A=ge.useMemo(()=>{if(!S)return!1;let F={};switch(typeof S){case"function":F.nodeDraggable=S;break;case"object":F=Object.assign({},S);break}return F.icon!==!1&&(F.icon=F.icon||ge.createElement(Nst,null)),F},[S]),H=F=>ge.createElement(gCe,{prefixCls:_,switcherIcon:d,switcherLoadingIcon:h,treeNodeProps:F,showLine:u});return k(ge.createElement(SP,Object.assign({itemHeight:R,ref:t,virtual:o},E,{style:Object.assign(Object.assign({},a==null?void 0:a.style),C),prefixCls:_,className:Re({[`${_}-icon-hide`]:!c,[`${_}-block-node`]:p,[`${_}-unselectable`]:!y,[`${_}-rtl`]:i==="rtl"},a==null?void 0:a.className,l,M,P),direction:i,checkable:v&&ge.createElement("span",{className:`${_}-checkbox-inner`}),selectable:y,switcherIcon:H,draggable:A}),m))}),Gte=0,GR=1,Yte=2;function GW(e,t,n){const{key:r,children:i}=n;function o(a){const s=a[r],l=a[i];t(s,a)!==!1&&GW(l||[],t,n)}e.forEach(o)}function _dt(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:i,fieldNames:o}=e;const a=[];let s=Gte;if(r&&r===i)return[r];if(!r||!i)return[];function l(c){return c===r||c===i}return GW(t,c=>{if(s===Yte)return!1;if(l(c)){if(a.push(c),s===Gte)s=GR;else if(s===GR)return s=Yte,!1}else s===GR&&a.push(c);return n.includes(c)},eS(o)),a}function YR(e,t,n){const r=pt(t),i=[];return GW(e,(o,a)=>{const s=r.indexOf(o);return s!==-1&&(i.push(a),r.splice(s,1)),!!r.length},eS(n)),i}var Xte=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Edt(e){const{isLeaf:t,expanded:n}=e;return t?f.createElement(mP,null):n?f.createElement(Tst,null):f.createElement(Pst,null)}function Qte(e){let{treeData:t,children:n}=e;return t||Jye(n)}const Tdt=(e,t)=>{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:i}=e,o=Xte(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const a=f.useRef(null),s=f.useRef(null),l=()=>{const{keyEntities:k}=$E(Qte(o));let M;return n?M=Object.keys(k):r?M=nj(o.expandedKeys||i||[],k):M=o.expandedKeys||i||[],M},[c,u]=f.useState(o.selectedKeys||o.defaultSelectedKeys||[]),[d,h]=f.useState(()=>l());f.useEffect(()=>{"selectedKeys"in o&&u(o.selectedKeys)},[o.selectedKeys]),f.useEffect(()=>{"expandedKeys"in o&&h(o.expandedKeys)},[o.expandedKeys]);const p=(k,M)=>{var P;return"expandedKeys"in o||h(k),(P=o.onExpand)===null||P===void 0?void 0:P.call(o,k,M)},m=(k,M)=>{var P;const{multiple:D,fieldNames:R}=o,{node:A,nativeEvent:H}=M,{key:F=""}=A,z=Qte(o),W=Object.assign(Object.assign({},M),{selected:!0}),q=(H==null?void 0:H.ctrlKey)||(H==null?void 0:H.metaKey),Z=H==null?void 0:H.shiftKey;let N;D&&q?(N=k,a.current=F,s.current=N,W.selectedNodes=YR(z,N,R)):D&&Z?(N=Array.from(new Set([].concat(pt(s.current||[]),pt(_dt({treeData:z,expandedKeys:d,startKey:F,endKey:a.current,fieldNames:R}))))),W.selectedNodes=YR(z,N,R)):(N=[F],a.current=F,s.current=N,W.selectedNodes=YR(z,N,R)),(P=o.onSelect)===null||P===void 0||P.call(o,N,W),"selectedKeys"in o||u(N)},{getPrefixCls:v,direction:y}=f.useContext(hn),{prefixCls:S,className:b,showIcon:C=!0,expandAction:_="click"}=o,T=Xte(o,["prefixCls","className","showIcon","expandAction"]),x=v("tree",S),E=Re(`${x}-directory`,{[`${x}-directory-rtl`]:y==="rtl"},b);return f.createElement(vCe,Object.assign({icon:Edt,ref:t,blockNode:!0},T,{showIcon:C,expandAction:_,prefixCls:x,className:E,expandedKeys:d,selectedKeys:c,onSelect:m,onExpand:p}))},kdt=f.forwardRef(Tdt),YW=vCe;YW.DirectoryTree=kdt;YW.TreeNode=b_;const Zte=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:i,onChange:o}=e;return n?f.createElement("div",{className:`${r}-filter-dropdown-search`},f.createElement($i,{prefix:f.createElement(UO,null),placeholder:i.filterSearchPlaceholder,onChange:o,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},Odt=e=>{const{keyCode:t}=e;t===Pt.ENTER&&e.stopPropagation()},Pdt=f.forwardRef((e,t)=>f.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:Odt,ref:t},e.children));function fb(e){let t=[];return(e||[]).forEach(n=>{let{value:r,children:i}=n;t.push(r),i&&(t=[].concat(pt(t),pt(fb(i))))}),t}function Mdt(e){return e.some(t=>{let{children:n}=t;return n})}function yCe(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function bCe(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:o,filterSearch:a}=e;return t.map((s,l)=>{const c=String(s.value);if(s.children)return{key:c||l,label:s.text,popupClassName:`${n}-dropdown-submenu`,children:bCe({filters:s.children,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:o,filterSearch:a})};const u=i?mp:ti,d={key:s.value!==void 0?c:l,label:f.createElement(f.Fragment,null,f.createElement(u,{checked:r.includes(c)}),f.createElement("span",null,s.text))};return o.trim()?typeof a=="function"?a(o,s)?d:null:yCe(o,s.text)?d:null:d})}function XR(e){return e||[]}const Idt=e=>{var t,n,r,i;const{tablePrefixCls:o,prefixCls:a,column:s,dropdownPrefixCls:l,columnKey:c,filterOnClose:u,filterMultiple:d,filterMode:h="menu",filterSearch:p=!1,filterState:m,triggerFilter:v,locale:y,children:S,getPopupContainer:b,rootClassName:C}=e,{filterResetToDefaultFilteredValue:_,defaultFilteredValue:T,filterDropdownProps:x={},filterDropdownOpen:E,filterDropdownVisible:k,onFilterDropdownVisibleChange:M,onFilterDropdownOpenChange:P}=s,[D,R]=f.useState(!1),A=!!(m&&(!((t=m.filteredKeys)===null||t===void 0)&&t.length||m.forceFiltered)),H=Te=>{var ke;R(Te),(ke=x.onOpenChange)===null||ke===void 0||ke.call(x,Te),P==null||P(Te),M==null||M(Te)},F=(i=(r=(n=x.open)!==null&&n!==void 0?n:E)!==null&&r!==void 0?r:k)!==null&&i!==void 0?i:D,z=m==null?void 0:m.filteredKeys,[W,q]=odt(XR(z)),Z=Te=>{let{selectedKeys:ke}=Te;q(ke)},N=(Te,ke)=>{let{node:Pe,checked:Ne}=ke;Z(d?{selectedKeys:Te}:{selectedKeys:Ne&&Pe.key?[Pe.key]:[]})};f.useEffect(()=>{D&&Z({selectedKeys:XR(z)})},[z]);const[B,V]=f.useState([]),G=Te=>{V(Te)},[ie,ce]=f.useState(""),fe=Te=>{const{value:ke}=Te.target;ce(ke)};f.useEffect(()=>{D||ce("")},[D]);const ee=Te=>{const ke=Te!=null&&Te.length?Te:null;if(ke===null&&(!m||!m.filteredKeys)||ku(ke,m==null?void 0:m.filteredKeys,!0))return null;v({column:s,key:c,filteredKeys:ke})},ne=()=>{H(!1),ee(W())},ue=function(){let{confirm:Te,closeDropdown:ke}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Te&&ee([]),ke&&H(!1),ce(""),q(_?(T||[]).map(Pe=>String(Pe)):[])},ye=function(){let{closeDropdown:Te}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Te&&H(!1),ee(W())},me=(Te,ke)=>{ke.source==="trigger"&&(Te&&z!==void 0&&q(XR(z)),H(Te),!Te&&!s.filterDropdown&&u&&ne())},pe=Re({[`${l}-menu-without-submenu`]:!Mdt(s.filters||[])}),he=Te=>{if(Te.target.checked){const ke=fb(s==null?void 0:s.filters).map(Pe=>String(Pe));q(ke)}else q([])},_e=Te=>{let{filters:ke}=Te;return(ke||[]).map((Pe,Ne)=>{const We=String(Pe.value),Q={title:Pe.text,key:Pe.value!==void 0?We:String(Ne)};return Pe.children&&(Q.children=_e({filters:Pe.children})),Q})},le=Te=>{var ke;return Object.assign(Object.assign({},Te),{text:Te.title,value:Te.key,children:((ke=Te.children)===null||ke===void 0?void 0:ke.map(Pe=>le(Pe)))||[]})};let xe;const{direction:we,renderEmpty:De}=f.useContext(hn);if(typeof s.filterDropdown=="function")xe=s.filterDropdown({prefixCls:`${l}-custom`,setSelectedKeys:Te=>Z({selectedKeys:Te}),selectedKeys:W(),confirm:ye,clearFilters:ue,filters:s.filters,visible:F,close:()=>{H(!1)}});else if(s.filterDropdown)xe=s.filterDropdown;else{const Te=W()||[],ke=()=>{var Ne;const We=(Ne=De==null?void 0:De("Table.filter"))!==null&&Ne!==void 0?Ne:f.createElement(Hh,{image:Hh.PRESENTED_IMAGE_SIMPLE,description:y.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((s.filters||[]).length===0)return We;if(h==="tree")return f.createElement(f.Fragment,null,f.createElement(Zte,{filterSearch:p,value:ie,onChange:fe,tablePrefixCls:o,locale:y}),f.createElement("div",{className:`${o}-filter-dropdown-tree`},d?f.createElement(mp,{checked:Te.length===fb(s.filters).length,indeterminate:Te.length>0&&Te.length<fb(s.filters).length,className:`${o}-filter-dropdown-checkall`,onChange:he},y.filterCheckall):null,f.createElement(YW,{checkable:!0,selectable:!1,blockNode:!0,multiple:d,checkStrictly:!d,className:`${l}-menu`,onCheck:N,checkedKeys:Te,selectedKeys:Te,showIcon:!1,treeData:_e({filters:s.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:ie.trim()?J=>typeof p=="function"?p(ie,le(J)):yCe(ie,J.title):void 0})));const Q=bCe({filters:s.filters||[],filterSearch:p,prefixCls:a,filteredKeys:W(),filterMultiple:d,searchValue:ie}),K=Q.every(J=>J===null);return f.createElement(f.Fragment,null,f.createElement(Zte,{filterSearch:p,value:ie,onChange:fe,tablePrefixCls:o,locale:y}),K?We:f.createElement(Zd,{selectable:!0,multiple:d,prefixCls:`${l}-menu`,className:pe,onSelect:Z,onDeselect:Z,selectedKeys:Te,getPopupContainer:b,openKeys:B,onOpenChange:G,items:Q}))},Pe=()=>_?ku((T||[]).map(Ne=>String(Ne)),Te,!0):Te.length===0;xe=f.createElement(f.Fragment,null,ke(),f.createElement("div",{className:`${a}-dropdown-btns`},f.createElement(pr,{type:"link",size:"small",disabled:Pe(),onClick:()=>ue()},y.filterReset),f.createElement(pr,{type:"primary",size:"small",onClick:ne},y.filterConfirm)))}s.filterDropdown&&(xe=f.createElement(D0e,{selectable:void 0},xe)),xe=f.createElement(Pdt,{className:`${a}-dropdown`},xe);const Ce=DW({trigger:["click"],placement:we==="rtl"?"bottomLeft":"bottomRight",children:(()=>{let Te;return typeof s.filterIcon=="function"?Te=s.filterIcon(A):s.filterIcon?Te=s.filterIcon:Te=f.createElement(wst,null),f.createElement("span",{role:"button",tabIndex:-1,className:Re(`${a}-trigger`,{active:A}),onClick:ke=>{ke.stopPropagation()}},Te)})(),getPopupContainer:b},Object.assign(Object.assign({},x),{rootClassName:Re(C,x.rootClassName),open:F,onOpenChange:me,dropdownRender:()=>typeof(x==null?void 0:x.dropdownRender)=="function"?x.dropdownRender(xe):xe}));return f.createElement("div",{className:`${a}-column`},f.createElement("span",{className:`${o}-column-title`},S),f.createElement(uP,Object.assign({},Ce)))},sj=(e,t,n)=>{let r=[];return(e||[]).forEach((i,o)=>{var a;const s=cC(o,n);if(i.filters||"filterDropdown"in i||"onFilter"in i)if("filteredValue"in i){let l=i.filteredValue;"filterDropdown"in i||(l=(a=l==null?void 0:l.map(String))!==null&&a!==void 0?a:l),r.push({column:i,key:og(i,s),filteredKeys:l,forceFiltered:i.filtered})}else r.push({column:i,key:og(i,s),filteredKeys:t&&i.defaultFilteredValue?i.defaultFilteredValue:void 0,forceFiltered:i.filtered});"children"in i&&(r=[].concat(pt(r),pt(sj(i.children,t,s))))}),r};function SCe(e,t,n,r,i,o,a,s,l){return n.map((c,u)=>{const d=cC(u,s),{filterOnClose:h=!0,filterMultiple:p=!0,filterMode:m,filterSearch:v}=c;let y=c;if(y.filters||y.filterDropdown){const S=og(y,d),b=r.find(C=>{let{key:_}=C;return S===_});y=Object.assign(Object.assign({},y),{title:C=>f.createElement(Idt,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:y,columnKey:S,filterState:b,filterOnClose:h,filterMultiple:p,filterMode:m,filterSearch:v,triggerFilter:o,locale:i,getPopupContainer:a,rootClassName:l},bP(c.title,C))})}return"children"in y&&(y=Object.assign(Object.assign({},y),{children:SCe(e,t,y.children,r,i,o,a,d,l)})),y})}const Jte=e=>{const t={};return e.forEach(n=>{let{key:r,filteredKeys:i,column:o}=n;const a=r,{filters:s,filterDropdown:l}=o;if(l)t[a]=i||null;else if(Array.isArray(i)){const c=fb(s);t[a]=c.filter(u=>i.includes(String(u)))}else t[a]=null}),t},lj=(e,t,n)=>t.reduce((i,o)=>{const{column:{onFilter:a,filters:s},filteredKeys:l}=o;return a&&l&&l.length?i.map(c=>Object.assign({},c)).filter(c=>l.some(u=>{const d=fb(s),h=d.findIndex(m=>String(m)===String(u)),p=h!==-1?d[h]:u;return c[n]&&(c[n]=lj(c[n],t,n)),a(p,c)})):i},e),CCe=e=>e.flatMap(t=>"children"in t?[t].concat(pt(CCe(t.children||[]))):[t]),$dt=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:i,getPopupContainer:o,locale:a,rootClassName:s}=e;Jf();const l=f.useMemo(()=>CCe(r||[]),[r]),[c,u]=f.useState(()=>sj(l,!0)),d=f.useMemo(()=>{const v=sj(l,!1);if(v.length===0)return v;let y=!0;if(v.forEach(S=>{let{filteredKeys:b}=S;b!==void 0&&(y=!1)}),y){const S=(l||[]).map((b,C)=>og(b,cC(C)));return c.filter(b=>{let{key:C}=b;return S.includes(C)}).map(b=>{const C=l[S.findIndex(_=>_===b.key)];return Object.assign(Object.assign({},b),{column:Object.assign(Object.assign({},b.column),C),forceFiltered:C.filtered})})}return v},[l,c]),h=f.useMemo(()=>Jte(d),[d]),p=v=>{const y=d.filter(S=>{let{key:b}=S;return b!==v.key});y.push(v),u(y),i(Jte(y),y)};return[v=>SCe(t,n,v,d,a,p,o,void 0,s),d,h]},Rdt=(e,t,n)=>{const r=f.useRef({});function i(o){var a;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let l=function(c){c.forEach((u,d)=>{const h=n(u,d);s.set(h,u),u&&typeof u=="object"&&t in u&&l(u[t]||[])})};const s=new Map;l(e),r.current={data:e,childrenColumnName:t,kvMap:s,getRowKey:n}}return(a=r.current.kvMap)===null||a===void 0?void 0:a.get(o)}return[i]};var Adt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const xCe=10;function Ndt(e,t){const n={current:e.current,pageSize:e.pageSize};return Object.keys(t&&typeof t=="object"?t:{}).forEach(i=>{const o=e[i];typeof o!="function"&&(n[i]=o)}),n}function Ddt(e,t,n){const r=n&&typeof n=="object"?n:{},{total:i=0}=r,o=Adt(r,["total"]),[a,s]=f.useState(()=>({current:"defaultCurrent"in o?o.defaultCurrent:1,pageSize:"defaultPageSize"in o?o.defaultPageSize:xCe})),l=DW(a,o,{total:i>0?i:e}),c=Math.ceil((i||e)/l.pageSize);l.current>c&&(l.current=c||1);const u=(h,p)=>{s({current:h??1,pageSize:p||l.pageSize})},d=(h,p)=>{var m;n&&((m=n.onChange)===null||m===void 0||m.call(n,h,p)),u(h,p),t(h,p||(l==null?void 0:l.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},l),{onChange:d}),u]}const L8="ascend",QR="descend",Z9=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1,ene=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1,Ldt=(e,t)=>t?e[e.indexOf(t)+1]:e[0],cj=(e,t,n)=>{let r=[];const i=(o,a)=>{r.push({column:o,key:og(o,a),multiplePriority:Z9(o),sortOrder:o.sortOrder})};return(e||[]).forEach((o,a)=>{const s=cC(a,n);o.children?("sortOrder"in o&&i(o,s),r=[].concat(pt(r),pt(cj(o.children,t,s)))):o.sorter&&("sortOrder"in o?i(o,s):t&&o.defaultSortOrder&&r.push({column:o,key:og(o,s),multiplePriority:Z9(o),sortOrder:o.defaultSortOrder}))}),r},wCe=(e,t,n,r,i,o,a,s)=>(t||[]).map((c,u)=>{const d=cC(u,s);let h=c;if(h.sorter){const p=h.sortDirections||i,m=h.showSorterTooltip===void 0?a:h.showSorterTooltip,v=og(h,d),y=n.find(M=>{let{key:P}=M;return P===v}),S=y?y.sortOrder:null,b=Ldt(p,S);let C;if(c.sortIcon)C=c.sortIcon({sortOrder:S});else{const M=p.includes(L8)&&f.createElement(Jat,{className:Re(`${e}-column-sorter-up`,{active:S===L8})}),P=p.includes(QR)&&f.createElement(Xat,{className:Re(`${e}-column-sorter-down`,{active:S===QR})});C=f.createElement("span",{className:Re(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(M&&P)})},f.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},M,P))}const{cancelSort:_,triggerAsc:T,triggerDesc:x}=o||{};let E=_;b===QR?E=x:b===L8&&(E=T);const k=typeof m=="object"?Object.assign({title:E},m):{title:E};h=Object.assign(Object.assign({},h),{className:Re(h.className,{[`${e}-column-sort`]:S}),title:M=>{const P=`${e}-column-sorters`,D=f.createElement("span",{className:`${e}-column-title`},bP(c.title,M)),R=f.createElement("div",{className:P},D,C);return m?typeof m!="boolean"&&(m==null?void 0:m.target)==="sorter-icon"?f.createElement("div",{className:`${P} ${e}-column-sorters-tooltip-target-sorter`},D,f.createElement(ea,Object.assign({},k),C)):f.createElement(ea,Object.assign({},k),R):R},onHeaderCell:M=>{var P;const D=((P=c.onHeaderCell)===null||P===void 0?void 0:P.call(c,M))||{},R=D.onClick,A=D.onKeyDown;D.onClick=z=>{r({column:c,key:v,sortOrder:b,multiplePriority:Z9(c)}),R==null||R(z)},D.onKeyDown=z=>{z.keyCode===Pt.ENTER&&(r({column:c,key:v,sortOrder:b,multiplePriority:Z9(c)}),A==null||A(z))};const H=idt(c.title,{}),F=H==null?void 0:H.toString();return S?D["aria-sort"]=S==="ascend"?"ascending":"descending":D["aria-label"]=F||"",D.className=Re(D.className,`${e}-column-has-sorters`),D.tabIndex=0,c.ellipsis&&(D.title=(H??"").toString()),D}})}return"children"in h&&(h=Object.assign(Object.assign({},h),{children:wCe(e,h.children,n,r,i,o,a,d)})),h}),tne=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},nne=e=>{const t=e.filter(n=>{let{sortOrder:r}=n;return r}).map(tne);if(t.length===0&&e.length){const n=e.length-1;return Object.assign(Object.assign({},tne(e[n])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},uj=(e,t,n)=>{const r=t.slice().sort((a,s)=>s.multiplePriority-a.multiplePriority),i=e.slice(),o=r.filter(a=>{let{column:{sorter:s},sortOrder:l}=a;return ene(s)&&l});return o.length?i.sort((a,s)=>{for(let l=0;l<o.length;l+=1){const c=o[l],{column:{sorter:u},sortOrder:d}=c,h=ene(u);if(h&&d){const p=h(a,s,d);if(p!==0)return d===L8?p:-p}}return 0}).map(a=>{const s=a[n];return s?Object.assign(Object.assign({},a),{[n]:uj(s,t,n)}):a}):i},Fdt=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:i,showSorterTooltip:o,onSorterChange:a}=e,[s,l]=f.useState(cj(n,!0)),c=(v,y)=>{const S=[];return v.forEach((b,C)=>{const _=cC(C,y);if(S.push(og(b,_)),Array.isArray(b.children)){const T=c(b.children,_);S.push.apply(S,pt(T))}}),S},u=f.useMemo(()=>{let v=!0;const y=cj(n,!1);if(!y.length){const _=c(n);return s.filter(T=>{let{key:x}=T;return _.includes(x)})}const S=[];function b(_){v?S.push(_):S.push(Object.assign(Object.assign({},_),{sortOrder:null}))}let C=null;return y.forEach(_=>{C===null?(b(_),_.sortOrder&&(_.multiplePriority===!1?v=!1:C=!0)):(C&&_.multiplePriority!==!1||(v=!1),b(_))}),S},[n,s]),d=f.useMemo(()=>{var v,y;const S=u.map(b=>{let{column:C,sortOrder:_}=b;return{column:C,order:_}});return{sortColumns:S,sortColumn:(v=S[0])===null||v===void 0?void 0:v.column,sortOrder:(y=S[0])===null||y===void 0?void 0:y.order}},[u]),h=v=>{let y;v.multiplePriority===!1||!u.length||u[0].multiplePriority===!1?y=[v]:y=[].concat(pt(u.filter(S=>{let{key:b}=S;return b!==v.key})),[v]),l(y),a(nne(y),y)};return[v=>wCe(t,v,u,h,r,i,o),u,d,()=>nne(u)]},_Ce=(e,t)=>e.map(r=>{const i=Object.assign({},r);return i.title=bP(r.title,t),"children"in i&&(i.children=_Ce(i.children,t)),i}),jdt=e=>[f.useCallback(n=>_Ce(n,e),[e])],Bdt=sCe((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),Hdt=cCe((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),zdt=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:i,tableHeaderBg:o,tablePaddingVertical:a,tablePaddingHorizontal:s,calc:l}=e,c=`${je(n)} ${r} ${i}`,u=(d,h,p)=>({[`&${t}-${d}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${je(l(h).mul(-1).equal())}
|
||
${je(l(l(p).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:c,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:c,borderTop:c,[`
|
||
> ${t}-content,
|
||
> ${t}-header,
|
||
> ${t}-body,
|
||
> ${t}-summary
|
||
`]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:c},"> thead":{"> tr:not(:last-child) > th":{borderBottom:c},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:c}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${je(l(a).mul(-1).equal())} ${je(l(l(s).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:c,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`
|
||
> tr${t}-expanded-row,
|
||
> tr${t}-placeholder
|
||
`]:{"> th, > td":{borderInlineEnd:0}}}}}},u("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),u("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:c,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${je(n)} 0 ${je(n)} ${o}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:c}}}},Udt=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},Gl),{wordBreak:"keep-all",[`
|
||
&${t}-cell-fix-left-last,
|
||
&${t}-cell-fix-right-first
|
||
`]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Wdt=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},Vdt=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:i,paddingXS:o,lineType:a,tableBorderColor:s,tableExpandIconBg:l,tableExpandColumnWidth:c,borderRadius:u,tablePaddingVertical:d,tablePaddingHorizontal:h,tableExpandedRowBg:p,paddingXXS:m,expandIconMarginTop:v,expandIconSize:y,expandIconHalfInner:S,expandIconScale:b,calc:C}=e,_=`${je(i)} ${a} ${s}`,T=C(m).sub(i).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:c},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},CU(e)),{position:"relative",float:"left",width:y,height:y,color:"inherit",lineHeight:je(y),background:l,border:_,borderRadius:u,transform:`scale(${b})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:S,insetInlineEnd:T,insetInlineStart:T,height:i},"&::after":{top:T,bottom:T,insetInlineStart:S,width:i,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:v,marginInlineEnd:o},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:p}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${je(C(d).mul(-1).equal())} ${je(C(h).mul(-1).equal())}`,padding:`${je(d)} ${je(h)}`}}}},Kdt=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:i,tableFilterDropdownSearchWidth:o,paddingXXS:a,paddingXS:s,colorText:l,lineWidth:c,lineType:u,tableBorderColor:d,headerIconColor:h,fontSizeSM:p,tablePaddingHorizontal:m,borderRadius:v,motionDurationSlow:y,colorTextDescription:S,colorPrimary:b,tableHeaderFilterActiveBg:C,colorTextDisabled:_,tableFilterDropdownBg:T,tableFilterDropdownHeight:x,controlItemBgHover:E,controlItemBgActive:k,boxShadowSecondary:M,filterDropdownMenuBg:P,calc:D}=e,R=`${n}-dropdown`,A=`${t}-filter-dropdown`,H=`${n}-tree`,F=`${je(c)} ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:D(a).mul(-1).equal(),marginInline:`${je(a)} ${je(D(m).div(2).mul(-1).equal())}`,padding:`0 ${je(a)}`,color:h,fontSize:p,borderRadius:v,cursor:"pointer",transition:`all ${y}`,"&:hover":{color:S,background:C},"&.active":{color:b}}}},{[`${n}-dropdown`]:{[A]:Object.assign(Object.assign({},$r(e)),{minWidth:i,backgroundColor:T,borderRadius:v,boxShadow:M,overflow:"hidden",[`${R}-menu`]:{maxHeight:x,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:P,"&:empty::after":{display:"block",padding:`${je(s)} 0`,color:_,fontSize:p,textAlign:"center",content:'"Not Found"'}},[`${A}-tree`]:{paddingBlock:`${je(s)} 0`,paddingInline:s,[H]:{padding:0},[`${H}-treenode ${H}-node-content-wrapper:hover`]:{backgroundColor:E},[`${H}-treenode-checkbox-checked ${H}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:k}}},[`${A}-search`]:{padding:s,borderBottom:F,"&-input":{input:{minWidth:o},[r]:{color:_}}},[`${A}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${A}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${je(D(s).sub(c).equal())} ${je(s)}`,overflow:"hidden",borderTop:F}})}},{[`${n}-dropdown ${A}, ${A}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:l},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},qdt=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:i,zIndexTableFixed:o,tableBg:a,zIndexTableSticky:s,calc:l}=e,c=r;return{[`${t}-wrapper`]:{[`
|
||
${t}-cell-fix-left,
|
||
${t}-cell-fix-right
|
||
`]:{position:"sticky !important",zIndex:o,background:a},[`
|
||
${t}-cell-fix-left-first::after,
|
||
${t}-cell-fix-left-last::after
|
||
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:l(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${i}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`
|
||
${t}-cell-fix-right-first::after,
|
||
${t}-cell-fix-right-last::after
|
||
`]:{position:"absolute",top:0,bottom:l(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${i}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:l(s).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${i}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${c}`},[`
|
||
${t}-cell-fix-left-first::after,
|
||
${t}-cell-fix-left-last::after
|
||
`]:{boxShadow:`inset 10px 0 8px -8px ${c}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${c}`},[`
|
||
${t}-cell-fix-right-first::after,
|
||
${t}-cell-fix-right-last::after
|
||
`]:{boxShadow:`inset -10px 0 8px -8px ${c}`}},[`${t}-fixed-column-gapped`]:{[`
|
||
${t}-cell-fix-left-first::after,
|
||
${t}-cell-fix-left-last::after,
|
||
${t}-cell-fix-right-first::after,
|
||
${t}-cell-fix-right-last::after
|
||
`]:{boxShadow:"none"}}}}},Gdt=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${je(r)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Ydt=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${je(n)} ${je(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${je(n)} ${je(n)}`}}}}},Xdt=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},Qdt=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:i,padding:o,paddingXS:a,headerIconColor:s,headerIconHoverColor:l,tableSelectionColumnWidth:c,tableSelectedRowBg:u,tableSelectedRowHoverBg:d,tableRowHoverBg:h,tablePaddingHorizontal:p,calc:m}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:c,[`&${t}-selection-col-with-dropdown`]:{width:m(c).add(i).add(m(o).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:m(c).add(m(a).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:m(c).add(i).add(m(o).div(4)).add(m(a).mul(2)).equal()}},[`
|
||
table tr th${t}-selection-column,
|
||
table tr td${t}-selection-column,
|
||
${t}-selection-column
|
||
`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:m(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:je(m(p).div(4).equal()),[r]:{color:s,fontSize:i,verticalAlign:"baseline","&:hover":{color:l}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:u,"&-row-hover":{background:d}}},[`> ${t}-cell-row-hover`]:{background:h}}}}}},Zdt=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,i=(o,a,s,l)=>({[`${t}${t}-${o}`]:{fontSize:l,[`
|
||
${t}-title,
|
||
${t}-footer,
|
||
${t}-cell,
|
||
${t}-thead > tr > th,
|
||
${t}-tbody > tr > th,
|
||
${t}-tbody > tr > td,
|
||
tfoot > tr > th,
|
||
tfoot > tr > td
|
||
`]:{padding:`${je(a)} ${je(s)}`},[`${t}-filter-trigger`]:{marginInlineEnd:je(r(s).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${je(r(a).mul(-1).equal())} ${je(r(s).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:je(r(a).mul(-1).equal()),marginInline:`${je(r(n).sub(s).equal())} ${je(r(s).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:je(r(s).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},i("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),i("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},Jdt=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:i,headerIconHoverColor:o}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`
|
||
&${t}-cell-fix-left:hover,
|
||
&${t}-cell-fix-right:hover
|
||
`]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:i,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:o}}}},eft=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:i,tableScrollThumbSize:o,tableScrollBg:a,zIndexTableSticky:s,stickyScrollBarBorderRadius:l,lineWidth:c,lineType:u,tableBorderColor:d}=e,h=`${je(c)} ${u} ${d}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:s,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${je(o)} !important`,zIndex:s,display:"flex",alignItems:"center",background:a,borderTop:h,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:o,backgroundColor:r,borderRadius:l,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:i}}}}}}},rne=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:i}=e,o=`${je(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:o}}},[`div${t}-summary`]:{boxShadow:`0 ${je(i(n).mul(-1).equal())} 0 ${r}`}}}},tft=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:i,tableBorderColor:o,calc:a}=e,s=`${je(r)} ${i} ${o}`,l=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[`
|
||
& > ${t}-row,
|
||
& > div:not(${t}-row) > ${t}-row
|
||
`]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:s,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${l}${l}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${je(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:s,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:a(r).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}},nft=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:i,tableExpandColumnWidth:o,lineWidth:a,lineType:s,tableBorderColor:l,tableFontSize:c,tableBg:u,tableRadius:d,tableHeaderTextColor:h,motionDurationMid:p,tableHeaderBg:m,tableHeaderCellSplitColor:v,tableFooterTextColor:y,tableFooterBg:S,calc:b}=e,C=`${je(a)} ${s} ${l}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},Ld()),{[t]:Object.assign(Object.assign({},$r(e)),{fontSize:c,background:u,borderRadius:`${je(d)} ${je(d)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${je(d)} ${je(d)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
||
${t}-cell,
|
||
${t}-thead > tr > th,
|
||
${t}-tbody > tr > th,
|
||
${t}-tbody > tr > td,
|
||
tfoot > tr > th,
|
||
tfoot > tr > td
|
||
`]:{position:"relative",padding:`${je(r)} ${je(i)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${je(r)} ${je(i)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:h,fontWeight:n,textAlign:"start",background:m,borderBottom:C,transition:`background ${p} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:v,transform:"translateY(-50%)",transition:`background-color ${p}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${p}, border-color ${p}`,borderBottom:C,[`
|
||
> ${t}-wrapper:only-child,
|
||
> ${t}-expanded-row-fixed > ${t}-wrapper:only-child
|
||
`]:{[t]:{marginBlock:je(b(r).mul(-1).equal()),marginInline:`${je(b(o).sub(i).equal())}
|
||
${je(b(i).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:h,fontWeight:n,textAlign:"start",background:m,borderBottom:C,transition:`background ${p} ease`}}},[`${t}-footer`]:{padding:`${je(r)} ${je(i)}`,color:y,background:S}})}},rft=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:i,colorFillContent:o,controlItemBgActive:a,controlItemBgActiveHover:s,padding:l,paddingSM:c,paddingXS:u,colorBorderSecondary:d,borderRadiusLG:h,controlHeight:p,colorTextPlaceholder:m,fontSize:v,fontSizeSM:y,lineHeight:S,lineWidth:b,colorIcon:C,colorIconHover:_,opacityLoading:T,controlInteractiveSize:x}=e,E=new xr(i).onBackground(n).toHexString(),k=new xr(o).onBackground(n).toHexString(),M=new xr(t).onBackground(n).toHexString(),P=new xr(C),D=new xr(_),R=x/2-b,A=R*2+b*3;return{headerBg:M,headerColor:r,headerSortActiveBg:E,headerSortHoverBg:k,bodySortBg:M,rowHoverBg:M,rowSelectedBg:a,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:l,cellPaddingInline:l,cellPaddingBlockMD:c,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:d,headerBorderRadius:h,footerBg:M,footerColor:r,cellFontSize:v,cellFontSizeMD:v,cellFontSizeSM:v,headerSplitColor:d,fixedHeaderSortActiveBg:E,headerFilterHoverBg:o,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:m,stickyScrollBarBorderRadius:100,expandIconMarginTop:(v*S-b*3)/2-Math.ceil((y*1.4-b*3)/2),headerIconColor:P.clone().setA(P.a*T).toRgbString(),headerIconHoverColor:D.clone().setA(D.a*T).toRgbString(),expandIconHalfInner:R,expandIconSize:A,expandIconScale:x/A}},ine=2,ift=Tr("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:i,headerBg:o,headerColor:a,headerSortActiveBg:s,headerSortHoverBg:l,bodySortBg:c,rowHoverBg:u,rowSelectedBg:d,rowSelectedHoverBg:h,rowExpandedBg:p,cellPaddingBlock:m,cellPaddingInline:v,cellPaddingBlockMD:y,cellPaddingInlineMD:S,cellPaddingBlockSM:b,cellPaddingInlineSM:C,borderColor:_,footerBg:T,footerColor:x,headerBorderRadius:E,cellFontSize:k,cellFontSizeMD:M,cellFontSizeSM:P,headerSplitColor:D,fixedHeaderSortActiveBg:R,headerFilterHoverBg:A,filterDropdownBg:H,expandIconBg:F,selectionColumnWidth:z,stickyScrollBarBg:W,calc:q}=e,Z=dr(e,{tableFontSize:k,tableBg:r,tableRadius:E,tablePaddingVertical:m,tablePaddingHorizontal:v,tablePaddingVerticalMiddle:y,tablePaddingHorizontalMiddle:S,tablePaddingVerticalSmall:b,tablePaddingHorizontalSmall:C,tableBorderColor:_,tableHeaderTextColor:a,tableHeaderBg:o,tableFooterTextColor:x,tableFooterBg:T,tableHeaderCellSplitColor:D,tableHeaderSortBg:s,tableHeaderSortHoverBg:l,tableBodySortBg:c,tableFixedHeaderSortActiveBg:R,tableHeaderFilterActiveBg:A,tableFilterDropdownBg:H,tableRowHoverBg:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:h,zIndexTableFixed:ine,zIndexTableSticky:q(ine).add(1).equal({unit:!1}),tableFontSizeMiddle:M,tableFontSizeSmall:P,tableSelectionColumnWidth:z,tableExpandIconBg:F,tableExpandColumnWidth:q(i).add(q(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:W,tableScrollThumbBgHover:t,tableScrollBg:n});return[nft(Z),Gdt(Z),rne(Z),Jdt(Z),Kdt(Z),zdt(Z),Ydt(Z),Vdt(Z),rne(Z),Wdt(Z),Qdt(Z),qdt(Z),eft(Z),Udt(Z),Zdt(Z),Xdt(Z),tft(Z)]},rft,{unitless:{expandIconScale:!0}}),oft=[],aft=(e,t)=>{var n,r;const{prefixCls:i,className:o,rootClassName:a,style:s,size:l,bordered:c,dropdownPrefixCls:u,dataSource:d,pagination:h,rowSelection:p,rowKey:m="key",rowClassName:v,columns:y,children:S,childrenColumnName:b,onChange:C,getPopupContainer:_,loading:T,expandIcon:x,expandable:E,expandedRowRender:k,expandIconColumnIndex:M,indentSize:P,scroll:D,sortDirections:R,locale:A,showSorterTooltip:H={target:"full-header"},virtual:F}=e;Jf();const z=f.useMemo(()=>y||WW(S),[y,S]),W=f.useMemo(()=>z.some(At=>At.responsive),[z]),q=VO(W),Z=f.useMemo(()=>{const At=new Set(Object.keys(q).filter($t=>q[$t]));return z.filter($t=>!$t.responsive||$t.responsive.some(Gt=>At.has(Gt)))},[z,q]),N=Pr(e,["className","style","columns"]),{locale:B=Lc,direction:V,table:G,renderEmpty:ie,getPrefixCls:ce,getPopupContainer:fe}=f.useContext(hn),ee=$o(l),ne=Object.assign(Object.assign({},B.Table),A),ue=d||oft,ye=ce("table",i),me=ce("dropdown",u),[,pe]=ta(),he=_i(ye),[_e,le,xe]=ift(ye,he),we=Object.assign(Object.assign({childrenColumnName:b,expandIconColumnIndex:M},E),{expandIcon:(n=E==null?void 0:E.expandIcon)!==null&&n!==void 0?n:(r=G==null?void 0:G.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:De="children"}=we,Fe=f.useMemo(()=>ue.some(At=>At==null?void 0:At[De])?"nest":k||E!=null&&E.expandedRowRender?"row":null,[ue]),Ce={body:f.useRef(null)},Te=rdt(ye),ke=f.useRef(null),Pe=f.useRef(null);tdt(t,()=>Object.assign(Object.assign({},Pe.current),{nativeElement:ke.current}));const Ne=f.useMemo(()=>typeof m=="function"?m:At=>At==null?void 0:At[m],[m]),[We]=Rdt(ue,De,Ne),Q={},K=function(At,$t){let Gt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Ft,cn,_t,jt;const nn=Object.assign(Object.assign({},Q),At);Gt&&((Ft=Q.resetPagination)===null||Ft===void 0||Ft.call(Q),!((cn=nn.pagination)===null||cn===void 0)&&cn.current&&(nn.pagination.current=1),h&&((_t=h.onChange)===null||_t===void 0||_t.call(h,1,(jt=nn.pagination)===null||jt===void 0?void 0:jt.pageSize))),D&&D.scrollToFirstRowOnChange!==!1&&Ce.body.current&&mHe(0,{getContainer:()=>Ce.body.current}),C==null||C(nn.pagination,nn.filters,nn.sorter,{currentDataSource:lj(uj(ue,nn.sorterStates,De),nn.filterStates,De),action:$t})},J=(At,$t)=>{K({sorter:At,sorterStates:$t},"sort",!1)},[be,Oe,Se,Ke]=Fdt({prefixCls:ye,mergedColumns:Z,onSorterChange:J,sortDirections:R||["ascend","descend"],tableLocale:ne,showSorterTooltip:H}),tt=f.useMemo(()=>uj(ue,Oe,De),[ue,Oe]);Q.sorter=Ke(),Q.sorterStates=Oe;const se=(At,$t)=>{K({filters:At,filterStates:$t},"filter",!0)},[ze,Ye,Ue]=$dt({prefixCls:ye,locale:ne,dropdownPrefixCls:me,mergedColumns:Z,onFilterChange:se,getPopupContainer:_||fe,rootClassName:Re(a,he)}),Je=lj(tt,Ye,De);Q.filters=Ue,Q.filterStates=Ye;const Ze=f.useMemo(()=>{const At={};return Object.keys(Ue).forEach($t=>{Ue[$t]!==null&&(At[$t]=Ue[$t])}),Object.assign(Object.assign({},Se),{filters:At})},[Se,Ue]),[rt]=jdt(Ze),qt=(At,$t)=>{K({pagination:Object.assign(Object.assign({},Q.pagination),{current:At,pageSize:$t})},"paginate")},[St,Ot]=Ddt(Je.length,qt,h);Q.pagination=h===!1?{}:Ndt(St,h),Q.resetPagination=Ot;const Bt=f.useMemo(()=>{if(h===!1||!St.pageSize)return Je;const{current:At=1,total:$t,pageSize:Gt=xCe}=St;return Je.length<$t?Je.length>Gt?Je.slice((At-1)*Gt,At*Gt):Je:Je.slice((At-1)*Gt,At*Gt)},[!!h,Je,St==null?void 0:St.current,St==null?void 0:St.pageSize,St==null?void 0:St.total]),[Dt,an]=Jut({prefixCls:ye,data:Je,pageData:Bt,getRowKey:Ne,getRecordByKey:We,expandType:Fe,childrenColumnName:De,locale:ne,getPopupContainer:_||fe},p),Vt=(At,$t,Gt)=>{let Ft;return typeof v=="function"?Ft=Re(v(At,$t,Gt)):Ft=Re(v),Re({[`${ye}-row-selected`]:an.has(Ne(At,$t))},Ft)};we.__PARENT_RENDER_ICON__=we.expandIcon,we.expandIcon=we.expandIcon||x||ndt(ne),Fe==="nest"&&we.expandIconColumnIndex===void 0?we.expandIconColumnIndex=p?1:0:we.expandIconColumnIndex>0&&p&&(we.expandIconColumnIndex-=1),typeof we.indentSize!="number"&&(we.indentSize=typeof P=="number"?P:15);const Kt=f.useCallback(At=>rt(Dt(ze(be(At)))),[be,ze,Dt]);let Qt,et;if(h!==!1&&(St!=null&&St.total)){let At;St.size?At=St.size:At=ee==="small"||ee==="middle"?"small":void 0;const $t=cn=>f.createElement(mSe,Object.assign({},St,{className:Re(`${ye}-pagination ${ye}-pagination-${cn}`,St.className),size:At})),Gt=V==="rtl"?"left":"right",{position:Ft}=St;if(Ft!==null&&Array.isArray(Ft)){const cn=Ft.find(nn=>nn.includes("top")),_t=Ft.find(nn=>nn.includes("bottom")),jt=Ft.every(nn=>`${nn}`=="none");!cn&&!_t&&!jt&&(et=$t(Gt)),cn&&(Qt=$t(cn.toLowerCase().replace("top",""))),_t&&(et=$t(_t.toLowerCase().replace("bottom","")))}else et=$t(Gt)}let ot;typeof T=="boolean"?ot={spinning:T}:typeof T=="object"&&(ot=Object.assign({spinning:!0},T));const Qe=Re(xe,he,`${ye}-wrapper`,G==null?void 0:G.className,{[`${ye}-wrapper-rtl`]:V==="rtl"},o,a,le),ut=Object.assign(Object.assign({},G==null?void 0:G.style),s),Nt=typeof(A==null?void 0:A.emptyText)<"u"?A.emptyText:(ie==null?void 0:ie("Table"))||f.createElement(YS,{componentName:"Table"}),Lt=F?Hdt:Bdt,Zt={},Wt=f.useMemo(()=>{const{fontSize:At,lineHeight:$t,lineWidth:Gt,padding:Ft,paddingXS:cn,paddingSM:_t}=pe,jt=Math.floor(At*$t);switch(ee){case"middle":return _t*2+jt+Gt;case"small":return cn*2+jt+Gt;default:return Ft*2+jt+Gt}},[pe,ee]);return F&&(Zt.listItemHeight=Wt),_e(f.createElement("div",{ref:ke,className:Qe,style:ut},f.createElement(Sl,Object.assign({spinning:!1},ot),Qt,f.createElement(Lt,Object.assign({},Zt,N,{ref:Pe,columns:Z,direction:V,expandable:we,prefixCls:ye,className:Re({[`${ye}-middle`]:ee==="middle",[`${ye}-small`]:ee==="small",[`${ye}-bordered`]:c,[`${ye}-empty`]:ue.length===0},xe,he,le),data:Bt,rowKey:Ne,rowClassName:Vt,emptyText:Nt,internalHooks:BE,internalRefs:Ce,transformColumns:Kt,getContainerWidth:Te})),et)))},sft=f.forwardRef(aft),lft=(e,t)=>{const n=f.useRef(0);return n.current+=1,f.createElement(sft,Object.assign({},e,{ref:t,_renderTimes:n.current}))},nh=f.forwardRef(lft);nh.SELECTION_COLUMN=cm;nh.EXPAND_COLUMN=Dh;nh.SELECTION_ALL=rj;nh.SELECTION_INVERT=ij;nh.SELECTION_NONE=oj;nh.Column=Uut;nh.ColumnGroup=Wut;nh.Summary=XSe;const cft=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:i,calc:o}=e,a=o(r).sub(n).equal(),s=o(t).sub(n).equal();return{[i]:Object.assign(Object.assign({},$r(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${je(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${i}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${i}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${i}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}}),[`${i}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},XW=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return dr(e,{tagFontSize:i,tagLineHeight:je(r(e.lineHeightSM).mul(i).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},QW=e=>({defaultBg:new xr(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),ECe=Tr("Tag",e=>{const t=XW(e);return cft(t)},QW);var uft=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const dft=f.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:i,checked:o,onChange:a,onClick:s}=e,l=uft(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:c,tag:u}=f.useContext(hn),d=S=>{a==null||a(!o),s==null||s(S)},h=c("tag",n),[p,m,v]=ECe(h),y=Re(h,`${h}-checkable`,{[`${h}-checkable-checked`]:o},u==null?void 0:u.className,i,m,v);return p(f.createElement("span",Object.assign({},l,{ref:t,style:Object.assign(Object.assign({},r),u==null?void 0:u.style),className:y,onClick:d})))}),fft=e=>SO(e,(t,n)=>{let{textColor:r,lightBorderColor:i,lightColor:o,darkColor:a}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:o,borderColor:i,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),hft=US(["Tag","preset"],e=>{const t=XW(e);return fft(t)},QW);function pft(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const e5=(e,t,n)=>{const r=pft(n);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},mft=US(["Tag","status"],e=>{const t=XW(e);return[e5(t,"success","Success"),e5(t,"processing","Info"),e5(t,"error","Error"),e5(t,"warning","Warning")]},QW);var gft=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const vft=f.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:o,children:a,icon:s,color:l,onClose:c,bordered:u=!0,visible:d}=e,h=gft(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:p,direction:m,tag:v}=f.useContext(hn),[y,S]=f.useState(!0),b=Pr(h,["closeIcon","closable"]);f.useEffect(()=>{d!==void 0&&S(d)},[d]);const C=GO(l),_=UGe(l),T=C||_,x=Object.assign(Object.assign({backgroundColor:l&&!T?l:void 0},v==null?void 0:v.style),o),E=p("tag",n),[k,M,P]=ECe(E),D=Re(E,v==null?void 0:v.className,{[`${E}-${l}`]:T,[`${E}-has-color`]:l&&!T,[`${E}-hidden`]:!y,[`${E}-rtl`]:m==="rtl",[`${E}-borderless`]:!u},r,i,M,P),R=q=>{q.stopPropagation(),c==null||c(q),!q.defaultPrevented&&S(!1)},[,A]=HU(Yb(e),Yb(v),{closable:!1,closeIconRender:q=>{const Z=f.createElement("span",{className:`${E}-close-icon`,onClick:R},q);return wU(q,Z,N=>({onClick:B=>{var V;(V=N==null?void 0:N.onClick)===null||V===void 0||V.call(N,B),R(B)},className:Re(N==null?void 0:N.className,`${E}-close-icon`)}))}}),H=typeof h.onClick=="function"||a&&a.type==="a",F=s||null,z=F?f.createElement(f.Fragment,null,F,a&&f.createElement("span",null,a)):a,W=f.createElement("span",Object.assign({},b,{ref:t,className:D,style:x}),z,A,C&&f.createElement(hft,{key:"preset",prefixCls:E}),_&&f.createElement(mft,{key:"status",prefixCls:E}));return k(H?f.createElement(gE,{component:"Tag"},W):W)}),CP=vft;CP.CheckableTag=dft;const yft=e=>{const t=e!=null&&e.algorithm?vv(e.algorithm):vv(hE),n=Object.assign(Object.assign({},Kb),e==null?void 0:e.token);return dU(n,{override:e==null?void 0:e.token},t,SU)};function bft(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const Sft=(e,t)=>{const n=t??hE(e),r=n.fontSizeSM,i=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),bft(t??e)),Vge(r)),{controlHeight:i}),Wge(Object.assign(Object.assign({},n),{controlHeight:i})))},eu=(e,t)=>new xr(e).setA(t).toRgbString(),ry=(e,t)=>new xr(e).lighten(t).toHexString(),Cft=e=>{const t=tg(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},xft=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:eu(r,.85),colorTextSecondary:eu(r,.65),colorTextTertiary:eu(r,.45),colorTextQuaternary:eu(r,.25),colorFill:eu(r,.18),colorFillSecondary:eu(r,.12),colorFillTertiary:eu(r,.08),colorFillQuaternary:eu(r,.04),colorBgSolid:eu(r,.95),colorBgSolidHover:eu(r,1),colorBgSolidActive:eu(r,.9),colorBgElevated:ry(n,12),colorBgContainer:ry(n,8),colorBgLayout:ry(n,0),colorBgSpotlight:ry(n,26),colorBgBlur:eu(r,.04),colorBorder:ry(n,26),colorBorderSecondary:ry(n,19)}},wft=(e,t)=>{const n=Object.keys(gU).map(i=>{const o=tg(e[i],{theme:"dark"});return new Array(10).fill(1).reduce((a,s,l)=>(a[`${i}-${l+1}`]=o[l],a[`${i}${l+1}`]=o[l],a),{})}).reduce((i,o)=>(i=Object.assign(Object.assign({},i),o),i),{}),r=t??hE(e);return Object.assign(Object.assign(Object.assign({},r),n),Uge(e,{generateColorPalettes:Cft,generateNeutralColorPalettes:xft}))};function _ft(){const[e,t,n]=ta();return{theme:e,token:t,hashId:n}}const ol={defaultSeed:u_.token,useToken:_ft,defaultAlgorithm:hE,darkAlgorithm:wft,compactAlgorithm:Sft,getDesignToken:yft,defaultConfig:u_,_internalContext:vU};var Eft=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const{TimePicker:Tft,RangePicker:kft}=Pu,Oft=f.forwardRef((e,t)=>f.createElement(kft,Object.assign({},e,{picker:"time",mode:void 0,ref:t}))),Ev=f.forwardRef((e,t)=>{var{addon:n,renderExtraFooter:r,variant:i,bordered:o}=e,a=Eft(e,["addon","renderExtraFooter","variant","bordered"]);const[s]=Pp("timePicker",i,o),l=f.useMemo(()=>{if(r)return r;if(n)return n},[n,r]);return f.createElement(Tft,Object.assign({},a,{mode:void 0,ref:t,renderExtraFooter:l,variant:s}))}),TCe=vg(Ev,"popupAlign",void 0,"picker");Ev._InternalPanelDoNotUseOrYouWillBeFired=TCe;Ev.RangePicker=Oft;Ev._InternalPanelDoNotUseOrYouWillBeFired=TCe;const Pft=function(e){var t=f.useRef({valueLabels:new Map});return f.useMemo(function(){var n=t.current.valueLabels,r=new Map,i=e.map(function(o){var a=o.value,s=o.label,l=s??n.get(a);return r.set(a,l),X(X({},o),{},{label:l})});return t.current.valueLabels=r,[i]},[e])};var Mft=function(t,n,r,i){return f.useMemo(function(){var o=function(p){return p.map(function(m){var v=m.value;return v})},a=o(t),s=o(n),l=a.filter(function(h){return!i[h]}),c=a,u=s;if(r){var d=bu(a,!0,i);c=d.checkedKeys,u=d.halfCheckedKeys}return[Array.from(new Set([].concat(pt(l),pt(c)))),u]},[t,n,r,i])},Ift=function(t){return Array.isArray(t)?t:t!==void 0?[t]:[]},$ft=function(t){var n=t||{},r=n.label,i=n.value,o=n.children;return{_title:r?[r]:["title","label"],value:i||"value",key:i||"value",children:o||"children"}},dj=function(t){return!t||t.disabled||t.disableCheckbox||t.checkable===!1},Rft=function(t,n){var r=[],i=function o(a){a.forEach(function(s){var l=s[n.children];l&&(r.push(s[n.value]),o(l))})};return i(t),r},one=function(t){return t==null};const Aft=function(e,t){return f.useMemo(function(){var n=$E(e,{fieldNames:t,initWrapper:function(i){return X(X({},i),{},{valueEntities:new Map})},processEntity:function(i,o){var a=i.node[t.value];o.valueEntities.set(a,i)}});return n},[e,t])};var ZW=function(){return null},Nft=["children","value"];function kCe(e){return zo(e).map(function(t){if(!f.isValidElement(t)||!t.type)return null;var n=t,r=n.key,i=n.props,o=i.children,a=i.value,s=tn(i,Nft),l=X({key:r,value:a},s),c=kCe(o);return c.length&&(l.children=c),l}).filter(function(t){return t})}function fj(e){if(!e)return e;var t=X({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return fi(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}function Dft(e,t,n,r,i,o){var a=null,s=null;function l(){function c(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return u.map(function(p,m){var v="".concat(d,"-").concat(m),y=p[o.value],S=n.includes(y),b=c(p[o.children]||[],v,S),C=f.createElement(ZW,p,b.map(function(T){return T.node}));if(t===y&&(a=C),S){var _={pos:v,node:C,children:b};return h||s.push(_),_}return null}).filter(function(p){return p})}s||(s=[],c(r),s.sort(function(u,d){var h=u.node.props.value,p=d.node.props.value,m=n.indexOf(h),v=n.indexOf(p);return m-v}))}Object.defineProperty(e,"triggerNode",{get:function(){return fi(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),l(),a}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return fi(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),l(),i?s:s.map(function(u){var d=u.node;return d})}})}var Lft=function(t,n,r){var i=r.fieldNames,o=r.treeNodeFilterProp,a=r.filterTreeNode,s=i.children;return f.useMemo(function(){if(!n||a===!1)return t;var l=typeof a=="function"?a:function(u,d){return String(d[o]).toUpperCase().includes(n.toUpperCase())},c=function u(d){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return d.reduce(function(p,m){var v=m[s],y=h||l(n,fj(m)),S=u(v||[],y);return(y||S.length)&&p.push(X(X({},m),{},ae({isLeaf:void 0},s,S))),p},[])};return c(t)},[t,n,s,o,a])};function ane(e){var t=f.useRef();t.current=e;var n=f.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}function Fft(e,t){var n=t.id,r=t.pId,i=t.rootPId,o=new Map,a=[];return e.forEach(function(s){var l=s[n],c=X(X({},s),{},{key:s.key||l});o.set(l,c)}),o.forEach(function(s){var l=s[r],c=o.get(l);c?(c.children=c.children||[],c.children.push(s)):(l===i||i===null)&&a.push(s)}),a}function jft(e,t,n){return f.useMemo(function(){if(e){if(n){var r=X({id:"id",pId:"pId",rootPId:null},ln(n)==="object"?n:{});return Fft(e,r)}return e}return kCe(t)},[t,n,e])}var OCe=f.createContext(null),PCe=f.createContext(null),Bft={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Hft=function(t,n){var r=zU(),i=r.prefixCls,o=r.multiple,a=r.searchValue,s=r.toggleOpen,l=r.open,c=r.notFoundContent,u=f.useContext(PCe),d=u.virtual,h=u.listHeight,p=u.listItemHeight,m=u.listItemScrollOffset,v=u.treeData,y=u.fieldNames,S=u.onSelect,b=u.dropdownMatchSelectWidth,C=u.treeExpandAction,_=u.treeTitleRender,T=u.onPopupScroll,x=u.leftMaxCount,E=u.leafCountOnly,k=u.valueEntities,M=f.useContext(OCe),P=M.checkable,D=M.checkedKeys,R=M.halfCheckedKeys,A=M.treeExpandedKeys,H=M.treeDefaultExpandAll,F=M.treeDefaultExpandedKeys,z=M.onTreeExpand,W=M.treeIcon,q=M.showTreeIcon,Z=M.switcherIcon,N=M.treeLine,B=M.treeNodeFilterProp,V=M.loadData,G=M.treeLoadedKeys,ie=M.treeMotion,ce=M.onTreeLoad,fe=M.keyEntities,ee=f.useRef(),ne=dp(function(){return v},[l,v],function(Ze,rt){return rt[0]&&Ze[1]!==rt[1]}),ue=f.useMemo(function(){return P?{checked:D,halfChecked:R}:null},[P,D,R]);f.useEffect(function(){if(l&&!o&&D.length){var Ze;(Ze=ee.current)===null||Ze===void 0||Ze.scrollTo({key:D[0]})}},[l]);var ye=function(rt){rt.preventDefault()},me=function(rt,qt){var St=qt.node;P&&dj(St)||(S(St.key,{selected:!D.includes(St.key)}),o||s(!1))},pe=f.useState(F),he=Le(pe,2),_e=he[0],le=he[1],xe=f.useState(null),we=Le(xe,2),De=we[0],Fe=we[1],Ce=f.useMemo(function(){return A?pt(A):a?De:_e},[_e,De,A,a]),Te=function(rt){le(rt),Fe(rt),z&&z(rt)},ke=String(a).toLowerCase(),Pe=function(rt){return ke?String(rt[B]).toLowerCase().includes(ke):!1};f.useEffect(function(){a&&Fe(Rft(v,y))},[a]);var Ne=f.useState(function(){return new Map}),We=Le(Ne,2),Q=We[0],K=We[1];f.useEffect(function(){x&&K(new Map)},[x]);function J(Ze){var rt=Ze[y.value];if(!Q.has(rt)){var qt=k.get(rt),St=(qt.children||[]).length===0;if(St)Q.set(rt,!1);else{var Ot=qt.children.filter(function(Dt){return!Dt.node.disabled&&!Dt.node.disableCheckbox&&!D.includes(Dt.node[y.value])}),Bt=Ot.length;Q.set(rt,Bt>x)}}return Q.get(rt)}var be=ur(function(Ze){var rt=Ze[y.value];return D.includes(rt)||x===null?!1:x<=0?!0:E&&x?J(Ze):!1}),Oe=function Ze(rt){var qt=Rf(rt),St;try{for(qt.s();!(St=qt.n()).done;){var Ot=St.value;if(!(Ot.disabled||Ot.selectable===!1)){if(a){if(Pe(Ot))return Ot}else return Ot;if(Ot[y.children]){var Bt=Ze(Ot[y.children]);if(Bt)return Bt}}}}catch(Dt){qt.e(Dt)}finally{qt.f()}return null},Se=f.useState(null),Ke=Le(Se,2),tt=Ke[0],se=Ke[1],ze=fe[tt];f.useEffect(function(){if(l){var Ze=null,rt=function(){var St=Oe(ne);return St?St[y.value]:null};!o&&D.length&&!a?Ze=D[0]:Ze=rt(),se(Ze)}},[l,a]),f.useImperativeHandle(n,function(){var Ze;return{scrollTo:(Ze=ee.current)===null||Ze===void 0?void 0:Ze.scrollTo,onKeyDown:function(qt){var St,Ot=qt.which;switch(Ot){case Pt.UP:case Pt.DOWN:case Pt.LEFT:case Pt.RIGHT:(St=ee.current)===null||St===void 0||St.onKeyDown(qt);break;case Pt.ENTER:{if(ze){var Bt=be(ze.node),Dt=(ze==null?void 0:ze.node)||{},an=Dt.selectable,Vt=Dt.value,Kt=Dt.disabled;an!==!1&&!Kt&&!Bt&&me(null,{node:{key:tt},selected:!D.includes(Vt)})}break}case Pt.ESC:s(!1)}},onKeyUp:function(){}}});var Ye=dp(function(){return!a},[a,A||_e],function(Ze,rt){var qt=Le(Ze,1),St=qt[0],Ot=Le(rt,2),Bt=Ot[0],Dt=Ot[1];return St!==Bt&&!!(Bt||Dt)}),Ue=Ye?V:null;if(ne.length===0)return f.createElement("div",{role:"listbox",className:"".concat(i,"-empty"),onMouseDown:ye},c);var Je={fieldNames:y};return G&&(Je.loadedKeys=G),Ce&&(Je.expandedKeys=Ce),f.createElement("div",{onMouseDown:ye},ze&&l&&f.createElement("span",{style:Bft,"aria-live":"assertive"},ze.node.value),f.createElement(uCe.Provider,{value:{nodeDisabled:be}},f.createElement(SP,st({ref:ee,focusable:!1,prefixCls:"".concat(i,"-tree"),treeData:ne,height:h,itemHeight:p,itemScrollOffset:m,virtual:d!==!1&&b!==!1,multiple:o,icon:W,showIcon:q,switcherIcon:Z,showLine:N,loadData:Ue,motion:ie,activeKey:tt,checkable:P,checkStrictly:!0,checkedKeys:ue,selectedKeys:P?[]:D,defaultExpandAll:H,titleRender:_},Je,{onActiveChange:se,onSelect:me,onCheck:me,onExpand:Te,onLoad:ce,filterTreeNode:Pe,expandAction:C,onScroll:T}))))},zft=f.forwardRef(Hft),JW="SHOW_ALL",eV="SHOW_PARENT",xP="SHOW_CHILD";function sne(e,t,n,r){var i=new Set(e);return t===xP?e.filter(function(o){var a=n[o];return!a||!a.children||!a.children.some(function(s){var l=s.node;return i.has(l[r.value])})||!a.children.every(function(s){var l=s.node;return dj(l)||i.has(l[r.value])})}):t===eV?e.filter(function(o){var a=n[o],s=a?a.parent:null;return!s||dj(s.node)||!i.has(s.key)}):e}var Uft=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","maxCount","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"];function Wft(e){return!e||ln(e)!=="object"}var Vft=f.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=r===void 0?"rc-tree-select":r,o=e.value,a=e.defaultValue,s=e.onChange,l=e.onSelect,c=e.onDeselect,u=e.searchValue,d=e.inputValue,h=e.onSearch,p=e.autoClearSearchValue,m=p===void 0?!0:p,v=e.filterTreeNode,y=e.treeNodeFilterProp,S=y===void 0?"value":y,b=e.showCheckedStrategy,C=e.treeNodeLabelProp,_=e.multiple,T=e.treeCheckable,x=e.treeCheckStrictly,E=e.labelInValue,k=e.maxCount,M=e.fieldNames,P=e.treeDataSimpleMode,D=e.treeData,R=e.children,A=e.loadData,H=e.treeLoadedKeys,F=e.onTreeLoad,z=e.treeDefaultExpandAll,W=e.treeExpandedKeys,q=e.treeDefaultExpandedKeys,Z=e.onTreeExpand,N=e.treeExpandAction,B=e.virtual,V=e.listHeight,G=V===void 0?200:V,ie=e.listItemHeight,ce=ie===void 0?20:ie,fe=e.listItemScrollOffset,ee=fe===void 0?0:fe,ne=e.onDropdownVisibleChange,ue=e.dropdownMatchSelectWidth,ye=ue===void 0?!0:ue,me=e.treeLine,pe=e.treeIcon,he=e.showTreeIcon,_e=e.switcherIcon,le=e.treeMotion,xe=e.treeTitleRender,we=e.onPopupScroll,De=tn(e,Uft),Fe=qU(n),Ce=T&&!x,Te=T||x,ke=x||E,Pe=Te||_,Ne=er(a,{value:o}),We=Le(Ne,2),Q=We[0],K=We[1],J=f.useMemo(function(){return T?b||xP:JW},[b,T]),be=f.useMemo(function(){return $ft(M)},[JSON.stringify(M)]),Oe=er("",{value:u!==void 0?u:d,postState:function(Ht){return Ht||""}}),Se=Le(Oe,2),Ke=Se[0],tt=Se[1],se=function(Ht){tt(Ht),h==null||h(Ht)},ze=jft(D,R,P),Ye=Aft(ze,be),Ue=Ye.keyEntities,Je=Ye.valueEntities,Ze=f.useCallback(function(nn){var Ht=[],Tt=[];return nn.forEach(function(gt){Je.has(gt)?Tt.push(gt):Ht.push(gt)}),{missingRawValues:Ht,existRawValues:Tt}},[Je]),rt=Lft(ze,Ke,{fieldNames:be,treeNodeFilterProp:S,filterTreeNode:v}),qt=f.useCallback(function(nn){if(nn){if(C)return nn[C];for(var Ht=be._title,Tt=0;Tt<Ht.length;Tt+=1){var gt=nn[Ht[Tt]];if(gt!==void 0)return gt}}},[be,C]),St=f.useCallback(function(nn){var Ht=Ift(nn);return Ht.map(function(Tt){return Wft(Tt)?{value:Tt}:Tt})},[]),Ot=f.useCallback(function(nn){var Ht=St(nn);return Ht.map(function(Tt){var gt=Tt.label,Ve=Tt.value,Yt=Tt.halfChecked,mt,Mt=Je.get(Ve);if(Mt){var zt;gt=xe?xe(Mt.node):(zt=gt)!==null&&zt!==void 0?zt:qt(Mt.node),mt=Mt.node.disabled}else if(gt===void 0){var Dn=St(Q).find(function(Qn){return Qn.value===Ve});gt=Dn.label}return{label:gt,value:Ve,halfChecked:Yt,disabled:mt}})},[Je,qt,St,Q]),Bt=f.useMemo(function(){return St(Q===null?[]:Q)},[St,Q]),Dt=f.useMemo(function(){var nn=[],Ht=[];return Bt.forEach(function(Tt){Tt.halfChecked?Ht.push(Tt):nn.push(Tt)}),[nn,Ht]},[Bt]),an=Le(Dt,2),Vt=an[0],Kt=an[1],Qt=f.useMemo(function(){return Vt.map(function(nn){return nn.value})},[Vt]),et=Mft(Vt,Kt,Ce,Ue),ot=Le(et,2),Qe=ot[0],ut=ot[1],Nt=f.useMemo(function(){var nn=sne(Qe,J,Ue,be),Ht=nn.map(function(Yt){var mt,Mt;return(mt=(Mt=Ue[Yt])===null||Mt===void 0||(Mt=Mt.node)===null||Mt===void 0?void 0:Mt[be.value])!==null&&mt!==void 0?mt:Yt}),Tt=Ht.map(function(Yt){var mt=Vt.find(function(zt){return zt.value===Yt}),Mt=E?mt==null?void 0:mt.label:xe==null?void 0:xe(mt);return{value:Yt,label:Mt}}),gt=Ot(Tt),Ve=gt[0];return!Pe&&Ve&&one(Ve.value)&&one(Ve.label)?[]:gt.map(function(Yt){var mt;return X(X({},Yt),{},{label:(mt=Yt.label)!==null&&mt!==void 0?mt:Yt.value})})},[be,Pe,Qe,Vt,Ot,J,Ue]),Lt=Pft(Nt),Zt=Le(Lt,1),Wt=Zt[0],At=f.useMemo(function(){return Pe&&(J==="SHOW_CHILD"||x||!T)?k:null},[k,Pe,x,J,T]),$t=ane(function(nn,Ht,Tt){var gt=sne(nn,J,Ue,be);if(!(At&>.length>At)){var Ve=Ot(nn);if(K(Ve),m&&tt(""),s){var Yt=nn;Ce&&(Yt=gt.map(function(Ge){var ft=Je.get(Ge);return ft?ft.node[be.value]:Ge}));var mt=Ht||{triggerValue:void 0,selected:void 0},Mt=mt.triggerValue,zt=mt.selected,Dn=Yt;if(x){var Qn=Kt.filter(function(Ge){return!Yt.includes(Ge.value)});Dn=[].concat(pt(Dn),pt(Qn))}var O=Ot(Dn),j={preValue:Vt,triggerValue:Mt},oe=!0;(x||Tt==="selection"&&!zt)&&(oe=!1),Dft(j,Mt,nn,ze,oe,be),Te?j.checked=zt:j.selected=zt;var Ae=ke?O:O.map(function(Ge){return Ge.value});s(Pe?Ae:Ae[0],ke?null:O.map(function(Ge){return Ge.label}),j)}}}),Gt=f.useCallback(function(nn,Ht){var Tt,gt=Ht.selected,Ve=Ht.source,Yt=Ue[nn],mt=Yt==null?void 0:Yt.node,Mt=(Tt=mt==null?void 0:mt[be.value])!==null&&Tt!==void 0?Tt:nn;if(!Pe)$t([Mt],{selected:!0,triggerValue:Mt},"option");else{var zt=gt?[].concat(pt(Qt),[Mt]):Qe.filter(function(ft){return ft!==Mt});if(Ce){var Dn=Ze(zt),Qn=Dn.missingRawValues,O=Dn.existRawValues,j=O.map(function(ft){return Je.get(ft).key}),oe;if(gt){var Ae=bu(j,!0,Ue);oe=Ae.checkedKeys}else{var Ge=bu(j,{checked:!1,halfCheckedKeys:ut},Ue);oe=Ge.checkedKeys}zt=[].concat(pt(Qn),pt(oe.map(function(ft){return Ue[ft].node[be.value]})))}$t(zt,{selected:gt,triggerValue:Mt},Ve||"option")}gt||!Pe?l==null||l(Mt,fj(mt)):c==null||c(Mt,fj(mt))},[Ze,Je,Ue,be,Pe,Qt,$t,Ce,l,c,Qe,ut,k]),Ft=f.useCallback(function(nn){if(ne){var Ht={};Object.defineProperty(Ht,"documentClickClose",{get:function(){return fi(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),ne(nn,Ht)}},[ne]),cn=ane(function(nn,Ht){var Tt=nn.map(function(gt){return gt.value});if(Ht.type==="clear"){$t(Tt,{},"selection");return}Ht.values.length&&Gt(Ht.values[0].value,{selected:!1,source:"selection"})}),_t=f.useMemo(function(){return{virtual:B,dropdownMatchSelectWidth:ye,listHeight:G,listItemHeight:ce,listItemScrollOffset:ee,treeData:rt,fieldNames:be,onSelect:Gt,treeExpandAction:N,treeTitleRender:xe,onPopupScroll:we,leftMaxCount:k===void 0?null:k-Wt.length,leafCountOnly:J==="SHOW_CHILD"&&!x&&!!T,valueEntities:Je}},[B,ye,G,ce,ee,rt,be,Gt,N,xe,we,k,Wt.length,J,x,T,Je]),jt=f.useMemo(function(){return{checkable:Te,loadData:A,treeLoadedKeys:H,onTreeLoad:F,checkedKeys:Qe,halfCheckedKeys:ut,treeDefaultExpandAll:z,treeExpandedKeys:W,treeDefaultExpandedKeys:q,onTreeExpand:Z,treeIcon:pe,treeMotion:le,showTreeIcon:he,switcherIcon:_e,treeLine:me,treeNodeFilterProp:S,keyEntities:Ue}},[Te,A,H,F,Qe,ut,z,W,q,Z,pe,le,he,_e,me,S,Ue]);return f.createElement(PCe.Provider,{value:_t},f.createElement(OCe.Provider,{value:jt},f.createElement(WU,st({ref:t},De,{id:Fe,prefixCls:i,mode:Pe?"multiple":void 0,displayValues:Wt,onDisplayValuesChange:cn,searchValue:Ke,onSearch:se,OptionList:zft,emptyOptions:!ze.length,onDropdownVisibleChange:Ft,dropdownMatchSelectWidth:ye}))))}),HE=Vft;HE.TreeNode=ZW;HE.SHOW_ALL=JW;HE.SHOW_PARENT=eV;HE.SHOW_CHILD=xP;const Kft=e=>{const{componentCls:t,treePrefixCls:n,colorBgElevated:r}=e,i=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${je(e.paddingXS)} ${je(e.calc(e.paddingXS).div(2).equal())}`},pCe(n,dr(e,{colorBgContainer:r})),{[i]:{borderRadius:0,[`${i}-list-holder-inner`]:{alignItems:"stretch",[`${i}-treenode`]:{[`${i}-node-content-wrapper`]:{flex:"auto"}}}}},sP(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${i}-switcher${i}-switcher_close`]:{[`${i}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function qft(e,t,n){return Tr("TreeSelect",r=>{const i=dr(r,{treePrefixCls:t});return[Kft(i)]},mCe)(e,n)}var Gft=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Yft=(e,t)=>{var n;const{prefixCls:r,size:i,disabled:o,bordered:a=!0,className:s,rootClassName:l,treeCheckable:c,multiple:u,listHeight:d=256,listItemHeight:h,placement:p,notFoundContent:m,switcherIcon:v,treeLine:y,getPopupContainer:S,popupClassName:b,dropdownClassName:C,treeIcon:_=!1,transitionName:T,choiceTransitionName:x="",status:E,treeExpandAction:k,builtinPlacements:M,dropdownMatchSelectWidth:P,popupMatchSelectWidth:D,allowClear:R,variant:A,dropdownStyle:H,tagRender:F,maxCount:z,showCheckedStrategy:W,treeCheckStrictly:q}=e,Z=Gft(e,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear","variant","dropdownStyle","tagRender","maxCount","showCheckedStrategy","treeCheckStrictly"]),{getPopupContainer:N,getPrefixCls:B,renderEmpty:V,direction:G,virtual:ie,popupMatchSelectWidth:ce,popupOverflow:fe}=f.useContext(hn),[,ee]=ta(),ne=h??(ee==null?void 0:ee.controlHeightSM)+(ee==null?void 0:ee.paddingXXS),ue=B(),ye=B("select",r),me=B("select-tree",r),pe=B("tree-select",r),{compactSize:he,compactItemClassnames:_e}=Qd(ye,G),le=_i(ye),xe=_i(pe),[we,De,Fe]=XU(ye,le),[Ce]=qft(pe,me,xe),[Te,ke]=Pp("treeSelect",A,a),Pe=Re(b||C,`${pe}-dropdown`,{[`${pe}-dropdown-rtl`]:G==="rtl"},l,Fe,le,xe,De),Ne=!!(c||u),We=f.useMemo(()=>{if(!(z&&(W==="SHOW_ALL"&&!q||W==="SHOW_PARENT")))return z},[z,W,q]),Q=QU(e.suffixIcon,e.showArrow),K=(n=D??P)!==null&&n!==void 0?n:ce,{status:J,hasFeedback:be,isFormItemInput:Oe,feedbackIcon:Se}=f.useContext(ha),Ke=Op(J,E),{suffixIcon:tt,removeIcon:se,clearIcon:ze}=WO(Object.assign(Object.assign({},Z),{multiple:Ne,showSuffixIcon:Q,hasFeedback:be,feedbackIcon:Se,prefixCls:ye,componentName:"TreeSelect"})),Ye=R===!0?{clearIcon:ze}:R;let Ue;m!==void 0?Ue=m:Ue=(V==null?void 0:V("Select"))||f.createElement(YS,{componentName:"Select"});const Je=Pr(Z,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),Ze=f.useMemo(()=>p!==void 0?p:G==="rtl"?"bottomRight":"bottomLeft",[p,G]),rt=$o(Vt=>{var Kt;return(Kt=i??he)!==null&&Kt!==void 0?Kt:Vt}),qt=f.useContext(Jo),St=o??qt,Ot=Re(!r&&pe,{[`${ye}-lg`]:rt==="large",[`${ye}-sm`]:rt==="small",[`${ye}-rtl`]:G==="rtl",[`${ye}-${Te}`]:ke,[`${ye}-in-form-item`]:Oe},zd(ye,Ke,be),_e,s,l,Fe,le,xe,De),Bt=Vt=>f.createElement(gCe,{prefixCls:me,switcherIcon:v,treeNodeProps:Vt,showLine:y}),[Dt]=Du("SelectLike",H==null?void 0:H.zIndex),an=f.createElement(HE,Object.assign({virtual:ie,disabled:St},Je,{dropdownMatchSelectWidth:K,builtinPlacements:YU(M,fe),ref:t,prefixCls:ye,className:Ot,listHeight:d,listItemHeight:ne,treeCheckable:c&&f.createElement("span",{className:`${ye}-tree-checkbox-inner`}),treeLine:!!y,suffixIcon:tt,multiple:Ne,placement:Ze,removeIcon:se,allowClear:Ye,switcherIcon:Bt,showTreeIcon:_,notFoundContent:Ue,getPopupContainer:S||N,treeMotion:null,dropdownClassName:Pe,dropdownStyle:Object.assign(Object.assign({},H),{zIndex:Dt}),choiceTransitionName:os(ue,"",x),transitionName:os(ue,"slide-up",T),treeExpandAction:k,tagRender:Ne?F:void 0,maxCount:We,showCheckedStrategy:W,treeCheckStrictly:q}));return we(Ce(an))},Xft=f.forwardRef(Yft),e0=Xft,Qft=vg(e0,"dropdownAlign",e=>Pr(e,["visible"]));e0.TreeNode=ZW;e0.SHOW_ALL=JW;e0.SHOW_PARENT=eV;e0.SHOW_CHILD=xP;e0._InternalPanelDoNotUseOrYouWillBeFired=Qft;const Zft=(e,t,n,r)=>{const{titleMarginBottom:i,fontWeightStrong:o}=r;return{marginBottom:i,color:n,fontWeight:o,fontSize:e,lineHeight:t}},Jft=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
|
||
h${r}&,
|
||
div&-h${r},
|
||
div&-h${r} > textarea,
|
||
h${r}
|
||
`]=Zft(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},eht=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},CU(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},tht=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:l_[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),nht=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:`calc(1em - ${je(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},rht=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),iht=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),oht=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},Jft(e)),{[`
|
||
& + h1${t},
|
||
& + h2${t},
|
||
& + h3${t},
|
||
& + h4${t},
|
||
& + h5${t}
|
||
`]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),tht(e)),eht(e)),{[`
|
||
${t}-expand,
|
||
${t}-collapse,
|
||
${t}-edit,
|
||
${t}-copy
|
||
`]:Object.assign(Object.assign({},CU(e)),{marginInlineStart:e.marginXXS})}),nht(e)),rht(e)),iht()),{"&-rtl":{direction:"rtl"}})}},aht=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),MCe=Tr("Typography",e=>[oht(e)],aht),sht=e=>{const{prefixCls:t,"aria-label":n,className:r,style:i,direction:o,maxLength:a,autoSize:s=!0,value:l,onSave:c,onCancel:u,onEnd:d,component:h,enterIcon:p=f.createElement(mst,null)}=e,m=f.useRef(null),v=f.useRef(!1),y=f.useRef(null),[S,b]=f.useState(l);f.useEffect(()=>{b(l)},[l]),f.useEffect(()=>{var H;if(!((H=m.current)===null||H===void 0)&&H.resizableTextArea){const{textArea:F}=m.current.resizableTextArea;F.focus();const{length:z}=F.value;F.setSelectionRange(z,z)}},[]);const C=H=>{let{target:F}=H;b(F.value.replace(/[\n\r]/g,""))},_=()=>{v.current=!0},T=()=>{v.current=!1},x=H=>{let{keyCode:F}=H;v.current||(y.current=F)},E=()=>{c(S.trim())},k=H=>{let{keyCode:F,ctrlKey:z,altKey:W,metaKey:q,shiftKey:Z}=H;y.current!==F||v.current||z||W||q||Z||(F===Pt.ENTER?(E(),d==null||d()):F===Pt.ESC&&u())},M=()=>{E()},[P,D,R]=MCe(t),A=Re(t,`${t}-edit-content`,{[`${t}-rtl`]:o==="rtl",[`${t}-${h}`]:!!h},r,D,R);return P(f.createElement("div",{className:A,style:i},f.createElement(kbe,{ref:m,maxLength:a,value:S,onChange:C,onKeyDown:x,onKeyUp:k,onCompositionStart:_,onCompositionEnd:T,onBlur:M,"aria-label":n,rows:1,autoSize:s}),p!==null?Io(p,{className:`${t}-edit-content-confirm`}):null))};var lht=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(i){e.addRange(i)}),t&&t.focus()}},cht=lht,lne={"text/plain":"Text","text/html":"Url",default:"Text"},uht="Copy to clipboard: #{key}, Enter";function dht(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function fht(e,t){var n,r,i,o,a,s,l=!1;t||(t={}),n=t.debug||!1;try{i=cht(),o=document.createRange(),a=document.getSelection(),s=document.createElement("span"),s.textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",function(u){if(u.stopPropagation(),t.format)if(u.preventDefault(),typeof u.clipboardData>"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var d=lne[t.format]||lne.default;window.clipboardData.setData(d,e)}else u.clipboardData.clearData(),u.clipboardData.setData(t.format,e);t.onCopy&&(u.preventDefault(),t.onCopy(u.clipboardData))}),document.body.appendChild(s),o.selectNodeContents(s),a.addRange(o);var c=document.execCommand("copy");if(!c)throw new Error("copy command was unsuccessful");l=!0}catch(u){n&&console.error("unable to copy using execCommand: ",u),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(d){n&&console.error("unable to copy using clipboardData: ",d),n&&console.error("falling back to prompt"),r=dht("message"in t?t.message:uht),window.prompt(r,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(o):a.removeAllRanges()),s&&document.body.removeChild(s),i()}return l}var hht=fht;const pht=vi(hht);var mht=function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(u){try{c(r.next(u))}catch(d){a(d)}}function l(u){try{c(r.throw(u))}catch(d){a(d)}}function c(u){u.done?o(u.value):i(u.value).then(s,l)}c((r=r.apply(e,t||[])).next())})};const ght=e=>{let{copyConfig:t,children:n}=e;const[r,i]=f.useState(!1),[o,a]=f.useState(!1),s=f.useRef(null),l=()=>{s.current&&clearTimeout(s.current)},c={};t.format&&(c.format=t.format),f.useEffect(()=>l,[]);const u=ur(d=>mht(void 0,void 0,void 0,function*(){var h;d==null||d.preventDefault(),d==null||d.stopPropagation(),a(!0);try{const p=typeof t.text=="function"?yield t.text():t.text;pht(p||Hot(n,!0).join("")||"",c),a(!1),i(!0),l(),s.current=setTimeout(()=>{i(!1)},3e3),(h=t.onCopy)===null||h===void 0||h.call(t,d)}catch(p){throw a(!1),p}}));return{copied:r,copyLoading:o,onClick:u}};function ZR(e,t){return f.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const vht=e=>{const t=f.useRef(void 0);return f.useEffect(()=>{t.current=e}),t.current},yht=(e,t,n)=>f.useMemo(()=>e===!0?{title:t??n}:f.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var bht=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const ICe=f.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:i,rootClassName:o,setContentRef:a,children:s,direction:l,style:c}=e,u=bht(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:d,direction:h,typography:p}=f.useContext(hn),m=l??h,v=a?ga(t,a):t,y=d("typography",n),[S,b,C]=MCe(y),_=Re(y,p==null?void 0:p.className,{[`${y}-rtl`]:m==="rtl"},i,o,b,C),T=Object.assign(Object.assign({},p==null?void 0:p.style),c);return S(f.createElement(r,Object.assign({className:_,style:T,ref:v},u),s))});function cne(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function JR(e,t,n){return e===!0||e===void 0?t:e||n&&t}function Sht(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}const tV=e=>["string","number"].includes(typeof e),Cht=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:i,tooltips:o,icon:a,tabIndex:s,onCopy:l,loading:c}=e;const u=cne(o),d=cne(a),{copied:h,copy:p}=r??{},m=n?h:p,v=JR(u[n?1:0],m),y=typeof v=="string"?v:m;return f.createElement(ea,{title:v},f.createElement("button",{type:"button",className:Re(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:i}),onClick:l,"aria-label":y,tabIndex:s},n?JR(d[1],f.createElement(ep,null),!0):JR(d[0],c?f.createElement(jd,null):f.createElement(nst,null),!0)))},t5=f.forwardRef((e,t)=>{let{style:n,children:r}=e;const i=f.useRef(null);return f.useImperativeHandle(t,()=>({isExceed:()=>{const o=i.current;return o.scrollHeight>o.clientHeight},getHeight:()=>i.current.clientHeight})),f.createElement("span",{"aria-hidden":!0,ref:i,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},n)},r)}),xht=e=>e.reduce((t,n)=>t+(tV(n)?String(n).length:1),0);function une(e,t){let n=0;const r=[];for(let i=0;i<e.length;i+=1){if(n===t)return r;const o=e[i],s=tV(o)?String(o).length:1,l=n+s;if(l>t){const c=t-n;return r.push(String(o).slice(0,c)),r}r.push(o),n=l}return e}const eA=0,tA=1,nA=2,rA=3,dne=4,n5={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function wht(e){const{enableMeasure:t,width:n,text:r,children:i,rows:o,expanded:a,miscDeps:s,onEllipsis:l}=e,c=f.useMemo(()=>zo(r),[r]),u=f.useMemo(()=>xht(c),[r]),d=f.useMemo(()=>i(c,!1),[r]),[h,p]=f.useState(null),m=f.useRef(null),v=f.useRef(null),y=f.useRef(null),S=f.useRef(null),b=f.useRef(null),[C,_]=f.useState(!1),[T,x]=f.useState(eA),[E,k]=f.useState(0),[M,P]=f.useState(null);Er(()=>{x(t&&n&&u?tA:eA)},[n,r,o,t,c]),Er(()=>{var H,F,z,W;if(T===tA){x(nA);const q=v.current&&getComputedStyle(v.current).whiteSpace;P(q)}else if(T===nA){const q=!!(!((H=y.current)===null||H===void 0)&&H.isExceed());x(q?rA:dne),p(q?[0,u]:null),_(q);const Z=((F=y.current)===null||F===void 0?void 0:F.getHeight())||0,N=o===1?0:((z=S.current)===null||z===void 0?void 0:z.getHeight())||0,B=((W=b.current)===null||W===void 0?void 0:W.getHeight())||0,V=Math.max(Z,N+B);k(V+1),l(q)}},[T]);const D=h?Math.ceil((h[0]+h[1])/2):0;Er(()=>{var H;const[F,z]=h||[0,0];if(F!==z){const q=(((H=m.current)===null||H===void 0?void 0:H.getHeight())||0)>E;let Z=D;z-F===1&&(Z=q?F:z),p(q?[F,Z]:[Z,z])}},[h,D]);const R=f.useMemo(()=>{if(!t)return i(c,!1);if(T!==rA||!h||h[0]!==h[1]){const H=i(c,!1);return[dne,eA].includes(T)?H:f.createElement("span",{style:Object.assign(Object.assign({},n5),{WebkitLineClamp:o})},H)}return i(a?c:une(c,h[0]),C)},[a,T,h,c].concat(pt(s))),A={width:n,margin:0,padding:0,whiteSpace:M==="nowrap"?"normal":"inherit"};return f.createElement(f.Fragment,null,R,T===nA&&f.createElement(f.Fragment,null,f.createElement(t5,{style:Object.assign(Object.assign(Object.assign({},A),n5),{WebkitLineClamp:o}),ref:y},d),f.createElement(t5,{style:Object.assign(Object.assign(Object.assign({},A),n5),{WebkitLineClamp:o-1}),ref:S},d),f.createElement(t5,{style:Object.assign(Object.assign(Object.assign({},A),n5),{WebkitLineClamp:1}),ref:b},i([],!0))),T===rA&&h&&h[0]!==h[1]&&f.createElement(t5,{style:Object.assign(Object.assign({},A),{top:400}),ref:m},i(une(c,D),!0)),T===tA&&f.createElement("span",{style:{whiteSpace:"inherit"},ref:v}))}const _ht=e=>{let{enableEllipsis:t,isEllipsis:n,children:r,tooltipProps:i}=e;return!(i!=null&&i.title)||!t?r:f.createElement(ea,Object.assign({open:n?void 0:!1},i),r)};var Eht=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Tht(e,t){let{mark:n,code:r,underline:i,delete:o,strong:a,keyboard:s,italic:l}=e,c=t;function u(d,h){h&&(c=f.createElement(d,{},c))}return u("strong",a),u("u",i),u("del",o),u("code",r),u("mark",n),u("kbd",s),u("i",l),c}const kht="...",wP=f.forwardRef((e,t)=>{var n;const{prefixCls:r,className:i,style:o,type:a,disabled:s,children:l,ellipsis:c,editable:u,copyable:d,component:h,title:p}=e,m=Eht(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:v,direction:y}=f.useContext(hn),[S]=ks("Text"),b=f.useRef(null),C=f.useRef(null),_=v("typography",r),T=Pr(m,["mark","code","delete","underline","strong","keyboard","italic"]),[x,E]=ZR(u),[k,M]=er(!1,{value:E.editing}),{triggerType:P=["icon"]}=E,D=Ye=>{var Ue;Ye&&((Ue=E.onStart)===null||Ue===void 0||Ue.call(E)),M(Ye)},R=vht(k);Er(()=>{var Ye;!k&&R&&((Ye=C.current)===null||Ye===void 0||Ye.focus())},[k]);const A=Ye=>{Ye==null||Ye.preventDefault(),D(!0)},H=Ye=>{var Ue;(Ue=E.onChange)===null||Ue===void 0||Ue.call(E,Ye),D(!1)},F=()=>{var Ye;(Ye=E.onCancel)===null||Ye===void 0||Ye.call(E),D(!1)},[z,W]=ZR(d),{copied:q,copyLoading:Z,onClick:N}=ght({copyConfig:W,children:l}),[B,V]=f.useState(!1),[G,ie]=f.useState(!1),[ce,fe]=f.useState(!1),[ee,ne]=f.useState(!1),[ue,ye]=f.useState(!0),[me,pe]=ZR(c,{expandable:!1,symbol:Ye=>Ye?S==null?void 0:S.collapse:S==null?void 0:S.expand}),[he,_e]=er(pe.defaultExpanded||!1,{value:pe.expanded}),le=me&&(!he||pe.expandable==="collapsible"),{rows:xe=1}=pe,we=f.useMemo(()=>le&&(pe.suffix!==void 0||pe.onEllipsis||pe.expandable||x||z),[le,pe,x,z]);Er(()=>{me&&!we&&(V(PF("webkitLineClamp")),ie(PF("textOverflow")))},[we,me]);const[De,Fe]=f.useState(le),Ce=f.useMemo(()=>we?!1:xe===1?G:B,[we,G,B]);Er(()=>{Fe(Ce&&le)},[Ce,le]);const Te=le&&(De?ee:ce),ke=le&&xe===1&&De,Pe=le&&xe>1&&De,Ne=(Ye,Ue)=>{var Je;_e(Ue.expanded),(Je=pe.onExpand)===null||Je===void 0||Je.call(pe,Ye,Ue)},[We,Q]=f.useState(0),K=Ye=>{let{offsetWidth:Ue}=Ye;Q(Ue)},J=Ye=>{var Ue;fe(Ye),ce!==Ye&&((Ue=pe.onEllipsis)===null||Ue===void 0||Ue.call(pe,Ye))};f.useEffect(()=>{const Ye=b.current;if(me&&De&&Ye){const Ue=Sht(Ye);ee!==Ue&&ne(Ue)}},[me,De,l,Pe,ue,We]),f.useEffect(()=>{const Ye=b.current;if(typeof IntersectionObserver>"u"||!Ye||!De||!le)return;const Ue=new IntersectionObserver(()=>{ye(!!Ye.offsetParent)});return Ue.observe(Ye),()=>{Ue.disconnect()}},[De,le]);const be=yht(pe.tooltip,E.text,l),Oe=f.useMemo(()=>{if(!(!me||De))return[E.text,l,p,be.title].find(tV)},[me,De,p,be.title,Te]);if(k)return f.createElement(sht,{value:(n=E.text)!==null&&n!==void 0?n:typeof l=="string"?l:"",onSave:H,onCancel:F,onEnd:E.onEnd,prefixCls:_,className:i,style:o,direction:y,component:h,maxLength:E.maxLength,autoSize:E.autoSize,enterIcon:E.enterIcon});const Se=()=>{const{expandable:Ye,symbol:Ue}=pe;return Ye?f.createElement("button",{type:"button",key:"expand",className:`${_}-${he?"collapse":"expand"}`,onClick:Je=>Ne(Je,{expanded:!he}),"aria-label":he?S.collapse:S==null?void 0:S.expand},typeof Ue=="function"?Ue(he):Ue):null},Ke=()=>{if(!x)return;const{icon:Ye,tooltip:Ue,tabIndex:Je}=E,Ze=zo(Ue)[0]||(S==null?void 0:S.edit),rt=typeof Ze=="string"?Ze:"";return P.includes("icon")?f.createElement(ea,{key:"edit",title:Ue===!1?"":Ze},f.createElement("button",{type:"button",ref:C,className:`${_}-edit`,onClick:A,"aria-label":rt,tabIndex:Je},Ye||f.createElement(v_,{role:"button"}))):null},tt=()=>z?f.createElement(Cht,Object.assign({key:"copy"},W,{prefixCls:_,copied:q,locale:S,onCopy:N,loading:Z,iconOnly:l==null})):null,se=Ye=>[Ye&&Se(),Ke(),tt()],ze=Ye=>[Ye&&!he&&f.createElement("span",{"aria-hidden":!0,key:"ellipsis"},kht),pe.suffix,se(Ye)];return f.createElement(Wa,{onResize:K,disabled:!le},Ye=>f.createElement(_ht,{tooltipProps:be,enableEllipsis:le,isEllipsis:Te},f.createElement(ICe,Object.assign({className:Re({[`${_}-${a}`]:a,[`${_}-disabled`]:s,[`${_}-ellipsis`]:me,[`${_}-ellipsis-single-line`]:ke,[`${_}-ellipsis-multiple-line`]:Pe},i),prefixCls:r,style:Object.assign(Object.assign({},o),{WebkitLineClamp:Pe?xe:void 0}),component:h,ref:ga(Ye,b,t),direction:y,onClick:P.includes("text")?A:void 0,"aria-label":Oe==null?void 0:Oe.toString(),title:p},T),f.createElement(wht,{enableMeasure:le&&!De,text:l,rows:xe,width:We,onEllipsis:J,expanded:he,miscDeps:[q,he,Z,x,z,S]},(Ue,Je)=>Tht(e,f.createElement(f.Fragment,null,Ue.length>0&&Je&&!he&&Oe?f.createElement("span",{key:"show-content","aria-hidden":!0},Ue):Ue,ze(Je)))))))});var Oht=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Pht=f.forwardRef((e,t)=>{var{ellipsis:n,rel:r}=e,i=Oht(e,["ellipsis","rel"]);const o=Object.assign(Object.assign({},i),{rel:r===void 0&&i.target==="_blank"?"noopener noreferrer":r});return delete o.navigate,f.createElement(wP,Object.assign({},o,{ref:t,ellipsis:!!n,component:"a"}))}),Mht=f.forwardRef((e,t)=>f.createElement(wP,Object.assign({ref:t},e,{component:"div"})));var Iht=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const $ht=(e,t)=>{var{ellipsis:n}=e,r=Iht(e,["ellipsis"]);const i=f.useMemo(()=>n&&typeof n=="object"?Pr(n,["expandable","rows"]):n,[n]);return f.createElement(wP,Object.assign({ref:t},r,{ellipsis:i,component:"span"}))},Rht=f.forwardRef($ht);var Aht=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Nht=[1,2,3,4,5],Dht=f.forwardRef((e,t)=>{const{level:n=1}=e,r=Aht(e,["level"]),i=Nht.includes(n)?`h${n}`:"h1";return f.createElement(wP,Object.assign({ref:t},r,{component:i}))}),zE=ICe;zE.Text=Rht;zE.Link=Pht;zE.Title=Dht;zE.Paragraph=Mht;const iA=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",i=e.type||"",o=i.replace(/\/.*$/,"");return n.some(function(a){var s=a.trim();if(/^\*(\/\*)?$/.test(a))return!0;if(s.charAt(0)==="."){var l=r.toLowerCase(),c=s.toLowerCase(),u=[c];return(c===".jpg"||c===".jpeg")&&(u=[".jpg",".jpeg"]),u.some(function(d){return l.endsWith(d)})}return/\/\*$/.test(s)?o===s.replace(/\/.*$/,""):i===s?!0:/^\w+$/.test(s)?(fi(!1,"Upload takes an invalidate 'accept' type '".concat(s,"'.Skip for check.")),!0):!1})}return!0};function Lht(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function fne(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function Fht(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(o){o.total>0&&(o.percent=o.loaded/o.total*100),e.onProgress(o)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(i){var o=e.data[i];if(Array.isArray(o)){o.forEach(function(a){n.append("".concat(i,"[]"),a)});return}n.append(i,o)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(o){e.onError(o)},t.onload=function(){return t.status<200||t.status>=300?e.onError(Lht(e,t),fne(t)):e.onSuccess(fne(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return r["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(function(i){r[i]!==null&&t.setRequestHeader(i,r[i])}),t.send(n),{abort:function(){t.abort()}}}var jht=function(){var e=Zo(Hr().mark(function t(n,r){var i,o,a,s,l,c,u,d;return Hr().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:c=function(){return c=Zo(Hr().mark(function v(y){return Hr().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.abrupt("return",new Promise(function(C){y.file(function(_){r(_)?(y.fullPath&&!_.webkitRelativePath&&(Object.defineProperties(_,{webkitRelativePath:{writable:!0}}),_.webkitRelativePath=y.fullPath.replace(/^\//,""),Object.defineProperties(_,{webkitRelativePath:{writable:!1}})),C(_)):C(null)})}));case 1:case"end":return b.stop()}},v)})),c.apply(this,arguments)},l=function(v){return c.apply(this,arguments)},s=function(){return s=Zo(Hr().mark(function v(y){var S,b,C,_,T;return Hr().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:S=y.createReader(),b=[];case 2:return E.next=5,new Promise(function(k){S.readEntries(k,function(){return k([])})});case 5:if(C=E.sent,_=C.length,_){E.next=9;break}return E.abrupt("break",12);case 9:for(T=0;T<_;T++)b.push(C[T]);E.next=2;break;case 12:return E.abrupt("return",b);case 13:case"end":return E.stop()}},v)})),s.apply(this,arguments)},a=function(v){return s.apply(this,arguments)},i=[],o=[],n.forEach(function(m){return o.push(m.webkitGetAsEntry())}),u=function(){var m=Zo(Hr().mark(function v(y,S){var b,C;return Hr().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(y){T.next=2;break}return T.abrupt("return");case 2:if(y.path=S||"",!y.isFile){T.next=10;break}return T.next=6,l(y);case 6:b=T.sent,b&&i.push(b),T.next=15;break;case 10:if(!y.isDirectory){T.next=15;break}return T.next=13,a(y);case 13:C=T.sent,o.push.apply(o,pt(C));case 15:case"end":return T.stop()}},v)}));return function(y,S){return m.apply(this,arguments)}}(),d=0;case 9:if(!(d<o.length)){p.next=15;break}return p.next=12,u(o[d]);case 12:d++,p.next=9;break;case 15:return p.abrupt("return",i);case 16:case"end":return p.stop()}},t)}));return function(n,r){return e.apply(this,arguments)}}(),Bht=+new Date,Hht=0;function oA(){return"rc-upload-".concat(Bht,"-").concat(++Hht)}var zht=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],Uht=function(e){Ys(n,e);var t=bl(n);function n(){var r;hi(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),ae(On(r),"state",{uid:oA()}),ae(On(r),"reqs",{}),ae(On(r),"fileInput",void 0),ae(On(r),"_isMounted",void 0),ae(On(r),"onChange",function(s){var l=r.props,c=l.accept,u=l.directory,d=s.target.files,h=pt(d).filter(function(p){return!u||iA(p,c)});r.uploadFiles(h),r.reset()}),ae(On(r),"onClick",function(s){var l=r.fileInput;if(l){var c=s.target,u=r.props.onClick;if(c&&c.tagName==="BUTTON"){var d=l.parentNode;d.focus(),c.blur()}l.click(),u&&u(s)}}),ae(On(r),"onKeyDown",function(s){s.key==="Enter"&&r.onClick(s)}),ae(On(r),"onFileDrop",function(){var s=Zo(Hr().mark(function l(c){var u,d,h;return Hr().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(u=r.props.multiple,c.preventDefault(),c.type!=="dragover"){m.next=4;break}return m.abrupt("return");case 4:if(!r.props.directory){m.next=11;break}return m.next=7,jht(Array.prototype.slice.call(c.dataTransfer.items),function(v){return iA(v,r.props.accept)});case 7:d=m.sent,r.uploadFiles(d),m.next=14;break;case 11:h=pt(c.dataTransfer.files).filter(function(v){return iA(v,r.props.accept)}),u===!1&&(h=h.slice(0,1)),r.uploadFiles(h);case 14:case"end":return m.stop()}},l)}));return function(l){return s.apply(this,arguments)}}()),ae(On(r),"uploadFiles",function(s){var l=pt(s),c=l.map(function(u){return u.uid=oA(),r.processFile(u,l)});Promise.all(c).then(function(u){var d=r.props.onBatchStart;d==null||d(u.map(function(h){var p=h.origin,m=h.parsedFile;return{file:p,parsedFile:m}})),u.filter(function(h){return h.parsedFile!==null}).forEach(function(h){r.post(h)})})}),ae(On(r),"processFile",function(){var s=Zo(Hr().mark(function l(c,u){var d,h,p,m,v,y,S,b,C;return Hr().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(d=r.props.beforeUpload,h=c,!d){T.next=14;break}return T.prev=3,T.next=6,d(c,u);case 6:h=T.sent,T.next=12;break;case 9:T.prev=9,T.t0=T.catch(3),h=!1;case 12:if(h!==!1){T.next=14;break}return T.abrupt("return",{origin:c,parsedFile:null,action:null,data:null});case 14:if(p=r.props.action,typeof p!="function"){T.next=21;break}return T.next=18,p(c);case 18:m=T.sent,T.next=22;break;case 21:m=p;case 22:if(v=r.props.data,typeof v!="function"){T.next=29;break}return T.next=26,v(c);case 26:y=T.sent,T.next=30;break;case 29:y=v;case 30:return S=(ln(h)==="object"||typeof h=="string")&&h?h:c,S instanceof File?b=S:b=new File([S],c.name,{type:c.type}),C=b,C.uid=c.uid,T.abrupt("return",{origin:c,data:y,parsedFile:C,action:m});case 35:case"end":return T.stop()}},l,null,[[3,9]])}));return function(l,c){return s.apply(this,arguments)}}()),ae(On(r),"saveFileInput",function(s){r.fileInput=s}),r}return pi(n,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(i){var o=this,a=i.data,s=i.origin,l=i.action,c=i.parsedFile;if(this._isMounted){var u=this.props,d=u.onStart,h=u.customRequest,p=u.name,m=u.headers,v=u.withCredentials,y=u.method,S=s.uid,b=h||Fht,C={action:l,filename:p,data:a,file:c,headers:m,withCredentials:v,method:y||"post",onProgress:function(T){var x=o.props.onProgress;x==null||x(T,c)},onSuccess:function(T,x){var E=o.props.onSuccess;E==null||E(T,c,x),delete o.reqs[S]},onError:function(T,x){var E=o.props.onError;E==null||E(T,x,c),delete o.reqs[S]}};d(s),this.reqs[S]=b(C)}}},{key:"reset",value:function(){this.setState({uid:oA()})}},{key:"abort",value:function(i){var o=this.reqs;if(i){var a=i.uid?i.uid:i;o[a]&&o[a].abort&&o[a].abort(),delete o[a]}else Object.keys(o).forEach(function(s){o[s]&&o[s].abort&&o[s].abort(),delete o[s]})}},{key:"render",value:function(){var i=this.props,o=i.component,a=i.prefixCls,s=i.className,l=i.classNames,c=l===void 0?{}:l,u=i.disabled,d=i.id,h=i.name,p=i.style,m=i.styles,v=m===void 0?{}:m,y=i.multiple,S=i.accept,b=i.capture,C=i.children,_=i.directory,T=i.openFileDialogOnClick,x=i.onMouseEnter,E=i.onMouseLeave,k=i.hasControlInside,M=tn(i,zht),P=Re(ae(ae(ae({},a,!0),"".concat(a,"-disabled"),u),s,s)),D=_?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},R=u?{}:{onClick:T?this.onClick:function(){},onKeyDown:T?this.onKeyDown:function(){},onMouseEnter:x,onMouseLeave:E,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:k?void 0:"0"};return ge.createElement(o,st({},R,{className:P,role:k?void 0:"button",style:p}),ge.createElement("input",st({},Bi(M,{aria:!0,data:!0}),{id:d,name:h,disabled:u,type:"file",ref:this.saveFileInput,onClick:function(H){return H.stopPropagation()},key:this.state.uid,style:X({display:"none"},v.input),className:c.input,accept:S},D,{multiple:y,onChange:this.onChange},b!=null?{capture:b}:{})),C)}}]),n}(f.Component);function aA(){}var hj=function(e){Ys(n,e);var t=bl(n);function n(){var r;hi(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),ae(On(r),"uploader",void 0),ae(On(r),"saveUploader",function(s){r.uploader=s}),r}return pi(n,[{key:"abort",value:function(i){this.uploader.abort(i)}},{key:"render",value:function(){return ge.createElement(Uht,st({},this.props,{ref:this.saveUploader}))}}]),n}(f.Component);ae(hj,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:aA,onError:aA,onSuccess:aA,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});const Wht=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${je(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${je(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
|
||
&:not(${t}-disabled):hover,
|
||
&-hover:not(${t}-disabled)
|
||
`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${je(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n},
|
||
p${t}-text,
|
||
p${t}-hint
|
||
`]:{color:e.colorTextDisabled}}}}}},Vht=e=>{const{componentCls:t,iconCls:n,fontSize:r,lineHeight:i,calc:o}=e,a=`${t}-list-item`,s=`${a}-actions`,l=`${a}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},Ld()),{lineHeight:e.lineHeight,[a]:{position:"relative",height:o(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${a}-name`]:Object.assign(Object.assign({},Gl),{padding:`0 ${je(e.paddingXS)}`,lineHeight:i,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[s]:{whiteSpace:"nowrap",[l]:{opacity:0},[n]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`
|
||
${l}:focus-visible,
|
||
&.picture ${l}
|
||
`]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorTextDescription,fontSize:r},[`${a}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:o(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${a}:hover ${l}`]:{opacity:1},[`${a}-error`]:{color:e.colorError,[`${a}-name, ${t}-icon ${n}`]:{color:e.colorError},[s]:{[`${n}, ${n}:hover`]:{color:e.colorError},[l]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Kht=e=>{const{componentCls:t}=e,n=new Mr("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new Mr("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),i=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${i}-appear, ${i}-enter, ${i}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${i}-appear, ${i}-enter`]:{animationName:n},[`${i}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:MU(e)},n,r]},qht=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:i,calc:o}=e,a=`${t}-list`,s=`${a}-item`;return{[`${t}-wrapper`]:{[`
|
||
${a}${a}-picture,
|
||
${a}${a}-picture-card,
|
||
${a}${a}-picture-circle
|
||
`]:{[s]:{position:"relative",height:o(r).add(o(e.lineWidth).mul(2)).add(o(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${je(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:Object.assign(Object.assign({},Gl),{width:r,height:r,lineHeight:je(o(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${s}-progress`]:{bottom:i,width:`calc(100% - ${je(o(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:o(r).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${n}`]:{[`svg path[fill='${yv[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${yv.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:i}}},[`${a}${a}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},Ght=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:i,calc:o}=e,a=`${t}-list`,s=`${a}-item`,l=e.uploadPicCardSize;return{[`
|
||
${t}-wrapper${t}-picture-card-wrapper,
|
||
${t}-wrapper${t}-picture-circle-wrapper
|
||
`]:Object.assign(Object.assign({},Ld()),{display:"block",[`${t}${t}-select`]:{width:l,height:l,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${je(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card, ${a}${a}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${a}-item-container`]:{display:"inline-block",width:l,height:l,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[s]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${je(o(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${je(o(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`
|
||
${n}-eye,
|
||
${n}-download,
|
||
${n}-delete
|
||
`]:{zIndex:10,width:r,margin:`0 ${je(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:i,"&:hover":{color:i},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${je(o(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${je(o(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},Yht=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},Xht=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},$r(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},Qht=e=>({actionsColor:e.colorTextDescription}),Zht=Tr("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:i,calc:o}=e,a=dr(e,{uploadThumbnailSize:o(t).mul(2).equal(),uploadProgressOffset:o(o(n).div(2)).add(r).equal(),uploadPicCardSize:o(i).mul(2.55).equal()});return[Xht(a),Wht(a),qht(a),Ght(a),Vht(a),Kht(a),Yht(a),vE(a)]},Qht);function r5(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function i5(e,t){const n=pt(t),r=n.findIndex(i=>{let{uid:o}=i;return o===e.uid});return r===-1?n.push(e):n[r]=e,n}function sA(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function Jht(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(i=>i[n]!==e[n]);return r.length===t.length?null:r}const ept=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},$Ce=e=>e.indexOf("image/")===0,tpt=e=>{if(e.type&&!e.thumbUrl)return $Ce(e.type);const t=e.thumbUrl||e.url||"",n=ept(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(t)||n)},Xp=200;function npt(e){return new Promise(t=>{if(!e.type||!$Ce(e.type)){t("");return}const n=document.createElement("canvas");n.width=Xp,n.height=Xp,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${Xp}px; height: ${Xp}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),i=new Image;if(i.onload=()=>{const{width:o,height:a}=i;let s=Xp,l=Xp,c=0,u=0;o>a?(l=a*(Xp/o),u=-(l-s)/2):(s=o*(Xp/a),c=-(s-l)/2),r.drawImage(i,c,u,s,l);const d=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(i.src),t(d)},i.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const o=new FileReader;o.onload=()=>{o.result&&typeof o.result=="string"&&(i.src=o.result)},o.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const o=new FileReader;o.onload=()=>{o.result&&t(o.result)},o.readAsDataURL(e)}else i.src=window.URL.createObjectURL(e)})}const rpt=f.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,locale:o,listType:a,file:s,items:l,progress:c,iconRender:u,actionIconRender:d,itemRender:h,isImgUrl:p,showPreviewIcon:m,showRemoveIcon:v,showDownloadIcon:y,previewIcon:S,removeIcon:b,downloadIcon:C,extra:_,onPreview:T,onDownload:x,onClose:E}=e;var k,M;const{status:P}=s,[D,R]=f.useState(P);f.useEffect(()=>{P!=="removed"&&R(P)},[P]);const[A,H]=f.useState(!1);f.useEffect(()=>{const he=setTimeout(()=>{H(!0)},300);return()=>{clearTimeout(he)}},[]);const F=u(s);let z=f.createElement("div",{className:`${n}-icon`},F);if(a==="picture"||a==="picture-card"||a==="picture-circle")if(D==="uploading"||!s.thumbUrl&&!s.url){const he=Re(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:D!=="uploading"});z=f.createElement("div",{className:he},F)}else{const he=p!=null&&p(s)?f.createElement("img",{src:s.thumbUrl||s.url,alt:s.name,className:`${n}-list-item-image`,crossOrigin:s.crossOrigin}):F,_e=Re(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:p&&!p(s)});z=f.createElement("a",{className:_e,onClick:le=>T(s,le),href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer"},he)}const W=Re(`${n}-list-item`,`${n}-list-item-${D}`),q=typeof s.linkProps=="string"?JSON.parse(s.linkProps):s.linkProps,Z=(typeof v=="function"?v(s):v)?d((typeof b=="function"?b(s):b)||f.createElement(pP,null),()=>E(s),n,o.removeFile,!0):null,N=(typeof y=="function"?y(s):y)&&D==="done"?d((typeof C=="function"?C(s):C)||f.createElement(ust,null),()=>x(s),n,o.downloadFile):null,B=a!=="picture-card"&&a!=="picture-circle"&&f.createElement("span",{key:"download-delete",className:Re(`${n}-list-item-actions`,{picture:a==="picture"})},N,Z),V=typeof _=="function"?_(s):_,G=V&&f.createElement("span",{className:`${n}-list-item-extra`},V),ie=Re(`${n}-list-item-name`),ce=s.url?f.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:ie,title:s.name},q,{href:s.url,onClick:he=>T(s,he)}),s.name,G):f.createElement("span",{key:"view",className:ie,onClick:he=>T(s,he),title:s.name},s.name,G),fe=(typeof m=="function"?m(s):m)&&(s.url||s.thumbUrl)?f.createElement("a",{href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:he=>T(s,he),title:o.previewFile},typeof S=="function"?S(s):S||f.createElement(iC,null)):null,ee=(a==="picture-card"||a==="picture-circle")&&D!=="uploading"&&f.createElement("span",{className:`${n}-list-item-actions`},fe,D==="done"&&N,Z),{getPrefixCls:ne}=f.useContext(hn),ue=ne(),ye=f.createElement("div",{className:W},z,ce,B,ee,A&&f.createElement(fa,{motionName:`${ue}-fade`,visible:D==="uploading",motionDeadline:2e3},he=>{let{className:_e}=he;const le="percent"in s?f.createElement(TSe,Object.assign({},c,{type:"line",percent:s.percent,"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"]})):null;return f.createElement("div",{className:Re(`${n}-list-item-progress`,_e)},le)})),me=s.response&&typeof s.response=="string"?s.response:((k=s.error)===null||k===void 0?void 0:k.statusText)||((M=s.error)===null||M===void 0?void 0:M.message)||o.uploadError,pe=D==="error"?f.createElement(ea,{title:me,getPopupContainer:he=>he.parentNode},ye):ye;return f.createElement("div",{className:Re(`${n}-list-item-container`,r),style:i,ref:t},h?h(pe,s,l,{download:x.bind(null,s),preview:T.bind(null,s),remove:E.bind(null,s)}):pe)}),ipt=(e,t)=>{const{listType:n="text",previewFile:r=npt,onPreview:i,onDownload:o,onRemove:a,locale:s,iconRender:l,isImageUrl:c=tpt,prefixCls:u,items:d=[],showPreviewIcon:h=!0,showRemoveIcon:p=!0,showDownloadIcon:m=!1,removeIcon:v,previewIcon:y,downloadIcon:S,extra:b,progress:C={size:[-1,2],showInfo:!1},appendAction:_,appendActionVisible:T=!0,itemRender:x,disabled:E}=e,k=ZU(),[M,P]=f.useState(!1),D=["picture-card","picture-circle"].includes(n);f.useEffect(()=>{n.startsWith("picture")&&(d||[]).forEach(G=>{!(G.originFileObj instanceof File||G.originFileObj instanceof Blob)||G.thumbUrl!==void 0||(G.thumbUrl="",r==null||r(G.originFileObj).then(ie=>{G.thumbUrl=ie||"",k()}))})},[n,d,r]),f.useEffect(()=>{P(!0)},[]);const R=(G,ie)=>{if(i)return ie==null||ie.preventDefault(),i(G)},A=G=>{typeof o=="function"?o(G):G.url&&window.open(G.url)},H=G=>{a==null||a(G)},F=G=>{if(l)return l(G,n);const ie=G.status==="uploading";if(n.startsWith("picture")){const ce=n==="picture"?f.createElement(jd,null):s.uploading,fe=c!=null&&c(G)?f.createElement(llt,null):f.createElement(Sst,null);return ie?ce:fe}return ie?f.createElement(jd,null):f.createElement(olt,null)},z=(G,ie,ce,fe,ee)=>{const ne={type:"text",size:"small",title:fe,onClick:ue=>{var ye,me;ie(),f.isValidElement(G)&&((me=(ye=G.props).onClick)===null||me===void 0||me.call(ye,ue))},className:`${ce}-list-item-action`};return ee&&(ne.disabled=E),f.isValidElement(G)?f.createElement(pr,Object.assign({},ne,{icon:Io(G,Object.assign(Object.assign({},G.props),{onClick:()=>{}}))})):f.createElement(pr,Object.assign({},ne),f.createElement("span",null,G))};f.useImperativeHandle(t,()=>({handlePreview:R,handleDownload:A}));const{getPrefixCls:W}=f.useContext(hn),q=W("upload",u),Z=W(),N=Re(`${q}-list`,`${q}-list-${n}`),B=f.useMemo(()=>Pr(qb(Z),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[Z]),V=Object.assign(Object.assign({},D?{}:B),{motionDeadline:2e3,motionName:`${q}-${D?"animate-inline":"animate"}`,keys:pt(d.map(G=>({key:G.uid,file:G}))),motionAppear:M});return f.createElement("div",{className:N},f.createElement(CO,Object.assign({},V,{component:!1}),G=>{let{key:ie,file:ce,className:fe,style:ee}=G;return f.createElement(rpt,{key:ie,locale:s,prefixCls:q,className:fe,style:ee,file:ce,items:d,progress:C,listType:n,isImgUrl:c,showPreviewIcon:h,showRemoveIcon:p,showDownloadIcon:m,removeIcon:v,previewIcon:y,downloadIcon:S,extra:b,iconRender:F,actionIconRender:z,itemRender:x,onPreview:R,onDownload:A,onClose:H})}),_&&f.createElement(fa,Object.assign({},V,{visible:T,forceRender:!0}),G=>{let{className:ie,style:ce}=G;return Io(_,fe=>({className:Re(fe.className,ie),style:Object.assign(Object.assign(Object.assign({},ce),{pointerEvents:ie?"none":void 0}),fe.style)}))}))},opt=f.forwardRef(ipt);var apt=function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(u){try{c(r.next(u))}catch(d){a(d)}}function l(u){try{c(r.throw(u))}catch(d){a(d)}}function c(u){u.done?o(u.value):i(u.value).then(s,l)}c((r=r.apply(e,[])).next())})};const T2=`__LIST_IGNORE_${Date.now()}__`,spt=(e,t)=>{const{fileList:n,defaultFileList:r,onRemove:i,showUploadList:o=!0,listType:a="text",onPreview:s,onDownload:l,onChange:c,onDrop:u,previewFile:d,disabled:h,locale:p,iconRender:m,isImageUrl:v,progress:y,prefixCls:S,className:b,type:C="select",children:_,style:T,itemRender:x,maxCount:E,data:k={},multiple:M=!1,hasControlInside:P=!0,action:D="",accept:R="",supportServerRender:A=!0,rootClassName:H}=e,F=f.useContext(Jo),z=h??F,[W,q]=er(r||[],{value:n,postState:se=>se??[]}),[Z,N]=f.useState("drop"),B=f.useRef(null),V=f.useRef(null);f.useMemo(()=>{const se=Date.now();(n||[]).forEach((ze,Ye)=>{!ze.uid&&!Object.isFrozen(ze)&&(ze.uid=`__AUTO__${se}_${Ye}__`)})},[n]);const G=(se,ze,Ye)=>{let Ue=pt(ze),Je=!1;E===1?Ue=Ue.slice(-1):E&&(Je=Ue.length>E,Ue=Ue.slice(0,E)),Ac.flushSync(()=>{q(Ue)});const Ze={file:se,fileList:Ue};Ye&&(Ze.event=Ye),(!Je||se.status==="removed"||Ue.some(rt=>rt.uid===se.uid))&&Ac.flushSync(()=>{c==null||c(Ze)})},ie=(se,ze)=>apt(void 0,void 0,void 0,function*(){const{beforeUpload:Ye,transformFile:Ue}=e;let Je=se;if(Ye){const Ze=yield Ye(se,ze);if(Ze===!1)return!1;if(delete se[T2],Ze===T2)return Object.defineProperty(se,T2,{value:!0,configurable:!0}),!1;typeof Ze=="object"&&Ze&&(Je=Ze)}return Ue&&(Je=yield Ue(Je)),Je}),ce=se=>{const ze=se.filter(Je=>!Je.file[T2]);if(!ze.length)return;const Ye=ze.map(Je=>r5(Je.file));let Ue=pt(W);Ye.forEach(Je=>{Ue=i5(Je,Ue)}),Ye.forEach((Je,Ze)=>{let rt=Je;if(ze[Ze].parsedFile)Je.status="uploading";else{const{originFileObj:qt}=Je;let St;try{St=new File([qt],qt.name,{type:qt.type})}catch{St=new Blob([qt],{type:qt.type}),St.name=qt.name,St.lastModifiedDate=new Date,St.lastModified=new Date().getTime()}St.uid=Je.uid,rt=St}G(rt,Ue)})},fe=(se,ze,Ye)=>{try{typeof se=="string"&&(se=JSON.parse(se))}catch{}if(!sA(ze,W))return;const Ue=r5(ze);Ue.status="done",Ue.percent=100,Ue.response=se,Ue.xhr=Ye;const Je=i5(Ue,W);G(Ue,Je)},ee=(se,ze)=>{if(!sA(ze,W))return;const Ye=r5(ze);Ye.status="uploading",Ye.percent=se.percent;const Ue=i5(Ye,W);G(Ye,Ue,se)},ne=(se,ze,Ye)=>{if(!sA(Ye,W))return;const Ue=r5(Ye);Ue.error=se,Ue.response=ze,Ue.status="error";const Je=i5(Ue,W);G(Ue,Je)},ue=se=>{let ze;Promise.resolve(typeof i=="function"?i(se):i).then(Ye=>{var Ue;if(Ye===!1)return;const Je=Jht(se,W);Je&&(ze=Object.assign(Object.assign({},se),{status:"removed"}),W==null||W.forEach(Ze=>{const rt=ze.uid!==void 0?"uid":"name";Ze[rt]===ze[rt]&&!Object.isFrozen(Ze)&&(Ze.status="removed")}),(Ue=B.current)===null||Ue===void 0||Ue.abort(ze),G(ze,Je))})},ye=se=>{N(se.type),se.type==="drop"&&(u==null||u(se))};f.useImperativeHandle(t,()=>({onBatchStart:ce,onSuccess:fe,onProgress:ee,onError:ne,fileList:W,upload:B.current,nativeElement:V.current}));const{getPrefixCls:me,direction:pe,upload:he}=f.useContext(hn),_e=me("upload",S),le=Object.assign(Object.assign({onBatchStart:ce,onError:ne,onProgress:ee,onSuccess:fe},e),{data:k,multiple:M,action:D,accept:R,supportServerRender:A,prefixCls:_e,disabled:z,beforeUpload:ie,onChange:void 0,hasControlInside:P});delete le.className,delete le.style,(!_||z)&&delete le.id;const xe=`${_e}-wrapper`,[we,De,Fe]=Zht(_e,xe),[Ce]=ks("Upload",Lc.Upload),{showRemoveIcon:Te,showPreviewIcon:ke,showDownloadIcon:Pe,removeIcon:Ne,previewIcon:We,downloadIcon:Q,extra:K}=typeof o=="boolean"?{}:o,J=typeof Te>"u"?!z:Te,be=(se,ze)=>o?f.createElement(opt,{prefixCls:_e,listType:a,items:W,previewFile:d,onPreview:s,onDownload:l,onRemove:ue,showRemoveIcon:J,showPreviewIcon:ke,showDownloadIcon:Pe,removeIcon:Ne,previewIcon:We,downloadIcon:Q,iconRender:m,extra:K,locale:Object.assign(Object.assign({},Ce),p),isImageUrl:v,progress:y,appendAction:se,appendActionVisible:ze,itemRender:x,disabled:z}):se,Oe=Re(xe,b,H,De,Fe,he==null?void 0:he.className,{[`${_e}-rtl`]:pe==="rtl",[`${_e}-picture-card-wrapper`]:a==="picture-card",[`${_e}-picture-circle-wrapper`]:a==="picture-circle"}),Se=Object.assign(Object.assign({},he==null?void 0:he.style),T);if(C==="drag"){const se=Re(De,_e,`${_e}-drag`,{[`${_e}-drag-uploading`]:W.some(ze=>ze.status==="uploading"),[`${_e}-drag-hover`]:Z==="dragover",[`${_e}-disabled`]:z,[`${_e}-rtl`]:pe==="rtl"});return we(f.createElement("span",{className:Oe,ref:V},f.createElement("div",{className:se,style:Se,onDrop:ye,onDragOver:ye,onDragLeave:ye},f.createElement(hj,Object.assign({},le,{ref:B,className:`${_e}-btn`}),f.createElement("div",{className:`${_e}-drag-container`},_))),be()))}const Ke=Re(_e,`${_e}-select`,{[`${_e}-disabled`]:z,[`${_e}-hidden`]:!_}),tt=f.createElement("div",{className:Ke},f.createElement(hj,Object.assign({},le,{ref:B})));return we(a==="picture-card"||a==="picture-circle"?f.createElement("span",{className:Oe,ref:V},be(tt,!!_)):f.createElement("span",{className:Oe,ref:V},tt,be()))},RCe=f.forwardRef(spt);var lpt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const cpt=f.forwardRef((e,t)=>{var{style:n,height:r,hasControlInside:i=!1}=e,o=lpt(e,["style","height","hasControlInside"]);return f.createElement(RCe,Object.assign({ref:t,hasControlInside:i},o,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))}),uC=RCe;uC.Dragger=cpt;uC.LIST_IGNORE=T2;let Wn;const upt=()=>{const e=jO.useApp();return Wn=e.message,e.modal,e.notification,null};var ACe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(vo,function(){var n=function(Y,re){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ve,$e){ve.__proto__=$e}||function(ve,$e){for(var He in $e)Object.prototype.hasOwnProperty.call($e,He)&&(ve[He]=$e[He])})(Y,re)},r=function(){return(r=Object.assign||function(Y){for(var re,ve=1,$e=arguments.length;ve<$e;ve++)for(var He in re=arguments[ve])Object.prototype.hasOwnProperty.call(re,He)&&(Y[He]=re[He]);return Y}).apply(this,arguments)};function i(Y,re,ve){for(var $e,He=0,qe=re.length;He<qe;He++)!$e&&He in re||(($e=$e||Array.prototype.slice.call(re,0,He))[He]=re[He]);return Y.concat($e||Array.prototype.slice.call(re))}var o=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:vo,a=Object.keys,s=Array.isArray;function l(Y,re){return typeof re!="object"||a(re).forEach(function(ve){Y[ve]=re[ve]}),Y}typeof Promise>"u"||o.Promise||(o.Promise=Promise);var c=Object.getPrototypeOf,u={}.hasOwnProperty;function d(Y,re){return u.call(Y,re)}function h(Y,re){typeof re=="function"&&(re=re(c(Y))),(typeof Reflect>"u"?a:Reflect.ownKeys)(re).forEach(function(ve){m(Y,ve,re[ve])})}var p=Object.defineProperty;function m(Y,re,ve,$e){p(Y,re,l(ve&&d(ve,"get")&&typeof ve.get=="function"?{get:ve.get,set:ve.set,configurable:!0}:{value:ve,configurable:!0,writable:!0},$e))}function v(Y){return{from:function(re){return Y.prototype=Object.create(re.prototype),m(Y.prototype,"constructor",Y),{extend:h.bind(null,Y.prototype)}}}}var y=Object.getOwnPropertyDescriptor,S=[].slice;function b(Y,re,ve){return S.call(Y,re,ve)}function C(Y,re){return re(Y)}function _(Y){if(!Y)throw new Error("Assertion Failed")}function T(Y){o.setImmediate?setImmediate(Y):setTimeout(Y,0)}function x(Y,re){if(typeof re=="string"&&d(Y,re))return Y[re];if(!re)return Y;if(typeof re!="string"){for(var ve=[],$e=0,He=re.length;$e<He;++$e){var qe=x(Y,re[$e]);ve.push(qe)}return ve}var it=re.indexOf(".");if(it!==-1){var lt=Y[re.substr(0,it)];return lt==null?void 0:x(lt,re.substr(it+1))}}function E(Y,re,ve){if(Y&&re!==void 0&&!("isFrozen"in Object&&Object.isFrozen(Y)))if(typeof re!="string"&&"length"in re){_(typeof ve!="string"&&"length"in ve);for(var $e=0,He=re.length;$e<He;++$e)E(Y,re[$e],ve[$e])}else{var qe,it,lt=re.indexOf(".");lt!==-1?(qe=re.substr(0,lt),(it=re.substr(lt+1))===""?ve===void 0?s(Y)&&!isNaN(parseInt(qe))?Y.splice(qe,1):delete Y[qe]:Y[qe]=ve:E(lt=!(lt=Y[qe])||!d(Y,qe)?Y[qe]={}:lt,it,ve)):ve===void 0?s(Y)&&!isNaN(parseInt(re))?Y.splice(re,1):delete Y[re]:Y[re]=ve}}function k(Y){var re,ve={};for(re in Y)d(Y,re)&&(ve[re]=Y[re]);return ve}var M=[].concat;function P(Y){return M.apply([],Y)}var nr="BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(P([8,16,32,64].map(function(Y){return["Int","Uint","Float"].map(function(re){return re+Y+"Array"})}))).filter(function(Y){return o[Y]}),D=new Set(nr.map(function(Y){return o[Y]})),R=null;function A(Y){return R=new WeakMap,Y=function re(ve){if(!ve||typeof ve!="object")return ve;var $e=R.get(ve);if($e)return $e;if(s(ve)){$e=[],R.set(ve,$e);for(var He=0,qe=ve.length;He<qe;++He)$e.push(re(ve[He]))}else if(D.has(ve.constructor))$e=ve;else{var it,lt=c(ve);for(it in $e=lt===Object.prototype?{}:Object.create(lt),R.set(ve,$e),ve)d(ve,it)&&($e[it]=re(ve[it]))}return $e}(Y),R=null,Y}var H={}.toString;function F(Y){return H.call(Y).slice(8,-1)}var z=typeof Symbol<"u"?Symbol.iterator:"@@iterator",W=typeof z=="symbol"?function(Y){var re;return Y!=null&&(re=Y[z])&&re.apply(Y)}:function(){return null};function q(Y,re){return re=Y.indexOf(re),0<=re&&Y.splice(re,1),0<=re}var Z={};function N(Y){var re,ve,$e,He;if(arguments.length===1){if(s(Y))return Y.slice();if(this===Z&&typeof Y=="string")return[Y];if(He=W(Y)){for(ve=[];!($e=He.next()).done;)ve.push($e.value);return ve}if(Y==null)return[Y];if(typeof(re=Y.length)!="number")return[Y];for(ve=new Array(re);re--;)ve[re]=Y[re];return ve}for(re=arguments.length,ve=new Array(re);re--;)ve[re]=arguments[re];return ve}var B=typeof Symbol<"u"?function(Y){return Y[Symbol.toStringTag]==="AsyncFunction"}:function(){return!1},We=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],Xs=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(We),V={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function G(Y,re){this.name=Y,this.message=re}function ie(Y,re){return Y+". Errors: "+Object.keys(re).map(function(ve){return re[ve].toString()}).filter(function(ve,$e,He){return He.indexOf(ve)===$e}).join(`
|
||
`)}function ce(Y,re,ve,$e){this.failures=re,this.failedKeys=$e,this.successCount=ve,this.message=ie(Y,re)}function fe(Y,re){this.name="BulkError",this.failures=Object.keys(re).map(function(ve){return re[ve]}),this.failuresByPos=re,this.message=ie(Y,this.failures)}v(G).from(Error).extend({toString:function(){return this.name+": "+this.message}}),v(ce).from(G),v(fe).from(G);var ee=Xs.reduce(function(Y,re){return Y[re]=re+"Error",Y},{}),ne=G,ue=Xs.reduce(function(Y,re){var ve=re+"Error";function $e(He,qe){this.name=ve,He?typeof He=="string"?(this.message="".concat(He).concat(qe?`
|
||
`+qe:""),this.inner=qe||null):typeof He=="object"&&(this.message="".concat(He.name," ").concat(He.message),this.inner=He):(this.message=V[re]||ve,this.inner=null)}return v($e).from(ne),Y[re]=$e,Y},{});ue.Syntax=SyntaxError,ue.Type=TypeError,ue.Range=RangeError;var ye=We.reduce(function(Y,re){return Y[re+"Error"]=ue[re],Y},{}),me=Xs.reduce(function(Y,re){return["Syntax","Type","Range"].indexOf(re)===-1&&(Y[re+"Error"]=ue[re]),Y},{});function pe(){}function he(Y){return Y}function _e(Y,re){return Y==null||Y===he?re:function(ve){return re(Y(ve))}}function le(Y,re){return function(){Y.apply(this,arguments),re.apply(this,arguments)}}function xe(Y,re){return Y===pe?re:function(){var ve=Y.apply(this,arguments);ve!==void 0&&(arguments[0]=ve);var $e=this.onsuccess,He=this.onerror;this.onsuccess=null,this.onerror=null;var qe=re.apply(this,arguments);return $e&&(this.onsuccess=this.onsuccess?le($e,this.onsuccess):$e),He&&(this.onerror=this.onerror?le(He,this.onerror):He),qe!==void 0?qe:ve}}function we(Y,re){return Y===pe?re:function(){Y.apply(this,arguments);var ve=this.onsuccess,$e=this.onerror;this.onsuccess=this.onerror=null,re.apply(this,arguments),ve&&(this.onsuccess=this.onsuccess?le(ve,this.onsuccess):ve),$e&&(this.onerror=this.onerror?le($e,this.onerror):$e)}}function De(Y,re){return Y===pe?re:function(ve){var $e=Y.apply(this,arguments);l(ve,$e);var He=this.onsuccess,qe=this.onerror;return this.onsuccess=null,this.onerror=null,ve=re.apply(this,arguments),He&&(this.onsuccess=this.onsuccess?le(He,this.onsuccess):He),qe&&(this.onerror=this.onerror?le(qe,this.onerror):qe),$e===void 0?ve===void 0?void 0:ve:l($e,ve)}}function Fe(Y,re){return Y===pe?re:function(){return re.apply(this,arguments)!==!1&&Y.apply(this,arguments)}}function Ce(Y,re){return Y===pe?re:function(){var ve=Y.apply(this,arguments);if(ve&&typeof ve.then=="function"){for(var $e=this,He=arguments.length,qe=new Array(He);He--;)qe[He]=arguments[He];return ve.then(function(){return re.apply($e,qe)})}return re.apply(this,arguments)}}me.ModifyError=ce,me.DexieError=G,me.BulkError=fe;var Te=typeof location<"u"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function ke(Y){Te=Y}var Pe={},Ne=100,nr=typeof Promise>"u"?[]:function(){var Y=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[Y,c(Y),Y];var re=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[re,c(re),Y]}(),We=nr[0],Xs=nr[1],nr=nr[2],Xs=Xs&&Xs.then,Q=We&&We.constructor,K=!!nr,J=function(Y,re){Ye.push([Y,re]),Oe&&(queueMicrotask(an),Oe=!1)},be=!0,Oe=!0,Se=[],Ke=[],tt=he,se={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:pe,pgp:!1,env:{},finalize:pe},ze=se,Ye=[],Ue=0,Je=[];function Ze(Y){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this._lib=!1;var re=this._PSD=ze;if(typeof Y!="function"){if(Y!==Pe)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(this._state===!1&&St(this,this._value))}this._state=null,this._value=null,++re.ref,function ve($e,He){try{He(function(qe){if($e._state===null){if(qe===$e)throw new TypeError("A promise cannot be resolved with itself.");var it=$e._lib&&Vt();qe&&typeof qe.then=="function"?ve($e,function(lt,vt){qe instanceof Ze?qe._then(lt,vt):qe.then(lt,vt)}):($e._state=!0,$e._value=qe,Ot($e)),it&&Kt()}},St.bind(null,$e))}catch(qe){St($e,qe)}}(this,Y)}var rt={get:function(){var Y=ze,re=Zt;function ve($e,He){var qe=this,it=!Y.global&&(Y!==ze||re!==Zt),lt=it&&!Gt(),vt=new Ze(function(Ct,kt){Bt(qe,new qt(Ht($e,Y,it,lt),Ht(He,Y,it,lt),Ct,kt,Y))});return this._consoleTask&&(vt._consoleTask=this._consoleTask),vt}return ve.prototype=Pe,ve},set:function(Y){m(this,"then",Y&&Y.prototype===Pe?rt:{get:function(){return Y},set:rt.set})}};function qt(Y,re,ve,$e,He){this.onFulfilled=typeof Y=="function"?Y:null,this.onRejected=typeof re=="function"?re:null,this.resolve=ve,this.reject=$e,this.psd=He}function St(Y,re){var ve,$e;Ke.push(re),Y._state===null&&(ve=Y._lib&&Vt(),re=tt(re),Y._state=!1,Y._value=re,$e=Y,Se.some(function(He){return He._value===$e._value})||Se.push($e),Ot(Y),ve&&Kt())}function Ot(Y){var re=Y._listeners;Y._listeners=[];for(var ve=0,$e=re.length;ve<$e;++ve)Bt(Y,re[ve]);var He=Y._PSD;--He.ref||He.finalize(),Ue===0&&(++Ue,J(function(){--Ue==0&&Qt()},[]))}function Bt(Y,re){if(Y._state!==null){var ve=Y._state?re.onFulfilled:re.onRejected;if(ve===null)return(Y._state?re.resolve:re.reject)(Y._value);++re.psd.ref,++Ue,J(Dt,[ve,Y,re])}else Y._listeners.push(re)}function Dt(Y,re,ve){try{var $e,He=re._value;!re._state&&Ke.length&&(Ke=[]),$e=Te&&re._consoleTask?re._consoleTask.run(function(){return Y(He)}):Y(He),re._state||Ke.indexOf(He)!==-1||function(qe){for(var it=Se.length;it;)if(Se[--it]._value===qe._value)return Se.splice(it,1)}(re),ve.resolve($e)}catch(qe){ve.reject(qe)}finally{--Ue==0&&Qt(),--ve.psd.ref||ve.psd.finalize()}}function an(){nn(se,function(){Vt()&&Kt()})}function Vt(){var Y=be;return Oe=be=!1,Y}function Kt(){var Y,re,ve;do for(;0<Ye.length;)for(Y=Ye,Ye=[],ve=Y.length,re=0;re<ve;++re){var $e=Y[re];$e[0].apply(null,$e[1])}while(0<Ye.length);Oe=be=!0}function Qt(){var Y=Se;Se=[],Y.forEach(function($e){$e._PSD.onunhandled.call(null,$e._value,$e)});for(var re=Je.slice(0),ve=re.length;ve;)re[--ve]()}function et(Y){return new Ze(Pe,!1,Y)}function ot(Y,re){var ve=ze;return function(){var $e=Vt(),He=ze;try{return _t(ve,!0),Y.apply(this,arguments)}catch(qe){re&&re(qe)}finally{_t(He,!1),$e&&Kt()}}}h(Ze.prototype,{then:rt,_then:function(Y,re){Bt(this,new qt(null,null,Y,re,ze))},catch:function(Y){if(arguments.length===1)return this.then(null,Y);var re=Y,ve=arguments[1];return typeof re=="function"?this.then(null,function($e){return($e instanceof re?ve:et)($e)}):this.then(null,function($e){return($e&&$e.name===re?ve:et)($e)})},finally:function(Y){return this.then(function(re){return Ze.resolve(Y()).then(function(){return re})},function(re){return Ze.resolve(Y()).then(function(){return et(re)})})},timeout:function(Y,re){var ve=this;return Y<1/0?new Ze(function($e,He){var qe=setTimeout(function(){return He(new ue.Timeout(re))},Y);ve.then($e,He).finally(clearTimeout.bind(null,qe))}):this}}),typeof Symbol<"u"&&Symbol.toStringTag&&m(Ze.prototype,Symbol.toStringTag,"Dexie.Promise"),se.env=jt(),h(Ze,{all:function(){var Y=N.apply(null,arguments).map(Ft);return new Ze(function(re,ve){Y.length===0&&re([]);var $e=Y.length;Y.forEach(function(He,qe){return Ze.resolve(He).then(function(it){Y[qe]=it,--$e||re(Y)},ve)})})},resolve:function(Y){return Y instanceof Ze?Y:Y&&typeof Y.then=="function"?new Ze(function(re,ve){Y.then(re,ve)}):new Ze(Pe,!0,Y)},reject:et,race:function(){var Y=N.apply(null,arguments).map(Ft);return new Ze(function(re,ve){Y.map(function($e){return Ze.resolve($e).then(re,ve)})})},PSD:{get:function(){return ze},set:function(Y){return ze=Y}},totalEchoes:{get:function(){return Zt}},newPSD:At,usePSD:nn,scheduler:{get:function(){return J},set:function(Y){J=Y}},rejectionMapper:{get:function(){return tt},set:function(Y){tt=Y}},follow:function(Y,re){return new Ze(function(ve,$e){return At(function(He,qe){var it=ze;it.unhandleds=[],it.onunhandled=qe,it.finalize=le(function(){var lt,vt=this;lt=function(){vt.unhandleds.length===0?He():qe(vt.unhandleds[0])},Je.push(function Ct(){lt(),Je.splice(Je.indexOf(Ct),1)}),++Ue,J(function(){--Ue==0&&Qt()},[])},it.finalize),Y()},re,ve,$e)})}}),Q&&(Q.allSettled&&m(Ze,"allSettled",function(){var Y=N.apply(null,arguments).map(Ft);return new Ze(function(re){Y.length===0&&re([]);var ve=Y.length,$e=new Array(ve);Y.forEach(function(He,qe){return Ze.resolve(He).then(function(it){return $e[qe]={status:"fulfilled",value:it}},function(it){return $e[qe]={status:"rejected",reason:it}}).then(function(){return--ve||re($e)})})})}),Q.any&&typeof AggregateError<"u"&&m(Ze,"any",function(){var Y=N.apply(null,arguments).map(Ft);return new Ze(function(re,ve){Y.length===0&&ve(new AggregateError([]));var $e=Y.length,He=new Array($e);Y.forEach(function(qe,it){return Ze.resolve(qe).then(function(lt){return re(lt)},function(lt){He[it]=lt,--$e||ve(new AggregateError(He))})})})}),Q.withResolvers&&(Ze.withResolvers=Q.withResolvers));var Qe={awaits:0,echoes:0,id:0},ut=0,Nt=[],Lt=0,Zt=0,Wt=0;function At(Y,re,ve,$e){var He=ze,qe=Object.create(He);return qe.parent=He,qe.ref=0,qe.global=!1,qe.id=++Wt,se.env,qe.env=K?{Promise:Ze,PromiseProp:{value:Ze,configurable:!0,writable:!0},all:Ze.all,race:Ze.race,allSettled:Ze.allSettled,any:Ze.any,resolve:Ze.resolve,reject:Ze.reject}:{},re&&l(qe,re),++He.ref,qe.finalize=function(){--this.parent.ref||this.parent.finalize()},$e=nn(qe,Y,ve,$e),qe.ref===0&&qe.finalize(),$e}function $t(){return Qe.id||(Qe.id=++ut),++Qe.awaits,Qe.echoes+=Ne,Qe.id}function Gt(){return!!Qe.awaits&&(--Qe.awaits==0&&(Qe.id=0),Qe.echoes=Qe.awaits*Ne,!0)}function Ft(Y){return Qe.echoes&&Y&&Y.constructor===Q?($t(),Y.then(function(re){return Gt(),re},function(re){return Gt(),gt(re)})):Y}function cn(){var Y=Nt[Nt.length-1];Nt.pop(),_t(Y,!1)}function _t(Y,re){var ve,$e=ze;(re?!Qe.echoes||Lt++&&Y===ze:!Lt||--Lt&&Y===ze)||queueMicrotask(re?(function(He){++Zt,Qe.echoes&&--Qe.echoes!=0||(Qe.echoes=Qe.awaits=Qe.id=0),Nt.push(ze),_t(He,!0)}).bind(null,Y):cn),Y!==ze&&(ze=Y,$e===se&&(se.env=jt()),K&&(ve=se.env.Promise,re=Y.env,($e.global||Y.global)&&(Object.defineProperty(o,"Promise",re.PromiseProp),ve.all=re.all,ve.race=re.race,ve.resolve=re.resolve,ve.reject=re.reject,re.allSettled&&(ve.allSettled=re.allSettled),re.any&&(ve.any=re.any))))}function jt(){var Y=o.Promise;return K?{Promise:Y,PromiseProp:Object.getOwnPropertyDescriptor(o,"Promise"),all:Y.all,race:Y.race,allSettled:Y.allSettled,any:Y.any,resolve:Y.resolve,reject:Y.reject}:{}}function nn(Y,re,ve,$e,He){var qe=ze;try{return _t(Y,!0),re(ve,$e,He)}finally{_t(qe,!1)}}function Ht(Y,re,ve,$e){return typeof Y!="function"?Y:function(){var He=ze;ve&&$t(),_t(re,!0);try{return Y.apply(this,arguments)}finally{_t(He,!1),$e&&queueMicrotask(Gt)}}}function Tt(Y){Promise===Q&&Qe.echoes===0?Lt===0?Y():enqueueNativeMicroTask(Y):setTimeout(Y,0)}(""+Xs).indexOf("[native code]")===-1&&($t=Gt=pe);var gt=Ze.reject,Ve="",Yt="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",mt="String expected.",Mt=[],zt="__dbnames",Dn="readonly",Qn="readwrite";function O(Y,re){return Y?re?function(){return Y.apply(this,arguments)&&re.apply(this,arguments)}:Y:re}var j={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function oe(Y){return typeof Y!="string"||/\./.test(Y)?function(re){return re}:function(re){return re[Y]===void 0&&Y in re&&delete(re=A(re))[Y],re}}function Ae(){throw ue.Type()}function Ge(Y,re){try{var ve=ft(Y),$e=ft(re);if(ve!==$e)return ve==="Array"?1:$e==="Array"?-1:ve==="binary"?1:$e==="binary"?-1:ve==="string"?1:$e==="string"?-1:ve==="Date"?1:$e!=="Date"?NaN:-1;switch(ve){case"number":case"Date":case"string":return re<Y?1:Y<re?-1:0;case"binary":return function(He,qe){for(var it=He.length,lt=qe.length,vt=it<lt?it:lt,Ct=0;Ct<vt;++Ct)if(He[Ct]!==qe[Ct])return He[Ct]<qe[Ct]?-1:1;return it===lt?0:it<lt?-1:1}(Jt(Y),Jt(re));case"Array":return function(He,qe){for(var it=He.length,lt=qe.length,vt=it<lt?it:lt,Ct=0;Ct<vt;++Ct){var kt=Ge(He[Ct],qe[Ct]);if(kt!==0)return kt}return it===lt?0:it<lt?-1:1}(Y,re)}}catch{}return NaN}function ft(Y){var re=typeof Y;return re!="object"?re:ArrayBuffer.isView(Y)?"binary":(Y=F(Y),Y==="ArrayBuffer"?"binary":Y)}function Jt(Y){return Y instanceof Uint8Array?Y:ArrayBuffer.isView(Y)?new Uint8Array(Y.buffer,Y.byteOffset,Y.byteLength):new Uint8Array(Y)}var on=(Zn.prototype._trans=function(Y,re,ve){var $e=this._tx||ze.trans,He=this.name,qe=Te&&typeof console<"u"&&console.createTask&&console.createTask("Dexie: ".concat(Y==="readonly"?"read":"write"," ").concat(this.name));function it(Ct,kt,dt){if(!dt.schema[He])throw new ue.NotFound("Table "+He+" not part of transaction");return re(dt.idbtrans,dt)}var lt=Vt();try{var vt=$e&&$e.db._novip===this.db._novip?$e===ze.trans?$e._promise(Y,it,ve):At(function(){return $e._promise(Y,it,ve)},{trans:$e,transless:ze.transless||ze}):function Ct(kt,dt,Rt,bt){if(kt.idbdb&&(kt._state.openComplete||ze.letThrough||kt._vip)){var wt=kt._createTransaction(dt,Rt,kt._dbSchema);try{wt.create(),kt._state.PR1398_maxLoop=3}catch(It){return It.name===ee.InvalidState&&kt.isOpen()&&0<--kt._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),kt.close({disableAutoOpen:!1}),kt.open().then(function(){return Ct(kt,dt,Rt,bt)})):gt(It)}return wt._promise(dt,function(It,xt){return At(function(){return ze.trans=wt,bt(It,xt,wt)})}).then(function(It){if(dt==="readwrite")try{wt.idbtrans.commit()}catch{}return dt==="readonly"?It:wt._completion.then(function(){return It})})}if(kt._state.openComplete)return gt(new ue.DatabaseClosed(kt._state.dbOpenError));if(!kt._state.isBeingOpened){if(!kt._state.autoOpen)return gt(new ue.DatabaseClosed);kt.open().catch(pe)}return kt._state.dbReadyPromise.then(function(){return Ct(kt,dt,Rt,bt)})}(this.db,Y,[this.name],it);return qe&&(vt._consoleTask=qe,vt=vt.catch(function(Ct){return console.trace(Ct),gt(Ct)})),vt}finally{lt&&Kt()}},Zn.prototype.get=function(Y,re){var ve=this;return Y&&Y.constructor===Object?this.where(Y).first(re):Y==null?gt(new ue.Type("Invalid argument to Table.get()")):this._trans("readonly",function($e){return ve.core.get({trans:$e,key:Y}).then(function(He){return ve.hook.reading.fire(He)})}).then(re)},Zn.prototype.where=function(Y){if(typeof Y=="string")return new this.db.WhereClause(this,Y);if(s(Y))return new this.db.WhereClause(this,"[".concat(Y.join("+"),"]"));var re=a(Y);if(re.length===1)return this.where(re[0]).equals(Y[re[0]]);var ve=this.schema.indexes.concat(this.schema.primKey).filter(function(lt){if(lt.compound&&re.every(function(Ct){return 0<=lt.keyPath.indexOf(Ct)})){for(var vt=0;vt<re.length;++vt)if(re.indexOf(lt.keyPath[vt])===-1)return!1;return!0}return!1}).sort(function(lt,vt){return lt.keyPath.length-vt.keyPath.length})[0];if(ve&&this.db._maxKey!==Ve){var qe=ve.keyPath.slice(0,re.length);return this.where(qe).equals(qe.map(function(vt){return Y[vt]}))}!ve&&Te&&console.warn("The query ".concat(JSON.stringify(Y)," on ").concat(this.name," would benefit from a ")+"compound index [".concat(re.join("+"),"]"));var $e=this.schema.idxByName;function He(lt,vt){return Ge(lt,vt)===0}var it=re.reduce(function(dt,vt){var Ct=dt[0],kt=dt[1],dt=$e[vt],Rt=Y[vt];return[Ct||dt,Ct||!dt?O(kt,dt&&dt.multi?function(bt){return bt=x(bt,vt),s(bt)&&bt.some(function(wt){return He(Rt,wt)})}:function(bt){return He(Rt,x(bt,vt))}):kt]},[null,null]),qe=it[0],it=it[1];return qe?this.where(qe.name).equals(Y[qe.keyPath]).filter(it):ve?this.filter(it):this.where(re).equals("")},Zn.prototype.filter=function(Y){return this.toCollection().and(Y)},Zn.prototype.count=function(Y){return this.toCollection().count(Y)},Zn.prototype.offset=function(Y){return this.toCollection().offset(Y)},Zn.prototype.limit=function(Y){return this.toCollection().limit(Y)},Zn.prototype.each=function(Y){return this.toCollection().each(Y)},Zn.prototype.toArray=function(Y){return this.toCollection().toArray(Y)},Zn.prototype.toCollection=function(){return new this.db.Collection(new this.db.WhereClause(this))},Zn.prototype.orderBy=function(Y){return new this.db.Collection(new this.db.WhereClause(this,s(Y)?"[".concat(Y.join("+"),"]"):Y))},Zn.prototype.reverse=function(){return this.toCollection().reverse()},Zn.prototype.mapToClass=function(Y){var re,ve=this.db,$e=this.name;function He(){return re!==null&&re.apply(this,arguments)||this}(this.schema.mappedClass=Y).prototype instanceof Ae&&(function(vt,Ct){if(typeof Ct!="function"&&Ct!==null)throw new TypeError("Class extends value "+String(Ct)+" is not a constructor or null");function kt(){this.constructor=vt}n(vt,Ct),vt.prototype=Ct===null?Object.create(Ct):(kt.prototype=Ct.prototype,new kt)}(He,re=Y),Object.defineProperty(He.prototype,"db",{get:function(){return ve},enumerable:!1,configurable:!0}),He.prototype.table=function(){return $e},Y=He);for(var qe=new Set,it=Y.prototype;it;it=c(it))Object.getOwnPropertyNames(it).forEach(function(vt){return qe.add(vt)});function lt(vt){if(!vt)return vt;var Ct,kt=Object.create(Y.prototype);for(Ct in vt)if(!qe.has(Ct))try{kt[Ct]=vt[Ct]}catch{}return kt}return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=lt,this.hook("reading",lt),Y},Zn.prototype.defineClass=function(){return this.mapToClass(function(Y){l(this,Y)})},Zn.prototype.add=function(Y,re){var ve=this,$e=this.schema.primKey,He=$e.auto,qe=$e.keyPath,it=Y;return qe&&He&&(it=oe(qe)(Y)),this._trans("readwrite",function(lt){return ve.core.mutate({trans:lt,type:"add",keys:re!=null?[re]:null,values:[it]})}).then(function(lt){return lt.numFailures?Ze.reject(lt.failures[0]):lt.lastResult}).then(function(lt){if(qe)try{E(Y,qe,lt)}catch{}return lt})},Zn.prototype.update=function(Y,re){return typeof Y!="object"||s(Y)?this.where(":id").equals(Y).modify(re):(Y=x(Y,this.schema.primKey.keyPath),Y===void 0?gt(new ue.InvalidArgument("Given object does not contain its primary key")):this.where(":id").equals(Y).modify(re))},Zn.prototype.put=function(Y,re){var ve=this,$e=this.schema.primKey,He=$e.auto,qe=$e.keyPath,it=Y;return qe&&He&&(it=oe(qe)(Y)),this._trans("readwrite",function(lt){return ve.core.mutate({trans:lt,type:"put",values:[it],keys:re!=null?[re]:null})}).then(function(lt){return lt.numFailures?Ze.reject(lt.failures[0]):lt.lastResult}).then(function(lt){if(qe)try{E(Y,qe,lt)}catch{}return lt})},Zn.prototype.delete=function(Y){var re=this;return this._trans("readwrite",function(ve){return re.core.mutate({trans:ve,type:"delete",keys:[Y]})}).then(function(ve){return ve.numFailures?Ze.reject(ve.failures[0]):void 0})},Zn.prototype.clear=function(){var Y=this;return this._trans("readwrite",function(re){return Y.core.mutate({trans:re,type:"deleteRange",range:j})}).then(function(re){return re.numFailures?Ze.reject(re.failures[0]):void 0})},Zn.prototype.bulkGet=function(Y){var re=this;return this._trans("readonly",function(ve){return re.core.getMany({keys:Y,trans:ve}).then(function($e){return $e.map(function(He){return re.hook.reading.fire(He)})})})},Zn.prototype.bulkAdd=function(Y,re,ve){var $e=this,He=Array.isArray(re)?re:void 0,qe=(ve=ve||(He?void 0:re))?ve.allKeys:void 0;return this._trans("readwrite",function(it){var Ct=$e.schema.primKey,lt=Ct.auto,Ct=Ct.keyPath;if(Ct&&He)throw new ue.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(He&&He.length!==Y.length)throw new ue.InvalidArgument("Arguments objects and keys must have the same length");var vt=Y.length,Ct=Ct&<?Y.map(oe(Ct)):Y;return $e.core.mutate({trans:it,type:"add",keys:He,values:Ct,wantResults:qe}).then(function(wt){var dt=wt.numFailures,Rt=wt.results,bt=wt.lastResult,wt=wt.failures;if(dt===0)return qe?Rt:bt;throw new fe("".concat($e.name,".bulkAdd(): ").concat(dt," of ").concat(vt," operations failed"),wt)})})},Zn.prototype.bulkPut=function(Y,re,ve){var $e=this,He=Array.isArray(re)?re:void 0,qe=(ve=ve||(He?void 0:re))?ve.allKeys:void 0;return this._trans("readwrite",function(it){var Ct=$e.schema.primKey,lt=Ct.auto,Ct=Ct.keyPath;if(Ct&&He)throw new ue.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(He&&He.length!==Y.length)throw new ue.InvalidArgument("Arguments objects and keys must have the same length");var vt=Y.length,Ct=Ct&<?Y.map(oe(Ct)):Y;return $e.core.mutate({trans:it,type:"put",keys:He,values:Ct,wantResults:qe}).then(function(wt){var dt=wt.numFailures,Rt=wt.results,bt=wt.lastResult,wt=wt.failures;if(dt===0)return qe?Rt:bt;throw new fe("".concat($e.name,".bulkPut(): ").concat(dt," of ").concat(vt," operations failed"),wt)})})},Zn.prototype.bulkUpdate=function(Y){var re=this,ve=this.core,$e=Y.map(function(it){return it.key}),He=Y.map(function(it){return it.changes}),qe=[];return this._trans("readwrite",function(it){return ve.getMany({trans:it,keys:$e,cache:"clone"}).then(function(lt){var vt=[],Ct=[];Y.forEach(function(dt,Rt){var bt=dt.key,wt=dt.changes,It=lt[Rt];if(It){for(var xt=0,Ut=Object.keys(wt);xt<Ut.length;xt++){var Xt=Ut[xt],en=wt[Xt];if(Xt===re.schema.primKey.keyPath){if(Ge(en,bt)!==0)throw new ue.Constraint("Cannot update primary key in bulkUpdate()")}else E(It,Xt,en)}qe.push(Rt),vt.push(bt),Ct.push(It)}});var kt=vt.length;return ve.mutate({trans:it,type:"put",keys:vt,values:Ct,updates:{keys:$e,changeSpecs:He}}).then(function(dt){var Rt=dt.numFailures,bt=dt.failures;if(Rt===0)return kt;for(var wt=0,It=Object.keys(bt);wt<It.length;wt++){var xt,Ut=It[wt],Xt=qe[Number(Ut)];Xt!=null&&(xt=bt[Ut],delete bt[Ut],bt[Xt]=xt)}throw new fe("".concat(re.name,".bulkUpdate(): ").concat(Rt," of ").concat(kt," operations failed"),bt)})})})},Zn.prototype.bulkDelete=function(Y){var re=this,ve=Y.length;return this._trans("readwrite",function($e){return re.core.mutate({trans:$e,type:"delete",keys:Y})}).then(function(it){var He=it.numFailures,qe=it.lastResult,it=it.failures;if(He===0)return qe;throw new fe("".concat(re.name,".bulkDelete(): ").concat(He," of ").concat(ve," operations failed"),it)})},Zn);function Zn(){}function ni(Y){function re(it,lt){if(lt){for(var vt=arguments.length,Ct=new Array(vt-1);--vt;)Ct[vt-1]=arguments[vt];return ve[it].subscribe.apply(null,Ct),Y}if(typeof it=="string")return ve[it]}var ve={};re.addEventType=qe;for(var $e=1,He=arguments.length;$e<He;++$e)qe(arguments[$e]);return re;function qe(it,lt,vt){if(typeof it!="object"){var Ct;lt=lt||Fe;var kt={subscribers:[],fire:vt=vt||pe,subscribe:function(dt){kt.subscribers.indexOf(dt)===-1&&(kt.subscribers.push(dt),kt.fire=lt(kt.fire,dt))},unsubscribe:function(dt){kt.subscribers=kt.subscribers.filter(function(Rt){return Rt!==dt}),kt.fire=kt.subscribers.reduce(lt,vt)}};return ve[it]=re[it]=kt}a(Ct=it).forEach(function(dt){var Rt=Ct[dt];if(s(Rt))qe(dt,Ct[dt][0],Ct[dt][1]);else{if(Rt!=="asap")throw new ue.InvalidArgument("Invalid event config");var bt=qe(dt,he,function(){for(var wt=arguments.length,It=new Array(wt);wt--;)It[wt]=arguments[wt];bt.subscribers.forEach(function(xt){T(function(){xt.apply(null,It)})})})}})}}function zr(Y,re){return v(re).from({prototype:Y}),re}function Yr(Y,re){return!(Y.filter||Y.algorithm||Y.or)&&(re?Y.justLimit:!Y.replayFilter)}function Rr(Y,re){Y.filter=O(Y.filter,re)}function wn(Y,re,ve){var $e=Y.replayFilter;Y.replayFilter=$e?function(){return O($e(),re())}:re,Y.justLimit=ve&&!$e}function Pn(Y,re){if(Y.isPrimKey)return re.primaryKey;var ve=re.getIndexByKeyPath(Y.index);if(!ve)throw new ue.Schema("KeyPath "+Y.index+" on object store "+re.name+" is not indexed");return ve}function Ar(Y,re,ve){var $e=Pn(Y,re.schema);return re.openCursor({trans:ve,values:!Y.keysOnly,reverse:Y.dir==="prev",unique:!!Y.unique,query:{index:$e,range:Y.range}})}function bn(Y,re,ve,$e){var He=Y.replayFilter?O(Y.filter,Y.replayFilter()):Y.filter;if(Y.or){var qe={},it=function(lt,vt,Ct){var kt,dt;He&&!He(vt,Ct,function(Rt){return vt.stop(Rt)},function(Rt){return vt.fail(Rt)})||((dt=""+(kt=vt.primaryKey))=="[object ArrayBuffer]"&&(dt=""+new Uint8Array(kt)),d(qe,dt)||(qe[dt]=!0,re(lt,vt,Ct)))};return Promise.all([Y.or._iterate(it,ve),Cn(Ar(Y,$e,ve),Y.algorithm,it,!Y.keysOnly&&Y.valueMapper)])}return Cn(Ar(Y,$e,ve),O(Y.algorithm,He),re,!Y.keysOnly&&Y.valueMapper)}function Cn(Y,re,ve,$e){var He=ot($e?function(qe,it,lt){return ve($e(qe),it,lt)}:ve);return Y.then(function(qe){if(qe)return qe.start(function(){var it=function(){return qe.continue()};re&&!re(qe,function(lt){return it=lt},function(lt){qe.stop(lt),it=pe},function(lt){qe.fail(lt),it=pe})||He(qe.value,qe,function(lt){return it=lt}),it()})})}var nr=Symbol(),Ir=(li.prototype.execute=function(Y){if(this.add!==void 0){var re=this.add;if(s(re))return i(i([],s(Y)?Y:[],!0),re).sort();if(typeof re=="number")return(Number(Y)||0)+re;if(typeof re=="bigint")try{return BigInt(Y)+re}catch{return BigInt(0)+re}throw new TypeError("Invalid term ".concat(re))}if(this.remove!==void 0){var ve=this.remove;if(s(ve))return s(Y)?Y.filter(function($e){return!ve.includes($e)}).sort():[];if(typeof ve=="number")return Number(Y)-ve;if(typeof ve=="bigint")try{return BigInt(Y)-ve}catch{return BigInt(0)-ve}throw new TypeError("Invalid subtrahend ".concat(ve))}return re=(re=this.replacePrefix)===null||re===void 0?void 0:re[0],re&&typeof Y=="string"&&Y.startsWith(re)?this.replacePrefix[1]+Y.substring(re.length):Y},li);function li(Y){Object.assign(this,Y)}var Ui=(gr.prototype._read=function(Y,re){var ve=this._ctx;return ve.error?ve.table._trans(null,gt.bind(null,ve.error)):ve.table._trans("readonly",Y).then(re)},gr.prototype._write=function(Y){var re=this._ctx;return re.error?re.table._trans(null,gt.bind(null,re.error)):re.table._trans("readwrite",Y,"locked")},gr.prototype._addAlgorithm=function(Y){var re=this._ctx;re.algorithm=O(re.algorithm,Y)},gr.prototype._iterate=function(Y,re){return bn(this._ctx,Y,re,this._ctx.table.core)},gr.prototype.clone=function(Y){var re=Object.create(this.constructor.prototype),ve=Object.create(this._ctx);return Y&&l(ve,Y),re._ctx=ve,re},gr.prototype.raw=function(){return this._ctx.valueMapper=null,this},gr.prototype.each=function(Y){var re=this._ctx;return this._read(function(ve){return bn(re,Y,ve,re.table.core)})},gr.prototype.count=function(Y){var re=this;return this._read(function(ve){var $e=re._ctx,He=$e.table.core;if(Yr($e,!0))return He.count({trans:ve,query:{index:Pn($e,He.schema),range:$e.range}}).then(function(it){return Math.min(it,$e.limit)});var qe=0;return bn($e,function(){return++qe,!1},ve,He).then(function(){return qe})}).then(Y)},gr.prototype.sortBy=function(Y,re){var ve=Y.split(".").reverse(),$e=ve[0],He=ve.length-1;function qe(vt,Ct){return Ct?qe(vt[ve[Ct]],Ct-1):vt[$e]}var it=this._ctx.dir==="next"?1:-1;function lt(vt,Ct){return Ge(qe(vt,He),qe(Ct,He))*it}return this.toArray(function(vt){return vt.sort(lt)}).then(re)},gr.prototype.toArray=function(Y){var re=this;return this._read(function(ve){var $e=re._ctx;if($e.dir==="next"&&Yr($e,!0)&&0<$e.limit){var He=$e.valueMapper,qe=Pn($e,$e.table.core.schema);return $e.table.core.query({trans:ve,limit:$e.limit,values:!0,query:{index:qe,range:$e.range}}).then(function(lt){return lt=lt.result,He?lt.map(He):lt})}var it=[];return bn($e,function(lt){return it.push(lt)},ve,$e.table.core).then(function(){return it})},Y)},gr.prototype.offset=function(Y){var re=this._ctx;return Y<=0||(re.offset+=Y,Yr(re)?wn(re,function(){var ve=Y;return function($e,He){return ve===0||(ve===1?--ve:He(function(){$e.advance(ve),ve=0}),!1)}}):wn(re,function(){var ve=Y;return function(){return--ve<0}})),this},gr.prototype.limit=function(Y){return this._ctx.limit=Math.min(this._ctx.limit,Y),wn(this._ctx,function(){var re=Y;return function(ve,$e,He){return--re<=0&&$e(He),0<=re}},!0),this},gr.prototype.until=function(Y,re){return Rr(this._ctx,function(ve,$e,He){return!Y(ve.value)||($e(He),re)}),this},gr.prototype.first=function(Y){return this.limit(1).toArray(function(re){return re[0]}).then(Y)},gr.prototype.last=function(Y){return this.reverse().first(Y)},gr.prototype.filter=function(Y){var re;return Rr(this._ctx,function(ve){return Y(ve.value)}),(re=this._ctx).isMatch=O(re.isMatch,Y),this},gr.prototype.and=function(Y){return this.filter(Y)},gr.prototype.or=function(Y){return new this.db.WhereClause(this._ctx.table,Y,this)},gr.prototype.reverse=function(){return this._ctx.dir=this._ctx.dir==="prev"?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},gr.prototype.desc=function(){return this.reverse()},gr.prototype.eachKey=function(Y){var re=this._ctx;return re.keysOnly=!re.isMatch,this.each(function(ve,$e){Y($e.key,$e)})},gr.prototype.eachUniqueKey=function(Y){return this._ctx.unique="unique",this.eachKey(Y)},gr.prototype.eachPrimaryKey=function(Y){var re=this._ctx;return re.keysOnly=!re.isMatch,this.each(function(ve,$e){Y($e.primaryKey,$e)})},gr.prototype.keys=function(Y){var re=this._ctx;re.keysOnly=!re.isMatch;var ve=[];return this.each(function($e,He){ve.push(He.key)}).then(function(){return ve}).then(Y)},gr.prototype.primaryKeys=function(Y){var re=this._ctx;if(re.dir==="next"&&Yr(re,!0)&&0<re.limit)return this._read(function($e){var He=Pn(re,re.table.core.schema);return re.table.core.query({trans:$e,values:!1,limit:re.limit,query:{index:He,range:re.range}})}).then(function($e){return $e.result}).then(Y);re.keysOnly=!re.isMatch;var ve=[];return this.each(function($e,He){ve.push(He.primaryKey)}).then(function(){return ve}).then(Y)},gr.prototype.uniqueKeys=function(Y){return this._ctx.unique="unique",this.keys(Y)},gr.prototype.firstKey=function(Y){return this.limit(1).keys(function(re){return re[0]}).then(Y)},gr.prototype.lastKey=function(Y){return this.reverse().firstKey(Y)},gr.prototype.distinct=function(){var Y=this._ctx,Y=Y.index&&Y.table.schema.idxByName[Y.index];if(!Y||!Y.multi)return this;var re={};return Rr(this._ctx,function(He){var $e=He.primaryKey.toString(),He=d(re,$e);return re[$e]=!0,!He}),this},gr.prototype.modify=function(Y){var re=this,ve=this._ctx;return this._write(function($e){var He,qe,it;it=typeof Y=="function"?Y:(He=a(Y),qe=He.length,function(xt){for(var Ut=!1,Xt=0;Xt<qe;++Xt){var en=He[Xt],un=Y[en],_n=x(xt,en);un instanceof Ir?(E(xt,en,un.execute(_n)),Ut=!0):_n!==un&&(E(xt,en,un),Ut=!0)}return Ut});var lt=ve.table.core,dt=lt.schema.primaryKey,vt=dt.outbound,Ct=dt.extractKey,kt=200,dt=re.db._options.modifyChunkSize;dt&&(kt=typeof dt=="object"?dt[lt.name]||dt["*"]||200:dt);function Rt(xt,en){var Xt=en.failures,en=en.numFailures;wt+=xt-en;for(var un=0,_n=a(Xt);un<_n.length;un++){var An=_n[un];bt.push(Xt[An])}}var bt=[],wt=0,It=[];return re.clone().primaryKeys().then(function(xt){function Ut(en){var un=Math.min(kt,xt.length-en);return lt.getMany({trans:$e,keys:xt.slice(en,en+un),cache:"immutable"}).then(function(_n){for(var An=[],yn=[],kn=vt?[]:null,jn=[],Ln=0;Ln<un;++Ln){var tr=_n[Ln],Br={value:A(tr),primKey:xt[en+Ln]};it.call(Br,Br.value,Br)!==!1&&(Br.value==null?jn.push(xt[en+Ln]):vt||Ge(Ct(tr),Ct(Br.value))===0?(yn.push(Br.value),vt&&kn.push(xt[en+Ln])):(jn.push(xt[en+Ln]),An.push(Br.value)))}return Promise.resolve(0<An.length&<.mutate({trans:$e,type:"add",values:An}).then(function(Ur){for(var Xr in Ur.failures)jn.splice(parseInt(Xr),1);Rt(An.length,Ur)})).then(function(){return(0<yn.length||Xt&&typeof Y=="object")&<.mutate({trans:$e,type:"put",keys:kn,values:yn,criteria:Xt,changeSpec:typeof Y!="function"&&Y,isAdditionalChunk:0<en}).then(function(Ur){return Rt(yn.length,Ur)})}).then(function(){return(0<jn.length||Xt&&Y===Di)&<.mutate({trans:$e,type:"delete",keys:jn,criteria:Xt,isAdditionalChunk:0<en}).then(function(Ur){return Rt(jn.length,Ur)})}).then(function(){return xt.length>en+un&&Ut(en+kt)})})}var Xt=Yr(ve)&&ve.limit===1/0&&(typeof Y!="function"||Y===Di)&&{index:ve.index,range:ve.range};return Ut(0).then(function(){if(0<bt.length)throw new ce("Error modifying one or more objects",bt,wt,It);return xt.length})})})},gr.prototype.delete=function(){var Y=this._ctx,re=Y.range;return Yr(Y)&&(Y.isPrimKey||re.type===3)?this._write(function(ve){var $e=Y.table.core.schema.primaryKey,He=re;return Y.table.core.count({trans:ve,query:{index:$e,range:He}}).then(function(qe){return Y.table.core.mutate({trans:ve,type:"deleteRange",range:He}).then(function(it){var lt=it.failures;if(it.lastResult,it.results,it=it.numFailures,it)throw new ce("Could not delete some values",Object.keys(lt).map(function(vt){return lt[vt]}),qe-it);return qe-it})})}):this.modify(Di)},gr);function gr(){}var Di=function(Y,re){return re.value=null};function fr(Y,re){return Y<re?-1:Y===re?0:1}function xn(Y,re){return re<Y?-1:Y===re?0:1}function zn(Y,re,ve){return Y=Y instanceof na?new Y.Collection(Y):Y,Y._ctx.error=new(ve||TypeError)(re),Y}function Gn(Y){return new Y.Collection(Y,function(){return Ro("")}).limit(0)}function ir(Y,re,ve,$e){var He,qe,it,lt,vt,Ct,kt,dt=ve.length;if(!ve.every(function(wt){return typeof wt=="string"}))return zn(Y,mt);function Rt(wt){He=wt==="next"?function(xt){return xt.toUpperCase()}:function(xt){return xt.toLowerCase()},qe=wt==="next"?function(xt){return xt.toLowerCase()}:function(xt){return xt.toUpperCase()},it=wt==="next"?fr:xn;var It=ve.map(function(xt){return{lower:qe(xt),upper:He(xt)}}).sort(function(xt,Ut){return it(xt.lower,Ut.lower)});lt=It.map(function(xt){return xt.upper}),vt=It.map(function(xt){return xt.lower}),kt=(Ct=wt)==="next"?"":$e}Rt("next"),Y=new Y.Collection(Y,function(){return jr(lt[0],vt[dt-1]+$e)}),Y._ondirectionchange=function(wt){Rt(wt)};var bt=0;return Y._addAlgorithm(function(wt,It,xt){var Ut=wt.key;if(typeof Ut!="string")return!1;var Xt=qe(Ut);if(re(Xt,vt,bt))return!0;for(var en=null,un=bt;un<dt;++un){var _n=function(An,yn,kn,jn,Ln,tr){for(var Br=Math.min(An.length,jn.length),Ur=-1,Xr=0;Xr<Br;++Xr){var cs=yn[Xr];if(cs!==jn[Xr])return Ln(An[Xr],kn[Xr])<0?An.substr(0,Xr)+kn[Xr]+kn.substr(Xr+1):Ln(An[Xr],jn[Xr])<0?An.substr(0,Xr)+jn[Xr]+kn.substr(Xr+1):0<=Ur?An.substr(0,Ur)+yn[Ur]+kn.substr(Ur+1):null;Ln(An[Xr],cs)<0&&(Ur=Xr)}return Br<jn.length&&tr==="next"?An+kn.substr(An.length):Br<An.length&&tr==="prev"?An.substr(0,kn.length):Ur<0?null:An.substr(0,Ur)+jn[Ur]+kn.substr(Ur+1)}(Ut,Xt,lt[un],vt[un],it,Ct);_n===null&&en===null?bt=un+1:(en===null||0<it(en,_n))&&(en=_n)}return It(en!==null?function(){wt.continue(en+kt)}:xt),!1}),Y}function jr(Y,re,ve,$e){return{type:2,lower:Y,upper:re,lowerOpen:ve,upperOpen:$e}}function Ro(Y){return{type:1,lower:Y,upper:Y}}var na=(Object.defineProperty(Ei.prototype,"Collection",{get:function(){return this._ctx.table.db.Collection},enumerable:!1,configurable:!0}),Ei.prototype.between=function(Y,re,ve,$e){ve=ve!==!1,$e=$e===!0;try{return 0<this._cmp(Y,re)||this._cmp(Y,re)===0&&(ve||$e)&&(!ve||!$e)?Gn(this):new this.Collection(this,function(){return jr(Y,re,!ve,!$e)})}catch{return zn(this,Yt)}},Ei.prototype.equals=function(Y){return Y==null?zn(this,Yt):new this.Collection(this,function(){return Ro(Y)})},Ei.prototype.above=function(Y){return Y==null?zn(this,Yt):new this.Collection(this,function(){return jr(Y,void 0,!0)})},Ei.prototype.aboveOrEqual=function(Y){return Y==null?zn(this,Yt):new this.Collection(this,function(){return jr(Y,void 0,!1)})},Ei.prototype.below=function(Y){return Y==null?zn(this,Yt):new this.Collection(this,function(){return jr(void 0,Y,!1,!0)})},Ei.prototype.belowOrEqual=function(Y){return Y==null?zn(this,Yt):new this.Collection(this,function(){return jr(void 0,Y)})},Ei.prototype.startsWith=function(Y){return typeof Y!="string"?zn(this,mt):this.between(Y,Y+Ve,!0,!0)},Ei.prototype.startsWithIgnoreCase=function(Y){return Y===""?this.startsWith(Y):ir(this,function(re,ve){return re.indexOf(ve[0])===0},[Y],Ve)},Ei.prototype.equalsIgnoreCase=function(Y){return ir(this,function(re,ve){return re===ve[0]},[Y],"")},Ei.prototype.anyOfIgnoreCase=function(){var Y=N.apply(Z,arguments);return Y.length===0?Gn(this):ir(this,function(re,ve){return ve.indexOf(re)!==-1},Y,"")},Ei.prototype.startsWithAnyOfIgnoreCase=function(){var Y=N.apply(Z,arguments);return Y.length===0?Gn(this):ir(this,function(re,ve){return ve.some(function($e){return re.indexOf($e)===0})},Y,Ve)},Ei.prototype.anyOf=function(){var Y=this,re=N.apply(Z,arguments),ve=this._cmp;try{re.sort(ve)}catch{return zn(this,Yt)}if(re.length===0)return Gn(this);var $e=new this.Collection(this,function(){return jr(re[0],re[re.length-1])});$e._ondirectionchange=function(qe){ve=qe==="next"?Y._ascending:Y._descending,re.sort(ve)};var He=0;return $e._addAlgorithm(function(qe,it,lt){for(var vt=qe.key;0<ve(vt,re[He]);)if(++He===re.length)return it(lt),!1;return ve(vt,re[He])===0||(it(function(){qe.continue(re[He])}),!1)}),$e},Ei.prototype.notEqual=function(Y){return this.inAnyRange([[-1/0,Y],[Y,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},Ei.prototype.noneOf=function(){var Y=N.apply(Z,arguments);if(Y.length===0)return new this.Collection(this);try{Y.sort(this._ascending)}catch{return zn(this,Yt)}var re=Y.reduce(function(ve,$e){return ve?ve.concat([[ve[ve.length-1][1],$e]]):[[-1/0,$e]]},null);return re.push([Y[Y.length-1],this.db._maxKey]),this.inAnyRange(re,{includeLowers:!1,includeUppers:!1})},Ei.prototype.inAnyRange=function(Ut,re){var ve=this,$e=this._cmp,He=this._ascending,qe=this._descending,it=this._min,lt=this._max;if(Ut.length===0)return Gn(this);if(!Ut.every(function(Xt){return Xt[0]!==void 0&&Xt[1]!==void 0&&He(Xt[0],Xt[1])<=0}))return zn(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",ue.InvalidArgument);var vt=!re||re.includeLowers!==!1,Ct=re&&re.includeUppers===!0,kt,dt=He;function Rt(Xt,en){return dt(Xt[0],en[0])}try{(kt=Ut.reduce(function(Xt,en){for(var un=0,_n=Xt.length;un<_n;++un){var An=Xt[un];if($e(en[0],An[1])<0&&0<$e(en[1],An[0])){An[0]=it(An[0],en[0]),An[1]=lt(An[1],en[1]);break}}return un===_n&&Xt.push(en),Xt},[])).sort(Rt)}catch{return zn(this,Yt)}var bt=0,wt=Ct?function(Xt){return 0<He(Xt,kt[bt][1])}:function(Xt){return 0<=He(Xt,kt[bt][1])},It=vt?function(Xt){return 0<qe(Xt,kt[bt][0])}:function(Xt){return 0<=qe(Xt,kt[bt][0])},xt=wt,Ut=new this.Collection(this,function(){return jr(kt[0][0],kt[kt.length-1][1],!vt,!Ct)});return Ut._ondirectionchange=function(Xt){dt=Xt==="next"?(xt=wt,He):(xt=It,qe),kt.sort(Rt)},Ut._addAlgorithm(function(Xt,en,un){for(var _n,An=Xt.key;xt(An);)if(++bt===kt.length)return en(un),!1;return!wt(_n=An)&&!It(_n)||(ve._cmp(An,kt[bt][1])===0||ve._cmp(An,kt[bt][0])===0||en(function(){dt===He?Xt.continue(kt[bt][0]):Xt.continue(kt[bt][1])}),!1)}),Ut},Ei.prototype.startsWithAnyOf=function(){var Y=N.apply(Z,arguments);return Y.every(function(re){return typeof re=="string"})?Y.length===0?Gn(this):this.inAnyRange(Y.map(function(re){return[re,re+Ve]})):zn(this,"startsWithAnyOf() only works with strings")},Ei);function Ei(){}function ra(Y){return ot(function(re){return Zl(re),Y(re.target.error),!1})}function Zl(Y){Y.stopPropagation&&Y.stopPropagation(),Y.preventDefault&&Y.preventDefault()}var qc="storagemutated",lh="x-storagemutated-1",qn=ni(null,qc),kr=(Jr.prototype._lock=function(){return _(!ze.global),++this._reculock,this._reculock!==1||ze.global||(ze.lockOwnerFor=this),this},Jr.prototype._unlock=function(){if(_(!ze.global),--this._reculock==0)for(ze.global||(ze.lockOwnerFor=null);0<this._blockedFuncs.length&&!this._locked();){var Y=this._blockedFuncs.shift();try{nn(Y[1],Y[0])}catch{}}return this},Jr.prototype._locked=function(){return this._reculock&&ze.lockOwnerFor!==this},Jr.prototype.create=function(Y){var re=this;if(!this.mode)return this;var ve=this.db.idbdb,$e=this.db._state.dbOpenError;if(_(!this.idbtrans),!Y&&!ve)switch($e&&$e.name){case"DatabaseClosedError":throw new ue.DatabaseClosed($e);case"MissingAPIError":throw new ue.MissingAPI($e.message,$e);default:throw new ue.OpenFailed($e)}if(!this.active)throw new ue.TransactionInactive;return _(this._completion._state===null),(Y=this.idbtrans=Y||(this.db.core||ve).transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability})).onerror=ot(function(He){Zl(He),re._reject(Y.error)}),Y.onabort=ot(function(He){Zl(He),re.active&&re._reject(new ue.Abort(Y.error)),re.active=!1,re.on("abort").fire(He)}),Y.oncomplete=ot(function(){re.active=!1,re._resolve(),"mutatedParts"in Y&&qn.storagemutated.fire(Y.mutatedParts)}),this},Jr.prototype._promise=function(Y,re,ve){var $e=this;if(Y==="readwrite"&&this.mode!=="readwrite")return gt(new ue.ReadOnly("Transaction is readonly"));if(!this.active)return gt(new ue.TransactionInactive);if(this._locked())return new Ze(function(qe,it){$e._blockedFuncs.push([function(){$e._promise(Y,re,ve).then(qe,it)},ze])});if(ve)return At(function(){var qe=new Ze(function(it,lt){$e._lock();var vt=re(it,lt,$e);vt&&vt.then&&vt.then(it,lt)});return qe.finally(function(){return $e._unlock()}),qe._lib=!0,qe});var He=new Ze(function(qe,it){var lt=re(qe,it,$e);lt&<.then&<.then(qe,it)});return He._lib=!0,He},Jr.prototype._root=function(){return this.parent?this.parent._root():this},Jr.prototype.waitFor=function(Y){var re,ve=this._root(),$e=Ze.resolve(Y);ve._waitingFor?ve._waitingFor=ve._waitingFor.then(function(){return $e}):(ve._waitingFor=$e,ve._waitingQueue=[],re=ve.idbtrans.objectStore(ve.storeNames[0]),function qe(){for(++ve._spinCount;ve._waitingQueue.length;)ve._waitingQueue.shift()();ve._waitingFor&&(re.get(-1/0).onsuccess=qe)}());var He=ve._waitingFor;return new Ze(function(qe,it){$e.then(function(lt){return ve._waitingQueue.push(ot(qe.bind(null,lt)))},function(lt){return ve._waitingQueue.push(ot(it.bind(null,lt)))}).finally(function(){ve._waitingFor===He&&(ve._waitingFor=null)})})},Jr.prototype.abort=function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new ue.Abort))},Jr.prototype.table=function(Y){var re=this._memoizedTables||(this._memoizedTables={});if(d(re,Y))return re[Y];var ve=this.schema[Y];if(!ve)throw new ue.NotFound("Table "+Y+" not part of transaction");return ve=new this.db.Table(Y,ve,this),ve.core=this.db.core.table(Y),re[Y]=ve},Jr);function Jr(){}function Wi(Y,re,ve,$e,He,qe,it){return{name:Y,keyPath:re,unique:ve,multi:$e,auto:He,compound:qe,src:(ve&&!it?"&":"")+($e?"*":"")+(He?"++":"")+Li(re)}}function Li(Y){return typeof Y=="string"?Y:Y?"["+[].join.call(Y,"+")+"]":""}function Uu(Y,re,ve){return{name:Y,primKey:re,indexes:ve,mappedClass:null,idxByName:($e=function(He){return[He.name,He]},ve.reduce(function(He,qe,it){return it=$e(qe,it),it&&(He[it[0]]=it[1]),He},{}))};var $e}var Gc=function(Y){try{return Y.only([[]]),Gc=function(){return[[]]},[[]]}catch{return Gc=function(){return Ve},Ve}};function Wu(Y){return Y==null?function(){}:typeof Y=="string"?(re=Y).split(".").length===1?function(ve){return ve[re]}:function(ve){return x(ve,re)}:function(ve){return x(ve,Y)};var re}function ch(Y){return[].slice.call(Y)}var O4=0;function ls(Y){return Y==null?":id":typeof Y=="string"?Y:"[".concat(Y.join("+"),"]")}function gI(Y,re,vt){function $e(xt){if(xt.type===3)return null;if(xt.type===4)throw new Error("Cannot convert never type to IDBKeyRange");var bt=xt.lower,wt=xt.upper,It=xt.lowerOpen,xt=xt.upperOpen;return bt===void 0?wt===void 0?null:re.upperBound(wt,!!xt):wt===void 0?re.lowerBound(bt,!!It):re.bound(bt,wt,!!It,!!xt)}function He(Rt){var bt,wt=Rt.name;return{name:wt,schema:Rt,mutate:function(It){var xt=It.trans,Ut=It.type,Xt=It.keys,en=It.values,un=It.range;return new Promise(function(_n,An){_n=ot(_n);var yn=xt.objectStore(wt),kn=yn.keyPath==null,jn=Ut==="put"||Ut==="add";if(!jn&&Ut!=="delete"&&Ut!=="deleteRange")throw new Error("Invalid operation type: "+Ut);var Ln,tr=(Xt||en||{length:1}).length;if(Xt&&en&&Xt.length!==en.length)throw new Error("Given keys array must have same length as given values array.");if(tr===0)return _n({numFailures:0,failures:{},results:[],lastResult:void 0});function Br($a){++cs,Zl($a)}var Ur=[],Xr=[],cs=0;if(Ut==="deleteRange"){if(un.type===4)return _n({numFailures:cs,failures:Xr,results:[],lastResult:void 0});un.type===3?Ur.push(Ln=yn.clear()):Ur.push(Ln=yn.delete($e(un)))}else{var kn=jn?kn?[en,Xt]:[en,null]:[Xt,null],Nr=kn[0],Ya=kn[1];if(jn)for(var ya=0;ya<tr;++ya)Ur.push(Ln=Ya&&Ya[ya]!==void 0?yn[Ut](Nr[ya],Ya[ya]):yn[Ut](Nr[ya])),Ln.onerror=Br;else for(ya=0;ya<tr;++ya)Ur.push(Ln=yn[Ut](Nr[ya])),Ln.onerror=Br}function $g($a){$a=$a.target.result,Ur.forEach(function(Yu,lf){return Yu.error!=null&&(Xr[lf]=Yu.error)}),_n({numFailures:cs,failures:Xr,results:Ut==="delete"?Xt:Ur.map(function(Yu){return Yu.result}),lastResult:$a})}Ln.onerror=function($a){Br($a),$g($a)},Ln.onsuccess=$g})},getMany:function(It){var xt=It.trans,Ut=It.keys;return new Promise(function(Xt,en){Xt=ot(Xt);for(var un,_n=xt.objectStore(wt),An=Ut.length,yn=new Array(An),kn=0,jn=0,Ln=function(Ur){Ur=Ur.target,yn[Ur._pos]=Ur.result,++jn===kn&&Xt(yn)},tr=ra(en),Br=0;Br<An;++Br)Ut[Br]!=null&&((un=_n.get(Ut[Br]))._pos=Br,un.onsuccess=Ln,un.onerror=tr,++kn);kn===0&&Xt(yn)})},get:function(It){var xt=It.trans,Ut=It.key;return new Promise(function(Xt,en){Xt=ot(Xt);var un=xt.objectStore(wt).get(Ut);un.onsuccess=function(_n){return Xt(_n.target.result)},un.onerror=ra(en)})},query:(bt=Ct,function(It){return new Promise(function(xt,Ut){xt=ot(xt);var Xt,en,un,kn=It.trans,_n=It.values,An=It.limit,Ln=It.query,yn=An===1/0?void 0:An,jn=Ln.index,Ln=Ln.range,kn=kn.objectStore(wt),jn=jn.isPrimaryKey?kn:kn.index(jn.name),Ln=$e(Ln);if(An===0)return xt({result:[]});bt?((yn=_n?jn.getAll(Ln,yn):jn.getAllKeys(Ln,yn)).onsuccess=function(tr){return xt({result:tr.target.result})},yn.onerror=ra(Ut)):(Xt=0,en=!_n&&"openKeyCursor"in jn?jn.openKeyCursor(Ln):jn.openCursor(Ln),un=[],en.onsuccess=function(tr){var Br=en.result;return Br?(un.push(_n?Br.value:Br.primaryKey),++Xt===An?xt({result:un}):void Br.continue()):xt({result:un})},en.onerror=ra(Ut))})}),openCursor:function(It){var xt=It.trans,Ut=It.values,Xt=It.query,en=It.reverse,un=It.unique;return new Promise(function(_n,An){_n=ot(_n);var jn=Xt.index,yn=Xt.range,kn=xt.objectStore(wt),kn=jn.isPrimaryKey?kn:kn.index(jn.name),jn=en?un?"prevunique":"prev":un?"nextunique":"next",Ln=!Ut&&"openKeyCursor"in kn?kn.openKeyCursor($e(yn),jn):kn.openCursor($e(yn),jn);Ln.onerror=ra(An),Ln.onsuccess=ot(function(tr){var Br,Ur,Xr,cs,Nr=Ln.result;Nr?(Nr.___id=++O4,Nr.done=!1,Br=Nr.continue.bind(Nr),Ur=(Ur=Nr.continuePrimaryKey)&&Ur.bind(Nr),Xr=Nr.advance.bind(Nr),cs=function(){throw new Error("Cursor not stopped")},Nr.trans=xt,Nr.stop=Nr.continue=Nr.continuePrimaryKey=Nr.advance=function(){throw new Error("Cursor not started")},Nr.fail=ot(An),Nr.next=function(){var Ya=this,ya=1;return this.start(function(){return ya--?Ya.continue():Ya.stop()}).then(function(){return Ya})},Nr.start=function(Ya){function ya(){if(Ln.result)try{Ya()}catch($a){Nr.fail($a)}else Nr.done=!0,Nr.start=function(){throw new Error("Cursor behind last entry")},Nr.stop()}var $g=new Promise(function($a,Yu){$a=ot($a),Ln.onerror=ra(Yu),Nr.fail=Yu,Nr.stop=function(lf){Nr.stop=Nr.continue=Nr.continuePrimaryKey=Nr.advance=cs,$a(lf)}});return Ln.onsuccess=ot(function($a){Ln.onsuccess=ya,ya()}),Nr.continue=Br,Nr.continuePrimaryKey=Ur,Nr.advance=Xr,ya(),$g},_n(Nr)):_n(null)},An)})},count:function(It){var xt=It.query,Ut=It.trans,Xt=xt.index,en=xt.range;return new Promise(function(un,_n){var An=Ut.objectStore(wt),yn=Xt.isPrimaryKey?An:An.index(Xt.name),An=$e(en),yn=An?yn.count(An):yn.count();yn.onsuccess=ot(function(kn){return un(kn.target.result)}),yn.onerror=ra(_n)})}}}var qe,it,lt,kt=(it=vt,lt=ch((qe=Y).objectStoreNames),{schema:{name:qe.name,tables:lt.map(function(Rt){return it.objectStore(Rt)}).map(function(Rt){var bt=Rt.keyPath,xt=Rt.autoIncrement,wt=s(bt),It={},xt={name:Rt.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:bt==null,compound:wt,keyPath:bt,autoIncrement:xt,unique:!0,extractKey:Wu(bt)},indexes:ch(Rt.indexNames).map(function(Ut){return Rt.index(Ut)}).map(function(un){var Xt=un.name,en=un.unique,_n=un.multiEntry,un=un.keyPath,_n={name:Xt,compound:s(un),keyPath:un,unique:en,multiEntry:_n,extractKey:Wu(un)};return It[ls(un)]=_n}),getIndexByKeyPath:function(Ut){return It[ls(Ut)]}};return It[":id"]=xt.primaryKey,bt!=null&&(It[ls(bt)]=xt.primaryKey),xt})},hasGetAll:0<lt.length&&"getAll"in it.objectStore(lt[0])&&!(typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}),vt=kt.schema,Ct=kt.hasGetAll,kt=vt.tables.map(He),dt={};return kt.forEach(function(Rt){return dt[Rt.name]=Rt}),{stack:"dbcore",transaction:Y.transaction.bind(Y),table:function(Rt){if(!dt[Rt])throw new Error("Table '".concat(Rt,"' not found"));return dt[Rt]},MIN_KEY:-1/0,MAX_KEY:Gc(re),schema:vt}}function vI(Y,re,ve,$e){var He=ve.IDBKeyRange;return ve.indexedDB,{dbcore:($e=gI(re,He,$e),Y.dbcore.reduce(function(qe,it){return it=it.create,r(r({},qe),it(qe))},$e))}}function Lp(Y,$e){var ve=$e.db,$e=vI(Y._middlewares,ve,Y._deps,$e);Y.core=$e.dbcore,Y.tables.forEach(function(He){var qe=He.name;Y.core.schema.tables.some(function(it){return it.name===qe})&&(He.core=Y.core.table(qe),Y[qe]instanceof Y.Table&&(Y[qe].core=He.core))})}function Og(Y,re,ve,$e){ve.forEach(function(He){var qe=$e[He];re.forEach(function(it){var lt=function vt(Ct,kt){return y(Ct,kt)||(Ct=c(Ct))&&vt(Ct,kt)}(it,He);(!lt||"value"in lt&<.value===void 0)&&(it===Y.Transaction.prototype||it instanceof Y.Transaction?m(it,He,{get:function(){return this.table(He)},set:function(vt){p(this,He,{value:vt,writable:!0,configurable:!0,enumerable:!0})}}):it[He]=new Y.Table(He,qe))})})}function Yc(Y,re){re.forEach(function(ve){for(var $e in ve)ve[$e]instanceof Y.Table&&delete ve[$e]})}function HC(Y,re){return Y._cfg.version-re._cfg.version}function Vu(Y,re,ve,$e){var He=Y._dbSchema;ve.objectStoreNames.contains("$meta")&&!He.$meta&&(He.$meta=Uu("$meta",zC("")[0],[]),Y._storeNames.push("$meta"));var qe=Y._createTransaction("readwrite",Y._storeNames,He);qe.create(ve),qe._completion.catch($e);var it=qe._reject.bind(qe),lt=ze.transless||ze;At(function(){return ze.trans=qe,ze.transless=lt,re!==0?(Lp(Y,ve),Ct=re,((vt=qe).storeNames.includes("$meta")?vt.table("$meta").get("version").then(function(kt){return kt??Ct}):Ze.resolve(Ct)).then(function(kt){return Rt=kt,bt=qe,wt=ve,It=[],kt=(dt=Y)._versions,xt=dt._dbSchema=m0(0,dt.idbdb,wt),(kt=kt.filter(function(Ut){return Ut._cfg.version>=Rt})).length!==0?(kt.forEach(function(Ut){It.push(function(){var Xt=xt,en=Ut._cfg.dbschema;g0(dt,Xt,wt),g0(dt,en,wt),xt=dt._dbSchema=en;var un=Pg(Xt,en);un.add.forEach(function(jn){rf(wt,jn[0],jn[1].primKey,jn[1].indexes)}),un.change.forEach(function(jn){if(jn.recreate)throw new ue.Upgrade("Not yet support for changing primary key");var Ln=wt.objectStore(jn.name);jn.add.forEach(function(tr){return p0(Ln,tr)}),jn.change.forEach(function(tr){Ln.deleteIndex(tr.name),p0(Ln,tr)}),jn.del.forEach(function(tr){return Ln.deleteIndex(tr)})});var _n=Ut._cfg.contentUpgrade;if(_n&&Ut._cfg.version>Rt){Lp(dt,wt),bt._memoizedTables={};var An=k(en);un.del.forEach(function(jn){An[jn]=Xt[jn]}),Yc(dt,[dt.Transaction.prototype]),Og(dt,[dt.Transaction.prototype],a(An),An),bt.schema=An;var yn,kn=B(_n);return kn&&$t(),un=Ze.follow(function(){var jn;(yn=_n(bt))&&kn&&(jn=Gt.bind(null,null),yn.then(jn,jn))}),yn&&typeof yn.then=="function"?Ze.resolve(yn):un.then(function(){return yn})}}),It.push(function(Xt){var en,un,_n=Ut._cfg.dbschema;en=_n,un=Xt,[].slice.call(un.db.objectStoreNames).forEach(function(An){return en[An]==null&&un.db.deleteObjectStore(An)}),Yc(dt,[dt.Transaction.prototype]),Og(dt,[dt.Transaction.prototype],dt._storeNames,dt._dbSchema),bt.schema=dt._dbSchema}),It.push(function(Xt){dt.idbdb.objectStoreNames.contains("$meta")&&(Math.ceil(dt.idbdb.version/10)===Ut._cfg.version?(dt.idbdb.deleteObjectStore("$meta"),delete dt._dbSchema.$meta,dt._storeNames=dt._storeNames.filter(function(en){return en!=="$meta"})):Xt.objectStore("$meta").put(Ut._cfg.version,"version"))})}),function Ut(){return It.length?Ze.resolve(It.shift()(bt.idbtrans)).then(Ut):Ze.resolve()}().then(function(){P4(xt,wt)})):Ze.resolve();var dt,Rt,bt,wt,It,xt}).catch(it)):(a(He).forEach(function(kt){rf(ve,kt,He[kt].primKey,He[kt].indexes)}),Lp(Y,ve),void Ze.follow(function(){return Y.on.populate.fire(qe)}).catch(it));var vt,Ct})}function h0(Y,re){P4(Y._dbSchema,re),re.db.version%10!=0||re.objectStoreNames.contains("$meta")||re.db.createObjectStore("$meta").add(Math.ceil(re.db.version/10-1),"version");var ve=m0(0,Y.idbdb,re);g0(Y,Y._dbSchema,re);for(var $e=0,He=Pg(ve,Y._dbSchema).change;$e<He.length;$e++){var qe=function(it){if(it.change.length||it.recreate)return console.warn("Unable to patch indexes of table ".concat(it.name," because it has changes on the type of index or primary key.")),{value:void 0};var lt=re.objectStore(it.name);it.add.forEach(function(vt){Te&&console.debug("Dexie upgrade patch: Creating missing index ".concat(it.name,".").concat(vt.src)),p0(lt,vt)})}(He[$e]);if(typeof qe=="object")return qe.value}}function Pg(Y,re){var ve,$e={del:[],add:[],change:[]};for(ve in Y)re[ve]||$e.del.push(ve);for(ve in re){var He=Y[ve],qe=re[ve];if(He){var it={name:ve,def:qe,recreate:!1,del:[],add:[],change:[]};if(""+(He.primKey.keyPath||"")!=""+(qe.primKey.keyPath||"")||He.primKey.auto!==qe.primKey.auto)it.recreate=!0,$e.change.push(it);else{var lt=He.idxByName,vt=qe.idxByName,Ct=void 0;for(Ct in lt)vt[Ct]||it.del.push(Ct);for(Ct in vt){var kt=lt[Ct],dt=vt[Ct];kt?kt.src!==dt.src&&it.change.push(dt):it.add.push(dt)}(0<it.del.length||0<it.add.length||0<it.change.length)&&$e.change.push(it)}}else $e.add.push([ve,qe])}return $e}function rf(Y,re,ve,$e){var He=Y.db.createObjectStore(re,ve.keyPath?{keyPath:ve.keyPath,autoIncrement:ve.auto}:{autoIncrement:ve.auto});return $e.forEach(function(qe){return p0(He,qe)}),He}function P4(Y,re){a(Y).forEach(function(ve){re.db.objectStoreNames.contains(ve)||(Te&&console.debug("Dexie: Creating missing table",ve),rf(re,ve,Y[ve].primKey,Y[ve].indexes))})}function p0(Y,re){Y.createIndex(re.name,re.keyPath,{unique:re.unique,multiEntry:re.multi})}function m0(Y,re,ve){var $e={};return b(re.objectStoreNames,0).forEach(function(He){for(var qe=ve.objectStore(He),it=Wi(Li(Ct=qe.keyPath),Ct||"",!0,!1,!!qe.autoIncrement,Ct&&typeof Ct!="string",!0),lt=[],vt=0;vt<qe.indexNames.length;++vt){var kt=qe.index(qe.indexNames[vt]),Ct=kt.keyPath,kt=Wi(kt.name,Ct,!!kt.unique,!!kt.multiEntry,!1,Ct&&typeof Ct!="string",!1);lt.push(kt)}$e[He]=Uu(He,it,lt)}),$e}function g0(Y,re,ve){for(var $e=ve.db.objectStoreNames,He=0;He<$e.length;++He){var qe=$e[He],it=ve.objectStore(qe);Y._hasGetAll="getAll"in it;for(var lt=0;lt<it.indexNames.length;++lt){var vt=it.indexNames[lt],Ct=it.index(vt).keyPath,kt=typeof Ct=="string"?Ct:"["+b(Ct).join("+")+"]";!re[qe]||(Ct=re[qe].idxByName[kt])&&(Ct.name=vt,delete re[qe].idxByName[kt],re[qe].idxByName[vt]=Ct)}}typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&o.WorkerGlobalScope&&o instanceof o.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(Y._hasGetAll=!1)}function zC(Y){return Y.split(",").map(function(re,ve){var $e=(re=re.trim()).replace(/([&*]|\+\+)/g,""),He=/^\[/.test($e)?$e.match(/^\[(.*)\]$/)[1].split("+"):$e;return Wi($e,He||null,/\&/.test(re),/\*/.test(re),/\+\+/.test(re),s(He),ve===0)})}var M4=(v0.prototype._parseStoresSpec=function(Y,re){a(Y).forEach(function(ve){if(Y[ve]!==null){var $e=zC(Y[ve]),He=$e.shift();if(He.unique=!0,He.multi)throw new ue.Schema("Primary key cannot be multi-valued");$e.forEach(function(qe){if(qe.auto)throw new ue.Schema("Only primary key can be marked as autoIncrement (++)");if(!qe.keyPath)throw new ue.Schema("Index must have a name and cannot be an empty string")}),re[ve]=Uu(ve,He,$e)}})},v0.prototype.stores=function(ve){var re=this.db;this._cfg.storesSource=this._cfg.storesSource?l(this._cfg.storesSource,ve):ve;var ve=re._versions,$e={},He={};return ve.forEach(function(qe){l($e,qe._cfg.storesSource),He=qe._cfg.dbschema={},qe._parseStoresSpec($e,He)}),re._dbSchema=He,Yc(re,[re._allTables,re,re.Transaction.prototype]),Og(re,[re._allTables,re,re.Transaction.prototype,this._cfg.tables],a(He),He),re._storeNames=a(He),this},v0.prototype.upgrade=function(Y){return this._cfg.contentUpgrade=Ce(this._cfg.contentUpgrade||pe,Y),this},v0);function v0(){}function UC(Y,re){var ve=Y._dbNamesDB;return ve||(ve=Y._dbNamesDB=new Os(zt,{addons:[],indexedDB:Y,IDBKeyRange:re})).version(1).stores({dbnames:"name"}),ve.table("dbnames")}function WC(Y){return Y&&typeof Y.databases=="function"}function VC(Y){return At(function(){return ze.letThrough=!0,Y()})}function y0(Y){return!("from"in Y)}var Ga=function(Y,re){if(!this){var ve=new Ga;return Y&&"d"in Y&&l(ve,Y),ve}l(this,arguments.length?{d:1,from:Y,to:1<arguments.length?re:Y}:{d:0})};function Fp(Y,re,ve){var $e=Ge(re,ve);if(!isNaN($e)){if(0<$e)throw RangeError();if(y0(Y))return l(Y,{from:re,to:ve,d:1});var He=Y.l,$e=Y.r;if(Ge(ve,Y.from)<0)return He?Fp(He,re,ve):Y.l={from:re,to:ve,d:1,l:null,r:null},I4(Y);if(0<Ge(re,Y.to))return $e?Fp($e,re,ve):Y.r={from:re,to:ve,d:1,l:null,r:null},I4(Y);Ge(re,Y.from)<0&&(Y.from=re,Y.l=null,Y.d=$e?$e.d+1:1),0<Ge(ve,Y.to)&&(Y.to=ve,Y.r=null,Y.d=Y.l?Y.l.d+1:1),ve=!Y.r,He&&!Y.l&&of(Y,He),$e&&ve&&of(Y,$e)}}function of(Y,re){y0(re)||function ve($e,vt){var qe=vt.from,it=vt.to,lt=vt.l,vt=vt.r;Fp($e,qe,it),lt&&ve($e,lt),vt&&ve($e,vt)}(Y,re)}function uh(Y,re){var ve=b0(re),$e=ve.next();if($e.done)return!1;for(var He=$e.value,qe=b0(Y),it=qe.next(He.from),lt=it.value;!$e.done&&!it.done;){if(Ge(lt.from,He.to)<=0&&0<=Ge(lt.to,He.from))return!0;Ge(He.from,lt.from)<0?He=($e=ve.next(lt.from)).value:lt=(it=qe.next(He.from)).value}return!1}function b0(Y){var re=y0(Y)?null:{s:0,n:Y};return{next:function(ve){for(var $e=0<arguments.length;re;)switch(re.s){case 0:if(re.s=1,$e)for(;re.n.l&&Ge(ve,re.n.from)<0;)re={up:re,n:re.n.l,s:1};else for(;re.n.l;)re={up:re,n:re.n.l,s:1};case 1:if(re.s=2,!$e||Ge(ve,re.n.to)<=0)return{value:re.n,done:!1};case 2:if(re.n.r){re.s=3,re={up:re,n:re.n.r,s:0};continue}case 3:re=re.up}return{done:!0}}}}function I4(Y){var re,ve,$e=(((re=Y.r)===null||re===void 0?void 0:re.d)||0)-(((ve=Y.l)===null||ve===void 0?void 0:ve.d)||0),He=1<$e?"r":$e<-1?"l":"";He&&(re=He=="r"?"l":"r",ve=r({},Y),$e=Y[He],Y.from=$e.from,Y.to=$e.to,Y[He]=$e[He],ve[He]=$e[re],(Y[re]=ve).d=$4(ve)),Y.d=$4(Y)}function $4(ve){var re=ve.r,ve=ve.l;return(re?ve?Math.max(re.d,ve.d):re.d:ve?ve.d:0)+1}function af(Y,re){return a(re).forEach(function(ve){Y[ve]?of(Y[ve],re[ve]):Y[ve]=function $e(He){var qe,it,lt={};for(qe in He)d(He,qe)&&(it=He[qe],lt[qe]=!it||typeof it!="object"||D.has(it.constructor)?it:$e(it));return lt}(re[ve])}),Y}function Ao(Y,re){return Y.all||re.all||Object.keys(Y).some(function(ve){return re[ve]&&uh(re[ve],Y[ve])})}h(Ga.prototype,((Xs={add:function(Y){return of(this,Y),this},addKey:function(Y){return Fp(this,Y,Y),this},addKeys:function(Y){var re=this;return Y.forEach(function(ve){return Fp(re,ve,ve)}),this},hasKey:function(Y){var re=b0(this).next(Y).value;return re&&Ge(re.from,Y)<=0&&0<=Ge(re.to,Y)}})[z]=function(){return b0(this)},Xs));var dh={},S0={},fh=!1;function C0(Y){af(S0,Y),fh||(fh=!0,setTimeout(function(){fh=!1,x0(S0,!(S0={}))},0))}function x0(Y,re){re===void 0&&(re=!1);var ve=new Set;if(Y.all)for(var $e=0,He=Object.values(dh);$e<He.length;$e++)R4(it=He[$e],Y,ve,re);else for(var qe in Y){var it,lt=/^idb\:\/\/(.*)\/(.*)\//.exec(qe);lt&&(qe=lt[1],lt=lt[2],(it=dh["idb://".concat(qe,"/").concat(lt)])&&R4(it,Y,ve,re))}ve.forEach(function(vt){return vt()})}function R4(Y,re,ve,$e){for(var He=[],qe=0,it=Object.entries(Y.queries.query);qe<it.length;qe++){for(var lt=it[qe],vt=lt[0],Ct=[],kt=0,dt=lt[1];kt<dt.length;kt++){var Rt=dt[kt];Ao(re,Rt.obsSet)?Rt.subscribers.forEach(function(xt){return ve.add(xt)}):$e&&Ct.push(Rt)}$e&&He.push([vt,Ct])}if($e)for(var bt=0,wt=He;bt<wt.length;bt++){var It=wt[bt],vt=It[0],Ct=It[1];Y.queries.query[vt]=Ct}}function KC(Y){var re=Y._state,ve=Y._deps.indexedDB;if(re.isBeingOpened||Y.idbdb)return re.dbReadyPromise.then(function(){return re.dbOpenError?gt(re.dbOpenError):Y});re.isBeingOpened=!0,re.dbOpenError=null,re.openComplete=!1;var $e=re.openCanceller,He=Math.round(10*Y.verno),qe=!1;function it(){if(re.openCanceller!==$e)throw new ue.DatabaseClosed("db.open() was cancelled")}function lt(){return new Ze(function(Rt,bt){if(it(),!ve)throw new ue.MissingAPI;var wt=Y.name,It=re.autoSchema||!He?ve.open(wt):ve.open(wt,He);if(!It)throw new ue.MissingAPI;It.onerror=ra(bt),It.onblocked=ot(Y._fireOnBlocked),It.onupgradeneeded=ot(function(xt){var Ut;kt=It.transaction,re.autoSchema&&!Y._options.allowEmptyDB?(It.onerror=Zl,kt.abort(),It.result.close(),(Ut=ve.deleteDatabase(wt)).onsuccess=Ut.onerror=ot(function(){bt(new ue.NoSuchDatabase("Database ".concat(wt," doesnt exist")))})):(kt.onerror=ra(bt),xt=xt.oldVersion>Math.pow(2,62)?0:xt.oldVersion,dt=xt<1,Y.idbdb=It.result,qe&&h0(Y,kt),Vu(Y,xt/10,kt,bt))},bt),It.onsuccess=ot(function(){kt=null;var xt,Ut,Xt,en,un,_n=Y.idbdb=It.result,An=b(_n.objectStoreNames);if(0<An.length)try{var yn=_n.transaction((en=An).length===1?en[0]:en,"readonly");if(re.autoSchema)Ut=_n,Xt=yn,(xt=Y).verno=Ut.version/10,Xt=xt._dbSchema=m0(0,Ut,Xt),xt._storeNames=b(Ut.objectStoreNames,0),Og(xt,[xt._allTables],a(Xt),Xt);else if(g0(Y,Y._dbSchema,yn),((un=Pg(m0(0,(un=Y).idbdb,yn),un._dbSchema)).add.length||un.change.some(function(kn){return kn.add.length||kn.change.length}))&&!qe)return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."),_n.close(),He=_n.version+1,qe=!0,Rt(lt());Lp(Y,yn)}catch{}Mt.push(Y),_n.onversionchange=ot(function(kn){re.vcFired=!0,Y.on("versionchange").fire(kn)}),_n.onclose=ot(function(kn){Y.on("close").fire(kn)}),dt&&(un=Y._deps,yn=wt,_n=un.indexedDB,un=un.IDBKeyRange,WC(_n)||yn===zt||UC(_n,un).put({name:yn}).catch(pe)),Rt()},bt)}).catch(function(Rt){switch(Rt==null?void 0:Rt.name){case"UnknownError":if(0<re.PR1398_maxLoop)return re.PR1398_maxLoop--,console.warn("Dexie: Workaround for Chrome UnknownError on open()"),lt();break;case"VersionError":if(0<He)return He=0,lt()}return Ze.reject(Rt)})}var vt,Ct=re.dbReadyResolve,kt=null,dt=!1;return Ze.race([$e,(typeof navigator>"u"?Ze.resolve():!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(Rt){function bt(){return indexedDB.databases().finally(Rt)}vt=setInterval(bt,100),bt()}).finally(function(){return clearInterval(vt)}):Promise.resolve()).then(lt)]).then(function(){return it(),re.onReadyBeingFired=[],Ze.resolve(VC(function(){return Y.on.ready.fire(Y.vip)})).then(function Rt(){if(0<re.onReadyBeingFired.length){var bt=re.onReadyBeingFired.reduce(Ce,pe);return re.onReadyBeingFired=[],Ze.resolve(VC(function(){return bt(Y.vip)})).then(Rt)}})}).finally(function(){re.openCanceller===$e&&(re.onReadyBeingFired=null,re.isBeingOpened=!1)}).catch(function(Rt){re.dbOpenError=Rt;try{kt&&kt.abort()}catch{}return $e===re.openCanceller&&Y._close(),gt(Rt)}).finally(function(){re.openComplete=!0,Ct()}).then(function(){var Rt;return dt&&(Rt={},Y.tables.forEach(function(bt){bt.schema.indexes.forEach(function(wt){wt.name&&(Rt["idb://".concat(Y.name,"/").concat(bt.name,"/").concat(wt.name)]=new Ga(-1/0,[[[]]]))}),Rt["idb://".concat(Y.name,"/").concat(bt.name,"/")]=Rt["idb://".concat(Y.name,"/").concat(bt.name,"/:dels")]=new Ga(-1/0,[[[]]])}),qn(qc).fire(Rt),x0(Rt,!0)),Y})}function w0(Y){function re(qe){return Y.next(qe)}var ve=He(re),$e=He(function(qe){return Y.throw(qe)});function He(qe){return function(vt){var lt=qe(vt),vt=lt.value;return lt.done?vt:vt&&typeof vt.then=="function"?vt.then(ve,$e):s(vt)?Promise.all(vt).then(ve,$e):ve(vt)}}return He(re)()}function _0(Y,re,ve){for(var $e=s(Y)?Y.slice():[Y],He=0;He<ve;++He)$e.push(re);return $e}var yI={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(Y){return r(r({},Y),{table:function(re){var ve=Y.table(re),$e=ve.schema,He={},qe=[];function it(dt,Rt,bt){var wt=ls(dt),It=He[wt]=He[wt]||[],xt=dt==null?0:typeof dt=="string"?1:dt.length,Ut=0<Rt,Ut=r(r({},bt),{name:Ut?"".concat(wt,"(virtual-from:").concat(bt.name,")"):bt.name,lowLevelIndex:bt,isVirtual:Ut,keyTail:Rt,keyLength:xt,extractKey:Wu(dt),unique:!Ut&&bt.unique});return It.push(Ut),Ut.isPrimaryKey||qe.push(Ut),1<xt&&it(xt===2?dt[0]:dt.slice(0,xt-1),Rt+1,bt),It.sort(function(Xt,en){return Xt.keyTail-en.keyTail}),Ut}re=it($e.primaryKey.keyPath,0,$e.primaryKey),He[":id"]=[re];for(var lt=0,vt=$e.indexes;lt<vt.length;lt++){var Ct=vt[lt];it(Ct.keyPath,0,Ct)}function kt(dt){var Rt,bt=dt.query.index;return bt.isVirtual?r(r({},dt),{query:{index:bt.lowLevelIndex,range:(Rt=dt.query.range,bt=bt.keyTail,{type:Rt.type===1?2:Rt.type,lower:_0(Rt.lower,Rt.lowerOpen?Y.MAX_KEY:Y.MIN_KEY,bt),lowerOpen:!0,upper:_0(Rt.upper,Rt.upperOpen?Y.MIN_KEY:Y.MAX_KEY,bt),upperOpen:!0})}}):dt}return r(r({},ve),{schema:r(r({},$e),{primaryKey:re,indexes:qe,getIndexByKeyPath:function(dt){return(dt=He[ls(dt)])&&dt[0]}}),count:function(dt){return ve.count(kt(dt))},query:function(dt){return ve.query(kt(dt))},openCursor:function(dt){var Rt=dt.query.index,bt=Rt.keyTail,wt=Rt.isVirtual,It=Rt.keyLength;return wt?ve.openCursor(kt(dt)).then(function(Ut){return Ut&&xt(Ut)}):ve.openCursor(dt);function xt(Ut){return Object.create(Ut,{continue:{value:function(Xt){Xt!=null?Ut.continue(_0(Xt,dt.reverse?Y.MAX_KEY:Y.MIN_KEY,bt)):dt.unique?Ut.continue(Ut.key.slice(0,It).concat(dt.reverse?Y.MIN_KEY:Y.MAX_KEY,bt)):Ut.continue()}},continuePrimaryKey:{value:function(Xt,en){Ut.continuePrimaryKey(_0(Xt,Y.MAX_KEY,bt),en)}},primaryKey:{get:function(){return Ut.primaryKey}},key:{get:function(){var Xt=Ut.key;return It===1?Xt[0]:Xt.slice(0,It)}},value:{get:function(){return Ut.value}}})}}})}})}};function E0(Y,re,ve,$e){return ve=ve||{},$e=$e||"",a(Y).forEach(function(He){var qe,it,lt;d(re,He)?(qe=Y[He],it=re[He],typeof qe=="object"&&typeof it=="object"&&qe&&it?(lt=F(qe))!==F(it)?ve[$e+He]=re[He]:lt==="Object"?E0(qe,it,ve,$e+He+"."):qe!==it&&(ve[$e+He]=re[He]):qe!==it&&(ve[$e+He]=re[He])):ve[$e+He]=void 0}),a(re).forEach(function(He){d(Y,He)||(ve[$e+He]=re[He])}),ve}function T0(Y,re){return re.type==="delete"?re.keys:re.keys||re.values.map(Y.extractKey)}var bI={stack:"dbcore",name:"HooksMiddleware",level:2,create:function(Y){return r(r({},Y),{table:function(re){var ve=Y.table(re),$e=ve.schema.primaryKey;return r(r({},ve),{mutate:function(He){var qe=ze.trans,it=qe.table(re).hook,lt=it.deleting,vt=it.creating,Ct=it.updating;switch(He.type){case"add":if(vt.fire===pe)break;return qe._promise("readwrite",function(){return kt(He)},!0);case"put":if(vt.fire===pe&&Ct.fire===pe)break;return qe._promise("readwrite",function(){return kt(He)},!0);case"delete":if(lt.fire===pe)break;return qe._promise("readwrite",function(){return kt(He)},!0);case"deleteRange":if(lt.fire===pe)break;return qe._promise("readwrite",function(){return function dt(Rt,bt,wt){return ve.query({trans:Rt,values:!1,query:{index:$e,range:bt},limit:wt}).then(function(It){var xt=It.result;return kt({type:"delete",keys:xt,trans:Rt}).then(function(Ut){return 0<Ut.numFailures?Promise.reject(Ut.failures[0]):xt.length<wt?{failures:[],numFailures:0,lastResult:void 0}:dt(Rt,r(r({},bt),{lower:xt[xt.length-1],lowerOpen:!0}),wt)})})}(He.trans,He.range,1e4)},!0)}return ve.mutate(He);function kt(dt){var Rt,bt,wt,It=ze.trans,xt=dt.keys||T0($e,dt);if(!xt)throw new Error("Keys missing");return(dt=dt.type==="add"||dt.type==="put"?r(r({},dt),{keys:xt}):r({},dt)).type!=="delete"&&(dt.values=i([],dt.values)),dt.keys&&(dt.keys=i([],dt.keys)),Rt=ve,wt=xt,((bt=dt).type==="add"?Promise.resolve([]):Rt.getMany({trans:bt.trans,keys:wt,cache:"immutable"})).then(function(Ut){var Xt=xt.map(function(en,un){var _n,An,yn,kn=Ut[un],jn={onerror:null,onsuccess:null};return dt.type==="delete"?lt.fire.call(jn,en,kn,It):dt.type==="add"||kn===void 0?(_n=vt.fire.call(jn,en,dt.values[un],It),en==null&&_n!=null&&(dt.keys[un]=en=_n,$e.outbound||E(dt.values[un],$e.keyPath,en))):(_n=E0(kn,dt.values[un]),(An=Ct.fire.call(jn,_n,en,kn,It))&&(yn=dt.values[un],Object.keys(An).forEach(function(Ln){d(yn,Ln)?yn[Ln]=An[Ln]:E(yn,Ln,An[Ln])}))),jn});return ve.mutate(dt).then(function(en){for(var un=en.failures,_n=en.results,An=en.numFailures,en=en.lastResult,yn=0;yn<xt.length;++yn){var kn=(_n||xt)[yn],jn=Xt[yn];kn==null?jn.onerror&&jn.onerror(un[yn]):jn.onsuccess&&jn.onsuccess(dt.type==="put"&&Ut[yn]?dt.values[yn]:kn)}return{failures:un,results:_n,numFailures:An,lastResult:en}}).catch(function(en){return Xt.forEach(function(un){return un.onerror&&un.onerror(en)}),Promise.reject(en)})})}}})}})}};function jp(Y,re,ve){try{if(!re||re.keys.length<Y.length)return null;for(var $e=[],He=0,qe=0;He<re.keys.length&&qe<Y.length;++He)Ge(re.keys[He],Y[qe])===0&&($e.push(ve?A(re.values[He]):re.values[He]),++qe);return $e.length===Y.length?$e:null}catch{return null}}var Ku={stack:"dbcore",level:-1,create:function(Y){return{table:function(re){var ve=Y.table(re);return r(r({},ve),{getMany:function($e){if(!$e.cache)return ve.getMany($e);var He=jp($e.keys,$e.trans._cache,$e.cache==="clone");return He?Ze.resolve(He):ve.getMany($e).then(function(qe){return $e.trans._cache={keys:$e.keys,values:$e.cache==="clone"?A(qe):qe},qe})},mutate:function($e){return $e.type!=="add"&&($e.trans._cache=null),ve.mutate($e)}})}}}};function Mg(Y,re){return Y.trans.mode==="readonly"&&!!Y.subscr&&!Y.trans.explicit&&Y.trans.db._options.cache!=="disabled"&&!re.schema.primaryKey.outbound}function k0(Y,re){switch(Y){case"query":return re.values&&!re.unique;case"get":case"getMany":case"count":case"openCursor":return!1}}var A4={stack:"dbcore",level:0,name:"Observability",create:function(Y){var re=Y.schema.name,ve=new Ga(Y.MIN_KEY,Y.MAX_KEY);return r(r({},Y),{transaction:function($e,He,qe){if(ze.subscr&&He!=="readonly")throw new ue.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(ze.querier));return Y.transaction($e,He,qe)},table:function($e){var He=Y.table($e),qe=He.schema,it=qe.primaryKey,dt=qe.indexes,lt=it.extractKey,vt=it.outbound,Ct=it.autoIncrement&&dt.filter(function(bt){return bt.compound&&bt.keyPath.includes(it.keyPath)}),kt=r(r({},He),{mutate:function(bt){function wt(Ln){return Ln="idb://".concat(re,"/").concat($e,"/").concat(Ln),en[Ln]||(en[Ln]=new Ga)}var It,xt,Ut,Xt=bt.trans,en=bt.mutatedParts||(bt.mutatedParts={}),un=wt(""),_n=wt(":dels"),An=bt.type,jn=bt.type==="deleteRange"?[bt.range]:bt.type==="delete"?[bt.keys]:bt.values.length<50?[T0(it,bt).filter(function(Ln){return Ln}),bt.values]:[],yn=jn[0],kn=jn[1],jn=bt.trans._cache;return s(yn)?(un.addKeys(yn),(jn=An==="delete"||yn.length===kn.length?jp(yn,jn):null)||_n.addKeys(yn),(jn||kn)&&(It=wt,xt=jn,Ut=kn,qe.indexes.forEach(function(Ln){var tr=It(Ln.name||"");function Br(Xr){return Xr!=null?Ln.extractKey(Xr):null}function Ur(Xr){return Ln.multiEntry&&s(Xr)?Xr.forEach(function(cs){return tr.addKey(cs)}):tr.addKey(Xr)}(xt||Ut).forEach(function(Xr,Ya){var Nr=xt&&Br(xt[Ya]),Ya=Ut&&Br(Ut[Ya]);Ge(Nr,Ya)!==0&&(Nr!=null&&Ur(Nr),Ya!=null&&Ur(Ya))})}))):yn?(kn={from:(kn=yn.lower)!==null&&kn!==void 0?kn:Y.MIN_KEY,to:(kn=yn.upper)!==null&&kn!==void 0?kn:Y.MAX_KEY},_n.add(kn),un.add(kn)):(un.add(ve),_n.add(ve),qe.indexes.forEach(function(Ln){return wt(Ln.name).add(ve)})),He.mutate(bt).then(function(Ln){return!yn||bt.type!=="add"&&bt.type!=="put"||(un.addKeys(Ln.results),Ct&&Ct.forEach(function(tr){for(var Br=bt.values.map(function(Nr){return tr.extractKey(Nr)}),Ur=tr.keyPath.findIndex(function(Nr){return Nr===it.keyPath}),Xr=0,cs=Ln.results.length;Xr<cs;++Xr)Br[Xr][Ur]=Ln.results[Xr];wt(tr.name).addKeys(Br)})),Xt.mutatedParts=af(Xt.mutatedParts||{},en),Ln})}}),dt=function(wt){var It=wt.query,wt=It.index,It=It.range;return[wt,new Ga((wt=It.lower)!==null&&wt!==void 0?wt:Y.MIN_KEY,(It=It.upper)!==null&&It!==void 0?It:Y.MAX_KEY)]},Rt={get:function(bt){return[it,new Ga(bt.key)]},getMany:function(bt){return[it,new Ga().addKeys(bt.keys)]},count:dt,query:dt,openCursor:dt};return a(Rt).forEach(function(bt){kt[bt]=function(wt){var It=ze.subscr,xt=!!It,Ut=Mg(ze,He)&&k0(bt,wt)?wt.obsSet={}:It;if(xt){var Xt=function(kn){return kn="idb://".concat(re,"/").concat($e,"/").concat(kn),Ut[kn]||(Ut[kn]=new Ga)},en=Xt(""),un=Xt(":dels"),It=Rt[bt](wt),xt=It[0],It=It[1];if((bt==="query"&&xt.isPrimaryKey&&!wt.values?un:Xt(xt.name||"")).add(It),!xt.isPrimaryKey){if(bt!=="count"){var _n=bt==="query"&&vt&&wt.values&&He.query(r(r({},wt),{values:!1}));return He[bt].apply(this,arguments).then(function(kn){if(bt==="query"){if(vt&&wt.values)return _n.then(function(Br){return Br=Br.result,en.addKeys(Br),kn});var jn=wt.values?kn.result.map(lt):kn.result;(wt.values?en:un).addKeys(jn)}else if(bt==="openCursor"){var Ln=kn,tr=wt.values;return Ln&&Object.create(Ln,{key:{get:function(){return un.addKey(Ln.primaryKey),Ln.key}},primaryKey:{get:function(){var Br=Ln.primaryKey;return un.addKey(Br),Br}},value:{get:function(){return tr&&en.addKey(Ln.primaryKey),Ln.value}}})}return kn})}un.add(ve)}}return He[bt].apply(this,arguments)}}),kt}})}};function Jl(Y,re,ve){if(ve.numFailures===0)return re;if(re.type==="deleteRange")return null;var $e=re.keys?re.keys.length:"values"in re&&re.values?re.values.length:1;return ve.numFailures===$e?null:(re=r({},re),s(re.keys)&&(re.keys=re.keys.filter(function(He,qe){return!(qe in ve.failures)})),"values"in re&&s(re.values)&&(re.values=re.values.filter(function(He,qe){return!(qe in ve.failures)})),re)}function qu(Y,re){return ve=Y,(($e=re).lower===void 0||($e.lowerOpen?0<Ge(ve,$e.lower):0<=Ge(ve,$e.lower)))&&(Y=Y,(re=re).upper===void 0||(re.upperOpen?Ge(Y,re.upper)<0:Ge(Y,re.upper)<=0));var ve,$e}function O0(Y,re,Rt,$e,He,qe){if(!Rt||Rt.length===0)return Y;var it=re.query.index,lt=it.multiEntry,vt=re.query.range,Ct=$e.schema.primaryKey.extractKey,kt=it.extractKey,dt=(it.lowLevelIndex||it).extractKey,Rt=Rt.reduce(function(bt,wt){var It=bt,xt=[];if(wt.type==="add"||wt.type==="put")for(var Ut=new Ga,Xt=wt.values.length-1;0<=Xt;--Xt){var en,un=wt.values[Xt],_n=Ct(un);Ut.hasKey(_n)||(en=kt(un),(lt&&s(en)?en.some(function(Ln){return qu(Ln,vt)}):qu(en,vt))&&(Ut.addKey(_n),xt.push(un)))}switch(wt.type){case"add":var An=new Ga().addKeys(re.values?bt.map(function(tr){return Ct(tr)}):bt),It=bt.concat(re.values?xt.filter(function(tr){return tr=Ct(tr),!An.hasKey(tr)&&(An.addKey(tr),!0)}):xt.map(function(tr){return Ct(tr)}).filter(function(tr){return!An.hasKey(tr)&&(An.addKey(tr),!0)}));break;case"put":var yn=new Ga().addKeys(wt.values.map(function(tr){return Ct(tr)}));It=bt.filter(function(tr){return!yn.hasKey(re.values?Ct(tr):tr)}).concat(re.values?xt:xt.map(function(tr){return Ct(tr)}));break;case"delete":var kn=new Ga().addKeys(wt.keys);It=bt.filter(function(tr){return!kn.hasKey(re.values?Ct(tr):tr)});break;case"deleteRange":var jn=wt.range;It=bt.filter(function(tr){return!qu(Ct(tr),jn)})}return It},Y);return Rt===Y?Y:(Rt.sort(function(bt,wt){return Ge(dt(bt),dt(wt))||Ge(Ct(bt),Ct(wt))}),re.limit&&re.limit<1/0&&(Rt.length>re.limit?Rt.length=re.limit:Y.length===re.limit&&Rt.length<re.limit&&(He.dirty=!0)),qe?Object.freeze(Rt):Rt)}function N4(Y,re){return Ge(Y.lower,re.lower)===0&&Ge(Y.upper,re.upper)===0&&!!Y.lowerOpen==!!re.lowerOpen&&!!Y.upperOpen==!!re.upperOpen}function D4(Y,re){return function(ve,$e,He,qe){if(ve===void 0)return $e!==void 0?-1:0;if($e===void 0)return 1;if(($e=Ge(ve,$e))===0){if(He&&qe)return 0;if(He)return 1;if(qe)return-1}return $e}(Y.lower,re.lower,Y.lowerOpen,re.lowerOpen)<=0&&0<=function(ve,$e,He,qe){if(ve===void 0)return $e!==void 0?1:0;if($e===void 0)return-1;if(($e=Ge(ve,$e))===0){if(He&&qe)return 0;if(He)return-1;if(qe)return 1}return $e}(Y.upper,re.upper,Y.upperOpen,re.upperOpen)}function SI(Y,re,ve,$e){Y.subscribers.add(ve),$e.addEventListener("abort",function(){var He,qe;Y.subscribers.delete(ve),Y.subscribers.size===0&&(He=Y,qe=re,setTimeout(function(){He.subscribers.size===0&&q(qe,He)},3e3))})}var L4={stack:"dbcore",level:0,name:"Cache",create:function(Y){var re=Y.schema.name;return r(r({},Y),{transaction:function(ve,$e,He){var qe,it,lt=Y.transaction(ve,$e,He);return $e==="readwrite"&&(it=(qe=new AbortController).signal,He=function(vt){return function(){if(qe.abort(),$e==="readwrite"){for(var Ct=new Set,kt=0,dt=ve;kt<dt.length;kt++){var Rt=dt[kt],bt=dh["idb://".concat(re,"/").concat(Rt)];if(bt){var wt=Y.table(Rt),It=bt.optimisticOps.filter(function(tr){return tr.trans===lt});if(lt._explicit&&vt&<.mutatedParts)for(var xt=0,Ut=Object.values(bt.queries.query);xt<Ut.length;xt++)for(var Xt=0,en=(An=Ut[xt]).slice();Xt<en.length;Xt++)Ao((yn=en[Xt]).obsSet,lt.mutatedParts)&&(q(An,yn),yn.subscribers.forEach(function(tr){return Ct.add(tr)}));else if(0<It.length){bt.optimisticOps=bt.optimisticOps.filter(function(tr){return tr.trans!==lt});for(var un=0,_n=Object.values(bt.queries.query);un<_n.length;un++)for(var An,yn,kn,jn=0,Ln=(An=_n[un]).slice();jn<Ln.length;jn++)(yn=Ln[jn]).res!=null&<.mutatedParts&&(vt&&!yn.dirty?(kn=Object.isFrozen(yn.res),kn=O0(yn.res,yn.req,It,wt,yn,kn),yn.dirty?(q(An,yn),yn.subscribers.forEach(function(tr){return Ct.add(tr)})):kn!==yn.res&&(yn.res=kn,yn.promise=Ze.resolve({result:kn}))):(yn.dirty&&q(An,yn),yn.subscribers.forEach(function(tr){return Ct.add(tr)})))}}}Ct.forEach(function(tr){return tr()})}}},lt.addEventListener("abort",He(!1),{signal:it}),lt.addEventListener("error",He(!1),{signal:it}),lt.addEventListener("complete",He(!0),{signal:it})),lt},table:function(ve){var $e=Y.table(ve),He=$e.schema.primaryKey;return r(r({},$e),{mutate:function(qe){var it=ze.trans;if(He.outbound||it.db._options.cache==="disabled"||it.explicit||it.idbtrans.mode!=="readwrite")return $e.mutate(qe);var lt=dh["idb://".concat(re,"/").concat(ve)];return lt?(it=$e.mutate(qe),qe.type!=="add"&&qe.type!=="put"||!(50<=qe.values.length||T0(He,qe).some(function(vt){return vt==null}))?(lt.optimisticOps.push(qe),qe.mutatedParts&&C0(qe.mutatedParts),it.then(function(vt){0<vt.numFailures&&(q(lt.optimisticOps,qe),(vt=Jl(0,qe,vt))&<.optimisticOps.push(vt),qe.mutatedParts&&C0(qe.mutatedParts))}),it.catch(function(){q(lt.optimisticOps,qe),qe.mutatedParts&&C0(qe.mutatedParts)})):it.then(function(vt){var Ct=Jl(0,r(r({},qe),{values:qe.values.map(function(kt,dt){var Rt;return vt.failures[dt]?kt:(kt=(Rt=He.keyPath)!==null&&Rt!==void 0&&Rt.includes(".")?A(kt):r({},kt),E(kt,He.keyPath,vt.results[dt]),kt)})}),vt);lt.optimisticOps.push(Ct),queueMicrotask(function(){return qe.mutatedParts&&C0(qe.mutatedParts)})}),it):$e.mutate(qe)},query:function(qe){if(!Mg(ze,$e)||!k0("query",qe))return $e.query(qe);var it=((Ct=ze.trans)===null||Ct===void 0?void 0:Ct.db._options.cache)==="immutable",dt=ze,lt=dt.requery,vt=dt.signal,Ct=function(wt,It,xt,Ut){var Xt=dh["idb://".concat(wt,"/").concat(It)];if(!Xt)return[];if(!(It=Xt.queries[xt]))return[null,!1,Xt,null];var en=It[(Ut.query?Ut.query.index.name:null)||""];if(!en)return[null,!1,Xt,null];switch(xt){case"query":var un=en.find(function(_n){return _n.req.limit===Ut.limit&&_n.req.values===Ut.values&&N4(_n.req.query.range,Ut.query.range)});return un?[un,!0,Xt,en]:[en.find(function(_n){return("limit"in _n.req?_n.req.limit:1/0)>=Ut.limit&&(!Ut.values||_n.req.values)&&D4(_n.req.query.range,Ut.query.range)}),!1,Xt,en];case"count":return un=en.find(function(_n){return N4(_n.req.query.range,Ut.query.range)}),[un,!!un,Xt,en]}}(re,ve,"query",qe),kt=Ct[0],dt=Ct[1],Rt=Ct[2],bt=Ct[3];return kt&&dt?kt.obsSet=qe.obsSet:(dt=$e.query(qe).then(function(wt){var It=wt.result;if(kt&&(kt.res=It),it){for(var xt=0,Ut=It.length;xt<Ut;++xt)Object.freeze(It[xt]);Object.freeze(It)}else wt.result=A(It);return wt}).catch(function(wt){return bt&&kt&&q(bt,kt),Promise.reject(wt)}),kt={obsSet:qe.obsSet,promise:dt,subscribers:new Set,type:"query",req:qe,dirty:!1},bt?bt.push(kt):(bt=[kt],(Rt=Rt||(dh["idb://".concat(re,"/").concat(ve)]={queries:{query:{},count:{}},objs:new Map,optimisticOps:[],unsignaledParts:{}})).queries.query[qe.query.index.name||""]=bt)),SI(kt,bt,lt,vt),kt.promise.then(function(wt){return{result:O0(wt.result,qe,Rt==null?void 0:Rt.optimisticOps,$e,kt,it)}})}})}})}};function Bp(Y,re){return new Proxy(Y,{get:function(ve,$e,He){return $e==="db"?re:Reflect.get(ve,$e,He)}})}var Os=(Ti.prototype.version=function(Y){if(isNaN(Y)||Y<.1)throw new ue.Type("Given version is not a positive number");if(Y=Math.round(10*Y)/10,this.idbdb||this._state.isBeingOpened)throw new ue.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,Y);var re=this._versions,ve=re.filter(function($e){return $e._cfg.version===Y})[0];return ve||(ve=new this.Version(Y),re.push(ve),re.sort(HC),ve.stores({}),this._state.autoSchema=!1,ve)},Ti.prototype._whenReady=function(Y){var re=this;return this.idbdb&&(this._state.openComplete||ze.letThrough||this._vip)?Y():new Ze(function(ve,$e){if(re._state.openComplete)return $e(new ue.DatabaseClosed(re._state.dbOpenError));if(!re._state.isBeingOpened){if(!re._state.autoOpen)return void $e(new ue.DatabaseClosed);re.open().catch(pe)}re._state.dbReadyPromise.then(ve,$e)}).then(Y)},Ti.prototype.use=function(Y){var re=Y.stack,ve=Y.create,$e=Y.level,He=Y.name;return He&&this.unuse({stack:re,name:He}),Y=this._middlewares[re]||(this._middlewares[re]=[]),Y.push({stack:re,create:ve,level:$e??10,name:He}),Y.sort(function(qe,it){return qe.level-it.level}),this},Ti.prototype.unuse=function(Y){var re=Y.stack,ve=Y.name,$e=Y.create;return re&&this._middlewares[re]&&(this._middlewares[re]=this._middlewares[re].filter(function(He){return $e?He.create!==$e:!!ve&&He.name!==ve})),this},Ti.prototype.open=function(){var Y=this;return nn(se,function(){return KC(Y)})},Ti.prototype._close=function(){var Y=this._state,re=Mt.indexOf(this);if(0<=re&&Mt.splice(re,1),this.idbdb){try{this.idbdb.close()}catch{}this.idbdb=null}Y.isBeingOpened||(Y.dbReadyPromise=new Ze(function(ve){Y.dbReadyResolve=ve}),Y.openCanceller=new Ze(function(ve,$e){Y.cancelOpen=$e}))},Ti.prototype.close=function(ve){var re=(ve===void 0?{disableAutoOpen:!0}:ve).disableAutoOpen,ve=this._state;re?(ve.isBeingOpened&&ve.cancelOpen(new ue.DatabaseClosed),this._close(),ve.autoOpen=!1,ve.dbOpenError=new ue.DatabaseClosed):(this._close(),ve.autoOpen=this._options.autoOpen||ve.isBeingOpened,ve.openComplete=!1,ve.dbOpenError=null)},Ti.prototype.delete=function(Y){var re=this;Y===void 0&&(Y={disableAutoOpen:!0});var ve=0<arguments.length&&typeof arguments[0]!="object",$e=this._state;return new Ze(function(He,qe){function it(){re.close(Y);var lt=re._deps.indexedDB.deleteDatabase(re.name);lt.onsuccess=ot(function(){var vt,Ct,kt;vt=re._deps,Ct=re.name,kt=vt.indexedDB,vt=vt.IDBKeyRange,WC(kt)||Ct===zt||UC(kt,vt).delete(Ct).catch(pe),He()}),lt.onerror=ra(qe),lt.onblocked=re._fireOnBlocked}if(ve)throw new ue.InvalidArgument("Invalid closeOptions argument to db.delete()");$e.isBeingOpened?$e.dbReadyPromise.then(it):it()})},Ti.prototype.backendDB=function(){return this.idbdb},Ti.prototype.isOpen=function(){return this.idbdb!==null},Ti.prototype.hasBeenClosed=function(){var Y=this._state.dbOpenError;return Y&&Y.name==="DatabaseClosed"},Ti.prototype.hasFailed=function(){return this._state.dbOpenError!==null},Ti.prototype.dynamicallyOpened=function(){return this._state.autoSchema},Object.defineProperty(Ti.prototype,"tables",{get:function(){var Y=this;return a(this._allTables).map(function(re){return Y._allTables[re]})},enumerable:!1,configurable:!0}),Ti.prototype.transaction=function(){var Y=(function(re,ve,$e){var He=arguments.length;if(He<2)throw new ue.InvalidArgument("Too few arguments");for(var qe=new Array(He-1);--He;)qe[He-1]=arguments[He];return $e=qe.pop(),[re,P(qe),$e]}).apply(this,arguments);return this._transaction.apply(this,Y)},Ti.prototype._transaction=function(Y,re,ve){var $e=this,He=ze.trans;He&&He.db===this&&Y.indexOf("!")===-1||(He=null);var qe,it,lt=Y.indexOf("?")!==-1;Y=Y.replace("!","").replace("?","");try{if(it=re.map(function(Ct){if(Ct=Ct instanceof $e.Table?Ct.name:Ct,typeof Ct!="string")throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return Ct}),Y=="r"||Y===Dn)qe=Dn;else{if(Y!="rw"&&Y!=Qn)throw new ue.InvalidArgument("Invalid transaction mode: "+Y);qe=Qn}if(He){if(He.mode===Dn&&qe===Qn){if(!lt)throw new ue.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");He=null}He&&it.forEach(function(Ct){if(He&&He.storeNames.indexOf(Ct)===-1){if(!lt)throw new ue.SubTransaction("Table "+Ct+" not included in parent transaction.");He=null}}),lt&&He&&!He.active&&(He=null)}}catch(Ct){return He?He._promise(null,function(kt,dt){dt(Ct)}):gt(Ct)}var vt=(function Ct(kt,dt,Rt,bt,wt){return Ze.resolve().then(function(){var It=ze.transless||ze,xt=kt._createTransaction(dt,Rt,kt._dbSchema,bt);if(xt.explicit=!0,It={trans:xt,transless:It},bt)xt.idbtrans=bt.idbtrans;else try{xt.create(),xt.idbtrans._explicit=!0,kt._state.PR1398_maxLoop=3}catch(en){return en.name===ee.InvalidState&&kt.isOpen()&&0<--kt._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),kt.close({disableAutoOpen:!1}),kt.open().then(function(){return Ct(kt,dt,Rt,null,wt)})):gt(en)}var Ut,Xt=B(wt);return Xt&&$t(),It=Ze.follow(function(){var en;(Ut=wt.call(xt,xt))&&(Xt?(en=Gt.bind(null,null),Ut.then(en,en)):typeof Ut.next=="function"&&typeof Ut.throw=="function"&&(Ut=w0(Ut)))},It),(Ut&&typeof Ut.then=="function"?Ze.resolve(Ut).then(function(en){return xt.active?en:gt(new ue.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))}):It.then(function(){return Ut})).then(function(en){return bt&&xt._resolve(),xt._completion.then(function(){return en})}).catch(function(en){return xt._reject(en),gt(en)})})}).bind(null,this,qe,it,He,ve);return He?He._promise(qe,vt,"lock"):ze.trans?nn(ze.transless,function(){return $e._whenReady(vt)}):this._whenReady(vt)},Ti.prototype.table=function(Y){if(!d(this._allTables,Y))throw new ue.InvalidTable("Table ".concat(Y," does not exist"));return this._allTables[Y]},Ti);function Ti(Y,re){var ve=this;this._middlewares={},this.verno=0;var $e=Ti.dependencies;this._options=re=r({addons:Ti.addons,autoOpen:!0,indexedDB:$e.indexedDB,IDBKeyRange:$e.IDBKeyRange,cache:"cloned"},re),this._deps={indexedDB:re.indexedDB,IDBKeyRange:re.IDBKeyRange},$e=re.addons,this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;var He,qe,it,lt,vt,Ct={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:pe,dbReadyPromise:null,cancelOpen:pe,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3,autoOpen:re.autoOpen};Ct.dbReadyPromise=new Ze(function(dt){Ct.dbReadyResolve=dt}),Ct.openCanceller=new Ze(function(dt,Rt){Ct.cancelOpen=Rt}),this._state=Ct,this.name=Y,this.on=ni(this,"populate","blocked","versionchange","close",{ready:[Ce,pe]}),this.on.ready.subscribe=C(this.on.ready.subscribe,function(dt){return function(Rt,bt){Ti.vip(function(){var wt,It=ve._state;It.openComplete?(It.dbOpenError||Ze.resolve().then(Rt),bt&&dt(Rt)):It.onReadyBeingFired?(It.onReadyBeingFired.push(Rt),bt&&dt(Rt)):(dt(Rt),wt=ve,bt||dt(function xt(){wt.on.ready.unsubscribe(Rt),wt.on.ready.unsubscribe(xt)}))})}}),this.Collection=(He=this,zr(Ui.prototype,function(Ut,xt){this.db=He;var bt=j,wt=null;if(xt)try{bt=xt()}catch(Xt){wt=Xt}var It=Ut._ctx,xt=It.table,Ut=xt.hook.reading.fire;this._ctx={table:xt,index:It.index,isPrimKey:!It.index||xt.schema.primKey.keyPath&&It.index===xt.schema.primKey.name,range:bt,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:wt,or:It.or,valueMapper:Ut!==he?Ut:null}})),this.Table=(qe=this,zr(on.prototype,function(dt,Rt,bt){this.db=qe,this._tx=bt,this.name=dt,this.schema=Rt,this.hook=qe._allTables[dt]?qe._allTables[dt].hook:ni(null,{creating:[xe,pe],reading:[_e,he],updating:[De,pe],deleting:[we,pe]})})),this.Transaction=(it=this,zr(kr.prototype,function(dt,Rt,bt,wt,It){var xt=this;this.db=it,this.mode=dt,this.storeNames=Rt,this.schema=bt,this.chromeTransactionDurability=wt,this.idbtrans=null,this.on=ni(this,"complete","error","abort"),this.parent=It||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new Ze(function(Ut,Xt){xt._resolve=Ut,xt._reject=Xt}),this._completion.then(function(){xt.active=!1,xt.on.complete.fire()},function(Ut){var Xt=xt.active;return xt.active=!1,xt.on.error.fire(Ut),xt.parent?xt.parent._reject(Ut):Xt&&xt.idbtrans&&xt.idbtrans.abort(),gt(Ut)})})),this.Version=(lt=this,zr(M4.prototype,function(dt){this.db=lt,this._cfg={version:dt,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})),this.WhereClause=(vt=this,zr(na.prototype,function(dt,Rt,bt){if(this.db=vt,this._ctx={table:dt,index:Rt===":id"?null:Rt,or:bt},this._cmp=this._ascending=Ge,this._descending=function(wt,It){return Ge(It,wt)},this._max=function(wt,It){return 0<Ge(wt,It)?wt:It},this._min=function(wt,It){return Ge(wt,It)<0?wt:It},this._IDBKeyRange=vt._deps.IDBKeyRange,!this._IDBKeyRange)throw new ue.MissingAPI})),this.on("versionchange",function(dt){0<dt.newVersion?console.warn("Another connection wants to upgrade database '".concat(ve.name,"'. Closing db now to resume the upgrade.")):console.warn("Another connection wants to delete database '".concat(ve.name,"'. Closing db now to resume the delete request.")),ve.close({disableAutoOpen:!1})}),this.on("blocked",function(dt){!dt.newVersion||dt.newVersion<dt.oldVersion?console.warn("Dexie.delete('".concat(ve.name,"') was blocked")):console.warn("Upgrade '".concat(ve.name,"' blocked by other connection holding version ").concat(dt.oldVersion/10))}),this._maxKey=Gc(re.IDBKeyRange),this._createTransaction=function(dt,Rt,bt,wt){return new ve.Transaction(dt,Rt,bt,ve._options.chromeTransactionDurability,wt)},this._fireOnBlocked=function(dt){ve.on("blocked").fire(dt),Mt.filter(function(Rt){return Rt.name===ve.name&&Rt!==ve&&!Rt._state.vcFired}).map(function(Rt){return Rt.on("versionchange").fire(dt)})},this.use(Ku),this.use(L4),this.use(A4),this.use(yI),this.use(bI);var kt=new Proxy(this,{get:function(dt,Rt,bt){if(Rt==="_vip")return!0;if(Rt==="table")return function(It){return Bp(ve.table(It),kt)};var wt=Reflect.get(dt,Rt,bt);return wt instanceof on?Bp(wt,kt):Rt==="tables"?wt.map(function(It){return Bp(It,kt)}):Rt==="_createTransaction"?function(){return Bp(wt.apply(this,arguments),kt)}:wt}});this.vip=kt,$e.forEach(function(dt){return dt(ve)})}var Ig,Xs=typeof Symbol<"u"&&"observable"in Symbol?Symbol.observable:"@@observable",CI=(qC.prototype.subscribe=function(Y,re,ve){return this._subscribe(Y&&typeof Y!="function"?Y:{next:Y,error:re,complete:ve})},qC.prototype[Xs]=function(){return this},qC);function qC(Y){this._subscribe=Y}try{Ig={indexedDB:o.indexedDB||o.mozIndexedDB||o.webkitIndexedDB||o.msIndexedDB,IDBKeyRange:o.IDBKeyRange||o.webkitIDBKeyRange}}catch{Ig={indexedDB:null,IDBKeyRange:null}}function F4(Y){var re,ve=!1,$e=new CI(function(He){var qe=B(Y),it,lt=!1,vt={},Ct={},kt={get closed(){return lt},unsubscribe:function(){lt||(lt=!0,it&&it.abort(),dt&&qn.storagemutated.unsubscribe(bt))}};He.start&&He.start(kt);var dt=!1,Rt=function(){return Tt(wt)},bt=function(It){af(vt,It),Ao(Ct,vt)&&Rt()},wt=function(){var It,xt,Ut;!lt&&Ig.indexedDB&&(vt={},It={},it&&it.abort(),it=new AbortController,Ut=function(Xt){var en=Vt();try{qe&&$t();var un=At(Y,Xt);return un=qe?un.finally(Gt):un}finally{en&&Kt()}}(xt={subscr:It,signal:it.signal,requery:Rt,querier:Y,trans:null}),Promise.resolve(Ut).then(function(Xt){ve=!0,re=Xt,lt||xt.signal.aborted||(vt={},function(en){for(var un in en)if(d(en,un))return;return 1}(Ct=It)||dt||(qn(qc,bt),dt=!0),Tt(function(){return!lt&&He.next&&He.next(Xt)}))},function(Xt){ve=!1,["DatabaseClosedError","AbortError"].includes(Xt==null?void 0:Xt.name)||lt||Tt(function(){lt||He.error&&He.error(Xt)})}))};return setTimeout(Rt,0),kt});return $e.hasValue=function(){return ve},$e.getValue=function(){return re},$e}var sf=Os;function P0(Y){var re=Gu;try{Gu=!0,qn.storagemutated.fire(Y),x0(Y,!0)}finally{Gu=re}}h(sf,r(r({},me),{delete:function(Y){return new sf(Y,{addons:[]}).delete()},exists:function(Y){return new sf(Y,{addons:[]}).open().then(function(re){return re.close(),!0}).catch("NoSuchDatabaseError",function(){return!1})},getDatabaseNames:function(Y){try{return re=sf.dependencies,ve=re.indexedDB,re=re.IDBKeyRange,(WC(ve)?Promise.resolve(ve.databases()).then(function($e){return $e.map(function(He){return He.name}).filter(function(He){return He!==zt})}):UC(ve,re).toCollection().primaryKeys()).then(Y)}catch{return gt(new ue.MissingAPI)}var re,ve},defineClass:function(){return function(Y){l(this,Y)}},ignoreTransaction:function(Y){return ze.trans?nn(ze.transless,Y):Y()},vip:VC,async:function(Y){return function(){try{var re=w0(Y.apply(this,arguments));return re&&typeof re.then=="function"?re:Ze.resolve(re)}catch(ve){return gt(ve)}}},spawn:function(Y,re,ve){try{var $e=w0(Y.apply(ve,re||[]));return $e&&typeof $e.then=="function"?$e:Ze.resolve($e)}catch(He){return gt(He)}},currentTransaction:{get:function(){return ze.trans||null}},waitFor:function(Y,re){return re=Ze.resolve(typeof Y=="function"?sf.ignoreTransaction(Y):Y).timeout(re||6e4),ze.trans?ze.trans.waitFor(re):re},Promise:Ze,debug:{get:function(){return Te},set:function(Y){ke(Y)}},derive:v,extend:l,props:h,override:C,Events:ni,on:qn,liveQuery:F4,extendObservabilitySet:af,getByKeyPath:x,setByKeyPath:E,delByKeyPath:function(Y,re){typeof re=="string"?E(Y,re,void 0):"length"in re&&[].map.call(re,function(ve){E(Y,ve,void 0)})},shallowClone:k,deepClone:A,getObjectDiff:E0,cmp:Ge,asap:T,minKey:-1/0,addons:[],connections:Mt,errnames:ee,dependencies:Ig,cache:dh,semVer:"4.0.10",version:"4.0.10".split(".").map(function(Y){return parseInt(Y)}).reduce(function(Y,re,ve){return Y+re/Math.pow(10,2*ve)})})),sf.maxKey=Gc(sf.dependencies.IDBKeyRange),typeof dispatchEvent<"u"&&typeof addEventListener<"u"&&(qn(qc,function(Y){Gu||(Y=new CustomEvent(lh,{detail:Y}),Gu=!0,dispatchEvent(Y),Gu=!1)}),addEventListener(lh,function(Y){Y=Y.detail,Gu||P0(Y)}));var Xc,Gu=!1,GC=function(){};return typeof BroadcastChannel<"u"&&((GC=function(){(Xc=new BroadcastChannel(lh)).onmessage=function(Y){return Y.data&&P0(Y.data)}})(),typeof Xc.unref=="function"&&Xc.unref(),qn(qc,function(Y){Gu||Xc.postMessage(Y)})),typeof addEventListener<"u"&&(addEventListener("pagehide",function(Y){if(!Os.disableBfCache&&Y.persisted){Te&&console.debug("Dexie: handling persisted pagehide"),Xc!=null&&Xc.close();for(var re=0,ve=Mt;re<ve.length;re++)ve[re].close({disableAutoOpen:!1})}}),addEventListener("pageshow",function(Y){!Os.disableBfCache&&Y.persisted&&(Te&&console.debug("Dexie: handling persisted pageshow"),GC(),P0({all:new Ga(-1/0,[[]])}))})),Ze.rejectionMapper=function(Y,re){return!Y||Y instanceof G||Y instanceof TypeError||Y instanceof SyntaxError||!Y.name||!ye[Y.name]?Y:(re=new ye[Y.name](re||Y.message,Y),"stack"in Y&&m(re,"stack",{get:function(){return this.inner.stack}}),re)},ke(Te),r(Os,Object.freeze({__proto__:null,Dexie:Os,liveQuery:F4,Entity:Ae,cmp:Ge,PropModSymbol:nr,PropModification:Ir,replacePrefix:function(Y,re){return new Ir({replacePrefix:[Y,re]})},add:function(Y){return new Ir({add:Y})},remove:function(Y){return new Ir({remove:Y})},default:Os,RangeSet:Ga,mergeRanges:of,rangesOverlap:uh}),{default:Os}),Os})})(ACe);var dpt=ACe.exports;const pj=vi(dpt),hne=Symbol.for("Dexie"),J9=globalThis[hne]||(globalThis[hne]=pj);if(pj.semVer!==J9.semVer)throw new Error(`Two different versions of Dexie loaded in the same app: ${pj.semVer} and ${J9.semVer}`);const{liveQuery:fpt,mergeRanges:acn,rangesOverlap:scn,RangeSet:lcn,cmp:ccn,Entity:ucn,PropModSymbol:dcn,PropModification:fcn,replacePrefix:hcn,add:pcn,remove:mcn}=J9;class NCe extends J9{constructor(){super("bytedesk");xi(this,"threads");xi(this,"messages");this.version(1).stores({threads:"++id, uid",messages:"++id, uid"})}async createMessage(n){return console.log("useIndexedDB createMessage",n.content),await ru.messages.put({uid:n.uid,type:n.type,content:n.content,client:n.client,createdAt:n.createdAt,status:"unread",threadTopic:n.threadTopic})}async getAllMessages(){return(await ru.messages.toArray()).map(r=>({uid:r.uid||"",type:r.type||"",content:r.content||"",client:r.client||"",createdAt:r.createdAt||"",status:r.status||"",threadTopic:r.threadTopic||"",user:{uid:r.userUid||"",nickname:r.userNickname||"",avatar:r.userAvatar||""}}))}async getMessage(n){return await ru.messages.get(n)}async updateMessage(n,r){return await ru.messages.update(n,{content:r})}async deleteMessage(n){return await ru.messages.delete(n)}subscribeMessages(){fpt(()=>this.messages.toArray()).subscribe({next:r=>{const i=r.map(o=>o.uid);console.log("messagesObservable message uids",i)}})}async createThread(n){var r,i,o;return console.log("useIndexedDB createThread",n.topic),await ru.threads.put({uid:n.uid,type:n.type,topic:n.topic,state:n.state,extra:n.extra,updatedAt:n.updatedAt,userUid:(r=n.user)==null?void 0:r.uid,userNickname:(i=n.user)==null?void 0:i.nickname,userAvatar:(o=n.user)==null?void 0:o.avatar})}async getAllThreads(){return(await ru.threads.toArray()).map(r=>({uid:r.uid||"",type:r.type||"",topic:r.topic||"",status:r.state||"",extra:r.extra||"",createdAt:r.updatedAt||"",user:{uid:r.userUid||"",nickname:r.userNickname||"",avatar:r.userAvatar||""}}))}async getThread(n){return await ru.threads.get(n)}async updateThread(n,r){return await ru.threads.update(n,r)}async deleteThread(n){return await ru.threads.delete(n)}}const ru=new NCe;let Yo,Pl,Ml,iy=!1;const hpt=({uid:e,username:t,accessToken:n})=>{if(n===""||n==null){console.log("accessToken is empty, don't connect mqtt");return}if(Pl=Ka.getState().userInfo,Ml=Vv.getState().agentInfo,iy){console.log("mqtt is connecting");return}if(Yo&&Yo.connected){console.log("mqtt already connected");return}if(Yo&&Yo.reconnecting){console.log("mqtt already reconnecting");return}iy=!0;const r=Ka.getState().deviceUid,o={keepalive:30,clientId:e+"/"+bo+"/"+r,username:t,password:n,clean:!1,path:"/websocket",reconnectPeriod:5e3,connectTimeout:30*1e3,reschedulePings:!0,rejectUnauthorized:!1,log(...a){hv&&console.log("mqtt debug log",...a)}};console.log("mqtt start connect:",o),Yo=xRe.connect(wIe(),o),Yo.on("connect",()=>{console.log("mqtt event connected"),iy=!1,Dr.emit(q7)}),Yo.on("message",async function(a,s,l){console.log("mqtt receive message topic:",a,l);const c=Jpe.Message.deserializeBinary(s),u=bd.getState().currentThread,d={uid:c.getThread().getUid(),type:c.getThread().getType(),topic:c.getThread().getTopic(),content:c.getContent(),updatedAt:c.getCreatedat(),unreadCount:0,user:{uid:c.getThread().getUser().getUid(),nickname:c.getThread().getUser().getNickname(),avatar:c.getThread().getUser().getAvatar()}},h={uid:c.getUid(),createdAt:c.getCreatedat(),client:c.getClient(),type:c.getType(),status:c.getStatus(),user:{uid:c.getUser().getUid(),nickname:c.getUser().getNickname(),avatar:c.getUser().getAvatar()},content:c.getContent(),threadTopic:c.getThread().getTopic()};if(vpt(c,Pl,Ml))switch(c.getType()){case sD:case aD:cA(c);return;case iD:case oD:return;case PX:return;case IX:console.log("self transfer message"),vne(h,d);break;case $X:console.log("self transfer accept message"),yne(h,d);return;case RX:console.log("self transfer reject message"),bne(h,d);return;case MX:console.log("self recall message"),Sne(h);return;case Gw:console.log("thread closed message"),bd.getState().closeThread(d.topic);break;default:c.setStatus(nD)}else switch(c.getType()){case sD:case aD:cA(c);return;case iD:case oD:gne(u,d,c.getType());return;case Kw:gne(u,d,c.getType());break;case PX:ypt(c,u,d);return;case LOe:case FOe:case jOe:case BOe:case HOe:case zOe:cA(c);return;case IX:console.log("transfer message"),vne(h,d);break;case $X:console.log("transfer accept message"),yne(h,d);return;case RX:console.log("transfer reject message"),bne(h,d);return;case MX:console.log("recall message"),Sne(h);return;case qw:case Gw:console.log("thread closed message"),bd.getState().closeThread(d.topic);break;default:console.log("send receive message type",c.getType()),bpt(c,u,d)}console.log("mqtt message received",a,h,d),Tp.getState().addMessage(h),Dr.emit(Ww,h);const p=bd.getState().addThreadWithMessage(d,h);console.log("unreadCount",p);try{await ru.createMessage(h),console.log("Sent message stored in IndexedDB:",h)}catch(m){console.error("Error storing sent message in IndexedDB:",m)}}),Yo.on("packetsend",a=>{console.log("mqtt event packetsend",a)}),Yo.on("packetreceive",a=>{console.log("mqtt event packetreceive",a,a.cmd),a.cmd==="publish"||a.cmd==="pingresp"&&console.log("mqtt event packetreceive pingresp")}),Yo.on("reconnect",()=>{console.log("mqtt event reconnect")}),Yo.on("close",()=>{console.log("mqtt event close"),iy=!1,Dr.emit(Y7)}),Yo.on("disconnect",()=>{console.error("mqtt event disconnected"),iy=!1,Dr.emit(X7)}),Yo.on("offline",()=>{console.log("mqtt event offline"),iy=!1,Dr.emit(G7)}),Yo.on("error",()=>{console.log("mqtt event error"),Dr.emit(Q7)}),Yo.on("end",()=>{console.log("mqtt event end"),Dr.emit(Z7)})},pne=new Set,DCe=(e,t)=>{console.log("mqtt mqttSendReceiptReceivedMessage",e),pne.has(e)||(pne.add(e),LCe(Q6(),aD,e,t))},mne=new Set,ppt=(e,t)=>{console.log("mqtt mqttSendReceiptReadMessage",e),mne.has(e)||(mne.add(e),LCe(Q6(),sD,e,t))},LCe=async(e,t,n,r)=>{var o,a,s,l,c,u,d,h;console.log("mqtt mqttSendMessage",n);const i=NDe();if(Yo&&Yo.connected){const p=new _Re.Thread;p.setUid(r.uid),p.setType(r.type),p.setTopic(r.topic);const m=new zQ.User;m.setUid((o=r.user)==null?void 0:o.uid),m.setNickname((a=r.user)==null?void 0:a.nickname),m.setAvatar((s=r.user)==null?void 0:s.avatar),p.setUser(m);const v=new zQ.User;(Ml==null?void 0:Ml.uid)!=""&&((r==null?void 0:r.type)===_X||(r==null?void 0:r.type)===EX)?(v.setUid(Ml.uid),v.setNickname(Ml.nickname),v.setAvatar(Ml.avatar),v.setType(xX)):(v.setUid(Pl.uid),v.setNickname(Pl.nickname),v.setAvatar(Pl.avatar),v.setType(wX));const y={orgUid:(l=Pl==null?void 0:Pl.currentOrganization)==null?void 0:l.uid},S=new Jpe.Message;S.setUid(e),S.setType(t),S.setStatus(OX),S.setCreatedat(i),S.setClient(bo),S.setContent(n),S.setUser(v),S.setThread(p),S.setExtra(JSON.stringify(y));const b=S.serializeBinary();Yo.publish(r.topic,b);try{const C={uid:S.getUid(),type:S.getType(),content:S.getContent(),client:S.getClient(),createdAt:S.getCreatedat(),status:S.getStatus(),threadTopic:S.getThread().getTopic(),user:{uid:S.getUser().getUid(),nickname:S.getUser().getNickname(),avatar:S.getUser().getAvatar()}};await ru.createMessage(C),console.log("Sent message stored in IndexedDB:",C)}catch(C){console.error("Error storing sent message in IndexedDB:",C)}}else{console.log("mqttClient is disconnect, use http rest api");const p={uid:r.uid,type:r.type,topic:r.topic,user:{uid:(c=r.user)==null?void 0:c.uid,nickname:(u=r.user)==null?void 0:u.nickname,avatar:(d=r.user)==null?void 0:d.avatar}};let m;(Ml==null?void 0:Ml.uid)!=""&&((r==null?void 0:r.type)===_X||(r==null?void 0:r.type)===EX)?m={uid:Ml.uid,nickname:Ml.nickname,avatar:Ml.avatar,type:xX}:m={uid:Pl.uid,nickname:Pl.nickname,avatar:Pl.avatar,type:wX};const v={orgUid:(h=Pl==null?void 0:Pl.currentOrganization)==null?void 0:h.uid},y={uid:e,type:t,status:OX,createdAt:i,client:bo,content:n,extra:JSON.stringify(v),user:m,thread:p};gpt(y)}},lA=()=>{Yo?Yo.end():console.log("mqttClient is null")},mpt=()=>Yo&&Yo.connected,gpt=async e=>{const t=JSON.stringify(e),n=await RIe(t);if(console.log("sendHttpMessage:",n.data),n.data.code===200){Tp.getState().updateMessageStatus(e==null?void 0:e.uid,nD);const r={uid:e==null?void 0:e.uid,type:nD};Dr.emit(wfe,JSON.stringify(r))}else Wn.error(n.data.message)},vpt=(e,t,n)=>e.getUser().getUid()===(t==null?void 0:t.uid)||e.getUser().getUid()===(n==null?void 0:n.uid);function cA(e){console.log("update message status:",e.getContent(),e.getType()),Tp.getState().updateMessageStatus(e.getContent(),e.getType());const t={uid:e.getContent(),type:e.getType()};Dr.emit(wfe,JSON.stringify(t))}function gne(e,t,n){(e==null?void 0:e.topic)===(t==null?void 0:t.topic)&&(n===iD?Dr.emit(eOe):n===oD?Dr.emit(tOe):n===Kw&&Dr.emit(nOe))}function ypt(e,t,n){(t==null?void 0:t.topic)===(n==null?void 0:n.topic)&&Dr.emit(rOe,e.getContent())}function vne(e,t){const n={message:e,thread:t};Dr.emit(J7,JSON.stringify(n))}function yne(e,t){const n=JSON.parse(e==null?void 0:e.content);Tp.getState().updateMessageStatus(n.uid,POe);const r={message:e,thread:t};Dr.emit(eD,JSON.stringify(r))}function bne(e,t){const n=JSON.parse(e==null?void 0:e.content);Tp.getState().updateMessageStatus(n.uid,MOe);const r={message:e,thread:t};Dr.emit(tD,JSON.stringify(r))}function Sne(e){console.log("handleRecallMessage",e==null?void 0:e.uid,e==null?void 0:e.content),Tp.getState().recallMessage(e==null?void 0:e.content)}function bpt(e,t,n){if(!jDe(n==null?void 0:n.topic)&&DDe(e==null?void 0:e.getType())){const r=e==null?void 0:e.getUid();DCe(r,n),(t==null?void 0:t.topic)===(n==null?void 0:n.topic)&&ppt(r,n)}}const Spt=Uc()(Vd(Kd(qd(e=>({devices:[],currentDevice:{uid:""},myDevice:{uid:""},addDevice(t){console.log("addDevice",t)},setCurrentDevice:t=>{e({currentDevice:t})},setMyDevice(t){e({myDevice:t})},resetDeviceInfo(){}})),{name:hOe}))),FCe=()=>{S_("https://www.weiyuai.cn/docs/zh-CN/")},S_=e=>{is?window.electronAPI.openUrl(e):window.open(e,"_blank")},Cpt=async()=>{if(is){const e=await window.electronAPI.getSystemInfo();console.log("systemInfo:",e)}else return console.log("not electron"),{platform:"web"}},jCe=async()=>is?await window.electronAPI.getIpAddress():(console.log("not electron"),[]),xpt=async()=>{if(is){const e=await window.electronAPI.isWindowActive();return console.log("isWindowActive:",e),e}return null},wpt=(e,t)=>{is&&window.electronAPI.showElectronNotification(e,t)},_pt=e=>{is?window.electronAPI.setThemeMode(e):console.log("not electron")},mj=()=>{is&&window.electronAPI.loginSuccess()},Ept=()=>{is&&window.electronAPI.logoutSuccess()};function BCe(){console.debug("useUserInfo");const[e,t]=f.useState(""),{myDevice:n,setMyDevice:r}=Spt(k=>({myDevice:k.myDevice,setMyDevice:k.setMyDevice})),{userInfo:i,deviceUid:o,setUserInfo:a,setDeviceUid:s}=Ka(k=>({userInfo:k.userInfo,deviceUid:k.deviceUid,setUserInfo:k.setUserInfo,setDeviceUid:k.setDeviceUid})),{agentInfo:l}=Vv(k=>({agentInfo:k.agentInfo})),c=Tp(k=>k.addMessage),u=bd(k=>k.updateThreadContent),d=f.useRef(!1),[h,p]=f.useState(!1);f.useEffect(()=>{p(!1),i.userOrganizationRoles&&i.userOrganizationRoles.forEach(k=>{k.roles.forEach(M=>{M.name===VOe&&p(!0)})})},[i.userOrganizationRoles]);const[m,v]=f.useState(!1);f.useEffect(()=>{v(!1),i.userOrganizationRoles&&i.userOrganizationRoles.forEach(k=>{k.roles.forEach(M=>{M.name===KOe&&v(!0)})})},[i.userOrganizationRoles]);const[y,S]=f.useState(!1);f.useEffect(()=>{S(!1),i.userOrganizationRoles&&i.userOrganizationRoles.forEach(k=>{k.roles.forEach(M=>{M.name===qOe&&S(!0)})})},[i.userOrganizationRoles]);const[b,C]=f.useState(!1);f.useEffect(()=>{C(!1),i.userOrganizationRoles&&i.userOrganizationRoles.forEach(k=>{k.roles.forEach(M=>{M.name===GOe&&C(!0)})})},[i.userOrganizationRoles]);const _="",T=async()=>{const k=await jCe();console.log("ipAddress",e,k),k.length>0&&(t(k[0]),n.ip=k[0],r(n))},x=async()=>{var M,P;if(d.current)return;d.current=!0;const k=await $Ie(l==null?void 0:l.uid);console.log("getAgentMessageUnread response:",k==null?void 0:k.data),(P=(M=k==null?void 0:k.data)==null?void 0:M.data)==null||P.forEach(D=>{console.log("getAgentMessageUnread item:",D),c(D);const R=u(D.threadTopic,D.content);R&&DCe(D==null?void 0:D.uid,R)}),d.current=!1};return f.useEffect(()=>{b&&x()},[b]),f.useEffect(()=>{console.log("useUserInfo useEffect"),(o===void 0||o==="")&&s(Q6()),T()},[]),{userInfo:i,setUserInfo:a,agentInfo:l,handleUpdateAgentStatus:async k=>{const M={...l,status:k};Wn.loading("正在更新状态");const P=await IIe(M);console.log("updateAgentStatus:",k,P.data),P.data.code===200?(Wn.destroy(),Wn.success("状态更新成功")):(Wn.destroy(),Wn.error("状态更新失败"))},avatar:_,hasRoleAgent:b,hasRoleSuper:h,hasRoleAdmin:m,hasRoleMember:y}}const Ks=f.createContext({}),Tpt=({children:e})=>{const[t,n]=f.useState(!1),[r,i]=f.useState(!1),o=J_(M=>M.accessToken),a=YOe(M=>M.settings),{userInfo:s,setUserInfo:l,agentInfo:c,handleUpdateAgentStatus:u,hasRoleAgent:d,hasRoleSuper:h,hasRoleAdmin:p,hasRoleMember:m}=BCe(),v=f.useMemo(()=>!!o&&o.trim().length>0,[o]),{themeMode:y,setThemeMode:S,isDarkMode:b}=Ffe(),[C,_]=f.useState(xT),T=M=>{let P;M==="en"?P=FX:M==="zh-cn"?P=xT:M==="zh-tw"?P=WPe:P=xT,console.log("changeLocale localeValue:",P),_(P),localStorage.setItem(vX,P.locale)},[x,E]=f.useState(rb),k=M=>{E(M),localStorage.setItem(yX,M)};return f.useEffect(()=>{const M=localStorage.getItem(vX);_(M==="en"?FX:xT);const P=localStorage.getItem(yX);E(P===rb?rb:P===pv?pv:q3)},[]),U.jsx(Ks.Provider,{value:{isCustomServer:t,setIsCustomServer:n,isLoggedIn:v,settings:a,isDarkMode:b,themeMode:y,setThemeMode:S,locale:C,changeLocale:T,mode:x,changeMode:k,isPingLoading:r,setPingLoading:i,userInfo:s,setUserInfo:l,agentInfo:c,handleUpdateAgentStatus:u,hasRoleAgent:d,hasRoleSuper:h,hasRoleAdmin:p,hasRoleMember:m},children:e})};var _P=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},EP=typeof window>"u"||"Deno"in globalThis;function cd(){}function kpt(e,t){return typeof e=="function"?e(t):e}function Opt(e){return typeof e=="number"&&e>=0&&e!==1/0}function Ppt(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Cne(e,t){return typeof e=="function"?e(t):e}function Mpt(e,t){return typeof e=="function"?e(t):e}function xne(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a){if(r){if(t.queryHash!==nV(a,t.options))return!1}else if(!x_(t.queryKey,a))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||i&&i!==t.state.fetchStatus||o&&!o(t))}function wne(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(C_(t.options.mutationKey)!==C_(o))return!1}else if(!x_(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function nV(e,t){return((t==null?void 0:t.queryKeyHashFn)||C_)(e)}function C_(e){return JSON.stringify(e,(t,n)=>gj(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function x_(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!x_(e[n],t[n])):!1}function HCe(e,t){if(e===t)return e;const n=_ne(e)&&_ne(t);if(n||gj(e)&&gj(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),a=o.length,s=n?[]:{};let l=0;for(let c=0;c<a;c++){const u=n?c:o[c];(!n&&r.includes(u)||n)&&e[u]===void 0&&t[u]===void 0?(s[u]=void 0,l++):(s[u]=HCe(e[u],t[u]),s[u]===e[u]&&e[u]!==void 0&&l++)}return i===a&&l===i?e:s}return t}function _ne(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function gj(e){if(!Ene(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Ene(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Ene(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ipt(e){return new Promise(t=>{setTimeout(t,e)})}function $pt(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?HCe(e,t):t}function Rpt(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Apt(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var rV=Symbol();function zCe(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===rV?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var N1,wm,Cb,Hce,Npt=(Hce=class extends _P{constructor(){super();sr(this,N1);sr(this,wm);sr(this,Cb);Nn(this,Cb,t=>{if(!EP&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){Xe(this,wm)||this.setEventListener(Xe(this,Cb))}onUnsubscribe(){var t;this.hasListeners()||((t=Xe(this,wm))==null||t.call(this),Nn(this,wm,void 0))}setEventListener(t){var n;Nn(this,Cb,t),(n=Xe(this,wm))==null||n.call(this),Nn(this,wm,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){Xe(this,N1)!==t&&(Nn(this,N1,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof Xe(this,N1)=="boolean"?Xe(this,N1):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},N1=new WeakMap,wm=new WeakMap,Cb=new WeakMap,Hce),UCe=new Npt,xb,_m,wb,zce,Dpt=(zce=class extends _P{constructor(){super();sr(this,xb,!0);sr(this,_m);sr(this,wb);Nn(this,wb,t=>{if(!EP&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){Xe(this,_m)||this.setEventListener(Xe(this,wb))}onUnsubscribe(){var t;this.hasListeners()||((t=Xe(this,_m))==null||t.call(this),Nn(this,_m,void 0))}setEventListener(t){var n;Nn(this,wb,t),(n=Xe(this,_m))==null||n.call(this),Nn(this,_m,t(this.setOnline.bind(this)))}setOnline(t){Xe(this,xb)!==t&&(Nn(this,xb,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return Xe(this,xb)}},xb=new WeakMap,_m=new WeakMap,wb=new WeakMap,zce),ek=new Dpt;function Lpt(){let e,t;const n=new Promise((i,o)=>{e=i,t=o});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function Fpt(e){return Math.min(1e3*2**e,3e4)}function WCe(e){return(e??"online")==="online"?ek.isOnline():!0}var VCe=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function uA(e){return e instanceof VCe}function KCe(e){let t=!1,n=0,r=!1,i;const o=Lpt(),a=v=>{var y;r||(h(new VCe(v)),(y=e.abort)==null||y.call(e))},s=()=>{t=!0},l=()=>{t=!1},c=()=>UCe.isFocused()&&(e.networkMode==="always"||ek.isOnline())&&e.canRun(),u=()=>WCe(e.networkMode)&&e.canRun(),d=v=>{var y;r||(r=!0,(y=e.onSuccess)==null||y.call(e,v),i==null||i(),o.resolve(v))},h=v=>{var y;r||(r=!0,(y=e.onError)==null||y.call(e,v),i==null||i(),o.reject(v))},p=()=>new Promise(v=>{var y;i=S=>{(r||c())&&v(S)},(y=e.onPause)==null||y.call(e)}).then(()=>{var v;i=void 0,r||(v=e.onContinue)==null||v.call(e)}),m=()=>{if(r)return;let v;const y=n===0?e.initialPromise:void 0;try{v=y??e.fn()}catch(S){v=Promise.reject(S)}Promise.resolve(v).then(d).catch(S=>{var x;if(r)return;const b=e.retry??(EP?0:3),C=e.retryDelay??Fpt,_=typeof C=="function"?C(n,S):C,T=b===!0||typeof b=="number"&&n<b||typeof b=="function"&&b(n,S);if(t||!T){h(S);return}n++,(x=e.onFail)==null||x.call(e,n,S),Ipt(_).then(()=>c()?void 0:p()).then(()=>{t?h(S):m()})})};return{promise:o,cancel:a,continue:()=>(i==null||i(),o),cancelRetry:s,continueRetry:l,canStart:u,start:()=>(u()?m():p().then(m),o)}}function jpt(){let e=[],t=0,n=s=>{s()},r=s=>{s()},i=s=>setTimeout(s,0);const o=s=>{t?e.push(s):i(()=>{n(s)})},a=()=>{const s=e;e=[],s.length&&i(()=>{r(()=>{s.forEach(l=>{n(l)})})})};return{batch:s=>{let l;t++;try{l=s()}finally{t--,t||a()}return l},batchCalls:s=>(...l)=>{o(()=>{s(...l)})},schedule:o,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{i=s}}}var cl=jpt(),D1,Uce,qCe=(Uce=class{constructor(){sr(this,D1)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Opt(this.gcTime)&&Nn(this,D1,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(EP?1/0:5*60*1e3))}clearGcTimeout(){Xe(this,D1)&&(clearTimeout(Xe(this,D1)),Nn(this,D1,void 0))}},D1=new WeakMap,Uce),_b,Eb,ou,As,W_,L1,ud,Ph,Wce,Bpt=(Wce=class extends qCe{constructor(t){super();sr(this,ud);sr(this,_b);sr(this,Eb);sr(this,ou);sr(this,As);sr(this,W_);sr(this,L1);Nn(this,L1,!1),Nn(this,W_,t.defaultOptions),this.setOptions(t.options),this.observers=[],Nn(this,ou,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Nn(this,_b,zpt(this.options)),this.state=t.state??Xe(this,_b),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=Xe(this,As))==null?void 0:t.promise}setOptions(t){this.options={...Xe(this,W_),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&Xe(this,ou).remove(this)}setData(t,n){const r=$pt(this.state.data,t,this.options);return Jn(this,ud,Ph).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Jn(this,ud,Ph).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=Xe(this,As))==null?void 0:r.promise;return(i=Xe(this,As))==null||i.cancel(t),n?n.then(cd).catch(cd):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Xe(this,_b))}isActive(){return this.observers.some(t=>Mpt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===rV||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!Ppt(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=Xe(this,As))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=Xe(this,As))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),Xe(this,ou).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(Xe(this,As)&&(Xe(this,L1)?Xe(this,As).cancel({revert:!0}):Xe(this,As).cancelRetry()),this.scheduleGc()),Xe(this,ou).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Jn(this,ud,Ph).call(this,{type:"invalidate"})}fetch(t,n){var l,c,u;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(Xe(this,As))return Xe(this,As).continueRetry(),Xe(this,As).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(h=>h.options.queryFn);d&&this.setOptions(d.options)}const r=new AbortController,i=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(Nn(this,L1,!0),r.signal)})},o=()=>{const d=zCe(this.options,n),h={queryKey:this.queryKey,meta:this.meta};return i(h),Nn(this,L1,!1),this.options.persister?this.options.persister(d,h,this):d(h)},a={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};i(a),(l=this.options.behavior)==null||l.onFetch(a,this),Nn(this,Eb,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=a.fetchOptions)==null?void 0:c.meta))&&Jn(this,ud,Ph).call(this,{type:"fetch",meta:(u=a.fetchOptions)==null?void 0:u.meta});const s=d=>{var h,p,m,v;uA(d)&&d.silent||Jn(this,ud,Ph).call(this,{type:"error",error:d}),uA(d)||((p=(h=Xe(this,ou).config).onError)==null||p.call(h,d,this),(v=(m=Xe(this,ou).config).onSettled)==null||v.call(m,this.state.data,d,this)),this.scheduleGc()};return Nn(this,As,KCe({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:d=>{var h,p,m,v;if(d===void 0){s(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(y){s(y);return}(p=(h=Xe(this,ou).config).onSuccess)==null||p.call(h,d,this),(v=(m=Xe(this,ou).config).onSettled)==null||v.call(m,d,this.state.error,this),this.scheduleGc()},onError:s,onFail:(d,h)=>{Jn(this,ud,Ph).call(this,{type:"failed",failureCount:d,error:h})},onPause:()=>{Jn(this,ud,Ph).call(this,{type:"pause"})},onContinue:()=>{Jn(this,ud,Ph).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),Xe(this,As).start()}},_b=new WeakMap,Eb=new WeakMap,ou=new WeakMap,As=new WeakMap,W_=new WeakMap,L1=new WeakMap,ud=new WeakSet,Ph=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Hpt(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return uA(i)&&i.revert&&Xe(this,Eb)?{...Xe(this,Eb),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),cl.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),Xe(this,ou).notify({query:this,type:"updated",action:t})})},Wce);function Hpt(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:WCe(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function zpt(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Cf,Vce,Upt=(Vce=class extends _P{constructor(t={}){super();sr(this,Cf);this.config=t,Nn(this,Cf,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??nV(i,n);let a=this.get(o);return a||(a=new Bpt({cache:this,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(a)),a}add(t){Xe(this,Cf).has(t.queryHash)||(Xe(this,Cf).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=Xe(this,Cf).get(t.queryHash);n&&(t.destroy(),n===t&&Xe(this,Cf).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){cl.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return Xe(this,Cf).get(t)}getAll(){return[...Xe(this,Cf).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>xne(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>xne(t,r)):n}notify(t){cl.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){cl.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){cl.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Cf=new WeakMap,Vce),xf,nl,F1,wf,um,Kce,Wpt=(Kce=class extends qCe{constructor(t){super();sr(this,wf);sr(this,xf);sr(this,nl);sr(this,F1);this.mutationId=t.mutationId,Nn(this,nl,t.mutationCache),Nn(this,xf,[]),this.state=t.state||Vpt(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){Xe(this,xf).includes(t)||(Xe(this,xf).push(t),this.clearGcTimeout(),Xe(this,nl).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Nn(this,xf,Xe(this,xf).filter(n=>n!==t)),this.scheduleGc(),Xe(this,nl).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){Xe(this,xf).length||(this.state.status==="pending"?this.scheduleGc():Xe(this,nl).remove(this))}continue(){var t;return((t=Xe(this,F1))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,a,s,l,c,u,d,h,p,m,v,y,S,b,C,_,T,x,E;Nn(this,F1,KCe({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(k,M)=>{Jn(this,wf,um).call(this,{type:"failed",failureCount:k,error:M})},onPause:()=>{Jn(this,wf,um).call(this,{type:"pause"})},onContinue:()=>{Jn(this,wf,um).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Xe(this,nl).canRun(this)}));const n=this.state.status==="pending",r=!Xe(this,F1).canStart();try{if(!n){Jn(this,wf,um).call(this,{type:"pending",variables:t,isPaused:r}),await((o=(i=Xe(this,nl).config).onMutate)==null?void 0:o.call(i,t,this));const M=await((s=(a=this.options).onMutate)==null?void 0:s.call(a,t));M!==this.state.context&&Jn(this,wf,um).call(this,{type:"pending",context:M,variables:t,isPaused:r})}const k=await Xe(this,F1).start();return await((c=(l=Xe(this,nl).config).onSuccess)==null?void 0:c.call(l,k,t,this.state.context,this)),await((d=(u=this.options).onSuccess)==null?void 0:d.call(u,k,t,this.state.context)),await((p=(h=Xe(this,nl).config).onSettled)==null?void 0:p.call(h,k,null,this.state.variables,this.state.context,this)),await((v=(m=this.options).onSettled)==null?void 0:v.call(m,k,null,t,this.state.context)),Jn(this,wf,um).call(this,{type:"success",data:k}),k}catch(k){try{throw await((S=(y=Xe(this,nl).config).onError)==null?void 0:S.call(y,k,t,this.state.context,this)),await((C=(b=this.options).onError)==null?void 0:C.call(b,k,t,this.state.context)),await((T=(_=Xe(this,nl).config).onSettled)==null?void 0:T.call(_,void 0,k,this.state.variables,this.state.context,this)),await((E=(x=this.options).onSettled)==null?void 0:E.call(x,void 0,k,t,this.state.context)),k}finally{Jn(this,wf,um).call(this,{type:"error",error:k})}}finally{Xe(this,nl).runNext(this)}}},xf=new WeakMap,nl=new WeakMap,F1=new WeakMap,wf=new WeakSet,um=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),cl.batch(()=>{Xe(this,xf).forEach(r=>{r.onMutationUpdate(t)}),Xe(this,nl).notify({mutation:this,type:"updated",action:t})})},Kce);function Vpt(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var gc,V_,qce,Kpt=(qce=class extends _P{constructor(t={}){super();sr(this,gc);sr(this,V_);this.config=t,Nn(this,gc,new Map),Nn(this,V_,Date.now())}build(t,n,r){const i=new Wpt({mutationCache:this,mutationId:++jg(this,V_)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=o5(t),r=Xe(this,gc).get(n)??[];r.push(t),Xe(this,gc).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=o5(t);if(Xe(this,gc).has(n)){const i=(r=Xe(this,gc).get(n))==null?void 0:r.filter(o=>o!==t);i&&(i.length===0?Xe(this,gc).delete(n):Xe(this,gc).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=Xe(this,gc).get(o5(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=Xe(this,gc).get(o5(t)))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){cl.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...Xe(this,gc).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>wne(n,r))}findAll(t={}){return this.getAll().filter(n=>wne(t,n))}notify(t){cl.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return cl.batch(()=>Promise.all(t.map(n=>n.continue().catch(cd))))}},gc=new WeakMap,V_=new WeakMap,qce);function o5(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function Tne(e){return{onFetch:(t,n)=>{var u,d,h,p,m;const r=t.options,i=(h=(d=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:d.fetchMore)==null?void 0:h.direction,o=((p=t.state.data)==null?void 0:p.pages)||[],a=((m=t.state.data)==null?void 0:m.pageParams)||[];let s={pages:[],pageParams:[]},l=0;const c=async()=>{let v=!1;const y=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>(t.signal.aborted?v=!0:t.signal.addEventListener("abort",()=>{v=!0}),t.signal)})},S=zCe(t.options,t.fetchOptions),b=async(C,_,T)=>{if(v)return Promise.reject();if(_==null&&C.pages.length)return Promise.resolve(C);const x={queryKey:t.queryKey,pageParam:_,direction:T?"backward":"forward",meta:t.options.meta};y(x);const E=await S(x),{maxPages:k}=t.options,M=T?Apt:Rpt;return{pages:M(C.pages,E,k),pageParams:M(C.pageParams,_,k)}};if(i&&o.length){const C=i==="backward",_=C?qpt:kne,T={pages:o,pageParams:a},x=_(r,T);s=await b(T,x,C)}else{const C=e??o.length;do{const _=l===0?a[0]??r.initialPageParam:kne(r,s);if(l>0&&_==null)break;s=await b(s,_),l++}while(l<C)}return s};t.options.persister?t.fetchFn=()=>{var v,y;return(y=(v=t.options).persister)==null?void 0:y.call(v,c,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function kne(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function qpt(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Go,Em,Tm,Tb,kb,km,Ob,Pb,Gce,Gpt=(Gce=class{constructor(e={}){sr(this,Go);sr(this,Em);sr(this,Tm);sr(this,Tb);sr(this,kb);sr(this,km);sr(this,Ob);sr(this,Pb);Nn(this,Go,e.queryCache||new Upt),Nn(this,Em,e.mutationCache||new Kpt),Nn(this,Tm,e.defaultOptions||{}),Nn(this,Tb,new Map),Nn(this,kb,new Map),Nn(this,km,0)}mount(){jg(this,km)._++,Xe(this,km)===1&&(Nn(this,Ob,UCe.subscribe(async e=>{e&&(await this.resumePausedMutations(),Xe(this,Go).onFocus())})),Nn(this,Pb,ek.subscribe(async e=>{e&&(await this.resumePausedMutations(),Xe(this,Go).onOnline())})))}unmount(){var e,t;jg(this,km)._--,Xe(this,km)===0&&((e=Xe(this,Ob))==null||e.call(this),Nn(this,Ob,void 0),(t=Xe(this,Pb))==null||t.call(this),Nn(this,Pb,void 0))}isFetching(e){return Xe(this,Go).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return Xe(this,Em).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Xe(this,Go).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=Xe(this,Go).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(Cne(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return Xe(this,Go).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=Xe(this,Go).get(r.queryHash),o=i==null?void 0:i.state.data,a=kpt(t,o);if(a!==void 0)return Xe(this,Go).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return cl.batch(()=>Xe(this,Go).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Xe(this,Go).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=Xe(this,Go);cl.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=Xe(this,Go),r={type:"active",...e};return cl.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=cl.batch(()=>Xe(this,Go).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(cd).catch(cd)}invalidateQueries(e={},t={}){return cl.batch(()=>{if(Xe(this,Go).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=cl.batch(()=>Xe(this,Go).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(cd)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(cd)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=Xe(this,Go).build(this,t);return n.isStaleByTime(Cne(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(cd).catch(cd)}fetchInfiniteQuery(e){return e.behavior=Tne(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(cd).catch(cd)}ensureInfiniteQueryData(e){return e.behavior=Tne(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ek.isOnline()?Xe(this,Em).resumePausedMutations():Promise.resolve()}getQueryCache(){return Xe(this,Go)}getMutationCache(){return Xe(this,Em)}getDefaultOptions(){return Xe(this,Tm)}setDefaultOptions(e){Nn(this,Tm,e)}setQueryDefaults(e,t){Xe(this,Tb).set(C_(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...Xe(this,Tb).values()];let n={};return t.forEach(r=>{x_(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){Xe(this,kb).set(C_(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...Xe(this,kb).values()];let n={};return t.forEach(r=>{x_(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...Xe(this,Tm).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=nV(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===rV&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...Xe(this,Tm).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Xe(this,Go).clear(),Xe(this,Em).clear()}},Go=new WeakMap,Em=new WeakMap,Tm=new WeakMap,Tb=new WeakMap,kb=new WeakMap,km=new WeakMap,Ob=new WeakMap,Pb=new WeakMap,Gce),Ypt=f.createContext(void 0),Xpt=({client:e,children:t})=>(f.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),U.jsx(Ypt.Provider,{value:e,children:t}));/**
|
||
* @remix-run/router v1.21.0
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function Oo(){return Oo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Oo.apply(this,arguments)}var Ca;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Ca||(Ca={}));const One="popstate";function Qpt(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:a,hash:s}=r.location;return nS("",{pathname:o,search:a,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:ag(i)}return GCe(t,n,null,e)}function Zpt(e){e===void 0&&(e={});function t(i,o){let{pathname:a="/",search:s="",hash:l=""}=Ip(i.location.hash.substr(1));return!a.startsWith("/")&&!a.startsWith(".")&&(a="/"+a),nS("",{pathname:a,search:s,hash:l},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(i,o){let a=i.document.querySelector("base"),s="";if(a&&a.getAttribute("href")){let l=i.location.href,c=l.indexOf("#");s=c===-1?l:l.slice(0,c)}return s+"#"+(typeof o=="string"?o:ag(o))}function r(i,o){Tv(i.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(o)+")")}return GCe(t,n,r,e)}function oi(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Tv(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Jpt(){return Math.random().toString(36).substr(2,8)}function Pne(e,t){return{usr:e.state,key:e.key,idx:t}}function nS(e,t,n,r){return n===void 0&&(n=null),Oo({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ip(t):t,{state:n,key:t&&t.key||r||Jpt()})}function ag(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ip(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function GCe(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=Ca.Pop,l=null,c=u();c==null&&(c=0,a.replaceState(Oo({},a.state,{idx:c}),""));function u(){return(a.state||{idx:null}).idx}function d(){s=Ca.Pop;let y=u(),S=y==null?null:y-c;c=y,l&&l({action:s,location:v.location,delta:S})}function h(y,S){s=Ca.Push;let b=nS(v.location,y,S);n&&n(b,y),c=u()+1;let C=Pne(b,c),_=v.createHref(b);try{a.pushState(C,"",_)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;i.location.assign(_)}o&&l&&l({action:s,location:v.location,delta:1})}function p(y,S){s=Ca.Replace;let b=nS(v.location,y,S);n&&n(b,y),c=u();let C=Pne(b,c),_=v.createHref(b);a.replaceState(C,"",_),o&&l&&l({action:s,location:v.location,delta:0})}function m(y){let S=i.location.origin!=="null"?i.location.origin:i.location.href,b=typeof y=="string"?y:ag(y);return b=b.replace(/ $/,"%20"),oi(S,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,S)}let v={get action(){return s},get location(){return e(i,a)},listen(y){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(One,d),l=y,()=>{i.removeEventListener(One,d),l=null}},createHref(y){return t(i,y)},createURL:m,encodeLocation(y){let S=m(y);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:h,replace:p,go(y){return a.go(y)}};return v}var Qi;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Qi||(Qi={}));const emt=new Set(["lazy","caseSensitive","path","id","index","children"]);function tmt(e){return e.index===!0}function tk(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,o)=>{let a=[...n,String(o)],s=typeof i.id=="string"?i.id:a.join("-");if(oi(i.index!==!0||!i.children,"Cannot specify children on an index route"),oi(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),tmt(i)){let l=Oo({},i,t(i),{id:s});return r[s]=l,l}else{let l=Oo({},i,t(i),{id:s,children:void 0});return r[s]=l,i.children&&(l.children=tk(i.children,t,a,r)),l}})}function p1(e,t,n){return n===void 0&&(n="/"),F8(e,t,n,!1)}function F8(e,t,n,r){let i=typeof t=="string"?Ip(t):t,o=dC(i.pathname||"/",n);if(o==null)return null;let a=YCe(e);rmt(a);let s=null;for(let l=0;s==null&&l<a.length;++l){let c=pmt(o);s=fmt(a[l],c,r)}return s}function nmt(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],handle:n.handle}}function YCe(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,a,s)=>{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};l.relativePath.startsWith("/")&&(oi(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=tp([r,l.relativePath]),u=n.concat(l);o.children&&o.children.length>0&&(oi(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),YCe(o.children,t,u,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:umt(c,o.index),routesMeta:u})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let l of XCe(o.path))i(o,a,l)}),t}function XCe(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=XCe(r.join("/")),s=[];return s.push(...a.map(l=>l===""?o:[o,l].join("/"))),i&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function rmt(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:dmt(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const imt=/^:[\w-]+$/,omt=3,amt=2,smt=1,lmt=10,cmt=-2,Mne=e=>e==="*";function umt(e,t){let n=e.split("/"),r=n.length;return n.some(Mne)&&(r+=cmt),t&&(r+=amt),n.filter(i=>!Mne(i)).reduce((i,o)=>i+(imt.test(o)?omt:o===""?smt:lmt),r)}function dmt(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function fmt(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,i={},o="/",a=[];for(let s=0;s<r.length;++s){let l=r[s],c=s===r.length-1,u=o==="/"?t:t.slice(o.length)||"/",d=Ine({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},u),h=l.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=Ine({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!d)return null;Object.assign(i,d.params),a.push({params:i,pathname:tp([o,d.pathname]),pathnameBase:vmt(tp([o,d.pathnameBase])),route:h}),d.pathnameBase!=="/"&&(o=tp([o,d.pathnameBase]))}return a}function Ine(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=hmt(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:r.reduce((c,u,d)=>{let{paramName:h,isOptional:p}=u;if(h==="*"){let v=s[d]||"";a=o.slice(0,o.length-v.length).replace(/(.)\/+$/,"$1")}const m=s[d];return p&&!m?c[h]=void 0:c[h]=(m||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:a,pattern:e}}function hmt(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Tv(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function pmt(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Tv(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function dC(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function mmt(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Ip(e):e;return{pathname:n?n.startsWith("/")?n:gmt(n,t):t,search:ymt(r),hash:bmt(i)}}function gmt(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function dA(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function QCe(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function TP(e,t){let n=QCe(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function kP(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Ip(e):(i=Oo({},e),oi(!i.pathname||!i.pathname.includes("?"),dA("?","pathname","search",i)),oi(!i.pathname||!i.pathname.includes("#"),dA("#","pathname","hash",i)),oi(!i.search||!i.search.includes("#"),dA("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(a==null)s=n;else{let d=t.length-1;if(!r&&a.startsWith("..")){let h=a.split("/");for(;h[0]==="..";)h.shift(),d-=1;i.pathname=h.join("/")}s=d>=0?t[d]:"/"}let l=mmt(i,s),c=a&&a!=="/"&&a.endsWith("/"),u=(o||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const tp=e=>e.join("/").replace(/\/\/+/g,"/"),vmt=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ymt=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,bmt=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class nk{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function OP(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const ZCe=["post","put","patch","delete"],Smt=new Set(ZCe),Cmt=["get",...ZCe],xmt=new Set(Cmt),wmt=new Set([301,302,303,307,308]),_mt=new Set([307,308]),fA={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Emt={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Hx={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},iV=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Tmt=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),JCe="remix-router-transitions";function exe(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;oi(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let et=e.detectErrorBoundary;i=ot=>({hasErrorBoundary:et(ot)})}else i=Tmt;let o={},a=tk(e.routes,i,void 0,o),s,l=e.basename||"/",c=e.dataStrategy||Mmt,u=e.patchRoutesOnNavigation,d=Oo({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),h=null,p=new Set,m=null,v=null,y=null,S=e.hydrationData!=null,b=p1(a,e.history.location,l),C=null;if(b==null&&!u){let et=Al(404,{pathname:e.history.location.pathname}),{matches:ot,route:Qe}=zne(a);b=ot,C={[Qe.id]:et}}b&&!e.hydrationData&&an(b,a,e.history.location.pathname).active&&(b=null);let _;if(b)if(b.some(et=>et.route.lazy))_=!1;else if(!b.some(et=>et.route.loader))_=!0;else if(d.v7_partialHydration){let et=e.hydrationData?e.hydrationData.loaderData:null,ot=e.hydrationData?e.hydrationData.errors:null;if(ot){let Qe=b.findIndex(ut=>ot[ut.route.id]!==void 0);_=b.slice(0,Qe+1).every(ut=>!yj(ut.route,et,ot))}else _=b.every(Qe=>!yj(Qe.route,et,ot))}else _=e.hydrationData!=null;else if(_=!1,b=[],d.v7_partialHydration){let et=an(null,a,e.history.location.pathname);et.active&&et.matches&&(b=et.matches)}let T,x={historyAction:e.history.action,location:e.history.location,matches:b,initialized:_,navigation:fA,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||C,fetchers:new Map,blockers:new Map},E=Ca.Pop,k=!1,M,P=!1,D=new Map,R=null,A=!1,H=!1,F=[],z=new Set,W=new Map,q=0,Z=-1,N=new Map,B=new Set,V=new Map,G=new Map,ie=new Set,ce=new Map,fe=new Map,ee;function ne(){if(h=e.history.listen(et=>{let{action:ot,location:Qe,delta:ut}=et;if(ee){ee(),ee=void 0;return}Tv(fe.size===0||ut!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Nt=Ze({currentLocation:x.location,nextLocation:Qe,historyAction:ot});if(Nt&&ut!=null){let Lt=new Promise(Zt=>{ee=Zt});e.history.go(ut*-1),Je(Nt,{state:"blocked",location:Qe,proceed(){Je(Nt,{state:"proceeding",proceed:void 0,reset:void 0,location:Qe}),Lt.then(()=>e.history.go(ut))},reset(){let Zt=new Map(x.blockers);Zt.set(Nt,Hx),me({blockers:Zt})}});return}return le(ot,Qe)}),n){Wmt(t,D);let et=()=>Vmt(t,D);t.addEventListener("pagehide",et),R=()=>t.removeEventListener("pagehide",et)}return x.initialized||le(Ca.Pop,x.location,{initialHydration:!0}),T}function ue(){h&&h(),R&&R(),p.clear(),M&&M.abort(),x.fetchers.forEach((et,ot)=>Oe(ot)),x.blockers.forEach((et,ot)=>Ue(ot))}function ye(et){return p.add(et),()=>p.delete(et)}function me(et,ot){ot===void 0&&(ot={}),x=Oo({},x,et);let Qe=[],ut=[];d.v7_fetcherPersist&&x.fetchers.forEach((Nt,Lt)=>{Nt.state==="idle"&&(ie.has(Lt)?ut.push(Lt):Qe.push(Lt))}),[...p].forEach(Nt=>Nt(x,{deletedFetchers:ut,viewTransitionOpts:ot.viewTransitionOpts,flushSync:ot.flushSync===!0})),d.v7_fetcherPersist&&(Qe.forEach(Nt=>x.fetchers.delete(Nt)),ut.forEach(Nt=>Oe(Nt)))}function pe(et,ot,Qe){var ut,Nt;let{flushSync:Lt}=Qe===void 0?{}:Qe,Zt=x.actionData!=null&&x.navigation.formMethod!=null&&pd(x.navigation.formMethod)&&x.navigation.state==="loading"&&((ut=et.state)==null?void 0:ut._isRedirect)!==!0,Wt;ot.actionData?Object.keys(ot.actionData).length>0?Wt=ot.actionData:Wt=null:Zt?Wt=x.actionData:Wt=null;let At=ot.loaderData?Bne(x.loaderData,ot.loaderData,ot.matches||[],ot.errors):x.loaderData,$t=x.blockers;$t.size>0&&($t=new Map($t),$t.forEach((cn,_t)=>$t.set(_t,Hx)));let Gt=k===!0||x.navigation.formMethod!=null&&pd(x.navigation.formMethod)&&((Nt=et.state)==null?void 0:Nt._isRedirect)!==!0;s&&(a=s,s=void 0),A||E===Ca.Pop||(E===Ca.Push?e.history.push(et,et.state):E===Ca.Replace&&e.history.replace(et,et.state));let Ft;if(E===Ca.Pop){let cn=D.get(x.location.pathname);cn&&cn.has(et.pathname)?Ft={currentLocation:x.location,nextLocation:et}:D.has(et.pathname)&&(Ft={currentLocation:et,nextLocation:x.location})}else if(P){let cn=D.get(x.location.pathname);cn?cn.add(et.pathname):(cn=new Set([et.pathname]),D.set(x.location.pathname,cn)),Ft={currentLocation:x.location,nextLocation:et}}me(Oo({},ot,{actionData:Wt,loaderData:At,historyAction:E,location:et,initialized:!0,navigation:fA,revalidation:"idle",restoreScrollPosition:Dt(et,ot.matches||x.matches),preventScrollReset:Gt,blockers:$t}),{viewTransitionOpts:Ft,flushSync:Lt===!0}),E=Ca.Pop,k=!1,P=!1,A=!1,H=!1,F=[]}async function he(et,ot){if(typeof et=="number"){e.history.go(et);return}let Qe=vj(x.location,x.matches,l,d.v7_prependBasename,et,d.v7_relativeSplatPath,ot==null?void 0:ot.fromRouteId,ot==null?void 0:ot.relative),{path:ut,submission:Nt,error:Lt}=$ne(d.v7_normalizeFormMethod,!1,Qe,ot),Zt=x.location,Wt=nS(x.location,ut,ot&&ot.state);Wt=Oo({},Wt,e.history.encodeLocation(Wt));let At=ot&&ot.replace!=null?ot.replace:void 0,$t=Ca.Push;At===!0?$t=Ca.Replace:At===!1||Nt!=null&&pd(Nt.formMethod)&&Nt.formAction===x.location.pathname+x.location.search&&($t=Ca.Replace);let Gt=ot&&"preventScrollReset"in ot?ot.preventScrollReset===!0:void 0,Ft=(ot&&ot.flushSync)===!0,cn=Ze({currentLocation:Zt,nextLocation:Wt,historyAction:$t});if(cn){Je(cn,{state:"blocked",location:Wt,proceed(){Je(cn,{state:"proceeding",proceed:void 0,reset:void 0,location:Wt}),he(et,ot)},reset(){let _t=new Map(x.blockers);_t.set(cn,Hx),me({blockers:_t})}});return}return await le($t,Wt,{submission:Nt,pendingError:Lt,preventScrollReset:Gt,replace:ot&&ot.replace,enableViewTransition:ot&&ot.viewTransition,flushSync:Ft})}function _e(){if(Q(),me({revalidation:"loading"}),x.navigation.state!=="submitting"){if(x.navigation.state==="idle"){le(x.historyAction,x.location,{startUninterruptedRevalidation:!0});return}le(E||x.historyAction,x.navigation.location,{overrideNavigation:x.navigation,enableViewTransition:P===!0})}}async function le(et,ot,Qe){M&&M.abort(),M=null,E=et,A=(Qe&&Qe.startUninterruptedRevalidation)===!0,Bt(x.location,x.matches),k=(Qe&&Qe.preventScrollReset)===!0,P=(Qe&&Qe.enableViewTransition)===!0;let ut=s||a,Nt=Qe&&Qe.overrideNavigation,Lt=p1(ut,ot,l),Zt=(Qe&&Qe.flushSync)===!0,Wt=an(Lt,ut,ot.pathname);if(Wt.active&&Wt.matches&&(Lt=Wt.matches),!Lt){let{error:jt,notFoundMatches:nn,route:Ht}=rt(ot.pathname);pe(ot,{matches:nn,loaderData:{},errors:{[Ht.id]:jt}},{flushSync:Zt});return}if(x.initialized&&!H&&Dmt(x.location,ot)&&!(Qe&&Qe.submission&&pd(Qe.submission.formMethod))){pe(ot,{matches:Lt},{flushSync:Zt});return}M=new AbortController;let At=oy(e.history,ot,M.signal,Qe&&Qe.submission),$t;if(Qe&&Qe.pendingError)$t=[m1(Lt).route.id,{type:Qi.error,error:Qe.pendingError}];else if(Qe&&Qe.submission&&pd(Qe.submission.formMethod)){let jt=await xe(At,ot,Qe.submission,Lt,Wt.active,{replace:Qe.replace,flushSync:Zt});if(jt.shortCircuited)return;if(jt.pendingActionResult){let[nn,Ht]=jt.pendingActionResult;if(Sc(Ht)&&OP(Ht.error)&&Ht.error.status===404){M=null,pe(ot,{matches:jt.matches,loaderData:{},errors:{[nn]:Ht.error}});return}}Lt=jt.matches||Lt,$t=jt.pendingActionResult,Nt=hA(ot,Qe.submission),Zt=!1,Wt.active=!1,At=oy(e.history,At.url,At.signal)}let{shortCircuited:Gt,matches:Ft,loaderData:cn,errors:_t}=await we(At,ot,Lt,Wt.active,Nt,Qe&&Qe.submission,Qe&&Qe.fetcherSubmission,Qe&&Qe.replace,Qe&&Qe.initialHydration===!0,Zt,$t);Gt||(M=null,pe(ot,Oo({matches:Ft||Lt},Hne($t),{loaderData:cn,errors:_t})))}async function xe(et,ot,Qe,ut,Nt,Lt){Lt===void 0&&(Lt={}),Q();let Zt=zmt(ot,Qe);if(me({navigation:Zt},{flushSync:Lt.flushSync===!0}),Nt){let $t=await Vt(ut,ot.pathname,et.signal);if($t.type==="aborted")return{shortCircuited:!0};if($t.type==="error"){let Gt=m1($t.partialMatches).route.id;return{matches:$t.partialMatches,pendingActionResult:[Gt,{type:Qi.error,error:$t.error}]}}else if($t.matches)ut=$t.matches;else{let{notFoundMatches:Gt,error:Ft,route:cn}=rt(ot.pathname);return{matches:Gt,pendingActionResult:[cn.id,{type:Qi.error,error:Ft}]}}}let Wt,At=k2(ut,ot);if(!At.route.action&&!At.route.lazy)Wt={type:Qi.error,error:Al(405,{method:et.method,pathname:ot.pathname,routeId:At.route.id})};else if(Wt=(await Ne("action",x,et,[At],ut,null))[At.route.id],et.signal.aborted)return{shortCircuited:!0};if(M1(Wt)){let $t;return Lt&&Lt.replace!=null?$t=Lt.replace:$t=Lne(Wt.response.headers.get("Location"),new URL(et.url),l)===x.location.pathname+x.location.search,await Pe(et,Wt,!0,{submission:Qe,replace:$t}),{shortCircuited:!0}}if(Nm(Wt))throw Al(400,{type:"defer-action"});if(Sc(Wt)){let $t=m1(ut,At.route.id);return(Lt&&Lt.replace)!==!0&&(E=Ca.Push),{matches:ut,pendingActionResult:[$t.route.id,Wt]}}return{matches:ut,pendingActionResult:[At.route.id,Wt]}}async function we(et,ot,Qe,ut,Nt,Lt,Zt,Wt,At,$t,Gt){let Ft=Nt||hA(ot,Lt),cn=Lt||Zt||Wne(Ft),_t=!A&&(!d.v7_partialHydration||!At);if(ut){if(_t){let j=De(Gt);me(Oo({navigation:Ft},j!==void 0?{actionData:j}:{}),{flushSync:$t})}let O=await Vt(Qe,ot.pathname,et.signal);if(O.type==="aborted")return{shortCircuited:!0};if(O.type==="error"){let j=m1(O.partialMatches).route.id;return{matches:O.partialMatches,loaderData:{},errors:{[j]:O.error}}}else if(O.matches)Qe=O.matches;else{let{error:j,notFoundMatches:oe,route:Ae}=rt(ot.pathname);return{matches:oe,loaderData:{},errors:{[Ae.id]:j}}}}let jt=s||a,[nn,Ht]=Ane(e.history,x,Qe,cn,ot,d.v7_partialHydration&&At===!0,d.v7_skipActionErrorRevalidation,H,F,z,ie,V,B,jt,l,Gt);if(qt(O=>!(Qe&&Qe.some(j=>j.route.id===O))||nn&&nn.some(j=>j.route.id===O)),Z=++q,nn.length===0&&Ht.length===0){let O=se();return pe(ot,Oo({matches:Qe,loaderData:{},errors:Gt&&Sc(Gt[1])?{[Gt[0]]:Gt[1].error}:null},Hne(Gt),O?{fetchers:new Map(x.fetchers)}:{}),{flushSync:$t}),{shortCircuited:!0}}if(_t){let O={};if(!ut){O.navigation=Ft;let j=De(Gt);j!==void 0&&(O.actionData=j)}Ht.length>0&&(O.fetchers=Fe(Ht)),me(O,{flushSync:$t})}Ht.forEach(O=>{Ke(O.key),O.controller&&W.set(O.key,O.controller)});let Tt=()=>Ht.forEach(O=>Ke(O.key));M&&M.signal.addEventListener("abort",Tt);let{loaderResults:gt,fetcherResults:Ve}=await We(x,Qe,nn,Ht,et);if(et.signal.aborted)return{shortCircuited:!0};M&&M.signal.removeEventListener("abort",Tt),Ht.forEach(O=>W.delete(O.key));let Yt=a5(gt);if(Yt)return await Pe(et,Yt.result,!0,{replace:Wt}),{shortCircuited:!0};if(Yt=a5(Ve),Yt)return B.add(Yt.key),await Pe(et,Yt.result,!0,{replace:Wt}),{shortCircuited:!0};let{loaderData:mt,errors:Mt}=jne(x,Qe,gt,Gt,Ht,Ve,ce);ce.forEach((O,j)=>{O.subscribe(oe=>{(oe||O.done)&&ce.delete(j)})}),d.v7_partialHydration&&At&&x.errors&&(Mt=Oo({},x.errors,Mt));let zt=se(),Dn=ze(Z),Qn=zt||Dn||Ht.length>0;return Oo({matches:Qe,loaderData:mt,errors:Mt},Qn?{fetchers:new Map(x.fetchers)}:{})}function De(et){if(et&&!Sc(et[1]))return{[et[0]]:et[1].data};if(x.actionData)return Object.keys(x.actionData).length===0?null:x.actionData}function Fe(et){return et.forEach(ot=>{let Qe=x.fetchers.get(ot.key),ut=zx(void 0,Qe?Qe.data:void 0);x.fetchers.set(ot.key,ut)}),new Map(x.fetchers)}function Ce(et,ot,Qe,ut){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Ke(et);let Nt=(ut&&ut.flushSync)===!0,Lt=s||a,Zt=vj(x.location,x.matches,l,d.v7_prependBasename,Qe,d.v7_relativeSplatPath,ot,ut==null?void 0:ut.relative),Wt=p1(Lt,Zt,l),At=an(Wt,Lt,Zt);if(At.active&&At.matches&&(Wt=At.matches),!Wt){J(et,ot,Al(404,{pathname:Zt}),{flushSync:Nt});return}let{path:$t,submission:Gt,error:Ft}=$ne(d.v7_normalizeFormMethod,!0,Zt,ut);if(Ft){J(et,ot,Ft,{flushSync:Nt});return}let cn=k2(Wt,$t),_t=(ut&&ut.preventScrollReset)===!0;if(Gt&&pd(Gt.formMethod)){Te(et,ot,$t,cn,Wt,At.active,Nt,_t,Gt);return}V.set(et,{routeId:ot,path:$t}),ke(et,ot,$t,cn,Wt,At.active,Nt,_t,Gt)}async function Te(et,ot,Qe,ut,Nt,Lt,Zt,Wt,At){Q(),V.delete(et);function $t(Ge){if(!Ge.route.action&&!Ge.route.lazy){let ft=Al(405,{method:At.formMethod,pathname:Qe,routeId:ot});return J(et,ot,ft,{flushSync:Zt}),!0}return!1}if(!Lt&&$t(ut))return;let Gt=x.fetchers.get(et);K(et,Umt(At,Gt),{flushSync:Zt});let Ft=new AbortController,cn=oy(e.history,Qe,Ft.signal,At);if(Lt){let Ge=await Vt(Nt,Qe,cn.signal);if(Ge.type==="aborted")return;if(Ge.type==="error"){J(et,ot,Ge.error,{flushSync:Zt});return}else if(Ge.matches){if(Nt=Ge.matches,ut=k2(Nt,Qe),$t(ut))return}else{J(et,ot,Al(404,{pathname:Qe}),{flushSync:Zt});return}}W.set(et,Ft);let _t=q,nn=(await Ne("action",x,cn,[ut],Nt,et))[ut.route.id];if(cn.signal.aborted){W.get(et)===Ft&&W.delete(et);return}if(d.v7_fetcherPersist&&ie.has(et)){if(M1(nn)||Sc(nn)){K(et,dm(void 0));return}}else{if(M1(nn))if(W.delete(et),Z>_t){K(et,dm(void 0));return}else return B.add(et),K(et,zx(At)),Pe(cn,nn,!1,{fetcherSubmission:At,preventScrollReset:Wt});if(Sc(nn)){J(et,ot,nn.error);return}}if(Nm(nn))throw Al(400,{type:"defer-action"});let Ht=x.navigation.location||x.location,Tt=oy(e.history,Ht,Ft.signal),gt=s||a,Ve=x.navigation.state!=="idle"?p1(gt,x.navigation.location,l):x.matches;oi(Ve,"Didn't find any matches after fetcher action");let Yt=++q;N.set(et,Yt);let mt=zx(At,nn.data);x.fetchers.set(et,mt);let[Mt,zt]=Ane(e.history,x,Ve,At,Ht,!1,d.v7_skipActionErrorRevalidation,H,F,z,ie,V,B,gt,l,[ut.route.id,nn]);zt.filter(Ge=>Ge.key!==et).forEach(Ge=>{let ft=Ge.key,Jt=x.fetchers.get(ft),on=zx(void 0,Jt?Jt.data:void 0);x.fetchers.set(ft,on),Ke(ft),Ge.controller&&W.set(ft,Ge.controller)}),me({fetchers:new Map(x.fetchers)});let Dn=()=>zt.forEach(Ge=>Ke(Ge.key));Ft.signal.addEventListener("abort",Dn);let{loaderResults:Qn,fetcherResults:O}=await We(x,Ve,Mt,zt,Tt);if(Ft.signal.aborted)return;Ft.signal.removeEventListener("abort",Dn),N.delete(et),W.delete(et),zt.forEach(Ge=>W.delete(Ge.key));let j=a5(Qn);if(j)return Pe(Tt,j.result,!1,{preventScrollReset:Wt});if(j=a5(O),j)return B.add(j.key),Pe(Tt,j.result,!1,{preventScrollReset:Wt});let{loaderData:oe,errors:Ae}=jne(x,Ve,Qn,void 0,zt,O,ce);if(x.fetchers.has(et)){let Ge=dm(nn.data);x.fetchers.set(et,Ge)}ze(Yt),x.navigation.state==="loading"&&Yt>Z?(oi(E,"Expected pending action"),M&&M.abort(),pe(x.navigation.location,{matches:Ve,loaderData:oe,errors:Ae,fetchers:new Map(x.fetchers)})):(me({errors:Ae,loaderData:Bne(x.loaderData,oe,Ve,Ae),fetchers:new Map(x.fetchers)}),H=!1)}async function ke(et,ot,Qe,ut,Nt,Lt,Zt,Wt,At){let $t=x.fetchers.get(et);K(et,zx(At,$t?$t.data:void 0),{flushSync:Zt});let Gt=new AbortController,Ft=oy(e.history,Qe,Gt.signal);if(Lt){let nn=await Vt(Nt,Qe,Ft.signal);if(nn.type==="aborted")return;if(nn.type==="error"){J(et,ot,nn.error,{flushSync:Zt});return}else if(nn.matches)Nt=nn.matches,ut=k2(Nt,Qe);else{J(et,ot,Al(404,{pathname:Qe}),{flushSync:Zt});return}}W.set(et,Gt);let cn=q,jt=(await Ne("loader",x,Ft,[ut],Nt,et))[ut.route.id];if(Nm(jt)&&(jt=await oV(jt,Ft.signal,!0)||jt),W.get(et)===Gt&&W.delete(et),!Ft.signal.aborted){if(ie.has(et)){K(et,dm(void 0));return}if(M1(jt))if(Z>cn){K(et,dm(void 0));return}else{B.add(et),await Pe(Ft,jt,!1,{preventScrollReset:Wt});return}if(Sc(jt)){J(et,ot,jt.error);return}oi(!Nm(jt),"Unhandled fetcher deferred data"),K(et,dm(jt.data))}}async function Pe(et,ot,Qe,ut){let{submission:Nt,fetcherSubmission:Lt,preventScrollReset:Zt,replace:Wt}=ut===void 0?{}:ut;ot.response.headers.has("X-Remix-Revalidate")&&(H=!0);let At=ot.response.headers.get("Location");oi(At,"Expected a Location header on the redirect Response"),At=Lne(At,new URL(et.url),l);let $t=nS(x.location,At,{_isRedirect:!0});if(n){let nn=!1;if(ot.response.headers.has("X-Remix-Reload-Document"))nn=!0;else if(iV.test(At)){const Ht=e.history.createURL(At);nn=Ht.origin!==t.location.origin||dC(Ht.pathname,l)==null}if(nn){Wt?t.location.replace(At):t.location.assign(At);return}}M=null;let Gt=Wt===!0||ot.response.headers.has("X-Remix-Replace")?Ca.Replace:Ca.Push,{formMethod:Ft,formAction:cn,formEncType:_t}=x.navigation;!Nt&&!Lt&&Ft&&cn&&_t&&(Nt=Wne(x.navigation));let jt=Nt||Lt;if(_mt.has(ot.response.status)&&jt&&pd(jt.formMethod))await le(Gt,$t,{submission:Oo({},jt,{formAction:At}),preventScrollReset:Zt||k,enableViewTransition:Qe?P:void 0});else{let nn=hA($t,Nt);await le(Gt,$t,{overrideNavigation:nn,fetcherSubmission:Lt,preventScrollReset:Zt||k,enableViewTransition:Qe?P:void 0})}}async function Ne(et,ot,Qe,ut,Nt,Lt){let Zt,Wt={};try{Zt=await Imt(c,et,ot,Qe,ut,Nt,Lt,o,i)}catch(At){return ut.forEach($t=>{Wt[$t.route.id]={type:Qi.error,error:At}}),Wt}for(let[At,$t]of Object.entries(Zt))if(Lmt($t)){let Gt=$t.result;Wt[At]={type:Qi.redirect,response:Amt(Gt,Qe,At,Nt,l,d.v7_relativeSplatPath)}}else Wt[At]=await Rmt($t);return Wt}async function We(et,ot,Qe,ut,Nt){let Lt=et.matches,Zt=Ne("loader",et,Nt,Qe,ot,null),Wt=Promise.all(ut.map(async Gt=>{if(Gt.matches&&Gt.match&&Gt.controller){let cn=(await Ne("loader",et,oy(e.history,Gt.path,Gt.controller.signal),[Gt.match],Gt.matches,Gt.key))[Gt.match.route.id];return{[Gt.key]:cn}}else return Promise.resolve({[Gt.key]:{type:Qi.error,error:Al(404,{pathname:Gt.path})}})})),At=await Zt,$t=(await Wt).reduce((Gt,Ft)=>Object.assign(Gt,Ft),{});return await Promise.all([Bmt(ot,At,Nt.signal,Lt,et.loaderData),Hmt(ot,$t,ut)]),{loaderResults:At,fetcherResults:$t}}function Q(){H=!0,F.push(...qt()),V.forEach((et,ot)=>{W.has(ot)&&z.add(ot),Ke(ot)})}function K(et,ot,Qe){Qe===void 0&&(Qe={}),x.fetchers.set(et,ot),me({fetchers:new Map(x.fetchers)},{flushSync:(Qe&&Qe.flushSync)===!0})}function J(et,ot,Qe,ut){ut===void 0&&(ut={});let Nt=m1(x.matches,ot);Oe(et),me({errors:{[Nt.route.id]:Qe},fetchers:new Map(x.fetchers)},{flushSync:(ut&&ut.flushSync)===!0})}function be(et){return d.v7_fetcherPersist&&(G.set(et,(G.get(et)||0)+1),ie.has(et)&&ie.delete(et)),x.fetchers.get(et)||Emt}function Oe(et){let ot=x.fetchers.get(et);W.has(et)&&!(ot&&ot.state==="loading"&&N.has(et))&&Ke(et),V.delete(et),N.delete(et),B.delete(et),ie.delete(et),z.delete(et),x.fetchers.delete(et)}function Se(et){if(d.v7_fetcherPersist){let ot=(G.get(et)||0)-1;ot<=0?(G.delete(et),ie.add(et)):G.set(et,ot)}else Oe(et);me({fetchers:new Map(x.fetchers)})}function Ke(et){let ot=W.get(et);ot&&(ot.abort(),W.delete(et))}function tt(et){for(let ot of et){let Qe=be(ot),ut=dm(Qe.data);x.fetchers.set(ot,ut)}}function se(){let et=[],ot=!1;for(let Qe of B){let ut=x.fetchers.get(Qe);oi(ut,"Expected fetcher: "+Qe),ut.state==="loading"&&(B.delete(Qe),et.push(Qe),ot=!0)}return tt(et),ot}function ze(et){let ot=[];for(let[Qe,ut]of N)if(ut<et){let Nt=x.fetchers.get(Qe);oi(Nt,"Expected fetcher: "+Qe),Nt.state==="loading"&&(Ke(Qe),N.delete(Qe),ot.push(Qe))}return tt(ot),ot.length>0}function Ye(et,ot){let Qe=x.blockers.get(et)||Hx;return fe.get(et)!==ot&&fe.set(et,ot),Qe}function Ue(et){x.blockers.delete(et),fe.delete(et)}function Je(et,ot){let Qe=x.blockers.get(et)||Hx;oi(Qe.state==="unblocked"&&ot.state==="blocked"||Qe.state==="blocked"&&ot.state==="blocked"||Qe.state==="blocked"&&ot.state==="proceeding"||Qe.state==="blocked"&&ot.state==="unblocked"||Qe.state==="proceeding"&&ot.state==="unblocked","Invalid blocker state transition: "+Qe.state+" -> "+ot.state);let ut=new Map(x.blockers);ut.set(et,ot),me({blockers:ut})}function Ze(et){let{currentLocation:ot,nextLocation:Qe,historyAction:ut}=et;if(fe.size===0)return;fe.size>1&&Tv(!1,"A router only supports one blocker at a time");let Nt=Array.from(fe.entries()),[Lt,Zt]=Nt[Nt.length-1],Wt=x.blockers.get(Lt);if(!(Wt&&Wt.state==="proceeding")&&Zt({currentLocation:ot,nextLocation:Qe,historyAction:ut}))return Lt}function rt(et){let ot=Al(404,{pathname:et}),Qe=s||a,{matches:ut,route:Nt}=zne(Qe);return qt(),{notFoundMatches:ut,route:Nt,error:ot}}function qt(et){let ot=[];return ce.forEach((Qe,ut)=>{(!et||et(ut))&&(Qe.cancel(),ot.push(ut),ce.delete(ut))}),ot}function St(et,ot,Qe){if(m=et,y=ot,v=Qe||null,!S&&x.navigation===fA){S=!0;let ut=Dt(x.location,x.matches);ut!=null&&me({restoreScrollPosition:ut})}return()=>{m=null,y=null,v=null}}function Ot(et,ot){return v&&v(et,ot.map(ut=>nmt(ut,x.loaderData)))||et.key}function Bt(et,ot){if(m&&y){let Qe=Ot(et,ot);m[Qe]=y()}}function Dt(et,ot){if(m){let Qe=Ot(et,ot),ut=m[Qe];if(typeof ut=="number")return ut}return null}function an(et,ot,Qe){if(u)if(et){if(Object.keys(et[0].params).length>0)return{active:!0,matches:F8(ot,Qe,l,!0)}}else return{active:!0,matches:F8(ot,Qe,l,!0)||[]};return{active:!1,matches:null}}async function Vt(et,ot,Qe){if(!u)return{type:"success",matches:et};let ut=et;for(;;){let Nt=s==null,Lt=s||a,Zt=o;try{await u({path:ot,matches:ut,patch:($t,Gt)=>{Qe.aborted||Dne($t,Gt,Lt,Zt,i)}})}catch($t){return{type:"error",error:$t,partialMatches:ut}}finally{Nt&&!Qe.aborted&&(a=[...a])}if(Qe.aborted)return{type:"aborted"};let Wt=p1(Lt,ot,l);if(Wt)return{type:"success",matches:Wt};let At=F8(Lt,ot,l,!0);if(!At||ut.length===At.length&&ut.every(($t,Gt)=>$t.route.id===At[Gt].route.id))return{type:"success",matches:null};ut=At}}function Kt(et){o={},s=tk(et,i,void 0,o)}function Qt(et,ot){let Qe=s==null;Dne(et,ot,s||a,o,i),Qe&&(a=[...a],me({}))}return T={get basename(){return l},get future(){return d},get state(){return x},get routes(){return a},get window(){return t},initialize:ne,subscribe:ye,enableScrollRestoration:St,navigate:he,fetch:Ce,revalidate:_e,createHref:et=>e.history.createHref(et),encodeLocation:et=>e.history.encodeLocation(et),getFetcher:be,deleteFetcher:Se,dispose:ue,getBlocker:Ye,deleteBlocker:Ue,patchRoutes:Qt,_internalFetchControllers:W,_internalActiveDeferreds:ce,_internalSetRoutes:Kt},T}function kmt(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function vj(e,t,n,r,i,o,a,s){let l,c;if(a){l=[];for(let d of t)if(l.push(d),d.route.id===a){c=d;break}}else l=t,c=t[t.length-1];let u=kP(i||".",TP(l,o),dC(e.pathname,n)||e.pathname,s==="path");if(i==null&&(u.search=e.search,u.hash=e.hash),(i==null||i===""||i===".")&&c){let d=aV(u.search);if(c.route.index&&!d)u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&d){let h=new URLSearchParams(u.search),p=h.getAll("index");h.delete("index"),p.filter(v=>v).forEach(v=>h.append("index",v));let m=h.toString();u.search=m?"?"+m:""}}return r&&n!=="/"&&(u.pathname=u.pathname==="/"?n:tp([n,u.pathname])),ag(u)}function $ne(e,t,n,r){if(!r||!kmt(r))return{path:n};if(r.formMethod&&!jmt(r.formMethod))return{path:n,error:Al(405,{method:r.formMethod})};let i=()=>({path:n,error:Al(400,{type:"invalid-body"})}),o=r.formMethod||"get",a=e?o.toUpperCase():o.toLowerCase(),s=rxe(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!pd(a))return i();let h=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((p,m)=>{let[v,y]=m;return""+p+v+"="+y+`
|
||
`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:h}}}else if(r.formEncType==="application/json"){if(!pd(a))return i();try{let h=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:h,text:void 0}}}catch{return i()}}}oi(typeof FormData=="function","FormData is not available in this environment");let l,c;if(r.formData)l=bj(r.formData),c=r.formData;else if(r.body instanceof FormData)l=bj(r.body),c=r.body;else if(r.body instanceof URLSearchParams)l=r.body,c=Fne(l);else if(r.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(r.body),c=Fne(l)}catch{return i()}let u={formMethod:a,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(pd(u.formMethod))return{path:n,submission:u};let d=Ip(n);return t&&d.search&&aV(d.search)&&l.append("index",""),d.search="?"+l,{path:ag(d),submission:u}}function Rne(e,t,n){n===void 0&&(n=!1);let r=e.findIndex(i=>i.route.id===t);return r>=0?e.slice(0,n?r+1:r):e}function Ane(e,t,n,r,i,o,a,s,l,c,u,d,h,p,m,v){let y=v?Sc(v[1])?v[1].error:v[1].data:void 0,S=e.createURL(t.location),b=e.createURL(i),C=n;o&&t.errors?C=Rne(n,Object.keys(t.errors)[0],!0):v&&Sc(v[1])&&(C=Rne(n,v[0]));let _=v?v[1].statusCode:void 0,T=a&&_&&_>=400,x=C.filter((k,M)=>{let{route:P}=k;if(P.lazy)return!0;if(P.loader==null)return!1;if(o)return yj(P,t.loaderData,t.errors);if(Omt(t.loaderData,t.matches[M],k)||l.some(A=>A===k.route.id))return!0;let D=t.matches[M],R=k;return Nne(k,Oo({currentUrl:S,currentParams:D.params,nextUrl:b,nextParams:R.params},r,{actionResult:y,actionStatus:_,defaultShouldRevalidate:T?!1:s||S.pathname+S.search===b.pathname+b.search||S.search!==b.search||txe(D,R)}))}),E=[];return d.forEach((k,M)=>{if(o||!n.some(H=>H.route.id===k.routeId)||u.has(M))return;let P=p1(p,k.path,m);if(!P){E.push({key:M,routeId:k.routeId,path:k.path,matches:null,match:null,controller:null});return}let D=t.fetchers.get(M),R=k2(P,k.path),A=!1;h.has(M)?A=!1:c.has(M)?(c.delete(M),A=!0):D&&D.state!=="idle"&&D.data===void 0?A=s:A=Nne(R,Oo({currentUrl:S,currentParams:t.matches[t.matches.length-1].params,nextUrl:b,nextParams:n[n.length-1].params},r,{actionResult:y,actionStatus:_,defaultShouldRevalidate:T?!1:s})),A&&E.push({key:M,routeId:k.routeId,path:k.path,matches:P,match:R,controller:new AbortController})}),[x,E]}function yj(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&t[e.id]!==void 0,i=n!=null&&n[e.id]!==void 0;return!r&&i?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!i}function Omt(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function txe(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Nne(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function Dne(e,t,n,r,i){var o;let a;if(e){let c=r[e];oi(c,"No route found to patch children into: routeId = "+e),c.children||(c.children=[]),a=c.children}else a=n;let s=t.filter(c=>!a.some(u=>nxe(c,u))),l=tk(s,i,[e||"_","patch",String(((o=a)==null?void 0:o.length)||"0")],r);a.push(...l)}function nxe(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((n,r)=>{var i;return(i=t.children)==null?void 0:i.some(o=>nxe(n,o))}):!1}async function Pmt(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];oi(i,"No route found in manifest");let o={};for(let a in r){let l=i[a]!==void 0&&a!=="hasErrorBoundary";Tv(!l,'Route "'+i.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!l&&!emt.has(a)&&(o[a]=r[a])}Object.assign(i,o),Object.assign(i,Oo({},t(i),{lazy:void 0}))}async function Mmt(e){let{matches:t}=e,n=t.filter(i=>i.shouldLoad);return(await Promise.all(n.map(i=>i.resolve()))).reduce((i,o,a)=>Object.assign(i,{[n[a].route.id]:o}),{})}async function Imt(e,t,n,r,i,o,a,s,l,c){let u=o.map(p=>p.route.lazy?Pmt(p.route,l,s):void 0),d=o.map((p,m)=>{let v=u[m],y=i.some(b=>b.route.id===p.route.id);return Oo({},p,{shouldLoad:y,resolve:async b=>(b&&r.method==="GET"&&(p.route.lazy||p.route.loader)&&(y=!0),y?$mt(t,r,p,v,b,c):Promise.resolve({type:Qi.data,result:void 0}))})}),h=await e({matches:d,request:r,params:o[0].params,fetcherKey:a,context:c});try{await Promise.all(u)}catch{}return h}async function $mt(e,t,n,r,i,o){let a,s,l=c=>{let u,d=new Promise((m,v)=>u=v);s=()=>u(),t.signal.addEventListener("abort",s);let h=m=>typeof c!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):c({request:t,params:n.params,context:o},...m!==void 0?[m]:[]),p=(async()=>{try{return{type:"data",result:await(i?i(v=>h(v)):h())}}catch(m){return{type:"error",result:m}}})();return Promise.race([p,d])};try{let c=n.route[e];if(r)if(c){let u,[d]=await Promise.all([l(c).catch(h=>{u=h}),r]);if(u!==void 0)throw u;a=d}else if(await r,c=n.route[e],c)a=await l(c);else if(e==="action"){let u=new URL(t.url),d=u.pathname+u.search;throw Al(405,{method:t.method,pathname:d,routeId:n.route.id})}else return{type:Qi.data,result:void 0};else if(c)a=await l(c);else{let u=new URL(t.url),d=u.pathname+u.search;throw Al(404,{pathname:d})}oi(a.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(c){return{type:Qi.error,result:c}}finally{s&&t.signal.removeEventListener("abort",s)}return a}async function Rmt(e){let{result:t,type:n}=e;if(ixe(t)){let c;try{let u=t.headers.get("Content-Type");u&&/\bapplication\/json\b/.test(u)?t.body==null?c=null:c=await t.json():c=await t.text()}catch(u){return{type:Qi.error,error:u}}return n===Qi.error?{type:Qi.error,error:new nk(t.status,t.statusText,c),statusCode:t.status,headers:t.headers}:{type:Qi.data,data:c,statusCode:t.status,headers:t.headers}}if(n===Qi.error){if(Une(t)){var r;if(t.data instanceof Error){var i;return{type:Qi.error,error:t.data,statusCode:(i=t.init)==null?void 0:i.status}}t=new nk(((r=t.init)==null?void 0:r.status)||500,void 0,t.data)}return{type:Qi.error,error:t,statusCode:OP(t)?t.status:void 0}}if(Fmt(t)){var o,a;return{type:Qi.deferred,deferredData:t,statusCode:(o=t.init)==null?void 0:o.status,headers:((a=t.init)==null?void 0:a.headers)&&new Headers(t.init.headers)}}if(Une(t)){var s,l;return{type:Qi.data,data:t.data,statusCode:(s=t.init)==null?void 0:s.status,headers:(l=t.init)!=null&&l.headers?new Headers(t.init.headers):void 0}}return{type:Qi.data,data:t}}function Amt(e,t,n,r,i,o){let a=e.headers.get("Location");if(oi(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!iV.test(a)){let s=r.slice(0,r.findIndex(l=>l.route.id===n)+1);a=vj(new URL(t.url),s,i,!0,a,o),e.headers.set("Location",a)}return e}function Lne(e,t,n){if(iV.test(e)){let r=e,i=r.startsWith("//")?new URL(t.protocol+r):new URL(r),o=dC(i.pathname,n)!=null;if(i.origin===t.origin&&o)return i.pathname+i.search+i.hash}return e}function oy(e,t,n,r){let i=e.createURL(rxe(t)).toString(),o={signal:n};if(r&&pd(r.formMethod)){let{formMethod:a,formEncType:s}=r;o.method=a.toUpperCase(),s==="application/json"?(o.headers=new Headers({"Content-Type":s}),o.body=JSON.stringify(r.json)):s==="text/plain"?o.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?o.body=bj(r.formData):o.body=r.formData}return new Request(i,o)}function bj(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Fne(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Nmt(e,t,n,r,i){let o={},a=null,s,l=!1,c={},u=n&&Sc(n[1])?n[1].error:void 0;return e.forEach(d=>{if(!(d.route.id in t))return;let h=d.route.id,p=t[h];if(oi(!M1(p),"Cannot handle redirect results in processLoaderData"),Sc(p)){let m=p.error;u!==void 0&&(m=u,u=void 0),a=a||{};{let v=m1(e,h);a[v.route.id]==null&&(a[v.route.id]=m)}o[h]=void 0,l||(l=!0,s=OP(p.error)?p.error.status:500),p.headers&&(c[h]=p.headers)}else Nm(p)?(r.set(h,p.deferredData),o[h]=p.deferredData.data,p.statusCode!=null&&p.statusCode!==200&&!l&&(s=p.statusCode),p.headers&&(c[h]=p.headers)):(o[h]=p.data,p.statusCode&&p.statusCode!==200&&!l&&(s=p.statusCode),p.headers&&(c[h]=p.headers))}),u!==void 0&&n&&(a={[n[0]]:u},o[n[0]]=void 0),{loaderData:o,errors:a,statusCode:s||200,loaderHeaders:c}}function jne(e,t,n,r,i,o,a){let{loaderData:s,errors:l}=Nmt(t,n,r,a);return i.forEach(c=>{let{key:u,match:d,controller:h}=c,p=o[u];if(oi(p,"Did not find corresponding fetcher result"),!(h&&h.signal.aborted))if(Sc(p)){let m=m1(e.matches,d==null?void 0:d.route.id);l&&l[m.route.id]||(l=Oo({},l,{[m.route.id]:p.error})),e.fetchers.delete(u)}else if(M1(p))oi(!1,"Unhandled fetcher revalidation redirect");else if(Nm(p))oi(!1,"Unhandled fetcher deferred data");else{let m=dm(p.data);e.fetchers.set(u,m)}}),{loaderData:s,errors:l}}function Bne(e,t,n,r){let i=Oo({},t);for(let o of n){let a=o.route.id;if(t.hasOwnProperty(a)?t[a]!==void 0&&(i[a]=t[a]):e[a]!==void 0&&o.route.loader&&(i[a]=e[a]),r&&r.hasOwnProperty(a))break}return i}function Hne(e){return e?Sc(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function m1(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function zne(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Al(e,t){let{pathname:n,routeId:r,method:i,type:o,message:a}=t===void 0?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(s="Bad Request",i&&n&&r?l="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":o==="defer-action"?l="defer() is not supported in actions":o==="invalid-body"&&(l="Unable to encode submission body")):e===403?(s="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(s="Not Found",l='No route matches URL "'+n+'"'):e===405&&(s="Method Not Allowed",i&&n&&r?l="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(l='Invalid request method "'+i.toUpperCase()+'"')),new nk(e||500,s,new Error(l),!0)}function a5(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,i]=t[n];if(M1(i))return{key:r,result:i}}}function rxe(e){let t=typeof e=="string"?Ip(e):e;return ag(Oo({},t,{hash:""}))}function Dmt(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Lmt(e){return ixe(e.result)&&wmt.has(e.result.status)}function Nm(e){return e.type===Qi.deferred}function Sc(e){return e.type===Qi.error}function M1(e){return(e&&e.type)===Qi.redirect}function Une(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function Fmt(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function ixe(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function jmt(e){return xmt.has(e.toLowerCase())}function pd(e){return Smt.has(e.toLowerCase())}async function Bmt(e,t,n,r,i){let o=Object.entries(t);for(let a=0;a<o.length;a++){let[s,l]=o[a],c=e.find(h=>(h==null?void 0:h.route.id)===s);if(!c)continue;let u=r.find(h=>h.route.id===c.route.id),d=u!=null&&!txe(u,c)&&(i&&i[c.route.id])!==void 0;Nm(l)&&d&&await oV(l,n,!1).then(h=>{h&&(t[s]=h)})}}async function Hmt(e,t,n){for(let r=0;r<n.length;r++){let{key:i,routeId:o,controller:a}=n[r],s=t[i];e.find(c=>(c==null?void 0:c.route.id)===o)&&Nm(s)&&(oi(a,"Expected an AbortController for revalidating fetcher deferred result"),await oV(s,a.signal,!0).then(c=>{c&&(t[i]=c)}))}}async function oV(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Qi.data,data:e.deferredData.unwrappedData}}catch(i){return{type:Qi.error,error:i}}return{type:Qi.data,data:e.deferredData.data}}}function aV(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function k2(e,t){let n=typeof t=="string"?Ip(t).search:t.search;if(e[e.length-1].route.index&&aV(n||""))return e[e.length-1];let r=QCe(e);return r[r.length-1]}function Wne(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:o,json:a}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}}}function hA(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function zmt(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function zx(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Umt(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function dm(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Wmt(e,t){try{let n=e.sessionStorage.getItem(JCe);if(n){let r=JSON.parse(n);for(let[i,o]of Object.entries(r||{}))o&&Array.isArray(o)&&t.set(i,new Set(o||[]))}}catch{}}function Vmt(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(JCe,JSON.stringify(n))}catch(r){Tv(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/**
|
||
* React Router v6.28.0
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function rk(){return rk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rk.apply(this,arguments)}const PP=f.createContext(null),oxe=f.createContext(null),Sg=f.createContext(null),sV=f.createContext(null),rh=f.createContext({outlet:null,matches:[],isDataRoute:!1}),axe=f.createContext(null);function Kmt(e,t){let{relative:n}=t===void 0?{}:t;fC()||oi(!1);let{basename:r,navigator:i}=f.useContext(Sg),{hash:o,pathname:a,search:s}=lxe(e,{relative:n}),l=a;return r!=="/"&&(l=a==="/"?r:tp([r,a])),i.createHref({pathname:l,search:s,hash:o})}function fC(){return f.useContext(sV)!=null}function hC(){return fC()||oi(!1),f.useContext(sV).location}function sxe(e){f.useContext(Sg).static||f.useLayoutEffect(e)}function as(){let{isDataRoute:e}=f.useContext(rh);return e?agt():qmt()}function qmt(){fC()||oi(!1);let e=f.useContext(PP),{basename:t,future:n,navigator:r}=f.useContext(Sg),{matches:i}=f.useContext(rh),{pathname:o}=hC(),a=JSON.stringify(TP(i,n.v7_relativeSplatPath)),s=f.useRef(!1);return sxe(()=>{s.current=!0}),f.useCallback(function(c,u){if(u===void 0&&(u={}),!s.current)return;if(typeof c=="number"){r.go(c);return}let d=kP(c,JSON.parse(a),o,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:tp([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,a,o,e])}const Gmt=f.createContext(null);function Ymt(e){let t=f.useContext(rh).outlet;return t&&f.createElement(Gmt.Provider,{value:e},t)}function lV(){let{matches:e}=f.useContext(rh),t=e[e.length-1];return t?t.params:{}}function lxe(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=f.useContext(Sg),{matches:i}=f.useContext(rh),{pathname:o}=hC(),a=JSON.stringify(TP(i,r.v7_relativeSplatPath));return f.useMemo(()=>kP(e,JSON.parse(a),o,n==="path"),[e,a,o,n])}function Xmt(e,t,n,r){fC()||oi(!1);let{navigator:i}=f.useContext(Sg),{matches:o}=f.useContext(rh),a=o[o.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let c=hC(),u;u=c;let d=u.pathname||"/",h=d;if(l!=="/"){let v=l.replace(/^\//,"").split("/");h="/"+d.replace(/^\//,"").split("/").slice(v.length).join("/")}let p=p1(e,{pathname:h});return tgt(p&&p.map(v=>Object.assign({},v,{params:Object.assign({},s,v.params),pathname:tp([l,i.encodeLocation?i.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?l:tp([l,i.encodeLocation?i.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),o,n,r)}function Qmt(){let e=ogt(),t=OP(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return f.createElement(f.Fragment,null,f.createElement("h2",null,"Unexpected Application Error!"),f.createElement("h3",{style:{fontStyle:"italic"}},t),n?f.createElement("pre",{style:i},n):null,null)}const Zmt=f.createElement(Qmt,null);class Jmt extends f.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?f.createElement(rh.Provider,{value:this.props.routeContext},f.createElement(axe.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function egt(e){let{routeContext:t,match:n,children:r}=e,i=f.useContext(PP);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),f.createElement(rh.Provider,{value:t},r)}function tgt(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,s=(i=n)==null?void 0:i.errors;if(s!=null){let u=a.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);u>=0||oi(!1),a=a.slice(0,Math.min(a.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u<a.length;u++){let d=a[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(c=u),d.route.id){let{loaderData:h,errors:p}=n,m=d.route.loader&&h[d.route.id]===void 0&&(!p||p[d.route.id]===void 0);if(d.route.lazy||m){l=!0,c>=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((u,d,h)=>{let p,m=!1,v=null,y=null;n&&(p=s&&d.route.id?s[d.route.id]:void 0,v=d.route.errorElement||Zmt,l&&(c<0&&h===0?(m=!0,y=null):c===h&&(m=!0,y=d.route.hydrateFallbackElement||null)));let S=t.concat(a.slice(0,h+1)),b=()=>{let C;return p?C=v:m?C=y:d.route.Component?C=f.createElement(d.route.Component,null):d.route.element?C=d.route.element:C=u,f.createElement(egt,{match:d,routeContext:{outlet:u,matches:S,isDataRoute:n!=null},children:C})};return n&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?f.createElement(Jmt,{location:n.location,revalidation:n.revalidation,component:v,error:p,children:b(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):b()},null)}var cxe=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(cxe||{}),ik=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ik||{});function ngt(e){let t=f.useContext(PP);return t||oi(!1),t}function rgt(e){let t=f.useContext(oxe);return t||oi(!1),t}function igt(e){let t=f.useContext(rh);return t||oi(!1),t}function uxe(e){let t=igt(),n=t.matches[t.matches.length-1];return n.route.id||oi(!1),n.route.id}function ogt(){var e;let t=f.useContext(axe),n=rgt(ik.UseRouteError),r=uxe(ik.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function agt(){let{router:e}=ngt(cxe.UseNavigateStable),t=uxe(ik.UseNavigateStable),n=f.useRef(!1);return sxe(()=>{n.current=!0}),f.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,rk({fromRouteId:t},o)))},[e,t])}const Vne={};function sgt(e,t){Vne[t]||(Vne[t]=!0,console.warn(t))}const ay=(e,t,n)=>sgt(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function lgt(e,t){e!=null&&e.v7_startTransition||ay("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),!(e!=null&&e.v7_relativeSplatPath)&&(!t||!t.v7_relativeSplatPath)&&ay("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),t&&(t.v7_fetcherPersist||ay("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),t.v7_normalizeFormMethod||ay("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),t.v7_partialHydration||ay("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),t.v7_skipActionErrorRevalidation||ay("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}function cgt(e){let{to:t,replace:n,state:r,relative:i}=e;fC()||oi(!1);let{future:o,static:a}=f.useContext(Sg),{matches:s}=f.useContext(rh),{pathname:l}=hC(),c=as(),u=kP(t,TP(s,o.v7_relativeSplatPath),l,i==="path"),d=JSON.stringify(u);return f.useEffect(()=>c(JSON.parse(d),{replace:n,state:r,relative:i}),[c,d,i,n,r]),null}function MP(e){return Ymt(e.context)}function ugt(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Ca.Pop,navigator:o,static:a=!1,future:s}=e;fC()&&oi(!1);let l=t.replace(/^\/*/,"/"),c=f.useMemo(()=>({basename:l,navigator:o,static:a,future:rk({v7_relativeSplatPath:!1},s)}),[l,s,o,a]);typeof r=="string"&&(r=Ip(r));let{pathname:u="/",search:d="",hash:h="",state:p=null,key:m="default"}=r,v=f.useMemo(()=>{let y=dC(u,l);return y==null?null:{location:{pathname:y,search:d,hash:h,state:p,key:m},navigationType:i}},[l,u,d,h,p,m,i]);return v==null?null:f.createElement(Sg.Provider,{value:c},f.createElement(sV.Provider,{children:n,value:v}))}new Promise(()=>{});function dxe(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:f.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:f.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:f.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/**
|
||
* React Router DOM v6.28.0
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function rS(){return rS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rS.apply(this,arguments)}function dgt(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function fgt(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function hgt(e,t){return e.button===0&&(!t||t==="_self")&&!fgt(e)}const pgt=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],mgt="6";try{window.__reactRouterVersion=mgt}catch{}function ggt(e,t){return exe({basename:t==null?void 0:t.basename,future:rS({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:Qpt({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||fxe(),routes:e,mapRouteProperties:dxe,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function vgt(e,t){return exe({basename:t==null?void 0:t.basename,future:rS({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:Zpt({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||fxe(),routes:e,mapRouteProperties:dxe,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function fxe(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=rS({},t,{errors:ygt(t.errors)})),t}function ygt(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,i]of t)if(i&&i.__type==="RouteErrorResponse")n[r]=new nk(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let o=window[i.__subType];if(typeof o=="function")try{let a=new o(i.message);a.stack="",n[r]=a}catch{}}if(n[r]==null){let o=new Error(i.message);o.stack="",n[r]=o}}else n[r]=i;return n}const bgt=f.createContext({isTransitioning:!1}),Sgt=f.createContext(new Map),Cgt="startTransition",Kne=G_[Cgt],xgt="flushSync",qne=sfe[xgt];function wgt(e){Kne?Kne(e):e()}function Ux(e){qne?qne(e):e()}class _gt{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function Egt(e){let{fallbackElement:t,router:n,future:r}=e,[i,o]=f.useState(n.state),[a,s]=f.useState(),[l,c]=f.useState({isTransitioning:!1}),[u,d]=f.useState(),[h,p]=f.useState(),[m,v]=f.useState(),y=f.useRef(new Map),{v7_startTransition:S}=r||{},b=f.useCallback(k=>{S?wgt(k):k()},[S]),C=f.useCallback((k,M)=>{let{deletedFetchers:P,flushSync:D,viewTransitionOpts:R}=M;P.forEach(H=>y.current.delete(H)),k.fetchers.forEach((H,F)=>{H.data!==void 0&&y.current.set(F,H.data)});let A=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!R||A){D?Ux(()=>o(k)):b(()=>o(k));return}if(D){Ux(()=>{h&&(u&&u.resolve(),h.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:R.currentLocation,nextLocation:R.nextLocation})});let H=n.window.document.startViewTransition(()=>{Ux(()=>o(k))});H.finished.finally(()=>{Ux(()=>{d(void 0),p(void 0),s(void 0),c({isTransitioning:!1})})}),Ux(()=>p(H));return}h?(u&&u.resolve(),h.skipTransition(),v({state:k,currentLocation:R.currentLocation,nextLocation:R.nextLocation})):(s(k),c({isTransitioning:!0,flushSync:!1,currentLocation:R.currentLocation,nextLocation:R.nextLocation}))},[n.window,h,u,y,b]);f.useLayoutEffect(()=>n.subscribe(C),[n,C]),f.useEffect(()=>{l.isTransitioning&&!l.flushSync&&d(new _gt)},[l]),f.useEffect(()=>{if(u&&a&&n.window){let k=a,M=u.promise,P=n.window.document.startViewTransition(async()=>{b(()=>o(k)),await M});P.finished.finally(()=>{d(void 0),p(void 0),s(void 0),c({isTransitioning:!1})}),p(P)}},[b,a,u,n.window]),f.useEffect(()=>{u&&a&&i.location.key===a.location.key&&u.resolve()},[u,h,i.location,a]),f.useEffect(()=>{!l.isTransitioning&&m&&(s(m.state),c({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),v(void 0))},[l.isTransitioning,m]),f.useEffect(()=>{},[]);let _=f.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:k=>n.navigate(k),push:(k,M,P)=>n.navigate(k,{state:M,preventScrollReset:P==null?void 0:P.preventScrollReset}),replace:(k,M,P)=>n.navigate(k,{replace:!0,state:M,preventScrollReset:P==null?void 0:P.preventScrollReset})}),[n]),T=n.basename||"/",x=f.useMemo(()=>({router:n,navigator:_,static:!1,basename:T}),[n,_,T]),E=f.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return f.useEffect(()=>lgt(r,n.future),[r,n.future]),f.createElement(f.Fragment,null,f.createElement(PP.Provider,{value:x},f.createElement(oxe.Provider,{value:i},f.createElement(Sgt.Provider,{value:y.current},f.createElement(bgt.Provider,{value:l},f.createElement(ugt,{basename:T,location:i.location,navigationType:i.historyAction,navigator:_,future:E},i.initialized||n.future.v7_partialHydration?f.createElement(Tgt,{routes:n.routes,future:n.future,state:i}):t))))),null)}const Tgt=f.memo(kgt);function kgt(e){let{routes:t,future:n,state:r}=e;return Xmt(t,void 0,r,n)}const Ogt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Pgt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Mgt=f.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:l,to:c,preventScrollReset:u,viewTransition:d}=t,h=dgt(t,pgt),{basename:p}=f.useContext(Sg),m,v=!1;if(typeof c=="string"&&Pgt.test(c)&&(m=c,Ogt))try{let C=new URL(window.location.href),_=c.startsWith("//")?new URL(C.protocol+c):new URL(c),T=dC(_.pathname,p);_.origin===C.origin&&T!=null?c=T+_.search+_.hash:v=!0}catch{}let y=Kmt(c,{relative:i}),S=Igt(c,{replace:a,state:s,target:l,preventScrollReset:u,relative:i,viewTransition:d});function b(C){r&&r(C),C.defaultPrevented||S(C)}return f.createElement("a",rS({},h,{href:m||y,onClick:v||o?r:b,ref:n,target:l}))});var Gne;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Gne||(Gne={}));var Yne;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Yne||(Yne={}));function Igt(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a,viewTransition:s}=t===void 0?{}:t,l=as(),c=hC(),u=lxe(e,{relative:a});return f.useCallback(d=>{if(hgt(d,n)){d.preventDefault();let h=r!==void 0?r:ag(c)===ag(u);l(e,{replace:h,state:i,preventScrollReset:o,relative:a,viewTransition:s})}},[c,l,u,r,i,n,e,o,a,s])}var $gt=X(X({},Fge),{},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪",yearFormat:"YYYY年",cellDateFormat:"D",monthBeforeYear:!1});const hxe={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},Sj={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},$gt),timePickerLocale:Object.assign({},hxe)};Sj.lang.ok="确定";const cc="${label}不是一个有效的${type}",Rgt={locale:"zh-cn",Pagination:fSe,DatePicker:Sj,TimePicker:hxe,Calendar:Sj,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",emptyText:"暂无数据",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",deselectAll:"取消全选",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:cc,method:cc,array:cc,object:cc,number:cc,date:cc,boolean:cc,integer:cc,float:cc,regexp:cc,email:cc,url:cc,hex:cc},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无",transparent:"无色",singleColor:"单色",gradientColor:"渐变色"}},Dm=()=>{},Cc=Dm(),j8=Object,Oi=e=>e===Cc,Nf=e=>typeof e=="function",vp=(e,t)=>({...e,...t}),Agt=e=>Nf(e.then),s5=new WeakMap;let Ngt=0;const w_=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let i,o;if(j8(e)===e&&!r&&n!=RegExp){if(i=s5.get(e),i)return i;if(i=++Ngt+"~",s5.set(e,i),n==Array){for(i="@",o=0;o<e.length;o++)i+=w_(e[o])+",";s5.set(e,i)}if(n==j8){i="#";const a=j8.keys(e).sort();for(;!Oi(o=a.pop());)Oi(e[o])||(i+=o+":"+w_(e[o])+",");s5.set(e,i)}}else i=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return i},zh=new WeakMap,pA={},l5={},cV="undefined",IP=typeof window!=cV,Cj=typeof document!=cV,Dgt=()=>IP&&typeof window.requestAnimationFrame!=cV,pxe=(e,t)=>{const n=zh.get(e);return[()=>!Oi(t)&&e.get(t)||pA,r=>{if(!Oi(t)){const i=e.get(t);t in l5||(l5[t]=i),n[5](t,vp(i,r),i||pA)}},n[6],()=>!Oi(t)&&t in l5?l5[t]:!Oi(t)&&e.get(t)||pA]};let xj=!0;const Lgt=()=>xj,[wj,_j]=IP&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Dm,Dm],Fgt=()=>{const e=Cj&&document.visibilityState;return Oi(e)||e!=="hidden"},jgt=e=>(Cj&&document.addEventListener("visibilitychange",e),wj("focus",e),()=>{Cj&&document.removeEventListener("visibilitychange",e),_j("focus",e)}),Bgt=e=>{const t=()=>{xj=!0,e()},n=()=>{xj=!1};return wj("online",t),wj("offline",n),()=>{_j("online",t),_j("offline",n)}},Hgt={isOnline:Lgt,isVisible:Fgt},zgt={initFocus:jgt,initReconnect:Bgt},Xne=!ge.useId,__=!IP||"Deno"in window,Ugt=e=>Dgt()?window.requestAnimationFrame(e):setTimeout(e,1),B8=__?f.useEffect:f.useLayoutEffect,mA=typeof navigator<"u"&&navigator.connection,Qne=!__&&mA&&(["slow-2g","2g"].includes(mA.effectiveType)||mA.saveData),uV=e=>{if(Nf(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?w_(e):"",[e,t]};let Wgt=0;const Ej=()=>++Wgt,mxe=0,gxe=1,vxe=2,Vgt=3;var Wx={__proto__:null,ERROR_REVALIDATE_EVENT:Vgt,FOCUS_EVENT:mxe,MUTATE_EVENT:vxe,RECONNECT_EVENT:gxe};async function yxe(...e){const[t,n,r,i]=e,o=vp({populateCache:!0,throwOnError:!0},typeof i=="boolean"?{revalidate:i}:i||{});let a=o.populateCache;const s=o.rollbackOnError;let l=o.optimisticData;const c=o.revalidate!==!1,u=p=>typeof s=="function"?s(p):s!==!1,d=o.throwOnError;if(Nf(n)){const p=n,m=[],v=t.keys();for(const y of v)!/^\$(inf|sub)\$/.test(y)&&p(t.get(y)._k)&&m.push(y);return Promise.all(m.map(h))}return h(n);async function h(p){const[m]=uV(p);if(!m)return;const[v,y]=pxe(t,m),[S,b,C,_]=zh.get(t),T=S[m],x=()=>c&&(delete C[m],delete _[m],T&&T[0])?T[0](vxe).then(()=>v().data):v().data;if(e.length<3)return x();let E=r,k;const M=Ej();b[m]=[M,0];const P=!Oi(l),D=v(),R=D.data,A=D._c,H=Oi(A)?R:A;if(P&&(l=Nf(l)?l(H,R):l,y({data:l,_c:H})),Nf(E))try{E=E(H)}catch(z){k=z}if(E&&Agt(E))if(E=await E.catch(z=>{k=z}),M!==b[m][0]){if(k)throw k;return E}else k&&P&&u(k)&&(a=!0,E=H,y({data:E,_c:Cc}));a&&(k||(Nf(a)&&(E=a(E,H)),y({data:E,error:Cc,_c:Cc}))),b[m][1]=Ej();const F=await x();if(y({_c:Cc}),k){if(d)throw k;return}return a?F:E}}const Zne=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},bxe=(e,t)=>{if(!zh.has(e)){const n=vp(zgt,t),r={},i=yxe.bind(Cc,e);let o=Dm;const a={},s=(u,d)=>{const h=a[u]||[];return a[u]=h,h.push(d),()=>h.splice(h.indexOf(d),1)},l=(u,d,h)=>{e.set(u,d);const p=a[u];if(p)for(const m of p)m(d,h)},c=()=>{if(!zh.has(e)&&(zh.set(e,[r,{},{},{},i,l,s]),!__)){const u=n.initFocus(setTimeout.bind(Cc,Zne.bind(Cc,r,mxe))),d=n.initReconnect(setTimeout.bind(Cc,Zne.bind(Cc,r,gxe)));o=()=>{u&&u(),d&&d(),zh.delete(e)}}};return c(),[e,i,c,o]}return[e,zh.get(e)[4]]},Kgt=(e,t,n,r,i)=>{const o=n.errorRetryCount,a=i.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!Oi(o)&&a>o||setTimeout(r,s,i)},qgt=(e,t)=>w_(e)==w_(t),[dV,Ggt]=bxe(new Map),Sxe=vp({onLoadingSlow:Dm,onSuccess:Dm,onError:Dm,onErrorRetry:Kgt,onDiscarded:Dm,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Qne?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Qne?5e3:3e3,compare:qgt,isPaused:()=>!1,cache:dV,mutate:Ggt,fallback:{}},Hgt),Cxe=(e,t)=>{const n=vp(e,t);if(t){const{use:r,fallback:i}=e,{use:o,fallback:a}=t;r&&o&&(n.use=r.concat(o)),i&&a&&(n.fallback=vp(i,a))}return n},Tj=f.createContext({}),Ygt=e=>{const{value:t}=e,n=f.useContext(Tj),r=Nf(t),i=f.useMemo(()=>r?t(n):t,[r,n,t]),o=f.useMemo(()=>r?i:Cxe(n,i),[r,n,i]),a=i&&i.provider,s=f.useRef(Cc);a&&!s.current&&(s.current=bxe(a(o.cache||dV),i));const l=s.current;return l&&(o.cache=l[0],o.mutate=l[1]),B8(()=>{if(l)return l[2]&&l[2](),l[3]},[]),f.createElement(Tj.Provider,vp(e,{value:o}))},xxe=IP&&window.__SWR_DEVTOOLS_USE__,Xgt=xxe?window.__SWR_DEVTOOLS_USE__:[],Qgt=()=>{xxe&&(window.__SWR_DEVTOOLS_REACT__=ge)},Zgt=e=>Nf(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],fV=()=>vp(Sxe,f.useContext(Tj)),Jgt=e=>(t,n,r)=>e(t,n&&((...o)=>{const[a]=uV(t),[,,,s]=zh.get(dV),l=s[a];return Oi(l)?n(...o):(delete s[a],l)}),r),e1t=Xgt.concat(Jgt),t1t=e=>function(...n){const r=fV(),[i,o,a]=Zgt(n),s=Cxe(r,a);let l=e;const{use:c}=s,u=(c||[]).concat(e1t);for(let d=u.length;d--;)l=u[d](l);return l(i,o||s.fetcher||null,s)},n1t=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const i=r.indexOf(n);i>=0&&(r[i]=r[r.length-1],r.pop())}};Qgt();const Jne=ge.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),gA={dedupe:!0},r1t=(e,t,n)=>{const{cache:r,compare:i,suspense:o,fallbackData:a,revalidateOnMount:s,revalidateIfStale:l,refreshInterval:c,refreshWhenHidden:u,refreshWhenOffline:d,keepPreviousData:h}=n,[p,m,v,y]=zh.get(r),[S,b]=uV(e),C=f.useRef(!1),_=f.useRef(!1),T=f.useRef(S),x=f.useRef(t),E=f.useRef(n),k=()=>E.current,M=()=>k().isVisible()&&k().isOnline(),[P,D,R,A]=pxe(r,S),H=f.useRef({}).current,F=Oi(a)?n.fallback[S]:a,z=(pe,he)=>{for(const _e in H){const le=_e;if(le==="data"){if(!i(pe[le],he[le])&&(!Oi(pe[le])||!i(ce,he[le])))return!1}else if(he[le]!==pe[le])return!1}return!0},W=f.useMemo(()=>{const pe=!S||!t?!1:Oi(s)?k().isPaused()||o?!1:Oi(l)?!0:l:s,he=Fe=>{const Ce=vp(Fe);return delete Ce._k,pe?{isValidating:!0,isLoading:!0,...Ce}:Ce},_e=P(),le=A(),xe=he(_e),we=_e===le?xe:he(le);let De=xe;return[()=>{const Fe=he(P());return z(Fe,De)?(De.data=Fe.data,De.isLoading=Fe.isLoading,De.isValidating=Fe.isValidating,De.error=Fe.error,De):(De=Fe,Fe)},()=>we]},[r,S]),q=ffe.useSyncExternalStore(f.useCallback(pe=>R(S,(he,_e)=>{z(_e,he)||pe()}),[r,S]),W[0],W[1]),Z=!C.current,N=p[S]&&p[S].length>0,B=q.data,V=Oi(B)?F:B,G=q.error,ie=f.useRef(V),ce=h?Oi(B)?ie.current:B:V,fe=N&&!Oi(G)?!1:Z&&!Oi(s)?s:k().isPaused()?!1:o?Oi(V)?!1:l:Oi(V)||l,ee=!!(S&&t&&Z&&fe),ne=Oi(q.isValidating)?ee:q.isValidating,ue=Oi(q.isLoading)?ee:q.isLoading,ye=f.useCallback(async pe=>{const he=x.current;if(!S||!he||_.current||k().isPaused())return!1;let _e,le,xe=!0;const we=pe||{},De=!v[S]||!we.dedupe,Fe=()=>Xne?!_.current&&S===T.current&&C.current:S===T.current,Ce={isValidating:!1,isLoading:!1},Te=()=>{D(Ce)},ke=()=>{const Ne=v[S];Ne&&Ne[1]===le&&delete v[S]},Pe={isValidating:!0};Oi(P().data)&&(Pe.isLoading=!0);try{if(De&&(D(Pe),n.loadingTimeout&&Oi(P().data)&&setTimeout(()=>{xe&&Fe()&&k().onLoadingSlow(S,n)},n.loadingTimeout),v[S]=[he(b),Ej()]),[_e,le]=v[S],_e=await _e,De&&setTimeout(ke,n.dedupingInterval),!v[S]||v[S][1]!==le)return De&&Fe()&&k().onDiscarded(S),!1;Ce.error=Cc;const Ne=m[S];if(!Oi(Ne)&&(le<=Ne[0]||le<=Ne[1]||Ne[1]===0))return Te(),De&&Fe()&&k().onDiscarded(S),!1;const We=P().data;Ce.data=i(We,_e)?We:_e,De&&Fe()&&k().onSuccess(_e,S,n)}catch(Ne){ke();const We=k(),{shouldRetryOnError:Q}=We;We.isPaused()||(Ce.error=Ne,De&&Fe()&&(We.onError(Ne,S,We),(Q===!0||Nf(Q)&&Q(Ne))&&M()&&We.onErrorRetry(Ne,S,We,K=>{const J=p[S];J&&J[0]&&J[0](Wx.ERROR_REVALIDATE_EVENT,K)},{retryCount:(we.retryCount||0)+1,dedupe:!0})))}return xe=!1,Te(),!0},[S,r]),me=f.useCallback((...pe)=>yxe(r,T.current,...pe),[]);if(B8(()=>{x.current=t,E.current=n,Oi(B)||(ie.current=B)}),B8(()=>{if(!S)return;const pe=ye.bind(Cc,gA);let he=0;const le=n1t(S,p,(xe,we={})=>{if(xe==Wx.FOCUS_EVENT){const De=Date.now();k().revalidateOnFocus&&De>he&&M()&&(he=De+k().focusThrottleInterval,pe())}else if(xe==Wx.RECONNECT_EVENT)k().revalidateOnReconnect&&M()&&pe();else{if(xe==Wx.MUTATE_EVENT)return ye();if(xe==Wx.ERROR_REVALIDATE_EVENT)return ye(we)}});return _.current=!1,T.current=S,C.current=!0,D({_k:b}),fe&&(Oi(V)||__?pe():Ugt(pe)),()=>{_.current=!0,le()}},[S]),B8(()=>{let pe;function he(){const le=Nf(c)?c(P().data):c;le&&pe!==-1&&(pe=setTimeout(_e,le))}function _e(){!P().error&&(u||k().isVisible())&&(d||k().isOnline())?ye(gA).then(he):he()}return he(),()=>{pe&&(clearTimeout(pe),pe=-1)}},[c,u,d,S]),f.useDebugValue(ce),o&&Oi(V)&&S){if(!Xne&&__)throw new Error("Fallback data is required when using suspense in SSR.");x.current=t,E.current=n,_.current=!1;const pe=y[S];if(!Oi(pe)){const he=me(pe);Jne(he)}if(Oi(G)){const he=ye(gA);Oi(ce)||(he.status="fulfilled",he.value=!0),Jne(he)}else throw G}return{mutate:me,get data(){return H.data=!0,ce},get error(){return H.error=!0,G},get isValidating(){return H.isValidating=!0,ne},get isLoading(){return H.isLoading=!0,ue}}},i1t=j8.defineProperty(Ygt,"defaultValue",{value:Sxe}),hV=t1t(r1t),o1t={moneySymbol:"$",form:{lightFilter:{more:"المزيد",clear:"نظف",confirm:"تأكيد",itemUnit:"عناصر"}},tableForm:{search:"ابحث",reset:"إعادة تعيين",submit:"ارسال",collapsed:"مُقلص",expand:"مُوسع",inputPlaceholder:"الرجاء الإدخال",selectPlaceholder:"الرجاء الإختيار"},alert:{clear:"نظف",selected:"محدد",item:"عنصر"},pagination:{total:{range:" ",total:"من",item:"عناصر"}},tableToolBar:{leftPin:"ثبت على اليسار",rightPin:"ثبت على اليمين",noPin:"الغاء التثبيت",leftFixedTitle:"لصق على اليسار",rightFixedTitle:"لصق على اليمين",noFixedTitle:"إلغاء الإلصاق",reset:"إعادة تعيين",columnDisplay:"الأعمدة المعروضة",columnSetting:"الإعدادات",fullScreen:"وضع كامل الشاشة",exitFullScreen:"الخروج من وضع كامل الشاشة",reload:"تحديث",density:"الكثافة",densityDefault:"افتراضي",densityLarger:"أكبر",densityMiddle:"وسط",densitySmall:"مدمج"},stepsForm:{next:"التالي",prev:"السابق",submit:"أنهى"},loginForm:{submitText:"تسجيل الدخول"},editableTable:{action:{save:"أنقذ",cancel:"إلغاء الأمر",delete:"حذف",add:"إضافة صف من البيانات"}},switch:{open:"مفتوح",close:"غلق"}},a1t={moneySymbol:"€",form:{lightFilter:{more:"Més",clear:"Netejar",confirm:"Confirmar",itemUnit:"Elements"}},tableForm:{search:"Cercar",reset:"Netejar",submit:"Enviar",collapsed:"Expandir",expand:"Col·lapsar",inputPlaceholder:"Introduïu valor",selectPlaceholder:"Seleccioneu valor"},alert:{clear:"Netejar",selected:"Seleccionat",item:"Article"},pagination:{total:{range:" ",total:"de",item:"articles"}},tableToolBar:{leftPin:"Pin a l'esquerra",rightPin:"Pin a la dreta",noPin:"Sense Pin",leftFixedTitle:"Fixat a l'esquerra",rightFixedTitle:"Fixat a la dreta",noFixedTitle:"Sense fixar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuració",fullScreen:"Pantalla Completa",exitFullScreen:"Sortir Pantalla Completa",reload:"Refrescar",density:"Densitat",densityDefault:"Per Defecte",densityLarger:"Llarg",densityMiddle:"Mitjà",densitySmall:"Compacte"},stepsForm:{next:"Següent",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Guardar",cancel:"Cancel·lar",delete:"Eliminar",add:"afegir una fila de dades"}},switch:{open:"obert",close:"tancat"}},s1t={moneySymbol:"Kč",deleteThisLine:"Smazat tento řádek",copyThisLine:"Kopírovat tento řádek",form:{lightFilter:{more:"Víc",clear:"Vymazat",confirm:"Potvrdit",itemUnit:"Položky"}},tableForm:{search:"Dotaz",reset:"Resetovat",submit:"Odeslat",collapsed:"Zvětšit",expand:"Zmenšit",inputPlaceholder:"Zadejte prosím",selectPlaceholder:"Vyberte prosím"},alert:{clear:"Vymazat",selected:"Vybraný",item:"Položka"},pagination:{total:{range:" ",total:"z",item:"položek"}},tableToolBar:{leftPin:"Připnout doleva",rightPin:"Připnout doprava",noPin:"Odepnuto",leftFixedTitle:"Fixováno nalevo",rightFixedTitle:"Fixováno napravo",noFixedTitle:"Neopraveno",reset:"Resetovat",columnDisplay:"Zobrazení sloupců",columnSetting:"Nastavení",fullScreen:"Celá obrazovka",exitFullScreen:"Ukončete celou obrazovku",reload:"Obnovit",density:"Hustota",densityDefault:"Výchozí",densityLarger:"Větší",densityMiddle:"Střední",densitySmall:"Kompaktní"},stepsForm:{next:"Další",prev:"Předchozí",submit:"Dokončit"},loginForm:{submitText:"Přihlásit se"},editableTable:{onlyOneLineEditor:"Upravit lze pouze jeden řádek",action:{save:"Uložit",cancel:"Zrušit",delete:"Vymazat",add:"přidat řádek dat"}},switch:{open:"otevřít",close:"zavřít"}},l1t={moneySymbol:"€",form:{lightFilter:{more:"Mehr",clear:"Zurücksetzen",confirm:"Bestätigen",itemUnit:"Einträge"}},tableForm:{search:"Suchen",reset:"Zurücksetzen",submit:"Absenden",collapsed:"Zeige mehr",expand:"Zeige weniger",inputPlaceholder:"Bitte eingeben",selectPlaceholder:"Bitte auswählen"},alert:{clear:"Zurücksetzen",selected:"Ausgewählt",item:"Eintrag"},pagination:{total:{range:" ",total:"von",item:"Einträgen"}},tableToolBar:{leftPin:"Links anheften",rightPin:"Rechts anheften",noPin:"Nicht angeheftet",leftFixedTitle:"Links fixiert",rightFixedTitle:"Rechts fixiert",noFixedTitle:"Nicht fixiert",reset:"Zurücksetzen",columnDisplay:"Angezeigte Reihen",columnSetting:"Einstellungen",fullScreen:"Vollbild",exitFullScreen:"Vollbild verlassen",reload:"Aktualisieren",density:"Abstand",densityDefault:"Standard",densityLarger:"Größer",densityMiddle:"Mittel",densitySmall:"Kompakt"},stepsForm:{next:"Weiter",prev:"Zurück",submit:"Abschließen"},loginForm:{submitText:"Anmelden"},editableTable:{action:{save:"Retten",cancel:"Abbrechen",delete:"Löschen",add:"Hinzufügen einer Datenzeile"}},switch:{open:"offen",close:"schließen"}},c1t={moneySymbol:"£",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed to the left",rightFixedTitle:"Fixed to the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Table Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{onlyOneLineEditor:"Only one line can be edited",onlyAddOneLine:"Only one line can be added",action:{save:"Save",cancel:"Cancel",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"close"}},u1t={moneySymbol:"$",deleteThisLine:"Delete this line",copyThisLine:"Copy this line",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed to the left",rightFixedTitle:"Fixed to the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Table Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{onlyOneLineEditor:"Only one line can be edited",onlyAddOneLine:"Only one line can be added",action:{save:"Save",cancel:"Cancel",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"close"}},d1t={moneySymbol:"€",form:{lightFilter:{more:"Más",clear:"Limpiar",confirm:"Confirmar",itemUnit:"artículos"}},tableForm:{search:"Buscar",reset:"Limpiar",submit:"Submit",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Ingrese valor",selectPlaceholder:"Seleccione valor"},alert:{clear:"Limpiar",selected:"Seleccionado",item:"Articulo"},pagination:{total:{range:" ",total:"de",item:"artículos"}},tableToolBar:{leftPin:"Pin a la izquierda",rightPin:"Pin a la derecha",noPin:"Sin Pin",leftFixedTitle:"Fijado a la izquierda",rightFixedTitle:"Fijado a la derecha",noFixedTitle:"Sin Fijar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuración",fullScreen:"Pantalla Completa",exitFullScreen:"Salir Pantalla Completa",reload:"Refrescar",density:"Densidad",densityDefault:"Por Defecto",densityLarger:"Largo",densityMiddle:"Medio",densitySmall:"Compacto"},stepsForm:{next:"Siguiente",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Guardar",cancel:"Descartar",delete:"Borrar",add:"añadir una fila de datos"}},switch:{open:"abrir",close:"cerrar"}},f1t={moneySymbol:"تومان",form:{lightFilter:{more:"بیشتر",clear:"پاک کردن",confirm:"تایید",itemUnit:"مورد"}},tableForm:{search:"جستجو",reset:"بازنشانی",submit:"تایید",collapsed:"نمایش بیشتر",expand:"نمایش کمتر",inputPlaceholder:"پیدا کنید",selectPlaceholder:"انتخاب کنید"},alert:{clear:"پاک سازی",selected:"انتخاب",item:"مورد"},pagination:{total:{range:" ",total:"از",item:"مورد"}},tableToolBar:{leftPin:"سنجاق به چپ",rightPin:"سنجاق به راست",noPin:"سنجاق نشده",leftFixedTitle:"ثابت شده در چپ",rightFixedTitle:"ثابت شده در راست",noFixedTitle:"شناور",reset:"بازنشانی",columnDisplay:"نمایش همه",columnSetting:"تنظیمات",fullScreen:"تمام صفحه",exitFullScreen:"خروج از حالت تمام صفحه",reload:"تازه سازی",density:"تراکم",densityDefault:"پیش فرض",densityLarger:"بزرگ",densityMiddle:"متوسط",densitySmall:"کوچک"},stepsForm:{next:"بعدی",prev:"قبلی",submit:"اتمام"},loginForm:{submitText:"ورود"},editableTable:{action:{save:"ذخیره",cancel:"لغو",delete:"حذف",add:"یک ردیف داده اضافه کنید"}},switch:{open:"باز",close:"نزدیک"}},h1t={moneySymbol:"€",form:{lightFilter:{more:"Plus",clear:"Effacer",confirm:"Confirmer",itemUnit:"Items"}},tableForm:{search:"Rechercher",reset:"Réinitialiser",submit:"Envoyer",collapsed:"Agrandir",expand:"Réduire",inputPlaceholder:"Entrer une valeur",selectPlaceholder:"Sélectionner une valeur"},alert:{clear:"Réinitialiser",selected:"Sélectionné",item:"Item"},pagination:{total:{range:" ",total:"sur",item:"éléments"}},tableToolBar:{leftPin:"Épingler à gauche",rightPin:"Épingler à gauche",noPin:"Sans épingle",leftFixedTitle:"Fixer à gauche",rightFixedTitle:"Fixer à droite",noFixedTitle:"Non fixé",reset:"Réinitialiser",columnDisplay:"Affichage colonne",columnSetting:"Réglages",fullScreen:"Plein écran",exitFullScreen:"Quitter Plein écran",reload:"Rafraichir",density:"Densité",densityDefault:"Par défaut",densityLarger:"Larger",densityMiddle:"Moyenne",densitySmall:"Compacte"},stepsForm:{next:"Suivante",prev:"Précédente",submit:"Finaliser"},loginForm:{submitText:"Se connecter"},editableTable:{action:{save:"Sauvegarder",cancel:"Annuler",delete:"Supprimer",add:"ajouter une ligne de données"}},switch:{open:"ouvert",close:"près"}},p1t={moneySymbol:"₪",deleteThisLine:"מחק שורה זו",copyThisLine:"העתק שורה זו",form:{lightFilter:{more:"יותר",clear:"נקה",confirm:"אישור",itemUnit:"פריטים"}},tableForm:{search:"חיפוש",reset:"איפוס",submit:"שלח",collapsed:"הרחב",expand:"כווץ",inputPlaceholder:"אנא הכנס",selectPlaceholder:"אנא בחר"},alert:{clear:"נקה",selected:"נבחר",item:"פריט"},pagination:{total:{range:" ",total:"מתוך",item:"פריטים"}},tableToolBar:{leftPin:"הצמד לשמאל",rightPin:"הצמד לימין",noPin:"לא מצורף",leftFixedTitle:"מוצמד לשמאל",rightFixedTitle:"מוצמד לימין",noFixedTitle:"לא מוצמד",reset:"איפוס",columnDisplay:"תצוגת עמודות",columnSetting:"הגדרות",fullScreen:"מסך מלא",exitFullScreen:"צא ממסך מלא",reload:"רענן",density:"רזולוציה",densityDefault:"ברירת מחדל",densityLarger:"גדול",densityMiddle:"בינוני",densitySmall:"קטן"},stepsForm:{next:"הבא",prev:"קודם",submit:"סיום"},loginForm:{submitText:"כניסה"},editableTable:{onlyOneLineEditor:"ניתן לערוך רק שורה אחת",action:{save:"שמור",cancel:"ביטול",delete:"מחיקה",add:"הוסף שורת נתונים"}},switch:{open:"פתח",close:"סגור"}},m1t={moneySymbol:"kn",form:{lightFilter:{more:"Više",clear:"Očisti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Pretraži",reset:"Poništi",submit:"Potvrdi",collapsed:"Raširi",expand:"Skupi",inputPlaceholder:"Unesite",selectPlaceholder:"Odaberite"},alert:{clear:"Očisti",selected:"Odaberi",item:"stavke"},pagination:{total:{range:" ",total:"od",item:"stavke"}},tableToolBar:{leftPin:"Prikači lijevo",rightPin:"Prikači desno",noPin:"Bez prikačenja",leftFixedTitle:"Fiksiraj lijevo",rightFixedTitle:"Fiksiraj desno",noFixedTitle:"Bez fiksiranja",reset:"Resetiraj",columnDisplay:"Prikaz stupaca",columnSetting:"Postavke",fullScreen:"Puni zaslon",exitFullScreen:"Izađi iz punog zaslona",reload:"Ponovno učitaj",density:"Veličina",densityDefault:"Zadano",densityLarger:"Veliko",densityMiddle:"Srednje",densitySmall:"Malo"},stepsForm:{next:"Sljedeći",prev:"Prethodni",submit:"Kraj"},loginForm:{submitText:"Prijava"},editableTable:{action:{save:"Spremi",cancel:"Odustani",delete:"Obriši",add:"dodajte red podataka"}},switch:{open:"otvori",close:"zatvori"}},g1t={moneySymbol:"RP",form:{lightFilter:{more:"Lebih",clear:"Hapus",confirm:"Konfirmasi",itemUnit:"Unit"}},tableForm:{search:"Cari",reset:"Atur ulang",submit:"Kirim",collapsed:"Lebih sedikit",expand:"Lebih banyak",inputPlaceholder:"Masukkan pencarian",selectPlaceholder:"Pilih"},alert:{clear:"Hapus",selected:"Dipilih",item:"Butir"},pagination:{total:{range:" ",total:"Dari",item:"Butir"}},tableToolBar:{leftPin:"Pin kiri",rightPin:"Pin kanan",noPin:"Tidak ada pin",leftFixedTitle:"Rata kiri",rightFixedTitle:"Rata kanan",noFixedTitle:"Tidak tetap",reset:"Atur ulang",columnDisplay:"Tampilan kolom",columnSetting:"Pengaturan",fullScreen:"Layar penuh",exitFullScreen:"Keluar layar penuh",reload:"Atur ulang",density:"Kerapatan",densityDefault:"Standar",densityLarger:"Lebih besar",densityMiddle:"Sedang",densitySmall:"Rapat"},stepsForm:{next:"Selanjutnya",prev:"Sebelumnya",submit:"Selesai"},loginForm:{submitText:"Login"},editableTable:{action:{save:"simpan",cancel:"batal",delete:"hapus",add:"Tambahkan baris data"}},switch:{open:"buka",close:"tutup"}},v1t={moneySymbol:"€",form:{lightFilter:{more:"più",clear:"pulisci",confirm:"conferma",itemUnit:"elementi"}},tableForm:{search:"Filtra",reset:"Pulisci",submit:"Invia",collapsed:"Espandi",expand:"Contrai",inputPlaceholder:"Digita",selectPlaceholder:"Seleziona"},alert:{clear:"Rimuovi",selected:"Selezionati",item:"elementi"},pagination:{total:{range:" ",total:"di",item:"elementi"}},tableToolBar:{leftPin:"Fissa a sinistra",rightPin:"Fissa a destra",noPin:"Ripristina posizione",leftFixedTitle:"Fissato a sinistra",rightFixedTitle:"Fissato a destra",noFixedTitle:"Non fissato",reset:"Ripristina",columnDisplay:"Disposizione colonne",columnSetting:"Impostazioni",fullScreen:"Modalità schermo intero",exitFullScreen:"Esci da modalità schermo intero",reload:"Ricarica",density:"Grandezza tabella",densityDefault:"predefinito",densityLarger:"Grande",densityMiddle:"Media",densitySmall:"Compatta"},stepsForm:{next:"successivo",prev:"precedente",submit:"finisci"},loginForm:{submitText:"Accedi"},editableTable:{action:{save:"salva",cancel:"annulla",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"chiudi"}},y1t={moneySymbol:"¥",form:{lightFilter:{more:"更に",clear:"クリア",confirm:"確認",itemUnit:"アイテム"}},tableForm:{search:"検索",reset:"リセット",submit:"送信",collapsed:"拡大",expand:"折畳",inputPlaceholder:"入力してください",selectPlaceholder:"選択してください"},alert:{clear:"クリア",selected:"選択した",item:"アイテム"},pagination:{total:{range:"レコード",total:"/合計",item:" "}},tableToolBar:{leftPin:"左に固定",rightPin:"右に固定",noPin:"キャンセル",leftFixedTitle:"左に固定された項目",rightFixedTitle:"右に固定された項目",noFixedTitle:"固定されてない項目",reset:"リセット",columnDisplay:"表示列",columnSetting:"列表示設定",fullScreen:"フルスクリーン",exitFullScreen:"終了",reload:"更新",density:"行高",densityDefault:"デフォルト",densityLarger:"大",densityMiddle:"中",densitySmall:"小"},stepsForm:{next:"次へ",prev:"前へ",submit:"送信"},loginForm:{submitText:"ログイン"},editableTable:{action:{save:"保存",cancel:"キャンセル",delete:"削除",add:"追加"}},switch:{open:"開く",close:"閉じる"}},b1t={moneySymbol:"₩",form:{lightFilter:{more:"더보기",clear:"초기화",confirm:"확인",itemUnit:"건수"}},tableForm:{search:"조회",reset:"초기화",submit:"제출",collapsed:"확장",expand:"닫기",inputPlaceholder:"입력해 주세요",selectPlaceholder:"선택해 주세요"},alert:{clear:"취소",selected:"선택",item:"건"},pagination:{total:{range:" ",total:"/ 총",item:"건"}},tableToolBar:{leftPin:"왼쪽으로 핀",rightPin:"오른쪽으로 핀",noPin:"핀 제거",leftFixedTitle:"왼쪽으로 고정",rightFixedTitle:"오른쪽으로 고정",noFixedTitle:"비고정",reset:"초기화",columnDisplay:"컬럼 표시",columnSetting:"설정",fullScreen:"전체 화면",exitFullScreen:"전체 화면 취소",reload:"새로 고침",density:"여백",densityDefault:"기본",densityLarger:"많은 여백",densityMiddle:"중간 여백",densitySmall:"좁은 여백"},stepsForm:{next:"다음",prev:"이전",submit:"종료"},loginForm:{submitText:"로그인"},editableTable:{action:{save:"저장",cancel:"취소",delete:"삭제",add:"데이터 행 추가"}},switch:{open:"열",close:"가까 운"}},S1t={moneySymbol:"₮",form:{lightFilter:{more:"Илүү",clear:"Цэвэрлэх",confirm:"Баталгаажуулах",itemUnit:"Нэгжүүд"}},tableForm:{search:"Хайх",reset:"Шинэчлэх",submit:"Илгээх",collapsed:"Өргөтгөх",expand:"Хураах",inputPlaceholder:"Утга оруулна уу",selectPlaceholder:"Утга сонгоно уу"},alert:{clear:"Цэвэрлэх",selected:"Сонгогдсон",item:"Нэгж"},pagination:{total:{range:" ",total:"Нийт",item:"мөр"}},tableToolBar:{leftPin:"Зүүн тийш бэхлэх",rightPin:"Баруун тийш бэхлэх",noPin:"Бэхлэхгүй",leftFixedTitle:"Зүүн зэрэгцүүлэх",rightFixedTitle:"Баруун зэрэгцүүлэх",noFixedTitle:"Зэрэгцүүлэхгүй",reset:"Шинэчлэх",columnDisplay:"Баганаар харуулах",columnSetting:"Тохиргоо",fullScreen:"Бүтэн дэлгэцээр",exitFullScreen:"Бүтэн дэлгэц цуцлах",reload:"Шинэчлэх",density:"Хэмжээ",densityDefault:"Хэвийн",densityLarger:"Том",densityMiddle:"Дунд",densitySmall:"Жижиг"},stepsForm:{next:"Дараах",prev:"Өмнөх",submit:"Дуусгах"},loginForm:{submitText:"Нэвтрэх"},editableTable:{action:{save:"Хадгалах",cancel:"Цуцлах",delete:"Устгах",add:"Мөр нэмэх"}},switch:{open:"Нээх",close:"Хаах"}},C1t={moneySymbol:"RM",form:{lightFilter:{more:"Lebih banyak",clear:"Jelas",confirm:"Mengesahkan",itemUnit:"Item"}},tableForm:{search:"Cari",reset:"Menetapkan semula",submit:"Hantar",collapsed:"Kembang",expand:"Kuncup",inputPlaceholder:"Sila masuk",selectPlaceholder:"Sila pilih"},alert:{clear:"Padam",selected:"Dipilih",item:"Item"},pagination:{total:{range:" ",total:"daripada",item:"item"}},tableToolBar:{leftPin:"Pin ke kiri",rightPin:"Pin ke kanan",noPin:"Tidak pin",leftFixedTitle:"Tetap ke kiri",rightFixedTitle:"Tetap ke kanan",noFixedTitle:"Tidak Tetap",reset:"Menetapkan semula",columnDisplay:"Lajur",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Keluar Full Screen",reload:"Muat Semula",density:"Densiti",densityDefault:"Biasa",densityLarger:"Besar",densityMiddle:"Tengah",densitySmall:"Kecil"},stepsForm:{next:"Seterusnya",prev:"Sebelumnya",submit:"Selesai"},loginForm:{submitText:"Log Masuk"},editableTable:{action:{save:"Simpan",cancel:"Membatalkan",delete:"Menghapuskan",add:"tambah baris data"}},switch:{open:"Terbuka",close:"Tutup"}},x1t={moneySymbol:"€",deleteThisLine:"Verwijder deze regel",copyThisLine:"Kopieer deze regel",form:{lightFilter:{more:"Meer filters",clear:"Wissen",confirm:"Bevestigen",itemUnit:"item"}},tableForm:{search:"Zoeken",reset:"Resetten",submit:"Indienen",collapsed:"Uitvouwen",expand:"Inklappen",inputPlaceholder:"Voer in",selectPlaceholder:"Selecteer"},alert:{clear:"Selectie annuleren",selected:"Geselecteerd",item:"item"},pagination:{total:{range:"Van",total:"items/totaal",item:"items"}},tableToolBar:{leftPin:"Vastzetten aan begin",rightPin:"Vastzetten aan einde",noPin:"Niet vastzetten",leftFixedTitle:"Vastzetten aan de linkerkant",rightFixedTitle:"Vastzetten aan de rechterkant",noFixedTitle:"Niet vastzetten",reset:"Resetten",columnDisplay:"Kolomweergave",columnSetting:"Kolominstellingen",fullScreen:"Volledig scherm",exitFullScreen:"Verlaat volledig scherm",reload:"Vernieuwen",density:"Dichtheid",densityDefault:"Normaal",densityLarger:"Ruim",densityMiddle:"Gemiddeld",densitySmall:"Compact"},stepsForm:{next:"Volgende stap",prev:"Vorige stap",submit:"Indienen"},loginForm:{submitText:"Inloggen"},editableTable:{onlyOneLineEditor:"Slechts één regel tegelijk bewerken",action:{save:"Opslaan",cancel:"Annuleren",delete:"Verwijderen",add:"Een regel toevoegen"}},switch:{open:"Openen",close:"Sluiten"}},w1t={moneySymbol:"zł",form:{lightFilter:{more:"Więcej",clear:"Wyczyść",confirm:"Potwierdź",itemUnit:"Ilość"}},tableForm:{search:"Szukaj",reset:"Reset",submit:"Zatwierdź",collapsed:"Pokaż wiecej",expand:"Pokaż mniej",inputPlaceholder:"Proszę podać",selectPlaceholder:"Proszę wybrać"},alert:{clear:"Wyczyść",selected:"Wybrane",item:"Wpis"},pagination:{total:{range:" ",total:"z",item:"Wpisów"}},tableToolBar:{leftPin:"Przypnij do lewej",rightPin:"Przypnij do prawej",noPin:"Odepnij",leftFixedTitle:"Przypięte do lewej",rightFixedTitle:"Przypięte do prawej",noFixedTitle:"Nieprzypięte",reset:"Reset",columnDisplay:"Wyświetlane wiersze",columnSetting:"Ustawienia",fullScreen:"Pełen ekran",exitFullScreen:"Zamknij pełen ekran",reload:"Odśwież",density:"Odstęp",densityDefault:"Standard",densityLarger:"Wiekszy",densityMiddle:"Sredni",densitySmall:"Kompaktowy"},stepsForm:{next:"Weiter",prev:"Zurück",submit:"Abschließen"},loginForm:{submitText:"Zaloguj się"},editableTable:{action:{save:"Zapisać",cancel:"Anuluj",delete:"Usunąć",add:"dodawanie wiersza danych"}},switch:{open:"otwierać",close:"zamykać"}},_1t={moneySymbol:"R$",form:{lightFilter:{more:"Mais",clear:"Limpar",confirm:"Confirmar",itemUnit:"Itens"}},tableForm:{search:"Filtrar",reset:"Limpar",submit:"Confirmar",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Por favor insira",selectPlaceholder:"Por favor selecione"},alert:{clear:"Limpar",selected:"Selecionado(s)",item:"Item(s)"},pagination:{total:{range:" ",total:"de",item:"itens"}},tableToolBar:{leftPin:"Fixar à esquerda",rightPin:"Fixar à direita",noPin:"Desfixado",leftFixedTitle:"Fixado à esquerda",rightFixedTitle:"Fixado à direita",noFixedTitle:"Não fixado",reset:"Limpar",columnDisplay:"Mostrar Coluna",columnSetting:"Configurações",fullScreen:"Tela Cheia",exitFullScreen:"Sair da Tela Cheia",reload:"Atualizar",density:"Densidade",densityDefault:"Padrão",densityLarger:"Largo",densityMiddle:"Médio",densitySmall:"Compacto"},stepsForm:{next:"Próximo",prev:"Anterior",submit:"Enviar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Salvar",cancel:"Cancelar",delete:"Apagar",add:"adicionar uma linha de dados"}},switch:{open:"abrir",close:"fechar"}},E1t={moneySymbol:"RON",deleteThisLine:"Șterge acest rând",copyThisLine:"Copiază acest rând",form:{lightFilter:{more:"Mai multe filtre",clear:"Curăță",confirm:"Confirmă",itemUnit:"elemente"}},tableForm:{search:"Caută",reset:"Resetează",submit:"Trimite",collapsed:"Extinde",expand:"Restrânge",inputPlaceholder:"Introduceți",selectPlaceholder:"Selectați"},alert:{clear:"Anulează selecția",selected:"Selectat",item:"elemente"},pagination:{total:{range:"De la",total:"elemente/total",item:"elemente"}},tableToolBar:{leftPin:"Fixează la început",rightPin:"Fixează la sfârșit",noPin:"Nu fixa",leftFixedTitle:"Fixează în stânga",rightFixedTitle:"Fixează în dreapta",noFixedTitle:"Nu fixa",reset:"Resetează",columnDisplay:"Afișare coloane",columnSetting:"Setări coloane",fullScreen:"Ecran complet",exitFullScreen:"Ieși din ecran complet",reload:"Reîncarcă",density:"Densitate",densityDefault:"Normal",densityLarger:"Larg",densityMiddle:"Mediu",densitySmall:"Compact"},stepsForm:{next:"Pasul următor",prev:"Pasul anterior",submit:"Trimite"},loginForm:{submitText:"Autentificare"},editableTable:{onlyOneLineEditor:"Se poate edita doar un rând simultan",action:{save:"Salvează",cancel:"Anulează",delete:"Șterge",add:"Adaugă un rând"}},switch:{open:"Deschide",close:"Închide"}},T1t={moneySymbol:"₽",form:{lightFilter:{more:"Еще",clear:"Очистить",confirm:"ОК",itemUnit:"Позиции"}},tableForm:{search:"Найти",reset:"Сброс",submit:"Отправить",collapsed:"Развернуть",expand:"Свернуть",inputPlaceholder:"Введите значение",selectPlaceholder:"Выберите значение"},alert:{clear:"Очистить",selected:"Выбрано",item:"элементов"},pagination:{total:{range:" ",total:"из",item:"элементов"}},tableToolBar:{leftPin:"Закрепить слева",rightPin:"Закрепить справа",noPin:"Открепить",leftFixedTitle:"Закреплено слева",rightFixedTitle:"Закреплено справа",noFixedTitle:"Не закреплено",reset:"Сброс",columnDisplay:"Отображение столбца",columnSetting:"Настройки",fullScreen:"Полный экран",exitFullScreen:"Выйти из полноэкранного режима",reload:"Обновить",density:"Размер",densityDefault:"По умолчанию",densityLarger:"Большой",densityMiddle:"Средний",densitySmall:"Сжатый"},stepsForm:{next:"Следующий",prev:"Предыдущий",submit:"Завершить"},loginForm:{submitText:"Вход"},editableTable:{action:{save:"Сохранить",cancel:"Отменить",delete:"Удалить",add:"добавить ряд данных"}},switch:{open:"Открытый чемпионат мира по теннису",close:"По адресу:"}},k1t={moneySymbol:"€",deleteThisLine:"Odstrániť tento riadok",copyThisLine:"Skopírujte tento riadok",form:{lightFilter:{more:"Viac",clear:"Vyčistiť",confirm:"Potvrďte",itemUnit:"Položky"}},tableForm:{search:"Vyhladať",reset:"Resetovať",submit:"Odoslať",collapsed:"Rozbaliť",expand:"Zbaliť",inputPlaceholder:"Prosím, zadajte",selectPlaceholder:"Prosím, vyberte"},alert:{clear:"Vyčistiť",selected:"Vybraný",item:"Položka"},pagination:{total:{range:" ",total:"z",item:"položiek"}},tableToolBar:{leftPin:"Pripnúť vľavo",rightPin:"Pripnúť vpravo",noPin:"Odopnuté",leftFixedTitle:"Fixované na ľavo",rightFixedTitle:"Fixované na pravo",noFixedTitle:"Nefixované",reset:"Resetovať",columnDisplay:"Zobrazenie stĺpcov",columnSetting:"Nastavenia",fullScreen:"Celá obrazovka",exitFullScreen:"Ukončiť celú obrazovku",reload:"Obnoviť",density:"Hustota",densityDefault:"Predvolené",densityLarger:"Väčšie",densityMiddle:"Stredné",densitySmall:"Kompaktné"},stepsForm:{next:"Ďalšie",prev:"Predchádzajúce",submit:"Potvrdiť"},loginForm:{submitText:"Prihlásiť sa"},editableTable:{onlyOneLineEditor:"Upravovať možno iba jeden riadok",action:{save:"Uložiť",cancel:"Zrušiť",delete:"Odstrániť",add:"pridať riadok údajov"}},switch:{open:"otvoriť",close:"zavrieť"}},O1t={moneySymbol:"RSD",form:{lightFilter:{more:"Više",clear:"Očisti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Pronađi",reset:"Resetuj",submit:"Pošalji",collapsed:"Proširi",expand:"Skupi",inputPlaceholder:"Molimo unesite",selectPlaceholder:"Molimo odaberite"},alert:{clear:"Očisti",selected:"Odabrano",item:"Stavka"},pagination:{total:{range:" ",total:"od",item:"stavki"}},tableToolBar:{leftPin:"Zakači levo",rightPin:"Zakači desno",noPin:"Nije zakačeno",leftFixedTitle:"Fiksirano levo",rightFixedTitle:"Fiksirano desno",noFixedTitle:"Nije fiksirano",reset:"Resetuj",columnDisplay:"Prikaz kolona",columnSetting:"Podešavanja",fullScreen:"Pun ekran",exitFullScreen:"Zatvori pun ekran",reload:"Osveži",density:"Veličina",densityDefault:"Podrazumevana",densityLarger:"Veća",densityMiddle:"Srednja",densitySmall:"Kompaktna"},stepsForm:{next:"Dalje",prev:"Nazad",submit:"Gotovo"},loginForm:{submitText:"Prijavi se"},editableTable:{action:{save:"Sačuvaj",cancel:"Poništi",delete:"Obriši",add:"dodajte red podataka"}},switch:{open:"Отворите",close:"Затворите"}},P1t={moneySymbol:"SEK",deleteThisLine:"Radera denna rad",copyThisLine:"Kopiera denna rad",form:{lightFilter:{more:"Fler filter",clear:"Rensa",confirm:"Bekräfta",itemUnit:"objekt"}},tableForm:{search:"Sök",reset:"Återställ",submit:"Skicka",collapsed:"Expandera",expand:"Fäll ihop",inputPlaceholder:"Vänligen ange",selectPlaceholder:"Vänligen välj"},alert:{clear:"Avbryt val",selected:"Vald",item:"objekt"},pagination:{total:{range:"Från",total:"objekt/totalt",item:"objekt"}},tableToolBar:{leftPin:"Fäst till vänster",rightPin:"Fäst till höger",noPin:"Inte fäst",leftFixedTitle:"Fäst till vänster",rightFixedTitle:"Fäst till höger",noFixedTitle:"Inte fäst",reset:"Återställ",columnDisplay:"Kolumnvisning",columnSetting:"Kolumninställningar",fullScreen:"Fullskärm",exitFullScreen:"Avsluta fullskärm",reload:"Ladda om",density:"Täthet",densityDefault:"Normal",densityLarger:"Lös",densityMiddle:"Medium",densitySmall:"Kompakt"},stepsForm:{next:"Nästa steg",prev:"Föregående steg",submit:"Skicka"},loginForm:{submitText:"Logga in"},editableTable:{onlyOneLineEditor:"Endast en rad kan redigeras åt gången",action:{save:"Spara",cancel:"Avbryt",delete:"Radera",add:"Lägg till en rad"}},switch:{open:"Öppna",close:"Stäng"}},M1t={moneySymbol:"฿",deleteThisLine:"ลบบรรทัดนี้",copyThisLine:"คัดลอกบรรทัดนี้",form:{lightFilter:{more:"มากกว่า",clear:"ชัดเจน",confirm:"ยืนยัน",itemUnit:"รายการ"}},tableForm:{search:"สอบถาม",reset:"รีเซ็ต",submit:"ส่ง",collapsed:"ขยาย",expand:"ทรุด",inputPlaceholder:"กรุณาป้อน",selectPlaceholder:"โปรดเลือก"},alert:{clear:"ชัดเจน",selected:"เลือกแล้ว",item:"รายการ"},pagination:{total:{range:" ",total:"ของ",item:"รายการ"}},tableToolBar:{leftPin:"ปักหมุดไปทางซ้าย",rightPin:"ปักหมุดไปทางขวา",noPin:"เลิกตรึงแล้ว",leftFixedTitle:"แก้ไขด้านซ้าย",rightFixedTitle:"แก้ไขด้านขวา",noFixedTitle:"ไม่คงที่",reset:"รีเซ็ต",columnDisplay:"การแสดงคอลัมน์",columnSetting:"การตั้งค่า",fullScreen:"เต็มจอ",exitFullScreen:"ออกจากโหมดเต็มหน้าจอ",reload:"รีเฟรช",density:"ความหนาแน่น",densityDefault:"ค่าเริ่มต้น",densityLarger:"ขนาดใหญ่ขึ้น",densityMiddle:"กลาง",densitySmall:"กะทัดรัด"},stepsForm:{next:"ถัดไป",prev:"ก่อนหน้า",submit:"เสร็จ"},loginForm:{submitText:"เข้าสู่ระบบ"},editableTable:{onlyOneLineEditor:"แก้ไขได้เพียงบรรทัดเดียวเท่านั้น",action:{save:"บันทึก",cancel:"ยกเลิก",delete:"ลบ",add:"เพิ่มแถวของข้อมูล"}},switch:{open:"เปิด",close:"ปิด"}},I1t={moneySymbol:"₺",form:{lightFilter:{more:"Daha Fazla",clear:"Temizle",confirm:"Onayla",itemUnit:"Öğeler"}},tableForm:{search:"Filtrele",reset:"Sıfırla",submit:"Gönder",collapsed:"Daha fazla",expand:"Daha az",inputPlaceholder:"Filtrelemek için bir değer girin",selectPlaceholder:"Filtrelemek için bir değer seçin"},alert:{clear:"Temizle",selected:"Seçili",item:"Öğe"},pagination:{total:{range:" ",total:"Toplam",item:"Öğe"}},tableToolBar:{leftPin:"Sola sabitle",rightPin:"Sağa sabitle",noPin:"Sabitlemeyi kaldır",leftFixedTitle:"Sola sabitlendi",rightFixedTitle:"Sağa sabitlendi",noFixedTitle:"Sabitlenmedi",reset:"Sıfırla",columnDisplay:"Kolon Görünümü",columnSetting:"Ayarlar",fullScreen:"Tam Ekran",exitFullScreen:"Tam Ekrandan Çık",reload:"Yenile",density:"Kalınlık",densityDefault:"Varsayılan",densityLarger:"Büyük",densityMiddle:"Orta",densitySmall:"Küçük"},stepsForm:{next:"Sıradaki",prev:"Önceki",submit:"Gönder"},loginForm:{submitText:"Giriş Yap"},editableTable:{action:{save:"Kaydet",cancel:"Vazgeç",delete:"Sil",add:"foegje in rige gegevens ta"}},switch:{open:"açık",close:"kapatmak"}},$1t={moneySymbol:"₴",deleteThisLine:"Видатили рядок",copyThisLine:"Скопіювати рядок",form:{lightFilter:{more:"Ще",clear:"Очистити",confirm:"Ок",itemUnit:"Позиції"}},tableForm:{search:"Пошук",reset:"Очистити",submit:"Відправити",collapsed:"Розгорнути",expand:"Згорнути",inputPlaceholder:"Введіть значення",selectPlaceholder:"Оберіть значення"},alert:{clear:"Очистити",selected:"Обрано",item:"елементів"},pagination:{total:{range:" ",total:"з",item:"елементів"}},tableToolBar:{leftPin:"Закріпити зліва",rightPin:"Закріпити справа",noPin:"Відкріпити",leftFixedTitle:"Закріплено зліва",rightFixedTitle:"Закріплено справа",noFixedTitle:"Не закріплено",reset:"Скинути",columnDisplay:"Відображення стовпців",columnSetting:"Налаштування",fullScreen:"Повноекранний режим",exitFullScreen:"Вийти з повноекранного режиму",reload:"Оновити",density:"Розмір",densityDefault:"За замовчуванням",densityLarger:"Великий",densityMiddle:"Середній",densitySmall:"Стислий"},stepsForm:{next:"Наступний",prev:"Попередній",submit:"Завершити"},loginForm:{submitText:"Вхіх"},editableTable:{onlyOneLineEditor:"Тільки один рядок може бути редагований одночасно",action:{save:"Зберегти",cancel:"Відмінити",delete:"Видалити",add:"додати рядок"}},switch:{open:"Відкрито",close:"Закрито"}},R1t={moneySymbol:"UZS",form:{lightFilter:{more:"Yana",clear:"Tozalash",confirm:"OK",itemUnit:"Pozitsiyalar"}},tableForm:{search:"Qidirish",reset:"Qayta tiklash",submit:"Yuborish",collapsed:"Yig‘ish",expand:"Kengaytirish",inputPlaceholder:"Qiymatni kiriting",selectPlaceholder:"Qiymatni tanlang"},alert:{clear:"Tozalash",selected:"Tanlangan",item:"elementlar"},pagination:{total:{range:" ",total:"dan",item:"elementlar"}},tableToolBar:{leftPin:"Chapga mahkamlash",rightPin:"O‘ngga mahkamlash",noPin:"Mahkamlashni olib tashlash",leftFixedTitle:"Chapga mahkamlangan",rightFixedTitle:"O‘ngga mahkamlangan",noFixedTitle:"Mahkamlashsiz",reset:"Qayta tiklash",columnDisplay:"Ustunni ko‘rsatish",columnSetting:"Sozlamalar",fullScreen:"To‘liq ekran",exitFullScreen:"To‘liq ekrandan chiqish",reload:"Yangilash",density:"O‘lcham",densityDefault:"Standart",densityLarger:"Katta",densityMiddle:"O‘rtacha",densitySmall:"Kichik"},stepsForm:{next:"Keyingi",prev:"Oldingi",submit:"Tugatish"},loginForm:{submitText:"Kirish"},editableTable:{action:{save:"Saqlash",cancel:"Bekor qilish",delete:"O‘chirish",add:"maʼlumotlar qatorini qo‘shish"}},switch:{open:"Ochish",close:"Yopish"}},A1t={moneySymbol:"₫",form:{lightFilter:{more:"Nhiều hơn",clear:"Trong",confirm:"Xác nhận",itemUnit:"Mục"}},tableForm:{search:"Tìm kiếm",reset:"Làm lại",submit:"Gửi đi",collapsed:"Mở rộng",expand:"Thu gọn",inputPlaceholder:"nhập dữ liệu",selectPlaceholder:"Vui lòng chọn"},alert:{clear:"Xóa",selected:"đã chọn",item:"mục"},pagination:{total:{range:" ",total:"trên",item:"mặt hàng"}},tableToolBar:{leftPin:"Ghim trái",rightPin:"Ghim phải",noPin:"Bỏ ghim",leftFixedTitle:"Cố định trái",rightFixedTitle:"Cố định phải",noFixedTitle:"Chưa cố định",reset:"Làm lại",columnDisplay:"Cột hiển thị",columnSetting:"Cấu hình",fullScreen:"Chế độ toàn màn hình",exitFullScreen:"Thoát chế độ toàn màn hình",reload:"Làm mới",density:"Mật độ hiển thị",densityDefault:"Mặc định",densityLarger:"Mặc định",densityMiddle:"Trung bình",densitySmall:"Chật"},stepsForm:{next:"Sau",prev:"Trước",submit:"Kết thúc"},loginForm:{submitText:"Đăng nhập"},editableTable:{action:{save:"Cứu",cancel:"Hủy",delete:"Xóa",add:"thêm một hàng dữ liệu"}},switch:{open:"mở",close:"đóng"}},N1t={moneySymbol:"¥",deleteThisLine:"删除此项",copyThisLine:"复制此项",form:{lightFilter:{more:"更多筛选",clear:"清除",confirm:"确认",itemUnit:"项"}},tableForm:{search:"查询",reset:"重置",submit:"提交",collapsed:"展开",expand:"收起",inputPlaceholder:"请输入",selectPlaceholder:"请选择"},alert:{clear:"取消选择",selected:"已选择",item:"项"},pagination:{total:{range:"第",total:"条/总共",item:"条"}},tableToolBar:{leftPin:"固定在列首",rightPin:"固定在列尾",noPin:"不固定",leftFixedTitle:"固定在左侧",rightFixedTitle:"固定在右侧",noFixedTitle:"不固定",reset:"重置",columnDisplay:"列展示",columnSetting:"列设置",fullScreen:"全屏",exitFullScreen:"退出全屏",reload:"刷新",density:"密度",densityDefault:"正常",densityLarger:"宽松",densityMiddle:"中等",densitySmall:"紧凑"},stepsForm:{next:"下一步",prev:"上一步",submit:"提交"},loginForm:{submitText:"登录"},editableTable:{onlyOneLineEditor:"只能同时编辑一行",action:{save:"保存",cancel:"取消",delete:"删除",add:"添加一行数据"}},switch:{open:"打开",close:"关闭"}},D1t={moneySymbol:"NT$",deleteThisLine:"刪除此项",copyThisLine:"複製此项",form:{lightFilter:{more:"更多篩選",clear:"清除",confirm:"確認",itemUnit:"項"}},tableForm:{search:"查詢",reset:"重置",submit:"提交",collapsed:"展開",expand:"收起",inputPlaceholder:"請輸入",selectPlaceholder:"請選擇"},alert:{clear:"取消選擇",selected:"已選擇",item:"項"},pagination:{total:{range:"第",total:"條/總共",item:"條"}},tableToolBar:{leftPin:"固定到左邊",rightPin:"固定到右邊",noPin:"不固定",leftFixedTitle:"固定在左側",rightFixedTitle:"固定在右側",noFixedTitle:"不固定",reset:"重置",columnDisplay:"列展示",columnSetting:"列設置",fullScreen:"全屏",exitFullScreen:"退出全屏",reload:"刷新",density:"密度",densityDefault:"正常",densityLarger:"寬鬆",densityMiddle:"中等",densitySmall:"緊湊"},stepsForm:{next:"下一步",prev:"上一步",submit:"完成"},loginForm:{submitText:"登入"},editableTable:{onlyOneLineEditor:"只能同時編輯一行",action:{save:"保存",cancel:"取消",delete:"刪除",add:"新增一行資料"}},switch:{open:"打開",close:"關閉"}};var Ii=function(t,n){return{getMessage:function(i,o){var a=jo(n,i.replace(/\[(\d+)\]/g,".$1").split("."))||"";if(a)return a;var s=t.replace("_","-");if(s==="zh-CN")return o;var l=kv["zh-CN"];return l?l.getMessage(i,o):o},locale:t}},L1t=Ii("mn_MN",S1t),F1t=Ii("ar_EG",o1t),hb=Ii("zh_CN",N1t),j1t=Ii("en_US",u1t),B1t=Ii("en_GB",c1t),H1t=Ii("vi_VN",A1t),z1t=Ii("it_IT",v1t),U1t=Ii("ja_JP",y1t),W1t=Ii("es_ES",d1t),V1t=Ii("ca_ES",a1t),K1t=Ii("ru_RU",T1t),q1t=Ii("sr_RS",O1t),G1t=Ii("ms_MY",C1t),Y1t=Ii("zh_TW",D1t),X1t=Ii("fr_FR",h1t),Q1t=Ii("pt_BR",_1t),Z1t=Ii("ko_KR",b1t),J1t=Ii("id_ID",g1t),evt=Ii("de_DE",l1t),tvt=Ii("fa_IR",f1t),nvt=Ii("tr_TR",I1t),rvt=Ii("pl_PL",w1t),ivt=Ii("hr_",m1t),ovt=Ii("th_TH",M1t),avt=Ii("cs_cz",s1t),svt=Ii("sk_SK",k1t),lvt=Ii("he_IL",p1t),cvt=Ii("uk_UA",$1t),uvt=Ii("uz_UZ",R1t),dvt=Ii("nl_NL",x1t),fvt=Ii("ro_RO",E1t),hvt=Ii("sv_SE",P1t),kv={"mn-MN":L1t,"ar-EG":F1t,"zh-CN":hb,"en-US":j1t,"en-GB":B1t,"vi-VN":H1t,"it-IT":z1t,"ja-JP":U1t,"es-ES":W1t,"ca-ES":V1t,"ru-RU":K1t,"sr-RS":q1t,"ms-MY":G1t,"zh-TW":Y1t,"fr-FR":X1t,"pt-BR":Q1t,"ko-KR":Z1t,"id-ID":J1t,"de-DE":evt,"fa-IR":tvt,"tr-TR":nvt,"pl-PL":rvt,"hr-HR":ivt,"th-TH":ovt,"cs-CZ":avt,"sk-SK":svt,"he-IL":lvt,"uk-UA":cvt,"uz-UZ":uvt,"nl-NL":dvt,"ro-RO":fvt,"sv-SE":hvt},pvt=Object.keys(kv),wxe=function(t){var n=(t||"zh-CN").toLocaleLowerCase();return pvt.find(function(r){var i=r.toLocaleLowerCase();return i.includes(n)})};function bs(e,t){mvt(e)&&(e="100%");var n=gvt(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function c5(e){return Math.min(1,Math.max(0,e))}function mvt(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function gvt(e){return typeof e=="string"&&e.indexOf("%")!==-1}function _xe(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function u5(e){return e<=1?"".concat(Number(e)*100,"%"):e}function I1(e){return e.length===1?"0"+e:String(e)}function vvt(e,t,n){return{r:bs(e,255)*255,g:bs(t,255)*255,b:bs(n,255)*255}}function ere(e,t,n){e=bs(e,255),t=bs(t,255),n=bs(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=0,s=(r+i)/2;if(r===i)a=0,o=0;else{var l=r-i;switch(a=s>.5?l/(2-r-i):l/(r+i),r){case e:o=(t-n)/l+(t<n?6:0);break;case t:o=(n-e)/l+2;break;case n:o=(e-t)/l+4;break}o/=6}return{h:o,s:a,l:s}}function vA(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function yvt(e,t,n){var r,i,o;if(e=bs(e,360),t=bs(t,100),n=bs(n,100),t===0)i=n,o=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=vA(s,a,e+1/3),i=vA(s,a,e),o=vA(s,a,e-1/3)}return{r:r*255,g:i*255,b:o*255}}function tre(e,t,n){e=bs(e,255),t=bs(t,255),n=bs(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=r,s=r-i,l=r===0?0:s/r;if(r===i)o=0;else{switch(r){case e:o=(t-n)/s+(t<n?6:0);break;case t:o=(n-e)/s+2;break;case n:o=(e-t)/s+4;break}o/=6}return{h:o,s:l,v:a}}function bvt(e,t,n){e=bs(e,360)*6,t=bs(t,100),n=bs(n,100);var r=Math.floor(e),i=e-r,o=n*(1-t),a=n*(1-i*t),s=n*(1-(1-i)*t),l=r%6,c=[n,a,o,o,s,n][l],u=[s,n,n,a,o,o][l],d=[o,o,s,n,n,a][l];return{r:c*255,g:u*255,b:d*255}}function nre(e,t,n,r){var i=[I1(Math.round(e).toString(16)),I1(Math.round(t).toString(16)),I1(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 Svt(e,t,n,r,i){var o=[I1(Math.round(e).toString(16)),I1(Math.round(t).toString(16)),I1(Math.round(n).toString(16)),I1(Cvt(r))];return i&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function Cvt(e){return Math.round(parseFloat(e)*255).toString(16)}function rre(e){return uc(e)/255}function uc(e){return parseInt(e,16)}function xvt(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var kj={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 wvt(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;return typeof e=="string"&&(e=Tvt(e)),typeof e=="object"&&(bh(e.r)&&bh(e.g)&&bh(e.b)?(t=vvt(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):bh(e.h)&&bh(e.s)&&bh(e.v)?(r=u5(e.s),i=u5(e.v),t=bvt(e.h,r,i),a=!0,s="hsv"):bh(e.h)&&bh(e.s)&&bh(e.l)&&(r=u5(e.s),o=u5(e.l),t=yvt(e.h,r,o),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=_xe(n),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var _vt="[-\\+]?\\d+%?",Evt="[-\\+]?\\d*\\.\\d+%?",Lm="(?:".concat(Evt,")|(?:").concat(_vt,")"),yA="[\\s|\\(]+(".concat(Lm,")[,|\\s]+(").concat(Lm,")[,|\\s]+(").concat(Lm,")\\s*\\)?"),bA="[\\s|\\(]+(".concat(Lm,")[,|\\s]+(").concat(Lm,")[,|\\s]+(").concat(Lm,")[,|\\s]+(").concat(Lm,")\\s*\\)?"),rd={CSS_UNIT:new RegExp(Lm),rgb:new RegExp("rgb"+yA),rgba:new RegExp("rgba"+bA),hsl:new RegExp("hsl"+yA),hsla:new RegExp("hsla"+bA),hsv:new RegExp("hsv"+yA),hsva:new RegExp("hsva"+bA),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 Tvt(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(kj[e])e=kj[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=rd.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=rd.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=rd.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=rd.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=rd.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=rd.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=rd.hex8.exec(e),n?{r:uc(n[1]),g:uc(n[2]),b:uc(n[3]),a:rre(n[4]),format:t?"name":"hex8"}:(n=rd.hex6.exec(e),n?{r:uc(n[1]),g:uc(n[2]),b:uc(n[3]),format:t?"name":"hex"}:(n=rd.hex4.exec(e),n?{r:uc(n[1]+n[1]),g:uc(n[2]+n[2]),b:uc(n[3]+n[3]),a:rre(n[4]+n[4]),format:t?"name":"hex8"}:(n=rd.hex3.exec(e),n?{r:uc(n[1]+n[1]),g:uc(n[2]+n[2]),b:uc(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function bh(e){return!!rd.CSS_UNIT.exec(String(e))}var kvt=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=xvt(t)),this.originalInput=t;var i=wvt(t);this.originalInput=t,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 e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,i,o=t.r/255,a=t.g/255,s=t.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=_xe(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=tre(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=tre(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=ere(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=ere(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),nre(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),Svt(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(bs(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(bs(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+nre(this.r,this.g,this.b,!1),n=0,r=Object.entries(kj);n<r.length;n++){var i=r[n],o=i[0],a=i[1];if(t===a)return o}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,i=this.a<1&&this.a>=0,o=!n&&i&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=c5(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=c5(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=c5(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=c5(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),i=new e(t).toRgb(),o=n/100,a={r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a};return new e(a)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),i=360/n,o=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(new e(r));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:i,v:o})),o=(o+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),i=n.a+r.a*(1-n.a);return new e({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})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,i=[this],o=360/t,a=1;a<t;a++)i.push(new e({h:(r+a*o)%360,s:n.s,l:n.l}));return i},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),SA,E_={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",colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff7875",colorInfo:"#1677ff",colorTextBase:"#000",colorBgBase:"#fff",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",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)",motionEaseInQuint:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:4,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,"blue-1":"#e6f4ff","blue-2":"#bae0ff","blue-3":"#91caff","blue-4":"#69b1ff","blue-5":"#4096ff","blue-6":"#1677ff","blue-7":"#0958d9","blue-8":"#003eb3","blue-9":"#002c8c","blue-10":"#001d66","purple-1":"#f9f0ff","purple-2":"#efdbff","purple-3":"#d3adf7","purple-4":"#b37feb","purple-5":"#9254de","purple-6":"#722ed1","purple-7":"#531dab","purple-8":"#391085","purple-9":"#22075e","purple-10":"#120338","cyan-1":"#e6fffb","cyan-2":"#b5f5ec","cyan-3":"#87e8de","cyan-4":"#5cdbd3","cyan-5":"#36cfc9","cyan-6":"#13c2c2","cyan-7":"#08979c","cyan-8":"#006d75","cyan-9":"#00474f","cyan-10":"#002329","green-1":"#f6ffed","green-2":"#d9f7be","green-3":"#b7eb8f","green-4":"#95de64","green-5":"#73d13d","green-6":"#52c41a","green-7":"#389e0d","green-8":"#237804","green-9":"#135200","green-10":"#092b00","magenta-1":"#fff0f6","magenta-2":"#ffd6e7","magenta-3":"#ffadd2","magenta-4":"#ff85c0","magenta-5":"#f759ab","magenta-6":"#eb2f96","magenta-7":"#c41d7f","magenta-8":"#9e1068","magenta-9":"#780650","magenta-10":"#520339","pink-1":"#fff0f6","pink-2":"#ffd6e7","pink-3":"#ffadd2","pink-4":"#ff85c0","pink-5":"#f759ab","pink-6":"#eb2f96","pink-7":"#c41d7f","pink-8":"#9e1068","pink-9":"#780650","pink-10":"#520339","red-1":"#fff1f0","red-2":"#ffccc7","red-3":"#ffa39e","red-4":"#ff7875","red-5":"#ff4d4f","red-6":"#f5222d","red-7":"#cf1322","red-8":"#a8071a","red-9":"#820014","red-10":"#5c0011","orange-1":"#fff7e6","orange-2":"#ffe7ba","orange-3":"#ffd591","orange-4":"#ffc069","orange-5":"#ffa940","orange-6":"#fa8c16","orange-7":"#d46b08","orange-8":"#ad4e00","orange-9":"#873800","orange-10":"#612500","yellow-1":"#feffe6","yellow-2":"#ffffb8","yellow-3":"#fffb8f","yellow-4":"#fff566","yellow-5":"#ffec3d","yellow-6":"#fadb14","yellow-7":"#d4b106","yellow-8":"#ad8b00","yellow-9":"#876800","yellow-10":"#614700","volcano-1":"#fff2e8","volcano-2":"#ffd8bf","volcano-3":"#ffbb96","volcano-4":"#ff9c6e","volcano-5":"#ff7a45","volcano-6":"#fa541c","volcano-7":"#d4380d","volcano-8":"#ad2102","volcano-9":"#871400","volcano-10":"#610b00","geekblue-1":"#f0f5ff","geekblue-2":"#d6e4ff","geekblue-3":"#adc6ff","geekblue-4":"#85a5ff","geekblue-5":"#597ef7","geekblue-6":"#2f54eb","geekblue-7":"#1d39c4","geekblue-8":"#10239e","geekblue-9":"#061178","geekblue-10":"#030852","gold-1":"#fffbe6","gold-2":"#fff1b8","gold-3":"#ffe58f","gold-4":"#ffd666","gold-5":"#ffc53d","gold-6":"#faad14","gold-7":"#d48806","gold-8":"#ad6800","gold-9":"#874d00","gold-10":"#613400","lime-1":"#fcffe6","lime-2":"#f4ffb8","lime-3":"#eaff8f","lime-4":"#d3f261","lime-5":"#bae637","lime-6":"#a0d911","lime-7":"#7cb305","lime-8":"#5b8c00","lime-9":"#3f6600","lime-10":"#254000",colorText:"rgba(0, 0, 0, 0.88)",colorTextSecondary:"rgba(0, 0, 0, 0.65)",colorTextTertiary:"rgba(0, 0, 0, 0.45)",colorTextQuaternary:"rgba(0, 0, 0, 0.25)",colorFill:"rgba(0, 0, 0, 0.15)",colorFillSecondary:"rgba(0, 0, 0, 0.06)",colorFillTertiary:"rgba(0, 0, 0, 0.04)",colorFillQuaternary:"rgba(0, 0, 0, 0.02)",colorBgLayout:"hsl(220,23%,97%)",colorBgContainer:"#ffffff",colorBgElevated:"#ffffff",colorBgSpotlight:"rgba(0, 0, 0, 0.85)",colorBorder:"#d9d9d9",colorBorderSecondary:"#f0f0f0",colorPrimaryBg:"#e6f4ff",colorPrimaryBgHover:"#bae0ff",colorPrimaryBorder:"#91caff",colorPrimaryBorderHover:"#69b1ff",colorPrimaryHover:"#4096ff",colorPrimaryActive:"#0958d9",colorPrimaryTextHover:"#4096ff",colorPrimaryText:"#1677ff",colorPrimaryTextActive:"#0958d9",colorSuccessBg:"#f6ffed",colorSuccessBgHover:"#d9f7be",colorSuccessBorder:"#b7eb8f",colorSuccessBorderHover:"#95de64",colorSuccessHover:"#95de64",colorSuccessActive:"#389e0d",colorSuccessTextHover:"#73d13d",colorSuccessText:"#52c41a",colorSuccessTextActive:"#389e0d",colorErrorBg:"#fff2f0",colorErrorBgHover:"#fff1f0",colorErrorBorder:"#ffccc7",colorErrorBorderHover:"#ffa39e",colorErrorHover:"#ffa39e",colorErrorActive:"#d9363e",colorErrorTextHover:"#ff7875",colorErrorText:"#ff4d4f",colorErrorTextActive:"#d9363e",colorWarningBg:"#fffbe6",colorWarningBgHover:"#fff1b8",colorWarningBorder:"#ffe58f",colorWarningBorderHover:"#ffd666",colorWarningHover:"#ffd666",colorWarningActive:"#d48806",colorWarningTextHover:"#ffc53d",colorWarningText:"#faad14",colorWarningTextActive:"#d48806",colorInfoBg:"#e6f4ff",colorInfoBgHover:"#bae0ff",colorInfoBorder:"#91caff",colorInfoBorderHover:"#69b1ff",colorInfoHover:"#69b1ff",colorInfoActive:"#0958d9",colorInfoTextHover:"#4096ff",colorInfoText:"#1677ff",colorInfoTextActive:"#0958d9",colorBgMask:"rgba(0, 0, 0, 0.45)",colorWhite:"#fff",sizeXXL:48,sizeXL:32,sizeLG:24,sizeMD:20,sizeMS:16,size:16,sizeSM:12,sizeXS:8,sizeXXS:4,controlHeightSM:24,controlHeightXS:16,controlHeightLG:40,motionDurationFast:"0.1s",motionDurationMid:"0.2s",motionDurationSlow:"0.3s",fontSizes:[12,14,16,20,24,30,38,46,56,68],lineHeights:[1.6666666666666667,1.5714285714285714,1.5,1.4,1.3333333333333333,1.2666666666666666,1.2105263157894737,1.173913043478261,1.1428571428571428,1.1176470588235294],lineWidthBold:2,borderRadiusXS:1,borderRadiusSM:4,borderRadiusLG:8,borderRadiusOuter:4,colorLink:"#1677ff",colorLinkHover:"#69b1ff",colorLinkActive:"#0958d9",colorFillContent:"rgba(0, 0, 0, 0.06)",colorFillContentHover:"rgba(0, 0, 0, 0.15)",colorFillAlter:"rgba(0, 0, 0, 0.02)",colorBgContainerDisabled:"rgba(0, 0, 0, 0.04)",colorBorderBg:"#ffffff",colorSplit:"rgba(5, 5, 5, 0.06)",colorTextPlaceholder:"rgba(0, 0, 0, 0.25)",colorTextDisabled:"rgba(0, 0, 0, 0.25)",colorTextHeading:"rgba(0, 0, 0, 0.88)",colorTextLabel:"rgba(0, 0, 0, 0.65)",colorTextDescription:"rgba(0, 0, 0, 0.45)",colorTextLightSolid:"#fff",colorHighlight:"#ff7875",colorBgTextHover:"rgba(0, 0, 0, 0.06)",colorBgTextActive:"rgba(0, 0, 0, 0.15)",colorIcon:"rgba(0, 0, 0, 0.45)",colorIconHover:"rgba(0, 0, 0, 0.88)",colorErrorOutline:"rgba(255, 38, 5, 0.06)",colorWarningOutline:"rgba(255, 215, 5, 0.1)",fontSizeSM:12,fontSizeLG:16,fontSizeXL:20,fontSizeHeading1:38,fontSizeHeading2:30,fontSizeHeading3:24,fontSizeHeading4:20,fontSizeHeading5:16,fontSizeIcon:12,lineHeight:1.5714285714285714,lineHeightLG:1.5,lineHeightSM:1.6666666666666667,lineHeightHeading1:1.2105263157894737,lineHeightHeading2:1.2666666666666666,lineHeightHeading3:1.3333333333333333,lineHeightHeading4:1.4,lineHeightHeading5:1.5,controlOutlineWidth:2,controlInteractiveSize:16,controlItemBgHover:"rgba(0, 0, 0, 0.04)",controlItemBgActive:"#e6f4ff",controlItemBgActiveHover:"#bae0ff",controlItemBgActiveDisabled:"rgba(0, 0, 0, 0.15)",controlTmpOutline:"rgba(0, 0, 0, 0.02)",controlOutline:"rgba(5, 145, 255, 0.1)",fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:4,paddingXS:8,paddingSM:12,padding:16,paddingMD:20,paddingLG:24,paddingXL:32,paddingContentHorizontalLG:24,paddingContentVerticalLG:16,paddingContentHorizontal:16,paddingContentVertical:12,paddingContentHorizontalSM:16,paddingContentVerticalSM:8,marginXXS:4,marginXS:8,marginSM:12,margin:16,marginMD:20,marginLG:24,marginXL:32,marginXXL:48,boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.03),0 1px 6px -1px rgba(0, 0, 0, 0.02),0 2px 4px 0 rgba(0, 0, 0, 0.02)",boxShadowSecondary:"0 6px 16px 0 rgba(0, 0, 0, 0.08),0 3px 6px -4px rgba(0, 0, 0, 0.12),0 9px 28px 8px rgba(0, 0, 0, 0.05)",screenXS:480,screenXSMin:480,screenXSMax:479,screenSM:576,screenSMMin:576,screenSMMax:575,screenMD:768,screenMDMin:768,screenMDMax:767,screenLG:992,screenLGMin:992,screenLGMax:991,screenXL:1200,screenXLMin:1200,screenXLMax:1199,screenXXL:1600,screenXXLMin:1600,screenXXLMax:1599,boxShadowPopoverArrow:"3px 3px 7px rgba(0, 0, 0, 0.1)",boxShadowCard:"0 1px 2px -2px rgba(0, 0, 0, 0.16),0 3px 6px 0 rgba(0, 0, 0, 0.12),0 5px 12px 4px rgba(0, 0, 0, 0.09)",boxShadowDrawerRight:"-6px 0 16px 0 rgba(0, 0, 0, 0.08),-3px 0 6px -4px rgba(0, 0, 0, 0.12),-9px 0 28px 8px rgba(0, 0, 0, 0.05)",boxShadowDrawerLeft:"6px 0 16px 0 rgba(0, 0, 0, 0.08),3px 0 6px -4px rgba(0, 0, 0, 0.12),9px 0 28px 8px rgba(0, 0, 0, 0.05)",boxShadowDrawerUp:"0 6px 16px 0 rgba(0, 0, 0, 0.08),0 3px 6px -4px rgba(0, 0, 0, 0.12),0 9px 28px 8px rgba(0, 0, 0, 0.05)",boxShadowDrawerDown:"0 -6px 16px 0 rgba(0, 0, 0, 0.08),0 -3px 6px -4px rgba(0, 0, 0, 0.12),0 -9px 28px 8px rgba(0, 0, 0, 0.05)",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)",_tokenKey:"19w80ff",_hashId:"css-dev-only-do-not-override-i2zu9q"},Exe=function(t){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,r=3735928559^n,i=1103547991^n,o=0,a;o<t.length;o++)a=t.charCodeAt(o),r=Math.imul(r^a,2654435761),i=Math.imul(i^a,1597334677);return r=Math.imul(r^r>>>16,2246822507)^Math.imul(i^i>>>13,3266489909),i=Math.imul(i^i>>>16,2246822507)^Math.imul(r^r>>>13,3266489909),4294967296*(2097151&i)+(r>>>0)},pV=vv(function(e){return e}),Txe={theme:pV,token:X(X({},E_),ol==null||(SA=ol.defaultAlgorithm)===null||SA===void 0?void 0:SA.call(ol,ol==null?void 0:ol.defaultSeed)),hashId:"pro-".concat(Exe(JSON.stringify(E_)))},Ovt=function(){return Txe};const Pvt=Object.freeze(Object.defineProperty({__proto__:null,defaultToken:E_,emptyTheme:pV,hashCode:Exe,token:Txe,useToken:Ovt},Symbol.toStringTag,{value:"Module"}));var dc=function(t,n){return new kvt(t).setAlpha(n).toRgbString()},Mvt=function(){return typeof ol>"u"||!ol?Pvt:ol},qf=Mvt(),H8=qf.useToken,CA=function(t){return{boxSizing:"border-box",margin:0,padding:0,color:t.colorText,fontSize:t.fontSize,lineHeight:t.lineHeight,listStyle:"none"}};function no(e,t){var n,r=f.useContext(Od),i=r.token,o=i===void 0?{}:i,a=f.useContext(Od),s=a.hashed,l=H8(),c=l.token,u=l.hashId,d=f.useContext(Od),h=d.theme,p=f.useContext(ar.ConfigContext),m=p.getPrefixCls,v=p.csp;return o.layout||(o=X({},c)),o.proComponentsCls=(n=o.proComponentsCls)!==null&&n!==void 0?n:".".concat(m("pro")),o.antCls=".".concat(m()),{wrapSSR:s_({theme:h,token:o,path:[e],nonce:v==null?void 0:v.nonce,layer:{name:"antd-pro",dependencies:["antd"]}},function(){return t(o)}),hashId:s?u:""}}var Ivt=function(t,n){var r,i,o,a,s,l=X({},t);return X(X({bgLayout:"linear-gradient(".concat(n.colorBgContainer,", ").concat(n.colorBgLayout," 28%)"),colorTextAppListIcon:n.colorTextSecondary,appListIconHoverBgColor:l==null||(r=l.sider)===null||r===void 0?void 0:r.colorBgMenuItemSelected,colorBgAppListIconHover:dc(n.colorTextBase,.04),colorTextAppListIconHover:n.colorTextBase},l),{},{header:X({colorBgHeader:dc(n.colorBgElevated,.6),colorBgScrollHeader:dc(n.colorBgElevated,.8),colorHeaderTitle:n.colorText,colorBgMenuItemHover:dc(n.colorTextBase,.03),colorBgMenuItemSelected:"transparent",colorBgMenuElevated:(l==null||(i=l.header)===null||i===void 0?void 0:i.colorBgHeader)!=="rgba(255, 255, 255, 0.6)"?(o=l.header)===null||o===void 0?void 0:o.colorBgHeader:n.colorBgElevated,colorTextMenuSelected:dc(n.colorTextBase,.95),colorBgRightActionsItemHover:dc(n.colorTextBase,.03),colorTextRightActionsItem:n.colorTextTertiary,heightLayoutHeader:56,colorTextMenu:n.colorTextSecondary,colorTextMenuSecondary:n.colorTextTertiary,colorTextMenuTitle:n.colorText,colorTextMenuActive:n.colorText},l.header),sider:X({paddingInlineLayoutMenu:8,paddingBlockLayoutMenu:0,colorBgCollapsedButton:n.colorBgElevated,colorTextCollapsedButtonHover:n.colorTextSecondary,colorTextCollapsedButton:dc(n.colorTextBase,.25),colorMenuBackground:"transparent",colorMenuItemDivider:dc(n.colorTextBase,.06),colorBgMenuItemHover:dc(n.colorTextBase,.03),colorBgMenuItemSelected:dc(n.colorTextBase,.04),colorTextMenuItemHover:n.colorText,colorTextMenuSelected:dc(n.colorTextBase,.95),colorTextMenuActive:n.colorText,colorTextMenu:n.colorTextSecondary,colorTextMenuSecondary:n.colorTextTertiary,colorTextMenuTitle:n.colorText,colorTextSubMenuSelected:dc(n.colorTextBase,.95)},l.sider),pageContainer:X({colorBgPageContainer:"transparent",paddingInlinePageContainerContent:((a=l.pageContainer)===null||a===void 0?void 0:a.marginInlinePageContainerContent)||40,paddingBlockPageContainerContent:((s=l.pageContainer)===null||s===void 0?void 0:s.marginBlockPageContainerContent)||32,colorBgPageContainerFixed:n.colorBgElevated},l.pageContainer)})},$vt=function(){for(var t={},n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(var o=r.length,a,s=0;s<o;s+=1)for(a in r[s])r[s].hasOwnProperty(a)&&(ln(t[a])==="object"&&ln(r[s][a])==="object"&&t[a]!==void 0&&t[a]!==null&&!Array.isArray(t[a])&&!Array.isArray(r[s][a])?t[a]=X(X({},t[a]),r[s][a]):t[a]=r[s][a]);return t},Rvt={exports:{}};(function(e,t){(function(n,r){e.exports=r(z0e)})(vo,function(n){function r(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var i=r(n),o={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(a,s){return s==="W"?a+"周":a+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(a,s){var l=100*a+s;return l<600?"凌晨":l<900?"早上":l<1100?"上午":l<1300?"中午":l<1800?"下午":"晚上"}};return i.default.locale(o,null,!0),o})})(Rvt);var Avt=["locale","getPrefixCls"],Nvt=["locale","theme"],Dvt=function(t){var n={};if(Object.keys(t||{}).forEach(function(r){t[r]!==void 0&&(n[r]=t[r])}),!(Object.keys(n).length<1))return n},pb=function(){var t,n;return!(typeof process<"u"&&(((t="production")===null||t===void 0?void 0:t.toUpperCase())==="TEST"||((n="production")===null||n===void 0?void 0:n.toUpperCase())==="DEV"))},sg=ge.createContext({intl:X(X({},hb),{},{locale:"default"}),valueTypeMap:{},theme:pV,hashed:!0,dark:!1,token:E_});sg.Consumer;var Lvt=function(){var t=fV(),n=t.cache;return f.useEffect(function(){return function(){n.clear()}},[]),null},Fvt=function(t){var n,r=t.children,i=t.dark,o=t.valueTypeMap,a=t.autoClearCache,s=a===void 0?!1:a,l=t.token,c=t.prefixCls,u=t.intl,d=f.useContext(ar.ConfigContext),h=d.locale,p=d.getPrefixCls,m=tn(d,Avt),v=(n=qf.useToken)===null||n===void 0?void 0:n.call(qf),y=f.useContext(sg),S=c?".".concat(c):".".concat(p(),"-pro"),b="."+p(),C="".concat(S),_=f.useMemo(function(){return Ivt(l||{},v.token||E_)},[l,v.token]),T=f.useMemo(function(){var z,W=h==null?void 0:h.locale,q=wxe(W),Z=u??(W&&((z=y.intl)===null||z===void 0?void 0:z.locale)==="default"?kv[q]:y.intl||kv[q]);return X(X({},y),{},{dark:i??y.dark,token:$vt(y.token,v.token,{proComponentsCls:S,antCls:b,themeId:v.theme.id,layout:_}),intl:Z||hb})},[h==null?void 0:h.locale,y,i,v.token,v.theme.id,S,b,_,u]),x=X(X({},T.token||{}),{},{proComponentsCls:S}),E=fU(v.theme,[v.token,x??{}],{salt:C,override:x}),k=Le(E,2),M=k[0],P=k[1],D=f.useMemo(function(){return!(t.hashed===!1||y.hashed===!1)},[y.hashed,t.hashed]),R=f.useMemo(function(){return t.hashed===!1||y.hashed===!1||pb()===!1?"":v.hashId?v.hashId:P},[P,y.hashed,t.hashed]);f.useEffect(function(){Fr.locale((h==null?void 0:h.locale)||"zh-cn")},[h==null?void 0:h.locale]);var A=f.useMemo(function(){return X(X({},m.theme),{},{hashId:R,hashed:D&&pb()})},[m.theme,R,D,pb()]),H=f.useMemo(function(){return X(X({},T),{},{valueTypeMap:o||(T==null?void 0:T.valueTypeMap),token:M,theme:v.theme,hashed:D,hashId:R})},[T,o,M,v.theme,D,R]),F=f.useMemo(function(){return U.jsx(ar,X(X({},m),{},{theme:A,children:U.jsx(sg.Provider,{value:H,children:U.jsxs(U.Fragment,{children:[s&&U.jsx(Lvt,{}),r]})})}))},[m,A,H,s,r]);return s?U.jsx(i1t,{value:{provider:function(){return new Map}},children:F}):F},$P=function(t){var n=t.needDeps,r=t.dark,i=t.token,o=f.useContext(sg),a=f.useContext(ar.ConfigContext),s=a.locale,l=a.theme,c=tn(a,Nvt),u=n&&o.hashId!==void 0&&Object.keys(t).sort().join("-")==="children-needDeps";if(u)return U.jsx(U.Fragment,{children:t.children});var d=function(){var m=r??o.dark;return m&&!Array.isArray(l==null?void 0:l.algorithm)?[qf.darkAlgorithm,l==null?void 0:l.algorithm].filter(Boolean):m&&Array.isArray(l==null?void 0:l.algorithm)?[qf.darkAlgorithm].concat(pt((l==null?void 0:l.algorithm)||[])).filter(Boolean):l==null?void 0:l.algorithm},h=X(X({},c),{},{locale:s||Rgt,theme:Dvt(X(X({},l),{},{algorithm:d()}))});return U.jsx(ar,X(X({},h),{},{children:U.jsx(Fvt,X(X({},t),{},{token:i}))}))};function Wo(){var e=f.useContext(ar.ConfigContext),t=e.locale,n=f.useContext(sg),r=n.intl;return r&&r.locale!=="default"?r||hb:t!=null&&t.locale&&kv[wxe(t.locale)]||hb}sg.displayName="ProProvider";var Od=sg,jvt=function(t){return ae({},t.componentCls,{display:"flex",justifyContent:"space-between",paddingBlock:8,paddingInlineStart:8,paddingInlineEnd:8,borderBlockStart:"1px solid ".concat(t.colorSplit)})};function Bvt(e){return no("DropdownFooter",function(t){var n=X(X({},t),{},{componentCls:".".concat(e)});return[jvt(n)]})}var Hvt=function(t){var n=Wo(),r=t.onClear,i=t.onConfirm,o=t.disabled,a=t.footerRender,s=f.useContext(ar.ConfigContext),l=s.getPrefixCls,c=l("pro-core-dropdown-footer"),u=Bvt(c),d=u.wrapSSR,h=u.hashId,p=[U.jsx(pr,{style:{visibility:r?"visible":"hidden"},type:"link",size:"small",disabled:o,onClick:function(y){r&&r(y),y.stopPropagation()},children:n.getMessage("form.lightFilter.clear","清除")},"clear"),U.jsx(pr,{"data-type":"confirm",type:"primary",size:"small",onClick:i,disabled:o,children:n.getMessage("form.lightFilter.confirm","确认")},"confirm")];if(a===!1||(a==null?void 0:a(i,r))===!1)return null;var m=(a==null?void 0:a(i,r))||p;return d(U.jsx("div",{className:Re(c,h),onClick:function(y){return y.target.getAttribute("data-type")!=="confirm"&&y.stopPropagation()},children:m}))},zvt=function(e){Ys(n,e);var t=bl(n);function n(){var r;hi(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),ae(On(r),"state",{hasError:!1,errorInfo:""}),r}return pi(n,[{key:"componentDidCatch",value:function(i,o){console.log(i,o)}},{key:"render",value:function(){return this.state.hasError?U.jsx(jE,{status:"error",title:"Something went wrong.",extra:this.state.errorInfo}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(i){return{hasError:!0,errorInfo:i.message}}}]),n}(ge.Component),Uvt=function(t){return ae({},t.componentCls,ae(ae(ae(ae(ae(ae(ae(ae({display:"inline-flex",gap:t.marginXXS,alignItems:"center",height:"30px",paddingBlock:0,paddingInline:8,fontSize:t.fontSize,lineHeight:"30px",borderRadius:"2px",cursor:"pointer","&:hover":{backgroundColor:t.colorBgTextHover},"&-active":ae({paddingBlock:0,paddingInline:8,backgroundColor:t.colorBgTextHover},"&".concat(t.componentCls,"-allow-clear:hover:not(").concat(t.componentCls,"-disabled)"),ae(ae({},"".concat(t.componentCls,"-arrow"),{display:"none"}),"".concat(t.componentCls,"-close"),{display:"inline-flex"}))},"".concat(t.antCls,"-select"),ae({},"".concat(t.antCls,"-select-clear"),{borderRadius:"50%"})),"".concat(t.antCls,"-picker"),ae({},"".concat(t.antCls,"-picker-clear"),{borderRadius:"50%"})),"&-icon",ae(ae({color:t.colorIcon,transition:"color 0.3s",fontSize:12,verticalAlign:"middle"},"&".concat(t.componentCls,"-close"),{display:"none",fontSize:12,alignItems:"center",justifyContent:"center",color:t.colorTextPlaceholder,borderRadius:"50%"}),"&:hover",{color:t.colorIconHover})),"&-disabled",ae({color:t.colorTextPlaceholder,cursor:"not-allowed"},"".concat(t.componentCls,"-icon"),{color:t.colorTextPlaceholder})),"&-small",ae(ae(ae({height:"24px",paddingBlock:0,paddingInline:4,fontSize:t.fontSizeSM,lineHeight:"24px"},"&".concat(t.componentCls,"-active"),{paddingBlock:0,paddingInline:8}),"".concat(t.componentCls,"-icon"),{paddingBlock:0,paddingInline:0}),"".concat(t.componentCls,"-close"),{marginBlockStart:"-2px",paddingBlock:4,paddingInline:4,fontSize:"6px"})),"&-bordered",{height:"32px",paddingBlock:0,paddingInline:8,border:"".concat(t.lineWidth,"px solid ").concat(t.colorBorder),borderRadius:"@border-radius-base"}),"&-bordered&-small",{height:"24px",paddingBlock:0,paddingInline:8}),"&-bordered&-active",{backgroundColor:t.colorBgContainer}))};function Wvt(e){return no("FieldLabel",function(t){var n=X(X({},t),{},{componentCls:".".concat(e)});return[Uvt(n)]})}var Vvt=function(t,n){var r,i,o,a=t.label,s=t.onClear,l=t.value,c=t.disabled,u=t.onLabelClick,d=t.ellipsis,h=t.placeholder,p=t.className,m=t.formatter,v=t.bordered,y=t.style,S=t.downIcon,b=t.allowClear,C=b===void 0?!0:b,_=t.valueMaxLength,T=_===void 0?41:_,x=(ar==null||(r=ar.useConfig)===null||r===void 0?void 0:r.call(ar))||{componentSize:"middle"},E=x.componentSize,k=E,M=f.useContext(ar.ConfigContext),P=M.getPrefixCls,D=P("pro-core-field-label"),R=Wvt(D),A=R.wrapSSR,H=R.hashId,F=Wo(),z=f.useRef(null),W=f.useRef(null);f.useImperativeHandle(n,function(){return{labelRef:W,clearRef:z}});var q=function(V){return V.every(function(G){return typeof G=="string"})?V.join(","):V.map(function(G,ie){var ce=ie===V.length-1?"":",";return typeof G=="string"?U.jsxs("span",{children:[G,ce]},ie):U.jsxs("span",{style:{display:"flex"},children:[G,ce]},ie)})},Z=function(V){return m?m(V):Array.isArray(V)?q(V):V},N=function(V,G){if(G!=null&&G!==""&&(!Array.isArray(G)||G.length)){var ie,ce,fe=V?U.jsxs("span",{onClick:function(){u==null||u()},className:"".concat(D,"-text"),children:[V,": "]}):"",ee=Z(G);if(!d)return U.jsxs("span",{style:{display:"inline-flex",alignItems:"center"},children:[fe,Z(G)]});var ne=function(){var me=Array.isArray(G)&&G.length>1,pe=F.getMessage("form.lightFilter.itemUnit","项");return typeof ee=="string"&&ee.length>T&&me?"...".concat(G.length).concat(pe):""},ue=ne();return U.jsxs("span",{title:typeof ee=="string"?ee:void 0,style:{display:"inline-flex",alignItems:"center"},children:[fe,U.jsx("span",{style:{paddingInlineStart:4,display:"flex"},children:typeof ee=="string"?ee==null||(ie=ee.toString())===null||ie===void 0||(ce=ie.slice)===null||ce===void 0?void 0:ce.call(ie,0,T):ee}),ue]})}return V||h};return A(U.jsxs("span",{className:Re(D,H,"".concat(D,"-").concat((i=(o=t.size)!==null&&o!==void 0?o:k)!==null&&i!==void 0?i:"middle"),ae(ae(ae(ae({},"".concat(D,"-active"),(Array.isArray(l)?l.length>0:!!l)||l===0),"".concat(D,"-disabled"),c),"".concat(D,"-bordered"),v),"".concat(D,"-allow-clear"),C),p),style:y,ref:W,onClick:function(){var V;t==null||(V=t.onClick)===null||V===void 0||V.call(t)},children:[N(a,l),(l||l===0)&&C&&U.jsx(eh,{role:"button",title:F.getMessage("form.lightFilter.clear","清除"),className:Re("".concat(D,"-icon"),H,"".concat(D,"-close")),onClick:function(V){c||s==null||s(),V.stopPropagation()},ref:z}),S!==!1?S??U.jsx(_E,{className:Re("".concat(D,"-icon"),H,"".concat(D,"-arrow"))}):null]}))},$p=ge.forwardRef(Vvt),pu=function(t){var n={};if(Object.keys(t||{}).forEach(function(r){t[r]!==void 0&&(n[r]=t[r])}),!(Object.keys(n).length<1))return n},Kvt=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,ire=function(t){return t==="*"||t==="x"||t==="X"},ore=function(t){var n=parseInt(t,10);return isNaN(n)?t:n},qvt=function(t,n){return ln(t)!==ln(n)?[String(t),String(n)]:[t,n]},Gvt=function(t,n){if(ire(t)||ire(n))return 0;var r=qvt(ore(t),ore(n)),i=Le(r,2),o=i[0],a=i[1];return o>a?1:o<a?-1:0},Yvt=function(t,n){for(var r=0;r<Math.max(t.length,n.length);r++){var i=Gvt(t[r]||"0",n[r]||"0");if(i!==0)return i}return 0},are=function(t){var n,r=t.match(Kvt);return r==null||(n=r.shift)===null||n===void 0||n.call(r),r},UE=function(t,n){var r=are(t),i=are(n),o=r.pop(),a=i.pop(),s=Yvt(r,i);return s!==0?s:o||a?o?-1:1:0},kxe=function(){var t;return typeof process>"u"?fp:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||fp},RP=function(t,n){var r=UE(kxe(),"4.23.0")>-1?{open:t,onOpenChange:n}:{visible:t,onVisibleChange:n};return pu(r)},Xvt=function(t){return ae(ae(ae({},"".concat(t.componentCls,"-label"),{cursor:"pointer"}),"".concat(t.componentCls,"-overlay"),{minWidth:"200px",marginBlockStart:"4px"}),"".concat(t.componentCls,"-content"),{paddingBlock:16,paddingInline:16})};function Qvt(e){return no("FilterDropdown",function(t){var n=X(X({},t),{},{componentCls:".".concat(e)});return[Xvt(n)]})}var Zvt=function(t){var n=t.children,r=t.label,i=t.footer,o=t.open,a=t.onOpenChange,s=t.disabled,l=t.onVisibleChange,c=t.visible,u=t.footerRender,d=t.placement,h=f.useContext(ar.ConfigContext),p=h.getPrefixCls,m=p("pro-core-field-dropdown"),v=Qvt(m),y=v.wrapSSR,S=v.hashId,b=RP(o||c||!1,a||l),C=f.useRef(null);return y(U.jsx(Ou,X(X({placement:d,trigger:["click"]},b),{},{overlayInnerStyle:{padding:0},content:U.jsxs("div",{ref:C,className:Re("".concat(m,"-overlay"),ae(ae({},"".concat(m,"-overlay-").concat(d),d),"hashId",S)),children:[U.jsx(ar,{getPopupContainer:function(){return C.current||document.body},children:U.jsx("div",{className:"".concat(m,"-content ").concat(S).trim(),children:n})}),i&&U.jsx(Hvt,X({disabled:s,footerRender:u},i))]}),children:U.jsx("span",{className:"".concat(m,"-label ").concat(S).trim(),children:r})})))},Jvt=function(t){return ae({},t.componentCls,{display:"inline-flex",alignItems:"center",maxWidth:"100%","&-icon":{display:"block",marginInlineStart:"4px",cursor:"pointer","&:hover":{color:t.colorPrimary}},"&-title":{display:"inline-flex",flex:"1"},"&-subtitle ":{marginInlineStart:8,color:t.colorTextSecondary,fontWeight:"normal",fontSize:t.fontSize,whiteSpace:"nowrap"},"&-title-ellipsis":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"keep-all"}})};function e0t(e){return no("LabelIconTip",function(t){var n=X(X({},t),{},{componentCls:".".concat(e)});return[Jvt(n)]})}var t0t=ge.memo(function(e){var t=e.label,n=e.tooltip,r=e.ellipsis,i=e.subTitle,o=f.useContext(ar.ConfigContext),a=o.getPrefixCls,s=a("pro-core-label-tip"),l=e0t(s),c=l.wrapSSR,u=l.hashId;if(!n&&!i)return U.jsx(U.Fragment,{children:t});var d=typeof n=="string"||ge.isValidElement(n)?{title:n}:n,h=(d==null?void 0:d.icon)||U.jsx(Fst,{});return c(U.jsxs("div",{className:Re(s,u),onMouseDown:function(m){return m.stopPropagation()},onMouseLeave:function(m){return m.stopPropagation()},onMouseMove:function(m){return m.stopPropagation()},children:[U.jsx("div",{className:Re("".concat(s,"-title"),u,ae({},"".concat(s,"-title-ellipsis"),r)),children:t}),i&&U.jsx("div",{className:"".concat(s,"-subtitle ").concat(u).trim(),children:i}),n&&U.jsx(ea,X(X({},d),{},{children:U.jsx("span",{className:"".concat(s,"-icon ").concat(u).trim(),children:h})}))]}))}),Oxe=ge.createContext({}),Pxe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(vo,function(){var n="month",r="quarter";return function(i,o){var a=o.prototype;a.quarter=function(c){return this.$utils().u(c)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(c-1))};var s=a.add;a.add=function(c,u){return c=Number(c),this.$utils().p(u)===r?this.add(3*c,n):s.bind(this)(c,u)};var l=a.startOf;a.startOf=function(c,u){var d=this.$utils(),h=!!d.u(u)||u;if(d.p(c)===r){var p=this.quarter()-1;return h?this.month(3*p).startOf(n).startOf("day"):this.month(3*p+2).endOf(n).endOf("day")}return l.bind(this)(c,u)}}})})(Pxe);var n0t=Pxe.exports;const r0t=vi(n0t);var Ov=function(t){return t==null};Fr.extend(r0t);var Mxe={time:"HH:mm:ss",timeRange:"HH:mm:ss",date:"YYYY-MM-DD",dateWeek:"YYYY-wo",dateMonth:"YYYY-MM",dateQuarter:"YYYY-[Q]Q",dateYear:"YYYY",dateRange:"YYYY-MM-DD",dateTime:"YYYY-MM-DD HH:mm:ss",dateTimeRange:"YYYY-MM-DD HH:mm:ss"};function sre(e){return Object.prototype.toString.call(e)==="[object Object]"}function i0t(e){if(sre(e)===!1)return!1;var t=e.constructor;if(t===void 0)return!0;var n=t.prototype;return!(sre(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)}var Oj=function(t){return!!(t!=null&&t._isAMomentObject)},lre=function(t,n,r){if(!n)return t;if(Fr.isDayjs(t)||Oj(t)){if(n==="number")return t.valueOf();if(n==="string")return t.format(Mxe[r]||"YYYY-MM-DD HH:mm:ss");if(typeof n=="string"&&n!=="string")return t.format(n);if(typeof n=="function")return n(t,r)}return t},o0t=function e(t,n,r,i,o){var a={};return typeof window>"u"||ln(t)!=="object"||Ov(t)||t instanceof Blob||Array.isArray(t)?t:(Object.keys(t).forEach(function(s){var l=o?[o,s].flat(1):[s],c=jo(r,l)||"text",u="text",d;typeof c=="string"?u=c:c&&(u=c.valueType,d=c.dateFormat);var h=t[s];if(!(Ov(h)&&i)){if(i0t(h)&&!Array.isArray(h)&&!Fr.isDayjs(h)&&!Oj(h)){a[s]=e(h,n,r,i,l);return}if(Array.isArray(h)){a[s]=h.map(function(p,m){return Fr.isDayjs(p)||Oj(p)?lre(p,d||n,u):e(p,n,r,i,[s,"".concat(m)].flat(1))});return}a[s]=lre(h,d||n,u)}}),a)},cre=function(t,n){return typeof n=="function"?n(Fr(t)):Fr(t).format(n)},a0t=function(t,n){var r=Array.isArray(t)?t:[],i=Le(r,2),o=i[0],a=i[1],s,l;Array.isArray(n)?(s=n[0],l=n[1]):ln(n)==="object"&&n.type==="mask"?(s=n.format,l=n.format):(s=n,l=n);var c=o?cre(o,s):"",u=a?cre(a,l):"",d=c&&u?"".concat(c," ~ ").concat(u):"";return d};function iS(e){if(typeof e=="function"){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}return e}function Ixe(e){if(UE(kxe(),"5.6.0")<0)return e;var t={colorGroupTitle:"groupTitleColor",radiusItem:"itemBorderRadius",radiusSubMenuItem:"subMenuItemBorderRadius",colorItemText:"itemColor",colorItemTextHover:"itemHoverColor",colorItemTextHoverHorizontal:"horizontalItemHoverColor",colorItemTextSelected:"itemSelectedColor",colorItemTextSelectedHorizontal:"horizontalItemSelectedColor",colorItemTextDisabled:"itemDisabledColor",colorDangerItemText:"dangerItemColor",colorDangerItemTextHover:"dangerItemHoverColor",colorDangerItemTextSelected:"dangerItemSelectedColor",colorDangerItemBgActive:"dangerItemActiveBg",colorDangerItemBgSelected:"dangerItemSelectedBg",colorItemBg:"itemBg",colorItemBgHover:"itemHoverBg",colorSubItemBg:"subMenuItemBg",colorItemBgActive:"itemActiveBg",colorItemBgSelected:"itemSelectedBg",colorItemBgSelectedHorizontal:"horizontalItemSelectedBg",colorActiveBarWidth:"activeBarWidth",colorActiveBarHeight:"activeBarHeight",colorActiveBarBorderSize:"activeBarBorderWidth"},n=X({},e);return Object.keys(t).forEach(function(r){n[r]!==void 0&&(n[t[r]]=n[r],delete n[r])}),n}var Pd=function(t){var n=f.useRef(null);return n.current=t,f.useCallback(function(){for(var r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(r=n.current)===null||r===void 0?void 0:r.call.apply(r,[n].concat(pt(o)))},[])};function s0t(e,t){var n=Pd(e),r=f.useRef(),i=f.useCallback(function(){r.current&&(clearTimeout(r.current),r.current=null)},[]),o=f.useCallback(Zo(Hr().mark(function a(){var s,l,c,u=arguments;return Hr().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:for(s=u.length,l=new Array(s),c=0;c<s;c++)l[c]=u[c];{h.next=3;break}case 3:return i(),h.abrupt("return",new Promise(function(p){r.current=setTimeout(Zo(Hr().mark(function m(){return Hr().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.t0=p,y.next=3,n.apply(void 0,l);case 3:return y.t1=y.sent,(0,y.t0)(y.t1),y.abrupt("return");case 6:case"end":return y.stop()}},m)})),t)}));case 5:case"end":return h.stop()}},a)})),[n,i,t]);return f.useEffect(function(){return i},[i]),{run:o,cancel:i}}var l0t=function(t){var n=f.useRef(t);return n.current=t,n};function c0t(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100,n=arguments.length>2?arguments[2]:void 0,r=f.useState(e),i=Le(r,2),o=i[0],a=i[1],s=l0t(e);return f.useEffect(function(){var l=setTimeout(function(){a(s.current)},t);return function(){return clearTimeout(l)}},n?[t].concat(pt(n)):void 0),o}function J1(e,t,n,r){if(e===t)return!0;if(e&&t&&ln(e)==="object"&&ln(t)==="object"){if(e.constructor!==t.constructor)return!1;var i,o,a;if(Array.isArray(e)){if(i=e.length,i!=t.length)return!1;for(o=i;o--!==0;)if(!J1(e[o],t[o],n,r))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;var s=Rf(e.entries()),l;try{for(s.s();!(l=s.n()).done;)if(o=l.value,!t.has(o[0]))return!1}catch(m){s.e(m)}finally{s.f()}var c=Rf(e.entries()),u;try{for(c.s();!(u=c.n()).done;)if(o=u.value,!J1(o[1],t.get(o[0]),n,r))return!1}catch(m){c.e(m)}finally{c.f()}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;var d=Rf(e.entries()),h;try{for(d.s();!(h=d.n()).done;)if(o=h.value,!t.has(o[0]))return!1}catch(m){d.e(m)}finally{d.f()}return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(i=e.length,i!=t.length)return!1;for(o=i;o--!==0;)if(e[o]!==t[o])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&e.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&e.toString)return e.toString()===t.toString();if(a=Object.keys(e),i=a.length,i!==Object.keys(t).length)return!1;for(o=i;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[o]))return!1;for(o=i;o--!==0;){var p=a[o];if(!(n!=null&&n.includes(p))&&!(p==="_owner"&&e.$$typeof)&&!J1(e[p],t[p],n,r))return!1}return!0}return e!==e&&t!==t}var u0t=function(t,n,r){return J1(t,n,r)};function $xe(e,t){var n=f.useRef();return u0t(e,n.current,t)||(n.current=e),n.current}function d0t(e,t,n){f.useEffect(e,$xe(t||[],n))}function $l(e,t){return ge.useMemo(e,$xe(t))}var f0t=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,mV=function(){return typeof process<"u",typeof window<"u"&&typeof window.document<"u"&&typeof window.matchMedia<"u"&&!f0t};function h0t(e,t){var n=typeof e.pageName=="string"?e.title:t;f.useEffect(function(){mV()&&n&&(document.title=n)},[e.title,n])}var xA=0;function p0t(e){var t=f.useRef(null),n=f.useState(function(){return e.proFieldKey?e.proFieldKey.toString():(xA+=1,xA.toString())}),r=Le(n,1),i=r[0],o=f.useRef(i),a=function(){var u=Zo(Hr().mark(function d(){var h,p,m,v;return Hr().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return(h=t.current)===null||h===void 0||h.abort(),m=new AbortController,t.current=m,S.next=5,Promise.race([(p=e.request)===null||p===void 0?void 0:p.call(e,e.params,e),new Promise(function(b,C){var _;(_=t.current)===null||_===void 0||(_=_.signal)===null||_===void 0||_.addEventListener("abort",function(){C(new Error("aborted"))})})]);case 5:return v=S.sent,S.abrupt("return",v);case 7:case"end":return S.stop()}},d)}));return function(){return u.apply(this,arguments)}}();f.useEffect(function(){return function(){xA+=1}},[]);var s=hV([o.current,e.params],a,{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),l=s.data,c=s.error;return[l||c]}var m0t=function(t){var n=f.useRef();return f.useEffect(function(){n.current=t}),n.current},g0t=function(t){var n=!1;return(typeof t=="string"&&t.startsWith("date")&&!t.endsWith("Range")||t==="select"||t==="time")&&(n=!0),n};function v0t(e){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(e)}var gV=function(t){if(!t||!t.startsWith("http"))return!1;try{var n=new URL(t);return!!n}catch{return!1}},Rxe=function(){for(var t={},n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(var o=r.length,a,s=0;s<o;s+=1)for(a in r[s])r[s].hasOwnProperty(a)&&(ln(t[a])==="object"&&ln(r[s][a])==="object"&&t[a]!==void 0&&t[a]!==null&&!Array.isArray(t[a])&&!Array.isArray(r[s][a])?t[a]=X(X({},t[a]),r[s][a]):t[a]=r[s][a]);return t},ure=0,dre=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:21;if(typeof window>"u"||!window.crypto)return(ure+=1).toFixed(0);for(var n="",r=crypto.getRandomValues(new Uint8Array(t));t--;){var i=63&r[t];n+=i<36?i.toString(36):i<62?(i-26).toString(36).toUpperCase():i<63?"_":"-"}return n},ok=function(){return typeof window>"u"?dre():window.crypto&&window.crypto.randomUUID&&typeof crypto.randomUUID=="function"?crypto.randomUUID():dre()};Fr.extend(Z0e);var fre=function(t){return!!(t!=null&&t._isAMomentObject)},WE=function e(t,n){return Ov(t)||Fr.isDayjs(t)||fre(t)?fre(t)?Fr(t):t:Array.isArray(t)?t.map(function(r){return e(r,n)}):typeof t=="number"?Fr(t):Fr(t,n)},y0t=["colon","dependencies","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","initialValue","noStyle","label","labelAlign","labelCol","name","preserve","normalize","required","rules","shouldUpdate","trigger","validateFirst","validateStatus","validateTrigger","valuePropName","wrapperCol","hidden","addonBefore","addonAfter","addonWarpStyle"];function b0t(e){var t={};return y0t.forEach(function(n){e[n]!==void 0&&(t[n]=e[n])}),t}var S0t="valueType request plain renderFormItem render text formItemProps valueEnum",C0t="fieldProps isDefaultDom groupProps contentRender submitterProps submitter";function Axe(e){var t="".concat(S0t," ").concat(C0t).split(/[\s\n]+/),n={};return Object.keys(e||{}).forEach(function(r){t.includes(r)||(n[r]=e[r])}),n}function x0t(e){var t=Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase();return t==="string"&&ln(e)==="object"?"object":e===null?"null":e===void 0?"undefined":t}var w0t=function(t){var n=t.color,r=t.children;return U.jsx(Rl,{color:n,text:r})},Rp=function(t){return x0t(t)==="map"?t:new Map(Object.entries(t||{}))},_0t={Success:function(t){var n=t.children;return U.jsx(Rl,{status:"success",text:n})},Error:function(t){var n=t.children;return U.jsx(Rl,{status:"error",text:n})},Default:function(t){var n=t.children;return U.jsx(Rl,{status:"default",text:n})},Processing:function(t){var n=t.children;return U.jsx(Rl,{status:"processing",text:n})},Warning:function(t){var n=t.children;return U.jsx(Rl,{status:"warning",text:n})},success:function(t){var n=t.children;return U.jsx(Rl,{status:"success",text:n})},error:function(t){var n=t.children;return U.jsx(Rl,{status:"error",text:n})},default:function(t){var n=t.children;return U.jsx(Rl,{status:"default",text:n})},processing:function(t){var n=t.children;return U.jsx(Rl,{status:"processing",text:n})},warning:function(t){var n=t.children;return U.jsx(Rl,{status:"warning",text:n})}},pC=function e(t,n,r){if(Array.isArray(t))return U.jsx(pa,{split:",",size:2,wrap:!0,children:t.map(function(c,u){return e(c,n,u)})},r);var i=Rp(n);if(!i.has(t)&&!i.has("".concat(t)))return(t==null?void 0:t.label)||t;var o=i.get(t)||i.get("".concat(t));if(!o)return U.jsx(ge.Fragment,{children:(t==null?void 0:t.label)||t},r);var a=o.status,s=o.color,l=_0t[a||"Init"];return l?U.jsx(l,{children:o.text},r):s?U.jsx(w0t,{color:s,children:o.text},r):U.jsx(ge.Fragment,{children:o.text||o},r)},Pj={exports:{}};(function(e,t){const{hasOwnProperty:n}=Object.prototype,r=S();r.configure=S,r.stringify=r,r.default=r,t.stringify=r,t.configure=S,e.exports=r;const i=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function o(b){return b.length<5e3&&!i.test(b)?`"${b}"`:JSON.stringify(b)}function a(b,C){if(b.length>200||C)return b.sort(C);for(let _=1;_<b.length;_++){const T=b[_];let x=_;for(;x!==0&&b[x-1]>T;)b[x]=b[x-1],x--;b[x]=T}return b}const s=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function l(b){return s.call(b)!==void 0&&b.length!==0}function c(b,C,_){b.length<_&&(_=b.length);const T=C===","?"":" ";let x=`"0":${T}${b[0]}`;for(let E=1;E<_;E++)x+=`${C}"${E}":${T}${b[E]}`;return x}function u(b){if(n.call(b,"circularValue")){const C=b.circularValue;if(typeof C=="string")return`"${C}"`;if(C==null)return C;if(C===Error||C===TypeError)return{toString(){throw new TypeError("Converting circular structure to JSON")}};throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}function d(b){let C;if(n.call(b,"deterministic")&&(C=b.deterministic,typeof C!="boolean"&&typeof C!="function"))throw new TypeError('The "deterministic" argument must be of type boolean or comparator function');return C===void 0?!0:C}function h(b,C){let _;if(n.call(b,C)&&(_=b[C],typeof _!="boolean"))throw new TypeError(`The "${C}" argument must be of type boolean`);return _===void 0?!0:_}function p(b,C){let _;if(n.call(b,C)){if(_=b[C],typeof _!="number")throw new TypeError(`The "${C}" argument must be of type number`);if(!Number.isInteger(_))throw new TypeError(`The "${C}" argument must be an integer`);if(_<1)throw new RangeError(`The "${C}" argument must be >= 1`)}return _===void 0?1/0:_}function m(b){return b===1?"1 item":`${b} items`}function v(b){const C=new Set;for(const _ of b)(typeof _=="string"||typeof _=="number")&&C.add(String(_));return C}function y(b){if(n.call(b,"strict")){const C=b.strict;if(typeof C!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(C)return _=>{let T=`Object can not safely be stringified. Received type ${typeof _}`;throw typeof _!="function"&&(T+=` (${_.toString()})`),new Error(T)}}}function S(b){b={...b};const C=y(b);C&&(b.bigint===void 0&&(b.bigint=!1),"circularValue"in b||(b.circularValue=Error));const _=u(b),T=h(b,"bigint"),x=d(b),E=typeof x=="function"?x:void 0,k=p(b,"maximumDepth"),M=p(b,"maximumBreadth");function P(F,z,W,q,Z,N){let B=z[F];switch(typeof B=="object"&&B!==null&&typeof B.toJSON=="function"&&(B=B.toJSON(F)),B=q.call(z,F,B),typeof B){case"string":return o(B);case"object":{if(B===null)return"null";if(W.indexOf(B)!==-1)return _;let V="",G=",";const ie=N;if(Array.isArray(B)){if(B.length===0)return"[]";if(k<W.length+1)return'"[Array]"';W.push(B),Z!==""&&(N+=Z,V+=`
|
||
${N}`,G=`,
|
||
${N}`);const ye=Math.min(B.length,M);let me=0;for(;me<ye-1;me++){const he=P(String(me),B,W,q,Z,N);V+=he!==void 0?he:"null",V+=G}const pe=P(String(me),B,W,q,Z,N);if(V+=pe!==void 0?pe:"null",B.length-1>M){const he=B.length-M-1;V+=`${G}"... ${m(he)} not stringified"`}return Z!==""&&(V+=`
|
||
${ie}`),W.pop(),`[${V}]`}let ce=Object.keys(B);const fe=ce.length;if(fe===0)return"{}";if(k<W.length+1)return'"[Object]"';let ee="",ne="";Z!==""&&(N+=Z,G=`,
|
||
${N}`,ee=" ");const ue=Math.min(fe,M);x&&!l(B)&&(ce=a(ce,E)),W.push(B);for(let ye=0;ye<ue;ye++){const me=ce[ye],pe=P(me,B,W,q,Z,N);pe!==void 0&&(V+=`${ne}${o(me)}:${ee}${pe}`,ne=G)}if(fe>M){const ye=fe-M;V+=`${ne}"...":${ee}"${m(ye)} not stringified"`,ne=G}return Z!==""&&ne.length>1&&(V=`
|
||
${N}${V}
|
||
${ie}`),W.pop(),`{${V}}`}case"number":return isFinite(B)?String(B):C?C(B):"null";case"boolean":return B===!0?"true":"false";case"undefined":return;case"bigint":if(T)return String(B);default:return C?C(B):void 0}}function D(F,z,W,q,Z,N){switch(typeof z=="object"&&z!==null&&typeof z.toJSON=="function"&&(z=z.toJSON(F)),typeof z){case"string":return o(z);case"object":{if(z===null)return"null";if(W.indexOf(z)!==-1)return _;const B=N;let V="",G=",";if(Array.isArray(z)){if(z.length===0)return"[]";if(k<W.length+1)return'"[Array]"';W.push(z),Z!==""&&(N+=Z,V+=`
|
||
${N}`,G=`,
|
||
${N}`);const fe=Math.min(z.length,M);let ee=0;for(;ee<fe-1;ee++){const ue=D(String(ee),z[ee],W,q,Z,N);V+=ue!==void 0?ue:"null",V+=G}const ne=D(String(ee),z[ee],W,q,Z,N);if(V+=ne!==void 0?ne:"null",z.length-1>M){const ue=z.length-M-1;V+=`${G}"... ${m(ue)} not stringified"`}return Z!==""&&(V+=`
|
||
${B}`),W.pop(),`[${V}]`}W.push(z);let ie="";Z!==""&&(N+=Z,G=`,
|
||
${N}`,ie=" ");let ce="";for(const fe of q){const ee=D(fe,z[fe],W,q,Z,N);ee!==void 0&&(V+=`${ce}${o(fe)}:${ie}${ee}`,ce=G)}return Z!==""&&ce.length>1&&(V=`
|
||
${N}${V}
|
||
${B}`),W.pop(),`{${V}}`}case"number":return isFinite(z)?String(z):C?C(z):"null";case"boolean":return z===!0?"true":"false";case"undefined":return;case"bigint":if(T)return String(z);default:return C?C(z):void 0}}function R(F,z,W,q,Z){switch(typeof z){case"string":return o(z);case"object":{if(z===null)return"null";if(typeof z.toJSON=="function"){if(z=z.toJSON(F),typeof z!="object")return R(F,z,W,q,Z);if(z===null)return"null"}if(W.indexOf(z)!==-1)return _;const N=Z;if(Array.isArray(z)){if(z.length===0)return"[]";if(k<W.length+1)return'"[Array]"';W.push(z),Z+=q;let ee=`
|
||
${Z}`;const ne=`,
|
||
${Z}`,ue=Math.min(z.length,M);let ye=0;for(;ye<ue-1;ye++){const pe=R(String(ye),z[ye],W,q,Z);ee+=pe!==void 0?pe:"null",ee+=ne}const me=R(String(ye),z[ye],W,q,Z);if(ee+=me!==void 0?me:"null",z.length-1>M){const pe=z.length-M-1;ee+=`${ne}"... ${m(pe)} not stringified"`}return ee+=`
|
||
${N}`,W.pop(),`[${ee}]`}let B=Object.keys(z);const V=B.length;if(V===0)return"{}";if(k<W.length+1)return'"[Object]"';Z+=q;const G=`,
|
||
${Z}`;let ie="",ce="",fe=Math.min(V,M);l(z)&&(ie+=c(z,G,M),B=B.slice(z.length),fe-=z.length,ce=G),x&&(B=a(B,E)),W.push(z);for(let ee=0;ee<fe;ee++){const ne=B[ee],ue=R(ne,z[ne],W,q,Z);ue!==void 0&&(ie+=`${ce}${o(ne)}: ${ue}`,ce=G)}if(V>M){const ee=V-M;ie+=`${ce}"...": "${m(ee)} not stringified"`,ce=G}return ce!==""&&(ie=`
|
||
${Z}${ie}
|
||
${N}`),W.pop(),`{${ie}}`}case"number":return isFinite(z)?String(z):C?C(z):"null";case"boolean":return z===!0?"true":"false";case"undefined":return;case"bigint":if(T)return String(z);default:return C?C(z):void 0}}function A(F,z,W){switch(typeof z){case"string":return o(z);case"object":{if(z===null)return"null";if(typeof z.toJSON=="function"){if(z=z.toJSON(F),typeof z!="object")return A(F,z,W);if(z===null)return"null"}if(W.indexOf(z)!==-1)return _;let q="";const Z=z.length!==void 0;if(Z&&Array.isArray(z)){if(z.length===0)return"[]";if(k<W.length+1)return'"[Array]"';W.push(z);const ie=Math.min(z.length,M);let ce=0;for(;ce<ie-1;ce++){const ee=A(String(ce),z[ce],W);q+=ee!==void 0?ee:"null",q+=","}const fe=A(String(ce),z[ce],W);if(q+=fe!==void 0?fe:"null",z.length-1>M){const ee=z.length-M-1;q+=`,"... ${m(ee)} not stringified"`}return W.pop(),`[${q}]`}let N=Object.keys(z);const B=N.length;if(B===0)return"{}";if(k<W.length+1)return'"[Object]"';let V="",G=Math.min(B,M);Z&&l(z)&&(q+=c(z,",",M),N=N.slice(z.length),G-=z.length,V=","),x&&(N=a(N,E)),W.push(z);for(let ie=0;ie<G;ie++){const ce=N[ie],fe=A(ce,z[ce],W);fe!==void 0&&(q+=`${V}${o(ce)}:${fe}`,V=",")}if(B>M){const ie=B-M;q+=`${V}"...":"${m(ie)} not stringified"`}return W.pop(),`{${q}}`}case"number":return isFinite(z)?String(z):C?C(z):"null";case"boolean":return z===!0?"true":"false";case"undefined":return;case"bigint":if(T)return String(z);default:return C?C(z):void 0}}function H(F,z,W){if(arguments.length>1){let q="";if(typeof W=="number"?q=" ".repeat(Math.min(W,10)):typeof W=="string"&&(q=W.slice(0,10)),z!=null){if(typeof z=="function")return P("",{"":F},[],z,q,"");if(Array.isArray(z))return D("",F,[],v(z),q,"")}if(q.length!==0)return R("",F,[],q,"")}return A("",F,[])}return H}})(Pj,Pj.exports);var E0t=Pj.exports;const T0t=vi(E0t),k0t=T0t.configure;var hre=k0t({bigint:!0,circularValue:"Magic circle!",deterministic:!1,maximumDepth:4});function O0t(){this.__data__=[],this.size=0}function AP(e,t){return e===t||e!==e&&t!==t}function NP(e,t){for(var n=e.length;n--;)if(AP(e[n][0],t))return n;return-1}var P0t=Array.prototype,M0t=P0t.splice;function I0t(e){var t=this.__data__,n=NP(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():M0t.call(t,n,1),--this.size,!0}function $0t(e){var t=this.__data__,n=NP(t,e);return n<0?void 0:t[n][1]}function R0t(e){return NP(this.__data__,e)>-1}function A0t(e,t){var n=this.__data__,r=NP(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Ap(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ap.prototype.clear=O0t;Ap.prototype.delete=I0t;Ap.prototype.get=$0t;Ap.prototype.has=R0t;Ap.prototype.set=A0t;function N0t(){this.__data__=new Ap,this.size=0}function D0t(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function L0t(e){return this.__data__.get(e)}function F0t(e){return this.__data__.has(e)}var Nxe=typeof global=="object"&&global&&global.Object===Object&&global,j0t=typeof self=="object"&&self&&self.Object===Object&&self,t0=Nxe||j0t||Function("return this")(),ak=t0.Symbol,Dxe=Object.prototype,B0t=Dxe.hasOwnProperty,H0t=Dxe.toString,Vx=ak?ak.toStringTag:void 0;function z0t(e){var t=B0t.call(e,Vx),n=e[Vx];try{e[Vx]=void 0;var r=!0}catch{}var i=H0t.call(e);return r&&(t?e[Vx]=n:delete e[Vx]),i}var U0t=Object.prototype,W0t=U0t.toString;function V0t(e){return W0t.call(e)}var K0t="[object Null]",q0t="[object Undefined]",pre=ak?ak.toStringTag:void 0;function VE(e){return e==null?e===void 0?q0t:K0t:pre&&pre in Object(e)?z0t(e):V0t(e)}function Wd(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var G0t="[object AsyncFunction]",Y0t="[object Function]",X0t="[object GeneratorFunction]",Q0t="[object Proxy]";function vV(e){if(!Wd(e))return!1;var t=VE(e);return t==Y0t||t==X0t||t==G0t||t==Q0t}var wA=t0["__core-js_shared__"],mre=function(){var e=/[^.]+$/.exec(wA&&wA.keys&&wA.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Z0t(e){return!!mre&&mre in e}var J0t=Function.prototype,eyt=J0t.toString;function tyt(e){if(e!=null){try{return eyt.call(e)}catch{}try{return e+""}catch{}}return""}var nyt=/[\\^$.*+?()[\]{}|]/g,ryt=/^\[object .+?Constructor\]$/,iyt=Function.prototype,oyt=Object.prototype,ayt=iyt.toString,syt=oyt.hasOwnProperty,lyt=RegExp("^"+ayt.call(syt).replace(nyt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function cyt(e){if(!Wd(e)||Z0t(e))return!1;var t=vV(e)?lyt:ryt;return t.test(tyt(e))}function uyt(e,t){return e==null?void 0:e[t]}function yV(e,t){var n=uyt(e,t);return cyt(n)?n:void 0}var Lxe=yV(t0,"Map"),T_=yV(Object,"create");function dyt(){this.__data__=T_?T_(null):{},this.size=0}function fyt(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var hyt="__lodash_hash_undefined__",pyt=Object.prototype,myt=pyt.hasOwnProperty;function gyt(e){var t=this.__data__;if(T_){var n=t[e];return n===hyt?void 0:n}return myt.call(t,e)?t[e]:void 0}var vyt=Object.prototype,yyt=vyt.hasOwnProperty;function byt(e){var t=this.__data__;return T_?t[e]!==void 0:yyt.call(t,e)}var Syt="__lodash_hash_undefined__";function Cyt(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=T_&&t===void 0?Syt:t,this}function Pv(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Pv.prototype.clear=dyt;Pv.prototype.delete=fyt;Pv.prototype.get=gyt;Pv.prototype.has=byt;Pv.prototype.set=Cyt;function xyt(){this.size=0,this.__data__={hash:new Pv,map:new(Lxe||Ap),string:new Pv}}function wyt(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function DP(e,t){var n=e.__data__;return wyt(t)?n[typeof t=="string"?"string":"hash"]:n.map}function _yt(e){var t=DP(this,e).delete(e);return this.size-=t?1:0,t}function Eyt(e){return DP(this,e).get(e)}function Tyt(e){return DP(this,e).has(e)}function kyt(e,t){var n=DP(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function mC(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}mC.prototype.clear=xyt;mC.prototype.delete=_yt;mC.prototype.get=Eyt;mC.prototype.has=Tyt;mC.prototype.set=kyt;var Oyt=200;function Pyt(e,t){var n=this.__data__;if(n instanceof Ap){var r=n.__data__;if(!Lxe||r.length<Oyt-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new mC(r)}return n.set(e,t),this.size=n.size,this}function gC(e){var t=this.__data__=new Ap(e);this.size=t.size}gC.prototype.clear=N0t;gC.prototype.delete=D0t;gC.prototype.get=L0t;gC.prototype.has=F0t;gC.prototype.set=Pyt;var sk=function(){try{var e=yV(Object,"defineProperty");return e({},"",{}),e}catch{}}();function bV(e,t,n){t=="__proto__"&&sk?sk(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Mj(e,t,n){(n!==void 0&&!AP(e[t],n)||n===void 0&&!(t in e))&&bV(e,t,n)}function Myt(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[++i];if(n(o[l],l,o)===!1)break}return t}}var Iyt=Myt(),Fxe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,gre=Fxe&&typeof module=="object"&&module&&!module.nodeType&&module,$yt=gre&&gre.exports===Fxe,vre=$yt?t0.Buffer:void 0,yre=vre?vre.allocUnsafe:void 0;function Ryt(e,t){if(t)return e.slice();var n=e.length,r=yre?yre(n):new e.constructor(n);return e.copy(r),r}var bre=t0.Uint8Array;function Ayt(e){var t=new e.constructor(e.byteLength);return new bre(t).set(new bre(e)),t}function Nyt(e,t){var n=t?Ayt(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Dyt(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var Sre=Object.create,Lyt=function(){function e(){}return function(t){if(!Wd(t))return{};if(Sre)return Sre(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Fyt(e,t){return function(n){return e(t(n))}}var jxe=Fyt(Object.getPrototypeOf,Object),jyt=Object.prototype;function Bxe(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||jyt;return e===n}function Byt(e){return typeof e.constructor=="function"&&!Bxe(e)?Lyt(jxe(e)):{}}function vC(e){return e!=null&&typeof e=="object"}var Hyt="[object Arguments]";function Cre(e){return vC(e)&&VE(e)==Hyt}var Hxe=Object.prototype,zyt=Hxe.hasOwnProperty,Uyt=Hxe.propertyIsEnumerable,Ij=Cre(function(){return arguments}())?Cre:function(e){return vC(e)&&zyt.call(e,"callee")&&!Uyt.call(e,"callee")},$j=Array.isArray,Wyt=9007199254740991;function zxe(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Wyt}function SV(e){return e!=null&&zxe(e.length)&&!vV(e)}function Vyt(e){return vC(e)&&SV(e)}function Kyt(){return!1}var Uxe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,xre=Uxe&&typeof module=="object"&&module&&!module.nodeType&&module,qyt=xre&&xre.exports===Uxe,wre=qyt?t0.Buffer:void 0,Gyt=wre?wre.isBuffer:void 0,Wxe=Gyt||Kyt,Yyt="[object Object]",Xyt=Function.prototype,Qyt=Object.prototype,Vxe=Xyt.toString,Zyt=Qyt.hasOwnProperty,Jyt=Vxe.call(Object);function ebt(e){if(!vC(e)||VE(e)!=Yyt)return!1;var t=jxe(e);if(t===null)return!0;var n=Zyt.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Vxe.call(n)==Jyt}var tbt="[object Arguments]",nbt="[object Array]",rbt="[object Boolean]",ibt="[object Date]",obt="[object Error]",abt="[object Function]",sbt="[object Map]",lbt="[object Number]",cbt="[object Object]",ubt="[object RegExp]",dbt="[object Set]",fbt="[object String]",hbt="[object WeakMap]",pbt="[object ArrayBuffer]",mbt="[object DataView]",gbt="[object Float32Array]",vbt="[object Float64Array]",ybt="[object Int8Array]",bbt="[object Int16Array]",Sbt="[object Int32Array]",Cbt="[object Uint8Array]",xbt="[object Uint8ClampedArray]",wbt="[object Uint16Array]",_bt="[object Uint32Array]",po={};po[gbt]=po[vbt]=po[ybt]=po[bbt]=po[Sbt]=po[Cbt]=po[xbt]=po[wbt]=po[_bt]=!0;po[tbt]=po[nbt]=po[pbt]=po[rbt]=po[mbt]=po[ibt]=po[obt]=po[abt]=po[sbt]=po[lbt]=po[cbt]=po[ubt]=po[dbt]=po[fbt]=po[hbt]=!1;function Ebt(e){return vC(e)&&zxe(e.length)&&!!po[VE(e)]}function Tbt(e){return function(t){return e(t)}}var Kxe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,iw=Kxe&&typeof module=="object"&&module&&!module.nodeType&&module,kbt=iw&&iw.exports===Kxe,_A=kbt&&Nxe.process,_re=function(){try{var e=iw&&iw.require&&iw.require("util").types;return e||_A&&_A.binding&&_A.binding("util")}catch{}}(),Ere=_re&&_re.isTypedArray,qxe=Ere?Tbt(Ere):Ebt;function Rj(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Obt=Object.prototype,Pbt=Obt.hasOwnProperty;function Mbt(e,t,n){var r=e[t];(!(Pbt.call(e,t)&&AP(r,n))||n===void 0&&!(t in e))&&bV(e,t,n)}function Ibt(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=void 0;l===void 0&&(l=e[s]),i?bV(n,s,l):Mbt(n,s,l)}return n}function $bt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Rbt=9007199254740991,Abt=/^(?:0|[1-9]\d*)$/;function Gxe(e,t){var n=typeof e;return t=t??Rbt,!!t&&(n=="number"||n!="symbol"&&Abt.test(e))&&e>-1&&e%1==0&&e<t}var Nbt=Object.prototype,Dbt=Nbt.hasOwnProperty;function Lbt(e,t){var n=$j(e),r=!n&&Ij(e),i=!n&&!r&&Wxe(e),o=!n&&!r&&!i&&qxe(e),a=n||r||i||o,s=a?$bt(e.length,String):[],l=s.length;for(var c in e)(t||Dbt.call(e,c))&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Gxe(c,l)))&&s.push(c);return s}function Fbt(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var jbt=Object.prototype,Bbt=jbt.hasOwnProperty;function Hbt(e){if(!Wd(e))return Fbt(e);var t=Bxe(e),n=[];for(var r in e)r=="constructor"&&(t||!Bbt.call(e,r))||n.push(r);return n}function Yxe(e){return SV(e)?Lbt(e,!0):Hbt(e)}function zbt(e){return Ibt(e,Yxe(e))}function Ubt(e,t,n,r,i,o,a){var s=Rj(e,n),l=Rj(t,n),c=a.get(l);if(c){Mj(e,n,c);return}var u=o?o(s,l,n+"",e,t,a):void 0,d=u===void 0;if(d){var h=$j(l),p=!h&&Wxe(l),m=!h&&!p&&qxe(l);u=l,h||p||m?$j(s)?u=s:Vyt(s)?u=Dyt(s):p?(d=!1,u=Ryt(l,!0)):m?(d=!1,u=Nyt(l,!0)):u=[]:ebt(l)||Ij(l)?(u=s,Ij(s)?u=zbt(s):(!Wd(s)||vV(s))&&(u=Byt(l))):d=!1}d&&(a.set(l,u),i(u,l,r,o,a),a.delete(l)),Mj(e,n,u)}function Xxe(e,t,n,r,i){e!==t&&Iyt(t,function(o,a){if(i||(i=new gC),Wd(o))Ubt(e,t,a,n,Xxe,r,i);else{var s=r?r(Rj(e,a),o,a+"",e,t,i):void 0;s===void 0&&(s=o),Mj(e,a,s)}},Yxe)}function Qxe(e){return e}function Wbt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Tre=Math.max;function Vbt(e,t,n){return t=Tre(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=Tre(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),Wbt(e,this,s)}}function Kbt(e){return function(){return e}}var qbt=sk?function(e,t){return sk(e,"toString",{configurable:!0,enumerable:!1,value:Kbt(t),writable:!0})}:Qxe,Gbt=800,Ybt=16,Xbt=Date.now;function Qbt(e){var t=0,n=0;return function(){var r=Xbt(),i=Ybt-(r-n);if(n=r,i>0){if(++t>=Gbt)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Zbt=Qbt(qbt);function Jbt(e,t){return Zbt(Vbt(e,t,Qxe),e+"")}function eSt(e,t,n){if(!Wd(n))return!1;var r=typeof t;return(r=="number"?SV(n)&&Gxe(t,n.length):r=="string"&&t in n)?AP(n[t],e):!1}function tSt(e){return Jbt(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,a&&eSt(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t})}var nSt=tSt(function(e,t,n){Xxe(e,t,n)});function rSt(e){return ln(e)!=="object"?!1:e===null?!0:!(ge.isValidElement(e)||e.constructor===RegExp||e instanceof Map||e instanceof Set||e instanceof HTMLElement||e instanceof Blob||e instanceof File||Array.isArray(e))}var iSt=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,i=Object.keys(n).reduce(function(s,l){var c=n[l];return Ov(c)||(s[l]=c),s},{});if(Object.keys(i).length<1||typeof window>"u"||ln(t)!=="object"||Ov(t)||t instanceof Blob)return t;var o=Array.isArray(t)?[]:{},a=function s(l,c){var u=Array.isArray(l),d=u?[]:{};return l==null||l===void 0?d:(Object.keys(l).forEach(function(h){var p=function C(_,T){return Array.isArray(_)&&_.forEach(function(x,E){if(x){var k=T==null?void 0:T[E];typeof x=="function"&&(T[E]=x(T,h,l)),ln(x)==="object"&&!Array.isArray(x)&&Object.keys(x).forEach(function(M){var P=k==null?void 0:k[M];if(typeof x[M]=="function"&&P){var D=x[M](k[M],h,l);k[M]=ln(D)==="object"?D[M]:D}else ln(x[M])==="object"&&Array.isArray(x[M])&&P&&C(x[M],P)}),ln(x)==="object"&&Array.isArray(x)&&k&&C(x,k)}}),h},m=c?[c,h].flat(1):[h].flat(1),v=l[h],y=jo(i,m),S=function(){var _,T,x=!1;if(typeof y=="function"){T=y==null?void 0:y(v,h,l);var E=ln(T);E!=="object"&&E!=="undefined"?(_=h,x=!0):_=T}else _=p(y,v);if(Array.isArray(_)){d=ca(d,_,v);return}ln(_)==="object"&&!Array.isArray(o)?o=nSt(o,_):ln(_)==="object"&&Array.isArray(o)?d=X(X({},d),_):(_!==null||_!==void 0)&&(d=ca(d,[_],x?T:v))};if(y&&typeof y=="function"&&S(),!(typeof window>"u")){if(rSt(v)){var b=s(v,m);if(Object.keys(b).length<1)return;d=ca(d,[h],b);return}S()}}),r?d:l)};return o=Array.isArray(t)&&Array.isArray(o)?pt(a(t)):Rxe({},a(t),o),o},Fc=function(t){return t===void 0?{}:UE(fp,"5.13.0")<=0?{bordered:t}:{variant:t?void 0:"borderless"}};function sy(e){var t=typeof window>"u",n=f.useState(function(){return t?!1:window.matchMedia(e).matches}),r=Le(n,2),i=r[0],o=r[1];return f.useLayoutEffect(function(){if(!t){var a=window.matchMedia(e),s=function(c){return o(c.matches)};return a.addListener(s),function(){return a.removeListener(s)}}},[e]),i}var ym={xs:{maxWidth:575,matchMedia:"(max-width: 575px)"},sm:{minWidth:576,maxWidth:767,matchMedia:"(min-width: 576px) and (max-width: 767px)"},md:{minWidth:768,maxWidth:991,matchMedia:"(min-width: 768px) and (max-width: 991px)"},lg:{minWidth:992,maxWidth:1199,matchMedia:"(min-width: 992px) and (max-width: 1199px)"},xl:{minWidth:1200,maxWidth:1599,matchMedia:"(min-width: 1200px) and (max-width: 1599px)"},xxl:{minWidth:1600,matchMedia:"(min-width: 1600px)"}},oSt=function(){var t=void 0;if(typeof window>"u")return t;var n=Object.keys(ym).find(function(r){var i=ym[r].matchMedia;return!!window.matchMedia(i).matches});return t=n,t},aSt=function(){var t=sy(ym.md.matchMedia),n=sy(ym.lg.matchMedia),r=sy(ym.xxl.matchMedia),i=sy(ym.xl.matchMedia),o=sy(ym.sm.matchMedia),a=sy(ym.xs.matchMedia),s=f.useState(oSt()),l=Le(s,2),c=l[0],u=l[1];return f.useEffect(function(){if(r){u("xxl");return}if(i){u("xl");return}if(n){u("lg");return}if(t){u("md");return}if(o){u("sm");return}if(a){u("xs");return}u("md")},[t,n,r,i,o,a]),c},ow=function(){return ow=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ow.apply(this,arguments)};function sSt(e){var t,n=(typeof window<"u"?window:{}).URL,r=new n((t=window==null?void 0:window.location)===null||t===void 0?void 0:t.href);return Object.keys(e).forEach(function(i){var o=e[i];o!=null?Array.isArray(o)?(r.searchParams.delete(i),o.forEach(function(a){r.searchParams.append(i,a)})):o instanceof Date?Number.isNaN(o.getTime())||r.searchParams.set(i,o.toISOString()):typeof o=="object"?r.searchParams.set(i,JSON.stringify(o)):r.searchParams.set(i,o):r.searchParams.delete(i)}),r}function lSt(e,t){var n;e===void 0&&(e={}),t===void 0&&(t={disabled:!1});var r=f.useState(),i=r[1],o=typeof window<"u"&&((n=window==null?void 0:window.location)===null||n===void 0?void 0:n.search),a=f.useMemo(function(){return t.disabled?{}:new URLSearchParams(o||{})},[t.disabled,o]),s=f.useMemo(function(){if(t.disabled)return{};if(typeof window>"u"||!window.URL)return{};var u=[];a.forEach(function(h,p){u.push({key:p,value:h})}),u=u.reduce(function(h,p){return(h[p.key]=h[p.key]||[]).push(p),h},{}),u=Object.keys(u).map(function(h){var p=u[h];return p.length===1?[h,p[0].value]:[h,p.map(function(m){var v=m.value;return v})]});var d=ow({},e);return u.forEach(function(h){var p=h[0],m=h[1];d[p]=uSt(p,m,{},e)}),d},[t.disabled,e,a]);function l(u){if(!(typeof window>"u"||!window.URL)){var d=sSt(u);window.location.search!==d.search&&window.history.replaceState({},"",d.toString()),a.toString()!==d.searchParams.toString()&&i({})}}f.useEffect(function(){t.disabled||typeof window>"u"||!window.URL||l(ow(ow({},e),s))},[t.disabled,s]);var c=function(u){l(u)};return f.useEffect(function(){if(t.disabled)return function(){};if(typeof window>"u"||!window.URL)return function(){};var u=function(){i({})};return window.addEventListener("popstate",u),function(){window.removeEventListener("popstate",u)}},[t.disabled]),[s,c]}var cSt={true:!0,false:!1};function uSt(e,t,n,r){if(!n)return t;var i=n[e],o=t===void 0?r[e]:t;return i===Number?Number(o):i===Boolean||t==="true"||t==="false"?cSt[o]:Array.isArray(i)?i.find(function(a){return a==o})||r[e]:o}var yC=ge.createContext({}),dSt=["children","Wrapper"],fSt=["children","Wrapper"],Zxe=f.createContext({grid:!1,colProps:void 0,rowProps:void 0}),hSt=function(t){var n=t.grid,r=t.rowProps,i=t.colProps;return{grid:!!n,RowWrapper:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=a.children,l=a.Wrapper,c=tn(a,dSt);return n?U.jsx(AE,X(X(X({gutter:8},r),c),{},{children:s})):l?U.jsx(l,{children:s}):s},ColWrapper:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=a.children,l=a.Wrapper,c=tn(a,fSt),u=f.useMemo(function(){var d=X(X({},i),c);return typeof d.span>"u"&&typeof d.xs>"u"&&(d.xs=24),d},[c]);return n?U.jsx(wv,X(X({},u),{},{children:s})):l?U.jsx(l,{children:s}):s}}},CV=function(t){var n=f.useMemo(function(){return ln(t)==="object"?t:{grid:t}},[t]),r=f.useContext(Zxe),i=r.grid,o=r.colProps;return f.useMemo(function(){return hSt({grid:!!(i||n.grid),rowProps:n==null?void 0:n.rowProps,colProps:(n==null?void 0:n.colProps)||o,Wrapper:n==null?void 0:n.Wrapper})},[n==null?void 0:n.Wrapper,n.grid,i,JSON.stringify([o,n==null?void 0:n.colProps,n==null?void 0:n.rowProps])])},pSt=["valueType","customLightMode","lightFilterLabelFormatter","valuePropName","ignoreWidth","defaultProps"],mSt=["label","tooltip","placeholder","width","bordered","messageVariables","ignoreFormItem","transform","convertValue","readonly","allowClear","colSize","getFormItemProps","getFieldProps","filedConfig","cacheForSwr","proFieldProps"],kre={xs:104,s:216,sm:216,m:328,md:328,l:440,lg:440,xl:552},gSt=["switch","radioButton","radio","rate"];function xV(e,t){e.displayName="ProFormComponent";var n=function(o){var a=X(X({},o==null?void 0:o.filedConfig),t),s=a.valueType,l=a.customLightMode,c=a.lightFilterLabelFormatter,u=a.valuePropName,d=u===void 0?"value":u,h=a.ignoreWidth,p=a.defaultProps,m=tn(a,pSt),v=X(X({},p),o),y=v.label,S=v.tooltip,b=v.placeholder,C=v.width,_=v.bordered,T=v.messageVariables,x=v.ignoreFormItem,E=v.transform,k=v.convertValue,M=v.readonly,P=v.allowClear;v.colSize;var D=v.getFormItemProps,R=v.getFieldProps;v.filedConfig;var A=v.cacheForSwr,H=v.proFieldProps,F=tn(v,mSt),z=s||F.valueType,W=f.useMemo(function(){return h||gSt.includes(z)},[h,z]),q=f.useState(),Z=Le(q,2),N=Z[1],B=f.useState(),V=Le(B,2),G=V[0],ie=V[1],ce=ge.useContext(yC),fe=$l(function(){return{formItemProps:D==null?void 0:D(),fieldProps:R==null?void 0:R()}},[R,D,F.dependenciesValues,G]),ee=$l(function(){var Pe=X(X(X(X({},x?pu({value:F.value}):{}),{},{placeholder:b,disabled:o.disabled},ce.fieldProps),fe.fieldProps),F.fieldProps);return Pe.style=pu(Pe==null?void 0:Pe.style),Pe},[x,F.value,F.fieldProps,b,o.disabled,ce.fieldProps,fe.fieldProps]),ne=b0t(F),ue=$l(function(){return X(X(X(X({},ce.formItemProps),ne),fe.formItemProps),F.formItemProps)},[fe.formItemProps,ce.formItemProps,F.formItemProps,ne]),ye=$l(function(){return X(X({messageVariables:T},m),ue)},[m,ue,T]);a9(!F.defaultValue,"请不要在 Form 中使用 defaultXXX。如果需要默认值请使用 initialValues 和 initialValue。");var me=f.useContext(rg),pe=me.prefixName,he=$l(function(){var Pe,Ne=ye==null?void 0:ye.name;Array.isArray(Ne)&&(Ne=Ne.join("_")),Array.isArray(pe)&&Ne&&(Ne="".concat(pe.join("."),".").concat(Ne));var We=Ne&&"form-".concat((Pe=ce.formKey)!==null&&Pe!==void 0?Pe:"","-field-").concat(Ne);return We},[hre(ye==null?void 0:ye.name),pe,ce.formKey]),_e=Pd(function(){var Pe;D||R?ie([]):F.renderFormItem&&N([]);for(var Ne=arguments.length,We=new Array(Ne),Q=0;Q<Ne;Q++)We[Q]=arguments[Q];ee==null||(Pe=ee.onChange)===null||Pe===void 0||Pe.call.apply(Pe,[ee].concat(We))}),le=$l(function(){var Pe=X({width:C&&!kre[C]?C:ce.grid?"100%":void 0},ee==null?void 0:ee.style);return W&&Reflect.deleteProperty(Pe,"width"),pu(Pe)},[hre(ee==null?void 0:ee.style),ce.grid,W,C]),xe=$l(function(){var Pe=C&&kre[C];return Re(ee==null?void 0:ee.className,ae({"pro-field":Pe},"pro-field-".concat(C),Pe&&!W))||void 0},[C,ee==null?void 0:ee.className,W]),we=$l(function(){return pu(X(X({},ce.proFieldProps),{},{mode:F==null?void 0:F.mode,readonly:M,params:F.params,proFieldKey:he,cacheForSwr:A},H))},[ce.proFieldProps,F==null?void 0:F.mode,F.params,M,he,A,H]),De=$l(function(){return X(X({onChange:_e,allowClear:P},ee),{},{style:le,className:xe})},[P,xe,_e,ee,le]),Fe=$l(function(){return U.jsx(e,X(X({},F),{},{fieldProps:De,proFieldProps:we,ref:o==null?void 0:o.fieldRef}),o.proFormFieldKey||o.name)},[we,De,F]),Ce=$l(function(){var Pe,Ne,We,Q;return U.jsx(swe,X(X({label:y&&(H==null?void 0:H.light)!==!0?y:void 0,tooltip:(H==null?void 0:H.light)!==!0&&S,valuePropName:d},ye),{},{ignoreFormItem:x,transform:E,dataFormat:ee==null?void 0:ee.format,valueType:z,messageVariables:X({label:y||""},ye==null?void 0:ye.messageVariables),convertValue:k,lightProps:pu(X(X(X({},ee),{},{valueType:z,bordered:_,allowClear:(Ne=Fe==null||(We=Fe.props)===null||We===void 0?void 0:We.allowClear)!==null&&Ne!==void 0?Ne:P,light:H==null?void 0:H.light,label:y,customLightMode:l,labelFormatter:c,valuePropName:d,footerRender:Fe==null||(Q=Fe.props)===null||Q===void 0?void 0:Q.footerRender},F.lightProps),ye.lightProps)),children:Fe}),o.proFormFieldKey||((Pe=ye.name)===null||Pe===void 0?void 0:Pe.toString()))},[y,H==null?void 0:H.light,S,d,o.proFormFieldKey,ye,x,E,ee,z,k,_,Fe,P,l,c,F.lightProps]),Te=CV(F),ke=Te.ColWrapper;return U.jsx(ke,{children:Ce})},r=function(o){var a=o.dependencies;return a?U.jsx(awe,{name:a,originDependencies:o==null?void 0:o.originDependencies,children:function(l){return U.jsx(n,X({dependenciesValues:l,dependencies:a},o))}}):U.jsx(n,X({dependencies:a},o))};return r}var vSt=["rules","name","phoneName","fieldProps","onTiming","captchaTextRender","captchaProps"],ySt=ge.forwardRef(function(e,t){var n=Or.useFormInstance(),r=f.useState(e.countDown||60),i=Le(r,2),o=i[0],a=i[1],s=f.useState(!1),l=Le(s,2),c=l[0],u=l[1],d=f.useState(),h=Le(d,2),p=h[0],m=h[1];e.rules,e.name;var v=e.phoneName,y=e.fieldProps,S=e.onTiming,b=e.captchaTextRender,C=b===void 0?function(E,k){return E?"".concat(k," 秒后重新获取"):"获取验证码"}:b,_=e.captchaProps,T=tn(e,vSt),x=function(){var E=Zo(Hr().mark(function k(M){return Hr().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return D.prev=0,m(!0),D.next=4,T.onGetCaptcha(M);case 4:m(!1),u(!0),D.next=13;break;case 8:D.prev=8,D.t0=D.catch(0),u(!1),m(!1),console.log(D.t0);case 13:case"end":return D.stop()}},k,null,[[0,8]])}));return function(M){return E.apply(this,arguments)}}();return f.useImperativeHandle(t,function(){return{startTiming:function(){return u(!0)},endTiming:function(){return u(!1)}}}),f.useEffect(function(){var E=0,k=e.countDown;return c&&(E=window.setInterval(function(){a(function(M){return M<=1?(u(!1),clearInterval(E),k||60):M-1})},1e3)),function(){return clearInterval(E)}},[c]),f.useEffect(function(){S&&S(o)},[o,S]),U.jsxs("div",{style:X(X({},y==null?void 0:y.style),{},{display:"flex",alignItems:"center"}),ref:t,children:[U.jsx($i,X(X({},y),{},{style:X({flex:1,transition:"width .3s",marginRight:8},y==null?void 0:y.style)})),U.jsx(pr,X(X({style:{display:"block"},disabled:c,loading:p},_),{},{onClick:Zo(Hr().mark(function E(){var k;return Hr().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(P.prev=0,!v){P.next=9;break}return P.next=4,n.validateFields([v].flat(1));case 4:return k=n.getFieldValue([v].flat(1)),P.next=7,x(k);case 7:P.next=11;break;case 9:return P.next=11,x("");case 11:P.next=16;break;case 13:P.prev=13,P.t0=P.catch(0),console.log(P.t0);case 16:case"end":return P.stop()}},E,null,[[0,13]])})),children:C(c,o)}))]})}),KE=xV(ySt),bSt=["label","prefixCls","onChange","value","mode","children","defaultValue","size","showSearch","disabled","style","className","bordered","options","onSearch","allowClear","labelInValue","fieldNames","lightLabel","labelTrigger","optionFilterProp","optionLabelProp","valueMaxLength","fetchDataOnSearch","fetchData"],Ore=function(t,n){return ln(n)!=="object"?t[n]||n:t[n==null?void 0:n.value]||n.label},SSt=function(t,n){var r=t.label,i=t.prefixCls,o=t.onChange,a=t.value,s=t.mode;t.children,t.defaultValue;var l=t.size,c=t.showSearch,u=t.disabled,d=t.style,h=t.className,p=t.bordered,m=t.options,v=t.onSearch,y=t.allowClear,S=t.labelInValue,b=t.fieldNames,C=t.lightLabel,_=t.labelTrigger,T=t.optionFilterProp,x=t.optionLabelProp,E=x===void 0?"":x,k=t.valueMaxLength,M=k===void 0?41:k,P=t.fetchDataOnSearch,D=P===void 0?!1:P,R=t.fetchData,A=tn(t,bSt),H=t.placeholder,F=H===void 0?r:H,z=b||{},W=z.label,q=W===void 0?"label":W,Z=z.value,N=Z===void 0?"value":Z,B=f.useContext(ar.ConfigContext),V=B.getPrefixCls,G=V("pro-field-select-light-select"),ie=f.useState(!1),ce=Le(ie,2),fe=ce[0],ee=ce[1],ne=f.useState(""),ue=Le(ne,2),ye=ue[0],me=ue[1],pe=no("LightSelect",function(De){return ae({},".".concat(G),ae(ae({},"".concat(De.antCls,"-select"),{position:"absolute",width:"153px",height:"28px",visibility:"hidden","&-selector":{height:28}}),"&.".concat(G,"-searchable"),ae({},"".concat(De.antCls,"-select"),{width:"200px","&-selector":{height:28}})))}),he=pe.wrapSSR,_e=pe.hashId,le=f.useMemo(function(){var De={};return m==null||m.forEach(function(Fe){var Ce=Fe[E]||Fe[q],Te=Fe[N];De[Te]=Ce||Te}),De},[q,m,N,E]),xe=f.useMemo(function(){return Reflect.has(A,"open")?A==null?void 0:A.open:fe},[fe,A]),we=Array.isArray(a)?a.map(function(De){return Ore(le,De)}):Ore(le,a);return he(U.jsxs("div",{className:Re(G,_e,ae({},"".concat(G,"-searchable"),c),"".concat(G,"-container-").concat(A.placement||"bottomLeft"),h),style:d,onClick:function(Fe){var Ce;if(!u){var Te=C==null||(Ce=C.current)===null||Ce===void 0||(Ce=Ce.labelRef)===null||Ce===void 0||(Ce=Ce.current)===null||Ce===void 0?void 0:Ce.contains(Fe.target);Te&&ee(!fe)}},children:[U.jsx(ys,X(X(X({},A),{},{allowClear:y,value:a,mode:s,labelInValue:S,size:l,disabled:u,onChange:function(Fe,Ce){o==null||o(Fe,Ce),s!=="multiple"&&ee(!1)}},Fc(p)),{},{showSearch:c,onSearch:c?function(De){D&&R&&R(De),v==null||v(De)}:void 0,style:d,dropdownRender:function(Fe){return U.jsxs("div",{ref:n,children:[c&&U.jsx("div",{style:{margin:"4px 8px"},children:U.jsx($i,{value:ye,allowClear:!!y,onChange:function(Te){me(Te.target.value),D&&R&&R(Te.target.value),v==null||v(Te.target.value)},onKeyDown:function(Te){if(Te.key==="Backspace"){Te.stopPropagation();return}(Te.key==="ArrowUp"||Te.key==="ArrowDown")&&Te.preventDefault()},style:{width:"100%"},prefix:U.jsx(UO,{})})}),Fe]})},open:xe,onDropdownVisibleChange:function(Fe){var Ce;Fe||me(""),_||ee(Fe),A==null||(Ce=A.onDropdownVisibleChange)===null||Ce===void 0||Ce.call(A,Fe)},prefixCls:i,options:v||!ye?m:m==null?void 0:m.filter(function(De){var Fe,Ce;return T?zo(De[T]).join("").toLowerCase().includes(ye):((Fe=String(De[q]))===null||Fe===void 0||(Fe=Fe.toLowerCase())===null||Fe===void 0?void 0:Fe.includes(ye==null?void 0:ye.toLowerCase()))||((Ce=De[N])===null||Ce===void 0||(Ce=Ce.toString())===null||Ce===void 0||(Ce=Ce.toLowerCase())===null||Ce===void 0?void 0:Ce.includes(ye==null?void 0:ye.toLowerCase()))})})),U.jsx($p,{ellipsis:!0,label:r,placeholder:F,disabled:u,bordered:p,allowClear:!!y,value:we||(a==null?void 0:a.label)||a,onClear:function(){o==null||o(void 0,void 0)},ref:C,valueMaxLength:M})]}))};const CSt=ge.forwardRef(SSt);var xSt=["optionItemRender","mode","onSearch","onFocus","onChange","autoClearSearchValue","searchOnFocus","resetAfterSelect","fetchDataOnSearch","optionFilterProp","optionLabelProp","className","disabled","options","fetchData","resetData","prefixCls","onClear","searchValue","showSearch","fieldNames","defaultSearchValue","preserveOriginalLabel"],wSt=["className","optionType"],_St=function(t,n){var r=t.optionItemRender,i=t.mode,o=t.onSearch,a=t.onFocus,s=t.onChange,l=t.autoClearSearchValue,c=l===void 0?!0:l,u=t.searchOnFocus,d=u===void 0?!1:u,h=t.resetAfterSelect,p=h===void 0?!1:h,m=t.fetchDataOnSearch,v=m===void 0?!0:m,y=t.optionFilterProp,S=y===void 0?"label":y,b=t.optionLabelProp,C=b===void 0?"label":b,_=t.className,T=t.disabled,x=t.options,E=t.fetchData,k=t.resetData,M=t.prefixCls,P=t.onClear,D=t.searchValue,R=t.showSearch,A=t.fieldNames,H=t.defaultSearchValue,F=t.preserveOriginalLabel,z=F===void 0?!1:F,W=tn(t,xSt),q=A||{},Z=q.label,N=Z===void 0?"label":Z,B=q.value,V=B===void 0?"value":B,G=q.options,ie=G===void 0?"options":G,ce=f.useState(D??H),fe=Le(ce,2),ee=fe[0],ne=fe[1],ue=f.useRef();f.useImperativeHandle(n,function(){return ue.current}),f.useEffect(function(){if(W.autoFocus){var xe;ue==null||(xe=ue.current)===null||xe===void 0||xe.focus()}},[W.autoFocus]),f.useEffect(function(){ne(D)},[D]);var ye=f.useContext(ar.ConfigContext),me=ye.getPrefixCls,pe=me("pro-filed-search-select",M),he=Re(pe,_,ae({},"".concat(pe,"-disabled"),T)),_e=function(we,De){return Array.isArray(we)&&Array.isArray(De)&&we.length>0?we.map(function(Fe,Ce){var Te=De==null?void 0:De[Ce],ke=(Te==null?void 0:Te["data-item"])||{};return X(X(X({},ke),Fe),{},{label:z?ke.label:Fe.label})}):[]},le=function xe(we){return we.map(function(De,Fe){var Ce,Te=De,ke=Te.className,Pe=Te.optionType,Ne=tn(Te,wSt),We=De[N],Q=De[V],K=(Ce=De[ie])!==null&&Ce!==void 0?Ce:[];return Pe==="optGroup"||De.options?X(X({label:We},Ne),{},{data_title:We,title:We,key:Q??"".concat(We==null?void 0:We.toString(),"-").concat(Fe,"-").concat(ok()),children:xe(K)}):X(X({title:We},Ne),{},{data_title:We,value:Q??Fe,key:Q??"".concat(We==null?void 0:We.toString(),"-").concat(Fe,"-").concat(ok()),"data-item":De,className:"".concat(pe,"-option ").concat(ke||"").trim(),label:(r==null?void 0:r(De))||We})})};return U.jsx(ys,X(X({ref:ue,className:he,allowClear:!0,autoClearSearchValue:c,disabled:T,mode:i,showSearch:R,searchValue:ee,optionFilterProp:S,optionLabelProp:C,onClear:function(){P==null||P(),E(void 0),R&&ne(void 0)}},W),{},{filterOption:W.filterOption==!1?!1:function(xe,we){var De,Fe,Ce;return W.filterOption&&typeof W.filterOption=="function"?W.filterOption(xe,X(X({},we),{},{label:we==null?void 0:we.data_title})):!!(we!=null&&(De=we.data_title)!==null&&De!==void 0&&De.toString().toLowerCase().includes(xe.toLowerCase())||we!=null&&(Fe=we.label)!==null&&Fe!==void 0&&Fe.toString().toLowerCase().includes(xe.toLowerCase())||we!=null&&(Ce=we.value)!==null&&Ce!==void 0&&Ce.toString().toLowerCase().includes(xe.toLowerCase()))},onSearch:R?function(xe){v&&E(xe),o==null||o(xe),ne(xe)}:void 0,onChange:function(we,De){R&&c&&(E(void 0),o==null||o(""),ne(void 0));for(var Fe=arguments.length,Ce=new Array(Fe>2?Fe-2:0),Te=2;Te<Fe;Te++)Ce[Te-2]=arguments[Te];if(!t.labelInValue){s==null||s.apply(void 0,[we,De].concat(Ce));return}if(i!=="multiple"&&!Array.isArray(De)){var ke=De&&De["data-item"];if(!we||!ke){var Pe=we&&X(X({},we),{},{label:z?ke==null?void 0:ke.label:we.label});s==null||s.apply(void 0,[Pe,De].concat(Ce))}else s==null||s.apply(void 0,[X(X(X({},we),ke),{},{label:z?ke.label:we.label}),De].concat(Ce));return}var Ne=_e(we,De);s==null||s.apply(void 0,[Ne,De].concat(Ce)),p&&k()},onFocus:function(we){d&&E(ee),a==null||a(we)},options:le(x||[])}))};const ESt=ge.forwardRef(_St);var TSt=["value","text"],kSt=["mode","valueEnum","render","renderFormItem","request","fieldProps","plain","children","light","proFieldKey","params","label","bordered","id","lightLabel","labelTrigger"],OSt=function(t){for(var n=t.label,r=t.words,i=f.useContext(ar.ConfigContext),o=i.getPrefixCls,a=o("pro-select-item-option-content-light"),s=o("pro-select-item-option-content"),l=no("Highlight",function(y){return ae(ae({},".".concat(a),{color:y.colorPrimary}),".".concat(s),{flex:"auto",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"})}),c=l.wrapSSR,u=new RegExp(r.map(function(y){return y.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}).join("|"),"gi"),d=n,h=[];d.length;){var p=u.exec(d);if(!p){h.push(d);break}var m=p.index,v=p[0].length+m;h.push(d.slice(0,m),ge.createElement("span",{className:a},d.slice(m,v))),d=d.slice(v)}return c(ge.createElement.apply(ge,["div",{title:n,className:s}].concat(h)))};function Aj(e,t){var n,r;if(!t||e!=null&&(n=e.label)!==null&&n!==void 0&&n.toString().toLowerCase().includes(t.toLowerCase())||e!=null&&(r=e.value)!==null&&r!==void 0&&r.toString().toLowerCase().includes(t.toLowerCase()))return!0;if(e.children||e.options){var i=[].concat(pt(e.children||[]),[e.options||[]]).find(function(o){return Aj(o,t)});if(i)return!0}return!1}var PSt=function(t){var n=[],r=Rp(t);return r.forEach(function(i,o){var a=r.get(o)||r.get("".concat(o));if(a){if(ln(a)==="object"&&a!==null&&a!==void 0&&a.text){n.push({text:a==null?void 0:a.text,value:o,label:a==null?void 0:a.text,disabled:a.disabled});return}n.push({text:a,value:o})}}),n},bC=function(t){var n,r,i,o,a=t.cacheForSwr,s=t.fieldProps,l=f.useState(t.defaultKeyWords),c=Le(l,2),u=c[0],d=c[1],h=f.useState(function(){return t.proFieldKey?t.proFieldKey.toString():t.request?ok():"no-fetch"}),p=Le(h,1),m=p[0],v=f.useRef(m),y=Pd(function(R){return PSt(Rp(R)).map(function(A){var H=A.value,F=A.text,z=tn(A,TSt);return X({label:F,value:H,key:H},z)})}),S=$l(function(){if(s){var R=(s==null?void 0:s.options)||(s==null?void 0:s.treeData);if(R){var A=s.fieldNames||{},H=A.children,F=A.label,z=A.value,W=function q(Z,N){if(Z!=null&&Z.length)for(var B=Z.length,V=0;V<B;){var G=Z[V++];(G[H]||G[F]||G[z])&&(G[N]=G[N==="children"?H:N==="label"?F:z],q(G[H],N))}};return H&&W(R,"children"),F&&W(R,"label"),z&&W(R,"value"),R}}},[s]),b=er(function(){return t.valueEnum?y(t.valueEnum):[]},{value:S}),C=Le(b,2),_=C[0],T=C[1];d0t(function(){var R,A;!t.valueEnum||(R=t.fieldProps)!==null&&R!==void 0&&R.options||(A=t.fieldProps)!==null&&A!==void 0&&A.treeData||T(y(t.valueEnum))},[t.valueEnum]);var x=c0t([v.current,t.params,u],(n=(r=t.debounceTime)!==null&&r!==void 0?r:t==null||(i=t.fieldProps)===null||i===void 0?void 0:i.debounceTime)!==null&&n!==void 0?n:0,[t.params,u]),E=hV(function(){return t.request?x:null},function(R){var A=Le(R,3),H=A[1],F=A[2];return t.request(X(X({},H),{},{keyWords:F}),t)},{revalidateIfStale:!a,revalidateOnReconnect:a,shouldRetryOnError:!1,revalidateOnFocus:!1}),k=E.data,M=E.mutate,P=E.isValidating,D=f.useMemo(function(){var R,A,H=_==null?void 0:_.map(function(F){if(typeof F=="string")return{label:F,value:F};if(F.children||F.options){var z=[].concat(pt(F.children||[]),pt(F.options||[])).filter(function(W){return Aj(W,u)});return X(X({},F),{},{children:z,options:z})}return F});return((R=t.fieldProps)===null||R===void 0?void 0:R.filterOption)===!0||((A=t.fieldProps)===null||A===void 0?void 0:A.filterOption)===void 0?H==null?void 0:H.filter(function(F){return F?u?Aj(F,u):!0:!1}):H},[_,u,(o=t.fieldProps)===null||o===void 0?void 0:o.filterOption]);return[P,t.request?k:D,function(R){d(R)},function(){d(void 0),M([],!1)}]},MSt=function(t,n){var r,i=t.mode,o=t.valueEnum,a=t.render,s=t.renderFormItem;t.request;var l=t.fieldProps;t.plain,t.children;var c=t.light;t.proFieldKey,t.params;var u=t.label,d=t.bordered,h=t.id,p=t.lightLabel,m=t.labelTrigger,v=tn(t,kSt),y=f.useRef(),S=Wo(),b=f.useRef(""),C=l.fieldNames;f.useEffect(function(){b.current=l==null?void 0:l.searchValue},[l==null?void 0:l.searchValue]);var _=bC(t),T=Le(_,4),x=T[0],E=T[1],k=T[2],M=T[3],P=(ar==null||(r=ar.useConfig)===null||r===void 0?void 0:r.call(ar))||{componentSize:"middle"},D=P.componentSize;f.useImperativeHandle(n,function(){return X(X({},y.current||{}),{},{fetchData:function(Z){return k(Z)}})},[k]);var R=f.useMemo(function(){if(i==="read"){var q=C||{},Z=q.label,N=Z===void 0?"label":Z,B=q.value,V=B===void 0?"value":B,G=q.options,ie=G===void 0?"options":G,ce=new Map,fe=function ee(ne){if(!(ne!=null&&ne.length))return ce;for(var ue=ne.length,ye=0;ye<ue;){var me=ne[ye++];ce.set(me[V],me[N]),ee(me[ie])}return ce};return fe(E)}},[C,i,E]);if(i==="read"){var A=U.jsx(U.Fragment,{children:pC(v.text,Rp(o||R))});if(a){var H;return(H=a(A,X({mode:i},l),A))!==null&&H!==void 0?H:null}return A}if(i==="edit"||i==="update"){var F=function(){return c?U.jsx(CSt,X(X({},Fc(d)),{},{id:h,loading:x,ref:y,allowClear:!0,size:D,options:E,label:u,placeholder:S.getMessage("tableForm.selectPlaceholder","请选择"),lightLabel:p,labelTrigger:m,fetchData:k},l)):U.jsx(ESt,X(X(X({className:v.className,style:X({minWidth:100},v.style)},Fc(d)),{},{id:h,loading:x,ref:y,allowClear:!0,defaultSearchValue:t.defaultKeyWords,notFoundContent:x?U.jsx(Sl,{size:"small"}):l==null?void 0:l.notFoundContent,fetchData:function(N){b.current=N??"",k(N)},resetData:M,preserveOriginalLabel:!0,optionItemRender:function(N){return typeof N.label=="string"&&b.current?U.jsx(OSt,{label:N.label,words:[b.current]}):N.label},placeholder:S.getMessage("tableForm.selectPlaceholder","请选择"),label:u},l),{},{options:E}),"SearchSelect")},z=F();if(s){var W;return(W=s(v.text,X(X({mode:i},l),{},{options:E,loading:x}),z))!==null&&W!==void 0?W:null}return z}return null};const ISt=ge.forwardRef(MSt);var $St=["radioType","renderFormItem","mode","render","label","light"],RSt=function(t,n){var r;t.radioType;var i=t.renderFormItem,o=t.mode,a=t.render,s=t.label,l=t.light,c=tn(t,$St),u=f.useContext(ar.ConfigContext),d=u.getPrefixCls,h=d("pro-field-cascader"),p=bC(c),m=Le(p,3),v=m[0],y=m[1],S=m[2],b=Wo(),C=f.useRef(),_=f.useState(!1),T=Le(_,2),x=T[0],E=T[1];f.useImperativeHandle(n,function(){return X(X({},C.current||{}),{},{fetchData:function(N){return S(N)}})},[S]);var k=f.useMemo(function(){var Z;if(o==="read"){var N=((Z=c.fieldProps)===null||Z===void 0?void 0:Z.fieldNames)||{},B=N.value,V=B===void 0?"value":B,G=N.label,ie=G===void 0?"label":G,ce=N.children,fe=ce===void 0?"children":ce,ee=new Map,ne=function ue(ye){if(!(ye!=null&&ye.length))return ee;for(var me=ye.length,pe=0;pe<me;){var he=ye[pe++];ee.set(he[V],he[ie]),ue(he[fe])}return ee};return ne(y)}},[o,y,(r=c.fieldProps)===null||r===void 0?void 0:r.fieldNames]);if(o==="read"){var M=U.jsx(U.Fragment,{children:pC(c.text,Rp(c.valueEnum||k))});if(a){var P;return(P=a(c.text,X({mode:o},c.fieldProps),M))!==null&&P!==void 0?P:null}return M}if(o==="edit"){var D,R,A=U.jsx(rC,X(X(X({},Fc(!l)),{},{ref:C,open:x,suffixIcon:v?U.jsx(jd,{}):void 0,placeholder:b.getMessage("tableForm.selectPlaceholder","请选择"),allowClear:((D=c.fieldProps)===null||D===void 0?void 0:D.allowClear)!==!1},c.fieldProps),{},{onDropdownVisibleChange:function(N){var B,V;c==null||(B=c.fieldProps)===null||B===void 0||(V=B.onDropdownVisibleChange)===null||V===void 0||V.call(B,N),E(N)},className:Re((R=c.fieldProps)===null||R===void 0?void 0:R.className,h),options:y}));if(i){var H;A=(H=i(c.text,X(X({mode:o},c.fieldProps),{},{options:y,loading:v}),A))!==null&&H!==void 0?H:null}if(l){var F=c.fieldProps,z=F.disabled,W=F.value,q=!!W&&(W==null?void 0:W.length)!==0;return U.jsx($p,{label:s,disabled:z,bordered:c.bordered,value:q||x?A:null,style:q?{paddingInlineEnd:0}:void 0,allowClear:!1,downIcon:q||x?!1:void 0,onClick:function(){var N,B;E(!0),c==null||(N=c.fieldProps)===null||N===void 0||(B=N.onDropdownVisibleChange)===null||B===void 0||B.call(N,!0)}})}return A}return null};const ASt=ge.forwardRef(RSt);var NSt=["layout","renderFormItem","mode","render"],DSt=["fieldNames"],LSt=function(t,n){var r,i,o=t.layout,a=o===void 0?"horizontal":o,s=t.renderFormItem,l=t.mode,c=t.render,u=tn(t,NSt),d=f.useContext(ar.ConfigContext),h=d.getPrefixCls,p=h("pro-field-checkbox"),m=(r=Or.Item)===null||r===void 0||(i=r.useStatus)===null||i===void 0?void 0:i.call(r),v=bC(u),y=Le(v,3),S=y[0],b=y[1],C=y[2],_=no("Checkbox",function(q){return ae({},".".concat(p),{"&-error":{span:{color:q.colorError}},"&-warning":{span:{color:q.colorWarning}},"&-vertical":ae(ae(ae({},"&".concat(q.antCls,"-checkbox-group"),{display:"inline-block"}),"".concat(q.antCls,"-checkbox-wrapper+").concat(q.antCls,"-checkbox-wrapper"),{"margin-inline-start":"0 !important"}),"".concat(q.antCls,"-checkbox-group-item"),{display:"flex",marginInlineEnd:0})})}),T=_.wrapSSR,x=_.hashId,E=H8==null?void 0:H8(),k=E.token,M=f.useRef();if(f.useImperativeHandle(n,function(){return X(X({},M.current||{}),{},{fetchData:function(Z){return C(Z)}})},[C]),S)return U.jsx(Sl,{size:"small"});if(l==="read"){var P=b!=null&&b.length?b==null?void 0:b.reduce(function(q,Z){var N;return X(X({},q),{},ae({},(N=Z.value)!==null&&N!==void 0?N:"",Z.label))},{}):void 0,D=pC(u.text,Rp(u.valueEnum||P));if(c){var R;return(R=c(u.text,X({mode:l},u.fieldProps),U.jsx(U.Fragment,{children:D})))!==null&&R!==void 0?R:null}return U.jsx("div",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:k.marginSM},children:D})}if(l==="edit"){var A,H=u.fieldProps||{};H.fieldNames;var F=tn(H,DSt),z=T(U.jsx(mp.Group,X(X({},F),{},{className:Re((A=u.fieldProps)===null||A===void 0?void 0:A.className,x,"".concat(p,"-").concat(a),ae(ae({},"".concat(p,"-error"),(m==null?void 0:m.status)==="error"),"".concat(p,"-warning"),(m==null?void 0:m.status)==="warning")),options:b})));if(s){var W;return(W=s(u.text,X(X({mode:l},u.fieldProps),{},{options:b,loading:S}),z))!==null&&W!==void 0?W:null}return z}return null};const FSt=ge.forwardRef(LSt);var jSt=function(t,n){if(typeof t!="string")return t;try{if(n==="json")return JSON.stringify(JSON.parse(t),null,2)}catch{}return t},BSt=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.language,s=a===void 0?"text":a,l=t.renderFormItem,c=t.plain,u=t.fieldProps,d=jSt(r,s),h=qf.useToken(),p=h.token;if(i==="read"){var m=U.jsx("pre",X(X({ref:n},u),{},{style:X({padding:16,overflow:"auto",fontSize:"85%",lineHeight:1.45,color:p.colorTextSecondary,fontFamily:p.fontFamilyCode,backgroundColor:"rgba(150, 150, 150, 0.1)",borderRadius:3,width:"min-content"},u.style),children:U.jsx("code",{children:d})}));return o?o(d,X(X({mode:i},u),{},{ref:n}),m):m}if(i==="edit"||i==="update"){u.value=d;var v=U.jsx($i.TextArea,X(X({rows:5},u),{},{ref:n}));if(c&&(v=U.jsx($i,X(X({},u),{},{ref:n}))),l){var y;return(y=l(d,X(X({mode:i},u),{},{ref:n}),v))!==null&&y!==void 0?y:null}return v}return null};const Pre=ge.forwardRef(BSt);var mu={},qE={},HSt=typeof vo=="object"&&vo&&vo.Object===Object&&vo,Jxe=HSt,zSt=Jxe,USt=typeof self=="object"&&self&&self.Object===Object&&self,WSt=zSt||USt||Function("return this")(),ef=WSt,VSt=ef,KSt=VSt.Symbol,GE=KSt,Mre=GE,e2e=Object.prototype,qSt=e2e.hasOwnProperty,GSt=e2e.toString,Kx=Mre?Mre.toStringTag:void 0;function YSt(e){var t=qSt.call(e,Kx),n=e[Kx];try{e[Kx]=void 0;var r=!0}catch{}var i=GSt.call(e);return r&&(t?e[Kx]=n:delete e[Kx]),i}var XSt=YSt,QSt=Object.prototype,ZSt=QSt.toString;function JSt(e){return ZSt.call(e)}var eCt=JSt,Ire=GE,tCt=XSt,nCt=eCt,rCt="[object Null]",iCt="[object Undefined]",$re=Ire?Ire.toStringTag:void 0;function oCt(e){return e==null?e===void 0?iCt:rCt:$re&&$re in Object(e)?tCt(e):nCt(e)}var n0=oCt,aCt=Array.isArray,Vc=aCt;function sCt(e){return e!=null&&typeof e=="object"}var ih=sCt,lCt=n0,cCt=Vc,uCt=ih,dCt="[object String]";function fCt(e){return typeof e=="string"||!cCt(e)&&uCt(e)&&lCt(e)==dCt}var hCt=fCt;function pCt(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(n(o[l],l,o)===!1)break}return t}}var mCt=pCt,gCt=mCt,vCt=gCt(),t2e=vCt;function yCt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var bCt=yCt,SCt=n0,CCt=ih,xCt="[object Arguments]";function wCt(e){return CCt(e)&&SCt(e)==xCt}var _Ct=wCt,Rre=_Ct,ECt=ih,n2e=Object.prototype,TCt=n2e.hasOwnProperty,kCt=n2e.propertyIsEnumerable,OCt=Rre(function(){return arguments}())?Rre:function(e){return ECt(e)&&TCt.call(e,"callee")&&!kCt.call(e,"callee")},wV=OCt,lk={exports:{}};function PCt(){return!1}var MCt=PCt;lk.exports;(function(e,t){var n=ef,r=MCt,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?n.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||r;e.exports=c})(lk,lk.exports);var LP=lk.exports,ICt=9007199254740991,$Ct=/^(?:0|[1-9]\d*)$/;function RCt(e,t){var n=typeof e;return t=t??ICt,!!t&&(n=="number"||n!="symbol"&&$Ct.test(e))&&e>-1&&e%1==0&&e<t}var _V=RCt,ACt=9007199254740991;function NCt(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ACt}var EV=NCt,DCt=n0,LCt=EV,FCt=ih,jCt="[object Arguments]",BCt="[object Array]",HCt="[object Boolean]",zCt="[object Date]",UCt="[object Error]",WCt="[object Function]",VCt="[object Map]",KCt="[object Number]",qCt="[object Object]",GCt="[object RegExp]",YCt="[object Set]",XCt="[object String]",QCt="[object WeakMap]",ZCt="[object ArrayBuffer]",JCt="[object DataView]",ext="[object Float32Array]",txt="[object Float64Array]",nxt="[object Int8Array]",rxt="[object Int16Array]",ixt="[object Int32Array]",oxt="[object Uint8Array]",axt="[object Uint8ClampedArray]",sxt="[object Uint16Array]",lxt="[object Uint32Array]",mo={};mo[ext]=mo[txt]=mo[nxt]=mo[rxt]=mo[ixt]=mo[oxt]=mo[axt]=mo[sxt]=mo[lxt]=!0;mo[jCt]=mo[BCt]=mo[ZCt]=mo[HCt]=mo[JCt]=mo[zCt]=mo[UCt]=mo[WCt]=mo[VCt]=mo[KCt]=mo[qCt]=mo[GCt]=mo[YCt]=mo[XCt]=mo[QCt]=!1;function cxt(e){return FCt(e)&&LCt(e.length)&&!!mo[DCt(e)]}var uxt=cxt;function dxt(e){return function(t){return e(t)}}var TV=dxt,ck={exports:{}};ck.exports;(function(e,t){var n=Jxe,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o&&n.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(ck,ck.exports);var kV=ck.exports,fxt=uxt,hxt=TV,Are=kV,Nre=Are&&Are.isTypedArray,pxt=Nre?hxt(Nre):fxt,OV=pxt,mxt=bCt,gxt=wV,vxt=Vc,yxt=LP,bxt=_V,Sxt=OV,Cxt=Object.prototype,xxt=Cxt.hasOwnProperty;function wxt(e,t){var n=vxt(e),r=!n&&gxt(e),i=!n&&!r&&yxt(e),o=!n&&!r&&!i&&Sxt(e),a=n||r||i||o,s=a?mxt(e.length,String):[],l=s.length;for(var c in e)(t||xxt.call(e,c))&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||bxt(c,l)))&&s.push(c);return s}var r2e=wxt,_xt=Object.prototype;function Ext(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||_xt;return e===n}var PV=Ext;function Txt(e,t){return function(n){return e(t(n))}}var i2e=Txt,kxt=i2e,Oxt=kxt(Object.keys,Object),Pxt=Oxt,Mxt=PV,Ixt=Pxt,$xt=Object.prototype,Rxt=$xt.hasOwnProperty;function Axt(e){if(!Mxt(e))return Ixt(e);var t=[];for(var n in Object(e))Rxt.call(e,n)&&n!="constructor"&&t.push(n);return t}var Nxt=Axt;function Dxt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Lu=Dxt,Lxt=n0,Fxt=Lu,jxt="[object AsyncFunction]",Bxt="[object Function]",Hxt="[object GeneratorFunction]",zxt="[object Proxy]";function Uxt(e){if(!Fxt(e))return!1;var t=Lxt(e);return t==Bxt||t==Hxt||t==jxt||t==zxt}var MV=Uxt,Wxt=MV,Vxt=EV;function Kxt(e){return e!=null&&Vxt(e.length)&&!Wxt(e)}var SC=Kxt,qxt=r2e,Gxt=Nxt,Yxt=SC;function Xxt(e){return Yxt(e)?qxt(e):Gxt(e)}var YE=Xxt,Qxt=t2e,Zxt=YE;function Jxt(e,t){return e&&Qxt(e,t,Zxt)}var o2e=Jxt;function e2t(e){return e}var FP=e2t,t2t=FP;function n2t(e){return typeof e=="function"?e:t2t}var a2e=n2t,r2t=o2e,i2t=a2e;function o2t(e,t){return e&&r2t(e,i2t(t))}var IV=o2t,a2t=i2e,s2t=a2t(Object.getPrototypeOf,Object),$V=s2t,l2t=n0,c2t=$V,u2t=ih,d2t="[object Object]",f2t=Function.prototype,h2t=Object.prototype,s2e=f2t.toString,p2t=h2t.hasOwnProperty,m2t=s2e.call(Object);function g2t(e){if(!u2t(e)||l2t(e)!=d2t)return!1;var t=c2t(e);if(t===null)return!0;var n=p2t.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&s2e.call(n)==m2t}var l2e=g2t;function v2t(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var c2e=v2t;function y2t(){this.__data__=[],this.size=0}var b2t=y2t;function S2t(e,t){return e===t||e!==e&&t!==t}var XE=S2t,C2t=XE;function x2t(e,t){for(var n=e.length;n--;)if(C2t(e[n][0],t))return n;return-1}var jP=x2t,w2t=jP,_2t=Array.prototype,E2t=_2t.splice;function T2t(e){var t=this.__data__,n=w2t(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():E2t.call(t,n,1),--this.size,!0}var k2t=T2t,O2t=jP;function P2t(e){var t=this.__data__,n=O2t(t,e);return n<0?void 0:t[n][1]}var M2t=P2t,I2t=jP;function $2t(e){return I2t(this.__data__,e)>-1}var R2t=$2t,A2t=jP;function N2t(e,t){var n=this.__data__,r=A2t(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var D2t=N2t,L2t=b2t,F2t=k2t,j2t=M2t,B2t=R2t,H2t=D2t;function CC(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}CC.prototype.clear=L2t;CC.prototype.delete=F2t;CC.prototype.get=j2t;CC.prototype.has=B2t;CC.prototype.set=H2t;var BP=CC,z2t=BP;function U2t(){this.__data__=new z2t,this.size=0}var W2t=U2t;function V2t(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var K2t=V2t;function q2t(e){return this.__data__.get(e)}var G2t=q2t;function Y2t(e){return this.__data__.has(e)}var X2t=Y2t,Q2t=ef,Z2t=Q2t["__core-js_shared__"],J2t=Z2t,EA=J2t,Dre=function(){var e=/[^.]+$/.exec(EA&&EA.keys&&EA.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function ewt(e){return!!Dre&&Dre in e}var twt=ewt,nwt=Function.prototype,rwt=nwt.toString;function iwt(e){if(e!=null){try{return rwt.call(e)}catch{}try{return e+""}catch{}}return""}var u2e=iwt,owt=MV,awt=twt,swt=Lu,lwt=u2e,cwt=/[\\^$.*+?()[\]{}|]/g,uwt=/^\[object .+?Constructor\]$/,dwt=Function.prototype,fwt=Object.prototype,hwt=dwt.toString,pwt=fwt.hasOwnProperty,mwt=RegExp("^"+hwt.call(pwt).replace(cwt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function gwt(e){if(!swt(e)||awt(e))return!1;var t=owt(e)?mwt:uwt;return t.test(lwt(e))}var vwt=gwt;function ywt(e,t){return e==null?void 0:e[t]}var bwt=ywt,Swt=vwt,Cwt=bwt;function xwt(e,t){var n=Cwt(e,t);return Swt(n)?n:void 0}var r0=xwt,wwt=r0,_wt=ef,Ewt=wwt(_wt,"Map"),RV=Ewt,Twt=r0,kwt=Twt(Object,"create"),HP=kwt,Lre=HP;function Owt(){this.__data__=Lre?Lre(null):{},this.size=0}var Pwt=Owt;function Mwt(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Iwt=Mwt,$wt=HP,Rwt="__lodash_hash_undefined__",Awt=Object.prototype,Nwt=Awt.hasOwnProperty;function Dwt(e){var t=this.__data__;if($wt){var n=t[e];return n===Rwt?void 0:n}return Nwt.call(t,e)?t[e]:void 0}var Lwt=Dwt,Fwt=HP,jwt=Object.prototype,Bwt=jwt.hasOwnProperty;function Hwt(e){var t=this.__data__;return Fwt?t[e]!==void 0:Bwt.call(t,e)}var zwt=Hwt,Uwt=HP,Wwt="__lodash_hash_undefined__";function Vwt(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Uwt&&t===void 0?Wwt:t,this}var Kwt=Vwt,qwt=Pwt,Gwt=Iwt,Ywt=Lwt,Xwt=zwt,Qwt=Kwt;function xC(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}xC.prototype.clear=qwt;xC.prototype.delete=Gwt;xC.prototype.get=Ywt;xC.prototype.has=Xwt;xC.prototype.set=Qwt;var Zwt=xC,Fre=Zwt,Jwt=BP,e_t=RV;function t_t(){this.size=0,this.__data__={hash:new Fre,map:new(e_t||Jwt),string:new Fre}}var n_t=t_t;function r_t(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var i_t=r_t,o_t=i_t;function a_t(e,t){var n=e.__data__;return o_t(t)?n[typeof t=="string"?"string":"hash"]:n.map}var zP=a_t,s_t=zP;function l_t(e){var t=s_t(this,e).delete(e);return this.size-=t?1:0,t}var c_t=l_t,u_t=zP;function d_t(e){return u_t(this,e).get(e)}var f_t=d_t,h_t=zP;function p_t(e){return h_t(this,e).has(e)}var m_t=p_t,g_t=zP;function v_t(e,t){var n=g_t(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var y_t=v_t,b_t=n_t,S_t=c_t,C_t=f_t,x_t=m_t,w_t=y_t;function wC(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}wC.prototype.clear=b_t;wC.prototype.delete=S_t;wC.prototype.get=C_t;wC.prototype.has=x_t;wC.prototype.set=w_t;var AV=wC,__t=BP,E_t=RV,T_t=AV,k_t=200;function O_t(e,t){var n=this.__data__;if(n instanceof __t){var r=n.__data__;if(!E_t||r.length<k_t-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new T_t(r)}return n.set(e,t),this.size=n.size,this}var P_t=O_t,M_t=BP,I_t=W2t,$_t=K2t,R_t=G2t,A_t=X2t,N_t=P_t;function _C(e){var t=this.__data__=new M_t(e);this.size=t.size}_C.prototype.clear=I_t;_C.prototype.delete=$_t;_C.prototype.get=R_t;_C.prototype.has=A_t;_C.prototype.set=N_t;var UP=_C,D_t="__lodash_hash_undefined__";function L_t(e){return this.__data__.set(e,D_t),this}var F_t=L_t;function j_t(e){return this.__data__.has(e)}var B_t=j_t,H_t=AV,z_t=F_t,U_t=B_t;function uk(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new H_t;++t<n;)this.add(e[t])}uk.prototype.add=uk.prototype.push=z_t;uk.prototype.has=U_t;var W_t=uk;function V_t(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var K_t=V_t;function q_t(e,t){return e.has(t)}var G_t=q_t,Y_t=W_t,X_t=K_t,Q_t=G_t,Z_t=1,J_t=2;function eEt(e,t,n,r,i,o){var a=n&Z_t,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,h=!0,p=n&J_t?new Y_t:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var m=e[d],v=t[d];if(r)var y=a?r(v,m,d,t,e,o):r(m,v,d,e,t,o);if(y!==void 0){if(y)continue;h=!1;break}if(p){if(!X_t(t,function(S,b){if(!Q_t(p,b)&&(m===S||i(m,S,n,r,o)))return p.push(b)})){h=!1;break}}else if(!(m===v||i(m,v,n,r,o))){h=!1;break}}return o.delete(e),o.delete(t),h}var d2e=eEt,tEt=ef,nEt=tEt.Uint8Array,f2e=nEt;function rEt(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var iEt=rEt;function oEt(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var aEt=oEt,jre=GE,Bre=f2e,sEt=XE,lEt=d2e,cEt=iEt,uEt=aEt,dEt=1,fEt=2,hEt="[object Boolean]",pEt="[object Date]",mEt="[object Error]",gEt="[object Map]",vEt="[object Number]",yEt="[object RegExp]",bEt="[object Set]",SEt="[object String]",CEt="[object Symbol]",xEt="[object ArrayBuffer]",wEt="[object DataView]",Hre=jre?jre.prototype:void 0,TA=Hre?Hre.valueOf:void 0;function _Et(e,t,n,r,i,o,a){switch(n){case wEt:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case xEt:return!(e.byteLength!=t.byteLength||!o(new Bre(e),new Bre(t)));case hEt:case pEt:case vEt:return sEt(+e,+t);case mEt:return e.name==t.name&&e.message==t.message;case yEt:case SEt:return e==t+"";case gEt:var s=cEt;case bEt:var l=r&dEt;if(s||(s=uEt),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=fEt,a.set(e,t);var u=lEt(s(e),s(t),r,i,o,a);return a.delete(e),u;case CEt:if(TA)return TA.call(e)==TA.call(t)}return!1}var EEt=_Et;function TEt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var h2e=TEt,kEt=h2e,OEt=Vc;function PEt(e,t,n){var r=t(e);return OEt(e)?r:kEt(r,n(e))}var p2e=PEt;function MEt(e,t){for(var n=-1,r=e==null?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}var IEt=MEt;function $Et(){return[]}var m2e=$Et,REt=IEt,AEt=m2e,NEt=Object.prototype,DEt=NEt.propertyIsEnumerable,zre=Object.getOwnPropertySymbols,LEt=zre?function(e){return e==null?[]:(e=Object(e),REt(zre(e),function(t){return DEt.call(e,t)}))}:AEt,NV=LEt,FEt=p2e,jEt=NV,BEt=YE;function HEt(e){return FEt(e,BEt,jEt)}var g2e=HEt,Ure=g2e,zEt=1,UEt=Object.prototype,WEt=UEt.hasOwnProperty;function VEt(e,t,n,r,i,o){var a=n&zEt,s=Ure(e),l=s.length,c=Ure(t),u=c.length;if(l!=u&&!a)return!1;for(var d=l;d--;){var h=s[d];if(!(a?h in t:WEt.call(t,h)))return!1}var p=o.get(e),m=o.get(t);if(p&&m)return p==t&&m==e;var v=!0;o.set(e,t),o.set(t,e);for(var y=a;++d<l;){h=s[d];var S=e[h],b=t[h];if(r)var C=a?r(b,S,h,t,e,o):r(S,b,h,e,t,o);if(!(C===void 0?S===b||i(S,b,n,r,o):C)){v=!1;break}y||(y=h=="constructor")}if(v&&!y){var _=e.constructor,T=t.constructor;_!=T&&"constructor"in e&&"constructor"in t&&!(typeof _=="function"&&_ instanceof _&&typeof T=="function"&&T instanceof T)&&(v=!1)}return o.delete(e),o.delete(t),v}var KEt=VEt,qEt=r0,GEt=ef,YEt=qEt(GEt,"DataView"),XEt=YEt,QEt=r0,ZEt=ef,JEt=QEt(ZEt,"Promise"),e4t=JEt,t4t=r0,n4t=ef,r4t=t4t(n4t,"Set"),i4t=r4t,o4t=r0,a4t=ef,s4t=o4t(a4t,"WeakMap"),l4t=s4t,Nj=XEt,Dj=RV,Lj=e4t,Fj=i4t,jj=l4t,v2e=n0,EC=u2e,Wre="[object Map]",c4t="[object Object]",Vre="[object Promise]",Kre="[object Set]",qre="[object WeakMap]",Gre="[object DataView]",u4t=EC(Nj),d4t=EC(Dj),f4t=EC(Lj),h4t=EC(Fj),p4t=EC(jj),s1=v2e;(Nj&&s1(new Nj(new ArrayBuffer(1)))!=Gre||Dj&&s1(new Dj)!=Wre||Lj&&s1(Lj.resolve())!=Vre||Fj&&s1(new Fj)!=Kre||jj&&s1(new jj)!=qre)&&(s1=function(e){var t=v2e(e),n=t==c4t?e.constructor:void 0,r=n?EC(n):"";if(r)switch(r){case u4t:return Gre;case d4t:return Wre;case f4t:return Vre;case h4t:return Kre;case p4t:return qre}return t});var WP=s1,kA=UP,m4t=d2e,g4t=EEt,v4t=KEt,Yre=WP,Xre=Vc,Qre=LP,y4t=OV,b4t=1,Zre="[object Arguments]",Jre="[object Array]",d5="[object Object]",S4t=Object.prototype,eie=S4t.hasOwnProperty;function C4t(e,t,n,r,i,o){var a=Xre(e),s=Xre(t),l=a?Jre:Yre(e),c=s?Jre:Yre(t);l=l==Zre?d5:l,c=c==Zre?d5:c;var u=l==d5,d=c==d5,h=l==c;if(h&&Qre(e)){if(!Qre(t))return!1;a=!0,u=!1}if(h&&!u)return o||(o=new kA),a||y4t(e)?m4t(e,t,n,r,i,o):g4t(e,t,l,n,r,i,o);if(!(n&b4t)){var p=u&&eie.call(e,"__wrapped__"),m=d&&eie.call(t,"__wrapped__");if(p||m){var v=p?e.value():e,y=m?t.value():t;return o||(o=new kA),i(v,y,n,r,o)}}return h?(o||(o=new kA),v4t(e,t,n,r,i,o)):!1}var x4t=C4t,w4t=x4t,tie=ih;function y2e(e,t,n,r,i){return e===t?!0:e==null||t==null||!tie(e)&&!tie(t)?e!==e&&t!==t:w4t(e,t,n,r,y2e,i)}var b2e=y2e,_4t=UP,E4t=b2e,T4t=1,k4t=2;function O4t(e,t,n,r){var i=n.length,o=i,a=!r;if(e==null)return!o;for(e=Object(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){s=n[i];var l=s[0],c=e[l],u=s[1];if(a&&s[2]){if(c===void 0&&!(l in e))return!1}else{var d=new _4t;if(r)var h=r(c,u,l,e,t,d);if(!(h===void 0?E4t(u,c,T4t|k4t,r,d):h))return!1}}return!0}var P4t=O4t,M4t=Lu;function I4t(e){return e===e&&!M4t(e)}var S2e=I4t,$4t=S2e,R4t=YE;function A4t(e){for(var t=R4t(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,$4t(i)]}return t}var N4t=A4t;function D4t(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var C2e=D4t,L4t=P4t,F4t=N4t,j4t=C2e;function B4t(e){var t=F4t(e);return t.length==1&&t[0][2]?j4t(t[0][0],t[0][1]):function(n){return n===e||L4t(n,e,t)}}var H4t=B4t,z4t=n0,U4t=ih,W4t="[object Symbol]";function V4t(e){return typeof e=="symbol"||U4t(e)&&z4t(e)==W4t}var VP=V4t,K4t=Vc,q4t=VP,G4t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Y4t=/^\w*$/;function X4t(e,t){if(K4t(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||q4t(e)?!0:Y4t.test(e)||!G4t.test(e)||t!=null&&e in Object(t)}var DV=X4t,x2e=AV,Q4t="Expected a function";function LV(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Q4t);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(LV.Cache||x2e),n}LV.Cache=x2e;var Z4t=LV,J4t=Z4t,eTt=500;function tTt(e){var t=J4t(e,function(r){return n.size===eTt&&n.clear(),r}),n=t.cache;return t}var nTt=tTt,rTt=nTt,iTt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oTt=/\\(\\)?/g,aTt=rTt(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(iTt,function(n,r,i,o){t.push(i?o.replace(oTt,"$1"):r||n)}),t}),sTt=aTt,nie=GE,lTt=c2e,cTt=Vc,uTt=VP,dTt=1/0,rie=nie?nie.prototype:void 0,iie=rie?rie.toString:void 0;function w2e(e){if(typeof e=="string")return e;if(cTt(e))return lTt(e,w2e)+"";if(uTt(e))return iie?iie.call(e):"";var t=e+"";return t=="0"&&1/e==-dTt?"-0":t}var fTt=w2e,hTt=fTt;function pTt(e){return e==null?"":hTt(e)}var mTt=pTt,gTt=Vc,vTt=DV,yTt=sTt,bTt=mTt;function STt(e,t){return gTt(e)?e:vTt(e,t)?[e]:yTt(bTt(e))}var _2e=STt,CTt=VP,xTt=1/0;function wTt(e){if(typeof e=="string"||CTt(e))return e;var t=e+"";return t=="0"&&1/e==-xTt?"-0":t}var KP=wTt,_Tt=_2e,ETt=KP;function TTt(e,t){t=_Tt(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[ETt(t[n++])];return n&&n==r?e:void 0}var E2e=TTt,kTt=E2e;function OTt(e,t,n){var r=e==null?void 0:kTt(e,t);return r===void 0?n:r}var PTt=OTt;function MTt(e,t){return e!=null&&t in Object(e)}var ITt=MTt,$Tt=_2e,RTt=wV,ATt=Vc,NTt=_V,DTt=EV,LTt=KP;function FTt(e,t,n){t=$Tt(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var a=LTt(t[r]);if(!(o=e!=null&&n(e,a)))break;e=e[a]}return o||++r!=i?o:(i=e==null?0:e.length,!!i&&DTt(i)&&NTt(a,i)&&(ATt(e)||RTt(e)))}var jTt=FTt,BTt=ITt,HTt=jTt;function zTt(e,t){return e!=null&&HTt(e,t,BTt)}var UTt=zTt,WTt=b2e,VTt=PTt,KTt=UTt,qTt=DV,GTt=S2e,YTt=C2e,XTt=KP,QTt=1,ZTt=2;function JTt(e,t){return qTt(e)&>t(t)?YTt(XTt(e),t):function(n){var r=VTt(n,e);return r===void 0&&r===t?KTt(n,e):WTt(t,r,QTt|ZTt)}}var e5t=JTt;function t5t(e){return function(t){return t==null?void 0:t[e]}}var n5t=t5t,r5t=E2e;function i5t(e){return function(t){return r5t(t,e)}}var o5t=i5t,a5t=n5t,s5t=o5t,l5t=DV,c5t=KP;function u5t(e){return l5t(e)?a5t(c5t(e)):s5t(e)}var d5t=u5t,f5t=H4t,h5t=e5t,p5t=FP,m5t=Vc,g5t=d5t;function v5t(e){return typeof e=="function"?e:e==null?p5t:typeof e=="object"?m5t(e)?h5t(e[0],e[1]):f5t(e):g5t(e)}var y5t=v5t,b5t=SC;function S5t(e,t){return function(n,r){if(n==null)return n;if(!b5t(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Object(n);(t?o--:++o<i)&&r(a[o],o,a)!==!1;);return n}}var C5t=S5t,x5t=o2e,w5t=C5t,_5t=w5t(x5t),T2e=_5t,E5t=T2e,T5t=SC;function k5t(e,t){var n=-1,r=T5t(e)?Array(e.length):[];return E5t(e,function(i,o,a){r[++n]=t(i,o,a)}),r}var O5t=k5t,P5t=c2e,M5t=y5t,I5t=O5t,$5t=Vc;function R5t(e,t){var n=$5t(e)?P5t:I5t;return n(e,M5t(t))}var A5t=R5t;Object.defineProperty(qE,"__esModule",{value:!0});qE.flattenNames=void 0;var N5t=hCt,D5t=qP(N5t),L5t=IV,F5t=qP(L5t),j5t=l2e,B5t=qP(j5t),H5t=A5t,z5t=qP(H5t);function qP(e){return e&&e.__esModule?e:{default:e}}var U5t=qE.flattenNames=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[];return(0,z5t.default)(t,function(r){Array.isArray(r)?e(r).map(function(i){return n.push(i)}):(0,B5t.default)(r)?(0,F5t.default)(r,function(i,o){i===!0&&n.push(o),n.push(o+"-"+i)}):(0,D5t.default)(r)&&n.push(r)}),n};qE.default=U5t;var QE={};function W5t(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var k2e=W5t,V5t=r0,K5t=function(){try{var e=V5t(Object,"defineProperty");return e({},"",{}),e}catch{}}(),O2e=K5t,oie=O2e;function q5t(e,t,n){t=="__proto__"&&oie?oie(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var FV=q5t,G5t=FV,Y5t=XE,X5t=Object.prototype,Q5t=X5t.hasOwnProperty;function Z5t(e,t,n){var r=e[t];(!(Q5t.call(e,t)&&Y5t(r,n))||n===void 0&&!(t in e))&&G5t(e,t,n)}var P2e=Z5t,J5t=P2e,e8t=FV;function t8t(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=r?r(n[s],e[s],s,n,e):void 0;l===void 0&&(l=e[s]),i?e8t(n,s,l):J5t(n,s,l)}return n}var ZE=t8t,n8t=ZE,r8t=YE;function i8t(e,t){return e&&n8t(t,r8t(t),e)}var o8t=i8t;function a8t(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var s8t=a8t,l8t=Lu,c8t=PV,u8t=s8t,d8t=Object.prototype,f8t=d8t.hasOwnProperty;function h8t(e){if(!l8t(e))return u8t(e);var t=c8t(e),n=[];for(var r in e)r=="constructor"&&(t||!f8t.call(e,r))||n.push(r);return n}var p8t=h8t,m8t=r2e,g8t=p8t,v8t=SC;function y8t(e){return v8t(e)?m8t(e,!0):g8t(e)}var JE=y8t,b8t=ZE,S8t=JE;function C8t(e,t){return e&&b8t(t,S8t(t),e)}var x8t=C8t,dk={exports:{}};dk.exports;(function(e,t){var n=ef,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;function l(c,u){if(u)return c.slice();var d=c.length,h=s?s(d):new c.constructor(d);return c.copy(h),h}e.exports=l})(dk,dk.exports);var M2e=dk.exports;function w8t(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var I2e=w8t,_8t=ZE,E8t=NV;function T8t(e,t){return _8t(e,E8t(e),t)}var k8t=T8t,O8t=h2e,P8t=$V,M8t=NV,I8t=m2e,$8t=Object.getOwnPropertySymbols,R8t=$8t?function(e){for(var t=[];e;)O8t(t,M8t(e)),e=P8t(e);return t}:I8t,$2e=R8t,A8t=ZE,N8t=$2e;function D8t(e,t){return A8t(e,N8t(e),t)}var L8t=D8t,F8t=p2e,j8t=$2e,B8t=JE;function H8t(e){return F8t(e,B8t,j8t)}var z8t=H8t,U8t=Object.prototype,W8t=U8t.hasOwnProperty;function V8t(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&W8t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var K8t=V8t,aie=f2e;function q8t(e){var t=new e.constructor(e.byteLength);return new aie(t).set(new aie(e)),t}var jV=q8t,G8t=jV;function Y8t(e,t){var n=t?G8t(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var X8t=Y8t,Q8t=/\w*$/;function Z8t(e){var t=new e.constructor(e.source,Q8t.exec(e));return t.lastIndex=e.lastIndex,t}var J8t=Z8t,sie=GE,lie=sie?sie.prototype:void 0,cie=lie?lie.valueOf:void 0;function e3t(e){return cie?Object(cie.call(e)):{}}var t3t=e3t,n3t=jV;function r3t(e,t){var n=t?n3t(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var R2e=r3t,i3t=jV,o3t=X8t,a3t=J8t,s3t=t3t,l3t=R2e,c3t="[object Boolean]",u3t="[object Date]",d3t="[object Map]",f3t="[object Number]",h3t="[object RegExp]",p3t="[object Set]",m3t="[object String]",g3t="[object Symbol]",v3t="[object ArrayBuffer]",y3t="[object DataView]",b3t="[object Float32Array]",S3t="[object Float64Array]",C3t="[object Int8Array]",x3t="[object Int16Array]",w3t="[object Int32Array]",_3t="[object Uint8Array]",E3t="[object Uint8ClampedArray]",T3t="[object Uint16Array]",k3t="[object Uint32Array]";function O3t(e,t,n){var r=e.constructor;switch(t){case v3t:return i3t(e);case c3t:case u3t:return new r(+e);case y3t:return o3t(e,n);case b3t:case S3t:case C3t:case x3t:case w3t:case _3t:case E3t:case T3t:case k3t:return l3t(e,n);case d3t:return new r;case f3t:case m3t:return new r(e);case h3t:return a3t(e);case p3t:return new r;case g3t:return s3t(e)}}var P3t=O3t,M3t=Lu,uie=Object.create,I3t=function(){function e(){}return function(t){if(!M3t(t))return{};if(uie)return uie(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),$3t=I3t,R3t=$3t,A3t=$V,N3t=PV;function D3t(e){return typeof e.constructor=="function"&&!N3t(e)?R3t(A3t(e)):{}}var A2e=D3t,L3t=WP,F3t=ih,j3t="[object Map]";function B3t(e){return F3t(e)&&L3t(e)==j3t}var H3t=B3t,z3t=H3t,U3t=TV,die=kV,fie=die&&die.isMap,W3t=fie?U3t(fie):z3t,V3t=W3t,K3t=WP,q3t=ih,G3t="[object Set]";function Y3t(e){return q3t(e)&&K3t(e)==G3t}var X3t=Y3t,Q3t=X3t,Z3t=TV,hie=kV,pie=hie&&hie.isSet,J3t=pie?Z3t(pie):Q3t,e9t=J3t,t9t=UP,n9t=k2e,r9t=P2e,i9t=o8t,o9t=x8t,a9t=M2e,s9t=I2e,l9t=k8t,c9t=L8t,u9t=g2e,d9t=z8t,f9t=WP,h9t=K8t,p9t=P3t,m9t=A2e,g9t=Vc,v9t=LP,y9t=V3t,b9t=Lu,S9t=e9t,C9t=YE,x9t=JE,w9t=1,_9t=2,E9t=4,N2e="[object Arguments]",T9t="[object Array]",k9t="[object Boolean]",O9t="[object Date]",P9t="[object Error]",D2e="[object Function]",M9t="[object GeneratorFunction]",I9t="[object Map]",$9t="[object Number]",L2e="[object Object]",R9t="[object RegExp]",A9t="[object Set]",N9t="[object String]",D9t="[object Symbol]",L9t="[object WeakMap]",F9t="[object ArrayBuffer]",j9t="[object DataView]",B9t="[object Float32Array]",H9t="[object Float64Array]",z9t="[object Int8Array]",U9t="[object Int16Array]",W9t="[object Int32Array]",V9t="[object Uint8Array]",K9t="[object Uint8ClampedArray]",q9t="[object Uint16Array]",G9t="[object Uint32Array]",io={};io[N2e]=io[T9t]=io[F9t]=io[j9t]=io[k9t]=io[O9t]=io[B9t]=io[H9t]=io[z9t]=io[U9t]=io[W9t]=io[I9t]=io[$9t]=io[L2e]=io[R9t]=io[A9t]=io[N9t]=io[D9t]=io[V9t]=io[K9t]=io[q9t]=io[G9t]=!0;io[P9t]=io[D2e]=io[L9t]=!1;function z8(e,t,n,r,i,o){var a,s=t&w9t,l=t&_9t,c=t&E9t;if(n&&(a=i?n(e,r,i,o):n(e)),a!==void 0)return a;if(!b9t(e))return e;var u=g9t(e);if(u){if(a=h9t(e),!s)return s9t(e,a)}else{var d=f9t(e),h=d==D2e||d==M9t;if(v9t(e))return a9t(e,s);if(d==L2e||d==N2e||h&&!i){if(a=l||h?{}:m9t(e),!s)return l?c9t(e,o9t(a,e)):l9t(e,i9t(a,e))}else{if(!io[d])return i?e:{};a=p9t(e,d,s)}}o||(o=new t9t);var p=o.get(e);if(p)return p;o.set(e,a),S9t(e)?e.forEach(function(y){a.add(z8(y,t,n,y,e,o))}):y9t(e)&&e.forEach(function(y,S){a.set(S,z8(y,t,n,S,e,o))});var m=c?l?d9t:u9t:l?x9t:C9t,v=u?void 0:m(e);return n9t(v||e,function(y,S){v&&(S=y,y=e[S]),r9t(a,S,z8(y,t,n,S,e,o))}),a}var Y9t=z8,X9t=Y9t,Q9t=1,Z9t=4;function J9t(e){return X9t(e,Q9t|Z9t)}var ekt=J9t;Object.defineProperty(QE,"__esModule",{value:!0});QE.mergeClasses=void 0;var tkt=IV,nkt=F2e(tkt),rkt=ekt,ikt=F2e(rkt),okt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function F2e(e){return e&&e.__esModule?e:{default:e}}var akt=QE.mergeClasses=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=t.default&&(0,ikt.default)(t.default)||{};return n.map(function(i){var o=t[i];return o&&(0,nkt.default)(o,function(a,s){r[s]||(r[s]={}),r[s]=okt({},r[s],o[s])}),i}),r};QE.default=akt;var e4={};Object.defineProperty(e4,"__esModule",{value:!0});e4.autoprefix=void 0;var skt=IV,mie=ckt(skt),lkt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function ckt(e){return e&&e.__esModule?e:{default:e}}var ukt={borderRadius:function(t){return{msBorderRadius:t,MozBorderRadius:t,OBorderRadius:t,WebkitBorderRadius:t,borderRadius:t}},boxShadow:function(t){return{msBoxShadow:t,MozBoxShadow:t,OBoxShadow:t,WebkitBoxShadow:t,boxShadow:t}},userSelect:function(t){return{WebkitTouchCallout:t,KhtmlUserSelect:t,MozUserSelect:t,msUserSelect:t,WebkitUserSelect:t,userSelect:t}},flex:function(t){return{WebkitBoxFlex:t,MozBoxFlex:t,WebkitFlex:t,msFlex:t,flex:t}},flexBasis:function(t){return{WebkitFlexBasis:t,flexBasis:t}},justifyContent:function(t){return{WebkitJustifyContent:t,justifyContent:t}},transition:function(t){return{msTransition:t,MozTransition:t,OTransition:t,WebkitTransition:t,transition:t}},transform:function(t){return{msTransform:t,MozTransform:t,OTransform:t,WebkitTransform:t,transform:t}},absolute:function(t){var n=t&&t.split(" ");return{position:"absolute",top:n&&n[0],right:n&&n[1],bottom:n&&n[2],left:n&&n[3]}},extend:function(t,n){var r=n[t];return r||{extend:t}}},dkt=e4.autoprefix=function(t){var n={};return(0,mie.default)(t,function(r,i){var o={};(0,mie.default)(r,function(a,s){var l=ukt[s];l?o=lkt({},o,l(a)):o[s]=a}),n[i]=o}),n};e4.default=dkt;var t4={};Object.defineProperty(t4,"__esModule",{value:!0});t4.hover=void 0;var fkt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hkt=f,OA=pkt(hkt);function pkt(e){return e&&e.__esModule?e:{default:e}}function mkt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gie(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function gkt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var vkt=t4.hover=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){gkt(i,r);function i(){var o,a,s,l;mkt(this,i);for(var c=arguments.length,u=Array(c),d=0;d<c;d++)u[d]=arguments[d];return l=(a=(s=gie(this,(o=i.__proto__||Object.getPrototypeOf(i)).call.apply(o,[this].concat(u))),s),s.state={hover:!1},s.handleMouseOver=function(){return s.setState({hover:!0})},s.handleMouseOut=function(){return s.setState({hover:!1})},s.render=function(){return OA.default.createElement(n,{onMouseOver:s.handleMouseOver,onMouseOut:s.handleMouseOut},OA.default.createElement(t,fkt({},s.props,s.state)))},a),gie(s,l)}return i}(OA.default.Component)};t4.default=vkt;var n4={};Object.defineProperty(n4,"__esModule",{value:!0});n4.active=void 0;var ykt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bkt=f,PA=Skt(bkt);function Skt(e){return e&&e.__esModule?e:{default:e}}function Ckt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vie(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function xkt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var wkt=n4.active=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){xkt(i,r);function i(){var o,a,s,l;Ckt(this,i);for(var c=arguments.length,u=Array(c),d=0;d<c;d++)u[d]=arguments[d];return l=(a=(s=vie(this,(o=i.__proto__||Object.getPrototypeOf(i)).call.apply(o,[this].concat(u))),s),s.state={active:!1},s.handleMouseDown=function(){return s.setState({active:!0})},s.handleMouseUp=function(){return s.setState({active:!1})},s.render=function(){return PA.default.createElement(n,{onMouseDown:s.handleMouseDown,onMouseUp:s.handleMouseUp},PA.default.createElement(t,ykt({},s.props,s.state)))},a),vie(s,l)}return i}(PA.default.Component)};n4.default=wkt;var BV={};Object.defineProperty(BV,"__esModule",{value:!0});var _kt=function(t,n){var r={},i=function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;r[a]=s};return t===0&&i("first-child"),t===n-1&&i("last-child"),(t===0||t%2===0)&&i("even"),Math.abs(t%2)===1&&i("odd"),i("nth-child",t),r};BV.default=_kt;Object.defineProperty(mu,"__esModule",{value:!0});mu.ReactCSS=mu.loop=mu.handleActive=mu.handleHover=mu.hover=void 0;var Ekt=qE,Tkt=TC(Ekt),kkt=QE,Okt=TC(kkt),Pkt=e4,Mkt=TC(Pkt),Ikt=t4,j2e=TC(Ikt),$kt=n4,Rkt=TC($kt),Akt=BV,Nkt=TC(Akt);function TC(e){return e&&e.__esModule?e:{default:e}}mu.hover=j2e.default;mu.handleHover=j2e.default;mu.handleActive=Rkt.default;mu.loop=Nkt.default;var Dkt=mu.ReactCSS=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=(0,Tkt.default)(r),a=(0,Okt.default)(t,o);return(0,Mkt.default)(a)},Cg=mu.default=Dkt,Lkt=FV,Fkt=XE;function jkt(e,t,n){(n!==void 0&&!Fkt(e[t],n)||n===void 0&&!(t in e))&&Lkt(e,t,n)}var B2e=jkt,Bkt=SC,Hkt=ih;function zkt(e){return Hkt(e)&&Bkt(e)}var Ukt=zkt;function Wkt(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var H2e=Wkt,Vkt=ZE,Kkt=JE;function qkt(e){return Vkt(e,Kkt(e))}var Gkt=qkt,yie=B2e,Ykt=M2e,Xkt=R2e,Qkt=I2e,Zkt=A2e,bie=wV,Sie=Vc,Jkt=Ukt,e6t=LP,t6t=MV,n6t=Lu,r6t=l2e,i6t=OV,Cie=H2e,o6t=Gkt;function a6t(e,t,n,r,i,o,a){var s=Cie(e,n),l=Cie(t,n),c=a.get(l);if(c){yie(e,n,c);return}var u=o?o(s,l,n+"",e,t,a):void 0,d=u===void 0;if(d){var h=Sie(l),p=!h&&e6t(l),m=!h&&!p&&i6t(l);u=l,h||p||m?Sie(s)?u=s:Jkt(s)?u=Qkt(s):p?(d=!1,u=Ykt(l,!0)):m?(d=!1,u=Xkt(l,!0)):u=[]:r6t(l)||bie(l)?(u=s,bie(s)?u=o6t(s):(!n6t(s)||t6t(s))&&(u=Zkt(l))):d=!1}d&&(a.set(l,u),i(u,l,r,o,a),a.delete(l)),yie(e,n,u)}var s6t=a6t,l6t=UP,c6t=B2e,u6t=t2e,d6t=s6t,f6t=Lu,h6t=JE,p6t=H2e;function z2e(e,t,n,r,i){e!==t&&u6t(t,function(o,a){if(i||(i=new l6t),f6t(o))d6t(e,t,a,n,z2e,r,i);else{var s=r?r(p6t(e,a),o,a+"",e,t,i):void 0;s===void 0&&(s=o),c6t(e,a,s)}},h6t)}var m6t=z2e;function g6t(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var v6t=g6t,y6t=v6t,xie=Math.max;function b6t(e,t,n){return t=xie(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=xie(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),y6t(e,this,s)}}var S6t=b6t;function C6t(e){return function(){return e}}var x6t=C6t,w6t=x6t,wie=O2e,_6t=FP,E6t=wie?function(e,t){return wie(e,"toString",{configurable:!0,enumerable:!1,value:w6t(t),writable:!0})}:_6t,T6t=E6t,k6t=800,O6t=16,P6t=Date.now;function M6t(e){var t=0,n=0;return function(){var r=P6t(),i=O6t-(r-n);if(n=r,i>0){if(++t>=k6t)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var I6t=M6t,$6t=T6t,R6t=I6t,A6t=R6t($6t),N6t=A6t,D6t=FP,L6t=S6t,F6t=N6t;function j6t(e,t){return F6t(L6t(e,t,D6t),e+"")}var B6t=j6t,H6t=XE,z6t=SC,U6t=_V,W6t=Lu;function V6t(e,t,n){if(!W6t(n))return!1;var r=typeof t;return(r=="number"?z6t(n)&&U6t(t,n.length):r=="string"&&t in n)?H6t(n[t],e):!1}var K6t=V6t,q6t=B6t,G6t=K6t;function Y6t(e){return q6t(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,a&&G6t(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t})}var X6t=Y6t,Q6t=m6t,Z6t=X6t,J6t=Z6t(function(e,t,n){Q6t(e,t,n)}),eOt=J6t;const tOt=vi(eOt);var nOt=function(t,n,r,i,o){var a=o.clientWidth,s=o.clientHeight,l=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,c=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,u=l-(o.getBoundingClientRect().left+window.pageXOffset),d=c-(o.getBoundingClientRect().top+window.pageYOffset);if(r==="vertical"){var h;if(d<0?h=0:d>s?h=1:h=Math.round(d*100/s)/100,n.a!==h)return{h:n.h,s:n.s,l:n.l,a:h,source:"rgb"}}else{var p;if(u<0?p=0:u>a?p=1:p=Math.round(u*100/a)/100,i!==p)return{h:n.h,s:n.s,l:n.l,a:p,source:"rgb"}}return null},MA={},rOt=function(t,n,r,i){if(typeof document>"u"&&!i)return null;var o=i?new i:document.createElement("canvas");o.width=r*2,o.height=r*2;var a=o.getContext("2d");return a?(a.fillStyle=t,a.fillRect(0,0,o.width,o.height),a.fillStyle=n,a.fillRect(0,0,r,r),a.translate(r,r),a.fillRect(0,0,r,r),o.toDataURL()):null},iOt=function(t,n,r,i){var o="".concat(t,"-").concat(n,"-").concat(r).concat(i?"-server":"");if(MA[o])return MA[o];var a=rOt(t,n,r,i);return MA[o]=a,a};function k_(e){"@babel/helpers - typeof";return k_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},k_(e)}function _ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function f5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_ie(Object(n),!0).forEach(function(r){oOt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_ie(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oOt(e,t,n){return t=aOt(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aOt(e){var t=sOt(e,"string");return k_(t)==="symbol"?t:String(t)}function sOt(e,t){if(k_(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(k_(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var GP=function(t){var n=t.white,r=t.grey,i=t.size,o=t.renderers,a=t.borderRadius,s=t.boxShadow,l=t.children,c=Cg({default:{grid:{borderRadius:a,boxShadow:s,absolute:"0px 0px 0px 0px",background:"url(".concat(iOt(n,r,i,o.canvas),") center left")}}});return f.isValidElement(l)?ge.cloneElement(l,f5(f5({},l.props),{},{style:f5(f5({},l.props.style),c.grid)})):ge.createElement("div",{style:c.grid})};GP.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};function oS(e){"@babel/helpers - typeof";return oS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oS(e)}function Eie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function lOt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Eie(Object(n),!0).forEach(function(r){cOt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Eie(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cOt(e,t,n){return t=U2e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uOt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dOt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,U2e(r.key),r)}}function fOt(e,t,n){return t&&dOt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function U2e(e){var t=hOt(e,"string");return oS(t)==="symbol"?t:String(t)}function hOt(e,t){if(oS(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(oS(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pOt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bj(e,t)}function Bj(e,t){return Bj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Bj(e,t)}function mOt(e){var t=yOt();return function(){var r=fk(e),i;if(t){var o=fk(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return gOt(this,i)}}function gOt(e,t){if(t&&(oS(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vOt(e)}function vOt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yOt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function fk(e){return fk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},fk(e)}var bOt=function(e){pOt(n,e);var t=mOt(n);function n(){var r;uOt(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),r.handleChange=function(s){var l=nOt(s,r.props.hsl,r.props.direction,r.props.a,r.container);l&&typeof r.props.onChange=="function"&&r.props.onChange(l,s)},r.handleMouseDown=function(s){r.handleChange(s),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleChange),window.removeEventListener("mouseup",r.handleMouseUp)},r}return fOt(n,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var i=this,o=this.props.rgb,a=Cg({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba(".concat(o.r,",").concat(o.g,",").concat(o.b,`, 0) 0%,
|
||
rgba(`).concat(o.r,",").concat(o.g,",").concat(o.b,", 1) 100%)"),boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:"".concat(o.a*100,"%")},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba(".concat(o.r,",").concat(o.g,",").concat(o.b,`, 0) 0%,
|
||
rgba(`).concat(o.r,",").concat(o.g,",").concat(o.b,", 1) 100%)")},pointer:{left:0,top:"".concat(o.a*100,"%")}},overwrite:lOt({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return ge.createElement("div",{style:a.alpha},ge.createElement("div",{style:a.checkboard},ge.createElement(GP,{renderers:this.props.renderers})),ge.createElement("div",{style:a.gradient}),ge.createElement("div",{style:a.container,ref:function(l){return i.container=l},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},ge.createElement("div",{style:a.pointer},this.props.pointer?ge.createElement(this.props.pointer,this.props):ge.createElement("div",{style:a.slider}))))}}]),n}(f.PureComponent||f.Component),SOt=function(t,n,r,i){var o=i.clientWidth,a=i.clientHeight,s=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,l=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,c=s-(i.getBoundingClientRect().left+window.pageXOffset),u=l-(i.getBoundingClientRect().top+window.pageYOffset);if(n==="vertical"){var d;if(u<0)d=359;else if(u>a)d=0;else{var h=-(u*100/a)+100;d=360*h/100}if(r.h!==d)return{h:d,s:r.s,l:r.l,a:r.a,source:"hsl"}}else{var p;if(c<0)p=0;else if(c>o)p=359;else{var m=c*100/o;p=360*m/100}if(r.h!==p)return{h:p,s:r.s,l:r.l,a:r.a,source:"hsl"}}return null};function aS(e){"@babel/helpers - typeof";return aS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},aS(e)}function COt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xOt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_Ot(r.key),r)}}function wOt(e,t,n){return t&&xOt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _Ot(e){var t=EOt(e,"string");return aS(t)==="symbol"?t:String(t)}function EOt(e,t){if(aS(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(aS(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function TOt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Hj(e,t)}function Hj(e,t){return Hj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Hj(e,t)}function kOt(e){var t=MOt();return function(){var r=hk(e),i;if(t){var o=hk(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return OOt(this,i)}}function OOt(e,t){if(t&&(aS(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return POt(e)}function POt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function MOt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function hk(e){return hk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},hk(e)}var IOt=function(e){TOt(n,e);var t=kOt(n);function n(){var r;COt(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),r.handleChange=function(s){var l=SOt(s,r.props.direction,r.props.hsl,r.container);l&&typeof r.props.onChange=="function"&&r.props.onChange(l,s)},r.handleMouseDown=function(s){r.handleChange(s),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r}return wOt(n,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var i=this,o=this.props.direction,a=o===void 0?"horizontal":o,s=Cg({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:"".concat(this.props.hsl.h*100/360,"%")},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:"".concat(-(this.props.hsl.h*100/360)+100,"%")}}},{vertical:a==="vertical"});return ge.createElement("div",{style:s.hue},ge.createElement("div",{className:"hue-".concat(a),style:s.container,ref:function(c){return i.container=c},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},ge.createElement("style",null,`
|
||
.hue-horizontal {
|
||
background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0
|
||
33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
||
background: -webkit-linear-gradient(to right, #f00 0%, #ff0
|
||
17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
||
}
|
||
|
||
.hue-vertical {
|
||
background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,
|
||
#0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
||
background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,
|
||
#0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
||
}
|
||
`),ge.createElement("div",{style:s.pointer},this.props.pointer?ge.createElement(this.props.pointer,this.props):ge.createElement("div",{style:s.slider}))))}}]),n}(f.PureComponent||f.Component),$Ot=ef,ROt=function(){return $Ot.Date.now()},AOt=ROt,NOt=/\s/;function DOt(e){for(var t=e.length;t--&&NOt.test(e.charAt(t)););return t}var LOt=DOt,FOt=LOt,jOt=/^\s+/;function BOt(e){return e&&e.slice(0,FOt(e)+1).replace(jOt,"")}var HOt=BOt,zOt=HOt,Tie=Lu,UOt=VP,kie=NaN,WOt=/^[-+]0x[0-9a-f]+$/i,VOt=/^0b[01]+$/i,KOt=/^0o[0-7]+$/i,qOt=parseInt;function GOt(e){if(typeof e=="number")return e;if(UOt(e))return kie;if(Tie(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Tie(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=zOt(e);var n=VOt.test(e);return n||KOt.test(e)?qOt(e.slice(2),n?2:8):WOt.test(e)?kie:+e}var YOt=GOt,XOt=Lu,IA=AOt,Oie=YOt,QOt="Expected a function",ZOt=Math.max,JOt=Math.min;function ePt(e,t,n){var r,i,o,a,s,l,c=0,u=!1,d=!1,h=!0;if(typeof e!="function")throw new TypeError(QOt);t=Oie(t)||0,XOt(n)&&(u=!!n.leading,d="maxWait"in n,o=d?ZOt(Oie(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h);function p(x){var E=r,k=i;return r=i=void 0,c=x,a=e.apply(k,E),a}function m(x){return c=x,s=setTimeout(S,t),u?p(x):a}function v(x){var E=x-l,k=x-c,M=t-E;return d?JOt(M,o-k):M}function y(x){var E=x-l,k=x-c;return l===void 0||E>=t||E<0||d&&k>=o}function S(){var x=IA();if(y(x))return b(x);s=setTimeout(S,v(x))}function b(x){return s=void 0,h&&r?p(x):(r=i=void 0,a)}function C(){s!==void 0&&clearTimeout(s),c=0,r=l=i=s=void 0}function _(){return s===void 0?a:b(IA())}function T(){var x=IA(),E=y(x);if(r=arguments,i=this,l=x,E){if(s===void 0)return m(l);if(d)return clearTimeout(s),s=setTimeout(S,t),p(l)}return s===void 0&&(s=setTimeout(S,t)),a}return T.cancel=C,T.flush=_,T}var W2e=ePt;const tPt=vi(W2e);var nPt=W2e,rPt=Lu,iPt="Expected a function";function oPt(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(iPt);return rPt(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),nPt(e,t,{leading:r,maxWait:t,trailing:i})}var aPt=oPt;const sPt=vi(aPt);var lPt=function(t,n,r){var i=r.getBoundingClientRect(),o=i.width,a=i.height,s=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,l=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,c=s-(r.getBoundingClientRect().left+window.pageXOffset),u=l-(r.getBoundingClientRect().top+window.pageYOffset);c<0?c=0:c>o&&(c=o),u<0?u=0:u>a&&(u=a);var d=c/o,h=1-u/a;return{h:n.h,s:d,v:h,a:n.a,source:"hsv"}};function sS(e){"@babel/helpers - typeof";return sS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sS(e)}function cPt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uPt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fPt(r.key),r)}}function dPt(e,t,n){return t&&uPt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fPt(e){var t=hPt(e,"string");return sS(t)==="symbol"?t:String(t)}function hPt(e,t){if(sS(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(sS(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function pPt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zj(e,t)}function zj(e,t){return zj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},zj(e,t)}function mPt(e){var t=yPt();return function(){var r=pk(e),i;if(t){var o=pk(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return gPt(this,i)}}function gPt(e,t){if(t&&(sS(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vPt(e)}function vPt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yPt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function pk(e){return pk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},pk(e)}var bPt=function(e){pPt(n,e);var t=mPt(n);function n(r){var i;return cPt(this,n),i=t.call(this,r),i.handleChange=function(o){typeof i.props.onChange=="function"&&i.throttle(i.props.onChange,lPt(o,i.props.hsl,i.container),o)},i.handleMouseDown=function(o){i.handleChange(o);var a=i.getContainerRenderWindow();a.addEventListener("mousemove",i.handleChange),a.addEventListener("mouseup",i.handleMouseUp)},i.handleMouseUp=function(){i.unbindEventListeners()},i.throttle=sPt(function(o,a,s){o(a,s)},50),i}return dPt(n,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var i=this.container,o=window;!o.document.contains(i)&&o.parent!==o;)o=o.parent;return o}},{key:"unbindEventListeners",value:function(){var i=this.getContainerRenderWindow();i.removeEventListener("mousemove",this.handleChange),i.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var i=this,o=this.props.style||{},a=o.color,s=o.white,l=o.black,c=o.pointer,u=o.circle,d=Cg({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl(".concat(this.props.hsl.h,",100%, 50%)"),borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:"".concat(-(this.props.hsv.v*100)+100,"%"),left:"".concat(this.props.hsv.s*100,"%"),cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:`0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),
|
||
0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:a,white:s,black:l,pointer:c,circle:u}},{custom:!!this.props.style});return ge.createElement("div",{style:d.color,ref:function(p){return i.container=p},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},ge.createElement("style",null,`
|
||
.saturation-white {
|
||
background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));
|
||
background: linear-gradient(to right, #fff, rgba(255,255,255,0));
|
||
}
|
||
.saturation-black {
|
||
background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));
|
||
background: linear-gradient(to top, #000, rgba(0,0,0,0));
|
||
}
|
||
`),ge.createElement("div",{style:d.white,className:"saturation-white"},ge.createElement("div",{style:d.black,className:"saturation-black"}),ge.createElement("div",{style:d.pointer},this.props.pointer?ge.createElement(this.props.pointer,this.props):ge.createElement("div",{style:d.circle}))))}}]),n}(f.PureComponent||f.Component),SPt=k2e,CPt=T2e,xPt=a2e,wPt=Vc;function _Pt(e,t){var n=wPt(e)?SPt:CPt;return n(e,xPt(t))}var EPt=_Pt,TPt=EPt;const kPt=vi(TPt);function mk(e){"@babel/helpers - typeof";return mk=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mk(e)}var OPt=/^\s+/,PPt=/\s+$/;function vr(e,t){if(e=e||"",t=t||{},e instanceof vr)return e;if(!(this instanceof vr))return new vr(e,t);var n=MPt(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.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._ok=n.ok}vr.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),n,r,i,o,a,s;return n=t.r/255,r=t.g/255,i=t.b/255,n<=.03928?o=n/12.92:o=Math.pow((n+.055)/1.055,2.4),r<=.03928?a=r/12.92:a=Math.pow((r+.055)/1.055,2.4),i<=.03928?s=i/12.92:s=Math.pow((i+.055)/1.055,2.4),.2126*o+.7152*a+.0722*s},setAlpha:function(t){return this._a=V2e(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=Mie(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=Mie(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this._a==1?"hsv("+n+", "+r+"%, "+i+"%)":"hsva("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var t=Pie(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=Pie(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this._a==1?"hsl("+n+", "+r+"%, "+i+"%)":"hsla("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHex:function(t){return Iie(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return APt(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Po(this._r,255)*100)+"%",g:Math.round(Po(this._g,255)*100)+"%",b:Math.round(Po(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Po(this._r,255)*100)+"%, "+Math.round(Po(this._g,255)*100)+"%, "+Math.round(Po(this._b,255)*100)+"%)":"rgba("+Math.round(Po(this._r,255)*100)+"%, "+Math.round(Po(this._g,255)*100)+"%, "+Math.round(Po(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:KPt[Iie(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var n="#"+$ie(this._r,this._g,this._b,this._a),r=n,i=this._gradientType?"GradientType = 1, ":"";if(t){var o=vr(t);r="#"+$ie(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+n+",endColorstr="+r+")"},toString:function(t){var n=!!t;t=t||this._format;var r=!1,i=this._a<1&&this._a>=0,o=!n&&i&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return o?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return vr(this.toString())},_applyModification:function(t,n){var r=t.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(FPt,arguments)},brighten:function(){return this._applyModification(jPt,arguments)},darken:function(){return this._applyModification(BPt,arguments)},desaturate:function(){return this._applyModification(NPt,arguments)},saturate:function(){return this._applyModification(DPt,arguments)},greyscale:function(){return this._applyModification(LPt,arguments)},spin:function(){return this._applyModification(HPt,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(WPt,arguments)},complement:function(){return this._applyCombination(zPt,arguments)},monochromatic:function(){return this._applyCombination(VPt,arguments)},splitcomplement:function(){return this._applyCombination(UPt,arguments)},triad:function(){return this._applyCombination(Rie,[3])},tetrad:function(){return this._applyCombination(Rie,[4])}};vr.fromRatio=function(e,t){if(mk(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?n[r]=e[r]:n[r]=O2(e[r]));e=n}return vr(e,t)};function MPt(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;return typeof e=="string"&&(e=XPt(e)),mk(e)=="object"&&(Sh(e.r)&&Sh(e.g)&&Sh(e.b)?(t=IPt(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Sh(e.h)&&Sh(e.s)&&Sh(e.v)?(r=O2(e.s),i=O2(e.v),t=RPt(e.h,r,i),a=!0,s="hsv"):Sh(e.h)&&Sh(e.s)&&Sh(e.l)&&(r=O2(e.s),o=O2(e.l),t=$Pt(e.h,r,o),a=!0,s="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=V2e(n),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}function IPt(e,t,n){return{r:Po(e,255)*255,g:Po(t,255)*255,b:Po(n,255)*255}}function Pie(e,t,n){e=Po(e,255),t=Po(t,255),n=Po(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o,a,s=(r+i)/2;if(r==i)o=a=0;else{var l=r-i;switch(a=s>.5?l/(2-r-i):l/(r+i),r){case e:o=(t-n)/l+(t<n?6:0);break;case t:o=(n-e)/l+2;break;case n:o=(e-t)/l+4;break}o/=6}return{h:o,s:a,l:s}}function $Pt(e,t,n){var r,i,o;e=Po(e,360),t=Po(t,100),n=Po(n,100);function a(c,u,d){return d<0&&(d+=1),d>1&&(d-=1),d<1/6?c+(u-c)*6*d:d<1/2?u:d<2/3?c+(u-c)*(2/3-d)*6:c}if(t===0)r=i=o=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;r=a(l,s,e+1/3),i=a(l,s,e),o=a(l,s,e-1/3)}return{r:r*255,g:i*255,b:o*255}}function Mie(e,t,n){e=Po(e,255),t=Po(t,255),n=Po(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o,a,s=r,l=r-i;if(a=r===0?0:l/r,r==i)o=0;else{switch(r){case e:o=(t-n)/l+(t<n?6:0);break;case t:o=(n-e)/l+2;break;case n:o=(e-t)/l+4;break}o/=6}return{h:o,s:a,v:s}}function RPt(e,t,n){e=Po(e,360)*6,t=Po(t,100),n=Po(n,100);var r=Math.floor(e),i=e-r,o=n*(1-t),a=n*(1-i*t),s=n*(1-(1-i)*t),l=r%6,c=[n,a,o,o,s,n][l],u=[s,n,n,a,o,o][l],d=[o,o,s,n,n,a][l];return{r:c*255,g:u*255,b:d*255}}function Iie(e,t,n,r){var i=[Sd(Math.round(e).toString(16)),Sd(Math.round(t).toString(16)),Sd(Math.round(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function APt(e,t,n,r,i){var o=[Sd(Math.round(e).toString(16)),Sd(Math.round(t).toString(16)),Sd(Math.round(n).toString(16)),Sd(K2e(r))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function $ie(e,t,n,r){var i=[Sd(K2e(r)),Sd(Math.round(e).toString(16)),Sd(Math.round(t).toString(16)),Sd(Math.round(n).toString(16))];return i.join("")}vr.equals=function(e,t){return!e||!t?!1:vr(e).toRgbString()==vr(t).toRgbString()};vr.random=function(){return vr.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function NPt(e,t){t=t===0?0:t||10;var n=vr(e).toHsl();return n.s-=t/100,n.s=YP(n.s),vr(n)}function DPt(e,t){t=t===0?0:t||10;var n=vr(e).toHsl();return n.s+=t/100,n.s=YP(n.s),vr(n)}function LPt(e){return vr(e).desaturate(100)}function FPt(e,t){t=t===0?0:t||10;var n=vr(e).toHsl();return n.l+=t/100,n.l=YP(n.l),vr(n)}function jPt(e,t){t=t===0?0:t||10;var n=vr(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),vr(n)}function BPt(e,t){t=t===0?0:t||10;var n=vr(e).toHsl();return n.l-=t/100,n.l=YP(n.l),vr(n)}function HPt(e,t){var n=vr(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,vr(n)}function zPt(e){var t=vr(e).toHsl();return t.h=(t.h+180)%360,vr(t)}function Rie(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=vr(e).toHsl(),r=[vr(e)],i=360/t,o=1;o<t;o++)r.push(vr({h:(n.h+o*i)%360,s:n.s,l:n.l}));return r}function UPt(e){var t=vr(e).toHsl(),n=t.h;return[vr(e),vr({h:(n+72)%360,s:t.s,l:t.l}),vr({h:(n+216)%360,s:t.s,l:t.l})]}function WPt(e,t,n){t=t||6,n=n||30;var r=vr(e).toHsl(),i=360/n,o=[vr(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(vr(r));return o}function VPt(e,t){t=t||6;for(var n=vr(e).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;t--;)a.push(vr({h:r,s:i,v:o})),o=(o+s)%1;return a}vr.mix=function(e,t,n){n=n===0?0:n||50;var r=vr(e).toRgb(),i=vr(t).toRgb(),o=n/100,a={r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a};return vr(a)};vr.readability=function(e,t){var n=vr(e),r=vr(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)};vr.isReadable=function(e,t,n){var r=vr.readability(e,t),i,o;switch(o=!1,i=QPt(n),i.level+i.size){case"AAsmall":case"AAAlarge":o=r>=4.5;break;case"AAlarge":o=r>=3;break;case"AAAsmall":o=r>=7;break}return o};vr.mostReadable=function(e,t,n){var r=null,i=0,o,a,s,l;n=n||{},a=n.includeFallbackColors,s=n.level,l=n.size;for(var c=0;c<t.length;c++)o=vr.readability(e,t[c]),o>i&&(i=o,r=vr(t[c]));return vr.isReadable(e,r,{level:s,size:l})||!a?r:(n.includeFallbackColors=!1,vr.mostReadable(e,["#fff","#000"],n))};var Uj=vr.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",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:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",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:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",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:"f00",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:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},KPt=vr.hexNames=qPt(Uj);function qPt(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function V2e(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Po(e,t){GPt(e)&&(e="100%");var n=YPt(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function YP(e){return Math.min(1,Math.max(0,e))}function fc(e){return parseInt(e,16)}function GPt(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function YPt(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Sd(e){return e.length==1?"0"+e:""+e}function O2(e){return e<=1&&(e=e*100+"%"),e}function K2e(e){return Math.round(parseFloat(e)*255).toString(16)}function Aie(e){return fc(e)/255}var id=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+i),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 Sh(e){return!!id.CSS_UNIT.exec(e)}function XPt(e){e=e.replace(OPt,"").replace(PPt,"").toLowerCase();var t=!1;if(Uj[e])e=Uj[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=id.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=id.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=id.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=id.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=id.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=id.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=id.hex8.exec(e))?{r:fc(n[1]),g:fc(n[2]),b:fc(n[3]),a:Aie(n[4]),format:t?"name":"hex8"}:(n=id.hex6.exec(e))?{r:fc(n[1]),g:fc(n[2]),b:fc(n[3]),format:t?"name":"hex"}:(n=id.hex4.exec(e))?{r:fc(n[1]+""+n[1]),g:fc(n[2]+""+n[2]),b:fc(n[3]+""+n[3]),a:Aie(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=id.hex3.exec(e))?{r:fc(n[1]+""+n[1]),g:fc(n[2]+""+n[2]),b:fc(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function QPt(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:t,size:n}}var Nie=function(t){var n=["r","g","b","a","h","s","l","v"],r=0,i=0;return kPt(n,function(o){if(t[o]&&(r+=1,isNaN(t[o])||(i+=1),o==="s"||o==="l")){var a=/^\d+%$/;a.test(t[o])&&(i+=1)}}),r===i?t:!1},h5=function(t,n){var r=t.hex?vr(t.hex):vr(t),i=r.toHsl(),o=r.toHsv(),a=r.toRgb(),s=r.toHex();i.s===0&&(i.h=n||0,o.h=n||0);var l=s==="000000"&&a.a===0;return{hsl:i,hex:l?"transparent":"#".concat(s),rgb:a,hsv:o,oldHue:t.h||n||i.h,source:t.source}},ZPt=function(t){if(t==="transparent")return!0;var n=String(t).charAt(0)==="#"?1:0;return t.length!==4+n&&t.length<7+n&&vr(t).isValid()};function lS(e){"@babel/helpers - typeof";return lS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lS(e)}function Wj(){return Wj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wj.apply(this,arguments)}function Die(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function qx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Die(Object(n),!0).forEach(function(r){JPt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Die(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function JPt(e,t,n){return t=q2e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eMt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,q2e(r.key),r)}}function tMt(e,t,n){return t&&Lie(e.prototype,t),n&&Lie(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function q2e(e){var t=nMt(e,"string");return lS(t)==="symbol"?t:String(t)}function nMt(e,t){if(lS(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(lS(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rMt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vj(e,t)}function Vj(e,t){return Vj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Vj(e,t)}function iMt(e){var t=sMt();return function(){var r=gk(e),i;if(t){var o=gk(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return oMt(this,i)}}function oMt(e,t){if(t&&(lS(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return aMt(e)}function aMt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sMt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function gk(e){return gk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},gk(e)}var lMt=function(t){var n=function(r){rMt(o,r);var i=iMt(o);function o(a){var s;return eMt(this,o),s=i.call(this),s.handleChange=function(l,c){var u=Nie(l);if(u){var d=h5(l,l.h||s.state.oldHue);s.setState(d),s.props.onChangeComplete&&s.debounce(s.props.onChangeComplete,d,c),s.props.onChange&&s.props.onChange(d,c)}},s.handleSwatchHover=function(l,c){var u=Nie(l);if(u){var d=h5(l,l.h||s.state.oldHue);s.props.onSwatchHover&&s.props.onSwatchHover(d,c)}},s.state=qx({},h5(a.color,0)),s.debounce=tPt(function(l,c,u){l(c,u)},100),s}return tMt(o,[{key:"render",value:function(){var s={};return this.props.onSwatchHover&&(s.onSwatchHover=this.handleSwatchHover),ge.createElement(t,Wj({},this.props,this.state,{onChange:this.handleChange},s))}}],[{key:"getDerivedStateFromProps",value:function(s,l){return qx({},h5(s.color,l.oldHue))}}]),o}(f.PureComponent||f.Component);return n.propTypes=qx({},t.propTypes),n.defaultProps=qx(qx({},t.defaultProps),{},{color:{h:250,s:.5,l:.2,a:1}}),n};function cS(e){"@babel/helpers - typeof";return cS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cS(e)}function cMt(e,t,n){return t=G2e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uMt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dMt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,G2e(r.key),r)}}function fMt(e,t,n){return t&&dMt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function G2e(e){var t=hMt(e,"string");return cS(t)==="symbol"?t:String(t)}function hMt(e,t){if(cS(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(cS(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pMt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Kj(e,t)}function Kj(e,t){return Kj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Kj(e,t)}function mMt(e){var t=yMt();return function(){var r=vk(e),i;if(t){var o=vk(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return gMt(this,i)}}function gMt(e,t){if(t&&(cS(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vMt(e)}function vMt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yMt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function vk(e){return vk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},vk(e)}var bMt=1,Y2e=38,SMt=40,CMt=[Y2e,SMt],xMt=function(t){return CMt.indexOf(t)>-1},wMt=function(t){return Number(String(t).replace(/%/g,""))},_Mt=1,Gx=function(e){pMt(n,e);var t=mMt(n);function n(r){var i;return uMt(this,n),i=t.call(this),i.handleBlur=function(){i.state.blurValue&&i.setState({value:i.state.blurValue,blurValue:null})},i.handleChange=function(o){i.setUpdatedValue(o.target.value,o)},i.handleKeyDown=function(o){var a=wMt(o.target.value);if(!isNaN(a)&&xMt(o.keyCode)){var s=i.getArrowOffset(),l=o.keyCode===Y2e?a+s:a-s;i.setUpdatedValue(l,o)}},i.handleDrag=function(o){if(i.props.dragLabel){var a=Math.round(i.props.value+o.movementX);a>=0&&a<=i.props.dragMax&&i.props.onChange&&i.props.onChange(i.getValueObjectWithLabel(a),o)}},i.handleMouseDown=function(o){i.props.dragLabel&&(o.preventDefault(),i.handleDrag(o),window.addEventListener("mousemove",i.handleDrag),window.addEventListener("mouseup",i.handleMouseUp))},i.handleMouseUp=function(){i.unbindEventListeners()},i.unbindEventListeners=function(){window.removeEventListener("mousemove",i.handleDrag),window.removeEventListener("mouseup",i.handleMouseUp)},i.state={value:String(r.value).toUpperCase(),blurValue:String(r.value).toUpperCase()},i.inputId="rc-editable-input-".concat(_Mt++),i}return fMt(n,[{key:"componentDidUpdate",value:function(i,o){this.props.value!==this.state.value&&(i.value!==this.props.value||o.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(i){return cMt({},this.props.label,i)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||bMt}},{key:"setUpdatedValue",value:function(i,o){var a=this.props.label?this.getValueObjectWithLabel(i):i;this.props.onChange&&this.props.onChange(a,o),this.setState({value:i})}},{key:"render",value:function(){var i=this,o=Cg({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return ge.createElement("div",{style:o.wrap},ge.createElement("input",{id:this.inputId,style:o.input,ref:function(s){return i.input=s},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?ge.createElement("label",{htmlFor:this.inputId,style:o.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),n}(f.PureComponent||f.Component);function uS(e){"@babel/helpers - typeof";return uS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uS(e)}function qj(){return qj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qj.apply(this,arguments)}function EMt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TMt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,OMt(r.key),r)}}function kMt(e,t,n){return t&&TMt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function OMt(e){var t=PMt(e,"string");return uS(t)==="symbol"?t:String(t)}function PMt(e,t){if(uS(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(uS(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function MMt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gj(e,t)}function Gj(e,t){return Gj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Gj(e,t)}function IMt(e){var t=AMt();return function(){var r=yk(e),i;if(t){var o=yk(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return $Mt(this,i)}}function $Mt(e,t){if(t&&(uS(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return RMt(e)}function RMt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function AMt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function yk(e){return yk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},yk(e)}var NMt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){MMt(o,r);var i=IMt(o);function o(){var a;EMt(this,o);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return a=i.call.apply(i,[this].concat(l)),a.state={focus:!1},a.handleFocus=function(){return a.setState({focus:!0})},a.handleBlur=function(){return a.setState({focus:!1})},a}return kMt(o,[{key:"render",value:function(){return ge.createElement(n,{onFocus:this.handleFocus,onBlur:this.handleBlur},ge.createElement(t,qj({},this.props,this.state)))}}]),o}(ge.Component)};function O_(e){"@babel/helpers - typeof";return O_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O_(e)}function Yj(){return Yj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yj.apply(this,arguments)}function Fie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function jie(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Fie(Object(n),!0).forEach(function(r){DMt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fie(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function DMt(e,t,n){return t=LMt(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LMt(e){var t=FMt(e,"string");return O_(t)==="symbol"?t:String(t)}function FMt(e,t){if(O_(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(O_(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var jMt=13,BMt=function(t){var n=t.color,r=t.style,i=t.onClick,o=i===void 0?function(){}:i,a=t.onHover,s=t.title,l=s===void 0?n:s,c=t.children,u=t.focus,d=t.focusStyle,h=d===void 0?{}:d,p=n==="transparent",m=Cg({default:{swatch:jie(jie({background:n,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},r),u?h:{})}}),v=function(_){return o(n,_)},y=function(_){return _.keyCode===jMt&&o(n,_)},S=function(_){return a(n,_)},b={};return a&&(b.onMouseOver=S),ge.createElement("div",Yj({style:m.swatch,onClick:v,title:l,tabIndex:0,onKeyDown:y},b),c,p&&ge.createElement(GP,{borderRadius:m.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};const HMt=NMt(BMt);var zMt=function(t){var n=t.onChange,r=t.rgb,i=t.hsl,o=t.hex,a=t.disableAlpha,s=Cg({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:a}),l=function(u,d){u.hex?ZPt(u.hex)&&(n==null||n({hex:u.hex,source:"hex"},d)):u.r||u.g||u.b?n==null||n({r:u.r||(r==null?void 0:r.r),g:u.g||(r==null?void 0:r.g),b:u.b||(r==null?void 0:r.b),a:r==null?void 0:r.a,source:"rgb"},d):u.a&&(u.a<0?u.a=0:u.a>100&&(u.a=100),u.a/=100,n==null||n({h:i==null?void 0:i.h,s:i==null?void 0:i.s,l:i==null?void 0:i.l,a:u.a,source:"rgb"},d))};return ge.createElement("div",{style:s.fields,className:"flexbox-fix"},ge.createElement("div",{style:s.double},ge.createElement(Gx,{style:{input:s.input,label:s.label},label:"hex",value:o==null?void 0:o.replace("#",""),onChange:l})),ge.createElement("div",{style:s.single},ge.createElement(Gx,{style:{input:s.input,label:s.label},label:"r",value:r==null?void 0:r.r,onChange:l,dragLabel:"true",dragMax:"255"})),ge.createElement("div",{style:s.single},ge.createElement(Gx,{style:{input:s.input,label:s.label},label:"g",value:r==null?void 0:r.g,onChange:l,dragLabel:"true",dragMax:"255"})),ge.createElement("div",{style:s.single},ge.createElement(Gx,{style:{input:s.input,label:s.label},label:"b",value:r==null?void 0:r.b,onChange:l,dragLabel:"true",dragMax:"255"})),ge.createElement("div",{style:s.alpha},ge.createElement(Gx,{style:{input:s.input,label:s.label},label:"a",value:Math.round(((r==null?void 0:r.a)||0)*100),onChange:l,dragLabel:"true",dragMax:"100"})))};function P_(e){"@babel/helpers - typeof";return P_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},P_(e)}function Bie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Hie(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Bie(Object(n),!0).forEach(function(r){UMt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bie(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function UMt(e,t,n){return t=WMt(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WMt(e){var t=VMt(e,"string");return P_(t)==="symbol"?t:String(t)}function VMt(e,t){if(P_(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(P_(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var KMt=function(t){var n=t.colors,r=t.onClick,i=r===void 0?function(){}:r,o=t.onSwatchHover,a={colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{msBorderRadius:"3px",MozBorderRadius:"3px",OBorderRadius:"3px",WebkitBorderRadius:"3px",borderRadius:"3px",msBoxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)",MozBoxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)",OBoxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)",WebkitBoxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},s=function(c,u){i==null||i({hex:c,source:"hex"},u)};return ge.createElement("div",{style:a.colors,className:"flexbox-fix"},n==null?void 0:n.map(function(l){var c=typeof l=="string"?{color:l,title:void 0}:l,u="".concat(c.color).concat((c==null?void 0:c.title)||"");return ge.createElement("div",{key:u,style:a.swatchWrap},ge.createElement(HMt,Hie(Hie({},c),{},{style:a.swatch,onClick:s,onHover:o,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px ".concat(c.color)}})))}))};function M_(e){"@babel/helpers - typeof";return M_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},M_(e)}function zie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function qMt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zie(Object(n),!0).forEach(function(r){GMt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zie(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function GMt(e,t,n){return t=YMt(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YMt(e){var t=XMt(e,"string");return M_(t)==="symbol"?t:String(t)}function XMt(e,t){if(M_(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(M_(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var X2e=function(t){var n=t.width,r=t.rgb,i=t.hex,o=t.hsv,a=t.hsl,s=t.onChange,l=t.onSwatchHover,c=t.disableAlpha,u=t.presetColors,d=t.renderers,h=t.styles,p=h===void 0?{}:h,m=t.className,v=m===void 0?"":m,y=Cg(tOt({default:qMt({picker:{width:n,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba(".concat(r.r,",").concat(r.g,",").concat(r.b,",").concat(r.a,")"),boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},p),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},p),{disableAlpha:c});return ge.createElement("div",{style:y.picker,className:"sketch-picker ".concat(v)},ge.createElement("div",{style:y.saturation},ge.createElement(bPt,{style:y.Saturation,hsl:a,hsv:o,onChange:s})),ge.createElement("div",{style:y.controls,className:"flexbox-fix"},ge.createElement("div",{style:y.sliders},ge.createElement("div",{style:y.hue},ge.createElement(IOt,{style:y.Hue,hsl:a,onChange:s})),ge.createElement("div",{style:y.alpha},ge.createElement(bOt,{style:y.Alpha,rgb:r,hsl:a,renderers:d,onChange:s}))),ge.createElement("div",{style:y.color},ge.createElement(GP,null),ge.createElement("div",{style:y.activeColor}))),ge.createElement(zMt,{rgb:r,hsl:a,hex:i,onChange:s,disableAlpha:c}),ge.createElement(KMt,{colors:u,onClick:s,onSwatchHover:l}))};X2e.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]};var QMt=lMt(X2e),ZMt=["mode","popoverProps"],JMt=["#FF9D4E","#5BD8A6","#5B8FF9","#F7664E","#FF86B7","#2B9E9D","#9270CA","#6DC8EC","#667796","#F6BD16"],eIt=ge.forwardRef(function(e,t){var n=e.mode,r=e.popoverProps,i=tn(e,ZMt),o=f.useContext(ar.ConfigContext),a=o.getPrefixCls,s=a("pro-field-color-picker"),l=qf.useToken(),c=l.token,u=er("#1890ff",{value:i.value,onChange:i.onChange}),d=Le(u,2),h=d[0],p=d[1],m=no("ProFiledColorPicker"+h,function(){return ae({},".".concat(s),{width:32,height:32,display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",border:"1px solid ".concat(c.colorSplit),borderRadius:c.borderRadius,"&:hover":{borderColor:h}})}),v=m.wrapSSR,y=m.hashId,S=v(U.jsx("div",{className:"".concat(s," ").concat(y).trim(),style:{cursor:i.disabled?"not-allowed":"pointer",backgroundColor:i.disabled?c.colorBgContainerDisabled:c.colorBgContainer},children:U.jsx("div",{style:{backgroundColor:h,width:24,boxSizing:"border-box",height:24,borderRadius:c.borderRadius}})}));return f.useImperativeHandle(t,function(){}),n==="read"||i.disabled?S:U.jsx(Ou,X(X({trigger:"click",placement:"right"},r),{},{content:U.jsx("div",{style:{margin:"-12px -16px"},children:U.jsx(QMt,X(X({},i),{},{presetColors:i.colors||i.presetColors||JMt,color:h,onChange:function(C){var _=C.hex,T=C.rgb,x=T.r,E=T.g,k=T.b,M=T.a;if(M&&M<1){p("rgba(".concat(x,", ").concat(E,", ").concat(k,", ").concat(M,")"));return}p(_)}}))}),children:S}))}),tIt={label:"Recommended",colors:["#F5222D","#FA8C16","#FADB14","#8BBB11","#52C41A","#13A8A8","#1677FF","#2F54EB","#722ED1","#EB2F96","#F5222D4D","#FA8C164D","#FADB144D","#8BBB114D","#52C41A4D","#13A8A84D","#1677FF4D","#2F54EB4D","#722ED14D","#EB2F964D"]};function Q2e(){return UE(fp,"5.5.0")>-1}function nIt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return(typeof e>"u"||e===!1)&&Q2e()?$W:eIt}var rIt=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.renderFormItem,s=t.fieldProps,l=t.old,c=f.useContext(ar.ConfigContext),u=c.getPrefixCls,d=ge.useMemo(function(){return nIt(l)},[l]),h=u("pro-field-color-picker"),p=f.useMemo(function(){return l?"":Re(ae({},h,Q2e()))},[h,l]);if(i==="read"){var m=U.jsx(d,{value:r,mode:"read",ref:n,className:p,open:!1});return o?o(r,X({mode:i},s),m):m}if(i==="edit"||i==="update"){var v=X({display:"table-cell"},s.style),y=U.jsx(d,X(X({ref:n,presets:[tIt]},s),{},{style:v,className:p}));return a?a(r,X(X({mode:i},s),{},{style:v}),y):y}return null};const iIt=ge.forwardRef(rIt);Fr.extend(dW);var oIt=function(t,n){return t?typeof n=="function"?n(Fr(t)):Fr(t).format((Array.isArray(n)?n[0]:n)||"YYYY-MM-DD"):"-"},aIt=function(t,n){var r=t.text,i=t.mode,o=t.format,a=t.label,s=t.light,l=t.render,c=t.renderFormItem,u=t.plain,d=t.showTime,h=t.fieldProps,p=t.picker,m=t.bordered,v=t.lightLabel,y=Wo(),S=f.useState(!1),b=Le(S,2),C=b[0],_=b[1];if(i==="read"){var T=oIt(r,h.format||o);return l?l(r,X({mode:i},h),U.jsx(U.Fragment,{children:T})):U.jsx(U.Fragment,{children:T})}if(i==="edit"||i==="update"){var x,E=h.disabled,k=h.value,M=h.placeholder,P=M===void 0?y.getMessage("tableForm.selectPlaceholder","请选择"):M,D=WE(k);return s?x=U.jsx($p,{label:a,onClick:function(){var A;h==null||(A=h.onOpenChange)===null||A===void 0||A.call(h,!0),_(!0)},style:D?{paddingInlineEnd:0}:void 0,disabled:E,value:D||C?U.jsx(Pu,X(X(X({picker:p,showTime:d,format:o,ref:n},h),{},{value:D,onOpenChange:function(A){var H;_(A),h==null||(H=h.onOpenChange)===null||H===void 0||H.call(h,A)}},Fc(!1)),{},{open:C})):void 0,allowClear:!1,downIcon:D||C?!1:void 0,bordered:m,ref:v}):x=U.jsx(Pu,X(X(X({picker:p,showTime:d,format:o,placeholder:P},Fc(u===void 0?!0:!u)),{},{ref:n},h),{},{value:D})),c?c(r,X({mode:i},h),x):x}return null};const ly=ge.forwardRef(aIt);var sIt=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.placeholder,s=t.renderFormItem,l=t.fieldProps,c=Wo(),u=a||c.getMessage("tableForm.inputPlaceholder","请输入"),d=f.useCallback(function(S){var b=S??void 0;return!l.stringMode&&typeof b=="string"&&(b=Number(b)),typeof b=="number"&&!Ov(b)&&!Ov(l.precision)&&(b=Number(b.toFixed(l.precision))),b},[l]);if(i==="read"){var h,p={};l!=null&&l.precision&&(p={minimumFractionDigits:Number(l.precision),maximumFractionDigits:Number(l.precision)});var m=new Intl.NumberFormat(void 0,X(X({},p),(l==null?void 0:l.intlProps)||{})).format(Number(r)),v=l!=null&&l.stringMode?U.jsx("span",{children:r}):U.jsx("span",{ref:n,children:(l==null||(h=l.formatter)===null||h===void 0?void 0:h.call(l,m))||m});return o?o(r,X({mode:i},l),v):v}if(i==="edit"||i==="update"){var y=U.jsx(gp,X(X({ref:n,min:0,placeholder:u},Pr(l,["onChange","onBlur"])),{},{onChange:function(b){var C;return l==null||(C=l.onChange)===null||C===void 0?void 0:C.call(l,d(b))},onBlur:function(b){var C;return l==null||(C=l.onBlur)===null||C===void 0?void 0:C.call(l,d(b.target.value))}}));return s?s(r,X({mode:i},l),y):y}return null};const lIt=ge.forwardRef(sIt);var cIt=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.placeholder,s=t.renderFormItem,l=t.fieldProps,c=t.separator,u=c===void 0?"~":c,d=t.separatorWidth,h=d===void 0?30:d,p=l.value,m=l.defaultValue,v=l.onChange,y=l.id,S=Wo(),b=qf.useToken(),C=b.token,_=er(function(){return m},{value:p,onChange:v}),T=Le(_,2),x=T[0],E=T[1];if(i==="read"){var k=function(q){var Z,N=new Intl.NumberFormat(void 0,X({minimumSignificantDigits:2},(l==null?void 0:l.intlProps)||{})).format(Number(q));return(l==null||(Z=l.formatter)===null||Z===void 0?void 0:Z.call(l,N))||N},M=U.jsxs("span",{ref:n,children:[k(r[0])," ",u," ",k(r[1])]});return o?o(r,X({mode:i},l),M):M}if(i==="edit"||i==="update"){var P=function(){if(Array.isArray(x)){var q=Le(x,2),Z=q[0],N=q[1];typeof Z=="number"&&typeof N=="number"&&Z>N?E([N,Z]):Z===void 0&&N===void 0&&E(void 0)}},D=function(q,Z){var N=pt(x||[]);N[q]=Z===null?void 0:Z,E(N)},R=(l==null?void 0:l.placeholder)||a||[S.getMessage("tableForm.inputPlaceholder","请输入"),S.getMessage("tableForm.inputPlaceholder","请输入")],A=function(q){return Array.isArray(R)?R[q]:R},H=pa.Compact||$i.Group,F=pa.Compact?{}:{compact:!0},z=U.jsxs(H,X(X({},F),{},{onBlur:P,children:[U.jsx(gp,X(X({},l),{},{placeholder:A(0),id:y??"".concat(y,"-0"),style:{width:"calc((100% - ".concat(h,"px) / 2)")},value:x==null?void 0:x[0],defaultValue:m==null?void 0:m[0],onChange:function(q){return D(0,q)}})),U.jsx($i,{style:{width:h,textAlign:"center",borderInlineStart:0,borderInlineEnd:0,pointerEvents:"none",backgroundColor:C==null?void 0:C.colorBgContainer},placeholder:u,disabled:!0}),U.jsx(gp,X(X({},l),{},{placeholder:A(1),id:y??"".concat(y,"-1"),style:{width:"calc((100% - ".concat(h,"px) / 2)"),borderInlineStart:0},value:x==null?void 0:x[1],defaultValue:m==null?void 0:m[1],onChange:function(q){return D(1,q)}}))]}));return s?s(r,X({mode:i},l),z):z}return null};const uIt=ge.forwardRef(cIt);var Z2e={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(vo,function(){return function(n,r,i){n=n||{};var o=r.prototype,a={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function s(c,u,d,h){return o.fromToBase(c,u,d,h)}i.en.relativeTime=a,o.fromToBase=function(c,u,d,h,p){for(var m,v,y,S=d.$locale().relativeTime||a,b=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],C=b.length,_=0;_<C;_+=1){var T=b[_];T.d&&(m=h?i(c).diff(d,T.d,!0):d.diff(c,T.d,!0));var x=(n.rounding||Math.round)(Math.abs(m));if(y=m>0,x<=T.r||!T.r){x<=1&&_>0&&(T=b[_-1]);var E=S[T.l];p&&(x=p(""+x)),v=typeof E=="string"?E.replace("%d",x):E(x,u,T.l,y);break}}if(u)return v;var k=y?S.future:S.past;return typeof k=="function"?k(v):k.replace("%s",v)},o.to=function(c,u){return s(c,u,this,!0)},o.from=function(c,u){return s(c,u,this)};var l=function(c){return c.$u?i.utc():i()};o.toNow=function(c){return this.to(l(this),c)},o.fromNow=function(c){return this.from(l(this),c)}}})})(Z2e);var dIt=Z2e.exports;const fIt=vi(dIt);Fr.extend(fIt);var hIt=function(t,n){var r=t.text,i=t.mode,o=t.plain,a=t.render,s=t.renderFormItem,l=t.format,c=t.fieldProps,u=Wo();if(i==="read"){var d=U.jsx(ea,{title:Fr(r).format((c==null?void 0:c.format)||l||"YYYY-MM-DD HH:mm:ss"),children:Fr(r).fromNow()});return a?a(r,X({mode:i},c),U.jsx(U.Fragment,{children:d})):U.jsx(U.Fragment,{children:d})}if(i==="edit"||i==="update"){var h=u.getMessage("tableForm.selectPlaceholder","请选择"),p=WE(c.value),m=U.jsx(Pu,X(X(X({ref:n,placeholder:h,showTime:!0},Fc(o===void 0?!0:!o)),c),{},{value:p}));return s?s(r,X({mode:i},c),m):m}return null};const pIt=ge.forwardRef(hIt);var J2e=ge.forwardRef(function(e,t){var n=e.text,r=e.mode,i=e.render,o=e.renderFormItem,a=e.fieldProps,s=e.placeholder,l=e.width,c=Wo(),u=s||c.getMessage("tableForm.inputPlaceholder","请输入");if(r==="read"){var d=U.jsx(uSe,X({ref:t,width:l||32,src:n},a));return i?i(n,X({mode:r},a),d):d}if(r==="edit"||r==="update"){var h=U.jsx($i,X({ref:t,placeholder:u},a));return o?o(n,X({mode:r},a),h):h}return null}),mIt=function(t,n){var r=t.border,i=r===void 0?!1:r,o=t.children,a=f.useContext(ar.ConfigContext),s=a.getPrefixCls,l=s("pro-field-index-column"),c=no("IndexColumn",function(){return ae({},".".concat(l),{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"18px",height:"18px","&-border":{color:"#fff",fontSize:"12px",lineHeight:"12px",backgroundColor:"#314659",borderRadius:"9px","&.top-three":{backgroundColor:"#979797"}}})}),u=c.wrapSSR,d=c.hashId;return u(U.jsx("div",{ref:n,className:Re(l,d,ae(ae({},"".concat(l,"-border"),i),"top-three",o>3)),children:o}))};const Uie=ge.forwardRef(mIt);var gIt=["contentRender","numberFormatOptions","numberPopoverRender","open"],vIt=["text","mode","render","renderFormItem","fieldProps","proFieldKey","plain","valueEnum","placeholder","locale","customSymbol","numberFormatOptions","numberPopoverRender"],ewe=new Intl.NumberFormat("zh-Hans-CN",{currency:"CNY",style:"currency"}),yIt={style:"currency",currency:"USD"},bIt={style:"currency",currency:"RUB"},SIt={style:"currency",currency:"RSD"},CIt={style:"currency",currency:"MYR"},xIt={style:"currency",currency:"BRL"},wIt={default:ewe,"zh-Hans-CN":{currency:"CNY",style:"currency"},"en-US":yIt,"ru-RU":bIt,"ms-MY":CIt,"sr-RS":SIt,"pt-BR":xIt},Wie=function(t,n,r,i){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"",a=n==null?void 0:n.toString().replaceAll(",","");if(typeof a=="string"){var s=Number(a);if(Number.isNaN(s))return a;a=s}if(!a&&a!==0)return"";var l=!1;try{l=t!==!1&&Intl.NumberFormat.supportedLocalesOf([t.replace("_","-")],{localeMatcher:"lookup"}).length>0}catch{}try{var c=new Intl.NumberFormat(l&&t!==!1&&(t==null?void 0:t.replace("_","-"))||"zh-Hans-CN",X(X({},wIt[t||"zh-Hans-CN"]||ewe),{},{maximumFractionDigits:r},i)),u=c.format(a),d=function(S){var b=S.match(/\d+/);if(b){var C=b[0];return S.slice(S.indexOf(C))}else return S},h=d(u),p=u||"",m=Le(p,1),v=m[0];return["+","-"].includes(v)?"".concat(o||"").concat(v).concat(h):"".concat(o||"").concat(h)}catch{return a}},$A=2,_It=ge.forwardRef(function(e,t){var n=e.contentRender;e.numberFormatOptions,e.numberPopoverRender;var r=e.open,i=tn(e,gIt),o=er(function(){return i.defaultValue},{value:i.value,onChange:i.onChange}),a=Le(o,2),s=a[0],l=a[1],c=n==null?void 0:n(X(X({},i),{},{value:s})),u=RP(c?r:!1);return U.jsx(Ou,X(X({placement:"topLeft"},u),{},{trigger:["focus","click"],content:c,getPopupContainer:function(h){return(h==null?void 0:h.parentElement)||document.body},children:U.jsx(gp,X(X({ref:t},i),{},{value:s,onChange:l}))}))}),EIt=function(t,n){var r,i=t.text,o=t.mode,a=t.render,s=t.renderFormItem,l=t.fieldProps;t.proFieldKey,t.plain,t.valueEnum;var c=t.placeholder,u=t.locale,d=t.customSymbol,h=d===void 0?l.customSymbol:d,p=t.numberFormatOptions,m=p===void 0?l==null?void 0:l.numberFormatOptions:p,v=t.numberPopoverRender,y=v===void 0?(l==null?void 0:l.numberPopoverRender)||!1:v,S=tn(t,vIt),b=(r=l==null?void 0:l.precision)!==null&&r!==void 0?r:$A,C=Wo();u&&kv[u]&&(C=kv[u]);var _=c||C.getMessage("tableForm.inputPlaceholder","请输入"),T=f.useMemo(function(){if(h)return h;if(!(S.moneySymbol===!1||l.moneySymbol===!1))return C.getMessage("moneySymbol","¥")},[h,l.moneySymbol,C,S.moneySymbol]),x=f.useCallback(function(M){var P=new RegExp("\\B(?=(\\d{".concat(3+Math.max(b-$A,0),"})+(?!\\d))"),"g"),D=String(M).split("."),R=Le(D,2),A=R[0],H=R[1],F=A.replace(P,","),z="";return H&&b>0&&(z=".".concat(H.slice(0,b===void 0?$A:b))),"".concat(F).concat(z)},[b]);if(o==="read"){var E=U.jsx("span",{ref:n,children:Wie(u||!1,i,b,m??l.numberFormatOptions,T)});return a?a(i,X({mode:o},l),E):E}if(o==="edit"||o==="update"){var k=U.jsx(_It,X(X({contentRender:function(P){if(y===!1||!P.value)return null;var D=Wie(T||u||!1,"".concat(x(P.value)),b,X(X({},m),{},{notation:"compact"}),T);return typeof y=="function"?y==null?void 0:y(P,D):D},ref:n,precision:b,formatter:function(P){return P&&T?"".concat(T," ").concat(x(P)):P==null?void 0:P.toString()},parser:function(P){return T&&P?P.replace(new RegExp("\\".concat(T,"\\s?|(,*)"),"g"),""):P},placeholder:_},Pr(l,["numberFormatOptions","precision","numberPopoverRender","customSymbol","moneySymbol","visible","open"])),{},{onBlur:l.onBlur?function(M){var P,D=M.target.value;T&&D&&(D=D.replace(new RegExp("\\".concat(T,"\\s?|(,*)"),"g"),"")),(P=l.onBlur)===null||P===void 0||P.call(l,D)}:void 0}));return s?s(i,X({mode:o},l),k):k}return null};const twe=ge.forwardRef(EIt);var Vie=function(t){return t.map(function(n,r){var i;return ge.isValidElement(n)?ge.cloneElement(n,X(X({key:r},n==null?void 0:n.props),{},{style:X({},n==null||(i=n.props)===null||i===void 0?void 0:i.style)})):U.jsx(ge.Fragment,{children:n},r)})},TIt=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.fieldProps,s=f.useContext(ar.ConfigContext),l=s.getPrefixCls,c=l("pro-field-option"),u=qf.useToken(),d=u.token;if(f.useImperativeHandle(n,function(){return{}}),o){var h=o(r,X({mode:i},a),U.jsx(U.Fragment,{}));return!h||(h==null?void 0:h.length)<1||!Array.isArray(h)?null:U.jsx("div",{style:{display:"flex",gap:d.margin,alignItems:"center"},className:c,children:Vie(h)})}return!r||!Array.isArray(r)?ge.isValidElement(r)?r:null:U.jsx("div",{style:{display:"flex",gap:d.margin,alignItems:"center"},className:c,children:Vie(r)})};const kIt=ge.forwardRef(TIt);var OIt=["text","mode","render","renderFormItem","fieldProps","proFieldKey"],PIt=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.renderFormItem,s=t.fieldProps;t.proFieldKey;var l=tn(t,OIt),c=Wo(),u=er(function(){return l.open||l.visible||!1},{value:l.open||l.visible,onChange:l.onOpenChange||l.onVisible}),d=Le(u,2),h=d[0],p=d[1];if(i==="read"){var m=U.jsx(U.Fragment,{children:"-"});return r&&(m=U.jsxs(pa,{children:[U.jsx("span",{ref:n,children:h?r:"********"}),U.jsx("a",{onClick:function(){return p(!h)},children:h?U.jsx(iC,{}):U.jsx(Tbe,{})})]})),o?o(r,X({mode:i},s),m):m}if(i==="edit"||i==="update"){var v=U.jsx($i.Password,X({placeholder:c.getMessage("tableForm.inputPlaceholder","请输入"),ref:n},s));return a?a(r,X({mode:i},s),v):v}return null};const MIt=ge.forwardRef(PIt);function IIt(e){return e===0?null:e>0?"+":"-"}function $It(e){return e===0?"#595959":e>0?"#ff4d4f":"#52c41a"}function RIt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return t>=0?e==null?void 0:e.toFixed(t):e}function bk(e){return ln(e)==="symbol"||e instanceof Symbol?NaN:Number(e)}var AIt=function(t,n){var r=t.text,i=t.prefix,o=t.precision,a=t.suffix,s=a===void 0?"%":a,l=t.mode,c=t.showColor,u=c===void 0?!1:c,d=t.render,h=t.renderFormItem,p=t.fieldProps,m=t.placeholder,v=t.showSymbol,y=Wo(),S=m||y.getMessage("tableForm.inputPlaceholder","请输入"),b=f.useMemo(function(){return typeof r=="string"&&r.includes("%")?bk(r.replace("%","")):bk(r)},[r]),C=f.useMemo(function(){return typeof v=="function"?v==null?void 0:v(r):v},[v,r]);if(l==="read"){var _=u?{color:$It(b)}:{},T=U.jsxs("span",{style:_,ref:n,children:[i&&U.jsx("span",{children:i}),C&&U.jsxs(f.Fragment,{children:[IIt(b)," "]}),RIt(Math.abs(b),o),s&&s]});return d?d(r,X(X({mode:l},p),{},{prefix:i,precision:o,showSymbol:C,suffix:s}),T):T}if(l==="edit"||l==="update"){var x=U.jsx(gp,X({ref:n,formatter:function(k){return k&&i?"".concat(i," ").concat(k).replace(/\B(?=(\d{3})+(?!\d)$)/g,","):k},parser:function(k){return k?k.replace(/.*\s|,/g,""):""},placeholder:S},p));return h?h(r,X({mode:l},p),x):x}return null};const nwe=ge.forwardRef(AIt);function NIt(e){return e===100?"success":e<0?"exception":e<100?"active":"normal"}var DIt=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.plain,s=t.renderFormItem,l=t.fieldProps,c=t.placeholder,u=Wo(),d=c||u.getMessage("tableForm.inputPlaceholder","请输入"),h=f.useMemo(function(){return typeof r=="string"&&r.includes("%")?bk(r.replace("%","")):bk(r)},[r]);if(i==="read"){var p=U.jsx(TSe,X({ref:n,size:"small",style:{minWidth:100,maxWidth:320},percent:h,steps:a?10:void 0,status:NIt(h)},l));return o?o(h,X({mode:i},l),p):p}if(i==="edit"||i==="update"){var m=U.jsx(gp,X({ref:n,placeholder:d},l));return s?s(r,X({mode:i},l),m):m}return null};const rwe=ge.forwardRef(DIt);var LIt=["radioType","renderFormItem","mode","render"],FIt=function(t,n){var r,i,o=t.radioType,a=t.renderFormItem,s=t.mode,l=t.render,c=tn(t,LIt),u=f.useContext(ar.ConfigContext),d=u.getPrefixCls,h=d("pro-field-radio"),p=bC(c),m=Le(p,3),v=m[0],y=m[1],S=m[2],b=f.useRef(),C=(r=Or.Item)===null||r===void 0||(i=r.useStatus)===null||i===void 0?void 0:i.call(r);f.useImperativeHandle(n,function(){return X(X({},b.current||{}),{},{fetchData:function(H){return S(H)}})},[S]);var _=no("FieldRadioRadio",function(A){return ae(ae(ae({},".".concat(h,"-error"),{span:{color:A.colorError}}),".".concat(h,"-warning"),{span:{color:A.colorWarning}}),".".concat(h,"-vertical"),ae({},"".concat(A.antCls,"-radio-wrapper"),{display:"flex",marginInlineEnd:0}))}),T=_.wrapSSR,x=_.hashId;if(v)return U.jsx(Sl,{size:"small"});if(s==="read"){var E=y!=null&&y.length?y==null?void 0:y.reduce(function(A,H){var F;return X(X({},A),{},ae({},(F=H.value)!==null&&F!==void 0?F:"",H.label))},{}):void 0,k=U.jsx(U.Fragment,{children:pC(c.text,Rp(c.valueEnum||E))});if(l){var M;return(M=l(c.text,X({mode:s},c.fieldProps),k))!==null&&M!==void 0?M:null}return k}if(s==="edit"){var P,D=T(U.jsx(ti.Group,X(X({ref:b,optionType:o},c.fieldProps),{},{className:Re((P=c.fieldProps)===null||P===void 0?void 0:P.className,ae(ae({},"".concat(h,"-error"),(C==null?void 0:C.status)==="error"),"".concat(h,"-warning"),(C==null?void 0:C.status)==="warning"),x,"".concat(h,"-").concat(c.fieldProps.layout||"horizontal")),options:y})));if(a){var R;return(R=a(c.text,X(X({mode:s},c.fieldProps),{},{options:y,loading:v}),D))!==null&&R!==void 0?R:null}return D}return null};const Kie=ge.forwardRef(FIt);var jIt=function(t,n){var r=t.text,i=t.mode,o=t.light,a=t.label,s=t.format,l=t.render,c=t.picker,u=t.renderFormItem,d=t.plain,h=t.showTime,p=t.lightLabel,m=t.bordered,v=t.fieldProps,y=Wo(),S=Array.isArray(r)?r:[],b=Le(S,2),C=b[0],_=b[1],T=ge.useState(!1),x=Le(T,2),E=x[0],k=x[1],M=f.useCallback(function(z){if(typeof(v==null?void 0:v.format)=="function"){var W;return v==null||(W=v.format)===null||W===void 0?void 0:W.call(v,z)}return(v==null?void 0:v.format)||s||"YYYY-MM-DD"},[v,s]),P=C?Fr(C).format(M(Fr(C))):"",D=_?Fr(_).format(M(Fr(_))):"";if(i==="read"){var R=U.jsxs("div",{ref:n,style:{display:"flex",flexWrap:"wrap",gap:8,alignItems:"center"},children:[U.jsx("div",{children:P||"-"}),U.jsx("div",{children:D||"-"})]});return l?l(r,X({mode:i},v),U.jsx("span",{children:R})):R}if(i==="edit"||i==="update"){var A=WE(v.value),H;if(o){var F;H=U.jsx($p,{label:a,onClick:function(){var W;v==null||(W=v.onOpenChange)===null||W===void 0||W.call(v,!0),k(!0)},style:A?{paddingInlineEnd:0}:void 0,disabled:v.disabled,value:A||E?U.jsx(Pu.RangePicker,X(X(X({picker:c,showTime:h,format:s},Fc(!1)),v),{},{placeholder:(F=v.placeholder)!==null&&F!==void 0?F:[y.getMessage("tableForm.selectPlaceholder","请选择"),y.getMessage("tableForm.selectPlaceholder","请选择")],onClear:function(){var W;k(!1),v==null||(W=v.onClear)===null||W===void 0||W.call(v)},value:A,onOpenChange:function(W){var q;A&&k(W),v==null||(q=v.onOpenChange)===null||q===void 0||q.call(v,W)}})):null,allowClear:!1,bordered:m,ref:p,downIcon:A||E?!1:void 0})}else H=U.jsx(Pu.RangePicker,X(X(X({ref:n,format:s,showTime:h,placeholder:[y.getMessage("tableForm.selectPlaceholder","请选择"),y.getMessage("tableForm.selectPlaceholder","请选择")]},Fc(d===void 0?!0:!d)),v),{},{value:A}));return u?u(r,X({mode:i},v),H):H}return null};const cy=ge.forwardRef(jIt);var BIt=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.renderFormItem,s=t.fieldProps;if(i==="read"){var l=U.jsx(Pte,X(X({allowHalf:!0,disabled:!0,ref:n},s),{},{value:r}));return o?o(r,X({mode:i},s),U.jsx(U.Fragment,{children:l})):l}if(i==="edit"||i==="update"){var c=U.jsx(Pte,X({allowHalf:!0,ref:n},s));return a?a(r,X({mode:i},s),c):c}return null};const HIt=ge.forwardRef(BIt);function zIt(e){var t=e,n="",r=!1;t<0&&(t=-t,r=!0);var i=Math.floor(t/(3600*24)),o=Math.floor(t/3600%24),a=Math.floor(t/60%60),s=Math.floor(t%60);return n="".concat(s,"秒"),a>0&&(n="".concat(a,"分钟").concat(n)),o>0&&(n="".concat(o,"小时").concat(n)),i>0&&(n="".concat(i,"天").concat(n)),r&&(n+="前"),n}var UIt=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.renderFormItem,s=t.fieldProps,l=t.placeholder,c=Wo(),u=l||c.getMessage("tableForm.inputPlaceholder","请输入");if(i==="read"){var d=zIt(Number(r)),h=U.jsx("span",{ref:n,children:d});return o?o(r,X({mode:i},s),h):h}if(i==="edit"||i==="update"){var p=U.jsx(gp,X({ref:n,min:0,style:{width:"100%"},placeholder:u},s));return a?a(r,X({mode:i},s),p):p}return null};const WIt=ge.forwardRef(UIt);var VIt=["mode","render","renderFormItem","fieldProps","emptyText"],KIt=function(t,n){var r=t.mode,i=t.render,o=t.renderFormItem,a=t.fieldProps,s=t.emptyText,l=s===void 0?"-":s,c=tn(t,VIt),u=f.useRef(),d=bC(t),h=Le(d,3),p=h[0],m=h[1],v=h[2];if(f.useImperativeHandle(n,function(){return X(X({},u.current||{}),{},{fetchData:function(T){return v(T)}})},[v]),p)return U.jsx(Sl,{size:"small"});if(r==="read"){var y=m!=null&&m.length?m==null?void 0:m.reduce(function(_,T){var x;return X(X({},_),{},ae({},(x=T.value)!==null&&x!==void 0?x:"",T.label))},{}):void 0,S=U.jsx(U.Fragment,{children:pC(c.text,Rp(c.valueEnum||y))});if(i){var b;return(b=i(c.text,X({mode:r},a),U.jsx(U.Fragment,{children:S})))!==null&&b!==void 0?b:l}return S}if(r==="edit"||r==="update"){var C=U.jsx(vbe,X(X({ref:u},Pr(a||{},["allowClear"])),{},{options:m}));return o?o(c.text,X(X({mode:r},a),{},{options:m,loading:p}),C):C}return null};const qIt=ge.forwardRef(KIt);var GIt=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.renderFormItem,s=t.fieldProps;if(i==="read"){var l=r;return o?o(r,X({mode:i},s),U.jsx(U.Fragment,{children:l})):U.jsx(U.Fragment,{children:l})}if(i==="edit"||i==="update"){var c=U.jsx(Ibe,X(X({ref:n},s),{},{style:X({minWidth:120},s==null?void 0:s.style)}));return a?a(r,X({mode:i},s),c):c}return null};const YIt=ge.forwardRef(GIt);var XIt=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.light,s=t.label,l=t.renderFormItem,c=t.fieldProps,u=Wo(),d=f.useMemo(function(){var y,S;return r==null||"".concat(r).length<1?"-":r?(y=c==null?void 0:c.checkedChildren)!==null&&y!==void 0?y:u.getMessage("switch.open","打开"):(S=c==null?void 0:c.unCheckedChildren)!==null&&S!==void 0?S:u.getMessage("switch.close","关闭")},[c==null?void 0:c.checkedChildren,c==null?void 0:c.unCheckedChildren,r]);if(i==="read")return o?o(r,X({mode:i},c),U.jsx(U.Fragment,{children:d})):d??"-";if(i==="edit"||i==="update"){var h,p=U.jsx(Q9,X(X({ref:n,size:a?"small":void 0},Pr(c,["value"])),{},{checked:(h=c==null?void 0:c.checked)!==null&&h!==void 0?h:c==null?void 0:c.value}));if(a){var m=c.disabled,v=c.bordered;return U.jsx($p,{label:s,disabled:m,bordered:v,downIcon:!1,value:U.jsx("div",{style:{paddingLeft:8},children:p}),allowClear:!1})}return l?l(r,X({mode:i},c),p):p}return null};const QIt=ge.forwardRef(XIt);var ZIt=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.renderFormItem,s=t.fieldProps,l=t.emptyText,c=l===void 0?"-":l,u=s||{},d=u.autoFocus,h=u.prefix,p=h===void 0?"":h,m=u.suffix,v=m===void 0?"":m,y=Wo(),S=f.useRef();if(f.useImperativeHandle(n,function(){return S.current},[]),f.useEffect(function(){if(d){var x;(x=S.current)===null||x===void 0||x.focus()}},[d]),i==="read"){var b=U.jsxs(U.Fragment,{children:[p,r??c,v]});if(o){var C;return(C=o(r,X({mode:i},s),b))!==null&&C!==void 0?C:c}return b}if(i==="edit"||i==="update"){var _=y.getMessage("tableForm.inputPlaceholder","请输入"),T=U.jsx($i,X({ref:S,placeholder:_,allowClear:!0},s));return a?a(r,X({mode:i},s),T):T}return null};const JIt=ge.forwardRef(ZIt);var e$t=function(t,n){var r=t.text,i=t.fieldProps,o=f.useContext(ar.ConfigContext),a=o.getPrefixCls,s=a("pro-field-readonly"),l="".concat(s,"-textarea"),c=no("TextArea",function(){return ae({},".".concat(l),{display:"inline-block",lineHeight:"1.5715",maxWidth:"100%",whiteSpace:"pre-wrap"})}),u=c.wrapSSR,d=c.hashId;return u(U.jsx("span",X(X({ref:n,className:Re(d,s,l)},Pr(i,["autoSize","classNames","styles"])),{},{children:r??"-"})))};const t$t=ge.forwardRef(e$t);var n$t=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.renderFormItem,s=t.fieldProps,l=Wo();if(i==="read"){var c=U.jsx(t$t,X(X({},t),{},{ref:n}));return o?o(r,X({mode:i},Pr(s,["showCount"])),c):c}if(i==="edit"||i==="update"){var u=U.jsx($i.TextArea,X({ref:n,rows:3,onKeyPress:function(h){h.key==="Enter"&&h.stopPropagation()},placeholder:l.getMessage("tableForm.inputPlaceholder","请输入")},s));return a?a(r,X({mode:i},s),u):u}return null};const r$t=ge.forwardRef(n$t);var i$t=function(t,n){var r=t.text,i=t.mode,o=t.light,a=t.label,s=t.format,l=t.render,c=t.renderFormItem,u=t.plain,d=t.fieldProps,h=t.lightLabel,p=f.useState(!1),m=Le(p,2),v=m[0],y=m[1],S=Wo(),b=(d==null?void 0:d.format)||s||"HH:mm:ss",C=Fr.isDayjs(r)||typeof r=="number";if(i==="read"){var _=U.jsx("span",{ref:n,children:r?Fr(r,C?void 0:b).format(b):"-"});return l?l(r,X({mode:i},d),U.jsx("span",{children:_})):_}if(i==="edit"||i==="update"){var T,x=d.disabled,E=d.value,k=WE(E,b);if(o){var M;T=U.jsx($p,{onClick:function(){var D;d==null||(D=d.onOpenChange)===null||D===void 0||D.call(d,!0),y(!0)},style:k?{paddingInlineEnd:0}:void 0,label:a,disabled:x,value:k||v?U.jsx(Ev,X(X(X({},Fc(!1)),{},{format:s,ref:n},d),{},{placeholder:(M=d.placeholder)!==null&&M!==void 0?M:S.getMessage("tableForm.selectPlaceholder","请选择"),value:k,onOpenChange:function(D){var R;y(D),d==null||(R=d.onOpenChange)===null||R===void 0||R.call(d,D)},open:v})):null,downIcon:k||v?!1:void 0,allowClear:!1,ref:h})}else T=U.jsx(Pu.TimePicker,X(X(X({ref:n,format:s},Fc(u===void 0?!0:!u)),d),{},{value:k}));return c?c(r,X({mode:i},d),T):T}return null},o$t=function(t,n){var r=t.text,i=t.light,o=t.label,a=t.mode,s=t.lightLabel,l=t.format,c=t.render,u=t.renderFormItem,d=t.plain,h=t.fieldProps,p=Wo(),m=f.useState(!1),v=Le(m,2),y=v[0],S=v[1],b=(h==null?void 0:h.format)||l||"HH:mm:ss",C=Array.isArray(r)?r:[],_=Le(C,2),T=_[0],x=_[1],E=Fr.isDayjs(T)||typeof T=="number",k=Fr.isDayjs(x)||typeof x=="number",M=T?Fr(T,E?void 0:b).format(b):"",P=x?Fr(x,k?void 0:b).format(b):"";if(a==="read"){var D=U.jsxs("div",{ref:n,children:[U.jsx("div",{children:M||"-"}),U.jsx("div",{children:P||"-"})]});return c?c(r,X({mode:a},h),U.jsx("span",{children:D})):D}if(a==="edit"||a==="update"){var R=WE(h.value,b),A;if(i){var H=h.disabled,F=h.placeholder,z=F===void 0?[p.getMessage("tableForm.selectPlaceholder","请选择"),p.getMessage("tableForm.selectPlaceholder","请选择")]:F;A=U.jsx($p,{onClick:function(){var q;h==null||(q=h.onOpenChange)===null||q===void 0||q.call(h,!0),S(!0)},style:R?{paddingInlineEnd:0}:void 0,label:o,disabled:H,placeholder:z,value:R||y?U.jsx(Ev.RangePicker,X(X(X({},Fc(!1)),{},{format:l,ref:n},h),{},{placeholder:z,value:R,onOpenChange:function(q){var Z;S(q),h==null||(Z=h.onOpenChange)===null||Z===void 0||Z.call(h,q)},open:y})):null,downIcon:R||y?!1:void 0,allowClear:!1,ref:s})}else A=U.jsx(Ev.RangePicker,X(X(X({ref:n,format:l},Fc(d===void 0?!0:!d)),h),{},{value:R}));return u?u(r,X({mode:a},h),A):A}return null},a$t=ge.forwardRef(o$t);const s$t=ge.forwardRef(i$t);var l$t=["radioType","renderFormItem","mode","light","label","render"],c$t=["onSearch","onClear","onChange","onBlur","showSearch","autoClearSearchValue","treeData","fetchDataOnSearch","searchValue"],u$t=function(t,n){t.radioType;var r=t.renderFormItem,i=t.mode,o=t.light,a=t.label,s=t.render,l=tn(t,l$t),c=f.useContext(ar.ConfigContext),u=c.getPrefixCls,d=u("pro-field-tree-select"),h=f.useRef(null),p=f.useState(!1),m=Le(p,2),v=m[0],y=m[1],S=l.fieldProps,b=S.onSearch,C=S.onClear,_=S.onChange,T=S.onBlur,x=S.showSearch,E=S.autoClearSearchValue;S.treeData;var k=S.fetchDataOnSearch,M=S.searchValue,P=tn(S,c$t),D=Wo(),R=bC(X(X({},l),{},{defaultKeyWords:M})),A=Le(R,3),H=A[0],F=A[1],z=A[2],W=er(void 0,{onChange:b,value:M}),q=Le(W,2),Z=q[0],N=q[1];f.useImperativeHandle(n,function(){return X(X({},h.current||{}),{},{fetchData:function(_e){return z(_e)}})});var B=f.useMemo(function(){if(i==="read"){var he=(P==null?void 0:P.fieldNames)||{},_e=he.value,le=_e===void 0?"value":_e,xe=he.label,we=xe===void 0?"label":xe,De=he.children,Fe=De===void 0?"children":De,Ce=new Map,Te=function ke(Pe){if(!(Pe!=null&&Pe.length))return Ce;for(var Ne=Pe.length,We=0;We<Ne;){var Q=Pe[We++];Ce.set(Q[le],Q[we]),ke(Q[Fe])}return Ce};return Te(F)}},[P==null?void 0:P.fieldNames,i,F]),V=function(_e,le,xe){x&&E&&(z(void 0),N(void 0)),_==null||_(_e,le,xe)};if(i==="read"){var G=U.jsx(U.Fragment,{children:pC(l.text,Rp(l.valueEnum||B))});if(s){var ie;return(ie=s(l.text,X({mode:i},P),G))!==null&&ie!==void 0?ie:null}return G}if(i==="edit"){var ce,fe=Array.isArray(P==null?void 0:P.value)?P==null||(ce=P.value)===null||ce===void 0?void 0:ce.length:0,ee=U.jsx(Sl,{spinning:H,children:U.jsx(e0,X(X({open:v,onDropdownVisibleChange:function(_e){var le;P==null||(le=P.onDropdownVisibleChange)===null||le===void 0||le.call(P,_e),y(_e)},ref:h,popupMatchSelectWidth:!o,placeholder:D.getMessage("tableForm.selectPlaceholder","请选择"),tagRender:o?function(he){var _e;if(fe<2)return U.jsx(U.Fragment,{children:he.label});var le=P==null||(_e=P.value)===null||_e===void 0?void 0:_e.findIndex(function(xe){return xe===he.value||xe.value===he.value});return U.jsxs(U.Fragment,{children:[he.label," ",le<fe-1?",":""]})}:void 0,bordered:!o},P),{},{treeData:F,showSearch:x,style:X({minWidth:60},P.style),allowClear:P.allowClear!==!1,searchValue:Z,autoClearSearchValue:E,onClear:function(){C==null||C(),z(void 0),x&&N(void 0)},onChange:V,onSearch:function(_e){k&&l!==null&&l!==void 0&&l.request&&z(_e),N(_e)},onBlur:function(_e){N(void 0),z(void 0),T==null||T(_e)},className:Re(P==null?void 0:P.className,d)}))});if(r){var ne;ee=(ne=r(l.text,X(X({mode:i},P),{},{options:F,loading:H}),ee))!==null&&ne!==void 0?ne:null}if(o){var ue,ye=P.disabled,me=P.placeholder,pe=!!P.value&&((ue=P.value)===null||ue===void 0?void 0:ue.length)!==0;return U.jsx($p,{label:a,disabled:ye,placeholder:me,onClick:function(){var _e;y(!0),P==null||(_e=P.onDropdownVisibleChange)===null||_e===void 0||_e.call(P,!0)},bordered:l.bordered,value:pe||v?ee:null,style:pe?{paddingInlineEnd:0}:void 0,allowClear:!1,downIcon:!1})}return ee}return null};const d$t=ge.forwardRef(u$t);function El(e){var t=f.useState(!1),n=Le(t,2),r=n[0],i=n[1],o=f.useRef(null),a=f.useCallback(function(c){var u,d,h=(u=o.current)===null||u===void 0||(u=u.labelRef)===null||u===void 0||(u=u.current)===null||u===void 0?void 0:u.contains(c.target),p=(d=o.current)===null||d===void 0||(d=d.clearRef)===null||d===void 0||(d=d.current)===null||d===void 0?void 0:d.contains(c.target);return h&&!p},[o]),s=function(u){a(u)&&i(!0)},l=function(){i(!1)};return e.isLight?U.jsx("div",{onMouseDown:s,onMouseUp:l,children:ge.cloneElement(e.children,{labelTrigger:r,lightLabel:o})}):U.jsx(U.Fragment,{children:e.children})}var iwe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(vo,function(){var n="day";return function(r,i,o){var a=function(c){return c.add(4-c.isoWeekday(),n)},s=i.prototype;s.isoWeekYear=function(){return a(this).year()},s.isoWeek=function(c){if(!this.$utils().u(c))return this.add(7*(c-this.isoWeek()),n);var u,d,h,p,m=a(this),v=(u=this.isoWeekYear(),d=this.$u,h=(d?o.utc:o)().year(u).startOf("year"),p=4-h.isoWeekday(),h.isoWeekday()>4&&(p+=7),h.add(p,n));return m.diff(v,"week")+1},s.isoWeekday=function(c){return this.$utils().u(c)?this.day()||7:this.day(this.day()%7?c:c-7)};var l=s.startOf;s.startOf=function(c,u){var d=this.$utils(),h=!!d.u(u)||u;return d.p(c)==="isoweek"?h?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):l.bind(this)(c,u)}}})})(iwe);var f$t=iwe.exports;const h$t=vi(f$t);var owe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(vo,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,i,o){var a=i.prototype,s=a.format;o.en.formats=n,a.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,u=function(d,h){return d.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(p,m,v){var y=v&&v.toUpperCase();return m||h[v]||n[v]||h[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(S,b,C){return b||C.slice(1)})})}(l,c===void 0?{}:c);return s.call(this,u)}}})})(owe);var p$t=owe.exports;const m$t=vi(p$t);var g$t=["fieldProps"],v$t=["fieldProps"],y$t=["fieldProps"],b$t=["fieldProps"],S$t=["text","valueType","mode","onChange","renderFormItem","value","readonly","fieldProps"],C$t=["placeholder"];Fr.extend(K0e);Fr.extend(X0e);Fr.extend(h$t);Fr.extend(dW);Fr.extend(W0e);Fr.extend(m$t);var x$t=function(t,n,r){var i=Axe(r.fieldProps);return n.type==="progress"?U.jsx(rwe,X(X({},r),{},{text:t,fieldProps:X({status:n.status?n.status:void 0},i)})):n.type==="money"?U.jsx(twe,X(X({locale:n.locale},r),{},{fieldProps:i,text:t,moneySymbol:n.moneySymbol})):n.type==="percent"?U.jsx(nwe,X(X({},r),{},{text:t,showSymbol:n.showSymbol,precision:n.precision,fieldProps:i,showColor:n.showColor})):n.type==="image"?U.jsx(J2e,X(X({},r),{},{text:t,width:n.width})):t},w$t=function(t,n,r,i){var o=r.mode,a=o===void 0?"read":o,s=r.emptyText,l=s===void 0?"-":s;if(l!==!1&&a==="read"&&n!=="option"&&n!=="switch"&&typeof t!="boolean"&&typeof t!="number"&&!t){var c=r.fieldProps,u=r.render;return u?u(t,X({mode:a},c),U.jsx(U.Fragment,{children:l})):U.jsx(U.Fragment,{children:l})}if(delete r.emptyText,ln(n)==="object")return x$t(t,n,r);var d=i&&i[n];if(d){if(delete r.ref,a==="read"){var h;return(h=d.render)===null||h===void 0?void 0:h.call(d,t,X(X({text:t},r),{},{mode:a||"read"}),U.jsx(U.Fragment,{children:t}))}if(a==="update"||a==="edit"){var p;return(p=d.renderFormItem)===null||p===void 0?void 0:p.call(d,t,X({text:t},r),U.jsx(U.Fragment,{children:t}))}}if(n==="money")return U.jsx(twe,X(X({},r),{},{text:t}));if(n==="date")return U.jsx(El,{isLight:r.light,children:U.jsx(ly,X({text:t,format:"YYYY-MM-DD"},r))});if(n==="dateWeek")return U.jsx(El,{isLight:r.light,children:U.jsx(ly,X({text:t,format:"YYYY-wo",picker:"week"},r))});if(n==="dateWeekRange"){var m=r.fieldProps,v=tn(r,g$t);return U.jsx(El,{isLight:r.light,children:U.jsx(cy,X({text:t,format:"YYYY-W",showTime:!0,fieldProps:X({picker:"week"},m)},v))})}if(n==="dateMonthRange"){var y=r.fieldProps,S=tn(r,v$t);return U.jsx(El,{isLight:r.light,children:U.jsx(cy,X({text:t,format:"YYYY-MM",showTime:!0,fieldProps:X({picker:"month"},y)},S))})}if(n==="dateQuarterRange"){var b=r.fieldProps,C=tn(r,y$t);return U.jsx(El,{isLight:r.light,children:U.jsx(cy,X({text:t,format:"YYYY-Q",showTime:!0,fieldProps:X({picker:"quarter"},b)},C))})}if(n==="dateYearRange"){var _=r.fieldProps,T=tn(r,b$t);return U.jsx(El,{isLight:r.light,children:U.jsx(cy,X({text:t,format:"YYYY",showTime:!0,fieldProps:X({picker:"year"},_)},T))})}return n==="dateMonth"?U.jsx(El,{isLight:r.light,children:U.jsx(ly,X({text:t,format:"YYYY-MM",picker:"month"},r))}):n==="dateQuarter"?U.jsx(El,{isLight:r.light,children:U.jsx(ly,X({text:t,format:"YYYY-[Q]Q",picker:"quarter"},r))}):n==="dateYear"?U.jsx(El,{isLight:r.light,children:U.jsx(ly,X({text:t,format:"YYYY",picker:"year"},r))}):n==="dateRange"?U.jsx(cy,X({text:t,format:"YYYY-MM-DD"},r)):n==="dateTime"?U.jsx(El,{isLight:r.light,children:U.jsx(ly,X({text:t,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},r))}):n==="dateTimeRange"?U.jsx(El,{isLight:r.light,children:U.jsx(cy,X({text:t,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},r))}):n==="time"?U.jsx(El,{isLight:r.light,children:U.jsx(s$t,X({text:t,format:"HH:mm:ss"},r))}):n==="timeRange"?U.jsx(El,{isLight:r.light,children:U.jsx(a$t,X({text:t,format:"HH:mm:ss"},r))}):n==="fromNow"?U.jsx(pIt,X({text:t},r)):n==="index"?U.jsx(Uie,{children:t+1}):n==="indexBorder"?U.jsx(Uie,{border:!0,children:t+1}):n==="progress"?U.jsx(rwe,X(X({},r),{},{text:t})):n==="percent"?U.jsx(nwe,X({text:t},r)):n==="avatar"&&typeof t=="string"&&r.mode==="read"?U.jsx(yg,{src:t,size:22,shape:"circle"}):n==="code"?U.jsx(Pre,X({text:t},r)):n==="jsonCode"?U.jsx(Pre,X({text:t,language:"json"},r)):n==="textarea"?U.jsx(r$t,X({text:t},r)):n==="digit"?U.jsx(lIt,X({text:t},r)):n==="digitRange"?U.jsx(uIt,X({text:t},r)):n==="second"?U.jsx(WIt,X({text:t},r)):n==="select"||n==="text"&&(r.valueEnum||r.request)?U.jsx(El,{isLight:r.light,children:U.jsx(ISt,X({text:t},r))}):n==="checkbox"?U.jsx(FSt,X({text:t},r)):n==="radio"?U.jsx(Kie,X({text:t},r)):n==="radioButton"?U.jsx(Kie,X({radioType:"button",text:t},r)):n==="rate"?U.jsx(HIt,X({text:t},r)):n==="slider"?U.jsx(YIt,X({text:t},r)):n==="switch"?U.jsx(QIt,X({text:t},r)):n==="option"?U.jsx(kIt,X({text:t},r)):n==="password"?U.jsx(MIt,X({text:t},r)):n==="image"?U.jsx(J2e,X({text:t},r)):n==="cascader"?U.jsx(ASt,X({text:t},r)):n==="treeSelect"?U.jsx(d$t,X({text:t},r)):n==="color"?U.jsx(iIt,X({text:t},r)):n==="segmented"?U.jsx(qIt,X({text:t},r)):U.jsx(JIt,X({text:t},r))},_$t=function(t,n){var r,i,o,a,s,l=t.text,c=t.valueType,u=c===void 0?"text":c,d=t.mode,h=d===void 0?"read":d,p=t.onChange,m=t.renderFormItem,v=t.value,y=t.readonly,S=t.fieldProps,b=tn(t,S$t),C=f.useContext(sg),_=Pd(function(){for(var E,k=arguments.length,M=new Array(k),P=0;P<k;P++)M[P]=arguments[P];S==null||(E=S.onChange)===null||E===void 0||E.call.apply(E,[S].concat(M)),p==null||p.apply(void 0,M)}),T=$l(function(){return(v!==void 0||S)&&X(X({value:v},pu(S)),{},{onChange:_})},[v,S,_]),x=w$t(h==="edit"?(r=(i=T==null?void 0:T.value)!==null&&i!==void 0?i:l)!==null&&r!==void 0?r:"":(o=l??(T==null?void 0:T.value))!==null&&o!==void 0?o:"",u||"text",pu(X(X({ref:n},b),{},{mode:y?"read":h,renderFormItem:m?function(E,k,M){k.placeholder;var P=tn(k,C$t),D=m(E,P,M);return ge.isValidElement(D)?ge.cloneElement(D,X(X({},T),D.props||{})):D}:void 0,placeholder:m?void 0:(a=b==null?void 0:b.placeholder)!==null&&a!==void 0?a:T==null?void 0:T.placeholder,fieldProps:Axe(pu(X(X({},T),{},{placeholder:m?void 0:(s=b==null?void 0:b.placeholder)!==null&&s!==void 0?s:T==null?void 0:T.placeholder})))})),C.valueTypeMap||{});return U.jsx(ge.Fragment,{children:x})},E$t=ge.forwardRef(_$t),HV=ge.createContext({mode:"edit"}),T$t=["fieldProps","children","labelCol","label","autoFocus","isDefaultDom","render","proFieldProps","renderFormItem","valueType","initialValue","onChange","valueEnum","params","name","dependenciesValues","cacheForSwr","valuePropName"],k$t=function(t){var n=t.fieldProps,r=t.children;t.labelCol,t.label;var i=t.autoFocus;t.isDefaultDom;var o=t.render,a=t.proFieldProps,s=t.renderFormItem,l=t.valueType;t.initialValue;var c=t.onChange,u=t.valueEnum,d=t.params;t.name;var h=t.dependenciesValues,p=t.cacheForSwr,m=p===void 0?!1:p,v=t.valuePropName,y=v===void 0?"value":v,S=tn(t,T$t),b=f.useContext(HV),C=f.useMemo(function(){return h&&S.request?X(X({},d),h||{}):d},[h,d,S.request]),_=Pd(function(){if(n!=null&&n.onChange){for(var E,k=arguments.length,M=new Array(k),P=0;P<k;P++)M[P]=arguments[P];n==null||(E=n.onChange)===null||E===void 0||E.call.apply(E,[n].concat(M));return}}),T=f.useMemo(function(){return X(X({autoFocus:i},n),{},{onChange:_})},[i,n,_]),x=f.useMemo(function(){if(r)return ge.isValidElement(r)?ge.cloneElement(r,X(X({},S),{},{onChange:function(){for(var k=arguments.length,M=new Array(k),P=0;P<k;P++)M[P]=arguments[P];if(n!=null&&n.onChange){var D;n==null||(D=n.onChange)===null||D===void 0||D.call.apply(D,[n].concat(M));return}c==null||c.apply(void 0,M)}},(r==null?void 0:r.props)||{})):U.jsx(U.Fragment,{children:r})},[r,n==null?void 0:n.onChange,c,S]);return x||U.jsx(E$t,X(X(X({text:n==null?void 0:n[y],render:o,renderFormItem:s,valueType:l||"text",cacheForSwr:m,fieldProps:T,valueEnum:iS(u)},a),S),{},{mode:(a==null?void 0:a.mode)||b.mode||"edit",params:C}))},lg=xV(f.memo(k$t,function(e,t){return J1(t,e,["onChange","onBlur"])})),O$t=["options","fieldProps","proFieldProps","valueEnum"],P$t=ge.forwardRef(function(e,t){var n=e.options,r=e.fieldProps,i=e.proFieldProps,o=e.valueEnum,a=tn(e,O$t);return U.jsx(lg,X({ref:t,valueType:"checkbox",valueEnum:iS(o,void 0),fieldProps:X({options:n},r),lightProps:X({labelFormatter:function(){return U.jsx(lg,X({ref:t,valueType:"checkbox",mode:"read",valueEnum:iS(o,void 0),filedConfig:{customLightMode:!0},fieldProps:X({options:n},r),proFieldProps:i},a))}},a.lightProps),proFieldProps:i},a))}),M$t=ge.forwardRef(function(e,t){var n=e.fieldProps,r=e.children;return U.jsx(mp,X(X({ref:t},n),{},{children:r}))}),I$t=xV(M$t,{valuePropName:"checked"}),zV=I$t;zV.Group=P$t;var UV=ge.createContext({}),$$t=["name","originDependencies","children","ignoreFormListField"],awe=function(t){var n=t.name,r=t.originDependencies,i=r===void 0?n:r,o=t.children,a=t.ignoreFormListField,s=tn(t,$$t),l=f.useContext(Oxe),c=f.useContext(UV),u=f.useMemo(function(){return n.map(function(d){var h,p=[d];return!a&&c.name!==void 0&&(h=c.listName)!==null&&h!==void 0&&h.length&&p.unshift(c.listName),p.flat(1)})},[c.listName,c.name,a,n==null?void 0:n.toString()]);return U.jsx(Or.Item,X(X({},s),{},{noStyle:!0,shouldUpdate:function(h,p,m){if(typeof s.shouldUpdate=="boolean")return s.shouldUpdate;if(typeof s.shouldUpdate=="function"){var v;return(v=s.shouldUpdate)===null||v===void 0?void 0:v.call(s,h,p,m)}return u.some(function(y){return!J1(jo(h,y),jo(p,y))})},children:function(h){for(var p={},m=0;m<n.length;m++){var v,y=u[m],S=i[m],b=[S].flat(1),C=(v=l.getFieldFormatValueObject)===null||v===void 0?void 0:v.call(l,y);if(C&&Object.keys(C).length)p=Rxe({},p,C),jo(C,y)&&(p=ca(p,b,jo(C,y)));else{var _;C=(_=h.getFieldValue)===null||_===void 0?void 0:_.call(h,y),typeof C<"u"&&(p=ca(p,b,C))}}return o==null?void 0:o(p,X(X({},h),l))}}))};awe.displayName="ProFormDependency";var R$t=["children","onChange","onBlur","ignoreFormItem","valuePropName"],A$t=["children","addonAfter","addonBefore","valuePropName","addonWarpStyle","convertValue","help"],N$t=["valueType","transform","dataFormat","ignoreFormItem","lightProps","children"],D$t=ge.createContext({}),L$t=function(t){var n,r,i=t.children,o=t.onChange,a=t.onBlur;t.ignoreFormItem;var s=t.valuePropName,l=s===void 0?"value":s,c=tn(t,R$t),u=(i==null||(n=i.type)===null||n===void 0?void 0:n.displayName)!=="ProFormComponent",d=!ge.isValidElement(i),h=Pd(function(){for(var b,C,_,T,x=arguments.length,E=new Array(x),k=0;k<x;k++)E[k]=arguments[k];o==null||o.apply(void 0,E),!u&&(d||(i==null||(b=i.props)===null||b===void 0||(C=b.onChange)===null||C===void 0||C.call.apply(C,[b].concat(E)),i==null||(_=i.props)===null||_===void 0||(_=_.fieldProps)===null||_===void 0||(T=_.onChange)===null||T===void 0||T.call.apply(T,[_].concat(E))))}),p=Pd(function(){var b,C,_,T;if(!u&&!d){for(var x=arguments.length,E=new Array(x),k=0;k<x;k++)E[k]=arguments[k];a==null||a.apply(void 0,E),i==null||(b=i.props)===null||b===void 0||(C=b.onBlur)===null||C===void 0||C.call.apply(C,[b].concat(E)),i==null||(_=i.props)===null||_===void 0||(_=_.fieldProps)===null||_===void 0||(T=_.onBlur)===null||T===void 0||T.call.apply(T,[_].concat(E))}}),m=$l(function(){var b;return Pr((i==null||(b=i.props)===null||b===void 0?void 0:b.fieldProps)||{},["onBlur","onChange"])},[Pr((i==null||(r=i.props)===null||r===void 0?void 0:r.fieldProps)||{},["onBlur","onChange"])]),v=t[l],y=f.useMemo(function(){if(!u&&!d)return pu(X(X(ae({id:c.id},l,v),m),{},{onBlur:p,onChange:h}))},[v,m,p,h,c.id,l]),S=f.useMemo(function(){if(!y&&ge.isValidElement(i))return function(){for(var b,C,_=arguments.length,T=new Array(_),x=0;x<_;x++)T[x]=arguments[x];o==null||o.apply(void 0,T),i==null||(b=i.props)===null||b===void 0||(C=b.onChange)===null||C===void 0||C.call.apply(C,[b].concat(T))}},[y,i,o]);return ge.isValidElement(i)?ge.cloneElement(i,pu(X(X(X({},c),{},ae({},l,t[l]),i.props),{},{onChange:S,fieldProps:y,onBlur:u&&!d&&a}))):U.jsx(U.Fragment,{children:i})},qie=function(t){var n=t.children,r=t.addonAfter,i=t.addonBefore,o=t.valuePropName,a=t.addonWarpStyle,s=t.convertValue,l=t.help,c=tn(t,A$t),u=f.useMemo(function(){var d=function(p){var m,v=(m=s==null?void 0:s(p,c.name))!==null&&m!==void 0?m:p;return c.getValueProps?c.getValueProps(v):ae({},o||"value",v)};return!s&&!c.getValueProps&&(d=void 0),!r&&!i?U.jsx(Or.Item,X(X({},c),{},{help:typeof l!="function"?l:void 0,valuePropName:o,getValueProps:d,_internalItemRender:{mark:"pro_table_render",render:function(p,m){return U.jsxs(U.Fragment,{children:[m.input,typeof l=="function"?l({errors:p.errors,warnings:p.warnings}):m.errorList,m.extra]})}},children:n})):U.jsx(Or.Item,X(X(X({},c),{},{help:typeof l!="function"?l:void 0,valuePropName:o,_internalItemRender:{mark:"pro_table_render",render:function(p,m){return U.jsxs(U.Fragment,{children:[U.jsxs("div",{style:X({display:"flex",alignItems:"center",flexWrap:"wrap"},a),children:[i?U.jsx("div",{style:{marginInlineEnd:8},children:i}):null,m.input,r?U.jsx("div",{style:{marginInlineStart:8},children:r}):null]}),typeof l=="function"?l({errors:p.errors,warnings:p.warnings}):m.errorList,m.extra]})}}},c),{},{getValueProps:d,children:n}))},[r,i,n,s==null?void 0:s.toString(),c]);return U.jsx(D$t.Provider,{value:{name:c.name,label:c.label},children:u})},swe=function(t){var n,r,i,o,a=(ar==null||(n=ar.useConfig)===null||n===void 0?void 0:n.call(ar))||{componentSize:"middle"},s=a.componentSize,l=s,c=t.valueType,u=t.transform,d=t.dataFormat,h=t.ignoreFormItem,p=t.lightProps;t.children;var m=tn(t,N$t),v=f.useContext(UV),y=f.useMemo(function(){return t.name===void 0?t.name:v.name!==void 0?[v.name,t.name].flat(1):t.name},[v.name,t.name]),S=ge.useContext(yC),b=S.setFieldValueType,C=S.formItemProps;f.useEffect(function(){!b||!t.name||b([v.listName,t.name].flat(1).filter(function(M){return M!==void 0}),{valueType:c||"text",dateFormat:d,transform:u})},[v.listName,y,d,t.name,b,u,c]);var _=ge.isValidElement(t.children)&&g0t(c||t.children.props.valueType),T=f.useMemo(function(){return!!(!(p!=null&&p.light)||p!=null&&p.customLightMode||_)},[p==null?void 0:p.customLightMode,_,p==null?void 0:p.light]);if(typeof t.children=="function"){var x;return f.createElement(qie,X(X({},m),{},{name:y,key:m.proFormFieldKey||((x=m.name)===null||x===void 0?void 0:x.toString())}),t.children)}var E=U.jsx(L$t,{valuePropName:t.valuePropName,children:t.children},m.proFormFieldKey||((r=m.name)===null||r===void 0?void 0:r.toString())),k=T?E:f.createElement(sRt,X(X({},p),{},{key:m.proFormFieldKey||((i=m.name)===null||i===void 0?void 0:i.toString()),size:l}),E);return h?U.jsx(U.Fragment,{children:k}):U.jsx(qie,X(X(X({},C),m),{},{name:y,isListField:v.name!==void 0,children:k}),m.proFormFieldKey||((o=m.name)===null||o===void 0?void 0:o.toString()))},F$t=function(t){return ae({},t.componentCls,{"&-title":{marginBlockEnd:t.marginXL,fontWeight:"bold"},"&-container":ae({flexWrap:"wrap",maxWidth:"100%"},"> div".concat(t.antCls,"-space-item"),{maxWidth:"100%"}),"&-twoLine":ae(ae(ae(ae({display:"block",width:"100%"},"".concat(t.componentCls,"-title"),{width:"100%",margin:"8px 0"}),"".concat(t.componentCls,"-container"),{paddingInlineStart:16}),"".concat(t.antCls,"-space-item,").concat(t.antCls,"-form-item"),{width:"100%"}),"".concat(t.antCls,"-form-item"),{"&-control":{display:"flex",alignItems:"center",justifyContent:"flex-end","&-input":{alignItems:"center",justifyContent:"flex-end","&-content":{flex:"none"}}}})})};function j$t(e){return no("ProFormGroup",function(t){var n=X(X({},t),{},{componentCls:".".concat(e)});return[F$t(n)]})}var lwe=ge.forwardRef(function(e,t){var n=ge.useContext(yC),r=n.groupProps,i=X(X({},r),e),o=i.children,a=i.collapsible,s=i.defaultCollapsed,l=i.style,c=i.labelLayout,u=i.title,d=u===void 0?e.label:u,h=i.tooltip,p=i.align,m=p===void 0?"start":p,v=i.direction,y=i.size,S=y===void 0?32:y,b=i.titleStyle,C=i.titleRender,_=i.spaceProps,T=i.extra,x=i.autoFocus,E=er(function(){return s||!1},{value:e.collapsed,onChange:e.onCollapse}),k=Le(E,2),M=k[0],P=k[1],D=f.useContext(ar.ConfigContext),R=D.getPrefixCls,A=CV(e),H=A.ColWrapper,F=A.RowWrapper,z=R("pro-form-group"),W=j$t(z),q=W.wrapSSR,Z=W.hashId,N=a&&U.jsx(hp,{style:{marginInlineEnd:8},rotate:M?void 0:90}),B=U.jsx(t0t,{label:N?U.jsxs("div",{children:[N,d]}):d,tooltip:h}),V=f.useCallback(function(ne){var ue=ne.children;return U.jsx(pa,X(X({},_),{},{className:Re("".concat(z,"-container ").concat(Z),_==null?void 0:_.className),size:S,align:m,direction:v,style:X({rowGap:0},_==null?void 0:_.style),children:ue}))},[m,z,v,Z,S,_]),G=C?C(B,e):B,ie=f.useMemo(function(){var ne=[],ue=ge.Children.toArray(o).map(function(ye,me){var pe;return ge.isValidElement(ye)&&ye!==null&&ye!==void 0&&(pe=ye.props)!==null&&pe!==void 0&&pe.hidden?(ne.push(ye),null):me===0&&ge.isValidElement(ye)&&x?ge.cloneElement(ye,X(X({},ye.props),{},{autoFocus:x})):ye});return[U.jsx(F,{Wrapper:V,children:ue},"children"),ne.length>0?U.jsx("div",{style:{display:"none"},children:ne}):null]},[o,F,V,x]),ce=Le(ie,2),fe=ce[0],ee=ce[1];return q(U.jsx(H,{children:U.jsxs("div",{className:Re(z,Z,ae({},"".concat(z,"-twoLine"),c==="twoLine")),style:l,ref:t,children:[ee,(d||h||T)&&U.jsx("div",{className:"".concat(z,"-title ").concat(Z).trim(),style:b,onClick:function(){P(!M)},children:T?U.jsxs("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[G,U.jsx("span",{onClick:function(ue){return ue.stopPropagation()},children:T})]}):G}),U.jsx("div",{style:{display:a&&M?"none":void 0},children:fe})]})}))});lwe.displayName="ProForm-Group";var B$t=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],H$t=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],z$t=function(t,n){var r=t.fieldProps,i=t.children,o=t.params,a=t.proFieldProps,s=t.mode,l=t.valueEnum,c=t.request,u=t.showSearch,d=t.options,h=tn(t,B$t),p=f.useContext(yC);return U.jsx(lg,X(X({valueEnum:iS(l),request:c,params:o,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:X({options:d,mode:s,showSearch:u,getPopupContainer:p.getPopupContainer},r),ref:n,proFieldProps:a},h),{},{children:i}))},U$t=ge.forwardRef(function(e,t){var n=e.fieldProps,r=e.children,i=e.params,o=e.proFieldProps,a=e.mode,s=e.valueEnum,l=e.request,c=e.options,u=tn(e,H$t),d=X({options:c,mode:a||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},n),h=f.useContext(yC);return U.jsx(lg,X(X({valueEnum:iS(s),request:l,params:i,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:X({getPopupContainer:h.getPopupContainer},d),ref:t,proFieldProps:o},u),{},{children:r}))}),W$t=ge.forwardRef(z$t),V$t=U$t,WV=W$t;WV.SearchSelect=V$t;WV.displayName="ProFormComponent";var K$t=function(t){var n=Wo(),r=Or.useFormInstance();if(t.render===!1)return null;var i=t.onSubmit,o=t.render,a=t.onReset,s=t.searchConfig,l=s===void 0?{}:s,c=t.submitButtonProps,u=t.resetButtonProps,d=qf.useToken(),h=d.token,p=function(){r.submit(),i==null||i()},m=function(){r.resetFields(),a==null||a()},v=l.submitText,y=v===void 0?n.getMessage("tableForm.submit","提交"):v,S=l.resetText,b=S===void 0?n.getMessage("tableForm.reset","重置"):S,C=[];u!==!1&&C.push(f.createElement(pr,X(X({},Pr(u??{},["preventDefault"])),{},{key:"rest",onClick:function(x){var E;u!=null&&u.preventDefault||m(),u==null||(E=u.onClick)===null||E===void 0||E.call(u,x)}}),b)),c!==!1&&C.push(f.createElement(pr,X(X({type:"primary"},Pr(c||{},["preventDefault"])),{},{key:"submit",onClick:function(x){var E;c!=null&&c.preventDefault||p(),c==null||(E=c.onClick)===null||E===void 0||E.call(c,x)}}),y));var _=o?o(X(X({},t),{},{form:r,submit:p,reset:m}),C):C;return _?Array.isArray(_)?(_==null?void 0:_.length)<1?null:(_==null?void 0:_.length)===1?_[0]:U.jsx("div",{style:{display:"flex",gap:h.marginXS,alignItems:"center"},children:_}):_:null},q$t=["fieldProps","proFieldProps"],G$t=["fieldProps","proFieldProps"],Sk="text",Y$t=function(t){var n=t.fieldProps,r=t.proFieldProps,i=tn(t,q$t);return U.jsx(lg,X({valueType:Sk,fieldProps:n,filedConfig:{valueType:Sk},proFieldProps:r},i))},X$t=function(t){var n=er(t.open||!1,{value:t.open,onChange:t.onOpenChange}),r=Le(n,2),i=r[0],o=r[1];return U.jsx(Or.Item,{shouldUpdate:!0,noStyle:!0,children:function(s){var l,c=s.getFieldValue(t.name||[]);return U.jsx(Ou,X(X({getPopupContainer:function(d){return d&&d.parentNode?d.parentNode:d},onOpenChange:function(d){return o(d)},content:U.jsxs("div",{style:{padding:"4px 0"},children:[(l=t.statusRender)===null||l===void 0?void 0:l.call(t,c),t.strengthText?U.jsx("div",{style:{marginTop:10},children:U.jsx("span",{children:t.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},t.popoverProps),{},{open:i,children:t.children}))}})},Q$t=function(t){var n=t.fieldProps,r=t.proFieldProps,i=tn(t,G$t),o=f.useState(!1),a=Le(o,2),s=a[0],l=a[1];return n!=null&&n.statusRender&&i.name?U.jsx(X$t,{name:i.name,statusRender:n==null?void 0:n.statusRender,popoverProps:n==null?void 0:n.popoverProps,strengthText:n==null?void 0:n.strengthText,open:s,onOpenChange:l,children:U.jsx("div",{children:U.jsx(lg,X({valueType:"password",fieldProps:X(X({},Pr(n,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(u){var d;n==null||(d=n.onBlur)===null||d===void 0||d.call(n,u),l(!1)},onClick:function(u){var d;n==null||(d=n.onClick)===null||d===void 0||d.call(n,u),l(!0)}}),proFieldProps:r,filedConfig:{valueType:Sk}},i))})}):U.jsx(lg,X({valueType:"password",fieldProps:n,proFieldProps:r,filedConfig:{valueType:Sk}},i))},Fi=Y$t;Fi.Password=Q$t;Fi.displayName="ProFormComponent";var Z$t=["fieldProps","proFieldProps"],J$t=function(t,n){var r=t.fieldProps,i=t.proFieldProps,o=tn(t,Z$t);return U.jsx(lg,X({ref:n,valueType:"textarea",fieldProps:r,proFieldProps:i},o))};const VV=ge.forwardRef(J$t);var eRt=["children","contentRender","submitter","fieldProps","formItemProps","groupProps","transformKey","formRef","onInit","form","loading","formComponentType","extraUrlParams","syncToUrl","onUrlSearchChange","onReset","omitNil","isKeyPressSubmit","autoFocusFirstInput","grid","rowProps","colProps"],tRt=["extraUrlParams","syncToUrl","isKeyPressSubmit","syncToUrlAsImportant","syncToInitialValues","children","contentRender","submitter","fieldProps","proFieldProps","formItemProps","groupProps","dateFormatter","formRef","onInit","form","formComponentType","onReset","grid","rowProps","colProps","omitNil","request","params","initialValues","formKey","readonly","onLoadingChange","loading"],U8=function(t,n,r){return t===!0?n:iS(t,n,r)},Gie=function(t){return!t||Array.isArray(t)?t:[t]};function nRt(e){var t,n=e.children,r=e.contentRender,i=e.submitter;e.fieldProps,e.formItemProps,e.groupProps;var o=e.transformKey,a=e.formRef,s=e.onInit,l=e.form,c=e.loading;e.formComponentType;var u=e.extraUrlParams,d=u===void 0?{}:u,h=e.syncToUrl,p=e.onUrlSearchChange,m=e.onReset,v=e.omitNil,y=v===void 0?!0:v;e.isKeyPressSubmit;var S=e.autoFocusFirstInput,b=S===void 0?!0:S,C=e.grid,_=e.rowProps,T=e.colProps,x=tn(e,eRt),E=Or.useFormInstance(),k=(ar==null||(t=ar.useConfig)===null||t===void 0?void 0:t.call(ar))||{componentSize:"middle"},M=k.componentSize,P=f.useRef(l||E),D=CV({grid:C,rowProps:_}),R=D.RowWrapper,A=Pd(function(){return E}),H=f.useMemo(function(){return{getFieldsFormatValue:function(B){var V;return o((V=A())===null||V===void 0?void 0:V.getFieldsValue(B),y)},getFieldFormatValue:function(){var B,V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],G=Gie(V);if(!G)throw new Error("nameList is require");var ie=(B=A())===null||B===void 0?void 0:B.getFieldValue(G),ce=G?ca({},G,ie):ie,fe=pt(G);return fe.shift(),jo(o(ce,y,fe),G)},getFieldFormatValueObject:function(B){var V,G=Gie(B),ie=(V=A())===null||V===void 0?void 0:V.getFieldValue(G),ce=G?ca({},G,ie):ie;return o(ce,y,G)},validateFieldsReturnFormatValue:function(){var N=Zo(Hr().mark(function V(G){var ie,ce,fe;return Hr().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:if(!(!Array.isArray(G)&&G)){ne.next=2;break}throw new Error("nameList must be array");case 2:return ne.next=4,(ie=A())===null||ie===void 0?void 0:ie.validateFields(G);case 4:return ce=ne.sent,fe=o(ce,y),ne.abrupt("return",fe||{});case 7:case"end":return ne.stop()}},V)}));function B(V){return N.apply(this,arguments)}return B}()}},[y,o]),F=f.useMemo(function(){return ge.Children.toArray(n).map(function(N,B){return B===0&&ge.isValidElement(N)&&b?ge.cloneElement(N,X(X({},N.props),{},{autoFocus:b})):N})},[b,n]),z=f.useMemo(function(){return typeof i=="boolean"||!i?{}:i},[i]),W=f.useMemo(function(){if(i!==!1)return U.jsx(K$t,X(X({},z),{},{onReset:function(){var B,V,G=o((B=P.current)===null||B===void 0?void 0:B.getFieldsValue(),y);if(z==null||(V=z.onReset)===null||V===void 0||V.call(z,G),m==null||m(G),h){var ie,ce=Object.keys(o((ie=P.current)===null||ie===void 0?void 0:ie.getFieldsValue(),!1)).reduce(function(fe,ee){return X(X({},fe),{},ae({},ee,G[ee]||void 0))},d);p(U8(h,ce||{},"set"))}},submitButtonProps:X({loading:c},z.submitButtonProps)}),"submitter")},[i,z,c,o,y,m,h,d,p]),q=f.useMemo(function(){var N=C?U.jsx(R,{children:F}):F;return r?r(N,W,P.current):N},[C,R,F,r,W]),Z=m0t(e.initialValues);return f.useEffect(function(){if(!(h||!e.initialValues||!Z||x.request)){var N=J1(e.initialValues,Z);a9(N,"initialValues 只在 form 初始化时生效,如果你需要异步加载推荐使用 request,或者 initialValues ? <Form/> : null "),a9(N,"The initialValues only take effect when the form is initialized, if you need to load asynchronously recommended request, or the initialValues ? <Form/> : null ")}},[e.initialValues]),f.useImperativeHandle(a,function(){return X(X({},P.current),H)},[H,P.current]),f.useEffect(function(){var N,B,V=o((N=P.current)===null||N===void 0||(B=N.getFieldsValue)===null||B===void 0?void 0:B.call(N,!0),y);s==null||s(V,X(X({},P.current),H))},[]),U.jsx(Oxe.Provider,{value:X(X({},H),{},{formRef:P}),children:U.jsx(ar,{componentSize:x.size||M,children:U.jsxs(Zxe.Provider,{value:{grid:C,colProps:T},children:[x.component!==!1&&U.jsx("input",{type:"text",style:{display:"none"}}),q]})})})}var Yie=0;function rRt(e){var t=e.extraUrlParams,n=t===void 0?{}:t,r=e.syncToUrl,i=e.isKeyPressSubmit,o=e.syncToUrlAsImportant,a=o===void 0?!1:o,s=e.syncToInitialValues,l=s===void 0?!0:s;e.children,e.contentRender,e.submitter;var c=e.fieldProps,u=e.proFieldProps,d=e.formItemProps,h=e.groupProps,p=e.dateFormatter,m=p===void 0?"string":p,v=e.formRef;e.onInit;var y=e.form,S=e.formComponentType;e.onReset,e.grid,e.rowProps,e.colProps;var b=e.omitNil,C=b===void 0?!0:b,_=e.request,T=e.params,x=e.initialValues,E=e.formKey,k=E===void 0?Yie:E;e.readonly;var M=e.onLoadingChange,P=e.loading,D=tn(e,tRt),R=f.useRef({}),A=er(!1,{onChange:M,value:P}),H=Le(A,2),F=H[0],z=H[1],W=lSt({},{disabled:!r}),q=Le(W,2),Z=q[0],N=q[1],B=f.useRef(ok());f.useEffect(function(){Yie+=0},[]);var V=p0t({request:_,params:T,proFieldKey:k}),G=Le(V,1),ie=G[0],ce=f.useContext(ar.ConfigContext),fe=ce.getPrefixCls,ee=fe("pro-form"),ne=no("ProForm",function(Te){return ae({},".".concat(ee),ae({},"> div:not(".concat(Te.proComponentsCls,"-form-light-filter)"),{".pro-field":{maxWidth:"100%","@media screen and (max-width: 575px)":{maxWidth:"calc(93vw - 48px)"},"&-xs":{width:104},"&-s":{width:216},"&-sm":{width:216},"&-m":{width:328},"&-md":{width:328},"&-l":{width:440},"&-lg":{width:440},"&-xl":{width:552}}}))}),ue=ne.wrapSSR,ye=ne.hashId,me=f.useState(function(){return r?U8(r,Z,"get"):{}}),pe=Le(me,2),he=pe[0],_e=pe[1],le=f.useRef({}),xe=f.useRef({}),we=Pd(function(Te,ke,Pe){return iSt(o0t(Te,m,xe.current,ke,Pe),le.current,ke)});f.useEffect(function(){l||_e({})},[l]);var De=Pd(function(){return X(X({},Z),n)});f.useEffect(function(){r&&N(U8(r,De(),"set"))},[n,De,r]);var Fe=f.useMemo(function(){if(!(typeof window>"u")&&S&&["DrawerForm"].includes(S))return function(Te){return Te.parentNode||document.body}},[S]),Ce=Pd(Zo(Hr().mark(function Te(){var ke,Pe,Ne,We,Q,K,J;return Hr().wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:if(D.onFinish){Oe.next=2;break}return Oe.abrupt("return");case 2:if(!F){Oe.next=4;break}return Oe.abrupt("return");case 4:return Oe.prev=4,Ne=R==null||(ke=R.current)===null||ke===void 0||(Pe=ke.getFieldsFormatValue)===null||Pe===void 0?void 0:Pe.call(ke),We=D.onFinish(Ne),We instanceof Promise&&z(!0),Oe.next=10,We;case 10:r&&(J=Object.keys(R==null||(Q=R.current)===null||Q===void 0||(K=Q.getFieldsFormatValue)===null||K===void 0?void 0:K.call(Q,void 0,!1)).reduce(function(Se,Ke){var tt;return X(X({},Se),{},ae({},Ke,(tt=Ne[Ke])!==null&&tt!==void 0?tt:void 0))},n),Object.keys(Z).forEach(function(Se){J[Se]!==!1&&J[Se]!==0&&!J[Se]&&(J[Se]=void 0)}),N(U8(r,J,"set"))),z(!1),Oe.next=18;break;case 14:Oe.prev=14,Oe.t0=Oe.catch(4),console.log(Oe.t0),z(!1);case 18:case"end":return Oe.stop()}},Te,null,[[4,14]])})));return f.useImperativeHandle(v,function(){return R.current},[!ie]),!ie&&e.request?U.jsx("div",{style:{paddingTop:50,paddingBottom:50,textAlign:"center"},children:U.jsx(Sl,{})}):ue(U.jsx(HV.Provider,{value:{mode:e.readonly?"read":"edit"},children:U.jsx($P,{needDeps:!0,children:U.jsx(yC.Provider,{value:{formRef:R,fieldProps:c,proFieldProps:u,formItemProps:d,groupProps:h,formComponentType:S,getPopupContainer:Fe,formKey:B.current,setFieldValueType:function(ke,Pe){var Ne=Pe.valueType,We=Ne===void 0?"text":Ne,Q=Pe.dateFormat,K=Pe.transform;Array.isArray(ke)&&(le.current=ca(le.current,ke,K),xe.current=ca(xe.current,ke,{valueType:We,dateFormat:Q}))}},children:U.jsx(UV.Provider,{value:{},children:U.jsx(Or,X(X({onKeyPress:function(ke){if(i&&ke.key==="Enter"){var Pe;(Pe=R.current)===null||Pe===void 0||Pe.submit()}},autoComplete:"off",form:y},Pr(D,["ref","labelWidth","autoFocusFirstInput"])),{},{ref:function(ke){R.current&&(R.current.nativeElement=ke==null?void 0:ke.nativeElement)},initialValues:a?X(X(X({},x),ie),he):X(X(X({},he),x),ie),onValuesChange:function(ke,Pe){var Ne;D==null||(Ne=D.onValuesChange)===null||Ne===void 0||Ne.call(D,we(ke,!!C),we(Pe,!!C))},className:Re(e.className,ee,ye),onFinish:Ce,children:U.jsx(nRt,X(X({transformKey:we,autoComplete:"off",loading:F,onUrlSearchChange:N},e),{},{formRef:R,initialValues:X(X({},x),ie)}))}))})})})}))}var iRt=function(t){return ae(ae({},"".concat(t.componentCls,"-collapse-label"),{paddingInline:1,paddingBlock:1}),"".concat(t.componentCls,"-container"),ae({},"".concat(t.antCls,"-form-item"),{marginBlockEnd:0}))};function oRt(e){return no("LightWrapper",function(t){var n=X(X({},t),{},{componentCls:".".concat(e)});return[iRt(n)]})}var aRt=["label","size","disabled","onChange","className","style","children","valuePropName","placeholder","labelFormatter","bordered","footerRender","allowClear","otherFieldProps","valueType","placement"],sRt=function(t){var n=t.label,r=t.size,i=t.disabled,o=t.onChange,a=t.className,s=t.style,l=t.children,c=t.valuePropName,u=t.placeholder,d=t.labelFormatter,h=t.bordered,p=t.footerRender,m=t.allowClear,v=t.otherFieldProps,y=t.valueType,S=t.placement,b=tn(t,aRt),C=f.useContext(ar.ConfigContext),_=C.getPrefixCls,T=_("pro-field-light-wrapper"),x=oRt(T),E=x.wrapSSR,k=x.hashId,M=f.useState(t[c]),P=Le(M,2),D=P[0],R=P[1],A=er(!1),H=Le(A,2),F=H[0],z=H[1],W=function(){for(var B,V=arguments.length,G=new Array(V),ie=0;ie<V;ie++)G[ie]=arguments[ie];v==null||(B=v.onChange)===null||B===void 0||B.call.apply(B,[v].concat(G)),o==null||o.apply(void 0,G)},q=t[c],Z=f.useMemo(function(){var N;return q&&(y!=null&&(N=y.toLowerCase())!==null&&N!==void 0&&N.endsWith("range")&&y!=="digitRange"&&!d?a0t(q,Mxe[y]||"YYYY-MM-DD"):Array.isArray(q)?q.map(function(B){return ln(B)==="object"&&B.label&&B.value?B.label:B}):q)},[q,y,d]);return E(U.jsx(Zvt,{disabled:i,open:F,onOpenChange:z,placement:S,label:U.jsx($p,{ellipsis:!0,size:r,onClear:function(){W==null||W(),R(null)},bordered:h,style:s,className:a,label:n,placeholder:u,value:Z,disabled:i,formatter:d,allowClear:m}),footer:{onClear:function(){return R(null)},onConfirm:function(){W==null||W(D),z(!1)}},footerRender:p,children:U.jsx("div",{className:Re("".concat(T,"-container"),k,a),style:s,children:ge.cloneElement(l,X(X({},b),{},ae(ae({},c,D),"onChange",function(B){R(B!=null&&B.target?B.target.value:B)}),l.props))})}))};function ai(e){return U.jsx(rRt,X({layout:"vertical",contentRender:function(n,r){return U.jsxs(U.Fragment,{children:[n,r]})}},e))}ai.Group=lwe;ai.useForm=Or.useForm;ai.Item=swe;ai.useWatch=Or.useWatch;ai.ErrorList=Or.ErrorList;ai.Provider=Or.Provider;ai.useFormInstance=Or.useFormInstance;ai.EditOrReadOnlyContext=HV;var lRt=function(t){return ae(ae({},t.componentCls,{"&-container":{display:"flex",flex:"1",flexDirection:"column",height:"100%",paddingInline:32,paddingBlock:24,overflow:"auto",background:"inherit"},"&-top":{textAlign:"center"},"&-header":{display:"flex",alignItems:"center",justifyContent:"center",height:"44px",lineHeight:"44px",a:{textDecoration:"none"}},"&-title":{position:"relative",insetBlockStart:"2px",color:"@heading-color",fontWeight:"600",fontSize:"33px"},"&-logo":{width:"44px",height:"44px",marginInlineEnd:"16px",verticalAlign:"top",img:{width:"100%"}},"&-desc":{marginBlockStart:"12px",marginBlockEnd:"40px",color:t.colorTextSecondary,fontSize:t.fontSize},"&-main":{minWidth:"328px",maxWidth:"580px",margin:"0 auto","&-other":{marginBlockStart:"24px",lineHeight:"22px",textAlign:"start"}}}),"@media (min-width: @screen-md-min)",ae({},"".concat(t.componentCls,"-container"),{paddingInline:0,paddingBlockStart:32,paddingBlockEnd:24,backgroundRepeat:"no-repeat",backgroundPosition:"center 110px",backgroundSize:"100%"}))};function cRt(e){return no("LoginForm",function(t){var n=X(X({},t),{},{componentCls:".".concat(e)});return[lRt(n)]})}var uRt=["logo","message","contentStyle","title","subTitle","actions","children","containerStyle","otherStyle"];function cwe(e){var t,n=e.logo,r=e.message,i=e.contentStyle,o=e.title,a=e.subTitle,s=e.actions,l=e.children,c=e.containerStyle,u=e.otherStyle,d=tn(e,uRt),h=Wo(),p=d.submitter===!1?!1:X(X({searchConfig:{submitText:h.getMessage("loginForm.submitText","登录")}},d.submitter),{},{submitButtonProps:X({size:"large",style:{width:"100%"}},(t=d.submitter)===null||t===void 0?void 0:t.submitButtonProps),render:function(x,E){var k,M=E.pop();if(typeof(d==null||(k=d.submitter)===null||k===void 0?void 0:k.render)=="function"){var P,D;return d==null||(P=d.submitter)===null||P===void 0||(D=P.render)===null||D===void 0?void 0:D.call(P,x,E)}return M}}),m=f.useContext(ar.ConfigContext),v=m.getPrefixCls("pro-form-login"),y=cRt(v),S=y.wrapSSR,b=y.hashId,C=function(x){return"".concat(v,"-").concat(x," ").concat(b)},_=f.useMemo(function(){return n?typeof n=="string"?U.jsx("img",{src:n}):n:null},[n]);return S(U.jsxs("div",{className:Re(C("container"),b),style:c,children:[U.jsxs("div",{className:"".concat(C("top")," ").concat(b).trim(),children:[o||_?U.jsxs("div",{className:"".concat(C("header")),children:[_?U.jsx("span",{className:C("logo"),children:_}):null,o?U.jsx("span",{className:C("title"),children:o}):null]}):null,a?U.jsx("div",{className:C("desc"),children:a}):null]}),U.jsxs("div",{className:C("main"),style:X({width:328},i),children:[U.jsxs(ai,X(X({isKeyPressSubmit:!0},d),{},{submitter:p,children:[r,l]})),s?U.jsx("div",{className:C("main-other"),style:u,children:s}):null]})]}))}var Xie=f.createContext({}),uwe={exports:{}};(function(e){var t=Fv.default;function n(i){if(typeof WeakMap!="function")return null;var o=new WeakMap,a=new WeakMap;return(n=function(l){return l?a:o})(i)}function r(i,o){if(!o&&i&&i.__esModule)return i;if(i===null||t(i)!="object"&&typeof i!="function")return{default:i};var a=n(o);if(a&&a.has(i))return a.get(i);var s={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in i)if(c!=="default"&&{}.hasOwnProperty.call(i,c)){var u=l?Object.getOwnPropertyDescriptor(i,c):null;u&&(u.get||u.set)?Object.defineProperty(s,c,u):s[c]=i[c]}return s.default=i,a&&a.set(i,s),s}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(uwe);var va=uwe.exports,dwe={exports:{}};(function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var o in i)({}).hasOwnProperty.call(i,o)&&(n[o]=i[o])}return n},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(dwe);var XP=dwe.exports,kC={},fwe={exports:{}},hwe={exports:{}};(function(e){function t(n){if(Array.isArray(n))return n}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(hwe);var pwe=hwe.exports,mwe={exports:{}};(function(e){function t(n,r){var i=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(i!=null){var o,a,s,l,c=[],u=!0,d=!1;try{if(s=(i=i.call(n)).next,r===0){if(Object(i)!==i)return;u=!1}else for(;!(u=(o=s.call(i)).done)&&(c.push(o.value),c.length!==r);u=!0);}catch(h){d=!0,a=h}finally{try{if(!u&&i.return!=null&&(l=i.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(mwe);var dRt=mwe.exports,gwe={exports:{}},vwe={exports:{}};(function(e){function t(n,r){(r==null||r>n.length)&&(r=n.length);for(var i=0,o=Array(r);i<r;i++)o[i]=n[i];return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(vwe);var ywe=vwe.exports;(function(e){var t=ywe;function n(r,i){if(r){if(typeof r=="string")return t(r,i);var o={}.toString.call(r).slice(8,-1);return o==="Object"&&r.constructor&&(o=r.constructor.name),o==="Map"||o==="Set"?Array.from(r):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?t(r,i):void 0}}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(gwe);var KV=gwe.exports,bwe={exports:{}};(function(e){function t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(bwe);var Swe=bwe.exports;(function(e){var t=pwe,n=dRt,r=KV,i=Swe;function o(a,s){return t(a)||n(a,s)||r(a,s)||i()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports})(fwe);var Cwe=fwe.exports,xwe={exports:{}},wwe={exports:{}};(function(e){function t(n,r){if(n==null)return{};var i={};for(var o in n)if({}.hasOwnProperty.call(n,o)){if(r.includes(o))continue;i[o]=n[o]}return i}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(wwe);var fRt=wwe.exports;(function(e){var t=fRt;function n(r,i){if(r==null)return{};var o,a,s=t(r,i);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(r);for(a=0;a<l.length;a++)o=l[a],i.includes(o)||{}.propertyIsEnumerable.call(r,o)&&(s[o]=r[o])}return s}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(xwe);var _we=xwe.exports;const r4=K_(yje);var OC={};Object.defineProperty(OC,"__esModule",{value:!0});OC.default=void 0;var hRt=f,pRt=(0,hRt.createContext)({});OC.default=pRt;var i4={},qs={},i0={},QP={};Object.defineProperty(QP,"__esModule",{value:!0});QP.default=mRt;function mRt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var qV={};Object.defineProperty(qV,"__esModule",{value:!0});qV.default=gRt;function gRt(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var GV=Vr.default;Object.defineProperty(i0,"__esModule",{value:!0});i0.clearContainerCache=wRt;i0.injectCSS=XV;i0.removeCSS=CRt;i0.updateCSS=_Rt;var Qie=GV(jv),vRt=GV(QP),yRt=GV(qV),Zie="data-rc-order",Jie="data-rc-priority",bRt="rc-util-key",Ck=new Map;function Ewe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):bRt}function ZP(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function SRt(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function YV(e){return Array.from((Ck.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function XV(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,vRt.default)())return null;var n=t.csp,r=t.prepend,i=t.priority,o=i===void 0?0:i,a=SRt(r),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(Zie,a),s&&o&&l.setAttribute(Jie,"".concat(o)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=ZP(t),u=c.firstChild;if(r){if(s){var d=(t.styles||YV(c)).filter(function(h){if(!["prepend","prependQueue"].includes(h.getAttribute(Zie)))return!1;var p=Number(h.getAttribute(Jie)||0);return o>=p});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function Twe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=ZP(t);return(t.styles||YV(n)).find(function(r){return r.getAttribute(Ewe(t))===e})}function CRt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Twe(e,t);if(n){var r=ZP(t);r.removeChild(n)}}function xRt(e,t){var n=Ck.get(e);if(!n||!(0,yRt.default)(document,n)){var r=XV("",t),i=r.parentNode;Ck.set(e,i),e.removeChild(r)}}function wRt(){Ck.clear()}function _Rt(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=ZP(n),i=YV(r),o=(0,Qie.default)((0,Qie.default)({},n),{},{styles:i});xRt(r,o);var a=Twe(t,o);if(a){var s,l;if((s=o.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((l=o.csp)===null||l===void 0?void 0:l.nonce)){var c;a.nonce=(c=o.csp)===null||c===void 0?void 0:c.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var u=XV(e,o);return u.setAttribute(Ewe(o),t),u}var JP={};Object.defineProperty(JP,"__esModule",{value:!0});JP.getShadowRoot=ERt;JP.inShadow=Owe;function kwe(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Owe(e){return kwe(e)instanceof ShadowRoot}function ERt(e){return Owe(e)?kwe(e):null}var Xl={};Object.defineProperty(Xl,"__esModule",{value:!0});Xl.call=QV;Xl.default=void 0;Xl.note=Mwe;Xl.noteOnce=$we;Xl.preMessage=void 0;Xl.resetWarned=Iwe;Xl.warning=Pwe;Xl.warningOnce=o4;var Xj={},TRt=Xl.preMessage=function(t){};function Pwe(e,t){}function Mwe(e,t){}function Iwe(){Xj={}}function QV(e,t,n){!t&&!Xj[n]&&(e(!1,n),Xj[n]=!0)}function o4(e,t){QV(Pwe,e,t)}function $we(e,t){QV(Mwe,e,t)}o4.preMessage=TRt;o4.resetWarned=Iwe;o4.noteOnce=$we;Xl.default=o4;var kRt=va.default,eM=Vr.default;Object.defineProperty(qs,"__esModule",{value:!0});qs.generate=Zj;qs.getSecondaryColor=DRt;qs.iconStyles=void 0;qs.isIconDefinition=NRt;qs.normalizeAttrs=Qj;qs.normalizeTwoToneColors=LRt;qs.useInsertStyles=qs.svgBaseProps=void 0;qs.warning=ARt;var RA=eM(jv),eoe=eM(Fv),ORt=r4,PRt=i0,MRt=JP,IRt=eM(Xl),xk=kRt(f),$Rt=eM(OC);function RRt(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function ARt(e,t){(0,IRt.default)(e,"[@ant-design/icons] ".concat(t))}function NRt(e){return(0,eoe.default)(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&((0,eoe.default)(e.icon)==="object"||typeof e.icon=="function")}function Qj(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[RRt(n)]=r}return t},{})}function Zj(e,t,n){return n?xk.default.createElement(e.tag,(0,RA.default)((0,RA.default)({key:t},Qj(e.attrs)),n),(e.children||[]).map(function(r,i){return Zj(r,"".concat(t,"-").concat(e.tag,"-").concat(i))})):xk.default.createElement(e.tag,(0,RA.default)({key:t},Qj(e.attrs)),(e.children||[]).map(function(r,i){return Zj(r,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function DRt(e){return(0,ORt.generate)(e)[0]}function LRt(e){return e?Array.isArray(e)?e:[e]:[]}qs.svgBaseProps={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"};var FRt=qs.iconStyles=`
|
||
.anticon {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
color: inherit;
|
||
font-style: normal;
|
||
line-height: 0;
|
||
text-align: center;
|
||
text-transform: none;
|
||
vertical-align: -0.125em;
|
||
text-rendering: optimizeLegibility;
|
||
-webkit-font-smoothing: antialiased;
|
||
-moz-osx-font-smoothing: grayscale;
|
||
}
|
||
|
||
.anticon > * {
|
||
line-height: 1;
|
||
}
|
||
|
||
.anticon svg {
|
||
display: inline-block;
|
||
}
|
||
|
||
.anticon::before {
|
||
display: none;
|
||
}
|
||
|
||
.anticon .anticon-icon {
|
||
display: block;
|
||
}
|
||
|
||
.anticon[tabindex] {
|
||
cursor: pointer;
|
||
}
|
||
|
||
.anticon-spin::before,
|
||
.anticon-spin {
|
||
display: inline-block;
|
||
-webkit-animation: loadingCircle 1s infinite linear;
|
||
animation: loadingCircle 1s infinite linear;
|
||
}
|
||
|
||
@-webkit-keyframes loadingCircle {
|
||
100% {
|
||
-webkit-transform: rotate(360deg);
|
||
transform: rotate(360deg);
|
||
}
|
||
}
|
||
|
||
@keyframes loadingCircle {
|
||
100% {
|
||
-webkit-transform: rotate(360deg);
|
||
transform: rotate(360deg);
|
||
}
|
||
}
|
||
`;qs.useInsertStyles=function(t){var n=(0,xk.useContext)($Rt.default),r=n.csp,i=n.prefixCls,o=n.layer,a=FRt;i&&(a=a.replace(/anticon/g,i)),o&&(a="@layer ".concat(o,` {
|
||
`).concat(a,`
|
||
}`)),(0,xk.useEffect)(function(){var s=t.current,l=(0,MRt.getShadowRoot)(s);(0,PRt.updateCSS)(a,"@ant-design-icons",{prepend:!o,csp:r,attachTo:l})},[])};var Rwe=Vr.default,jRt=va.default;Object.defineProperty(i4,"__esModule",{value:!0});i4.default=void 0;var BRt=Rwe(_we),P2=Rwe(jv),HRt=jRt(f),l1=qs,zRt=["icon","className","onClick","style","primaryColor","secondaryColor"],aw={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function URt(e){var t=e.primaryColor,n=e.secondaryColor;aw.primaryColor=t,aw.secondaryColor=n||(0,l1.getSecondaryColor)(t),aw.calculated=!!n}function WRt(){return(0,P2.default)({},aw)}var tM=function(t){var n=t.icon,r=t.className,i=t.onClick,o=t.style,a=t.primaryColor,s=t.secondaryColor,l=(0,BRt.default)(t,zRt),c=HRt.useRef(),u=aw;if(a&&(u={primaryColor:a,secondaryColor:s||(0,l1.getSecondaryColor)(a)}),(0,l1.useInsertStyles)(c),(0,l1.warning)((0,l1.isIconDefinition)(n),"icon should be icon definiton, but got ".concat(n)),!(0,l1.isIconDefinition)(n))return null;var d=n;return d&&typeof d.icon=="function"&&(d=(0,P2.default)((0,P2.default)({},d),{},{icon:d.icon(u.primaryColor,u.secondaryColor)})),(0,l1.generate)(d.icon,"svg-".concat(d.name),(0,P2.default)((0,P2.default)({className:r,onClick:i,style:o,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};tM.displayName="IconReact";tM.getTwoToneColors=WRt;tM.setTwoToneColors=URt;i4.default=tM;var nM={},Awe=Vr.default;Object.defineProperty(nM,"__esModule",{value:!0});nM.getTwoToneColor=GRt;nM.setTwoToneColor=qRt;var VRt=Awe(Cwe),Nwe=Awe(i4),KRt=qs;function qRt(e){var t=(0,KRt.normalizeTwoToneColors)(e),n=(0,VRt.default)(t,2),r=n[0],i=n[1];return Nwe.default.setTwoToneColors({primaryColor:r,secondaryColor:i})}function GRt(){var e=Nwe.default.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var o0=Vr.default,YRt=va.default;Object.defineProperty(kC,"__esModule",{value:!0});kC.default=void 0;var XRt=o0(XP),QRt=o0(Cwe),toe=o0($fe),ZRt=o0(_we),p5=YRt(f),JRt=o0(Z6),eAt=r4,tAt=o0(OC),nAt=o0(i4),ZV=nM,rAt=qs,iAt=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];(0,ZV.setTwoToneColor)(eAt.blue.primary);var rM=p5.forwardRef(function(e,t){var n=e.className,r=e.icon,i=e.spin,o=e.rotate,a=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=(0,ZRt.default)(e,iAt),u=p5.useContext(tAt.default),d=u.prefixCls,h=d===void 0?"anticon":d,p=u.rootClassName,m=(0,JRt.default)(p,h,(0,toe.default)((0,toe.default)({},"".concat(h,"-").concat(r.name),!!r.name),"".concat(h,"-spin"),!!i||r.name==="loading"),n),v=a;v===void 0&&s&&(v=-1);var y=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,S=(0,rAt.normalizeTwoToneColors)(l),b=(0,QRt.default)(S,2),C=b[0],_=b[1];return p5.createElement("span",(0,XRt.default)({role:"img","aria-label":r.name},c,{ref:t,tabIndex:v,onClick:s,className:m}),p5.createElement(nAt.default,{icon:r,primaryColor:C,secondaryColor:_,style:y}))});rM.displayName="AntdIcon";rM.getTwoToneColor=ZV.getTwoToneColor;rM.setTwoToneColor=ZV.setTwoToneColor;kC.default=rM;var oAt=["isLoading","pastDelay","timedOut","error","retry"],aAt=function(t){t.isLoading,t.pastDelay,t.timedOut,t.error,t.retry;var n=tn(t,oAt);return U.jsx("div",{style:{paddingBlockStart:100,textAlign:"center"},children:U.jsx(Sl,X({size:"large"},n))})},sAt=function(t){return ae({},t.componentCls,{marginBlock:0,marginBlockStart:48,marginBlockEnd:24,marginInline:0,paddingBlock:0,paddingInline:16,textAlign:"center","&-list":{marginBlockEnd:8,color:t.colorTextSecondary,"&-link":{color:t.colorTextSecondary,textDecoration:t.linkDecoration},"*:not(:last-child)":{marginInlineEnd:8},"&:hover":{color:t.colorPrimary}},"&-copyright":{fontSize:"14px",color:t.colorText}})};function lAt(e){return no("ProLayoutFooter",function(t){var n=X(X({},t),{},{componentCls:".".concat(e)});return[sAt(n)]})}var cAt=function(t){var n=t.className,r=t.prefixCls,i=t.links,o=t.copyright,a=t.style,s=f.useContext(ar.ConfigContext),l=s.getPrefixCls(r||"pro-global-footer"),c=lAt(l),u=c.wrapSSR,d=c.hashId;return(i==null||i===!1||Array.isArray(i)&&i.length===0)&&(o==null||o===!1)?null:u(U.jsxs("div",{className:Re(l,d,n),style:a,children:[i&&U.jsx("div",{className:"".concat(l,"-list ").concat(d).trim(),children:i.map(function(h){return U.jsx("a",{className:"".concat(l,"-list-link ").concat(d).trim(),title:h.key,target:h.blankTarget?"_blank":"_self",href:h.href,rel:"noreferrer",children:h.title},h.key)})}),o&&U.jsx("div",{className:"".concat(l,"-copyright ").concat(d).trim(),children:o})]}))},uAt=Co.Footer,dAt=function(t){var n=t.links,r=t.copyright,i=t.style,o=t.className,a=t.prefixCls;return U.jsx(uAt,{className:o,style:X({padding:0},i),children:U.jsx(cAt,{links:n,prefixCls:a,copyright:r===!1?null:U.jsxs(f.Fragment,{children:[U.jsx(ost,{})," ",r]})})})},noe=function e(t){return(t||[]).reduce(function(n,r){if(r.key&&n.push(r.key),r.children||r.routes){var i=n.concat(e(r.children||r.routes)||[]);return i}return n},[])};function iM(e){return e.map(function(t){var n=t.children||[],r=X({},t);if(!r.children&&r.routes&&(r.children=r.routes),!r.name||r.hideInMenu)return null;if(r&&r!==null&&r!==void 0&&r.children){if(!r.hideChildrenInMenu&&n.some(function(i){return i&&i.name&&!i.hideInMenu}))return X(X({},t),{},{children:iM(n)});delete r.children}return delete r.routes,r}).filter(function(t){return t})}var fAt=function(){return U.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:U.jsx("path",{d:"M0 0h3v3H0V0zm4.5 0h3v3h-3V0zM9 0h3v3H9V0zM0 4.5h3v3H0v-3zm4.503 0h3v3h-3v-3zM9 4.5h3v3H9v-3zM0 9h3v3H0V9zm4.503 0h3v3h-3V9zM9 9h3v3H9V9z"})})},hAt=function e(t){var n=t.appList,r=t.baseClassName,i=t.hashId,o=t.itemClick;return U.jsx("div",{className:"".concat(r,"-content ").concat(i).trim(),children:U.jsx("ul",{className:"".concat(r,"-content-list ").concat(i).trim(),children:n==null?void 0:n.map(function(a,s){var l;return a!=null&&(l=a.children)!==null&&l!==void 0&&l.length?U.jsxs("div",{className:"".concat(r,"-content-list-item-group ").concat(i).trim(),children:[U.jsx("div",{className:"".concat(r,"-content-list-item-group-title ").concat(i).trim(),children:a.title}),U.jsx(e,{hashId:i,itemClick:o,appList:a==null?void 0:a.children,baseClassName:r})]},s):U.jsx("li",{className:"".concat(r,"-content-list-item ").concat(i).trim(),onClick:function(u){u.stopPropagation(),o==null||o(a)},children:U.jsxs("a",{href:o?void 0:a.url,target:a.target,rel:"noreferrer",children:[JV(a.icon),U.jsxs("div",{children:[U.jsx("div",{children:a.title}),a.desc?U.jsx("span",{children:a.desc}):null]})]})},s)})})})},pAt=function(t,n){if(t&&typeof t=="string"&&gV(t))return U.jsx("img",{src:t,alt:"logo"});if(typeof t=="function")return t();if(t&&typeof t=="string")return U.jsx("div",{id:"avatarLogo",children:t});if(!t&&n&&typeof n=="string"){var r=n.substring(0,1);return U.jsx("div",{id:"avatarLogo",children:r})}return t},mAt=function e(t){var n=t.appList,r=t.baseClassName,i=t.hashId,o=t.itemClick;return U.jsx("div",{className:"".concat(r,"-content ").concat(i).trim(),children:U.jsx("ul",{className:"".concat(r,"-content-list ").concat(i).trim(),children:n==null?void 0:n.map(function(a,s){var l;return a!=null&&(l=a.children)!==null&&l!==void 0&&l.length?U.jsxs("div",{className:"".concat(r,"-content-list-item-group ").concat(i).trim(),children:[U.jsx("div",{className:"".concat(r,"-content-list-item-group-title ").concat(i).trim(),children:a.title}),U.jsx(e,{hashId:i,itemClick:o,appList:a==null?void 0:a.children,baseClassName:r})]},s):U.jsx("li",{className:"".concat(r,"-content-list-item ").concat(i).trim(),onClick:function(u){u.stopPropagation(),o==null||o(a)},children:U.jsxs("a",{href:o?"javascript:;":a.url,target:a.target,rel:"noreferrer",children:[pAt(a.icon,a.title),U.jsx("div",{children:U.jsx("div",{children:a.title})})]})},s)})})})},gAt=function(t){return{"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"content-box",maxWidth:656,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:328,height:72,paddingInline:16,paddingBlock:16,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:t.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:t.colorBgTextHover},"* div":CA==null?void 0:CA(t),a:{display:"flex",height:"100%",fontSize:12,textDecoration:"none","& > img":{width:40,height:40},"& > div":{marginInlineStart:14,color:t.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:t.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}},vAt=function(t){return{"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"border-box",maxWidth:376,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:104,height:104,marginBlock:8,marginInline:8,paddingInline:24,paddingBlock:24,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:t.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:t.colorBgTextHover},a:{display:"flex",flexDirection:"column",alignItems:"center",height:"100%",fontSize:12,textDecoration:"none","& > #avatarLogo":{width:40,height:40,margin:"0 auto",color:t.colorPrimary,fontSize:22,lineHeight:"40px",textAlign:"center",backgroundImage:"linear-gradient(180deg, #E8F0FB 0%, #F6F8FC 100%)",borderRadius:t.borderRadius},"& > img":{width:40,height:40},"& > div":{marginBlockStart:5,marginInlineStart:0,color:t.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:t.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}},yAt=function(t){var n,r,i,o,a;return ae({},t.componentCls,{"&-icon":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInline:4,paddingBlock:0,fontSize:14,lineHeight:"14px",height:28,width:28,cursor:"pointer",color:(n=t.layout)===null||n===void 0?void 0:n.colorTextAppListIcon,borderRadius:t.borderRadius,"&:hover":{color:(r=t.layout)===null||r===void 0?void 0:r.colorTextAppListIconHover,backgroundColor:(i=t.layout)===null||i===void 0?void 0:i.colorBgAppListIconHover},"&-active":{color:(o=t.layout)===null||o===void 0?void 0:o.colorTextAppListIconHover,backgroundColor:(a=t.layout)===null||a===void 0?void 0:a.colorBgAppListIconHover}},"&-item-title":{marginInlineStart:"16px",marginInlineEnd:"8px",marginBlockStart:0,marginBlockEnd:"12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginBlockStart:12}},"&-popover":ae({},"".concat(t.antCls,"-popover-arrow"),{display:"none"}),"&-simple":vAt(t),"&-default":gAt(t)})};function bAt(e){return no("AppsLogoComponents",function(t){var n=X(X({},t),{},{componentCls:".".concat(e)});return[yAt(n)]})}var JV=function(t){return typeof t=="string"?U.jsx("img",{width:"auto",height:22,src:t,alt:"logo"}):typeof t=="function"?t():t},eK=function(t){var n,r=t.appList,i=t.appListRender,o=t.prefixCls,a=o===void 0?"ant-pro":o,s=t.onItemClick,l=ge.useRef(null),c=ge.useRef(null),u="".concat(a,"-layout-apps"),d=bAt(u),h=d.wrapSSR,p=d.hashId,m=f.useState(!1),v=Le(m,2),y=v[0],S=v[1],b=function(E){s==null||s(E,c)},C=f.useMemo(function(){var x=r==null?void 0:r.some(function(E){return!(E!=null&&E.desc)});return x?U.jsx(mAt,{hashId:p,appList:r,itemClick:s?b:void 0,baseClassName:"".concat(u,"-simple")}):U.jsx(hAt,{hashId:p,appList:r,itemClick:s?b:void 0,baseClassName:"".concat(u,"-default")})},[r,u,p]);if(!(t!=null&&(n=t.appList)!==null&&n!==void 0&&n.length))return null;var _=i?i(t==null?void 0:t.appList,C):C,T=RP(void 0,function(x){return S(x)});return h(U.jsxs(U.Fragment,{children:[U.jsx("div",{ref:l,onClick:function(E){E.stopPropagation(),E.preventDefault()}}),U.jsx(Ou,X(X({placement:"bottomRight",trigger:["click"],zIndex:9999,arrow:!1},T),{},{overlayClassName:"".concat(u,"-popover ").concat(p).trim(),content:_,getPopupContainer:function(){return l.current||document.body},children:U.jsx("span",{ref:c,onClick:function(E){E.stopPropagation()},className:Re("".concat(u,"-icon"),p,ae({},"".concat(u,"-icon-active"),y)),children:U.jsx(fAt,{})})}))]}))};function SAt(){return U.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:U.jsx("path",{d:"M6.432 7.967a.448.448 0 01-.318.133h-.228a.46.46 0 01-.318-.133L2.488 4.85a.305.305 0 010-.43l.427-.43a.293.293 0 01.42 0L6 6.687l2.665-2.699a.299.299 0 01.426 0l.42.431a.305.305 0 010 .43L6.432 7.967z"})})}var CAt=function(t){var n,r,i;return ae({},t.componentCls,{position:"absolute",insetBlockStart:"18px",zIndex:"101",width:"24px",height:"24px",fontSize:["14px","16px"],textAlign:"center",borderRadius:"40px",insetInlineEnd:"-13px",transition:"transform 0.3s",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:(n=t.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorTextCollapsedButton,backgroundColor:(r=t.layout)===null||r===void 0||(r=r.sider)===null||r===void 0?void 0:r.colorBgCollapsedButton,boxShadow:"0 2px 8px -2px rgba(0,0,0,0.05), 0 1px 4px -1px rgba(25,15,15,0.07), 0 0 1px 0 rgba(0,0,0,0.08)","&:hover":{color:(i=t.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.colorTextCollapsedButtonHover,boxShadow:"0 4px 16px -4px rgba(0,0,0,0.05), 0 2px 8px -2px rgba(25,15,15,0.07), 0 1px 2px 0 rgba(0,0,0,0.08)"},".anticon":{fontSize:"14px"},"& > svg":{transition:"transform 0.3s",transform:"rotate(90deg)"},"&-collapsed":{"& > svg":{transform:"rotate(-90deg)"}}})};function xAt(e){return no("SiderMenuCollapsedIcon",function(t){var n=X(X({},t),{},{componentCls:".".concat(e)});return[CAt(n)]})}var wAt=["isMobile","collapsed"],_At=function(t){var n=t.isMobile,r=t.collapsed,i=tn(t,wAt),o=xAt(t.className),a=o.wrapSSR,s=o.hashId;return n&&r?null:a(U.jsx("div",X(X({},i),{},{className:Re(t.className,s,ae(ae({},"".concat(t.className,"-collapsed"),r),"".concat(t.className,"-is-mobile"),n)),children:U.jsx(SAt,{})})))},Dwe={navTheme:"light",layout:"side",contentWidth:"Fluid",fixedHeader:!1,fixSiderbar:!0,iconfontUrl:"",colorPrimary:"#1677FF",splitMenus:!1},EAt=function(t,n){var r,i,o=n.includes("horizontal")?(r=t.layout)===null||r===void 0?void 0:r.header:(i=t.layout)===null||i===void 0?void 0:i.sider;return X(X(ae({},"".concat(t.componentCls),ae(ae(ae(ae(ae(ae(ae(ae(ae({background:"transparent",color:o==null?void 0:o.colorTextMenu,border:"none"},"".concat(t.componentCls,"-menu-item"),{transition:"none !important"}),"".concat(t.componentCls,"-submenu-has-icon"),ae({},"> ".concat(t.antCls,"-menu-sub"),{paddingInlineStart:10})),"".concat(t.antCls,"-menu-title-content"),{width:"100%",height:"100%",display:"inline-flex"}),"".concat(t.antCls,"-menu-title-content"),{"&:first-child":{width:"100%"}}),"".concat(t.componentCls,"-item-icon"),{display:"flex",alignItems:"center"}),"&&-collapsed",ae(ae(ae({},"".concat(t.antCls,`-menu-item,
|
||
`).concat(t.antCls,"-menu-item-group > ").concat(t.antCls,"-menu-item-group-list > ").concat(t.antCls,`-menu-item,
|
||
`).concat(t.antCls,"-menu-item-group > ").concat(t.antCls,"-menu-item-group-list > ").concat(t.antCls,"-menu-submenu > ").concat(t.antCls,`-menu-submenu-title,
|
||
`).concat(t.antCls,"-menu-submenu > ").concat(t.antCls,"-menu-submenu-title"),{paddingInline:"0 !important",marginBlock:"4px !important"}),"".concat(t.antCls,"-menu-item-group > ").concat(t.antCls,"-menu-item-group-list > ").concat(t.antCls,"-menu-submenu-selected > ").concat(t.antCls,`-menu-submenu-title,
|
||
`).concat(t.antCls,"-menu-submenu-selected > ").concat(t.antCls,"-menu-submenu-title"),{backgroundColor:o==null?void 0:o.colorBgMenuItemSelected,borderRadius:t.borderRadiusLG}),"".concat(t.componentCls,"-group"),ae({},"".concat(t.antCls,"-menu-item-group-title"),{paddingInline:0}))),"&-item-title",ae(ae(ae(ae(ae({display:"flex",flexDirection:"row",alignItems:"center",gap:t.marginXS},"".concat(t.componentCls,"-item-text"),{maxWidth:"100%",textOverflow:"ellipsis",overflow:"hidden",wordBreak:"break-all",whiteSpace:"nowrap"}),"&-collapsed",ae(ae({minWidth:40,height:40},"".concat(t.componentCls,"-item-icon"),{height:"16px",width:"16px",lineHeight:"16px !important",".anticon":{lineHeight:"16px !important",height:"16px"}}),"".concat(t.componentCls,"-item-text-has-icon"),{display:"none !important"})),"&-collapsed-level-0",{flexDirection:"column",justifyContent:"center"}),"&".concat(t.componentCls,"-group-item-title"),{gap:t.marginXS,height:18,overflow:"hidden"}),"&".concat(t.componentCls,"-item-collapsed-show-title"),ae({lineHeight:"16px",gap:0},"&".concat(t.componentCls,"-item-title-collapsed"),ae(ae({display:"flex"},"".concat(t.componentCls,"-item-icon"),{height:"16px",width:"16px",lineHeight:"16px !important",".anticon":{lineHeight:"16px!important",height:"16px"}}),"".concat(t.componentCls,"-item-text"),{opacity:"1 !important",display:"inline !important",textAlign:"center",fontSize:12,height:12,lineHeight:"12px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"100%",margin:0,padding:0,marginBlockStart:4})))),"&-group",ae({},"".concat(t.antCls,"-menu-item-group-title"),{fontSize:12,color:t.colorTextLabel,".anticon":{marginInlineEnd:8}})),"&-group-divider",{color:t.colorTextSecondary,fontSize:12,lineHeight:20})),n.includes("horizontal")?{}:ae({},"".concat(t.antCls,"-menu-submenu").concat(t.antCls,"-menu-submenu-popup"),ae({},"".concat(t.componentCls,"-item-title"),{alignItems:"flex-start"}))),{},ae({},"".concat(t.antCls,"-menu-submenu-popup"),{backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"}))};function TAt(e,t){return no("ProLayoutBaseMenu"+t,function(n){var r=X(X({},n),{},{componentCls:".".concat(e)});return[EAt(r,t||"inline")]})}var roe=function(t){var n=f.useState(t.collapsed),r=Le(n,2),i=r[0],o=r[1],a=f.useState(!1),s=Le(a,2),l=s[0],c=s[1];return f.useEffect(function(){c(!1),setTimeout(function(){o(t.collapsed)},400)},[t.collapsed]),t.disable?t.children:U.jsx(ea,{title:t.title,open:i&&t.collapsed?l:!1,placement:"right",onOpenChange:c,children:t.children})},Lwe=WSe({scriptUrl:Dwe.iconfontUrl}),ioe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"icon-",r=arguments.length>2?arguments[2]:void 0;if(typeof t=="string"&&t!==""){if(gV(t)||v0t(t))return U.jsx("img",{width:16,src:t,alt:"icon",className:r},t);if(t.startsWith(n))return U.jsx(Lwe,{type:t})}return t},ooe=function(t){if(t&&typeof t=="string"){var n=t.substring(0,1).toUpperCase();return n}return null},kAt=pi(function e(t){var n=this;hi(this,e),ae(this,"props",void 0),ae(this,"getNavMenuItems",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],i=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return r.map(function(a){return n.getSubMenuOrItem(a,i,o)}).filter(function(a){return a}).flat(1)}),ae(this,"getSubMenuOrItem",function(r,i,o){var a=n.props,s=a.subMenuItemRender,l=a.baseClassName,c=a.prefixCls,u=a.collapsed,d=a.menu,h=a.iconPrefixes,p=a.layout,m=(d==null?void 0:d.type)==="group"&&p!=="top",v=n.props.token,y=n.getIntlName(r),S=(r==null?void 0:r.children)||(r==null?void 0:r.routes),b=m&&i===0?"group":void 0;if(Array.isArray(S)&&S.length>0){var C,_,T,x,E,k=i===0||m&&i===1,M=ioe(r.icon,h,"".concat(l,"-icon ").concat((C=n.props)===null||C===void 0?void 0:C.hashId)),P=u&&k?ooe(y):null,D=U.jsxs("div",{className:Re("".concat(l,"-item-title"),(_=n.props)===null||_===void 0?void 0:_.hashId,ae(ae(ae(ae({},"".concat(l,"-item-title-collapsed"),u),"".concat(l,"-item-title-collapsed-level-").concat(o),u),"".concat(l,"-group-item-title"),b==="group"),"".concat(l,"-item-collapsed-show-title"),(d==null?void 0:d.collapsedShowTitle)&&u)),children:[b==="group"&&u?null:k&&M?U.jsx("span",{className:"".concat(l,"-item-icon ").concat((T=n.props)===null||T===void 0?void 0:T.hashId).trim(),children:M}):P,U.jsx("span",{className:Re("".concat(l,"-item-text"),(x=n.props)===null||x===void 0?void 0:x.hashId,ae({},"".concat(l,"-item-text-has-icon"),b!=="group"&&k&&(M||P))),children:y})]}),R=s?s(X(X({},r),{},{isUrl:!1}),D,n.props):D;if(m&&i===0&&n.props.collapsed&&!d.collapsedShowGroupTitle)return n.getNavMenuItems(S,i+1,i);var A=n.getNavMenuItems(S,i+1,m&&i===0&&n.props.collapsed?i:i+1);return[{type:b,key:r.key||r.path,label:R,onClick:m?void 0:r.onTitleClick,children:A,className:Re(ae(ae(ae({},"".concat(l,"-group"),b==="group"),"".concat(l,"-submenu"),b!=="group"),"".concat(l,"-submenu-has-icon"),b!=="group"&&k&&M))},m&&i===0?{type:"divider",prefixCls:c,className:"".concat(l,"-divider"),key:(r.key||r.path)+"-group-divider",style:{padding:0,borderBlockEnd:0,margin:n.props.collapsed?"4px":"6px 16px",marginBlockStart:n.props.collapsed?4:8,borderColor:v==null||(E=v.layout)===null||E===void 0||(E=E.sider)===null||E===void 0?void 0:E.colorMenuItemDivider}}:void 0].filter(Boolean)}return{className:"".concat(l,"-menu-item"),disabled:r.disabled,key:r.key||r.path,onClick:r.onTitleClick,label:n.getMenuItemPath(r,i,o)}}),ae(this,"getIntlName",function(r){var i=r.name,o=r.locale,a=n.props,s=a.menu,l=a.formatMessage,c=i;return o&&(s==null?void 0:s.locale)!==!1&&(c=l==null?void 0:l({id:o,defaultMessage:i})),n.props.menuTextRender?n.props.menuTextRender(r,c,n.props):c}),ae(this,"getMenuItemPath",function(r,i,o){var a,s,l,c,u=n.conversionPath(r.path||"/"),d=n.props,h=d.location,p=h===void 0?{pathname:"/"}:h,m=d.isMobile,v=d.onCollapse,y=d.menuItemRender,S=d.iconPrefixes,b=n.getIntlName(r),C=n.props,_=C.baseClassName,T=C.menu,x=C.collapsed,E=(T==null?void 0:T.type)==="group",k=i===0||E&&i===1,M=k?ioe(r.icon,S,"".concat(_,"-icon ").concat((a=n.props)===null||a===void 0?void 0:a.hashId)):null,P=x&&k?ooe(b):null,D=U.jsxs("div",{className:Re("".concat(_,"-item-title"),(s=n.props)===null||s===void 0?void 0:s.hashId,ae(ae(ae({},"".concat(_,"-item-title-collapsed"),x),"".concat(_,"-item-title-collapsed-level-").concat(o),x),"".concat(_,"-item-collapsed-show-title"),(T==null?void 0:T.collapsedShowTitle)&&x)),children:[U.jsx("span",{className:"".concat(_,"-item-icon ").concat((l=n.props)===null||l===void 0?void 0:l.hashId).trim(),style:{display:P===null&&!M?"none":""},children:M||U.jsx("span",{className:"anticon",children:P})}),U.jsx("span",{className:Re("".concat(_,"-item-text"),(c=n.props)===null||c===void 0?void 0:c.hashId,ae({},"".concat(_,"-item-text-has-icon"),k&&(M||P))),children:b})]},u),R=gV(u);if(R){var A,H,F;D=U.jsxs("span",{onClick:function(){var q,Z;(q=window)===null||q===void 0||(Z=q.open)===null||Z===void 0||Z.call(q,u,"_blank")},className:Re("".concat(_,"-item-title"),(A=n.props)===null||A===void 0?void 0:A.hashId,ae(ae(ae(ae({},"".concat(_,"-item-title-collapsed"),x),"".concat(_,"-item-title-collapsed-level-").concat(o),x),"".concat(_,"-item-link"),!0),"".concat(_,"-item-collapsed-show-title"),(T==null?void 0:T.collapsedShowTitle)&&x)),children:[U.jsx("span",{className:"".concat(_,"-item-icon ").concat((H=n.props)===null||H===void 0?void 0:H.hashId).trim(),style:{display:P===null&&!M?"none":""},children:M||U.jsx("span",{className:"anticon",children:P})}),U.jsx("span",{className:Re("".concat(_,"-item-text"),(F=n.props)===null||F===void 0?void 0:F.hashId,ae({},"".concat(_,"-item-text-has-icon"),k&&(M||P))),children:b})]},u)}if(y){var z=X(X({},r),{},{isUrl:R,itemPath:u,isMobile:m,replace:u===p.pathname,onClick:function(){return v&&v(!0)},children:void 0});return i===0?U.jsx(roe,{collapsed:x,title:b,disable:r.disabledTooltip,children:y(z,D,n.props)}):y(z,D,n.props)}return i===0?U.jsx(roe,{collapsed:x,title:b,disable:r.disabledTooltip,children:D}):D}),ae(this,"conversionPath",function(r){return r&&r.indexOf("http")===0?r:"/".concat(r||"").replace(/\/+/g,"/")}),this.props=t}),OAt=function(t,n){var r=n.layout,i=n.collapsed,o={};return t&&!i&&["side","mix"].includes(r||"mix")&&(o={openKeys:t}),o},Fwe=function(t){var n=t.mode,r=t.className,i=t.handleOpenChange,o=t.style,a=t.menuData,s=t.prefixCls,l=t.menu,c=t.matchMenuKeys,u=t.iconfontUrl,d=t.selectedKeys,h=t.onSelect,p=t.menuRenderType,m=t.openKeys,v=f.useContext(Od),y=v.dark,S=v.token,b="".concat(s,"-base-menu-").concat(n),C=f.useRef([]),_=er(l==null?void 0:l.defaultOpenAll),T=Le(_,2),x=T[0],E=T[1],k=er(function(){return l!=null&&l.defaultOpenAll?noe(a)||[]:m===!1?!1:[]},{value:m===!1?void 0:m,onChange:i}),M=Le(k,2),P=M[0],D=M[1],R=er([],{value:d,onChange:h?function(V){h&&V&&h(V)}:void 0}),A=Le(R,2),H=A[0],F=A[1];f.useEffect(function(){l!=null&&l.defaultOpenAll||m===!1||c&&(D(c),F(c))},[c.join("-")]),f.useEffect(function(){u&&(Lwe=WSe({scriptUrl:u}))},[u]),f.useEffect(function(){if(c.join("-")!==(H||[]).join("-")&&F(c),!x&&m!==!1&&c.join("-")!==(P||[]).join("-")){var V=c;(l==null?void 0:l.autoClose)===!1&&(V=Array.from(new Set([].concat(pt(c),pt(P||[]))))),D(V)}else l!=null&&l.ignoreFlatMenu&&x?D(noe(a)):E(!1)},[c.join("-")]);var z=f.useMemo(function(){return OAt(P,t)},[P&&P.join(","),t.layout,t.collapsed]),W=TAt(b,n),q=W.wrapSSR,Z=W.hashId,N=f.useMemo(function(){return new kAt(X(X({},t),{},{token:S,menuRenderType:p,baseClassName:b,hashId:Z}))},[t,S,p,b,Z]);if(l!=null&&l.loading)return U.jsx("div",{style:n!=null&&n.includes("inline")?{padding:24}:{marginBlockStart:16},children:U.jsx(kp,{active:!0,title:!1,paragraph:{rows:n!=null&&n.includes("inline")?6:1}})});t.openKeys===!1&&!t.handleOpenChange&&(C.current=c);var B=t.postMenuData?t.postMenuData(a):a;return B&&(B==null?void 0:B.length)<1?null:q(f.createElement(Zd,X(X({},z),{},{_internalDisableMenuItemTitleTooltip:!0,key:"Menu",mode:n,inlineIndent:16,defaultOpenKeys:C.current,theme:y?"dark":"light",selectedKeys:H,style:X({backgroundColor:"transparent",border:"none"},o),className:Re(r,Z,b,ae(ae({},"".concat(b,"-horizontal"),n==="horizontal"),"".concat(b,"-collapsed"),t.collapsed)),items:N.getNavMenuItems(B,0,0),onOpenChange:function(G){t.collapsed||D(G)}},t.menuProps)))};function PAt(e,t){var n=t.stylish,r=t.proLayoutCollapsedWidth;return no("ProLayoutSiderMenuStylish",function(i){var o=X(X({},i),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:r});return n?[ae({},"div".concat(i.proComponentsCls,"-layout"),ae({},"".concat(o.componentCls),n==null?void 0:n(o)))]:[]})}var MAt=["title","render"],IAt=ge.memo(function(e){return U.jsx(U.Fragment,{children:e.children})}),$At=Co.Sider,aoe=Co._InternalSiderContext,RAt=aoe===void 0?{Provider:IAt}:aoe,tK=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"menuHeaderRender",r=t.logo,i=t.title,o=t.layout,a=t[n];if(a===!1)return null;var s=JV(r),l=U.jsx("h1",{children:i??"Ant Design Pro"});return a?a(s,t.collapsed?null:l,t):t.isMobile?null:o==="mix"&&n==="menuHeaderRender"?!1:t.collapsed?U.jsx("a",{children:s},"title"):U.jsxs("a",{children:[s,l]},"title")},soe=function(t){var n,r=t.collapsed,i=t.originCollapsed,o=t.fixSiderbar,a=t.menuFooterRender,s=t.onCollapse,l=t.theme,c=t.siderWidth,u=t.isMobile,d=t.onMenuHeaderClick,h=t.breakpoint,p=h===void 0?"lg":h,m=t.style,v=t.layout,y=t.menuExtraRender,S=y===void 0?!1:y,b=t.links,C=t.menuContentRender,_=t.collapsedButtonRender,T=t.prefixCls,x=t.avatarProps,E=t.rightContentRender,k=t.actionsRender,M=t.onOpenChange,P=t.stylish,D=t.logoStyle,R=f.useContext(Od),A=R.hashId,H=f.useMemo(function(){return!(u||v==="mix")},[u,v]),F="".concat(T,"-sider"),z=64,W=PAt("".concat(F,".").concat(F,"-stylish"),{stylish:P,proLayoutCollapsedWidth:z}),q=Re("".concat(F),A,ae(ae(ae(ae(ae(ae(ae({},"".concat(F,"-fixed"),o),"".concat(F,"-fixed-mix"),v==="mix"&&!u&&o),"".concat(F,"-collapsed"),t.collapsed),"".concat(F,"-layout-").concat(v),v&&!u),"".concat(F,"-light"),l!=="dark"),"".concat(F,"-mix"),v==="mix"&&!u),"".concat(F,"-stylish"),!!P)),Z=tK(t),N=S&&S(t),B=f.useMemo(function(){return C!==!1&&f.createElement(Fwe,X(X({},t),{},{key:"base-menu",mode:r&&!u?"vertical":"inline",handleOpenChange:M,style:{width:"100%"},className:"".concat(F,"-menu ").concat(A).trim()}))},[F,A,C,M,t]),V=(b||[]).map(function(pe,he){return{className:"".concat(F,"-link"),label:pe,key:he}}),G=f.useMemo(function(){return C?C(t,B):B},[C,B,t]),ie=f.useMemo(function(){if(!x)return null;var pe=x.title,he=x.render,_e=tn(x,MAt),le=U.jsxs("div",{className:"".concat(F,"-actions-avatar"),children:[_e!=null&&_e.src||_e!=null&&_e.srcSet||_e.icon||_e.children?U.jsx(yg,X({size:28},_e)):null,x.title&&!r&&U.jsx("span",{children:pe})]});return he?he(x,le,t):le},[x,F,r]),ce=f.useMemo(function(){return k?U.jsx(pa,{align:"center",size:4,direction:r?"vertical":"horizontal",className:Re(["".concat(F,"-actions-list"),r&&"".concat(F,"-actions-list-collapsed"),A]),children:[k==null?void 0:k(t)].flat(1).map(function(pe,he){return U.jsx("div",{className:"".concat(F,"-actions-list-item ").concat(A).trim(),children:pe},he)})}):null},[k,F,r]),fe=f.useMemo(function(){return U.jsx(eK,{onItemClick:t.itemClick,appListRender:t.appListRender,appList:t.appList,prefixCls:t.prefixCls})},[t.appList,t.appListRender,t.prefixCls]),ee=f.useMemo(function(){if(_===!1)return null;var pe=U.jsx(_At,{isMobile:u,collapsed:i,className:"".concat(F,"-collapsed-button"),onClick:function(){s==null||s(!i)}});return _?_(r,pe):pe},[_,u,i,F,r,s]),ne=f.useMemo(function(){return!ie&&!ce?null:U.jsxs("div",{className:Re("".concat(F,"-actions"),A,r&&"".concat(F,"-actions-collapsed")),children:[ie,ce]})},[ce,ie,F,r,A]),ue=f.useMemo(function(){var pe;return t!=null&&(pe=t.menu)!==null&&pe!==void 0&&pe.hideMenuWhenCollapsed&&r?"".concat(F,"-hide-menu-collapsed"):null},[F,r,t==null||(n=t.menu)===null||n===void 0?void 0:n.hideMenuWhenCollapsed]),ye=a&&(a==null?void 0:a(t)),me=U.jsxs(U.Fragment,{children:[Z&&U.jsxs("div",{className:Re([Re("".concat(F,"-logo"),A,ae({},"".concat(F,"-logo-collapsed"),r))]),onClick:H?d:void 0,id:"logo",style:D,children:[Z,fe]}),N&&U.jsx("div",{className:Re(["".concat(F,"-extra"),!Z&&"".concat(F,"-extra-no-logo"),A]),children:N}),U.jsx("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden"},children:G}),U.jsxs(RAt.Provider,{value:{},children:[b?U.jsx("div",{className:"".concat(F,"-links ").concat(A).trim(),children:U.jsx(Zd,{inlineIndent:16,className:"".concat(F,"-link-menu ").concat(A).trim(),selectedKeys:[],openKeys:[],theme:l,mode:"inline",items:V})}):null,H&&U.jsxs(U.Fragment,{children:[ne,!ce&&E?U.jsx("div",{className:Re("".concat(F,"-actions"),A,ae({},"".concat(F,"-actions-collapsed"),r)),children:E==null?void 0:E(t)}):null]}),ye&&U.jsx("div",{className:Re(["".concat(F,"-footer"),A,ae({},"".concat(F,"-footer-collapsed"),r)]),children:ye})]})]});return W.wrapSSR(U.jsxs(U.Fragment,{children:[o&&!u&&!ue&&U.jsx("div",{style:X({width:r?z:c,overflow:"hidden",flex:"0 0 ".concat(r?z:c,"px"),maxWidth:r?z:c,minWidth:r?z:c,transition:"all 0.2s ease 0s"},m)}),U.jsxs($At,{collapsible:!0,trigger:null,collapsed:r,breakpoint:p===!1?void 0:p,onCollapse:function(he){u||s==null||s(he)},collapsedWidth:z,style:m,theme:l,width:c,className:Re(q,A,ue),children:[ue?U.jsx("div",{className:"".concat(F,"-hide-when-collapsed ").concat(A).trim(),style:{height:"100%",width:"100%",opacity:ue?0:1},children:me}):me,ee]})]}))},AAt=function(t){var n,r,i,o,a;return ae({},t.componentCls,{"&-header-actions":{display:"flex",height:"100%",alignItems:"center","&-item":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingBlock:0,paddingInline:2,color:(n=t.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorTextRightActionsItem,fontSize:"16px",cursor:"pointer",borderRadius:t.borderRadius,"> *":{paddingInline:6,paddingBlock:6,borderRadius:t.borderRadius,"&:hover":{backgroundColor:(r=t.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorBgRightActionsItemHover}}},"&-avatar":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInlineStart:t.padding,paddingInlineEnd:t.padding,cursor:"pointer",color:(i=t.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorTextRightActionsItem,"> div":{height:"44px",color:(o=t.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorTextRightActionsItem,paddingInline:8,paddingBlock:8,cursor:"pointer",display:"flex",alignItems:"center",lineHeight:"44px",borderRadius:t.borderRadius,"&:hover":{backgroundColor:(a=t.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorBgRightActionsItemHover}}}}})};function NAt(e){return no("ProLayoutRightContent",function(t){var n=X(X({},t),{},{componentCls:".".concat(e)});return[AAt(n)]})}var DAt=["rightContentRender","avatarProps","actionsRender","headerContentRender"],LAt=["title","render"],jwe=function(t){var n=t.rightContentRender,r=t.avatarProps,i=t.actionsRender;t.headerContentRender;var o=tn(t,DAt),a=f.useContext(ar.ConfigContext),s=a.getPrefixCls,l="".concat(s(),"-pro-global-header"),c=NAt(l),u=c.wrapSSR,d=c.hashId,h=f.useState("auto"),p=Le(h,2),m=p[0],v=p[1],y=f.useMemo(function(){if(!r)return null;var _=r.title,T=r.render,x=tn(r,LAt),E=[x!=null&&x.src||x!=null&&x.srcSet||x.icon||x.children?f.createElement(yg,X(X({},x),{},{size:28,key:"avatar"})):null,_?U.jsx("span",{style:{marginInlineStart:8},children:_},"name"):void 0];return T?T(r,U.jsx("div",{children:E}),o):U.jsx("div",{children:E})},[r]),S=i||y?function(_){var T=i&&(i==null?void 0:i(_));return!T&&!y?null:Array.isArray(T)?u(U.jsxs("div",{className:"".concat(l,"-header-actions ").concat(d).trim(),children:[T.filter(Boolean).map(function(x,E){var k=!1;if(ge.isValidElement(x)){var M;k=!!(x!=null&&(M=x.props)!==null&&M!==void 0&&M["aria-hidden"])}return U.jsx("div",{className:Re("".concat(l,"-header-actions-item ").concat(d),ae({},"".concat(l,"-header-actions-hover"),!k)),children:x},E)}),y&&U.jsx("span",{className:"".concat(l,"-header-actions-avatar ").concat(d).trim(),children:y})]})):u(U.jsxs("div",{className:"".concat(l,"-header-actions ").concat(d).trim(),children:[T,y&&U.jsx("span",{className:"".concat(l,"-header-actions-avatar ").concat(d).trim(),children:y})]}))}:void 0,b=s0t(function(){var _=Zo(Hr().mark(function T(x){return Hr().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:v(x);case 1:case"end":return k.stop()}},T)}));return function(T){return _.apply(this,arguments)}}(),160),C=S||n;return U.jsx("div",{className:"".concat(l,"-right-content ").concat(d).trim(),style:{minWidth:m,height:"100%"},children:U.jsx("div",{style:{height:"100%"},children:U.jsx(Wa,{onResize:function(T){var x=T.width;b.run(x)},children:C?U.jsx("div",{style:{display:"flex",alignItems:"center",height:"100%",justifyContent:"flex-end"},children:C(X(X({},o),{},{rightContentSize:m}))}):null})})})},FAt=function(t){var n,r;return ae({},t.componentCls,{position:"relative",width:"100%",height:"100%",backgroundColor:"transparent",".anticon":{color:"inherit"},"&-main":{display:"flex",height:"100%",paddingInlineStart:"16px","&-left":ae({display:"flex",alignItems:"center"},"".concat(t.proComponentsCls,"-layout-apps-icon"),{marginInlineEnd:16,marginInlineStart:-8})},"&-wide":{maxWidth:1152,margin:"0 auto"},"&-logo":{position:"relative",display:"flex",height:"100%",alignItems:"center",overflow:"hidden","> *:first-child":{display:"flex",alignItems:"center",minHeight:"22px",fontSize:"22px"},"> *:first-child > img":{display:"inline-block",height:"32px",verticalAlign:"middle"},"> *:first-child > h1":{display:"inline-block",marginBlock:0,marginInline:0,lineHeight:"24px",marginInlineStart:6,fontWeight:"600",fontSize:"16px",color:(n=t.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorHeaderTitle,verticalAlign:"top"}},"&-menu":{minWidth:0,display:"flex",alignItems:"center",paddingInline:6,paddingBlock:6,lineHeight:"".concat(Math.max((((r=t.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader)||56)-12,40),"px")}})};function jAt(e){return no("ProLayoutTopNavHeader",function(t){var n=X(X({},t),{},{componentCls:".".concat(e)});return[FAt(n)]})}var Bwe=function(t){var n,r,i,o,a,s,l,c=f.useRef(null),u=t.onMenuHeaderClick,d=t.contentWidth,h=t.rightContentRender,p=t.className,m=t.style,v=t.headerContentRender,y=t.layout,S=t.actionsRender,b=f.useContext(ar.ConfigContext),C=b.getPrefixCls,_=f.useContext(Od),T=_.dark,x="".concat(t.prefixCls||C("pro"),"-top-nav-header"),E=jAt(x),k=E.wrapSSR,M=E.hashId,P=void 0;t.menuHeaderRender!==void 0?P="menuHeaderRender":(y==="mix"||y==="top")&&(P="headerTitleRender");var D=tK(X(X({},t),{},{collapsed:!1}),P),R=f.useContext(Od),A=R.token,H=f.useMemo(function(){var F,z,W,q,Z,N,B,V,G,ie,ce,fe,ee,ne=U.jsx(ar,{theme:{hashed:pb(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"},Menu:X({},Ixe({colorItemBg:((F=A.layout)===null||F===void 0||(F=F.header)===null||F===void 0?void 0:F.colorBgHeader)||"transparent",colorSubItemBg:((z=A.layout)===null||z===void 0||(z=z.header)===null||z===void 0?void 0:z.colorBgHeader)||"transparent",radiusItem:A.borderRadius,colorItemBgSelected:((W=A.layout)===null||W===void 0||(W=W.header)===null||W===void 0?void 0:W.colorBgMenuItemSelected)||(A==null?void 0:A.colorBgTextHover),itemHoverBg:((q=A.layout)===null||q===void 0||(q=q.header)===null||q===void 0?void 0:q.colorBgMenuItemHover)||(A==null?void 0:A.colorBgTextHover),colorItemBgSelectedHorizontal:((Z=A.layout)===null||Z===void 0||(Z=Z.header)===null||Z===void 0?void 0:Z.colorBgMenuItemSelected)||(A==null?void 0:A.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((N=A.layout)===null||N===void 0||(N=N.header)===null||N===void 0?void 0:N.colorTextMenu)||(A==null?void 0:A.colorTextSecondary),colorItemTextHoverHorizontal:((B=A.layout)===null||B===void 0||(B=B.header)===null||B===void 0?void 0:B.colorTextMenuActive)||(A==null?void 0:A.colorText),colorItemTextSelectedHorizontal:((V=A.layout)===null||V===void 0||(V=V.header)===null||V===void 0?void 0:V.colorTextMenuSelected)||(A==null?void 0:A.colorTextBase),horizontalItemBorderRadius:4,colorItemTextHover:((G=A.layout)===null||G===void 0||(G=G.header)===null||G===void 0?void 0:G.colorTextMenuActive)||"rgba(0, 0, 0, 0.85)",horizontalItemHoverBg:((ie=A.layout)===null||ie===void 0||(ie=ie.header)===null||ie===void 0?void 0:ie.colorBgMenuItemHover)||"rgba(0, 0, 0, 0.04)",colorItemTextSelected:((ce=A.layout)===null||ce===void 0||(ce=ce.header)===null||ce===void 0?void 0:ce.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:A==null?void 0:A.colorBgElevated,subMenuItemBg:A==null?void 0:A.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:A==null?void 0:A.colorBgElevated}))},token:{colorBgElevated:((fe=A.layout)===null||fe===void 0||(fe=fe.header)===null||fe===void 0?void 0:fe.colorBgHeader)||"transparent"}},children:U.jsx(Fwe,X(X(X({theme:T?"dark":"light"},t),{},{className:"".concat(x,"-base-menu ").concat(M).trim()},t.menuProps),{},{style:X({width:"100%"},(ee=t.menuProps)===null||ee===void 0?void 0:ee.style),collapsed:!1,menuRenderType:"header",mode:"horizontal"}))});return v?v(t,ne):ne},[(n=A.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorBgHeader,(r=A.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorBgMenuItemSelected,(i=A.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorBgMenuItemHover,(o=A.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorTextMenu,(a=A.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorTextMenuActive,(s=A.layout)===null||s===void 0||(s=s.header)===null||s===void 0?void 0:s.colorTextMenuSelected,(l=A.layout)===null||l===void 0||(l=l.header)===null||l===void 0?void 0:l.colorBgMenuElevated,A.borderRadius,A==null?void 0:A.colorBgTextHover,A==null?void 0:A.colorTextSecondary,A==null?void 0:A.colorText,A==null?void 0:A.colorTextBase,A.colorBgElevated,T,t,x,M,v]);return k(U.jsx("div",{className:Re(x,M,p,ae({},"".concat(x,"-light"),!0)),style:m,children:U.jsxs("div",{ref:c,className:Re("".concat(x,"-main"),M,ae({},"".concat(x,"-wide"),d==="Fixed"&&y==="top")),children:[D&&U.jsxs("div",{className:Re("".concat(x,"-main-left ").concat(M)),onClick:u,children:[U.jsx(eK,X({},t)),U.jsx("div",{className:"".concat(x,"-logo ").concat(M).trim(),id:"logo",children:D},"logo")]}),U.jsx("div",{style:{flex:1},className:"".concat(x,"-menu ").concat(M).trim(),children:H}),(h||S||t.avatarProps)&&U.jsx(jwe,X(X({rightContentRender:h},t),{},{prefixCls:x}))]})}))},BAt=function(t){var n,r,i;return ae({},t.componentCls,ae(ae(ae(ae({position:"relative",background:"transparent",display:"flex",alignItems:"center",marginBlock:0,marginInline:16,height:((n=t.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader)||56,boxSizing:"border-box","> a":{height:"100%"}},"".concat(t.proComponentsCls,"-layout-apps-icon"),{marginInlineEnd:16}),"&-collapsed-button",{minHeight:"22px",color:(r=t.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorHeaderTitle,fontSize:"18px",marginInlineEnd:"16px"}),"&-logo",{position:"relative",marginInlineEnd:"16px",a:{display:"flex",alignItems:"center",height:"100%",minHeight:"22px",fontSize:"20px"},img:{height:"28px"},h1:{height:"32px",marginBlock:0,marginInline:0,marginInlineStart:8,fontWeight:"600",color:((i=t.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorHeaderTitle)||t.colorTextHeading,fontSize:"18px",lineHeight:"32px"},"&-mix":{display:"flex",alignItems:"center"}}),"&-logo-mobile",{minWidth:"24px",marginInlineEnd:0}))};function HAt(e){return no("ProLayoutGlobalHeader",function(t){var n=X(X({},t),{},{componentCls:".".concat(e)});return[BAt(n)]})}var zAt=function(t,n){return t===!1?null:t?t(n,null):n},UAt=function(t){var n=t.isMobile,r=t.logo,i=t.collapsed,o=t.onCollapse,a=t.rightContentRender,s=t.menuHeaderRender,l=t.onMenuHeaderClick,c=t.className,u=t.style,d=t.layout,h=t.children,p=t.splitMenus,m=t.menuData,v=t.prefixCls,y=f.useContext(ar.ConfigContext),S=y.getPrefixCls,b=y.direction,C="".concat(v||S("pro"),"-global-header"),_=HAt(C),T=_.wrapSSR,x=_.hashId,E=Re(c,C,x);if(d==="mix"&&!n&&p){var k=(m||[]).map(function(R){return X(X({},R),{},{children:void 0,routes:void 0})}),M=iM(k);return U.jsx(Bwe,X(X({mode:"horizontal"},t),{},{splitMenus:!1,menuData:M}))}var P=Re("".concat(C,"-logo"),x,ae(ae(ae({},"".concat(C,"-logo-rtl"),b==="rtl"),"".concat(C,"-logo-mix"),d==="mix"),"".concat(C,"-logo-mobile"),n)),D=U.jsx("span",{className:P,children:U.jsx("a",{children:JV(r)})},"logo");return T(U.jsxs("div",{className:E,style:X({},u),children:[n&&U.jsx("span",{className:"".concat(C,"-collapsed-button ").concat(x).trim(),onClick:function(){o==null||o(!i)},children:U.jsx(Kst,{})}),n&&zAt(s,D),d==="mix"&&!n&&U.jsxs(U.Fragment,{children:[U.jsx(eK,X({},t)),U.jsx("div",{className:P,onClick:l,children:tK(X(X({},t),{},{collapsed:!1}),"headerTitleRender")})]}),U.jsx("div",{style:{flex:1},children:h}),(a||t.actionsRender||t.avatarProps)&&U.jsx(jwe,X({rightContentRender:a},t))]}))},WAt=function(t){var n,r,i,o;return ae({},"".concat(t.proComponentsCls,"-layout"),ae({},"".concat(t.antCls,"-layout-header").concat(t.componentCls),{height:((n=t.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader)||56,lineHeight:"".concat(((r=t.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader)||56,"px"),zIndex:19,width:"100%",paddingBlock:0,paddingInline:0,borderBlockEnd:"1px solid ".concat(t.colorSplit),backgroundColor:((i=t.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorBgHeader)||"rgba(255, 255, 255, 0.4)",WebkitBackdropFilter:"blur(8px)",backdropFilter:"blur(8px)",transition:"background-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)","&-fixed-header":{position:"fixed",insetBlockStart:0,width:"100%",zIndex:100,insetInlineEnd:0},"&-fixed-header-scroll":{backgroundColor:((o=t.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorBgScrollHeader)||"rgba(255, 255, 255, 0.8)"},"&-header-actions":{display:"flex",alignItems:"center",fontSize:"16",cursor:"pointer","& &-item":{paddingBlock:0,paddingInline:8,"&:hover":{color:t.colorText}}},"&-header-realDark":{boxShadow:"0 2px 8px 0 rgba(0, 0, 0, 65%)"},"&-header-actions-header-action":{transition:"width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"}}))};function VAt(e){return no("ProLayoutHeader",function(t){var n=X(X({},t),{},{componentCls:".".concat(e)});return[WAt(n)]})}function KAt(e,t){var n=t.stylish,r=t.proLayoutCollapsedWidth;return no("ProLayoutHeaderStylish",function(i){var o=X(X({},i),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:r});return n?[ae({},"div".concat(i.proComponentsCls,"-layout"),ae({},"".concat(o.componentCls),n==null?void 0:n(o)))]:[]})}var loe=Co.Header,qAt=function(t){var n,r,i,o=t.isMobile,a=t.fixedHeader,s=t.className,l=t.style,c=t.collapsed,u=t.prefixCls,d=t.onCollapse,h=t.layout,p=t.headerRender,m=t.headerContentRender,v=f.useContext(Od),y=v.token,S=f.useContext(ar.ConfigContext),b=f.useState(!1),C=Le(b,2),_=C[0],T=C[1],x=a||h==="mix",E=f.useCallback(function(){var F=h==="top",z=iM(t.menuData||[]),W=U.jsx(UAt,X(X({onCollapse:d},t),{},{menuData:z,children:m&&m(t,null)}));return F&&!o&&(W=U.jsx(Bwe,X(X({mode:"horizontal",onCollapse:d},t),{},{menuData:z}))),p&&typeof p=="function"?p(t,W):W},[m,p,o,h,d,t]);f.useEffect(function(){var F,z=(S==null||(F=S.getTargetContainer)===null||F===void 0?void 0:F.call(S))||document.body,W=function(){var Z,N=z.scrollTop;return N>(((Z=y.layout)===null||Z===void 0||(Z=Z.header)===null||Z===void 0?void 0:Z.heightLayoutHeader)||56)&&!_?(T(!0),!0):(_&&T(!1),!1)};if(x&&!(typeof window>"u"))return z.addEventListener("scroll",W,{passive:!0}),function(){z.removeEventListener("scroll",W)}},[(n=y.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader,x,_]);var k=h==="top",M="".concat(u,"-layout-header"),P=VAt(M),D=P.wrapSSR,R=P.hashId,A=KAt("".concat(M,".").concat(M,"-stylish"),{proLayoutCollapsedWidth:64,stylish:t.stylish}),H=Re(s,R,M,ae(ae(ae(ae(ae(ae(ae({},"".concat(M,"-fixed-header"),x),"".concat(M,"-fixed-header-scroll"),_),"".concat(M,"-mix"),h==="mix"),"".concat(M,"-fixed-header-action"),!c),"".concat(M,"-top-menu"),k),"".concat(M,"-header"),!0),"".concat(M,"-stylish"),!!t.stylish));return h==="side"&&!o?null:A.wrapSSR(D(U.jsx(U.Fragment,{children:U.jsxs(ar,{theme:{hashed:pb(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"}}},children:[x&&U.jsx(loe,{style:X({height:((r=y.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader)||56,lineHeight:"".concat(((i=y.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.heightLayoutHeader)||56,"px"),backgroundColor:"transparent",zIndex:19},l)}),U.jsx(loe,{className:H,style:l,children:E()})]})})))};const GAt={"app.setting.pagestyle":"Page style setting","app.setting.pagestyle.dark":"Dark Menu style","app.setting.pagestyle.light":"Light Menu style","app.setting.pagestyle.realdark":"Dark style (Beta)","app.setting.content-width":"Content Width","app.setting.content-width.fixed":"Fixed","app.setting.content-width.fluid":"Fluid","app.setting.themecolor":"Theme Color","app.setting.themecolor.dust":"Dust Red","app.setting.themecolor.volcano":"Volcano","app.setting.themecolor.sunset":"Sunset Orange","app.setting.themecolor.cyan":"Cyan","app.setting.themecolor.green":"Polar Green","app.setting.themecolor.techBlue":"Tech Blue (default)","app.setting.themecolor.daybreak":"Daybreak Blue","app.setting.themecolor.geekblue":"Geek Blue","app.setting.themecolor.purple":"Golden Purple","app.setting.sidermenutype":"SideMenu Type","app.setting.sidermenutype-sub":"Classic","app.setting.sidermenutype-group":"Grouping","app.setting.navigationmode":"Navigation Mode","app.setting.regionalsettings":"Regional Settings","app.setting.regionalsettings.header":"Header","app.setting.regionalsettings.menu":"Menu","app.setting.regionalsettings.footer":"Footer","app.setting.regionalsettings.menuHeader":"Menu Header","app.setting.sidemenu":"Side Menu Layout","app.setting.topmenu":"Top Menu Layout","app.setting.mixmenu":"Mix Menu Layout","app.setting.splitMenus":"Split Menus","app.setting.fixedheader":"Fixed Header","app.setting.fixedsidebar":"Fixed Sidebar","app.setting.fixedsidebar.hint":"Works on Side Menu Layout","app.setting.hideheader":"Hidden Header when scrolling","app.setting.hideheader.hint":"Works when Hidden Header is enabled","app.setting.othersettings":"Other Settings","app.setting.weakmode":"Weak Mode","app.setting.copy":"Copy Setting","app.setting.loading":"Loading theme","app.setting.copyinfo":"copy success,please replace defaultSettings in src/models/setting.js","app.setting.production.hint":"Setting panel shows in development environment only, please manually modify"},YAt=X({},GAt),XAt={"app.setting.pagestyle":"Impostazioni di stile","app.setting.pagestyle.dark":"Tema scuro","app.setting.pagestyle.light":"Tema chiaro","app.setting.content-width":"Largezza contenuto","app.setting.content-width.fixed":"Fissa","app.setting.content-width.fluid":"Fluida","app.setting.themecolor":"Colore del tema","app.setting.themecolor.dust":"Rosso polvere","app.setting.themecolor.volcano":"Vulcano","app.setting.themecolor.sunset":"Arancione tramonto","app.setting.themecolor.cyan":"Ciano","app.setting.themecolor.green":"Verde polare","app.setting.themecolor.techBlue":"Tech Blu (default)","app.setting.themecolor.daybreak":"Blu cielo mattutino","app.setting.themecolor.geekblue":"Blu geek","app.setting.themecolor.purple":"Viola dorato","app.setting.navigationmode":"Modalità di navigazione","app.setting.sidemenu":"Menu laterale","app.setting.topmenu":"Menu in testata","app.setting.mixmenu":"Menu misto","app.setting.splitMenus":"Menu divisi","app.setting.fixedheader":"Testata fissa","app.setting.fixedsidebar":"Menu laterale fisso","app.setting.fixedsidebar.hint":"Solo se selezionato Menu laterale","app.setting.hideheader":"Nascondi testata durante lo scorrimento","app.setting.hideheader.hint":"Solo se abilitato Nascondi testata durante lo scorrimento","app.setting.othersettings":"Altre impostazioni","app.setting.weakmode":"Inverti colori","app.setting.copy":"Copia impostazioni","app.setting.loading":"Carico tema...","app.setting.copyinfo":"Impostazioni copiate con successo! Incolla il contenuto in config/defaultSettings.js","app.setting.production.hint":"Questo pannello è visibile solo durante lo sviluppo. Le impostazioni devono poi essere modificate manulamente"},QAt=X({},XAt),ZAt={"app.setting.pagestyle":"스타일 설정","app.setting.pagestyle.dark":"다크 모드","app.setting.pagestyle.light":"라이트 모드","app.setting.content-width":"컨텐츠 너비","app.setting.content-width.fixed":"고정","app.setting.content-width.fluid":"흐름","app.setting.themecolor":"테마 색상","app.setting.themecolor.dust":"Dust Red","app.setting.themecolor.volcano":"Volcano","app.setting.themecolor.sunset":"Sunset Orange","app.setting.themecolor.cyan":"Cyan","app.setting.themecolor.green":"Polar Green","app.setting.themecolor.techBlue":"Tech Blu (default)","app.setting.themecolor.daybreak":"Daybreak Blue","app.setting.themecolor.geekblue":"Geek Blue","app.setting.themecolor.purple":"Golden Purple","app.setting.navigationmode":"네비게이션 모드","app.setting.regionalsettings":"영역별 설정","app.setting.regionalsettings.header":"헤더","app.setting.regionalsettings.menu":"메뉴","app.setting.regionalsettings.footer":"바닥글","app.setting.regionalsettings.menuHeader":"메뉴 헤더","app.setting.sidemenu":"메뉴 사이드 배치","app.setting.topmenu":"메뉴 상단 배치","app.setting.mixmenu":"혼합형 배치","app.setting.splitMenus":"메뉴 분리","app.setting.fixedheader":"헤더 고정","app.setting.fixedsidebar":"사이드바 고정","app.setting.fixedsidebar.hint":"'메뉴 사이드 배치'를 선택했을 때 동작함","app.setting.hideheader":"스크롤 중 헤더 감추기","app.setting.hideheader.hint":"'헤더 감추기 옵션'을 선택했을 때 동작함","app.setting.othersettings":"다른 설정","app.setting.weakmode":"고대비 모드","app.setting.copy":"설정값 복사","app.setting.loading":"테마 로딩 중","app.setting.copyinfo":"복사 성공. src/models/settings.js에 있는 defaultSettings를 교체해 주세요.","app.setting.production.hint":"설정 판넬은 개발 환경에서만 보여집니다. 직접 수동으로 변경바랍니다."},JAt=X({},ZAt),eNt={"app.setting.pagestyle":"整体风格设置","app.setting.pagestyle.dark":"暗色菜单风格","app.setting.pagestyle.light":"亮色菜单风格","app.setting.pagestyle.realdark":"暗色风格(实验功能)","app.setting.content-width":"内容区域宽度","app.setting.content-width.fixed":"定宽","app.setting.content-width.fluid":"流式","app.setting.themecolor":"主题色","app.setting.themecolor.dust":"薄暮","app.setting.themecolor.volcano":"火山","app.setting.themecolor.sunset":"日暮","app.setting.themecolor.cyan":"明青","app.setting.themecolor.green":"极光绿","app.setting.themecolor.techBlue":"科技蓝(默认)","app.setting.themecolor.daybreak":"拂晓","app.setting.themecolor.geekblue":"极客蓝","app.setting.themecolor.purple":"酱紫","app.setting.navigationmode":"导航模式","app.setting.sidermenutype":"侧边菜单类型","app.setting.sidermenutype-sub":"经典模式","app.setting.sidermenutype-group":"分组模式","app.setting.regionalsettings":"内容区域","app.setting.regionalsettings.header":"顶栏","app.setting.regionalsettings.menu":"菜单","app.setting.regionalsettings.footer":"页脚","app.setting.regionalsettings.menuHeader":"菜单头","app.setting.sidemenu":"侧边菜单布局","app.setting.topmenu":"顶部菜单布局","app.setting.mixmenu":"混合菜单布局","app.setting.splitMenus":"自动分割菜单","app.setting.fixedheader":"固定 Header","app.setting.fixedsidebar":"固定侧边菜单","app.setting.fixedsidebar.hint":"侧边菜单布局时可配置","app.setting.hideheader":"下滑时隐藏 Header","app.setting.hideheader.hint":"固定 Header 时可配置","app.setting.othersettings":"其他设置","app.setting.weakmode":"色弱模式","app.setting.copy":"拷贝设置","app.setting.loading":"正在加载主题","app.setting.copyinfo":"拷贝成功,请到 src/defaultSettings.js 中替换默认配置","app.setting.production.hint":"配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件"},tNt=X({},eNt),nNt={"app.setting.pagestyle":"整體風格設置","app.setting.pagestyle.dark":"暗色菜單風格","app.setting.pagestyle.realdark":"暗色風格(实验功能)","app.setting.pagestyle.light":"亮色菜單風格","app.setting.content-width":"內容區域寬度","app.setting.content-width.fixed":"定寬","app.setting.content-width.fluid":"流式","app.setting.themecolor":"主題色","app.setting.themecolor.dust":"薄暮","app.setting.themecolor.volcano":"火山","app.setting.themecolor.sunset":"日暮","app.setting.themecolor.cyan":"明青","app.setting.themecolor.green":"極光綠","app.setting.themecolor.techBlue":"科技蓝(默認)","app.setting.themecolor.daybreak":"拂曉藍","app.setting.themecolor.geekblue":"極客藍","app.setting.themecolor.purple":"醬紫","app.setting.navigationmode":"導航模式","app.setting.sidemenu":"側邊菜單布局","app.setting.topmenu":"頂部菜單布局","app.setting.mixmenu":"混合菜單布局","app.setting.splitMenus":"自动分割菜单","app.setting.fixedheader":"固定 Header","app.setting.fixedsidebar":"固定側邊菜單","app.setting.fixedsidebar.hint":"側邊菜單布局時可配置","app.setting.hideheader":"下滑時隱藏 Header","app.setting.hideheader.hint":"固定 Header 時可配置","app.setting.othersettings":"其他設置","app.setting.weakmode":"色弱模式","app.setting.copy":"拷貝設置","app.setting.loading":"正在加載主題","app.setting.copyinfo":"拷貝成功,請到 src/defaultSettings.js 中替換默認配置","app.setting.production.hint":"配置欄只在開發環境用於預覽,生產環境不會展現,請拷貝後手動修改配置文件"},rNt=X({},nNt);var coe={"zh-CN":tNt,"zh-TW":rNt,"en-US":YAt,"it-IT":QAt,"ko-KR":JAt},iNt=function(){if(!mV())return"zh-CN";var t=window.localStorage.getItem("umi_locale");return t||window.g_locale||navigator.language},oNt=function(){var t=iNt();return coe[t]||coe["zh-CN"]},xg={};Object.defineProperty(xg,"__esModule",{value:!0});xg.TokenData=void 0;xg.parse=oK;xg.compile=uNt;var Jj=xg.match=fNt;xg.pathToRegexp=Uwe;xg.stringify=mNt;const nK="/",rK=e=>e,Hwe=/^[$_\p{ID_Start}]$/u,iK=/^[$\u200c\u200d\p{ID_Continue}]$/u,wk="https://git.new/pathToRegexpError",aNt={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function sNt(e){return e.replace(/[{}()\[\]+?!:*]/g,"\\$&")}function Sf(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}function*lNt(e){const t=[...e];let n=0;function r(){let i="";if(Hwe.test(t[++n]))for(i+=t[n];iK.test(t[++n]);)i+=t[n];else if(t[n]==='"'){let o=n;for(;n<t.length;){if(t[++n]==='"'){n++,o=0;break}t[n]==="\\"?i+=t[++n]:i+=t[n]}if(o)throw new TypeError(`Unterminated quote at ${o}: ${wk}`)}if(!i)throw new TypeError(`Missing parameter name at ${n}: ${wk}`);return i}for(;n<t.length;){const i=t[n],o=aNt[i];if(o)yield{type:o,index:n++,value:i};else if(i==="\\")yield{type:"ESCAPED",index:n++,value:t[n++]};else if(i===":"){const a=r();yield{type:"PARAM",index:n,value:a}}else if(i==="*"){const a=r();yield{type:"WILDCARD",index:n,value:a}}else yield{type:"CHAR",index:n,value:t[n++]}}return{type:"END",index:n,value:""}}class cNt{constructor(t){this.tokens=t}peek(){if(!this._peek){const t=this.tokens.next();this._peek=t.value}return this._peek}tryConsume(t){const n=this.peek();if(n.type===t)return this._peek=void 0,n.value}consume(t){const n=this.tryConsume(t);if(n!==void 0)return n;const{type:r,index:i}=this.peek();throw new TypeError(`Unexpected ${r} at ${i}, expected ${t}: ${wk}`)}text(){let t="",n;for(;n=this.tryConsume("CHAR")||this.tryConsume("ESCAPED");)t+=n;return t}}class oM{constructor(t){this.tokens=t}}xg.TokenData=oM;function oK(e,t={}){const{encodePath:n=rK}=t,r=new cNt(lNt(e));function i(a){const s=[];for(;;){const l=r.text();l&&s.push({type:"text",value:n(l)});const c=r.tryConsume("PARAM");if(c){s.push({type:"param",name:c});continue}const u=r.tryConsume("WILDCARD");if(u){s.push({type:"wildcard",name:u});continue}if(r.tryConsume("{")){s.push({type:"group",tokens:i("}")});continue}return r.consume(a),s}}const o=i("END");return new oM(o)}function uNt(e,t={}){const{encode:n=encodeURIComponent,delimiter:r=nK}=t,i=e instanceof oM?e:oK(e,t),o=zwe(i.tokens,r,n);return function(s={}){const[l,...c]=o(s);if(c.length)throw new TypeError(`Missing parameters: ${c.join(", ")}`);return l}}function zwe(e,t,n){const r=e.map(i=>dNt(i,t,n));return i=>{const o=[""];for(const a of r){const[s,...l]=a(i);o[0]+=s,o.push(...l)}return o}}function dNt(e,t,n){if(e.type==="text")return()=>[e.value];if(e.type==="group"){const i=zwe(e.tokens,t,n);return o=>{const[a,...s]=i(o);return s.length?[""]:[a]}}const r=n||rK;return e.type==="wildcard"&&n!==!1?i=>{const o=i[e.name];if(o==null)return["",e.name];if(!Array.isArray(o)||o.length===0)throw new TypeError(`Expected "${e.name}" to be a non-empty array`);return[o.map((a,s)=>{if(typeof a!="string")throw new TypeError(`Expected "${e.name}/${s}" to be a string`);return r(a)}).join(t)]}:i=>{const o=i[e.name];if(o==null)return["",e.name];if(typeof o!="string")throw new TypeError(`Expected "${e.name}" to be a string`);return[r(o)]}}function fNt(e,t={}){const{decode:n=decodeURIComponent,delimiter:r=nK}=t,{regexp:i,keys:o}=Uwe(e,t),a=o.map(s=>n===!1?rK:s.type==="param"?n:l=>l.split(r).map(n));return function(l){const c=i.exec(l);if(!c)return!1;const u=c[0],d=Object.create(null);for(let h=1;h<c.length;h++){if(c[h]===void 0)continue;const p=o[h-1],m=a[h-1];d[p.name]=m(c[h])}return{path:u,params:d}}}function Uwe(e,t={}){const{delimiter:n=nK,end:r=!0,sensitive:i=!1,trailing:o=!0}=t,a=[],s=[],l=i?"":"i",u=(Array.isArray(e)?e:[e]).map(p=>p instanceof oM?p:oK(p,t));for(const{tokens:p}of u)for(const m of W8(p,0,[])){const v=hNt(m,n,a);s.push(v)}let d=`^(?:${s.join("|")})`;return o&&(d+=`(?:${Sf(n)}$)?`),d+=r?"$":`(?=${Sf(n)}|$)`,{regexp:new RegExp(d,l),keys:a}}function*W8(e,t,n){if(t===e.length)return yield n;const r=e[t];if(r.type==="group"){const i=n.slice();for(const o of W8(r.tokens,0,i))yield*W8(e,t+1,o)}else n.push(r);yield*W8(e,t+1,n)}function hNt(e,t,n){let r="",i="",o=!0;for(let a=0;a<e.length;a++){const s=e[a];if(s.type==="text"){r+=Sf(s.value),i+=s.value,o||(o=s.value.includes(t));continue}if(s.type==="param"||s.type==="wildcard"){if(!o&&!i)throw new TypeError(`Missing text after "${s.name}": ${wk}`);s.type==="param"?r+=`(${pNt(t,o?"":i)}+)`:r+="([\\s\\S]+)",n.push(s),i="",o=!1;continue}}return r}function pNt(e,t){return t.length<2?e.length<2?`[^${Sf(e+t)}]`:`(?:(?!${Sf(e)})[^${Sf(t)}])`:e.length<2?`(?:(?!${Sf(t)})[^${Sf(e)}])`:`(?:(?!${Sf(t)}|${Sf(e)})[\\s\\S])`}function mNt(e){return e.tokens.map(function t(n,r,i){if(n.type==="text")return sNt(n.value);if(n.type==="group")return`{${n.tokens.map(t).join("")}}`;const a=gNt(n.name)&&vNt(i[r+1])?n.name:JSON.stringify(n.name);if(n.type==="param")return`:${a}`;if(n.type==="wildcard")return`*${a}`;throw new TypeError(`Unexpected token: ${n}`)}).join("")}function gNt(e){const[t,...n]=e;return Hwe.test(t)?n.every(r=>iK.test(r)):!1}function vNt(e){return(e==null?void 0:e.type)!=="text"?!0:!iK.test(e.value[0])}var yNt=function(t,n,r){if(r){var i=pt(r.keys()).find(function(a){try{return a.startsWith("http")?!1:Jj(a)(t)}catch(s){return console.log("key",a,s),!1}});if(i)return r.get(i)}if(n){var o=Object.keys(n).find(function(a){try{return a!=null&&a.startsWith("http")?!1:Jj(a)(t)}catch(s){return console.log("key",a,s),!1}});if(o)return n[o]}return{path:""}},uoe=function(t,n){var r=t.pathname,i=r===void 0?"/":r,o=t.breadcrumb,a=t.breadcrumbMap,s=t.formatMessage,l=t.title,c=t.menu,u=c===void 0?{locale:!1}:c,d=n?"":l||"",h=yNt(i,o,a);if(!h)return{title:d,id:"",pageName:d};var p=h.name;return u.locale!==!1&&h.locale&&s&&(p=s({id:h.locale||"",defaultMessage:h.name})),p?n||!l?{title:p,id:h.locale||"",pageName:p}:{title:"".concat(p," - ").concat(l),id:h.locale||"",pageName:p}:{title:d,id:h.locale||"",pageName:d}},al={};function eB(e){"@babel/helpers - typeof";return eB=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},eB(e)}Object.defineProperty(al,"__esModule",{value:!0});var sw=al.pathToRegexp=al.tokensToRegexp=al.regexpToFunction=al.match=al.tokensToFunction=al.compile=al.parse=void 0;function bNt(e){for(var t=[],n=0;n<e.length;){var r=e[n];if(r==="*"||r==="+"||r==="?"){t.push({type:"MODIFIER",index:n,value:e[n++]});continue}if(r==="\\"){t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});continue}if(r==="{"){t.push({type:"OPEN",index:n,value:e[n++]});continue}if(r==="}"){t.push({type:"CLOSE",index:n,value:e[n++]});continue}if(r===":"){for(var i="",o=n+1;o<e.length;){var a=e.charCodeAt(o);if(a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122||a===95){i+=e[o++];continue}break}if(!i)throw new TypeError("Missing parameter name at "+n);t.push({type:"NAME",index:n,value:i}),n=o;continue}if(r==="("){var s=1,l="",o=n+1;if(e[o]==="?")throw new TypeError('Pattern cannot start with "?" at '+o);for(;o<e.length;){if(e[o]==="\\"){l+=e[o++]+e[o++];continue}if(e[o]===")"){if(s--,s===0){o++;break}}else if(e[o]==="("&&(s++,e[o+1]!=="?"))throw new TypeError("Capturing groups are not allowed at "+o);l+=e[o++]}if(s)throw new TypeError("Unbalanced pattern at "+n);if(!l)throw new TypeError("Missing pattern at "+n);t.push({type:"PATTERN",index:n,value:l}),n=o;continue}t.push({type:"CHAR",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}function aK(e,t){t===void 0&&(t={});for(var n=bNt(e),r=t.prefixes,i=r===void 0?"./":r,o="[^"+by(t.delimiter||"/#?")+"]+?",a=[],s=0,l=0,c="",u=function(E){if(l<n.length&&n[l].type===E)return n[l++].value},d=function(E){var k=u(E);if(k!==void 0)return k;var M=n[l],P=M.type,D=M.index;throw new TypeError("Unexpected "+P+" at "+D+", expected "+E)},h=function(){for(var E="",k;k=u("CHAR")||u("ESCAPED_CHAR");)E+=k;return E};l<n.length;){var p=u("CHAR"),m=u("NAME"),v=u("PATTERN");if(m||v){var y=p||"";i.indexOf(y)===-1&&(c+=y,y=""),c&&(a.push(c),c=""),a.push({name:m||s++,prefix:y,suffix:"",pattern:v||o,modifier:u("MODIFIER")||""});continue}var S=p||u("ESCAPED_CHAR");if(S){c+=S;continue}c&&(a.push(c),c="");var b=u("OPEN");if(b){var y=h(),C=u("NAME")||"",_=u("PATTERN")||"",T=h();d("CLOSE"),a.push({name:C||(_?s++:""),pattern:C&&!_?o:_,prefix:y,suffix:T,modifier:u("MODIFIER")||""});continue}d("END")}return a}al.parse=aK;function SNt(e,t){return Wwe(aK(e,t),t)}al.compile=SNt;function Wwe(e,t){t===void 0&&(t={});var n=sK(t),r=t.encode,i=r===void 0?function(l){return l}:r,o=t.validate,a=o===void 0?!0:o,s=e.map(function(l){if(eB(l)==="object")return new RegExp("^(?:"+l.pattern+")$",n)});return function(l){for(var c="",u=0;u<e.length;u++){var d=e[u];if(typeof d=="string"){c+=d;continue}var h=l?l[d.name]:void 0,p=d.modifier==="?"||d.modifier==="*",m=d.modifier==="*"||d.modifier==="+";if(Array.isArray(h)){if(!m)throw new TypeError('Expected "'+d.name+'" to not repeat, but got an array');if(h.length===0){if(p)continue;throw new TypeError('Expected "'+d.name+'" to not be empty')}for(var v=0;v<h.length;v++){var y=i(h[v],d);if(a&&!s[u].test(y))throw new TypeError('Expected all "'+d.name+'" to match "'+d.pattern+'", but got "'+y+'"');c+=d.prefix+y+d.suffix}continue}if(typeof h=="string"||typeof h=="number"){var y=i(String(h),d);if(a&&!s[u].test(y))throw new TypeError('Expected "'+d.name+'" to match "'+d.pattern+'", but got "'+y+'"');c+=d.prefix+y+d.suffix;continue}if(!p){var S=m?"an array":"a string";throw new TypeError('Expected "'+d.name+'" to be '+S)}}return c}}al.tokensToFunction=Wwe;function CNt(e,t){var n=[],r=lK(e,n,t);return Vwe(r,n,t)}al.match=CNt;function Vwe(e,t,n){n===void 0&&(n={});var r=n.decode,i=r===void 0?function(o){return o}:r;return function(o){var a=e.exec(o);if(!a)return!1;for(var s=a[0],l=a.index,c=Object.create(null),u=function(p){if(a[p]===void 0)return"continue";var m=t[p-1];m.modifier==="*"||m.modifier==="+"?c[m.name]=a[p].split(m.prefix+m.suffix).map(function(v){return i(v,m)}):c[m.name]=i(a[p],m)},d=1;d<a.length;d++)u(d);return{path:s,index:l,params:c}}}al.regexpToFunction=Vwe;function by(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function sK(e){return e&&e.sensitive?"":"i"}function xNt(e,t){if(!t)return e;var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:"",suffix:"",modifier:"",pattern:""});return e}function wNt(e,t,n){var r=e.map(function(i){return lK(i,t,n).source});return new RegExp("(?:"+r.join("|")+")",sK(n))}function _Nt(e,t,n){return Kwe(aK(e,n),t,n)}function Kwe(e,t,n){n===void 0&&(n={});for(var r=n.strict,i=r===void 0?!1:r,o=n.start,a=o===void 0?!0:o,s=n.end,l=s===void 0?!0:s,c=n.encode,u=c===void 0?function(x){return x}:c,d="["+by(n.endsWith||"")+"]|$",h="["+by(n.delimiter||"/#?")+"]",p=a?"^":"",m=0,v=e;m<v.length;m++){var y=v[m];if(typeof y=="string")p+=by(u(y));else{var S=by(u(y.prefix)),b=by(u(y.suffix));if(y.pattern)if(t&&t.push(y),S||b)if(y.modifier==="+"||y.modifier==="*"){var C=y.modifier==="*"?"?":"";p+="(?:"+S+"((?:"+y.pattern+")(?:"+b+S+"(?:"+y.pattern+"))*)"+b+")"+C}else p+="(?:"+S+"("+y.pattern+")"+b+")"+y.modifier;else p+="("+y.pattern+")"+y.modifier;else p+="(?:"+S+b+")"+y.modifier}}if(l)i||(p+=h+"?"),p+=n.endsWith?"(?="+d+")":"$";else{var _=e[e.length-1],T=typeof _=="string"?h.indexOf(_[_.length-1])>-1:_===void 0;i||(p+="(?:"+h+"(?="+d+"))?"),T||(p+="(?="+h+"|"+d+")")}return new RegExp(p,sK(n))}al.tokensToRegexp=Kwe;function lK(e,t,n){return e instanceof RegExp?xNt(e,t):Array.isArray(e)?wNt(e,t,n):_Nt(e,t,n)}sw=al.pathToRegexp=lK;function jf(e,t){return t>>>e|t<<32-e}function ENt(e,t,n){return e&t^~e&n}function TNt(e,t,n){return e&t^e&n^t&n}function kNt(e){return jf(2,e)^jf(13,e)^jf(22,e)}function ONt(e){return jf(6,e)^jf(11,e)^jf(25,e)}function PNt(e){return jf(7,e)^jf(18,e)^e>>>3}function MNt(e){return jf(17,e)^jf(19,e)^e>>>10}function INt(e,t){return e[t&15]+=MNt(e[t+14&15])+e[t+9&15]+PNt(e[t+1&15])}var $Nt=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],oo,Ns,Fa,RNt="0123456789abcdef";function doe(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function ANt(){oo=new Array(8),Ns=new Array(2),Fa=new Array(64),Ns[0]=Ns[1]=0,oo[0]=1779033703,oo[1]=3144134277,oo[2]=1013904242,oo[3]=2773480762,oo[4]=1359893119,oo[5]=2600822924,oo[6]=528734635,oo[7]=1541459225}function tB(){var e,t,n,r,i,o,a,s,l,c,u=new Array(16);e=oo[0],t=oo[1],n=oo[2],r=oo[3],i=oo[4],o=oo[5],a=oo[6],s=oo[7];for(var d=0;d<16;d++)u[d]=Fa[(d<<2)+3]|Fa[(d<<2)+2]<<8|Fa[(d<<2)+1]<<16|Fa[d<<2]<<24;for(var h=0;h<64;h++)l=s+ONt(i)+ENt(i,o,a)+$Nt[h],h<16?l+=u[h]:l+=INt(u,h),c=kNt(e)+TNt(e,t,n),s=a,a=o,o=i,i=doe(r,l),r=n,n=t,t=e,e=doe(l,c);oo[0]+=e,oo[1]+=t,oo[2]+=n,oo[3]+=r,oo[4]+=i,oo[5]+=o,oo[6]+=a,oo[7]+=s}function NNt(e,t){var n,r,i=0;r=Ns[0]>>3&63;var o=t&63;for((Ns[0]+=t<<3)<t<<3&&Ns[1]++,Ns[1]+=t>>29,n=0;n+63<t;n+=64){for(var a=r;a<64;a++)Fa[a]=e.charCodeAt(i++);tB(),r=0}for(var s=0;s<o;s++)Fa[s]=e.charCodeAt(i++)}function DNt(){var e=Ns[0]>>3&63;if(Fa[e++]=128,e<=56)for(var t=e;t<56;t++)Fa[t]=0;else{for(var n=e;n<64;n++)Fa[n]=0;tB();for(var r=0;r<56;r++)Fa[r]=0}Fa[56]=Ns[1]>>>24&255,Fa[57]=Ns[1]>>>16&255,Fa[58]=Ns[1]>>>8&255,Fa[59]=Ns[1]&255,Fa[60]=Ns[0]>>>24&255,Fa[61]=Ns[0]>>>16&255,Fa[62]=Ns[0]>>>8&255,Fa[63]=Ns[0]&255,tB()}function LNt(){for(var e=new String,t=0;t<8;t++)for(var n=28;n>=0;n-=4)e+=RNt.charAt(oo[t]>>>n&15);return e}function FNt(e){return ANt(),NNt(e,e.length),DNt(),LNt()}function nB(e){"@babel/helpers - typeof";return nB=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nB(e)}var jNt=["pro_layout_parentKeys","children","icon","flatMenu","indexRoute","routes"];function BNt(e,t){return UNt(e)||zNt(e,t)||cK(e,t)||HNt()}function HNt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zNt(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function UNt(e){if(Array.isArray(e))return e}function WNt(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=cK(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return o=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(a)throw s}}}}function VNt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KNt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qNt(e,t,n){return t&&KNt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function GNt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&I_(e,t)}function YNt(e){var t=qwe();return function(){var r=$_(e),i;if(t){var o=$_(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return XNt(this,i)}}function XNt(e,t){if(t&&(nB(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return QNt(e)}function QNt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rB(e){var t=typeof Map=="function"?new Map:void 0;return rB=function(r){if(r===null||!ZNt(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return V8(r,arguments,$_(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),I_(i,r)},rB(e)}function V8(e,t,n){return qwe()?V8=Reflect.construct.bind():V8=function(i,o,a){var s=[null];s.push.apply(s,o);var l=Function.bind.apply(i,s),c=new l;return a&&I_(c,a.prototype),c},V8.apply(null,arguments)}function qwe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ZNt(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function I_(e,t){return I_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},I_(e,t)}function $_(e){return $_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},$_(e)}function foe(e){return t7t(e)||e7t(e)||cK(e)||JNt()}function JNt(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cK(e,t){if(e){if(typeof e=="string")return iB(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return iB(e,t)}}function e7t(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function t7t(e){if(Array.isArray(e))return iB(e)}function iB(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function n7t(e,t){if(e==null)return{};var n=r7t(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function r7t(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function hoe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ja(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hoe(Object(n),!0).forEach(function(r){i7t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hoe(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function i7t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Tc="routes";function a4(e){return e.split("?")[0].split("#")[0]}var uK=function(t){if(!t.startsWith("http"))return!1;try{var n=new URL(t);return!!n}catch{return!1}},o7t=function(t){var n=t.path;if(!n||n==="/")try{return"/".concat(FNt(JSON.stringify(t)))}catch{}return n&&a4(n)},a7t=function(t,n){var r=t.name,i=t.locale;return"locale"in t&&i===!1||!r?!1:t.locale||"".concat(n,".").concat(r)},Gwe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"/";return t.endsWith("/*")?t.replace("/*","/"):(t||n).startsWith("/")||uK(t)?t:"/".concat(n,"/").concat(t).replace(/\/\//g,"/").replace(/\/\//g,"/")},s7t=function(t,n){var r=t.menu,i=r===void 0?{}:r,o=t.indexRoute,a=t.path,s=a===void 0?"":a,l=t.children||[],c=i.name,u=c===void 0?t.name:c,d=i.icon,h=d===void 0?t.icon:d,p=i.hideChildren,m=p===void 0?t.hideChildren:p,v=i.flatMenu,y=v===void 0?t.flatMenu:v,S=o&&Object.keys(o).join(",")!=="redirect"?[ja({path:s,menu:i},o)].concat(l||[]):l,b=ja({},t);if(u&&(b.name=u),h&&(b.icon=h),S&&S.length){if(m)return delete b.children,b;var C=dK(ja(ja({},n),{},{data:S}),t);if(y)return C;delete b[Tc]}return b},ev=function(t){return Array.isArray(t)&&t.length>0};function dK(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{path:"/"},n=e.data,r=e.formatMessage,i=e.parentName,o=e.locale;return!n||!Array.isArray(n)?[]:n.filter(function(a){return a?ev(a.children)||a.path||a.originPath||a.layout?!0:(a.redirect||a.unaccessible,!1):!1}).filter(function(a){var s,l;return!(a==null||(s=a.menu)===null||s===void 0)&&s.name||a!=null&&a.flatMenu||!(a==null||(l=a.menu)===null||l===void 0)&&l.flatMenu?!0:a.menu!==!1}).map(function(a){var s=ja(ja({},a),{},{path:a.path||a.originPath});return!s.children&&s[Tc]&&(s.children=s[Tc],delete s[Tc]),s.unaccessible&&delete s.name,s.path==="*"&&(s.path="."),s.path==="/*"&&(s.path="."),!s.path&&s.originPath&&(s.path=s.originPath),s}).map(function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{path:"/"},s=a.children||a[Tc]||[],l=Gwe(a.path,t?t.path:"/"),c=a.name,u=a7t(a,i||"menu"),d=u!==!1&&o!==!1&&r&&u?r({id:u,defaultMessage:c}):c,h=t.pro_layout_parentKeys,p=h===void 0?[]:h;t.children,t.icon,t.flatMenu,t.indexRoute,t.routes;var m=n7t(t,jNt),v=new Set([].concat(foe(p),foe(a.parentKeys||[])));t.key&&v.add(t.key);var y=ja(ja(ja({},m),{},{menu:void 0},a),{},{path:l,locale:u,key:a.key||o7t(ja(ja({},a),{},{path:l})),pro_layout_parentKeys:Array.from(v).filter(function(b){return b&&b!=="/"})});if(d?y.name=d:delete y.name,y.menu===void 0&&delete y.menu,ev(s)){var S=dK(ja(ja({},e),{},{data:s,parentName:u||""}),y);ev(S)&&(y.children=S)}return s7t(y,e)}).flat(1)}var l7t=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.filter(function(n){return n&&(n.name||ev(n.children))&&!n.hideInMenu&&!n.redirect}).map(function(n){var r=ja({},n),i=r.children||n[Tc]||[];if(delete r[Tc],ev(i)&&!r.hideChildrenInMenu&&i.some(function(a){return a&&!!a.name})){var o=e(i);if(o.length)return ja(ja({},r),{},{children:o})}return ja({},n)}).filter(function(n){return n})},c7t=function(e){GNt(n,e);var t=YNt(n);function n(){return VNt(this,n),t.apply(this,arguments)}return qNt(n,[{key:"get",value:function(i){var o;try{var a=WNt(this.entries()),s;try{for(a.s();!(s=a.n()).done;){var l=BNt(s.value,2),c=l[0],u=l[1],d=a4(c);if(!uK(c)&&sw(d,[]).test(i)){o=u;break}}}catch(h){a.e(h)}finally{a.f()}}catch{o=void 0}return o}}]),n}(rB(Map)),u7t=function(t){var n=new c7t,r=function i(o,a){o.forEach(function(s){var l=s.children||s[Tc]||[];ev(l)&&i(l,s);var c=Gwe(s.path,a?a.path:"/");n.set(a4(c),s)})};return r(t),n},d7t=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.map(function(n){var r=n.children||n[Tc];if(ev(r)){var i=e(r);if(i.length)return ja({},n)}var o=ja({},n);return delete o[Tc],delete o.children,o}).filter(function(n){return n})},f7t=function(t,n,r,i){var o=dK({data:t,formatMessage:r,locale:n}),a=i?d7t(o):l7t(o),s=u7t(o);return{breadcrumb:s,menuData:a}};function poe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Yx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?poe(Object(n),!0).forEach(function(r){h7t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):poe(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function h7t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p7t=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n={};return t.forEach(function(r){var i=Yx({},r);if(!(!i||!i.key)){!i.children&&i[Tc]&&(i.children=i[Tc],delete i[Tc]);var o=i.children||[];n[a4(i.path||i.key||"/")]=Yx({},i),n[i.key||i.path||"/"]=Yx({},i),o&&(n=Yx(Yx({},n),e(o)))}}),n},m7t=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;return t.filter(function(i){if(i==="/"&&n==="/")return!0;if(i!=="/"&&i!=="/*"&&i&&!uK(i)){var o=a4(i);try{if(r&&sw("".concat(o)).test(n)||sw("".concat(o),[]).test(n)||sw("".concat(o,"/(.*)")).test(n))return!0}catch{}}return!1}).sort(function(i,o){return i===n?10:o===n?-10:i.substr(1).split("/").length-o.substr(1).split("/").length})},g7t=function(t,n,r,i){var o=p7t(n),a=Object.keys(o),s=m7t(a,t||"/",i);return!s||s.length<1?[]:s.map(function(l){var c=o[l]||{pro_layout_parentKeys:"",key:""},u=new Map,d=(c.pro_layout_parentKeys||[]).map(function(h){return u.has(h)?null:(u.set(h,!0),o[h])}).filter(function(h){return h});return c.key&&d.push(c),d}).flat(1)},v7t=function(t){var n=f.useContext(Od),r=n.hashId,i=t.style,o=t.prefixCls,a=t.children,s=t.hasPageContainer,l=s===void 0?0:s,c=Re("".concat(o,"-content"),r,ae(ae({},"".concat(o,"-has-header"),t.hasHeader),"".concat(o,"-content-has-page-container"),l>0)),u=t.ErrorBoundary||zvt;return t.ErrorBoundary===!1?U.jsx(Co.Content,{className:c,style:i,children:a}):U.jsx(u,{children:U.jsx(Co.Content,{className:c,style:i,children:a})})},y7t=function(){return U.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 200 200",children:[U.jsxs("defs",{children:[U.jsxs("linearGradient",{x1:"62.1023273%",y1:"0%",x2:"108.19718%",y2:"37.8635764%",id:"linearGradient-1",children:[U.jsx("stop",{stopColor:"#4285EB",offset:"0%"}),U.jsx("stop",{stopColor:"#2EC7FF",offset:"100%"})]}),U.jsxs("linearGradient",{x1:"69.644116%",y1:"0%",x2:"54.0428975%",y2:"108.456714%",id:"linearGradient-2",children:[U.jsx("stop",{stopColor:"#29CDFF",offset:"0%"}),U.jsx("stop",{stopColor:"#148EFF",offset:"37.8600687%"}),U.jsx("stop",{stopColor:"#0A60FF",offset:"100%"})]}),U.jsxs("linearGradient",{x1:"69.6908165%",y1:"-12.9743587%",x2:"16.7228981%",y2:"117.391248%",id:"linearGradient-3",children:[U.jsx("stop",{stopColor:"#FA816E",offset:"0%"}),U.jsx("stop",{stopColor:"#F74A5C",offset:"41.472606%"}),U.jsx("stop",{stopColor:"#F51D2C",offset:"100%"})]}),U.jsxs("linearGradient",{x1:"68.1279872%",y1:"-35.6905737%",x2:"30.4400914%",y2:"114.942679%",id:"linearGradient-4",children:[U.jsx("stop",{stopColor:"#FA8E7D",offset:"0%"}),U.jsx("stop",{stopColor:"#F74A5C",offset:"51.2635191%"}),U.jsx("stop",{stopColor:"#F51D2C",offset:"100%"})]})]}),U.jsx("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd",children:U.jsx("g",{transform:"translate(-20.000000, -20.000000)",children:U.jsx("g",{transform:"translate(20.000000, 20.000000)",children:U.jsxs("g",{children:[U.jsxs("g",{fillRule:"nonzero",children:[U.jsxs("g",{children:[U.jsx("path",{d:"M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z",fill:"url(#linearGradient-1)"}),U.jsx("path",{d:"M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z",fill:"url(#linearGradient-2)"})]}),U.jsx("path",{d:"M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z",fill:"url(#linearGradient-3)"})]}),U.jsx("ellipse",{fill:"url(#linearGradient-4)",cx:"100.519339",cy:"100.436681",rx:"23.6001926",ry:"23.580786"})]})})})})]})},moe=new Mr("antBadgeLoadingCircle",{"0%":{display:"none",opacity:0,overflow:"hidden"},"80%":{overflow:"hidden"},"100%":{display:"unset",opacity:1}}),b7t=function(t){var n,r,i,o,a,s,l,c,u,d,h,p;return ae({},"".concat(t.proComponentsCls,"-layout"),ae(ae(ae({},"".concat(t.antCls,"-layout-sider").concat(t.componentCls),{background:((n=t.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorMenuBackground)||"transparent"}),t.componentCls,ae(ae(ae(ae(ae(ae(ae(ae(ae({position:"relative",boxSizing:"border-box","&-menu":{position:"relative",zIndex:10,minHeight:"100%"}},"& ".concat(t.antCls,"-layout-sider-children"),{position:"relative",display:"flex",flexDirection:"column",height:"100%",paddingInline:(r=t.layout)===null||r===void 0||(r=r.sider)===null||r===void 0?void 0:r.paddingInlineLayoutMenu,paddingBlock:(i=t.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.paddingBlockLayoutMenu,borderInlineEnd:"1px solid ".concat(t.colorSplit),marginInlineEnd:-1}),"".concat(t.antCls,"-menu"),ae(ae({},"".concat(t.antCls,"-menu-item-group-title"),{fontSize:t.fontSizeSM,paddingBottom:4}),"".concat(t.antCls,"-menu-item:not(").concat(t.antCls,"-menu-item-selected):hover"),{color:(o=t.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.colorTextMenuItemHover})),"&-logo",{position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",paddingInline:12,paddingBlock:16,color:(a=t.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.colorTextMenu,cursor:"pointer",borderBlockEnd:"1px solid ".concat((s=t.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorMenuItemDivider),"> a":{display:"flex",alignItems:"center",justifyContent:"center",minHeight:22,fontSize:22,"> img":{display:"inline-block",height:22,verticalAlign:"middle"},"> h1":{display:"inline-block",height:22,marginBlock:0,marginInlineEnd:0,marginInlineStart:6,color:(l=t.layout)===null||l===void 0||(l=l.sider)===null||l===void 0?void 0:l.colorTextMenuTitle,animationName:moe,animationDuration:".4s",animationTimingFunction:"ease",fontWeight:600,fontSize:16,lineHeight:"22px",verticalAlign:"middle"}},"&-collapsed":ae({flexDirection:"column-reverse",margin:0,padding:12},"".concat(t.proComponentsCls,"-layout-apps-icon"),{marginBlockEnd:8,fontSize:16,transition:"font-size 0.2s ease-in-out,color 0.2s ease-in-out"})}),"&-actions",{display:"flex",alignItems:"center",justifyContent:"space-between",marginBlock:4,marginInline:0,color:(c=t.layout)===null||c===void 0||(c=c.sider)===null||c===void 0?void 0:c.colorTextMenu,"&-collapsed":{flexDirection:"column-reverse",paddingBlock:0,paddingInline:8,fontSize:16,transition:"font-size 0.3s ease-in-out"},"&-list":{color:(u=t.layout)===null||u===void 0||(u=u.sider)===null||u===void 0?void 0:u.colorTextMenuSecondary,"&-collapsed":{marginBlockEnd:8,animationName:"none"},"&-item":{paddingInline:6,paddingBlock:6,lineHeight:"16px",fontSize:16,cursor:"pointer",borderRadius:t.borderRadius,"&:hover":{background:t.colorBgTextHover}}},"&-avatar":{fontSize:14,paddingInline:8,paddingBlock:8,display:"flex",alignItems:"center",gap:t.marginXS,borderRadius:t.borderRadius,"& *":{cursor:"pointer"},"&:hover":{background:t.colorBgTextHover}}}),"&-hide-menu-collapsed",{insetInlineStart:"-".concat(t.proLayoutCollapsedWidth-12,"px"),position:"absolute"}),"&-extra",{marginBlockEnd:16,marginBlock:0,marginInline:16,"&-no-logo":{marginBlockStart:16}}),"&-links",{width:"100%",ul:{height:"auto"}}),"&-link-menu",{border:"none",boxShadow:"none",background:"transparent"}),"&-footer",{color:(d=t.layout)===null||d===void 0||(d=d.sider)===null||d===void 0?void 0:d.colorTextMenuSecondary,paddingBlockEnd:16,fontSize:t.fontSize,animationName:moe,animationDuration:".4s",animationTimingFunction:"ease"})),"".concat(t.componentCls).concat(t.componentCls,"-fixed"),{position:"fixed",insetBlockStart:0,insetInlineStart:0,zIndex:"100",height:"100%","&-mix":{height:"calc(100% - ".concat(((h=t.layout)===null||h===void 0||(h=h.header)===null||h===void 0?void 0:h.heightLayoutHeader)||56,"px)"),insetBlockStart:"".concat(((p=t.layout)===null||p===void 0||(p=p.header)===null||p===void 0?void 0:p.heightLayoutHeader)||56,"px")}}))};function S7t(e,t){var n=t.proLayoutCollapsedWidth;return no("ProLayoutSiderMenu",function(r){var i=X(X({},r),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:n});return[b7t(i)]})}var goe=function(t){var n,r=t.isMobile,i=t.siderWidth,o=t.collapsed,a=t.onCollapse,s=t.style,l=t.className,c=t.hide,u=t.prefixCls,d=t.getContainer,h=f.useContext(Od),p=h.token;f.useEffect(function(){r===!0&&(a==null||a(!0))},[r]);var m=Pr(t,["className","style"]),v=ge.useContext(ar.ConfigContext),y=v.direction,S=S7t("".concat(u,"-sider"),{proLayoutCollapsedWidth:64}),b=S.wrapSSR,C=S.hashId,_=Re("".concat(u,"-sider"),l,C);if(c)return null;var T=RP(!o,function(){return a==null?void 0:a(!0)});return b(r?U.jsx(Kbe,X(X({placement:y==="rtl"?"right":"left",className:Re("".concat(u,"-drawer-sider"),l)},T),{},{style:X({padding:0,height:"100vh"},s),onClose:function(){a==null||a(!0)},maskClosable:!0,closable:!1,getContainer:d||!1,width:i,styles:{body:{height:"100vh",padding:0,display:"flex",flexDirection:"row",backgroundColor:(n=p.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorMenuBackground}},children:U.jsx(soe,X(X({},m),{},{isMobile:!0,className:_,collapsed:r?!1:o,splitMenus:!1,originCollapsed:o}))})):U.jsx(soe,X(X({className:_,originCollapsed:o},m),{},{style:s})))},C7t=function(){var t;return typeof process>"u"?fp:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||fp},x7t=function(t){var n,r,i,o,a,s,l,c,u,d,h,p,m,v,y,S,b,C,_,T,x,E,k,M,P,D,R,A,H,F,z,W;return(n=C7t())!==null&&n!==void 0&&n.startsWith("5")?{}:ae(ae(ae({},t.componentCls,ae(ae({width:"100%",height:"100%"},"".concat(t.proComponentsCls,"-base-menu"),(x={color:(r=t.layout)===null||r===void 0||(r=r.sider)===null||r===void 0?void 0:r.colorTextMenu},ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(x,"".concat(t.antCls,"-menu-sub"),{backgroundColor:"transparent!important",color:(i=t.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.colorTextMenu}),"& ".concat(t.antCls,"-layout"),{backgroundColor:"transparent",width:"100%"}),"".concat(t.antCls,"-menu-submenu-expand-icon, ").concat(t.antCls,"-menu-submenu-arrow"),{color:"inherit"}),"&".concat(t.antCls,"-menu"),ae(ae({color:(o=t.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.colorTextMenu},"".concat(t.antCls,"-menu-item"),{"*":{transition:"none !important"}}),"".concat(t.antCls,"-menu-item a"),{color:"inherit"})),"&".concat(t.antCls,"-menu-inline"),ae({},"".concat(t.antCls,"-menu-selected::after,").concat(t.antCls,"-menu-item-selected::after"),{display:"none"})),"".concat(t.antCls,"-menu-sub ").concat(t.antCls,"-menu-inline"),{backgroundColor:"transparent!important"}),"".concat(t.antCls,`-menu-item:active,
|
||
`).concat(t.antCls,"-menu-submenu-title:active"),{backgroundColor:"transparent!important"}),"&".concat(t.antCls,"-menu-light"),ae({},"".concat(t.antCls,`-menu-item:hover,
|
||
`).concat(t.antCls,`-menu-item-active,
|
||
`).concat(t.antCls,`-menu-submenu-active,
|
||
`).concat(t.antCls,"-menu-submenu-title:hover"),ae({color:(a=t.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.colorTextMenuActive,borderRadius:t.borderRadius},"".concat(t.antCls,"-menu-submenu-arrow"),{color:(s=t.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorTextMenuActive}))),"&".concat(t.antCls,"-menu:not(").concat(t.antCls,"-menu-horizontal)"),ae(ae({},"".concat(t.antCls,"-menu-item-selected"),{backgroundColor:(l=t.layout)===null||l===void 0||(l=l.sider)===null||l===void 0?void 0:l.colorBgMenuItemSelected,borderRadius:t.borderRadius}),"".concat(t.antCls,`-menu-item:hover,
|
||
`).concat(t.antCls,`-menu-item-active,
|
||
`).concat(t.antCls,"-menu-submenu-title:hover"),ae({color:(c=t.layout)===null||c===void 0||(c=c.sider)===null||c===void 0?void 0:c.colorTextMenuActive,borderRadius:t.borderRadius,backgroundColor:"".concat((u=t.layout)===null||u===void 0||(u=u.header)===null||u===void 0?void 0:u.colorBgMenuItemHover," !important")},"".concat(t.antCls,"-menu-submenu-arrow"),{color:(d=t.layout)===null||d===void 0||(d=d.sider)===null||d===void 0?void 0:d.colorTextMenuActive}))),"".concat(t.antCls,"-menu-item-selected"),{color:(h=t.layout)===null||h===void 0||(h=h.sider)===null||h===void 0?void 0:h.colorTextMenuSelected}),ae(ae(ae(ae(ae(x,"".concat(t.antCls,"-menu-submenu-selected"),{color:(p=t.layout)===null||p===void 0||(p=p.sider)===null||p===void 0?void 0:p.colorTextMenuSelected}),"&".concat(t.antCls,"-menu:not(").concat(t.antCls,"-menu-inline) ").concat(t.antCls,"-menu-submenu-open"),{color:(m=t.layout)===null||m===void 0||(m=m.sider)===null||m===void 0?void 0:m.colorTextMenuSelected}),"&".concat(t.antCls,"-menu-vertical"),ae({},"".concat(t.antCls,"-menu-submenu-selected"),{borderRadius:t.borderRadius,color:(v=t.layout)===null||v===void 0||(v=v.sider)===null||v===void 0?void 0:v.colorTextMenuSelected})),"".concat(t.antCls,"-menu-submenu:hover > ").concat(t.antCls,"-menu-submenu-title > ").concat(t.antCls,"-menu-submenu-arrow"),{color:(y=t.layout)===null||y===void 0||(y=y.sider)===null||y===void 0?void 0:y.colorTextMenuActive}),"&".concat(t.antCls,"-menu-horizontal"),ae(ae(ae(ae({},"".concat(t.antCls,`-menu-item:hover,
|
||
`).concat(t.antCls,`-menu-submenu:hover,
|
||
`).concat(t.antCls,`-menu-item-active,
|
||
`).concat(t.antCls,"-menu-submenu-active"),{borderRadius:4,transition:"none",color:(S=t.layout)===null||S===void 0||(S=S.header)===null||S===void 0?void 0:S.colorTextMenuActive,backgroundColor:"".concat((b=t.layout)===null||b===void 0||(b=b.header)===null||b===void 0?void 0:b.colorBgMenuItemHover," !important")}),"".concat(t.antCls,`-menu-item-open,
|
||
`).concat(t.antCls,`-menu-submenu-open,
|
||
`).concat(t.antCls,`-menu-item-selected,
|
||
`).concat(t.antCls,"-menu-submenu-selected"),ae({backgroundColor:(C=t.layout)===null||C===void 0||(C=C.header)===null||C===void 0?void 0:C.colorBgMenuItemSelected,borderRadius:t.borderRadius,transition:"none",color:"".concat((_=t.layout)===null||_===void 0||(_=_.header)===null||_===void 0?void 0:_.colorTextMenuSelected," !important")},"".concat(t.antCls,"-menu-submenu-arrow"),{color:"".concat((T=t.layout)===null||T===void 0||(T=T.header)===null||T===void 0?void 0:T.colorTextMenuSelected," !important")})),"> ".concat(t.antCls,"-menu-item, > ").concat(t.antCls,"-menu-submenu"),{paddingInline:16,marginInline:4}),"> ".concat(t.antCls,"-menu-item::after, > ").concat(t.antCls,"-menu-submenu::after"),{display:"none"})))),"".concat(t.proComponentsCls,"-top-nav-header-base-menu"),ae(ae({},"&".concat(t.antCls,"-menu"),ae({color:(E=t.layout)===null||E===void 0||(E=E.header)===null||E===void 0?void 0:E.colorTextMenu},"".concat(t.antCls,"-menu-item a"),{color:"inherit"})),"&".concat(t.antCls,"-menu-light"),ae(ae({},"".concat(t.antCls,`-menu-item:hover,
|
||
`).concat(t.antCls,`-menu-item-active,
|
||
`).concat(t.antCls,`-menu-submenu-active,
|
||
`).concat(t.antCls,"-menu-submenu-title:hover"),ae({color:(k=t.layout)===null||k===void 0||(k=k.header)===null||k===void 0?void 0:k.colorTextMenuActive,borderRadius:t.borderRadius,transition:"none",backgroundColor:(M=t.layout)===null||M===void 0||(M=M.header)===null||M===void 0?void 0:M.colorBgMenuItemSelected},"".concat(t.antCls,"-menu-submenu-arrow"),{color:(P=t.layout)===null||P===void 0||(P=P.header)===null||P===void 0?void 0:P.colorTextMenuActive})),"".concat(t.antCls,"-menu-item-selected"),{color:(D=t.layout)===null||D===void 0||(D=D.header)===null||D===void 0?void 0:D.colorTextMenuSelected,borderRadius:t.borderRadius,backgroundColor:(R=t.layout)===null||R===void 0||(R=R.header)===null||R===void 0?void 0:R.colorBgMenuItemSelected})))),"".concat(t.antCls,"-menu-sub").concat(t.antCls,"-menu-inline"),{backgroundColor:"transparent!important"}),"".concat(t.antCls,"-menu-submenu-popup"),ae(ae(ae(ae({backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"},"".concat(t.antCls,"-menu"),ae({background:"transparent !important",backgroundColor:"transparent !important"},"".concat(t.antCls,`-menu-item:active,
|
||
`).concat(t.antCls,"-menu-submenu-title:active"),{backgroundColor:"transparent!important"})),"".concat(t.antCls,"-menu-item-selected"),{color:(A=t.layout)===null||A===void 0||(A=A.sider)===null||A===void 0?void 0:A.colorTextMenuSelected}),"".concat(t.antCls,"-menu-submenu-selected"),{color:(H=t.layout)===null||H===void 0||(H=H.sider)===null||H===void 0?void 0:H.colorTextMenuSelected}),"".concat(t.antCls,"-menu:not(").concat(t.antCls,"-menu-horizontal)"),ae(ae({},"".concat(t.antCls,"-menu-item-selected"),{backgroundColor:"rgba(0, 0, 0, 0.04)",borderRadius:t.borderRadius,color:(F=t.layout)===null||F===void 0||(F=F.sider)===null||F===void 0?void 0:F.colorTextMenuSelected}),"".concat(t.antCls,`-menu-item:hover,
|
||
`).concat(t.antCls,`-menu-item-active,
|
||
`).concat(t.antCls,"-menu-submenu-title:hover"),ae({color:(z=t.layout)===null||z===void 0||(z=z.sider)===null||z===void 0?void 0:z.colorTextMenuActive,borderRadius:t.borderRadius},"".concat(t.antCls,"-menu-submenu-arrow"),{color:(W=t.layout)===null||W===void 0||(W=W.sider)===null||W===void 0?void 0:W.colorTextMenuActive}))))},w7t=function(t){var n,r,i,o;return ae(ae({},"".concat(t.antCls,"-layout"),{backgroundColor:"transparent !important"}),t.componentCls,ae(ae(ae(ae({},"& ".concat(t.antCls,"-layout"),{display:"flex",backgroundColor:"transparent",width:"100%"}),"".concat(t.componentCls,"-content"),{display:"flex",flexDirection:"column",width:"100%",backgroundColor:((n=t.layout)===null||n===void 0||(n=n.pageContainer)===null||n===void 0?void 0:n.colorBgPageContainer)||"transparent",position:"relative",paddingBlock:(r=t.layout)===null||r===void 0||(r=r.pageContainer)===null||r===void 0?void 0:r.paddingBlockPageContainerContent,paddingInline:(i=t.layout)===null||i===void 0||(i=i.pageContainer)===null||i===void 0?void 0:i.paddingInlinePageContainerContent,"&-has-page-container":{padding:0}}),"".concat(t.componentCls,"-container"),{width:"100%",display:"flex",flexDirection:"column",minWidth:0,minHeight:0,backgroundColor:"transparent"}),"".concat(t.componentCls,"-bg-list"),{pointerEvents:"none",position:"fixed",overflow:"hidden",insetBlockStart:0,insetInlineStart:0,zIndex:0,height:"100%",width:"100%",background:(o=t.layout)===null||o===void 0?void 0:o.bgLayout}))};function _7t(e){return no("ProLayout",function(t){var n=X(X({},t),{},{componentCls:".".concat(e)});return[w7t(n),x7t(n)]})}function E7t(e){if(!e||e==="/")return["/"];var t=e.split("/").filter(function(n){return n});return t.map(function(n,r){return"/".concat(t.slice(0,r+1).join("/"))})}var T7t=function(){var t;return typeof process>"u"?fp:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||fp},k7t=function(t,n,r){var i=t,o=i.breadcrumbName,a=i.title,s=i.path,l=r.findIndex(function(c){return c.linkPath===t.path})===r.length-1;return l?U.jsx("span",{children:a||o}):U.jsx("span",{onClick:s?function(){return location.href=s}:void 0,children:a||o})},O7t=function(t,n){var r=n.formatMessage,i=n.menu;return t.locale&&r&&(i==null?void 0:i.locale)!==!1?r({id:t.locale,defaultMessage:t.name}):t.name},P7t=function(t,n){var r=t.get(n);if(!r){var i=Array.from(t.keys())||[],o=i.find(function(a){try{return a!=null&&a.startsWith("http")?!1:Jj(a.replace("?",""))(n)}catch(s){return console.log("path",a,s),!1}});o&&(r=t.get(o))}return r||{path:""}},M7t=function(t){var n=t.location,r=t.breadcrumbMap;return{location:n,breadcrumbMap:r}},I7t=function(t,n,r){var i=E7t(t==null?void 0:t.pathname),o=i.map(function(a){var s=P7t(n,a),l=O7t(s,r),c=s.hideInBreadcrumb;return l&&!c?{linkPath:a,breadcrumbName:l,title:l,component:s.component}:{linkPath:"",breadcrumbName:"",title:""}}).filter(function(a){return a&&a.linkPath});return o},$7t=function(t){var n=M7t(t),r=n.location,i=n.breadcrumbMap;return r&&r.pathname&&i?I7t(r,i,t):[]},R7t=function(t,n){var r=t.breadcrumbRender,i=t.itemRender,o=n.breadcrumbProps||{},a=o.minLength,s=a===void 0?2:a,l=$7t(t),c=function(h){for(var p=i||k7t,m=arguments.length,v=new Array(m>1?m-1:0),y=1;y<m;y++)v[y-1]=arguments[y];return p==null?void 0:p.apply(void 0,[X(X({},h),{},{path:h.linkPath||h.path})].concat(v))},u=l;return r&&(u=r(u||[])||void 0),(u&&u.length<s||r===!1)&&(u=void 0),UE(T7t(),"5.3.0")>-1?{items:u,itemRender:c}:{routes:u,itemRender:c}};function A7t(e){return pt(e).reduce(function(t,n){var r=Le(n,2),i=r[0],o=r[1];return t[i]=o,t},{})}var N7t=function e(t,n,r,i){var o=f7t(t,(n==null?void 0:n.locale)||!1,r,!0),a=o.menuData,s=o.breadcrumb;return i?e(i(a),n,r,void 0):{breadcrumb:A7t(s),breadcrumbMap:s,menuData:a}},D7t=function(t){var n=f.useState({}),r=Le(n,2),i=r[0],o=r[1];return f.useEffect(function(){o(pu({layout:ln(t.layout)!=="object"?t.layout:void 0,navTheme:t.navTheme,menuRender:t.menuRender,footerRender:t.footerRender,menuHeaderRender:t.menuHeaderRender,headerRender:t.headerRender,fixSiderbar:t.fixSiderbar}))},[t.layout,t.navTheme,t.menuRender,t.footerRender,t.menuHeaderRender,t.headerRender,t.fixSiderbar]),i},L7t=["id","defaultMessage"],F7t=["fixSiderbar","navTheme","layout"],voe=0,j7t=function(t,n){var r;return t.headerRender===!1||t.pure?null:U.jsx(qAt,X(X({matchMenuKeys:n},t),{},{stylish:(r=t.stylish)===null||r===void 0?void 0:r.header}))},B7t=function(t){return t.footerRender===!1||t.pure?null:t.footerRender?t.footerRender(X({},t),U.jsx(dAt,{})):null},H7t=function(t,n){var r,i=t.layout,o=t.isMobile,a=t.selectedKeys,s=t.openKeys,l=t.splitMenus,c=t.suppressSiderWhenMenuEmpty,u=t.menuRender;if(t.menuRender===!1||t.pure)return null;var d=t.menuData;if(l&&(s!==!1||i==="mix")&&!o){var h=a||n,p=Le(h,1),m=p[0];if(m){var v;d=((v=t.menuData)===null||v===void 0||(v=v.find(function(C){return C.key===m}))===null||v===void 0?void 0:v.children)||[]}else d=[]}var y=iM(d||[]);if(y&&(y==null?void 0:y.length)<1&&(l||c))return null;if(i==="top"&&!o){var S;return U.jsx(goe,X(X({matchMenuKeys:n},t),{},{hide:!0,stylish:(S=t.stylish)===null||S===void 0?void 0:S.sider}))}var b=U.jsx(goe,X(X({matchMenuKeys:n},t),{},{menuData:y,stylish:(r=t.stylish)===null||r===void 0?void 0:r.sider}));return u?u(t,b):b},z7t=function(t,n){var r=n.pageTitleRender,i=uoe(t);if(r===!1)return{title:n.title||"",id:"",pageName:""};if(r){var o=r(t,i.title,i);if(typeof o=="string")return uoe(X(X({},i),{},{title:o}));fi(typeof o=="string","pro-layout: renderPageTitle return value should be a string")}return i},U7t=function(t,n,r){return t?n?64:r:0},W7t=function(t){var n,r,i,o,a,s,l,c,u,d,h,p,m,v,y=t||{},S=y.children,b=y.onCollapse,C=y.location,_=C===void 0?{pathname:"/"}:C,T=y.contentStyle,x=y.route,E=y.defaultCollapsed,k=y.style,M=y.siderWidth,P=y.menu,D=y.siderMenuType,R=y.isChildrenLayout,A=y.menuDataRender,H=y.actionRef,F=y.bgLayoutImgList,z=y.formatMessage,W=y.loading,q=f.useMemo(function(){return M||(t.layout==="mix"?215:256)},[t.layout,M]),Z=f.useContext(ar.ConfigContext),N=(n=t.prefixCls)!==null&&n!==void 0?n:Z.getPrefixCls("pro"),B=er(!1,{value:P==null?void 0:P.loading,onChange:P==null?void 0:P.onLoadingChange}),V=Le(B,2),G=V[0],ie=V[1],ce=f.useState(function(){return voe+=1,"pro-layout-".concat(voe)}),fe=Le(ce,1),ee=fe[0],ne=f.useCallback(function(_t){var jt=_t.id,nn=_t.defaultMessage,Ht=tn(_t,L7t);if(z)return z(X({id:jt,defaultMessage:nn},Ht));var Tt=oNt();return Tt[jt]?Tt[jt]:nn},[z]),ue=hV([ee,P==null?void 0:P.params],function(){var _t=Zo(Hr().mark(function jt(nn){var Ht,Tt,gt,Ve;return Hr().wrap(function(mt){for(;;)switch(mt.prev=mt.next){case 0:return Tt=Le(nn,2),gt=Tt[1],ie(!0),mt.next=4,P==null||(Ht=P.request)===null||Ht===void 0?void 0:Ht.call(P,gt||{},(x==null?void 0:x.children)||(x==null?void 0:x.routes)||[]);case 4:return Ve=mt.sent,ie(!1),mt.abrupt("return",Ve);case 7:case"end":return mt.stop()}},jt)}));return function(jt){return _t.apply(this,arguments)}}(),{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),ye=ue.data,me=ue.mutate,pe=ue.isLoading;f.useEffect(function(){ie(pe)},[pe]);var he=fV(),_e=he.cache;f.useEffect(function(){return function(){_e instanceof Map&&_e.delete(ee)}},[]);var le=f.useMemo(function(){return N7t(ye||(x==null?void 0:x.children)||(x==null?void 0:x.routes)||[],P,ne,A)},[ne,P,A,ye,x==null?void 0:x.children,x==null?void 0:x.routes]),xe=le||{},we=xe.breadcrumb,De=xe.breadcrumbMap,Fe=xe.menuData,Ce=Fe===void 0?[]:Fe;H&&P!==null&&P!==void 0&&P.request&&(H.current={reload:function(){me()}});var Te=f.useMemo(function(){return g7t(_.pathname||"/",Ce||[])},[_.pathname,Ce]),ke=f.useMemo(function(){return Array.from(new Set(Te.map(function(_t){return _t.key||_t.path||""})))},[Te]),Pe=Te[Te.length-1]||{},Ne=D7t(Pe),We=X(X({},t),Ne),Q=We.fixSiderbar;We.navTheme;var K=We.layout,J=tn(We,F7t),be=aSt(),Oe=f.useMemo(function(){return(be==="sm"||be==="xs")&&!t.disableMobile},[be,t.disableMobile]),Se=K!=="top"&&!Oe,Ke=er(function(){return E!==void 0?E:!!(Oe||be==="md")},{value:t.collapsed,onChange:b}),tt=Le(Ke,2),se=tt[0],ze=tt[1],Ye=Pr(X(X(X({prefixCls:N},t),{},{siderWidth:q},Ne),{},{formatMessage:ne,breadcrumb:we,menu:X(X({},P),{},{type:D||(P==null?void 0:P.type),loading:G}),layout:K}),["className","style","breadcrumbRender"]),Ue=z7t(X(X({pathname:_.pathname},Ye),{},{breadcrumbMap:De}),t),Je=R7t(X(X({},Ye),{},{breadcrumbRender:t.breadcrumbRender,breadcrumbMap:De}),t),Ze=H7t(X(X({},Ye),{},{menuData:Ce,onCollapse:ze,isMobile:Oe,collapsed:se}),ke),rt=j7t(X(X({},Ye),{},{children:null,hasSiderMenu:!!Ze,menuData:Ce,isMobile:Oe,collapsed:se,onCollapse:ze}),ke),qt=B7t(X({isMobile:Oe,collapsed:se},Ye)),St=f.useContext(Xie),Ot=St.isChildrenLayout,Bt=R!==void 0?R:Ot,Dt="".concat(N,"-layout"),an=_7t(Dt),Vt=an.wrapSSR,Kt=an.hashId,Qt=Re(t.className,Kt,"ant-design-pro",Dt,ae(ae(ae(ae(ae({},"screen-".concat(be),be),"".concat(Dt,"-top-menu"),K==="top"),"".concat(Dt,"-is-children"),Bt),"".concat(Dt,"-fix-siderbar"),Q),"".concat(Dt,"-").concat(K),K)),et=U7t(!!Se,se,q),ot={position:"relative"};(Bt||T&&T.minHeight)&&(ot.minHeight=0),f.useEffect(function(){var _t;(_t=t.onPageChange)===null||_t===void 0||_t.call(t,t.location)},[_.pathname,(r=_.pathname)===null||r===void 0?void 0:r.search]);var Qe=f.useState(!1),ut=Le(Qe,2),Nt=ut[0],Lt=ut[1],Zt=f.useState(0),Wt=Le(Zt,2),At=Wt[0],$t=Wt[1];h0t(Ue,t.title||!1);var Gt=f.useContext(Od),Ft=Gt.token,cn=f.useMemo(function(){return F&&F.length>0?F==null?void 0:F.map(function(_t,jt){return U.jsx("img",{src:_t.src,style:X({position:"absolute"},_t)},jt)}):null},[F]);return Vt(U.jsx(Xie.Provider,{value:X(X({},Ye),{},{breadcrumb:Je,menuData:Ce,isMobile:Oe,collapsed:se,hasPageContainer:At,setHasPageContainer:$t,isChildrenLayout:!0,title:Ue.pageName,hasSiderMenu:!!Ze,hasHeader:!!rt,siderWidth:et,hasFooter:!!qt,hasFooterToolbar:Nt,setHasFooterToolbar:Lt,pageTitleInfo:Ue,matchMenus:Te,matchMenuKeys:ke,currentMenu:Pe}),children:t.pure?U.jsx(U.Fragment,{children:S}):U.jsxs("div",{className:Qt,children:[cn||(i=Ft.layout)!==null&&i!==void 0&&i.bgLayout?U.jsx("div",{className:Re("".concat(Dt,"-bg-list"),Kt),children:cn}):null,U.jsxs(Co,{style:X({minHeight:"100%",flexDirection:Ze?"row":void 0},k),children:[U.jsx(ar,{theme:{hashed:pb(),token:{controlHeightLG:((o=Ft.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.menuHeight)||(Ft==null?void 0:Ft.controlHeightLG)},components:{Menu:Ixe({colorItemBg:((a=Ft.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.colorMenuBackground)||"transparent",colorSubItemBg:((s=Ft.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorMenuBackground)||"transparent",radiusItem:Ft.borderRadius,colorItemBgSelected:((l=Ft.layout)===null||l===void 0||(l=l.sider)===null||l===void 0?void 0:l.colorBgMenuItemSelected)||(Ft==null?void 0:Ft.colorBgTextHover),colorItemBgHover:((c=Ft.layout)===null||c===void 0||(c=c.sider)===null||c===void 0?void 0:c.colorBgMenuItemHover)||(Ft==null?void 0:Ft.colorBgTextHover),colorItemBgActive:((u=Ft.layout)===null||u===void 0||(u=u.sider)===null||u===void 0?void 0:u.colorBgMenuItemActive)||(Ft==null?void 0:Ft.colorBgTextActive),colorItemBgSelectedHorizontal:((d=Ft.layout)===null||d===void 0||(d=d.sider)===null||d===void 0?void 0:d.colorBgMenuItemSelected)||(Ft==null?void 0:Ft.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((h=Ft.layout)===null||h===void 0||(h=h.sider)===null||h===void 0?void 0:h.colorTextMenu)||(Ft==null?void 0:Ft.colorTextSecondary),colorItemTextHover:((p=Ft.layout)===null||p===void 0||(p=p.sider)===null||p===void 0?void 0:p.colorTextMenuItemHover)||"rgba(0, 0, 0, 0.85)",colorItemTextSelected:((m=Ft.layout)===null||m===void 0||(m=m.sider)===null||m===void 0?void 0:m.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:Ft==null?void 0:Ft.colorBgElevated,subMenuItemBg:Ft==null?void 0:Ft.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:Ft==null?void 0:Ft.colorBgElevated})}},children:Ze}),U.jsxs("div",{style:ot,className:"".concat(Dt,"-container ").concat(Kt).trim(),children:[rt,U.jsx(v7t,X(X({hasPageContainer:At,isChildrenLayout:Bt},J),{},{hasHeader:!!rt,prefixCls:Dt,style:T,children:W?U.jsx(aAt,{}):S})),qt,Nt&&U.jsx("div",{className:"".concat(Dt,"-has-footer"),style:{height:64,marginBlockStart:(v=Ft.layout)===null||v===void 0||(v=v.pageContainer)===null||v===void 0?void 0:v.paddingBlockPageContainerContent}})]})]})]})}))},Ywe=function(t){var n=t.colorPrimary,r=t.navTheme!==void 0?{dark:t.navTheme==="realDark"}:{};return U.jsx(ar,{theme:n?{token:{colorPrimary:n}}:void 0,children:U.jsx($P,X(X({},r),{},{token:t.token,prefixCls:t.prefixCls,children:U.jsx(W7t,X(X({logo:U.jsx(y7t,{})},Dwe),{},{location:mV()?window.location:void 0},t))}))})};async function V7t(){return Uo("/kaptcha/api/v1/get",{method:"GET",params:{client:bo}})}async function K7t(e,t){return Uo("/kaptcha/api/v1/check",{method:"POST",data:{captchaUid:e,captchaCode:t,client:bo}})}var oB=function(e,t){return oB=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])},oB(e,t)};function Fu(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");oB(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var hr=function(){return hr=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},hr.apply(this,arguments)};function dS(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function ul(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function sl(e,t){var n=t&&t.cache?t.cache:Z7t,r=t&&t.serializer?t.serializer:Q7t,i=t&&t.strategy?t.strategy:G7t;return i(e,{cache:n,serializer:r})}function q7t(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Xwe(e,t,n,r){var i=q7t(r)?r:n(r),o=t.get(i);return typeof o>"u"&&(o=e.call(this,r),t.set(i,o)),o}function Qwe(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return typeof o>"u"&&(o=e.apply(this,r),t.set(i,o)),o}function fK(e,t,n,r,i){return n.bind(t,e,r,i)}function G7t(e,t){var n=e.length===1?Xwe:Qwe;return fK(e,this,n,t.cache.create(),t.serializer)}function Y7t(e,t){return fK(e,this,Qwe,t.cache.create(),t.serializer)}function X7t(e,t){return fK(e,this,Xwe,t.cache.create(),t.serializer)}var Q7t=function(){return JSON.stringify(arguments)};function hK(){this.cache=Object.create(null)}hK.prototype.get=function(e){return this.cache[e]};hK.prototype.set=function(e,t){this.cache[e]=t};var Z7t={create:function(){return new hK}},ll={variadic:Y7t,monadic:X7t};function Zwe(e,t,n){if(n===void 0&&(n=Error),!e)throw new n(t)}sl(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,ul([void 0],t,!1)))},{strategy:ll.variadic});sl(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,ul([void 0],t,!1)))},{strategy:ll.variadic});sl(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,ul([void 0],t,!1)))},{strategy:ll.variadic});sl(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.Locale).bind.apply(e,ul([void 0],t,!1)))},{strategy:ll.variadic});sl(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.ListFormat).bind.apply(e,ul([void 0],t,!1)))},{strategy:ll.variadic});var gi;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(gi||(gi={}));var go;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(go||(go={}));var fS;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(fS||(fS={}));function yoe(e){return e.type===go.literal}function J7t(e){return e.type===go.argument}function Jwe(e){return e.type===go.number}function e_e(e){return e.type===go.date}function t_e(e){return e.type===go.time}function n_e(e){return e.type===go.select}function r_e(e){return e.type===go.plural}function eDt(e){return e.type===go.pound}function i_e(e){return e.type===go.tag}function o_e(e){return!!(e&&typeof e=="object"&&e.type===fS.number)}function aB(e){return!!(e&&typeof e=="object"&&e.type===fS.dateTime)}var a_e=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,tDt=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function nDt(e){var t={};return e.replace(tDt,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var rDt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function iDt(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(rDt).filter(function(h){return h.length>0}),n=[],r=0,i=t;r<i.length;r++){var o=i[r],a=o.split("/");if(a.length===0)throw new Error("Invalid number skeleton");for(var s=a[0],l=a.slice(1),c=0,u=l;c<u.length;c++){var d=u[c];if(d.length===0)throw new Error("Invalid number skeleton")}n.push({stem:s,options:l})}return n}function oDt(e){return e.replace(/^(.*?)-/,"")}var boe=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,s_e=/^(@+)?(\+|#+)?[rs]?$/g,aDt=/(\*)(0+)|(#+)(0+)|(0+)/g,l_e=/^(0+)$/;function Soe(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(s_e,function(n,r,i){return typeof i!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):i==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),t}function c_e(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function sDt(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!l_e.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Coe(e){var t={},n=c_e(e);return n||t}function lDt(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=oDt(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=hr(hr(hr({},t),{notation:"scientific"}),i.options.reduce(function(l,c){return hr(hr({},l),Coe(c))},{}));continue;case"engineering":t=hr(hr(hr({},t),{notation:"engineering"}),i.options.reduce(function(l,c){return hr(hr({},l),Coe(c))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(aDt,function(l,c,u,d,h,p){if(c)t.minimumIntegerDigits=u.length;else{if(d&&h)throw new Error("We currently do not support maximum integer digits");if(p)throw new Error("We currently do not support exact integer digits")}return""});continue}if(l_e.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(boe.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(boe,function(l,c,u,d,h,p){return u==="*"?t.minimumFractionDigits=c.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:h&&p?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+p.length):(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length),""});var o=i.options[0];o==="w"?t=hr(hr({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=hr(hr({},t),Soe(o)));continue}if(s_e.test(i.stem)){t=hr(hr({},t),Soe(i.stem));continue}var a=c_e(i.stem);a&&(t=hr(hr({},t),a));var s=sDt(i.stem);s&&(t=hr(hr({},t),s))}return t}var m5={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function cDt(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if(i==="j"){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var a=1+(o&1),s=o<2?1:3+(o>>1),l="a",c=uDt(t);for((c=="H"||c=="k")&&(s=0);s-- >0;)n+=l;for(;a-- >0;)n=c+n}else i==="J"?n+="H":n+=i}return n}function uDt(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=m5[r||""]||m5[n||""]||m5["".concat(n,"-001")]||m5["001"];return i[0]}var AA,dDt=new RegExp("^".concat(a_e.source,"*")),fDt=new RegExp("".concat(a_e.source,"*$"));function yi(e,t){return{start:e,end:t}}var hDt=!!String.prototype.startsWith&&"_a".startsWith("a",1),pDt=!!String.fromCodePoint,mDt=!!Object.fromEntries,gDt=!!String.prototype.codePointAt,vDt=!!String.prototype.trimStart,yDt=!!String.prototype.trimEnd,bDt=!!Number.isSafeInteger,SDt=bDt?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},sB=!0;try{var CDt=d_e("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");sB=((AA=CDt.exec("a"))===null||AA===void 0?void 0:AA[0])==="a"}catch{sB=!1}var xoe=hDt?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},lB=pDt?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=t.length,o=0,a;i>o;){if(a=t[o++],a>1114111)throw RangeError(a+" is not a valid code point");r+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320)}return r},woe=mDt?Object.fromEntries:function(t){for(var n={},r=0,i=t;r<i.length;r++){var o=i[r],a=o[0],s=o[1];n[a]=s}return n},u_e=gDt?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var i=t.charCodeAt(n),o;return i<55296||i>56319||n+1===r||(o=t.charCodeAt(n+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},xDt=vDt?function(t){return t.trimStart()}:function(t){return t.replace(dDt,"")},wDt=yDt?function(t){return t.trimEnd()}:function(t){return t.replace(fDt,"")};function d_e(e,t){return new RegExp(e,t)}var cB;if(sB){var _oe=d_e("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");cB=function(t,n){var r;_oe.lastIndex=n;var i=_oe.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else cB=function(t,n){for(var r=[];;){var i=u_e(t,n);if(i===void 0||f_e(i)||kDt(i))break;r.push(i),n+=i>=65536?2:1}return lB.apply(void 0,r)};var _Dt=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var a=this.parseArgument(t,r);if(a.err)return a;i.push(a.val)}else{if(o===125&&t>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var s=this.clonePosition();this.bump(),i.push({type:go.pound,location:yi(s,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(gi.UNMATCHED_CLOSING_TAG,yi(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&uB(this.peek()||0)){var a=this.parseTag(t,n);if(a.err)return a;i.push(a.val)}else{var a=this.parseLiteral(t,n);if(a.err)return a;i.push(a.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:go.literal,value:"<".concat(i,"/>"),location:yi(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,n,!0);if(o.err)return o;var a=o.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!uB(this.char()))return this.error(gi.INVALID_TAG,yi(s,this.clonePosition()));var l=this.clonePosition(),c=this.parseTagName();return i!==c?this.error(gi.UNMATCHED_CLOSING_TAG,yi(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:go.tag,value:i,children:a,location:yi(r,this.clonePosition())},err:null}:this.error(gi.INVALID_TAG,yi(s,this.clonePosition())))}else return this.error(gi.UNCLOSED_TAG,yi(r,this.clonePosition()))}else return this.error(gi.INVALID_TAG,yi(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&TDt(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var o=this.tryParseQuote(n);if(o){i+=o;continue}var a=this.tryParseUnquoted(t,n);if(a){i+=a;continue}var s=this.tryParseLeftAngleBracket();if(s){i+=s;continue}break}var l=yi(r,this.clonePosition());return{val:{type:go.literal,value:i,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!EDt(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return lB.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),lB(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(gi.EXPECT_ARGUMENT_CLOSING_BRACE,yi(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(gi.EMPTY_ARGUMENT,yi(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(gi.MALFORMED_ARGUMENT,yi(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(gi.EXPECT_ARGUMENT_CLOSING_BRACE,yi(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:go.argument,value:i,location:yi(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(gi.EXPECT_ARGUMENT_CLOSING_BRACE,yi(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(gi.MALFORMED_ARGUMENT,yi(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=cB(this.message,n),i=n+r.length;this.bumpTo(i);var o=this.clonePosition(),a=yi(t,o);return{value:r,location:a}},e.prototype.parseArgumentOptions=function(t,n,r,i){var o,a=this.clonePosition(),s=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(s){case"":return this.error(gi.EXPECT_ARGUMENT_TYPE,yi(a,l));case"number":case"date":case"time":{this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var h=wDt(d.val);if(h.length===0)return this.error(gi.EXPECT_ARGUMENT_STYLE,yi(this.clonePosition(),this.clonePosition()));var p=yi(u,this.clonePosition());c={style:h,styleLocation:p}}var m=this.tryParseArgumentClose(i);if(m.err)return m;var v=yi(i,this.clonePosition());if(c&&xoe(c==null?void 0:c.style,"::",0)){var y=xDt(c.style.slice(2));if(s==="number"){var d=this.parseNumberSkeletonFromString(y,c.styleLocation);return d.err?d:{val:{type:go.number,value:r,location:v,style:d.val},err:null}}else{if(y.length===0)return this.error(gi.EXPECT_DATE_TIME_SKELETON,v);var S=y;this.locale&&(S=cDt(y,this.locale));var h={type:fS.dateTime,pattern:S,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?nDt(S):{}},b=s==="date"?go.date:go.time;return{val:{type:b,value:r,location:v,style:h},err:null}}}return{val:{type:s==="number"?go.number:s==="date"?go.date:go.time,value:r,location:v,style:(o=c==null?void 0:c.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var C=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(gi.EXPECT_SELECT_ARGUMENT_OPTIONS,yi(C,hr({},C)));this.bumpSpace();var _=this.parseIdentifierIfPossible(),T=0;if(s!=="select"&&_.value==="offset"){if(!this.bumpIf(":"))return this.error(gi.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,yi(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(gi.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,gi.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),_=this.parseIdentifierIfPossible(),T=d.val}var x=this.tryParsePluralOrSelectOptions(t,s,n,_);if(x.err)return x;var m=this.tryParseArgumentClose(i);if(m.err)return m;var E=yi(i,this.clonePosition());return s==="select"?{val:{type:go.select,value:r,options:woe(x.val),location:E},err:null}:{val:{type:go.plural,value:r,options:woe(x.val),offset:T,pluralType:s==="plural"?"cardinal":"ordinal",location:E},err:null}}default:return this.error(gi.INVALID_ARGUMENT_TYPE,yi(a,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(gi.EXPECT_ARGUMENT_CLOSING_BRACE,yi(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(gi.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,yi(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=iDt(t)}catch{return this.error(gi.INVALID_NUMBER_SKELETON,n)}return{val:{type:fS.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?lDt(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var o,a=!1,s=[],l=new Set,c=i.value,u=i.location;;){if(c.length===0){var d=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(gi.EXPECT_PLURAL_ARGUMENT_SELECTOR,gi.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;u=yi(d,this.clonePosition()),c=this.message.slice(d.offset,this.offset())}else break}if(l.has(c))return this.error(n==="select"?gi.DUPLICATE_SELECT_ARGUMENT_SELECTOR:gi.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);c==="other"&&(a=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?gi.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:gi.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,yi(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(t+1,n,r);if(m.err)return m;var v=this.tryParseArgumentClose(p);if(v.err)return v;s.push([c,{value:m.val,location:yi(p,this.clonePosition())}]),l.add(c),this.bumpSpace(),o=this.parseIdentifierIfPossible(),c=o.value,u=o.location}return s.length===0?this.error(n==="select"?gi.EXPECT_SELECT_ARGUMENT_SELECTOR:gi.EXPECT_PLURAL_ARGUMENT_SELECTOR,yi(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(gi.MISSING_OTHER_CLAUSE,yi(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,a=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)o=!0,a=a*10+(s-48),this.bump();else break}var l=yi(i,this.clonePosition());return o?(a*=r,SDt(a)?{val:a,err:null}:this.error(n,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=u_e(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(xoe(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&f_e(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e}();function uB(e){return e>=97&&e<=122||e>=65&&e<=90}function EDt(e){return uB(e)||e===47}function TDt(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function f_e(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function kDt(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function dB(e){e.forEach(function(t){if(delete t.location,n_e(t)||r_e(t))for(var n in t.options)delete t.options[n].location,dB(t.options[n].value);else Jwe(t)&&o_e(t.style)||(e_e(t)||t_e(t))&&aB(t.style)?delete t.style.location:i_e(t)&&dB(t.children)})}function ODt(e,t){t===void 0&&(t={}),t=hr({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new _Dt(e,t).parse();if(n.err){var r=SyntaxError(gi[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||dB(n.val),n.val}var Gf;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Gf||(Gf={}));var wg=function(e){Fu(t,e);function t(n,r,i){var o=e.call(this,n)||this;return o.code=r,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Eoe=function(e){Fu(t,e);function t(n,r,i,o){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Gf.INVALID_VALUE,o)||this}return t}(wg),PDt=function(e){Fu(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),Gf.INVALID_VALUE,i)||this}return t}(wg),MDt=function(e){Fu(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),Gf.MISSING_VALUE,r)||this}return t}(wg),rl;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(rl||(rl={}));function IDt(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==rl.literal||n.type!==rl.literal?t.push(n):r.value+=n.value,t},[])}function h_e(e){return typeof e=="function"}function K8(e,t,n,r,i,o,a){if(e.length===1&&yoe(e[0]))return[{type:rl.literal,value:e[0].value}];for(var s=[],l=0,c=e;l<c.length;l++){var u=c[l];if(yoe(u)){s.push({type:rl.literal,value:u.value});continue}if(eDt(u)){typeof o=="number"&&s.push({type:rl.literal,value:n.getNumberFormat(t).format(o)});continue}var d=u.value;if(!(i&&d in i))throw new MDt(d,a);var h=i[d];if(J7t(u)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),s.push({type:typeof h=="string"?rl.literal:rl.object,value:h});continue}if(e_e(u)){var p=typeof u.style=="string"?r.date[u.style]:aB(u.style)?u.style.parsedOptions:void 0;s.push({type:rl.literal,value:n.getDateTimeFormat(t,p).format(h)});continue}if(t_e(u)){var p=typeof u.style=="string"?r.time[u.style]:aB(u.style)?u.style.parsedOptions:r.time.medium;s.push({type:rl.literal,value:n.getDateTimeFormat(t,p).format(h)});continue}if(Jwe(u)){var p=typeof u.style=="string"?r.number[u.style]:o_e(u.style)?u.style.parsedOptions:void 0;p&&p.scale&&(h=h*(p.scale||1)),s.push({type:rl.literal,value:n.getNumberFormat(t,p).format(h)});continue}if(i_e(u)){var m=u.children,v=u.value,y=i[v];if(!h_e(y))throw new PDt(v,"function",a);var S=K8(m,t,n,r,i,o),b=y(S.map(function(T){return T.value}));Array.isArray(b)||(b=[b]),s.push.apply(s,b.map(function(T){return{type:typeof T=="string"?rl.literal:rl.object,value:T}}))}if(n_e(u)){var C=u.options[h]||u.options.other;if(!C)throw new Eoe(u.value,h,Object.keys(u.options),a);s.push.apply(s,K8(C.value,t,n,r,i));continue}if(r_e(u)){var C=u.options["=".concat(h)];if(!C){if(!Intl.PluralRules)throw new wg(`Intl.PluralRules is not available in this environment.
|
||
Try polyfilling it using "@formatjs/intl-pluralrules"
|
||
`,Gf.MISSING_INTL_API,a);var _=n.getPluralRules(t,{type:u.pluralType}).select(h-(u.offset||0));C=u.options[_]||u.options.other}if(!C)throw new Eoe(u.value,h,Object.keys(u.options),a);s.push.apply(s,K8(C.value,t,n,r,i,h-(u.offset||0)));continue}}return IDt(s)}function $Dt(e,t){return t?hr(hr(hr({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=hr(hr({},e[r]),t[r]||{}),n},{})):e}function RDt(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=$Dt(e[r],t[r]),n},hr({},e)):e}function NA(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function ADt(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:sl(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,ul([void 0],n,!1)))},{cache:NA(e.number),strategy:ll.variadic}),getDateTimeFormat:sl(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,ul([void 0],n,!1)))},{cache:NA(e.dateTime),strategy:ll.variadic}),getPluralRules:sl(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,ul([void 0],n,!1)))},{cache:NA(e.pluralRules),strategy:ll.variadic})}}var p_e=function(){function e(t,n,r,i){n===void 0&&(n=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var c=o.formatToParts(l);if(c.length===1)return c[0].value;var u=c.reduce(function(d,h){return!d.length||h.type!==rl.literal||typeof d[d.length-1]!="string"?d.push(h.value):d[d.length-1]+=h.value,d},[]);return u.length<=1?u[0]||"":u},this.formatToParts=function(l){return K8(o.ast,o.locales,o.formatters,o.formats,l,void 0,o.message)},this.resolvedOptions=function(){var l;return{locale:((l=o.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=i||{};a.formatters;var s=dS(a,["formatters"]);this.ast=e.__parse(t,hr(hr({},s),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=RDt(e.formats,r),this.formatters=i&&i.formatters||ADt(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=ODt,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),Mv;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(Mv||(Mv={}));var s4=function(e){Fu(t,e);function t(n,r,i){var o=this,a=i?i instanceof Error?i:new Error(String(i)):void 0;return o=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,`
|
||
`).concat(a?`
|
||
`.concat(a.message,`
|
||
`).concat(a.stack):""))||this,o.code=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(o,t),o}return t}(Error),NDt=function(e){Fu(t,e);function t(n,r){return e.call(this,Mv.UNSUPPORTED_FORMATTER,n,r)||this}return t}(s4),DDt=function(e){Fu(t,e);function t(n,r){return e.call(this,Mv.INVALID_CONFIG,n,r)||this}return t}(s4),Toe=function(e){Fu(t,e);function t(n,r){return e.call(this,Mv.MISSING_DATA,n,r)||this}return t}(s4),ju=function(e){Fu(t,e);function t(n,r,i){var o=e.call(this,Mv.FORMAT_ERROR,"".concat(n,`
|
||
Locale: `).concat(r,`
|
||
`),i)||this;return o.locale=r,o}return t}(s4),DA=function(e){Fu(t,e);function t(n,r,i,o){var a=e.call(this,"".concat(n,`
|
||
MessageID: `).concat(i==null?void 0:i.id,`
|
||
Default Message: `).concat(i==null?void 0:i.defaultMessage,`
|
||
Description: `).concat(i==null?void 0:i.description,`
|
||
`),r,o)||this;return a.descriptor=i,a.locale=r,a}return t}(ju),LDt=function(e){Fu(t,e);function t(n,r){var i=e.call(this,Mv.MISSING_TRANSLATION,'Missing message: "'.concat(n.id,'" for locale "').concat(r,'", using ').concat(n.defaultMessage?"default message (".concat(typeof n.defaultMessage=="string"?n.defaultMessage:n.defaultMessage.map(function(o){var a;return(a=o.value)!==null&&a!==void 0?a:JSON.stringify(o)}).join(),")"):"id"," as fallback."))||this;return i.descriptor=n,i}return t}(s4);function a0(e,t,n){return n===void 0&&(n={}),t.reduce(function(r,i){return i in e?r[i]=e[i]:i in n&&(r[i]=n[i]),r},{})}var FDt=function(e){},jDt=function(e){},m_e={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:FDt,onWarn:jDt};function g_e(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Xg(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function BDt(e){e===void 0&&(e=g_e());var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames,i=sl(function(){for(var s,l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return new((s=Intl.DateTimeFormat).bind.apply(s,ul([void 0],l,!1)))},{cache:Xg(e.dateTime),strategy:ll.variadic}),o=sl(function(){for(var s,l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return new((s=Intl.NumberFormat).bind.apply(s,ul([void 0],l,!1)))},{cache:Xg(e.number),strategy:ll.variadic}),a=sl(function(){for(var s,l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return new((s=Intl.PluralRules).bind.apply(s,ul([void 0],l,!1)))},{cache:Xg(e.pluralRules),strategy:ll.variadic});return{getDateTimeFormat:i,getNumberFormat:o,getMessageFormat:sl(function(s,l,c,u){return new p_e(s,l,c,hr({formatters:{getNumberFormat:o,getDateTimeFormat:i,getPluralRules:a}},u||{}))},{cache:Xg(e.message),strategy:ll.variadic}),getRelativeTimeFormat:sl(function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return new(t.bind.apply(t,ul([void 0],s,!1)))},{cache:Xg(e.relativeTime),strategy:ll.variadic}),getPluralRules:a,getListFormat:sl(function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return new(n.bind.apply(n,ul([void 0],s,!1)))},{cache:Xg(e.list),strategy:ll.variadic}),getDisplayNames:sl(function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return new(r.bind.apply(r,ul([void 0],s,!1)))},{cache:Xg(e.displayNames),strategy:ll.variadic})}}function pK(e,t,n,r){var i=e&&e[t],o;if(i&&(o=i[n]),o)return o;r(new NDt("No ".concat(t," format named: ").concat(n)))}function g5(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=hr({timeZone:t},e[r]),n},{})}function koe(e,t){var n=Object.keys(hr(hr({},e),t));return n.reduce(function(r,i){return r[i]=hr(hr({},e[i]||{}),t[i]||{}),r},{})}function Ooe(e,t){if(!t)return e;var n=p_e.formats;return hr(hr(hr({},n),e),{date:koe(g5(n.date,t),g5(e.date||{},t)),time:koe(g5(n.time,t),g5(e.time||{},t))})}var fB=function(e,t,n,r,i){var o=e.locale,a=e.formats,s=e.messages,l=e.defaultLocale,c=e.defaultFormats,u=e.fallbackOnEmptyString,d=e.onError,h=e.timeZone,p=e.defaultRichTextElements;n===void 0&&(n={id:""});var m=n.id,v=n.defaultMessage;Zwe(!!m,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var y=String(m),S=s&&Object.prototype.hasOwnProperty.call(s,y)&&s[y];if(Array.isArray(S)&&S.length===1&&S[0].type===go.literal)return S[0].value;if(!r&&S&&typeof S=="string"&&!p)return S.replace(/'\{(.*?)\}'/gi,"{$1}");if(r=hr(hr({},p),r||{}),a=Ooe(a,h),c=Ooe(c,h),!S){if(u===!1&&S==="")return S;if((!v||o&&o.toLowerCase()!==l.toLowerCase())&&d(new LDt(n,o)),v)try{var b=t.getMessageFormat(v,l,c,i);return b.format(r)}catch(C){return d(new DA('Error formatting default message for: "'.concat(y,'", rendering default message verbatim'),o,n,C)),typeof v=="string"?v:y}return y}try{var b=t.getMessageFormat(S,o,a,hr({formatters:t},i||{}));return b.format(r)}catch(C){d(new DA('Error formatting message: "'.concat(y,'", using ').concat(v?"default message":"id"," as fallback."),o,n,C))}if(v)try{var b=t.getMessageFormat(v,l,c,i);return b.format(r)}catch(C){d(new DA('Error formatting the default message for: "'.concat(y,'", rendering message verbatim'),o,n,C))}return typeof S=="string"?S:typeof v=="string"?v:y},v_e=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function aM(e,t,n,r){var i=e.locale,o=e.formats,a=e.onError,s=e.timeZone;r===void 0&&(r={});var l=r.format,c=hr(hr({},s&&{timeZone:s}),l&&pK(o,t,l,a)),u=a0(r,v_e,c);return t==="time"&&!u.hour&&!u.minute&&!u.second&&!u.timeStyle&&!u.dateStyle&&(u=hr(hr({},u),{hour:"numeric",minute:"numeric"})),n(i,u)}function HDt(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],a=o===void 0?{}:o,s=typeof i=="string"?new Date(i||0):i;try{return aM(e,"date",t,a).format(s)}catch(l){e.onError(new ju("Error formatting date.",e.locale,l))}return String(s)}function zDt(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],a=o===void 0?{}:o,s=typeof i=="string"?new Date(i||0):i;try{return aM(e,"time",t,a).format(s)}catch(l){e.onError(new ju("Error formatting time.",e.locale,l))}return String(s)}function UDt(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],a=n[2],s=a===void 0?{}:a,l=e.timeZone,c=e.locale,u=e.onError,d=a0(s,v_e,l?{timeZone:l}:{});try{return t(c,d).formatRange(i,o)}catch(h){u(new ju("Error formatting date time range.",e.locale,h))}return String(i)}function WDt(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],a=o===void 0?{}:o,s=typeof i=="string"?new Date(i||0):i;try{return aM(e,"date",t,a).formatToParts(s)}catch(l){e.onError(new ju("Error formatting date.",e.locale,l))}return[]}function VDt(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],a=o===void 0?{}:o,s=typeof i=="string"?new Date(i||0):i;try{return aM(e,"time",t,a).formatToParts(s)}catch(l){e.onError(new ju("Error formatting time.",e.locale,l))}return[]}var KDt=["style","type","fallback","languageDisplay"];function qDt(e,t,n,r){var i=e.locale,o=e.onError,a=Intl.DisplayNames;a||o(new wg(`Intl.DisplayNames is not available in this environment.
|
||
Try polyfilling it using "@formatjs/intl-displaynames"
|
||
`,Gf.MISSING_INTL_API));var s=a0(r,KDt);try{return t(i,s).of(n)}catch(l){o(new ju("Error formatting display name.",i,l))}}var GDt=["type","style"],Poe=Date.now();function YDt(e){return"".concat(Poe,"_").concat(e,"_").concat(Poe)}function XDt(e,t,n,r){r===void 0&&(r={});var i=y_e(e,t,n,r).reduce(function(o,a){var s=a.value;return typeof s!="string"?o.push(s):typeof o[o.length-1]=="string"?o[o.length-1]+=s:o.push(s),o},[]);return i.length===1?i[0]:i.length===0?"":i}function y_e(e,t,n,r){var i=e.locale,o=e.onError;r===void 0&&(r={});var a=Intl.ListFormat;a||o(new wg(`Intl.ListFormat is not available in this environment.
|
||
Try polyfilling it using "@formatjs/intl-listformat"
|
||
`,Gf.MISSING_INTL_API));var s=a0(r,GDt);try{var l={},c=n.map(function(u,d){if(typeof u=="object"){var h=YDt(d);return l[h]=u,h}return String(u)});return t(i,s).formatToParts(c).map(function(u){return u.type==="literal"?u:hr(hr({},u),{value:l[u.value]||u.value})})}catch(u){o(new ju("Error formatting list.",i,u))}return n}var QDt=["type"];function ZDt(e,t,n,r){var i=e.locale,o=e.onError;r===void 0&&(r={}),Intl.PluralRules||o(new wg(`Intl.PluralRules is not available in this environment.
|
||
Try polyfilling it using "@formatjs/intl-pluralrules"
|
||
`,Gf.MISSING_INTL_API));var a=a0(r,QDt);try{return t(i,a).select(n)}catch(s){o(new ju("Error formatting plural.",i,s))}return"other"}var JDt=["numeric","style"];function eLt(e,t,n){var r=e.locale,i=e.formats,o=e.onError;n===void 0&&(n={});var a=n.format,s=!!a&&pK(i,"relative",a,o)||{},l=a0(n,JDt,s);return t(r,l)}function tLt(e,t,n,r,i){i===void 0&&(i={}),r||(r="second");var o=Intl.RelativeTimeFormat;o||e.onError(new wg(`Intl.RelativeTimeFormat is not available in this environment.
|
||
Try polyfilling it using "@formatjs/intl-relativetimeformat"
|
||
`,Gf.MISSING_INTL_API));try{return eLt(e,t,i).format(n,r)}catch(a){e.onError(new ju("Error formatting relative time.",e.locale,a))}return String(n)}var nLt=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function b_e(e,t,n){var r=e.locale,i=e.formats,o=e.onError;n===void 0&&(n={});var a=n.format,s=a&&pK(i,"number",a,o)||{},l=a0(n,nLt,s);return t(r,l)}function rLt(e,t,n,r){r===void 0&&(r={});try{return b_e(e,t,r).format(n)}catch(i){e.onError(new ju("Error formatting number.",e.locale,i))}return String(n)}function iLt(e,t,n,r){r===void 0&&(r={});try{return b_e(e,t,r).formatToParts(n)}catch(i){e.onError(new ju("Error formatting number.",e.locale,i))}return[]}function oLt(e){var t=e?e[Object.keys(e)[0]]:void 0;return typeof t=="string"}function aLt(e){e.onWarn&&e.defaultRichTextElements&&oLt(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
|
||
Please consider using "@formatjs/cli" to pre-compile your messages for performance.
|
||
For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function sLt(e,t){var n=BDt(t),r=hr(hr({},m_e),e),i=r.locale,o=r.defaultLocale,a=r.onError;return i?!Intl.NumberFormat.supportedLocalesOf(i).length&&a?a(new Toe('Missing locale data for locale: "'.concat(i,'" in Intl.NumberFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(i).length&&a&&a(new Toe('Missing locale data for locale: "'.concat(i,'" in Intl.DateTimeFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(a&&a(new DDt('"locale" was not configured, using "'.concat(o,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),r.locale=r.defaultLocale||"en"),aLt(r),hr(hr({},r),{formatters:n,formatNumber:rLt.bind(null,r,n.getNumberFormat),formatNumberToParts:iLt.bind(null,r,n.getNumberFormat),formatRelativeTime:tLt.bind(null,r,n.getRelativeTimeFormat),formatDate:HDt.bind(null,r,n.getDateTimeFormat),formatDateToParts:WDt.bind(null,r,n.getDateTimeFormat),formatTime:zDt.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:UDt.bind(null,r,n.getDateTimeFormat),formatTimeToParts:VDt.bind(null,r,n.getDateTimeFormat),formatPlural:ZDt.bind(null,r,n.getPluralRules),formatMessage:fB.bind(null,r,n),$t:fB.bind(null,r,n),formatList:XDt.bind(null,r,n.getListFormat),formatListToParts:y_e.bind(null,r,n.getListFormat),formatDisplayName:qDt.bind(null,r,n.getDisplayNames)})}function S_e(e){Zwe(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var C_e=hr(hr({},m_e),{textComponent:f.Fragment});function lLt(e){return function(t){return e(f.Children.toArray(t))}}function hB(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(var o=0;o<i;o++){var a=n[o];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}var x_e={exports:{}},zi={};/** @license React v16.13.1
|
||
* react-is.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var ss=typeof Symbol=="function"&&Symbol.for,mK=ss?Symbol.for("react.element"):60103,gK=ss?Symbol.for("react.portal"):60106,sM=ss?Symbol.for("react.fragment"):60107,lM=ss?Symbol.for("react.strict_mode"):60108,cM=ss?Symbol.for("react.profiler"):60114,uM=ss?Symbol.for("react.provider"):60109,dM=ss?Symbol.for("react.context"):60110,vK=ss?Symbol.for("react.async_mode"):60111,fM=ss?Symbol.for("react.concurrent_mode"):60111,hM=ss?Symbol.for("react.forward_ref"):60112,pM=ss?Symbol.for("react.suspense"):60113,cLt=ss?Symbol.for("react.suspense_list"):60120,mM=ss?Symbol.for("react.memo"):60115,gM=ss?Symbol.for("react.lazy"):60116,uLt=ss?Symbol.for("react.block"):60121,dLt=ss?Symbol.for("react.fundamental"):60117,fLt=ss?Symbol.for("react.responder"):60118,hLt=ss?Symbol.for("react.scope"):60119;function Kc(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case mK:switch(e=e.type,e){case vK:case fM:case sM:case cM:case lM:case pM:return e;default:switch(e=e&&e.$$typeof,e){case dM:case hM:case gM:case mM:case uM:return e;default:return t}}case gK:return t}}}function w_e(e){return Kc(e)===fM}zi.AsyncMode=vK;zi.ConcurrentMode=fM;zi.ContextConsumer=dM;zi.ContextProvider=uM;zi.Element=mK;zi.ForwardRef=hM;zi.Fragment=sM;zi.Lazy=gM;zi.Memo=mM;zi.Portal=gK;zi.Profiler=cM;zi.StrictMode=lM;zi.Suspense=pM;zi.isAsyncMode=function(e){return w_e(e)||Kc(e)===vK};zi.isConcurrentMode=w_e;zi.isContextConsumer=function(e){return Kc(e)===dM};zi.isContextProvider=function(e){return Kc(e)===uM};zi.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===mK};zi.isForwardRef=function(e){return Kc(e)===hM};zi.isFragment=function(e){return Kc(e)===sM};zi.isLazy=function(e){return Kc(e)===gM};zi.isMemo=function(e){return Kc(e)===mM};zi.isPortal=function(e){return Kc(e)===gK};zi.isProfiler=function(e){return Kc(e)===cM};zi.isStrictMode=function(e){return Kc(e)===lM};zi.isSuspense=function(e){return Kc(e)===pM};zi.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===sM||e===fM||e===cM||e===lM||e===pM||e===cLt||typeof e=="object"&&e!==null&&(e.$$typeof===gM||e.$$typeof===mM||e.$$typeof===uM||e.$$typeof===dM||e.$$typeof===hM||e.$$typeof===dLt||e.$$typeof===fLt||e.$$typeof===hLt||e.$$typeof===uLt)};zi.typeOf=Kc;x_e.exports=zi;var pLt=x_e.exports,__e=pLt,mLt={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},gLt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},E_e={};E_e[__e.ForwardRef]=mLt;E_e[__e.Memo]=gLt;var yK=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=f.createContext(null)):f.createContext(null);yK.Consumer;var vLt=yK.Provider,yLt=vLt,bLt=yK;function ro(){var e=f.useContext(bLt);return S_e(e),e}var pB;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(pB||(pB={}));var mB;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(mB||(mB={}));function T_e(e){var t=function(n){var r=ro(),i=n.value,o=n.children,a=dS(n,["value","children"]),s=typeof i=="string"?new Date(i||0):i,l=e==="formatDate"?r.formatDateToParts(s,a):r.formatTimeToParts(s,a);return o(l)};return t.displayName=mB[e],t}function l4(e){var t=function(n){var r=ro(),i=n.value,o=n.children,a=dS(n,["value","children"]),s=r[e](i,a);if(typeof o=="function")return o(s);var l=r.textComponent||f.Fragment;return f.createElement(l,null,s)};return t.displayName=pB[e],t}function k_e(e){return e&&Object.keys(e).reduce(function(t,n){var r=e[n];return t[n]=h_e(r)?lLt(r):r,t},{})}var Moe=function(e,t,n,r){for(var i=[],o=4;o<arguments.length;o++)i[o-4]=arguments[o];var a=k_e(r),s=fB.apply(void 0,ul([e,t,n,a],i,!1));return Array.isArray(s)?f.Children.toArray(s):s},Ioe=function(e,t){var n=e.defaultRichTextElements,r=dS(e,["defaultRichTextElements"]),i=k_e(n),o=sLt(hr(hr(hr({},C_e),r),{defaultRichTextElements:i}),t),a={locale:o.locale,timeZone:o.timeZone,fallbackOnEmptyString:o.fallbackOnEmptyString,formats:o.formats,defaultLocale:o.defaultLocale,defaultFormats:o.defaultFormats,messages:o.messages,onError:o.onError,defaultRichTextElements:i};return hr(hr({},o),{formatMessage:Moe.bind(null,a,o.formatters),$t:Moe.bind(null,a,o.formatters)})};function LA(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}var SLt=function(e){Fu(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.cache=g_e(),n.state={cache:n.cache,intl:Ioe(LA(n.props),n.cache),prevConfig:LA(n.props)},n}return t.getDerivedStateFromProps=function(n,r){var i=r.prevConfig,o=r.cache,a=LA(n);return hB(i,a)?null:{intl:Ioe(a,o),prevConfig:a}},t.prototype.render=function(){return S_e(this.state.intl),f.createElement(yLt,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=C_e,t}(f.PureComponent);function CLt(e,t){var n=e.values,r=dS(e,["values"]),i=t.values,o=dS(t,["values"]);return hB(i,n)&&hB(r,o)}function O_e(e){var t=ro(),n=t.formatMessage,r=t.textComponent,i=r===void 0?f.Fragment:r,o=e.id,a=e.description,s=e.defaultMessage,l=e.values,c=e.children,u=e.tagName,d=u===void 0?i:u,h=e.ignoreTag,p={id:o,description:a,defaultMessage:s},m=n(p,l,{ignoreTag:h});return typeof c=="function"?c(Array.isArray(m)?m:[m]):d?f.createElement(d,null,f.Children.toArray(m)):f.createElement(f.Fragment,null,m)}O_e.displayName="FormattedMessage";var kc=f.memo(O_e,CLt);kc.displayName="MemoizedFormattedMessage";l4("formatDate");l4("formatTime");l4("formatNumber");l4("formatList");l4("formatDisplayName");T_e("formatDate");T_e("formatTime");const PC=({onKaptchaChange:e,onKaptchaCheck:t})=>{const n=ro(),[r,i]=f.useState(),[o,a]=f.useState(),s=async()=>{const u=await V7t();u.data.code===200&&(i(u.data.data.captchaUid),a(u.data.data.captchaImage))},l=async(u,d)=>{const h=await K7t(u,d);console.log("checkCaptcha response",h),h.data.code===200?t&&t(!0):t&&t(!1)};f.useEffect(()=>{s()},[]);const c=u=>{e&&(e(r,u.target.value),u.target.value&&u.target.value!==""&&u.target.value.trim().length===4?l(r,u.target.value):t&&t(!1))};return U.jsx(U.Fragment,{children:o&&U.jsxs(U.Fragment,{children:[U.jsx($i,{onChange:c,prefix:U.jsx(blt,{}),placeholder:n.formatMessage({id:"captcha",defaultMessage:"captcha"}),style:{width:"65%",float:"left",height:40}}),U.jsx("img",{src:o,alt:"captcha",onClick:s})]})})},xLt=({loginType:e,onKaptchaChange:t,onKaptchaCheck:n,onRememberChange:r})=>{const i=ro();return f.useEffect(()=>{const o=localStorage.getItem(bc);if(o)try{const{username:a,remember:s}=JSON.parse(o);a&&(r==null||r(a,!!s))}catch(a){console.error("Failed to parse saved credentials:",a)}},[r]),U.jsx(U.Fragment,{children:e==="account"&&U.jsxs("div",{children:[U.jsx(Fi,{name:"username",fieldProps:{size:"large",prefix:U.jsx(BW,{className:"prefixIcon"}),onClear:()=>{console.log("onClear");const o=localStorage.getItem(bc);if(o)try{const a=JSON.parse(o),{username:s,...l}=a;console.log("username",s),console.log("rest",l),localStorage.setItem(bc,JSON.stringify(l))}catch(a){console.error("Failed to parse saved credentials:",a)}}},placeholder:i.formatMessage({id:"pages.login.username.placeholder",defaultMessage:"邮箱"}),rules:[{required:!0,message:U.jsx(kc,{id:"pages.login.username.required",defaultMessage:"请输入邮箱!"})}]}),U.jsx(Fi.Password,{name:"password",fieldProps:{size:"large",prefix:U.jsx(Jv,{className:"prefixIcon"})},placeholder:i.formatMessage({id:"pages.login.password.placeholder",defaultMessage:"密码"}),rules:[{required:!0,message:U.jsx(kc,{id:"pages.login.password.required",defaultMessage:"请输入密码!"})}]}),U.jsx(ai.Item,{name:"captchaCode",rules:[{required:!0,message:i.formatMessage({id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],children:U.jsx(PC,{onKaptchaChange:t,onKaptchaCheck:n})})]})})};async function wLt(e){return Uo("/auth/v1/login",{method:"POST",data:{...e,client:bo}})}async function bK(e){return Uo("/auth/v1/send/mobile",{method:"POST",data:{...e,client:bo}})}async function P_e(e){return Uo("/auth/v1/send/email",{method:"POST",data:{...e,client:bo}})}async function _Lt(e){return Uo("/auth/v1/login/mobile",{method:"POST",data:{...e,client:bo}})}async function ELt(e,t){return Uo("/auth/v1/vip/scan/query",{method:"GET",params:{deviceUid:e,forceRefresh:t,client:bo}})}async function TLt(e){return Uo("/auth/v1/vip/scan/login",{method:"POST",data:{...e,client:bo}})}async function kLt(e){return Uo("/api/v1/user/logout",{method:"POST",data:{client:bo}})}const OLt=({loginType:e,onKaptchaChange:t,onKaptchaCheck:n,onRememberChange:r})=>{const i=ro(),[o,a]=f.useState(""),[s,l]=f.useState(""),[c,u]=f.useState(!1);f.useEffect(()=>{const v=localStorage.getItem(bc);if(v)try{const{mobile:y}=JSON.parse(v);y&&(r==null||r(y))}catch(y){console.error("Failed to parse saved credentials:",y)}},[r]);const d=async(v,y)=>{a(v),l(y),t&&t(v,y)},h=async v=>{u(v),n&&n(v)},p=[{label:i.formatMessage({id:"pages.login.country.china"}),value:"86",icon:"🇨🇳",code:"CN"},{label:i.formatMessage({id:"pages.login.country.hongkong"}),value:"852",icon:"🇭🇰",code:"HK"},{label:i.formatMessage({id:"pages.login.country.taiwan"}),value:"886",icon:"🇹🇼",code:"TW"},{label:i.formatMessage({id:"pages.login.country.macao"}),value:"853",icon:"🇲🇴",code:"MO"},{label:i.formatMessage({id:"pages.login.country.japan"}),value:"81",icon:"🇯🇵",code:"JP"},{label:i.formatMessage({id:"pages.login.country.korea"}),value:"82",icon:"🇰🇷",code:"KR"},{label:i.formatMessage({id:"pages.login.country.singapore"}),value:"65",icon:"🇸🇬",code:"SG"},{label:i.formatMessage({id:"pages.login.country.malaysia"}),value:"60",icon:"🇲🇾",code:"MY"},{label:i.formatMessage({id:"pages.login.country.thailand"}),value:"66",icon:"🇹🇭",code:"TH"},{label:i.formatMessage({id:"pages.login.country.vietnam"}),value:"84",icon:"🇻🇳",code:"VN"},{label:i.formatMessage({id:"pages.login.country.philippines"}),value:"63",icon:"🇵🇭",code:"PH"},{label:i.formatMessage({id:"pages.login.country.indonesia"}),value:"62",icon:"🇮🇩",code:"ID"},{label:i.formatMessage({id:"pages.login.country.usa"}),value:"1-us",icon:"🇺🇸",code:"US"},{label:i.formatMessage({id:"pages.login.country.canada"}),value:"1-ca",icon:"🇨🇦",code:"CA"},{label:i.formatMessage({id:"pages.login.country.uk"}),value:"44",icon:"🇬🇧",code:"GB"},{label:i.formatMessage({id:"pages.login.country.germany"}),value:"49",icon:"🇩🇪",code:"DE"},{label:i.formatMessage({id:"pages.login.country.france"}),value:"33",icon:"🇫🇷",code:"FR"},{label:i.formatMessage({id:"pages.login.country.italy"}),value:"39",icon:"🇮🇹",code:"IT"},{label:i.formatMessage({id:"pages.login.country.spain"}),value:"34",icon:"🇪🇸",code:"ES"},{label:i.formatMessage({id:"pages.login.country.russia"}),value:"7",icon:"🇷🇺",code:"RU"},{label:i.formatMessage({id:"pages.login.country.australia"}),value:"61",icon:"🇦🇺",code:"AU"},{label:i.formatMessage({id:"pages.login.country.newzealand"}),value:"64",icon:"🇳🇿",code:"NZ"}],m=v=>{const y=v.value.includes("-")?v.value.split("-")[0]:v.value;return U.jsxs("div",{children:[U.jsx("span",{role:"img","aria-label":v.label,style:{marginRight:8},children:v.icon}),v.label," (+",y,")"]})};return U.jsx(U.Fragment,{children:e==="mobile"&&U.jsxs(U.Fragment,{children:[U.jsxs(AE,{gutter:16,children:[U.jsx(wv,{span:10,children:U.jsx(WV,{name:"country",options:p,fieldProps:{size:"large",placeholder:i.formatMessage({id:"pages.login.country.placeholder",defaultMessage:"选择国家/地区"}),optionLabelProp:"label",optionItemRender:m},initialValue:"86"})}),U.jsx(wv,{span:14,children:U.jsx(Fi,{fieldProps:{size:"large",prefix:U.jsx(LE,{className:"prefixIcon"}),onClear:()=>{console.log("onClear");const v=localStorage.getItem(bc);if(v)try{const y=JSON.parse(v),{mobile:S,...b}=y;console.log("saved:",S,y),localStorage.setItem(bc,JSON.stringify(b))}catch(y){console.error("Failed to parse saved credentials:",y)}}},name:"mobile",placeholder:i.formatMessage({id:"pages.login.phoneNumber.placeholder",defaultMessage:"手机号"}),rules:[{required:!0,message:U.jsx(kc,{id:"pages.login.phoneNumber.required",defaultMessage:"请输入手机号!"})},{pattern:/^1\d{10}$/,message:U.jsx(kc,{id:"pages.login.phoneNumber.invalid",defaultMessage:"手机号格式错误!"})}]})})]}),U.jsx(ai.Item,{name:"captchaCode",rules:[{required:!0,message:i.formatMessage({id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],children:U.jsx(PC,{onKaptchaChange:d,onKaptchaCheck:h})}),U.jsx(KE,{fieldProps:{size:"large",prefix:U.jsx(Jv,{className:"prefixIcon"})},captchaProps:{size:"large",disabled:!c},placeholder:i.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"请输入验证码"}),captchaTextRender:(v,y)=>v?`${y} ${i.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"获取验证码"})}`:i.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"获取验证码"}),phoneName:"mobile",name:"code",rules:[{required:!0,message:U.jsx(kc,{id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],onGetCaptcha:async v=>{if(console.log("mobile:",v),v&&v.length===11){const S=await bK({mobile:v,type:vOe,captchaUid:o,captchaCode:s,platform:Eu});if(console.log("sendMobileCode:",S.data),S.data.code!==200){Wn.error(i.formatMessage({id:S.data.message,defaultMessage:S.data.message}));return}Wn.success(i.formatMessage({id:S.data.message,defaultMessage:S.data.message}))}else Wn.error("手机号格式错误")}}),U.jsx(O1e,{message:U.jsx(kc,{id:"pages.login.auto.register",defaultMessage:"Mobile will auto register"}),type:"info"})]})})},PLt=({loginType:e})=>{const t=ro(),n=as(),r=Ka(p=>p.setUserInfo),i=J_(p=>p.setAccessToken),{deviceUid:o,setDeviceUid:a}=Ka(p=>({deviceUid:p.deviceUid,setDeviceUid:p.setDeviceUid})),[s,l]=f.useState("login"),[c,u]=f.useState("loading"),d=async p=>{console.log("handleScanLogin values: ",p),Wn.loading(t.formatMessage({id:"logging",defaultMessage:"logging..."}));const m=await TLt({...p});console.log("LoginMobileResult scanLogin:",m.data),m.data.code===200?(Wn.destroy(),Wn.success(t.formatMessage({id:"login.success",defaultMessage:"login success"})),r(m.data.data.user),i(m.data.data.accessToken),n("/chat"),mj()):(Wn.destroy(),Wn.error(m.data.message))},h=async p=>{if(e!="scan")return;const m=await ELt(o,p);if(m.data.code===200){const v=m.data.data;if(console.log("handleScanQuery status: ",v.status),v.status===xOe)u("active"),l("deviceUid="+v.deviceUid+"&code="+v.content);else if(v.status===wOe)u("scanned");else if(v.status===EOe)u("expired");else if(v.status===_Oe){if(v.receiver===void 0||v.receiver==="")return;let y={mobile:v.receiver,code:v.content,platform:Eu};console.log("login scan info:",y),await d(y)}}else Wn.error(m.data.message)};return f.useEffect(()=>{console.log("scan deviceUid:",o),(o===void 0||o==="")&&a(Q6()),h(!0);const p=setInterval(()=>{h(!1)},3e3);return()=>{clearInterval(p)}},[e,o]),U.jsx(U.Fragment,{children:e==="scan"&&U.jsx(U.Fragment,{children:U.jsx(VSe,{style:{margin:"auto"},value:s,status:c,onRefresh:()=>{console.log("onRefresh"),h(!0)}})})})},M_e=()=>{const{token:e}=ol.useToken(),{isCustomServer:t,setIsCustomServer:n}=f.useContext(Ks),[r]=ai.useForm(),[i,o]=f.useState(!1),[a,s]=f.useState(""),[l,c]=f.useState(""),u=ro(),d=()=>{console.log("switch server"),n(m=>!m)};f.useEffect(()=>{a&&a.length>0&&(r.setFieldsValue({apiUrl:a}),console.log("apiUrl:",a))},[a]),f.useEffect(()=>{if(t){const m=localStorage.getItem(Ly);m==="true"&&(o(!0),r.setFieldsValue({isCustomServerEnabled:!0})),console.log("isCustomServer customEnabled:",m);const v=localStorage.getItem(p2);v&&r.setFieldsValue({apiUrl:K0(v)});const y=localStorage.getItem(m2);y&&r.setFieldsValue({websocketUrl:K0(y)})}},[t]);const h=m=>{if(console.log("handleCustomServerChange e:",m),o(m.target.checked),m.target.checked){const v=localStorage.getItem(p2);v&&r.setFieldsValue({apiUrl:K0(v)});const y=localStorage.getItem(m2);y&&r.setFieldsValue({websocketUrl:K0(y)}),console.log("initData apiUrl:",v,"websocketUrl:",y)}else localStorage.setItem(Ly,"false")},p=(m,v)=>(console.log("props:",m,v),U.jsxs("div",{style:{display:"flex",justifyContent:"center",gap:"8px"},children:[U.jsx(pr,{icon:U.jsx(Wat,{}),onClick:d,children:u.formatMessage({id:"server.button.back"})},"back"),U.jsx(pr,{type:"primary",onClick:()=>{let y=m.form.getFieldValue("apiUrl");y=K0(y.trim());let S=m.form.getFieldValue("websocketUrl");S=K0(S.trim()),y&&y.trim().length>0&&S&&S.trim().length>0?(localStorage.setItem(p2,y),localStorage.setItem(m2,S),localStorage.setItem(Ly,"true"),Wn.success(u.formatMessage({id:"server.save.success"}))):Wn.error("请输入正确的服务器地址")},children:u.formatMessage({id:"server.button.save"})},"submit"),U.jsx(pr,{onClick:()=>{var y;(y=m.form)==null||y.resetFields(),s(""),localStorage.setItem(Ly,"false"),localStorage.setItem(p2,""),localStorage.setItem(m2,""),Wn.success(u.formatMessage({id:"server.reset.success"}))},children:u.formatMessage({id:"server.button.reset"})},"reset"),U.jsx(pr,{onClick:()=>{S_("https://www.weiyuai.cn/docs/zh-CN/docs/manual/agent/auth/login")},children:u.formatMessage({id:"server.button.help"})},"help")]}));return U.jsx("div",{className:"ant-pro-form-server-container",style:{backgroundColor:e.colorBgContainer,display:"flex",justifyContent:"center",flexDirection:"column",height:"100%",width:"80%",marginLeft:"10%"},children:U.jsxs(ai,{className:"ant-pro-form-server-main",form:r,submitter:{render:p},children:[U.jsx(zV,{name:"isCustomServerEnabled",fieldProps:{onChange:h},children:u.formatMessage({id:"server.custom.enable"})}),i&&U.jsxs(U.Fragment,{children:[U.jsx(Fi,{name:"apiUrl",label:u.formatMessage({id:"server.api.url.label"}),fieldProps:{disabled:!i,placeholder:u.formatMessage({id:"server.api.url.placeholder"}),onChange:m=>s(m.target.value)}}),U.jsx(Fi,{name:"websocketUrl",label:u.formatMessage({id:"server.websocket.url.label"}),fieldProps:{disabled:!i,placeholder:u.formatMessage({id:"server.websocket.url.placeholder"}),onChange:m=>c(m.target.value)}})]})]})})},MLt=()=>{const e=EIe();return U.jsx("img",{alt:"logo",src:e})},ILt=()=>{const e=TIe();return e||U.jsx(kc,{id:"app.title",defaultMessage:"微语"})},$Lt=()=>{const e=kIe();return e||U.jsx(kc,{id:"slogan",defaultMessage:"Chat As A Service"})},RLt=({isModel:e=!1})=>{const t=ro(),[n]=ai.useForm(),r=as(),{token:i}=ol.useToken(),[o,a]=f.useState("account"),s=Ka(P=>P.setUserInfo),l=J_(P=>P.setAccessToken),{isCustomServer:c,setIsCustomServer:u}=f.useContext(Ks),[d,h]=f.useState(!1),p=P=>{console.log(`onPrivacyProtocolChange checked = ${P.target.checked}`),h(P.target.checked);const D=localStorage.getItem(bc);if(D)try{const{remember:R}=JSON.parse(D);R&&setTimeout(()=>{n.setFieldsValue({remember:R})},0)}catch(R){console.error("Failed to parse saved credentials:",R)}},m=()=>{S_("https://www.weiyuai.cn/protocol.html")},[v,y]=f.useState(""),S=async(P,D)=>{y(P),n.setFieldValue("captchaCode",D)},b=async P=>{console.log("handleKaptchaCheck:",P)},C=async P=>{if(console.log("handleSubmit values: ",P,o),!d){Wn.error("请阅读并同意隐私协议");return}Wn.loading(t.formatMessage({id:"logging",defaultMessage:"logging..."}));const D=localStorage.getItem(bc);let R=!1;if(D)try{R=JSON.parse(D).remember}catch(H){console.error("Failed to parse saved credentials:",H)}localStorage.setItem(bc,JSON.stringify({username:P.username,remember:R}));const A=await wLt({...P});console.log("LoginResult:",A.data),A.data.code===200?(Wn.destroy(),Wn.success(t.formatMessage({id:"login.success",defaultMessage:"login success"})),R&&localStorage.setItem(bc,JSON.stringify({username:P.username,password:P.password,remember:!0})),s(A.data.data.user),l(A.data.data.accessToken),e||r("/"),mj()):(Wn.destroy(),Wn.error(t.formatMessage({id:A.data.message,defaultMessage:A.data.message})))},_=P=>{n.setFieldsValue({mobile:P})},T=async P=>{if(!d){Wn.error(t.formatMessage({id:"login.privacy.required",defaultMessage:"请阅读并同意隐私协议"}));return}const D=localStorage.getItem(bc);let R={};if(D)try{R=JSON.parse(D)}catch(H){console.error("Failed to parse saved credentials:",H)}localStorage.setItem(bc,JSON.stringify({...R,mobile:P.mobile}));const A=await _Lt({...P});console.log("LoginMobileResult:",A),A.data.code===200?(Wn.destroy(),Wn.success(t.formatMessage({id:"login.success",defaultMessage:"login success"})),s(A.data.data.user),l(A.data.data.accessToken),e||r("/"),mj()):(Wn.destroy(),Wn.error(t.formatMessage({id:A.data.message,defaultMessage:A.data.message})))},x=()=>{console.log("switch server"),u(P=>!P)},E=()=>{console.log("handleAnonymousLogin"),r("/anonymous")},k=()=>{if(hv)return{}},M=(P,D)=>{n.setFieldsValue({username:P,remember:D});const R=localStorage.getItem(bc);if(R&&D)try{const{password:A}=JSON.parse(R);A&&n.setFieldsValue({password:A})}catch(A){console.error("Failed to parse saved credentials:",A)}};return U.jsx($P,{hashed:!1,children:U.jsxs("div",{style:{backgroundColor:i.colorBgContainer,textAlign:"center",height:"100%"},children:[!c&&U.jsxs(cwe,{form:n,contentStyle:{minWidth:400},logo:MLt(),title:ILt(),subTitle:$Lt(),initialValues:k(),onFinish:async P=>{if(console.log("login:",P),o==="account"){const D={username:P.username,password:P.password,captchaUid:v,captchaCode:P.captchaCode,platform:Eu};await C(D)}else if(o==="mobile"){const D={mobile:P.mobile,code:P.code,captchaUid:v,captchaCode:P.captchaCode,platform:Eu};await T(D)}else console.log("scan login type")},actions:hv&&U.jsxs(pa,{children:[U.jsx(kc,{id:"pages.login.loginWith",defaultMessage:"其他登录方式"}),U.jsx(pr,{type:"link",onClick:E,children:t.formatMessage({id:"pages.login.anonymousLogin",defaultMessage:"匿名登录"})})]}),children:[U.jsx(tC,{centered:!0,items:[{key:"account",label:t.formatMessage({id:"pages.login.accountLogin.tab",defaultMessage:"账户密码登录"}),children:U.jsx(xLt,{loginType:o,onKaptchaChange:S,onKaptchaCheck:b,onRememberChange:M})},{key:"mobile",label:t.formatMessage({id:"pages.login.phoneLogin.tab",defaultMessage:"手机号登录"}),children:U.jsx(OLt,{loginType:o,onKaptchaChange:S,onKaptchaCheck:b,onRememberChange:_})},{key:"scan",label:t.formatMessage({id:"pages.login.scanLogin.tab",defaultMessage:"扫码登录"}),children:U.jsx(PLt,{loginType:o})}],activeKey:o,onChange:P=>a(P)}),U.jsxs("div",{style:{marginBlockEnd:24,textAlign:"left",marginTop:10},children:[U.jsx(mp,{checked:d,onChange:p,children:U.jsx(pr,{size:"small",type:"link",onClick:m,children:t.formatMessage({id:"login.privacy.agreement",defaultMessage:"同意《用户隐私&协议》"})})}),U.jsx(pr,{type:"link",style:{float:"right",marginBottom:24},onClick:x,children:t.formatMessage({id:"login.switch.server",defaultMessage:"切换服务器"})})]})]}),c&&U.jsx(M_e,{})]})})},gB=({isModel:e=!1})=>U.jsx(jO,{children:U.jsx(RLt,{isModel:e})}),ALt=()=>{as();const{token:e}=ol.useToken();return f.useState("phone"),dc(e.colorTextBase,.2),U.jsx($P,{hashed:!1,children:U.jsx("div",{style:{backgroundColor:e.colorBgContainer,textAlign:"center",height:"100vh"},children:U.jsxs(cwe,{logo:"./logo.png",title:"微语",subTitle:"注册账号",children:[U.jsxs(U.Fragment,{children:[U.jsx(Fi,{name:"username",fieldProps:{size:"large",prefix:U.jsx(BW,{className:"prefixIcon"})},placeholder:"用户名",rules:[{required:!0,message:"请输入用户名!"}]}),U.jsx(Fi.Password,{name:"password",fieldProps:{size:"large",prefix:U.jsx(Jv,{className:"prefixIcon"})},placeholder:"密码",rules:[{required:!0,message:"请输入密码!"}]})]}),U.jsxs("div",{style:{marginBlockEnd:24},children:[U.jsx(zV,{noStyle:!0,name:"autoLogin",children:"自动登录"}),U.jsx(Mgt,{to:"/agent/auth/login",style:{float:"right"},children:"登录"})]})]})})})};function vM(){const[e,t]=f.useState(!0);return f.useEffect(()=>{function n(){console.log("networkStatus online:",navigator.onLine),navigator.onLine&&t(!0)}function r(){console.log("networkStatus offline:",!navigator.onLine),t(!1)}return window.addEventListener("online",n),window.addEventListener("offline",r),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}},[]),e}function oh(){const e=ro();return{translateString:r=>r==null?r:r&&r.startsWith(bX)?e.formatMessage({id:r,defaultMessage:r}):r,translateStringTranct:r=>r==null?r:r!=null&&r.startsWith(bX)?QQ(e.formatMessage({id:r}),10):QQ(r,10)}}function SK(){const e=vM(),{translateString:t}=oh(),[n,r]=f.useState(!1),[i,o]=f.useState(!1),a=async(l,c)=>{is?await xpt()?console.log("handleNewMessage isWindowActive"):wpt(l,c):i?s(l,c):console.log("handleNewMessage not isBrowserTabHidden")},s=(l,c)=>{console.log("showWebNotification");var u=new Notification(l,{body:c,icon:"./logo.png"});u.onshow=function(){console.log("Notification shown")},u.onclick=function(){console.log("notification click")},u.onclose=function(){console.log("notification close")},u.onerror=function(){console.log("notification error")}};return f.useEffect(()=>(is||(window.Notification&&Notification.permission!=="granted"?Notification.requestPermission(function(l){r(l==="granted")}):(console.log("已经授权或浏览器不支持通知"),r(!0)),document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"?o(!0):document.visibilityState==="visible"&&o(!1)},!1)),()=>{document.removeEventListener("visibilitychange",()=>{})}),[]),f.useEffect(()=>{if(console.log("useNotification useEffect isNetworkOnline",e),e){const l=localStorage.getItem(z2);(l==null||l==="true")&&a(t("i18n.tip.title"),t("i18n.tip.network.disconnected"))}else{const l=localStorage.getItem(z2);(l==null||l==="true")&&a(t("i18n.tip.title"),t("i18n.tip.network.connected"))}},[e]),{isNotificationGranted:n,showWebNotification:s,showNotification:a}}var Xh={},I_e={exports:{}},$_e={exports:{}};(function(e){var t=ywe;function n(r){if(Array.isArray(r))return t(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})($_e);var NLt=$_e.exports,R_e={exports:{}};(function(e){function t(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(R_e);var A_e=R_e.exports,N_e={exports:{}};(function(e){function t(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(N_e);var DLt=N_e.exports;(function(e){var t=NLt,n=A_e,r=KV,i=DLt;function o(a){return t(a)||n(a)||r(a)||i()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports})(I_e);var D_e=I_e.exports,yM={};Object.defineProperty(yM,"__esModule",{value:!0});yM.default=LLt;function LLt(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}var CK={};const _g=K_(nje);var bM={},FLt=va.default;Object.defineProperty(bM,"__esModule",{value:!0});bM.default=BLt;var jLt=FLt(f);function BLt(e,t,n){var r=jLt.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var SM={},L_e={exports:{}};(function(e){var t=pwe,n=A_e,r=KV,i=Swe;function o(a){return t(a)||n(a)||r(a)||i()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports})(L_e);var HLt=L_e.exports,xK={};Object.defineProperty(xK,"__esModule",{value:!0});xK.default=zLt;function zLt(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}var c4=Vr.default;Object.defineProperty(SM,"__esModule",{value:!0});SM.default=q8;SM.merge=qLt;var F_e=c4(Fv),ULt=c4(jv),j_e=c4(D_e),WLt=c4(HLt),vB=c4(xK);function B_e(e,t,n,r){if(!t.length)return n;var i=(0,WLt.default)(t),o=i[0],a=i.slice(1),s;return!e&&typeof o=="number"?s=[]:Array.isArray(e)?s=(0,j_e.default)(e):s=(0,ULt.default)({},e),r&&n===void 0&&a.length===1?delete s[o][a[0]]:s[o]=B_e(s[o],a,n,r),s}function q8(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!(0,vB.default)(e,t.slice(0,-1))?e:B_e(e,t,n,r)}function VLt(e){return(0,F_e.default)(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function $oe(e){return Array.isArray(e)?[]:{}}var KLt=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function qLt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=$oe(t[0]);return t.forEach(function(i){function o(a,s){var l=new Set(s),c=(0,vB.default)(i,a),u=Array.isArray(c);if(u||VLt(c)){if(!l.has(c)){l.add(c);var d=(0,vB.default)(r,a);u?r=q8(r,a,[]):(!d||(0,F_e.default)(d)!=="object")&&(r=q8(r,a,$oe(c))),KLt(c).forEach(function(h){o([].concat((0,j_e.default)(a),[h]),l)})}}else r=q8(r,a,c)}o([])}),r}var Su={},H_e=va.default;Object.defineProperty(Su,"__esModule",{value:!0});Su.devUseWarning=Su.default=Su.WarningContext=void 0;Su.noop=wK;Su.resetWarned=XLt;var GLt=H_e(f),YLt=H_e(Xl);function wK(){}function XLt(){(0,YLt.resetWarned)()}let QLt=wK;Su.WarningContext=GLt.createContext({});Su.devUseWarning=()=>{const e=()=>{};return e.deprecated=wK,e};Su.default=QLt;var CM={};Object.defineProperty(CM,"__esModule",{value:!0});CM.default=void 0;var ZLt=f;CM.default=(0,ZLt.createContext)(void 0);var z_e={},xM={},JLt=Vr.default;Object.defineProperty(xM,"__esModule",{value:!0});xM.changeConfirmLocale=eFt;xM.getConfirmLocale=tFt;var _K=JLt(Lv);let G8=Object.assign({},_K.default.Modal),Y8=[];const Roe=()=>Y8.reduce((e,t)=>Object.assign(Object.assign({},e),t),_K.default.Modal);function eFt(e){if(e){const t=Object.assign({},e);return Y8.push(t),G8=Roe(),()=>{Y8=Y8.filter(n=>n!==t),G8=Roe()}}G8=Object.assign({},_K.default.Modal)}function tFt(){return G8}var MC={};Object.defineProperty(MC,"__esModule",{value:!0});MC.default=void 0;var nFt=f;const rFt=(0,nFt.createContext)(void 0);MC.default=rFt;var wM={},U_e=Vr.default,iFt=va.default;Object.defineProperty(wM,"__esModule",{value:!0});wM.default=void 0;var FA=iFt(f),oFt=U_e(MC),Aoe=U_e(Lv);const aFt=(e,t)=>{const n=FA.useContext(oFt.default),r=FA.useMemo(()=>{var o;const a=t||Aoe.default[e],s=(o=n==null?void 0:n[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,t,n]),i=FA.useMemo(()=>{const o=n==null?void 0:n.locale;return n!=null&&n.exist&&!o?Aoe.default.locale:o},[n]);return[r,i]};wM.default=aFt;(function(e){"use client";var t=Vr.default,n=va.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ANT_MARK=void 0,Object.defineProperty(e,"useLocale",{enumerable:!0,get:function(){return a.default}});var r=n(f),i=xM,o=t(MC),a=t(wM);e.ANT_MARK="internalMark";const s=l=>{const{locale:c={},children:u,_ANT_MARK__:d}=l;r.useEffect(()=>(0,i.changeConfirmLocale)(c==null?void 0:c.Modal),[c]);const h=r.useMemo(()=>Object.assign(Object.assign({},c),{exist:!0}),[c]);return r.createElement(o.default.Provider,{value:h},u)};e.default=s})(z_e);var Bf={},EK={},Yf={};Object.defineProperty(Yf,"__esModule",{value:!0});Yf.defaultPresetColors=Yf.default=void 0;const sFt=Yf.defaultPresetColors={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"},lFt=Object.assign(Object.assign({},sFt),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
||
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
||
'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});Yf.default=lFt;var TK={};const u4=K_(dje);Object.defineProperty(TK,"__esModule",{value:!0});TK.default=cFt;var jA=u4;function cFt(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:i,colorWarning:o,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=n(l),h=n(i),p=n(o),m=n(a),v=n(s),y=r(c,u),S=e.colorLink||e.colorInfo,b=n(S),C=new jA.FastColor(m[1]).mix(new jA.FastColor(m[3]),50).toHexString();return Object.assign(Object.assign({},y),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:h[1],colorSuccessBgHover:h[2],colorSuccessBorder:h[3],colorSuccessBorderHover:h[4],colorSuccessHover:h[4],colorSuccess:h[6],colorSuccessActive:h[7],colorSuccessTextHover:h[8],colorSuccessText:h[9],colorSuccessTextActive:h[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgFilledHover:C,colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new jA.FastColor("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}var kK={},_M={};Object.defineProperty(_M,"__esModule",{value:!0});_M.default=void 0;const uFt=e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};_M.default=uFt;var dFt=Vr.default;Object.defineProperty(kK,"__esModule",{value:!0});kK.default=hFt;var fFt=dFt(_M);function hFt(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:i+1},(0,fFt.default)(r))}var EM={};Object.defineProperty(EM,"__esModule",{value:!0});EM.default=void 0;const pFt=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};EM.default=pFt;var TM={},d4={};Object.defineProperty(d4,"__esModule",{value:!0});d4.default=mFt;d4.getLineHeight=W_e;function W_e(e){return(e+8)/e}function mFt(e){const t=new Array(10).fill(null).map((n,r)=>{const i=r-1,o=e*Math.pow(Math.E,i/5),a=r>1?Math.floor(o):Math.ceil(o);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:W_e(n)}))}var gFt=Vr.default;Object.defineProperty(TM,"__esModule",{value:!0});TM.default=void 0;var vFt=gFt(d4);const yFt=e=>{const t=(0,vFt.default)(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),i=n[1],o=n[0],a=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:o,fontSize:i,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*i),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*o),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};TM.default=yFt;var OK={};Object.defineProperty(OK,"__esModule",{value:!0});OK.default=bFt;function bFt(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}var hS={},pS={};Object.defineProperty(pS,"__esModule",{value:!0});pS.getSolidColor=pS.getAlphaColor=void 0;var V_e=u4;const SFt=(e,t)=>new V_e.FastColor(e).setA(t).toRgbString();pS.getAlphaColor=SFt;const CFt=(e,t)=>new V_e.FastColor(e).darken(t).toHexString();pS.getSolidColor=CFt;Object.defineProperty(hS,"__esModule",{value:!0});hS.generateNeutralColorPalettes=hS.generateColorPalettes=void 0;var xFt=r4,fs=pS;const wFt=e=>{const t=(0,xFt.generate)(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}};hS.generateColorPalettes=wFt;const _Ft=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:(0,fs.getAlphaColor)(r,.88),colorTextSecondary:(0,fs.getAlphaColor)(r,.65),colorTextTertiary:(0,fs.getAlphaColor)(r,.45),colorTextQuaternary:(0,fs.getAlphaColor)(r,.25),colorFill:(0,fs.getAlphaColor)(r,.15),colorFillSecondary:(0,fs.getAlphaColor)(r,.06),colorFillTertiary:(0,fs.getAlphaColor)(r,.04),colorFillQuaternary:(0,fs.getAlphaColor)(r,.02),colorBgSolid:(0,fs.getAlphaColor)(r,1),colorBgSolidHover:(0,fs.getAlphaColor)(r,.75),colorBgSolidActive:(0,fs.getAlphaColor)(r,.95),colorBgLayout:(0,fs.getSolidColor)(n,4),colorBgContainer:(0,fs.getSolidColor)(n,0),colorBgElevated:(0,fs.getSolidColor)(n,0),colorBgSpotlight:(0,fs.getAlphaColor)(r,.85),colorBgBlur:"transparent",colorBorder:(0,fs.getSolidColor)(n,15),colorBorderSecondary:(0,fs.getSolidColor)(n,6)}};hS.generateNeutralColorPalettes=_Ft;var f4=Vr.default;Object.defineProperty(EK,"__esModule",{value:!0});EK.default=IFt;var Qg=r4,EFt=Yf,TFt=f4(TK),kFt=f4(kK),OFt=f4(EM),PFt=f4(TM),MFt=f4(OK),Noe=hS;function IFt(e){Qg.presetPrimaryColors.pink=Qg.presetPrimaryColors.magenta,Qg.presetPalettes.pink=Qg.presetPalettes.magenta;const t=Object.keys(EFt.defaultPresetColors).map(n=>{const r=e[n]===Qg.presetPrimaryColors[n]?Qg.presetPalettes[n]:(0,Qg.generate)(e[n]);return new Array(10).fill(1).reduce((i,o,a)=>(i[`${n}-${a+1}`]=r[a],i[`${n}${a+1}`]=r[a],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({},e),t),(0,TFt.default)(e,{generateColorPalettes:Noe.generateColorPalettes,generateNeutralColorPalettes:Noe.generateNeutralColorPalettes})),(0,PFt.default)(e.fontSize)),(0,MFt.default)(e)),(0,OFt.default)(e)),(0,kFt.default)(e))}var PK=Vr.default;Object.defineProperty(Bf,"__esModule",{value:!0});Bf.defaultTheme=Bf.defaultConfig=Bf.DesignTokenContext=void 0;var $Ft=PK(f),RFt=_g,AFt=PK(EK),Doe=PK(Yf);Bf.defaultTheme=(0,RFt.createTheme)(AFt.default);const NFt=Bf.defaultConfig={token:Doe.default,override:{override:Doe.default},hashed:!0};Bf.DesignTokenContext=$Ft.default.createContext(NFt);var xc={},DFt=va.default;Object.defineProperty(xc,"__esModule",{value:!0});xc.defaultPrefixCls=xc.defaultIconPrefixCls=xc.Variants=xc.ConfigContext=xc.ConfigConsumer=void 0;var LFt=DFt(f);const Loe=xc.defaultPrefixCls="ant",FFt=xc.defaultIconPrefixCls="anticon";xc.Variants=["outlined","borderless","filled"];const jFt=(e,t)=>t||(e?`${Loe}-${e}`:Loe),BFt=xc.ConfigContext=LFt.createContext({getPrefixCls:jFt,iconPrefixCls:FFt}),{Consumer:HFt}=BFt;xc.ConfigConsumer=HFt;var kM={},K_e=Vr.default;Object.defineProperty(kM,"__esModule",{value:!0});kM.getStyle=q_e;kM.registerTheme=VFt;var Foe=r4,BA=u4,zFt=K_e(QP),UFt=i0;K_e(Su);const WFt=`-ant-${Date.now()}-${Math.random()}`;function q_e(e,t){const n={},r=(a,s)=>{let l=a.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},i=(a,s)=>{const l=new BA.FastColor(a),c=(0,Foe.generate)(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=c[1],n[`${s}-color-hover`]=c[4],n[`${s}-color-active`]=c[6],n[`${s}-color-outline`]=l.clone().setA(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=c[0],n[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){i(t.primaryColor,"primary");const a=new BA.FastColor(t.primaryColor),s=(0,Foe.generate)(a.toRgbString());s.forEach((c,u)=>{n[`primary-${u+1}`]=c}),n["primary-color-deprecated-l-35"]=r(a,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(a,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(a,c=>c.setA(c.a*.12));const l=new BA.FastColor(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,c=>c.setA(c.a*.3)),n["primary-color-active-deprecated-d-02"]=r(l,c=>c.darken(2))}return t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),`
|
||
:root {
|
||
${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(`
|
||
`)}
|
||
}
|
||
`.trim()}function VFt(e,t){const n=q_e(e,t);(0,zFt.default)()&&(0,UFt.updateCSS)(n,`${WFt}-dynamic-theme`)}var Iv={},KFt=va.default;Object.defineProperty(Iv,"__esModule",{value:!0});Iv.default=Iv.DisabledContextProvider=void 0;var yB=KFt(f);const bB=yB.createContext(!1),qFt=e=>{let{children:t,disabled:n}=e;const r=yB.useContext(bB);return yB.createElement(bB.Provider,{value:n??r},t)};Iv.DisabledContextProvider=qFt;Iv.default=bB;var OM={},$v={},GFt=va.default;Object.defineProperty($v,"__esModule",{value:!0});$v.default=$v.SizeContextProvider=void 0;var SB=GFt(f);const CB=SB.createContext(void 0),YFt=e=>{let{children:t,size:n}=e;const r=SB.useContext(CB);return SB.createElement(CB.Provider,{value:n||r},t)};$v.SizeContextProvider=YFt;$v.default=CB;var G_e=Vr.default;Object.defineProperty(OM,"__esModule",{value:!0});OM.default=void 0;var joe=f,XFt=G_e(Iv),QFt=G_e($v);function ZFt(){const e=(0,joe.useContext)(XFt.default),t=(0,joe.useContext)(QFt.default);return{componentDisabled:e,componentSize:t}}OM.default=ZFt;var MK={},PM={},Y_e=Vr.default;Object.defineProperty(PM,"__esModule",{value:!0});PM.default=void 0;var Boe=Y_e(Fv),JFt=Y_e(Xl);function ejt(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(o,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(o);if((0,JFt.default)(!l,"Warning: There may be circular references"),l)return!1;if(o===a)return!0;if(n&&s>1)return!1;r.add(o);var c=s+1;if(Array.isArray(o)){if(!Array.isArray(a)||o.length!==a.length)return!1;for(var u=0;u<o.length;u++)if(!i(o[u],a[u],c))return!1;return!0}if(o&&a&&(0,Boe.default)(o)==="object"&&(0,Boe.default)(a)==="object"){var d=Object.keys(o);return d.length!==Object.keys(a).length?!1:d.every(function(h){return i(o[h],a[h],c)})}return!1}return i(e,t)}PM.default=ejt;var IC={};const X_e=K_(Wje);var IK={},MM={};Object.defineProperty(MM,"__esModule",{value:!0});MM.PresetColors=void 0;MM.PresetColors=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"PresetColors",{enumerable:!0,get:function(){return t.PresetColors}});var t=MM})(IK);var Md={},IM={},$M={};Object.defineProperty($M,"__esModule",{value:!0});$M.default=void 0;$M.default="5.23.2";var tjt=Vr.default;Object.defineProperty(IM,"__esModule",{value:!0});IM.default=void 0;var njt=tjt($M);IM.default=njt.default;var $K={},RM={};Object.defineProperty(RM,"__esModule",{value:!0});RM.default=void 0;var v5=u4;function HA(e){return e>=0&&e<=255}function rjt(e,t){const{r:n,g:r,b:i,a:o}=new v5.FastColor(e).toRgb();if(o<1)return e;const{r:a,g:s,b:l}=new v5.FastColor(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-a*(1-c))/c),d=Math.round((r-s*(1-c))/c),h=Math.round((i-l*(1-c))/c);if(HA(u)&&HA(d)&&HA(h))return new v5.FastColor({r:u,g:d,b:h,a:Math.round(c*100)/100}).toRgbString()}return new v5.FastColor({r:n,g:r,b:i,a:1}).toRgbString()}RM.default=rjt;var Q_e=Vr.default;Object.defineProperty($K,"__esModule",{value:!0});$K.default=ajt;var zA=u4,ijt=Q_e(Yf),y5=Q_e(RM),ojt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function ajt(e){const{override:t}=e,n=ojt(e,["override"]),r=Object.assign({},t);Object.keys(ijt.default).forEach(h=>{delete r[h]});const i=Object.assign(Object.assign({},n),r),o=480,a=576,s=768,l=992,c=1200,u=1600;if(i.motion===!1){const h="0s";i.motionDurationFast=h,i.motionDurationMid=h,i.motionDurationSlow=h}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:(0,y5.default)(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:(0,y5.default)(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:(0,y5.default)(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,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:(0,y5.default)(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:`
|
||
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
||
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
||
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
||
`,boxShadowSecondary:`
|
||
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
||
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
||
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
||
`,boxShadowTertiary:`
|
||
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
||
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
||
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
||
`,screenXS:o,screenXSMin:o,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
||
0 1px 2px -2px ${new zA.FastColor("rgba(0, 0, 0, 0.16)").toRgbString()},
|
||
0 3px 6px 0 ${new zA.FastColor("rgba(0, 0, 0, 0.12)").toRgbString()},
|
||
0 5px 12px 4px ${new zA.FastColor("rgba(0, 0, 0, 0.09)").toRgbString()}
|
||
`,boxShadowDrawerRight:`
|
||
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
||
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
||
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
||
`,boxShadowDrawerLeft:`
|
||
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
||
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
||
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
||
`,boxShadowDrawerUp:`
|
||
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
||
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
||
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
||
`,boxShadowDrawerDown:`
|
||
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
||
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
||
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
||
`,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 AM=Vr.default;Object.defineProperty(Md,"__esModule",{value:!0});Md.default=pjt;Md.unitless=Md.ignore=Md.getComputedToken=void 0;var sjt=AM(f),ljt=_g,cjt=AM(IM),Hoe=Bf,ujt=AM(Yf),Z_e=AM($K),zoe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const djt=Md.unitless={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},fjt=Md.ignore={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},hjt={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},RK=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:i}=t,o=zoe(t,["override"]);let a=Object.assign(Object.assign({},r),{override:i});return a=(0,Z_e.default)(a),o&&Object.entries(o).forEach(s=>{let[l,c]=s;const{theme:u}=c,d=zoe(c,["theme"]);let h=d;u&&(h=RK(Object.assign(Object.assign({},a),d),{override:d},u)),a[l]=h}),a};Md.getComputedToken=RK;function pjt(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=sjt.default.useContext(Hoe.DesignTokenContext),o=`${cjt.default}-${t||""}`,a=n||Hoe.defaultTheme,[s,l,c]=(0,ljt.useCacheToken)(a,[ujt.default,e],{salt:o,override:r,getComputedToken:RK,formatToken:Z_e.default,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:djt,ignore:fjt,preserve:hjt}});return[a,c,t?l:"",s,i]}var Qm={},Lo={};Object.defineProperty(Lo,"__esModule",{value:!0});Lo.textEllipsis=Lo.resetIcon=Lo.resetComponent=Lo.operationUnit=Lo.genLinkStyle=Lo.genIconStyle=Lo.genFocusStyle=Lo.genFocusOutline=Lo.genCommonStyle=Lo.clearFix=void 0;var mjt=_g;Lo.textEllipsis={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};const gjt=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}};Lo.resetComponent=gjt;const J_e=()=>({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"}});Lo.resetIcon=J_e;const vjt=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}});Lo.clearFix=vjt;const yjt=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}});Lo.genLinkStyle=yjt;const bjt=(e,t,n,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,o=n?`.${n}`:i,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},s),a),{[i]:a})}};Lo.genCommonStyle=bjt;const eEe=(e,t)=>({outline:`${(0,mjt.unit)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"});Lo.genFocusOutline=eEe;const tEe=(e,t)=>({"&:focus-visible":Object.assign({},eEe(e,t))});Lo.genFocusStyle=tEe;const Sjt=e=>({[`.${e}`]:Object.assign(Object.assign({},J_e()),{[`.${e} .${e}-icon`]:{display:"block"}})});Lo.genIconStyle=Sjt;const Cjt=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},tEe(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});Lo.operationUnit=Cjt;var xjt=va.default;Object.defineProperty(Qm,"__esModule",{value:!0});Qm.genSubStyleComponent=Qm.genStyleHooks=Qm.genComponentStyleHook=void 0;var Uoe=f,wjt=X_e,UA=xc,WA=Lo,Woe=xjt(Md);const{genStyleHooks:_jt,genComponentStyleHook:Ejt,genSubStyleComponent:Tjt}=(0,wjt.genStyleUtils)({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=(0,Uoe.useContext)(UA.ConfigContext);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=(0,Woe.default)();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e}=(0,Uoe.useContext)(UA.ConfigContext);return e??{}},getResetStyles:(e,t)=>{var n;return[{"&":(0,WA.genLinkStyle)(e)},(0,WA.genIconStyle)((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:UA.defaultIconPrefixCls)]},getCommonStyle:WA.genCommonStyle,getCompUnitless:()=>Woe.unitless});Qm.genSubStyleComponent=Tjt;Qm.genComponentStyleHook=Ejt;Qm.genStyleHooks=_jt;var AK={};Object.defineProperty(AK,"__esModule",{value:!0});AK.default=Ojt;var kjt=IK;function Ojt(e,t){return kjt.PresetColors.reduce((n,r)=>{const i=e[`${r}1`],o=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:o,darkColor:a,textColor:s}))},{})}var NM={},Pjt=Vr.default;Object.defineProperty(NM,"__esModule",{value:!0});NM.default=void 0;var Mjt=_g,Ijt=Lo,$jt=Pjt(Md);const Rjt=(e,t)=>{const[n,r]=(0,$jt.default)();return(0,Mjt.useStyleRegister)({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[(0,Ijt.genIconStyle)(e)])};NM.default=Rjt;(function(e){var t=Vr.default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DesignTokenContext",{enumerable:!0,get:function(){return u.DesignTokenContext}}),Object.defineProperty(e,"PresetColors",{enumerable:!0,get:function(){return i.PresetColors}}),Object.defineProperty(e,"calc",{enumerable:!0,get:function(){return r.genCalc}}),Object.defineProperty(e,"defaultConfig",{enumerable:!0,get:function(){return u.defaultConfig}}),Object.defineProperty(e,"genComponentStyleHook",{enumerable:!0,get:function(){return s.genComponentStyleHook}}),Object.defineProperty(e,"genPresetColor",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"genStyleHooks",{enumerable:!0,get:function(){return s.genStyleHooks}}),Object.defineProperty(e,"genSubStyleComponent",{enumerable:!0,get:function(){return s.genSubStyleComponent}}),Object.defineProperty(e,"getLineHeight",{enumerable:!0,get:function(){return o.getLineHeight}}),Object.defineProperty(e,"mergeToken",{enumerable:!0,get:function(){return r.mergeToken}}),Object.defineProperty(e,"statistic",{enumerable:!0,get:function(){return r.statistic}}),Object.defineProperty(e,"statisticToken",{enumerable:!0,get:function(){return r.statisticToken}}),Object.defineProperty(e,"useResetIconStyle",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"useStyleRegister",{enumerable:!0,get:function(){return n.useStyleRegister}}),Object.defineProperty(e,"useToken",{enumerable:!0,get:function(){return a.default}});var n=_g,r=X_e,i=IK,o=d4,a=t(Md),s=Qm,l=t(AK),c=t(NM),u=Bf})(IC);var DM={},Ajt=va.default;Object.defineProperty(DM,"__esModule",{value:!0});DM.default=void 0;var Njt=Ajt(f);const Djt=Object.assign({},Njt),{useId:Voe}=Djt,Ljt=()=>"",Fjt=typeof Voe>"u"?Ljt:Voe;DM.default=Fjt;var NK=Vr.default;Object.defineProperty(MK,"__esModule",{value:!0});MK.default=Ujt;var jjt=NK(bM),Bjt=NK(PM),Hjt=Su,Koe=IC,zjt=NK(DM);function Ujt(e,t,n){var r;(0,Hjt.devUseWarning)("ConfigProvider");const i=e||{},o=i.inherit===!1||!t?Object.assign(Object.assign({},Koe.defaultConfig),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Koe.defaultConfig.hashed,cssVar:t==null?void 0:t.cssVar}):t,a=(0,zjt.default)();return(0,jjt.default)(()=>{var s,l;if(!e)return t;const c=Object.assign({},o.components);Object.keys(e.components||{}).forEach(h=>{c[h]=Object.assign(Object.assign({},c[h]),e.components[h])});const u=`css-var-${a.replace(/:/g,"")}`,d=((s=i.cssVar)!==null&&s!==void 0?s:o.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof o.cssVar=="object"?o.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((l=i.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},o),i),{token:Object.assign(Object.assign({},o.token),i.token),components:c,cssVar:d})},[i,o],(s,l)=>s.some((c,u)=>{const d=l[u];return!(0,Bjt.default)(c,d,!0)}))}var DK={};const Wjt=K_(CBe);var Vjt=va.default;Object.defineProperty(DK,"__esModule",{value:!0});DK.default=Gjt;var qoe=Vjt(f),Kjt=Wjt,qjt=IC;function Gjt(e){const{children:t}=e,[,n]=(0,qjt.useToken)(),{motion:r}=n,i=qoe.useRef(!1);return i.current=i.current||r===!1,i.current?qoe.createElement(Kjt.Provider,{motion:r},t):t}var LM={},Yjt=va.default;Object.defineProperty(LM,"__esModule",{value:!0});LM.default=void 0;Yjt(f);LM.default=()=>null;var nEe={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.useResetIconStyle}});var t=IC})(nEe);(function(e){"use client";var t=Vr.default,n=va.default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ConfigConsumer",{enumerable:!0,get:function(){return v.ConfigConsumer}}),Object.defineProperty(e,"ConfigContext",{enumerable:!0,get:function(){return v.ConfigContext}}),Object.defineProperty(e,"Variants",{enumerable:!0,get:function(){return v.Variants}}),e.default=e.configConsumerProps=void 0,Object.defineProperty(e,"defaultIconPrefixCls",{enumerable:!0,get:function(){return v.defaultIconPrefixCls}}),Object.defineProperty(e,"defaultPrefixCls",{enumerable:!0,get:function(){return v.defaultPrefixCls}}),e.warnContext=e.globalConfig=void 0;var r=n(f),i=_g,o=t(OC),a=t(bM),s=SM,l=n(Su),c=t(CM),u=n(z_e),d=t(MC),h=t(Lv),p=Bf,m=t(Yf),v=xc,y=kM,S=Iv,b=t(OM),C=t(MK),_=t(DK),T=t(LM),x=n($v),E=t(nEe),k=function(B,V){var G={};for(var ie in B)Object.prototype.hasOwnProperty.call(B,ie)&&V.indexOf(ie)<0&&(G[ie]=B[ie]);if(B!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,ie=Object.getOwnPropertySymbols(B);ce<ie.length;ce++)V.indexOf(ie[ce])<0&&Object.prototype.propertyIsEnumerable.call(B,ie[ce])&&(G[ie[ce]]=B[ie[ce]]);return G};e.warnContext=null,e.configConsumerProps=["getTargetContainer","getPopupContainer","rootPrefixCls","getPrefixCls","renderEmpty","csp","autoInsertSpaceInButton","locale"];const M=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let P,D,R,A;function H(){return P||v.defaultPrefixCls}function F(){return D||v.defaultIconPrefixCls}function z(B){return Object.keys(B).some(V=>V.endsWith("Color"))}const W=B=>{const{prefixCls:V,iconPrefixCls:G,theme:ie,holderRender:ce}=B;V!==void 0&&(P=V),G!==void 0&&(D=G),"holderRender"in B&&(A=ce),ie&&(z(ie)?(0,y.registerTheme)(H(),ie):R=ie)},q=()=>({getPrefixCls:(B,V)=>V||(B?`${H()}-${B}`:H()),getIconPrefixCls:F,getRootPrefixCls:()=>P||H(),getTheme:()=>R,holderRender:A});e.globalConfig=q;const Z=B=>{const{children:V,csp:G,autoInsertSpaceInButton:ie,alert:ce,anchor:fe,form:ee,locale:ne,componentSize:ue,direction:ye,space:me,splitter:pe,virtual:he,dropdownMatchSelectWidth:_e,popupMatchSelectWidth:le,popupOverflow:xe,legacyLocale:we,parentContext:De,iconPrefixCls:Fe,theme:Ce,componentDisabled:Te,segmented:ke,statistic:Pe,spin:Ne,calendar:We,carousel:Q,cascader:K,collapse:J,typography:be,checkbox:Oe,descriptions:Se,divider:Ke,drawer:tt,skeleton:se,steps:ze,image:Ye,layout:Ue,list:Je,mentions:Ze,modal:rt,progress:qt,result:St,slider:Ot,breadcrumb:Bt,menu:Dt,pagination:an,input:Vt,textArea:Kt,empty:Qt,badge:et,radio:ot,rate:Qe,switch:ut,transfer:Nt,avatar:Lt,message:Zt,tag:Wt,table:At,card:$t,tabs:Gt,timeline:Ft,timePicker:cn,upload:_t,notification:jt,tree:nn,colorPicker:Ht,datePicker:Tt,rangePicker:gt,flex:Ve,wave:Yt,dropdown:mt,warning:Mt,tour:zt,tooltip:Dn,popover:Qn,popconfirm:O,floatButtonGroup:j,variant:oe,inputNumber:Ae,treeSelect:Ge}=B,ft=r.useCallback((bn,Cn)=>{const{prefixCls:nr}=B;if(Cn)return Cn;const Ir=nr||De.getPrefixCls("");return bn?`${Ir}-${bn}`:Ir},[De.getPrefixCls,B.prefixCls]),Jt=Fe||De.iconPrefixCls||v.defaultIconPrefixCls,on=G||De.csp;(0,E.default)(Jt,on);const Zn=(0,C.default)(Ce,De.theme,{prefixCls:ft("")}),ni={csp:on,autoInsertSpaceInButton:ie,alert:ce,anchor:fe,locale:ne||we,direction:ye,space:me,splitter:pe,virtual:he,popupMatchSelectWidth:le??_e,popupOverflow:xe,getPrefixCls:ft,iconPrefixCls:Jt,theme:Zn,segmented:ke,statistic:Pe,spin:Ne,calendar:We,carousel:Q,cascader:K,collapse:J,typography:be,checkbox:Oe,descriptions:Se,divider:Ke,drawer:tt,skeleton:se,steps:ze,image:Ye,input:Vt,textArea:Kt,layout:Ue,list:Je,mentions:Ze,modal:rt,progress:qt,result:St,slider:Ot,breadcrumb:Bt,menu:Dt,pagination:an,empty:Qt,badge:et,radio:ot,rate:Qe,switch:ut,transfer:Nt,avatar:Lt,message:Zt,tag:Wt,table:At,card:$t,tabs:Gt,timeline:Ft,timePicker:cn,upload:_t,notification:jt,tree:nn,colorPicker:Ht,datePicker:Tt,rangePicker:gt,flex:Ve,wave:Yt,dropdown:mt,warning:Mt,tour:zt,tooltip:Dn,popover:Qn,popconfirm:O,floatButtonGroup:j,variant:oe,inputNumber:Ae,treeSelect:Ge},zr=Object.assign({},De);Object.keys(ni).forEach(bn=>{ni[bn]!==void 0&&(zr[bn]=ni[bn])}),M.forEach(bn=>{const Cn=B[bn];Cn&&(zr[bn]=Cn)}),typeof ie<"u"&&(zr.button=Object.assign({autoInsertSpace:ie},zr.button));const Yr=(0,a.default)(()=>zr,zr,(bn,Cn)=>{const nr=Object.keys(bn),Ir=Object.keys(Cn);return nr.length!==Ir.length||nr.some(li=>bn[li]!==Cn[li])}),Rr=r.useMemo(()=>({prefixCls:Jt,csp:on}),[Jt,on]);let wn=r.createElement(r.Fragment,null,r.createElement(T.default,{dropdownMatchSelectWidth:_e}),V);const Pn=r.useMemo(()=>{var bn,Cn,nr,Ir;return(0,s.merge)(((bn=h.default.Form)===null||bn===void 0?void 0:bn.defaultValidateMessages)||{},((nr=(Cn=Yr.locale)===null||Cn===void 0?void 0:Cn.Form)===null||nr===void 0?void 0:nr.defaultValidateMessages)||{},((Ir=Yr.form)===null||Ir===void 0?void 0:Ir.validateMessages)||{},(ee==null?void 0:ee.validateMessages)||{})},[Yr,ee==null?void 0:ee.validateMessages]);Object.keys(Pn).length>0&&(wn=r.createElement(c.default.Provider,{value:Pn},wn)),ne&&(wn=r.createElement(u.default,{locale:ne,_ANT_MARK__:u.ANT_MARK},wn)),(Jt||on)&&(wn=r.createElement(o.default.Provider,{value:Rr},wn)),ue&&(wn=r.createElement(x.SizeContextProvider,{size:ue},wn)),wn=r.createElement(_.default,null,wn);const Ar=r.useMemo(()=>{const bn=Zn||{},{algorithm:Cn,token:nr,components:Ir,cssVar:li}=bn,Ui=k(bn,["algorithm","token","components","cssVar"]),gr=Cn&&(!Array.isArray(Cn)||Cn.length>0)?(0,i.createTheme)(Cn):p.defaultTheme,Di={};Object.entries(Ir||{}).forEach(xn=>{let[zn,Gn]=xn;const ir=Object.assign({},Gn);"algorithm"in ir&&(ir.algorithm===!0?ir.theme=gr:(Array.isArray(ir.algorithm)||typeof ir.algorithm=="function")&&(ir.theme=(0,i.createTheme)(ir.algorithm)),delete ir.algorithm),Di[zn]=ir});const fr=Object.assign(Object.assign({},m.default),nr);return Object.assign(Object.assign({},Ui),{theme:gr,token:fr,components:Di,override:Object.assign({override:fr},Di),cssVar:li})},[Zn]);return Ce&&(wn=r.createElement(p.DesignTokenContext.Provider,{value:Ar},wn)),Yr.warning&&(wn=r.createElement(l.WarningContext.Provider,{value:Yr.warning},wn)),Te!==void 0&&(wn=r.createElement(S.DisabledContextProvider,{disabled:Te},wn)),r.createElement(v.ConfigContext.Provider,{value:Yr},wn)},N=B=>{const V=r.useContext(v.ConfigContext),G=r.useContext(d.default);return r.createElement(Z,Object.assign({parentContext:V,legacyLocale:G},B))};N.ConfigContext=v.ConfigContext,N.SizeContext=x.default,N.config=W,N.useConfig=b.default,Object.defineProperty(N,"SizeContext",{get:()=>x.default}),e.default=N})(CK);var h4={},Xjt=va.default;Object.defineProperty(h4,"__esModule",{value:!0});h4.LayoutContext=void 0;var Qjt=Xjt(f);h4.LayoutContext=Qjt.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var LK={},FK={},jK={},Zjt=Vr.default;Object.defineProperty(jK,"__esModule",{value:!0});jK.default=rBt;var Jjt=Zjt(Fv),eBt=Symbol.for("react.element"),tBt=Symbol.for("react.transitional.element"),nBt=Symbol.for("react.fragment");function rBt(e){return e&&(0,Jjt.default)(e)==="object"&&(e.$$typeof===eBt||e.$$typeof===tBt)&&e.type===nBt}var rEe=Vr.default;Object.defineProperty(FK,"__esModule",{value:!0});FK.default=xB;var iBt=rEe(jK),oBt=rEe(f);function xB(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return oBt.default.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(xB(r)):(0,iBt.default)(r)&&r.props?n=n.concat(xB(r.props.children,t)):n.push(r))}),n}var mS={},wB={exports:{}},FM={},BK={};Object.defineProperty(BK,"__esModule",{value:!0});var aBt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};BK.default=aBt;var sBt=va.default,HK=Vr.default;Object.defineProperty(FM,"__esModule",{value:!0});FM.default=void 0;var lBt=HK(XP),iEe=sBt(f),cBt=HK(BK),uBt=HK(kC),dBt=function(t,n){return iEe.createElement(uBt.default,(0,lBt.default)({},t,{ref:n,icon:cBt.default}))},fBt=iEe.forwardRef(dBt);FM.default=fBt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(FM);function r(o){return o&&o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(wB,wB.exports);var hBt=wB.exports,_B={exports:{}},jM={},zK={};Object.defineProperty(zK,"__esModule",{value:!0});var pBt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};zK.default=pBt;var mBt=va.default,UK=Vr.default;Object.defineProperty(jM,"__esModule",{value:!0});jM.default=void 0;var gBt=UK(XP),oEe=mBt(f),vBt=UK(zK),yBt=UK(kC),bBt=function(t,n){return oEe.createElement(yBt.default,(0,gBt.default)({},t,{ref:n,icon:vBt.default}))},SBt=oEe.forwardRef(bBt);jM.default=SBt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(jM);function r(o){return o&&o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(_B,_B.exports);var CBt=_B.exports,EB={exports:{}},BM={},WK={};Object.defineProperty(WK,"__esModule",{value:!0});var xBt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};WK.default=xBt;var wBt=va.default,VK=Vr.default;Object.defineProperty(BM,"__esModule",{value:!0});BM.default=void 0;var _Bt=VK(XP),aEe=wBt(f),EBt=VK(WK),TBt=VK(kC),kBt=function(t,n){return aEe.createElement(TBt.default,(0,_Bt.default)({},t,{ref:n,icon:EBt.default}))},OBt=aEe.forwardRef(kBt);BM.default=OBt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(BM);function r(o){return o&&o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(EB,EB.exports);var PBt=EB.exports,HM={},np={};Object.defineProperty(np,"__esModule",{value:!0});np.prepareComponentToken=np.default=np.DEPRECATED_TOKENS=void 0;var MBt=_g,IBt=IC;const $Bt=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:o,headerPadding:a,headerColor:s,footerPadding:l,fontSize:c,bodyBg:u,headerBg:d}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:u,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:o,padding:a,color:s,lineHeight:(0,MBt.unit)(o),background:d,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:l,color:r,fontSize:c,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},sEe=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:o,marginXXS:a,colorTextLightSolid:s,colorBgContainer:l}=e,c=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${c}px`,headerColor:i,footerPadding:`${o}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+a*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:i}};np.prepareComponentToken=sEe;const RBt=np.DEPRECATED_TOKENS=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];np.default=(0,IBt.genStyleHooks)("Layout",e=>[$Bt(e)],sEe,{deprecatedTokens:RBt});Object.defineProperty(HM,"__esModule",{value:!0});HM.default=void 0;var Xx=_g,Goe=np,ABt=IC;const NBt=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:o,triggerHeight:a,triggerColor:s,triggerBg:l,headerHeight:c,zeroTriggerWidth:u,zeroTriggerHeight:d,borderRadiusLG:h,lightSiderBg:p,lightTriggerColor:m,lightTriggerBg:v,bodyBg:y}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:a},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${o}-menu${o}-menu-inline-collapsed`]:{width:"auto"}},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:s,lineHeight:(0,Xx.unit)(a),textAlign:"center",background:l,cursor:"pointer",transition:`all ${r}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:c,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:d,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${(0,Xx.unit)(h)} ${(0,Xx.unit)(h)} 0`,cursor:"pointer",transition:`background ${i} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${i}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${(0,Xx.unit)(h)} 0 0 ${(0,Xx.unit)(h)}`}}},"&-light":{background:p,[`${t}-trigger`]:{color:m,background:v},[`${t}-zero-width-trigger`]:{color:m,background:v,border:`1px solid ${y}`,borderInlineStart:0}}}}};HM.default=(0,ABt.genStyleHooks)(["Layout","Sider"],e=>[NBt(e)],Goe.prepareComponentToken,{deprecatedTokens:Goe.DEPRECATED_TOKENS});var $C=Vr.default,DBt=va.default;Object.defineProperty(mS,"__esModule",{value:!0});mS.default=mS.SiderContext=void 0;var Mh=DBt(f),hc=Mh,LBt=$C(hBt),Yoe=$C(CBt),Xoe=$C(PBt),Qoe=$C(Z6),FBt=$C(yM),jBt=CK,BBt=h4,HBt=$C(HM),zBt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Zoe={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},UBt=e=>!Number.isNaN(Number.parseFloat(e))&&isFinite(e),WBt=mS.SiderContext=hc.createContext({}),VBt=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),KBt=hc.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:o,defaultCollapsed:a=!1,theme:s="dark",style:l={},collapsible:c=!1,reverseArrow:u=!1,width:d=200,collapsedWidth:h=80,zeroWidthTriggerStyle:p,breakpoint:m,onCollapse:v,onBreakpoint:y}=e,S=zBt(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:b}=(0,Mh.useContext)(BBt.LayoutContext),[C,_]=(0,Mh.useState)("collapsed"in e?e.collapsed:a),[T,x]=(0,Mh.useState)(!1);(0,Mh.useEffect)(()=>{"collapsed"in e&&_(e.collapsed)},[e.collapsed]);const E=(ne,ue)=>{"collapsed"in e||_(ne),v==null||v(ne,ue)},{getPrefixCls:k,direction:M}=(0,Mh.useContext)(jBt.ConfigContext),P=k("layout-sider",n),[D,R,A]=(0,HBt.default)(P),H=(0,Mh.useRef)(null);H.current=ne=>{x(ne.matches),y==null||y(ne.matches),C!==ne.matches&&E(ne.matches,"responsive")},(0,Mh.useEffect)(()=>{function ne(ye){return H.current(ye)}let ue;if(typeof window<"u"){const{matchMedia:ye}=window;if(ye&&m&&m in Zoe){ue=ye(`screen and (max-width: ${Zoe[m]})`);try{ue.addEventListener("change",ne)}catch{ue.addListener(ne)}ne(ue)}}return()=>{try{ue==null||ue.removeEventListener("change",ne)}catch{ue==null||ue.removeListener(ne)}}},[m]),(0,Mh.useEffect)(()=>{const ne=VBt("ant-sider-");return b.addSider(ne),()=>b.removeSider(ne)},[]);const F=()=>{E(!C,"clickTrigger")},z=(0,FBt.default)(S,["collapsed"]),W=C?h:d,q=UBt(W)?`${W}px`:String(W),Z=parseFloat(String(h||0))===0?hc.createElement("span",{onClick:F,className:(0,Qoe.default)(`${P}-zero-width-trigger`,`${P}-zero-width-trigger-${u?"right":"left"}`),style:p},i||hc.createElement(LBt.default,null)):null,N=M==="rtl"==!u,G={expanded:N?hc.createElement(Xoe.default,null):hc.createElement(Yoe.default,null),collapsed:N?hc.createElement(Yoe.default,null):hc.createElement(Xoe.default,null)}[C?"collapsed":"expanded"],ie=i!==null?Z||hc.createElement("div",{className:`${P}-trigger`,onClick:F,style:{width:q}},i||G):null,ce=Object.assign(Object.assign({},l),{flex:`0 0 ${q}`,maxWidth:q,minWidth:q,width:q}),fe=(0,Qoe.default)(P,`${P}-${s}`,{[`${P}-collapsed`]:!!C,[`${P}-has-trigger`]:c&&i!==null&&!Z,[`${P}-below`]:!!T,[`${P}-zero-width`]:parseFloat(q)===0},r,R,A),ee=hc.useMemo(()=>({siderCollapsed:C}),[C]);return D(hc.createElement(WBt.Provider,{value:ee},hc.createElement("aside",Object.assign({className:fe},z,{style:ce,ref:t}),hc.createElement("div",{className:`${P}-children`},o),c||T&&Z?ie:null)))});mS.default=KBt;var lEe=Vr.default;Object.defineProperty(LK,"__esModule",{value:!0});LK.default=YBt;var qBt=lEe(FK),GBt=lEe(mS);function YBt(e,t,n){return typeof n=="boolean"?n:e.length?!0:(0,qBt.default)(t).some(i=>i.type===GBt.default)}var zM,UM,XBt=va.default,p4=Vr.default;Object.defineProperty(Xh,"__esModule",{value:!0});Xh.default=Xh.Header=UM=Xh.Footer=zM=Xh.Content=void 0;var QBt=p4(D_e),lu=XBt(f),cEe=p4(Z6),ZBt=p4(yM),TB=CK,JBt=h4,eHt=p4(LK),uEe=p4(np),dEe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function WM(e){let{suffixCls:t,tagName:n,displayName:r}=e;return i=>lu.forwardRef((a,s)=>lu.createElement(i,Object.assign({ref:s,suffixCls:t,tagName:n},a)))}const KK=lu.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:o}=e,a=dEe(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=lu.useContext(TB.ConfigContext),l=s("layout",n),[c,u,d]=(0,uEe.default)(l),h=r?`${l}-${r}`:l;return c(lu.createElement(o,Object.assign({className:(0,cEe.default)(n||h,i,u,d),ref:t},a)))}),tHt=lu.forwardRef((e,t)=>{const{direction:n}=lu.useContext(TB.ConfigContext),[r,i]=lu.useState([]),{prefixCls:o,className:a,rootClassName:s,children:l,hasSider:c,tagName:u,style:d}=e,h=dEe(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),p=(0,ZBt.default)(h,["suffixCls"]),{getPrefixCls:m,layout:v}=lu.useContext(TB.ConfigContext),y=m("layout",o),S=(0,eHt.default)(r,l,c),[b,C,_]=(0,uEe.default)(y),T=(0,cEe.default)(y,{[`${y}-has-sider`]:S,[`${y}-rtl`]:n==="rtl"},v==null?void 0:v.className,a,s,C,_),x=lu.useMemo(()=>({siderHook:{addSider:E=>{i(k=>[].concat((0,QBt.default)(k),[E]))},removeSider:E=>{i(k=>k.filter(M=>M!==E))}}}),[]);return b(lu.createElement(JBt.LayoutContext.Provider,{value:x},lu.createElement(u,Object.assign({ref:t,className:T,style:Object.assign(Object.assign({},v==null?void 0:v.style),d)},p),l)))}),nHt=WM({tagName:"div",displayName:"Layout"})(tHt);Xh.Header=WM({suffixCls:"header",tagName:"header",displayName:"Header"})(KK);UM=Xh.Footer=WM({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(KK);zM=Xh.Content=WM({suffixCls:"content",tagName:"main",displayName:"Content"})(KK);Xh.default=nHt;function m4(){const{isDarkMode:e}=Ffe(),{token:t}=ol.useToken(),n={borderRight:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#eee"},r=260,i={borderBottom:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#eee"},o={borderLeft:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#eee"},a={minHeight:120,overflowY:"auto"},s={height:20,fontSize:12,backgroundColor:t.colorBgContainer,color:t.colorText};return{leftSiderStyle:n,leftSiderWidth:r,headerStyle:i,rightSiderStyle:o,contentStyle:a,footerStyle:s}}const{Header:rHt,Sider:iHt,Content:oHt}=Co,fEe=()=>{const e=ro(),{isLoggedIn:t,hasRoleAgent:n}=f.useContext(Ks),r=as(),{headerStyle:i,leftSiderStyle:o,leftSiderWidth:a,contentStyle:s}=m4(),l=pg(h=>h.currentOrg),[c,u]=f.useState([]);f.useEffect(()=>{const h=[{label:e.formatMessage({id:"setting.menu.title",defaultMessage:"设置"}),key:"setting",children:[{label:e.formatMessage({id:"setting.menu.profile",defaultMessage:"个人信息"}),key:"profile"},{label:e.formatMessage({id:"setting.menu.basic",defaultMessage:"基本设置"}),key:"basic"}]}];u(h)},[e]),f.useEffect(()=>{var v,y,S,b;if(!t||(l==null?void 0:l.uid)===""||!n)return;const h=[...c];if(h.length===0)return;const p={label:e.formatMessage({id:"setting.menu.agent",defaultMessage:"客服设置"}),key:"agentProfile"};((y=(v=h[0])==null?void 0:v.children)==null?void 0:y.some(C=>C.key===p.key))||((b=(S=h[0])==null?void 0:S.children)==null||b.splice(1,0,p),u(h))},[l,c,e,t,n]),f.useEffect(()=>{if(!hv)return;const h=[...c];if(h.length===0)return;h.some(m=>m.key==="model")||(h.push({label:e.formatMessage({id:"setting.menu.model",defaultMessage:"大模型"}),key:"model"}),u(h))},[c,e]);const d=h=>{console.log(e.formatMessage({id:"setting.menu.click",defaultMessage:"Menu clicked"}),h),r("/setting/"+h.key)};return U.jsxs(Co,{children:[U.jsx(iHt,{style:o,width:a,children:U.jsx(Zd,{mode:"inline",onClick:d,defaultSelectedKeys:["profile"],defaultOpenKeys:["setting"],items:c})}),U.jsxs(Co,{children:[U.jsx(rHt,{style:i,children:e.formatMessage({id:"menu.dashboard.mine"})}),U.jsx(oHt,{style:s,children:U.jsx(MP,{})})]})]})},hEe=Uc()(Vd(Kd(qd((e,t)=>({newfriends:[],devices:[],groups:[],channels:[],members:[],friends:[],currentContact:{type:"",device:{uid:""}},memberSelf:{type:"",member:{uid:""}},addNewfriend(n){console.log("addNewfriend",n)},addDevice(n){var r;if(n.type===_fe){const i=t().devices.some(o=>o.device.uid===n.device.uid);e(i?{devices:[n,...t().devices.filter(o=>o.device.uid!==n.device.uid)]}:{devices:[n,...t().devices]}),((r=t().currentContact.device)==null?void 0:r.uid)===n.device.uid&&e({currentContact:n})}},addGroup(n){console.log("addGroup",n)},addChannel(n){console.log("addChannel",n)},addMember(n){if(n.type===gOe){const r=t().members.some(i=>i.member.uid===n.member.uid);e(r?{members:[n,...t().members.filter(i=>i.member.uid!==n.member.uid)]}:{members:[...t().members,n]})}},addFriend(n){console.log("addFriend",n)},setCurrentContact:n=>{e({currentContact:n})},setMemberSelf:n=>{e({memberSelf:n})},resetContactInfo(){e({newfriends:[],devices:[],groups:[],channels:[],members:[],friends:[],currentContact:{type:"",device:{uid:""}},memberSelf:{type:"",member:{uid:""}}})}})),{name:cOe}))),aHt=Uc()(Vd(Kd(qd((e,t)=>({currentMember:{nickname:"",user:{uid:"",avatar:""}},memberSelf:{nickname:"",user:{uid:"",avatar:""}},memberResult:{data:{content:[]}},setCurrentMember(n){e({currentMember:n})},setMemberSelf(n){e({memberSelf:n})},setMemberResult:n=>{e({memberResult:n})},resetMembers:()=>e({currentMember:{nickname:"",user:{uid:"",avatar:""}},memberSelf:{nickname:"",user:{uid:"",avatar:""}}})})),{name:sOe}))),pEe=Uc()(Vd(Kd(qd((e,t)=>({workgroupResult:{data:{content:[]}},workgroupInfo:{uid:"",orgUid:""},insertWorkgroup(n){e(r=>{r.workgroupResult.data.content.unshift(n)})},updateWorkgroup(n){e(r=>{const i=r.workgroupResult.data.content,o=i.findIndex(a=>a.uid===n.uid);o!==-1?i[o]=n:console.warn(`Workgroup with uid ${n.uid} not found.`)})},deleteWorkgroup(n){e(r=>{const i=r.workgroupResult.data.content,o=i.findIndex(a=>a.uid===n.uid);o!==-1?i.splice(o,1):console.warn(`Workgroup with uid ${n.uid} not found.`)})},setWorkgroupResult:n=>{e({workgroupResult:n})},setWorkgroupInfo(n){e({workgroupInfo:n})},deleteWorkgroupInfo(n){const r=t().workgroupResult.data.content,i=r.findIndex(o=>o.uid===n);i!==-1?e({workgroupResult:{...t().workgroupResult,data:{content:[...r.slice(0,i),...r.slice(i+1)]}}}):console.warn("Workgroup not found in cache:",n),t().workgroupInfo.uid===n&&e({workgroupInfo:{uid:"",orgUid:""}})},resetWorkgroupInfo(){e({workgroupResult:{data:{content:[]}},workgroupInfo:{uid:"",orgUid:""}})}})),{name:mOe}))),sHt=()=>{const e=pg(u=>u.deleteOrg),t=bd(u=>u.resetThreads),n=Tp(u=>u.resetMessageList),r=aHt(u=>u.resetMembers),i=J_(u=>u.removeAccessToken),o=Ka(u=>u.resetUserInfo),a=hEe(u=>u.resetContactInfo),s=Vv(u=>u.resetAgentInfo),l=pEe(u=>u.resetWorkgroupInfo);return{clearStorage:()=>{e(),t(),n(),r(),i(),o(),a(),s(),l()}}};function qK(){const e=J_(b=>b.accessToken),t=Ka(b=>b.userInfo),n=Vv(b=>b.agentInfo),r=vM(),[i,o]=f.useState(!1),{showNotification:a}=SK(),{translateString:s}=oh();Tp(b=>b.addMessage),bd(b=>b.updateThreadContent),f.useContext(Ks),f.useRef(!1);const l=bd(b=>b.threads),[c,u]=f.useState(l),d=f.useCallback(()=>{if(r&&e)return setInterval(()=>{console.log("useMqtt autoCheckConnection"),!mpt()&&r&&e&&v()},1e4);console.log("useMqtt autoCheckConnection isNetworkOnline:",r," accessToken:",e)},[r,e]),h=async()=>{},p=f.useRef(n==null?void 0:n.uid),m=f.useCallback(()=>{if(!i&&e)return setInterval(async()=>{p.current?h():console.log("useMqtt autoPingMessage currentUidRef.current:",p.current)},1e4);console.log("useMqtt autoPingMessage isNetworkOnline:",r," accessToken:",e)},[i,e,t,n]),v=()=>{console.log("useMqtt doConnect"),hpt({uid:t.uid,username:t.username,accessToken:e})},y=()=>{console.log("useMqtt useEffect doDisconnect"),lA()},S=b=>{var C,_;(b==null?void 0:b.type)!==qw&&((C=b==null?void 0:b.user)==null?void 0:C.uid)!==(t==null?void 0:t.uid)&&((_=b==null?void 0:b.user)==null?void 0:_.uid)!==(n==null?void 0:n.uid)&&(ADe(),console.log("playAudio"))};return f.useEffect(()=>{console.log("useMqtt useEffect isNetworkOnline",r),r?v():lA()},[r]),f.useEffect(()=>{if(n!=null&&n.uid){p.current=n==null?void 0:n.uid;const b=m();return()=>{clearInterval(b)}}else p.current=null},[n]),f.useEffect(()=>{console.log("useMqtt useEffect accessToken"),v();const b=d();return()=>{lA(),clearInterval(b)}},[e,t]),f.useEffect(()=>{console.log("useMqtt threads change"),u(l)},[l]),f.useEffect(()=>{const b=function(C){if(console.log("useMqtt handleNewMessage",C),C.type===Kw||C.type===Efe||C.type===rD||C.type===qw||C.type===Gw)return;const _=C.threadTopic,T=c.find(x=>x.topic===_);T?T.mute?console.log("useMqtt matchingThread muted",_):(console.log("useMqtt matchingThread no mute",_),a(s(CT),s(CT)),S(C)):(console.log("useMqtt matchingThread no"),a(s(CT),s(CT)),S(C))};return Dr.on(Ww,b),()=>{Dr.off(Ww)}},[c]),f.useEffect(()=>{console.log("useMqtt useEffect");const b=function(){console.log("handleMqttConnected"),o(!0)},C=function(){console.log("handleMqttDisconnected"),o(!1)};return Dr.on(q7,b),Dr.on(Y7,C),Dr.on(X7,C),Dr.on(G7,C),Dr.on(Q7,C),Dr.on(Z7,C),()=>{console.log("un - useEffect mqttDisconnect"),Dr.off(q7),Dr.off(Y7),Dr.off(X7),Dr.off(G7),Dr.off(Q7),Dr.off(Z7)}},[]),{doConnect:v,doDisconnect:y,isMqttConnected:i}}function mEe(){console.log("useEventBus");const{clearStorage:e}=sHt(),{doDisconnect:t}=qK(),{setPingLoading:n}=f.useContext(Ks),r=f.useCallback(async()=>{try{const i=await kLt();console.log("logout result:",i.data),n(!1),t(),e(),Ept()}catch(i){console.log("logout error:",i)}},[]);return f.useEffect(()=>{console.log("useEventBus useEffect");const i=function(o){console.log("token过期,强制刷新登录",o),Dr.off(Km,i),r()};return Dr.on(Km,i),()=>{console.log("un - useEffect mqttDisconnect"),Dr.off(Km)}},[]),{doLogout:r}}const gEe=()=>{const e=ro(),{isLoggedIn:t,mode:n}=f.useContext(Ks),{doLogout:r}=mEe(),[i,o]=f.useState("✅"),[a,s]=f.useState(e.formatMessage({id:"footbar.network.normal",defaultMessage:"网络正常"})),l=vM();f.useEffect(()=>{l?(o("✅"),s(e.formatMessage({id:"footbar.network.normal",defaultMessage:"网络正常"}))):(o("❌"),s(e.formatMessage({id:"footbar.network.disconnected",defaultMessage:"网络断开"})))},[l,e]);const c=U.jsx("div",{children:U.jsx("p",{children:e.formatMessage({id:"footbar.anonymous.tip",defaultMessage:"匿名状态,仅支持同一个局域网内在线设备之间通信"})})}),u=U.jsx("div",{children:U.jsx("p",{children:e.formatMessage({id:"footbar.login.tip",defaultMessage:"登录后,支持离线消息和更多功能"})})}),[d,h]=f.useState(!1),p=()=>{h(!0)},m=()=>{h(!1)},v=()=>{console.log("handleShowLoginModel"),p()},y=b=>{console.log(b),r()},S=b=>{console.log(b)};return U.jsxs(U.Fragment,{children:[U.jsx(Ma,{open:d&&!t,onOk:m,onCancel:m,footer:[U.jsx(pr,{onClick:m,children:e.formatMessage({id:"footbar.login.skip",defaultMessage:"暂不登录"})},"back")],children:U.jsx(gB,{isModel:!0})}),U.jsxs("span",{children:[!t&&U.jsxs(U.Fragment,{children:[U.jsx(Ou,{content:c,title:e.formatMessage({id:"footbar.anonymous.status",defaultMessage:"匿名状态"}),children:U.jsx("span",{className:"footerLeftButton",children:e.formatMessage({id:"footbar.anonymous.status",defaultMessage:"匿名状态"})})}),U.jsx(Ou,{content:u,children:U.jsx("span",{className:"footerLeftButton",onClick:v,children:e.formatMessage({id:"footbar.login",defaultMessage:"登录"})})})]}),t&&U.jsx(U.Fragment,{children:U.jsx(_Se,{title:e.formatMessage({id:"footbar.logout.title",defaultMessage:"退出登录"}),description:e.formatMessage({id:"footbar.logout.confirm",defaultMessage:"确定要退出登录?"}),onConfirm:y,onCancel:S,okText:e.formatMessage({id:"common.confirm",defaultMessage:"确定"}),cancelText:e.formatMessage({id:"common.cancel",defaultMessage:"取消"}),children:U.jsx("span",{className:"footerLeftButton",children:e.formatMessage({id:"footbar.logout",defaultMessage:"退出登录"})})})}),n===pv&&hv&&U.jsx("span",{style:{marginLeft:10},children:U.jsx(ea,{title:e.formatMessage({id:"footbar.serving.count",defaultMessage:"当前接待人数"}),children:U.jsx("span",{children:e.formatMessage({id:"footbar.serving.text",defaultMessage:"当前接待人数:0"})})})})]}),U.jsxs("span",{className:"footerRightButton",children:[U.jsx(ea,{title:a,children:U.jsx("span",{children:i})}),U.jsxs("span",{style:{marginLeft:"10px"},onClick:()=>S_(OOe),children:["v",RDe()]}),U.jsx("span",{style:{marginLeft:"10px"},onClick:()=>S_("https://www.weiyuai.cn/chat/iframe.html?org=df_org_uid&t=1&sid=df_wg_uid&"),children:e.formatMessage({id:"i18n.online.chat",defaultMessage:"Chat"})})]})]})},vEe=()=>{const e=as(),{userInfo:t}=BCe(),{translateString:n}=oh(),{mode:r}=f.useContext(Ks),[i,o]=f.useState(""),[a,s]=f.useState(""),[l,c]=f.useState(""),u=()=>{e("/setting")};return f.useEffect(()=>{o(n(t==null?void 0:t.nickname)),s(n(t==null?void 0:t.description)),c(t==null?void 0:t.avatar)},[r,t]),U.jsx(U.Fragment,{children:U.jsx(Ou,{title:i,content:a,placement:"rightBottom",children:U.jsx(U.Fragment,{children:U.jsx(yg,{style:{marginTop:60,cursor:"pointer"},size:40,src:l,onClick:u})})})})};function yEe(){console.log("useElectronApi");const e=as(),t=Ka(r=>r.userInfo),n=hEe(r=>r.addDevice);f.useEffect(()=>(console.log("useElectronApi useEffect"),is?(window.electronAPI.loginSuccess(),window.electronAPI.onNewWindowCreated(r=>{console.log("Dashboard onNewWindowCreated content:",r),e("/enlarge",{state:{content:r}})}),window.electronAPI.onMulticastMessage(r=>{const i=JSON.parse(r);if(i.user.uid!==t.uid){console.log("EVENT_BUS_MULTICAST_MESSAGE_RECEIVED",r);const o={type:_fe,device:i.device,user:i.user,createdAt:i.createdAt};n(o)}}),window.electronAPI.onWebSocketMessage(r=>{console.log("Dashboard onWebSocketMessage content:",r)}),window.electronAPI.onHttpMessage(r=>{console.log("Dashboard onHttpMessage content:",r)}),window.electronAPI.onNotificationMessage(r=>{if(console.log("Dashboard onNotificationMessage content:",r),r.type===Z6e){Wn.success("截图成功");const i=r.data;Dr.emit(iOe,i.toDataURL())}})):console.log("not electron - in browser"),()=>{console.log("un - useEffect"),is?(window.electronAPI.offNewWindowCreated(),window.electronAPI.offMulticastMessageAll(),window.electronAPI.offWebSocketMessageAll(),window.electronAPI.offHttpMessageAll(),window.electronAPI.offNotificationMessageAll()):console.log("not electron")}),[])}const lHt=()=>{const e=ro(),{doLogout:t}=mEe(),{isLoggedIn:n,locale:r,changeLocale:i,mode:o,changeMode:a,handleUpdateAgentStatus:s}=f.useContext(Ks),{agentInfo:l}=Vv(p=>({agentInfo:p.agentInfo})),c=[{key:"settings",label:e.formatMessage({id:"menu.settings",defaultMessage:"Settings"}),icon:U.jsx(gP,{}),children:[{key:"logout",label:e.formatMessage({id:"menu.settings.logout",defaultMessage:"Logout"})}]}],[u,d]=f.useState(c);f.useEffect(()=>{if(d(c),l.uid!==""&&o===pv){console.log("agentInfo changed",l);const p=[...c],m={key:"status",label:e.formatMessage({id:"menu.agent.status",defaultMessage:"Agent Status"}),type:"group",children:[{key:AX,icon:l.status===AX?U.jsx(ep,{}):U.jsx(U.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.available",defaultMessage:"Available"})},{key:NX,icon:l.status===NX?U.jsx(ep,{}):U.jsx(U.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.rest",defaultMessage:"Rest"})},{key:E$,icon:l.status===E$?U.jsx(ep,{}):U.jsx(U.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.offline",defaultMessage:"Offline"})}]},v=p[0].children,y=v.findIndex(S=>S.key===m.key);y!==-1?v[y]=m:v.splice(0,0,m),p[0].children=v,d(p)}},[l,r,o]);const h=async p=>{console.log("click",p.key),p.key==="logout"?t():p.key==="zh-cn"||p.key==="zh-tw"||p.key==="en"?i(p.key):p.key===rb||p.key===pv||p.key===q3?(console.log("mode",p.key),a(p.key)):(console.log("status"),p.key===E$&&xs.warning(e.formatMessage({id:"menu.agent.offline.warning",defaultMessage:"Please end all ongoing conversations before going offline"})),s(p.key))};return U.jsx(U.Fragment,{children:n?U.jsx(U.Fragment,{children:U.jsx(Zd,{inlineCollapsed:!0,onClick:h,style:{width:64,height:34},mode:"inline",items:u})}):U.jsx(U.Fragment,{})})};async function cHt(e){return Uo("/api/v1/workgroup/query/org",{method:"GET",params:{...e,client:bo}})}const bEe=()=>{const[e,t]=f.useState([]),n=new NCe;f.useEffect(()=>{(async()=>{try{const s=await n.getAllMessages();t(s)}catch(s){console.error("Error fetching messages from IndexedDB:",s)}})()},[]);const r=async a=>{try{await n.createMessage(a);const s=await n.getAllMessages();console.log("useIndexedDB createMessage newMessages: ",s),t(s)}catch(s){console.error("Error creating message in IndexedDB:",s)}},i=async(a,s)=>{try{await n.updateMessage(a,s);const l=await n.getAllMessages();t(l)}catch(l){console.error("Error updating message in IndexedDB:",l)}},o=async a=>{try{await n.deleteMessage(a);const s=await n.getAllMessages();t(s)}catch(s){console.error("Error deleting message in IndexedDB:",s)}};return f.useEffect(()=>{console.log("useIndexedDB useEffect");const a=function(s){console.log("useIndexedDB handleNewMessage",s),r(s)};return Dr.on(Ww,a),()=>{console.log("useIndexedDB useEffect return"),Dr.off(Ww,a)}},[]),{messages:e,createMessage:r,updateMessage:i,deleteMessage:o}};async function SEe(){return Uo("/api/v1/user/profile",{method:"GET",params:{client:bo}})}async function CEe(e){return Uo("/api/v1/user/update",{method:"POST",data:{...e,client:bo}})}async function uHt(e){return Uo("/api/v1/user/change/password",{method:"POST",data:{...e,client:bo}})}async function xEe(e){return Uo("/api/v1/user/change/email",{method:"POST",data:{...e,client:bo}})}async function wEe(e){return Uo("/api/v1/user/change/mobile",{method:"POST",data:{...e,client:bo}})}const dHt=()=>{const e=ro(),{locale:t,changeLocale:n}=f.useContext(Ks),r=[{key:"lang",icon:U.jsx($st,{}),label:e.formatMessage({id:"menu.language"}),children:[{key:"zh-cn",icon:t.locale==="zh-cn"?U.jsx(ep,{}):U.jsx(U.Fragment,{}),label:e.formatMessage({id:"i18n.lang.zh-CN"})},{key:"zh-tw",icon:t.locale==="zh-tw"?U.jsx(ep,{}):U.jsx(U.Fragment,{}),label:e.formatMessage({id:"i18n.lang.zh-TW"})},{key:"en",icon:t.locale==="en"?U.jsx(ep,{}):U.jsx(U.Fragment,{}),label:e.formatMessage({id:"i18n.lang.en-US"})}]}],i=o=>{const a=o.key;n(a)};return U.jsx(Zd,{inlineCollapsed:!0,onClick:i,style:{width:64,height:34},mode:"inline",items:r})};var Bl=function(){return Bl=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Bl.apply(this,arguments)};function _k(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var fHt=function(t,n,r,i){var o=r?r.call(i,t,n):void 0;if(o!==void 0)return!!o;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var a=Object.keys(t),s=Object.keys(n);if(a.length!==s.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(n),c=0;c<a.length;c++){var u=a[c];if(!l(u))return!1;var d=t[u],h=n[u];if(o=r?r.call(i,d,h,u):void 0,o===!1||o===void 0&&d!==h)return!1}return!0};const hHt=vi(fHt);var fo="-ms-",lw="-moz-",Ai="-webkit-",_Ee="comm",VM="rule",GK="decl",pHt="@import",EEe="@keyframes",mHt="@layer",TEe=Math.abs,YK=String.fromCharCode,kB=Object.assign;function gHt(e,t){return es(e,0)^45?(((t<<2^es(e,0))<<2^es(e,1))<<2^es(e,2))<<2^es(e,3):0}function kEe(e){return e.trim()}function Lh(e,t){return(e=t.exec(e))?e[0]:e}function ei(e,t,n){return e.replace(t,n)}function X8(e,t,n){return e.indexOf(t,n)}function es(e,t){return e.charCodeAt(t)|0}function gS(e,t,n){return e.slice(t,n)}function _f(e){return e.length}function OEe(e){return e.length}function M2(e,t){return t.push(e),e}function vHt(e,t){return e.map(t).join("")}function Joe(e,t){return e.filter(function(n){return!Lh(n,t)})}var KM=1,vS=1,PEe=0,Mu=0,Ea=0,RC="";function qM(e,t,n,r,i,o,a,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:KM,column:vS,length:a,return:"",siblings:s}}function fm(e,t){return kB(qM("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function uy(e){for(;e.root;)e=fm(e.root,{children:[e]});M2(e,e.siblings)}function yHt(){return Ea}function bHt(){return Ea=Mu>0?es(RC,--Mu):0,vS--,Ea===10&&(vS=1,KM--),Ea}function Id(){return Ea=Mu<PEe?es(RC,Mu++):0,vS++,Ea===10&&(vS=1,KM++),Ea}function tv(){return es(RC,Mu)}function Q8(){return Mu}function GM(e,t){return gS(RC,e,t)}function OB(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function SHt(e){return KM=vS=1,PEe=_f(RC=e),Mu=0,[]}function CHt(e){return RC="",e}function VA(e){return kEe(GM(Mu-1,PB(e===91?e+2:e===40?e+1:e)))}function xHt(e){for(;(Ea=tv())&&Ea<33;)Id();return OB(e)>2||OB(Ea)>3?"":" "}function wHt(e,t){for(;--t&&Id()&&!(Ea<48||Ea>102||Ea>57&&Ea<65||Ea>70&&Ea<97););return GM(e,Q8()+(t<6&&tv()==32&&Id()==32))}function PB(e){for(;Id();)switch(Ea){case e:return Mu;case 34:case 39:e!==34&&e!==39&&PB(Ea);break;case 40:e===41&&PB(e);break;case 92:Id();break}return Mu}function _Ht(e,t){for(;Id()&&e+Ea!==57;)if(e+Ea===84&&tv()===47)break;return"/*"+GM(t,Mu-1)+"*"+YK(e===47?e:Id())}function EHt(e){for(;!OB(tv());)Id();return GM(e,Mu)}function THt(e){return CHt(Z8("",null,null,null,[""],e=SHt(e),0,[0],e))}function Z8(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,h=0,p=0,m=0,v=1,y=1,S=1,b=0,C="",_=i,T=o,x=r,E=C;y;)switch(m=b,b=Id()){case 40:if(m!=108&&es(E,d-1)==58){X8(E+=ei(VA(b),"&","&\f"),"&\f",TEe(c?s[c-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:E+=VA(b);break;case 9:case 10:case 13:case 32:E+=xHt(m);break;case 92:E+=wHt(Q8()-1,7);continue;case 47:switch(tv()){case 42:case 47:M2(kHt(_Ht(Id(),Q8()),t,n,l),l);break;default:E+="/"}break;case 123*v:s[c++]=_f(E)*S;case 125*v:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+u:S==-1&&(E=ei(E,/\f/g,"")),p>0&&_f(E)-d&&M2(p>32?tae(E+";",r,n,d-1,l):tae(ei(E," ","")+";",r,n,d-2,l),l);break;case 59:E+=";";default:if(M2(x=eae(E,t,n,c,u,i,s,C,_=[],T=[],d,o),o),b===123)if(u===0)Z8(E,t,x,x,_,o,d,s,T);else switch(h===99&&es(E,3)===110?100:h){case 100:case 108:case 109:case 115:Z8(e,x,x,r&&M2(eae(e,x,x,0,0,i,s,C,i,_=[],d,T),T),i,T,d,s,r?_:T);break;default:Z8(E,x,x,x,[""],T,0,s,T)}}c=u=p=0,v=S=1,C=E="",d=a;break;case 58:d=1+_f(E),p=m;default:if(v<1){if(b==123)--v;else if(b==125&&v++==0&&bHt()==125)continue}switch(E+=YK(b),b*v){case 38:S=u>0?1:(E+="\f",-1);break;case 44:s[c++]=(_f(E)-1)*S,S=1;break;case 64:tv()===45&&(E+=VA(Id())),h=tv(),u=d=_f(C=E+=EHt(Q8())),b++;break;case 45:m===45&&_f(E)==2&&(v=0)}}return o}function eae(e,t,n,r,i,o,a,s,l,c,u,d){for(var h=i-1,p=i===0?o:[""],m=OEe(p),v=0,y=0,S=0;v<r;++v)for(var b=0,C=gS(e,h+1,h=TEe(y=a[v])),_=e;b<m;++b)(_=kEe(y>0?p[b]+" "+C:ei(C,/&\f/g,p[b])))&&(l[S++]=_);return qM(e,t,n,i===0?VM:s,l,c,u,d)}function kHt(e,t,n,r){return qM(e,t,n,_Ee,YK(yHt()),gS(e,2,-2),0,r)}function tae(e,t,n,r,i){return qM(e,t,n,GK,gS(e,0,r),gS(e,r+1,-1),r,i)}function MEe(e,t,n){switch(gHt(e,t)){case 5103:return Ai+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ai+e+e;case 4789:return lw+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ai+e+lw+e+fo+e+e;case 5936:switch(es(e,t+11)){case 114:return Ai+e+fo+ei(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ai+e+fo+ei(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ai+e+fo+ei(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Ai+e+fo+e+e;case 6165:return Ai+e+fo+"flex-"+e+e;case 5187:return Ai+e+ei(e,/(\w+).+(:[^]+)/,Ai+"box-$1$2"+fo+"flex-$1$2")+e;case 5443:return Ai+e+fo+"flex-item-"+ei(e,/flex-|-self/g,"")+(Lh(e,/flex-|baseline/)?"":fo+"grid-row-"+ei(e,/flex-|-self/g,""))+e;case 4675:return Ai+e+fo+"flex-line-pack"+ei(e,/align-content|flex-|-self/g,"")+e;case 5548:return Ai+e+fo+ei(e,"shrink","negative")+e;case 5292:return Ai+e+fo+ei(e,"basis","preferred-size")+e;case 6060:return Ai+"box-"+ei(e,"-grow","")+Ai+e+fo+ei(e,"grow","positive")+e;case 4554:return Ai+ei(e,/([^-])(transform)/g,"$1"+Ai+"$2")+e;case 6187:return ei(ei(ei(e,/(zoom-|grab)/,Ai+"$1"),/(image-set)/,Ai+"$1"),e,"")+e;case 5495:case 3959:return ei(e,/(image-set\([^]*)/,Ai+"$1$`$1");case 4968:return ei(ei(e,/(.+:)(flex-)?(.*)/,Ai+"box-pack:$3"+fo+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ai+e+e;case 4200:if(!Lh(e,/flex-|baseline/))return fo+"grid-column-align"+gS(e,t)+e;break;case 2592:case 3360:return fo+ei(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,Lh(r.props,/grid-\w+-end/)})?~X8(e+(n=n[t].value),"span",0)?e:fo+ei(e,"-start","")+e+fo+"grid-row-span:"+(~X8(n,"span",0)?Lh(n,/\d+/):+Lh(n,/\d+/)-+Lh(e,/\d+/))+";":fo+ei(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Lh(r.props,/grid-\w+-start/)})?e:fo+ei(ei(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return ei(e,/(.+)-inline(.+)/,Ai+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(_f(e)-1-t>6)switch(es(e,t+1)){case 109:if(es(e,t+4)!==45)break;case 102:return ei(e,/(.+:)(.+)-([^]+)/,"$1"+Ai+"$2-$3$1"+lw+(es(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~X8(e,"stretch",0)?MEe(ei(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return ei(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,o,a,s,l,c){return fo+i+":"+o+c+(a?fo+i+"-span:"+(s?l:+l-+o)+c:"")+e});case 4949:if(es(e,t+6)===121)return ei(e,":",":"+Ai)+e;break;case 6444:switch(es(e,es(e,14)===45?18:11)){case 120:return ei(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Ai+(es(e,14)===45?"inline-":"")+"box$3$1"+Ai+"$2$3$1"+fo+"$2box$3")+e;case 100:return ei(e,":",":"+fo)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return ei(e,"scroll-","scroll-snap-")+e}return e}function Ek(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function OHt(e,t,n,r){switch(e.type){case mHt:if(e.children.length)break;case pHt:case GK:return e.return=e.return||e.value;case _Ee:return"";case EEe:return e.return=e.value+"{"+Ek(e.children,r)+"}";case VM:if(!_f(e.value=e.props.join(",")))return""}return _f(n=Ek(e.children,r))?e.return=e.value+"{"+n+"}":""}function PHt(e){var t=OEe(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}function MHt(e){return function(t){t.root||(t=t.return)&&e(t)}}function IHt(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case GK:e.return=MEe(e.value,e.length,n);return;case EEe:return Ek([fm(e,{value:ei(e.value,"@","@"+Ai)})],r);case VM:if(e.length)return vHt(n=e.props,function(i){switch(Lh(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":uy(fm(e,{props:[ei(i,/:(read-\w+)/,":"+lw+"$1")]})),uy(fm(e,{props:[i]})),kB(e,{props:Joe(n,r)});break;case"::placeholder":uy(fm(e,{props:[ei(i,/:(plac\w+)/,":"+Ai+"input-$1")]})),uy(fm(e,{props:[ei(i,/:(plac\w+)/,":"+lw+"$1")]})),uy(fm(e,{props:[ei(i,/:(plac\w+)/,fo+"input-$1")]})),uy(fm(e,{props:[i]})),kB(e,{props:Joe(n,r)});break}return""})}}var $Ht={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},mc={npm_package_dependencies_emoji_mart:"^5.6.0",npm_package_dependencies_use_debounce:"^10.0.1",NVM_INC:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/include/node",ELECTRON_MIRROR:"http://npm.taobao.org/mirrors/electron/",npm_package_devDependencies_prettier:"3.2.5",npm_package_devDependencies_electron_builder:"24.13.3",npm_package_scripts_build_mac_dmg:"tsc && vite build --mode prod && electron-builder --mac --config electron-builder-mac-dmg.yml",npm_package_dependencies_ts_protoc_gen:"^0.15.0",TERM_PROGRAM:"vscode",rvm_bin_path:"/Users/ningjinpeng/.rvm/bin",npm_package_dependencies__bytemd_plugin_breaks:"^1.21.0",npm_package_dependencies_cheerio:"^1.0.0",NODE:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin/node",npm_config_version_git_tag:"true",npm_package_homepage:"https://github.com/bytedesk/bytedesk#readme",npm_package_scripts_release_mac:"sh cicd/scripts/build-upload-mac.sh",npm_package_dependencies_axios:"^1.6.5",npm_package_dependencies_moment:"^2.30.1",npm_package_devDependencies_typescript:"^5.1.6",npm_package_devDependencies_vite_plugin_pwa:"^0.20.1",GEM_HOME:"/Users/ningjinpeng/.gem/ruby",NVM_CD_FLAGS:"-q",PYENV_ROOT:"/Users/ningjinpeng/.pyenv",INIT_CWD:"/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/apps/notebase",npm_package_scripts_build_mac_mas:"tsc && vite build --mode prod && electron-builder --mac --config electron-builder-mac-mas.yml",npm_package_devDependencies_jest:"^29.7.0",npm_package_devDependencies_vite:"^5.0.10",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shamefully_hoist:"true",npm_package_dependencies__emotion_styled:"11.11.5",npm_package_dependencies_react_infinite_scroll_component:"^6.1.0",HOMEBREW_API_DOMAIN:"https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/api",HOMEBREW_BOTTLE_DOMAIN:"https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles",npm_package_dependencies__ant_design_pro_provider:"^2.15.2",HOMEBREW_REPOSITORY:"/opt/homebrew",TMPDIR:"/var/folders/gs/yt0l6r9963zgwd7fmhn3jfg40000gn/T/",npm_config_init_license:"MIT",npm_package_dependencies__ant_design_x:"^1.0.5",npm_package_dependencies__langchain_community:"^0.2.28",npm_package_dependencies_socket_io:"^4.7.5",npm_package_locales_en_productName:"ByteDesk",npm_package_dependencies_debug:"^4.3.7",npm_package_dependencies_dompurify:"^3.0.9",npm_package_devDependencies__vitejs_plugin_react:"^4.0.4",TERM_PROGRAM_VERSION:"0.45.15",npm_package_scripts_dev:"vite --host --mode dev",npm_package_dependencies_express_rate_limit:"^7.2.0",npm_package_dependencies_uuid:"^9.0.1",CURSOR_TRACE_ID:"bd76177075e0495db76ec3f65543003c",MallocNanoZone:"0",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",ZDOTDIR:"/Users/ningjinpeng",npm_package_scripts_build_linux:"tsc && vite build --mode prod && electron-builder --linux --config electron-builder-linux.yml",TERM_SESSION_ID:"F7CF66D9-297B-4EF0-81E5-E9F0497DC0C5",npm_config_registry:"https://registry.npmmirror.com/",npm_package_private:"true",npm_package_repository_url:"git+https://github.com/bytedesk/bytedesk.git",npm_package_dependencies__ant_design_icons:"^5.6.1",npm_package_dependencies__tanstack_react_query_devtools:"^5.21.0",npm_package_dependencies_bowser:"^2.11.0",npm_package_dependencies_react_dom:"^18.2.0",PNPM_HOME:"/Users/ningjinpeng/Library/pnpm",npm_package_dependencies__ant_design_cssinjs:"^1.22.0",npm_package_dependencies_dayjs:"^1.11.11",npm_package_dependencies_react_dropzone:"^14.2.3",npm_package_readmeFilename:"README.md",OBJC_DISABLE_INITIALIZE_FORK_SAFETY:"YES",npm_package_description:"对话即服务",npm_package_debug_env_VITE_DEV_SERVER_URL:"http://127.0.0.1:9005/",npm_package_devDependencies__testing_library_react:"^14.2.2",npm_package_devDependencies_ajv:"^8.17.1",NVM_DIR:"/Users/ningjinpeng/.nvm",USER:"ningjinpeng",npm_package_license:"GNU",npm_package_devDependencies__types_react:"^18.2.20",npm_package_dependencies_intersection_observer:"^0.12.2",npm_package_dependencies_react_helmet_async:"^2.0.4",COMMAND_MODE:"unix2003",npm_package_scripts_release_open:"sh cicd/scripts/build-open.sh",npm_package_dependencies_bytemd:"^1.21.0",npm_package_scripts_release_mas:"sh cicd/scripts/build-mac-mas.sh",npm_package_dependencies_xgplayer:"^3.0.13",FLUTTER_ROOT:"/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/Users/ningjinpeng/.pyenv/shims:/Users/ningjinpeng/.pyenv/shims:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/usr/local/go/bin:/usr/local/hatch/bin:/opt/homebrew/opt/libpq/bin:/Users/ningjinpeng/.bun/bin:/Users/ningjinpeng/.gem/ruby/bin:/Users/ningjinpeng/Library/pnpm:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin:/Users/ningjinpeng/anaconda3/bin:/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/Users/ningjinpeng/.cargo/bin:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/.rvm/bin:/Applications/Docker.app/Contents/Resources/bin:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/flutter",HOMEBREW_CORE_GIT_REMOTE:"https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git",HOMEBREW_INSTALL_FROM_API:"1",rvm_path:"/Users/ningjinpeng/.rvm",npm_package_dependencies_react_virtuoso:"^4.7.1",npm_package_dependencies_zustand:"^4.4.7",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.moPnHuroYx/Listeners",npm_package_dependencies__bytemd_plugin_gemoji:"^1.21.0",npm_package_dependencies_highlight_js:"^11.11.1",npm_package_devDependencies__types_express:"^4.17.21",npm_package_devDependencies__types_jest:"^29.5.12",npm_package_devDependencies_less:"^4.2.0",npm_package_devDependencies_postcss:"^8.4.31",PUB_HOSTED_URL:"https://pub.flutter-io.cn",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_package_scripts_e2e:"playwright test",npm_execpath:"/usr/local/lib/node_modules/yarn/bin/yarn.js",npm_package_scripts_build_open:"tsc && vite build --mode open",npm_package_dependencies__bytemd_react:"^1.21.0",npm_package_author_name:"weiyuai.cn",npm_package_dependencies_react_use:"^17.5.0",npm_package_devDependencies__electron_osx_sign:"^1.3.1",npm_package_devDependencies__types_react_dom:"^18.2.7",npm_package_dependencies__bytemd_plugin_gfm:"^1.21.0",npm_package_dependencies_peerjs:"^1.5.2",npm_package_devDependencies_styled_components:"^6.1.13",rvm_prefix:"/Users/ningjinpeng",npm_package_scripts_build_web:"tsc && vite build --mode web",npm_package_dependencies__emoji_mart_react:"^1.1.1",npm_package_dependencies_immer:"^10.1.1",npm_config_argv:'{"remain":[],"cooked":["run","build:open"],"original":["build:open"]}',PATH:"/var/folders/gs/yt0l6r9963zgwd7fmhn3jfg40000gn/T/yarn--1740323167687-0.31988302781963385:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/apps/notebase/node_modules/.bin:/Users/ningjinpeng/.config/yarn/link/node_modules/.bin:/Users/ningjinpeng/.yarn/bin:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/lib/node_modules/npm/bin/node-gyp-bin:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin/node_modules/npm/bin/node-gyp-bin:/opt/homebrew/opt/libpq/bin:/Users/ningjinpeng/.bun/bin:/Users/ningjinpeng/.gem/ruby/bin:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin:/Users/ningjinpeng/.pyenv/shims:/Users/ningjinpeng/anaconda3/bin:/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/usr/local/go/bin:/usr/local/hatch/bin:/opt/homebrew/opt/libpq/bin:/Users/ningjinpeng/.bun/bin:/Users/ningjinpeng/.gem/ruby/bin:/Users/ningjinpeng/Library/pnpm:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin:/Users/ningjinpeng/anaconda3/bin:/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/Users/ningjinpeng/.cargo/bin:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/.rvm/bin:/Applications/Docker.app/Contents/Resources/bin:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/.rvm/bin:/Applications/Docker.app/Contents/Resources/bin:/usr/local/bin",npm_package_scripts_release_web:"sh cicd/scripts/build-upload.sh",npm_package_dependencies__ant_design_use_emotion_css:"1.0.4",npm_package_dependencies_electron_context_menu:"^3.6.1",LaunchInstanceID:"00CC1FB8-4298-4C99-A2C2-946C891C20A9",npm_config_auto_install_peers:"true",npm_package_dependencies_react_contexify:"^6.0.0",npm_package_dependencies_systeminformation:"^5.22.3",npm_package_devDependencies_ts_jest:"^29.1.2",__CFBundleIdentifier:"com.todesktop.230313mzl4w4u92",USER_ZDOTDIR:"/Users/ningjinpeng",npm_package_dependencies_electron_screenshots:"^0.5.26",npm_package_devDependencies_tailwindcss:"^3.3.3",PWD:"/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/apps/notebase",npm_config_nodeLinker:"node-modules",npm_package_bugs_url:"https://github.com/bytedesk/bytedesk/issues",npm_package_scripts_preview:"vite preview --host",npm_package_dependencies__bytemd_plugin_frontmatter:"^1.21.0",FLUTTER_STORAGE_BASE_URL:"https://storage.flutter-io.cn",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home",npm_package_dependencies_date_fns:"^3.3.1",npm_package_dependencies_ua_parser_js:"^1.0.37",npm_lifecycle_event:"build:open",npm_package_name:"notebase",npm_package_repository_type:"git",npm_package_dependencies_react_intl:"^6.8.9",LANG:"zh_CN.UTF-8",npm_package_scripts_build_win:"tsc && vite build --mode prod && electron-builder --win --config electron-builder-windows.yml",npm_package_scripts_pree2e:"vite build --mode=test",npm_package_dependencies_file_saver:"^2.0.5",npm_package_devDependencies_vite_plugin_electron_renderer:"^0.14.5",npm_config_version_commit_hooks:"true",npm_package_scripts_start:"vite --host --mode dev",npm_package_scripts_build:"tsc && vite build --mode prod && electron-builder",npm_package_scripts_release_win:"sh cicd/scripts/build-upload-win.sh",NODE_PATH:"/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9_less@4.2.1_lightningcss@1.22.1_sass@1.83.4_sugarss@2.0.0_terser@5.36.0/node_modules/vite/bin/node_modules:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9_less@4.2.1_lightningcss@1.22.1_sass@1.83.4_sugarss@2.0.0_terser@5.36.0/node_modules/vite/node_modules:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9_less@4.2.1_lightningcss@1.22.1_sass@1.83.4_sugarss@2.0.0_terser@5.36.0/node_modules:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/node_modules",npm_package_dependencies_menubar:"^9.4.0",npm_package_dependencies_react_router_dom:"^6.21.2",XPC_FLAGS:"0x0",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",npm_config_bin_links:"true",npm_package_dependencies__bytemd_plugin_highlight:"^1.21.0",npm_package_dependencies__types_ua_parser_js:"^0.7.39",npm_config_electron_mirror:"https://npmmirror.com/mirrors/electron/",npm_package_engines_node:">=20",npm_package_main:"dist-electron/main/index.js",npm_package_dependencies__tanstack_react_query:"^5.20.5",npm_package_dependencies_dexie:"^4.0.7",npm_package_version:"1.0.2",npm_package_dependencies__emotion_react:"11.11.4",npm_package_dependencies_node_json_db:"^2.3.1",npm_package_dependencies_winston:"^3.11.0",npm_package_dependencies_ws:"^8.16.0",XPC_SERVICE_NAME:"0",npm_package_devDependencies_autoprefixer:"^10.4.16",rvm_version:"1.29.12 (latest)",VSCODE_INJECTION:"1",npm_package_type:"module",HOME:"/Users/ningjinpeng",PYENV_SHELL:"zsh",SHLVL:"5",npm_package_dependencies_react_markdown:"^9.0.1",HOMEBREW_BREW_GIT_REMOTE:"https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git",VSCODE_GIT_ASKPASS_MAIN:"/Applications/Cursor.app/Contents/Resources/app/extensions/git/dist/askpass-main.js",npm_config_strict_ssl:"true",npm_config_save_prefix:"^",npm_package_dependencies_dotenv:"^16.4.5",npm_package_dependencies_mitt:"^3.0.1",npm_package_dependencies_openai:"^4.56.0",npm_config_version_git_message:"v%s",npm_package_dependencies__emoji_mart_data:"^1.2.1",npm_package_devDependencies_cross_env:"^7.0.3",HOMEBREW_PREFIX:"/opt/homebrew",npm_package_dependencies__bytemd_plugin_mermaid:"^1.21.0",npm_package_dependencies_react_photo_view:"^1.2.6",npm_package_devDependencies__types_web_bluetooth:"^0.0.20",npm_package_dependencies_unique_names_generator:"^4.7.1",YARN_WRAP_OUTPUT:"false",LOGNAME:"ningjinpeng",npm_package_locales_zh_CN_productName:"微语",npm_lifecycle_script:"tsc && vite build --mode open",npm_package_author_email:"270580156@qq.com",npm_package_dependencies_lodash_es:"^4.17.21",VSCODE_GIT_IPC_HANDLE:"/var/folders/gs/yt0l6r9963zgwd7fmhn3jfg40000gn/T/vscode-git-89e1e1d894.sock",npm_package_scripts_release_linux:"sh cicd/scripts/build-upload-linux.sh",npm_package_dependencies_react:"^18.2.0",npm_package_dependencies_mqtt:"^5.2.0",BUN_INSTALL:"/Users/ningjinpeng/.bun",NVM_BIN:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin",npm_config_user_agent:"yarn/1.22.17 npm/? node/v20.0.0 darwin arm64",npm_config_ignore_scripts:"",npm_config_version_git_sign:"",npm_package_dependencies_node_cmd:"^5.0.0",npm_package_dependencies_text_search_engine:"^1.1.0",npm_package_devDependencies__electron_notarize:"^2.5.0",npm_package_dependencies_socket_io_client:"^4.7.5",npm_package_devDependencies__playwright_test:"^1.37.1",npm_package_devDependencies__types_node:"^20.12.3",HOMEBREW_CELLAR:"/opt/homebrew/Cellar",INFOPATH:"/opt/homebrew/share/info:/opt/homebrew/share/info:",GIT_ASKPASS:"/Applications/Cursor.app/Contents/Resources/app/extensions/git/dist/askpass.sh",VSCODE_GIT_ASKPASS_NODE:"/Applications/Cursor.app/Contents/Frameworks/Cursor Helper (Plugin).app/Contents/MacOS/Cursor Helper (Plugin)",npm_package_dependencies_express:"^4.18.3",npm_config_ignore_optional:"",npm_config_init_version:"1.0.0",npm_package_scripts_build_quanjing:"tsc && vite build --mode quanjing",npm_package_dependencies_antd:"^5.23.2",npm_package_dependencies_langchain:"^0.2.16",npm_package_dependencies_antd_img_crop:"^4.23.0",npm_package_dependencies_electron_updater:"^6.1.1",npm_package_devDependencies_vite_plugin_electron:"^0.28.0",SECURITYSESSIONID:"186af",npm_package_dependencies__dicebear_collection:"^8.0.1",npm_package_dependencies__types_file_saver:"^2.0.7",npm_package_devDependencies_electron:"^33.2.0",npm_package_locales_zh_CN_description:"对话即服务",npm_config_version_tag_prefix:"v",npm_package_dependencies__ant_design_pro_components:"^2.6.28",npm_package_dependencies__dicebear_core:"^8.0.1",npm_package_dependencies_dexie_react_hooks:"^1.1.7",npm_package_devDependencies__testing_library_jest_dom:"^6.4.2",npm_package_locales_en_description:"Chat as a Service",npm_node_execpath:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin/node",COLORTERM:"truecolor",NODE_ENV:"production"},yS=typeof process<"u"&&mc!==void 0&&(mc.REACT_APP_SC_ATTR||mc.SC_ATTR)||"data-styled",IEe="active",$Ee="data-styled-version",YM="6.1.13",XK=`/*!sc*/
|
||
`,Tk=typeof window<"u"&&"HTMLElement"in window,RHt=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&mc!==void 0&&mc.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&mc.REACT_APP_SC_DISABLE_SPEEDY!==""?mc.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&mc.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&mc!==void 0&&mc.SC_DISABLE_SPEEDY!==void 0&&mc.SC_DISABLE_SPEEDY!==""&&mc.SC_DISABLE_SPEEDY!=="false"&&mc.SC_DISABLE_SPEEDY),XM=Object.freeze([]),bS=Object.freeze({});function AHt(e,t,n){return n===void 0&&(n=bS),e.theme!==n.theme&&e.theme||t||n.theme}var REe=new Set(["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","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","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","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),NHt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,DHt=/(^-|-$)/g;function nae(e){return e.replace(NHt,"-").replace(DHt,"")}var LHt=/(a)(d)/gi,b5=52,rae=function(e){return String.fromCharCode(e+(e>25?39:97))};function MB(e){var t,n="";for(t=Math.abs(e);t>b5;t=t/b5|0)n=rae(t%b5)+n;return(rae(t%b5)+n).replace(LHt,"$1-$2")}var KA,AEe=5381,Wy=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},NEe=function(e){return Wy(AEe,e)};function FHt(e){return MB(NEe(e)>>>0)}function jHt(e){return e.displayName||e.name||"Component"}function qA(e){return typeof e=="string"&&!0}var DEe=typeof Symbol=="function"&&Symbol.for,LEe=DEe?Symbol.for("react.memo"):60115,BHt=DEe?Symbol.for("react.forward_ref"):60112,HHt={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},zHt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},FEe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},UHt=((KA={})[BHt]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},KA[LEe]=FEe,KA);function iae(e){return("type"in(t=e)&&t.type.$$typeof)===LEe?FEe:"$$typeof"in e?UHt[e.$$typeof]:HHt;var t}var WHt=Object.defineProperty,VHt=Object.getOwnPropertyNames,oae=Object.getOwnPropertySymbols,KHt=Object.getOwnPropertyDescriptor,qHt=Object.getPrototypeOf,aae=Object.prototype;function jEe(e,t,n){if(typeof t!="string"){if(aae){var r=qHt(t);r&&r!==aae&&jEe(e,r,n)}var i=VHt(t);oae&&(i=i.concat(oae(t)));for(var o=iae(e),a=iae(t),s=0;s<i.length;++s){var l=i[s];if(!(l in zHt||n&&n[l]||a&&l in a||o&&l in o)){var c=KHt(t,l);try{WHt(e,l,c)}catch{}}}}return e}function SS(e){return typeof e=="function"}function QK(e){return typeof e=="object"&&"styledComponentId"in e}function $1(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function sae(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function R_(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function IB(e,t,n){if(n===void 0&&(n=!1),!n&&!R_(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=IB(e[r],t[r]);else if(R_(t))for(var r in t)e[r]=IB(e[r],t[r]);return e}function ZK(e,t){Object.defineProperty(e,"toString",{value:t})}function g4(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var GHt=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,i=r.length,o=i;t>=o;)if((o<<=1)<0)throw g4(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var a=i;a<o;a++)this.groupSizes[a]=0}for(var s=this.indexOfGroup(t+1),l=(a=0,n.length);a<l;a++)this.tag.insertRule(s,n[a])&&(this.groupSizes[t]++,s++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),i=r+n;this.groupSizes[t]=0;for(var o=r;o<i;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],i=this.indexOfGroup(t),o=i+r,a=i;a<o;a++)n+="".concat(this.tag.getRule(a)).concat(XK);return n},e}(),J8=new Map,kk=new Map,e3=1,S5=function(e){if(J8.has(e))return J8.get(e);for(;kk.has(e3);)e3++;var t=e3++;return J8.set(e,t),kk.set(t,e),t},YHt=function(e,t){e3=t+1,J8.set(e,t),kk.set(t,e)},XHt="style[".concat(yS,"][").concat($Ee,'="').concat(YM,'"]'),QHt=new RegExp("^".concat(yS,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),ZHt=function(e,t,n){for(var r,i=n.split(","),o=0,a=i.length;o<a;o++)(r=i[o])&&e.registerName(t,r)},JHt=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(XK),i=[],o=0,a=r.length;o<a;o++){var s=r[o].trim();if(s){var l=s.match(QHt);if(l){var c=0|parseInt(l[1],10),u=l[2];c!==0&&(YHt(u,c),ZHt(e,u,l[3]),e.getTag().insertRules(c,i)),i.length=0}else i.push(s)}}},lae=function(e){for(var t=document.querySelectorAll(XHt),n=0,r=t.length;n<r;n++){var i=t[n];i&&i.getAttribute(yS)!==IEe&&(JHt(e,i),i.parentNode&&i.parentNode.removeChild(i))}};function ezt(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var BEe=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(s){var l=Array.from(s.querySelectorAll("style[".concat(yS,"]")));return l[l.length-1]}(n),o=i!==void 0?i.nextSibling:null;r.setAttribute(yS,IEe),r.setAttribute($Ee,YM);var a=ezt();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},tzt=function(){function e(t){this.element=BEe(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,i=0,o=r.length;i<o;i++){var a=r[i];if(a.ownerNode===n)return a}throw g4(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e}(),nzt=function(){function e(t){this.element=BEe(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),rzt=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),cae=Tk,izt={isServer:!Tk,useCSSOMInjection:!RHt},HEe=function(){function e(t,n,r){t===void 0&&(t=bS),n===void 0&&(n={});var i=this;this.options=Bl(Bl({},izt),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&Tk&&cae&&(cae=!1,lae(this)),ZK(this,function(){return function(o){for(var a=o.getTag(),s=a.length,l="",c=function(d){var h=function(S){return kk.get(S)}(d);if(h===void 0)return"continue";var p=o.names.get(h),m=a.getGroup(d);if(p===void 0||!p.size||m.length===0)return"continue";var v="".concat(yS,".g").concat(d,'[id="').concat(h,'"]'),y="";p!==void 0&&p.forEach(function(S){S.length>0&&(y+="".concat(S,","))}),l+="".concat(m).concat(v,'{content:"').concat(y,'"}').concat(XK)},u=0;u<s;u++)c(u);return l}(i)})}return e.registerId=function(t){return S5(t)},e.prototype.rehydrate=function(){!this.server&&Tk&&lae(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(Bl(Bl({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(n){var r=n.useCSSOMInjection,i=n.target;return n.isServer?new rzt(i):r?new tzt(i):new nzt(i)}(this.options),new GHt(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(S5(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},e.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(S5(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(S5(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),ozt=/&/g,azt=/^\s*\/\/.*$/gm;function zEe(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=zEe(n.children,t)),n})}function szt(e){var t,n,r,i=bS,o=i.options,a=o===void 0?bS:o,s=i.plugins,l=s===void 0?XM:s,c=function(h,p,m){return m.startsWith(n)&&m.endsWith(n)&&m.replaceAll(n,"").length>0?".".concat(t):h},u=l.slice();u.push(function(h){h.type===VM&&h.value.includes("&")&&(h.props[0]=h.props[0].replace(ozt,n).replace(r,c))}),a.prefix&&u.push(IHt),u.push(OHt);var d=function(h,p,m,v){p===void 0&&(p=""),m===void 0&&(m=""),v===void 0&&(v="&"),t=v,n=p,r=new RegExp("\\".concat(n,"\\b"),"g");var y=h.replace(azt,""),S=THt(m||p?"".concat(m," ").concat(p," { ").concat(y," }"):y);a.namespace&&(S=zEe(S,a.namespace));var b=[];return Ek(S,PHt(u.concat(MHt(function(C){return b.push(C)})))),b};return d.hash=l.length?l.reduce(function(h,p){return p.name||g4(15),Wy(h,p.name)},AEe).toString():"",d}var lzt=new HEe,$B=szt(),UEe=ge.createContext({shouldForwardProp:void 0,styleSheet:lzt,stylis:$B});UEe.Consumer;ge.createContext(void 0);function uae(){return f.useContext(UEe)}var czt=function(){function e(t,n){var r=this;this.inject=function(i,o){o===void 0&&(o=$B);var a=r.name+o.hash;i.hasNameForId(r.id,a)||i.insertRules(r.id,a,o(r.rules,a,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,ZK(this,function(){throw g4(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=$B),this.name+t.hash},e}(),uzt=function(e){return e>="A"&&e<="Z"};function dae(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;uzt(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var WEe=function(e){return e==null||e===!1||e===""},VEe=function(e){var t,n,r=[];for(var i in e){var o=e[i];e.hasOwnProperty(i)&&!WEe(o)&&(Array.isArray(o)&&o.isCss||SS(o)?r.push("".concat(dae(i),":"),o,";"):R_(o)?r.push.apply(r,_k(_k(["".concat(i," {")],VEe(o),!1),["}"],!1)):r.push("".concat(dae(i),": ").concat((t=i,(n=o)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in $Ht||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function nv(e,t,n,r){if(WEe(e))return[];if(QK(e))return[".".concat(e.styledComponentId)];if(SS(e)){if(!SS(o=e)||o.prototype&&o.prototype.isReactComponent||!t)return[e];var i=e(t);return nv(i,t,n,r)}var o;return e instanceof czt?n?(e.inject(n,r),[e.getName(r)]):[e]:R_(e)?VEe(e):Array.isArray(e)?Array.prototype.concat.apply(XM,e.map(function(a){return nv(a,t,n,r)})):[e.toString()]}function dzt(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(SS(n)&&!QK(n))return!1}return!0}var fzt=NEe(YM),hzt=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=(r===void 0||r.isStatic)&&dzt(t),this.componentId=n,this.baseHash=Wy(fzt,n),this.baseStyle=r,HEe.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var i=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))i=$1(i,this.staticRulesId);else{var o=sae(nv(this.rules,t,n,r)),a=MB(Wy(this.baseHash,o)>>>0);if(!n.hasNameForId(this.componentId,a)){var s=r(o,".".concat(a),void 0,this.componentId);n.insertRules(this.componentId,a,s)}i=$1(i,a),this.staticRulesId=a}else{for(var l=Wy(this.baseHash,r.hash),c="",u=0;u<this.rules.length;u++){var d=this.rules[u];if(typeof d=="string")c+=d;else if(d){var h=sae(nv(d,t,n,r));l=Wy(l,h+u),c+=h}}if(c){var p=MB(l>>>0);n.hasNameForId(this.componentId,p)||n.insertRules(this.componentId,p,r(c,".".concat(p),void 0,this.componentId)),i=$1(i,p)}}return i},e}(),KEe=ge.createContext(void 0);KEe.Consumer;var GA={};function pzt(e,t,n){var r=QK(e),i=e,o=!qA(e),a=t.attrs,s=a===void 0?XM:a,l=t.componentId,c=l===void 0?function(_,T){var x=typeof _!="string"?"sc":nae(_);GA[x]=(GA[x]||0)+1;var E="".concat(x,"-").concat(FHt(YM+x+GA[x]));return T?"".concat(T,"-").concat(E):E}(t.displayName,t.parentComponentId):l,u=t.displayName,d=u===void 0?function(_){return qA(_)?"styled.".concat(_):"Styled(".concat(jHt(_),")")}(e):u,h=t.displayName&&t.componentId?"".concat(nae(t.displayName),"-").concat(t.componentId):t.componentId||c,p=r&&i.attrs?i.attrs.concat(s).filter(Boolean):s,m=t.shouldForwardProp;if(r&&i.shouldForwardProp){var v=i.shouldForwardProp;if(t.shouldForwardProp){var y=t.shouldForwardProp;m=function(_,T){return v(_,T)&&y(_,T)}}else m=v}var S=new hzt(n,h,r?i.componentStyle:void 0);function b(_,T){return function(x,E,k){var M=x.attrs,P=x.componentStyle,D=x.defaultProps,R=x.foldedComponentIds,A=x.styledComponentId,H=x.target,F=ge.useContext(KEe),z=uae(),W=x.shouldForwardProp||z.shouldForwardProp,q=AHt(E,F,D)||bS,Z=function(ce,fe,ee){for(var ne,ue=Bl(Bl({},fe),{className:void 0,theme:ee}),ye=0;ye<ce.length;ye+=1){var me=SS(ne=ce[ye])?ne(ue):ne;for(var pe in me)ue[pe]=pe==="className"?$1(ue[pe],me[pe]):pe==="style"?Bl(Bl({},ue[pe]),me[pe]):me[pe]}return fe.className&&(ue.className=$1(ue.className,fe.className)),ue}(M,E,q),N=Z.as||H,B={};for(var V in Z)Z[V]===void 0||V[0]==="$"||V==="as"||V==="theme"&&Z.theme===q||(V==="forwardedAs"?B.as=Z.forwardedAs:W&&!W(V,N)||(B[V]=Z[V]));var G=function(ce,fe){var ee=uae(),ne=ce.generateAndInjectStyles(fe,ee.styleSheet,ee.stylis);return ne}(P,Z),ie=$1(R,A);return G&&(ie+=" "+G),Z.className&&(ie+=" "+Z.className),B[qA(N)&&!REe.has(N)?"class":"className"]=ie,B.ref=k,f.createElement(N,B)}(C,_,T)}b.displayName=d;var C=ge.forwardRef(b);return C.attrs=p,C.componentStyle=S,C.displayName=d,C.shouldForwardProp=m,C.foldedComponentIds=r?$1(i.foldedComponentIds,i.styledComponentId):"",C.styledComponentId=h,C.target=r?i.target:e,Object.defineProperty(C,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(_){this._foldedDefaultProps=r?function(T){for(var x=[],E=1;E<arguments.length;E++)x[E-1]=arguments[E];for(var k=0,M=x;k<M.length;k++)IB(T,M[k],!0);return T}({},i.defaultProps,_):_}}),ZK(C,function(){return".".concat(C.styledComponentId)}),o&&jEe(C,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),C}function fae(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}var hae=function(e){return Object.assign(e,{isCss:!0})};function mzt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(SS(e)||R_(e))return hae(nv(fae(XM,_k([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?nv(r):hae(nv(fae(r,t)))}function RB(e,t,n){if(n===void 0&&(n=bS),!t)throw g4(1,t);var r=function(i){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];return e(t,n,mzt.apply(void 0,_k([i],o,!1)))};return r.attrs=function(i){return RB(e,t,Bl(Bl({},n),{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},r.withConfig=function(i){return RB(e,t,Bl(Bl({},n),i))},r}var qEe=function(e){return RB(pzt,e)},mi=qEe;REe.forEach(function(e){mi[e]=qEe(e)});const gzt=[{id:"1",name:"开源版文档",description:"notebase-doc开源版文档",type:"public",coverImage:"/notebase/images/spaces/opensource.jpg",starred:!0,parentId:null,createdAt:"2024-01-01",updatedAt:"2024-01-24",createdBy:"1",memberCount:10,documentCount:25},{id:"2",name:"商业版文档",description:"notebase-doc商业版文档",type:"public",coverImage:"/notebase/images/spaces/commercial.jpg",starred:!1,parentId:null,createdAt:"2024-01-01",updatedAt:"2024-01-24",createdBy:"1",memberCount:5,documentCount:15},{id:"3",name:"使用帮助",description:"notebase-doc使用帮助",type:"public",coverImage:"/notebase/images/spaces/help.jpg",starred:!1,parentId:null,createdAt:"2024-01-01",updatedAt:"2024-01-24",createdBy:"1",memberCount:3,documentCount:10},{id:"4",name:"付费知识库",description:"演示知识库付费阅读功能",type:"private",coverImage:"/notebase/images/spaces/paid.jpg",starred:!1,parentId:null,createdAt:"2024-01-01",updatedAt:"2024-01-24",createdBy:"1",memberCount:2,documentCount:5}],QM=Uc((e,t)=>({spaces:[],currentSpace:null,setSpaces:n=>e({spaces:n}),setCurrentSpace:n=>e({currentSpace:n}),fetchSpaces:async()=>{await new Promise(n=>setTimeout(n,1e3)),e({spaces:gzt})},toggleStarSpace:n=>e(r=>({spaces:r.spaces.map(i=>i.id===n?{...i,starred:!i.starred}:i)})),createSpace:async n=>{await new Promise(i=>setTimeout(i,1e3));const r={id:String(Date.now()),name:n.name,description:n.description,type:n.type,coverImage:n.coverImage,starred:!1,parentId:null,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),createdBy:"1",memberCount:1,documentCount:0};e(i=>({spaces:[...i.spaces,r]}))},fetchSpaceDetail:async n=>{await new Promise(i=>setTimeout(i,1e3));const r=t().spaces.find(i=>i.id===n);if(r)e({currentSpace:r});else throw new Error("Space not found")}})),{Title:vzt,Paragraph:yzt}=zE,bzt=mi(Qv)`
|
||
.ant-card-body {
|
||
height: 200px;
|
||
}
|
||
`,Szt=({space:e,onClick:t})=>U.jsxs(bzt,{hoverable:!0,onClick:t,children:[U.jsx(vzt,{level:4,style:{marginBottom:8},children:e.name}),U.jsx(yzt,{ellipsis:{rows:2},children:e.description})]}),Czt=({visible:e,onClose:t})=>{const[n]=Or.useForm(),{createSpace:r}=QM(),[i,o]=ge.useState(!1),a=async s=>{try{o(!0),await r(s),xs.success("创建成功"),t(),n.resetFields()}catch{xs.error("创建失败")}finally{o(!1)}};return U.jsx(Ma,{title:"创建空间",open:e,onCancel:t,onOk:()=>n.submit(),confirmLoading:i,children:U.jsxs(Or,{form:n,layout:"vertical",onFinish:a,children:[U.jsx(Or.Item,{name:"name",label:"空间名称",rules:[{required:!0,message:"请输入空间名称"}],children:U.jsx($i,{placeholder:"请输入空间名称"})}),U.jsx(Or.Item,{name:"description",label:"空间描述",rules:[{required:!0,message:"请输入空间描述"}],children:U.jsx($i.TextArea,{placeholder:"请输入空间描述"})}),U.jsx(Or.Item,{name:"type",label:"空间类型",initialValue:"private",rules:[{required:!0}],children:U.jsxs(ys,{children:[U.jsx(ys.Option,{value:"private",children:"私有"}),U.jsx(ys.Option,{value:"public",children:"公开"})]})})]})})},xzt=mi.div`
|
||
padding: 24px;
|
||
`,wzt=mi.div`
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
margin-bottom: 24px;
|
||
`,_zt=mi.h2`
|
||
margin: 0;
|
||
`,Ezt=()=>{const e=as(),{spaces:t,fetchSpaces:n}=QM(),[r,i]=ge.useState("grid"),[o,a]=ge.useState(!0),[s,l]=ge.useState(!1);console.log("spaces",t,o),ge.useEffect(()=>{(async()=>{try{await n()}finally{a(!1)}})()},[n]);const c=u=>{e(`/spaces/${u}`)};return U.jsxs(xzt,{children:[U.jsxs(wzt,{children:[U.jsx(_zt,{children:"知识空间"}),U.jsxs(pa,{children:[U.jsxs(ti.Group,{value:r,onChange:u=>i(u.target.value),buttonStyle:"solid",children:[U.jsxs(ti.Button,{value:"grid",children:[U.jsx(FSe,{})," 网格"]}),U.jsxs(ti.Button,{value:"list",children:[U.jsx(lW,{})," 列表"]})]}),U.jsx(pr,{type:"primary",icon:U.jsx(eC,{}),onClick:()=>l(!0),children:"创建空间"})]})]}),U.jsx(AE,{gutter:[16,16],children:t.map(u=>U.jsx(wv,{xs:24,sm:12,md:8,lg:6,children:U.jsx(Szt,{space:u,onClick:()=>c(u.id)})},u.id))}),U.jsx(Czt,{visible:s,onClose:()=>l(!1)})]})},Tzt=()=>{const e=ro(),{locale:t}=f.useContext(Ks),n=localStorage.getItem(DX),[r,i]=f.useState(n||"/chat"),o=as(),{isLoggedIn:a,hasRoleAgent:s}=f.useContext(Ks),{footerStyle:l}=m4(),{currentOrg:c,setCurrentOrg:u}=pg(M=>({currentOrg:M.currentOrg,setCurrentOrg:M.setCurrentOrg})),{userInfo:d,setUserInfo:h}=Ka(M=>({userInfo:M.userInfo,setUserInfo:M.setUserInfo})),{setAgentInfo:p}=Vv(M=>({setAgentInfo:M.setAgentInfo})),m=bd(M=>M.removeThread),v=pEe(M=>M.setWorkgroupResult),[y,S]=f.useState(!1),b=bd(M=>M.threads);f.useEffect(()=>{const M=b.some(P=>P.unreadCount>0);S(M)},[b]);const[C,_]=f.useState([]);f.useEffect(()=>{const M=[{path:"/",name:e.formatMessage({id:"menu.dashboard.notebase"}),icon:U.jsx(jSe,{}),component:U.jsx(Ezt,{})},{path:"/setting",name:e.formatMessage({id:"menu.dashboard.mine"}),icon:U.jsx(gP,{}),component:U.jsx(fEe,{})}];_(M)},[e,t]),bEe(),qK(),yEe(),SK();const T=async()=>{if(!a||(c==null?void 0:c.uid)===""||!s)return;const M=await PIe(c==null?void 0:c.uid);console.log("getAgentProfile response:",c==null?void 0:c.uid,M.data),M.data.code===200&&p(M.data.data)},x=async()=>{if(a){if(d.currentOrganization===void 0||d.currentOrganization===null){console.log("before initOrganization",d);return}console.log("after initOrganization"),u(d==null?void 0:d.currentOrganization),T()}};f.useEffect(()=>(x(),()=>{console.log("un - useEffect")}),[a,d]);const E=async()=>{const M=await SEe();console.log("initProfile response:",M.data),M.data.code===200?h(M.data.data):Wn.error(e.formatMessage({id:"dashboard.error.message",defaultMessage:"获取数据失败"}))};f.useEffect(()=>{a&&E()},[a]);const k=async()=>{if(!a||(c==null?void 0:c.uid)===""||!s)return;const M={orgUid:c==null?void 0:c.uid,pageNumber:0,pageSize:20},P=await cHt(M);console.log("initWorkgroups",P.data),P.data.code===200?v(P.data):console.log("获取工作组失败")};return f.useEffect(()=>{k()},[a,c]),f.useEffect(()=>{const M=R=>{var H,F;console.log("handleTransfer:",R);const A=JSON.parse(R);if(console.log("handleTransfer contentObject",A.message,A.thread),((F=(H=A.message)==null?void 0:H.user)==null?void 0:F.uid)===(d==null?void 0:d.uid)){Wn.success("转接会话发送成功,请等待对方响应");return}},P=R=>{var F,z,W;console.log("handleTransferAccept:",R);const A=JSON.parse(R),H=JSON.parse((F=A.message)==null?void 0:F.content);m(H==null?void 0:H.thread),Wn.success(`${(W=(z=A.message)==null?void 0:z.user)==null?void 0:W.nickname} 已接受转接会话`)},D=R=>{var H,F;console.log("handleTransferReject:",R);const A=JSON.parse(R);Wn.success(`${(F=(H=A.message)==null?void 0:H.user)==null?void 0:F.nickname} 已拒绝转接会话`)};return Dr.on(J7,M),Dr.on(eD,P),Dr.on(tD,D),()=>{Dr.off(J7,M),Dr.off(eD,P),Dr.off(tD,D)}},[]),U.jsxs(Ywe,{collapsed:!0,collapsedButtonRender:!1,layout:"side",style:{height:"100vh"},route:{routes:C},location:{pathname:r},menu:{type:"group",collapsedShowTitle:!0},avatarProps:null,actionsRender:M=>M.isMobile?[]:[U.jsx(BSe,{onClick:FCe},"QuestionCircleFilled"),U.jsx(dHt,{}),U.jsx(lHt,{})],menuHeaderRender:()=>U.jsx(vEe,{}),menuFooterRender:M=>{M!=null&&M.collapsed},onMenuHeaderClick:M=>{console.log("onMenuHeaderClick",M)},menuItemRender:(M,P)=>U.jsx(U.Fragment,{children:U.jsxs("div",{onClick:()=>{i(M.path),o(M.path),localStorage.setItem(DX,M.path)},children:[y&&U.jsxs(U.Fragment,{children:[M.path==="/chat"&&U.jsx(Rl,{size:"small",dot:y,offset:[-5,5],children:P}),M.path!=="/chat"&&P]}),!y&&U.jsx(U.Fragment,{children:P})]})}),children:[U.jsx(zM,{children:U.jsx(MP,{},t.locale)}),U.jsx(UM,{style:l,children:U.jsx(gEe,{})}),U.jsx("audio",{id:"audioPlay",src:"soundUrl",hidden:!0})]})},kzt=()=>U.jsx(U.Fragment,{children:U.jsx(MP,{})}),Ozt=({open:e,onClose:t})=>{const n=ro(),{translateString:r}=oh(),i=()=>{t()},o=()=>{t()};return U.jsx(U.Fragment,{children:U.jsx(Ma,{title:n.formatMessage({id:"profile.password.change.title",defaultMessage:"Change Password"}),forceRender:!0,open:e,footer:null,onCancel:o,children:U.jsxs(ai,{initialValues:{oldPassword:"",newPassword:"",confirmPassword:""},onFinish:async a=>{if(console.log("changePassword:",a),a.newPassword.trim().length<6){Wn.error(n.formatMessage({id:"profile.password.length.error",defaultMessage:"Password must be at least 6 characters"}));return}if(a.newPassword!==a.confirmPassword){Wn.error(n.formatMessage({id:"profile.password.mismatch",defaultMessage:"The two passwords do not match"}));return}const s={oldPassword:a.oldPassword,newPassword:a.newPassword},l=await uHt(s);console.log("changePassword response:",l),l.data.code===200?(Wn.success(n.formatMessage({id:"profile.password.change.success",defaultMessage:"Password changed successfully!"})),i()):Wn.error(r(l.data.message))},children:[U.jsx(Fi.Password,{name:"oldPassword",label:n.formatMessage({id:"profile.password.old",defaultMessage:"Old Password"}),extra:n.formatMessage({id:"profile.password.old.empty",defaultMessage:"Old password can be empty for phone login users"})}),U.jsx(Fi.Password,{name:"newPassword",label:n.formatMessage({id:"profile.password.new",defaultMessage:"New Password"})}),U.jsx(Fi.Password,{name:"confirmPassword",label:n.formatMessage({id:"profile.password.confirm",defaultMessage:"Confirm Password"})})]})})})},GEe=({children:e,onSuccess:t,onError:n})=>{const r={file:null,file_name:"test.png",file_type:"image/png",is_avatar:"true",kb_type:WOe,category_uid:"",kb_uid:"",client:bo},i={name:"file",accept:"image/*",action:che(),headers:{Authorization:"Bearer "+localStorage.getItem(Vw)},data:r,showUploadList:!1,beforeUpload(o){console.log("beforeUpload",o);const a=Kn(new Date).format("YYYYMMDDHHmmss")+"_"+o.name;r.file=o,r.file_name=a,r.file_type=o.type,console.log("beforeUpload",r)},onChange(o){if(o.file.status!=="uploading"&&console.log("not uploading:",o.file),o.file.status==="done")if(console.log("response: ",o.file.response),o.file.response.code===200){const a=o.file.response.data.fileUrl;t(a),Wn.success(`${o.file.name} 上传成功`)}else n(o.file),Wn.error(`${o.file.name} 上传失败`);else o.file.status==="error"&&(Wn.error(`${o.file.name} 上传失败`),n(o.file))}};return U.jsx(uC,{...i,children:e})},Pzt=({open:e,onSubmit:t,onClose:n})=>{const r=ro(),[i]=ai.useForm(),{translateString:o}=oh(),{userInfo:a,deviceUid:s}=Ka(x=>({userInfo:x.userInfo,deviceUid:x.deviceUid})),l=pg(x=>x.currentOrg),c=f.useRef(),[u,d]=f.useState(""),[h,p]=f.useState(""),[m,v]=f.useState(!1),y=async(x,E)=>{console.log("captchaUid",x," captchaValue",E),d(x),p(E)},S=async x=>{console.log("captcha check result",x),v(x)},b=()=>{n()},C=()=>{n()},_=async()=>{i.validateFields().then(async x=>{if(console.log("changeEmail:",x),a.email===x.email){Wn.error(r.formatMessage({id:"profile.email.not.changed",defaultMessage:"Email is not changed!"}));return}const E={email:x.email,code:x.code,platform:Eu},k=await xEe(E);console.log("changeEmail response:",k),k.data.code===200?(Wn.success(r.formatMessage({id:"profile.email.change.success",defaultMessage:"Email changed successfully!"})),t(x.email),b()):Wn.error(o(k.data.message))})},T=()=>{setTimeout(()=>{var x;console.log("endCaptchaTiming"),(x=c.current)==null||x.endTiming()},2)};return U.jsx(U.Fragment,{children:U.jsx(Ma,{title:r.formatMessage({id:"profile.email.change.title",defaultMessage:"Change Email"}),forceRender:!0,open:e,footer:null,onCancel:C,children:U.jsxs(ai,{form:i,onFinish:async x=>{console.log("changeEmail:",x),_()},children:[U.jsx(Fi,{fieldProps:{size:"large",prefix:U.jsx(LE,{})},name:"email",placeholder:r.formatMessage({id:"profile.email.placeholder",defaultMessage:"Enter email address"}),rules:[{required:!0,message:r.formatMessage({id:"profile.email.required",defaultMessage:"Please enter email address!"})},{pattern:/^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$/,message:r.formatMessage({id:"profile.email.format.invalid",defaultMessage:"Invalid email format"})},{max:50,message:r.formatMessage({id:"profile.email.length.limit",defaultMessage:"Email cannot exceed 50 characters"})}]}),U.jsx(ai.Item,{name:"captchaCode",children:U.jsx(PC,{onKaptchaChange:y,onKaptchaCheck:S})}),U.jsx(KE,{fieldProps:{size:"large",prefix:U.jsx(Jv,{})},captchaProps:{size:"large",disabled:!m},placeholder:r.formatMessage({id:"profile.email.verification.code.placeholder",defaultMessage:"Enter verification code"}),captchaTextRender:(x,E)=>x?`${E} ${r.formatMessage({id:"profile.email.verification.code.countdown",defaultMessage:"seconds"})}`:r.formatMessage({id:"profile.email.verification.code.get",defaultMessage:"Get Code"}),phoneName:"email",name:"code",rules:[{required:!0,message:r.formatMessage({id:"profile.email.verification.code.required",defaultMessage:"Please enter verification code!"})}],fieldRef:c,onGetCaptcha:async x=>{if(x){if(a.email===x){Wn.error(r.formatMessage({id:"profile.email.not.changed",defaultMessage:"Email is not changed!"})),T();return}const E={email:x,type:SOe,captchaUid:u,captchaCode:h,deviceUid:s,userUid:a.uid,orgUid:l.uid,platform:Eu},k=await P_e(E);if(k.data.code!==200){Wn.error(k.data.message),T();return}Wn.success(k.data.message)}else Wn.error(r.formatMessage({id:"profile.email.format.error",defaultMessage:"Invalid email format"}))}})]})})})},Mzt=({open:e,onSubmit:t,onClose:n})=>{const r=ro(),[i]=ai.useForm(),{translateString:o}=oh(),{userInfo:a,deviceUid:s}=Ka(x=>({userInfo:x.userInfo,deviceUid:x.deviceUid})),l=pg(x=>x.currentOrg),c=f.useRef(),[u,d]=f.useState(""),[h,p]=f.useState(""),[m,v]=f.useState(!1),y=async(x,E)=>{console.log("captchaUid",x," captchaValue",E),d(x),p(E)},S=async x=>{console.log("captcha check result",x),v(x)},b=()=>{n()},C=()=>{n()},_=async()=>{i.validateFields().then(async x=>{if(console.log("changeMobile:",x),a.mobile===x.mobile){Wn.error(r.formatMessage({id:"profile.mobile.not.changed",defaultMessage:"Mobile number is not changed!"}));return}const E={mobile:x.mobile,code:x.code,platform:Eu},k=await wEe(E);console.log("changeMobile response:",k),k.data.code===200?(Wn.success(r.formatMessage({id:"profile.mobile.change.success",defaultMessage:"Mobile number changed successfully!"})),t(x.mobile),b()):Wn.error(o(k.data.message))})},T=()=>{setTimeout(()=>{var x;console.log("endCaptchaTiming"),(x=c.current)==null||x.endTiming()},2)};return U.jsx(U.Fragment,{children:U.jsx(Ma,{title:r.formatMessage({id:"profile.mobile.change.title",defaultMessage:"Change Mobile"}),forceRender:!0,open:e,footer:null,onCancel:C,children:U.jsxs(ai,{form:i,onFinish:async x=>{console.log("changeMobile:",x),_()},children:[U.jsx(Fi,{fieldProps:{size:"large",prefix:U.jsx(LE,{})},name:"mobile",placeholder:r.formatMessage({id:"profile.mobile.placeholder",defaultMessage:"Enter mobile number"}),rules:[{required:!0,message:r.formatMessage({id:"profile.mobile.required",defaultMessage:"Please enter mobile number!"})},{pattern:/^1\d{10}$/,message:r.formatMessage({id:"profile.mobile.format.invalid",defaultMessage:"Invalid mobile format"})}]}),U.jsx(ai.Item,{name:"captchaCode",children:U.jsx(PC,{onKaptchaChange:y,onKaptchaCheck:S})}),U.jsx(KE,{fieldProps:{size:"large",prefix:U.jsx(Jv,{})},captchaProps:{size:"large",disabled:!m},placeholder:r.formatMessage({id:"profile.mobile.verification.code.placeholder",defaultMessage:"Enter verification code"}),captchaTextRender:(x,E)=>x?`${E} ${r.formatMessage({id:"profile.mobile.verification.code.countdown",defaultMessage:"seconds"})}`:r.formatMessage({id:"profile.mobile.verification.code.get",defaultMessage:"Get Code"}),phoneName:"mobile",name:"code",rules:[{required:!0,message:r.formatMessage({id:"profile.mobile.verification.code.required",defaultMessage:"Please enter verification code!"})}],fieldRef:c,onGetCaptcha:async x=>{if(x&&x.length===11){if(a.mobile===x){Wn.error(r.formatMessage({id:"profile.mobile.not.changed",defaultMessage:"Mobile number is not changed!"})),T();return}const E={mobile:x,type:yOe,captchaUid:u,captchaCode:h,deviceUid:s,userUid:a.uid,orgUid:l.uid,platform:Eu},k=await bK(E);if(k.data.code!==200){Wn.error(k.data.message),T();return}Wn.success(k.data.message)}else Wn.error(r.formatMessage({id:"profile.mobile.format.error",defaultMessage:"Invalid mobile format"}))}})]})})})},Izt={labelCol:{span:8},wrapperCol:{span:8}},pae=()=>{const e=ro(),[t]=ai.useForm(),{translateString:n}=oh(),{userInfo:r,setUserInfo:i}=Ka(P=>({userInfo:P.userInfo,setUserInfo:P.setUserInfo})),[o,a]=f.useState(""),[s,l]=f.useState(!1),[c,u]=f.useState(!1),[d,h]=f.useState(!1),p=()=>{l(!0)},m=()=>{u(!0)},v=()=>{h(!0)},y=()=>{l(!1)},S=()=>{u(!1)},b=P=>{u(!1),r.email=P,i(r),t.setFieldValue("email",P)},C=()=>{h(!1)},_=P=>{h(!1),r.mobile=P,i(r),t.setFieldValue("mobile",P)},T=P=>{console.log("handleUploadSuccess:",P),a(P)},x=P=>{console.log("handleUploadError:",P)},E=async P=>{const D={...r,...P,avatar:o};console.log(D);const R=await CEe(D);console.log("updateProfile response:",R.data),R.data.code===200?(Wn.success(e.formatMessage({id:"profile.update.success",defaultMessage:"Profile updated successfully"})),i(R.data.data)):Wn.error(R.data.message)},k=P=>Array.isArray(P)?P:P==null?void 0:P.fileList;f.useEffect(()=>{r&&a(r.avatar)},[r]);const M=async()=>{const P=await SEe();console.log("handleRefreshProfile getProfile response:",P.data),P.data.code===200?(i(P.data.data),t.setFieldsValue({uid:P.data.data.uid,username:P.data.data.username,nickname:n(P.data.data.nickname),email:P.data.data.email,mobile:P.data.data.mobile,description:n(P.data.data.description)})):Wn.error(P.data.message)};return f.useEffect(()=>{M()},[]),U.jsxs("div",{className:"profile-container",children:[U.jsxs(ai,{...Izt,form:t,onFinish:E,children:[U.jsx(Fi,{name:"uid",label:"UID",readonly:!0}),U.jsx(ai.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:k,label:e.formatMessage({id:"profile.form.avatar",defaultMessage:"Avatar"}),children:U.jsxs(GEe,{onSuccess:T,onError:x,children:[U.jsx(yg,{src:o}),U.jsx(pr,{icon:U.jsx(jW,{}),children:e.formatMessage({id:"profile.form.upload",defaultMessage:"Upload"})})]},"avatar")}),U.jsx(Fi,{name:"username",label:e.formatMessage({id:"profile.form.username",defaultMessage:"Username"}),rules:[{required:!0}]}),U.jsx(pr,{onClick:p,children:e.formatMessage({id:"profile.button.change.password",defaultMessage:"Change Password"})}),U.jsx(Fi,{name:"nickname",label:e.formatMessage({id:"profile.form.nickname",defaultMessage:"Nickname"}),rules:[{required:!0}]}),U.jsx(Fi,{name:"email",label:r.emailVerified?e.formatMessage({id:"profile.email.verified",defaultMessage:"Email Verified"}):e.formatMessage({id:"profile.email.unverified",defaultMessage:"Email Unverified"}),rules:[{type:"email"}],readonly:!0}),U.jsx(pr,{onClick:m,children:e.formatMessage({id:"profile.button.change.email",defaultMessage:"Change Email"})}),U.jsx(Fi,{name:"mobile",label:r.mobileVerified?e.formatMessage({id:"profile.mobile.verified",defaultMessage:"Mobile Verified"}):e.formatMessage({id:"profile.mobile.unverified",defaultMessage:"Mobile Unverified"}),readonly:!0}),U.jsx(pr,{onClick:v,children:e.formatMessage({id:"profile.button.change.mobile",defaultMessage:"Change Mobile"})}),U.jsx(VV,{name:"description",label:e.formatMessage({id:"profile.form.description",defaultMessage:"Description"})})]}),s&&U.jsx(Ozt,{open:s,onClose:y}),c&&U.jsx(Pzt,{open:c,onSubmit:b,onClose:S}),d&&U.jsx(Mzt,{open:d,onSubmit:_,onClose:C})]})},$zt=()=>{const e=ro(),t=vM(),{isMqttConnected:n}=qK(),[r,i]=f.useState(!0),[o,a]=f.useState(!0),[s,l]=f.useState(!1),c=x=>{console.log("radio checked",x.target.value),l(x.target.value),is?window.electronAPI.setOpenAtLogin(x.target.value):console.log("not electron")},u=async()=>{if(is){const x=await window.electronAPI.getOpenAtLogin();console.log("openAtLogin:",x),l(x)}};f.useEffect(()=>{u(),Cpt(),jCe(),console.log("isNetworkOnline:",t);const x=localStorage.getItem(o8);x===null?(localStorage.setItem(o8,"true"),i(!0)):i(x==="true");const E=localStorage.getItem(z2);E===null?(localStorage.setItem(z2,"true"),a(!0)):a(E==="true")},[]);const{themeMode:d,setThemeMode:h,mode:p,changeMode:m,locale:v,changeLocale:y}=f.useContext(Ks),S=x=>{console.log("radio checked",x.target.value),h(x.target.value),_pt(x.target.value)},b=x=>{console.log("language change",x.target.value),y(x.target.value)},C=x=>{console.log("play audio switch",x),localStorage.setItem(o8,x?"true":"false"),i(x)},_=x=>{console.log("show network status notification",x),localStorage.setItem(z2,x?"true":"false"),a(x)},T=x=>{console.log("mode change",x.target.value),m(x.target.value)};return U.jsxs("div",{className:"profile-container",children:[U.jsx("p",{children:U.jsx(Q9,{checkedChildren:e.formatMessage({id:"setting.basic.sound.on",defaultMessage:"已开启消息提示音"}),unCheckedChildren:e.formatMessage({id:"setting.basic.sound.off",defaultMessage:"已关闭消息提示音"}),value:r,onChange:C})}),U.jsx("p",{children:U.jsx(Q9,{checkedChildren:e.formatMessage({id:"setting.basic.notification.on",defaultMessage:"已开启网络状态通知"}),unCheckedChildren:e.formatMessage({id:"setting.basic.notification.off",defaultMessage:"已关闭网络状态通知"}),value:o,onChange:_})}),hv&&U.jsxs(U.Fragment,{children:[U.jsx("p",{children:e.formatMessage({id:"setting.basic.connection.status",defaultMessage:"长链接状态:"})}),U.jsx("div",{children:n?e.formatMessage({id:"setting.basic.connection.connected",defaultMessage:"✅连接正常"}):e.formatMessage({id:"setting.basic.connection.disconnected",defaultMessage:"❌连接断开"})})]}),is&&U.jsxs(U.Fragment,{children:[U.jsx("p",{children:e.formatMessage({id:"setting.basic.startup",defaultMessage:"开机启动:"})}),U.jsxs(ti.Group,{onChange:c,value:s,children:[U.jsx(ti,{value:!0,children:e.formatMessage({id:"setting.basic.startup.on",defaultMessage:"开机启动"})}),U.jsx(ti,{value:!1,children:e.formatMessage({id:"setting.basic.startup.off",defaultMessage:"不开机启动"})})]})]}),U.jsx("p",{children:e.formatMessage({id:"setting.basic.theme",defaultMessage:"颜色主题:"})}),U.jsxs(ti.Group,{onChange:S,value:d,children:[U.jsx(ti,{value:"light",children:U.jsx(kc,{id:"theme.light"})}),U.jsx(ti,{value:"dark",children:U.jsx(kc,{id:"theme.dark"})}),U.jsx(ti,{value:"system",children:U.jsx(kc,{id:"theme.system"})})]}),U.jsxs("div",{children:[U.jsx("p",{children:e.formatMessage({id:"setting.basic.language",defaultMessage:"语言设置:"})}),U.jsxs(ti.Group,{value:v.locale,onChange:b,children:[U.jsx(ti,{value:"en",children:e.formatMessage({id:"i18n.lang.en-US"})},"en"),U.jsx(ti,{value:"zh-cn",children:e.formatMessage({id:"i18n.lang.zh-CN"})},"zh-cn"),U.jsx(ti,{value:"zh-tw",children:e.formatMessage({id:"i18n.lang.zh-TW"})},"zh-tw")]})]}),hv&&U.jsxs("div",{children:[U.jsx("p",{children:e.formatMessage({id:"setting.basic.mode",defaultMessage:"模式设置:"})}),U.jsxs(ti.Group,{value:p,onChange:T,children:[U.jsx(ti,{value:rb,children:e.formatMessage({id:"setting.basic.mode.team",defaultMessage:"团队模式"})},rb),U.jsx(ti,{value:pv,children:e.formatMessage({id:"setting.basic.mode.agent",defaultMessage:"客服模式"})},pv),U.jsx(ti,{value:q3,children:e.formatMessage({id:"setting.basic.mode.personal",defaultMessage:"个人模式"})},q3)]})]})]})},Rzt=()=>{const e=Ka(n=>n.userInfo),t=()=>{var r;console.log("downloadQRCode");const n=(r=document.getElementById("myqrcode"))==null?void 0:r.querySelector("canvas");if(n){const i=n.toDataURL(),o=document.createElement("a");o.download=e.username+"_profile.png",o.href=i,document.body.appendChild(o),o.click(),document.body.removeChild(o)}else console.log("canvas is null")};return U.jsxs("div",{id:"myqrcode",style:{textAlign:"center",marginTop:"50px"},children:[U.jsx(VSe,{style:{margin:"auto"},errorLevel:"H",value:"https://www.weiyuai.cn/",icon:"/agent/logo.png"}),U.jsx(pr,{type:"primary",onClick:t,style:{marginTop:"20px"},children:"下载二维码"})]})},Azt=()=>U.jsx(U.Fragment,{children:U.jsx("div",{children:"ShortcutAdmin"})}),Nzt=()=>{const e=as();return U.jsx(jE,{status:"404",title:"404",subTitle:"Sorry, the page you visited does not exist.",extra:U.jsx(pr,{type:"primary",onClick:()=>e("/"),children:"返回主页"})})},Dzt={labelCol:{span:8},wrapperCol:{span:8}},Lzt=()=>{const e=ro(),[t]=ai.useForm(),{userInfo:n,setUserInfo:r}=Ka(u=>({userInfo:u.userInfo,setUserInfo:u.setUserInfo})),[i,o]=f.useState(""),a={file:null,file_name:"test.png",file_type:"image/png"},s={name:"file",action:che(),headers:{Authorization:"Bearer "+localStorage.getItem(Vw)},showUploadList:!1,data:a,beforeUpload(u){const d=Kn(new Date).format("YYYYMMDDHHmmss")+"_"+u.name;a.file=u,a.file_name=d,a.file_type=u.type,console.log("beforeUpload",a)},onChange(u){if(u.file.status!=="uploading"&&console.log(u.file,u.fileList),u.file.status==="done"){const d=u.file.response.data.fileUrl;console.log("url: ",d),o(d),Wn.success(`${u.file.name} file uploaded successfully`)}else u.file.status==="error"&&Wn.error(`${u.file.name} file upload failed.`)}},l=async u=>{const d={...n,...u,avatar:i};console.log(d);const h=await CEe(d);console.log("updateProfile response:",h),h.data.code===200?(Wn.success("修改成功"),r(h.data.data)):Wn.error("修改失败")},c=u=>Array.isArray(u)?u:u==null?void 0:u.fileList;return f.useEffect(()=>{n&&o(n.avatar)},[n]),U.jsxs("div",{className:"profile-container",children:[U.jsx("p",{children:"员工信息"}),U.jsxs(ai,{...Dzt,style:{marginLeft:20},form:t,onFinish:l,initialValues:{nickname:n.nickname,email:n.email,mobile:n.mobile,description:n.description},children:[U.jsx(Or.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:c,label:e.formatMessage({id:"pages.robot.tab.avatar",defaultMessage:"Avatar"}),children:U.jsxs(uC,{...s,children:[U.jsx(yg,{src:i}),U.jsx(pr,{icon:U.jsx(jW,{}),children:e.formatMessage({id:"pages.robot.upload",defaultMessage:"Upload"})})]},"avatar")}),U.jsx(Fi,{name:"nickname",label:"昵称",rules:[{required:!0}],children:U.jsx($i,{})}),U.jsx(Fi,{name:"email",label:"邮箱",rules:[{type:"email"}],disabled:!0,children:U.jsx($i,{})}),U.jsx(Fi,{name:"mobile",label:"手机号",disabled:!0,children:U.jsx($i,{})}),U.jsx(VV,{name:"description",label:"描述",children:U.jsx($i.TextArea,{})})]})]})},Fzt=({open:e,onSubmit:t,onClose:n})=>{const r=ro(),[i]=ai.useForm(),{translateString:o}=oh(),{userInfo:a,deviceUid:s}=Ka(x=>({userInfo:x.userInfo,deviceUid:x.deviceUid})),l=pg(x=>x.currentOrg),c=f.useRef(),[u,d]=f.useState(""),[h,p]=f.useState(""),[m,v]=f.useState(!1);f.useEffect(()=>{e?i.setFieldsValue({email:a==null?void 0:a.email}):(i.resetFields(),T())},[e]);const y=async(x,E)=>{console.log("captchaUid",x," captchaValue",E),d(x),p(E)},S=async x=>{console.log("captcha check result",x),v(x)},b=()=>{n()},C=()=>{n()},_=async()=>{i.validateFields().then(async x=>{console.log("changeEmail:",x);const E={email:x.email,code:x.code,platform:Eu},k=await xEe(E);console.log("changeEmail response:",k),k.data.code===200?(Wn.success("Email verify successfully!"),t(x.email),b()):Wn.error(o(k.data.message))})},T=()=>{setTimeout(()=>{var x;console.log("endCaptchaTiming"),(x=c.current)==null||x.endTiming()},2)};return U.jsx(U.Fragment,{children:U.jsx(Ma,{title:r.formatMessage({id:"pages.settings.verify.email",defaultMessage:"验证邮箱"}),forceRender:!0,open:e,footer:null,onCancel:C,children:U.jsxs(ai,{form:i,onFinish:async x=>{console.log("changeEmail:",x),_()},children:[U.jsx(Fi,{fieldProps:{size:"large",prefix:U.jsx(LE,{})},name:"email",placeholder:r.formatMessage({id:"pages.login.email.placeholder",defaultMessage:"邮箱"}),rules:[{required:!0},{pattern:/^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$/,message:"邮箱格式不正确"},{max:50,message:"邮箱不得超过50字符"}],readonly:!0}),U.jsx(ai.Item,{name:"captchaCode",rules:[],children:U.jsx(PC,{onKaptchaChange:y,onKaptchaCheck:S})}),U.jsx(KE,{fieldProps:{size:"large",prefix:U.jsx(Jv,{}),allowClear:!0},captchaProps:{size:"large",disabled:!m},placeholder:r.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"请输入验证码"}),captchaTextRender:(x,E)=>x?`${E} ${r.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"获取验证码"})}`:r.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"获取验证码"}),phoneName:"email",name:"code",rules:[{required:!0}],fieldRef:c,onGetCaptcha:async x=>{if(console.log("email:",x),x){const E={email:x,type:COe,captchaUid:u,captchaCode:h,deviceUid:s,userUid:a==null?void 0:a.uid,orgUid:l.uid,platform:Eu},k=await P_e(E);if(console.log("sendEmailCode",k),k.data.code!==200){Wn.error(o(k.data.message)),T();return}Wn.success(o(k.data.message))}else Wn.error("手机号格式错误")}})]})})})},jzt=({open:e,onSubmit:t,onClose:n})=>{const r=ro(),[i]=ai.useForm(),{translateString:o}=oh(),{userInfo:a,deviceUid:s}=Ka(x=>({userInfo:x.userInfo,deviceUid:x.deviceUid})),l=pg(x=>x.currentOrg),c=f.useRef(),[u,d]=f.useState(""),[h,p]=f.useState(""),[m,v]=f.useState(!1);f.useEffect(()=>{e?i.setFieldsValue({mobile:a==null?void 0:a.mobile}):(i.resetFields(),T())},[e]);const y=async(x,E)=>{console.log("captchaUid",x," captchaValue",E),d(x),p(E)},S=async x=>{console.log("captcha check result",x),v(x)},b=()=>{n()},C=()=>{n()},_=async()=>{i.validateFields().then(async x=>{console.log("changeMobile:",x);const E={mobile:x.mobile,code:x.code,platform:Eu},k=await wEe(E);console.log("changeMobile response:",k),k.data.code===200?(Wn.success("Mobile verify successfully!"),t(x.mobile),b()):Wn.error(o(k.data.message))})},T=()=>{setTimeout(()=>{var x;console.log("endCaptchaTiming"),(x=c.current)==null||x.endTiming()},2)};return U.jsx(U.Fragment,{children:U.jsx(Ma,{title:r.formatMessage({id:"pages.settings.verify.mobile",defaultMessage:"验证手机号"}),forceRender:!0,open:e,footer:null,onCancel:C,children:U.jsxs(ai,{form:i,onFinish:async x=>{console.log("changeMobile:",x),_()},children:[U.jsx(Fi,{fieldProps:{size:"large",prefix:U.jsx(LE,{})},name:"mobile",placeholder:r.formatMessage({id:"pages.login.phoneNumber.placeholder",defaultMessage:"手机号"}),rules:[{required:!0},{pattern:/^1\d{10}$/}],readonly:!0}),U.jsx(ai.Item,{name:"captchaCode",rules:[],children:U.jsx(PC,{onKaptchaChange:y,onKaptchaCheck:S})}),U.jsx(KE,{fieldProps:{size:"large",prefix:U.jsx(Jv,{}),allowClear:!0},captchaProps:{size:"large",disabled:!m},placeholder:r.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"请输入验证码"}),captchaTextRender:(x,E)=>x?`${E} ${r.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"获取验证码"})}`:r.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"获取验证码"}),phoneName:"mobile",name:"code",rules:[{required:!0}],fieldRef:c,onGetCaptcha:async x=>{if(console.log("mobile:",x),x&&x.length===11){const E={mobile:x,type:bOe,captchaUid:u,captchaCode:h,deviceUid:s,userUid:a==null?void 0:a.uid,orgUid:l.uid,platform:Eu},k=await bK(E);if(console.log("sendMobileCode",k),k.data.code!==200){Wn.error(o(k.data.message)),T();return}Wn.success(o(k.data.message))}else Wn.error("手机号格式错误")}})]})})})},Bzt=()=>{const e=ro(),t=as(),[n]=ai.useForm(),{userInfo:r,setUserInfo:i}=Ka(S=>({userInfo:S.userInfo,setUserInfo:S.setUserInfo})),[o,a]=f.useState(!1),[s,l]=f.useState(!1),c=()=>{a(!0)},u=()=>{l(!0)},d=()=>{a(!1)},h=S=>{a(!1),r.email=S,r.emailVerified=!0,i(r),n.setFieldValue("email",S)},p=()=>{l(!1)},m=S=>{l(!1),r.mobile=S,r.mobileVerified=!0,i(r),n.setFieldValue("mobile",S)};f.useEffect(()=>{n.setFieldsValue({uid:r.uid,username:r.username,nickname:r.nickname,email:r.email,mobile:r.mobile})},[]);const v=()=>{t("/setting/profile")},y=()=>{t("/setting/profile")};return U.jsxs("div",{children:[U.jsxs(ai,{form:n,submitter:!1,children:[U.jsx(Fi,{name:"email",label:r!=null&&r.emailVerified?e.formatMessage({id:"email.verified",defaultMessage:"Email Verified"}):e.formatMessage({id:"email.unverified",defaultMessage:"email unverified"}),readonly:!0}),!(r!=null&&r.emailVerified)&&r.email!=null&&U.jsx(pr,{onClick:c,children:e.formatMessage({id:"pages.settings.verify.email",defaultMessage:"验证邮箱"})}),U.jsx(pr,{type:"link",onClick:v,children:"重置邮箱"}),U.jsx(Fi,{name:"mobile",label:r!=null&&r.mobileVerified?e.formatMessage({id:"mobile.verified",defaultMessage:"Mobile Verified"}):e.formatMessage({id:"mobile.unverified",defaultMessage:"mobile unverified"}),readonly:!0}),!(r!=null&&r.mobileVerified)&&r.mobile!=null&&U.jsx(pr,{onClick:u,children:e.formatMessage({id:"pages.settings.verify.mobile",defaultMessage:"验证手机号"})}),U.jsx(pr,{type:"link",onClick:y,children:"重置手机号"})]}),o&&U.jsx(Fzt,{open:o,onSubmit:h,onClose:d}),s&&U.jsx(jzt,{open:s,onSubmit:m,onClose:p})]})},Hzt=e=>{console.log(e)},zzt=[{key:"personal",label:"个人认证",children:U.jsx(Bzt,{})}],Uzt=()=>U.jsx("div",{className:"profile-container",children:U.jsx(tC,{defaultActiveKey:"personal",items:zzt,onChange:Hzt})}),Wzt=()=>{const[e]=ai.useForm(),t=ro(),{translateString:n}=oh(),{agentInfo:r,setAgentInfo:i}=Vv(d=>({agentInfo:d.agentInfo,setAgentInfo:d.setAgentInfo})),[o,a]=f.useState("");f.useEffect(()=>{var d;r&&e.setFieldsValue({nickname:n(r==null?void 0:r.nickname),email:r==null?void 0:r.email,mobile:r==null?void 0:r.mobile,description:n(r==null?void 0:r.description),memberUid:(d=r==null?void 0:r.member)==null?void 0:d.uid})},[r]);const s=d=>{console.log("handleUploadSuccess:",d),a(d)},l=d=>{console.log("handleUploadError:",d),Wn.error(d)},c=async d=>{var m,v,y,S,b,C,_,T,x,E,k,M,P,D;console.log("onFinish:",d),Wn.loading(t.formatMessage({id:"updating"}));const h={...r,...d,avatar:o,serviceSettings:{...r.serviceSettings,quickFaqUids:(v=(m=r==null?void 0:r.serviceSettings)==null?void 0:m.quickFaqs)==null?void 0:v.map(R=>R.uid),faqUids:(S=(y=r==null?void 0:r.serviceSettings)==null?void 0:y.faqs)==null?void 0:S.map(R=>R.uid),guessFaqUids:(C=(b=r==null?void 0:r.serviceSettings)==null?void 0:b.guessFaqs)==null?void 0:C.map(R=>R.uid),hotFaqUids:(T=(_=r==null?void 0:r.serviceSettings)==null?void 0:_.hotFaqs)==null?void 0:T.map(R=>R.uid),shortcutFaqUids:(E=(x=r==null?void 0:r.serviceSettings)==null?void 0:x.shortcutFaqs)==null?void 0:E.map(R=>R.uid)},robotSettings:{...r.robotSettings,robotUid:(M=(k=r==null?void 0:r.robotSettings)==null?void 0:k.robot)==null?void 0:M.uid},leaveMsgSettings:{...r.leaveMsgSettings,worktimeUids:(D=(P=r==null?void 0:r.leaveMsgSettings)==null?void 0:P.worktimes)==null?void 0:D.map(R=>R.uid)},autoReplySettings:{...r.autoReplySettings}};console.log("agentObject:",h);const p=await MIe(h);console.log("updateAgent response:",p),p.data.code===200?(Wn.destroy(),Wn.success(t.formatMessage({id:"update.success"})),i(p.data.data)):(Wn.destroy(),Wn.error(p.data.message))},u=d=>Array.isArray(d)?d:d==null?void 0:d.fileList;return f.useEffect(()=>{var d;r&&(a(r.avatar),e.setFieldsValue({member:(d=r==null?void 0:r.member)==null?void 0:d.nickname}))},[r]),U.jsx(U.Fragment,{children:U.jsxs(ai,{form:e,style:{marginLeft:"20px"},onFinish:c,children:[U.jsx(ai.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:u,label:t.formatMessage({id:"pages.robot.tab.avatar",defaultMessage:"Avatar"}),children:U.jsxs(GEe,{onSuccess:s,onError:l,children:[U.jsx(yg,{src:o}),U.jsx(pr,{icon:U.jsx(jW,{}),children:t.formatMessage({id:"pages.robot.upload",defaultMessage:"Upload"})})]},"avatar")}),U.jsx(Fi,{width:"md",name:"nickname",label:"客服卡片-展示客服昵称",rules:[{required:!0,message:"请输入客服昵称"}]}),U.jsx(Fi,{width:"md",name:"email",label:"客服卡片-展示邮箱",rules:[{required:!0,message:"请输入邮箱"}]}),U.jsx(Fi,{width:"md",name:"mobile",label:"客服卡片-展示手机号",rules:[{required:!0,message:"请输入手机号"}]}),U.jsx(VV,{width:"md",name:"description",label:"客服卡片-展示描述",rules:[{required:!0,message:"请输入描述"}]})]})})},Vzt=()=>{const e=ro(),[t,n]=f.useState([]),r=[{key:"basic",label:e.formatMessage({id:"pages.agent.tab.basic",defaultMessage:"Basic"}),children:U.jsx(Wzt,{})}];return f.useEffect(()=>{n(r)},[]),U.jsx(U.Fragment,{children:U.jsx(tC,{style:{marginLeft:20},defaultActiveKey:"basic",items:t})})},{Sider:Kzt,Content:qzt}=Co,AB=()=>{const{leftSiderStyle:e,leftSiderWidth:t,headerStyle:n,contentStyle:r}=m4();return U.jsx(U.Fragment,{children:U.jsxs(Co,{children:[U.jsx(Kzt,{style:e,width:t,children:U.jsx(K9,{style:n,children:"home"})}),U.jsxs(Co,{children:[U.jsx(K9,{style:n,children:"home"}),U.jsx(qzt,{style:r,children:"home"})]})]})})},Gzt=()=>{console.log("useMulticast");const e=()=>setInterval(()=>{},5e3);f.useEffect(()=>{console.log("useMulticast useEffect");const t=e();return()=>{console.log("un - useEffect"),clearInterval(t)}},[])};class Yzt{constructor(){this.encoder=new TextEncoder,this._pieces=[],this._parts=[]}append_buffer(t){this.flush(),this._parts.push(t)}append(t){this._pieces.push(t)}flush(){if(this._pieces.length>0){const t=new Uint8Array(this._pieces);this._parts.push(t),this._pieces=[]}}toArrayBuffer(){const t=[];for(const n of this._parts)t.push(n);return Xzt(t).buffer}}function Xzt(e){let t=0;for(const i of e)t+=i.byteLength;const n=new Uint8Array(t);let r=0;for(const i of e){const o=new Uint8Array(i.buffer,i.byteOffset,i.byteLength);n.set(o,r),r+=i.byteLength}return n}function YEe(e){return new Qzt(e).unpack()}function XEe(e){const t=new Zzt,n=t.pack(e);return n instanceof Promise?n.then(()=>t.getBuffer()):t.getBuffer()}class Qzt{constructor(t){this.index=0,this.dataBuffer=t,this.dataView=new Uint8Array(this.dataBuffer),this.length=this.dataBuffer.byteLength}unpack(){const t=this.unpack_uint8();if(t<128)return t;if((t^224)<32)return(t^224)-32;let n;if((n=t^160)<=15)return this.unpack_raw(n);if((n=t^176)<=15)return this.unpack_string(n);if((n=t^144)<=15)return this.unpack_array(n);if((n=t^128)<=15)return this.unpack_map(n);switch(t){case 192:return null;case 193:return;case 194:return!1;case 195:return!0;case 202:return this.unpack_float();case 203:return this.unpack_double();case 204:return this.unpack_uint8();case 205:return this.unpack_uint16();case 206:return this.unpack_uint32();case 207:return this.unpack_uint64();case 208:return this.unpack_int8();case 209:return this.unpack_int16();case 210:return this.unpack_int32();case 211:return this.unpack_int64();case 212:return;case 213:return;case 214:return;case 215:return;case 216:return n=this.unpack_uint16(),this.unpack_string(n);case 217:return n=this.unpack_uint32(),this.unpack_string(n);case 218:return n=this.unpack_uint16(),this.unpack_raw(n);case 219:return n=this.unpack_uint32(),this.unpack_raw(n);case 220:return n=this.unpack_uint16(),this.unpack_array(n);case 221:return n=this.unpack_uint32(),this.unpack_array(n);case 222:return n=this.unpack_uint16(),this.unpack_map(n);case 223:return n=this.unpack_uint32(),this.unpack_map(n)}}unpack_uint8(){const t=this.dataView[this.index]&255;return this.index++,t}unpack_uint16(){const t=this.read(2),n=(t[0]&255)*256+(t[1]&255);return this.index+=2,n}unpack_uint32(){const t=this.read(4),n=((t[0]*256+t[1])*256+t[2])*256+t[3];return this.index+=4,n}unpack_uint64(){const t=this.read(8),n=((((((t[0]*256+t[1])*256+t[2])*256+t[3])*256+t[4])*256+t[5])*256+t[6])*256+t[7];return this.index+=8,n}unpack_int8(){const t=this.unpack_uint8();return t<128?t:t-256}unpack_int16(){const t=this.unpack_uint16();return t<32768?t:t-65536}unpack_int32(){const t=this.unpack_uint32();return t<2**31?t:t-2**32}unpack_int64(){const t=this.unpack_uint64();return t<2**63?t:t-2**64}unpack_raw(t){if(this.length<this.index+t)throw new Error(`BinaryPackFailure: index is out of range ${this.index} ${t} ${this.length}`);const n=this.dataBuffer.slice(this.index,this.index+t);return this.index+=t,n}unpack_string(t){const n=this.read(t);let r=0,i="",o,a;for(;r<t;)o=n[r],o<160?(a=o,r++):(o^192)<32?(a=(o&31)<<6|n[r+1]&63,r+=2):(o^224)<16?(a=(o&15)<<12|(n[r+1]&63)<<6|n[r+2]&63,r+=3):(a=(o&7)<<18|(n[r+1]&63)<<12|(n[r+2]&63)<<6|n[r+3]&63,r+=4),i+=String.fromCodePoint(a);return this.index+=t,i}unpack_array(t){const n=new Array(t);for(let r=0;r<t;r++)n[r]=this.unpack();return n}unpack_map(t){const n={};for(let r=0;r<t;r++){const i=this.unpack();n[i]=this.unpack()}return n}unpack_float(){const t=this.unpack_uint32(),n=t>>31,r=(t>>23&255)-127,i=t&8388607|8388608;return(n===0?1:-1)*i*2**(r-23)}unpack_double(){const t=this.unpack_uint32(),n=this.unpack_uint32(),r=t>>31,i=(t>>20&2047)-1023,a=(t&1048575|1048576)*2**(i-20)+n*2**(i-52);return(r===0?1:-1)*a}read(t){const n=this.index;if(n+t<=this.length)return this.dataView.subarray(n,n+t);throw new Error("BinaryPackFailure: read index out of range")}}class Zzt{getBuffer(){return this._bufferBuilder.toArrayBuffer()}pack(t){if(typeof t=="string")this.pack_string(t);else if(typeof t=="number")Math.floor(t)===t?this.pack_integer(t):this.pack_double(t);else if(typeof t=="boolean")t===!0?this._bufferBuilder.append(195):t===!1&&this._bufferBuilder.append(194);else if(t===void 0)this._bufferBuilder.append(192);else if(typeof t=="object")if(t===null)this._bufferBuilder.append(192);else{const n=t.constructor;if(t instanceof Array){const r=this.pack_array(t);if(r instanceof Promise)return r.then(()=>this._bufferBuilder.flush())}else if(t instanceof ArrayBuffer)this.pack_bin(new Uint8Array(t));else if("BYTES_PER_ELEMENT"in t){const r=t;this.pack_bin(new Uint8Array(r.buffer,r.byteOffset,r.byteLength))}else if(t instanceof Date)this.pack_string(t.toString());else{if(t instanceof Blob)return t.arrayBuffer().then(r=>{this.pack_bin(new Uint8Array(r)),this._bufferBuilder.flush()});if(n==Object||n.toString().startsWith("class")){const r=this.pack_object(t);if(r instanceof Promise)return r.then(()=>this._bufferBuilder.flush())}else throw new Error(`Type "${n.toString()}" not yet supported`)}}else throw new Error(`Type "${typeof t}" not yet supported`);this._bufferBuilder.flush()}pack_bin(t){const n=t.length;if(n<=15)this.pack_uint8(160+n);else if(n<=65535)this._bufferBuilder.append(218),this.pack_uint16(n);else if(n<=4294967295)this._bufferBuilder.append(219),this.pack_uint32(n);else throw new Error("Invalid length");this._bufferBuilder.append_buffer(t)}pack_string(t){const n=this._textEncoder.encode(t),r=n.length;if(r<=15)this.pack_uint8(176+r);else if(r<=65535)this._bufferBuilder.append(216),this.pack_uint16(r);else if(r<=4294967295)this._bufferBuilder.append(217),this.pack_uint32(r);else throw new Error("Invalid length");this._bufferBuilder.append_buffer(n)}pack_array(t){const n=t.length;if(n<=15)this.pack_uint8(144+n);else if(n<=65535)this._bufferBuilder.append(220),this.pack_uint16(n);else if(n<=4294967295)this._bufferBuilder.append(221),this.pack_uint32(n);else throw new Error("Invalid length");const r=i=>{if(i<n){const o=this.pack(t[i]);return o instanceof Promise?o.then(()=>r(i+1)):r(i+1)}};return r(0)}pack_integer(t){if(t>=-32&&t<=127)this._bufferBuilder.append(t&255);else if(t>=0&&t<=255)this._bufferBuilder.append(204),this.pack_uint8(t);else if(t>=-128&&t<=127)this._bufferBuilder.append(208),this.pack_int8(t);else if(t>=0&&t<=65535)this._bufferBuilder.append(205),this.pack_uint16(t);else if(t>=-32768&&t<=32767)this._bufferBuilder.append(209),this.pack_int16(t);else if(t>=0&&t<=4294967295)this._bufferBuilder.append(206),this.pack_uint32(t);else if(t>=-2147483648&&t<=2147483647)this._bufferBuilder.append(210),this.pack_int32(t);else if(t>=-9223372036854776e3&&t<=9223372036854776e3)this._bufferBuilder.append(211),this.pack_int64(t);else if(t>=0&&t<=18446744073709552e3)this._bufferBuilder.append(207),this.pack_uint64(t);else throw new Error("Invalid integer")}pack_double(t){let n=0;t<0&&(n=1,t=-t);const r=Math.floor(Math.log(t)/Math.LN2),i=t/2**r-1,o=Math.floor(i*2**52),a=2**32,s=n<<31|r+1023<<20|o/a&1048575,l=o%a;this._bufferBuilder.append(203),this.pack_int32(s),this.pack_int32(l)}pack_object(t){const n=Object.keys(t),r=n.length;if(r<=15)this.pack_uint8(128+r);else if(r<=65535)this._bufferBuilder.append(222),this.pack_uint16(r);else if(r<=4294967295)this._bufferBuilder.append(223),this.pack_uint32(r);else throw new Error("Invalid length");const i=o=>{if(o<n.length){const a=n[o];if(t.hasOwnProperty(a)){this.pack(a);const s=this.pack(t[a]);if(s instanceof Promise)return s.then(()=>i(o+1))}return i(o+1)}};return i(0)}pack_uint8(t){this._bufferBuilder.append(t)}pack_uint16(t){this._bufferBuilder.append(t>>8),this._bufferBuilder.append(t&255)}pack_uint32(t){const n=t&4294967295;this._bufferBuilder.append((n&4278190080)>>>24),this._bufferBuilder.append((n&16711680)>>>16),this._bufferBuilder.append((n&65280)>>>8),this._bufferBuilder.append(n&255)}pack_uint64(t){const n=t/4294967296,r=t%2**32;this._bufferBuilder.append((n&4278190080)>>>24),this._bufferBuilder.append((n&16711680)>>>16),this._bufferBuilder.append((n&65280)>>>8),this._bufferBuilder.append(n&255),this._bufferBuilder.append((r&4278190080)>>>24),this._bufferBuilder.append((r&16711680)>>>16),this._bufferBuilder.append((r&65280)>>>8),this._bufferBuilder.append(r&255)}pack_int8(t){this._bufferBuilder.append(t&255)}pack_int16(t){this._bufferBuilder.append((t&65280)>>8),this._bufferBuilder.append(t&255)}pack_int32(t){this._bufferBuilder.append(t>>>24&255),this._bufferBuilder.append((t&16711680)>>>16),this._bufferBuilder.append((t&65280)>>>8),this._bufferBuilder.append(t&255)}pack_int64(t){const n=Math.floor(t/4294967296),r=t%2**32;this._bufferBuilder.append((n&4278190080)>>>24),this._bufferBuilder.append((n&16711680)>>>16),this._bufferBuilder.append((n&65280)>>>8),this._bufferBuilder.append(n&255),this._bufferBuilder.append((r&4278190080)>>>24),this._bufferBuilder.append((r&16711680)>>>16),this._bufferBuilder.append((r&65280)>>>8),this._bufferBuilder.append(r&255)}constructor(){this._bufferBuilder=new Yzt,this._textEncoder=new TextEncoder}}let QEe=!0,ZEe=!0;function t3(e,t,n){const r=e.match(t);return r&&r.length>=n&&parseInt(r[n],10)}function s0(e,t,n){if(!e.RTCPeerConnection)return;const r=e.RTCPeerConnection.prototype,i=r.addEventListener;r.addEventListener=function(a,s){if(a!==t)return i.apply(this,arguments);const l=c=>{const u=n(c);u&&(s.handleEvent?s.handleEvent(u):s(u))};return this._eventMap=this._eventMap||{},this._eventMap[t]||(this._eventMap[t]=new Map),this._eventMap[t].set(s,l),i.apply(this,[a,l])};const o=r.removeEventListener;r.removeEventListener=function(a,s){if(a!==t||!this._eventMap||!this._eventMap[t])return o.apply(this,arguments);if(!this._eventMap[t].has(s))return o.apply(this,arguments);const l=this._eventMap[t].get(s);return this._eventMap[t].delete(s),this._eventMap[t].size===0&&delete this._eventMap[t],Object.keys(this._eventMap).length===0&&delete this._eventMap,o.apply(this,[a,l])},Object.defineProperty(r,"on"+t,{get(){return this["_on"+t]},set(a){this["_on"+t]&&(this.removeEventListener(t,this["_on"+t]),delete this["_on"+t]),a&&this.addEventListener(t,this["_on"+t]=a)},enumerable:!0,configurable:!0})}function Jzt(e){return typeof e!="boolean"?new Error("Argument type: "+typeof e+". Please use a boolean."):(QEe=e,e?"adapter.js logging disabled":"adapter.js logging enabled")}function eUt(e){return typeof e!="boolean"?new Error("Argument type: "+typeof e+". Please use a boolean."):(ZEe=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))}function JEe(){if(typeof window=="object"){if(QEe)return;typeof console<"u"&&typeof console.log=="function"&&console.log.apply(console,arguments)}}function JK(e,t){ZEe&&console.warn(e+" is deprecated, please use "+t+" instead.")}function tUt(e){const t={browser:null,version:null};if(typeof e>"u"||!e.navigator||!e.navigator.userAgent)return t.browser="Not a browser.",t;const{navigator:n}=e;if(n.userAgentData&&n.userAgentData.brands){const r=n.userAgentData.brands.find(i=>i.brand==="Chromium");if(r)return{browser:"chrome",version:parseInt(r.version,10)}}if(n.mozGetUserMedia)t.browser="firefox",t.version=t3(n.userAgent,/Firefox\/(\d+)\./,1);else if(n.webkitGetUserMedia||e.isSecureContext===!1&&e.webkitRTCPeerConnection)t.browser="chrome",t.version=t3(n.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else if(e.RTCPeerConnection&&n.userAgent.match(/AppleWebKit\/(\d+)\./))t.browser="safari",t.version=t3(n.userAgent,/AppleWebKit\/(\d+)\./,1),t.supportsUnifiedPlan=e.RTCRtpTransceiver&&"currentDirection"in e.RTCRtpTransceiver.prototype;else return t.browser="Not a supported browser.",t;return t}function mae(e){return Object.prototype.toString.call(e)==="[object Object]"}function e4e(e){return mae(e)?Object.keys(e).reduce(function(t,n){const r=mae(e[n]),i=r?e4e(e[n]):e[n],o=r&&!Object.keys(i).length;return i===void 0||o?t:Object.assign(t,{[n]:i})},{}):e}function NB(e,t,n){!t||n.has(t.id)||(n.set(t.id,t),Object.keys(t).forEach(r=>{r.endsWith("Id")?NB(e,e.get(t[r]),n):r.endsWith("Ids")&&t[r].forEach(i=>{NB(e,e.get(i),n)})}))}function gae(e,t,n){const r=n?"outbound-rtp":"inbound-rtp",i=new Map;if(t===null)return i;const o=[];return e.forEach(a=>{a.type==="track"&&a.trackIdentifier===t.id&&o.push(a)}),o.forEach(a=>{e.forEach(s=>{s.type===r&&s.trackId===a.id&&NB(e,s,i)})}),i}const vae=JEe;function t4e(e,t){const n=e&&e.navigator;if(!n.mediaDevices)return;const r=function(s){if(typeof s!="object"||s.mandatory||s.optional)return s;const l={};return Object.keys(s).forEach(c=>{if(c==="require"||c==="advanced"||c==="mediaSource")return;const u=typeof s[c]=="object"?s[c]:{ideal:s[c]};u.exact!==void 0&&typeof u.exact=="number"&&(u.min=u.max=u.exact);const d=function(h,p){return h?h+p.charAt(0).toUpperCase()+p.slice(1):p==="deviceId"?"sourceId":p};if(u.ideal!==void 0){l.optional=l.optional||[];let h={};typeof u.ideal=="number"?(h[d("min",c)]=u.ideal,l.optional.push(h),h={},h[d("max",c)]=u.ideal,l.optional.push(h)):(h[d("",c)]=u.ideal,l.optional.push(h))}u.exact!==void 0&&typeof u.exact!="number"?(l.mandatory=l.mandatory||{},l.mandatory[d("",c)]=u.exact):["min","max"].forEach(h=>{u[h]!==void 0&&(l.mandatory=l.mandatory||{},l.mandatory[d(h,c)]=u[h])})}),s.advanced&&(l.optional=(l.optional||[]).concat(s.advanced)),l},i=function(s,l){if(t.version>=61)return l(s);if(s=JSON.parse(JSON.stringify(s)),s&&typeof s.audio=="object"){const c=function(u,d,h){d in u&&!(h in u)&&(u[h]=u[d],delete u[d])};s=JSON.parse(JSON.stringify(s)),c(s.audio,"autoGainControl","googAutoGainControl"),c(s.audio,"noiseSuppression","googNoiseSuppression"),s.audio=r(s.audio)}if(s&&typeof s.video=="object"){let c=s.video.facingMode;c=c&&(typeof c=="object"?c:{ideal:c});const u=t.version<66;if(c&&(c.exact==="user"||c.exact==="environment"||c.ideal==="user"||c.ideal==="environment")&&!(n.mediaDevices.getSupportedConstraints&&n.mediaDevices.getSupportedConstraints().facingMode&&!u)){delete s.video.facingMode;let d;if(c.exact==="environment"||c.ideal==="environment"?d=["back","rear"]:(c.exact==="user"||c.ideal==="user")&&(d=["front"]),d)return n.mediaDevices.enumerateDevices().then(h=>{h=h.filter(m=>m.kind==="videoinput");let p=h.find(m=>d.some(v=>m.label.toLowerCase().includes(v)));return!p&&h.length&&d.includes("back")&&(p=h[h.length-1]),p&&(s.video.deviceId=c.exact?{exact:p.deviceId}:{ideal:p.deviceId}),s.video=r(s.video),vae("chrome: "+JSON.stringify(s)),l(s)})}s.video=r(s.video)}return vae("chrome: "+JSON.stringify(s)),l(s)},o=function(s){return t.version>=64?s:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[s.name]||s.name,message:s.message,constraint:s.constraint||s.constraintName,toString(){return this.name+(this.message&&": ")+this.message}}},a=function(s,l,c){i(s,u=>{n.webkitGetUserMedia(u,l,d=>{c&&c(o(d))})})};if(n.getUserMedia=a.bind(n),n.mediaDevices.getUserMedia){const s=n.mediaDevices.getUserMedia.bind(n.mediaDevices);n.mediaDevices.getUserMedia=function(l){return i(l,c=>s(c).then(u=>{if(c.audio&&!u.getAudioTracks().length||c.video&&!u.getVideoTracks().length)throw u.getTracks().forEach(d=>{d.stop()}),new DOMException("","NotFoundError");return u},u=>Promise.reject(o(u))))}}}function n4e(e){e.MediaStream=e.MediaStream||e.webkitMediaStream}function r4e(e){if(typeof e=="object"&&e.RTCPeerConnection&&!("ontrack"in e.RTCPeerConnection.prototype)){Object.defineProperty(e.RTCPeerConnection.prototype,"ontrack",{get(){return this._ontrack},set(n){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=n)},enumerable:!0,configurable:!0});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){return this._ontrackpoly||(this._ontrackpoly=r=>{r.stream.addEventListener("addtrack",i=>{let o;e.RTCPeerConnection.prototype.getReceivers?o=this.getReceivers().find(s=>s.track&&s.track.id===i.track.id):o={track:i.track};const a=new Event("track");a.track=i.track,a.receiver=o,a.transceiver={receiver:o},a.streams=[r.stream],this.dispatchEvent(a)}),r.stream.getTracks().forEach(i=>{let o;e.RTCPeerConnection.prototype.getReceivers?o=this.getReceivers().find(s=>s.track&&s.track.id===i.id):o={track:i};const a=new Event("track");a.track=i,a.receiver=o,a.transceiver={receiver:o},a.streams=[r.stream],this.dispatchEvent(a)})},this.addEventListener("addstream",this._ontrackpoly)),t.apply(this,arguments)}}else s0(e,"track",t=>(t.transceiver||Object.defineProperty(t,"transceiver",{value:{receiver:t.receiver}}),t))}function i4e(e){if(typeof e=="object"&&e.RTCPeerConnection&&!("getSenders"in e.RTCPeerConnection.prototype)&&"createDTMFSender"in e.RTCPeerConnection.prototype){const t=function(i,o){return{track:o,get dtmf(){return this._dtmf===void 0&&(o.kind==="audio"?this._dtmf=i.createDTMFSender(o):this._dtmf=null),this._dtmf},_pc:i}};if(!e.RTCPeerConnection.prototype.getSenders){e.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};const i=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(s,l){let c=i.apply(this,arguments);return c||(c=t(this,s),this._senders.push(c)),c};const o=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(s){o.apply(this,arguments);const l=this._senders.indexOf(s);l!==-1&&this._senders.splice(l,1)}}const n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(o){this._senders=this._senders||[],n.apply(this,[o]),o.getTracks().forEach(a=>{this._senders.push(t(this,a))})};const r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(o){this._senders=this._senders||[],r.apply(this,[o]),o.getTracks().forEach(a=>{const s=this._senders.find(l=>l.track===a);s&&this._senders.splice(this._senders.indexOf(s),1)})}}else if(typeof e=="object"&&e.RTCPeerConnection&&"getSenders"in e.RTCPeerConnection.prototype&&"createDTMFSender"in e.RTCPeerConnection.prototype&&e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)){const t=e.RTCPeerConnection.prototype.getSenders;e.RTCPeerConnection.prototype.getSenders=function(){const r=t.apply(this,[]);return r.forEach(i=>i._pc=this),r},Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get(){return this._dtmf===void 0&&(this.track.kind==="audio"?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}})}}function o4e(e){if(!(typeof e=="object"&&e.RTCPeerConnection&&e.RTCRtpSender&&e.RTCRtpReceiver))return;if(!("getStats"in e.RTCRtpSender.prototype)){const n=e.RTCPeerConnection.prototype.getSenders;n&&(e.RTCPeerConnection.prototype.getSenders=function(){const o=n.apply(this,[]);return o.forEach(a=>a._pc=this),o});const r=e.RTCPeerConnection.prototype.addTrack;r&&(e.RTCPeerConnection.prototype.addTrack=function(){const o=r.apply(this,arguments);return o._pc=this,o}),e.RTCRtpSender.prototype.getStats=function(){const o=this;return this._pc.getStats().then(a=>gae(a,o.track,!0))}}if(!("getStats"in e.RTCRtpReceiver.prototype)){const n=e.RTCPeerConnection.prototype.getReceivers;n&&(e.RTCPeerConnection.prototype.getReceivers=function(){const i=n.apply(this,[]);return i.forEach(o=>o._pc=this),i}),s0(e,"track",r=>(r.receiver._pc=r.srcElement,r)),e.RTCRtpReceiver.prototype.getStats=function(){const i=this;return this._pc.getStats().then(o=>gae(o,i.track,!1))}}if(!("getStats"in e.RTCRtpSender.prototype&&"getStats"in e.RTCRtpReceiver.prototype))return;const t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof e.MediaStreamTrack){const r=arguments[0];let i,o,a;return this.getSenders().forEach(s=>{s.track===r&&(i?a=!0:i=s)}),this.getReceivers().forEach(s=>(s.track===r&&(o?a=!0:o=s),s.track===r)),a||i&&o?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):i?i.getStats():o?o.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return t.apply(this,arguments)}}function a4e(e){e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map(a=>this._shimmedLocalStreams[a][0])};const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(a,s){if(!s)return t.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};const l=t.apply(this,arguments);return this._shimmedLocalStreams[s.id]?this._shimmedLocalStreams[s.id].indexOf(l)===-1&&this._shimmedLocalStreams[s.id].push(l):this._shimmedLocalStreams[s.id]=[s,l],l};const n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(a){this._shimmedLocalStreams=this._shimmedLocalStreams||{},a.getTracks().forEach(c=>{if(this.getSenders().find(d=>d.track===c))throw new DOMException("Track already exists.","InvalidAccessError")});const s=this.getSenders();n.apply(this,arguments);const l=this.getSenders().filter(c=>s.indexOf(c)===-1);this._shimmedLocalStreams[a.id]=[a].concat(l)};const r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(a){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[a.id],r.apply(this,arguments)};const i=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(a){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},a&&Object.keys(this._shimmedLocalStreams).forEach(s=>{const l=this._shimmedLocalStreams[s].indexOf(a);l!==-1&&this._shimmedLocalStreams[s].splice(l,1),this._shimmedLocalStreams[s].length===1&&delete this._shimmedLocalStreams[s]}),i.apply(this,arguments)}}function s4e(e,t){if(!e.RTCPeerConnection)return;if(e.RTCPeerConnection.prototype.addTrack&&t.version>=65)return a4e(e);const n=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){const u=n.apply(this);return this._reverseStreams=this._reverseStreams||{},u.map(d=>this._reverseStreams[d.id])};const r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(u){if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},u.getTracks().forEach(d=>{if(this.getSenders().find(p=>p.track===d))throw new DOMException("Track already exists.","InvalidAccessError")}),!this._reverseStreams[u.id]){const d=new e.MediaStream(u.getTracks());this._streams[u.id]=d,this._reverseStreams[d.id]=u,u=d}r.apply(this,[u])};const i=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(u){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},i.apply(this,[this._streams[u.id]||u]),delete this._reverseStreams[this._streams[u.id]?this._streams[u.id].id:u.id],delete this._streams[u.id]},e.RTCPeerConnection.prototype.addTrack=function(u,d){if(this.signalingState==="closed")throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");const h=[].slice.call(arguments,1);if(h.length!==1||!h[0].getTracks().find(v=>v===u))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");if(this.getSenders().find(v=>v.track===u))throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};const m=this._streams[d.id];if(m)m.addTrack(u),Promise.resolve().then(()=>{this.dispatchEvent(new Event("negotiationneeded"))});else{const v=new e.MediaStream([u]);this._streams[d.id]=v,this._reverseStreams[v.id]=d,this.addStream(v)}return this.getSenders().find(v=>v.track===u)};function o(c,u){let d=u.sdp;return Object.keys(c._reverseStreams||[]).forEach(h=>{const p=c._reverseStreams[h],m=c._streams[p.id];d=d.replace(new RegExp(m.id,"g"),p.id)}),new RTCSessionDescription({type:u.type,sdp:d})}function a(c,u){let d=u.sdp;return Object.keys(c._reverseStreams||[]).forEach(h=>{const p=c._reverseStreams[h],m=c._streams[p.id];d=d.replace(new RegExp(p.id,"g"),m.id)}),new RTCSessionDescription({type:u.type,sdp:d})}["createOffer","createAnswer"].forEach(function(c){const u=e.RTCPeerConnection.prototype[c],d={[c](){const h=arguments;return arguments.length&&typeof arguments[0]=="function"?u.apply(this,[m=>{const v=o(this,m);h[0].apply(null,[v])},m=>{h[1]&&h[1].apply(null,m)},arguments[2]]):u.apply(this,arguments).then(m=>o(this,m))}};e.RTCPeerConnection.prototype[c]=d[c]});const s=e.RTCPeerConnection.prototype.setLocalDescription;e.RTCPeerConnection.prototype.setLocalDescription=function(){return!arguments.length||!arguments[0].type?s.apply(this,arguments):(arguments[0]=a(this,arguments[0]),s.apply(this,arguments))};const l=Object.getOwnPropertyDescriptor(e.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(e.RTCPeerConnection.prototype,"localDescription",{get(){const c=l.get.apply(this);return c.type===""?c:o(this,c)}}),e.RTCPeerConnection.prototype.removeTrack=function(u){if(this.signalingState==="closed")throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!u._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(!(u._pc===this))throw new DOMException("Sender was not created by this connection.","InvalidAccessError");this._streams=this._streams||{};let h;Object.keys(this._streams).forEach(p=>{this._streams[p].getTracks().find(v=>u.track===v)&&(h=this._streams[p])}),h&&(h.getTracks().length===1?this.removeStream(this._reverseStreams[h.id]):h.removeTrack(u.track),this.dispatchEvent(new Event("negotiationneeded")))}}function DB(e,t){!e.RTCPeerConnection&&e.webkitRTCPeerConnection&&(e.RTCPeerConnection=e.webkitRTCPeerConnection),e.RTCPeerConnection&&t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(n){const r=e.RTCPeerConnection.prototype[n],i={[n](){return arguments[0]=new(n==="addIceCandidate"?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),r.apply(this,arguments)}};e.RTCPeerConnection.prototype[n]=i[n]})}function l4e(e,t){s0(e,"negotiationneeded",n=>{const r=n.target;if(!((t.version<72||r.getConfiguration&&r.getConfiguration().sdpSemantics==="plan-b")&&r.signalingState!=="stable"))return n})}const yae=Object.freeze(Object.defineProperty({__proto__:null,fixNegotiationNeeded:l4e,shimAddTrackRemoveTrack:s4e,shimAddTrackRemoveTrackWithNative:a4e,shimGetSendersWithDtmf:i4e,shimGetUserMedia:t4e,shimMediaStream:n4e,shimOnTrack:r4e,shimPeerConnection:DB,shimSenderReceiverGetStats:o4e},Symbol.toStringTag,{value:"Module"}));function c4e(e,t){const n=e&&e.navigator,r=e&&e.MediaStreamTrack;if(n.getUserMedia=function(i,o,a){JK("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),n.mediaDevices.getUserMedia(i).then(o,a)},!(t.version>55&&"autoGainControl"in n.mediaDevices.getSupportedConstraints())){const i=function(a,s,l){s in a&&!(l in a)&&(a[l]=a[s],delete a[s])},o=n.mediaDevices.getUserMedia.bind(n.mediaDevices);if(n.mediaDevices.getUserMedia=function(a){return typeof a=="object"&&typeof a.audio=="object"&&(a=JSON.parse(JSON.stringify(a)),i(a.audio,"autoGainControl","mozAutoGainControl"),i(a.audio,"noiseSuppression","mozNoiseSuppression")),o(a)},r&&r.prototype.getSettings){const a=r.prototype.getSettings;r.prototype.getSettings=function(){const s=a.apply(this,arguments);return i(s,"mozAutoGainControl","autoGainControl"),i(s,"mozNoiseSuppression","noiseSuppression"),s}}if(r&&r.prototype.applyConstraints){const a=r.prototype.applyConstraints;r.prototype.applyConstraints=function(s){return this.kind==="audio"&&typeof s=="object"&&(s=JSON.parse(JSON.stringify(s)),i(s,"autoGainControl","mozAutoGainControl"),i(s,"noiseSuppression","mozNoiseSuppression")),a.apply(this,[s])}}}}function nUt(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&(e.navigator.mediaDevices.getDisplayMedia=function(r){if(!(r&&r.video)){const i=new DOMException("getDisplayMedia without video constraints is undefined");return i.name="NotFoundError",i.code=8,Promise.reject(i)}return r.video===!0?r.video={mediaSource:t}:r.video.mediaSource=t,e.navigator.mediaDevices.getUserMedia(r)})}function u4e(e){typeof e=="object"&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function LB(e,t){if(typeof e!="object"||!(e.RTCPeerConnection||e.mozRTCPeerConnection))return;!e.RTCPeerConnection&&e.mozRTCPeerConnection&&(e.RTCPeerConnection=e.mozRTCPeerConnection),t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(i){const o=e.RTCPeerConnection.prototype[i],a={[i](){return arguments[0]=new(i==="addIceCandidate"?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),o.apply(this,arguments)}};e.RTCPeerConnection.prototype[i]=a[i]});const n={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},r=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){const[o,a,s]=arguments;return r.apply(this,[o||null]).then(l=>{if(t.version<53&&!a)try{l.forEach(c=>{c.type=n[c.type]||c.type})}catch(c){if(c.name!=="TypeError")throw c;l.forEach((u,d)=>{l.set(d,Object.assign({},u,{type:n[u.type]||u.type}))})}return l}).then(a,s)}}function d4e(e){if(!(typeof e=="object"&&e.RTCPeerConnection&&e.RTCRtpSender)||e.RTCRtpSender&&"getStats"in e.RTCRtpSender.prototype)return;const t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){const i=t.apply(this,[]);return i.forEach(o=>o._pc=this),i});const n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){const i=n.apply(this,arguments);return i._pc=this,i}),e.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}function f4e(e){if(!(typeof e=="object"&&e.RTCPeerConnection&&e.RTCRtpSender)||e.RTCRtpSender&&"getStats"in e.RTCRtpReceiver.prototype)return;const t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){const r=t.apply(this,[]);return r.forEach(i=>i._pc=this),r}),s0(e,"track",n=>(n.receiver._pc=n.srcElement,n)),e.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function h4e(e){!e.RTCPeerConnection||"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(n){JK("removeStream","removeTrack"),this.getSenders().forEach(r=>{r.track&&n.getTracks().includes(r.track)&&this.removeTrack(r)})})}function p4e(e){e.DataChannel&&!e.RTCDataChannel&&(e.RTCDataChannel=e.DataChannel)}function m4e(e){if(!(typeof e=="object"&&e.RTCPeerConnection))return;const t=e.RTCPeerConnection.prototype.addTransceiver;t&&(e.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];let r=arguments[1]&&arguments[1].sendEncodings;r===void 0&&(r=[]),r=[...r];const i=r.length>0;i&&r.forEach(a=>{if("rid"in a&&!/^[a-z0-9]{0,16}$/i.test(a.rid))throw new TypeError("Invalid RID value provided.");if("scaleResolutionDownBy"in a&&!(parseFloat(a.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in a&&!(parseFloat(a.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")});const o=t.apply(this,arguments);if(i){const{sender:a}=o,s=a.getParameters();(!("encodings"in s)||s.encodings.length===1&&Object.keys(s.encodings[0]).length===0)&&(s.encodings=r,a.sendEncodings=r,this.setParametersPromises.push(a.setParameters(s).then(()=>{delete a.sendEncodings}).catch(()=>{delete a.sendEncodings})))}return o})}function g4e(e){if(!(typeof e=="object"&&e.RTCRtpSender))return;const t=e.RTCRtpSender.prototype.getParameters;t&&(e.RTCRtpSender.prototype.getParameters=function(){const r=t.apply(this,arguments);return"encodings"in r||(r.encodings=[].concat(this.sendEncodings||[{}])),r})}function v4e(e){if(!(typeof e=="object"&&e.RTCPeerConnection))return;const t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>t.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):t.apply(this,arguments)}}function y4e(e){if(!(typeof e=="object"&&e.RTCPeerConnection))return;const t=e.RTCPeerConnection.prototype.createAnswer;e.RTCPeerConnection.prototype.createAnswer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>t.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):t.apply(this,arguments)}}const bae=Object.freeze(Object.defineProperty({__proto__:null,shimAddTransceiver:m4e,shimCreateAnswer:y4e,shimCreateOffer:v4e,shimGetDisplayMedia:nUt,shimGetParameters:g4e,shimGetUserMedia:c4e,shimOnTrack:u4e,shimPeerConnection:LB,shimRTCDataChannel:p4e,shimReceiverGetStats:f4e,shimRemoveStream:h4e,shimSenderGetStats:d4e},Symbol.toStringTag,{value:"Module"}));function b4e(e){if(!(typeof e!="object"||!e.RTCPeerConnection)){if("getLocalStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in e.RTCPeerConnection.prototype)){const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(r){this._localStreams||(this._localStreams=[]),this._localStreams.includes(r)||this._localStreams.push(r),r.getAudioTracks().forEach(i=>t.call(this,i,r)),r.getVideoTracks().forEach(i=>t.call(this,i,r))},e.RTCPeerConnection.prototype.addTrack=function(r,...i){return i&&i.forEach(o=>{this._localStreams?this._localStreams.includes(o)||this._localStreams.push(o):this._localStreams=[o]}),t.apply(this,arguments)}}"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(n){this._localStreams||(this._localStreams=[]);const r=this._localStreams.indexOf(n);if(r===-1)return;this._localStreams.splice(r,1);const i=n.getTracks();this.getSenders().forEach(o=>{i.includes(o.track)&&this.removeTrack(o)})})}}function S4e(e){if(!(typeof e!="object"||!e.RTCPeerConnection)&&("getRemoteStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in e.RTCPeerConnection.prototype))){Object.defineProperty(e.RTCPeerConnection.prototype,"onaddstream",{get(){return this._onaddstream},set(n){this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=n),this.addEventListener("track",this._onaddstreampoly=r=>{r.streams.forEach(i=>{if(this._remoteStreams||(this._remoteStreams=[]),this._remoteStreams.includes(i))return;this._remoteStreams.push(i);const o=new Event("addstream");o.stream=i,this.dispatchEvent(o)})})}});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){const r=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(i){i.streams.forEach(o=>{if(r._remoteStreams||(r._remoteStreams=[]),r._remoteStreams.indexOf(o)>=0)return;r._remoteStreams.push(o);const a=new Event("addstream");a.stream=o,r.dispatchEvent(a)})}),t.apply(r,arguments)}}}function C4e(e){if(typeof e!="object"||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype,n=t.createOffer,r=t.createAnswer,i=t.setLocalDescription,o=t.setRemoteDescription,a=t.addIceCandidate;t.createOffer=function(c,u){const d=arguments.length>=2?arguments[2]:arguments[0],h=n.apply(this,[d]);return u?(h.then(c,u),Promise.resolve()):h},t.createAnswer=function(c,u){const d=arguments.length>=2?arguments[2]:arguments[0],h=r.apply(this,[d]);return u?(h.then(c,u),Promise.resolve()):h};let s=function(l,c,u){const d=i.apply(this,[l]);return u?(d.then(c,u),Promise.resolve()):d};t.setLocalDescription=s,s=function(l,c,u){const d=o.apply(this,[l]);return u?(d.then(c,u),Promise.resolve()):d},t.setRemoteDescription=s,s=function(l,c,u){const d=a.apply(this,[l]);return u?(d.then(c,u),Promise.resolve()):d},t.addIceCandidate=s}function x4e(e){const t=e&&e.navigator;if(t.mediaDevices&&t.mediaDevices.getUserMedia){const n=t.mediaDevices,r=n.getUserMedia.bind(n);t.mediaDevices.getUserMedia=i=>r(w4e(i))}!t.getUserMedia&&t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=(function(r,i,o){t.mediaDevices.getUserMedia(r).then(i,o)}).bind(t))}function w4e(e){return e&&e.video!==void 0?Object.assign({},e,{video:e4e(e.video)}):e}function _4e(e){if(!e.RTCPeerConnection)return;const t=e.RTCPeerConnection;e.RTCPeerConnection=function(r,i){if(r&&r.iceServers){const o=[];for(let a=0;a<r.iceServers.length;a++){let s=r.iceServers[a];s.urls===void 0&&s.url?(JK("RTCIceServer.url","RTCIceServer.urls"),s=JSON.parse(JSON.stringify(s)),s.urls=s.url,delete s.url,o.push(s)):o.push(r.iceServers[a])}r.iceServers=o}return new t(r,i)},e.RTCPeerConnection.prototype=t.prototype,"generateCertificate"in t&&Object.defineProperty(e.RTCPeerConnection,"generateCertificate",{get(){return t.generateCertificate}})}function E4e(e){typeof e=="object"&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function T4e(e){const t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(r){if(r){typeof r.offerToReceiveAudio<"u"&&(r.offerToReceiveAudio=!!r.offerToReceiveAudio);const i=this.getTransceivers().find(a=>a.receiver.track.kind==="audio");r.offerToReceiveAudio===!1&&i?i.direction==="sendrecv"?i.setDirection?i.setDirection("sendonly"):i.direction="sendonly":i.direction==="recvonly"&&(i.setDirection?i.setDirection("inactive"):i.direction="inactive"):r.offerToReceiveAudio===!0&&!i&&this.addTransceiver("audio",{direction:"recvonly"}),typeof r.offerToReceiveVideo<"u"&&(r.offerToReceiveVideo=!!r.offerToReceiveVideo);const o=this.getTransceivers().find(a=>a.receiver.track.kind==="video");r.offerToReceiveVideo===!1&&o?o.direction==="sendrecv"?o.setDirection?o.setDirection("sendonly"):o.direction="sendonly":o.direction==="recvonly"&&(o.setDirection?o.setDirection("inactive"):o.direction="inactive"):r.offerToReceiveVideo===!0&&!o&&this.addTransceiver("video",{direction:"recvonly"})}return t.apply(this,arguments)}}function k4e(e){typeof e!="object"||e.AudioContext||(e.AudioContext=e.webkitAudioContext)}const Sae=Object.freeze(Object.defineProperty({__proto__:null,shimAudioContext:k4e,shimCallbacksAPI:C4e,shimConstraints:w4e,shimCreateOfferLegacy:T4e,shimGetUserMedia:x4e,shimLocalStreamsAPI:b4e,shimRTCIceServerUrls:_4e,shimRemoteStreamsAPI:S4e,shimTrackEventTransceiver:E4e},Symbol.toStringTag,{value:"Module"}));var O4e={exports:{}};(function(e){const t={};t.generateIdentifier=function(){return Math.random().toString(36).substring(2,12)},t.localCName=t.generateIdentifier(),t.splitLines=function(n){return n.trim().split(`
|
||
`).map(r=>r.trim())},t.splitSections=function(n){return n.split(`
|
||
m=`).map((i,o)=>(o>0?"m="+i:i).trim()+`\r
|
||
`)},t.getDescription=function(n){const r=t.splitSections(n);return r&&r[0]},t.getMediaSections=function(n){const r=t.splitSections(n);return r.shift(),r},t.matchPrefix=function(n,r){return t.splitLines(n).filter(i=>i.indexOf(r)===0)},t.parseCandidate=function(n){let r;n.indexOf("a=candidate:")===0?r=n.substring(12).split(" "):r=n.substring(10).split(" ");const i={foundation:r[0],component:{1:"rtp",2:"rtcp"}[r[1]]||r[1],protocol:r[2].toLowerCase(),priority:parseInt(r[3],10),ip:r[4],address:r[4],port:parseInt(r[5],10),type:r[7]};for(let o=8;o<r.length;o+=2)switch(r[o]){case"raddr":i.relatedAddress=r[o+1];break;case"rport":i.relatedPort=parseInt(r[o+1],10);break;case"tcptype":i.tcpType=r[o+1];break;case"ufrag":i.ufrag=r[o+1],i.usernameFragment=r[o+1];break;default:i[r[o]]===void 0&&(i[r[o]]=r[o+1]);break}return i},t.writeCandidate=function(n){const r=[];r.push(n.foundation);const i=n.component;i==="rtp"?r.push(1):i==="rtcp"?r.push(2):r.push(i),r.push(n.protocol.toUpperCase()),r.push(n.priority),r.push(n.address||n.ip),r.push(n.port);const o=n.type;return r.push("typ"),r.push(o),o!=="host"&&n.relatedAddress&&n.relatedPort&&(r.push("raddr"),r.push(n.relatedAddress),r.push("rport"),r.push(n.relatedPort)),n.tcpType&&n.protocol.toLowerCase()==="tcp"&&(r.push("tcptype"),r.push(n.tcpType)),(n.usernameFragment||n.ufrag)&&(r.push("ufrag"),r.push(n.usernameFragment||n.ufrag)),"candidate:"+r.join(" ")},t.parseIceOptions=function(n){return n.substring(14).split(" ")},t.parseRtpMap=function(n){let r=n.substring(9).split(" ");const i={payloadType:parseInt(r.shift(),10)};return r=r[0].split("/"),i.name=r[0],i.clockRate=parseInt(r[1],10),i.channels=r.length===3?parseInt(r[2],10):1,i.numChannels=i.channels,i},t.writeRtpMap=function(n){let r=n.payloadType;n.preferredPayloadType!==void 0&&(r=n.preferredPayloadType);const i=n.channels||n.numChannels||1;return"a=rtpmap:"+r+" "+n.name+"/"+n.clockRate+(i!==1?"/"+i:"")+`\r
|
||
`},t.parseExtmap=function(n){const r=n.substring(9).split(" ");return{id:parseInt(r[0],10),direction:r[0].indexOf("/")>0?r[0].split("/")[1]:"sendrecv",uri:r[1],attributes:r.slice(2).join(" ")}},t.writeExtmap=function(n){return"a=extmap:"+(n.id||n.preferredId)+(n.direction&&n.direction!=="sendrecv"?"/"+n.direction:"")+" "+n.uri+(n.attributes?" "+n.attributes:"")+`\r
|
||
`},t.parseFmtp=function(n){const r={};let i;const o=n.substring(n.indexOf(" ")+1).split(";");for(let a=0;a<o.length;a++)i=o[a].trim().split("="),r[i[0].trim()]=i[1];return r},t.writeFmtp=function(n){let r="",i=n.payloadType;if(n.preferredPayloadType!==void 0&&(i=n.preferredPayloadType),n.parameters&&Object.keys(n.parameters).length){const o=[];Object.keys(n.parameters).forEach(a=>{n.parameters[a]!==void 0?o.push(a+"="+n.parameters[a]):o.push(a)}),r+="a=fmtp:"+i+" "+o.join(";")+`\r
|
||
`}return r},t.parseRtcpFb=function(n){const r=n.substring(n.indexOf(" ")+1).split(" ");return{type:r.shift(),parameter:r.join(" ")}},t.writeRtcpFb=function(n){let r="",i=n.payloadType;return n.preferredPayloadType!==void 0&&(i=n.preferredPayloadType),n.rtcpFeedback&&n.rtcpFeedback.length&&n.rtcpFeedback.forEach(o=>{r+="a=rtcp-fb:"+i+" "+o.type+(o.parameter&&o.parameter.length?" "+o.parameter:"")+`\r
|
||
`}),r},t.parseSsrcMedia=function(n){const r=n.indexOf(" "),i={ssrc:parseInt(n.substring(7,r),10)},o=n.indexOf(":",r);return o>-1?(i.attribute=n.substring(r+1,o),i.value=n.substring(o+1)):i.attribute=n.substring(r+1),i},t.parseSsrcGroup=function(n){const r=n.substring(13).split(" ");return{semantics:r.shift(),ssrcs:r.map(i=>parseInt(i,10))}},t.getMid=function(n){const r=t.matchPrefix(n,"a=mid:")[0];if(r)return r.substring(6)},t.parseFingerprint=function(n){const r=n.substring(14).split(" ");return{algorithm:r[0].toLowerCase(),value:r[1].toUpperCase()}},t.getDtlsParameters=function(n,r){return{role:"auto",fingerprints:t.matchPrefix(n+r,"a=fingerprint:").map(t.parseFingerprint)}},t.writeDtlsParameters=function(n,r){let i="a=setup:"+r+`\r
|
||
`;return n.fingerprints.forEach(o=>{i+="a=fingerprint:"+o.algorithm+" "+o.value+`\r
|
||
`}),i},t.parseCryptoLine=function(n){const r=n.substring(9).split(" ");return{tag:parseInt(r[0],10),cryptoSuite:r[1],keyParams:r[2],sessionParams:r.slice(3)}},t.writeCryptoLine=function(n){return"a=crypto:"+n.tag+" "+n.cryptoSuite+" "+(typeof n.keyParams=="object"?t.writeCryptoKeyParams(n.keyParams):n.keyParams)+(n.sessionParams?" "+n.sessionParams.join(" "):"")+`\r
|
||
`},t.parseCryptoKeyParams=function(n){if(n.indexOf("inline:")!==0)return null;const r=n.substring(7).split("|");return{keyMethod:"inline",keySalt:r[0],lifeTime:r[1],mkiValue:r[2]?r[2].split(":")[0]:void 0,mkiLength:r[2]?r[2].split(":")[1]:void 0}},t.writeCryptoKeyParams=function(n){return n.keyMethod+":"+n.keySalt+(n.lifeTime?"|"+n.lifeTime:"")+(n.mkiValue&&n.mkiLength?"|"+n.mkiValue+":"+n.mkiLength:"")},t.getCryptoParameters=function(n,r){return t.matchPrefix(n+r,"a=crypto:").map(t.parseCryptoLine)},t.getIceParameters=function(n,r){const i=t.matchPrefix(n+r,"a=ice-ufrag:")[0],o=t.matchPrefix(n+r,"a=ice-pwd:")[0];return i&&o?{usernameFragment:i.substring(12),password:o.substring(10)}:null},t.writeIceParameters=function(n){let r="a=ice-ufrag:"+n.usernameFragment+`\r
|
||
a=ice-pwd:`+n.password+`\r
|
||
`;return n.iceLite&&(r+=`a=ice-lite\r
|
||
`),r},t.parseRtpParameters=function(n){const r={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},o=t.splitLines(n)[0].split(" ");r.profile=o[2];for(let s=3;s<o.length;s++){const l=o[s],c=t.matchPrefix(n,"a=rtpmap:"+l+" ")[0];if(c){const u=t.parseRtpMap(c),d=t.matchPrefix(n,"a=fmtp:"+l+" ");switch(u.parameters=d.length?t.parseFmtp(d[0]):{},u.rtcpFeedback=t.matchPrefix(n,"a=rtcp-fb:"+l+" ").map(t.parseRtcpFb),r.codecs.push(u),u.name.toUpperCase()){case"RED":case"ULPFEC":r.fecMechanisms.push(u.name.toUpperCase());break}}}t.matchPrefix(n,"a=extmap:").forEach(s=>{r.headerExtensions.push(t.parseExtmap(s))});const a=t.matchPrefix(n,"a=rtcp-fb:* ").map(t.parseRtcpFb);return r.codecs.forEach(s=>{a.forEach(l=>{s.rtcpFeedback.find(u=>u.type===l.type&&u.parameter===l.parameter)||s.rtcpFeedback.push(l)})}),r},t.writeRtpDescription=function(n,r){let i="";i+="m="+n+" ",i+=r.codecs.length>0?"9":"0",i+=" "+(r.profile||"UDP/TLS/RTP/SAVPF")+" ",i+=r.codecs.map(a=>a.preferredPayloadType!==void 0?a.preferredPayloadType:a.payloadType).join(" ")+`\r
|
||
`,i+=`c=IN IP4 0.0.0.0\r
|
||
`,i+=`a=rtcp:9 IN IP4 0.0.0.0\r
|
||
`,r.codecs.forEach(a=>{i+=t.writeRtpMap(a),i+=t.writeFmtp(a),i+=t.writeRtcpFb(a)});let o=0;return r.codecs.forEach(a=>{a.maxptime>o&&(o=a.maxptime)}),o>0&&(i+="a=maxptime:"+o+`\r
|
||
`),r.headerExtensions&&r.headerExtensions.forEach(a=>{i+=t.writeExtmap(a)}),i},t.parseRtpEncodingParameters=function(n){const r=[],i=t.parseRtpParameters(n),o=i.fecMechanisms.indexOf("RED")!==-1,a=i.fecMechanisms.indexOf("ULPFEC")!==-1,s=t.matchPrefix(n,"a=ssrc:").map(h=>t.parseSsrcMedia(h)).filter(h=>h.attribute==="cname"),l=s.length>0&&s[0].ssrc;let c;const u=t.matchPrefix(n,"a=ssrc-group:FID").map(h=>h.substring(17).split(" ").map(m=>parseInt(m,10)));u.length>0&&u[0].length>1&&u[0][0]===l&&(c=u[0][1]),i.codecs.forEach(h=>{if(h.name.toUpperCase()==="RTX"&&h.parameters.apt){let p={ssrc:l,codecPayloadType:parseInt(h.parameters.apt,10)};l&&c&&(p.rtx={ssrc:c}),r.push(p),o&&(p=JSON.parse(JSON.stringify(p)),p.fec={ssrc:l,mechanism:a?"red+ulpfec":"red"},r.push(p))}}),r.length===0&&l&&r.push({ssrc:l});let d=t.matchPrefix(n,"b=");return d.length&&(d[0].indexOf("b=TIAS:")===0?d=parseInt(d[0].substring(7),10):d[0].indexOf("b=AS:")===0?d=parseInt(d[0].substring(5),10)*1e3*.95-50*40*8:d=void 0,r.forEach(h=>{h.maxBitrate=d})),r},t.parseRtcpParameters=function(n){const r={},i=t.matchPrefix(n,"a=ssrc:").map(s=>t.parseSsrcMedia(s)).filter(s=>s.attribute==="cname")[0];i&&(r.cname=i.value,r.ssrc=i.ssrc);const o=t.matchPrefix(n,"a=rtcp-rsize");r.reducedSize=o.length>0,r.compound=o.length===0;const a=t.matchPrefix(n,"a=rtcp-mux");return r.mux=a.length>0,r},t.writeRtcpParameters=function(n){let r="";return n.reducedSize&&(r+=`a=rtcp-rsize\r
|
||
`),n.mux&&(r+=`a=rtcp-mux\r
|
||
`),n.ssrc!==void 0&&n.cname&&(r+="a=ssrc:"+n.ssrc+" cname:"+n.cname+`\r
|
||
`),r},t.parseMsid=function(n){let r;const i=t.matchPrefix(n,"a=msid:");if(i.length===1)return r=i[0].substring(7).split(" "),{stream:r[0],track:r[1]};const o=t.matchPrefix(n,"a=ssrc:").map(a=>t.parseSsrcMedia(a)).filter(a=>a.attribute==="msid");if(o.length>0)return r=o[0].value.split(" "),{stream:r[0],track:r[1]}},t.parseSctpDescription=function(n){const r=t.parseMLine(n),i=t.matchPrefix(n,"a=max-message-size:");let o;i.length>0&&(o=parseInt(i[0].substring(19),10)),isNaN(o)&&(o=65536);const a=t.matchPrefix(n,"a=sctp-port:");if(a.length>0)return{port:parseInt(a[0].substring(12),10),protocol:r.fmt,maxMessageSize:o};const s=t.matchPrefix(n,"a=sctpmap:");if(s.length>0){const l=s[0].substring(10).split(" ");return{port:parseInt(l[0],10),protocol:l[1],maxMessageSize:o}}},t.writeSctpDescription=function(n,r){let i=[];return n.protocol!=="DTLS/SCTP"?i=["m="+n.kind+" 9 "+n.protocol+" "+r.protocol+`\r
|
||
`,`c=IN IP4 0.0.0.0\r
|
||
`,"a=sctp-port:"+r.port+`\r
|
||
`]:i=["m="+n.kind+" 9 "+n.protocol+" "+r.port+`\r
|
||
`,`c=IN IP4 0.0.0.0\r
|
||
`,"a=sctpmap:"+r.port+" "+r.protocol+` 65535\r
|
||
`],r.maxMessageSize!==void 0&&i.push("a=max-message-size:"+r.maxMessageSize+`\r
|
||
`),i.join("")},t.generateSessionId=function(){return Math.random().toString().substr(2,22)},t.writeSessionBoilerplate=function(n,r,i){let o;const a=r!==void 0?r:2;return n?o=n:o=t.generateSessionId(),`v=0\r
|
||
o=`+(i||"thisisadapterortc")+" "+o+" "+a+` IN IP4 127.0.0.1\r
|
||
s=-\r
|
||
t=0 0\r
|
||
`},t.getDirection=function(n,r){const i=t.splitLines(n);for(let o=0;o<i.length;o++)switch(i[o]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return i[o].substring(2)}return r?t.getDirection(r):"sendrecv"},t.getKind=function(n){return t.splitLines(n)[0].split(" ")[0].substring(2)},t.isRejected=function(n){return n.split(" ",2)[1]==="0"},t.parseMLine=function(n){const i=t.splitLines(n)[0].substring(2).split(" ");return{kind:i[0],port:parseInt(i[1],10),protocol:i[2],fmt:i.slice(3).join(" ")}},t.parseOLine=function(n){const i=t.matchPrefix(n,"o=")[0].substring(2).split(" ");return{username:i[0],sessionId:i[1],sessionVersion:parseInt(i[2],10),netType:i[3],addressType:i[4],address:i[5]}},t.isValidSDP=function(n){if(typeof n!="string"||n.length===0)return!1;const r=t.splitLines(n);for(let i=0;i<r.length;i++)if(r[i].length<2||r[i].charAt(1)!=="=")return!1;return!0},e.exports=t})(O4e);var P4e=O4e.exports;const mb=vi(P4e),rUt=Wk({__proto__:null,default:mb},[P4e]);function n3(e){if(!e.RTCIceCandidate||e.RTCIceCandidate&&"foundation"in e.RTCIceCandidate.prototype)return;const t=e.RTCIceCandidate;e.RTCIceCandidate=function(r){if(typeof r=="object"&&r.candidate&&r.candidate.indexOf("a=")===0&&(r=JSON.parse(JSON.stringify(r)),r.candidate=r.candidate.substring(2)),r.candidate&&r.candidate.length){const i=new t(r),o=mb.parseCandidate(r.candidate);for(const a in o)a in i||Object.defineProperty(i,a,{value:o[a]});return i.toJSON=function(){return{candidate:i.candidate,sdpMid:i.sdpMid,sdpMLineIndex:i.sdpMLineIndex,usernameFragment:i.usernameFragment}},i}return new t(r)},e.RTCIceCandidate.prototype=t.prototype,s0(e,"icecandidate",n=>(n.candidate&&Object.defineProperty(n,"candidate",{value:new e.RTCIceCandidate(n.candidate),writable:"false"}),n))}function FB(e){!e.RTCIceCandidate||e.RTCIceCandidate&&"relayProtocol"in e.RTCIceCandidate.prototype||s0(e,"icecandidate",t=>{if(t.candidate){const n=mb.parseCandidate(t.candidate.candidate);n.type==="relay"&&(t.candidate.relayProtocol={0:"tls",1:"tcp",2:"udp"}[n.priority>>24])}return t})}function r3(e,t){if(!e.RTCPeerConnection)return;"sctp"in e.RTCPeerConnection.prototype||Object.defineProperty(e.RTCPeerConnection.prototype,"sctp",{get(){return typeof this._sctp>"u"?null:this._sctp}});const n=function(s){if(!s||!s.sdp)return!1;const l=mb.splitSections(s.sdp);return l.shift(),l.some(c=>{const u=mb.parseMLine(c);return u&&u.kind==="application"&&u.protocol.indexOf("SCTP")!==-1})},r=function(s){const l=s.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(l===null||l.length<2)return-1;const c=parseInt(l[1],10);return c!==c?-1:c},i=function(s){let l=65536;return t.browser==="firefox"&&(t.version<57?s===-1?l=16384:l=2147483637:t.version<60?l=t.version===57?65535:65536:l=2147483637),l},o=function(s,l){let c=65536;t.browser==="firefox"&&t.version===57&&(c=65535);const u=mb.matchPrefix(s.sdp,"a=max-message-size:");return u.length>0?c=parseInt(u[0].substring(19),10):t.browser==="firefox"&&l!==-1&&(c=2147483637),c},a=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,t.browser==="chrome"&&t.version>=76){const{sdpSemantics:l}=this.getConfiguration();l==="plan-b"&&Object.defineProperty(this,"sctp",{get(){return typeof this._sctp>"u"?null:this._sctp},enumerable:!0,configurable:!0})}if(n(arguments[0])){const l=r(arguments[0]),c=i(l),u=o(arguments[0],l);let d;c===0&&u===0?d=Number.POSITIVE_INFINITY:c===0||u===0?d=Math.max(c,u):d=Math.min(c,u);const h={};Object.defineProperty(h,"maxMessageSize",{get(){return d}}),this._sctp=h}return a.apply(this,arguments)}}function i3(e){if(!(e.RTCPeerConnection&&"createDataChannel"in e.RTCPeerConnection.prototype))return;function t(r,i){const o=r.send;r.send=function(){const s=arguments[0],l=s.length||s.size||s.byteLength;if(r.readyState==="open"&&i.sctp&&l>i.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+i.sctp.maxMessageSize+" bytes)");return o.apply(r,arguments)}}const n=e.RTCPeerConnection.prototype.createDataChannel;e.RTCPeerConnection.prototype.createDataChannel=function(){const i=n.apply(this,arguments);return t(i,this),i},s0(e,"datachannel",r=>(t(r.channel,r.target),r))}function jB(e){if(!e.RTCPeerConnection||"connectionState"in e.RTCPeerConnection.prototype)return;const t=e.RTCPeerConnection.prototype;Object.defineProperty(t,"connectionState",{get(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(t,"onconnectionstatechange",{get(){return this._onconnectionstatechange||null},set(n){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),n&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=n)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach(n=>{const r=t[n];t[n]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=i=>{const o=i.target;if(o._lastConnectionState!==o.connectionState){o._lastConnectionState=o.connectionState;const a=new Event("connectionstatechange",i);o.dispatchEvent(a)}return i},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),r.apply(this,arguments)}})}function BB(e,t){if(!e.RTCPeerConnection||t.browser==="chrome"&&t.version>=71||t.browser==="safari"&&t.version>=605)return;const n=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(i){if(i&&i.sdp&&i.sdp.indexOf(`
|
||
a=extmap-allow-mixed`)!==-1){const o=i.sdp.split(`
|
||
`).filter(a=>a.trim()!=="a=extmap-allow-mixed").join(`
|
||
`);e.RTCSessionDescription&&i instanceof e.RTCSessionDescription?arguments[0]=new e.RTCSessionDescription({type:i.type,sdp:o}):i.sdp=o}return n.apply(this,arguments)}}function o3(e,t){if(!(e.RTCPeerConnection&&e.RTCPeerConnection.prototype))return;const n=e.RTCPeerConnection.prototype.addIceCandidate;!n||n.length===0||(e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?(t.browser==="chrome"&&t.version<78||t.browser==="firefox"&&t.version<68||t.browser==="safari")&&arguments[0]&&arguments[0].candidate===""?Promise.resolve():n.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())})}function a3(e,t){if(!(e.RTCPeerConnection&&e.RTCPeerConnection.prototype))return;const n=e.RTCPeerConnection.prototype.setLocalDescription;!n||n.length===0||(e.RTCPeerConnection.prototype.setLocalDescription=function(){let i=arguments[0]||{};if(typeof i!="object"||i.type&&i.sdp)return n.apply(this,arguments);if(i={type:i.type,sdp:i.sdp},!i.type)switch(this.signalingState){case"stable":case"have-local-offer":case"have-remote-pranswer":i.type="offer";break;default:i.type="answer";break}return i.sdp||i.type!=="offer"&&i.type!=="answer"?n.apply(this,[i]):(i.type==="offer"?this.createOffer:this.createAnswer).apply(this).then(a=>n.apply(this,[a]))})}const iUt=Object.freeze(Object.defineProperty({__proto__:null,removeExtmapAllowMixed:BB,shimAddIceCandidateNullOrEmpty:o3,shimConnectionState:jB,shimMaxMessageSize:r3,shimParameterlessSetLocalDescription:a3,shimRTCIceCandidate:n3,shimRTCIceCandidateRelayProtocol:FB,shimSendThrowTypeError:i3},Symbol.toStringTag,{value:"Module"}));function oUt({window:e}={},t={shimChrome:!0,shimFirefox:!0,shimSafari:!0}){const n=JEe,r=tUt(e),i={browserDetails:r,commonShim:iUt,extractVersion:t3,disableLog:Jzt,disableWarnings:eUt,sdp:rUt};switch(r.browser){case"chrome":if(!yae||!DB||!t.shimChrome)return n("Chrome shim is not included in this adapter release."),i;if(r.version===null)return n("Chrome shim can not determine version, not shimming."),i;n("adapter.js shimming chrome."),i.browserShim=yae,o3(e,r),a3(e),t4e(e,r),n4e(e),DB(e,r),r4e(e),s4e(e,r),i4e(e),o4e(e),l4e(e,r),n3(e),FB(e),jB(e),r3(e,r),i3(e),BB(e,r);break;case"firefox":if(!bae||!LB||!t.shimFirefox)return n("Firefox shim is not included in this adapter release."),i;n("adapter.js shimming firefox."),i.browserShim=bae,o3(e,r),a3(e),c4e(e,r),LB(e,r),u4e(e),h4e(e),d4e(e),f4e(e),p4e(e),m4e(e),g4e(e),v4e(e),y4e(e),n3(e),jB(e),r3(e,r),i3(e);break;case"safari":if(!Sae||!t.shimSafari)return n("Safari shim is not included in this adapter release."),i;n("adapter.js shimming safari."),i.browserShim=Sae,o3(e,r),a3(e),_4e(e),T4e(e),C4e(e),b4e(e),S4e(e),E4e(e),x4e(e),k4e(e),n3(e),FB(e),r3(e,r),i3(e),BB(e,r);break;default:n("Unsupported browser!");break}return i}const Cae=oUt({window:typeof window>"u"?void 0:window});function l0(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}class M4e{constructor(){this.chunkedMTU=16300,this._dataCount=1,this.chunk=t=>{const n=[],r=t.byteLength,i=Math.ceil(r/this.chunkedMTU);let o=0,a=0;for(;a<r;){const s=Math.min(r,a+this.chunkedMTU),l=t.slice(a,s),c={__peerData:this._dataCount,n:o,data:l,total:i};n.push(c),a=s,o++}return this._dataCount++,n}}}function aUt(e){let t=0;for(const i of e)t+=i.byteLength;const n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.byteLength;return n}const YA=Cae.default||Cae,Qx=new class{isWebRTCSupported(){return typeof RTCPeerConnection<"u"}isBrowserSupported(){const e=this.getBrowser(),t=this.getVersion();return this.supportedBrowsers.includes(e)?e==="chrome"?t>=this.minChromeVersion:e==="firefox"?t>=this.minFirefoxVersion:e==="safari"?!this.isIOS&&t>=this.minSafariVersion:!1:!1}getBrowser(){return YA.browserDetails.browser}getVersion(){return YA.browserDetails.version||0}isUnifiedPlanSupported(){const e=this.getBrowser(),t=YA.browserDetails.version||0;if(e==="chrome"&&t<this.minChromeVersion)return!1;if(e==="firefox"&&t>=this.minFirefoxVersion)return!0;if(!window.RTCRtpTransceiver||!("currentDirection"in RTCRtpTransceiver.prototype))return!1;let n,r=!1;try{n=new RTCPeerConnection,n.addTransceiver("audio"),r=!0}catch{}finally{n&&n.close()}return r}toString(){return`Supports:
|
||
browser:${this.getBrowser()}
|
||
version:${this.getVersion()}
|
||
isIOS:${this.isIOS}
|
||
isWebRTCSupported:${this.isWebRTCSupported()}
|
||
isBrowserSupported:${this.isBrowserSupported()}
|
||
isUnifiedPlanSupported:${this.isUnifiedPlanSupported()}`}constructor(){this.isIOS=typeof navigator<"u"?["iPad","iPhone","iPod"].includes(navigator.platform):!1,this.supportedBrowsers=["firefox","chrome","safari"],this.minFirefoxVersion=59,this.minChromeVersion=72,this.minSafariVersion=605}},sUt=e=>!e||/^[A-Za-z0-9]+(?:[ _-][A-Za-z0-9]+)*$/.test(e),I4e=()=>Math.random().toString(36).slice(2),xae={iceServers:[{urls:"stun:stun.l.google.com:19302"},{urls:["turn:eu-0.turn.peerjs.com:3478","turn:us-0.turn.peerjs.com:3478"],username:"peerjs",credential:"peerjsp"}],sdpSemantics:"unified-plan"};class lUt extends M4e{noop(){}blobToArrayBuffer(t,n){const r=new FileReader;return r.onload=function(i){i.target&&n(i.target.result)},r.readAsArrayBuffer(t),r}binaryStringToArrayBuffer(t){const n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r)&255;return n.buffer}isSecure(){return location.protocol==="https:"}constructor(...t){super(...t),this.CLOUD_HOST="0.peerjs.com",this.CLOUD_PORT=443,this.chunkedBrowsers={Chrome:1,chrome:1},this.defaultConfig=xae,this.browser=Qx.getBrowser(),this.browserVersion=Qx.getVersion(),this.pack=XEe,this.unpack=YEe,this.supports=function(){const n={browser:Qx.isBrowserSupported(),webRTC:Qx.isWebRTCSupported(),audioVideo:!1,data:!1,binaryBlob:!1,reliable:!1};if(!n.webRTC)return n;let r;try{r=new RTCPeerConnection(xae),n.audioVideo=!0;let i;try{i=r.createDataChannel("_PEERJSTEST",{ordered:!0}),n.data=!0,n.reliable=!!i.ordered;try{i.binaryType="blob",n.binaryBlob=!Qx.isIOS}catch{}}catch{}finally{i&&i.close()}}catch{}finally{r&&r.close()}return n}(),this.validateId=sUt,this.randomToken=I4e}}const Nl=new lUt,cUt="PeerJS: ";var wae;(function(e){e[e.Disabled=0]="Disabled",e[e.Errors=1]="Errors",e[e.Warnings=2]="Warnings",e[e.All=3]="All"})(wae||(wae={}));class uUt{get logLevel(){return this._logLevel}set logLevel(t){this._logLevel=t}log(...t){this._logLevel>=3&&this._print(3,...t)}warn(...t){this._logLevel>=2&&this._print(2,...t)}error(...t){this._logLevel>=1&&this._print(1,...t)}setLogFunction(t){this._print=t}_print(t,...n){const r=[cUt,...n];for(const i in r)r[i]instanceof Error&&(r[i]="("+r[i].name+") "+r[i].message);t>=3?console.log(...r):t>=2?console.warn("WARNING",...r):t>=1&&console.error("ERROR",...r)}constructor(){this._logLevel=0}}var cr=new uUt,eq={},dUt=Object.prototype.hasOwnProperty,gl="~";function A_(){}Object.create&&(A_.prototype=Object.create(null),new A_().__proto__||(gl=!1));function fUt(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function $4e(e,t,n,r,i){if(typeof n!="function")throw new TypeError("The listener must be a function");var o=new fUt(n,r||e,i),a=gl?gl+t:t;return e._events[a]?e._events[a].fn?e._events[a]=[e._events[a],o]:e._events[a].push(o):(e._events[a]=o,e._eventsCount++),e}function s3(e,t){--e._eventsCount===0?e._events=new A_:delete e._events[t]}function Gs(){this._events=new A_,this._eventsCount=0}Gs.prototype.eventNames=function(){var t=[],n,r;if(this._eventsCount===0)return t;for(r in n=this._events)dUt.call(n,r)&&t.push(gl?r.slice(1):r);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(n)):t};Gs.prototype.listeners=function(t){var n=gl?gl+t:t,r=this._events[n];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,a=new Array(o);i<o;i++)a[i]=r[i].fn;return a};Gs.prototype.listenerCount=function(t){var n=gl?gl+t:t,r=this._events[n];return r?r.fn?1:r.length:0};Gs.prototype.emit=function(t,n,r,i,o,a){var s=gl?gl+t:t;if(!this._events[s])return!1;var l=this._events[s],c=arguments.length,u,d;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),c){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,n),!0;case 3:return l.fn.call(l.context,n,r),!0;case 4:return l.fn.call(l.context,n,r,i),!0;case 5:return l.fn.call(l.context,n,r,i,o),!0;case 6:return l.fn.call(l.context,n,r,i,o,a),!0}for(d=1,u=new Array(c-1);d<c;d++)u[d-1]=arguments[d];l.fn.apply(l.context,u)}else{var h=l.length,p;for(d=0;d<h;d++)switch(l[d].once&&this.removeListener(t,l[d].fn,void 0,!0),c){case 1:l[d].fn.call(l[d].context);break;case 2:l[d].fn.call(l[d].context,n);break;case 3:l[d].fn.call(l[d].context,n,r);break;case 4:l[d].fn.call(l[d].context,n,r,i);break;default:if(!u)for(p=1,u=new Array(c-1);p<c;p++)u[p-1]=arguments[p];l[d].fn.apply(l[d].context,u)}}return!0};Gs.prototype.on=function(t,n,r){return $4e(this,t,n,r,!1)};Gs.prototype.once=function(t,n,r){return $4e(this,t,n,r,!0)};Gs.prototype.removeListener=function(t,n,r,i){var o=gl?gl+t:t;if(!this._events[o])return this;if(!n)return s3(this,o),this;var a=this._events[o];if(a.fn)a.fn===n&&(!i||a.once)&&(!r||a.context===r)&&s3(this,o);else{for(var s=0,l=[],c=a.length;s<c;s++)(a[s].fn!==n||i&&!a[s].once||r&&a[s].context!==r)&&l.push(a[s]);l.length?this._events[o]=l.length===1?l[0]:l:s3(this,o)}return this};Gs.prototype.removeAllListeners=function(t){var n;return t?(n=gl?gl+t:t,this._events[n]&&s3(this,n)):(this._events=new A_,this._eventsCount=0),this};Gs.prototype.off=Gs.prototype.removeListener;Gs.prototype.addListener=Gs.prototype.on;Gs.prefixed=gl;Gs.EventEmitter=Gs;eq=Gs;var c0={};l0(c0,"ConnectionType",()=>Hf);l0(c0,"PeerErrorType",()=>Xo);l0(c0,"BaseConnectionErrorType",()=>N_);l0(c0,"DataConnectionErrorType",()=>D_);l0(c0,"SerializationType",()=>CS);l0(c0,"SocketEventType",()=>Df);l0(c0,"ServerMessageType",()=>ts);var Hf;(function(e){e.Data="data",e.Media="media"})(Hf||(Hf={}));var Xo;(function(e){e.BrowserIncompatible="browser-incompatible",e.Disconnected="disconnected",e.InvalidID="invalid-id",e.InvalidKey="invalid-key",e.Network="network",e.PeerUnavailable="peer-unavailable",e.SslUnavailable="ssl-unavailable",e.ServerError="server-error",e.SocketError="socket-error",e.SocketClosed="socket-closed",e.UnavailableID="unavailable-id",e.WebRTC="webrtc"})(Xo||(Xo={}));var N_;(function(e){e.NegotiationFailed="negotiation-failed",e.ConnectionClosed="connection-closed"})(N_||(N_={}));var D_;(function(e){e.NotOpenYet="not-open-yet",e.MessageToBig="message-too-big"})(D_||(D_={}));var CS;(function(e){e.Binary="binary",e.BinaryUTF8="binary-utf8",e.JSON="json",e.None="raw"})(CS||(CS={}));var Df;(function(e){e.Message="message",e.Disconnected="disconnected",e.Error="error",e.Close="close"})(Df||(Df={}));var ts;(function(e){e.Heartbeat="HEARTBEAT",e.Candidate="CANDIDATE",e.Offer="OFFER",e.Answer="ANSWER",e.Open="OPEN",e.Error="ERROR",e.IdTaken="ID-TAKEN",e.InvalidKey="INVALID-KEY",e.Leave="LEAVE",e.Expire="EXPIRE"})(ts||(ts={}));var tq={};tq=JSON.parse('{"name":"peerjs","version":"1.5.4","keywords":["peerjs","webrtc","p2p","rtc"],"description":"PeerJS client","homepage":"https://peerjs.com","bugs":{"url":"https://github.com/peers/peerjs/issues"},"repository":{"type":"git","url":"https://github.com/peers/peerjs"},"license":"MIT","contributors":["Michelle Bu <michelle@michellebu.com>","afrokick <devbyru@gmail.com>","ericz <really.ez@gmail.com>","Jairo <kidandcat@gmail.com>","Jonas Gloning <34194370+jonasgloning@users.noreply.github.com>","Jairo Caro-Accino Viciana <jairo@galax.be>","Carlos Caballero <carlos.caballero.gonzalez@gmail.com>","hc <hheennrryy@gmail.com>","Muhammad Asif <capripio@gmail.com>","PrashoonB <prashoonbhattacharjee@gmail.com>","Harsh Bardhan Mishra <47351025+HarshCasper@users.noreply.github.com>","akotynski <aleksanderkotbury@gmail.com>","lmb <i@lmb.io>","Jairooo <jairocaro@msn.com>","Moritz Stückler <moritz.stueckler@gmail.com>","Simon <crydotsnakegithub@gmail.com>","Denis Lukov <denismassters@gmail.com>","Philipp Hancke <fippo@andyet.net>","Hans Oksendahl <hansoksendahl@gmail.com>","Jess <jessachandler@gmail.com>","khankuan <khankuan@gmail.com>","DUODVK <kurmanov.work@gmail.com>","XiZhao <kwang1imsa@gmail.com>","Matthias Lohr <matthias@lohr.me>","=frank tree <=frnktrb@googlemail.com>","Andre Eckardt <aeckardt@outlook.com>","Chris Cowan <agentme49@gmail.com>","Alex Chuev <alex@chuev.com>","alxnull <alxnull@e.mail.de>","Yemel Jardi <angel.jardi@gmail.com>","Ben Parnell <benjaminparnell.94@gmail.com>","Benny Lichtner <bennlich@gmail.com>","fresheneesz <bitetrudpublic@gmail.com>","bob.barstead@exaptive.com <bob.barstead@exaptive.com>","chandika <chandika@gmail.com>","emersion <contact@emersion.fr>","Christopher Van <cvan@users.noreply.github.com>","eddieherm <edhermoso@gmail.com>","Eduardo Pinho <enet4mikeenet@gmail.com>","Evandro Zanatta <ezanatta@tray.net.br>","Gardner Bickford <gardner@users.noreply.github.com>","Gian Luca <gianluca.cecchi@cynny.com>","PatrickJS <github@gdi2290.com>","jonnyf <github@jonathanfoss.co.uk>","Hizkia Felix <hizkifw@gmail.com>","Hristo Oskov <hristo.oskov@gmail.com>","Isaac Madwed <i.madwed@gmail.com>","Ilya Konanykhin <ilya.konanykhin@gmail.com>","jasonbarry <jasbarry@me.com>","Jonathan Burke <jonathan.burke.1311@googlemail.com>","Josh Hamit <josh.hamit@gmail.com>","Jordan Austin <jrax86@gmail.com>","Joel Wetzell <jwetzell@yahoo.com>","xizhao <kevin.wang@cloudera.com>","Alberto Torres <kungfoobar@gmail.com>","Jonathan Mayol <mayoljonathan@gmail.com>","Jefferson Felix <me@jsfelix.dev>","Rolf Erik Lekang <me@rolflekang.com>","Kevin Mai-Husan Chia <mhchia@users.noreply.github.com>","Pepijn de Vos <pepijndevos@gmail.com>","JooYoung <qkdlql@naver.com>","Tobias Speicher <rootcommander@gmail.com>","Steve Blaurock <sblaurock@gmail.com>","Kyrylo Shegeda <shegeda@ualberta.ca>","Diwank Singh Tomer <singh@diwank.name>","Sören Balko <Soeren.Balko@gmail.com>","Arpit Solanki <solankiarpit1997@gmail.com>","Yuki Ito <yuki@gnnk.net>","Artur Zayats <zag2art@gmail.com>"],"funding":{"type":"opencollective","url":"https://opencollective.com/peer"},"collective":{"type":"opencollective","url":"https://opencollective.com/peer"},"files":["dist/*"],"sideEffects":["lib/global.ts","lib/supports.ts"],"main":"dist/bundler.cjs","module":"dist/bundler.mjs","browser-minified":"dist/peerjs.min.js","browser-unminified":"dist/peerjs.js","browser-minified-msgpack":"dist/serializer.msgpack.mjs","types":"dist/types.d.ts","engines":{"node":">= 14"},"targets":{"types":{"source":"lib/exports.ts"},"main":{"source":"lib/exports.ts","sourceMap":{"inlineSources":true}},"module":{"source":"lib/exports.ts","includeNodeModules":["eventemitter3"],"sourceMap":{"inlineSources":true}},"browser-minified":{"context":"browser","outputFormat":"global","optimize":true,"engines":{"browsers":"chrome >= 83, edge >= 83, firefox >= 80, safari >= 15"},"source":"lib/global.ts"},"browser-unminified":{"context":"browser","outputFormat":"global","optimize":false,"engines":{"browsers":"chrome >= 83, edge >= 83, firefox >= 80, safari >= 15"},"source":"lib/global.ts"},"browser-minified-msgpack":{"context":"browser","outputFormat":"esmodule","isLibrary":true,"optimize":true,"engines":{"browsers":"chrome >= 83, edge >= 83, firefox >= 102, safari >= 15"},"source":"lib/dataconnection/StreamConnection/MsgPack.ts"}},"scripts":{"contributors":"git-authors-cli --print=false && prettier --write package.json && git add package.json package-lock.json && git commit -m \\"chore(contributors): update and sort contributors list\\"","check":"tsc --noEmit && tsc -p e2e/tsconfig.json --noEmit","watch":"parcel watch","build":"rm -rf dist && parcel build","prepublishOnly":"npm run build","test":"jest","test:watch":"jest --watch","coverage":"jest --coverage --collectCoverageFrom=\\"./lib/**\\"","format":"prettier --write .","format:check":"prettier --check .","semantic-release":"semantic-release","e2e":"wdio run e2e/wdio.local.conf.ts","e2e:bstack":"wdio run e2e/wdio.bstack.conf.ts"},"devDependencies":{"@parcel/config-default":"^2.9.3","@parcel/packager-ts":"^2.9.3","@parcel/transformer-typescript-tsc":"^2.9.3","@parcel/transformer-typescript-types":"^2.9.3","@semantic-release/changelog":"^6.0.1","@semantic-release/git":"^10.0.1","@swc/core":"^1.3.27","@swc/jest":"^0.2.24","@types/jasmine":"^4.3.4","@wdio/browserstack-service":"^8.11.2","@wdio/cli":"^8.11.2","@wdio/globals":"^8.11.2","@wdio/jasmine-framework":"^8.11.2","@wdio/local-runner":"^8.11.2","@wdio/spec-reporter":"^8.11.2","@wdio/types":"^8.10.4","http-server":"^14.1.1","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","mock-socket":"^9.0.0","parcel":"^2.9.3","prettier":"^3.0.0","semantic-release":"^21.0.0","ts-node":"^10.9.1","typescript":"^5.0.0","wdio-geckodriver-service":"^5.0.1"},"dependencies":{"@msgpack/msgpack":"^2.8.0","eventemitter3":"^4.0.7","peerjs-js-binarypack":"^2.1.0","webrtc-adapter":"^9.0.0"},"alias":{"process":false,"buffer":false}}');class hUt extends eq.EventEmitter{constructor(t,n,r,i,o,a=5e3){super(),this.pingInterval=a,this._disconnected=!0,this._messagesQueue=[];const s=t?"wss://":"ws://";this._baseUrl=s+n+":"+r+i+"peerjs?key="+o}start(t,n){this._id=t;const r=`${this._baseUrl}&id=${t}&token=${n}`;this._socket||!this._disconnected||(this._socket=new WebSocket(r+"&version="+tq.version),this._disconnected=!1,this._socket.onmessage=i=>{let o;try{o=JSON.parse(i.data),cr.log("Server message received:",o)}catch{cr.log("Invalid server message",i.data);return}this.emit(Df.Message,o)},this._socket.onclose=i=>{this._disconnected||(cr.log("Socket closed.",i),this._cleanup(),this._disconnected=!0,this.emit(Df.Disconnected))},this._socket.onopen=()=>{this._disconnected||(this._sendQueuedMessages(),cr.log("Socket open"),this._scheduleHeartbeat())})}_scheduleHeartbeat(){this._wsPingTimer=setTimeout(()=>{this._sendHeartbeat()},this.pingInterval)}_sendHeartbeat(){if(!this._wsOpen()){cr.log("Cannot send heartbeat, because socket closed");return}const t=JSON.stringify({type:ts.Heartbeat});this._socket.send(t),this._scheduleHeartbeat()}_wsOpen(){return!!this._socket&&this._socket.readyState===1}_sendQueuedMessages(){const t=[...this._messagesQueue];this._messagesQueue=[];for(const n of t)this.send(n)}send(t){if(this._disconnected)return;if(!this._id){this._messagesQueue.push(t);return}if(!t.type){this.emit(Df.Error,"Invalid message");return}if(!this._wsOpen())return;const n=JSON.stringify(t);this._socket.send(n)}close(){this._disconnected||(this._cleanup(),this._disconnected=!0)}_cleanup(){this._socket&&(this._socket.onopen=this._socket.onmessage=this._socket.onclose=null,this._socket.close(),this._socket=void 0),clearTimeout(this._wsPingTimer)}}class R4e{constructor(t){this.connection=t}startConnection(t){const n=this._startPeerConnection();if(this.connection.peerConnection=n,this.connection.type===Hf.Media&&t._stream&&this._addTracksToConnection(t._stream,n),t.originator){const r=this.connection,i={ordered:!!t.reliable},o=n.createDataChannel(r.label,i);r._initializeDataChannel(o),this._makeOffer()}else this.handleSDP("OFFER",t.sdp)}_startPeerConnection(){cr.log("Creating RTCPeerConnection.");const t=new RTCPeerConnection(this.connection.provider.options.config);return this._setupListeners(t),t}_setupListeners(t){const n=this.connection.peer,r=this.connection.connectionId,i=this.connection.type,o=this.connection.provider;cr.log("Listening for ICE candidates."),t.onicecandidate=a=>{!a.candidate||!a.candidate.candidate||(cr.log(`Received ICE candidates for ${n}:`,a.candidate),o.socket.send({type:ts.Candidate,payload:{candidate:a.candidate,type:i,connectionId:r},dst:n}))},t.oniceconnectionstatechange=()=>{switch(t.iceConnectionState){case"failed":cr.log("iceConnectionState is failed, closing connections to "+n),this.connection.emitError(N_.NegotiationFailed,"Negotiation of connection to "+n+" failed."),this.connection.close();break;case"closed":cr.log("iceConnectionState is closed, closing connections to "+n),this.connection.emitError(N_.ConnectionClosed,"Connection to "+n+" closed."),this.connection.close();break;case"disconnected":cr.log("iceConnectionState changed to disconnected on the connection with "+n);break;case"completed":t.onicecandidate=()=>{};break}this.connection.emit("iceStateChanged",t.iceConnectionState)},cr.log("Listening for data channel"),t.ondatachannel=a=>{cr.log("Received data channel");const s=a.channel;o.getConnection(n,r)._initializeDataChannel(s)},cr.log("Listening for remote stream"),t.ontrack=a=>{cr.log("Received remote stream");const s=a.streams[0],l=o.getConnection(n,r);if(l.type===Hf.Media){const c=l;this._addStreamToMediaConnection(s,c)}}}cleanup(){cr.log("Cleaning up PeerConnection to "+this.connection.peer);const t=this.connection.peerConnection;if(!t)return;this.connection.peerConnection=null,t.onicecandidate=t.oniceconnectionstatechange=t.ondatachannel=t.ontrack=()=>{};const n=t.signalingState!=="closed";let r=!1;const i=this.connection.dataChannel;i&&(r=!!i.readyState&&i.readyState!=="closed"),(n||r)&&t.close()}async _makeOffer(){const t=this.connection.peerConnection,n=this.connection.provider;try{const r=await t.createOffer(this.connection.options.constraints);cr.log("Created offer."),this.connection.options.sdpTransform&&typeof this.connection.options.sdpTransform=="function"&&(r.sdp=this.connection.options.sdpTransform(r.sdp)||r.sdp);try{await t.setLocalDescription(r),cr.log("Set localDescription:",r,`for:${this.connection.peer}`);let i={sdp:r,type:this.connection.type,connectionId:this.connection.connectionId,metadata:this.connection.metadata};if(this.connection.type===Hf.Data){const o=this.connection;i={...i,label:o.label,reliable:o.reliable,serialization:o.serialization}}n.socket.send({type:ts.Offer,payload:i,dst:this.connection.peer})}catch(i){i!="OperationError: Failed to set local offer sdp: Called in wrong state: kHaveRemoteOffer"&&(n.emitError(Xo.WebRTC,i),cr.log("Failed to setLocalDescription, ",i))}}catch(r){n.emitError(Xo.WebRTC,r),cr.log("Failed to createOffer, ",r)}}async _makeAnswer(){const t=this.connection.peerConnection,n=this.connection.provider;try{const r=await t.createAnswer();cr.log("Created answer."),this.connection.options.sdpTransform&&typeof this.connection.options.sdpTransform=="function"&&(r.sdp=this.connection.options.sdpTransform(r.sdp)||r.sdp);try{await t.setLocalDescription(r),cr.log("Set localDescription:",r,`for:${this.connection.peer}`),n.socket.send({type:ts.Answer,payload:{sdp:r,type:this.connection.type,connectionId:this.connection.connectionId},dst:this.connection.peer})}catch(i){n.emitError(Xo.WebRTC,i),cr.log("Failed to setLocalDescription, ",i)}}catch(r){n.emitError(Xo.WebRTC,r),cr.log("Failed to create answer, ",r)}}async handleSDP(t,n){n=new RTCSessionDescription(n);const r=this.connection.peerConnection,i=this.connection.provider;cr.log("Setting remote description",n);const o=this;try{await r.setRemoteDescription(n),cr.log(`Set remoteDescription:${t} for:${this.connection.peer}`),t==="OFFER"&&await o._makeAnswer()}catch(a){i.emitError(Xo.WebRTC,a),cr.log("Failed to setRemoteDescription, ",a)}}async handleCandidate(t){cr.log("handleCandidate:",t);try{await this.connection.peerConnection.addIceCandidate(t),cr.log(`Added ICE candidate for:${this.connection.peer}`)}catch(n){this.connection.provider.emitError(Xo.WebRTC,n),cr.log("Failed to handleCandidate, ",n)}}_addTracksToConnection(t,n){if(cr.log(`add tracks from stream ${t.id} to peer connection`),!n.addTrack)return cr.error("Your browser does't support RTCPeerConnection#addTrack. Ignored.");t.getTracks().forEach(r=>{n.addTrack(r,t)})}_addStreamToMediaConnection(t,n){cr.log(`add stream ${t.id} to media connection ${n.connectionId}`),n.addStream(t)}}class A4e extends eq.EventEmitter{emitError(t,n){cr.error("Error:",n),this.emit("error",new pUt(`${t}`,n))}}class pUt extends Error{constructor(t,n){typeof n=="string"?super(n):(super(),Object.assign(this,n)),this.type=t}}class N4e extends A4e{get open(){return this._open}constructor(t,n,r){super(),this.peer=t,this.provider=n,this.options=r,this._open=!1,this.metadata=r.metadata}}var fH;const Cw=class Cw extends N4e{get type(){return Hf.Media}get localStream(){return this._localStream}get remoteStream(){return this._remoteStream}constructor(t,n,r){super(t,n,r),this._localStream=this.options._stream,this.connectionId=this.options.connectionId||Cw.ID_PREFIX+Nl.randomToken(),this._negotiator=new R4e(this),this._localStream&&this._negotiator.startConnection({_stream:this._localStream,originator:!0})}_initializeDataChannel(t){this.dataChannel=t,this.dataChannel.onopen=()=>{cr.log(`DC#${this.connectionId} dc connection success`),this.emit("willCloseOnRemote")},this.dataChannel.onclose=()=>{cr.log(`DC#${this.connectionId} dc closed for:`,this.peer),this.close()}}addStream(t){cr.log("Receiving stream",t),this._remoteStream=t,super.emit("stream",t)}handleMessage(t){const n=t.type,r=t.payload;switch(t.type){case ts.Answer:this._negotiator.handleSDP(n,r.sdp),this._open=!0;break;case ts.Candidate:this._negotiator.handleCandidate(r.candidate);break;default:cr.warn(`Unrecognized message type:${n} from peer:${this.peer}`);break}}answer(t,n={}){if(this._localStream){cr.warn("Local stream already exists on this MediaConnection. Are you answering a call twice?");return}this._localStream=t,n&&n.sdpTransform&&(this.options.sdpTransform=n.sdpTransform),this._negotiator.startConnection({...this.options._payload,_stream:t});const r=this.provider._getMessages(this.connectionId);for(const i of r)this.handleMessage(i);this._open=!0}close(){this._negotiator&&(this._negotiator.cleanup(),this._negotiator=null),this._localStream=null,this._remoteStream=null,this.provider&&(this.provider._removeConnection(this),this.provider=null),this.options&&this.options._stream&&(this.options._stream=null),this.open&&(this._open=!1,super.emit("close"))}};fH=new WeakMap,sr(Cw,fH,Cw.ID_PREFIX="mc_");let Ok=Cw;class mUt{constructor(t){this._options=t}_buildRequest(t){const n=this._options.secure?"https":"http",{host:r,port:i,path:o,key:a}=this._options,s=new URL(`${n}://${r}:${i}${o}${a}/${t}`);return s.searchParams.set("ts",`${Date.now()}${Math.random()}`),s.searchParams.set("version",tq.version),fetch(s.href,{referrerPolicy:this._options.referrerPolicy})}async retrieveId(){try{const t=await this._buildRequest("id");if(t.status!==200)throw new Error(`Error. Status:${t.status}`);return t.text()}catch(t){cr.error("Error retrieving ID",t);let n="";throw this._options.path==="/"&&this._options.host!==Nl.CLOUD_HOST&&(n=" If you passed in a `path` to your self-hosted PeerServer, you'll also need to pass in that same path when creating a new Peer."),new Error("Could not get an ID from the server."+n)}}async listAllPeers(){try{const t=await this._buildRequest("peers");if(t.status!==200){if(t.status===401){let n="";throw this._options.host===Nl.CLOUD_HOST?n="It looks like you're using the cloud server. You can email team@peerjs.com to enable peer listing for your API key.":n="You need to enable `allow_discovery` on your self-hosted PeerServer to use this feature.",new Error("It doesn't look like you have permission to list peers IDs. "+n)}throw new Error(`Error. Status:${t.status}`)}return t.json()}catch(t){throw cr.error("Error retrieving list peers",t),new Error("Could not get list peers from the server."+t)}}}var hH,pH;const v1=class v1 extends N4e{get type(){return Hf.Data}constructor(t,n,r){super(t,n,r),this.connectionId=this.options.connectionId||v1.ID_PREFIX+I4e(),this.label=this.options.label||this.connectionId,this.reliable=!!this.options.reliable,this._negotiator=new R4e(this),this._negotiator.startConnection(this.options._payload||{originator:!0,reliable:this.reliable})}_initializeDataChannel(t){this.dataChannel=t,this.dataChannel.onopen=()=>{cr.log(`DC#${this.connectionId} dc connection success`),this._open=!0,this.emit("open")},this.dataChannel.onmessage=n=>{cr.log(`DC#${this.connectionId} dc onmessage:`,n.data)},this.dataChannel.onclose=()=>{cr.log(`DC#${this.connectionId} dc closed for:`,this.peer),this.close()}}close(t){if(t!=null&&t.flush){this.send({__peerData:{type:"close"}});return}this._negotiator&&(this._negotiator.cleanup(),this._negotiator=null),this.provider&&(this.provider._removeConnection(this),this.provider=null),this.dataChannel&&(this.dataChannel.onopen=null,this.dataChannel.onmessage=null,this.dataChannel.onclose=null,this.dataChannel=null),this.open&&(this._open=!1,super.emit("close"))}send(t,n=!1){if(!this.open){this.emitError(D_.NotOpenYet,"Connection is not open. You should listen for the `open` event before sending messages.");return}return this._send(t,n)}async handleMessage(t){const n=t.payload;switch(t.type){case ts.Answer:await this._negotiator.handleSDP(t.type,n.sdp);break;case ts.Candidate:await this._negotiator.handleCandidate(n.candidate);break;default:cr.warn("Unrecognized message type:",t.type,"from peer:",this.peer);break}}};hH=new WeakMap,pH=new WeakMap,sr(v1,hH,v1.ID_PREFIX="dc_"),sr(v1,pH,v1.MAX_BUFFERED_AMOUNT=8388608);let Pk=v1;class nq extends Pk{get bufferSize(){return this._bufferSize}_initializeDataChannel(t){super._initializeDataChannel(t),this.dataChannel.binaryType="arraybuffer",this.dataChannel.addEventListener("message",n=>this._handleDataMessage(n))}_bufferedSend(t){(this._buffering||!this._trySend(t))&&(this._buffer.push(t),this._bufferSize=this._buffer.length)}_trySend(t){if(!this.open)return!1;if(this.dataChannel.bufferedAmount>Pk.MAX_BUFFERED_AMOUNT)return this._buffering=!0,setTimeout(()=>{this._buffering=!1,this._tryBuffer()},50),!1;try{this.dataChannel.send(t)}catch(n){return cr.error(`DC#:${this.connectionId} Error when sending:`,n),this._buffering=!0,this.close(),!1}return!0}_tryBuffer(){if(!this.open||this._buffer.length===0)return;const t=this._buffer[0];this._trySend(t)&&(this._buffer.shift(),this._bufferSize=this._buffer.length,this._tryBuffer())}close(t){if(t!=null&&t.flush){this.send({__peerData:{type:"close"}});return}this._buffer=[],this._bufferSize=0,super.close()}constructor(...t){super(...t),this._buffer=[],this._bufferSize=0,this._buffering=!1}}class XA extends nq{close(t){super.close(t),this._chunkedData={}}constructor(t,n,r){super(t,n,r),this.chunker=new M4e,this.serialization=CS.Binary,this._chunkedData={}}_handleDataMessage({data:t}){const n=YEe(t),r=n.__peerData;if(r){if(r.type==="close"){this.close();return}this._handleChunk(n);return}this.emit("data",n)}_handleChunk(t){const n=t.__peerData,r=this._chunkedData[n]||{data:[],count:0,total:t.total};if(r.data[t.n]=new Uint8Array(t.data),r.count++,this._chunkedData[n]=r,r.total===r.count){delete this._chunkedData[n];const i=aUt(r.data);this._handleDataMessage({data:i})}}_send(t,n){const r=XEe(t);if(r instanceof Promise)return this._send_blob(r);if(!n&&r.byteLength>this.chunker.chunkedMTU){this._sendChunks(r);return}this._bufferedSend(r)}async _send_blob(t){const n=await t;if(n.byteLength>this.chunker.chunkedMTU){this._sendChunks(n);return}this._bufferedSend(n)}_sendChunks(t){const n=this.chunker.chunk(t);cr.log(`DC#${this.connectionId} Try to send ${n.length} chunks...`);for(const r of n)this.send(r,!0)}}class gUt extends nq{_handleDataMessage({data:t}){super.emit("data",t)}_send(t,n){this._bufferedSend(t)}constructor(...t){super(...t),this.serialization=CS.None}}class vUt extends nq{_handleDataMessage({data:t}){const n=this.parse(this.decoder.decode(t)),r=n.__peerData;if(r&&r.type==="close"){this.close();return}this.emit("data",n)}_send(t,n){const r=this.encoder.encode(this.stringify(t));if(r.byteLength>=Nl.chunkedMTU){this.emitError(D_.MessageToBig,"Message too big for JSON channel");return}this._bufferedSend(r)}constructor(...t){super(...t),this.serialization=CS.JSON,this.encoder=new TextEncoder,this.decoder=new TextDecoder,this.stringify=JSON.stringify,this.parse=JSON.parse}}var mH;const xw=class xw extends A4e{get id(){return this._id}get options(){return this._options}get open(){return this._open}get socket(){return this._socket}get connections(){const t=Object.create(null);for(const[n,r]of this._connections)t[n]=r;return t}get destroyed(){return this._destroyed}get disconnected(){return this._disconnected}constructor(t,n){super(),this._serializers={raw:gUt,json:vUt,binary:XA,"binary-utf8":XA,default:XA},this._id=null,this._lastServerId=null,this._destroyed=!1,this._disconnected=!1,this._open=!1,this._connections=new Map,this._lostMessages=new Map;let r;if(t&&t.constructor==Object?n=t:t&&(r=t.toString()),n={debug:0,host:Nl.CLOUD_HOST,port:Nl.CLOUD_PORT,path:"/",key:xw.DEFAULT_KEY,token:Nl.randomToken(),config:Nl.defaultConfig,referrerPolicy:"strict-origin-when-cross-origin",serializers:{},...n},this._options=n,this._serializers={...this._serializers,...this.options.serializers},this._options.host==="/"&&(this._options.host=window.location.hostname),this._options.path&&(this._options.path[0]!=="/"&&(this._options.path="/"+this._options.path),this._options.path[this._options.path.length-1]!=="/"&&(this._options.path+="/")),this._options.secure===void 0&&this._options.host!==Nl.CLOUD_HOST?this._options.secure=Nl.isSecure():this._options.host==Nl.CLOUD_HOST&&(this._options.secure=!0),this._options.logFunction&&cr.setLogFunction(this._options.logFunction),cr.logLevel=this._options.debug||0,this._api=new mUt(n),this._socket=this._createServerConnection(),!Nl.supports.audioVideo&&!Nl.supports.data){this._delayedAbort(Xo.BrowserIncompatible,"The current browser does not support WebRTC");return}if(r&&!Nl.validateId(r)){this._delayedAbort(Xo.InvalidID,`ID "${r}" is invalid`);return}r?this._initialize(r):this._api.retrieveId().then(i=>this._initialize(i)).catch(i=>this._abort(Xo.ServerError,i))}_createServerConnection(){const t=new hUt(this._options.secure,this._options.host,this._options.port,this._options.path,this._options.key,this._options.pingInterval);return t.on(Df.Message,n=>{this._handleMessage(n)}),t.on(Df.Error,n=>{this._abort(Xo.SocketError,n)}),t.on(Df.Disconnected,()=>{this.disconnected||(this.emitError(Xo.Network,"Lost connection to server."),this.disconnect())}),t.on(Df.Close,()=>{this.disconnected||this._abort(Xo.SocketClosed,"Underlying socket is already closed.")}),t}_initialize(t){this._id=t,this.socket.start(t,this._options.token)}_handleMessage(t){const n=t.type,r=t.payload,i=t.src;switch(n){case ts.Open:this._lastServerId=this.id,this._open=!0,this.emit("open",this.id);break;case ts.Error:this._abort(Xo.ServerError,r.msg);break;case ts.IdTaken:this._abort(Xo.UnavailableID,`ID "${this.id}" is taken`);break;case ts.InvalidKey:this._abort(Xo.InvalidKey,`API KEY "${this._options.key}" is invalid`);break;case ts.Leave:cr.log(`Received leave message from ${i}`),this._cleanupPeer(i),this._connections.delete(i);break;case ts.Expire:this.emitError(Xo.PeerUnavailable,`Could not connect to peer ${i}`);break;case ts.Offer:{const o=r.connectionId;let a=this.getConnection(i,o);if(a&&(a.close(),cr.warn(`Offer received for existing Connection ID:${o}`)),r.type===Hf.Media){const l=new Ok(i,this,{connectionId:o,_payload:r,metadata:r.metadata});a=l,this._addConnection(i,a),this.emit("call",l)}else if(r.type===Hf.Data){const l=new this._serializers[r.serialization](i,this,{connectionId:o,_payload:r,metadata:r.metadata,label:r.label,serialization:r.serialization,reliable:r.reliable});a=l,this._addConnection(i,a),this.emit("connection",l)}else{cr.warn(`Received malformed connection type:${r.type}`);return}const s=this._getMessages(o);for(const l of s)a.handleMessage(l);break}default:{if(!r){cr.warn(`You received a malformed message from ${i} of type ${n}`);return}const o=r.connectionId,a=this.getConnection(i,o);a&&a.peerConnection?a.handleMessage(t):o?this._storeMessage(o,t):cr.warn("You received an unrecognized message:",t);break}}}_storeMessage(t,n){this._lostMessages.has(t)||this._lostMessages.set(t,[]),this._lostMessages.get(t).push(n)}_getMessages(t){const n=this._lostMessages.get(t);return n?(this._lostMessages.delete(t),n):[]}connect(t,n={}){if(n={serialization:"default",...n},this.disconnected){cr.warn("You cannot connect to a new Peer because you called .disconnect() on this Peer and ended your connection with the server. You can create a new Peer to reconnect, or call reconnect on this peer if you believe its ID to still be available."),this.emitError(Xo.Disconnected,"Cannot connect to new Peer after disconnecting from server.");return}const r=new this._serializers[n.serialization](t,this,n);return this._addConnection(t,r),r}call(t,n,r={}){if(this.disconnected){cr.warn("You cannot connect to a new Peer because you called .disconnect() on this Peer and ended your connection with the server. You can create a new Peer to reconnect."),this.emitError(Xo.Disconnected,"Cannot connect to new Peer after disconnecting from server.");return}if(!n){cr.error("To call a peer, you must provide a stream from your browser's `getUserMedia`.");return}const i=new Ok(t,this,{...r,_stream:n});return this._addConnection(t,i),i}_addConnection(t,n){cr.log(`add connection ${n.type}:${n.connectionId} to peerId:${t}`),this._connections.has(t)||this._connections.set(t,[]),this._connections.get(t).push(n)}_removeConnection(t){const n=this._connections.get(t.peer);if(n){const r=n.indexOf(t);r!==-1&&n.splice(r,1)}this._lostMessages.delete(t.connectionId)}getConnection(t,n){const r=this._connections.get(t);if(!r)return null;for(const i of r)if(i.connectionId===n)return i;return null}_delayedAbort(t,n){setTimeout(()=>{this._abort(t,n)},0)}_abort(t,n){cr.error("Aborting!"),this.emitError(t,n),this._lastServerId?this.disconnect():this.destroy()}destroy(){this.destroyed||(cr.log(`Destroy peer with ID:${this.id}`),this.disconnect(),this._cleanup(),this._destroyed=!0,this.emit("close"))}_cleanup(){for(const t of this._connections.keys())this._cleanupPeer(t),this._connections.delete(t);this.socket.removeAllListeners()}_cleanupPeer(t){const n=this._connections.get(t);if(n)for(const r of n)r.close()}disconnect(){if(this.disconnected)return;const t=this.id;cr.log(`Disconnect peer with ID:${t}`),this._disconnected=!0,this._open=!1,this.socket.close(),this._lastServerId=t,this._id=null,this.emit("disconnected",t)}reconnect(){if(this.disconnected&&!this.destroyed)cr.log(`Attempting reconnection to server with ID ${this._lastServerId}`),this._disconnected=!1,this._initialize(this._lastServerId);else{if(this.destroyed)throw new Error("This peer cannot reconnect to the server. It has already been destroyed.");if(!this.disconnected&&!this.open)cr.error("In a hurry? We're still trying to make the initial connection!");else throw new Error(`Peer ${this.id} cannot reconnect because it is not disconnected from the server!`)}}listAllPeers(t=n=>{}){this._api.listAllPeers().then(n=>t(n)).catch(n=>this._abort(Xo.ServerError,n))}};mH=new WeakMap,sr(xw,mH,xw.DEFAULT_KEY="peerjs");let HB=xw,yUt="127.0.0.1",bUt=9e3,SUt="/";function CUt(){console.log("usePeer");const e=Ka(a=>a.userInfo);let t=null,n=null;const r=a=>{n=t.connect(a),n.on("open",()=>{console.log("Connected to peer with ID:",a),n.send("hi!")})},i=a=>{n?(console.log("sending message:",a),n.send(a)):console.error("no connection to send message")},o=a=>{navigator.mediaDevices.getUserMedia({audio:!0,video:!0}).then(s=>{t.call(a,s).on("stream",c=>{})}).catch(s=>{console.error("Failed to get local stream",s)})};return f.useEffect(()=>{const a=new HB(e.uid,{host:yUt,port:bUt,path:SUt});console.log("Starting self peer with ID:",e.uid),a.on("open",function(){console.log("self peer opened!")}),a.on("connection",s=>{s.on("data",l=>{console.log("connection data:",l)}),s.on("open",()=>{s.send("connection data open!")})}),a.on("call",s=>{navigator.mediaDevices.getUserMedia({audio:!0,video:!0}).then(l=>{s.answer(l),s.on("stream",c=>{})}).catch(l=>{console.error("Failed to get local stream",l)})})},[e]),{peer:t,connectOtherPeer:r,sendMessage:i,callOtherPeer:o}}const xUt=()=>{const e=ro(),[t,n]=f.useState("/chat"),r=as(),{isLoggedIn:i,mode:o}=f.useContext(Ks),{footerStyle:a}=m4(),[s,l]=f.useState(!1),c=bd(p=>p.threads);f.useEffect(()=>{const p=c.some(m=>m.unreadCount>0);l(p)},[c]);const u=[{path:"/anonymous/home",name:e.formatMessage({id:"menu.dashboard.chat"}),icon:U.jsx(jSe,{}),component:U.jsx(AB,{})}],[d,h]=f.useState(u);return bEe(),yEe(),Gzt(),CUt(),SK(),f.useEffect(()=>{h(u)},[o]),f.useEffect(()=>(i&&r("/chat"),()=>{console.log("un - useEffect")}),[i]),U.jsxs(Ywe,{collapsed:!0,collapsedButtonRender:!1,layout:"side",style:{height:"100vh"},route:{routes:d},location:{pathname:t},menu:{type:"group",collapsedShowTitle:!0},avatarProps:null,actionsRender:p=>p.isMobile?[]:[U.jsx(BSe,{onClick:FCe},"QuestionCircleFilled")],menuHeaderRender:()=>U.jsx(vEe,{}),menuFooterRender:p=>{p!=null&&p.collapsed},onMenuHeaderClick:p=>{console.log("onMenuHeaderClick",p)},menuItemRender:(p,m)=>U.jsx(U.Fragment,{children:U.jsxs("a",{onClick:()=>{n(p.path),r(p.path)},children:[s&&U.jsxs(U.Fragment,{children:[p.path==="/anonymous/home"&&U.jsx(Rl,{size:"small",dot:s,offset:[-5,5],children:m}),p.path!=="/anonymous/home"&&m]}),!s&&U.jsx(U.Fragment,{children:m})]})}),children:[U.jsx(zM,{children:U.jsx(MP,{})}),U.jsx(UM,{style:a,children:U.jsx(gEe,{})}),U.jsx("audio",{id:"audioPlay",src:"soundUrl",hidden:!0})]})},{Sider:wUt,Content:_Ut}=Co,EUt=()=>{const{leftSiderStyle:e,leftSiderWidth:t,headerStyle:n,contentStyle:r}=m4();return U.jsx(U.Fragment,{children:U.jsxs(Co,{children:[U.jsx(wUt,{style:e,width:t}),U.jsxs(Co,{children:[U.jsx(K9,{style:n,children:"setting"}),U.jsx(_Ut,{style:r,children:"setting"})]})]})})},_ae={opensource:{color:"#1890ff",gradient:"linear-gradient(135deg, #1890ff 0%, #096dd9 100%)"},commercial:{color:"#52c41a",gradient:"linear-gradient(135deg, #52c41a 0%, #389e0d 100%)"},help:{color:"#722ed1",gradient:"linear-gradient(135deg, #722ed1 0%, #531dab 100%)"},paid:{color:"#f5222d",gradient:"linear-gradient(135deg, #f5222d 0%, #cf1322 100%)"}},TUt=mi(Qv)`
|
||
cursor: pointer;
|
||
transition: all 0.3s;
|
||
|
||
&:hover {
|
||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
||
}
|
||
`,kUt=mi.div`
|
||
height: 160px;
|
||
background: ${e=>{var t;return e.bgImage?`url(${e.bgImage})`:((t=_ae[e.type])==null?void 0:t.gradient)||_ae.opensource.gradient}};
|
||
background-size: cover;
|
||
background-position: center;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
color: white;
|
||
font-size: 24px;
|
||
position: relative;
|
||
border-radius: 8px 8px 0 0;
|
||
overflow: hidden;
|
||
|
||
&::before {
|
||
content: "";
|
||
position: absolute;
|
||
top: 0;
|
||
left: 0;
|
||
right: 0;
|
||
bottom: 0;
|
||
background: rgba(0, 0, 0, 0.2);
|
||
}
|
||
|
||
& > div {
|
||
position: relative;
|
||
z-index: 1;
|
||
}
|
||
`,OUt=mi.div`
|
||
position: absolute;
|
||
top: 8px;
|
||
right: 8px;
|
||
font-size: 20px;
|
||
color: #fff;
|
||
cursor: pointer;
|
||
|
||
&:hover {
|
||
transform: scale(1.1);
|
||
}
|
||
`,PUt=mi.div`
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
margin-top: 8px;
|
||
color: #8c8c8c;
|
||
font-size: 12px;
|
||
`,MUt=mi.div`
|
||
display: flex;
|
||
gap: 12px;
|
||
`,Eae=mi.span`
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 4px;
|
||
`,IUt=mi(CP)`
|
||
position: absolute;
|
||
top: 8px;
|
||
left: 8px;
|
||
`,$Ut=({space:e,onClick:t})=>{const n=e.type==="public"?"opensource":"paid";return U.jsxs(TUt,{hoverable:!0,onClick:t,children:[U.jsxs(kUt,{bgImage:e.coverImage,type:n,children:[U.jsx(IUt,{color:e.type==="public"?"blue":"red",children:e.type==="public"?"公开":"私有"}),U.jsx("div",{children:e.name}),U.jsx(OUt,{onClick:r=>{r.stopPropagation()},children:e.starred?U.jsx(tS,{}):U.jsx(y_,{})})]}),U.jsx(Qv.Meta,{title:e.name,description:e.description}),U.jsxs(PUt,{children:[U.jsxs(MUt,{children:[U.jsx(ea,{title:"成员数",children:U.jsxs(Eae,{children:[U.jsx(FW,{})," ",e.memberCount]})}),U.jsx(ea,{title:"文档数",children:U.jsxs(Eae,{children:[U.jsx(mP,{})," ",e.documentCount]})})]}),U.jsx(pr,{type:"text",icon:e.starred?U.jsx(tS,{}):U.jsx(y_,{}),onClick:r=>{r.stopPropagation()}})]})]})},RUt=({visible:e,onCancel:t,onOk:n})=>{const[r]=Or.useForm(),[i,o]=ge.useState(!1),[a,s]=ge.useState([]),l=async()=>{var c,u;try{o(!0);const d=await r.validateFields();await n({...d,coverImage:(u=(c=a[0])==null?void 0:c.response)==null?void 0:u.url}),r.resetFields(),s([]),t()}catch(d){console.error("Create space failed:",d),xs.error("创建空间失败")}finally{o(!1)}};return U.jsx(Ma,{title:"创建知识空间",open:e,onCancel:t,onOk:l,confirmLoading:i,children:U.jsxs(Or,{form:r,layout:"vertical",initialValues:{type:"public"},children:[U.jsx(Or.Item,{name:"name",label:"空间名称",rules:[{required:!0,message:"请输入空间名称"}],children:U.jsx($i,{placeholder:"请输入空间名称"})}),U.jsx(Or.Item,{name:"description",label:"空间描述",rules:[{required:!0,message:"请输入空间描述"}],children:U.jsx($i.TextArea,{placeholder:"请输入空间描述",rows:4})}),U.jsx(Or.Item,{name:"type",label:"空间类型",rules:[{required:!0,message:"请选择空间类型"}],children:U.jsxs(ti.Group,{children:[U.jsx(ti,{value:"public",children:"公开空间"}),U.jsx(ti,{value:"private",children:"私有空间"})]})}),U.jsx(Or.Item,{label:"封面图片",extra:"支持 jpg、png 格式,建议尺寸 400x200",children:U.jsx(uC,{listType:"picture-card",maxCount:1,fileList:a,onChange:({fileList:c})=>s(c),action:"/api/upload",accept:"image/*",children:a.length===0&&U.jsxs("div",{children:[U.jsx(eC,{}),U.jsx("div",{style:{marginTop:8},children:"上传图片"})]})})})]})})},AUt=mi.div`
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
margin-bottom: 24px;
|
||
padding: 0 8px;
|
||
`,NUt=mi.div`
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 16px;
|
||
`,DUt=mi(ti.Group)`
|
||
margin-left: 16px;
|
||
`,LUt=mi.div`
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
min-height: 200px;
|
||
`,FUt=mi(Qv)`
|
||
margin-bottom: 16px;
|
||
|
||
.ant-card-body {
|
||
padding: 16px;
|
||
}
|
||
|
||
.space-title {
|
||
font-size: 16px;
|
||
font-weight: 500;
|
||
margin-bottom: 8px;
|
||
}
|
||
|
||
.space-description {
|
||
color: rgba(0, 0, 0, 0.45);
|
||
margin-bottom: 16px;
|
||
}
|
||
`,jUt=mi.div`
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
margin-top: 8px;
|
||
color: #8c8c8c;
|
||
font-size: 12px;
|
||
`,BUt=mi.div`
|
||
display: flex;
|
||
gap: 12px;
|
||
`,Tae=mi.span`
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 4px;
|
||
`,kae=()=>{const{spaces:e,fetchSpaces:t,toggleStarSpace:n}=QM(),[r,i]=ge.useState("grid"),[o,a]=ge.useState(!0),s=as(),[l,c]=ge.useState(!1);ge.useEffect(()=>{(async()=>{try{await t()}finally{a(!1)}})()},[t]);const u=async h=>{try{console.log("Creating space:",h),xs.success("创建空间成功"),await t()}catch(p){console.error("Create space failed:",p),xs.error("创建空间失败")}},d=h=>{s(`/spaces/${h}`)};return o?U.jsx(LUt,{children:U.jsx(Sl,{size:"large"})}):U.jsxs("div",{children:[U.jsx(AUt,{children:U.jsxs(NUt,{children:[U.jsxs(DUt,{value:r,onChange:h=>i(h.target.value),buttonStyle:"solid",children:[U.jsxs(ti.Button,{value:"grid",children:[U.jsx(FSe,{})," 网格"]}),U.jsxs(ti.Button,{value:"list",children:[U.jsx(lW,{})," 列表"]})]}),U.jsx(pr,{type:"primary",icon:U.jsx(eC,{}),onClick:()=>c(!0),children:"创建空间"})]})}),U.jsx(JF,{grid:r==="grid"?{gutter:16,xs:1,sm:2,md:3,lg:3,xl:4,xxl:4}:void 0,dataSource:e,renderItem:h=>U.jsx(JF.Item,{children:r==="grid"?U.jsx($Ut,{space:h,onClick:()=>d(h.id)}):U.jsxs(FUt,{onClick:()=>d(h.id),children:[U.jsx("div",{className:"space-title",children:h.name}),U.jsx("div",{className:"space-description",children:h.description}),U.jsxs(jUt,{children:[U.jsxs(BUt,{children:[U.jsx(ea,{title:"成员数",children:U.jsxs(Tae,{children:[U.jsx(FW,{})," ",h.memberCount]})}),U.jsx(ea,{title:"文档数",children:U.jsxs(Tae,{children:[U.jsx(mP,{})," ",h.documentCount]})})]}),U.jsxs(pa,{children:[U.jsx(pr,{type:"text",icon:h.starred?U.jsx(tS,{}):U.jsx(y_,{}),onClick:()=>n(h.id)}),U.jsx(pr,{type:"primary",onClick:()=>d(h.id),children:"查看详情"})]})]})]})})}),U.jsx(RUt,{visible:l,onCancel:()=>c(!1),onOk:u})]})},HUt=function(){var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=r||i||o,s=a&&(r?document.documentMode||6:+(o||i)[1]),l=!o&&/WebKit\//.test(e),c=l&&/Qt\/\d+\.\d+/.test(e),u=!o&&/Chrome\//.test(e),d=/Opera\//.test(e),h=/Apple Computer/.test(navigator.vendor),p=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),m=/PhantomJS/.test(e),v=h&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),y=/Android/.test(e),S=v||y||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),b=v||/Mac/.test(t),C=/\bCrOS\b/.test(e),_=/win/i.test(t),T=d&&e.match(/Version\/(\d*\.\d*)/);T&&(T=Number(T[1])),T&&T>=15&&(d=!1,l=!0);var x=b&&(c||d&&(T==null||T<12.11)),E=n||a&&s>=9;function k(g){return new RegExp("(^|\\s)"+g+"(?:$|\\s)\\s*")}var M=function(g,w){var $=g.className,I=k(w).exec($);if(I){var L=$.slice(I.index+I[0].length);g.className=$.slice(0,I.index)+(L?I[1]+L:"")}};function P(g){for(var w=g.childNodes.length;w>0;--w)g.removeChild(g.firstChild);return g}function D(g,w){return P(g).appendChild(w)}function R(g,w,$,I){var L=document.createElement(g);if($&&(L.className=$),I&&(L.style.cssText=I),typeof w=="string")L.appendChild(document.createTextNode(w));else if(w)for(var te=0;te<w.length;++te)L.appendChild(w[te]);return L}function A(g,w,$,I){var L=R(g,w,$,I);return L.setAttribute("role","presentation"),L}var H;document.createRange?H=function(g,w,$,I){var L=document.createRange();return L.setEnd(I||g,$),L.setStart(g,w),L}:H=function(g,w,$){var I=document.body.createTextRange();try{I.moveToElementText(g.parentNode)}catch{return I}return I.collapse(!0),I.moveEnd("character",$),I.moveStart("character",w),I};function F(g,w){if(w.nodeType==3&&(w=w.parentNode),g.contains)return g.contains(w);do if(w.nodeType==11&&(w=w.host),w==g)return!0;while(w=w.parentNode)}function z(){var g;try{g=document.activeElement}catch{g=document.body||null}for(;g&&g.shadowRoot&&g.shadowRoot.activeElement;)g=g.shadowRoot.activeElement;return g}function W(g,w){var $=g.className;k(w).test($)||(g.className+=($?" ":"")+w)}function q(g,w){for(var $=g.split(" "),I=0;I<$.length;I++)$[I]&&!k($[I]).test(w)&&(w+=" "+$[I]);return w}var Z=function(g){g.select()};v?Z=function(g){g.selectionStart=0,g.selectionEnd=g.value.length}:a&&(Z=function(g){try{g.select()}catch{}});function N(g){var w=Array.prototype.slice.call(arguments,1);return function(){return g.apply(null,w)}}function B(g,w,$){w||(w={});for(var I in g)g.hasOwnProperty(I)&&($!==!1||!w.hasOwnProperty(I))&&(w[I]=g[I]);return w}function V(g,w,$,I,L){w==null&&(w=g.search(/[^\s\u00a0]/),w==-1&&(w=g.length));for(var te=I||0,de=L||0;;){var Ee=g.indexOf(" ",te);if(Ee<0||Ee>=w)return de+(w-te);de+=Ee-te,de+=$-de%$,te=Ee+1}}var G=function(){this.id=null,this.f=null,this.time=0,this.handler=N(this.onTimeout,this)};G.prototype.onTimeout=function(g){g.id=0,g.time<=+new Date?g.f():setTimeout(g.handler,g.time-+new Date)},G.prototype.set=function(g,w){this.f=w;var $=+new Date+g;(!this.id||$<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,g),this.time=$)};function ie(g,w){for(var $=0;$<g.length;++$)if(g[$]==w)return $;return-1}var ce=50,fe={toString:function(){return"CodeMirror.Pass"}},ee={scroll:!1},ne={origin:"*mouse"},ue={origin:"+move"};function ye(g,w,$){for(var I=0,L=0;;){var te=g.indexOf(" ",I);te==-1&&(te=g.length);var de=te-I;if(te==g.length||L+de>=w)return I+Math.min(de,w-L);if(L+=te-I,L+=$-L%$,I=te+1,L>=w)return I}}var me=[""];function pe(g){for(;me.length<=g;)me.push(he(me)+" ");return me[g]}function he(g){return g[g.length-1]}function _e(g,w){for(var $=[],I=0;I<g.length;I++)$[I]=w(g[I],I);return $}function le(g,w,$){for(var I=0,L=$(w);I<g.length&&$(g[I])<=L;)I++;g.splice(I,0,w)}function xe(){}function we(g,w){var $;return Object.create?$=Object.create(g):(xe.prototype=g,$=new xe),w&&B(w,$),$}var De=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Fe(g){return/\w/.test(g)||g>""&&(g.toUpperCase()!=g.toLowerCase()||De.test(g))}function Ce(g,w){return w?w.source.indexOf("\\w")>-1&&Fe(g)?!0:w.test(g):Fe(g)}function Te(g){for(var w in g)if(g.hasOwnProperty(w)&&g[w])return!1;return!0}var ke=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Pe(g){return g.charCodeAt(0)>=768&&ke.test(g)}function Ne(g,w,$){for(;($<0?w>0:w<g.length)&&Pe(g.charAt(w));)w+=$;return w}function We(g,w,$){for(var I=w>$?-1:1;;){if(w==$)return w;var L=(w+$)/2,te=I<0?Math.ceil(L):Math.floor(L);if(te==w)return g(te)?w:$;g(te)?$=te:w=te+I}}function Q(g,w,$,I){if(!g)return I(w,$,"ltr",0);for(var L=!1,te=0;te<g.length;++te){var de=g[te];(de.from<$&&de.to>w||w==$&&de.to==w)&&(I(Math.max(de.from,w),Math.min(de.to,$),de.level==1?"rtl":"ltr",te),L=!0)}L||I(w,$,"ltr")}var K=null;function J(g,w,$){var I;K=null;for(var L=0;L<g.length;++L){var te=g[L];if(te.from<w&&te.to>w)return L;te.to==w&&(te.from!=te.to&&$=="before"?I=L:K=L),te.from==w&&(te.from!=te.to&&$!="before"?I=L:K=L)}return I??K}var be=function(){var g="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",w="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function $(Be){return Be<=247?g.charAt(Be):1424<=Be&&Be<=1524?"R":1536<=Be&&Be<=1785?w.charAt(Be-1536):1774<=Be&&Be<=2220?"r":8192<=Be&&Be<=8203?"w":Be==8204?"b":"L"}var I=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,L=/[stwN]/,te=/[LRr]/,de=/[Lb1n]/,Ee=/[1n]/;function Ie(Be,nt,at){this.level=Be,this.from=nt,this.to=at}return function(Be,nt){var at=nt=="ltr"?"L":"R";if(Be.length==0||nt=="ltr"&&!I.test(Be))return!1;for(var Et=Be.length,yt=[],rn=0;rn<Et;++rn)yt.push($(Be.charCodeAt(rn)));for(var dn=0,En=at;dn<Et;++dn){var Bn=yt[dn];Bn=="m"?yt[dn]=En:En=Bn}for(var Un=0,Hn=at;Un<Et;++Un){var Xn=yt[Un];Xn=="1"&&Hn=="r"?yt[Un]="n":te.test(Xn)&&(Hn=Xn,Xn=="r"&&(yt[Un]="R"))}for(var yr=1,mr=yt[0];yr<Et-1;++yr){var Kr=yt[yr];Kr=="+"&&mr=="1"&&yt[yr+1]=="1"?yt[yr]="1":Kr==","&&mr==yt[yr+1]&&(mr=="1"||mr=="n")&&(yt[yr]=mr),mr=Kr}for(var Vi=0;Vi<Et;++Vi){var Na=yt[Vi];if(Na==",")yt[Vi]="N";else if(Na=="%"){var wo=void 0;for(wo=Vi+1;wo<Et&&yt[wo]=="%";++wo);for(var wl=Vi&&yt[Vi-1]=="!"||wo<Et&&yt[wo]=="1"?"1":"N",Zs=Vi;Zs<wo;++Zs)yt[Zs]=wl;Vi=wo-1}}for(var ia=0,Js=at;ia<Et;++ia){var Xa=yt[ia];Js=="L"&&Xa=="1"?yt[ia]="L":te.test(Xa)&&(Js=Xa)}for(var ba=0;ba<Et;++ba)if(L.test(yt[ba])){var oa=void 0;for(oa=ba+1;oa<Et&&L.test(yt[oa]);++oa);for(var No=(ba?yt[ba-1]:at)=="L",el=(oa<Et?yt[oa]:at)=="L",H0=No==el?No?"L":"R":at,Kp=ba;Kp<oa;++Kp)yt[Kp]=H0;ba=oa-1}for(var ds=[],cf,Da=0;Da<Et;)if(de.test(yt[Da])){var WI=Da;for(++Da;Da<Et&&de.test(yt[Da]);++Da);ds.push(new Ie(0,WI,Da))}else{var mh=Da,Lg=ds.length,Fg=nt=="rtl"?1:0;for(++Da;Da<Et&&yt[Da]!="L";++Da);for(var Ms=mh;Ms<Da;)if(Ee.test(yt[Ms])){mh<Ms&&(ds.splice(Lg,0,new Ie(1,mh,Ms)),Lg+=Fg);var z0=Ms;for(++Ms;Ms<Da&&Ee.test(yt[Ms]);++Ms);ds.splice(Lg,0,new Ie(2,z0,Ms)),Lg+=Fg,mh=Ms}else++Ms;mh<Da&&ds.splice(Lg,0,new Ie(1,mh,Da))}return nt=="ltr"&&(ds[0].level==1&&(cf=Be.match(/^\s+/))&&(ds[0].from=cf[0].length,ds.unshift(new Ie(0,0,cf[0].length))),he(ds).level==1&&(cf=Be.match(/\s+$/))&&(he(ds).to-=cf[0].length,ds.push(new Ie(0,Et-cf[0].length,Et)))),nt=="rtl"?ds.reverse():ds}}();function Oe(g,w){var $=g.order;return $==null&&($=g.order=be(g.text,w)),$}var Se=[],Ke=function(g,w,$){if(g.addEventListener)g.addEventListener(w,$,!1);else if(g.attachEvent)g.attachEvent("on"+w,$);else{var I=g._handlers||(g._handlers={});I[w]=(I[w]||Se).concat($)}};function tt(g,w){return g._handlers&&g._handlers[w]||Se}function se(g,w,$){if(g.removeEventListener)g.removeEventListener(w,$,!1);else if(g.detachEvent)g.detachEvent("on"+w,$);else{var I=g._handlers,L=I&&I[w];if(L){var te=ie(L,$);te>-1&&(I[w]=L.slice(0,te).concat(L.slice(te+1)))}}}function ze(g,w){var $=tt(g,w);if($.length)for(var I=Array.prototype.slice.call(arguments,2),L=0;L<$.length;++L)$[L].apply(null,I)}function Ye(g,w,$){return typeof w=="string"&&(w={type:w,preventDefault:function(){this.defaultPrevented=!0}}),ze(g,$||w.type,g,w),St(w)||w.codemirrorIgnore}function Ue(g){var w=g._handlers&&g._handlers.cursorActivity;if(w)for(var $=g.curOp.cursorActivityHandlers||(g.curOp.cursorActivityHandlers=[]),I=0;I<w.length;++I)ie($,w[I])==-1&&$.push(w[I])}function Je(g,w){return tt(g,w).length>0}function Ze(g){g.prototype.on=function(w,$){Ke(this,w,$)},g.prototype.off=function(w,$){se(this,w,$)}}function rt(g){g.preventDefault?g.preventDefault():g.returnValue=!1}function qt(g){g.stopPropagation?g.stopPropagation():g.cancelBubble=!0}function St(g){return g.defaultPrevented!=null?g.defaultPrevented:g.returnValue==!1}function Ot(g){rt(g),qt(g)}function Bt(g){return g.target||g.srcElement}function Dt(g){var w=g.which;return w==null&&(g.button&1?w=1:g.button&2?w=3:g.button&4&&(w=2)),b&&g.ctrlKey&&w==1&&(w=3),w}var an=function(){if(a&&s<9)return!1;var g=R("div");return"draggable"in g||"dragDrop"in g}(),Vt;function Kt(g){if(Vt==null){var w=R("span","");D(g,R("span",[w,document.createTextNode("x")])),g.firstChild.offsetHeight!=0&&(Vt=w.offsetWidth<=1&&w.offsetHeight>2&&!(a&&s<8))}var $=Vt?R("span",""):R("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return $.setAttribute("cm-text",""),$}var Qt;function et(g){if(Qt!=null)return Qt;var w=D(g,document.createTextNode("AخA")),$=H(w,0,1).getBoundingClientRect(),I=H(w,1,2).getBoundingClientRect();return P(g),!$||$.left==$.right?!1:Qt=I.right-$.right<3}var ot=`
|
||
|
||
b`.split(/\n/).length!=3?function(g){for(var w=0,$=[],I=g.length;w<=I;){var L=g.indexOf(`
|
||
`,w);L==-1&&(L=g.length);var te=g.slice(w,g.charAt(L-1)=="\r"?L-1:L),de=te.indexOf("\r");de!=-1?($.push(te.slice(0,de)),w+=de+1):($.push(te),w=L+1)}return $}:function(g){return g.split(/\r\n?|\n/)},Qe=window.getSelection?function(g){try{return g.selectionStart!=g.selectionEnd}catch{return!1}}:function(g){var w;try{w=g.ownerDocument.selection.createRange()}catch{}return!w||w.parentElement()!=g?!1:w.compareEndPoints("StartToEnd",w)!=0},ut=function(){var g=R("div");return"oncopy"in g?!0:(g.setAttribute("oncopy","return;"),typeof g.oncopy=="function")}(),Nt=null;function Lt(g){if(Nt!=null)return Nt;var w=D(g,R("span","x")),$=w.getBoundingClientRect(),I=H(w,0,1).getBoundingClientRect();return Nt=Math.abs($.left-I.left)>1}var Zt={},Wt={};function At(g,w){arguments.length>2&&(w.dependencies=Array.prototype.slice.call(arguments,2)),Zt[g]=w}function $t(g,w){Wt[g]=w}function Gt(g){if(typeof g=="string"&&Wt.hasOwnProperty(g))g=Wt[g];else if(g&&typeof g.name=="string"&&Wt.hasOwnProperty(g.name)){var w=Wt[g.name];typeof w=="string"&&(w={name:w}),g=we(w,g),g.name=w.name}else{if(typeof g=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(g))return Gt("application/xml");if(typeof g=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(g))return Gt("application/json")}return typeof g=="string"?{name:g}:g||{name:"null"}}function Ft(g,w){w=Gt(w);var $=Zt[w.name];if(!$)return Ft(g,"text/plain");var I=$(g,w);if(cn.hasOwnProperty(w.name)){var L=cn[w.name];for(var te in L)L.hasOwnProperty(te)&&(I.hasOwnProperty(te)&&(I["_"+te]=I[te]),I[te]=L[te])}if(I.name=w.name,w.helperType&&(I.helperType=w.helperType),w.modeProps)for(var de in w.modeProps)I[de]=w.modeProps[de];return I}var cn={};function _t(g,w){var $=cn.hasOwnProperty(g)?cn[g]:cn[g]={};B(w,$)}function jt(g,w){if(w===!0)return w;if(g.copyState)return g.copyState(w);var $={};for(var I in w){var L=w[I];L instanceof Array&&(L=L.concat([])),$[I]=L}return $}function nn(g,w){for(var $;g.innerMode&&($=g.innerMode(w),!(!$||$.mode==g));)w=$.state,g=$.mode;return $||{mode:g,state:w}}function Ht(g,w,$){return g.startState?g.startState(w,$):!0}var Tt=function(g,w,$){this.pos=this.start=0,this.string=g,this.tabSize=w||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=$};Tt.prototype.eol=function(){return this.pos>=this.string.length},Tt.prototype.sol=function(){return this.pos==this.lineStart},Tt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Tt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Tt.prototype.eat=function(g){var w=this.string.charAt(this.pos),$;if(typeof g=="string"?$=w==g:$=w&&(g.test?g.test(w):g(w)),$)return++this.pos,w},Tt.prototype.eatWhile=function(g){for(var w=this.pos;this.eat(g););return this.pos>w},Tt.prototype.eatSpace=function(){for(var g=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>g},Tt.prototype.skipToEnd=function(){this.pos=this.string.length},Tt.prototype.skipTo=function(g){var w=this.string.indexOf(g,this.pos);if(w>-1)return this.pos=w,!0},Tt.prototype.backUp=function(g){this.pos-=g},Tt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=V(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},Tt.prototype.indentation=function(){return V(this.string,null,this.tabSize)-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},Tt.prototype.match=function(g,w,$){if(typeof g=="string"){var I=function(de){return $?de.toLowerCase():de},L=this.string.substr(this.pos,g.length);if(I(L)==I(g))return w!==!1&&(this.pos+=g.length),!0}else{var te=this.string.slice(this.pos).match(g);return te&&te.index>0?null:(te&&w!==!1&&(this.pos+=te[0].length),te)}},Tt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Tt.prototype.hideFirstChars=function(g,w){this.lineStart+=g;try{return w()}finally{this.lineStart-=g}},Tt.prototype.lookAhead=function(g){var w=this.lineOracle;return w&&w.lookAhead(g)},Tt.prototype.baseToken=function(){var g=this.lineOracle;return g&&g.baseToken(this.pos)};function gt(g,w){if(w-=g.first,w<0||w>=g.size)throw new Error("There is no line "+(w+g.first)+" in the document.");for(var $=g;!$.lines;)for(var I=0;;++I){var L=$.children[I],te=L.chunkSize();if(w<te){$=L;break}w-=te}return $.lines[w]}function Ve(g,w,$){var I=[],L=w.line;return g.iter(w.line,$.line+1,function(te){var de=te.text;L==$.line&&(de=de.slice(0,$.ch)),L==w.line&&(de=de.slice(w.ch)),I.push(de),++L}),I}function Yt(g,w,$){var I=[];return g.iter(w,$,function(L){I.push(L.text)}),I}function mt(g,w){var $=w-g.height;if($)for(var I=g;I;I=I.parent)I.height+=$}function Mt(g){if(g.parent==null)return null;for(var w=g.parent,$=ie(w.lines,g),I=w.parent;I;w=I,I=I.parent)for(var L=0;I.children[L]!=w;++L)$+=I.children[L].chunkSize();return $+w.first}function zt(g,w){var $=g.first;e:do{for(var I=0;I<g.children.length;++I){var L=g.children[I],te=L.height;if(w<te){g=L;continue e}w-=te,$+=L.chunkSize()}return $}while(!g.lines);for(var de=0;de<g.lines.length;++de){var Ee=g.lines[de],Ie=Ee.height;if(w<Ie)break;w-=Ie}return $+de}function Dn(g,w){return w>=g.first&&w<g.first+g.size}function Qn(g,w){return String(g.lineNumberFormatter(w+g.firstLineNumber))}function O(g,w,$){if($===void 0&&($=null),!(this instanceof O))return new O(g,w,$);this.line=g,this.ch=w,this.sticky=$}function j(g,w){return g.line-w.line||g.ch-w.ch}function oe(g,w){return g.sticky==w.sticky&&j(g,w)==0}function Ae(g){return O(g.line,g.ch)}function Ge(g,w){return j(g,w)<0?w:g}function ft(g,w){return j(g,w)<0?g:w}function Jt(g,w){return Math.max(g.first,Math.min(w,g.first+g.size-1))}function on(g,w){if(w.line<g.first)return O(g.first,0);var $=g.first+g.size-1;return w.line>$?O($,gt(g,$).text.length):Zn(w,gt(g,w.line).text.length)}function Zn(g,w){var $=g.ch;return $==null||$>w?O(g.line,w):$<0?O(g.line,0):g}function ni(g,w){for(var $=[],I=0;I<w.length;I++)$[I]=on(g,w[I]);return $}var zr=function(g,w){this.state=g,this.lookAhead=w},Yr=function(g,w,$,I){this.state=w,this.doc=g,this.line=$,this.maxLookAhead=I||0,this.baseTokens=null,this.baseTokenPos=1};Yr.prototype.lookAhead=function(g){var w=this.doc.getLine(this.line+g);return w!=null&&g>this.maxLookAhead&&(this.maxLookAhead=g),w},Yr.prototype.baseToken=function(g){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=g;)this.baseTokenPos+=2;var w=this.baseTokens[this.baseTokenPos+1];return{type:w&&w.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-g}},Yr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Yr.fromSaved=function(g,w,$){return w instanceof zr?new Yr(g,jt(g.mode,w.state),$,w.lookAhead):new Yr(g,jt(g.mode,w),$)},Yr.prototype.save=function(g){var w=g!==!1?jt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new zr(w,this.maxLookAhead):w};function Rr(g,w,$,I){var L=[g.state.modeGen],te={};Ui(g,w.text,g.doc.mode,$,function(Be,nt){return L.push(Be,nt)},te,I);for(var de=$.state,Ee=function(Be){$.baseTokens=L;var nt=g.state.overlays[Be],at=1,Et=0;$.state=!0,Ui(g,w.text,nt.mode,$,function(yt,rn){for(var dn=at;Et<yt;){var En=L[at];En>yt&&L.splice(at,1,yt,L[at+1],En),at+=2,Et=Math.min(yt,En)}if(rn)if(nt.opaque)L.splice(dn,at-dn,yt,"overlay "+rn),at=dn+2;else for(;dn<at;dn+=2){var Bn=L[dn+1];L[dn+1]=(Bn?Bn+" ":"")+"overlay "+rn}},te),$.state=de,$.baseTokens=null,$.baseTokenPos=1},Ie=0;Ie<g.state.overlays.length;++Ie)Ee(Ie);return{styles:L,classes:te.bgClass||te.textClass?te:null}}function wn(g,w,$){if(!w.styles||w.styles[0]!=g.state.modeGen){var I=Pn(g,Mt(w)),L=w.text.length>g.options.maxHighlightLength&&jt(g.doc.mode,I.state),te=Rr(g,w,I);L&&(I.state=L),w.stateAfter=I.save(!L),w.styles=te.styles,te.classes?w.styleClasses=te.classes:w.styleClasses&&(w.styleClasses=null),$===g.doc.highlightFrontier&&(g.doc.modeFrontier=Math.max(g.doc.modeFrontier,++g.doc.highlightFrontier))}return w.styles}function Pn(g,w,$){var I=g.doc,L=g.display;if(!I.mode.startState)return new Yr(I,!0,w);var te=gr(g,w,$),de=te>I.first&>(I,te-1).stateAfter,Ee=de?Yr.fromSaved(I,de,te):new Yr(I,Ht(I.mode),te);return I.iter(te,w,function(Ie){Ar(g,Ie.text,Ee);var Be=Ee.line;Ie.stateAfter=Be==w-1||Be%5==0||Be>=L.viewFrom&&Be<L.viewTo?Ee.save():null,Ee.nextLine()}),$&&(I.modeFrontier=Ee.line),Ee}function Ar(g,w,$,I){var L=g.doc.mode,te=new Tt(w,g.options.tabSize,$);for(te.start=te.pos=I||0,w==""&&bn(L,$.state);!te.eol();)Cn(L,te,$.state),te.start=te.pos}function bn(g,w){if(g.blankLine)return g.blankLine(w);if(g.innerMode){var $=nn(g,w);if($.mode.blankLine)return $.mode.blankLine($.state)}}function Cn(g,w,$,I){for(var L=0;L<10;L++){I&&(I[0]=nn(g,$).mode);var te=g.token(w,$);if(w.pos>w.start)return te}throw new Error("Mode "+g.name+" failed to advance stream.")}var nr=function(g,w,$){this.start=g.start,this.end=g.pos,this.string=g.current(),this.type=w||null,this.state=$};function Ir(g,w,$,I){var L=g.doc,te=L.mode,de;w=on(L,w);var Ee=gt(L,w.line),Ie=Pn(g,w.line,$),Be=new Tt(Ee.text,g.options.tabSize,Ie),nt;for(I&&(nt=[]);(I||Be.pos<w.ch)&&!Be.eol();)Be.start=Be.pos,de=Cn(te,Be,Ie.state),I&&nt.push(new nr(Be,de,jt(L.mode,Ie.state)));return I?nt:new nr(Be,de,Ie.state)}function li(g,w){if(g)for(;;){var $=g.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!$)break;g=g.slice(0,$.index)+g.slice($.index+$[0].length);var I=$[1]?"bgClass":"textClass";w[I]==null?w[I]=$[2]:new RegExp("(?:^|\\s)"+$[2]+"(?:$|\\s)").test(w[I])||(w[I]+=" "+$[2])}return g}function Ui(g,w,$,I,L,te,de){var Ee=$.flattenSpans;Ee==null&&(Ee=g.options.flattenSpans);var Ie=0,Be=null,nt=new Tt(w,g.options.tabSize,I),at,Et=g.options.addModeClass&&[null];for(w==""&&li(bn($,I.state),te);!nt.eol();){if(nt.pos>g.options.maxHighlightLength?(Ee=!1,de&&Ar(g,w,I,nt.pos),nt.pos=w.length,at=null):at=li(Cn($,nt,I.state,Et),te),Et){var yt=Et[0].name;yt&&(at="m-"+(at?yt+" "+at:yt))}if(!Ee||Be!=at){for(;Ie<nt.start;)Ie=Math.min(nt.start,Ie+5e3),L(Ie,Be);Be=at}nt.start=nt.pos}for(;Ie<nt.pos;){var rn=Math.min(nt.pos,Ie+5e3);L(rn,Be),Ie=rn}}function gr(g,w,$){for(var I,L,te=g.doc,de=$?-1:w-(g.doc.mode.innerMode?1e3:100),Ee=w;Ee>de;--Ee){if(Ee<=te.first)return te.first;var Ie=gt(te,Ee-1),Be=Ie.stateAfter;if(Be&&(!$||Ee+(Be instanceof zr?Be.lookAhead:0)<=te.modeFrontier))return Ee;var nt=V(Ie.text,null,g.options.tabSize);(L==null||I>nt)&&(L=Ee-1,I=nt)}return L}function Di(g,w){if(g.modeFrontier=Math.min(g.modeFrontier,w),!(g.highlightFrontier<w-10)){for(var $=g.first,I=w-1;I>$;I--){var L=gt(g,I).stateAfter;if(L&&(!(L instanceof zr)||I+L.lookAhead<w)){$=I+1;break}}g.highlightFrontier=Math.min(g.highlightFrontier,$)}}var fr=!1,xn=!1;function zn(){fr=!0}function Gn(){xn=!0}function ir(g,w,$){this.marker=g,this.from=w,this.to=$}function jr(g,w){if(g)for(var $=0;$<g.length;++$){var I=g[$];if(I.marker==w)return I}}function Ro(g,w){for(var $,I=0;I<g.length;++I)g[I]!=w&&($||($=[])).push(g[I]);return $}function na(g,w,$){var I=$&&window.WeakSet&&($.markedSpans||($.markedSpans=new WeakSet));I&&g.markedSpans&&I.has(g.markedSpans)?g.markedSpans.push(w):(g.markedSpans=g.markedSpans?g.markedSpans.concat([w]):[w],I&&I.add(g.markedSpans)),w.marker.attachLine(g)}function Ei(g,w,$){var I;if(g)for(var L=0;L<g.length;++L){var te=g[L],de=te.marker,Ee=te.from==null||(de.inclusiveLeft?te.from<=w:te.from<w);if(Ee||te.from==w&&de.type=="bookmark"&&(!$||!te.marker.insertLeft)){var Ie=te.to==null||(de.inclusiveRight?te.to>=w:te.to>w);(I||(I=[])).push(new ir(de,te.from,Ie?null:te.to))}}return I}function ra(g,w,$){var I;if(g)for(var L=0;L<g.length;++L){var te=g[L],de=te.marker,Ee=te.to==null||(de.inclusiveRight?te.to>=w:te.to>w);if(Ee||te.from==w&&de.type=="bookmark"&&(!$||te.marker.insertLeft)){var Ie=te.from==null||(de.inclusiveLeft?te.from<=w:te.from<w);(I||(I=[])).push(new ir(de,Ie?null:te.from-w,te.to==null?null:te.to-w))}}return I}function Zl(g,w){if(w.full)return null;var $=Dn(g,w.from.line)&>(g,w.from.line).markedSpans,I=Dn(g,w.to.line)&>(g,w.to.line).markedSpans;if(!$&&!I)return null;var L=w.from.ch,te=w.to.ch,de=j(w.from,w.to)==0,Ee=Ei($,L,de),Ie=ra(I,te,de),Be=w.text.length==1,nt=he(w.text).length+(Be?L:0);if(Ee)for(var at=0;at<Ee.length;++at){var Et=Ee[at];if(Et.to==null){var yt=jr(Ie,Et.marker);yt?Be&&(Et.to=yt.to==null?null:yt.to+nt):Et.to=L}}if(Ie)for(var rn=0;rn<Ie.length;++rn){var dn=Ie[rn];if(dn.to!=null&&(dn.to+=nt),dn.from==null){var En=jr(Ee,dn.marker);En||(dn.from=nt,Be&&(Ee||(Ee=[])).push(dn))}else dn.from+=nt,Be&&(Ee||(Ee=[])).push(dn)}Ee&&(Ee=qc(Ee)),Ie&&Ie!=Ee&&(Ie=qc(Ie));var Bn=[Ee];if(!Be){var Un=w.text.length-2,Hn;if(Un>0&&Ee)for(var Xn=0;Xn<Ee.length;++Xn)Ee[Xn].to==null&&(Hn||(Hn=[])).push(new ir(Ee[Xn].marker,null,null));for(var yr=0;yr<Un;++yr)Bn.push(Hn);Bn.push(Ie)}return Bn}function qc(g){for(var w=0;w<g.length;++w){var $=g[w];$.from!=null&&$.from==$.to&&$.marker.clearWhenEmpty!==!1&&g.splice(w--,1)}return g.length?g:null}function lh(g,w,$){var I=null;if(g.iter(w.line,$.line+1,function(yt){if(yt.markedSpans)for(var rn=0;rn<yt.markedSpans.length;++rn){var dn=yt.markedSpans[rn].marker;dn.readOnly&&(!I||ie(I,dn)==-1)&&(I||(I=[])).push(dn)}}),!I)return null;for(var L=[{from:w,to:$}],te=0;te<I.length;++te)for(var de=I[te],Ee=de.find(0),Ie=0;Ie<L.length;++Ie){var Be=L[Ie];if(!(j(Be.to,Ee.from)<0||j(Be.from,Ee.to)>0)){var nt=[Ie,1],at=j(Be.from,Ee.from),Et=j(Be.to,Ee.to);(at<0||!de.inclusiveLeft&&!at)&&nt.push({from:Be.from,to:Ee.from}),(Et>0||!de.inclusiveRight&&!Et)&&nt.push({from:Ee.to,to:Be.to}),L.splice.apply(L,nt),Ie+=nt.length-3}}return L}function qn(g){var w=g.markedSpans;if(w){for(var $=0;$<w.length;++$)w[$].marker.detachLine(g);g.markedSpans=null}}function kr(g,w){if(w){for(var $=0;$<w.length;++$)w[$].marker.attachLine(g);g.markedSpans=w}}function Jr(g){return g.inclusiveLeft?-1:0}function Wi(g){return g.inclusiveRight?1:0}function Li(g,w){var $=g.lines.length-w.lines.length;if($!=0)return $;var I=g.find(),L=w.find(),te=j(I.from,L.from)||Jr(g)-Jr(w);if(te)return-te;var de=j(I.to,L.to)||Wi(g)-Wi(w);return de||w.id-g.id}function Uu(g,w){var $=xn&&g.markedSpans,I;if($)for(var L=void 0,te=0;te<$.length;++te)L=$[te],L.marker.collapsed&&(w?L.from:L.to)==null&&(!I||Li(I,L.marker)<0)&&(I=L.marker);return I}function Gc(g){return Uu(g,!0)}function Wu(g){return Uu(g,!1)}function ch(g,w){var $=xn&&g.markedSpans,I;if($)for(var L=0;L<$.length;++L){var te=$[L];te.marker.collapsed&&(te.from==null||te.from<w)&&(te.to==null||te.to>w)&&(!I||Li(I,te.marker)<0)&&(I=te.marker)}return I}function O4(g,w,$,I,L){var te=gt(g,w),de=xn&&te.markedSpans;if(de)for(var Ee=0;Ee<de.length;++Ee){var Ie=de[Ee];if(Ie.marker.collapsed){var Be=Ie.marker.find(0),nt=j(Be.from,$)||Jr(Ie.marker)-Jr(L),at=j(Be.to,I)||Wi(Ie.marker)-Wi(L);if(!(nt>=0&&at<=0||nt<=0&&at>=0)&&(nt<=0&&(Ie.marker.inclusiveRight&&L.inclusiveLeft?j(Be.to,$)>=0:j(Be.to,$)>0)||nt>=0&&(Ie.marker.inclusiveRight&&L.inclusiveLeft?j(Be.from,I)<=0:j(Be.from,I)<0)))return!0}}}function ls(g){for(var w;w=Gc(g);)g=w.find(-1,!0).line;return g}function gI(g){for(var w;w=Wu(g);)g=w.find(1,!0).line;return g}function vI(g){for(var w,$;w=Wu(g);)g=w.find(1,!0).line,($||($=[])).push(g);return $}function Lp(g,w){var $=gt(g,w),I=ls($);return $==I?w:Mt(I)}function Og(g,w){if(w>g.lastLine())return w;var $=gt(g,w),I;if(!Yc(g,$))return w;for(;I=Wu($);)$=I.find(1,!0).line;return Mt($)+1}function Yc(g,w){var $=xn&&w.markedSpans;if($){for(var I=void 0,L=0;L<$.length;++L)if(I=$[L],!!I.marker.collapsed){if(I.from==null)return!0;if(!I.marker.widgetNode&&I.from==0&&I.marker.inclusiveLeft&&HC(g,w,I))return!0}}}function HC(g,w,$){if($.to==null){var I=$.marker.find(1,!0);return HC(g,I.line,jr(I.line.markedSpans,$.marker))}if($.marker.inclusiveRight&&$.to==w.text.length)return!0;for(var L=void 0,te=0;te<w.markedSpans.length;++te)if(L=w.markedSpans[te],L.marker.collapsed&&!L.marker.widgetNode&&L.from==$.to&&(L.to==null||L.to!=$.from)&&(L.marker.inclusiveLeft||$.marker.inclusiveRight)&&HC(g,w,L))return!0}function Vu(g){g=ls(g);for(var w=0,$=g.parent,I=0;I<$.lines.length;++I){var L=$.lines[I];if(L==g)break;w+=L.height}for(var te=$.parent;te;$=te,te=$.parent)for(var de=0;de<te.children.length;++de){var Ee=te.children[de];if(Ee==$)break;w+=Ee.height}return w}function h0(g){if(g.height==0)return 0;for(var w=g.text.length,$,I=g;$=Gc(I);){var L=$.find(0,!0);I=L.from.line,w+=L.from.ch-L.to.ch}for(I=g;$=Wu(I);){var te=$.find(0,!0);w-=I.text.length-te.from.ch,I=te.to.line,w+=I.text.length-te.to.ch}return w}function Pg(g){var w=g.display,$=g.doc;w.maxLine=gt($,$.first),w.maxLineLength=h0(w.maxLine),w.maxLineChanged=!0,$.iter(function(I){var L=h0(I);L>w.maxLineLength&&(w.maxLineLength=L,w.maxLine=I)})}var rf=function(g,w,$){this.text=g,kr(this,w),this.height=$?$(this):1};rf.prototype.lineNo=function(){return Mt(this)},Ze(rf);function P4(g,w,$,I){g.text=w,g.stateAfter&&(g.stateAfter=null),g.styles&&(g.styles=null),g.order!=null&&(g.order=null),qn(g),kr(g,$);var L=I?I(g):1;L!=g.height&&mt(g,L)}function p0(g){g.parent=null,qn(g)}var m0={},g0={};function zC(g,w){if(!g||/^\s*$/.test(g))return null;var $=w.addModeClass?g0:m0;return $[g]||($[g]=g.replace(/\S+/g,"cm-$&"))}function M4(g,w){var $=A("span",null,null,l?"padding-right: .1px":null),I={pre:A("pre",[$],"CodeMirror-line"),content:$,col:0,pos:0,cm:g,trailingSpace:!1,splitSpaces:g.getOption("lineWrapping")};w.measure={};for(var L=0;L<=(w.rest?w.rest.length:0);L++){var te=L?w.rest[L-1]:w.line,de=void 0;I.pos=0,I.addToken=UC,et(g.display.measure)&&(de=Oe(te,g.doc.direction))&&(I.addToken=VC(I.addToken,de)),I.map=[];var Ee=w!=g.display.externalMeasured&&Mt(te);Ga(te,I,wn(g,te,Ee)),te.styleClasses&&(te.styleClasses.bgClass&&(I.bgClass=q(te.styleClasses.bgClass,I.bgClass||"")),te.styleClasses.textClass&&(I.textClass=q(te.styleClasses.textClass,I.textClass||""))),I.map.length==0&&I.map.push(0,0,I.content.appendChild(Kt(g.display.measure))),L==0?(w.measure.map=I.map,w.measure.cache={}):((w.measure.maps||(w.measure.maps=[])).push(I.map),(w.measure.caches||(w.measure.caches=[])).push({}))}if(l){var Ie=I.content.lastChild;(/\bcm-tab\b/.test(Ie.className)||Ie.querySelector&&Ie.querySelector(".cm-tab"))&&(I.content.className="cm-tab-wrap-hack")}return ze(g,"renderLine",g,w.line,I.pre),I.pre.className&&(I.textClass=q(I.pre.className,I.textClass||"")),I}function v0(g){var w=R("span","•","cm-invalidchar");return w.title="\\u"+g.charCodeAt(0).toString(16),w.setAttribute("aria-label",w.title),w}function UC(g,w,$,I,L,te,de){if(w){var Ee=g.splitSpaces?WC(w,g.trailingSpace):w,Ie=g.cm.state.specialChars,Be=!1,nt;if(!Ie.test(w))g.col+=w.length,nt=document.createTextNode(Ee),g.map.push(g.pos,g.pos+w.length,nt),a&&s<9&&(Be=!0),g.pos+=w.length;else{nt=document.createDocumentFragment();for(var at=0;;){Ie.lastIndex=at;var Et=Ie.exec(w),yt=Et?Et.index-at:w.length-at;if(yt){var rn=document.createTextNode(Ee.slice(at,at+yt));a&&s<9?nt.appendChild(R("span",[rn])):nt.appendChild(rn),g.map.push(g.pos,g.pos+yt,rn),g.col+=yt,g.pos+=yt}if(!Et)break;at+=yt+1;var dn=void 0;if(Et[0]==" "){var En=g.cm.options.tabSize,Bn=En-g.col%En;dn=nt.appendChild(R("span",pe(Bn),"cm-tab")),dn.setAttribute("role","presentation"),dn.setAttribute("cm-text"," "),g.col+=Bn}else Et[0]=="\r"||Et[0]==`
|
||
`?(dn=nt.appendChild(R("span",Et[0]=="\r"?"␍":"","cm-invalidchar")),dn.setAttribute("cm-text",Et[0]),g.col+=1):(dn=g.cm.options.specialCharPlaceholder(Et[0]),dn.setAttribute("cm-text",Et[0]),a&&s<9?nt.appendChild(R("span",[dn])):nt.appendChild(dn),g.col+=1);g.map.push(g.pos,g.pos+1,dn),g.pos++}}if(g.trailingSpace=Ee.charCodeAt(w.length-1)==32,$||I||L||Be||te||de){var Un=$||"";I&&(Un+=I),L&&(Un+=L);var Hn=R("span",[nt],Un,te);if(de)for(var Xn in de)de.hasOwnProperty(Xn)&&Xn!="style"&&Xn!="class"&&Hn.setAttribute(Xn,de[Xn]);return g.content.appendChild(Hn)}g.content.appendChild(nt)}}function WC(g,w){if(g.length>1&&!/ /.test(g))return g;for(var $=w,I="",L=0;L<g.length;L++){var te=g.charAt(L);te==" "&&$&&(L==g.length-1||g.charCodeAt(L+1)==32)&&(te=" "),I+=te,$=te==" "}return I}function VC(g,w){return function($,I,L,te,de,Ee,Ie){L=L?L+" cm-force-border":"cm-force-border";for(var Be=$.pos,nt=Be+I.length;;){for(var at=void 0,Et=0;Et<w.length&&(at=w[Et],!(at.to>Be&&at.from<=Be));Et++);if(at.to>=nt)return g($,I,L,te,de,Ee,Ie);g($,I.slice(0,at.to-Be),L,te,null,Ee,Ie),te=null,I=I.slice(at.to-Be),Be=at.to}}}function y0(g,w,$,I){var L=!I&&$.widgetNode;L&&g.map.push(g.pos,g.pos+w,L),!I&&g.cm.display.input.needsContentAttribute&&(L||(L=g.content.appendChild(document.createElement("span"))),L.setAttribute("cm-marker",$.id)),L&&(g.cm.display.input.setUneditable(L),g.content.appendChild(L)),g.pos+=w,g.trailingSpace=!1}function Ga(g,w,$){var I=g.markedSpans,L=g.text,te=0;if(!I){for(var de=1;de<$.length;de+=2)w.addToken(w,L.slice(te,te=$[de]),zC($[de+1],w.cm.options));return}for(var Ee=L.length,Ie=0,Be=1,nt="",at,Et,yt=0,rn,dn,En,Bn,Un;;){if(yt==Ie){rn=dn=En=Et="",Un=null,Bn=null,yt=1/0;for(var Hn=[],Xn=void 0,yr=0;yr<I.length;++yr){var mr=I[yr],Kr=mr.marker;if(Kr.type=="bookmark"&&mr.from==Ie&&Kr.widgetNode)Hn.push(Kr);else if(mr.from<=Ie&&(mr.to==null||mr.to>Ie||Kr.collapsed&&mr.to==Ie&&mr.from==Ie)){if(mr.to!=null&&mr.to!=Ie&&yt>mr.to&&(yt=mr.to,dn=""),Kr.className&&(rn+=" "+Kr.className),Kr.css&&(Et=(Et?Et+";":"")+Kr.css),Kr.startStyle&&mr.from==Ie&&(En+=" "+Kr.startStyle),Kr.endStyle&&mr.to==yt&&(Xn||(Xn=[])).push(Kr.endStyle,mr.to),Kr.title&&((Un||(Un={})).title=Kr.title),Kr.attributes)for(var Vi in Kr.attributes)(Un||(Un={}))[Vi]=Kr.attributes[Vi];Kr.collapsed&&(!Bn||Li(Bn.marker,Kr)<0)&&(Bn=mr)}else mr.from>Ie&&yt>mr.from&&(yt=mr.from)}if(Xn)for(var Na=0;Na<Xn.length;Na+=2)Xn[Na+1]==yt&&(dn+=" "+Xn[Na]);if(!Bn||Bn.from==Ie)for(var wo=0;wo<Hn.length;++wo)y0(w,0,Hn[wo]);if(Bn&&(Bn.from||0)==Ie){if(y0(w,(Bn.to==null?Ee+1:Bn.to)-Ie,Bn.marker,Bn.from==null),Bn.to==null)return;Bn.to==Ie&&(Bn=!1)}}if(Ie>=Ee)break;for(var wl=Math.min(Ee,yt);;){if(nt){var Zs=Ie+nt.length;if(!Bn){var ia=Zs>wl?nt.slice(0,wl-Ie):nt;w.addToken(w,ia,at?at+rn:rn,En,Ie+ia.length==yt?dn:"",Et,Un)}if(Zs>=wl){nt=nt.slice(wl-Ie),Ie=wl;break}Ie=Zs,En=""}nt=L.slice(te,te=$[Be++]),at=zC($[Be++],w.cm.options)}}}function Fp(g,w,$){this.line=w,this.rest=vI(w),this.size=this.rest?Mt(he(this.rest))-$+1:1,this.node=this.text=null,this.hidden=Yc(g,w)}function of(g,w,$){for(var I=[],L,te=w;te<$;te=L){var de=new Fp(g.doc,gt(g.doc,te),te);L=te+de.size,I.push(de)}return I}var uh=null;function b0(g){uh?uh.ops.push(g):g.ownsGroup=uh={ops:[g],delayedCallbacks:[]}}function I4(g){var w=g.delayedCallbacks,$=0;do{for(;$<w.length;$++)w[$].call(null);for(var I=0;I<g.ops.length;I++){var L=g.ops[I];if(L.cursorActivityHandlers)for(;L.cursorActivityCalled<L.cursorActivityHandlers.length;)L.cursorActivityHandlers[L.cursorActivityCalled++].call(null,L.cm)}}while($<w.length)}function $4(g,w){var $=g.ownsGroup;if($)try{I4($)}finally{uh=null,w($)}}var af=null;function Ao(g,w){var $=tt(g,w);if($.length){var I=Array.prototype.slice.call(arguments,2),L;uh?L=uh.delayedCallbacks:af?L=af:(L=af=[],setTimeout(dh,0));for(var te=function(Ee){L.push(function(){return $[Ee].apply(null,I)})},de=0;de<$.length;++de)te(de)}}function dh(){var g=af;af=null;for(var w=0;w<g.length;++w)g[w]()}function S0(g,w,$,I){for(var L=0;L<w.changes.length;L++){var te=w.changes[L];te=="text"?R4(g,w):te=="gutter"?w0(g,w,$,I):te=="class"?KC(g,w):te=="widget"&&_0(g,w,I)}w.changes=null}function fh(g){return g.node==g.text&&(g.node=R("div",null,null,"position: relative"),g.text.parentNode&&g.text.parentNode.replaceChild(g.node,g.text),g.node.appendChild(g.text),a&&s<8&&(g.node.style.zIndex=2)),g.node}function C0(g,w){var $=w.bgClass?w.bgClass+" "+(w.line.bgClass||""):w.line.bgClass;if($&&($+=" CodeMirror-linebackground"),w.background)$?w.background.className=$:(w.background.parentNode.removeChild(w.background),w.background=null);else if($){var I=fh(w);w.background=I.insertBefore(R("div",null,$),I.firstChild),g.display.input.setUneditable(w.background)}}function x0(g,w){var $=g.display.externalMeasured;return $&&$.line==w.line?(g.display.externalMeasured=null,w.measure=$.measure,$.built):M4(g,w)}function R4(g,w){var $=w.text.className,I=x0(g,w);w.text==w.node&&(w.node=I.pre),w.text.parentNode.replaceChild(I.pre,w.text),w.text=I.pre,I.bgClass!=w.bgClass||I.textClass!=w.textClass?(w.bgClass=I.bgClass,w.textClass=I.textClass,KC(g,w)):$&&(w.text.className=$)}function KC(g,w){C0(g,w),w.line.wrapClass?fh(w).className=w.line.wrapClass:w.node!=w.text&&(w.node.className="");var $=w.textClass?w.textClass+" "+(w.line.textClass||""):w.line.textClass;w.text.className=$||""}function w0(g,w,$,I){if(w.gutter&&(w.node.removeChild(w.gutter),w.gutter=null),w.gutterBackground&&(w.node.removeChild(w.gutterBackground),w.gutterBackground=null),w.line.gutterClass){var L=fh(w);w.gutterBackground=R("div",null,"CodeMirror-gutter-background "+w.line.gutterClass,"left: "+(g.options.fixedGutter?I.fixedPos:-I.gutterTotalWidth)+"px; width: "+I.gutterTotalWidth+"px"),g.display.input.setUneditable(w.gutterBackground),L.insertBefore(w.gutterBackground,w.text)}var te=w.line.gutterMarkers;if(g.options.lineNumbers||te){var de=fh(w),Ee=w.gutter=R("div",null,"CodeMirror-gutter-wrapper","left: "+(g.options.fixedGutter?I.fixedPos:-I.gutterTotalWidth)+"px");if(Ee.setAttribute("aria-hidden","true"),g.display.input.setUneditable(Ee),de.insertBefore(Ee,w.text),w.line.gutterClass&&(Ee.className+=" "+w.line.gutterClass),g.options.lineNumbers&&(!te||!te["CodeMirror-linenumbers"])&&(w.lineNumber=Ee.appendChild(R("div",Qn(g.options,$),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+I.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+g.display.lineNumInnerWidth+"px"))),te)for(var Ie=0;Ie<g.display.gutterSpecs.length;++Ie){var Be=g.display.gutterSpecs[Ie].className,nt=te.hasOwnProperty(Be)&&te[Be];nt&&Ee.appendChild(R("div",[nt],"CodeMirror-gutter-elt","left: "+I.gutterLeft[Be]+"px; width: "+I.gutterWidth[Be]+"px"))}}}function _0(g,w,$){w.alignable&&(w.alignable=null);for(var I=k("CodeMirror-linewidget"),L=w.node.firstChild,te=void 0;L;L=te)te=L.nextSibling,I.test(L.className)&&w.node.removeChild(L);E0(g,w,$)}function yI(g,w,$,I){var L=x0(g,w);return w.text=w.node=L.pre,L.bgClass&&(w.bgClass=L.bgClass),L.textClass&&(w.textClass=L.textClass),KC(g,w),w0(g,w,$,I),E0(g,w,I),w.node}function E0(g,w,$){if(T0(g,w.line,w,$,!0),w.rest)for(var I=0;I<w.rest.length;I++)T0(g,w.rest[I],w,$,!1)}function T0(g,w,$,I,L){if(w.widgets)for(var te=fh($),de=0,Ee=w.widgets;de<Ee.length;++de){var Ie=Ee[de],Be=R("div",[Ie.node],"CodeMirror-linewidget"+(Ie.className?" "+Ie.className:""));Ie.handleMouseEvents||Be.setAttribute("cm-ignore-events","true"),bI(Ie,Be,$,I),g.display.input.setUneditable(Be),L&&Ie.above?te.insertBefore(Be,$.gutter||$.text):te.appendChild(Be),Ao(Ie,"redraw")}}function bI(g,w,$,I){if(g.noHScroll){($.alignable||($.alignable=[])).push(w);var L=I.wrapperWidth;w.style.left=I.fixedPos+"px",g.coverGutter||(L-=I.gutterTotalWidth,w.style.paddingLeft=I.gutterTotalWidth+"px"),w.style.width=L+"px"}g.coverGutter&&(w.style.zIndex=5,w.style.position="relative",g.noHScroll||(w.style.marginLeft=-I.gutterTotalWidth+"px"))}function jp(g){if(g.height!=null)return g.height;var w=g.doc.cm;if(!w)return 0;if(!F(document.body,g.node)){var $="position: relative;";g.coverGutter&&($+="margin-left: -"+w.display.gutters.offsetWidth+"px;"),g.noHScroll&&($+="width: "+w.display.wrapper.clientWidth+"px;"),D(w.display.measure,R("div",[g.node],null,$))}return g.height=g.node.parentNode.offsetHeight}function Ku(g,w){for(var $=Bt(w);$!=g.wrapper;$=$.parentNode)if(!$||$.nodeType==1&&$.getAttribute("cm-ignore-events")=="true"||$.parentNode==g.sizer&&$!=g.mover)return!0}function Mg(g){return g.lineSpace.offsetTop}function k0(g){return g.mover.offsetHeight-g.lineSpace.offsetHeight}function A4(g){if(g.cachedPaddingH)return g.cachedPaddingH;var w=D(g.measure,R("pre","x","CodeMirror-line-like")),$=window.getComputedStyle?window.getComputedStyle(w):w.currentStyle,I={left:parseInt($.paddingLeft),right:parseInt($.paddingRight)};return!isNaN(I.left)&&!isNaN(I.right)&&(g.cachedPaddingH=I),I}function Jl(g){return ce-g.display.nativeBarWidth}function qu(g){return g.display.scroller.clientWidth-Jl(g)-g.display.barWidth}function O0(g){return g.display.scroller.clientHeight-Jl(g)-g.display.barHeight}function N4(g,w,$){var I=g.options.lineWrapping,L=I&&qu(g);if(!w.measure.heights||I&&w.measure.width!=L){var te=w.measure.heights=[];if(I){w.measure.width=L;for(var de=w.text.firstChild.getClientRects(),Ee=0;Ee<de.length-1;Ee++){var Ie=de[Ee],Be=de[Ee+1];Math.abs(Ie.bottom-Be.bottom)>2&&te.push((Ie.bottom+Be.top)/2-$.top)}}te.push($.bottom-$.top)}}function D4(g,w,$){if(g.line==w)return{map:g.measure.map,cache:g.measure.cache};if(g.rest){for(var I=0;I<g.rest.length;I++)if(g.rest[I]==w)return{map:g.measure.maps[I],cache:g.measure.caches[I]};for(var L=0;L<g.rest.length;L++)if(Mt(g.rest[L])>$)return{map:g.measure.maps[L],cache:g.measure.caches[L],before:!0}}}function SI(g,w){w=ls(w);var $=Mt(w),I=g.display.externalMeasured=new Fp(g.doc,w,$);I.lineN=$;var L=I.built=M4(g,I);return I.text=L.pre,D(g.display.lineMeasure,L.pre),I}function L4(g,w,$,I){return Ti(g,Os(g,w),$,I)}function Bp(g,w){if(w>=g.display.viewFrom&&w<g.display.viewTo)return g.display.view[An(g,w)];var $=g.display.externalMeasured;if($&&w>=$.lineN&&w<$.lineN+$.size)return $}function Os(g,w){var $=Mt(w),I=Bp(g,$);I&&!I.text?I=null:I&&I.changes&&(S0(g,I,$,Ut(g)),g.curOp.forceUpdate=!0),I||(I=SI(g,w));var L=D4(I,w,$);return{line:w,view:I,rect:null,map:L.map,cache:L.cache,before:L.before,hasHeights:!1}}function Ti(g,w,$,I,L){w.before&&($=-1);var te=$+(I||""),de;return w.cache.hasOwnProperty(te)?de=w.cache[te]:(w.rect||(w.rect=w.view.text.getBoundingClientRect()),w.hasHeights||(N4(g,w.view,w.rect),w.hasHeights=!0),de=qC(g,w,$,I),de.bogus||(w.cache[te]=de)),{left:de.left,right:de.right,top:L?de.rtop:de.top,bottom:L?de.rbottom:de.bottom}}var Ig={left:0,right:0,top:0,bottom:0};function Xs(g,w,$){for(var I,L,te,de,Ee,Ie,Be=0;Be<g.length;Be+=3)if(Ee=g[Be],Ie=g[Be+1],w<Ee?(L=0,te=1,de="left"):w<Ie?(L=w-Ee,te=L+1):(Be==g.length-3||w==Ie&&g[Be+3]>w)&&(te=Ie-Ee,L=te-1,w>=Ie&&(de="right")),L!=null){if(I=g[Be+2],Ee==Ie&&$==(I.insertLeft?"left":"right")&&(de=$),$=="left"&&L==0)for(;Be&&g[Be-2]==g[Be-3]&&g[Be-1].insertLeft;)I=g[(Be-=3)+2],de="left";if($=="right"&&L==Ie-Ee)for(;Be<g.length-3&&g[Be+3]==g[Be+4]&&!g[Be+5].insertLeft;)I=g[(Be+=3)+2],de="right";break}return{node:I,start:L,end:te,collapse:de,coverStart:Ee,coverEnd:Ie}}function CI(g,w){var $=Ig;if(w=="left")for(var I=0;I<g.length&&($=g[I]).left==$.right;I++);else for(var L=g.length-1;L>=0&&($=g[L]).left==$.right;L--);return $}function qC(g,w,$,I){var L=Xs(w.map,$,I),te=L.node,de=L.start,Ee=L.end,Ie=L.collapse,Be;if(te.nodeType==3){for(var nt=0;nt<4;nt++){for(;de&&Pe(w.line.text.charAt(L.coverStart+de));)--de;for(;L.coverStart+Ee<L.coverEnd&&Pe(w.line.text.charAt(L.coverStart+Ee));)++Ee;if(a&&s<9&&de==0&&Ee==L.coverEnd-L.coverStart?Be=te.parentNode.getBoundingClientRect():Be=CI(H(te,de,Ee).getClientRects(),I),Be.left||Be.right||de==0)break;Ee=de,de=de-1,Ie="right"}a&&s<11&&(Be=F4(g.display.measure,Be))}else{de>0&&(Ie=I="right");var at;g.options.lineWrapping&&(at=te.getClientRects()).length>1?Be=at[I=="right"?at.length-1:0]:Be=te.getBoundingClientRect()}if(a&&s<9&&!de&&(!Be||!Be.left&&!Be.right)){var Et=te.parentNode.getClientRects()[0];Et?Be={left:Et.left,right:Et.left+xt(g.display),top:Et.top,bottom:Et.bottom}:Be=Ig}for(var yt=Be.top-w.rect.top,rn=Be.bottom-w.rect.top,dn=(yt+rn)/2,En=w.view.measure.heights,Bn=0;Bn<En.length-1&&!(dn<En[Bn]);Bn++);var Un=Bn?En[Bn-1]:0,Hn=En[Bn],Xn={left:(Ie=="right"?Be.right:Be.left)-w.rect.left,right:(Ie=="left"?Be.left:Be.right)-w.rect.left,top:Un,bottom:Hn};return!Be.left&&!Be.right&&(Xn.bogus=!0),g.options.singleCursorHeightPerLine||(Xn.rtop=yt,Xn.rbottom=rn),Xn}function F4(g,w){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Lt(g))return w;var $=screen.logicalXDPI/screen.deviceXDPI,I=screen.logicalYDPI/screen.deviceYDPI;return{left:w.left*$,right:w.right*$,top:w.top*I,bottom:w.bottom*I}}function sf(g){if(g.measure&&(g.measure.cache={},g.measure.heights=null,g.rest))for(var w=0;w<g.rest.length;w++)g.measure.caches[w]={}}function P0(g){g.display.externalMeasure=null,P(g.display.lineMeasure);for(var w=0;w<g.display.view.length;w++)sf(g.display.view[w])}function Xc(g){P0(g),g.display.cachedCharWidth=g.display.cachedTextHeight=g.display.cachedPaddingH=null,g.options.lineWrapping||(g.display.maxLineChanged=!0),g.display.lineNumChars=null}function Gu(){return u&&y?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function GC(){return u&&y?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Y(g){var w=ls(g),$=w.widgets,I=0;if($)for(var L=0;L<$.length;++L)$[L].above&&(I+=jp($[L]));return I}function re(g,w,$,I,L){if(!L){var te=Y(w);$.top+=te,$.bottom+=te}if(I=="line")return $;I||(I="local");var de=Vu(w);if(I=="local"?de+=Mg(g.display):de-=g.display.viewOffset,I=="page"||I=="window"){var Ee=g.display.lineSpace.getBoundingClientRect();de+=Ee.top+(I=="window"?0:GC());var Ie=Ee.left+(I=="window"?0:Gu());$.left+=Ie,$.right+=Ie}return $.top+=de,$.bottom+=de,$}function ve(g,w,$){if($=="div")return w;var I=w.left,L=w.top;if($=="page")I-=Gu(),L-=GC();else if($=="local"||!$){var te=g.display.sizer.getBoundingClientRect();I+=te.left,L+=te.top}var de=g.display.lineSpace.getBoundingClientRect();return{left:I-de.left,top:L-de.top}}function $e(g,w,$,I,L){return I||(I=gt(g.doc,w.line)),re(g,I,L4(g,I,w.ch,L),$)}function He(g,w,$,I,L,te){I=I||gt(g.doc,w.line),L||(L=Os(g,I));function de(rn,dn){var En=Ti(g,L,rn,dn?"right":"left",te);return dn?En.left=En.right:En.right=En.left,re(g,I,En,$)}var Ee=Oe(I,g.doc.direction),Ie=w.ch,Be=w.sticky;if(Ie>=I.text.length?(Ie=I.text.length,Be="before"):Ie<=0&&(Ie=0,Be="after"),!Ee)return de(Be=="before"?Ie-1:Ie,Be=="before");function nt(rn,dn,En){var Bn=Ee[dn],Un=Bn.level==1;return de(En?rn-1:rn,Un!=En)}var at=J(Ee,Ie,Be),Et=K,yt=nt(Ie,at,Be=="before");return Et!=null&&(yt.other=nt(Ie,Et,Be!="before")),yt}function qe(g,w){var $=0;w=on(g.doc,w),g.options.lineWrapping||($=xt(g.display)*w.ch);var I=gt(g.doc,w.line),L=Vu(I)+Mg(g.display);return{left:$,right:$,top:L,bottom:L+I.height}}function it(g,w,$,I,L){var te=O(g,w,$);return te.xRel=L,I&&(te.outside=I),te}function lt(g,w,$){var I=g.doc;if($+=g.display.viewOffset,$<0)return it(I.first,0,null,-1,-1);var L=zt(I,$),te=I.first+I.size-1;if(L>te)return it(I.first+I.size-1,gt(I,te).text.length,null,1,1);w<0&&(w=0);for(var de=gt(I,L);;){var Ee=dt(g,de,L,w,$),Ie=ch(de,Ee.ch+(Ee.xRel>0||Ee.outside>0?1:0));if(!Ie)return Ee;var Be=Ie.find(1);if(Be.line==L)return Be;de=gt(I,L=Be.line)}}function vt(g,w,$,I){I-=Y(w);var L=w.text.length,te=We(function(de){return Ti(g,$,de-1).bottom<=I},L,0);return L=We(function(de){return Ti(g,$,de).top>I},te,L),{begin:te,end:L}}function Ct(g,w,$,I){$||($=Os(g,w));var L=re(g,w,Ti(g,$,I),"line").top;return vt(g,w,$,L)}function kt(g,w,$,I){return g.bottom<=$?!1:g.top>$?!0:(I?g.left:g.right)>w}function dt(g,w,$,I,L){L-=Vu(w);var te=Os(g,w),de=Y(w),Ee=0,Ie=w.text.length,Be=!0,nt=Oe(w,g.doc.direction);if(nt){var at=(g.options.lineWrapping?bt:Rt)(g,w,$,te,nt,I,L);Be=at.level!=1,Ee=Be?at.from:at.to-1,Ie=Be?at.to:at.from-1}var Et=null,yt=null,rn=We(function(yr){var mr=Ti(g,te,yr);return mr.top+=de,mr.bottom+=de,kt(mr,I,L,!1)?(mr.top<=L&&mr.left<=I&&(Et=yr,yt=mr),!0):!1},Ee,Ie),dn,En,Bn=!1;if(yt){var Un=I-yt.left<yt.right-I,Hn=Un==Be;rn=Et+(Hn?0:1),En=Hn?"after":"before",dn=Un?yt.left:yt.right}else{!Be&&(rn==Ie||rn==Ee)&&rn++,En=rn==0?"after":rn==w.text.length?"before":Ti(g,te,rn-(Be?1:0)).bottom+de<=L==Be?"after":"before";var Xn=He(g,O($,rn,En),"line",w,te);dn=Xn.left,Bn=L<Xn.top?-1:L>=Xn.bottom?1:0}return rn=Ne(w.text,rn,1),it($,rn,En,Bn,I-dn)}function Rt(g,w,$,I,L,te,de){var Ee=We(function(at){var Et=L[at],yt=Et.level!=1;return kt(He(g,O($,yt?Et.to:Et.from,yt?"before":"after"),"line",w,I),te,de,!0)},0,L.length-1),Ie=L[Ee];if(Ee>0){var Be=Ie.level!=1,nt=He(g,O($,Be?Ie.from:Ie.to,Be?"after":"before"),"line",w,I);kt(nt,te,de,!0)&&nt.top>de&&(Ie=L[Ee-1])}return Ie}function bt(g,w,$,I,L,te,de){var Ee=vt(g,w,I,de),Ie=Ee.begin,Be=Ee.end;/\s/.test(w.text.charAt(Be-1))&&Be--;for(var nt=null,at=null,Et=0;Et<L.length;Et++){var yt=L[Et];if(!(yt.from>=Be||yt.to<=Ie)){var rn=yt.level!=1,dn=Ti(g,I,rn?Math.min(Be,yt.to)-1:Math.max(Ie,yt.from)).right,En=dn<te?te-dn+1e9:dn-te;(!nt||at>En)&&(nt=yt,at=En)}}return nt||(nt=L[L.length-1]),nt.from<Ie&&(nt={from:Ie,to:nt.to,level:nt.level}),nt.to>Be&&(nt={from:nt.from,to:Be,level:nt.level}),nt}var wt;function It(g){if(g.cachedTextHeight!=null)return g.cachedTextHeight;if(wt==null){wt=R("pre",null,"CodeMirror-line-like");for(var w=0;w<49;++w)wt.appendChild(document.createTextNode("x")),wt.appendChild(R("br"));wt.appendChild(document.createTextNode("x"))}D(g.measure,wt);var $=wt.offsetHeight/50;return $>3&&(g.cachedTextHeight=$),P(g.measure),$||1}function xt(g){if(g.cachedCharWidth!=null)return g.cachedCharWidth;var w=R("span","xxxxxxxxxx"),$=R("pre",[w],"CodeMirror-line-like");D(g.measure,$);var I=w.getBoundingClientRect(),L=(I.right-I.left)/10;return L>2&&(g.cachedCharWidth=L),L||10}function Ut(g){for(var w=g.display,$={},I={},L=w.gutters.clientLeft,te=w.gutters.firstChild,de=0;te;te=te.nextSibling,++de){var Ee=g.display.gutterSpecs[de].className;$[Ee]=te.offsetLeft+te.clientLeft+L,I[Ee]=te.clientWidth}return{fixedPos:Xt(w),gutterTotalWidth:w.gutters.offsetWidth,gutterLeft:$,gutterWidth:I,wrapperWidth:w.wrapper.clientWidth}}function Xt(g){return g.scroller.getBoundingClientRect().left-g.sizer.getBoundingClientRect().left}function en(g){var w=It(g.display),$=g.options.lineWrapping,I=$&&Math.max(5,g.display.scroller.clientWidth/xt(g.display)-3);return function(L){if(Yc(g.doc,L))return 0;var te=0;if(L.widgets)for(var de=0;de<L.widgets.length;de++)L.widgets[de].height&&(te+=L.widgets[de].height);return $?te+(Math.ceil(L.text.length/I)||1)*w:te+w}}function un(g){var w=g.doc,$=en(g);w.iter(function(I){var L=$(I);L!=I.height&&mt(I,L)})}function _n(g,w,$,I){var L=g.display;if(!$&&Bt(w).getAttribute("cm-not-content")=="true")return null;var te,de,Ee=L.lineSpace.getBoundingClientRect();try{te=w.clientX-Ee.left,de=w.clientY-Ee.top}catch{return null}var Ie=lt(g,te,de),Be;if(I&&Ie.xRel>0&&(Be=gt(g.doc,Ie.line).text).length==Ie.ch){var nt=V(Be,Be.length,g.options.tabSize)-Be.length;Ie=O(Ie.line,Math.max(0,Math.round((te-A4(g.display).left)/xt(g.display))-nt))}return Ie}function An(g,w){if(w>=g.display.viewTo||(w-=g.display.viewFrom,w<0))return null;for(var $=g.display.view,I=0;I<$.length;I++)if(w-=$[I].size,w<0)return I}function yn(g,w,$,I){w==null&&(w=g.doc.first),$==null&&($=g.doc.first+g.doc.size),I||(I=0);var L=g.display;if(I&&$<L.viewTo&&(L.updateLineNumbers==null||L.updateLineNumbers>w)&&(L.updateLineNumbers=w),g.curOp.viewChanged=!0,w>=L.viewTo)xn&&Lp(g.doc,w)<L.viewTo&&jn(g);else if($<=L.viewFrom)xn&&Og(g.doc,$+I)>L.viewFrom?jn(g):(L.viewFrom+=I,L.viewTo+=I);else if(w<=L.viewFrom&&$>=L.viewTo)jn(g);else if(w<=L.viewFrom){var te=Ln(g,$,$+I,1);te?(L.view=L.view.slice(te.index),L.viewFrom=te.lineN,L.viewTo+=I):jn(g)}else if($>=L.viewTo){var de=Ln(g,w,w,-1);de?(L.view=L.view.slice(0,de.index),L.viewTo=de.lineN):jn(g)}else{var Ee=Ln(g,w,w,-1),Ie=Ln(g,$,$+I,1);Ee&&Ie?(L.view=L.view.slice(0,Ee.index).concat(of(g,Ee.lineN,Ie.lineN)).concat(L.view.slice(Ie.index)),L.viewTo+=I):jn(g)}var Be=L.externalMeasured;Be&&($<Be.lineN?Be.lineN+=I:w<Be.lineN+Be.size&&(L.externalMeasured=null))}function kn(g,w,$){g.curOp.viewChanged=!0;var I=g.display,L=g.display.externalMeasured;if(L&&w>=L.lineN&&w<L.lineN+L.size&&(I.externalMeasured=null),!(w<I.viewFrom||w>=I.viewTo)){var te=I.view[An(g,w)];if(te.node!=null){var de=te.changes||(te.changes=[]);ie(de,$)==-1&&de.push($)}}}function jn(g){g.display.viewFrom=g.display.viewTo=g.doc.first,g.display.view=[],g.display.viewOffset=0}function Ln(g,w,$,I){var L=An(g,w),te,de=g.display.view;if(!xn||$==g.doc.first+g.doc.size)return{index:L,lineN:$};for(var Ee=g.display.viewFrom,Ie=0;Ie<L;Ie++)Ee+=de[Ie].size;if(Ee!=w){if(I>0){if(L==de.length-1)return null;te=Ee+de[L].size-w,L++}else te=Ee-w;w+=te,$+=te}for(;Lp(g.doc,$)!=$;){if(L==(I<0?0:de.length-1))return null;$+=I*de[L-(I<0?1:0)].size,L+=I}return{index:L,lineN:$}}function tr(g,w,$){var I=g.display,L=I.view;L.length==0||w>=I.viewTo||$<=I.viewFrom?(I.view=of(g,w,$),I.viewFrom=w):(I.viewFrom>w?I.view=of(g,w,I.viewFrom).concat(I.view):I.viewFrom<w&&(I.view=I.view.slice(An(g,w))),I.viewFrom=w,I.viewTo<$?I.view=I.view.concat(of(g,I.viewTo,$)):I.viewTo>$&&(I.view=I.view.slice(0,An(g,$)))),I.viewTo=$}function Br(g){for(var w=g.display.view,$=0,I=0;I<w.length;I++){var L=w[I];!L.hidden&&(!L.node||L.changes)&&++$}return $}function Ur(g){g.display.input.showSelection(g.display.input.prepareSelection())}function Xr(g,w){w===void 0&&(w=!0);var $=g.doc,I={},L=I.cursors=document.createDocumentFragment(),te=I.selection=document.createDocumentFragment(),de=g.options.$customCursor;de&&(w=!0);for(var Ee=0;Ee<$.sel.ranges.length;Ee++)if(!(!w&&Ee==$.sel.primIndex)){var Ie=$.sel.ranges[Ee];if(!(Ie.from().line>=g.display.viewTo||Ie.to().line<g.display.viewFrom)){var Be=Ie.empty();if(de){var nt=de(g,Ie);nt&&cs(g,nt,L)}else(Be||g.options.showCursorWhenSelecting)&&cs(g,Ie.head,L);Be||Ya(g,Ie,te)}}return I}function cs(g,w,$){var I=He(g,w,"div",null,null,!g.options.singleCursorHeightPerLine),L=$.appendChild(R("div"," ","CodeMirror-cursor"));if(L.style.left=I.left+"px",L.style.top=I.top+"px",L.style.height=Math.max(0,I.bottom-I.top)*g.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(g.getWrapperElement().className)){var te=$e(g,w,"div",null,null),de=te.right-te.left;L.style.width=(de>0?de:g.defaultCharWidth())+"px"}if(I.other){var Ee=$.appendChild(R("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));Ee.style.display="",Ee.style.left=I.other.left+"px",Ee.style.top=I.other.top+"px",Ee.style.height=(I.other.bottom-I.other.top)*.85+"px"}}function Nr(g,w){return g.top-w.top||g.left-w.left}function Ya(g,w,$){var I=g.display,L=g.doc,te=document.createDocumentFragment(),de=A4(g.display),Ee=de.left,Ie=Math.max(I.sizerWidth,qu(g)-I.sizer.offsetLeft)-de.right,Be=L.direction=="ltr";function nt(Hn,Xn,yr,mr){Xn<0&&(Xn=0),Xn=Math.round(Xn),mr=Math.round(mr),te.appendChild(R("div",null,"CodeMirror-selected","position: absolute; left: "+Hn+`px;
|
||
top: `+Xn+"px; width: "+(yr??Ie-Hn)+`px;
|
||
height: `+(mr-Xn)+"px"))}function at(Hn,Xn,yr){var mr=gt(L,Hn),Kr=mr.text.length,Vi,Na;function wo(ia,Js){return $e(g,O(Hn,ia),"div",mr,Js)}function wl(ia,Js,Xa){var ba=Ct(g,mr,null,ia),oa=Js=="ltr"==(Xa=="after")?"left":"right",No=Xa=="after"?ba.begin:ba.end-(/\s/.test(mr.text.charAt(ba.end-1))?2:1);return wo(No,oa)[oa]}var Zs=Oe(mr,L.direction);return Q(Zs,Xn||0,yr??Kr,function(ia,Js,Xa,ba){var oa=Xa=="ltr",No=wo(ia,oa?"left":"right"),el=wo(Js-1,oa?"right":"left"),H0=Xn==null&&ia==0,Kp=yr==null&&Js==Kr,ds=ba==0,cf=!Zs||ba==Zs.length-1;if(el.top-No.top<=3){var Da=(Be?H0:Kp)&&ds,WI=(Be?Kp:H0)&&cf,mh=Da?Ee:(oa?No:el).left,Lg=WI?Ie:(oa?el:No).right;nt(mh,No.top,Lg-mh,No.bottom)}else{var Fg,Ms,z0,VI;oa?(Fg=Be&&H0&&ds?Ee:No.left,Ms=Be?Ie:wl(ia,Xa,"before"),z0=Be?Ee:wl(Js,Xa,"after"),VI=Be&&Kp&&cf?Ie:el.right):(Fg=Be?wl(ia,Xa,"before"):Ee,Ms=!Be&&H0&&ds?Ie:No.right,z0=!Be&&Kp&&cf?Ee:el.left,VI=Be?wl(Js,Xa,"after"):Ie),nt(Fg,No.top,Ms-Fg,No.bottom),No.bottom<el.top&&nt(Ee,No.bottom,null,el.top),nt(z0,el.top,VI-z0,el.bottom)}(!Vi||Nr(No,Vi)<0)&&(Vi=No),Nr(el,Vi)<0&&(Vi=el),(!Na||Nr(No,Na)<0)&&(Na=No),Nr(el,Na)<0&&(Na=el)}),{start:Vi,end:Na}}var Et=w.from(),yt=w.to();if(Et.line==yt.line)at(Et.line,Et.ch,yt.ch);else{var rn=gt(L,Et.line),dn=gt(L,yt.line),En=ls(rn)==ls(dn),Bn=at(Et.line,Et.ch,En?rn.text.length+1:null).end,Un=at(yt.line,En?0:null,yt.ch).start;En&&(Bn.top<Un.top-2?(nt(Bn.right,Bn.top,null,Bn.bottom),nt(Ee,Un.top,Un.left,Un.bottom)):nt(Bn.right,Bn.top,Un.left-Bn.right,Bn.bottom)),Bn.bottom<Un.top&&nt(Ee,Bn.bottom,null,Un.top)}$.appendChild(te)}function ya(g){if(g.state.focused){var w=g.display;clearInterval(w.blinker);var $=!0;w.cursorDiv.style.visibility="",g.options.cursorBlinkRate>0?w.blinker=setInterval(function(){g.hasFocus()||lf(g),w.cursorDiv.style.visibility=($=!$)?"":"hidden"},g.options.cursorBlinkRate):g.options.cursorBlinkRate<0&&(w.cursorDiv.style.visibility="hidden")}}function $g(g){g.hasFocus()||(g.display.input.focus(),g.state.focused||Yu(g))}function $a(g){g.state.delayingBlurEvent=!0,setTimeout(function(){g.state.delayingBlurEvent&&(g.state.delayingBlurEvent=!1,g.state.focused&&lf(g))},100)}function Yu(g,w){g.state.delayingBlurEvent&&!g.state.draggingText&&(g.state.delayingBlurEvent=!1),g.options.readOnly!="nocursor"&&(g.state.focused||(ze(g,"focus",g,w),g.state.focused=!0,W(g.display.wrapper,"CodeMirror-focused"),!g.curOp&&g.display.selForContextMenu!=g.doc.sel&&(g.display.input.reset(),l&&setTimeout(function(){return g.display.input.reset(!0)},20)),g.display.input.receivedFocus()),ya(g))}function lf(g,w){g.state.delayingBlurEvent||(g.state.focused&&(ze(g,"blur",g,w),g.state.focused=!1,M(g.display.wrapper,"CodeMirror-focused")),clearInterval(g.display.blinker),setTimeout(function(){g.state.focused||(g.display.shift=!1)},150))}function j4(g){for(var w=g.display,$=w.lineDiv.offsetTop,I=Math.max(0,w.scroller.getBoundingClientRect().top),L=w.lineDiv.getBoundingClientRect().top,te=0,de=0;de<w.view.length;de++){var Ee=w.view[de],Ie=g.options.lineWrapping,Be=void 0,nt=0;if(!Ee.hidden){if(L+=Ee.line.height,a&&s<8){var at=Ee.node.offsetTop+Ee.node.offsetHeight;Be=at-$,$=at}else{var Et=Ee.node.getBoundingClientRect();Be=Et.bottom-Et.top,!Ie&&Ee.text.firstChild&&(nt=Ee.text.firstChild.getBoundingClientRect().right-Et.left-1)}var yt=Ee.line.height-Be;if((yt>.005||yt<-.005)&&(L<I&&(te-=yt),mt(Ee.line,Be),Bq(Ee.line),Ee.rest))for(var rn=0;rn<Ee.rest.length;rn++)Bq(Ee.rest[rn]);if(nt>g.display.sizerWidth){var dn=Math.ceil(nt/xt(g.display));dn>g.display.maxLineLength&&(g.display.maxLineLength=dn,g.display.maxLine=Ee.line,g.display.maxLineChanged=!0)}}}Math.abs(te)>2&&(w.scroller.scrollTop+=te)}function Bq(g){if(g.widgets)for(var w=0;w<g.widgets.length;++w){var $=g.widgets[w],I=$.node.parentNode;I&&($.height=I.offsetHeight)}}function B4(g,w,$){var I=$&&$.top!=null?Math.max(0,$.top):g.scroller.scrollTop;I=Math.floor(I-Mg(g));var L=$&&$.bottom!=null?$.bottom:I+g.wrapper.clientHeight,te=zt(w,I),de=zt(w,L);if($&&$.ensure){var Ee=$.ensure.from.line,Ie=$.ensure.to.line;Ee<te?(te=Ee,de=zt(w,Vu(gt(w,Ee))+g.wrapper.clientHeight)):Math.min(Ie,w.lastLine())>=de&&(te=zt(w,Vu(gt(w,Ie))-g.wrapper.clientHeight),de=Ie)}return{from:te,to:Math.max(de,te+1)}}function C8e(g,w){if(!Ye(g,"scrollCursorIntoView")){var $=g.display,I=$.sizer.getBoundingClientRect(),L=null;if(w.top+I.top<0?L=!0:w.bottom+I.top>(window.innerHeight||document.documentElement.clientHeight)&&(L=!1),L!=null&&!m){var te=R("div","",null,`position: absolute;
|
||
top: `+(w.top-$.viewOffset-Mg(g.display))+`px;
|
||
height: `+(w.bottom-w.top+Jl(g)+$.barHeight)+`px;
|
||
left: `+w.left+"px; width: "+Math.max(2,w.right-w.left)+"px;");g.display.lineSpace.appendChild(te),te.scrollIntoView(L),g.display.lineSpace.removeChild(te)}}}function x8e(g,w,$,I){I==null&&(I=0);var L;!g.options.lineWrapping&&w==$&&($=w.sticky=="before"?O(w.line,w.ch+1,"before"):w,w=w.ch?O(w.line,w.sticky=="before"?w.ch-1:w.ch,"after"):w);for(var te=0;te<5;te++){var de=!1,Ee=He(g,w),Ie=!$||$==w?Ee:He(g,$);L={left:Math.min(Ee.left,Ie.left),top:Math.min(Ee.top,Ie.top)-I,right:Math.max(Ee.left,Ie.left),bottom:Math.max(Ee.bottom,Ie.bottom)+I};var Be=xI(g,L),nt=g.doc.scrollTop,at=g.doc.scrollLeft;if(Be.scrollTop!=null&&(XC(g,Be.scrollTop),Math.abs(g.doc.scrollTop-nt)>1&&(de=!0)),Be.scrollLeft!=null&&(Rg(g,Be.scrollLeft),Math.abs(g.doc.scrollLeft-at)>1&&(de=!0)),!de)break}return L}function w8e(g,w){var $=xI(g,w);$.scrollTop!=null&&XC(g,$.scrollTop),$.scrollLeft!=null&&Rg(g,$.scrollLeft)}function xI(g,w){var $=g.display,I=It(g.display);w.top<0&&(w.top=0);var L=g.curOp&&g.curOp.scrollTop!=null?g.curOp.scrollTop:$.scroller.scrollTop,te=O0(g),de={};w.bottom-w.top>te&&(w.bottom=w.top+te);var Ee=g.doc.height+k0($),Ie=w.top<I,Be=w.bottom>Ee-I;if(w.top<L)de.scrollTop=Ie?0:w.top;else if(w.bottom>L+te){var nt=Math.min(w.top,(Be?Ee:w.bottom)-te);nt!=L&&(de.scrollTop=nt)}var at=g.options.fixedGutter?0:$.gutters.offsetWidth,Et=g.curOp&&g.curOp.scrollLeft!=null?g.curOp.scrollLeft:$.scroller.scrollLeft-at,yt=qu(g)-$.gutters.offsetWidth,rn=w.right-w.left>yt;return rn&&(w.right=w.left+yt),w.left<10?de.scrollLeft=0:w.left<Et?de.scrollLeft=Math.max(0,w.left+at-(rn?0:10)):w.right>yt+Et-3&&(de.scrollLeft=w.right+(rn?0:10)-yt),de}function wI(g,w){w!=null&&(H4(g),g.curOp.scrollTop=(g.curOp.scrollTop==null?g.doc.scrollTop:g.curOp.scrollTop)+w)}function M0(g){H4(g);var w=g.getCursor();g.curOp.scrollToPos={from:w,to:w,margin:g.options.cursorScrollMargin}}function YC(g,w,$){(w!=null||$!=null)&&H4(g),w!=null&&(g.curOp.scrollLeft=w),$!=null&&(g.curOp.scrollTop=$)}function _8e(g,w){H4(g),g.curOp.scrollToPos=w}function H4(g){var w=g.curOp.scrollToPos;if(w){g.curOp.scrollToPos=null;var $=qe(g,w.from),I=qe(g,w.to);Hq(g,$,I,w.margin)}}function Hq(g,w,$,I){var L=xI(g,{left:Math.min(w.left,$.left),top:Math.min(w.top,$.top)-I,right:Math.max(w.right,$.right),bottom:Math.max(w.bottom,$.bottom)+I});YC(g,L.scrollLeft,L.scrollTop)}function XC(g,w){Math.abs(g.doc.scrollTop-w)<2||(n||EI(g,{top:w}),zq(g,w,!0),n&&EI(g),JC(g,100))}function zq(g,w,$){w=Math.max(0,Math.min(g.display.scroller.scrollHeight-g.display.scroller.clientHeight,w)),!(g.display.scroller.scrollTop==w&&!$)&&(g.doc.scrollTop=w,g.display.scrollbars.setScrollTop(w),g.display.scroller.scrollTop!=w&&(g.display.scroller.scrollTop=w))}function Rg(g,w,$,I){w=Math.max(0,Math.min(w,g.display.scroller.scrollWidth-g.display.scroller.clientWidth)),!(($?w==g.doc.scrollLeft:Math.abs(g.doc.scrollLeft-w)<2)&&!I)&&(g.doc.scrollLeft=w,qq(g),g.display.scroller.scrollLeft!=w&&(g.display.scroller.scrollLeft=w),g.display.scrollbars.setScrollLeft(w))}function QC(g){var w=g.display,$=w.gutters.offsetWidth,I=Math.round(g.doc.height+k0(g.display));return{clientHeight:w.scroller.clientHeight,viewHeight:w.wrapper.clientHeight,scrollWidth:w.scroller.scrollWidth,clientWidth:w.scroller.clientWidth,viewWidth:w.wrapper.clientWidth,barLeft:g.options.fixedGutter?$:0,docHeight:I,scrollHeight:I+Jl(g)+w.barHeight,nativeBarWidth:w.nativeBarWidth,gutterWidth:$}}var Ag=function(g,w,$){this.cm=$;var I=this.vert=R("div",[R("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),L=this.horiz=R("div",[R("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");I.tabIndex=L.tabIndex=-1,g(I),g(L),Ke(I,"scroll",function(){I.clientHeight&&w(I.scrollTop,"vertical")}),Ke(L,"scroll",function(){L.clientWidth&&w(L.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ag.prototype.update=function(g){var w=g.scrollWidth>g.clientWidth+1,$=g.scrollHeight>g.clientHeight+1,I=g.nativeBarWidth;if($){this.vert.style.display="block",this.vert.style.bottom=w?I+"px":"0";var L=g.viewHeight-(w?I:0);this.vert.firstChild.style.height=Math.max(0,g.scrollHeight-g.clientHeight+L)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(w){this.horiz.style.display="block",this.horiz.style.right=$?I+"px":"0",this.horiz.style.left=g.barLeft+"px";var te=g.viewWidth-g.barLeft-($?I:0);this.horiz.firstChild.style.width=Math.max(0,g.scrollWidth-g.clientWidth+te)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&g.clientHeight>0&&(I==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:$?I:0,bottom:w?I:0}},Ag.prototype.setScrollLeft=function(g){this.horiz.scrollLeft!=g&&(this.horiz.scrollLeft=g),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ag.prototype.setScrollTop=function(g){this.vert.scrollTop!=g&&(this.vert.scrollTop=g),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ag.prototype.zeroWidthHack=function(){var g=b&&!p?"12px":"18px";this.horiz.style.height=this.vert.style.width=g,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new G,this.disableVert=new G},Ag.prototype.enableZeroWidthBar=function(g,w,$){g.style.pointerEvents="auto";function I(){var L=g.getBoundingClientRect(),te=$=="vert"?document.elementFromPoint(L.right-1,(L.top+L.bottom)/2):document.elementFromPoint((L.right+L.left)/2,L.bottom-1);te!=g?g.style.pointerEvents="none":w.set(1e3,I)}w.set(1e3,I)},Ag.prototype.clear=function(){var g=this.horiz.parentNode;g.removeChild(this.horiz),g.removeChild(this.vert)};var ZC=function(){};ZC.prototype.update=function(){return{bottom:0,right:0}},ZC.prototype.setScrollLeft=function(){},ZC.prototype.setScrollTop=function(){},ZC.prototype.clear=function(){};function I0(g,w){w||(w=QC(g));var $=g.display.barWidth,I=g.display.barHeight;Uq(g,w);for(var L=0;L<4&&$!=g.display.barWidth||I!=g.display.barHeight;L++)$!=g.display.barWidth&&g.options.lineWrapping&&j4(g),Uq(g,QC(g)),$=g.display.barWidth,I=g.display.barHeight}function Uq(g,w){var $=g.display,I=$.scrollbars.update(w);$.sizer.style.paddingRight=($.barWidth=I.right)+"px",$.sizer.style.paddingBottom=($.barHeight=I.bottom)+"px",$.heightForcer.style.borderBottom=I.bottom+"px solid transparent",I.right&&I.bottom?($.scrollbarFiller.style.display="block",$.scrollbarFiller.style.height=I.bottom+"px",$.scrollbarFiller.style.width=I.right+"px"):$.scrollbarFiller.style.display="",I.bottom&&g.options.coverGutterNextToScrollbar&&g.options.fixedGutter?($.gutterFiller.style.display="block",$.gutterFiller.style.height=I.bottom+"px",$.gutterFiller.style.width=w.gutterWidth+"px"):$.gutterFiller.style.display=""}var Wq={native:Ag,null:ZC};function Vq(g){g.display.scrollbars&&(g.display.scrollbars.clear(),g.display.scrollbars.addClass&&M(g.display.wrapper,g.display.scrollbars.addClass)),g.display.scrollbars=new Wq[g.options.scrollbarStyle](function(w){g.display.wrapper.insertBefore(w,g.display.scrollbarFiller),Ke(w,"mousedown",function(){g.state.focused&&setTimeout(function(){return g.display.input.focus()},0)}),w.setAttribute("cm-not-content","true")},function(w,$){$=="horizontal"?Rg(g,w):XC(g,w)},g),g.display.scrollbars.addClass&&W(g.display.wrapper,g.display.scrollbars.addClass)}var E8e=0;function Ng(g){g.curOp={cm:g,viewChanged:!1,startHeight:g.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++E8e,markArrays:null},b0(g.curOp)}function Dg(g){var w=g.curOp;w&&$4(w,function($){for(var I=0;I<$.ops.length;I++)$.ops[I].cm.curOp=null;T8e($)})}function T8e(g){for(var w=g.ops,$=0;$<w.length;$++)k8e(w[$]);for(var I=0;I<w.length;I++)O8e(w[I]);for(var L=0;L<w.length;L++)P8e(w[L]);for(var te=0;te<w.length;te++)M8e(w[te]);for(var de=0;de<w.length;de++)I8e(w[de])}function k8e(g){var w=g.cm,$=w.display;R8e(w),g.updateMaxLine&&Pg(w),g.mustUpdate=g.viewChanged||g.forceUpdate||g.scrollTop!=null||g.scrollToPos&&(g.scrollToPos.from.line<$.viewFrom||g.scrollToPos.to.line>=$.viewTo)||$.maxLineChanged&&w.options.lineWrapping,g.update=g.mustUpdate&&new z4(w,g.mustUpdate&&{top:g.scrollTop,ensure:g.scrollToPos},g.forceUpdate)}function O8e(g){g.updatedDisplay=g.mustUpdate&&_I(g.cm,g.update)}function P8e(g){var w=g.cm,$=w.display;g.updatedDisplay&&j4(w),g.barMeasure=QC(w),$.maxLineChanged&&!w.options.lineWrapping&&(g.adjustWidthTo=L4(w,$.maxLine,$.maxLine.text.length).left+3,w.display.sizerWidth=g.adjustWidthTo,g.barMeasure.scrollWidth=Math.max($.scroller.clientWidth,$.sizer.offsetLeft+g.adjustWidthTo+Jl(w)+w.display.barWidth),g.maxScrollLeft=Math.max(0,$.sizer.offsetLeft+g.adjustWidthTo-qu(w))),(g.updatedDisplay||g.selectionChanged)&&(g.preparedSelection=$.input.prepareSelection())}function M8e(g){var w=g.cm;g.adjustWidthTo!=null&&(w.display.sizer.style.minWidth=g.adjustWidthTo+"px",g.maxScrollLeft<w.doc.scrollLeft&&Rg(w,Math.min(w.display.scroller.scrollLeft,g.maxScrollLeft),!0),w.display.maxLineChanged=!1);var $=g.focus&&g.focus==z();g.preparedSelection&&w.display.input.showSelection(g.preparedSelection,$),(g.updatedDisplay||g.startHeight!=w.doc.height)&&I0(w,g.barMeasure),g.updatedDisplay&&kI(w,g.barMeasure),g.selectionChanged&&ya(w),w.state.focused&&g.updateInput&&w.display.input.reset(g.typing),$&&$g(g.cm)}function I8e(g){var w=g.cm,$=w.display,I=w.doc;if(g.updatedDisplay&&Kq(w,g.update),$.wheelStartX!=null&&(g.scrollTop!=null||g.scrollLeft!=null||g.scrollToPos)&&($.wheelStartX=$.wheelStartY=null),g.scrollTop!=null&&zq(w,g.scrollTop,g.forceScroll),g.scrollLeft!=null&&Rg(w,g.scrollLeft,!0,!0),g.scrollToPos){var L=x8e(w,on(I,g.scrollToPos.from),on(I,g.scrollToPos.to),g.scrollToPos.margin);C8e(w,L)}var te=g.maybeHiddenMarkers,de=g.maybeUnhiddenMarkers;if(te)for(var Ee=0;Ee<te.length;++Ee)te[Ee].lines.length||ze(te[Ee],"hide");if(de)for(var Ie=0;Ie<de.length;++Ie)de[Ie].lines.length&&ze(de[Ie],"unhide");$.wrapper.offsetHeight&&(I.scrollTop=w.display.scroller.scrollTop),g.changeObjs&&ze(w,"changes",w,g.changeObjs),g.update&&g.update.finish()}function xl(g,w){if(g.curOp)return w();Ng(g);try{return w()}finally{Dg(g)}}function Ra(g,w){return function(){if(g.curOp)return w.apply(g,arguments);Ng(g);try{return w.apply(g,arguments)}finally{Dg(g)}}}function Ps(g){return function(){if(this.curOp)return g.apply(this,arguments);Ng(this);try{return g.apply(this,arguments)}finally{Dg(this)}}}function Aa(g){return function(){var w=this.cm;if(!w||w.curOp)return g.apply(this,arguments);Ng(w);try{return g.apply(this,arguments)}finally{Dg(w)}}}function JC(g,w){g.doc.highlightFrontier<g.display.viewTo&&g.state.highlight.set(w,N($8e,g))}function $8e(g){var w=g.doc;if(!(w.highlightFrontier>=g.display.viewTo)){var $=+new Date+g.options.workTime,I=Pn(g,w.highlightFrontier),L=[];w.iter(I.line,Math.min(w.first+w.size,g.display.viewTo+500),function(te){if(I.line>=g.display.viewFrom){var de=te.styles,Ee=te.text.length>g.options.maxHighlightLength?jt(w.mode,I.state):null,Ie=Rr(g,te,I,!0);Ee&&(I.state=Ee),te.styles=Ie.styles;var Be=te.styleClasses,nt=Ie.classes;nt?te.styleClasses=nt:Be&&(te.styleClasses=null);for(var at=!de||de.length!=te.styles.length||Be!=nt&&(!Be||!nt||Be.bgClass!=nt.bgClass||Be.textClass!=nt.textClass),Et=0;!at&&Et<de.length;++Et)at=de[Et]!=te.styles[Et];at&&L.push(I.line),te.stateAfter=I.save(),I.nextLine()}else te.text.length<=g.options.maxHighlightLength&&Ar(g,te.text,I),te.stateAfter=I.line%5==0?I.save():null,I.nextLine();if(+new Date>$)return JC(g,g.options.workDelay),!0}),w.highlightFrontier=I.line,w.modeFrontier=Math.max(w.modeFrontier,I.line),L.length&&xl(g,function(){for(var te=0;te<L.length;te++)kn(g,L[te],"text")})}}var z4=function(g,w,$){var I=g.display;this.viewport=w,this.visible=B4(I,g.doc,w),this.editorIsHidden=!I.wrapper.offsetWidth,this.wrapperHeight=I.wrapper.clientHeight,this.wrapperWidth=I.wrapper.clientWidth,this.oldDisplayWidth=qu(g),this.force=$,this.dims=Ut(g),this.events=[]};z4.prototype.signal=function(g,w){Je(g,w)&&this.events.push(arguments)},z4.prototype.finish=function(){for(var g=0;g<this.events.length;g++)ze.apply(null,this.events[g])};function R8e(g){var w=g.display;!w.scrollbarsClipped&&w.scroller.offsetWidth&&(w.nativeBarWidth=w.scroller.offsetWidth-w.scroller.clientWidth,w.heightForcer.style.height=Jl(g)+"px",w.sizer.style.marginBottom=-w.nativeBarWidth+"px",w.sizer.style.borderRightWidth=Jl(g)+"px",w.scrollbarsClipped=!0)}function A8e(g){if(g.hasFocus())return null;var w=z();if(!w||!F(g.display.lineDiv,w))return null;var $={activeElt:w};if(window.getSelection){var I=window.getSelection();I.anchorNode&&I.extend&&F(g.display.lineDiv,I.anchorNode)&&($.anchorNode=I.anchorNode,$.anchorOffset=I.anchorOffset,$.focusNode=I.focusNode,$.focusOffset=I.focusOffset)}return $}function N8e(g){if(!(!g||!g.activeElt||g.activeElt==z())&&(g.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(g.activeElt.nodeName)&&g.anchorNode&&F(document.body,g.anchorNode)&&F(document.body,g.focusNode))){var w=window.getSelection(),$=document.createRange();$.setEnd(g.anchorNode,g.anchorOffset),$.collapse(!1),w.removeAllRanges(),w.addRange($),w.extend(g.focusNode,g.focusOffset)}}function _I(g,w){var $=g.display,I=g.doc;if(w.editorIsHidden)return jn(g),!1;if(!w.force&&w.visible.from>=$.viewFrom&&w.visible.to<=$.viewTo&&($.updateLineNumbers==null||$.updateLineNumbers>=$.viewTo)&&$.renderedView==$.view&&Br(g)==0)return!1;Gq(g)&&(jn(g),w.dims=Ut(g));var L=I.first+I.size,te=Math.max(w.visible.from-g.options.viewportMargin,I.first),de=Math.min(L,w.visible.to+g.options.viewportMargin);$.viewFrom<te&&te-$.viewFrom<20&&(te=Math.max(I.first,$.viewFrom)),$.viewTo>de&&$.viewTo-de<20&&(de=Math.min(L,$.viewTo)),xn&&(te=Lp(g.doc,te),de=Og(g.doc,de));var Ee=te!=$.viewFrom||de!=$.viewTo||$.lastWrapHeight!=w.wrapperHeight||$.lastWrapWidth!=w.wrapperWidth;tr(g,te,de),$.viewOffset=Vu(gt(g.doc,$.viewFrom)),g.display.mover.style.top=$.viewOffset+"px";var Ie=Br(g);if(!Ee&&Ie==0&&!w.force&&$.renderedView==$.view&&($.updateLineNumbers==null||$.updateLineNumbers>=$.viewTo))return!1;var Be=A8e(g);return Ie>4&&($.lineDiv.style.display="none"),D8e(g,$.updateLineNumbers,w.dims),Ie>4&&($.lineDiv.style.display=""),$.renderedView=$.view,N8e(Be),P($.cursorDiv),P($.selectionDiv),$.gutters.style.height=$.sizer.style.minHeight=0,Ee&&($.lastWrapHeight=w.wrapperHeight,$.lastWrapWidth=w.wrapperWidth,JC(g,400)),$.updateLineNumbers=null,!0}function Kq(g,w){for(var $=w.viewport,I=!0;;I=!1){if(!I||!g.options.lineWrapping||w.oldDisplayWidth==qu(g)){if($&&$.top!=null&&($={top:Math.min(g.doc.height+k0(g.display)-O0(g),$.top)}),w.visible=B4(g.display,g.doc,$),w.visible.from>=g.display.viewFrom&&w.visible.to<=g.display.viewTo)break}else I&&(w.visible=B4(g.display,g.doc,$));if(!_I(g,w))break;j4(g);var L=QC(g);Ur(g),I0(g,L),kI(g,L),w.force=!1}w.signal(g,"update",g),(g.display.viewFrom!=g.display.reportedViewFrom||g.display.viewTo!=g.display.reportedViewTo)&&(w.signal(g,"viewportChange",g,g.display.viewFrom,g.display.viewTo),g.display.reportedViewFrom=g.display.viewFrom,g.display.reportedViewTo=g.display.viewTo)}function EI(g,w){var $=new z4(g,w);if(_I(g,$)){j4(g),Kq(g,$);var I=QC(g);Ur(g),I0(g,I),kI(g,I),$.finish()}}function D8e(g,w,$){var I=g.display,L=g.options.lineNumbers,te=I.lineDiv,de=te.firstChild;function Ee(rn){var dn=rn.nextSibling;return l&&b&&g.display.currentWheelTarget==rn?rn.style.display="none":rn.parentNode.removeChild(rn),dn}for(var Ie=I.view,Be=I.viewFrom,nt=0;nt<Ie.length;nt++){var at=Ie[nt];if(!at.hidden)if(!at.node||at.node.parentNode!=te){var Et=yI(g,at,Be,$);te.insertBefore(Et,de)}else{for(;de!=at.node;)de=Ee(de);var yt=L&&w!=null&&w<=Be&&at.lineNumber;at.changes&&(ie(at.changes,"gutter")>-1&&(yt=!1),S0(g,at,Be,$)),yt&&(P(at.lineNumber),at.lineNumber.appendChild(document.createTextNode(Qn(g.options,Be)))),de=at.node.nextSibling}Be+=at.size}for(;de;)de=Ee(de)}function TI(g){var w=g.gutters.offsetWidth;g.sizer.style.marginLeft=w+"px",Ao(g,"gutterChanged",g)}function kI(g,w){g.display.sizer.style.minHeight=w.docHeight+"px",g.display.heightForcer.style.top=w.docHeight+"px",g.display.gutters.style.height=w.docHeight+g.display.barHeight+Jl(g)+"px"}function qq(g){var w=g.display,$=w.view;if(!(!w.alignWidgets&&(!w.gutters.firstChild||!g.options.fixedGutter))){for(var I=Xt(w)-w.scroller.scrollLeft+g.doc.scrollLeft,L=w.gutters.offsetWidth,te=I+"px",de=0;de<$.length;de++)if(!$[de].hidden){g.options.fixedGutter&&($[de].gutter&&($[de].gutter.style.left=te),$[de].gutterBackground&&($[de].gutterBackground.style.left=te));var Ee=$[de].alignable;if(Ee)for(var Ie=0;Ie<Ee.length;Ie++)Ee[Ie].style.left=te}g.options.fixedGutter&&(w.gutters.style.left=I+L+"px")}}function Gq(g){if(!g.options.lineNumbers)return!1;var w=g.doc,$=Qn(g.options,w.first+w.size-1),I=g.display;if($.length!=I.lineNumChars){var L=I.measure.appendChild(R("div",[R("div",$)],"CodeMirror-linenumber CodeMirror-gutter-elt")),te=L.firstChild.offsetWidth,de=L.offsetWidth-te;return I.lineGutter.style.width="",I.lineNumInnerWidth=Math.max(te,I.lineGutter.offsetWidth-de)+1,I.lineNumWidth=I.lineNumInnerWidth+de,I.lineNumChars=I.lineNumInnerWidth?$.length:-1,I.lineGutter.style.width=I.lineNumWidth+"px",TI(g.display),!0}return!1}function OI(g,w){for(var $=[],I=!1,L=0;L<g.length;L++){var te=g[L],de=null;if(typeof te!="string"&&(de=te.style,te=te.className),te=="CodeMirror-linenumbers")if(w)I=!0;else continue;$.push({className:te,style:de})}return w&&!I&&$.push({className:"CodeMirror-linenumbers",style:null}),$}function Yq(g){var w=g.gutters,$=g.gutterSpecs;P(w),g.lineGutter=null;for(var I=0;I<$.length;++I){var L=$[I],te=L.className,de=L.style,Ee=w.appendChild(R("div",null,"CodeMirror-gutter "+te));de&&(Ee.style.cssText=de),te=="CodeMirror-linenumbers"&&(g.lineGutter=Ee,Ee.style.width=(g.lineNumWidth||1)+"px")}w.style.display=$.length?"":"none",TI(g)}function ex(g){Yq(g.display),yn(g),qq(g)}function L8e(g,w,$,I){var L=this;this.input=$,L.scrollbarFiller=R("div",null,"CodeMirror-scrollbar-filler"),L.scrollbarFiller.setAttribute("cm-not-content","true"),L.gutterFiller=R("div",null,"CodeMirror-gutter-filler"),L.gutterFiller.setAttribute("cm-not-content","true"),L.lineDiv=A("div",null,"CodeMirror-code"),L.selectionDiv=R("div",null,null,"position: relative; z-index: 1"),L.cursorDiv=R("div",null,"CodeMirror-cursors"),L.measure=R("div",null,"CodeMirror-measure"),L.lineMeasure=R("div",null,"CodeMirror-measure"),L.lineSpace=A("div",[L.measure,L.lineMeasure,L.selectionDiv,L.cursorDiv,L.lineDiv],null,"position: relative; outline: none");var te=A("div",[L.lineSpace],"CodeMirror-lines");L.mover=R("div",[te],null,"position: relative"),L.sizer=R("div",[L.mover],"CodeMirror-sizer"),L.sizerWidth=null,L.heightForcer=R("div",null,null,"position: absolute; height: "+ce+"px; width: 1px;"),L.gutters=R("div",null,"CodeMirror-gutters"),L.lineGutter=null,L.scroller=R("div",[L.sizer,L.heightForcer,L.gutters],"CodeMirror-scroll"),L.scroller.setAttribute("tabIndex","-1"),L.wrapper=R("div",[L.scrollbarFiller,L.gutterFiller,L.scroller],"CodeMirror"),L.wrapper.setAttribute("translate","no"),a&&s<8&&(L.gutters.style.zIndex=-1,L.scroller.style.paddingRight=0),!l&&!(n&&S)&&(L.scroller.draggable=!0),g&&(g.appendChild?g.appendChild(L.wrapper):g(L.wrapper)),L.viewFrom=L.viewTo=w.first,L.reportedViewFrom=L.reportedViewTo=w.first,L.view=[],L.renderedView=null,L.externalMeasured=null,L.viewOffset=0,L.lastWrapHeight=L.lastWrapWidth=0,L.updateLineNumbers=null,L.nativeBarWidth=L.barHeight=L.barWidth=0,L.scrollbarsClipped=!1,L.lineNumWidth=L.lineNumInnerWidth=L.lineNumChars=null,L.alignWidgets=!1,L.cachedCharWidth=L.cachedTextHeight=L.cachedPaddingH=null,L.maxLine=null,L.maxLineLength=0,L.maxLineChanged=!1,L.wheelDX=L.wheelDY=L.wheelStartX=L.wheelStartY=null,L.shift=!1,L.selForContextMenu=null,L.activeTouch=null,L.gutterSpecs=OI(I.gutters,I.lineNumbers),Yq(L),$.init(L)}var U4=0,hh=null;a?hh=-.53:n?hh=15:u?hh=-.7:h&&(hh=-1/3);function Xq(g){var w=g.wheelDeltaX,$=g.wheelDeltaY;return w==null&&g.detail&&g.axis==g.HORIZONTAL_AXIS&&(w=g.detail),$==null&&g.detail&&g.axis==g.VERTICAL_AXIS?$=g.detail:$==null&&($=g.wheelDelta),{x:w,y:$}}function F8e(g){var w=Xq(g);return w.x*=hh,w.y*=hh,w}function Qq(g,w){var $=Xq(w),I=$.x,L=$.y,te=hh;w.deltaMode===0&&(I=w.deltaX,L=w.deltaY,te=1);var de=g.display,Ee=de.scroller,Ie=Ee.scrollWidth>Ee.clientWidth,Be=Ee.scrollHeight>Ee.clientHeight;if(I&&Ie||L&&Be){if(L&&b&&l){e:for(var nt=w.target,at=de.view;nt!=Ee;nt=nt.parentNode)for(var Et=0;Et<at.length;Et++)if(at[Et].node==nt){g.display.currentWheelTarget=nt;break e}}if(I&&!n&&!d&&te!=null){L&&Be&&XC(g,Math.max(0,Ee.scrollTop+L*te)),Rg(g,Math.max(0,Ee.scrollLeft+I*te)),(!L||L&&Be)&&rt(w),de.wheelStartX=null;return}if(L&&te!=null){var yt=L*te,rn=g.doc.scrollTop,dn=rn+de.wrapper.clientHeight;yt<0?rn=Math.max(0,rn+yt-50):dn=Math.min(g.doc.height,dn+yt+50),EI(g,{top:rn,bottom:dn})}U4<20&&w.deltaMode!==0&&(de.wheelStartX==null?(de.wheelStartX=Ee.scrollLeft,de.wheelStartY=Ee.scrollTop,de.wheelDX=I,de.wheelDY=L,setTimeout(function(){if(de.wheelStartX!=null){var En=Ee.scrollLeft-de.wheelStartX,Bn=Ee.scrollTop-de.wheelStartY,Un=Bn&&de.wheelDY&&Bn/de.wheelDY||En&&de.wheelDX&&En/de.wheelDX;de.wheelStartX=de.wheelStartY=null,Un&&(hh=(hh*U4+Un)/(U4+1),++U4)}},200)):(de.wheelDX+=I,de.wheelDY+=L))}}var ec=function(g,w){this.ranges=g,this.primIndex=w};ec.prototype.primary=function(){return this.ranges[this.primIndex]},ec.prototype.equals=function(g){if(g==this)return!0;if(g.primIndex!=this.primIndex||g.ranges.length!=this.ranges.length)return!1;for(var w=0;w<this.ranges.length;w++){var $=this.ranges[w],I=g.ranges[w];if(!oe($.anchor,I.anchor)||!oe($.head,I.head))return!1}return!0},ec.prototype.deepCopy=function(){for(var g=[],w=0;w<this.ranges.length;w++)g[w]=new ki(Ae(this.ranges[w].anchor),Ae(this.ranges[w].head));return new ec(g,this.primIndex)},ec.prototype.somethingSelected=function(){for(var g=0;g<this.ranges.length;g++)if(!this.ranges[g].empty())return!0;return!1},ec.prototype.contains=function(g,w){w||(w=g);for(var $=0;$<this.ranges.length;$++){var I=this.ranges[$];if(j(w,I.from())>=0&&j(g,I.to())<=0)return $}return-1};var ki=function(g,w){this.anchor=g,this.head=w};ki.prototype.from=function(){return ft(this.anchor,this.head)},ki.prototype.to=function(){return Ge(this.anchor,this.head)},ki.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Xu(g,w,$){var I=g&&g.options.selectionsMayTouch,L=w[$];w.sort(function(Et,yt){return j(Et.from(),yt.from())}),$=ie(w,L);for(var te=1;te<w.length;te++){var de=w[te],Ee=w[te-1],Ie=j(Ee.to(),de.from());if(I&&!de.empty()?Ie>0:Ie>=0){var Be=ft(Ee.from(),de.from()),nt=Ge(Ee.to(),de.to()),at=Ee.empty()?de.from()==de.head:Ee.from()==Ee.head;te<=$&&--$,w.splice(--te,2,new ki(at?nt:Be,at?Be:nt))}}return new ec(w,$)}function Hp(g,w){return new ec([new ki(g,w||g)],0)}function zp(g){return g.text?O(g.from.line+g.text.length-1,he(g.text).length+(g.text.length==1?g.from.ch:0)):g.to}function Zq(g,w){if(j(g,w.from)<0)return g;if(j(g,w.to)<=0)return zp(w);var $=g.line+w.text.length-(w.to.line-w.from.line)-1,I=g.ch;return g.line==w.to.line&&(I+=zp(w).ch-w.to.ch),O($,I)}function PI(g,w){for(var $=[],I=0;I<g.sel.ranges.length;I++){var L=g.sel.ranges[I];$.push(new ki(Zq(L.anchor,w),Zq(L.head,w)))}return Xu(g.cm,$,g.sel.primIndex)}function Jq(g,w,$){return g.line==w.line?O($.line,g.ch-w.ch+$.ch):O($.line+(g.line-w.line),g.ch)}function j8e(g,w,$){for(var I=[],L=O(g.first,0),te=L,de=0;de<w.length;de++){var Ee=w[de],Ie=Jq(Ee.from,L,te),Be=Jq(zp(Ee),L,te);if(L=Ee.to,te=Be,$=="around"){var nt=g.sel.ranges[de],at=j(nt.head,nt.anchor)<0;I[de]=new ki(at?Be:Ie,at?Ie:Be)}else I[de]=new ki(Ie,Ie)}return new ec(I,g.sel.primIndex)}function MI(g){g.doc.mode=Ft(g.options,g.doc.modeOption),tx(g)}function tx(g){g.doc.iter(function(w){w.stateAfter&&(w.stateAfter=null),w.styles&&(w.styles=null)}),g.doc.modeFrontier=g.doc.highlightFrontier=g.doc.first,JC(g,100),g.state.modeGen++,g.curOp&&yn(g)}function eG(g,w){return w.from.ch==0&&w.to.ch==0&&he(w.text)==""&&(!g.cm||g.cm.options.wholeLineUpdateBefore)}function II(g,w,$,I){function L(Un){return $?$[Un]:null}function te(Un,Hn,Xn){P4(Un,Hn,Xn,I),Ao(Un,"change",Un,w)}function de(Un,Hn){for(var Xn=[],yr=Un;yr<Hn;++yr)Xn.push(new rf(Be[yr],L(yr),I));return Xn}var Ee=w.from,Ie=w.to,Be=w.text,nt=gt(g,Ee.line),at=gt(g,Ie.line),Et=he(Be),yt=L(Be.length-1),rn=Ie.line-Ee.line;if(w.full)g.insert(0,de(0,Be.length)),g.remove(Be.length,g.size-Be.length);else if(eG(g,w)){var dn=de(0,Be.length-1);te(at,at.text,yt),rn&&g.remove(Ee.line,rn),dn.length&&g.insert(Ee.line,dn)}else if(nt==at)if(Be.length==1)te(nt,nt.text.slice(0,Ee.ch)+Et+nt.text.slice(Ie.ch),yt);else{var En=de(1,Be.length-1);En.push(new rf(Et+nt.text.slice(Ie.ch),yt,I)),te(nt,nt.text.slice(0,Ee.ch)+Be[0],L(0)),g.insert(Ee.line+1,En)}else if(Be.length==1)te(nt,nt.text.slice(0,Ee.ch)+Be[0]+at.text.slice(Ie.ch),L(0)),g.remove(Ee.line+1,rn);else{te(nt,nt.text.slice(0,Ee.ch)+Be[0],L(0)),te(at,Et+at.text.slice(Ie.ch),yt);var Bn=de(1,Be.length-1);rn>1&&g.remove(Ee.line+1,rn-1),g.insert(Ee.line+1,Bn)}Ao(g,"change",g,w)}function Up(g,w,$){function I(L,te,de){if(L.linked)for(var Ee=0;Ee<L.linked.length;++Ee){var Ie=L.linked[Ee];if(Ie.doc!=te){var Be=de&&Ie.sharedHist;$&&!Be||(w(Ie.doc,Be),I(Ie.doc,L,Be))}}}I(g,null,!0)}function tG(g,w){if(w.cm)throw new Error("This document is already in use.");g.doc=w,w.cm=g,un(g),MI(g),nG(g),g.options.direction=w.direction,g.options.lineWrapping||Pg(g),g.options.mode=w.modeOption,yn(g)}function nG(g){(g.doc.direction=="rtl"?W:M)(g.display.lineDiv,"CodeMirror-rtl")}function B8e(g){xl(g,function(){nG(g),yn(g)})}function W4(g){this.done=[],this.undone=[],this.undoDepth=g?g.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=g?g.maxGeneration:1}function $I(g,w){var $={from:Ae(w.from),to:zp(w),text:Ve(g,w.from,w.to)};return oG(g,$,w.from.line,w.to.line+1),Up(g,function(I){return oG(I,$,w.from.line,w.to.line+1)},!0),$}function rG(g){for(;g.length;){var w=he(g);if(w.ranges)g.pop();else break}}function H8e(g,w){if(w)return rG(g.done),he(g.done);if(g.done.length&&!he(g.done).ranges)return he(g.done);if(g.done.length>1&&!g.done[g.done.length-2].ranges)return g.done.pop(),he(g.done)}function iG(g,w,$,I){var L=g.history;L.undone.length=0;var te=+new Date,de,Ee;if((L.lastOp==I||L.lastOrigin==w.origin&&w.origin&&(w.origin.charAt(0)=="+"&&L.lastModTime>te-(g.cm?g.cm.options.historyEventDelay:500)||w.origin.charAt(0)=="*"))&&(de=H8e(L,L.lastOp==I)))Ee=he(de.changes),j(w.from,w.to)==0&&j(w.from,Ee.to)==0?Ee.to=zp(w):de.changes.push($I(g,w));else{var Ie=he(L.done);for((!Ie||!Ie.ranges)&&V4(g.sel,L.done),de={changes:[$I(g,w)],generation:L.generation},L.done.push(de);L.done.length>L.undoDepth;)L.done.shift(),L.done[0].ranges||L.done.shift()}L.done.push($),L.generation=++L.maxGeneration,L.lastModTime=L.lastSelTime=te,L.lastOp=L.lastSelOp=I,L.lastOrigin=L.lastSelOrigin=w.origin,Ee||ze(g,"historyAdded")}function z8e(g,w,$,I){var L=w.charAt(0);return L=="*"||L=="+"&&$.ranges.length==I.ranges.length&&$.somethingSelected()==I.somethingSelected()&&new Date-g.history.lastSelTime<=(g.cm?g.cm.options.historyEventDelay:500)}function U8e(g,w,$,I){var L=g.history,te=I&&I.origin;$==L.lastSelOp||te&&L.lastSelOrigin==te&&(L.lastModTime==L.lastSelTime&&L.lastOrigin==te||z8e(g,te,he(L.done),w))?L.done[L.done.length-1]=w:V4(w,L.done),L.lastSelTime=+new Date,L.lastSelOrigin=te,L.lastSelOp=$,I&&I.clearRedo!==!1&&rG(L.undone)}function V4(g,w){var $=he(w);$&&$.ranges&&$.equals(g)||w.push(g)}function oG(g,w,$,I){var L=w["spans_"+g.id],te=0;g.iter(Math.max(g.first,$),Math.min(g.first+g.size,I),function(de){de.markedSpans&&((L||(L=w["spans_"+g.id]={}))[te]=de.markedSpans),++te})}function W8e(g){if(!g)return null;for(var w,$=0;$<g.length;++$)g[$].marker.explicitlyCleared?w||(w=g.slice(0,$)):w&&w.push(g[$]);return w?w.length?w:null:g}function V8e(g,w){var $=w["spans_"+g.id];if(!$)return null;for(var I=[],L=0;L<w.text.length;++L)I.push(W8e($[L]));return I}function aG(g,w){var $=V8e(g,w),I=Zl(g,w);if(!$)return I;if(!I)return $;for(var L=0;L<$.length;++L){var te=$[L],de=I[L];if(te&&de)e:for(var Ee=0;Ee<de.length;++Ee){for(var Ie=de[Ee],Be=0;Be<te.length;++Be)if(te[Be].marker==Ie.marker)continue e;te.push(Ie)}else de&&($[L]=de)}return $}function $0(g,w,$){for(var I=[],L=0;L<g.length;++L){var te=g[L];if(te.ranges){I.push($?ec.prototype.deepCopy.call(te):te);continue}var de=te.changes,Ee=[];I.push({changes:Ee});for(var Ie=0;Ie<de.length;++Ie){var Be=de[Ie],nt=void 0;if(Ee.push({from:Be.from,to:Be.to,text:Be.text}),w)for(var at in Be)(nt=at.match(/^spans_(\d+)$/))&&ie(w,Number(nt[1]))>-1&&(he(Ee)[at]=Be[at],delete Be[at])}}return I}function RI(g,w,$,I){if(I){var L=g.anchor;if($){var te=j(w,L)<0;te!=j($,L)<0?(L=w,w=$):te!=j(w,$)<0&&(w=$)}return new ki(L,w)}else return new ki($||w,w)}function K4(g,w,$,I,L){L==null&&(L=g.cm&&(g.cm.display.shift||g.extend)),us(g,new ec([RI(g.sel.primary(),w,$,L)],0),I)}function sG(g,w,$){for(var I=[],L=g.cm&&(g.cm.display.shift||g.extend),te=0;te<g.sel.ranges.length;te++)I[te]=RI(g.sel.ranges[te],w[te],null,L);var de=Xu(g.cm,I,g.sel.primIndex);us(g,de,$)}function AI(g,w,$,I){var L=g.sel.ranges.slice(0);L[w]=$,us(g,Xu(g.cm,L,g.sel.primIndex),I)}function lG(g,w,$,I){us(g,Hp(w,$),I)}function K8e(g,w,$){var I={ranges:w.ranges,update:function(L){this.ranges=[];for(var te=0;te<L.length;te++)this.ranges[te]=new ki(on(g,L[te].anchor),on(g,L[te].head))},origin:$&&$.origin};return ze(g,"beforeSelectionChange",g,I),g.cm&&ze(g.cm,"beforeSelectionChange",g.cm,I),I.ranges!=w.ranges?Xu(g.cm,I.ranges,I.ranges.length-1):w}function cG(g,w,$){var I=g.history.done,L=he(I);L&&L.ranges?(I[I.length-1]=w,q4(g,w,$)):us(g,w,$)}function us(g,w,$){q4(g,w,$),U8e(g,g.sel,g.cm?g.cm.curOp.id:NaN,$)}function q4(g,w,$){(Je(g,"beforeSelectionChange")||g.cm&&Je(g.cm,"beforeSelectionChange"))&&(w=K8e(g,w,$));var I=$&&$.bias||(j(w.primary().head,g.sel.primary().head)<0?-1:1);uG(g,fG(g,w,I,!0)),!($&&$.scroll===!1)&&g.cm&&g.cm.getOption("readOnly")!="nocursor"&&M0(g.cm)}function uG(g,w){w.equals(g.sel)||(g.sel=w,g.cm&&(g.cm.curOp.updateInput=1,g.cm.curOp.selectionChanged=!0,Ue(g.cm)),Ao(g,"cursorActivity",g))}function dG(g){uG(g,fG(g,g.sel,null,!1))}function fG(g,w,$,I){for(var L,te=0;te<w.ranges.length;te++){var de=w.ranges[te],Ee=w.ranges.length==g.sel.ranges.length&&g.sel.ranges[te],Ie=G4(g,de.anchor,Ee&&Ee.anchor,$,I),Be=G4(g,de.head,Ee&&Ee.head,$,I);(L||Ie!=de.anchor||Be!=de.head)&&(L||(L=w.ranges.slice(0,te)),L[te]=new ki(Ie,Be))}return L?Xu(g.cm,L,w.primIndex):w}function R0(g,w,$,I,L){var te=gt(g,w.line);if(te.markedSpans)for(var de=0;de<te.markedSpans.length;++de){var Ee=te.markedSpans[de],Ie=Ee.marker,Be="selectLeft"in Ie?!Ie.selectLeft:Ie.inclusiveLeft,nt="selectRight"in Ie?!Ie.selectRight:Ie.inclusiveRight;if((Ee.from==null||(Be?Ee.from<=w.ch:Ee.from<w.ch))&&(Ee.to==null||(nt?Ee.to>=w.ch:Ee.to>w.ch))){if(L&&(ze(Ie,"beforeCursorEnter"),Ie.explicitlyCleared))if(te.markedSpans){--de;continue}else break;if(!Ie.atomic)continue;if($){var at=Ie.find(I<0?1:-1),Et=void 0;if((I<0?nt:Be)&&(at=hG(g,at,-I,at&&at.line==w.line?te:null)),at&&at.line==w.line&&(Et=j(at,$))&&(I<0?Et<0:Et>0))return R0(g,at,w,I,L)}var yt=Ie.find(I<0?-1:1);return(I<0?Be:nt)&&(yt=hG(g,yt,I,yt.line==w.line?te:null)),yt?R0(g,yt,w,I,L):null}}return w}function G4(g,w,$,I,L){var te=I||1,de=R0(g,w,$,te,L)||!L&&R0(g,w,$,te,!0)||R0(g,w,$,-te,L)||!L&&R0(g,w,$,-te,!0);return de||(g.cantEdit=!0,O(g.first,0))}function hG(g,w,$,I){return $<0&&w.ch==0?w.line>g.first?on(g,O(w.line-1)):null:$>0&&w.ch==(I||gt(g,w.line)).text.length?w.line<g.first+g.size-1?O(w.line+1,0):null:new O(w.line,w.ch+$)}function pG(g){g.setSelection(O(g.firstLine(),0),O(g.lastLine()),ee)}function mG(g,w,$){var I={canceled:!1,from:w.from,to:w.to,text:w.text,origin:w.origin,cancel:function(){return I.canceled=!0}};return $&&(I.update=function(L,te,de,Ee){L&&(I.from=on(g,L)),te&&(I.to=on(g,te)),de&&(I.text=de),Ee!==void 0&&(I.origin=Ee)}),ze(g,"beforeChange",g,I),g.cm&&ze(g.cm,"beforeChange",g.cm,I),I.canceled?(g.cm&&(g.cm.curOp.updateInput=2),null):{from:I.from,to:I.to,text:I.text,origin:I.origin}}function A0(g,w,$){if(g.cm){if(!g.cm.curOp)return Ra(g.cm,A0)(g,w,$);if(g.cm.state.suppressEdits)return}if(!((Je(g,"beforeChange")||g.cm&&Je(g.cm,"beforeChange"))&&(w=mG(g,w,!0),!w))){var I=fr&&!$&&lh(g,w.from,w.to);if(I)for(var L=I.length-1;L>=0;--L)gG(g,{from:I[L].from,to:I[L].to,text:L?[""]:w.text,origin:w.origin});else gG(g,w)}}function gG(g,w){if(!(w.text.length==1&&w.text[0]==""&&j(w.from,w.to)==0)){var $=PI(g,w);iG(g,w,$,g.cm?g.cm.curOp.id:NaN),nx(g,w,$,Zl(g,w));var I=[];Up(g,function(L,te){!te&&ie(I,L.history)==-1&&(SG(L.history,w),I.push(L.history)),nx(L,w,null,Zl(L,w))})}}function Y4(g,w,$){var I=g.cm&&g.cm.state.suppressEdits;if(!(I&&!$)){for(var L=g.history,te,de=g.sel,Ee=w=="undo"?L.done:L.undone,Ie=w=="undo"?L.undone:L.done,Be=0;Be<Ee.length&&(te=Ee[Be],!($?te.ranges&&!te.equals(g.sel):!te.ranges));Be++);if(Be!=Ee.length){for(L.lastOrigin=L.lastSelOrigin=null;;)if(te=Ee.pop(),te.ranges){if(V4(te,Ie),$&&!te.equals(g.sel)){us(g,te,{clearRedo:!1});return}de=te}else if(I){Ee.push(te);return}else break;var nt=[];V4(de,Ie),Ie.push({changes:nt,generation:L.generation}),L.generation=te.generation||++L.maxGeneration;for(var at=Je(g,"beforeChange")||g.cm&&Je(g.cm,"beforeChange"),Et=function(dn){var En=te.changes[dn];if(En.origin=w,at&&!mG(g,En,!1))return Ee.length=0,{};nt.push($I(g,En));var Bn=dn?PI(g,En):he(Ee);nx(g,En,Bn,aG(g,En)),!dn&&g.cm&&g.cm.scrollIntoView({from:En.from,to:zp(En)});var Un=[];Up(g,function(Hn,Xn){!Xn&&ie(Un,Hn.history)==-1&&(SG(Hn.history,En),Un.push(Hn.history)),nx(Hn,En,null,aG(Hn,En))})},yt=te.changes.length-1;yt>=0;--yt){var rn=Et(yt);if(rn)return rn.v}}}}function vG(g,w){if(w!=0&&(g.first+=w,g.sel=new ec(_e(g.sel.ranges,function(L){return new ki(O(L.anchor.line+w,L.anchor.ch),O(L.head.line+w,L.head.ch))}),g.sel.primIndex),g.cm)){yn(g.cm,g.first,g.first-w,w);for(var $=g.cm.display,I=$.viewFrom;I<$.viewTo;I++)kn(g.cm,I,"gutter")}}function nx(g,w,$,I){if(g.cm&&!g.cm.curOp)return Ra(g.cm,nx)(g,w,$,I);if(w.to.line<g.first){vG(g,w.text.length-1-(w.to.line-w.from.line));return}if(!(w.from.line>g.lastLine())){if(w.from.line<g.first){var L=w.text.length-1-(g.first-w.from.line);vG(g,L),w={from:O(g.first,0),to:O(w.to.line+L,w.to.ch),text:[he(w.text)],origin:w.origin}}var te=g.lastLine();w.to.line>te&&(w={from:w.from,to:O(te,gt(g,te).text.length),text:[w.text[0]],origin:w.origin}),w.removed=Ve(g,w.from,w.to),$||($=PI(g,w)),g.cm?q8e(g.cm,w,I):II(g,w,I),q4(g,$,ee),g.cantEdit&&G4(g,O(g.firstLine(),0))&&(g.cantEdit=!1)}}function q8e(g,w,$){var I=g.doc,L=g.display,te=w.from,de=w.to,Ee=!1,Ie=te.line;g.options.lineWrapping||(Ie=Mt(ls(gt(I,te.line))),I.iter(Ie,de.line+1,function(yt){if(yt==L.maxLine)return Ee=!0,!0})),I.sel.contains(w.from,w.to)>-1&&Ue(g),II(I,w,$,en(g)),g.options.lineWrapping||(I.iter(Ie,te.line+w.text.length,function(yt){var rn=h0(yt);rn>L.maxLineLength&&(L.maxLine=yt,L.maxLineLength=rn,L.maxLineChanged=!0,Ee=!1)}),Ee&&(g.curOp.updateMaxLine=!0)),Di(I,te.line),JC(g,400);var Be=w.text.length-(de.line-te.line)-1;w.full?yn(g):te.line==de.line&&w.text.length==1&&!eG(g.doc,w)?kn(g,te.line,"text"):yn(g,te.line,de.line+1,Be);var nt=Je(g,"changes"),at=Je(g,"change");if(at||nt){var Et={from:te,to:de,text:w.text,removed:w.removed,origin:w.origin};at&&Ao(g,"change",g,Et),nt&&(g.curOp.changeObjs||(g.curOp.changeObjs=[])).push(Et)}g.display.selForContextMenu=null}function N0(g,w,$,I,L){var te;I||(I=$),j(I,$)<0&&(te=[I,$],$=te[0],I=te[1]),typeof w=="string"&&(w=g.splitLines(w)),A0(g,{from:$,to:I,text:w,origin:L})}function yG(g,w,$,I){$<g.line?g.line+=I:w<g.line&&(g.line=w,g.ch=0)}function bG(g,w,$,I){for(var L=0;L<g.length;++L){var te=g[L],de=!0;if(te.ranges){te.copied||(te=g[L]=te.deepCopy(),te.copied=!0);for(var Ee=0;Ee<te.ranges.length;Ee++)yG(te.ranges[Ee].anchor,w,$,I),yG(te.ranges[Ee].head,w,$,I);continue}for(var Ie=0;Ie<te.changes.length;++Ie){var Be=te.changes[Ie];if($<Be.from.line)Be.from=O(Be.from.line+I,Be.from.ch),Be.to=O(Be.to.line+I,Be.to.ch);else if(w<=Be.to.line){de=!1;break}}de||(g.splice(0,L+1),L=0)}}function SG(g,w){var $=w.from.line,I=w.to.line,L=w.text.length-(I-$)-1;bG(g.done,$,I,L),bG(g.undone,$,I,L)}function rx(g,w,$,I){var L=w,te=w;return typeof w=="number"?te=gt(g,Jt(g,w)):L=Mt(w),L==null?null:(I(te,L)&&g.cm&&kn(g.cm,L,$),te)}function ix(g){this.lines=g,this.parent=null;for(var w=0,$=0;$<g.length;++$)g[$].parent=this,w+=g[$].height;this.height=w}ix.prototype={chunkSize:function(){return this.lines.length},removeInner:function(g,w){for(var $=g,I=g+w;$<I;++$){var L=this.lines[$];this.height-=L.height,p0(L),Ao(L,"delete")}this.lines.splice(g,w)},collapse:function(g){g.push.apply(g,this.lines)},insertInner:function(g,w,$){this.height+=$,this.lines=this.lines.slice(0,g).concat(w).concat(this.lines.slice(g));for(var I=0;I<w.length;++I)w[I].parent=this},iterN:function(g,w,$){for(var I=g+w;g<I;++g)if($(this.lines[g]))return!0}};function ox(g){this.children=g;for(var w=0,$=0,I=0;I<g.length;++I){var L=g[I];w+=L.chunkSize(),$+=L.height,L.parent=this}this.size=w,this.height=$,this.parent=null}ox.prototype={chunkSize:function(){return this.size},removeInner:function(g,w){this.size-=w;for(var $=0;$<this.children.length;++$){var I=this.children[$],L=I.chunkSize();if(g<L){var te=Math.min(w,L-g),de=I.height;if(I.removeInner(g,te),this.height-=de-I.height,L==te&&(this.children.splice($--,1),I.parent=null),(w-=te)==0)break;g=0}else g-=L}if(this.size-w<25&&(this.children.length>1||!(this.children[0]instanceof ix))){var Ee=[];this.collapse(Ee),this.children=[new ix(Ee)],this.children[0].parent=this}},collapse:function(g){for(var w=0;w<this.children.length;++w)this.children[w].collapse(g)},insertInner:function(g,w,$){this.size+=w.length,this.height+=$;for(var I=0;I<this.children.length;++I){var L=this.children[I],te=L.chunkSize();if(g<=te){if(L.insertInner(g,w,$),L.lines&&L.lines.length>50){for(var de=L.lines.length%25+25,Ee=de;Ee<L.lines.length;){var Ie=new ix(L.lines.slice(Ee,Ee+=25));L.height-=Ie.height,this.children.splice(++I,0,Ie),Ie.parent=this}L.lines=L.lines.slice(0,de),this.maybeSpill()}break}g-=te}},maybeSpill:function(){if(!(this.children.length<=10)){var g=this;do{var w=g.children.splice(g.children.length-5,5),$=new ox(w);if(g.parent){g.size-=$.size,g.height-=$.height;var L=ie(g.parent.children,g);g.parent.children.splice(L+1,0,$)}else{var I=new ox(g.children);I.parent=g,g.children=[I,$],g=I}$.parent=g.parent}while(g.children.length>10);g.parent.maybeSpill()}},iterN:function(g,w,$){for(var I=0;I<this.children.length;++I){var L=this.children[I],te=L.chunkSize();if(g<te){var de=Math.min(w,te-g);if(L.iterN(g,de,$))return!0;if((w-=de)==0)break;g=0}else g-=te}}};var ax=function(g,w,$){if($)for(var I in $)$.hasOwnProperty(I)&&(this[I]=$[I]);this.doc=g,this.node=w};ax.prototype.clear=function(){var g=this.doc.cm,w=this.line.widgets,$=this.line,I=Mt($);if(!(I==null||!w)){for(var L=0;L<w.length;++L)w[L]==this&&w.splice(L--,1);w.length||($.widgets=null);var te=jp(this);mt($,Math.max(0,$.height-te)),g&&(xl(g,function(){CG(g,$,-te),kn(g,I,"widget")}),Ao(g,"lineWidgetCleared",g,this,I))}},ax.prototype.changed=function(){var g=this,w=this.height,$=this.doc.cm,I=this.line;this.height=null;var L=jp(this)-w;L&&(Yc(this.doc,I)||mt(I,I.height+L),$&&xl($,function(){$.curOp.forceUpdate=!0,CG($,I,L),Ao($,"lineWidgetChanged",$,g,Mt(I))}))},Ze(ax);function CG(g,w,$){Vu(w)<(g.curOp&&g.curOp.scrollTop||g.doc.scrollTop)&&wI(g,$)}function G8e(g,w,$,I){var L=new ax(g,$,I),te=g.cm;return te&&L.noHScroll&&(te.display.alignWidgets=!0),rx(g,w,"widget",function(de){var Ee=de.widgets||(de.widgets=[]);if(L.insertAt==null?Ee.push(L):Ee.splice(Math.min(Ee.length,Math.max(0,L.insertAt)),0,L),L.line=de,te&&!Yc(g,de)){var Ie=Vu(de)<g.scrollTop;mt(de,de.height+jp(L)),Ie&&wI(te,L.height),te.curOp.forceUpdate=!0}return!0}),te&&Ao(te,"lineWidgetAdded",te,L,typeof w=="number"?w:Mt(w)),L}var xG=0,Wp=function(g,w){this.lines=[],this.type=w,this.doc=g,this.id=++xG};Wp.prototype.clear=function(){if(!this.explicitlyCleared){var g=this.doc.cm,w=g&&!g.curOp;if(w&&Ng(g),Je(this,"clear")){var $=this.find();$&&Ao(this,"clear",$.from,$.to)}for(var I=null,L=null,te=0;te<this.lines.length;++te){var de=this.lines[te],Ee=jr(de.markedSpans,this);g&&!this.collapsed?kn(g,Mt(de),"text"):g&&(Ee.to!=null&&(L=Mt(de)),Ee.from!=null&&(I=Mt(de))),de.markedSpans=Ro(de.markedSpans,Ee),Ee.from==null&&this.collapsed&&!Yc(this.doc,de)&&g&&mt(de,It(g.display))}if(g&&this.collapsed&&!g.options.lineWrapping)for(var Ie=0;Ie<this.lines.length;++Ie){var Be=ls(this.lines[Ie]),nt=h0(Be);nt>g.display.maxLineLength&&(g.display.maxLine=Be,g.display.maxLineLength=nt,g.display.maxLineChanged=!0)}I!=null&&g&&this.collapsed&&yn(g,I,L+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,g&&dG(g.doc)),g&&Ao(g,"markerCleared",g,this,I,L),w&&Dg(g),this.parent&&this.parent.clear()}},Wp.prototype.find=function(g,w){g==null&&this.type=="bookmark"&&(g=1);for(var $,I,L=0;L<this.lines.length;++L){var te=this.lines[L],de=jr(te.markedSpans,this);if(de.from!=null&&($=O(w?te:Mt(te),de.from),g==-1))return $;if(de.to!=null&&(I=O(w?te:Mt(te),de.to),g==1))return I}return $&&{from:$,to:I}},Wp.prototype.changed=function(){var g=this,w=this.find(-1,!0),$=this,I=this.doc.cm;!w||!I||xl(I,function(){var L=w.line,te=Mt(w.line),de=Bp(I,te);if(de&&(sf(de),I.curOp.selectionChanged=I.curOp.forceUpdate=!0),I.curOp.updateMaxLine=!0,!Yc($.doc,L)&&$.height!=null){var Ee=$.height;$.height=null;var Ie=jp($)-Ee;Ie&&mt(L,L.height+Ie)}Ao(I,"markerChanged",I,g)})},Wp.prototype.attachLine=function(g){if(!this.lines.length&&this.doc.cm){var w=this.doc.cm.curOp;(!w.maybeHiddenMarkers||ie(w.maybeHiddenMarkers,this)==-1)&&(w.maybeUnhiddenMarkers||(w.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(g)},Wp.prototype.detachLine=function(g){if(this.lines.splice(ie(this.lines,g),1),!this.lines.length&&this.doc.cm){var w=this.doc.cm.curOp;(w.maybeHiddenMarkers||(w.maybeHiddenMarkers=[])).push(this)}},Ze(Wp);function D0(g,w,$,I,L){if(I&&I.shared)return Y8e(g,w,$,I,L);if(g.cm&&!g.cm.curOp)return Ra(g.cm,D0)(g,w,$,I,L);var te=new Wp(g,L),de=j(w,$);if(I&&B(I,te,!1),de>0||de==0&&te.clearWhenEmpty!==!1)return te;if(te.replacedWith&&(te.collapsed=!0,te.widgetNode=A("span",[te.replacedWith],"CodeMirror-widget"),I.handleMouseEvents||te.widgetNode.setAttribute("cm-ignore-events","true"),I.insertLeft&&(te.widgetNode.insertLeft=!0)),te.collapsed){if(O4(g,w.line,w,$,te)||w.line!=$.line&&O4(g,$.line,w,$,te))throw new Error("Inserting collapsed marker partially overlapping an existing one");Gn()}te.addToHistory&&iG(g,{from:w,to:$,origin:"markText"},g.sel,NaN);var Ee=w.line,Ie=g.cm,Be;if(g.iter(Ee,$.line+1,function(at){Ie&&te.collapsed&&!Ie.options.lineWrapping&&ls(at)==Ie.display.maxLine&&(Be=!0),te.collapsed&&Ee!=w.line&&mt(at,0),na(at,new ir(te,Ee==w.line?w.ch:null,Ee==$.line?$.ch:null),g.cm&&g.cm.curOp),++Ee}),te.collapsed&&g.iter(w.line,$.line+1,function(at){Yc(g,at)&&mt(at,0)}),te.clearOnEnter&&Ke(te,"beforeCursorEnter",function(){return te.clear()}),te.readOnly&&(zn(),(g.history.done.length||g.history.undone.length)&&g.clearHistory()),te.collapsed&&(te.id=++xG,te.atomic=!0),Ie){if(Be&&(Ie.curOp.updateMaxLine=!0),te.collapsed)yn(Ie,w.line,$.line+1);else if(te.className||te.startStyle||te.endStyle||te.css||te.attributes||te.title)for(var nt=w.line;nt<=$.line;nt++)kn(Ie,nt,"text");te.atomic&&dG(Ie.doc),Ao(Ie,"markerAdded",Ie,te)}return te}var sx=function(g,w){this.markers=g,this.primary=w;for(var $=0;$<g.length;++$)g[$].parent=this};sx.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var g=0;g<this.markers.length;++g)this.markers[g].clear();Ao(this,"clear")}},sx.prototype.find=function(g,w){return this.primary.find(g,w)},Ze(sx);function Y8e(g,w,$,I,L){I=B(I),I.shared=!1;var te=[D0(g,w,$,I,L)],de=te[0],Ee=I.widgetNode;return Up(g,function(Ie){Ee&&(I.widgetNode=Ee.cloneNode(!0)),te.push(D0(Ie,on(Ie,w),on(Ie,$),I,L));for(var Be=0;Be<Ie.linked.length;++Be)if(Ie.linked[Be].isParent)return;de=he(te)}),new sx(te,de)}function wG(g){return g.findMarks(O(g.first,0),g.clipPos(O(g.lastLine())),function(w){return w.parent})}function X8e(g,w){for(var $=0;$<w.length;$++){var I=w[$],L=I.find(),te=g.clipPos(L.from),de=g.clipPos(L.to);if(j(te,de)){var Ee=D0(g,te,de,I.primary,I.primary.type);I.markers.push(Ee),Ee.parent=I}}}function Q8e(g){for(var w=function(I){var L=g[I],te=[L.primary.doc];Up(L.primary.doc,function(Ie){return te.push(Ie)});for(var de=0;de<L.markers.length;de++){var Ee=L.markers[de];ie(te,Ee.doc)==-1&&(Ee.parent=null,L.markers.splice(de--,1))}},$=0;$<g.length;$++)w($)}var Z8e=0,Qs=function(g,w,$,I,L){if(!(this instanceof Qs))return new Qs(g,w,$,I,L);$==null&&($=0),ox.call(this,[new ix([new rf("",null)])]),this.first=$,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=$;var te=O($,0);this.sel=Hp(te),this.history=new W4(null),this.id=++Z8e,this.modeOption=w,this.lineSep=I,this.direction=L=="rtl"?"rtl":"ltr",this.extend=!1,typeof g=="string"&&(g=this.splitLines(g)),II(this,{from:te,to:te,text:g}),us(this,Hp(te),ee)};Qs.prototype=we(ox.prototype,{constructor:Qs,iter:function(g,w,$){$?this.iterN(g-this.first,w-g,$):this.iterN(this.first,this.first+this.size,g)},insert:function(g,w){for(var $=0,I=0;I<w.length;++I)$+=w[I].height;this.insertInner(g-this.first,w,$)},remove:function(g,w){this.removeInner(g-this.first,w)},getValue:function(g){var w=Yt(this,this.first,this.first+this.size);return g===!1?w:w.join(g||this.lineSeparator())},setValue:Aa(function(g){var w=O(this.first,0),$=this.first+this.size-1;A0(this,{from:w,to:O($,gt(this,$).text.length),text:this.splitLines(g),origin:"setValue",full:!0},!0),this.cm&&YC(this.cm,0,0),us(this,Hp(w),ee)}),replaceRange:function(g,w,$,I){w=on(this,w),$=$?on(this,$):w,N0(this,g,w,$,I)},getRange:function(g,w,$){var I=Ve(this,on(this,g),on(this,w));return $===!1?I:$===""?I.join(""):I.join($||this.lineSeparator())},getLine:function(g){var w=this.getLineHandle(g);return w&&w.text},getLineHandle:function(g){if(Dn(this,g))return gt(this,g)},getLineNumber:function(g){return Mt(g)},getLineHandleVisualStart:function(g){return typeof g=="number"&&(g=gt(this,g)),ls(g)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(g){return on(this,g)},getCursor:function(g){var w=this.sel.primary(),$;return g==null||g=="head"?$=w.head:g=="anchor"?$=w.anchor:g=="end"||g=="to"||g===!1?$=w.to():$=w.from(),$},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Aa(function(g,w,$){lG(this,on(this,typeof g=="number"?O(g,w||0):g),null,$)}),setSelection:Aa(function(g,w,$){lG(this,on(this,g),on(this,w||g),$)}),extendSelection:Aa(function(g,w,$){K4(this,on(this,g),w&&on(this,w),$)}),extendSelections:Aa(function(g,w){sG(this,ni(this,g),w)}),extendSelectionsBy:Aa(function(g,w){var $=_e(this.sel.ranges,g);sG(this,ni(this,$),w)}),setSelections:Aa(function(g,w,$){if(g.length){for(var I=[],L=0;L<g.length;L++)I[L]=new ki(on(this,g[L].anchor),on(this,g[L].head||g[L].anchor));w==null&&(w=Math.min(g.length-1,this.sel.primIndex)),us(this,Xu(this.cm,I,w),$)}}),addSelection:Aa(function(g,w,$){var I=this.sel.ranges.slice(0);I.push(new ki(on(this,g),on(this,w||g))),us(this,Xu(this.cm,I,I.length-1),$)}),getSelection:function(g){for(var w=this.sel.ranges,$,I=0;I<w.length;I++){var L=Ve(this,w[I].from(),w[I].to());$=$?$.concat(L):L}return g===!1?$:$.join(g||this.lineSeparator())},getSelections:function(g){for(var w=[],$=this.sel.ranges,I=0;I<$.length;I++){var L=Ve(this,$[I].from(),$[I].to());g!==!1&&(L=L.join(g||this.lineSeparator())),w[I]=L}return w},replaceSelection:function(g,w,$){for(var I=[],L=0;L<this.sel.ranges.length;L++)I[L]=g;this.replaceSelections(I,w,$||"+input")},replaceSelections:Aa(function(g,w,$){for(var I=[],L=this.sel,te=0;te<L.ranges.length;te++){var de=L.ranges[te];I[te]={from:de.from(),to:de.to(),text:this.splitLines(g[te]),origin:$}}for(var Ee=w&&w!="end"&&j8e(this,I,w),Ie=I.length-1;Ie>=0;Ie--)A0(this,I[Ie]);Ee?cG(this,Ee):this.cm&&M0(this.cm)}),undo:Aa(function(){Y4(this,"undo")}),redo:Aa(function(){Y4(this,"redo")}),undoSelection:Aa(function(){Y4(this,"undo",!0)}),redoSelection:Aa(function(){Y4(this,"redo",!0)}),setExtending:function(g){this.extend=g},getExtending:function(){return this.extend},historySize:function(){for(var g=this.history,w=0,$=0,I=0;I<g.done.length;I++)g.done[I].ranges||++w;for(var L=0;L<g.undone.length;L++)g.undone[L].ranges||++$;return{undo:w,redo:$}},clearHistory:function(){var g=this;this.history=new W4(this.history),Up(this,function(w){return w.history=g.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(g){return g&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(g){return this.history.generation==(g||this.cleanGeneration)},getHistory:function(){return{done:$0(this.history.done),undone:$0(this.history.undone)}},setHistory:function(g){var w=this.history=new W4(this.history);w.done=$0(g.done.slice(0),null,!0),w.undone=$0(g.undone.slice(0),null,!0)},setGutterMarker:Aa(function(g,w,$){return rx(this,g,"gutter",function(I){var L=I.gutterMarkers||(I.gutterMarkers={});return L[w]=$,!$&&Te(L)&&(I.gutterMarkers=null),!0})}),clearGutter:Aa(function(g){var w=this;this.iter(function($){$.gutterMarkers&&$.gutterMarkers[g]&&rx(w,$,"gutter",function(){return $.gutterMarkers[g]=null,Te($.gutterMarkers)&&($.gutterMarkers=null),!0})})}),lineInfo:function(g){var w;if(typeof g=="number"){if(!Dn(this,g)||(w=g,g=gt(this,g),!g))return null}else if(w=Mt(g),w==null)return null;return{line:w,handle:g,text:g.text,gutterMarkers:g.gutterMarkers,textClass:g.textClass,bgClass:g.bgClass,wrapClass:g.wrapClass,widgets:g.widgets}},addLineClass:Aa(function(g,w,$){return rx(this,g,w=="gutter"?"gutter":"class",function(I){var L=w=="text"?"textClass":w=="background"?"bgClass":w=="gutter"?"gutterClass":"wrapClass";if(!I[L])I[L]=$;else{if(k($).test(I[L]))return!1;I[L]+=" "+$}return!0})}),removeLineClass:Aa(function(g,w,$){return rx(this,g,w=="gutter"?"gutter":"class",function(I){var L=w=="text"?"textClass":w=="background"?"bgClass":w=="gutter"?"gutterClass":"wrapClass",te=I[L];if(te)if($==null)I[L]=null;else{var de=te.match(k($));if(!de)return!1;var Ee=de.index+de[0].length;I[L]=te.slice(0,de.index)+(!de.index||Ee==te.length?"":" ")+te.slice(Ee)||null}else return!1;return!0})}),addLineWidget:Aa(function(g,w,$){return G8e(this,g,w,$)}),removeLineWidget:function(g){g.clear()},markText:function(g,w,$){return D0(this,on(this,g),on(this,w),$,$&&$.type||"range")},setBookmark:function(g,w){var $={replacedWith:w&&(w.nodeType==null?w.widget:w),insertLeft:w&&w.insertLeft,clearWhenEmpty:!1,shared:w&&w.shared,handleMouseEvents:w&&w.handleMouseEvents};return g=on(this,g),D0(this,g,g,$,"bookmark")},findMarksAt:function(g){g=on(this,g);var w=[],$=gt(this,g.line).markedSpans;if($)for(var I=0;I<$.length;++I){var L=$[I];(L.from==null||L.from<=g.ch)&&(L.to==null||L.to>=g.ch)&&w.push(L.marker.parent||L.marker)}return w},findMarks:function(g,w,$){g=on(this,g),w=on(this,w);var I=[],L=g.line;return this.iter(g.line,w.line+1,function(te){var de=te.markedSpans;if(de)for(var Ee=0;Ee<de.length;Ee++){var Ie=de[Ee];!(Ie.to!=null&&L==g.line&&g.ch>=Ie.to||Ie.from==null&&L!=g.line||Ie.from!=null&&L==w.line&&Ie.from>=w.ch)&&(!$||$(Ie.marker))&&I.push(Ie.marker.parent||Ie.marker)}++L}),I},getAllMarks:function(){var g=[];return this.iter(function(w){var $=w.markedSpans;if($)for(var I=0;I<$.length;++I)$[I].from!=null&&g.push($[I].marker)}),g},posFromIndex:function(g){var w,$=this.first,I=this.lineSeparator().length;return this.iter(function(L){var te=L.text.length+I;if(te>g)return w=g,!0;g-=te,++$}),on(this,O($,w))},indexFromPos:function(g){g=on(this,g);var w=g.ch;if(g.line<this.first||g.ch<0)return 0;var $=this.lineSeparator().length;return this.iter(this.first,g.line,function(I){w+=I.text.length+$}),w},copy:function(g){var w=new Qs(Yt(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return w.scrollTop=this.scrollTop,w.scrollLeft=this.scrollLeft,w.sel=this.sel,w.extend=!1,g&&(w.history.undoDepth=this.history.undoDepth,w.setHistory(this.getHistory())),w},linkedDoc:function(g){g||(g={});var w=this.first,$=this.first+this.size;g.from!=null&&g.from>w&&(w=g.from),g.to!=null&&g.to<$&&($=g.to);var I=new Qs(Yt(this,w,$),g.mode||this.modeOption,w,this.lineSep,this.direction);return g.sharedHist&&(I.history=this.history),(this.linked||(this.linked=[])).push({doc:I,sharedHist:g.sharedHist}),I.linked=[{doc:this,isParent:!0,sharedHist:g.sharedHist}],X8e(I,wG(this)),I},unlinkDoc:function(g){if(g instanceof lo&&(g=g.doc),this.linked)for(var w=0;w<this.linked.length;++w){var $=this.linked[w];if($.doc==g){this.linked.splice(w,1),g.unlinkDoc(this),Q8e(wG(this));break}}if(g.history==this.history){var I=[g.id];Up(g,function(L){return I.push(L.id)},!0),g.history=new W4(null),g.history.done=$0(this.history.done,I),g.history.undone=$0(this.history.undone,I)}},iterLinkedDocs:function(g){Up(this,g)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(g){return this.lineSep?g.split(this.lineSep):ot(g)},lineSeparator:function(){return this.lineSep||`
|
||
`},setDirection:Aa(function(g){g!="rtl"&&(g="ltr"),g!=this.direction&&(this.direction=g,this.iter(function(w){return w.order=null}),this.cm&&B8e(this.cm))})}),Qs.prototype.eachLine=Qs.prototype.iter;var _G=0;function J8e(g){var w=this;if(EG(w),!(Ye(w,g)||Ku(w.display,g))){rt(g),a&&(_G=+new Date);var $=_n(w,g,!0),I=g.dataTransfer.files;if(!(!$||w.isReadOnly()))if(I&&I.length&&window.FileReader&&window.File)for(var L=I.length,te=Array(L),de=0,Ee=function(){++de==L&&Ra(w,function(){$=on(w.doc,$);var yt={from:$,to:$,text:w.doc.splitLines(te.filter(function(rn){return rn!=null}).join(w.doc.lineSeparator())),origin:"paste"};A0(w.doc,yt),cG(w.doc,Hp(on(w.doc,$),on(w.doc,zp(yt))))})()},Ie=function(yt,rn){if(w.options.allowDropFileTypes&&ie(w.options.allowDropFileTypes,yt.type)==-1){Ee();return}var dn=new FileReader;dn.onerror=function(){return Ee()},dn.onload=function(){var En=dn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(En)){Ee();return}te[rn]=En,Ee()},dn.readAsText(yt)},Be=0;Be<I.length;Be++)Ie(I[Be],Be);else{if(w.state.draggingText&&w.doc.sel.contains($)>-1){w.state.draggingText(g),setTimeout(function(){return w.display.input.focus()},20);return}try{var nt=g.dataTransfer.getData("Text");if(nt){var at;if(w.state.draggingText&&!w.state.draggingText.copy&&(at=w.listSelections()),q4(w.doc,Hp($,$)),at)for(var Et=0;Et<at.length;++Et)N0(w.doc,"",at[Et].anchor,at[Et].head,"drag");w.replaceSelection(nt,"around","paste"),w.display.input.focus()}}catch{}}}}function e3e(g,w){if(a&&(!g.state.draggingText||+new Date-_G<100)){Ot(w);return}if(!(Ye(g,w)||Ku(g.display,w))&&(w.dataTransfer.setData("Text",g.getSelection()),w.dataTransfer.effectAllowed="copyMove",w.dataTransfer.setDragImage&&!h)){var $=R("img",null,null,"position: fixed; left: 0; top: 0;");$.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",d&&($.width=$.height=1,g.display.wrapper.appendChild($),$._top=$.offsetTop),w.dataTransfer.setDragImage($,0,0),d&&$.parentNode.removeChild($)}}function t3e(g,w){var $=_n(g,w);if($){var I=document.createDocumentFragment();cs(g,$,I),g.display.dragCursor||(g.display.dragCursor=R("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),g.display.lineSpace.insertBefore(g.display.dragCursor,g.display.cursorDiv)),D(g.display.dragCursor,I)}}function EG(g){g.display.dragCursor&&(g.display.lineSpace.removeChild(g.display.dragCursor),g.display.dragCursor=null)}function TG(g){if(document.getElementsByClassName){for(var w=document.getElementsByClassName("CodeMirror"),$=[],I=0;I<w.length;I++){var L=w[I].CodeMirror;L&&$.push(L)}$.length&&$[0].operation(function(){for(var te=0;te<$.length;te++)g($[te])})}}var kG=!1;function n3e(){kG||(r3e(),kG=!0)}function r3e(){var g;Ke(window,"resize",function(){g==null&&(g=setTimeout(function(){g=null,TG(i3e)},100))}),Ke(window,"blur",function(){return TG(lf)})}function i3e(g){var w=g.display;w.cachedCharWidth=w.cachedTextHeight=w.cachedPaddingH=null,w.scrollbarsClipped=!1,g.setSize()}for(var Vp={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},lx=0;lx<10;lx++)Vp[lx+48]=Vp[lx+96]=String(lx);for(var X4=65;X4<=90;X4++)Vp[X4]=String.fromCharCode(X4);for(var cx=1;cx<=12;cx++)Vp[cx+111]=Vp[cx+63235]="F"+cx;var ph={};ph.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},ph.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},ph.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},ph.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},ph.default=b?ph.macDefault:ph.pcDefault;function o3e(g){var w=g.split(/-(?!$)/);g=w[w.length-1];for(var $,I,L,te,de=0;de<w.length-1;de++){var Ee=w[de];if(/^(cmd|meta|m)$/i.test(Ee))te=!0;else if(/^a(lt)?$/i.test(Ee))$=!0;else if(/^(c|ctrl|control)$/i.test(Ee))I=!0;else if(/^s(hift)?$/i.test(Ee))L=!0;else throw new Error("Unrecognized modifier name: "+Ee)}return $&&(g="Alt-"+g),I&&(g="Ctrl-"+g),te&&(g="Cmd-"+g),L&&(g="Shift-"+g),g}function a3e(g){var w={};for(var $ in g)if(g.hasOwnProperty($)){var I=g[$];if(/^(name|fallthrough|(de|at)tach)$/.test($))continue;if(I=="..."){delete g[$];continue}for(var L=_e($.split(" "),o3e),te=0;te<L.length;te++){var de=void 0,Ee=void 0;te==L.length-1?(Ee=L.join(" "),de=I):(Ee=L.slice(0,te+1).join(" "),de="...");var Ie=w[Ee];if(!Ie)w[Ee]=de;else if(Ie!=de)throw new Error("Inconsistent bindings for "+Ee)}delete g[$]}for(var Be in w)g[Be]=w[Be];return g}function L0(g,w,$,I){w=Q4(w);var L=w.call?w.call(g,I):w[g];if(L===!1)return"nothing";if(L==="...")return"multi";if(L!=null&&$(L))return"handled";if(w.fallthrough){if(Object.prototype.toString.call(w.fallthrough)!="[object Array]")return L0(g,w.fallthrough,$,I);for(var te=0;te<w.fallthrough.length;te++){var de=L0(g,w.fallthrough[te],$,I);if(de)return de}}}function OG(g){var w=typeof g=="string"?g:Vp[g.keyCode];return w=="Ctrl"||w=="Alt"||w=="Shift"||w=="Mod"}function PG(g,w,$){var I=g;return w.altKey&&I!="Alt"&&(g="Alt-"+g),(x?w.metaKey:w.ctrlKey)&&I!="Ctrl"&&(g="Ctrl-"+g),(x?w.ctrlKey:w.metaKey)&&I!="Mod"&&(g="Cmd-"+g),!$&&w.shiftKey&&I!="Shift"&&(g="Shift-"+g),g}function MG(g,w){if(d&&g.keyCode==34&&g.char)return!1;var $=Vp[g.keyCode];return $==null||g.altGraphKey?!1:(g.keyCode==3&&g.code&&($=g.code),PG($,g,w))}function Q4(g){return typeof g=="string"?ph[g]:g}function F0(g,w){for(var $=g.doc.sel.ranges,I=[],L=0;L<$.length;L++){for(var te=w($[L]);I.length&&j(te.from,he(I).to)<=0;){var de=I.pop();if(j(de.from,te.from)<0){te.from=de.from;break}}I.push(te)}xl(g,function(){for(var Ee=I.length-1;Ee>=0;Ee--)N0(g.doc,"",I[Ee].from,I[Ee].to,"+delete");M0(g)})}function NI(g,w,$){var I=Ne(g.text,w+$,$);return I<0||I>g.text.length?null:I}function DI(g,w,$){var I=NI(g,w.ch,$);return I==null?null:new O(w.line,I,$<0?"after":"before")}function LI(g,w,$,I,L){if(g){w.doc.direction=="rtl"&&(L=-L);var te=Oe($,w.doc.direction);if(te){var de=L<0?he(te):te[0],Ee=L<0==(de.level==1),Ie=Ee?"after":"before",Be;if(de.level>0||w.doc.direction=="rtl"){var nt=Os(w,$);Be=L<0?$.text.length-1:0;var at=Ti(w,nt,Be).top;Be=We(function(Et){return Ti(w,nt,Et).top==at},L<0==(de.level==1)?de.from:de.to-1,Be),Ie=="before"&&(Be=NI($,Be,1))}else Be=L<0?de.to:de.from;return new O(I,Be,Ie)}}return new O(I,L<0?$.text.length:0,L<0?"before":"after")}function s3e(g,w,$,I){var L=Oe(w,g.doc.direction);if(!L)return DI(w,$,I);$.ch>=w.text.length?($.ch=w.text.length,$.sticky="before"):$.ch<=0&&($.ch=0,$.sticky="after");var te=J(L,$.ch,$.sticky),de=L[te];if(g.doc.direction=="ltr"&&de.level%2==0&&(I>0?de.to>$.ch:de.from<$.ch))return DI(w,$,I);var Ee=function(Bn,Un){return NI(w,Bn instanceof O?Bn.ch:Bn,Un)},Ie,Be=function(Bn){return g.options.lineWrapping?(Ie=Ie||Os(g,w),Ct(g,w,Ie,Bn)):{begin:0,end:w.text.length}},nt=Be($.sticky=="before"?Ee($,-1):$.ch);if(g.doc.direction=="rtl"||de.level==1){var at=de.level==1==I<0,Et=Ee($,at?1:-1);if(Et!=null&&(at?Et<=de.to&&Et<=nt.end:Et>=de.from&&Et>=nt.begin)){var yt=at?"before":"after";return new O($.line,Et,yt)}}var rn=function(Bn,Un,Hn){for(var Xn=function(Vi,Na){return Na?new O($.line,Ee(Vi,1),"before"):new O($.line,Vi,"after")};Bn>=0&&Bn<L.length;Bn+=Un){var yr=L[Bn],mr=Un>0==(yr.level!=1),Kr=mr?Hn.begin:Ee(Hn.end,-1);if(yr.from<=Kr&&Kr<yr.to||(Kr=mr?yr.from:Ee(yr.to,-1),Hn.begin<=Kr&&Kr<Hn.end))return Xn(Kr,mr)}},dn=rn(te+I,I,nt);if(dn)return dn;var En=I>0?nt.end:Ee(nt.begin,-1);return En!=null&&!(I>0&&En==w.text.length)&&(dn=rn(I>0?0:L.length-1,I,Be(En)),dn)?dn:null}var ux={selectAll:pG,singleSelection:function(g){return g.setSelection(g.getCursor("anchor"),g.getCursor("head"),ee)},killLine:function(g){return F0(g,function(w){if(w.empty()){var $=gt(g.doc,w.head.line).text.length;return w.head.ch==$&&w.head.line<g.lastLine()?{from:w.head,to:O(w.head.line+1,0)}:{from:w.head,to:O(w.head.line,$)}}else return{from:w.from(),to:w.to()}})},deleteLine:function(g){return F0(g,function(w){return{from:O(w.from().line,0),to:on(g.doc,O(w.to().line+1,0))}})},delLineLeft:function(g){return F0(g,function(w){return{from:O(w.from().line,0),to:w.from()}})},delWrappedLineLeft:function(g){return F0(g,function(w){var $=g.charCoords(w.head,"div").top+5,I=g.coordsChar({left:0,top:$},"div");return{from:I,to:w.from()}})},delWrappedLineRight:function(g){return F0(g,function(w){var $=g.charCoords(w.head,"div").top+5,I=g.coordsChar({left:g.display.lineDiv.offsetWidth+100,top:$},"div");return{from:w.from(),to:I}})},undo:function(g){return g.undo()},redo:function(g){return g.redo()},undoSelection:function(g){return g.undoSelection()},redoSelection:function(g){return g.redoSelection()},goDocStart:function(g){return g.extendSelection(O(g.firstLine(),0))},goDocEnd:function(g){return g.extendSelection(O(g.lastLine()))},goLineStart:function(g){return g.extendSelectionsBy(function(w){return IG(g,w.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(g){return g.extendSelectionsBy(function(w){return $G(g,w.head)},{origin:"+move",bias:1})},goLineEnd:function(g){return g.extendSelectionsBy(function(w){return l3e(g,w.head.line)},{origin:"+move",bias:-1})},goLineRight:function(g){return g.extendSelectionsBy(function(w){var $=g.cursorCoords(w.head,"div").top+5;return g.coordsChar({left:g.display.lineDiv.offsetWidth+100,top:$},"div")},ue)},goLineLeft:function(g){return g.extendSelectionsBy(function(w){var $=g.cursorCoords(w.head,"div").top+5;return g.coordsChar({left:0,top:$},"div")},ue)},goLineLeftSmart:function(g){return g.extendSelectionsBy(function(w){var $=g.cursorCoords(w.head,"div").top+5,I=g.coordsChar({left:0,top:$},"div");return I.ch<g.getLine(I.line).search(/\S/)?$G(g,w.head):I},ue)},goLineUp:function(g){return g.moveV(-1,"line")},goLineDown:function(g){return g.moveV(1,"line")},goPageUp:function(g){return g.moveV(-1,"page")},goPageDown:function(g){return g.moveV(1,"page")},goCharLeft:function(g){return g.moveH(-1,"char")},goCharRight:function(g){return g.moveH(1,"char")},goColumnLeft:function(g){return g.moveH(-1,"column")},goColumnRight:function(g){return g.moveH(1,"column")},goWordLeft:function(g){return g.moveH(-1,"word")},goGroupRight:function(g){return g.moveH(1,"group")},goGroupLeft:function(g){return g.moveH(-1,"group")},goWordRight:function(g){return g.moveH(1,"word")},delCharBefore:function(g){return g.deleteH(-1,"codepoint")},delCharAfter:function(g){return g.deleteH(1,"char")},delWordBefore:function(g){return g.deleteH(-1,"word")},delWordAfter:function(g){return g.deleteH(1,"word")},delGroupBefore:function(g){return g.deleteH(-1,"group")},delGroupAfter:function(g){return g.deleteH(1,"group")},indentAuto:function(g){return g.indentSelection("smart")},indentMore:function(g){return g.indentSelection("add")},indentLess:function(g){return g.indentSelection("subtract")},insertTab:function(g){return g.replaceSelection(" ")},insertSoftTab:function(g){for(var w=[],$=g.listSelections(),I=g.options.tabSize,L=0;L<$.length;L++){var te=$[L].from(),de=V(g.getLine(te.line),te.ch,I);w.push(pe(I-de%I))}g.replaceSelections(w)},defaultTab:function(g){g.somethingSelected()?g.indentSelection("add"):g.execCommand("insertTab")},transposeChars:function(g){return xl(g,function(){for(var w=g.listSelections(),$=[],I=0;I<w.length;I++)if(w[I].empty()){var L=w[I].head,te=gt(g.doc,L.line).text;if(te){if(L.ch==te.length&&(L=new O(L.line,L.ch-1)),L.ch>0)L=new O(L.line,L.ch+1),g.replaceRange(te.charAt(L.ch-1)+te.charAt(L.ch-2),O(L.line,L.ch-2),L,"+transpose");else if(L.line>g.doc.first){var de=gt(g.doc,L.line-1).text;de&&(L=new O(L.line,1),g.replaceRange(te.charAt(0)+g.doc.lineSeparator()+de.charAt(de.length-1),O(L.line-1,de.length-1),L,"+transpose"))}}$.push(new ki(L,L))}g.setSelections($)})},newlineAndIndent:function(g){return xl(g,function(){for(var w=g.listSelections(),$=w.length-1;$>=0;$--)g.replaceRange(g.doc.lineSeparator(),w[$].anchor,w[$].head,"+input");w=g.listSelections();for(var I=0;I<w.length;I++)g.indentLine(w[I].from().line,null,!0);M0(g)})},openLine:function(g){return g.replaceSelection(`
|
||
`,"start")},toggleOverwrite:function(g){return g.toggleOverwrite()}};function IG(g,w){var $=gt(g.doc,w),I=ls($);return I!=$&&(w=Mt(I)),LI(!0,g,I,w,1)}function l3e(g,w){var $=gt(g.doc,w),I=gI($);return I!=$&&(w=Mt(I)),LI(!0,g,$,w,-1)}function $G(g,w){var $=IG(g,w.line),I=gt(g.doc,$.line),L=Oe(I,g.doc.direction);if(!L||L[0].level==0){var te=Math.max($.ch,I.text.search(/\S/)),de=w.line==$.line&&w.ch<=te&&w.ch;return O($.line,de?0:te,$.sticky)}return $}function Z4(g,w,$){if(typeof w=="string"&&(w=ux[w],!w))return!1;g.display.input.ensurePolled();var I=g.display.shift,L=!1;try{g.isReadOnly()&&(g.state.suppressEdits=!0),$&&(g.display.shift=!1),L=w(g)!=fe}finally{g.display.shift=I,g.state.suppressEdits=!1}return L}function c3e(g,w,$){for(var I=0;I<g.state.keyMaps.length;I++){var L=L0(w,g.state.keyMaps[I],$,g);if(L)return L}return g.options.extraKeys&&L0(w,g.options.extraKeys,$,g)||L0(w,g.options.keyMap,$,g)}var u3e=new G;function dx(g,w,$,I){var L=g.state.keySeq;if(L){if(OG(w))return"handled";if(/\'$/.test(w)?g.state.keySeq=null:u3e.set(50,function(){g.state.keySeq==L&&(g.state.keySeq=null,g.display.input.reset())}),RG(g,L+" "+w,$,I))return!0}return RG(g,w,$,I)}function RG(g,w,$,I){var L=c3e(g,w,I);return L=="multi"&&(g.state.keySeq=w),L=="handled"&&Ao(g,"keyHandled",g,w,$),(L=="handled"||L=="multi")&&(rt($),ya(g)),!!L}function AG(g,w){var $=MG(w,!0);return $?w.shiftKey&&!g.state.keySeq?dx(g,"Shift-"+$,w,function(I){return Z4(g,I,!0)})||dx(g,$,w,function(I){if(typeof I=="string"?/^go[A-Z]/.test(I):I.motion)return Z4(g,I)}):dx(g,$,w,function(I){return Z4(g,I)}):!1}function d3e(g,w,$){return dx(g,"'"+$+"'",w,function(I){return Z4(g,I,!0)})}var FI=null;function NG(g){var w=this;if(!(g.target&&g.target!=w.display.input.getField())&&(w.curOp.focus=z(),!Ye(w,g))){a&&s<11&&g.keyCode==27&&(g.returnValue=!1);var $=g.keyCode;w.display.shift=$==16||g.shiftKey;var I=AG(w,g);d&&(FI=I?$:null,!I&&$==88&&!ut&&(b?g.metaKey:g.ctrlKey)&&w.replaceSelection("",null,"cut")),n&&!b&&!I&&$==46&&g.shiftKey&&!g.ctrlKey&&document.execCommand&&document.execCommand("cut"),$==18&&!/\bCodeMirror-crosshair\b/.test(w.display.lineDiv.className)&&f3e(w)}}function f3e(g){var w=g.display.lineDiv;W(w,"CodeMirror-crosshair");function $(I){(I.keyCode==18||!I.altKey)&&(M(w,"CodeMirror-crosshair"),se(document,"keyup",$),se(document,"mouseover",$))}Ke(document,"keyup",$),Ke(document,"mouseover",$)}function DG(g){g.keyCode==16&&(this.doc.sel.shift=!1),Ye(this,g)}function LG(g){var w=this;if(!(g.target&&g.target!=w.display.input.getField())&&!(Ku(w.display,g)||Ye(w,g)||g.ctrlKey&&!g.altKey||b&&g.metaKey)){var $=g.keyCode,I=g.charCode;if(d&&$==FI){FI=null,rt(g);return}if(!(d&&(!g.which||g.which<10)&&AG(w,g))){var L=String.fromCharCode(I??$);L!="\b"&&(d3e(w,g,L)||w.display.input.onKeyPress(g))}}}var h3e=400,jI=function(g,w,$){this.time=g,this.pos=w,this.button=$};jI.prototype.compare=function(g,w,$){return this.time+h3e>g&&j(w,this.pos)==0&&$==this.button};var fx,hx;function p3e(g,w){var $=+new Date;return hx&&hx.compare($,g,w)?(fx=hx=null,"triple"):fx&&fx.compare($,g,w)?(hx=new jI($,g,w),fx=null,"double"):(fx=new jI($,g,w),hx=null,"single")}function FG(g){var w=this,$=w.display;if(!(Ye(w,g)||$.activeTouch&&$.input.supportsTouch())){if($.input.ensurePolled(),$.shift=g.shiftKey,Ku($,g)){l||($.scroller.draggable=!1,setTimeout(function(){return $.scroller.draggable=!0},100));return}if(!BI(w,g)){var I=_n(w,g),L=Dt(g),te=I?p3e(I,L):"single";window.focus(),L==1&&w.state.selectingText&&w.state.selectingText(g),!(I&&m3e(w,L,I,te,g))&&(L==1?I?v3e(w,I,te,g):Bt(g)==$.scroller&&rt(g):L==2?(I&&K4(w.doc,I),setTimeout(function(){return $.input.focus()},20)):L==3&&(E?w.display.input.onContextMenu(g):$a(w)))}}}function m3e(g,w,$,I,L){var te="Click";return I=="double"?te="Double"+te:I=="triple"&&(te="Triple"+te),te=(w==1?"Left":w==2?"Middle":"Right")+te,dx(g,PG(te,L),L,function(de){if(typeof de=="string"&&(de=ux[de]),!de)return!1;var Ee=!1;try{g.isReadOnly()&&(g.state.suppressEdits=!0),Ee=de(g,$)!=fe}finally{g.state.suppressEdits=!1}return Ee})}function g3e(g,w,$){var I=g.getOption("configureMouse"),L=I?I(g,w,$):{};if(L.unit==null){var te=C?$.shiftKey&&$.metaKey:$.altKey;L.unit=te?"rectangle":w=="single"?"char":w=="double"?"word":"line"}return(L.extend==null||g.doc.extend)&&(L.extend=g.doc.extend||$.shiftKey),L.addNew==null&&(L.addNew=b?$.metaKey:$.ctrlKey),L.moveOnDrag==null&&(L.moveOnDrag=!(b?$.altKey:$.ctrlKey)),L}function v3e(g,w,$,I){a?setTimeout(N($g,g),0):g.curOp.focus=z();var L=g3e(g,$,I),te=g.doc.sel,de;g.options.dragDrop&&an&&!g.isReadOnly()&&$=="single"&&(de=te.contains(w))>-1&&(j((de=te.ranges[de]).from(),w)<0||w.xRel>0)&&(j(de.to(),w)>0||w.xRel<0)?y3e(g,I,w,L):b3e(g,I,w,L)}function y3e(g,w,$,I){var L=g.display,te=!1,de=Ra(g,function(Be){l&&(L.scroller.draggable=!1),g.state.draggingText=!1,g.state.delayingBlurEvent&&(g.hasFocus()?g.state.delayingBlurEvent=!1:$a(g)),se(L.wrapper.ownerDocument,"mouseup",de),se(L.wrapper.ownerDocument,"mousemove",Ee),se(L.scroller,"dragstart",Ie),se(L.scroller,"drop",de),te||(rt(Be),I.addNew||K4(g.doc,$,null,null,I.extend),l&&!h||a&&s==9?setTimeout(function(){L.wrapper.ownerDocument.body.focus({preventScroll:!0}),L.input.focus()},20):L.input.focus())}),Ee=function(Be){te=te||Math.abs(w.clientX-Be.clientX)+Math.abs(w.clientY-Be.clientY)>=10},Ie=function(){return te=!0};l&&(L.scroller.draggable=!0),g.state.draggingText=de,de.copy=!I.moveOnDrag,Ke(L.wrapper.ownerDocument,"mouseup",de),Ke(L.wrapper.ownerDocument,"mousemove",Ee),Ke(L.scroller,"dragstart",Ie),Ke(L.scroller,"drop",de),g.state.delayingBlurEvent=!0,setTimeout(function(){return L.input.focus()},20),L.scroller.dragDrop&&L.scroller.dragDrop()}function jG(g,w,$){if($=="char")return new ki(w,w);if($=="word")return g.findWordAt(w);if($=="line")return new ki(O(w.line,0),on(g.doc,O(w.line+1,0)));var I=$(g,w);return new ki(I.from,I.to)}function b3e(g,w,$,I){a&&$a(g);var L=g.display,te=g.doc;rt(w);var de,Ee,Ie=te.sel,Be=Ie.ranges;if(I.addNew&&!I.extend?(Ee=te.sel.contains($),Ee>-1?de=Be[Ee]:de=new ki($,$)):(de=te.sel.primary(),Ee=te.sel.primIndex),I.unit=="rectangle")I.addNew||(de=new ki($,$)),$=_n(g,w,!0,!0),Ee=-1;else{var nt=jG(g,$,I.unit);I.extend?de=RI(de,nt.anchor,nt.head,I.extend):de=nt}I.addNew?Ee==-1?(Ee=Be.length,us(te,Xu(g,Be.concat([de]),Ee),{scroll:!1,origin:"*mouse"})):Be.length>1&&Be[Ee].empty()&&I.unit=="char"&&!I.extend?(us(te,Xu(g,Be.slice(0,Ee).concat(Be.slice(Ee+1)),0),{scroll:!1,origin:"*mouse"}),Ie=te.sel):AI(te,Ee,de,ne):(Ee=0,us(te,new ec([de],0),ne),Ie=te.sel);var at=$;function Et(Hn){if(j(at,Hn)!=0)if(at=Hn,I.unit=="rectangle"){for(var Xn=[],yr=g.options.tabSize,mr=V(gt(te,$.line).text,$.ch,yr),Kr=V(gt(te,Hn.line).text,Hn.ch,yr),Vi=Math.min(mr,Kr),Na=Math.max(mr,Kr),wo=Math.min($.line,Hn.line),wl=Math.min(g.lastLine(),Math.max($.line,Hn.line));wo<=wl;wo++){var Zs=gt(te,wo).text,ia=ye(Zs,Vi,yr);Vi==Na?Xn.push(new ki(O(wo,ia),O(wo,ia))):Zs.length>ia&&Xn.push(new ki(O(wo,ia),O(wo,ye(Zs,Na,yr))))}Xn.length||Xn.push(new ki($,$)),us(te,Xu(g,Ie.ranges.slice(0,Ee).concat(Xn),Ee),{origin:"*mouse",scroll:!1}),g.scrollIntoView(Hn)}else{var Js=de,Xa=jG(g,Hn,I.unit),ba=Js.anchor,oa;j(Xa.anchor,ba)>0?(oa=Xa.head,ba=ft(Js.from(),Xa.anchor)):(oa=Xa.anchor,ba=Ge(Js.to(),Xa.head));var No=Ie.ranges.slice(0);No[Ee]=S3e(g,new ki(on(te,ba),oa)),us(te,Xu(g,No,Ee),ne)}}var yt=L.wrapper.getBoundingClientRect(),rn=0;function dn(Hn){var Xn=++rn,yr=_n(g,Hn,!0,I.unit=="rectangle");if(yr)if(j(yr,at)!=0){g.curOp.focus=z(),Et(yr);var mr=B4(L,te);(yr.line>=mr.to||yr.line<mr.from)&&setTimeout(Ra(g,function(){rn==Xn&&dn(Hn)}),150)}else{var Kr=Hn.clientY<yt.top?-20:Hn.clientY>yt.bottom?20:0;Kr&&setTimeout(Ra(g,function(){rn==Xn&&(L.scroller.scrollTop+=Kr,dn(Hn))}),50)}}function En(Hn){g.state.selectingText=!1,rn=1/0,Hn&&(rt(Hn),L.input.focus()),se(L.wrapper.ownerDocument,"mousemove",Bn),se(L.wrapper.ownerDocument,"mouseup",Un),te.history.lastSelOrigin=null}var Bn=Ra(g,function(Hn){Hn.buttons===0||!Dt(Hn)?En(Hn):dn(Hn)}),Un=Ra(g,En);g.state.selectingText=Un,Ke(L.wrapper.ownerDocument,"mousemove",Bn),Ke(L.wrapper.ownerDocument,"mouseup",Un)}function S3e(g,w){var $=w.anchor,I=w.head,L=gt(g.doc,$.line);if(j($,I)==0&&$.sticky==I.sticky)return w;var te=Oe(L);if(!te)return w;var de=J(te,$.ch,$.sticky),Ee=te[de];if(Ee.from!=$.ch&&Ee.to!=$.ch)return w;var Ie=de+(Ee.from==$.ch==(Ee.level!=1)?0:1);if(Ie==0||Ie==te.length)return w;var Be;if(I.line!=$.line)Be=(I.line-$.line)*(g.doc.direction=="ltr"?1:-1)>0;else{var nt=J(te,I.ch,I.sticky),at=nt-de||(I.ch-$.ch)*(Ee.level==1?-1:1);nt==Ie-1||nt==Ie?Be=at<0:Be=at>0}var Et=te[Ie+(Be?-1:0)],yt=Be==(Et.level==1),rn=yt?Et.from:Et.to,dn=yt?"after":"before";return $.ch==rn&&$.sticky==dn?w:new ki(new O($.line,rn,dn),I)}function BG(g,w,$,I){var L,te;if(w.touches)L=w.touches[0].clientX,te=w.touches[0].clientY;else try{L=w.clientX,te=w.clientY}catch{return!1}if(L>=Math.floor(g.display.gutters.getBoundingClientRect().right))return!1;I&&rt(w);var de=g.display,Ee=de.lineDiv.getBoundingClientRect();if(te>Ee.bottom||!Je(g,$))return St(w);te-=Ee.top-de.viewOffset;for(var Ie=0;Ie<g.display.gutterSpecs.length;++Ie){var Be=de.gutters.childNodes[Ie];if(Be&&Be.getBoundingClientRect().right>=L){var nt=zt(g.doc,te),at=g.display.gutterSpecs[Ie];return ze(g,$,g,nt,at.className,w),St(w)}}}function BI(g,w){return BG(g,w,"gutterClick",!0)}function HG(g,w){Ku(g.display,w)||C3e(g,w)||Ye(g,w,"contextmenu")||E||g.display.input.onContextMenu(w)}function C3e(g,w){return Je(g,"gutterContextMenu")?BG(g,w,"gutterContextMenu",!1):!1}function zG(g){g.display.wrapper.className=g.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+g.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Xc(g)}var j0={toString:function(){return"CodeMirror.Init"}},UG={},J4={};function x3e(g){var w=g.optionHandlers;function $(I,L,te,de){g.defaults[I]=L,te&&(w[I]=de?function(Ee,Ie,Be){Be!=j0&&te(Ee,Ie,Be)}:te)}g.defineOption=$,g.Init=j0,$("value","",function(I,L){return I.setValue(L)},!0),$("mode",null,function(I,L){I.doc.modeOption=L,MI(I)},!0),$("indentUnit",2,MI,!0),$("indentWithTabs",!1),$("smartIndent",!0),$("tabSize",4,function(I){tx(I),Xc(I),yn(I)},!0),$("lineSeparator",null,function(I,L){if(I.doc.lineSep=L,!!L){var te=[],de=I.doc.first;I.doc.iter(function(Ie){for(var Be=0;;){var nt=Ie.text.indexOf(L,Be);if(nt==-1)break;Be=nt+L.length,te.push(O(de,nt))}de++});for(var Ee=te.length-1;Ee>=0;Ee--)N0(I.doc,L,te[Ee],O(te[Ee].line,te[Ee].ch+L.length))}}),$("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(I,L,te){I.state.specialChars=new RegExp(L.source+(L.test(" ")?"":"| "),"g"),te!=j0&&I.refresh()}),$("specialCharPlaceholder",v0,function(I){return I.refresh()},!0),$("electricChars",!0),$("inputStyle",S?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),$("spellcheck",!1,function(I,L){return I.getInputField().spellcheck=L},!0),$("autocorrect",!1,function(I,L){return I.getInputField().autocorrect=L},!0),$("autocapitalize",!1,function(I,L){return I.getInputField().autocapitalize=L},!0),$("rtlMoveVisually",!_),$("wholeLineUpdateBefore",!0),$("theme","default",function(I){zG(I),ex(I)},!0),$("keyMap","default",function(I,L,te){var de=Q4(L),Ee=te!=j0&&Q4(te);Ee&&Ee.detach&&Ee.detach(I,de),de.attach&&de.attach(I,Ee||null)}),$("extraKeys",null),$("configureMouse",null),$("lineWrapping",!1,_3e,!0),$("gutters",[],function(I,L){I.display.gutterSpecs=OI(L,I.options.lineNumbers),ex(I)},!0),$("fixedGutter",!0,function(I,L){I.display.gutters.style.left=L?Xt(I.display)+"px":"0",I.refresh()},!0),$("coverGutterNextToScrollbar",!1,function(I){return I0(I)},!0),$("scrollbarStyle","native",function(I){Vq(I),I0(I),I.display.scrollbars.setScrollTop(I.doc.scrollTop),I.display.scrollbars.setScrollLeft(I.doc.scrollLeft)},!0),$("lineNumbers",!1,function(I,L){I.display.gutterSpecs=OI(I.options.gutters,L),ex(I)},!0),$("firstLineNumber",1,ex,!0),$("lineNumberFormatter",function(I){return I},ex,!0),$("showCursorWhenSelecting",!1,Ur,!0),$("resetSelectionOnContextMenu",!0),$("lineWiseCopyCut",!0),$("pasteLinesPerSelection",!0),$("selectionsMayTouch",!1),$("readOnly",!1,function(I,L){L=="nocursor"&&(lf(I),I.display.input.blur()),I.display.input.readOnlyChanged(L)}),$("screenReaderLabel",null,function(I,L){L=L===""?null:L,I.display.input.screenReaderLabelChanged(L)}),$("disableInput",!1,function(I,L){L||I.display.input.reset()},!0),$("dragDrop",!0,w3e),$("allowDropFileTypes",null),$("cursorBlinkRate",530),$("cursorScrollMargin",0),$("cursorHeight",1,Ur,!0),$("singleCursorHeightPerLine",!0,Ur,!0),$("workTime",100),$("workDelay",100),$("flattenSpans",!0,tx,!0),$("addModeClass",!1,tx,!0),$("pollInterval",100),$("undoDepth",200,function(I,L){return I.doc.history.undoDepth=L}),$("historyEventDelay",1250),$("viewportMargin",10,function(I){return I.refresh()},!0),$("maxHighlightLength",1e4,tx,!0),$("moveInputWithCursor",!0,function(I,L){L||I.display.input.resetPosition()}),$("tabindex",null,function(I,L){return I.display.input.getField().tabIndex=L||""}),$("autofocus",null),$("direction","ltr",function(I,L){return I.doc.setDirection(L)},!0),$("phrases",null)}function w3e(g,w,$){var I=$&&$!=j0;if(!w!=!I){var L=g.display.dragFunctions,te=w?Ke:se;te(g.display.scroller,"dragstart",L.start),te(g.display.scroller,"dragenter",L.enter),te(g.display.scroller,"dragover",L.over),te(g.display.scroller,"dragleave",L.leave),te(g.display.scroller,"drop",L.drop)}}function _3e(g){g.options.lineWrapping?(W(g.display.wrapper,"CodeMirror-wrap"),g.display.sizer.style.minWidth="",g.display.sizerWidth=null):(M(g.display.wrapper,"CodeMirror-wrap"),Pg(g)),un(g),yn(g),Xc(g),setTimeout(function(){return I0(g)},100)}function lo(g,w){var $=this;if(!(this instanceof lo))return new lo(g,w);this.options=w=w?B(w):{},B(UG,w,!1);var I=w.value;typeof I=="string"?I=new Qs(I,w.mode,null,w.lineSeparator,w.direction):w.mode&&(I.modeOption=w.mode),this.doc=I;var L=new lo.inputStyles[w.inputStyle](this),te=this.display=new L8e(g,I,L,w);te.wrapper.CodeMirror=this,zG(this),w.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Vq(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new G,keySeq:null,specialChars:null},w.autofocus&&!S&&te.input.focus(),a&&s<11&&setTimeout(function(){return $.display.input.reset(!0)},20),E3e(this),n3e(),Ng(this),this.curOp.forceUpdate=!0,tG(this,I),w.autofocus&&!S||this.hasFocus()?setTimeout(function(){$.hasFocus()&&!$.state.focused&&Yu($)},20):lf(this);for(var de in J4)J4.hasOwnProperty(de)&&J4[de](this,w[de],j0);Gq(this),w.finishInit&&w.finishInit(this);for(var Ee=0;Ee<HI.length;++Ee)HI[Ee](this);Dg(this),l&&w.lineWrapping&&getComputedStyle(te.lineDiv).textRendering=="optimizelegibility"&&(te.lineDiv.style.textRendering="auto")}lo.defaults=UG,lo.optionHandlers=J4;function E3e(g){var w=g.display;Ke(w.scroller,"mousedown",Ra(g,FG)),a&&s<11?Ke(w.scroller,"dblclick",Ra(g,function(Ie){if(!Ye(g,Ie)){var Be=_n(g,Ie);if(!(!Be||BI(g,Ie)||Ku(g.display,Ie))){rt(Ie);var nt=g.findWordAt(Be);K4(g.doc,nt.anchor,nt.head)}}})):Ke(w.scroller,"dblclick",function(Ie){return Ye(g,Ie)||rt(Ie)}),Ke(w.scroller,"contextmenu",function(Ie){return HG(g,Ie)}),Ke(w.input.getField(),"contextmenu",function(Ie){w.scroller.contains(Ie.target)||HG(g,Ie)});var $,I={end:0};function L(){w.activeTouch&&($=setTimeout(function(){return w.activeTouch=null},1e3),I=w.activeTouch,I.end=+new Date)}function te(Ie){if(Ie.touches.length!=1)return!1;var Be=Ie.touches[0];return Be.radiusX<=1&&Be.radiusY<=1}function de(Ie,Be){if(Be.left==null)return!0;var nt=Be.left-Ie.left,at=Be.top-Ie.top;return nt*nt+at*at>20*20}Ke(w.scroller,"touchstart",function(Ie){if(!Ye(g,Ie)&&!te(Ie)&&!BI(g,Ie)){w.input.ensurePolled(),clearTimeout($);var Be=+new Date;w.activeTouch={start:Be,moved:!1,prev:Be-I.end<=300?I:null},Ie.touches.length==1&&(w.activeTouch.left=Ie.touches[0].pageX,w.activeTouch.top=Ie.touches[0].pageY)}}),Ke(w.scroller,"touchmove",function(){w.activeTouch&&(w.activeTouch.moved=!0)}),Ke(w.scroller,"touchend",function(Ie){var Be=w.activeTouch;if(Be&&!Ku(w,Ie)&&Be.left!=null&&!Be.moved&&new Date-Be.start<300){var nt=g.coordsChar(w.activeTouch,"page"),at;!Be.prev||de(Be,Be.prev)?at=new ki(nt,nt):!Be.prev.prev||de(Be,Be.prev.prev)?at=g.findWordAt(nt):at=new ki(O(nt.line,0),on(g.doc,O(nt.line+1,0))),g.setSelection(at.anchor,at.head),g.focus(),rt(Ie)}L()}),Ke(w.scroller,"touchcancel",L),Ke(w.scroller,"scroll",function(){w.scroller.clientHeight&&(XC(g,w.scroller.scrollTop),Rg(g,w.scroller.scrollLeft,!0),ze(g,"scroll",g))}),Ke(w.scroller,"mousewheel",function(Ie){return Qq(g,Ie)}),Ke(w.scroller,"DOMMouseScroll",function(Ie){return Qq(g,Ie)}),Ke(w.wrapper,"scroll",function(){return w.wrapper.scrollTop=w.wrapper.scrollLeft=0}),w.dragFunctions={enter:function(Ie){Ye(g,Ie)||Ot(Ie)},over:function(Ie){Ye(g,Ie)||(t3e(g,Ie),Ot(Ie))},start:function(Ie){return e3e(g,Ie)},drop:Ra(g,J8e),leave:function(Ie){Ye(g,Ie)||EG(g)}};var Ee=w.input.getField();Ke(Ee,"keyup",function(Ie){return DG.call(g,Ie)}),Ke(Ee,"keydown",Ra(g,NG)),Ke(Ee,"keypress",Ra(g,LG)),Ke(Ee,"focus",function(Ie){return Yu(g,Ie)}),Ke(Ee,"blur",function(Ie){return lf(g,Ie)})}var HI=[];lo.defineInitHook=function(g){return HI.push(g)};function px(g,w,$,I){var L=g.doc,te;$==null&&($="add"),$=="smart"&&(L.mode.indent?te=Pn(g,w).state:$="prev");var de=g.options.tabSize,Ee=gt(L,w),Ie=V(Ee.text,null,de);Ee.stateAfter&&(Ee.stateAfter=null);var Be=Ee.text.match(/^\s*/)[0],nt;if(!I&&!/\S/.test(Ee.text))nt=0,$="not";else if($=="smart"&&(nt=L.mode.indent(te,Ee.text.slice(Be.length),Ee.text),nt==fe||nt>150)){if(!I)return;$="prev"}$=="prev"?w>L.first?nt=V(gt(L,w-1).text,null,de):nt=0:$=="add"?nt=Ie+g.options.indentUnit:$=="subtract"?nt=Ie-g.options.indentUnit:typeof $=="number"&&(nt=Ie+$),nt=Math.max(0,nt);var at="",Et=0;if(g.options.indentWithTabs)for(var yt=Math.floor(nt/de);yt;--yt)Et+=de,at+=" ";if(Et<nt&&(at+=pe(nt-Et)),at!=Be)return N0(L,at,O(w,0),O(w,Be.length),"+input"),Ee.stateAfter=null,!0;for(var rn=0;rn<L.sel.ranges.length;rn++){var dn=L.sel.ranges[rn];if(dn.head.line==w&&dn.head.ch<Be.length){var En=O(w,Be.length);AI(L,rn,new ki(En,En));break}}}var Qu=null;function eT(g){Qu=g}function zI(g,w,$,I,L){var te=g.doc;g.display.shift=!1,I||(I=te.sel);var de=+new Date-200,Ee=L=="paste"||g.state.pasteIncoming>de,Ie=ot(w),Be=null;if(Ee&&I.ranges.length>1)if(Qu&&Qu.text.join(`
|
||
`)==w){if(I.ranges.length%Qu.text.length==0){Be=[];for(var nt=0;nt<Qu.text.length;nt++)Be.push(te.splitLines(Qu.text[nt]))}}else Ie.length==I.ranges.length&&g.options.pasteLinesPerSelection&&(Be=_e(Ie,function(Bn){return[Bn]}));for(var at=g.curOp.updateInput,Et=I.ranges.length-1;Et>=0;Et--){var yt=I.ranges[Et],rn=yt.from(),dn=yt.to();yt.empty()&&($&&$>0?rn=O(rn.line,rn.ch-$):g.state.overwrite&&!Ee?dn=O(dn.line,Math.min(gt(te,dn.line).text.length,dn.ch+he(Ie).length)):Ee&&Qu&&Qu.lineWise&&Qu.text.join(`
|
||
`)==Ie.join(`
|
||
`)&&(rn=dn=O(rn.line,0)));var En={from:rn,to:dn,text:Be?Be[Et%Be.length]:Ie,origin:L||(Ee?"paste":g.state.cutIncoming>de?"cut":"+input")};A0(g.doc,En),Ao(g,"inputRead",g,En)}w&&!Ee&&VG(g,w),M0(g),g.curOp.updateInput<2&&(g.curOp.updateInput=at),g.curOp.typing=!0,g.state.pasteIncoming=g.state.cutIncoming=-1}function WG(g,w){var $=g.clipboardData&&g.clipboardData.getData("Text");if($)return g.preventDefault(),!w.isReadOnly()&&!w.options.disableInput&&xl(w,function(){return zI(w,$,0,null,"paste")}),!0}function VG(g,w){if(!(!g.options.electricChars||!g.options.smartIndent))for(var $=g.doc.sel,I=$.ranges.length-1;I>=0;I--){var L=$.ranges[I];if(!(L.head.ch>100||I&&$.ranges[I-1].head.line==L.head.line)){var te=g.getModeAt(L.head),de=!1;if(te.electricChars){for(var Ee=0;Ee<te.electricChars.length;Ee++)if(w.indexOf(te.electricChars.charAt(Ee))>-1){de=px(g,L.head.line,"smart");break}}else te.electricInput&&te.electricInput.test(gt(g.doc,L.head.line).text.slice(0,L.head.ch))&&(de=px(g,L.head.line,"smart"));de&&Ao(g,"electricInput",g,L.head.line)}}}function KG(g){for(var w=[],$=[],I=0;I<g.doc.sel.ranges.length;I++){var L=g.doc.sel.ranges[I].head.line,te={anchor:O(L,0),head:O(L+1,0)};$.push(te),w.push(g.getRange(te.anchor,te.head))}return{text:w,ranges:$}}function qG(g,w,$,I){g.setAttribute("autocorrect",$?"":"off"),g.setAttribute("autocapitalize",I?"":"off"),g.setAttribute("spellcheck",!!w)}function GG(){var g=R("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),w=R("div",[g],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?g.style.width="1000px":g.setAttribute("wrap","off"),v&&(g.style.border="1px solid black"),qG(g),w}function T3e(g){var w=g.optionHandlers,$=g.helpers={};g.prototype={constructor:g,focus:function(){window.focus(),this.display.input.focus()},setOption:function(I,L){var te=this.options,de=te[I];te[I]==L&&I!="mode"||(te[I]=L,w.hasOwnProperty(I)&&Ra(this,w[I])(this,L,de),ze(this,"optionChange",this,I))},getOption:function(I){return this.options[I]},getDoc:function(){return this.doc},addKeyMap:function(I,L){this.state.keyMaps[L?"push":"unshift"](Q4(I))},removeKeyMap:function(I){for(var L=this.state.keyMaps,te=0;te<L.length;++te)if(L[te]==I||L[te].name==I)return L.splice(te,1),!0},addOverlay:Ps(function(I,L){var te=I.token?I:g.getMode(this.options,I);if(te.startState)throw new Error("Overlays may not be stateful.");le(this.state.overlays,{mode:te,modeSpec:I,opaque:L&&L.opaque,priority:L&&L.priority||0},function(de){return de.priority}),this.state.modeGen++,yn(this)}),removeOverlay:Ps(function(I){for(var L=this.state.overlays,te=0;te<L.length;++te){var de=L[te].modeSpec;if(de==I||typeof I=="string"&&de.name==I){L.splice(te,1),this.state.modeGen++,yn(this);return}}}),indentLine:Ps(function(I,L,te){typeof L!="string"&&typeof L!="number"&&(L==null?L=this.options.smartIndent?"smart":"prev":L=L?"add":"subtract"),Dn(this.doc,I)&&px(this,I,L,te)}),indentSelection:Ps(function(I){for(var L=this.doc.sel.ranges,te=-1,de=0;de<L.length;de++){var Ee=L[de];if(Ee.empty())Ee.head.line>te&&(px(this,Ee.head.line,I,!0),te=Ee.head.line,de==this.doc.sel.primIndex&&M0(this));else{var Ie=Ee.from(),Be=Ee.to(),nt=Math.max(te,Ie.line);te=Math.min(this.lastLine(),Be.line-(Be.ch?0:1))+1;for(var at=nt;at<te;++at)px(this,at,I);var Et=this.doc.sel.ranges;Ie.ch==0&&L.length==Et.length&&Et[de].from().ch>0&&AI(this.doc,de,new ki(Ie,Et[de].to()),ee)}}}),getTokenAt:function(I,L){return Ir(this,I,L)},getLineTokens:function(I,L){return Ir(this,O(I),L,!0)},getTokenTypeAt:function(I){I=on(this.doc,I);var L=wn(this,gt(this.doc,I.line)),te=0,de=(L.length-1)/2,Ee=I.ch,Ie;if(Ee==0)Ie=L[2];else for(;;){var Be=te+de>>1;if((Be?L[Be*2-1]:0)>=Ee)de=Be;else if(L[Be*2+1]<Ee)te=Be+1;else{Ie=L[Be*2+2];break}}var nt=Ie?Ie.indexOf("overlay "):-1;return nt<0?Ie:nt==0?null:Ie.slice(0,nt-1)},getModeAt:function(I){var L=this.doc.mode;return L.innerMode?g.innerMode(L,this.getTokenAt(I).state).mode:L},getHelper:function(I,L){return this.getHelpers(I,L)[0]},getHelpers:function(I,L){var te=[];if(!$.hasOwnProperty(L))return te;var de=$[L],Ee=this.getModeAt(I);if(typeof Ee[L]=="string")de[Ee[L]]&&te.push(de[Ee[L]]);else if(Ee[L])for(var Ie=0;Ie<Ee[L].length;Ie++){var Be=de[Ee[L][Ie]];Be&&te.push(Be)}else Ee.helperType&&de[Ee.helperType]?te.push(de[Ee.helperType]):de[Ee.name]&&te.push(de[Ee.name]);for(var nt=0;nt<de._global.length;nt++){var at=de._global[nt];at.pred(Ee,this)&&ie(te,at.val)==-1&&te.push(at.val)}return te},getStateAfter:function(I,L){var te=this.doc;return I=Jt(te,I??te.first+te.size-1),Pn(this,I+1,L).state},cursorCoords:function(I,L){var te,de=this.doc.sel.primary();return I==null?te=de.head:typeof I=="object"?te=on(this.doc,I):te=I?de.from():de.to(),He(this,te,L||"page")},charCoords:function(I,L){return $e(this,on(this.doc,I),L||"page")},coordsChar:function(I,L){return I=ve(this,I,L||"page"),lt(this,I.left,I.top)},lineAtHeight:function(I,L){return I=ve(this,{top:I,left:0},L||"page").top,zt(this.doc,I+this.display.viewOffset)},heightAtLine:function(I,L,te){var de=!1,Ee;if(typeof I=="number"){var Ie=this.doc.first+this.doc.size-1;I<this.doc.first?I=this.doc.first:I>Ie&&(I=Ie,de=!0),Ee=gt(this.doc,I)}else Ee=I;return re(this,Ee,{top:0,left:0},L||"page",te||de).top+(de?this.doc.height-Vu(Ee):0)},defaultTextHeight:function(){return It(this.display)},defaultCharWidth:function(){return xt(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(I,L,te,de,Ee){var Ie=this.display;I=He(this,on(this.doc,I));var Be=I.bottom,nt=I.left;if(L.style.position="absolute",L.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(L),Ie.sizer.appendChild(L),de=="over")Be=I.top;else if(de=="above"||de=="near"){var at=Math.max(Ie.wrapper.clientHeight,this.doc.height),Et=Math.max(Ie.sizer.clientWidth,Ie.lineSpace.clientWidth);(de=="above"||I.bottom+L.offsetHeight>at)&&I.top>L.offsetHeight?Be=I.top-L.offsetHeight:I.bottom+L.offsetHeight<=at&&(Be=I.bottom),nt+L.offsetWidth>Et&&(nt=Et-L.offsetWidth)}L.style.top=Be+"px",L.style.left=L.style.right="",Ee=="right"?(nt=Ie.sizer.clientWidth-L.offsetWidth,L.style.right="0px"):(Ee=="left"?nt=0:Ee=="middle"&&(nt=(Ie.sizer.clientWidth-L.offsetWidth)/2),L.style.left=nt+"px"),te&&w8e(this,{left:nt,top:Be,right:nt+L.offsetWidth,bottom:Be+L.offsetHeight})},triggerOnKeyDown:Ps(NG),triggerOnKeyPress:Ps(LG),triggerOnKeyUp:DG,triggerOnMouseDown:Ps(FG),execCommand:function(I){if(ux.hasOwnProperty(I))return ux[I].call(null,this)},triggerElectric:Ps(function(I){VG(this,I)}),findPosH:function(I,L,te,de){var Ee=1;L<0&&(Ee=-1,L=-L);for(var Ie=on(this.doc,I),Be=0;Be<L&&(Ie=UI(this.doc,Ie,Ee,te,de),!Ie.hitSide);++Be);return Ie},moveH:Ps(function(I,L){var te=this;this.extendSelectionsBy(function(de){return te.display.shift||te.doc.extend||de.empty()?UI(te.doc,de.head,I,L,te.options.rtlMoveVisually):I<0?de.from():de.to()},ue)}),deleteH:Ps(function(I,L){var te=this.doc.sel,de=this.doc;te.somethingSelected()?de.replaceSelection("",null,"+delete"):F0(this,function(Ee){var Ie=UI(de,Ee.head,I,L,!1);return I<0?{from:Ie,to:Ee.head}:{from:Ee.head,to:Ie}})}),findPosV:function(I,L,te,de){var Ee=1,Ie=de;L<0&&(Ee=-1,L=-L);for(var Be=on(this.doc,I),nt=0;nt<L;++nt){var at=He(this,Be,"div");if(Ie==null?Ie=at.left:at.left=Ie,Be=YG(this,at,Ee,te),Be.hitSide)break}return Be},moveV:Ps(function(I,L){var te=this,de=this.doc,Ee=[],Ie=!this.display.shift&&!de.extend&&de.sel.somethingSelected();if(de.extendSelectionsBy(function(nt){if(Ie)return I<0?nt.from():nt.to();var at=He(te,nt.head,"div");nt.goalColumn!=null&&(at.left=nt.goalColumn),Ee.push(at.left);var Et=YG(te,at,I,L);return L=="page"&&nt==de.sel.primary()&&wI(te,$e(te,Et,"div").top-at.top),Et},ue),Ee.length)for(var Be=0;Be<de.sel.ranges.length;Be++)de.sel.ranges[Be].goalColumn=Ee[Be]}),findWordAt:function(I){var L=this.doc,te=gt(L,I.line).text,de=I.ch,Ee=I.ch;if(te){var Ie=this.getHelper(I,"wordChars");(I.sticky=="before"||Ee==te.length)&&de?--de:++Ee;for(var Be=te.charAt(de),nt=Ce(Be,Ie)?function(at){return Ce(at,Ie)}:/\s/.test(Be)?function(at){return/\s/.test(at)}:function(at){return!/\s/.test(at)&&!Ce(at)};de>0&&nt(te.charAt(de-1));)--de;for(;Ee<te.length&&nt(te.charAt(Ee));)++Ee}return new ki(O(I.line,de),O(I.line,Ee))},toggleOverwrite:function(I){I!=null&&I==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?W(this.display.cursorDiv,"CodeMirror-overwrite"):M(this.display.cursorDiv,"CodeMirror-overwrite"),ze(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==z()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Ps(function(I,L){YC(this,I,L)}),getScrollInfo:function(){var I=this.display.scroller;return{left:I.scrollLeft,top:I.scrollTop,height:I.scrollHeight-Jl(this)-this.display.barHeight,width:I.scrollWidth-Jl(this)-this.display.barWidth,clientHeight:O0(this),clientWidth:qu(this)}},scrollIntoView:Ps(function(I,L){I==null?(I={from:this.doc.sel.primary().head,to:null},L==null&&(L=this.options.cursorScrollMargin)):typeof I=="number"?I={from:O(I,0),to:null}:I.from==null&&(I={from:I,to:null}),I.to||(I.to=I.from),I.margin=L||0,I.from.line!=null?_8e(this,I):Hq(this,I.from,I.to,I.margin)}),setSize:Ps(function(I,L){var te=this,de=function(Ie){return typeof Ie=="number"||/^\d+$/.test(String(Ie))?Ie+"px":Ie};I!=null&&(this.display.wrapper.style.width=de(I)),L!=null&&(this.display.wrapper.style.height=de(L)),this.options.lineWrapping&&P0(this);var Ee=this.display.viewFrom;this.doc.iter(Ee,this.display.viewTo,function(Ie){if(Ie.widgets){for(var Be=0;Be<Ie.widgets.length;Be++)if(Ie.widgets[Be].noHScroll){kn(te,Ee,"widget");break}}++Ee}),this.curOp.forceUpdate=!0,ze(this,"refresh",this)}),operation:function(I){return xl(this,I)},startOperation:function(){return Ng(this)},endOperation:function(){return Dg(this)},refresh:Ps(function(){var I=this.display.cachedTextHeight;yn(this),this.curOp.forceUpdate=!0,Xc(this),YC(this,this.doc.scrollLeft,this.doc.scrollTop),TI(this.display),(I==null||Math.abs(I-It(this.display))>.5||this.options.lineWrapping)&&un(this),ze(this,"refresh",this)}),swapDoc:Ps(function(I){var L=this.doc;return L.cm=null,this.state.selectingText&&this.state.selectingText(),tG(this,I),Xc(this),this.display.input.reset(),YC(this,I.scrollLeft,I.scrollTop),this.curOp.forceScroll=!0,Ao(this,"swapDoc",this,L),L}),phrase:function(I){var L=this.options.phrases;return L&&Object.prototype.hasOwnProperty.call(L,I)?L[I]:I},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Ze(g),g.registerHelper=function(I,L,te){$.hasOwnProperty(I)||($[I]=g[I]={_global:[]}),$[I][L]=te},g.registerGlobalHelper=function(I,L,te,de){g.registerHelper(I,L,de),$[I]._global.push({pred:te,val:de})}}function UI(g,w,$,I,L){var te=w,de=$,Ee=gt(g,w.line),Ie=L&&g.direction=="rtl"?-$:$;function Be(){var Un=w.line+Ie;return Un<g.first||Un>=g.first+g.size?!1:(w=new O(Un,w.ch,w.sticky),Ee=gt(g,Un))}function nt(Un){var Hn;if(I=="codepoint"){var Xn=Ee.text.charCodeAt(w.ch+($>0?0:-1));if(isNaN(Xn))Hn=null;else{var yr=$>0?Xn>=55296&&Xn<56320:Xn>=56320&&Xn<57343;Hn=new O(w.line,Math.max(0,Math.min(Ee.text.length,w.ch+$*(yr?2:1))),-$)}}else L?Hn=s3e(g.cm,Ee,w,$):Hn=DI(Ee,w,$);if(Hn==null)if(!Un&&Be())w=LI(L,g.cm,Ee,w.line,Ie);else return!1;else w=Hn;return!0}if(I=="char"||I=="codepoint")nt();else if(I=="column")nt(!0);else if(I=="word"||I=="group")for(var at=null,Et=I=="group",yt=g.cm&&g.cm.getHelper(w,"wordChars"),rn=!0;!($<0&&!nt(!rn));rn=!1){var dn=Ee.text.charAt(w.ch)||`
|
||
`,En=Ce(dn,yt)?"w":Et&&dn==`
|
||
`?"n":!Et||/\s/.test(dn)?null:"p";if(Et&&!rn&&!En&&(En="s"),at&&at!=En){$<0&&($=1,nt(),w.sticky="after");break}if(En&&(at=En),$>0&&!nt(!rn))break}var Bn=G4(g,w,te,de,!0);return oe(te,Bn)&&(Bn.hitSide=!0),Bn}function YG(g,w,$,I){var L=g.doc,te=w.left,de;if(I=="page"){var Ee=Math.min(g.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Ie=Math.max(Ee-.5*It(g.display),3);de=($>0?w.bottom:w.top)+$*Ie}else I=="line"&&(de=$>0?w.bottom+3:w.top-3);for(var Be;Be=lt(g,te,de),!!Be.outside;){if($<0?de<=0:de>=L.height){Be.hitSide=!0;break}de+=$*5}return Be}var Ri=function(g){this.cm=g,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new G,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ri.prototype.init=function(g){var w=this,$=this,I=$.cm,L=$.div=g.lineDiv;L.contentEditable=!0,qG(L,I.options.spellcheck,I.options.autocorrect,I.options.autocapitalize);function te(Ee){for(var Ie=Ee.target;Ie;Ie=Ie.parentNode){if(Ie==L)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Ie.className))break}return!1}Ke(L,"paste",function(Ee){!te(Ee)||Ye(I,Ee)||WG(Ee,I)||s<=11&&setTimeout(Ra(I,function(){return w.updateFromDOM()}),20)}),Ke(L,"compositionstart",function(Ee){w.composing={data:Ee.data,done:!1}}),Ke(L,"compositionupdate",function(Ee){w.composing||(w.composing={data:Ee.data,done:!1})}),Ke(L,"compositionend",function(Ee){w.composing&&(Ee.data!=w.composing.data&&w.readFromDOMSoon(),w.composing.done=!0)}),Ke(L,"touchstart",function(){return $.forceCompositionEnd()}),Ke(L,"input",function(){w.composing||w.readFromDOMSoon()});function de(Ee){if(!(!te(Ee)||Ye(I,Ee))){if(I.somethingSelected())eT({lineWise:!1,text:I.getSelections()}),Ee.type=="cut"&&I.replaceSelection("",null,"cut");else if(I.options.lineWiseCopyCut){var Ie=KG(I);eT({lineWise:!0,text:Ie.text}),Ee.type=="cut"&&I.operation(function(){I.setSelections(Ie.ranges,0,ee),I.replaceSelection("",null,"cut")})}else return;if(Ee.clipboardData){Ee.clipboardData.clearData();var Be=Qu.text.join(`
|
||
`);if(Ee.clipboardData.setData("Text",Be),Ee.clipboardData.getData("Text")==Be){Ee.preventDefault();return}}var nt=GG(),at=nt.firstChild;I.display.lineSpace.insertBefore(nt,I.display.lineSpace.firstChild),at.value=Qu.text.join(`
|
||
`);var Et=z();Z(at),setTimeout(function(){I.display.lineSpace.removeChild(nt),Et.focus(),Et==L&&$.showPrimarySelection()},50)}}Ke(L,"copy",de),Ke(L,"cut",de)},Ri.prototype.screenReaderLabelChanged=function(g){g?this.div.setAttribute("aria-label",g):this.div.removeAttribute("aria-label")},Ri.prototype.prepareSelection=function(){var g=Xr(this.cm,!1);return g.focus=z()==this.div,g},Ri.prototype.showSelection=function(g,w){!g||!this.cm.display.view.length||((g.focus||w)&&this.showPrimarySelection(),this.showMultipleSelections(g))},Ri.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ri.prototype.showPrimarySelection=function(){var g=this.getSelection(),w=this.cm,$=w.doc.sel.primary(),I=$.from(),L=$.to();if(w.display.viewTo==w.display.viewFrom||I.line>=w.display.viewTo||L.line<w.display.viewFrom){g.removeAllRanges();return}var te=tT(w,g.anchorNode,g.anchorOffset),de=tT(w,g.focusNode,g.focusOffset);if(!(te&&!te.bad&&de&&!de.bad&&j(ft(te,de),I)==0&&j(Ge(te,de),L)==0)){var Ee=w.display.view,Ie=I.line>=w.display.viewFrom&&XG(w,I)||{node:Ee[0].measure.map[2],offset:0},Be=L.line<w.display.viewTo&&XG(w,L);if(!Be){var nt=Ee[Ee.length-1].measure,at=nt.maps?nt.maps[nt.maps.length-1]:nt.map;Be={node:at[at.length-1],offset:at[at.length-2]-at[at.length-3]}}if(!Ie||!Be){g.removeAllRanges();return}var Et=g.rangeCount&&g.getRangeAt(0),yt;try{yt=H(Ie.node,Ie.offset,Be.offset,Be.node)}catch{}yt&&(!n&&w.state.focused?(g.collapse(Ie.node,Ie.offset),yt.collapsed||(g.removeAllRanges(),g.addRange(yt))):(g.removeAllRanges(),g.addRange(yt)),Et&&g.anchorNode==null?g.addRange(Et):n&&this.startGracePeriod()),this.rememberSelection()}},Ri.prototype.startGracePeriod=function(){var g=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){g.gracePeriod=!1,g.selectionChanged()&&g.cm.operation(function(){return g.cm.curOp.selectionChanged=!0})},20)},Ri.prototype.showMultipleSelections=function(g){D(this.cm.display.cursorDiv,g.cursors),D(this.cm.display.selectionDiv,g.selection)},Ri.prototype.rememberSelection=function(){var g=this.getSelection();this.lastAnchorNode=g.anchorNode,this.lastAnchorOffset=g.anchorOffset,this.lastFocusNode=g.focusNode,this.lastFocusOffset=g.focusOffset},Ri.prototype.selectionInEditor=function(){var g=this.getSelection();if(!g.rangeCount)return!1;var w=g.getRangeAt(0).commonAncestorContainer;return F(this.div,w)},Ri.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||z()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ri.prototype.blur=function(){this.div.blur()},Ri.prototype.getField=function(){return this.div},Ri.prototype.supportsTouch=function(){return!0},Ri.prototype.receivedFocus=function(){var g=this,w=this;this.selectionInEditor()?setTimeout(function(){return g.pollSelection()},20):xl(this.cm,function(){return w.cm.curOp.selectionChanged=!0});function $(){w.cm.state.focused&&(w.pollSelection(),w.polling.set(w.cm.options.pollInterval,$))}this.polling.set(this.cm.options.pollInterval,$)},Ri.prototype.selectionChanged=function(){var g=this.getSelection();return g.anchorNode!=this.lastAnchorNode||g.anchorOffset!=this.lastAnchorOffset||g.focusNode!=this.lastFocusNode||g.focusOffset!=this.lastFocusOffset},Ri.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var g=this.getSelection(),w=this.cm;if(y&&u&&this.cm.display.gutterSpecs.length&&k3e(g.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var $=tT(w,g.anchorNode,g.anchorOffset),I=tT(w,g.focusNode,g.focusOffset);$&&I&&xl(w,function(){us(w.doc,Hp($,I),ee),($.bad||I.bad)&&(w.curOp.selectionChanged=!0)})}}},Ri.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var g=this.cm,w=g.display,$=g.doc.sel.primary(),I=$.from(),L=$.to();if(I.ch==0&&I.line>g.firstLine()&&(I=O(I.line-1,gt(g.doc,I.line-1).length)),L.ch==gt(g.doc,L.line).text.length&&L.line<g.lastLine()&&(L=O(L.line+1,0)),I.line<w.viewFrom||L.line>w.viewTo-1)return!1;var te,de,Ee;I.line==w.viewFrom||(te=An(g,I.line))==0?(de=Mt(w.view[0].line),Ee=w.view[0].node):(de=Mt(w.view[te].line),Ee=w.view[te-1].node.nextSibling);var Ie=An(g,L.line),Be,nt;if(Ie==w.view.length-1?(Be=w.viewTo-1,nt=w.lineDiv.lastChild):(Be=Mt(w.view[Ie+1].line)-1,nt=w.view[Ie+1].node.previousSibling),!Ee)return!1;for(var at=g.doc.splitLines(O3e(g,Ee,nt,de,Be)),Et=Ve(g.doc,O(de,0),O(Be,gt(g.doc,Be).text.length));at.length>1&&Et.length>1;)if(he(at)==he(Et))at.pop(),Et.pop(),Be--;else if(at[0]==Et[0])at.shift(),Et.shift(),de++;else break;for(var yt=0,rn=0,dn=at[0],En=Et[0],Bn=Math.min(dn.length,En.length);yt<Bn&&dn.charCodeAt(yt)==En.charCodeAt(yt);)++yt;for(var Un=he(at),Hn=he(Et),Xn=Math.min(Un.length-(at.length==1?yt:0),Hn.length-(Et.length==1?yt:0));rn<Xn&&Un.charCodeAt(Un.length-rn-1)==Hn.charCodeAt(Hn.length-rn-1);)++rn;if(at.length==1&&Et.length==1&&de==I.line)for(;yt&&yt>I.ch&&Un.charCodeAt(Un.length-rn-1)==Hn.charCodeAt(Hn.length-rn-1);)yt--,rn++;at[at.length-1]=Un.slice(0,Un.length-rn).replace(/^\u200b+/,""),at[0]=at[0].slice(yt).replace(/\u200b+$/,"");var yr=O(de,yt),mr=O(Be,Et.length?he(Et).length-rn:0);if(at.length>1||at[0]||j(yr,mr))return N0(g.doc,at,yr,mr,"+input"),!0},Ri.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ri.prototype.reset=function(){this.forceCompositionEnd()},Ri.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ri.prototype.readFromDOMSoon=function(){var g=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(g.readDOMTimeout=null,g.composing)if(g.composing.done)g.composing=null;else return;g.updateFromDOM()},80))},Ri.prototype.updateFromDOM=function(){var g=this;(this.cm.isReadOnly()||!this.pollContent())&&xl(this.cm,function(){return yn(g.cm)})},Ri.prototype.setUneditable=function(g){g.contentEditable="false"},Ri.prototype.onKeyPress=function(g){g.charCode==0||this.composing||(g.preventDefault(),this.cm.isReadOnly()||Ra(this.cm,zI)(this.cm,String.fromCharCode(g.charCode==null?g.keyCode:g.charCode),0))},Ri.prototype.readOnlyChanged=function(g){this.div.contentEditable=String(g!="nocursor")},Ri.prototype.onContextMenu=function(){},Ri.prototype.resetPosition=function(){},Ri.prototype.needsContentAttribute=!0;function XG(g,w){var $=Bp(g,w.line);if(!$||$.hidden)return null;var I=gt(g.doc,w.line),L=D4($,I,w.line),te=Oe(I,g.doc.direction),de="left";if(te){var Ee=J(te,w.ch);de=Ee%2?"right":"left"}var Ie=Xs(L.map,w.ch,de);return Ie.offset=Ie.collapse=="right"?Ie.end:Ie.start,Ie}function k3e(g){for(var w=g;w;w=w.parentNode)if(/CodeMirror-gutter-wrapper/.test(w.className))return!0;return!1}function B0(g,w){return w&&(g.bad=!0),g}function O3e(g,w,$,I,L){var te="",de=!1,Ee=g.doc.lineSeparator(),Ie=!1;function Be(yt){return function(rn){return rn.id==yt}}function nt(){de&&(te+=Ee,Ie&&(te+=Ee),de=Ie=!1)}function at(yt){yt&&(nt(),te+=yt)}function Et(yt){if(yt.nodeType==1){var rn=yt.getAttribute("cm-text");if(rn){at(rn);return}var dn=yt.getAttribute("cm-marker"),En;if(dn){var Bn=g.findMarks(O(I,0),O(L+1,0),Be(+dn));Bn.length&&(En=Bn[0].find(0))&&at(Ve(g.doc,En.from,En.to).join(Ee));return}if(yt.getAttribute("contenteditable")=="false")return;var Un=/^(pre|div|p|li|table|br)$/i.test(yt.nodeName);if(!/^br$/i.test(yt.nodeName)&&yt.textContent.length==0)return;Un&&nt();for(var Hn=0;Hn<yt.childNodes.length;Hn++)Et(yt.childNodes[Hn]);/^(pre|p)$/i.test(yt.nodeName)&&(Ie=!0),Un&&(de=!0)}else yt.nodeType==3&&at(yt.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Et(w),w!=$;)w=w.nextSibling,Ie=!1;return te}function tT(g,w,$){var I;if(w==g.display.lineDiv){if(I=g.display.lineDiv.childNodes[$],!I)return B0(g.clipPos(O(g.display.viewTo-1)),!0);w=null,$=0}else for(I=w;;I=I.parentNode){if(!I||I==g.display.lineDiv)return null;if(I.parentNode&&I.parentNode==g.display.lineDiv)break}for(var L=0;L<g.display.view.length;L++){var te=g.display.view[L];if(te.node==I)return P3e(te,w,$)}}function P3e(g,w,$){var I=g.text.firstChild,L=!1;if(!w||!F(I,w))return B0(O(Mt(g.line),0),!0);if(w==I&&(L=!0,w=I.childNodes[$],$=0,!w)){var te=g.rest?he(g.rest):g.line;return B0(O(Mt(te),te.text.length),L)}var de=w.nodeType==3?w:null,Ee=w;for(!de&&w.childNodes.length==1&&w.firstChild.nodeType==3&&(de=w.firstChild,$&&($=de.nodeValue.length));Ee.parentNode!=I;)Ee=Ee.parentNode;var Ie=g.measure,Be=Ie.maps;function nt(En,Bn,Un){for(var Hn=-1;Hn<(Be?Be.length:0);Hn++)for(var Xn=Hn<0?Ie.map:Be[Hn],yr=0;yr<Xn.length;yr+=3){var mr=Xn[yr+2];if(mr==En||mr==Bn){var Kr=Mt(Hn<0?g.line:g.rest[Hn]),Vi=Xn[yr]+Un;return(Un<0||mr!=En)&&(Vi=Xn[yr+(Un?1:0)]),O(Kr,Vi)}}}var at=nt(de,Ee,$);if(at)return B0(at,L);for(var Et=Ee.nextSibling,yt=de?de.nodeValue.length-$:0;Et;Et=Et.nextSibling){if(at=nt(Et,Et.firstChild,0),at)return B0(O(at.line,at.ch-yt),L);yt+=Et.textContent.length}for(var rn=Ee.previousSibling,dn=$;rn;rn=rn.previousSibling){if(at=nt(rn,rn.firstChild,-1),at)return B0(O(at.line,at.ch+dn),L);dn+=rn.textContent.length}}var Vo=function(g){this.cm=g,this.prevInput="",this.pollingFast=!1,this.polling=new G,this.hasSelection=!1,this.composing=null};Vo.prototype.init=function(g){var w=this,$=this,I=this.cm;this.createField(g);var L=this.textarea;g.wrapper.insertBefore(this.wrapper,g.wrapper.firstChild),v&&(L.style.width="0px"),Ke(L,"input",function(){a&&s>=9&&w.hasSelection&&(w.hasSelection=null),$.poll()}),Ke(L,"paste",function(de){Ye(I,de)||WG(de,I)||(I.state.pasteIncoming=+new Date,$.fastPoll())});function te(de){if(!Ye(I,de)){if(I.somethingSelected())eT({lineWise:!1,text:I.getSelections()});else if(I.options.lineWiseCopyCut){var Ee=KG(I);eT({lineWise:!0,text:Ee.text}),de.type=="cut"?I.setSelections(Ee.ranges,null,ee):($.prevInput="",L.value=Ee.text.join(`
|
||
`),Z(L))}else return;de.type=="cut"&&(I.state.cutIncoming=+new Date)}}Ke(L,"cut",te),Ke(L,"copy",te),Ke(g.scroller,"paste",function(de){if(!(Ku(g,de)||Ye(I,de))){if(!L.dispatchEvent){I.state.pasteIncoming=+new Date,$.focus();return}var Ee=new Event("paste");Ee.clipboardData=de.clipboardData,L.dispatchEvent(Ee)}}),Ke(g.lineSpace,"selectstart",function(de){Ku(g,de)||rt(de)}),Ke(L,"compositionstart",function(){var de=I.getCursor("from");$.composing&&$.composing.range.clear(),$.composing={start:de,range:I.markText(de,I.getCursor("to"),{className:"CodeMirror-composing"})}}),Ke(L,"compositionend",function(){$.composing&&($.poll(),$.composing.range.clear(),$.composing=null)})},Vo.prototype.createField=function(g){this.wrapper=GG(),this.textarea=this.wrapper.firstChild},Vo.prototype.screenReaderLabelChanged=function(g){g?this.textarea.setAttribute("aria-label",g):this.textarea.removeAttribute("aria-label")},Vo.prototype.prepareSelection=function(){var g=this.cm,w=g.display,$=g.doc,I=Xr(g);if(g.options.moveInputWithCursor){var L=He(g,$.sel.primary().head,"div"),te=w.wrapper.getBoundingClientRect(),de=w.lineDiv.getBoundingClientRect();I.teTop=Math.max(0,Math.min(w.wrapper.clientHeight-10,L.top+de.top-te.top)),I.teLeft=Math.max(0,Math.min(w.wrapper.clientWidth-10,L.left+de.left-te.left))}return I},Vo.prototype.showSelection=function(g){var w=this.cm,$=w.display;D($.cursorDiv,g.cursors),D($.selectionDiv,g.selection),g.teTop!=null&&(this.wrapper.style.top=g.teTop+"px",this.wrapper.style.left=g.teLeft+"px")},Vo.prototype.reset=function(g){if(!(this.contextMenuPending||this.composing)){var w=this.cm;if(w.somethingSelected()){this.prevInput="";var $=w.getSelection();this.textarea.value=$,w.state.focused&&Z(this.textarea),a&&s>=9&&(this.hasSelection=$)}else g||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null))}},Vo.prototype.getField=function(){return this.textarea},Vo.prototype.supportsTouch=function(){return!1},Vo.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!S||z()!=this.textarea))try{this.textarea.focus()}catch{}},Vo.prototype.blur=function(){this.textarea.blur()},Vo.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Vo.prototype.receivedFocus=function(){this.slowPoll()},Vo.prototype.slowPoll=function(){var g=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){g.poll(),g.cm.state.focused&&g.slowPoll()})},Vo.prototype.fastPoll=function(){var g=!1,w=this;w.pollingFast=!0;function $(){var I=w.poll();!I&&!g?(g=!0,w.polling.set(60,$)):(w.pollingFast=!1,w.slowPoll())}w.polling.set(20,$)},Vo.prototype.poll=function(){var g=this,w=this.cm,$=this.textarea,I=this.prevInput;if(this.contextMenuPending||!w.state.focused||Qe($)&&!I&&!this.composing||w.isReadOnly()||w.options.disableInput||w.state.keySeq)return!1;var L=$.value;if(L==I&&!w.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===L||b&&/[\uf700-\uf7ff]/.test(L))return w.display.input.reset(),!1;if(w.doc.sel==w.display.selForContextMenu){var te=L.charCodeAt(0);if(te==8203&&!I&&(I=""),te==8666)return this.reset(),this.cm.execCommand("undo")}for(var de=0,Ee=Math.min(I.length,L.length);de<Ee&&I.charCodeAt(de)==L.charCodeAt(de);)++de;return xl(w,function(){zI(w,L.slice(de),I.length-de,null,g.composing?"*compose":null),L.length>1e3||L.indexOf(`
|
||
`)>-1?$.value=g.prevInput="":g.prevInput=L,g.composing&&(g.composing.range.clear(),g.composing.range=w.markText(g.composing.start,w.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Vo.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Vo.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},Vo.prototype.onContextMenu=function(g){var w=this,$=w.cm,I=$.display,L=w.textarea;w.contextMenuPending&&w.contextMenuPending();var te=_n($,g),de=I.scroller.scrollTop;if(!te||d)return;var Ee=$.options.resetSelectionOnContextMenu;Ee&&$.doc.sel.contains(te)==-1&&Ra($,us)($.doc,Hp(te),ee);var Ie=L.style.cssText,Be=w.wrapper.style.cssText,nt=w.wrapper.offsetParent.getBoundingClientRect();w.wrapper.style.cssText="position: static",L.style.cssText=`position: absolute; width: 30px; height: 30px;
|
||
top: `+(g.clientY-nt.top-5)+"px; left: "+(g.clientX-nt.left-5)+`px;
|
||
z-index: 1000; background: `+(a?"rgba(255, 255, 255, .05)":"transparent")+`;
|
||
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var at;l&&(at=window.scrollY),I.input.focus(),l&&window.scrollTo(null,at),I.input.reset(),$.somethingSelected()||(L.value=w.prevInput=" "),w.contextMenuPending=yt,I.selForContextMenu=$.doc.sel,clearTimeout(I.detectingSelectAll);function Et(){if(L.selectionStart!=null){var dn=$.somethingSelected(),En=""+(dn?L.value:"");L.value="⇚",L.value=En,w.prevInput=dn?"":"",L.selectionStart=1,L.selectionEnd=En.length,I.selForContextMenu=$.doc.sel}}function yt(){if(w.contextMenuPending==yt&&(w.contextMenuPending=!1,w.wrapper.style.cssText=Be,L.style.cssText=Ie,a&&s<9&&I.scrollbars.setScrollTop(I.scroller.scrollTop=de),L.selectionStart!=null)){(!a||a&&s<9)&&Et();var dn=0,En=function(){I.selForContextMenu==$.doc.sel&&L.selectionStart==0&&L.selectionEnd>0&&w.prevInput==""?Ra($,pG)($):dn++<10?I.detectingSelectAll=setTimeout(En,500):(I.selForContextMenu=null,I.input.reset())};I.detectingSelectAll=setTimeout(En,200)}}if(a&&s>=9&&Et(),E){Ot(g);var rn=function(){se(window,"mouseup",rn),setTimeout(yt,20)};Ke(window,"mouseup",rn)}else setTimeout(yt,50)},Vo.prototype.readOnlyChanged=function(g){g||this.reset(),this.textarea.disabled=g=="nocursor",this.textarea.readOnly=!!g},Vo.prototype.setUneditable=function(){},Vo.prototype.needsContentAttribute=!1;function M3e(g,w){if(w=w?B(w):{},w.value=g.value,!w.tabindex&&g.tabIndex&&(w.tabindex=g.tabIndex),!w.placeholder&&g.placeholder&&(w.placeholder=g.placeholder),w.autofocus==null){var $=z();w.autofocus=$==g||g.getAttribute("autofocus")!=null&&$==document.body}function I(){g.value=Ee.getValue()}var L;if(g.form&&(Ke(g.form,"submit",I),!w.leaveSubmitMethodAlone)){var te=g.form;L=te.submit;try{var de=te.submit=function(){I(),te.submit=L,te.submit(),te.submit=de}}catch{}}w.finishInit=function(Ie){Ie.save=I,Ie.getTextArea=function(){return g},Ie.toTextArea=function(){Ie.toTextArea=isNaN,I(),g.parentNode.removeChild(Ie.getWrapperElement()),g.style.display="",g.form&&(se(g.form,"submit",I),!w.leaveSubmitMethodAlone&&typeof g.form.submit=="function"&&(g.form.submit=L))}},g.style.display="none";var Ee=lo(function(Ie){return g.parentNode.insertBefore(Ie,g.nextSibling)},w);return Ee}function I3e(g){g.off=se,g.on=Ke,g.wheelEventPixels=F8e,g.Doc=Qs,g.splitLines=ot,g.countColumn=V,g.findColumn=ye,g.isWordChar=Fe,g.Pass=fe,g.signal=ze,g.Line=rf,g.changeEnd=zp,g.scrollbarModel=Wq,g.Pos=O,g.cmpPos=j,g.modes=Zt,g.mimeModes=Wt,g.resolveMode=Gt,g.getMode=Ft,g.modeExtensions=cn,g.extendMode=_t,g.copyState=jt,g.startState=Ht,g.innerMode=nn,g.commands=ux,g.keyMap=ph,g.keyName=MG,g.isModifierKey=OG,g.lookupKey=L0,g.normalizeKeyMap=a3e,g.StringStream=Tt,g.SharedTextMarker=sx,g.TextMarker=Wp,g.LineWidget=ax,g.e_preventDefault=rt,g.e_stopPropagation=qt,g.e_stop=Ot,g.addClass=W,g.contains=F,g.rmClass=M,g.keyNames=Vp}x3e(lo),T3e(lo);var $3e="iter insert remove copy getEditor constructor".split(" ");for(var nT in Qs.prototype)Qs.prototype.hasOwnProperty(nT)&&ie($3e,nT)<0&&(lo.prototype[nT]=function(g){return function(){return g.apply(this.doc,arguments)}}(Qs.prototype[nT]));return Ze(Qs),lo.inputStyles={textarea:Vo,contenteditable:Ri},lo.defineMode=function(g){!lo.defaults.mode&&g!="null"&&(lo.defaults.mode=g),At.apply(this,arguments)},lo.defineMIME=$t,lo.defineMode("null",function(){return{token:function(g){return g.skipToEnd()}}}),lo.defineMIME("text/plain","null"),lo.defineExtension=function(g,w){lo.prototype[g]=w},lo.defineDocExtension=function(g,w){Qs.prototype[g]=w},lo.fromTextArea=M3e,I3e(lo),lo.version="5.65.3",lo},zUt=function(e){e.defineOption("placeholder","",function(s,l,c){var u=c&&c!=e.Init;if(l&&!u)s.on("blur",i),s.on("change",o),s.on("swapDoc",o),e.on(s.getInputField(),"compositionupdate",s.state.placeholderCompose=function(){r(s)}),o(s);else if(!l&&u){s.off("blur",i),s.off("change",o),s.off("swapDoc",o),e.off(s.getInputField(),"compositionupdate",s.state.placeholderCompose),t(s);var d=s.getWrapperElement();d.className=d.className.replace(" CodeMirror-empty","")}l&&!s.hasFocus()&&i(s)});function t(s){s.state.placeholder&&(s.state.placeholder.parentNode.removeChild(s.state.placeholder),s.state.placeholder=null)}function n(s){t(s);var l=s.state.placeholder=document.createElement("pre");l.style.cssText="height: 0; overflow: visible",l.style.direction=s.getOption("direction"),l.className="CodeMirror-placeholder CodeMirror-line-like";var c=s.getOption("placeholder");typeof c=="string"&&(c=document.createTextNode(c)),l.appendChild(c),s.display.lineSpace.insertBefore(l,s.display.lineSpace.firstChild)}function r(s){setTimeout(function(){var l=!1;if(s.lineCount()==1){var c=s.getInputField();l=c.nodeName=="TEXTAREA"?!s.getLine(0).length:!/[^\u200b]/.test(c.querySelector(".CodeMirror-line").textContent)}l?n(s):t(s)},20)}function i(s){a(s)&&n(s)}function o(s){var l=s.getWrapperElement(),c=a(s);l.className=l.className.replace(" CodeMirror-empty","")+(c?" CodeMirror-empty":""),c?n(s):t(s)}function a(s){return s.lineCount()===1&&s.getLine(0)===""}},UUt=function(e){var t=/^(\s*)(>[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/,n=/^(\s*)(>[> ]*|[*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/,r=/[*+-]\s/;e.commands.newlineAndIndentContinueMarkdownList=function(o){if(o.getOption("disableInput"))return e.Pass;for(var a=o.listSelections(),s=[],l=0;l<a.length;l++){var c=a[l].head,u=o.getStateAfter(c.line),d=e.innerMode(o.getMode(),u);if(d.mode.name!=="markdown"&&d.mode.helperType!=="markdown"){o.execCommand("newlineAndIndent");return}else u=d.state;var h=u.list!==!1,p=u.quote!==0,m=o.getLine(c.line),v=t.exec(m),y=/^\s*$/.test(m.slice(0,c.ch));if(!a[l].empty()||!h&&!p||!v||y){o.execCommand("newlineAndIndent");return}if(n.test(m)){var S=p&&/>\s*$/.test(m),b=!/>\s*$/.test(m);(S||b)&&o.replaceRange("",{line:c.line,ch:0},{line:c.line,ch:c.ch+1}),s[l]=`
|
||
`}else{var C=v[1],_=v[5],T=!(r.test(v[2])||v[2].indexOf(">")>=0),x=T?parseInt(v[3],10)+1+v[4]:v[2].replace("x"," ");s[l]=`
|
||
`+C+x+_,T&&i(o,c)}}o.replaceSelections(s)};function i(o,a){var s=a.line,l=0,c=0,u=t.exec(o.getLine(s)),d=u[1];do{l+=1;var h=s+l,p=o.getLine(h),m=t.exec(p);if(m){var v=m[1],y=parseInt(u[3],10)+l-c,S=parseInt(m[3],10),b=S;if(d===v&&!isNaN(S))y===S&&(b=S+1),y>S&&(b=y+1),o.replaceRange(p.replace(t,v+b+m[4]+m[5]),{line:h,ch:0},{line:h,ch:p.length});else{if(d.length>v.length||d.length<v.length&&l===1)return;c+=1}}}while(m)}},WUt=function(e){e.overlayMode=function(t,n,r){return{startState:function(){return{base:e.startState(t),overlay:e.startState(n),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(i){return{base:e.copyState(t,i.base),overlay:e.copyState(n,i.overlay),basePos:i.basePos,baseCur:null,overlayPos:i.overlayPos,overlayCur:null}},token:function(i,o){return(i!=o.streamSeen||Math.min(o.basePos,o.overlayPos)<i.start)&&(o.streamSeen=i,o.basePos=o.overlayPos=i.start),i.start==o.basePos&&(o.baseCur=t.token(i,o.base),o.basePos=i.pos),i.start==o.overlayPos&&(i.pos=i.start,o.overlayCur=n.token(i,o.overlay),o.overlayPos=i.pos),i.pos=Math.min(o.basePos,o.overlayPos),o.overlayCur==null?o.baseCur:o.baseCur!=null&&o.overlay.combineTokens||r&&o.overlay.combineTokens==null?o.baseCur+" "+o.overlayCur:o.overlayCur},indent:t.indent&&function(i,o,a){return t.indent(i.base,o,a)},electricChars:t.electricChars,innerMode:function(i){return{state:i.base,mode:t}},blankLine:function(i){var o,a;return t.blankLine&&(o=t.blankLine(i.base)),n.blankLine&&(a=n.blankLine(i.overlay)),a==null?o:r&&o!=null?o+" "+a:a}}}},VUt=function(e){var t=/^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i;e.defineMode("gfm",function(n,r){var i=0;function o(c){return c.code=!1,null}var a={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(c){return{code:c.code,codeBlock:c.codeBlock,ateSpace:c.ateSpace}},token:function(c,u){if(u.combineTokens=null,u.codeBlock)return c.match(/^```+/)?(u.codeBlock=!1,null):(c.skipToEnd(),null);if(c.sol()&&(u.code=!1),c.sol()&&c.match(/^```+/))return c.skipToEnd(),u.codeBlock=!0,null;if(c.peek()==="`"){c.next();var d=c.pos;c.eatWhile("`");var h=1+c.pos-d;return u.code?h===i&&(u.code=!1):(i=h,u.code=!0),null}else if(u.code)return c.next(),null;if(c.eatSpace())return u.ateSpace=!0,null;if((c.sol()||u.ateSpace)&&(u.ateSpace=!1,r.gitHubSpice!==!1)){if(c.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/))return u.combineTokens=!0,"link";if(c.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return u.combineTokens=!0,"link"}return c.match(t)&&c.string.slice(c.start-2,c.start)!="]("&&(c.start==0||/\W/.test(c.string.charAt(c.start-1)))?(u.combineTokens=!0,"link"):(c.next(),null)},blankLine:o},s={taskLists:!0,strikethrough:!0,emoji:!0};for(var l in r)s[l]=r[l];return s.name="markdown",e.overlayMode(e.getMode(n,s),a)},"markdown"),e.defineMIME("text/x-gfm","gfm")},KUt=function(e){e.defineMode("markdown",function(t,n){var r=e.getMode(t,"text/html"),i=r.name=="null";function o(N){if(e.findModeByName){var B=e.findModeByName(N);B&&(N=B.mime||B.mimes[0])}var V=e.getMode(t,N);return V.name=="null"?null:V}n.highlightFormatting===void 0&&(n.highlightFormatting=!1),n.maxBlockquoteDepth===void 0&&(n.maxBlockquoteDepth=0),n.taskLists===void 0&&(n.taskLists=!1),n.strikethrough===void 0&&(n.strikethrough=!1),n.emoji===void 0&&(n.emoji=!1),n.fencedCodeBlockHighlighting===void 0&&(n.fencedCodeBlockHighlighting=!0),n.fencedCodeBlockDefaultMode===void 0&&(n.fencedCodeBlockDefaultMode="text/plain"),n.xml===void 0&&(n.xml=!0),n.tokenTypeOverrides===void 0&&(n.tokenTypeOverrides={});var a={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var s in a)a.hasOwnProperty(s)&&n.tokenTypeOverrides[s]&&(a[s]=n.tokenTypeOverrides[s]);var l=/^([*\-_])(?:\s*\1){2,}\s*$/,c=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,u=/^\[(x| )\](?=\s)/i,d=n.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,h=/^ {0,3}(?:\={1,}|-{2,})\s*$/,p=/^[^#!\[\]*_\\<>` "'(~:]+/,m=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,v=/^\s*\[[^\]]+?\]:.*$/,y=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,S=" ";function b(N,B,V){return B.f=B.inline=V,V(N,B)}function C(N,B,V){return B.f=B.block=V,V(N,B)}function _(N){return!N||!/\S/.test(N.string)}function T(N){if(N.linkTitle=!1,N.linkHref=!1,N.linkText=!1,N.em=!1,N.strong=!1,N.strikethrough=!1,N.quote=0,N.indentedCode=!1,N.f==E){var B=i;if(!B){var V=e.innerMode(r,N.htmlState);B=V.mode.name=="xml"&&V.state.tagStart===null&&!V.state.context&&V.state.tokenize.isInText}B&&(N.f=D,N.block=x,N.htmlState=null)}return N.trailingSpace=0,N.trailingSpaceNewLine=!1,N.prevLine=N.thisLine,N.thisLine={stream:null},null}function x(N,B){var V=N.column()===B.indentation,G=_(B.prevLine.stream),ie=B.indentedCode,ce=B.prevLine.hr,fe=B.list!==!1,ee=(B.listStack[B.listStack.length-1]||0)+3;B.indentedCode=!1;var ne=B.indentation;if(B.indentationDiff===null&&(B.indentationDiff=B.indentation,fe)){for(B.list=null;ne<B.listStack[B.listStack.length-1];)B.listStack.pop(),B.listStack.length?B.indentation=B.listStack[B.listStack.length-1]:B.list=!1;B.list!==!1&&(B.indentationDiff=ne-B.listStack[B.listStack.length-1])}var ue=!G&&!ce&&!B.prevLine.header&&(!fe||!ie)&&!B.prevLine.fencedCodeEnd,ye=(B.list===!1||ce||G)&&B.indentation<=ee&&N.match(l),me=null;if(B.indentationDiff>=4&&(ie||B.prevLine.fencedCodeEnd||B.prevLine.header||G))return N.skipToEnd(),B.indentedCode=!0,a.code;if(N.eatSpace())return null;if(V&&B.indentation<=ee&&(me=N.match(d))&&me[1].length<=6)return B.quote=0,B.header=me[1].length,B.thisLine.header=!0,n.highlightFormatting&&(B.formatting="header"),B.f=B.inline,M(B);if(B.indentation<=ee&&N.eat(">"))return B.quote=V?1:B.quote+1,n.highlightFormatting&&(B.formatting="quote"),N.eatSpace(),M(B);if(!ye&&!B.setext&&V&&B.indentation<=ee&&(me=N.match(c))){var pe=me[1]?"ol":"ul";return B.indentation=ne+N.current().length,B.list=!0,B.quote=0,B.listStack.push(B.indentation),B.em=!1,B.strong=!1,B.code=!1,B.strikethrough=!1,n.taskLists&&N.match(u,!1)&&(B.taskList=!0),B.f=B.inline,n.highlightFormatting&&(B.formatting=["list","list-"+pe]),M(B)}else{if(V&&B.indentation<=ee&&(me=N.match(m,!0)))return B.quote=0,B.fencedEndRE=new RegExp(me[1]+"+ *$"),B.localMode=n.fencedCodeBlockHighlighting&&o(me[2]||n.fencedCodeBlockDefaultMode),B.localMode&&(B.localState=e.startState(B.localMode)),B.f=B.block=k,n.highlightFormatting&&(B.formatting="code-block"),B.code=-1,M(B);if(B.setext||(!ue||!fe)&&!B.quote&&B.list===!1&&!B.code&&!ye&&!v.test(N.string)&&(me=N.lookAhead(1))&&(me=me.match(h)))return B.setext?(B.header=B.setext,B.setext=0,N.skipToEnd(),n.highlightFormatting&&(B.formatting="header")):(B.header=me[0].charAt(0)=="="?1:2,B.setext=B.header),B.thisLine.header=!0,B.f=B.inline,M(B);if(ye)return N.skipToEnd(),B.hr=!0,B.thisLine.hr=!0,a.hr;if(N.peek()==="[")return b(N,B,z)}return b(N,B,B.inline)}function E(N,B){var V=r.token(N,B.htmlState);if(!i){var G=e.innerMode(r,B.htmlState);(G.mode.name=="xml"&&G.state.tagStart===null&&!G.state.context&&G.state.tokenize.isInText||B.md_inside&&N.current().indexOf(">")>-1)&&(B.f=D,B.block=x,B.htmlState=null)}return V}function k(N,B){var V=B.listStack[B.listStack.length-1]||0,G=B.indentation<V,ie=V+3;if(B.fencedEndRE&&B.indentation<=ie&&(G||N.match(B.fencedEndRE))){n.highlightFormatting&&(B.formatting="code-block");var ce;return G||(ce=M(B)),B.localMode=B.localState=null,B.block=x,B.f=D,B.fencedEndRE=null,B.code=0,B.thisLine.fencedCodeEnd=!0,G?C(N,B,B.block):ce}else return B.localMode?B.localMode.token(N,B.localState):(N.skipToEnd(),a.code)}function M(N){var B=[];if(N.formatting){B.push(a.formatting),typeof N.formatting=="string"&&(N.formatting=[N.formatting]);for(var V=0;V<N.formatting.length;V++)B.push(a.formatting+"-"+N.formatting[V]),N.formatting[V]==="header"&&B.push(a.formatting+"-"+N.formatting[V]+"-"+N.header),N.formatting[V]==="quote"&&(!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=N.quote?B.push(a.formatting+"-"+N.formatting[V]+"-"+N.quote):B.push("error"))}if(N.taskOpen)return B.push("meta"),B.length?B.join(" "):null;if(N.taskClosed)return B.push("property"),B.length?B.join(" "):null;if(N.linkHref?B.push(a.linkHref,"url"):(N.strong&&B.push(a.strong),N.em&&B.push(a.em),N.strikethrough&&B.push(a.strikethrough),N.emoji&&B.push(a.emoji),N.linkText&&B.push(a.linkText),N.code&&B.push(a.code),N.image&&B.push(a.image),N.imageAltText&&B.push(a.imageAltText,"link"),N.imageMarker&&B.push(a.imageMarker)),N.header&&B.push(a.header,a.header+"-"+N.header),N.quote&&(B.push(a.quote),!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=N.quote?B.push(a.quote+"-"+N.quote):B.push(a.quote+"-"+n.maxBlockquoteDepth)),N.list!==!1){var G=(N.listStack.length-1)%3;G?G===1?B.push(a.list2):B.push(a.list3):B.push(a.list1)}return N.trailingSpaceNewLine?B.push("trailing-space-new-line"):N.trailingSpace&&B.push("trailing-space-"+(N.trailingSpace%2?"a":"b")),B.length?B.join(" "):null}function P(N,B){if(N.match(p,!0))return M(B)}function D(N,B){var V=B.text(N,B);if(typeof V<"u")return V;if(B.list)return B.list=null,M(B);if(B.taskList){var G=N.match(u,!0)[1]===" ";return G?B.taskOpen=!0:B.taskClosed=!0,n.highlightFormatting&&(B.formatting="task"),B.taskList=!1,M(B)}if(B.taskOpen=!1,B.taskClosed=!1,B.header&&N.match(/^#+$/,!0))return n.highlightFormatting&&(B.formatting="header"),M(B);var ie=N.next();if(B.linkTitle){B.linkTitle=!1;var ce=ie;ie==="("&&(ce=")"),ce=(ce+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var fe="^\\s*(?:[^"+ce+"\\\\]+|\\\\\\\\|\\\\.)"+ce;if(N.match(new RegExp(fe),!0))return a.linkHref}if(ie==="`"){var ee=B.formatting;n.highlightFormatting&&(B.formatting="code"),N.eatWhile("`");var ne=N.current().length;if(B.code==0&&(!B.quote||ne==1))return B.code=ne,M(B);if(ne==B.code){var ue=M(B);return B.code=0,ue}else return B.formatting=ee,M(B)}else if(B.code)return M(B);if(ie==="\\"&&(N.next(),n.highlightFormatting)){var ye=M(B),me=a.formatting+"-escape";return ye?ye+" "+me:me}if(ie==="!"&&N.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return B.imageMarker=!0,B.image=!0,n.highlightFormatting&&(B.formatting="image"),M(B);if(ie==="["&&B.imageMarker&&N.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return B.imageMarker=!1,B.imageAltText=!0,n.highlightFormatting&&(B.formatting="image"),M(B);if(ie==="]"&&B.imageAltText){n.highlightFormatting&&(B.formatting="image");var ye=M(B);return B.imageAltText=!1,B.image=!1,B.inline=B.f=A,ye}if(ie==="["&&!B.image)return B.linkText&&N.match(/^.*?\]/)||(B.linkText=!0,n.highlightFormatting&&(B.formatting="link")),M(B);if(ie==="]"&&B.linkText){n.highlightFormatting&&(B.formatting="link");var ye=M(B);return B.linkText=!1,B.inline=B.f=N.match(/\(.*?\)| ?\[.*?\]/,!1)?A:D,ye}if(ie==="<"&&N.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){B.f=B.inline=R,n.highlightFormatting&&(B.formatting="link");var ye=M(B);return ye?ye+=" ":ye="",ye+a.linkInline}if(ie==="<"&&N.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){B.f=B.inline=R,n.highlightFormatting&&(B.formatting="link");var ye=M(B);return ye?ye+=" ":ye="",ye+a.linkEmail}if(n.xml&&ie==="<"&&N.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var pe=N.string.indexOf(">",N.pos);if(pe!=-1){var he=N.string.substring(N.start,pe);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(he)&&(B.md_inside=!0)}return N.backUp(1),B.htmlState=e.startState(r),C(N,B,E)}if(n.xml&&ie==="<"&&N.match(/^\/\w*?>/))return B.md_inside=!1,"tag";if(ie==="*"||ie==="_"){for(var _e=1,le=N.pos==1?" ":N.string.charAt(N.pos-2);_e<3&&N.eat(ie);)_e++;var xe=N.peek()||" ",we=!/\s/.test(xe)&&(!y.test(xe)||/\s/.test(le)||y.test(le)),De=!/\s/.test(le)&&(!y.test(le)||/\s/.test(xe)||y.test(xe)),Fe=null,Ce=null;if(_e%2&&(!B.em&&we&&(ie==="*"||!De||y.test(le))?Fe=!0:B.em==ie&&De&&(ie==="*"||!we||y.test(xe))&&(Fe=!1)),_e>1&&(!B.strong&&we&&(ie==="*"||!De||y.test(le))?Ce=!0:B.strong==ie&&De&&(ie==="*"||!we||y.test(xe))&&(Ce=!1)),Ce!=null||Fe!=null){n.highlightFormatting&&(B.formatting=Fe==null?"strong":Ce==null?"em":"strong em"),Fe===!0&&(B.em=ie),Ce===!0&&(B.strong=ie);var ue=M(B);return Fe===!1&&(B.em=!1),Ce===!1&&(B.strong=!1),ue}}else if(ie===" "&&(N.eat("*")||N.eat("_"))){if(N.peek()===" ")return M(B);N.backUp(1)}if(n.strikethrough){if(ie==="~"&&N.eatWhile(ie)){if(B.strikethrough){n.highlightFormatting&&(B.formatting="strikethrough");var ue=M(B);return B.strikethrough=!1,ue}else if(N.match(/^[^\s]/,!1))return B.strikethrough=!0,n.highlightFormatting&&(B.formatting="strikethrough"),M(B)}else if(ie===" "&&N.match("~~",!0)){if(N.peek()===" ")return M(B);N.backUp(2)}}if(n.emoji&&ie===":"&&N.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){B.emoji=!0,n.highlightFormatting&&(B.formatting="emoji");var Te=M(B);return B.emoji=!1,Te}return ie===" "&&(N.match(/^ +$/,!1)?B.trailingSpace++:B.trailingSpace&&(B.trailingSpaceNewLine=!0)),M(B)}function R(N,B){var V=N.next();if(V===">"){B.f=B.inline=D,n.highlightFormatting&&(B.formatting="link");var G=M(B);return G?G+=" ":G="",G+a.linkInline}return N.match(/^[^>]+/,!0),a.linkInline}function A(N,B){if(N.eatSpace())return null;var V=N.next();return V==="("||V==="["?(B.f=B.inline=F(V==="("?")":"]"),n.highlightFormatting&&(B.formatting="link-string"),B.linkHref=!0,M(B)):"error"}var H={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function F(N){return function(B,V){var G=B.next();if(G===N){V.f=V.inline=D,n.highlightFormatting&&(V.formatting="link-string");var ie=M(V);return V.linkHref=!1,ie}return B.match(H[N]),V.linkHref=!0,M(V)}}function z(N,B){return N.match(/^([^\]\\]|\\.)*\]:/,!1)?(B.f=W,N.next(),n.highlightFormatting&&(B.formatting="link"),B.linkText=!0,M(B)):b(N,B,D)}function W(N,B){if(N.match("]:",!0)){B.f=B.inline=q,n.highlightFormatting&&(B.formatting="link");var V=M(B);return B.linkText=!1,V}return N.match(/^([^\]\\]|\\.)+/,!0),a.linkText}function q(N,B){return N.eatSpace()?null:(N.match(/^[^\s]+/,!0),N.peek()===void 0?B.linkTitle=!0:N.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),B.f=B.inline=D,a.linkHref+" url")}var Z={startState:function(){return{f:x,prevLine:{stream:null},thisLine:{stream:null},block:x,htmlState:null,indentation:0,inline:D,text:P,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(N){return{f:N.f,prevLine:N.prevLine,thisLine:N.thisLine,block:N.block,htmlState:N.htmlState&&e.copyState(r,N.htmlState),indentation:N.indentation,localMode:N.localMode,localState:N.localMode?e.copyState(N.localMode,N.localState):null,inline:N.inline,text:N.text,formatting:!1,linkText:N.linkText,linkTitle:N.linkTitle,linkHref:N.linkHref,code:N.code,em:N.em,strong:N.strong,strikethrough:N.strikethrough,emoji:N.emoji,header:N.header,setext:N.setext,hr:N.hr,taskList:N.taskList,list:N.list,listStack:N.listStack.slice(0),quote:N.quote,indentedCode:N.indentedCode,trailingSpace:N.trailingSpace,trailingSpaceNewLine:N.trailingSpaceNewLine,md_inside:N.md_inside,fencedEndRE:N.fencedEndRE}},token:function(N,B){if(B.formatting=!1,N!=B.thisLine.stream){if(B.header=0,B.hr=!1,N.match(/^\s*$/,!0))return T(B),null;if(B.prevLine=B.thisLine,B.thisLine={stream:N},B.taskList=!1,B.trailingSpace=0,B.trailingSpaceNewLine=!1,!B.localState&&(B.f=B.block,B.f!=E)){var V=N.match(/^\s*/,!0)[0].replace(/\t/g,S).length;if(B.indentation=V,B.indentationDiff=null,V>0)return null}}return B.f(N,B)},innerMode:function(N){return N.block==E?{state:N.htmlState,mode:r}:N.localState?{state:N.localState,mode:N.localMode}:{state:N,mode:Z}},indent:function(N,B,V){return N.block==E&&r.indent?r.indent(N.htmlState,B,V):N.localState&&N.localMode.indent?N.localMode.indent(N.localState,B,V):e.Pass},blankLine:T,getType:M,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Z},"xml"),e.defineMIME("text/markdown","markdown"),e.defineMIME("text/x-markdown","markdown")},qUt=function(e){var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",function(r,i){var o=r.indentUnit,a={},s=i.htmlMode?t:n;for(var l in s)a[l]=s[l];for(var l in i)a[l]=i[l];var c,u;function d(A,H){function F(q){return H.tokenize=q,q(A,H)}var z=A.next();if(z=="<")return A.eat("!")?A.eat("[")?A.match("CDATA[")?F(m("atom","]]>")):null:A.match("--")?F(m("comment","-->")):A.match("DOCTYPE",!0,!0)?(A.eatWhile(/[\w\._\-]/),F(v(1))):null:A.eat("?")?(A.eatWhile(/[\w\._\-]/),H.tokenize=m("meta","?>"),"meta"):(c=A.eat("/")?"closeTag":"openTag",H.tokenize=h,"tag bracket");if(z=="&"){var W;return A.eat("#")?A.eat("x")?W=A.eatWhile(/[a-fA-F\d]/)&&A.eat(";"):W=A.eatWhile(/[\d]/)&&A.eat(";"):W=A.eatWhile(/[\w\.\-:]/)&&A.eat(";"),W?"atom":"error"}else return A.eatWhile(/[^&<]/),null}d.isInText=!0;function h(A,H){var F=A.next();if(F==">"||F=="/"&&A.eat(">"))return H.tokenize=d,c=F==">"?"endTag":"selfcloseTag","tag bracket";if(F=="=")return c="equals",null;if(F=="<"){H.tokenize=d,H.state=_,H.tagName=H.tagStart=null;var z=H.tokenize(A,H);return z?z+" tag error":"tag error"}else return/[\'\"]/.test(F)?(H.tokenize=p(F),H.stringStartCol=A.column(),H.tokenize(A,H)):(A.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function p(A){var H=function(F,z){for(;!F.eol();)if(F.next()==A){z.tokenize=h;break}return"string"};return H.isInAttribute=!0,H}function m(A,H){return function(F,z){for(;!F.eol();){if(F.match(H)){z.tokenize=d;break}F.next()}return A}}function v(A){return function(H,F){for(var z;(z=H.next())!=null;){if(z=="<")return F.tokenize=v(A+1),F.tokenize(H,F);if(z==">")if(A==1){F.tokenize=d;break}else return F.tokenize=v(A-1),F.tokenize(H,F)}return"meta"}}function y(A){return A&&A.toLowerCase()}function S(A,H,F){this.prev=A.context,this.tagName=H||"",this.indent=A.indented,this.startOfLine=F,(a.doNotIndent.hasOwnProperty(H)||A.context&&A.context.noIndent)&&(this.noIndent=!0)}function b(A){A.context&&(A.context=A.context.prev)}function C(A,H){for(var F;;){if(!A.context||(F=A.context.tagName,!a.contextGrabbers.hasOwnProperty(y(F))||!a.contextGrabbers[y(F)].hasOwnProperty(y(H))))return;b(A)}}function _(A,H,F){return A=="openTag"?(F.tagStart=H.column(),T):A=="closeTag"?x:_}function T(A,H,F){return A=="word"?(F.tagName=H.current(),u="tag",M):a.allowMissingTagName&&A=="endTag"?(u="tag bracket",M(A,H,F)):(u="error",T)}function x(A,H,F){if(A=="word"){var z=H.current();return F.context&&F.context.tagName!=z&&a.implicitlyClosed.hasOwnProperty(y(F.context.tagName))&&b(F),F.context&&F.context.tagName==z||a.matchClosing===!1?(u="tag",E):(u="tag error",k)}else return a.allowMissingTagName&&A=="endTag"?(u="tag bracket",E(A,H,F)):(u="error",k)}function E(A,H,F){return A!="endTag"?(u="error",E):(b(F),_)}function k(A,H,F){return u="error",E(A,H,F)}function M(A,H,F){if(A=="word")return u="attribute",P;if(A=="endTag"||A=="selfcloseTag"){var z=F.tagName,W=F.tagStart;return F.tagName=F.tagStart=null,A=="selfcloseTag"||a.autoSelfClosers.hasOwnProperty(y(z))?C(F,z):(C(F,z),F.context=new S(F,z,W==F.indented)),_}return u="error",M}function P(A,H,F){return A=="equals"?D:(a.allowMissing||(u="error"),M(A,H,F))}function D(A,H,F){return A=="string"?R:A=="word"&&a.allowUnquoted?(u="string",M):(u="error",M(A,H,F))}function R(A,H,F){return A=="string"?R:M(A,H,F)}return{startState:function(A){var H={tokenize:d,state:_,indented:A||0,tagName:null,tagStart:null,context:null};return A!=null&&(H.baseIndent=A),H},token:function(A,H){if(!H.tagName&&A.sol()&&(H.indented=A.indentation()),A.eatSpace())return null;c=null;var F=H.tokenize(A,H);return(F||c)&&F!="comment"&&(u=null,H.state=H.state(c||F,A,H),u&&(F=u=="error"?F+" error":u)),F},indent:function(A,H,F){var z=A.context;if(A.tokenize.isInAttribute)return A.tagStart==A.indented?A.stringStartCol+1:A.indented+o;if(z&&z.noIndent)return e.Pass;if(A.tokenize!=h&&A.tokenize!=d)return F?F.match(/^(\s*)/)[0].length:0;if(A.tagName)return a.multilineTagIndentPastTag!==!1?A.tagStart+A.tagName.length+2:A.tagStart+o*(a.multilineTagIndentFactor||1);if(a.alignCDATA&&/<!\[CDATA\[/.test(H))return 0;var W=H&&/^<(\/)?([\w_:\.-]*)/.exec(H);if(W&&W[1])for(;z;)if(z.tagName==W[2]){z=z.prev;break}else if(a.implicitlyClosed.hasOwnProperty(y(z.tagName)))z=z.prev;else break;else if(W)for(;z;){var q=a.contextGrabbers[y(z.tagName)];if(q&&q.hasOwnProperty(y(W[2])))z=z.prev;else break}for(;z&&z.prev&&!z.startOfLine;)z=z.prev;return z?z.indent+o:A.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:a.htmlMode?"html":"xml",helperType:a.htmlMode?"html":"xml",skipAttribute:function(A){A.state==D&&(A.state=M)},xmlCurrentTag:function(A){return A.tagName?{name:A.tagName,close:A.type=="closeTag"}:null},xmlCurrentContext:function(A){for(var H=[],F=A.context;F;F=F.prev)H.push(F.tagName);return H.reverse()}}}),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})},GUt=function(e){var t=0,n=1,r=2;e.defineMode("yaml-frontmatter",function(i,o){var a=e.getMode(i,"yaml"),s=e.getMode(i,o&&o.base||"gfm");function l(c){return c.state==n?{mode:a,state:c.yaml}:{mode:s,state:c.inner}}return{startState:function(){return{state:t,yaml:null,inner:e.startState(s)}},copyState:function(c){return{state:c.state,yaml:c.yaml&&e.copyState(a,c.yaml),inner:e.copyState(s,c.inner)}},token:function(c,u){if(u.state==t)return c.match("---",!1)?(u.state=n,u.yaml=e.startState(a),a.token(c,u.yaml)):(u.state=r,s.token(c,u.inner));if(u.state==n){var d=c.sol()&&c.match(/(---|\.\.\.)/,!1),h=a.token(c,u.yaml);return d&&(u.state=r,u.yaml=null),h}else return s.token(c,u.inner)},innerMode:l,indent:function(c,u,d){var h=l(c);return h.mode.indent?h.mode.indent(h.state,u,d):e.Pass},blankLine:function(c){var u=l(c);if(u.mode.blankLine)return u.mode.blankLine(u.state)}}})},YUt=function(e){e.defineMode("yaml",function(){var t=["true","false","on","off","yes","no"],n=new RegExp("\\b(("+t.join(")|(")+"))$","i");return{token:function(r,i){var o=r.peek(),a=i.escaped;if(i.escaped=!1,o=="#"&&(r.pos==0||/\s/.test(r.string.charAt(r.pos-1))))return r.skipToEnd(),"comment";if(r.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(i.literal&&r.indentation()>i.keyCol)return r.skipToEnd(),"string";if(i.literal&&(i.literal=!1),r.sol()){if(i.keyCol=0,i.pair=!1,i.pairStart=!1,r.match("---")||r.match("..."))return"def";if(r.match(/\s*-\s+/))return"meta"}if(r.match(/^(\{|\}|\[|\])/))return o=="{"?i.inlinePairs++:o=="}"?i.inlinePairs--:o=="["?i.inlineList++:i.inlineList--,"meta";if(i.inlineList>0&&!a&&o==",")return r.next(),"meta";if(i.inlinePairs>0&&!a&&o==",")return i.keyCol=0,i.pair=!1,i.pairStart=!1,r.next(),"meta";if(i.pairStart){if(r.match(/^\s*(\||\>)\s*/))return i.literal=!0,"meta";if(r.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable-2";if(i.inlinePairs==0&&r.match(/^\s*-?[0-9\.\,]+\s?$/)||i.inlinePairs>0&&r.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(r.match(n))return"keyword"}return!i.pair&&r.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)?(i.pair=!0,i.keyCol=r.indentation(),"atom"):i.pair&&r.match(/^:\s*/)?(i.pairStart=!0,"meta"):(i.pairStart=!1,i.escaped=o=="\\",r.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},lineComment:"#",fold:"indent"}}),e.defineMIME("text/x-yaml","yaml"),e.defineMIME("text/yaml","yaml")};var XUt=function(e){e===void 0&&(e={});var t=e.accept;t===void 0&&(t="");var n=e.capture;n===void 0&&(n=!1);var r=e.multiple;r===void 0&&(r=!1);var i=document.createElement("input");return i.type="file",i.accept=t,i.capture=n,i.multiple=r,i},D4e=function(e){return new Promise(function(t){var n=XUt(e);n.addEventListener("change",function(){return t(n.files||null)}),setTimeout(function(){var r=new MouseEvent("click");n.dispatchEvent(r)},0)})},QUt=/[a-zA-Z0-9_\u0392-\u03c9\u00c0-\u00ff\u0600-\u06ff]+|[\u4e00-\u9fff\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af]+/g,ZUt=function(e){var t=e.match(QUt),n=0;if(!t)return 0;for(var r=0;r<t.length;r++)t[r].charCodeAt(0)>=19968?n+=t[r].length:n+=1;return n};const JUt=vi(ZUt),rq=function(e){if(e==null)return rWt;if(typeof e=="string")return nWt(e);if(typeof e=="object")return Array.isArray(e)?eWt(e):tWt(e);if(typeof e=="function")return ZM(e);throw new Error("Expected function, string, or object as test")};function eWt(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=rq(e[n]);return ZM(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].call(this,...i))return!0;return!1}}function tWt(e){return ZM(t);function t(n){let r;for(r in e)if(n[r]!==e[r])return!1;return!0}}function nWt(e){return ZM(t);function t(n){return n&&n.type===e}}function ZM(e){return t;function t(n,...r){return!!(n&&typeof n=="object"&&"type"in n&&e.call(this,n,...r))}}function rWt(){return!0}const iWt=!0,Oae=!1,oWt="skip",L4e=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null);const i=rq(t),o=r?-1:1;a(e,void 0,[])();function a(s,l,c){const u=s&&typeof s=="object"?s:{};if(typeof u.type=="string"){const h=typeof u.tagName=="string"?u.tagName:typeof u.name=="string"?u.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(s.type+(h?"<"+h+">":""))+")"})}return d;function d(){let h=[],p,m,v;if((!t||i(s,l,c[c.length-1]||null))&&(h=aWt(n(s,c)),h[0]===Oae))return h;if(s.children&&h[0]!==oWt)for(m=(r?s.children.length:-1)+o,v=c.concat(s);m>-1&&m<s.children.length;){if(p=a(s.children[m],m,v)(),p[0]===Oae)return p;m=typeof p[1]=="number"?p[1]:m+o}return h}}};function aWt(e){return Array.isArray(e)?e:typeof e=="number"?[iWt,e]:[e]}const v4=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null),L4e(e,t,i,r);function i(o,a){const s=a[a.length-1];return n(o,s?s.children.indexOf(o):null,s)}};var Kl="top",Iu="bottom",$u="right",ql="left",iq="auto",y4=[Kl,Iu,$u,ql],xS="start",L_="end",sWt="clippingParents",F4e="viewport",Zx="popper",lWt="reference",Pae=y4.reduce(function(e,t){return e.concat([t+"-"+xS,t+"-"+L_])},[]),j4e=[].concat(y4,[iq]).reduce(function(e,t){return e.concat([t,t+"-"+xS,t+"-"+L_])},[]),cWt="beforeRead",uWt="read",dWt="afterRead",fWt="beforeMain",hWt="main",pWt="afterMain",mWt="beforeWrite",gWt="write",vWt="afterWrite",yWt=[cWt,uWt,dWt,fWt,hWt,pWt,mWt,gWt,vWt];function Xf(e){return e?(e.nodeName||"").toLowerCase():null}function jc(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Rv(e){var t=jc(e).Element;return e instanceof t||e instanceof Element}function Cu(e){var t=jc(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function oq(e){if(typeof ShadowRoot>"u")return!1;var t=jc(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function bWt(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!Cu(o)||!Xf(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function SWt(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,c){return l[c]="",l},{});!Cu(i)||!Xf(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const B4e={name:"applyStyles",enabled:!0,phase:"write",fn:bWt,effect:SWt,requires:["computeStyles"]};function zf(e){return e.split("-")[0]}var rv=Math.max,Mk=Math.min,wS=Math.round;function zB(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function H4e(){return!/^((?!chrome|android).)*safari/i.test(zB())}function _S(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Cu(e)&&(i=e.offsetWidth>0&&wS(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&wS(r.height)/e.offsetHeight||1);var a=Rv(e)?jc(e):window,s=a.visualViewport,l=!H4e()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/i,u=(r.top+(l&&s?s.offsetTop:0))/o,d=r.width/i,h=r.height/o;return{width:d,height:h,top:u,right:c+d,bottom:u+h,left:c,x:c,y:u}}function aq(e){var t=_S(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function z4e(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&oq(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function yp(e){return jc(e).getComputedStyle(e)}function CWt(e){return["table","td","th"].indexOf(Xf(e))>=0}function Eg(e){return((Rv(e)?e.ownerDocument:e.document)||window.document).documentElement}function JM(e){return Xf(e)==="html"?e:e.assignedSlot||e.parentNode||(oq(e)?e.host:null)||Eg(e)}function Mae(e){return!Cu(e)||yp(e).position==="fixed"?null:e.offsetParent}function xWt(e){var t=/firefox/i.test(zB()),n=/Trident/i.test(zB());if(n&&Cu(e)){var r=yp(e);if(r.position==="fixed")return null}var i=JM(e);for(oq(i)&&(i=i.host);Cu(i)&&["html","body"].indexOf(Xf(i))<0;){var o=yp(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function b4(e){for(var t=jc(e),n=Mae(e);n&&CWt(n)&&yp(n).position==="static";)n=Mae(n);return n&&(Xf(n)==="html"||Xf(n)==="body"&&yp(n).position==="static")?t:n||xWt(e)||t}function sq(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function cw(e,t,n){return rv(e,Mk(t,n))}function wWt(e,t,n){var r=cw(e,t,n);return r>n?n:r}function U4e(){return{top:0,right:0,bottom:0,left:0}}function W4e(e){return Object.assign({},U4e(),e)}function V4e(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var _Wt=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,W4e(typeof t!="number"?t:V4e(t,y4))};function EWt(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=zf(n.placement),l=sq(s),c=[ql,$u].indexOf(s)>=0,u=c?"height":"width";if(!(!o||!a)){var d=_Wt(i.padding,n),h=aq(o),p=l==="y"?Kl:ql,m=l==="y"?Iu:$u,v=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],y=a[l]-n.rects.reference[l],S=b4(o),b=S?l==="y"?S.clientHeight||0:S.clientWidth||0:0,C=v/2-y/2,_=d[p],T=b-h[u]-d[m],x=b/2-h[u]/2+C,E=cw(_,x,T),k=l;n.modifiersData[r]=(t={},t[k]=E,t.centerOffset=E-x,t)}}function TWt(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||z4e(t.elements.popper,i)&&(t.elements.arrow=i))}const kWt={name:"arrow",enabled:!0,phase:"main",fn:EWt,effect:TWt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ES(e){return e.split("-")[1]}var OWt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function PWt(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:wS(n*i)/i||0,y:wS(r*i)/i||0}}function Iae(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,h=a.x,p=h===void 0?0:h,m=a.y,v=m===void 0?0:m,y=typeof u=="function"?u({x:p,y:v}):{x:p,y:v};p=y.x,v=y.y;var S=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),C=ql,_=Kl,T=window;if(c){var x=b4(n),E="clientHeight",k="clientWidth";if(x===jc(n)&&(x=Eg(n),yp(x).position!=="static"&&s==="absolute"&&(E="scrollHeight",k="scrollWidth")),x=x,i===Kl||(i===ql||i===$u)&&o===L_){_=Iu;var M=d&&x===T&&T.visualViewport?T.visualViewport.height:x[E];v-=M-r.height,v*=l?1:-1}if(i===ql||(i===Kl||i===Iu)&&o===L_){C=$u;var P=d&&x===T&&T.visualViewport?T.visualViewport.width:x[k];p-=P-r.width,p*=l?1:-1}}var D=Object.assign({position:s},c&&OWt),R=u===!0?PWt({x:p,y:v},jc(n)):{x:p,y:v};if(p=R.x,v=R.y,l){var A;return Object.assign({},D,(A={},A[_]=b?"0":"",A[C]=S?"0":"",A.transform=(T.devicePixelRatio||1)<=1?"translate("+p+"px, "+v+"px)":"translate3d("+p+"px, "+v+"px, 0)",A))}return Object.assign({},D,(t={},t[_]=b?v+"px":"",t[C]=S?p+"px":"",t.transform="",t))}function MWt(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:zf(t.placement),variation:ES(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Iae(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Iae(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const IWt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:MWt,data:{}};var C5={passive:!0};function $Wt(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,l=jc(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",n.update,C5)}),s&&l.addEventListener("resize",n.update,C5),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",n.update,C5)}),s&&l.removeEventListener("resize",n.update,C5)}}const RWt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:$Wt,data:{}};var AWt={left:"right",right:"left",bottom:"top",top:"bottom"};function l3(e){return e.replace(/left|right|bottom|top/g,function(t){return AWt[t]})}var NWt={start:"end",end:"start"};function $ae(e){return e.replace(/start|end/g,function(t){return NWt[t]})}function lq(e){var t=jc(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function cq(e){return _S(Eg(e)).left+lq(e).scrollLeft}function DWt(e,t){var n=jc(e),r=Eg(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=H4e();(c||!c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+cq(e),y:l}}function LWt(e){var t,n=Eg(e),r=lq(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=rv(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=rv(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+cq(e),l=-r.scrollTop;return yp(i||n).direction==="rtl"&&(s+=rv(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function uq(e){var t=yp(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function K4e(e){return["html","body","#document"].indexOf(Xf(e))>=0?e.ownerDocument.body:Cu(e)&&uq(e)?e:K4e(JM(e))}function uw(e,t){var n;t===void 0&&(t=[]);var r=K4e(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=jc(r),a=i?[o].concat(o.visualViewport||[],uq(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(uw(JM(a)))}function UB(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function FWt(e,t){var n=_S(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Rae(e,t,n){return t===F4e?UB(DWt(e,n)):Rv(t)?FWt(t,n):UB(LWt(Eg(e)))}function jWt(e){var t=uw(JM(e)),n=["absolute","fixed"].indexOf(yp(e).position)>=0,r=n&&Cu(e)?b4(e):e;return Rv(r)?t.filter(function(i){return Rv(i)&&z4e(i,r)&&Xf(i)!=="body"}):[]}function BWt(e,t,n,r){var i=t==="clippingParents"?jWt(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,c){var u=Rae(e,c,r);return l.top=rv(u.top,l.top),l.right=Mk(u.right,l.right),l.bottom=Mk(u.bottom,l.bottom),l.left=rv(u.left,l.left),l},Rae(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function q4e(e){var t=e.reference,n=e.element,r=e.placement,i=r?zf(r):null,o=r?ES(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case Kl:l={x:a,y:t.y-n.height};break;case Iu:l={x:a,y:t.y+t.height};break;case $u:l={x:t.x+t.width,y:s};break;case ql:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=i?sq(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case xS:l[c]=l[c]-(t[u]/2-n[u]/2);break;case L_:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function F_(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,s=n.boundary,l=s===void 0?sWt:s,c=n.rootBoundary,u=c===void 0?F4e:c,d=n.elementContext,h=d===void 0?Zx:d,p=n.altBoundary,m=p===void 0?!1:p,v=n.padding,y=v===void 0?0:v,S=W4e(typeof y!="number"?y:V4e(y,y4)),b=h===Zx?lWt:Zx,C=e.rects.popper,_=e.elements[m?b:h],T=BWt(Rv(_)?_:_.contextElement||Eg(e.elements.popper),l,u,a),x=_S(e.elements.reference),E=q4e({reference:x,element:C,strategy:"absolute",placement:i}),k=UB(Object.assign({},C,E)),M=h===Zx?k:x,P={top:T.top-M.top+S.top,bottom:M.bottom-T.bottom+S.bottom,left:T.left-M.left+S.left,right:M.right-T.right+S.right},D=e.modifiersData.offset;if(h===Zx&&D){var R=D[i];Object.keys(P).forEach(function(A){var H=[$u,Iu].indexOf(A)>=0?1:-1,F=[Kl,Iu].indexOf(A)>=0?"y":"x";P[A]+=R[F]*H})}return P}function HWt(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?j4e:l,u=ES(r),d=u?s?Pae:Pae.filter(function(m){return ES(m)===u}):y4,h=d.filter(function(m){return c.indexOf(m)>=0});h.length===0&&(h=d);var p=h.reduce(function(m,v){return m[v]=F_(e,{placement:v,boundary:i,rootBoundary:o,padding:a})[zf(v)],m},{});return Object.keys(p).sort(function(m,v){return p[m]-p[v]})}function zWt(e){if(zf(e)===iq)return[];var t=l3(e);return[$ae(e),t,$ae(t)]}function UWt(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,v=n.allowedAutoPlacements,y=t.options.placement,S=zf(y),b=S===y,C=l||(b||!m?[l3(y)]:zWt(y)),_=[y].concat(C).reduce(function(ie,ce){return ie.concat(zf(ce)===iq?HWt(t,{placement:ce,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:v}):ce)},[]),T=t.rects.reference,x=t.rects.popper,E=new Map,k=!0,M=_[0],P=0;P<_.length;P++){var D=_[P],R=zf(D),A=ES(D)===xS,H=[Kl,Iu].indexOf(R)>=0,F=H?"width":"height",z=F_(t,{placement:D,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),W=H?A?$u:ql:A?Iu:Kl;T[F]>x[F]&&(W=l3(W));var q=l3(W),Z=[];if(o&&Z.push(z[R]<=0),s&&Z.push(z[W]<=0,z[q]<=0),Z.every(function(ie){return ie})){M=D,k=!1;break}E.set(D,Z)}if(k)for(var N=m?3:1,B=function(ce){var fe=_.find(function(ee){var ne=E.get(ee);if(ne)return ne.slice(0,ce).every(function(ue){return ue})});if(fe)return M=fe,"break"},V=N;V>0;V--){var G=B(V);if(G==="break")break}t.placement!==M&&(t.modifiersData[r]._skip=!0,t.placement=M,t.reset=!0)}}const WWt={name:"flip",enabled:!0,phase:"main",fn:UWt,requiresIfExists:["offset"],data:{_skip:!1}};function Aae(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Nae(e){return[Kl,$u,Iu,ql].some(function(t){return e[t]>=0})}function VWt(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=F_(t,{elementContext:"reference"}),s=F_(t,{altBoundary:!0}),l=Aae(a,r),c=Aae(s,i,o),u=Nae(l),d=Nae(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const KWt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:VWt};function qWt(e,t,n){var r=zf(e),i=[ql,Kl].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[ql,$u].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function GWt(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=j4e.reduce(function(u,d){return u[d]=qWt(d,t.rects,o),u},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}const YWt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:GWt};function XWt(e){var t=e.state,n=e.name;t.modifiersData[n]=q4e({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const QWt={name:"popperOffsets",enabled:!0,phase:"read",fn:XWt,data:{}};function ZWt(e){return e==="x"?"y":"x"}function JWt(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,h=n.tether,p=h===void 0?!0:h,m=n.tetherOffset,v=m===void 0?0:m,y=F_(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),S=zf(t.placement),b=ES(t.placement),C=!b,_=sq(S),T=ZWt(_),x=t.modifiersData.popperOffsets,E=t.rects.reference,k=t.rects.popper,M=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,P=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(x){if(o){var A,H=_==="y"?Kl:ql,F=_==="y"?Iu:$u,z=_==="y"?"height":"width",W=x[_],q=W+y[H],Z=W-y[F],N=p?-k[z]/2:0,B=b===xS?E[z]:k[z],V=b===xS?-k[z]:-E[z],G=t.elements.arrow,ie=p&&G?aq(G):{width:0,height:0},ce=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:U4e(),fe=ce[H],ee=ce[F],ne=cw(0,E[z],ie[z]),ue=C?E[z]/2-N-ne-fe-P.mainAxis:B-ne-fe-P.mainAxis,ye=C?-E[z]/2+N+ne+ee+P.mainAxis:V+ne+ee+P.mainAxis,me=t.elements.arrow&&b4(t.elements.arrow),pe=me?_==="y"?me.clientTop||0:me.clientLeft||0:0,he=(A=D==null?void 0:D[_])!=null?A:0,_e=W+ue-he-pe,le=W+ye-he,xe=cw(p?Mk(q,_e):q,W,p?rv(Z,le):Z);x[_]=xe,R[_]=xe-W}if(s){var we,De=_==="x"?Kl:ql,Fe=_==="x"?Iu:$u,Ce=x[T],Te=T==="y"?"height":"width",ke=Ce+y[De],Pe=Ce-y[Fe],Ne=[Kl,ql].indexOf(S)!==-1,We=(we=D==null?void 0:D[T])!=null?we:0,Q=Ne?ke:Ce-E[Te]-k[Te]-We+P.altAxis,K=Ne?Ce+E[Te]+k[Te]-We-P.altAxis:Pe,J=p&&Ne?wWt(Q,Ce,K):cw(p?Q:ke,Ce,p?K:Pe);x[T]=J,R[T]=J-Ce}t.modifiersData[r]=R}}const eVt={name:"preventOverflow",enabled:!0,phase:"main",fn:JWt,requiresIfExists:["offset"]};function tVt(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function nVt(e){return e===jc(e)||!Cu(e)?lq(e):tVt(e)}function rVt(e){var t=e.getBoundingClientRect(),n=wS(t.width)/e.offsetWidth||1,r=wS(t.height)/e.offsetHeight||1;return n!==1||r!==1}function iVt(e,t,n){n===void 0&&(n=!1);var r=Cu(t),i=Cu(t)&&rVt(t),o=Eg(t),a=_S(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Xf(t)!=="body"||uq(o))&&(s=nVt(t)),Cu(t)?(l=_S(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=cq(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function oVt(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function aVt(e){var t=oVt(e);return yWt.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function sVt(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function lVt(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Dae={placement:"bottom",modifiers:[],strategy:"absolute"};function Lae(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function cVt(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?Dae:i;return function(s,l,c){c===void 0&&(c=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Dae,o),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},d=[],h=!1,p={state:u,setOptions:function(S){var b=typeof S=="function"?S(u.options):S;v(),u.options=Object.assign({},o,u.options,b),u.scrollParents={reference:Rv(s)?uw(s):s.contextElement?uw(s.contextElement):[],popper:uw(l)};var C=aVt(lVt([].concat(r,u.options.modifiers)));return u.orderedModifiers=C.filter(function(_){return _.enabled}),m(),p.update()},forceUpdate:function(){if(!h){var S=u.elements,b=S.reference,C=S.popper;if(Lae(b,C)){u.rects={reference:iVt(b,b4(C),u.options.strategy==="fixed"),popper:aq(C)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(P){return u.modifiersData[P.name]=Object.assign({},P.data)});for(var _=0;_<u.orderedModifiers.length;_++){if(u.reset===!0){u.reset=!1,_=-1;continue}var T=u.orderedModifiers[_],x=T.fn,E=T.options,k=E===void 0?{}:E,M=T.name;typeof x=="function"&&(u=x({state:u,options:k,name:M,instance:p})||u)}}}},update:sVt(function(){return new Promise(function(y){p.forceUpdate(),y(u)})}),destroy:function(){v(),h=!0}};if(!Lae(s,l))return p;p.setOptions(c).then(function(y){!h&&c.onFirstUpdate&&c.onFirstUpdate(y)});function m(){u.orderedModifiers.forEach(function(y){var S=y.name,b=y.options,C=b===void 0?{}:b,_=y.effect;if(typeof _=="function"){var T=_({state:u,name:S,instance:p,options:C}),x=function(){};d.push(T||x)}})}function v(){d.forEach(function(y){return y()}),d=[]}return p}}var uVt=[RWt,QWt,IWt,B4e,YWt,WWt,eVt,kWt,KWt],dVt=cVt({defaultModifiers:uVt}),fVt="tippy-box",G4e="tippy-content",hVt="tippy-backdrop",Y4e="tippy-arrow",X4e="tippy-svg-arrow",bm={passive:!0,capture:!0},Q4e=function(){return document.body};function QA(e,t,n){if(Array.isArray(e)){var r=e[t];return r??(Array.isArray(n)?n[t]:n)}return e}function dq(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function Z4e(e,t){return typeof e=="function"?e.apply(void 0,t):e}function Fae(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function pVt(e,t){var n=Object.assign({},e);return t.forEach(function(r){delete n[r]}),n}function mVt(e){return e.split(/\s+/).filter(Boolean)}function g1(e){return[].concat(e)}function jae(e,t){e.indexOf(t)===-1&&e.push(t)}function gVt(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function vVt(e){return e.split("-")[0]}function Ik(e){return[].slice.call(e)}function Bae(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function dw(){return document.createElement("div")}function eI(e){return["Element","Fragment"].some(function(t){return dq(e,t)})}function yVt(e){return dq(e,"NodeList")}function bVt(e){return dq(e,"MouseEvent")}function SVt(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function CVt(e){return eI(e)?[e]:yVt(e)?Ik(e):Array.isArray(e)?e:Ik(document.querySelectorAll(e))}function ZA(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function Hae(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function xVt(e){var t,n=g1(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function wVt(e,t){var n=t.clientX,r=t.clientY;return e.every(function(i){var o=i.popperRect,a=i.popperState,s=i.props,l=s.interactiveBorder,c=vVt(a.placement),u=a.modifiersData.offset;if(!u)return!0;var d=c==="bottom"?u.top.y:0,h=c==="top"?u.bottom.y:0,p=c==="right"?u.left.x:0,m=c==="left"?u.right.x:0,v=o.top-r+d>l,y=r-o.bottom-h>l,S=o.left-n+p>l,b=n-o.right-m>l;return v||y||S||b})}function JA(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){e[r](i,n)})}function zae(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var Ef={isTouch:!1},Uae=0;function _Vt(){Ef.isTouch||(Ef.isTouch=!0,window.performance&&document.addEventListener("mousemove",J4e))}function J4e(){var e=performance.now();e-Uae<20&&(Ef.isTouch=!1,document.removeEventListener("mousemove",J4e)),Uae=e}function EVt(){var e=document.activeElement;if(SVt(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function TVt(){document.addEventListener("touchstart",_Vt,bm),window.addEventListener("blur",EVt)}var kVt=typeof window<"u"&&typeof document<"u",OVt=kVt?!!window.msCrypto:!1,PVt={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},MVt={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Oc=Object.assign({appendTo:Q4e,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},PVt,MVt),IVt=Object.keys(Oc),$Vt=function(t){var n=Object.keys(t);n.forEach(function(r){Oc[r]=t[r]})};function eTe(e){var t=e.plugins||[],n=t.reduce(function(r,i){var o=i.name,a=i.defaultValue;if(o){var s;r[o]=e[o]!==void 0?e[o]:(s=Oc[o])!=null?s:a}return r},{});return Object.assign({},e,n)}function RVt(e,t){var n=t?Object.keys(eTe(Object.assign({},Oc,{plugins:t}))):IVt,r=n.reduce(function(i,o){var a=(e.getAttribute("data-tippy-"+o)||"").trim();if(!a)return i;if(o==="content")i[o]=a;else try{i[o]=JSON.parse(a)}catch{i[o]=a}return i},{});return r}function Wae(e,t){var n=Object.assign({},t,{content:Z4e(t.content,[e])},t.ignoreAttributes?{}:RVt(e,t.plugins));return n.aria=Object.assign({},Oc.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?t.interactive:n.aria.expanded,content:n.aria.content==="auto"?t.interactive?null:"describedby":n.aria.content},n}var AVt=function(){return"innerHTML"};function WB(e,t){e[AVt()]=t}function Vae(e){var t=dw();return e===!0?t.className=Y4e:(t.className=X4e,eI(e)?t.appendChild(e):WB(t,e)),t}function Kae(e,t){eI(t.content)?(WB(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?WB(e,t.content):e.textContent=t.content)}function VB(e){var t=e.firstElementChild,n=Ik(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(G4e)}),arrow:n.find(function(r){return r.classList.contains(Y4e)||r.classList.contains(X4e)}),backdrop:n.find(function(r){return r.classList.contains(hVt)})}}function tTe(e){var t=dw(),n=dw();n.className=fVt,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=dw();r.className=G4e,r.setAttribute("data-state","hidden"),Kae(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props);function i(o,a){var s=VB(t),l=s.box,c=s.content,u=s.arrow;a.theme?l.setAttribute("data-theme",a.theme):l.removeAttribute("data-theme"),typeof a.animation=="string"?l.setAttribute("data-animation",a.animation):l.removeAttribute("data-animation"),a.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth=typeof a.maxWidth=="number"?a.maxWidth+"px":a.maxWidth,a.role?l.setAttribute("role",a.role):l.removeAttribute("role"),(o.content!==a.content||o.allowHTML!==a.allowHTML)&&Kae(c,e.props),a.arrow?u?o.arrow!==a.arrow&&(l.removeChild(u),l.appendChild(Vae(a.arrow))):l.appendChild(Vae(a.arrow)):u&&l.removeChild(u)}return{popper:t,onUpdate:i}}tTe.$$tippy=!0;var NVt=1,x5=[],eN=[];function DVt(e,t){var n=Wae(e,Object.assign({},Oc,eTe(Bae(t)))),r,i,o,a=!1,s=!1,l=!1,c=!1,u,d,h,p=[],m=Fae(_e,n.interactiveDebounce),v,y=NVt++,S=null,b=gVt(n.plugins),C={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},_={id:y,reference:e,popper:dw(),popperInstance:S,props:n,state:C,plugins:b,clearDelayTimeouts:Q,setProps:K,setContent:J,show:be,hide:Oe,hideWithInteractivity:Se,enable:Ne,disable:We,unmount:Ke,destroy:tt};if(!n.render)return _;var T=n.render(_),x=T.popper,E=T.onUpdate;x.setAttribute("data-tippy-root",""),x.id="tippy-"+_.id,_.popper=x,e._tippy=_,x._tippy=_;var k=b.map(function(se){return se.fn(_)}),M=e.hasAttribute("aria-expanded");return me(),N(),W(),q("onCreate",[_]),n.showOnCreate&&ke(),x.addEventListener("mouseenter",function(){_.props.interactive&&_.state.isVisible&&_.clearDelayTimeouts()}),x.addEventListener("mouseleave",function(){_.props.interactive&&_.props.trigger.indexOf("mouseenter")>=0&&H().addEventListener("mousemove",m)}),_;function P(){var se=_.props.touch;return Array.isArray(se)?se:[se,0]}function D(){return P()[0]==="hold"}function R(){var se;return!!((se=_.props.render)!=null&&se.$$tippy)}function A(){return v||e}function H(){var se=A().parentNode;return se?xVt(se):document}function F(){return VB(x)}function z(se){return _.state.isMounted&&!_.state.isVisible||Ef.isTouch||u&&u.type==="focus"?0:QA(_.props.delay,se?0:1,Oc.delay)}function W(se){se===void 0&&(se=!1),x.style.pointerEvents=_.props.interactive&&!se?"":"none",x.style.zIndex=""+_.props.zIndex}function q(se,ze,Ye){if(Ye===void 0&&(Ye=!0),k.forEach(function(Je){Je[se]&&Je[se].apply(Je,ze)}),Ye){var Ue;(Ue=_.props)[se].apply(Ue,ze)}}function Z(){var se=_.props.aria;if(se.content){var ze="aria-"+se.content,Ye=x.id,Ue=g1(_.props.triggerTarget||e);Ue.forEach(function(Je){var Ze=Je.getAttribute(ze);if(_.state.isVisible)Je.setAttribute(ze,Ze?Ze+" "+Ye:Ye);else{var rt=Ze&&Ze.replace(Ye,"").trim();rt?Je.setAttribute(ze,rt):Je.removeAttribute(ze)}})}}function N(){if(!(M||!_.props.aria.expanded)){var se=g1(_.props.triggerTarget||e);se.forEach(function(ze){_.props.interactive?ze.setAttribute("aria-expanded",_.state.isVisible&&ze===A()?"true":"false"):ze.removeAttribute("aria-expanded")})}}function B(){H().removeEventListener("mousemove",m),x5=x5.filter(function(se){return se!==m})}function V(se){if(!(Ef.isTouch&&(l||se.type==="mousedown"))){var ze=se.composedPath&&se.composedPath()[0]||se.target;if(!(_.props.interactive&&zae(x,ze))){if(g1(_.props.triggerTarget||e).some(function(Ye){return zae(Ye,ze)})){if(Ef.isTouch||_.state.isVisible&&_.props.trigger.indexOf("click")>=0)return}else q("onClickOutside",[_,se]);_.props.hideOnClick===!0&&(_.clearDelayTimeouts(),_.hide(),s=!0,setTimeout(function(){s=!1}),_.state.isMounted||fe())}}}function G(){l=!0}function ie(){l=!1}function ce(){var se=H();se.addEventListener("mousedown",V,!0),se.addEventListener("touchend",V,bm),se.addEventListener("touchstart",ie,bm),se.addEventListener("touchmove",G,bm)}function fe(){var se=H();se.removeEventListener("mousedown",V,!0),se.removeEventListener("touchend",V,bm),se.removeEventListener("touchstart",ie,bm),se.removeEventListener("touchmove",G,bm)}function ee(se,ze){ue(se,function(){!_.state.isVisible&&x.parentNode&&x.parentNode.contains(x)&&ze()})}function ne(se,ze){ue(se,ze)}function ue(se,ze){var Ye=F().box;function Ue(Je){Je.target===Ye&&(JA(Ye,"remove",Ue),ze())}if(se===0)return ze();JA(Ye,"remove",d),JA(Ye,"add",Ue),d=Ue}function ye(se,ze,Ye){Ye===void 0&&(Ye=!1);var Ue=g1(_.props.triggerTarget||e);Ue.forEach(function(Je){Je.addEventListener(se,ze,Ye),p.push({node:Je,eventType:se,handler:ze,options:Ye})})}function me(){D()&&(ye("touchstart",he,{passive:!0}),ye("touchend",le,{passive:!0})),mVt(_.props.trigger).forEach(function(se){if(se!=="manual")switch(ye(se,he),se){case"mouseenter":ye("mouseleave",le);break;case"focus":ye(OVt?"focusout":"blur",xe);break;case"focusin":ye("focusout",xe);break}})}function pe(){p.forEach(function(se){var ze=se.node,Ye=se.eventType,Ue=se.handler,Je=se.options;ze.removeEventListener(Ye,Ue,Je)}),p=[]}function he(se){var ze,Ye=!1;if(!(!_.state.isEnabled||we(se)||s)){var Ue=((ze=u)==null?void 0:ze.type)==="focus";u=se,v=se.currentTarget,N(),!_.state.isVisible&&bVt(se)&&x5.forEach(function(Je){return Je(se)}),se.type==="click"&&(_.props.trigger.indexOf("mouseenter")<0||a)&&_.props.hideOnClick!==!1&&_.state.isVisible?Ye=!0:ke(se),se.type==="click"&&(a=!Ye),Ye&&!Ue&&Pe(se)}}function _e(se){var ze=se.target,Ye=A().contains(ze)||x.contains(ze);if(!(se.type==="mousemove"&&Ye)){var Ue=Te().concat(x).map(function(Je){var Ze,rt=Je._tippy,qt=(Ze=rt.popperInstance)==null?void 0:Ze.state;return qt?{popperRect:Je.getBoundingClientRect(),popperState:qt,props:n}:null}).filter(Boolean);wVt(Ue,se)&&(B(),Pe(se))}}function le(se){var ze=we(se)||_.props.trigger.indexOf("click")>=0&&a;if(!ze){if(_.props.interactive){_.hideWithInteractivity(se);return}Pe(se)}}function xe(se){_.props.trigger.indexOf("focusin")<0&&se.target!==A()||_.props.interactive&&se.relatedTarget&&x.contains(se.relatedTarget)||Pe(se)}function we(se){return Ef.isTouch?D()!==se.type.indexOf("touch")>=0:!1}function De(){Fe();var se=_.props,ze=se.popperOptions,Ye=se.placement,Ue=se.offset,Je=se.getReferenceClientRect,Ze=se.moveTransition,rt=R()?VB(x).arrow:null,qt=Je?{getBoundingClientRect:Je,contextElement:Je.contextElement||A()}:e,St={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Dt){var an=Dt.state;if(R()){var Vt=F(),Kt=Vt.box;["placement","reference-hidden","escaped"].forEach(function(Qt){Qt==="placement"?Kt.setAttribute("data-placement",an.placement):an.attributes.popper["data-popper-"+Qt]?Kt.setAttribute("data-"+Qt,""):Kt.removeAttribute("data-"+Qt)}),an.attributes.popper={}}}},Ot=[{name:"offset",options:{offset:Ue}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Ze}},St];R()&&rt&&Ot.push({name:"arrow",options:{element:rt,padding:3}}),Ot.push.apply(Ot,(ze==null?void 0:ze.modifiers)||[]),_.popperInstance=dVt(qt,x,Object.assign({},ze,{placement:Ye,onFirstUpdate:h,modifiers:Ot}))}function Fe(){_.popperInstance&&(_.popperInstance.destroy(),_.popperInstance=null)}function Ce(){var se=_.props.appendTo,ze,Ye=A();_.props.interactive&&se===Q4e||se==="parent"?ze=Ye.parentNode:ze=Z4e(se,[Ye]),ze.contains(x)||ze.appendChild(x),_.state.isMounted=!0,De()}function Te(){return Ik(x.querySelectorAll("[data-tippy-root]"))}function ke(se){_.clearDelayTimeouts(),se&&q("onTrigger",[_,se]),ce();var ze=z(!0),Ye=P(),Ue=Ye[0],Je=Ye[1];Ef.isTouch&&Ue==="hold"&&Je&&(ze=Je),ze?r=setTimeout(function(){_.show()},ze):_.show()}function Pe(se){if(_.clearDelayTimeouts(),q("onUntrigger",[_,se]),!_.state.isVisible){fe();return}if(!(_.props.trigger.indexOf("mouseenter")>=0&&_.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(se.type)>=0&&a)){var ze=z(!1);ze?i=setTimeout(function(){_.state.isVisible&&_.hide()},ze):o=requestAnimationFrame(function(){_.hide()})}}function Ne(){_.state.isEnabled=!0}function We(){_.hide(),_.state.isEnabled=!1}function Q(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(o)}function K(se){if(!_.state.isDestroyed){q("onBeforeUpdate",[_,se]),pe();var ze=_.props,Ye=Wae(e,Object.assign({},ze,Bae(se),{ignoreAttributes:!0}));_.props=Ye,me(),ze.interactiveDebounce!==Ye.interactiveDebounce&&(B(),m=Fae(_e,Ye.interactiveDebounce)),ze.triggerTarget&&!Ye.triggerTarget?g1(ze.triggerTarget).forEach(function(Ue){Ue.removeAttribute("aria-expanded")}):Ye.triggerTarget&&e.removeAttribute("aria-expanded"),N(),W(),E&&E(ze,Ye),_.popperInstance&&(De(),Te().forEach(function(Ue){requestAnimationFrame(Ue._tippy.popperInstance.forceUpdate)})),q("onAfterUpdate",[_,se])}}function J(se){_.setProps({content:se})}function be(){var se=_.state.isVisible,ze=_.state.isDestroyed,Ye=!_.state.isEnabled,Ue=Ef.isTouch&&!_.props.touch,Je=QA(_.props.duration,0,Oc.duration);if(!(se||ze||Ye||Ue)&&!A().hasAttribute("disabled")&&(q("onShow",[_],!1),_.props.onShow(_)!==!1)){if(_.state.isVisible=!0,R()&&(x.style.visibility="visible"),W(),ce(),_.state.isMounted||(x.style.transition="none"),R()){var Ze=F(),rt=Ze.box,qt=Ze.content;ZA([rt,qt],0)}h=function(){var Ot;if(!(!_.state.isVisible||c)){if(c=!0,x.offsetHeight,x.style.transition=_.props.moveTransition,R()&&_.props.animation){var Bt=F(),Dt=Bt.box,an=Bt.content;ZA([Dt,an],Je),Hae([Dt,an],"visible")}Z(),N(),jae(eN,_),(Ot=_.popperInstance)==null||Ot.forceUpdate(),q("onMount",[_]),_.props.animation&&R()&&ne(Je,function(){_.state.isShown=!0,q("onShown",[_])})}},Ce()}}function Oe(){var se=!_.state.isVisible,ze=_.state.isDestroyed,Ye=!_.state.isEnabled,Ue=QA(_.props.duration,1,Oc.duration);if(!(se||ze||Ye)&&(q("onHide",[_],!1),_.props.onHide(_)!==!1)){if(_.state.isVisible=!1,_.state.isShown=!1,c=!1,a=!1,R()&&(x.style.visibility="hidden"),B(),fe(),W(!0),R()){var Je=F(),Ze=Je.box,rt=Je.content;_.props.animation&&(ZA([Ze,rt],Ue),Hae([Ze,rt],"hidden"))}Z(),N(),_.props.animation?R()&&ee(Ue,_.unmount):_.unmount()}}function Se(se){H().addEventListener("mousemove",m),jae(x5,m),m(se)}function Ke(){_.state.isVisible&&_.hide(),_.state.isMounted&&(Fe(),Te().forEach(function(se){se._tippy.unmount()}),x.parentNode&&x.parentNode.removeChild(x),eN=eN.filter(function(se){return se!==_}),_.state.isMounted=!1,q("onHidden",[_]))}function tt(){_.state.isDestroyed||(_.clearDelayTimeouts(),_.unmount(),pe(),delete e._tippy,_.state.isDestroyed=!0,q("onDestroy",[_]))}}function TS(e,t){t===void 0&&(t={});var n=Oc.plugins.concat(t.plugins||[]);TVt();var r=Object.assign({},t,{plugins:n}),i=CVt(e),o=i.reduce(function(a,s){var l=s&&DVt(s,r);return l&&a.push(l),a},[]);return eI(e)?o[0]:o}TS.defaultProps=Oc;TS.setDefaultProps=$Vt;TS.currentInput=Ef;Object.assign({},B4e,{effect:function(t){var n=t.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}});var LVt={mouseover:"mouseenter",focusin:"focus",click:"click"};function FVt(e,t){var n=[],r=[],i=!1,o=t.target,a=pVt(t,["target"]),s=Object.assign({},a,{trigger:"manual",touch:!1}),l=Object.assign({touch:Oc.touch},a,{showOnCreate:!0}),c=TS(e,s),u=g1(c);function d(y){if(!(!y.target||i)){var S=y.target.closest(o);if(S){var b=S.getAttribute("data-tippy-trigger")||t.trigger||Oc.trigger;if(!S._tippy&&!(y.type==="touchstart"&&typeof l.touch=="boolean")&&!(y.type!=="touchstart"&&b.indexOf(LVt[y.type])<0)){var C=TS(S,l);C&&(r=r.concat(C))}}}}function h(y,S,b,C){C===void 0&&(C=!1),y.addEventListener(S,b,C),n.push({node:y,eventType:S,handler:b,options:C})}function p(y){var S=y.reference;h(S,"touchstart",d,bm),h(S,"mouseover",d),h(S,"focusin",d),h(S,"click",d)}function m(){n.forEach(function(y){var S=y.node,b=y.eventType,C=y.handler,_=y.options;S.removeEventListener(b,C,_)}),n=[]}function v(y){var S=y.destroy,b=y.enable,C=y.disable;y.destroy=function(_){_===void 0&&(_=!0),_&&r.forEach(function(T){T.destroy()}),r=[],m(),S()},y.enable=function(){b(),r.forEach(function(_){return _.enable()}),i=!1},y.disable=function(){C(),r.forEach(function(_){return _.disable()}),i=!0},p(y)}return u.forEach(v),c}TS.setDefaultProps({render:tTe});const fq={strip:["script"],clobberPrefix:"user-content-",clobber:["name","id"],ancestors:{tbody:["table"],tfoot:["table"],thead:["table"],td:["table"],th:["table"],tr:["table"]},protocols:{href:["http","https","mailto","xmpp","irc","ircs"],cite:["http","https"],src:["http","https"],longDesc:["http","https"]},tagNames:["h1","h2","h3","h4","h5","h6","br","b","i","strong","em","a","pre","code","img","tt","div","ins","del","sup","sub","p","ol","ul","table","thead","tbody","tfoot","blockquote","dl","dt","dd","kbd","q","samp","var","hr","ruby","rt","rp","li","tr","td","th","s","strike","summary","details","caption","figure","figcaption","abbr","bdo","cite","dfn","mark","small","span","time","wbr","input"],attributes:{a:["href"],img:["src","longDesc"],input:[["type","checkbox"],["disabled",!0]],li:[["className","task-list-item"]],div:["itemScope","itemType"],blockquote:["cite"],del:["cite"],ins:["cite"],q:["cite"],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","ariaDescribedBy","ariaHidden","ariaLabel","ariaLabelledBy","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","cols","colSpan","color","compact","coords","dateTime","dir","disabled","encType","htmlFor","frame","headers","height","hrefLang","hSpace","isMap","id","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rel","rev","rows","rowSpan","rules","scope","selected","shape","size","span","start","summary","tabIndex","target","title","type","useMap","vAlign","value","vSpace","width","itemProp"]},required:{input:{type:"checkbox",disabled:!0}}},Tf={}.hasOwnProperty,tN={root:{children:qae},doctype:BVt,comment:HVt,element:{tagName:rTe,properties:zVt,children:qae},text:{value:VVt},"*":{data:Gae,position:Gae}};function jVt(e,t){let n={type:"root",children:[]};if(e&&typeof e=="object"&&e.type){const r=nTe(Object.assign({},fq,t||{}),e,[]);r&&(Array.isArray(r)?r.length===1?n=r[0]:n.children=r:n=r)}return n}function nTe(e,t,n){const r=t&&t.type,i={type:t.type};let o;if(Tf.call(tN,r)){let a=tN[r];if(typeof a=="function"&&(a=a(e,t)),a){const s=Object.assign({},a,tN["*"]);let l;o=!0;for(l in s)if(Tf.call(s,l)){const c=s[l](e,t[l],t,n);c===!1?(o=void 0,i[l]=t[l]):c!=null&&(i[l]=c)}}}return o?i:i.type==="element"&&e.strip&&!e.strip.includes(i.tagName)?i.children:void 0}function qae(e,t,n,r){const i=[];if(Array.isArray(t)){let o=-1;for(n.type==="element"&&r.push(n.tagName);++o<t.length;){const a=nTe(e,t[o],r);a&&(Array.isArray(a)?i.push(...a):i.push(a))}n.type==="element"&&r.pop()}return i}function BVt(e){return e.allowDoctypes?{name:UVt}:void 0}function HVt(e){return e.allowComments?{value:WVt}:void 0}function zVt(e,t,n,r){const i=rTe(e,n.tagName,n,r),o=e.attributes||{},a=e.required||{},s=t||{},l=Object.assign({},Yae(o["*"]),Yae(i&&Tf.call(o,i)?o[i]:[])),c={};let u;for(u in s)if(Tf.call(s,u)){let d=s[u],h;if(Tf.call(l,u))h=l[u];else if(GVt(u)&&Tf.call(l,"data*"))h=l["data*"];else continue;d=Array.isArray(d)?KVt(e,d,u,h):iTe(e,d,u,h),d!=null&&(c[u]=d)}if(i&&Tf.call(a,i))for(u in a[i])Tf.call(c,u)||(c[u]=a[i][u]);return c}function UVt(){return"html"}function rTe(e,t,n,r){const i=typeof t=="string"?t:"";let o=-1;if(!i||i==="*"||e.tagNames&&!e.tagNames.includes(i))return!1;if(e.ancestors&&Tf.call(e.ancestors,i)){for(;++o<e.ancestors[i].length;)if(r.includes(e.ancestors[i][o]))return i;return!1}return i}function WVt(e,t){const n=typeof t=="string"?t:"",r=n.indexOf("-->");return r<0?n:n.slice(0,r)}function VVt(e,t){return typeof t=="string"?t:""}function Gae(e,t){return t}function KVt(e,t,n,r){let i=-1;const o=[];for(;++i<t.length;){const a=iTe(e,t[i],n,r);a!=null&&o.push(a)}return o}function iTe(e,t,n,r){if((typeof t=="boolean"||typeof t=="number"||typeof t=="string")&&qVt(e,t,n)&&(r.length===0||r.some(i=>i&&typeof i=="object"&&"flags"in i?i.test(String(t)):i===t)))return e.clobberPrefix&&e.clobber&&e.clobber.includes(n)?e.clobberPrefix+t:t}function qVt(e,t,n){const r=String(t),i=r.indexOf(":"),o=r.indexOf("?"),a=r.indexOf("#"),s=r.indexOf("/"),l=e.protocols&&Tf.call(e.protocols,n)?e.protocols[n].concat():[];let c=-1;if(l.length===0||i<0||s>-1&&i>s||o>-1&&i>o||a>-1&&i>a)return!0;for(;++c<l.length;)if(i===l[c].length&&r.slice(0,l[c].length)===l[c])return!0;return!1}function Yae(e){const t={};let n=-1;for(;++n<e.length;){const r=e[n];Array.isArray(r)?t[r[0]]=r.slice(1):t[r]=[]}return t}function GVt(e){return e.length>4&&e.slice(0,4).toLowerCase()==="data"}var tf={};const YVt=[65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111];tf.REPLACEMENT_CHARACTER="<22>";tf.CODE_POINTS={EOF:-1,NULL:0,TABULATION:9,CARRIAGE_RETURN:13,LINE_FEED:10,FORM_FEED:12,SPACE:32,EXCLAMATION_MARK:33,QUOTATION_MARK:34,NUMBER_SIGN:35,AMPERSAND:38,APOSTROPHE:39,HYPHEN_MINUS:45,SOLIDUS:47,DIGIT_0:48,DIGIT_9:57,SEMICOLON:59,LESS_THAN_SIGN:60,EQUALS_SIGN:61,GREATER_THAN_SIGN:62,QUESTION_MARK:63,LATIN_CAPITAL_A:65,LATIN_CAPITAL_F:70,LATIN_CAPITAL_X:88,LATIN_CAPITAL_Z:90,RIGHT_SQUARE_BRACKET:93,GRAVE_ACCENT:96,LATIN_SMALL_A:97,LATIN_SMALL_F:102,LATIN_SMALL_X:120,LATIN_SMALL_Z:122,REPLACEMENT_CHARACTER:65533};tf.CODE_POINT_SEQUENCES={DASH_DASH_STRING:[45,45],DOCTYPE_STRING:[68,79,67,84,89,80,69],CDATA_START_STRING:[91,67,68,65,84,65,91],SCRIPT_STRING:[115,99,114,105,112,116],PUBLIC_STRING:[80,85,66,76,73,67],SYSTEM_STRING:[83,89,83,84,69,77]};tf.isSurrogate=function(e){return e>=55296&&e<=57343};tf.isSurrogatePair=function(e){return e>=56320&&e<=57343};tf.getSurrogatePairCodePoint=function(e,t){return(e-55296)*1024+9216+t};tf.isControlCodePoint=function(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159};tf.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||YVt.indexOf(e)>-1};var hq={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"};const Sy=tf,nN=hq,Zg=Sy.CODE_POINTS,XVt=65536;let QVt=class{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=XVt}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.lastCharPos){const n=this.html.charCodeAt(this.pos+1);if(Sy.isSurrogatePair(n))return this.pos++,this._addGap(),Sy.getSurrogatePairCodePoint(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,Zg.EOF;return this._err(nN.surrogateInInputStream),t}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(t,n){this.html?this.html+=t:this.html=t,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,Zg.EOF;let t=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&t===Zg.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):t===Zg.CARRIAGE_RETURN?(this.skipNextNewLine=!0,Zg.LINE_FEED):(this.skipNextNewLine=!1,Sy.isSurrogate(t)&&(t=this._processSurrogate(t)),t>31&&t<127||t===Zg.LINE_FEED||t===Zg.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Sy.isControlCodePoint(t)?this._err(nN.controlCharacterInInputStream):Sy.isUndefinedCodePoint(t)&&this._err(nN.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}};var ZVt=QVt,JVt=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204]);const eKt=ZVt,Yi=tf,R1=JVt,fn=hq,ct=Yi.CODE_POINTS,Jg=Yi.CODE_POINT_SEQUENCES,tKt={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},oTe=1,aTe=2,sTe=4,nKt=oTe|aTe|sTe,ri="DATA_STATE",Cy="RCDATA_STATE",I2="RAWTEXT_STATE",Ih="SCRIPT_DATA_STATE",lTe="PLAINTEXT_STATE",Xae="TAG_OPEN_STATE",Qae="END_TAG_OPEN_STATE",rN="TAG_NAME_STATE",Zae="RCDATA_LESS_THAN_SIGN_STATE",Jae="RCDATA_END_TAG_OPEN_STATE",ese="RCDATA_END_TAG_NAME_STATE",tse="RAWTEXT_LESS_THAN_SIGN_STATE",nse="RAWTEXT_END_TAG_OPEN_STATE",rse="RAWTEXT_END_TAG_NAME_STATE",ise="SCRIPT_DATA_LESS_THAN_SIGN_STATE",ose="SCRIPT_DATA_END_TAG_OPEN_STATE",ase="SCRIPT_DATA_END_TAG_NAME_STATE",sse="SCRIPT_DATA_ESCAPE_START_STATE",lse="SCRIPT_DATA_ESCAPE_START_DASH_STATE",ed="SCRIPT_DATA_ESCAPED_STATE",cse="SCRIPT_DATA_ESCAPED_DASH_STATE",iN="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",w5="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",use="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",dse="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",fse="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",Ch="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",hse="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",pse="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",_5="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",mse="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",pf="BEFORE_ATTRIBUTE_NAME_STATE",E5="ATTRIBUTE_NAME_STATE",oN="AFTER_ATTRIBUTE_NAME_STATE",aN="BEFORE_ATTRIBUTE_VALUE_STATE",T5="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",k5="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",O5="ATTRIBUTE_VALUE_UNQUOTED_STATE",sN="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",Qp="SELF_CLOSING_START_TAG_STATE",Jx="BOGUS_COMMENT_STATE",gse="MARKUP_DECLARATION_OPEN_STATE",vse="COMMENT_START_STATE",yse="COMMENT_START_DASH_STATE",Zp="COMMENT_STATE",bse="COMMENT_LESS_THAN_SIGN_STATE",Sse="COMMENT_LESS_THAN_SIGN_BANG_STATE",Cse="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",xse="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",P5="COMMENT_END_DASH_STATE",M5="COMMENT_END_STATE",wse="COMMENT_END_BANG_STATE",_se="DOCTYPE_STATE",I5="BEFORE_DOCTYPE_NAME_STATE",$5="DOCTYPE_NAME_STATE",Ese="AFTER_DOCTYPE_NAME_STATE",Tse="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",kse="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",lN="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",cN="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",uN="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",Ose="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",Pse="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",Mse="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",e2="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",t2="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",dN="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",xh="BOGUS_DOCTYPE_STATE",R5="CDATA_SECTION_STATE",Ise="CDATA_SECTION_BRACKET_STATE",$se="CDATA_SECTION_END_STATE",dy="CHARACTER_REFERENCE_STATE",Rse="NAMED_CHARACTER_REFERENCE_STATE",Ase="AMBIGUOS_AMPERSAND_STATE",Nse="NUMERIC_CHARACTER_REFERENCE_STATE",Dse="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",Lse="DECIMAL_CHARACTER_REFERENCE_START_STATE",Fse="HEXADEMICAL_CHARACTER_REFERENCE_STATE",jse="DECIMAL_CHARACTER_REFERENCE_STATE",n2="NUMERIC_CHARACTER_REFERENCE_END_STATE";function co(e){return e===ct.SPACE||e===ct.LINE_FEED||e===ct.TABULATION||e===ct.FORM_FEED}function fw(e){return e>=ct.DIGIT_0&&e<=ct.DIGIT_9}function od(e){return e>=ct.LATIN_CAPITAL_A&&e<=ct.LATIN_CAPITAL_Z}function c1(e){return e>=ct.LATIN_SMALL_A&&e<=ct.LATIN_SMALL_Z}function hm(e){return c1(e)||od(e)}function fN(e){return hm(e)||fw(e)}function cTe(e){return e>=ct.LATIN_CAPITAL_A&&e<=ct.LATIN_CAPITAL_F}function uTe(e){return e>=ct.LATIN_SMALL_A&&e<=ct.LATIN_SMALL_F}function rKt(e){return fw(e)||cTe(e)||uTe(e)}function c3(e){return e+32}function qo(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|e&1023))}function Jp(e){return String.fromCharCode(c3(e))}function Bse(e,t){const n=R1[++e];let r=++e,i=r+n-1;for(;r<=i;){const o=r+i>>>1,a=R1[o];if(a<t)r=o+1;else if(a>t)i=o-1;else return R1[o+n]}return-1}let Bu=class Tl{constructor(){this.preprocessor=new eKt,this.tokenQueue=[],this.allowCDATA=!1,this.state=ri,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(t){this._consume(),this._err(t),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this[this.state](t)}return this.tokenQueue.shift()}write(t,n){this.active=!0,this.preprocessor.write(t,n)}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:Tl.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(t){this.state=t,this._unconsume()}_consumeSequenceIfMatch(t,n,r){let i=0,o=!0;const a=t.length;let s=0,l=n,c;for(;s<a;s++){if(s>0&&(l=this._consume(),i++),l===ct.EOF){o=!1;break}if(c=t[s],l!==c&&(r||l!==c3(c))){o=!1;break}}if(!o)for(;i--;)this._unconsume();return o}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==Jg.SCRIPT_STRING.length)return!1;for(let t=0;t<this.tempBuff.length;t++)if(this.tempBuff[t]!==Jg.SCRIPT_STRING[t])return!1;return!0}_createStartTagToken(){this.currentToken={type:Tl.START_TAG_TOKEN,tagName:"",selfClosing:!1,ackSelfClosing:!1,attrs:[]}}_createEndTagToken(){this.currentToken={type:Tl.END_TAG_TOKEN,tagName:"",selfClosing:!1,attrs:[]}}_createCommentToken(){this.currentToken={type:Tl.COMMENT_TOKEN,data:""}}_createDoctypeToken(t){this.currentToken={type:Tl.DOCTYPE_TOKEN,name:t,forceQuirks:!1,publicId:null,systemId:null}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n}}_createEOFToken(){this.currentToken={type:Tl.EOF_TOKEN}}_createAttr(t){this.currentAttr={name:t,value:""}}_leaveAttrName(t){Tl.getTokenAttr(this.currentToken,this.currentAttr.name)===null?this.currentToken.attrs.push(this.currentAttr):this._err(fn.duplicateAttribute),this.state=t}_leaveAttrValue(t){this.state=t}_emitCurrentToken(){this._emitCurrentCharacterToken();const t=this.currentToken;this.currentToken=null,t.type===Tl.START_TAG_TOKEN?this.lastStartTagName=t.tagName:t.type===Tl.END_TAG_TOKEN&&(t.attrs.length>0&&this._err(fn.endTagWithAttributes),t.selfClosing&&this._err(fn.endTagWithTrailingSolidus)),this.tokenQueue.push(t)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(t,n){this.currentCharacterToken&&this.currentCharacterToken.type!==t&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=n:this._createCharacterToken(t,n)}_emitCodePoint(t){let n=Tl.CHARACTER_TOKEN;co(t)?n=Tl.WHITESPACE_CHARACTER_TOKEN:t===ct.NULL&&(n=Tl.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(n,qo(t))}_emitSeveralCodePoints(t){for(let n=0;n<t.length;n++)this._emitCodePoint(t[n])}_emitChars(t){this._appendCharToCurrentCharacterToken(Tl.CHARACTER_TOKEN,t)}_matchNamedCharacterReference(t){let n=null,r=1,i=Bse(0,t);for(this.tempBuff.push(t);i>-1;){const o=R1[i],a=o<nKt;a&&o&oTe&&(n=o&aTe?[R1[++i],R1[++i]]:[R1[++i]],r=0);const l=this._consume();if(this.tempBuff.push(l),r++,l===ct.EOF)break;a?i=o&sTe?Bse(i,l):-1:i=l===o?++i:-1}for(;r--;)this.tempBuff.pop(),this._unconsume();return n}_isCharacterReferenceInAttribute(){return this.returnState===T5||this.returnState===k5||this.returnState===O5}_isCharacterReferenceAttributeQuirk(t){if(!t&&this._isCharacterReferenceInAttribute()){const n=this._consume();return this._unconsume(),n===ct.EQUALS_SIGN||fN(n)}return!1}_flushCodePointsConsumedAsCharacterReference(){if(this._isCharacterReferenceInAttribute())for(let t=0;t<this.tempBuff.length;t++)this.currentAttr.value+=qo(this.tempBuff[t]);else this._emitSeveralCodePoints(this.tempBuff);this.tempBuff=[]}[ri](t){this.preprocessor.dropParsedChunk(),t===ct.LESS_THAN_SIGN?this.state=Xae:t===ct.AMPERSAND?(this.returnState=ri,this.state=dy):t===ct.NULL?(this._err(fn.unexpectedNullCharacter),this._emitCodePoint(t)):t===ct.EOF?this._emitEOFToken():this._emitCodePoint(t)}[Cy](t){this.preprocessor.dropParsedChunk(),t===ct.AMPERSAND?(this.returnState=Cy,this.state=dy):t===ct.LESS_THAN_SIGN?this.state=Zae:t===ct.NULL?(this._err(fn.unexpectedNullCharacter),this._emitChars(Yi.REPLACEMENT_CHARACTER)):t===ct.EOF?this._emitEOFToken():this._emitCodePoint(t)}[I2](t){this.preprocessor.dropParsedChunk(),t===ct.LESS_THAN_SIGN?this.state=tse:t===ct.NULL?(this._err(fn.unexpectedNullCharacter),this._emitChars(Yi.REPLACEMENT_CHARACTER)):t===ct.EOF?this._emitEOFToken():this._emitCodePoint(t)}[Ih](t){this.preprocessor.dropParsedChunk(),t===ct.LESS_THAN_SIGN?this.state=ise:t===ct.NULL?(this._err(fn.unexpectedNullCharacter),this._emitChars(Yi.REPLACEMENT_CHARACTER)):t===ct.EOF?this._emitEOFToken():this._emitCodePoint(t)}[lTe](t){this.preprocessor.dropParsedChunk(),t===ct.NULL?(this._err(fn.unexpectedNullCharacter),this._emitChars(Yi.REPLACEMENT_CHARACTER)):t===ct.EOF?this._emitEOFToken():this._emitCodePoint(t)}[Xae](t){t===ct.EXCLAMATION_MARK?this.state=gse:t===ct.SOLIDUS?this.state=Qae:hm(t)?(this._createStartTagToken(),this._reconsumeInState(rN)):t===ct.QUESTION_MARK?(this._err(fn.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(),this._reconsumeInState(Jx)):t===ct.EOF?(this._err(fn.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken()):(this._err(fn.invalidFirstCharacterOfTagName),this._emitChars("<"),this._reconsumeInState(ri))}[Qae](t){hm(t)?(this._createEndTagToken(),this._reconsumeInState(rN)):t===ct.GREATER_THAN_SIGN?(this._err(fn.missingEndTagName),this.state=ri):t===ct.EOF?(this._err(fn.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken()):(this._err(fn.invalidFirstCharacterOfTagName),this._createCommentToken(),this._reconsumeInState(Jx))}[rN](t){co(t)?this.state=pf:t===ct.SOLIDUS?this.state=Qp:t===ct.GREATER_THAN_SIGN?(this.state=ri,this._emitCurrentToken()):od(t)?this.currentToken.tagName+=Jp(t):t===ct.NULL?(this._err(fn.unexpectedNullCharacter),this.currentToken.tagName+=Yi.REPLACEMENT_CHARACTER):t===ct.EOF?(this._err(fn.eofInTag),this._emitEOFToken()):this.currentToken.tagName+=qo(t)}[Zae](t){t===ct.SOLIDUS?(this.tempBuff=[],this.state=Jae):(this._emitChars("<"),this._reconsumeInState(Cy))}[Jae](t){hm(t)?(this._createEndTagToken(),this._reconsumeInState(ese)):(this._emitChars("</"),this._reconsumeInState(Cy))}[ese](t){if(od(t))this.currentToken.tagName+=Jp(t),this.tempBuff.push(t);else if(c1(t))this.currentToken.tagName+=qo(t),this.tempBuff.push(t);else{if(this.lastStartTagName===this.currentToken.tagName){if(co(t)){this.state=pf;return}if(t===ct.SOLIDUS){this.state=Qp;return}if(t===ct.GREATER_THAN_SIGN){this.state=ri,this._emitCurrentToken();return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(Cy)}}[tse](t){t===ct.SOLIDUS?(this.tempBuff=[],this.state=nse):(this._emitChars("<"),this._reconsumeInState(I2))}[nse](t){hm(t)?(this._createEndTagToken(),this._reconsumeInState(rse)):(this._emitChars("</"),this._reconsumeInState(I2))}[rse](t){if(od(t))this.currentToken.tagName+=Jp(t),this.tempBuff.push(t);else if(c1(t))this.currentToken.tagName+=qo(t),this.tempBuff.push(t);else{if(this.lastStartTagName===this.currentToken.tagName){if(co(t)){this.state=pf;return}if(t===ct.SOLIDUS){this.state=Qp;return}if(t===ct.GREATER_THAN_SIGN){this._emitCurrentToken(),this.state=ri;return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(I2)}}[ise](t){t===ct.SOLIDUS?(this.tempBuff=[],this.state=ose):t===ct.EXCLAMATION_MARK?(this.state=sse,this._emitChars("<!")):(this._emitChars("<"),this._reconsumeInState(Ih))}[ose](t){hm(t)?(this._createEndTagToken(),this._reconsumeInState(ase)):(this._emitChars("</"),this._reconsumeInState(Ih))}[ase](t){if(od(t))this.currentToken.tagName+=Jp(t),this.tempBuff.push(t);else if(c1(t))this.currentToken.tagName+=qo(t),this.tempBuff.push(t);else{if(this.lastStartTagName===this.currentToken.tagName){if(co(t)){this.state=pf;return}else if(t===ct.SOLIDUS){this.state=Qp;return}else if(t===ct.GREATER_THAN_SIGN){this._emitCurrentToken(),this.state=ri;return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(Ih)}}[sse](t){t===ct.HYPHEN_MINUS?(this.state=lse,this._emitChars("-")):this._reconsumeInState(Ih)}[lse](t){t===ct.HYPHEN_MINUS?(this.state=iN,this._emitChars("-")):this._reconsumeInState(Ih)}[ed](t){t===ct.HYPHEN_MINUS?(this.state=cse,this._emitChars("-")):t===ct.LESS_THAN_SIGN?this.state=w5:t===ct.NULL?(this._err(fn.unexpectedNullCharacter),this._emitChars(Yi.REPLACEMENT_CHARACTER)):t===ct.EOF?(this._err(fn.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(t)}[cse](t){t===ct.HYPHEN_MINUS?(this.state=iN,this._emitChars("-")):t===ct.LESS_THAN_SIGN?this.state=w5:t===ct.NULL?(this._err(fn.unexpectedNullCharacter),this.state=ed,this._emitChars(Yi.REPLACEMENT_CHARACTER)):t===ct.EOF?(this._err(fn.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=ed,this._emitCodePoint(t))}[iN](t){t===ct.HYPHEN_MINUS?this._emitChars("-"):t===ct.LESS_THAN_SIGN?this.state=w5:t===ct.GREATER_THAN_SIGN?(this.state=Ih,this._emitChars(">")):t===ct.NULL?(this._err(fn.unexpectedNullCharacter),this.state=ed,this._emitChars(Yi.REPLACEMENT_CHARACTER)):t===ct.EOF?(this._err(fn.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=ed,this._emitCodePoint(t))}[w5](t){t===ct.SOLIDUS?(this.tempBuff=[],this.state=use):hm(t)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(fse)):(this._emitChars("<"),this._reconsumeInState(ed))}[use](t){hm(t)?(this._createEndTagToken(),this._reconsumeInState(dse)):(this._emitChars("</"),this._reconsumeInState(ed))}[dse](t){if(od(t))this.currentToken.tagName+=Jp(t),this.tempBuff.push(t);else if(c1(t))this.currentToken.tagName+=qo(t),this.tempBuff.push(t);else{if(this.lastStartTagName===this.currentToken.tagName){if(co(t)){this.state=pf;return}if(t===ct.SOLIDUS){this.state=Qp;return}if(t===ct.GREATER_THAN_SIGN){this._emitCurrentToken(),this.state=ri;return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(ed)}}[fse](t){co(t)||t===ct.SOLIDUS||t===ct.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?Ch:ed,this._emitCodePoint(t)):od(t)?(this.tempBuff.push(c3(t)),this._emitCodePoint(t)):c1(t)?(this.tempBuff.push(t),this._emitCodePoint(t)):this._reconsumeInState(ed)}[Ch](t){t===ct.HYPHEN_MINUS?(this.state=hse,this._emitChars("-")):t===ct.LESS_THAN_SIGN?(this.state=_5,this._emitChars("<")):t===ct.NULL?(this._err(fn.unexpectedNullCharacter),this._emitChars(Yi.REPLACEMENT_CHARACTER)):t===ct.EOF?(this._err(fn.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(t)}[hse](t){t===ct.HYPHEN_MINUS?(this.state=pse,this._emitChars("-")):t===ct.LESS_THAN_SIGN?(this.state=_5,this._emitChars("<")):t===ct.NULL?(this._err(fn.unexpectedNullCharacter),this.state=Ch,this._emitChars(Yi.REPLACEMENT_CHARACTER)):t===ct.EOF?(this._err(fn.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Ch,this._emitCodePoint(t))}[pse](t){t===ct.HYPHEN_MINUS?this._emitChars("-"):t===ct.LESS_THAN_SIGN?(this.state=_5,this._emitChars("<")):t===ct.GREATER_THAN_SIGN?(this.state=Ih,this._emitChars(">")):t===ct.NULL?(this._err(fn.unexpectedNullCharacter),this.state=Ch,this._emitChars(Yi.REPLACEMENT_CHARACTER)):t===ct.EOF?(this._err(fn.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Ch,this._emitCodePoint(t))}[_5](t){t===ct.SOLIDUS?(this.tempBuff=[],this.state=mse,this._emitChars("/")):this._reconsumeInState(Ch)}[mse](t){co(t)||t===ct.SOLIDUS||t===ct.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?ed:Ch,this._emitCodePoint(t)):od(t)?(this.tempBuff.push(c3(t)),this._emitCodePoint(t)):c1(t)?(this.tempBuff.push(t),this._emitCodePoint(t)):this._reconsumeInState(Ch)}[pf](t){co(t)||(t===ct.SOLIDUS||t===ct.GREATER_THAN_SIGN||t===ct.EOF?this._reconsumeInState(oN):t===ct.EQUALS_SIGN?(this._err(fn.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=E5):(this._createAttr(""),this._reconsumeInState(E5)))}[E5](t){co(t)||t===ct.SOLIDUS||t===ct.GREATER_THAN_SIGN||t===ct.EOF?(this._leaveAttrName(oN),this._unconsume()):t===ct.EQUALS_SIGN?this._leaveAttrName(aN):od(t)?this.currentAttr.name+=Jp(t):t===ct.QUOTATION_MARK||t===ct.APOSTROPHE||t===ct.LESS_THAN_SIGN?(this._err(fn.unexpectedCharacterInAttributeName),this.currentAttr.name+=qo(t)):t===ct.NULL?(this._err(fn.unexpectedNullCharacter),this.currentAttr.name+=Yi.REPLACEMENT_CHARACTER):this.currentAttr.name+=qo(t)}[oN](t){co(t)||(t===ct.SOLIDUS?this.state=Qp:t===ct.EQUALS_SIGN?this.state=aN:t===ct.GREATER_THAN_SIGN?(this.state=ri,this._emitCurrentToken()):t===ct.EOF?(this._err(fn.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(E5)))}[aN](t){co(t)||(t===ct.QUOTATION_MARK?this.state=T5:t===ct.APOSTROPHE?this.state=k5:t===ct.GREATER_THAN_SIGN?(this._err(fn.missingAttributeValue),this.state=ri,this._emitCurrentToken()):this._reconsumeInState(O5))}[T5](t){t===ct.QUOTATION_MARK?this.state=sN:t===ct.AMPERSAND?(this.returnState=T5,this.state=dy):t===ct.NULL?(this._err(fn.unexpectedNullCharacter),this.currentAttr.value+=Yi.REPLACEMENT_CHARACTER):t===ct.EOF?(this._err(fn.eofInTag),this._emitEOFToken()):this.currentAttr.value+=qo(t)}[k5](t){t===ct.APOSTROPHE?this.state=sN:t===ct.AMPERSAND?(this.returnState=k5,this.state=dy):t===ct.NULL?(this._err(fn.unexpectedNullCharacter),this.currentAttr.value+=Yi.REPLACEMENT_CHARACTER):t===ct.EOF?(this._err(fn.eofInTag),this._emitEOFToken()):this.currentAttr.value+=qo(t)}[O5](t){co(t)?this._leaveAttrValue(pf):t===ct.AMPERSAND?(this.returnState=O5,this.state=dy):t===ct.GREATER_THAN_SIGN?(this._leaveAttrValue(ri),this._emitCurrentToken()):t===ct.NULL?(this._err(fn.unexpectedNullCharacter),this.currentAttr.value+=Yi.REPLACEMENT_CHARACTER):t===ct.QUOTATION_MARK||t===ct.APOSTROPHE||t===ct.LESS_THAN_SIGN||t===ct.EQUALS_SIGN||t===ct.GRAVE_ACCENT?(this._err(fn.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=qo(t)):t===ct.EOF?(this._err(fn.eofInTag),this._emitEOFToken()):this.currentAttr.value+=qo(t)}[sN](t){co(t)?this._leaveAttrValue(pf):t===ct.SOLIDUS?this._leaveAttrValue(Qp):t===ct.GREATER_THAN_SIGN?(this._leaveAttrValue(ri),this._emitCurrentToken()):t===ct.EOF?(this._err(fn.eofInTag),this._emitEOFToken()):(this._err(fn.missingWhitespaceBetweenAttributes),this._reconsumeInState(pf))}[Qp](t){t===ct.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=ri,this._emitCurrentToken()):t===ct.EOF?(this._err(fn.eofInTag),this._emitEOFToken()):(this._err(fn.unexpectedSolidusInTag),this._reconsumeInState(pf))}[Jx](t){t===ct.GREATER_THAN_SIGN?(this.state=ri,this._emitCurrentToken()):t===ct.EOF?(this._emitCurrentToken(),this._emitEOFToken()):t===ct.NULL?(this._err(fn.unexpectedNullCharacter),this.currentToken.data+=Yi.REPLACEMENT_CHARACTER):this.currentToken.data+=qo(t)}[gse](t){this._consumeSequenceIfMatch(Jg.DASH_DASH_STRING,t,!0)?(this._createCommentToken(),this.state=vse):this._consumeSequenceIfMatch(Jg.DOCTYPE_STRING,t,!1)?this.state=_se:this._consumeSequenceIfMatch(Jg.CDATA_START_STRING,t,!0)?this.allowCDATA?this.state=R5:(this._err(fn.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=Jx):this._ensureHibernation()||(this._err(fn.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(Jx))}[vse](t){t===ct.HYPHEN_MINUS?this.state=yse:t===ct.GREATER_THAN_SIGN?(this._err(fn.abruptClosingOfEmptyComment),this.state=ri,this._emitCurrentToken()):this._reconsumeInState(Zp)}[yse](t){t===ct.HYPHEN_MINUS?this.state=M5:t===ct.GREATER_THAN_SIGN?(this._err(fn.abruptClosingOfEmptyComment),this.state=ri,this._emitCurrentToken()):t===ct.EOF?(this._err(fn.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(Zp))}[Zp](t){t===ct.HYPHEN_MINUS?this.state=P5:t===ct.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=bse):t===ct.NULL?(this._err(fn.unexpectedNullCharacter),this.currentToken.data+=Yi.REPLACEMENT_CHARACTER):t===ct.EOF?(this._err(fn.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=qo(t)}[bse](t){t===ct.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=Sse):t===ct.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(Zp)}[Sse](t){t===ct.HYPHEN_MINUS?this.state=Cse:this._reconsumeInState(Zp)}[Cse](t){t===ct.HYPHEN_MINUS?this.state=xse:this._reconsumeInState(P5)}[xse](t){t!==ct.GREATER_THAN_SIGN&&t!==ct.EOF&&this._err(fn.nestedComment),this._reconsumeInState(M5)}[P5](t){t===ct.HYPHEN_MINUS?this.state=M5:t===ct.EOF?(this._err(fn.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(Zp))}[M5](t){t===ct.GREATER_THAN_SIGN?(this.state=ri,this._emitCurrentToken()):t===ct.EXCLAMATION_MARK?this.state=wse:t===ct.HYPHEN_MINUS?this.currentToken.data+="-":t===ct.EOF?(this._err(fn.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(Zp))}[wse](t){t===ct.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=P5):t===ct.GREATER_THAN_SIGN?(this._err(fn.incorrectlyClosedComment),this.state=ri,this._emitCurrentToken()):t===ct.EOF?(this._err(fn.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(Zp))}[_se](t){co(t)?this.state=I5:t===ct.GREATER_THAN_SIGN?this._reconsumeInState(I5):t===ct.EOF?(this._err(fn.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(fn.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(I5))}[I5](t){co(t)||(od(t)?(this._createDoctypeToken(Jp(t)),this.state=$5):t===ct.NULL?(this._err(fn.unexpectedNullCharacter),this._createDoctypeToken(Yi.REPLACEMENT_CHARACTER),this.state=$5):t===ct.GREATER_THAN_SIGN?(this._err(fn.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=ri):t===ct.EOF?(this._err(fn.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(qo(t)),this.state=$5))}[$5](t){co(t)?this.state=Ese:t===ct.GREATER_THAN_SIGN?(this.state=ri,this._emitCurrentToken()):od(t)?this.currentToken.name+=Jp(t):t===ct.NULL?(this._err(fn.unexpectedNullCharacter),this.currentToken.name+=Yi.REPLACEMENT_CHARACTER):t===ct.EOF?(this._err(fn.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=qo(t)}[Ese](t){co(t)||(t===ct.GREATER_THAN_SIGN?(this.state=ri,this._emitCurrentToken()):t===ct.EOF?(this._err(fn.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(Jg.PUBLIC_STRING,t,!1)?this.state=Tse:this._consumeSequenceIfMatch(Jg.SYSTEM_STRING,t,!1)?this.state=Pse:this._ensureHibernation()||(this._err(fn.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(xh)))}[Tse](t){co(t)?this.state=kse:t===ct.QUOTATION_MARK?(this._err(fn.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=lN):t===ct.APOSTROPHE?(this._err(fn.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=cN):t===ct.GREATER_THAN_SIGN?(this._err(fn.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=ri,this._emitCurrentToken()):t===ct.EOF?(this._err(fn.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(fn.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(xh))}[kse](t){co(t)||(t===ct.QUOTATION_MARK?(this.currentToken.publicId="",this.state=lN):t===ct.APOSTROPHE?(this.currentToken.publicId="",this.state=cN):t===ct.GREATER_THAN_SIGN?(this._err(fn.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=ri,this._emitCurrentToken()):t===ct.EOF?(this._err(fn.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(fn.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(xh)))}[lN](t){t===ct.QUOTATION_MARK?this.state=uN:t===ct.NULL?(this._err(fn.unexpectedNullCharacter),this.currentToken.publicId+=Yi.REPLACEMENT_CHARACTER):t===ct.GREATER_THAN_SIGN?(this._err(fn.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=ri):t===ct.EOF?(this._err(fn.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=qo(t)}[cN](t){t===ct.APOSTROPHE?this.state=uN:t===ct.NULL?(this._err(fn.unexpectedNullCharacter),this.currentToken.publicId+=Yi.REPLACEMENT_CHARACTER):t===ct.GREATER_THAN_SIGN?(this._err(fn.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=ri):t===ct.EOF?(this._err(fn.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=qo(t)}[uN](t){co(t)?this.state=Ose:t===ct.GREATER_THAN_SIGN?(this.state=ri,this._emitCurrentToken()):t===ct.QUOTATION_MARK?(this._err(fn.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=e2):t===ct.APOSTROPHE?(this._err(fn.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=t2):t===ct.EOF?(this._err(fn.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(fn.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(xh))}[Ose](t){co(t)||(t===ct.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=ri):t===ct.QUOTATION_MARK?(this.currentToken.systemId="",this.state=e2):t===ct.APOSTROPHE?(this.currentToken.systemId="",this.state=t2):t===ct.EOF?(this._err(fn.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(fn.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(xh)))}[Pse](t){co(t)?this.state=Mse:t===ct.QUOTATION_MARK?(this._err(fn.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=e2):t===ct.APOSTROPHE?(this._err(fn.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=t2):t===ct.GREATER_THAN_SIGN?(this._err(fn.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=ri,this._emitCurrentToken()):t===ct.EOF?(this._err(fn.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(fn.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(xh))}[Mse](t){co(t)||(t===ct.QUOTATION_MARK?(this.currentToken.systemId="",this.state=e2):t===ct.APOSTROPHE?(this.currentToken.systemId="",this.state=t2):t===ct.GREATER_THAN_SIGN?(this._err(fn.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=ri,this._emitCurrentToken()):t===ct.EOF?(this._err(fn.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(fn.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(xh)))}[e2](t){t===ct.QUOTATION_MARK?this.state=dN:t===ct.NULL?(this._err(fn.unexpectedNullCharacter),this.currentToken.systemId+=Yi.REPLACEMENT_CHARACTER):t===ct.GREATER_THAN_SIGN?(this._err(fn.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=ri):t===ct.EOF?(this._err(fn.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=qo(t)}[t2](t){t===ct.APOSTROPHE?this.state=dN:t===ct.NULL?(this._err(fn.unexpectedNullCharacter),this.currentToken.systemId+=Yi.REPLACEMENT_CHARACTER):t===ct.GREATER_THAN_SIGN?(this._err(fn.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=ri):t===ct.EOF?(this._err(fn.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=qo(t)}[dN](t){co(t)||(t===ct.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=ri):t===ct.EOF?(this._err(fn.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(fn.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(xh)))}[xh](t){t===ct.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=ri):t===ct.NULL?this._err(fn.unexpectedNullCharacter):t===ct.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[R5](t){t===ct.RIGHT_SQUARE_BRACKET?this.state=Ise:t===ct.EOF?(this._err(fn.eofInCdata),this._emitEOFToken()):this._emitCodePoint(t)}[Ise](t){t===ct.RIGHT_SQUARE_BRACKET?this.state=$se:(this._emitChars("]"),this._reconsumeInState(R5))}[$se](t){t===ct.GREATER_THAN_SIGN?this.state=ri:t===ct.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(R5))}[dy](t){this.tempBuff=[ct.AMPERSAND],t===ct.NUMBER_SIGN?(this.tempBuff.push(t),this.state=Nse):fN(t)?this._reconsumeInState(Rse):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Rse](t){const n=this._matchNamedCharacterReference(t);if(this._ensureHibernation())this.tempBuff=[ct.AMPERSAND];else if(n){const r=this.tempBuff[this.tempBuff.length-1]===ct.SEMICOLON;this._isCharacterReferenceAttributeQuirk(r)||(r||this._errOnNextCodePoint(fn.missingSemicolonAfterCharacterReference),this.tempBuff=n),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=Ase}[Ase](t){fN(t)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=qo(t):this._emitCodePoint(t):(t===ct.SEMICOLON&&this._err(fn.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[Nse](t){this.charRefCode=0,t===ct.LATIN_SMALL_X||t===ct.LATIN_CAPITAL_X?(this.tempBuff.push(t),this.state=Dse):this._reconsumeInState(Lse)}[Dse](t){rKt(t)?this._reconsumeInState(Fse):(this._err(fn.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Lse](t){fw(t)?this._reconsumeInState(jse):(this._err(fn.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Fse](t){cTe(t)?this.charRefCode=this.charRefCode*16+t-55:uTe(t)?this.charRefCode=this.charRefCode*16+t-87:fw(t)?this.charRefCode=this.charRefCode*16+t-48:t===ct.SEMICOLON?this.state=n2:(this._err(fn.missingSemicolonAfterCharacterReference),this._reconsumeInState(n2))}[jse](t){fw(t)?this.charRefCode=this.charRefCode*10+t-48:t===ct.SEMICOLON?this.state=n2:(this._err(fn.missingSemicolonAfterCharacterReference),this._reconsumeInState(n2))}[n2](){if(this.charRefCode===ct.NULL)this._err(fn.nullCharacterReference),this.charRefCode=ct.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(fn.characterReferenceOutsideUnicodeRange),this.charRefCode=ct.REPLACEMENT_CHARACTER;else if(Yi.isSurrogate(this.charRefCode))this._err(fn.surrogateCharacterReference),this.charRefCode=ct.REPLACEMENT_CHARACTER;else if(Yi.isUndefinedCodePoint(this.charRefCode))this._err(fn.noncharacterCharacterReference);else if(Yi.isControlCodePoint(this.charRefCode)||this.charRefCode===ct.CARRIAGE_RETURN){this._err(fn.controlCharacterReference);const t=tKt[this.charRefCode];t&&(this.charRefCode=t)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}};Bu.CHARACTER_TOKEN="CHARACTER_TOKEN";Bu.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN";Bu.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN";Bu.START_TAG_TOKEN="START_TAG_TOKEN";Bu.END_TAG_TOKEN="END_TAG_TOKEN";Bu.COMMENT_TOKEN="COMMENT_TOKEN";Bu.DOCTYPE_TOKEN="DOCTYPE_TOKEN";Bu.EOF_TOKEN="EOF_TOKEN";Bu.HIBERNATION_TOKEN="HIBERNATION_TOKEN";Bu.MODE={DATA:ri,RCDATA:Cy,RAWTEXT:I2,SCRIPT_DATA:Ih,PLAINTEXT:lTe};Bu.getTokenAttr=function(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null};var tI=Bu,nf={};const hN=nf.NAMESPACES={HTML:"http://www.w3.org/1999/xhtml",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"};nf.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"};nf.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const Rn=nf.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"};nf.SPECIAL_ELEMENTS={[hN.HTML]:{[Rn.ADDRESS]:!0,[Rn.APPLET]:!0,[Rn.AREA]:!0,[Rn.ARTICLE]:!0,[Rn.ASIDE]:!0,[Rn.BASE]:!0,[Rn.BASEFONT]:!0,[Rn.BGSOUND]:!0,[Rn.BLOCKQUOTE]:!0,[Rn.BODY]:!0,[Rn.BR]:!0,[Rn.BUTTON]:!0,[Rn.CAPTION]:!0,[Rn.CENTER]:!0,[Rn.COL]:!0,[Rn.COLGROUP]:!0,[Rn.DD]:!0,[Rn.DETAILS]:!0,[Rn.DIR]:!0,[Rn.DIV]:!0,[Rn.DL]:!0,[Rn.DT]:!0,[Rn.EMBED]:!0,[Rn.FIELDSET]:!0,[Rn.FIGCAPTION]:!0,[Rn.FIGURE]:!0,[Rn.FOOTER]:!0,[Rn.FORM]:!0,[Rn.FRAME]:!0,[Rn.FRAMESET]:!0,[Rn.H1]:!0,[Rn.H2]:!0,[Rn.H3]:!0,[Rn.H4]:!0,[Rn.H5]:!0,[Rn.H6]:!0,[Rn.HEAD]:!0,[Rn.HEADER]:!0,[Rn.HGROUP]:!0,[Rn.HR]:!0,[Rn.HTML]:!0,[Rn.IFRAME]:!0,[Rn.IMG]:!0,[Rn.INPUT]:!0,[Rn.LI]:!0,[Rn.LINK]:!0,[Rn.LISTING]:!0,[Rn.MAIN]:!0,[Rn.MARQUEE]:!0,[Rn.MENU]:!0,[Rn.META]:!0,[Rn.NAV]:!0,[Rn.NOEMBED]:!0,[Rn.NOFRAMES]:!0,[Rn.NOSCRIPT]:!0,[Rn.OBJECT]:!0,[Rn.OL]:!0,[Rn.P]:!0,[Rn.PARAM]:!0,[Rn.PLAINTEXT]:!0,[Rn.PRE]:!0,[Rn.SCRIPT]:!0,[Rn.SECTION]:!0,[Rn.SELECT]:!0,[Rn.SOURCE]:!0,[Rn.STYLE]:!0,[Rn.SUMMARY]:!0,[Rn.TABLE]:!0,[Rn.TBODY]:!0,[Rn.TD]:!0,[Rn.TEMPLATE]:!0,[Rn.TEXTAREA]:!0,[Rn.TFOOT]:!0,[Rn.TH]:!0,[Rn.THEAD]:!0,[Rn.TITLE]:!0,[Rn.TR]:!0,[Rn.TRACK]:!0,[Rn.UL]:!0,[Rn.WBR]:!0,[Rn.XMP]:!0},[hN.MATHML]:{[Rn.MI]:!0,[Rn.MO]:!0,[Rn.MN]:!0,[Rn.MS]:!0,[Rn.MTEXT]:!0,[Rn.ANNOTATION_XML]:!0},[hN.SVG]:{[Rn.TITLE]:!0,[Rn.FOREIGN_OBJECT]:!0,[Rn.DESC]:!0}};const dTe=nf,Fn=dTe.TAG_NAMES,Xi=dTe.NAMESPACES;function Hse(e){switch(e.length){case 1:return e===Fn.P;case 2:return e===Fn.RB||e===Fn.RP||e===Fn.RT||e===Fn.DD||e===Fn.DT||e===Fn.LI;case 3:return e===Fn.RTC;case 6:return e===Fn.OPTION;case 8:return e===Fn.OPTGROUP}return!1}function iKt(e){switch(e.length){case 1:return e===Fn.P;case 2:return e===Fn.RB||e===Fn.RP||e===Fn.RT||e===Fn.DD||e===Fn.DT||e===Fn.LI||e===Fn.TD||e===Fn.TH||e===Fn.TR;case 3:return e===Fn.RTC;case 5:return e===Fn.TBODY||e===Fn.TFOOT||e===Fn.THEAD;case 6:return e===Fn.OPTION;case 7:return e===Fn.CAPTION;case 8:return e===Fn.OPTGROUP||e===Fn.COLGROUP}return!1}function A5(e,t){switch(e.length){case 2:if(e===Fn.TD||e===Fn.TH)return t===Xi.HTML;if(e===Fn.MI||e===Fn.MO||e===Fn.MN||e===Fn.MS)return t===Xi.MATHML;break;case 4:if(e===Fn.HTML)return t===Xi.HTML;if(e===Fn.DESC)return t===Xi.SVG;break;case 5:if(e===Fn.TABLE)return t===Xi.HTML;if(e===Fn.MTEXT)return t===Xi.MATHML;if(e===Fn.TITLE)return t===Xi.SVG;break;case 6:return(e===Fn.APPLET||e===Fn.OBJECT)&&t===Xi.HTML;case 7:return(e===Fn.CAPTION||e===Fn.MARQUEE)&&t===Xi.HTML;case 8:return e===Fn.TEMPLATE&&t===Xi.HTML;case 13:return e===Fn.FOREIGN_OBJECT&&t===Xi.SVG;case 14:return e===Fn.ANNOTATION_XML&&t===Xi.MATHML}return!1}let oKt=class{constructor(t,n){this.stackTop=-1,this.items=[],this.current=t,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=n}_indexOf(t){let n=-1;for(let r=this.stackTop;r>=0;r--)if(this.items[r]===t){n=r;break}return n}_isInTemplate(){return this.currentTagName===Fn.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Xi.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(t){this.items[++this.stackTop]=t,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&this._updateCurrentElement()}insertAfter(t,n){const r=this._indexOf(t)+1;this.items.splice(r,0,n),r===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(t){for(;this.stackTop>-1;){const n=this.currentTagName,r=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),n===t&&r===Xi.HTML)break}}popUntilElementPopped(t){for(;this.stackTop>-1;){const n=this.current;if(this.pop(),n===t)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===Fn.H1||t===Fn.H2||t===Fn.H3||t===Fn.H4||t===Fn.H5||t===Fn.H6&&n===Xi.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===Fn.TD||t===Fn.TH&&n===Xi.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==Fn.TABLE&&this.currentTagName!==Fn.TEMPLATE&&this.currentTagName!==Fn.HTML||this.treeAdapter.getNamespaceURI(this.current)!==Xi.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==Fn.TBODY&&this.currentTagName!==Fn.TFOOT&&this.currentTagName!==Fn.THEAD&&this.currentTagName!==Fn.TEMPLATE&&this.currentTagName!==Fn.HTML||this.treeAdapter.getNamespaceURI(this.current)!==Xi.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==Fn.TR&&this.currentTagName!==Fn.TEMPLATE&&this.currentTagName!==Fn.HTML||this.treeAdapter.getNamespaceURI(this.current)!==Xi.HTML;)this.pop()}remove(t){for(let n=this.stackTop;n>=0;n--)if(this.items[n]===t){this.items.splice(n,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const t=this.items[1];return t&&this.treeAdapter.getTagName(t)===Fn.BODY?t:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){let n=this._indexOf(t);return--n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.currentTagName===Fn.HTML}hasInScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===Xi.HTML)return!0;if(A5(r,i))return!1}return!0}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if((n===Fn.H1||n===Fn.H2||n===Fn.H3||n===Fn.H4||n===Fn.H5||n===Fn.H6)&&r===Xi.HTML)return!0;if(A5(n,r))return!1}return!0}hasInListItemScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===Xi.HTML)return!0;if((r===Fn.UL||r===Fn.OL)&&i===Xi.HTML||A5(r,i))return!1}return!0}hasInButtonScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===Xi.HTML)return!0;if(r===Fn.BUTTON&&i===Xi.HTML||A5(r,i))return!1}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===Xi.HTML){if(r===t)return!0;if(r===Fn.TABLE||r===Fn.TEMPLATE||r===Fn.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===Xi.HTML){if(n===Fn.TBODY||n===Fn.THEAD||n===Fn.TFOOT)return!0;if(n===Fn.TABLE||n===Fn.HTML)return!1}}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===Xi.HTML){if(r===t)return!0;if(r!==Fn.OPTION&&r!==Fn.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;Hse(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;iKt(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;Hse(this.currentTagName)&&this.currentTagName!==t;)this.pop()}};var aKt=oKt;const N5=3;let pq=class pm{constructor(t){this.length=0,this.entries=[],this.treeAdapter=t,this.bookmark=null}_getNoahArkConditionCandidates(t){const n=[];if(this.length>=N5){const r=this.treeAdapter.getAttrList(t).length,i=this.treeAdapter.getTagName(t),o=this.treeAdapter.getNamespaceURI(t);for(let a=this.length-1;a>=0;a--){const s=this.entries[a];if(s.type===pm.MARKER_ENTRY)break;const l=s.element,c=this.treeAdapter.getAttrList(l);this.treeAdapter.getTagName(l)===i&&this.treeAdapter.getNamespaceURI(l)===o&&c.length===r&&n.push({idx:a,attrs:c})}}return n.length<N5?[]:n}_ensureNoahArkCondition(t){const n=this._getNoahArkConditionCandidates(t);let r=n.length;if(r){const i=this.treeAdapter.getAttrList(t),o=i.length,a=Object.create(null);for(let s=0;s<o;s++){const l=i[s];a[l.name]=l.value}for(let s=0;s<o;s++)for(let l=0;l<r;l++){const c=n[l].attrs[s];if(a[c.name]!==c.value&&(n.splice(l,1),r--),n.length<N5)return}for(let s=r-1;s>=N5-1;s--)this.entries.splice(n[s].idx,1),this.length--}}insertMarker(){this.entries.push({type:pm.MARKER_ENTRY}),this.length++}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.push({type:pm.ELEMENT_ENTRY,element:t,token:n}),this.length++}insertElementAfterBookmark(t,n){let r=this.length-1;for(;r>=0&&this.entries[r]!==this.bookmark;r--);this.entries.splice(r+1,0,{type:pm.ELEMENT_ENTRY,element:t,token:n}),this.length++}removeEntry(t){for(let n=this.length-1;n>=0;n--)if(this.entries[n]===t){this.entries.splice(n,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const t=this.entries.pop();if(this.length--,t.type===pm.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===pm.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(r.element)===t)return r}return null}getElementEntry(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===pm.ELEMENT_ENTRY&&r.element===t)return r}return null}};pq.MARKER_ENTRY="MARKER_ENTRY";pq.ELEMENT_ENTRY="ELEMENT_ENTRY";var sKt=pq;let fTe=class{constructor(t){const n={},r=this._getOverriddenMethods(this,n);for(const i of Object.keys(r))typeof r[i]=="function"&&(n[i]=t[i],t[i]=r[i])}_getOverriddenMethods(){throw new Error("Not implemented")}};fTe.install=function(e,t,n){e.__mixins||(e.__mixins=[]);for(let i=0;i<e.__mixins.length;i++)if(e.__mixins[i].constructor===t)return e.__mixins[i];const r=new t(e,n);return e.__mixins.push(r),r};var Np=fTe;const lKt=Np;let cKt=class extends lKt{constructor(t){super(t),this.preprocessor=t,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.offset=0,this.col=0,this.line=1}_getOverriddenMethods(t,n){return{advance(){const r=this.pos+1,i=this.html[r];return t.isEol&&(t.isEol=!1,t.line++,t.lineStartPos=r),(i===`
|
||
`||i==="\r"&&this.html[r+1]!==`
|
||
`)&&(t.isEol=!0),t.col=r-t.lineStartPos+1,t.offset=t.droppedBufferSize+r,n.advance.call(this)},retreat(){n.retreat.call(this),t.isEol=!1,t.col=this.pos-t.lineStartPos+1},dropParsedChunk(){const r=this.pos;n.dropParsedChunk.call(this);const i=r-this.pos;t.lineStartPos-=i,t.droppedBufferSize+=i,t.offset=t.droppedBufferSize+this.pos}}}};var hTe=cKt;const zse=Np,pN=tI,uKt=hTe;let dKt=class extends zse{constructor(t){super(t),this.tokenizer=t,this.posTracker=zse.install(t.preprocessor,uKt),this.currentAttrLocation=null,this.ctLoc=null}_getCurrentLocation(){return{startLine:this.posTracker.line,startCol:this.posTracker.col,startOffset:this.posTracker.offset,endLine:-1,endCol:-1,endOffset:-1}}_attachCurrentAttrLocationInfo(){this.currentAttrLocation.endLine=this.posTracker.line,this.currentAttrLocation.endCol=this.posTracker.col,this.currentAttrLocation.endOffset=this.posTracker.offset;const t=this.tokenizer.currentToken,n=this.tokenizer.currentAttr;t.location.attrs||(t.location.attrs=Object.create(null)),t.location.attrs[n.name]=this.currentAttrLocation}_getOverriddenMethods(t,n){const r={_createStartTagToken(){n._createStartTagToken.call(this),this.currentToken.location=t.ctLoc},_createEndTagToken(){n._createEndTagToken.call(this),this.currentToken.location=t.ctLoc},_createCommentToken(){n._createCommentToken.call(this),this.currentToken.location=t.ctLoc},_createDoctypeToken(i){n._createDoctypeToken.call(this,i),this.currentToken.location=t.ctLoc},_createCharacterToken(i,o){n._createCharacterToken.call(this,i,o),this.currentCharacterToken.location=t.ctLoc},_createEOFToken(){n._createEOFToken.call(this),this.currentToken.location=t._getCurrentLocation()},_createAttr(i){n._createAttr.call(this,i),t.currentAttrLocation=t._getCurrentLocation()},_leaveAttrName(i){n._leaveAttrName.call(this,i),t._attachCurrentAttrLocationInfo()},_leaveAttrValue(i){n._leaveAttrValue.call(this,i),t._attachCurrentAttrLocationInfo()},_emitCurrentToken(){const i=this.currentToken.location;this.currentCharacterToken&&(this.currentCharacterToken.location.endLine=i.startLine,this.currentCharacterToken.location.endCol=i.startCol,this.currentCharacterToken.location.endOffset=i.startOffset),this.currentToken.type===pN.EOF_TOKEN?(i.endLine=i.startLine,i.endCol=i.startCol,i.endOffset=i.startOffset):(i.endLine=t.posTracker.line,i.endCol=t.posTracker.col+1,i.endOffset=t.posTracker.offset+1),n._emitCurrentToken.call(this)},_emitCurrentCharacterToken(){const i=this.currentCharacterToken&&this.currentCharacterToken.location;i&&i.endOffset===-1&&(i.endLine=t.posTracker.line,i.endCol=t.posTracker.col,i.endOffset=t.posTracker.offset),n._emitCurrentCharacterToken.call(this)}};return Object.keys(pN.MODE).forEach(i=>{const o=pN.MODE[i];r[o]=function(a){t.ctLoc=t._getCurrentLocation(),n[o].call(this,a)}}),r}};var pTe=dKt;const fKt=Np;let hKt=class extends fKt{constructor(t,n){super(t),this.onItemPop=n.onItemPop}_getOverriddenMethods(t,n){return{pop(){t.onItemPop(this.current),n.pop.call(this)},popAllUpToHtmlElement(){for(let r=this.stackTop;r>0;r--)t.onItemPop(this.items[r]);n.popAllUpToHtmlElement.call(this)},remove(r){t.onItemPop(this.current),n.remove.call(this,r)}}}};var pKt=hKt;const mN=Np,Use=tI,mKt=pTe,gKt=pKt,vKt=nf,gN=vKt.TAG_NAMES;let yKt=class extends mN{constructor(t){super(t),this.parser=t,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(t){let n=null;this.lastStartTagToken&&(n=Object.assign({},this.lastStartTagToken.location),n.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(t,n)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const i=n.location,o=this.treeAdapter.getTagName(t),a=n.type===Use.END_TAG_TOKEN&&o===n.tagName,s={};a?(s.endTag=Object.assign({},i),s.endLine=i.endLine,s.endCol=i.endCol,s.endOffset=i.endOffset):(s.endLine=i.startLine,s.endCol=i.startCol,s.endOffset=i.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(t,s)}}_getOverriddenMethods(t,n){return{_bootstrap(r,i){n._bootstrap.call(this,r,i),t.lastStartTagToken=null,t.lastFosterParentingLocation=null,t.currentToken=null;const o=mN.install(this.tokenizer,mKt);t.posTracker=o.posTracker,mN.install(this.openElements,gKt,{onItemPop:function(a){t._setEndLocation(a,t.currentToken)}})},_runParsingLoop(r){n._runParsingLoop.call(this,r);for(let i=this.openElements.stackTop;i>=0;i--)t._setEndLocation(this.openElements.items[i],t.currentToken)},_processTokenInForeignContent(r){t.currentToken=r,n._processTokenInForeignContent.call(this,r)},_processToken(r){if(t.currentToken=r,n._processToken.call(this,r),r.type===Use.END_TAG_TOKEN&&(r.tagName===gN.HTML||r.tagName===gN.BODY&&this.openElements.hasInScope(gN.BODY)))for(let o=this.openElements.stackTop;o>=0;o--){const a=this.openElements.items[o];if(this.treeAdapter.getTagName(a)===r.tagName){t._setEndLocation(a,r);break}}},_setDocumentType(r){n._setDocumentType.call(this,r);const i=this.treeAdapter.getChildNodes(this.document),o=i.length;for(let a=0;a<o;a++){const s=i[a];if(this.treeAdapter.isDocumentTypeNode(s)){this.treeAdapter.setNodeSourceCodeLocation(s,r.location);break}}},_attachElementToTree(r){t._setStartLocation(r),t.lastStartTagToken=null,n._attachElementToTree.call(this,r)},_appendElement(r,i){t.lastStartTagToken=r,n._appendElement.call(this,r,i)},_insertElement(r,i){t.lastStartTagToken=r,n._insertElement.call(this,r,i)},_insertTemplate(r){t.lastStartTagToken=r,n._insertTemplate.call(this,r);const i=this.treeAdapter.getTemplateContent(this.openElements.current);this.treeAdapter.setNodeSourceCodeLocation(i,null)},_insertFakeRootElement(){n._insertFakeRootElement.call(this),this.treeAdapter.setNodeSourceCodeLocation(this.openElements.current,null)},_appendCommentNode(r,i){n._appendCommentNode.call(this,r,i);const o=this.treeAdapter.getChildNodes(i),a=o[o.length-1];this.treeAdapter.setNodeSourceCodeLocation(a,r.location)},_findFosterParentingLocation(){return t.lastFosterParentingLocation=n._findFosterParentingLocation.call(this),t.lastFosterParentingLocation},_insertCharacters(r){n._insertCharacters.call(this,r);const i=this._shouldFosterParentOnInsertion(),o=i&&t.lastFosterParentingLocation.parent||this.openElements.currentTmplContent||this.openElements.current,a=this.treeAdapter.getChildNodes(o),s=i&&t.lastFosterParentingLocation.beforeElement?a.indexOf(t.lastFosterParentingLocation.beforeElement)-1:a.length-1,l=a[s];if(this.treeAdapter.getNodeSourceCodeLocation(l)){const{endLine:u,endCol:d,endOffset:h}=r.location;this.treeAdapter.updateNodeSourceCodeLocation(l,{endLine:u,endCol:d,endOffset:h})}else this.treeAdapter.setNodeSourceCodeLocation(l,r.location)}}}};var bKt=yKt;const SKt=Np;let CKt=class extends SKt{constructor(t,n){super(t),this.posTracker=null,this.onParseError=n.onParseError}_setErrorLocation(t){t.startLine=t.endLine=this.posTracker.line,t.startCol=t.endCol=this.posTracker.col,t.startOffset=t.endOffset=this.posTracker.offset}_reportError(t){const n={code:t,startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1};this._setErrorLocation(n),this.onParseError(n)}_getOverriddenMethods(t){return{_err(n){t._reportError(n)}}}};var mq=CKt;const xKt=mq,wKt=hTe,_Kt=Np;let EKt=class extends xKt{constructor(t,n){super(t,n),this.posTracker=_Kt.install(t,wKt),this.lastErrOffset=-1}_reportError(t){this.lastErrOffset!==this.posTracker.offset&&(this.lastErrOffset=this.posTracker.offset,super._reportError(t))}};var TKt=EKt;const kKt=mq,OKt=TKt,PKt=Np;let MKt=class extends kKt{constructor(t,n){super(t,n);const r=PKt.install(t.preprocessor,OKt,n);this.posTracker=r.posTracker}};var IKt=MKt;const $Kt=mq,RKt=IKt,AKt=pTe,Wse=Np;let NKt=class extends $Kt{constructor(t,n){super(t,n),this.opts=n,this.ctLoc=null,this.locBeforeToken=!1}_setErrorLocation(t){this.ctLoc&&(t.startLine=this.ctLoc.startLine,t.startCol=this.ctLoc.startCol,t.startOffset=this.ctLoc.startOffset,t.endLine=this.locBeforeToken?this.ctLoc.startLine:this.ctLoc.endLine,t.endCol=this.locBeforeToken?this.ctLoc.startCol:this.ctLoc.endCol,t.endOffset=this.locBeforeToken?this.ctLoc.startOffset:this.ctLoc.endOffset)}_getOverriddenMethods(t,n){return{_bootstrap(r,i){n._bootstrap.call(this,r,i),Wse.install(this.tokenizer,RKt,t.opts),Wse.install(this.tokenizer,AKt)},_processInputToken(r){t.ctLoc=r.location,n._processInputToken.call(this,r)},_err(r,i){t.locBeforeToken=i&&i.beforeToken,t._reportError(r)}}}};var DKt=NKt,Ci={};const{DOCUMENT_MODE:LKt}=nf;Ci.createDocument=function(){return{nodeName:"#document",mode:LKt.NO_QUIRKS,childNodes:[]}};Ci.createDocumentFragment=function(){return{nodeName:"#document-fragment",childNodes:[]}};Ci.createElement=function(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}};Ci.createCommentNode=function(e){return{nodeName:"#comment",data:e,parentNode:null}};const mTe=function(e){return{nodeName:"#text",value:e,parentNode:null}},gTe=Ci.appendChild=function(e,t){e.childNodes.push(t),t.parentNode=e},FKt=Ci.insertBefore=function(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e};Ci.setTemplateContent=function(e,t){e.content=t};Ci.getTemplateContent=function(e){return e.content};Ci.setDocumentType=function(e,t,n,r){let i=null;for(let o=0;o<e.childNodes.length;o++)if(e.childNodes[o].nodeName==="#documentType"){i=e.childNodes[o];break}i?(i.name=t,i.publicId=n,i.systemId=r):gTe(e,{nodeName:"#documentType",name:t,publicId:n,systemId:r})};Ci.setDocumentMode=function(e,t){e.mode=t};Ci.getDocumentMode=function(e){return e.mode};Ci.detachNode=function(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}};Ci.insertText=function(e,t){if(e.childNodes.length){const n=e.childNodes[e.childNodes.length-1];if(n.nodeName==="#text"){n.value+=t;return}}gTe(e,mTe(t))};Ci.insertTextBefore=function(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&r.nodeName==="#text"?r.value+=t:FKt(e,mTe(t),n)};Ci.adoptAttributes=function(e,t){const n=[];for(let r=0;r<e.attrs.length;r++)n.push(e.attrs[r].name);for(let r=0;r<t.length;r++)n.indexOf(t[r].name)===-1&&e.attrs.push(t[r])};Ci.getFirstChild=function(e){return e.childNodes[0]};Ci.getChildNodes=function(e){return e.childNodes};Ci.getParentNode=function(e){return e.parentNode};Ci.getAttrList=function(e){return e.attrs};Ci.getTagName=function(e){return e.tagName};Ci.getNamespaceURI=function(e){return e.namespaceURI};Ci.getTextNodeContent=function(e){return e.value};Ci.getCommentNodeContent=function(e){return e.data};Ci.getDocumentTypeNodeName=function(e){return e.name};Ci.getDocumentTypeNodePublicId=function(e){return e.publicId};Ci.getDocumentTypeNodeSystemId=function(e){return e.systemId};Ci.isTextNode=function(e){return e.nodeName==="#text"};Ci.isCommentNode=function(e){return e.nodeName==="#comment"};Ci.isDocumentTypeNode=function(e){return e.nodeName==="#documentType"};Ci.isElementNode=function(e){return!!e.tagName};Ci.setNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=t};Ci.getNodeSourceCodeLocation=function(e){return e.sourceCodeLocation};Ci.updateNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=Object.assign(e.sourceCodeLocation,t)};var jKt=function(t,n){return n=n||Object.create(null),[t,n].reduce((r,i)=>(Object.keys(i).forEach(o=>{r[o]=i[o]}),r),Object.create(null))},nI={};const{DOCUMENT_MODE:fy}=nf,vTe="html",BKt="about:legacy-compat",HKt="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",yTe=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],zKt=yTe.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),UKt=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],bTe=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],WKt=bTe.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function Vse(e){const t=e.indexOf('"')!==-1?"'":'"';return t+e+t}function Kse(e,t){for(let n=0;n<t.length;n++)if(e.indexOf(t[n])===0)return!0;return!1}nI.isConforming=function(e){return e.name===vTe&&e.publicId===null&&(e.systemId===null||e.systemId===BKt)};nI.getDocumentMode=function(e){if(e.name!==vTe)return fy.QUIRKS;const t=e.systemId;if(t&&t.toLowerCase()===HKt)return fy.QUIRKS;let n=e.publicId;if(n!==null){if(n=n.toLowerCase(),UKt.indexOf(n)>-1)return fy.QUIRKS;let r=t===null?zKt:yTe;if(Kse(n,r))return fy.QUIRKS;if(r=t===null?bTe:WKt,Kse(n,r))return fy.LIMITED_QUIRKS}return fy.NO_QUIRKS};nI.serializeContent=function(e,t,n){let r="!DOCTYPE ";return e&&(r+=e),t?r+=" PUBLIC "+Vse(t):n&&(r+=" SYSTEM"),n!==null&&(r+=" "+Vse(n)),r};var Tg={};const vN=tI,gq=nf,_r=gq.TAG_NAMES,ms=gq.NAMESPACES,u3=gq.ATTRS,qse={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},VKt="definitionurl",KKt="definitionURL",qKt={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},GKt={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:ms.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:ms.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:ms.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:ms.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:ms.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:ms.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:ms.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:ms.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:ms.XML},"xml:space":{prefix:"xml",name:"space",namespace:ms.XML},xmlns:{prefix:"",name:"xmlns",namespace:ms.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:ms.XMLNS}},YKt=Tg.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},XKt={[_r.B]:!0,[_r.BIG]:!0,[_r.BLOCKQUOTE]:!0,[_r.BODY]:!0,[_r.BR]:!0,[_r.CENTER]:!0,[_r.CODE]:!0,[_r.DD]:!0,[_r.DIV]:!0,[_r.DL]:!0,[_r.DT]:!0,[_r.EM]:!0,[_r.EMBED]:!0,[_r.H1]:!0,[_r.H2]:!0,[_r.H3]:!0,[_r.H4]:!0,[_r.H5]:!0,[_r.H6]:!0,[_r.HEAD]:!0,[_r.HR]:!0,[_r.I]:!0,[_r.IMG]:!0,[_r.LI]:!0,[_r.LISTING]:!0,[_r.MENU]:!0,[_r.META]:!0,[_r.NOBR]:!0,[_r.OL]:!0,[_r.P]:!0,[_r.PRE]:!0,[_r.RUBY]:!0,[_r.S]:!0,[_r.SMALL]:!0,[_r.SPAN]:!0,[_r.STRONG]:!0,[_r.STRIKE]:!0,[_r.SUB]:!0,[_r.SUP]:!0,[_r.TABLE]:!0,[_r.TT]:!0,[_r.U]:!0,[_r.UL]:!0,[_r.VAR]:!0};Tg.causesExit=function(e){const t=e.tagName;return t===_r.FONT&&(vN.getTokenAttr(e,u3.COLOR)!==null||vN.getTokenAttr(e,u3.SIZE)!==null||vN.getTokenAttr(e,u3.FACE)!==null)?!0:XKt[t]};Tg.adjustTokenMathMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===VKt){e.attrs[t].name=KKt;break}};Tg.adjustTokenSVGAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const n=qKt[e.attrs[t].name];n&&(e.attrs[t].name=n)}};Tg.adjustTokenXMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const n=GKt[e.attrs[t].name];n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}};Tg.adjustTokenSVGTagName=function(e){const t=YKt[e.tagName];t&&(e.tagName=t)};function QKt(e,t){return t===ms.MATHML&&(e===_r.MI||e===_r.MO||e===_r.MN||e===_r.MS||e===_r.MTEXT)}function ZKt(e,t,n){if(t===ms.MATHML&&e===_r.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===u3.ENCODING){const i=n[r].value.toLowerCase();return i===qse.TEXT_HTML||i===qse.APPLICATION_XML}}return t===ms.SVG&&(e===_r.FOREIGN_OBJECT||e===_r.DESC||e===_r.TITLE)}Tg.isIntegrationPoint=function(e,t,n,r){return!!((!r||r===ms.HTML)&&ZKt(e,t,n)||(!r||r===ms.MATHML)&&QKt(e,t))};const ht=tI,JKt=aKt,Gse=sKt,eqt=bKt,tqt=DKt,Yse=Np,nqt=Ci,rqt=jKt,Xse=nI,Pf=Tg,Ss=hq,iqt=tf,u0=nf,Me=u0.TAG_NAMES,lr=u0.NAMESPACES,STe=u0.ATTRS,oqt={scriptingEnabled:!0,sourceCodeLocationInfo:!1,onParseError:null,treeAdapter:nqt},CTe="hidden",aqt=8,sqt=3,xTe="INITIAL_MODE",vq="BEFORE_HTML_MODE",rI="BEFORE_HEAD_MODE",AC="IN_HEAD_MODE",wTe="IN_HEAD_NO_SCRIPT_MODE",iI="AFTER_HEAD_MODE",Uf="IN_BODY_MODE",$k="TEXT_MODE",js="IN_TABLE_MODE",_Te="IN_TABLE_TEXT_MODE",oI="IN_CAPTION_MODE",S4="IN_COLUMN_GROUP_MODE",xu="IN_TABLE_BODY_MODE",bp="IN_ROW_MODE",aI="IN_CELL_MODE",yq="IN_SELECT_MODE",bq="IN_SELECT_IN_TABLE_MODE",Rk="IN_TEMPLATE_MODE",Sq="AFTER_BODY_MODE",sI="IN_FRAMESET_MODE",ETe="AFTER_FRAMESET_MODE",TTe="AFTER_AFTER_BODY_MODE",kTe="AFTER_AFTER_FRAMESET_MODE",lqt={[Me.TR]:bp,[Me.TBODY]:xu,[Me.THEAD]:xu,[Me.TFOOT]:xu,[Me.CAPTION]:oI,[Me.COLGROUP]:S4,[Me.TABLE]:js,[Me.BODY]:Uf,[Me.FRAMESET]:sI},cqt={[Me.CAPTION]:js,[Me.COLGROUP]:js,[Me.TBODY]:js,[Me.TFOOT]:js,[Me.THEAD]:js,[Me.COL]:S4,[Me.TR]:xu,[Me.TD]:bp,[Me.TH]:bp},Qse={[xTe]:{[ht.CHARACTER_TOKEN]:i2,[ht.NULL_CHARACTER_TOKEN]:i2,[ht.WHITESPACE_CHARACTER_TOKEN]:ci,[ht.COMMENT_TOKEN]:La,[ht.DOCTYPE_TOKEN]:bqt,[ht.START_TAG_TOKEN]:i2,[ht.END_TAG_TOKEN]:i2,[ht.EOF_TOKEN]:i2},[vq]:{[ht.CHARACTER_TOKEN]:hw,[ht.NULL_CHARACTER_TOKEN]:hw,[ht.WHITESPACE_CHARACTER_TOKEN]:ci,[ht.COMMENT_TOKEN]:La,[ht.DOCTYPE_TOKEN]:ci,[ht.START_TAG_TOKEN]:Sqt,[ht.END_TAG_TOKEN]:Cqt,[ht.EOF_TOKEN]:hw},[rI]:{[ht.CHARACTER_TOKEN]:pw,[ht.NULL_CHARACTER_TOKEN]:pw,[ht.WHITESPACE_CHARACTER_TOKEN]:ci,[ht.COMMENT_TOKEN]:La,[ht.DOCTYPE_TOKEN]:D5,[ht.START_TAG_TOKEN]:xqt,[ht.END_TAG_TOKEN]:wqt,[ht.EOF_TOKEN]:pw},[AC]:{[ht.CHARACTER_TOKEN]:mw,[ht.NULL_CHARACTER_TOKEN]:mw,[ht.WHITESPACE_CHARACTER_TOKEN]:kl,[ht.COMMENT_TOKEN]:La,[ht.DOCTYPE_TOKEN]:D5,[ht.START_TAG_TOKEN]:ns,[ht.END_TAG_TOKEN]:d0,[ht.EOF_TOKEN]:mw},[wTe]:{[ht.CHARACTER_TOKEN]:gw,[ht.NULL_CHARACTER_TOKEN]:gw,[ht.WHITESPACE_CHARACTER_TOKEN]:kl,[ht.COMMENT_TOKEN]:La,[ht.DOCTYPE_TOKEN]:D5,[ht.START_TAG_TOKEN]:_qt,[ht.END_TAG_TOKEN]:Eqt,[ht.EOF_TOKEN]:gw},[iI]:{[ht.CHARACTER_TOKEN]:vw,[ht.NULL_CHARACTER_TOKEN]:vw,[ht.WHITESPACE_CHARACTER_TOKEN]:kl,[ht.COMMENT_TOKEN]:La,[ht.DOCTYPE_TOKEN]:D5,[ht.START_TAG_TOKEN]:Tqt,[ht.END_TAG_TOKEN]:kqt,[ht.EOF_TOKEN]:vw},[Uf]:{[ht.CHARACTER_TOKEN]:L5,[ht.NULL_CHARACTER_TOKEN]:ci,[ht.WHITESPACE_CHARACTER_TOKEN]:e1,[ht.COMMENT_TOKEN]:La,[ht.DOCTYPE_TOKEN]:ci,[ht.START_TAG_TOKEN]:Ql,[ht.END_TAG_TOKEN]:Cq,[ht.EOF_TOKEN]:_h},[$k]:{[ht.CHARACTER_TOKEN]:kl,[ht.NULL_CHARACTER_TOKEN]:kl,[ht.WHITESPACE_CHARACTER_TOKEN]:kl,[ht.COMMENT_TOKEN]:ci,[ht.DOCTYPE_TOKEN]:ci,[ht.START_TAG_TOKEN]:ci,[ht.END_TAG_TOKEN]:iGt,[ht.EOF_TOKEN]:oGt},[js]:{[ht.CHARACTER_TOKEN]:Eh,[ht.NULL_CHARACTER_TOKEN]:Eh,[ht.WHITESPACE_CHARACTER_TOKEN]:Eh,[ht.COMMENT_TOKEN]:La,[ht.DOCTYPE_TOKEN]:ci,[ht.START_TAG_TOKEN]:xq,[ht.END_TAG_TOKEN]:wq,[ht.EOF_TOKEN]:_h},[_Te]:{[ht.CHARACTER_TOKEN]:mGt,[ht.NULL_CHARACTER_TOKEN]:ci,[ht.WHITESPACE_CHARACTER_TOKEN]:pGt,[ht.COMMENT_TOKEN]:o2,[ht.DOCTYPE_TOKEN]:o2,[ht.START_TAG_TOKEN]:o2,[ht.END_TAG_TOKEN]:o2,[ht.EOF_TOKEN]:o2},[oI]:{[ht.CHARACTER_TOKEN]:L5,[ht.NULL_CHARACTER_TOKEN]:ci,[ht.WHITESPACE_CHARACTER_TOKEN]:e1,[ht.COMMENT_TOKEN]:La,[ht.DOCTYPE_TOKEN]:ci,[ht.START_TAG_TOKEN]:gGt,[ht.END_TAG_TOKEN]:vGt,[ht.EOF_TOKEN]:_h},[S4]:{[ht.CHARACTER_TOKEN]:Ak,[ht.NULL_CHARACTER_TOKEN]:Ak,[ht.WHITESPACE_CHARACTER_TOKEN]:kl,[ht.COMMENT_TOKEN]:La,[ht.DOCTYPE_TOKEN]:ci,[ht.START_TAG_TOKEN]:yGt,[ht.END_TAG_TOKEN]:bGt,[ht.EOF_TOKEN]:_h},[xu]:{[ht.CHARACTER_TOKEN]:Eh,[ht.NULL_CHARACTER_TOKEN]:Eh,[ht.WHITESPACE_CHARACTER_TOKEN]:Eh,[ht.COMMENT_TOKEN]:La,[ht.DOCTYPE_TOKEN]:ci,[ht.START_TAG_TOKEN]:SGt,[ht.END_TAG_TOKEN]:CGt,[ht.EOF_TOKEN]:_h},[bp]:{[ht.CHARACTER_TOKEN]:Eh,[ht.NULL_CHARACTER_TOKEN]:Eh,[ht.WHITESPACE_CHARACTER_TOKEN]:Eh,[ht.COMMENT_TOKEN]:La,[ht.DOCTYPE_TOKEN]:ci,[ht.START_TAG_TOKEN]:xGt,[ht.END_TAG_TOKEN]:wGt,[ht.EOF_TOKEN]:_h},[aI]:{[ht.CHARACTER_TOKEN]:L5,[ht.NULL_CHARACTER_TOKEN]:ci,[ht.WHITESPACE_CHARACTER_TOKEN]:e1,[ht.COMMENT_TOKEN]:La,[ht.DOCTYPE_TOKEN]:ci,[ht.START_TAG_TOKEN]:_Gt,[ht.END_TAG_TOKEN]:EGt,[ht.EOF_TOKEN]:_h},[yq]:{[ht.CHARACTER_TOKEN]:kl,[ht.NULL_CHARACTER_TOKEN]:ci,[ht.WHITESPACE_CHARACTER_TOKEN]:kl,[ht.COMMENT_TOKEN]:La,[ht.DOCTYPE_TOKEN]:ci,[ht.START_TAG_TOKEN]:OTe,[ht.END_TAG_TOKEN]:PTe,[ht.EOF_TOKEN]:_h},[bq]:{[ht.CHARACTER_TOKEN]:kl,[ht.NULL_CHARACTER_TOKEN]:ci,[ht.WHITESPACE_CHARACTER_TOKEN]:kl,[ht.COMMENT_TOKEN]:La,[ht.DOCTYPE_TOKEN]:ci,[ht.START_TAG_TOKEN]:TGt,[ht.END_TAG_TOKEN]:kGt,[ht.EOF_TOKEN]:_h},[Rk]:{[ht.CHARACTER_TOKEN]:L5,[ht.NULL_CHARACTER_TOKEN]:ci,[ht.WHITESPACE_CHARACTER_TOKEN]:e1,[ht.COMMENT_TOKEN]:La,[ht.DOCTYPE_TOKEN]:ci,[ht.START_TAG_TOKEN]:OGt,[ht.END_TAG_TOKEN]:PGt,[ht.EOF_TOKEN]:MTe},[Sq]:{[ht.CHARACTER_TOKEN]:Nk,[ht.NULL_CHARACTER_TOKEN]:Nk,[ht.WHITESPACE_CHARACTER_TOKEN]:e1,[ht.COMMENT_TOKEN]:yqt,[ht.DOCTYPE_TOKEN]:ci,[ht.START_TAG_TOKEN]:MGt,[ht.END_TAG_TOKEN]:IGt,[ht.EOF_TOKEN]:r2},[sI]:{[ht.CHARACTER_TOKEN]:ci,[ht.NULL_CHARACTER_TOKEN]:ci,[ht.WHITESPACE_CHARACTER_TOKEN]:kl,[ht.COMMENT_TOKEN]:La,[ht.DOCTYPE_TOKEN]:ci,[ht.START_TAG_TOKEN]:$Gt,[ht.END_TAG_TOKEN]:RGt,[ht.EOF_TOKEN]:r2},[ETe]:{[ht.CHARACTER_TOKEN]:ci,[ht.NULL_CHARACTER_TOKEN]:ci,[ht.WHITESPACE_CHARACTER_TOKEN]:kl,[ht.COMMENT_TOKEN]:La,[ht.DOCTYPE_TOKEN]:ci,[ht.START_TAG_TOKEN]:AGt,[ht.END_TAG_TOKEN]:NGt,[ht.EOF_TOKEN]:r2},[TTe]:{[ht.CHARACTER_TOKEN]:d3,[ht.NULL_CHARACTER_TOKEN]:d3,[ht.WHITESPACE_CHARACTER_TOKEN]:e1,[ht.COMMENT_TOKEN]:Zse,[ht.DOCTYPE_TOKEN]:ci,[ht.START_TAG_TOKEN]:DGt,[ht.END_TAG_TOKEN]:d3,[ht.EOF_TOKEN]:r2},[kTe]:{[ht.CHARACTER_TOKEN]:ci,[ht.NULL_CHARACTER_TOKEN]:ci,[ht.WHITESPACE_CHARACTER_TOKEN]:e1,[ht.COMMENT_TOKEN]:Zse,[ht.DOCTYPE_TOKEN]:ci,[ht.START_TAG_TOKEN]:LGt,[ht.END_TAG_TOKEN]:ci,[ht.EOF_TOKEN]:r2}};let uqt=class{constructor(t){this.options=rqt(oqt,t),this.treeAdapter=this.options.treeAdapter,this.pendingScript=null,this.options.sourceCodeLocationInfo&&Yse.install(this,eqt),this.options.onParseError&&Yse.install(this,tqt,{onParseError:this.options.onParseError})}parse(t){const n=this.treeAdapter.createDocument();return this._bootstrap(n,null),this.tokenizer.write(t,!0),this._runParsingLoop(null),n}parseFragment(t,n){n||(n=this.treeAdapter.createElement(Me.TEMPLATE,lr.HTML,[]));const r=this.treeAdapter.createElement("documentmock",lr.HTML,[]);this._bootstrap(r,n),this.treeAdapter.getTagName(n)===Me.TEMPLATE&&this._pushTmplInsertionMode(Rk),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(t,!0),this._runParsingLoop(null);const i=this.treeAdapter.getFirstChild(r),o=this.treeAdapter.createDocumentFragment();return this._adoptNodes(i,o),o}_bootstrap(t,n){this.tokenizer=new ht(this.options),this.stopped=!1,this.insertionMode=xTe,this.originalInsertionMode="",this.document=t,this.fragmentContext=n,this.headElement=null,this.formElement=null,this.openElements=new JKt(this.document,this.treeAdapter),this.activeFormattingElements=new Gse(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1}_err(){}_runParsingLoop(t){for(;!this.stopped;){this._setupTokenizerCDATAMode();const n=this.tokenizer.getNextToken();if(n.type===ht.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,n.type===ht.WHITESPACE_CHARACTER_TOKEN&&n.chars[0]===`
|
||
`)){if(n.chars.length===1)continue;n.chars=n.chars.substr(1)}if(this._processInputToken(n),t&&this.pendingScript)break}}runParsingLoopForCurrentChunk(t,n){if(this._runParsingLoop(n),n&&this.pendingScript){const r=this.pendingScript;this.pendingScript=null,n(r);return}t&&t()}_setupTokenizerCDATAMode(){const t=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=t&&t!==this.document&&this.treeAdapter.getNamespaceURI(t)!==lr.HTML&&!this._isIntegrationPoint(t)}_switchToTextParsing(t,n){this._insertElement(t,lr.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=$k}switchToPlaintextParsing(){this.insertionMode=$k,this.originalInsertionMode=Uf,this.tokenizer.state=ht.MODE.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;do{if(this.treeAdapter.getTagName(t)===Me.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}while(t)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===lr.HTML){const t=this.treeAdapter.getTagName(this.fragmentContext);t===Me.TITLE||t===Me.TEXTAREA?this.tokenizer.state=ht.MODE.RCDATA:t===Me.STYLE||t===Me.XMP||t===Me.IFRAME||t===Me.NOEMBED||t===Me.NOFRAMES||t===Me.NOSCRIPT?this.tokenizer.state=ht.MODE.RAWTEXT:t===Me.SCRIPT?this.tokenizer.state=ht.MODE.SCRIPT_DATA:t===Me.PLAINTEXT&&(this.tokenizer.state=ht.MODE.PLAINTEXT)}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";this.treeAdapter.setDocumentType(this.document,n,r,i)}_attachElementToTree(t){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const n=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(n,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r),this.openElements.push(r)}_insertFakeElement(t){const n=this.treeAdapter.createElement(t,lr.HTML,[]);this._attachElementToTree(n),this.openElements.push(n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,lr.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n),this.openElements.push(n)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(Me.HTML,lr.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r)}_insertCharacters(t){if(this._shouldFosterParentOnInsertion())this._fosterParentText(t.chars);else{const n=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(n,t.chars)}}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_shouldProcessTokenInForeignContent(t){const n=this._getAdjustedCurrentElement();if(!n||n===this.document)return!1;const r=this.treeAdapter.getNamespaceURI(n);if(r===lr.HTML||this.treeAdapter.getTagName(n)===Me.ANNOTATION_XML&&r===lr.MATHML&&t.type===ht.START_TAG_TOKEN&&t.tagName===Me.SVG)return!1;const i=t.type===ht.CHARACTER_TOKEN||t.type===ht.NULL_CHARACTER_TOKEN||t.type===ht.WHITESPACE_CHARACTER_TOKEN;return(t.type===ht.START_TAG_TOKEN&&t.tagName!==Me.MGLYPH&&t.tagName!==Me.MALIGNMARK||i)&&this._isIntegrationPoint(n,lr.MATHML)||(t.type===ht.START_TAG_TOKEN||i)&&this._isIntegrationPoint(n,lr.HTML)?!1:t.type!==ht.EOF_TOKEN}_processToken(t){Qse[this.insertionMode][t.type](this,t)}_processTokenInBodyMode(t){Qse[Uf][t.type](this,t)}_processTokenInForeignContent(t){t.type===ht.CHARACTER_TOKEN?jGt(this,t):t.type===ht.NULL_CHARACTER_TOKEN?FGt(this,t):t.type===ht.WHITESPACE_CHARACTER_TOKEN?kl(this,t):t.type===ht.COMMENT_TOKEN?La(this,t):t.type===ht.START_TAG_TOKEN?BGt(this,t):t.type===ht.END_TAG_TOKEN&&HGt(this,t)}_processInputToken(t){this._shouldProcessTokenInForeignContent(t)?this._processTokenInForeignContent(t):this._processToken(t),t.type===ht.START_TAG_TOKEN&&t.selfClosing&&!t.ackSelfClosing&&this._err(Ss.nonVoidHtmlElementStartTagWithTrailingSolidus)}_isIntegrationPoint(t,n){const r=this.treeAdapter.getTagName(t),i=this.treeAdapter.getNamespaceURI(t),o=this.treeAdapter.getAttrList(t);return Pf.isIntegrationPoint(r,i,o,n)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.length;if(t){let n=t,r=null;do if(n--,r=this.activeFormattingElements.entries[n],r.type===Gse.MARKER_ENTRY||this.openElements.contains(r.element)){n++;break}while(n>0);for(let i=n;i<t;i++)r=this.activeFormattingElements.entries[i],this._insertElement(r.token,this.treeAdapter.getNamespaceURI(r.element)),r.element=this.openElements.current}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=bp}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(Me.P),this.openElements.popUntilTagNamePopped(Me.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop,n=!1;t>=0;t--){let r=this.openElements.items[t];t===0&&(n=!0,this.fragmentContext&&(r=this.fragmentContext));const i=this.treeAdapter.getTagName(r),o=lqt[i];if(o){this.insertionMode=o;break}else if(!n&&(i===Me.TD||i===Me.TH)){this.insertionMode=aI;break}else if(!n&&i===Me.HEAD){this.insertionMode=AC;break}else if(i===Me.SELECT){this._resetInsertionModeForSelect(t);break}else if(i===Me.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}else if(i===Me.HTML){this.insertionMode=this.headElement?iI:rI;break}else if(n){this.insertionMode=Uf;break}}}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r);if(i===Me.TEMPLATE)break;if(i===Me.TABLE){this.insertionMode=bq;return}}this.insertionMode=yq}_pushTmplInsertionMode(t){this.tmplInsertionModeStack.push(t),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=t}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(t){const n=this.treeAdapter.getTagName(t);return n===Me.TABLE||n===Me.TBODY||n===Me.TFOOT||n===Me.THEAD||n===Me.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const t={parent:null,beforeElement:null};for(let n=this.openElements.stackTop;n>=0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r),o=this.treeAdapter.getNamespaceURI(r);if(i===Me.TEMPLATE&&o===lr.HTML){t.parent=this.treeAdapter.getTemplateContent(r);break}else if(i===Me.TABLE){t.parent=this.treeAdapter.getParentNode(r),t.parent?t.beforeElement=r:t.parent=this.openElements.items[n-1];break}}return t.parent||(t.parent=this.openElements.items[0]),t}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_fosterParentText(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertTextBefore(n.parent,t,n.beforeElement):this.treeAdapter.insertText(n.parent,t)}_isSpecialElement(t){const n=this.treeAdapter.getTagName(t),r=this.treeAdapter.getNamespaceURI(t);return u0.SPECIAL_ELEMENTS[r][n]}};var dqt=uqt;function fqt(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagName)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):ad(e,t),n}function hqt(e,t){let n=null;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i)&&(n=i)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}function pqt(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let o=0,a=i;a!==n;o++,a=i){i=e.openElements.getCommonAncestor(a);const s=e.activeFormattingElements.getElementEntry(a),l=s&&o>=sqt;!s||l?(l&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(a)):(a=mqt(e,s),r===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function mqt(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function gqt(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{const r=e.treeAdapter.getTagName(t),i=e.treeAdapter.getNamespaceURI(t);r===Me.TEMPLATE&&i===lr.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function vqt(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),i=n.token,o=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o)}function Sm(e,t){let n;for(let r=0;r<aqt&&(n=fqt(e,t),!!n);r++){const i=hqt(e,n);if(!i)break;e.activeFormattingElements.bookmark=n;const o=pqt(e,i,n.element),a=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(o),gqt(e,a,o),vqt(e,i,n)}}function ci(){}function D5(e){e._err(Ss.misplacedDoctype)}function La(e,t){e._appendCommentNode(t,e.openElements.currentTmplContent||e.openElements.current)}function yqt(e,t){e._appendCommentNode(t,e.openElements.items[0])}function Zse(e,t){e._appendCommentNode(t,e.document)}function kl(e,t){e._insertCharacters(t)}function r2(e){e.stopped=!0}function bqt(e,t){e._setDocumentType(t);const n=t.forceQuirks?u0.DOCUMENT_MODE.QUIRKS:Xse.getDocumentMode(t);Xse.isConforming(t)||e._err(Ss.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=vq}function i2(e,t){e._err(Ss.missingDoctype,{beforeToken:!0}),e.treeAdapter.setDocumentMode(e.document,u0.DOCUMENT_MODE.QUIRKS),e.insertionMode=vq,e._processToken(t)}function Sqt(e,t){t.tagName===Me.HTML?(e._insertElement(t,lr.HTML),e.insertionMode=rI):hw(e,t)}function Cqt(e,t){const n=t.tagName;(n===Me.HTML||n===Me.HEAD||n===Me.BODY||n===Me.BR)&&hw(e,t)}function hw(e,t){e._insertFakeRootElement(),e.insertionMode=rI,e._processToken(t)}function xqt(e,t){const n=t.tagName;n===Me.HTML?Ql(e,t):n===Me.HEAD?(e._insertElement(t,lr.HTML),e.headElement=e.openElements.current,e.insertionMode=AC):pw(e,t)}function wqt(e,t){const n=t.tagName;n===Me.HEAD||n===Me.BODY||n===Me.HTML||n===Me.BR?pw(e,t):e._err(Ss.endTagWithoutMatchingOpenElement)}function pw(e,t){e._insertFakeElement(Me.HEAD),e.headElement=e.openElements.current,e.insertionMode=AC,e._processToken(t)}function ns(e,t){const n=t.tagName;n===Me.HTML?Ql(e,t):n===Me.BASE||n===Me.BASEFONT||n===Me.BGSOUND||n===Me.LINK||n===Me.META?(e._appendElement(t,lr.HTML),t.ackSelfClosing=!0):n===Me.TITLE?e._switchToTextParsing(t,ht.MODE.RCDATA):n===Me.NOSCRIPT?e.options.scriptingEnabled?e._switchToTextParsing(t,ht.MODE.RAWTEXT):(e._insertElement(t,lr.HTML),e.insertionMode=wTe):n===Me.NOFRAMES||n===Me.STYLE?e._switchToTextParsing(t,ht.MODE.RAWTEXT):n===Me.SCRIPT?e._switchToTextParsing(t,ht.MODE.SCRIPT_DATA):n===Me.TEMPLATE?(e._insertTemplate(t,lr.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=Rk,e._pushTmplInsertionMode(Rk)):n===Me.HEAD?e._err(Ss.misplacedStartTagForHeadElement):mw(e,t)}function d0(e,t){const n=t.tagName;n===Me.HEAD?(e.openElements.pop(),e.insertionMode=iI):n===Me.BODY||n===Me.BR||n===Me.HTML?mw(e,t):n===Me.TEMPLATE&&e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==Me.TEMPLATE&&e._err(Ss.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(Me.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(Ss.endTagWithoutMatchingOpenElement)}function mw(e,t){e.openElements.pop(),e.insertionMode=iI,e._processToken(t)}function _qt(e,t){const n=t.tagName;n===Me.HTML?Ql(e,t):n===Me.BASEFONT||n===Me.BGSOUND||n===Me.HEAD||n===Me.LINK||n===Me.META||n===Me.NOFRAMES||n===Me.STYLE?ns(e,t):n===Me.NOSCRIPT?e._err(Ss.nestedNoscriptInHead):gw(e,t)}function Eqt(e,t){const n=t.tagName;n===Me.NOSCRIPT?(e.openElements.pop(),e.insertionMode=AC):n===Me.BR?gw(e,t):e._err(Ss.endTagWithoutMatchingOpenElement)}function gw(e,t){const n=t.type===ht.EOF_TOKEN?Ss.openElementsLeftAfterEof:Ss.disallowedContentInNoscriptInHead;e._err(n),e.openElements.pop(),e.insertionMode=AC,e._processToken(t)}function Tqt(e,t){const n=t.tagName;n===Me.HTML?Ql(e,t):n===Me.BODY?(e._insertElement(t,lr.HTML),e.framesetOk=!1,e.insertionMode=Uf):n===Me.FRAMESET?(e._insertElement(t,lr.HTML),e.insertionMode=sI):n===Me.BASE||n===Me.BASEFONT||n===Me.BGSOUND||n===Me.LINK||n===Me.META||n===Me.NOFRAMES||n===Me.SCRIPT||n===Me.STYLE||n===Me.TEMPLATE||n===Me.TITLE?(e._err(Ss.abandonedHeadElementChild),e.openElements.push(e.headElement),ns(e,t),e.openElements.remove(e.headElement)):n===Me.HEAD?e._err(Ss.misplacedStartTagForHeadElement):vw(e,t)}function kqt(e,t){const n=t.tagName;n===Me.BODY||n===Me.HTML||n===Me.BR?vw(e,t):n===Me.TEMPLATE?d0(e,t):e._err(Ss.endTagWithoutMatchingOpenElement)}function vw(e,t){e._insertFakeElement(Me.BODY),e.insertionMode=Uf,e._processToken(t)}function e1(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function L5(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Oqt(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Pqt(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function Mqt(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,lr.HTML),e.insertionMode=sI)}function wh(e,t){e.openElements.hasInButtonScope(Me.P)&&e._closePElement(),e._insertElement(t,lr.HTML)}function Iqt(e,t){e.openElements.hasInButtonScope(Me.P)&&e._closePElement();const n=e.openElements.currentTagName;(n===Me.H1||n===Me.H2||n===Me.H3||n===Me.H4||n===Me.H5||n===Me.H6)&&e.openElements.pop(),e._insertElement(t,lr.HTML)}function Jse(e,t){e.openElements.hasInButtonScope(Me.P)&&e._closePElement(),e._insertElement(t,lr.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function $qt(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(Me.P)&&e._closePElement(),e._insertElement(t,lr.HTML),n||(e.formElement=e.openElements.current))}function Rqt(e,t){e.framesetOk=!1;const n=t.tagName;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r],o=e.treeAdapter.getTagName(i);let a=null;if(n===Me.LI&&o===Me.LI?a=Me.LI:(n===Me.DD||n===Me.DT)&&(o===Me.DD||o===Me.DT)&&(a=o),a){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(o!==Me.ADDRESS&&o!==Me.DIV&&o!==Me.P&&e._isSpecialElement(i))break}e.openElements.hasInButtonScope(Me.P)&&e._closePElement(),e._insertElement(t,lr.HTML)}function Aqt(e,t){e.openElements.hasInButtonScope(Me.P)&&e._closePElement(),e._insertElement(t,lr.HTML),e.tokenizer.state=ht.MODE.PLAINTEXT}function Nqt(e,t){e.openElements.hasInScope(Me.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Me.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,lr.HTML),e.framesetOk=!1}function Dqt(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(Me.A);n&&(Sm(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,lr.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function hy(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,lr.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Lqt(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(Me.NOBR)&&(Sm(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,lr.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function ele(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,lr.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Fqt(e,t){e.treeAdapter.getDocumentMode(e.document)!==u0.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(Me.P)&&e._closePElement(),e._insertElement(t,lr.HTML),e.framesetOk=!1,e.insertionMode=js}function xy(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,lr.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function jqt(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,lr.HTML);const n=ht.getTokenAttr(t,STe.TYPE);(!n||n.toLowerCase()!==CTe)&&(e.framesetOk=!1),t.ackSelfClosing=!0}function tle(e,t){e._appendElement(t,lr.HTML),t.ackSelfClosing=!0}function Bqt(e,t){e.openElements.hasInButtonScope(Me.P)&&e._closePElement(),e._appendElement(t,lr.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Hqt(e,t){t.tagName=Me.IMG,xy(e,t)}function zqt(e,t){e._insertElement(t,lr.HTML),e.skipNextNewLine=!0,e.tokenizer.state=ht.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=$k}function Uqt(e,t){e.openElements.hasInButtonScope(Me.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,ht.MODE.RAWTEXT)}function Wqt(e,t){e.framesetOk=!1,e._switchToTextParsing(t,ht.MODE.RAWTEXT)}function nle(e,t){e._switchToTextParsing(t,ht.MODE.RAWTEXT)}function Vqt(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,lr.HTML),e.framesetOk=!1,e.insertionMode===js||e.insertionMode===oI||e.insertionMode===xu||e.insertionMode===bp||e.insertionMode===aI?e.insertionMode=bq:e.insertionMode=yq}function rle(e,t){e.openElements.currentTagName===Me.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,lr.HTML)}function ile(e,t){e.openElements.hasInScope(Me.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,lr.HTML)}function Kqt(e,t){e.openElements.hasInScope(Me.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(Me.RTC),e._insertElement(t,lr.HTML)}function qqt(e,t){e.openElements.hasInButtonScope(Me.P)&&e._closePElement(),e._insertElement(t,lr.HTML)}function Gqt(e,t){e._reconstructActiveFormattingElements(),Pf.adjustTokenMathMLAttrs(t),Pf.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,lr.MATHML):e._insertElement(t,lr.MATHML),t.ackSelfClosing=!0}function Yqt(e,t){e._reconstructActiveFormattingElements(),Pf.adjustTokenSVGAttrs(t),Pf.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,lr.SVG):e._insertElement(t,lr.SVG),t.ackSelfClosing=!0}function tu(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,lr.HTML)}function Ql(e,t){const n=t.tagName;switch(n.length){case 1:n===Me.I||n===Me.S||n===Me.B||n===Me.U?hy(e,t):n===Me.P?wh(e,t):n===Me.A?Dqt(e,t):tu(e,t);break;case 2:n===Me.DL||n===Me.OL||n===Me.UL?wh(e,t):n===Me.H1||n===Me.H2||n===Me.H3||n===Me.H4||n===Me.H5||n===Me.H6?Iqt(e,t):n===Me.LI||n===Me.DD||n===Me.DT?Rqt(e,t):n===Me.EM||n===Me.TT?hy(e,t):n===Me.BR?xy(e,t):n===Me.HR?Bqt(e,t):n===Me.RB?ile(e,t):n===Me.RT||n===Me.RP?Kqt(e,t):n!==Me.TH&&n!==Me.TD&&n!==Me.TR&&tu(e,t);break;case 3:n===Me.DIV||n===Me.DIR||n===Me.NAV?wh(e,t):n===Me.PRE?Jse(e,t):n===Me.BIG?hy(e,t):n===Me.IMG||n===Me.WBR?xy(e,t):n===Me.XMP?Uqt(e,t):n===Me.SVG?Yqt(e,t):n===Me.RTC?ile(e,t):n!==Me.COL&&tu(e,t);break;case 4:n===Me.HTML?Oqt(e,t):n===Me.BASE||n===Me.LINK||n===Me.META?ns(e,t):n===Me.BODY?Pqt(e,t):n===Me.MAIN||n===Me.MENU?wh(e,t):n===Me.FORM?$qt(e,t):n===Me.CODE||n===Me.FONT?hy(e,t):n===Me.NOBR?Lqt(e,t):n===Me.AREA?xy(e,t):n===Me.MATH?Gqt(e,t):n===Me.MENU?qqt(e,t):n!==Me.HEAD&&tu(e,t);break;case 5:n===Me.STYLE||n===Me.TITLE?ns(e,t):n===Me.ASIDE?wh(e,t):n===Me.SMALL?hy(e,t):n===Me.TABLE?Fqt(e,t):n===Me.EMBED?xy(e,t):n===Me.INPUT?jqt(e,t):n===Me.PARAM||n===Me.TRACK?tle(e,t):n===Me.IMAGE?Hqt(e,t):n!==Me.FRAME&&n!==Me.TBODY&&n!==Me.TFOOT&&n!==Me.THEAD&&tu(e,t);break;case 6:n===Me.SCRIPT?ns(e,t):n===Me.CENTER||n===Me.FIGURE||n===Me.FOOTER||n===Me.HEADER||n===Me.HGROUP||n===Me.DIALOG?wh(e,t):n===Me.BUTTON?Nqt(e,t):n===Me.STRIKE||n===Me.STRONG?hy(e,t):n===Me.APPLET||n===Me.OBJECT?ele(e,t):n===Me.KEYGEN?xy(e,t):n===Me.SOURCE?tle(e,t):n===Me.IFRAME?Wqt(e,t):n===Me.SELECT?Vqt(e,t):n===Me.OPTION?rle(e,t):tu(e,t);break;case 7:n===Me.BGSOUND?ns(e,t):n===Me.DETAILS||n===Me.ADDRESS||n===Me.ARTICLE||n===Me.SECTION||n===Me.SUMMARY?wh(e,t):n===Me.LISTING?Jse(e,t):n===Me.MARQUEE?ele(e,t):n===Me.NOEMBED?nle(e,t):n!==Me.CAPTION&&tu(e,t);break;case 8:n===Me.BASEFONT?ns(e,t):n===Me.FRAMESET?Mqt(e,t):n===Me.FIELDSET?wh(e,t):n===Me.TEXTAREA?zqt(e,t):n===Me.TEMPLATE?ns(e,t):n===Me.NOSCRIPT?e.options.scriptingEnabled?nle(e,t):tu(e,t):n===Me.OPTGROUP?rle(e,t):n!==Me.COLGROUP&&tu(e,t);break;case 9:n===Me.PLAINTEXT?Aqt(e,t):tu(e,t);break;case 10:n===Me.BLOCKQUOTE||n===Me.FIGCAPTION?wh(e,t):tu(e,t);break;default:tu(e,t)}}function Xqt(e){e.openElements.hasInScope(Me.BODY)&&(e.insertionMode=Sq)}function Qqt(e,t){e.openElements.hasInScope(Me.BODY)&&(e.insertionMode=Sq,e._processToken(t))}function em(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function Zqt(e){const t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(Me.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(Me.FORM):e.openElements.remove(n))}function Jqt(e){e.openElements.hasInButtonScope(Me.P)||e._insertFakeElement(Me.P),e._closePElement()}function eGt(e){e.openElements.hasInListItemScope(Me.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(Me.LI),e.openElements.popUntilTagNamePopped(Me.LI))}function tGt(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function nGt(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function ole(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function rGt(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Me.BR),e.openElements.pop(),e.framesetOk=!1}function ad(e,t){const n=t.tagName;for(let r=e.openElements.stackTop;r>0;r--){const i=e.openElements.items[r];if(e.treeAdapter.getTagName(i)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(i);break}if(e._isSpecialElement(i))break}}function Cq(e,t){const n=t.tagName;switch(n.length){case 1:n===Me.A||n===Me.B||n===Me.I||n===Me.S||n===Me.U?Sm(e,t):n===Me.P?Jqt(e):ad(e,t);break;case 2:n===Me.DL||n===Me.UL||n===Me.OL?em(e,t):n===Me.LI?eGt(e):n===Me.DD||n===Me.DT?tGt(e,t):n===Me.H1||n===Me.H2||n===Me.H3||n===Me.H4||n===Me.H5||n===Me.H6?nGt(e):n===Me.BR?rGt(e):n===Me.EM||n===Me.TT?Sm(e,t):ad(e,t);break;case 3:n===Me.BIG?Sm(e,t):n===Me.DIR||n===Me.DIV||n===Me.NAV||n===Me.PRE?em(e,t):ad(e,t);break;case 4:n===Me.BODY?Xqt(e):n===Me.HTML?Qqt(e,t):n===Me.FORM?Zqt(e):n===Me.CODE||n===Me.FONT||n===Me.NOBR?Sm(e,t):n===Me.MAIN||n===Me.MENU?em(e,t):ad(e,t);break;case 5:n===Me.ASIDE?em(e,t):n===Me.SMALL?Sm(e,t):ad(e,t);break;case 6:n===Me.CENTER||n===Me.FIGURE||n===Me.FOOTER||n===Me.HEADER||n===Me.HGROUP||n===Me.DIALOG?em(e,t):n===Me.APPLET||n===Me.OBJECT?ole(e,t):n===Me.STRIKE||n===Me.STRONG?Sm(e,t):ad(e,t);break;case 7:n===Me.ADDRESS||n===Me.ARTICLE||n===Me.DETAILS||n===Me.SECTION||n===Me.SUMMARY||n===Me.LISTING?em(e,t):n===Me.MARQUEE?ole(e,t):ad(e,t);break;case 8:n===Me.FIELDSET?em(e,t):n===Me.TEMPLATE?d0(e,t):ad(e,t);break;case 10:n===Me.BLOCKQUOTE||n===Me.FIGCAPTION?em(e,t):ad(e,t);break;default:ad(e,t)}}function _h(e,t){e.tmplInsertionModeStackTop>-1?MTe(e,t):e.stopped=!0}function iGt(e,t){t.tagName===Me.SCRIPT&&(e.pendingScript=e.openElements.current),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function oGt(e,t){e._err(Ss.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}function Eh(e,t){const n=e.openElements.currentTagName;n===Me.TABLE||n===Me.TBODY||n===Me.TFOOT||n===Me.THEAD||n===Me.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=_Te,e._processToken(t)):su(e,t)}function aGt(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,lr.HTML),e.insertionMode=oI}function sGt(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,lr.HTML),e.insertionMode=S4}function lGt(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Me.COLGROUP),e.insertionMode=S4,e._processToken(t)}function cGt(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,lr.HTML),e.insertionMode=xu}function uGt(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Me.TBODY),e.insertionMode=xu,e._processToken(t)}function dGt(e,t){e.openElements.hasInTableScope(Me.TABLE)&&(e.openElements.popUntilTagNamePopped(Me.TABLE),e._resetInsertionMode(),e._processToken(t))}function fGt(e,t){const n=ht.getTokenAttr(t,STe.TYPE);n&&n.toLowerCase()===CTe?e._appendElement(t,lr.HTML):su(e,t),t.ackSelfClosing=!0}function hGt(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,lr.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function xq(e,t){const n=t.tagName;switch(n.length){case 2:n===Me.TD||n===Me.TH||n===Me.TR?uGt(e,t):su(e,t);break;case 3:n===Me.COL?lGt(e,t):su(e,t);break;case 4:n===Me.FORM?hGt(e,t):su(e,t);break;case 5:n===Me.TABLE?dGt(e,t):n===Me.STYLE?ns(e,t):n===Me.TBODY||n===Me.TFOOT||n===Me.THEAD?cGt(e,t):n===Me.INPUT?fGt(e,t):su(e,t);break;case 6:n===Me.SCRIPT?ns(e,t):su(e,t);break;case 7:n===Me.CAPTION?aGt(e,t):su(e,t);break;case 8:n===Me.COLGROUP?sGt(e,t):n===Me.TEMPLATE?ns(e,t):su(e,t);break;default:su(e,t)}}function wq(e,t){const n=t.tagName;n===Me.TABLE?e.openElements.hasInTableScope(Me.TABLE)&&(e.openElements.popUntilTagNamePopped(Me.TABLE),e._resetInsertionMode()):n===Me.TEMPLATE?d0(e,t):n!==Me.BODY&&n!==Me.CAPTION&&n!==Me.COL&&n!==Me.COLGROUP&&n!==Me.HTML&&n!==Me.TBODY&&n!==Me.TD&&n!==Me.TFOOT&&n!==Me.TH&&n!==Me.THEAD&&n!==Me.TR&&su(e,t)}function su(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function pGt(e,t){e.pendingCharacterTokens.push(t)}function mGt(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function o2(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)su(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}function gGt(e,t){const n=t.tagName;n===Me.CAPTION||n===Me.COL||n===Me.COLGROUP||n===Me.TBODY||n===Me.TD||n===Me.TFOOT||n===Me.TH||n===Me.THEAD||n===Me.TR?e.openElements.hasInTableScope(Me.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Me.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=js,e._processToken(t)):Ql(e,t)}function vGt(e,t){const n=t.tagName;n===Me.CAPTION||n===Me.TABLE?e.openElements.hasInTableScope(Me.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Me.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=js,n===Me.TABLE&&e._processToken(t)):n!==Me.BODY&&n!==Me.COL&&n!==Me.COLGROUP&&n!==Me.HTML&&n!==Me.TBODY&&n!==Me.TD&&n!==Me.TFOOT&&n!==Me.TH&&n!==Me.THEAD&&n!==Me.TR&&Cq(e,t)}function yGt(e,t){const n=t.tagName;n===Me.HTML?Ql(e,t):n===Me.COL?(e._appendElement(t,lr.HTML),t.ackSelfClosing=!0):n===Me.TEMPLATE?ns(e,t):Ak(e,t)}function bGt(e,t){const n=t.tagName;n===Me.COLGROUP?e.openElements.currentTagName===Me.COLGROUP&&(e.openElements.pop(),e.insertionMode=js):n===Me.TEMPLATE?d0(e,t):n!==Me.COL&&Ak(e,t)}function Ak(e,t){e.openElements.currentTagName===Me.COLGROUP&&(e.openElements.pop(),e.insertionMode=js,e._processToken(t))}function SGt(e,t){const n=t.tagName;n===Me.TR?(e.openElements.clearBackToTableBodyContext(),e._insertElement(t,lr.HTML),e.insertionMode=bp):n===Me.TH||n===Me.TD?(e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(Me.TR),e.insertionMode=bp,e._processToken(t)):n===Me.CAPTION||n===Me.COL||n===Me.COLGROUP||n===Me.TBODY||n===Me.TFOOT||n===Me.THEAD?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=js,e._processToken(t)):xq(e,t)}function CGt(e,t){const n=t.tagName;n===Me.TBODY||n===Me.TFOOT||n===Me.THEAD?e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=js):n===Me.TABLE?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=js,e._processToken(t)):(n!==Me.BODY&&n!==Me.CAPTION&&n!==Me.COL&&n!==Me.COLGROUP||n!==Me.HTML&&n!==Me.TD&&n!==Me.TH&&n!==Me.TR)&&wq(e,t)}function xGt(e,t){const n=t.tagName;n===Me.TH||n===Me.TD?(e.openElements.clearBackToTableRowContext(),e._insertElement(t,lr.HTML),e.insertionMode=aI,e.activeFormattingElements.insertMarker()):n===Me.CAPTION||n===Me.COL||n===Me.COLGROUP||n===Me.TBODY||n===Me.TFOOT||n===Me.THEAD||n===Me.TR?e.openElements.hasInTableScope(Me.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=xu,e._processToken(t)):xq(e,t)}function wGt(e,t){const n=t.tagName;n===Me.TR?e.openElements.hasInTableScope(Me.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=xu):n===Me.TABLE?e.openElements.hasInTableScope(Me.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=xu,e._processToken(t)):n===Me.TBODY||n===Me.TFOOT||n===Me.THEAD?(e.openElements.hasInTableScope(n)||e.openElements.hasInTableScope(Me.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=xu,e._processToken(t)):(n!==Me.BODY&&n!==Me.CAPTION&&n!==Me.COL&&n!==Me.COLGROUP||n!==Me.HTML&&n!==Me.TD&&n!==Me.TH)&&wq(e,t)}function _Gt(e,t){const n=t.tagName;n===Me.CAPTION||n===Me.COL||n===Me.COLGROUP||n===Me.TBODY||n===Me.TD||n===Me.TFOOT||n===Me.TH||n===Me.THEAD||n===Me.TR?(e.openElements.hasInTableScope(Me.TD)||e.openElements.hasInTableScope(Me.TH))&&(e._closeTableCell(),e._processToken(t)):Ql(e,t)}function EGt(e,t){const n=t.tagName;n===Me.TD||n===Me.TH?e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=bp):n===Me.TABLE||n===Me.TBODY||n===Me.TFOOT||n===Me.THEAD||n===Me.TR?e.openElements.hasInTableScope(n)&&(e._closeTableCell(),e._processToken(t)):n!==Me.BODY&&n!==Me.CAPTION&&n!==Me.COL&&n!==Me.COLGROUP&&n!==Me.HTML&&Cq(e,t)}function OTe(e,t){const n=t.tagName;n===Me.HTML?Ql(e,t):n===Me.OPTION?(e.openElements.currentTagName===Me.OPTION&&e.openElements.pop(),e._insertElement(t,lr.HTML)):n===Me.OPTGROUP?(e.openElements.currentTagName===Me.OPTION&&e.openElements.pop(),e.openElements.currentTagName===Me.OPTGROUP&&e.openElements.pop(),e._insertElement(t,lr.HTML)):n===Me.INPUT||n===Me.KEYGEN||n===Me.TEXTAREA||n===Me.SELECT?e.openElements.hasInSelectScope(Me.SELECT)&&(e.openElements.popUntilTagNamePopped(Me.SELECT),e._resetInsertionMode(),n!==Me.SELECT&&e._processToken(t)):(n===Me.SCRIPT||n===Me.TEMPLATE)&&ns(e,t)}function PTe(e,t){const n=t.tagName;if(n===Me.OPTGROUP){const r=e.openElements.items[e.openElements.stackTop-1],i=r&&e.treeAdapter.getTagName(r);e.openElements.currentTagName===Me.OPTION&&i===Me.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagName===Me.OPTGROUP&&e.openElements.pop()}else n===Me.OPTION?e.openElements.currentTagName===Me.OPTION&&e.openElements.pop():n===Me.SELECT&&e.openElements.hasInSelectScope(Me.SELECT)?(e.openElements.popUntilTagNamePopped(Me.SELECT),e._resetInsertionMode()):n===Me.TEMPLATE&&d0(e,t)}function TGt(e,t){const n=t.tagName;n===Me.CAPTION||n===Me.TABLE||n===Me.TBODY||n===Me.TFOOT||n===Me.THEAD||n===Me.TR||n===Me.TD||n===Me.TH?(e.openElements.popUntilTagNamePopped(Me.SELECT),e._resetInsertionMode(),e._processToken(t)):OTe(e,t)}function kGt(e,t){const n=t.tagName;n===Me.CAPTION||n===Me.TABLE||n===Me.TBODY||n===Me.TFOOT||n===Me.THEAD||n===Me.TR||n===Me.TD||n===Me.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(Me.SELECT),e._resetInsertionMode(),e._processToken(t)):PTe(e,t)}function OGt(e,t){const n=t.tagName;if(n===Me.BASE||n===Me.BASEFONT||n===Me.BGSOUND||n===Me.LINK||n===Me.META||n===Me.NOFRAMES||n===Me.SCRIPT||n===Me.STYLE||n===Me.TEMPLATE||n===Me.TITLE)ns(e,t);else{const r=cqt[n]||Uf;e._popTmplInsertionMode(),e._pushTmplInsertionMode(r),e.insertionMode=r,e._processToken(t)}}function PGt(e,t){t.tagName===Me.TEMPLATE&&d0(e,t)}function MTe(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(Me.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function MGt(e,t){t.tagName===Me.HTML?Ql(e,t):Nk(e,t)}function IGt(e,t){t.tagName===Me.HTML?e.fragmentContext||(e.insertionMode=TTe):Nk(e,t)}function Nk(e,t){e.insertionMode=Uf,e._processToken(t)}function $Gt(e,t){const n=t.tagName;n===Me.HTML?Ql(e,t):n===Me.FRAMESET?e._insertElement(t,lr.HTML):n===Me.FRAME?(e._appendElement(t,lr.HTML),t.ackSelfClosing=!0):n===Me.NOFRAMES&&ns(e,t)}function RGt(e,t){t.tagName===Me.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagName!==Me.FRAMESET&&(e.insertionMode=ETe))}function AGt(e,t){const n=t.tagName;n===Me.HTML?Ql(e,t):n===Me.NOFRAMES&&ns(e,t)}function NGt(e,t){t.tagName===Me.HTML&&(e.insertionMode=kTe)}function DGt(e,t){t.tagName===Me.HTML?Ql(e,t):d3(e,t)}function d3(e,t){e.insertionMode=Uf,e._processToken(t)}function LGt(e,t){const n=t.tagName;n===Me.HTML?Ql(e,t):n===Me.NOFRAMES&&ns(e,t)}function FGt(e,t){t.chars=iqt.REPLACEMENT_CHARACTER,e._insertCharacters(t)}function jGt(e,t){e._insertCharacters(t),e.framesetOk=!1}function BGt(e,t){if(Pf.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==lr.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===lr.MATHML?Pf.adjustTokenMathMLAttrs(t):r===lr.SVG&&(Pf.adjustTokenSVGTagName(t),Pf.adjustTokenSVGAttrs(t)),Pf.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function HGt(e,t){for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===lr.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}const zGt=vi(dqt),C4=ITe("start"),lI=ITe("end");function UGt(e){return{start:C4(e),end:lI(e)}}function ITe(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};return{line:r.line||null,column:r.column||null,offset:r.offset>-1?r.offset:null}}}class x4{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}x4.prototype.property={};x4.prototype.normal={};x4.prototype.space=null;function $Te(e,t){const n={},r={};let i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new x4(n,r,t)}function j_(e){return e.toLowerCase()}class Hu{constructor(t,n){this.property=t,this.attribute=n}}Hu.prototype.space=null;Hu.prototype.boolean=!1;Hu.prototype.booleanish=!1;Hu.prototype.overloadedBoolean=!1;Hu.prototype.number=!1;Hu.prototype.commaSeparated=!1;Hu.prototype.spaceSeparated=!1;Hu.prototype.commaOrSpaceSeparated=!1;Hu.prototype.mustUseProperty=!1;Hu.prototype.defined=!1;let WGt=0;const qr=f0(),Sa=f0(),RTe=f0(),$n=f0(),ao=f0(),gb=f0(),pc=f0();function f0(){return 2**++WGt}const KB=Object.freeze(Object.defineProperty({__proto__:null,boolean:qr,booleanish:Sa,commaOrSpaceSeparated:pc,commaSeparated:gb,number:$n,overloadedBoolean:RTe,spaceSeparated:ao},Symbol.toStringTag,{value:"Module"})),yN=Object.keys(KB);class _q extends Hu{constructor(t,n,r,i){let o=-1;if(super(t,n),ale(this,"space",i),typeof r=="number")for(;++o<yN.length;){const a=yN[o];ale(this,yN[o],(r&KB[a])===KB[a])}}}_q.prototype.defined=!0;function ale(e,t,n){n&&(e[t]=n)}const VGt={}.hasOwnProperty;function NC(e){const t={},n={};let r;for(r in e.properties)if(VGt.call(e.properties,r)){const i=e.properties[r],o=new _q(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[j_(r)]=r,n[j_(o.attribute)]=r}return new x4(t,n,e.space)}const ATe=NC({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),NTe=NC({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function DTe(e,t){return t in e?e[t]:t}function LTe(e,t){return DTe(e,t.toLowerCase())}const FTe=NC({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:LTe,properties:{xmlns:null,xmlnsXLink:null}}),jTe=NC({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Sa,ariaAutoComplete:null,ariaBusy:Sa,ariaChecked:Sa,ariaColCount:$n,ariaColIndex:$n,ariaColSpan:$n,ariaControls:ao,ariaCurrent:null,ariaDescribedBy:ao,ariaDetails:null,ariaDisabled:Sa,ariaDropEffect:ao,ariaErrorMessage:null,ariaExpanded:Sa,ariaFlowTo:ao,ariaGrabbed:Sa,ariaHasPopup:null,ariaHidden:Sa,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ao,ariaLevel:$n,ariaLive:null,ariaModal:Sa,ariaMultiLine:Sa,ariaMultiSelectable:Sa,ariaOrientation:null,ariaOwns:ao,ariaPlaceholder:null,ariaPosInSet:$n,ariaPressed:Sa,ariaReadOnly:Sa,ariaRelevant:null,ariaRequired:Sa,ariaRoleDescription:ao,ariaRowCount:$n,ariaRowIndex:$n,ariaRowSpan:$n,ariaSelected:Sa,ariaSetSize:$n,ariaSort:null,ariaValueMax:$n,ariaValueMin:$n,ariaValueNow:$n,ariaValueText:null,role:null}}),KGt=NC({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:LTe,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:gb,acceptCharset:ao,accessKey:ao,action:null,allow:null,allowFullScreen:qr,allowPaymentRequest:qr,allowUserMedia:qr,alt:null,as:null,async:qr,autoCapitalize:null,autoComplete:ao,autoFocus:qr,autoPlay:qr,blocking:ao,capture:null,charSet:null,checked:qr,cite:null,className:ao,cols:$n,colSpan:null,content:null,contentEditable:Sa,controls:qr,controlsList:ao,coords:$n|gb,crossOrigin:null,data:null,dateTime:null,decoding:null,default:qr,defer:qr,dir:null,dirName:null,disabled:qr,download:RTe,draggable:Sa,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:qr,formTarget:null,headers:ao,height:$n,hidden:qr,high:$n,href:null,hrefLang:null,htmlFor:ao,httpEquiv:ao,id:null,imageSizes:null,imageSrcSet:null,inert:qr,inputMode:null,integrity:null,is:null,isMap:qr,itemId:null,itemProp:ao,itemRef:ao,itemScope:qr,itemType:ao,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:qr,low:$n,manifest:null,max:null,maxLength:$n,media:null,method:null,min:null,minLength:$n,multiple:qr,muted:qr,name:null,nonce:null,noModule:qr,noValidate:qr,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:qr,optimum:$n,pattern:null,ping:ao,placeholder:null,playsInline:qr,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:qr,referrerPolicy:null,rel:ao,required:qr,reversed:qr,rows:$n,rowSpan:$n,sandbox:ao,scope:null,scoped:qr,seamless:qr,selected:qr,shadowRootClonable:qr,shadowRootDelegatesFocus:qr,shadowRootMode:null,shape:null,size:$n,sizes:null,slot:null,span:$n,spellCheck:Sa,src:null,srcDoc:null,srcLang:null,srcSet:null,start:$n,step:null,style:null,tabIndex:$n,target:null,title:null,translate:null,type:null,typeMustMatch:qr,useMap:null,value:Sa,width:$n,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ao,axis:null,background:null,bgColor:null,border:$n,borderColor:null,bottomMargin:$n,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:qr,declare:qr,event:null,face:null,frame:null,frameBorder:null,hSpace:$n,leftMargin:$n,link:null,longDesc:null,lowSrc:null,marginHeight:$n,marginWidth:$n,noResize:qr,noHref:qr,noShade:qr,noWrap:qr,object:null,profile:null,prompt:null,rev:null,rightMargin:$n,rules:null,scheme:null,scrolling:Sa,standby:null,summary:null,text:null,topMargin:$n,valueType:null,version:null,vAlign:null,vLink:null,vSpace:$n,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:qr,disableRemotePlayback:qr,prefix:null,property:null,results:$n,security:null,unselectable:null}}),qGt=NC({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:DTe,properties:{about:pc,accentHeight:$n,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:$n,amplitude:$n,arabicForm:null,ascent:$n,attributeName:null,attributeType:null,azimuth:$n,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:$n,by:null,calcMode:null,capHeight:$n,className:ao,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:$n,diffuseConstant:$n,direction:null,display:null,dur:null,divisor:$n,dominantBaseline:null,download:qr,dx:null,dy:null,edgeMode:null,editable:null,elevation:$n,enableBackground:null,end:null,event:null,exponent:$n,externalResourcesRequired:null,fill:null,fillOpacity:$n,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:gb,g2:gb,glyphName:gb,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:$n,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:$n,horizOriginX:$n,horizOriginY:$n,id:null,ideographic:$n,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:$n,k:$n,k1:$n,k2:$n,k3:$n,k4:$n,kernelMatrix:pc,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:$n,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:$n,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:$n,overlineThickness:$n,paintOrder:null,panose1:null,path:null,pathLength:$n,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ao,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:$n,pointsAtY:$n,pointsAtZ:$n,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:pc,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:pc,rev:pc,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:pc,requiredFeatures:pc,requiredFonts:pc,requiredFormats:pc,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:$n,specularExponent:$n,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:$n,strikethroughThickness:$n,string:null,stroke:null,strokeDashArray:pc,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:$n,strokeOpacity:$n,strokeWidth:null,style:null,surfaceScale:$n,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:pc,tabIndex:$n,tableValues:null,target:null,targetX:$n,targetY:$n,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:pc,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:$n,underlineThickness:$n,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:$n,values:null,vAlphabetic:$n,vMathematical:$n,vectorEffect:null,vHanging:$n,vIdeographic:$n,version:null,vertAdvY:$n,vertOriginX:$n,vertOriginY:$n,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:$n,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),GGt=/^data[-\w.:]+$/i,sle=/-[a-z]/g,YGt=/[A-Z]/g;function cI(e,t){const n=j_(t);let r=t,i=Hu;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&GGt.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(sle,QGt);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!sle.test(o)){let a=o.replace(YGt,XGt);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=_q}return new i(r,t)}function XGt(e){return"-"+e.toLowerCase()}function QGt(e){return e.charAt(1).toUpperCase()}const w4=$Te([NTe,ATe,FTe,jTe,KGt],"html"),DC=$Te([NTe,ATe,FTe,jTe,qGt],"svg"),lle=/[#.]/g;function ZGt(e,t){const n=e||"",r={};let i=0,o,a;for(;i<n.length;){lle.lastIndex=i;const s=lle.exec(n),l=n.slice(i,s?s.index:n.length);l&&(o?o==="#"?r.id=l:Array.isArray(r.className)?r.className.push(l):r.className=[l]:a=l,i+=l.length),s&&(o=s[0],i++)}return{type:"element",tagName:a||t||"div",properties:r,children:[]}}function cle(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function BTe(e){return e.join(" ").trim()}function ule(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,o=!1;for(;!o;){r===-1&&(r=n.length,o=!0);const a=n.slice(i,r).trim();(a||!o)&&t.push(a),i=r+1,r=n.indexOf(",",i)}return t}function HTe(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const JGt=new Set(["menu","submit","reset","button"]),qB={}.hasOwnProperty;function zTe(e,t,n){const r=n&&rYt(n);return function(o,a,...s){let l=-1,c;if(o==null)c={type:"root",children:[]},s.unshift(a);else if(c=ZGt(o,t),c.tagName=c.tagName.toLowerCase(),r&&qB.call(r,c.tagName)&&(c.tagName=r[c.tagName]),eYt(a,c.tagName)){let u;for(u in a)qB.call(a,u)&&tYt(e,c.properties,u,a[u])}else s.unshift(a);for(;++l<s.length;)GB(c.children,s[l]);return c.type==="element"&&c.tagName==="template"&&(c.content={type:"root",children:c.children},c.children=[]),c}}function eYt(e,t){return e==null||typeof e!="object"||Array.isArray(e)?!1:t==="input"||!e.type||typeof e.type!="string"?!0:"children"in e&&Array.isArray(e.children)?!1:t==="button"?JGt.has(e.type.toLowerCase()):!("value"in e)}function tYt(e,t,n,r){const i=cI(e,n);let o=-1,a;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;a=r}else typeof r=="boolean"?a=r:typeof r=="string"?i.spaceSeparated?a=cle(r):i.commaSeparated?a=ule(r):i.commaOrSpaceSeparated?a=cle(ule(r).join(" ")):a=dle(i,i.property,r):Array.isArray(r)?a=r.concat():a=i.property==="style"?nYt(r):String(r);if(Array.isArray(a)){const s=[];for(;++o<a.length;)s[o]=dle(i,i.property,a[o]);a=s}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function GB(e,t){let n=-1;if(t!=null)if(typeof t=="string"||typeof t=="number")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(;++n<t.length;)GB(e,t[n]);else if(typeof t=="object"&&"type"in t)t.type==="root"?GB(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function dle(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||j_(n)===j_(t)))return!0}return n}function nYt(e){const t=[];let n;for(n in e)qB.call(e,n)&&t.push([n,e[n]].join(": "));return t.join("; ")}function rYt(e){const t={};let n=-1;for(;++n<e.length;)t[e[n].toLowerCase()]=e[n];return t}const iYt=zTe(w4,"div"),oYt=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],aYt=zTe(DC,"g",oYt);function sYt(e){const t=String(e),n=[],r=/\r?\n|\r/g;for(;r.test(t);)n.push(r.lastIndex);return n.push(t.length+1),{toPoint:i,toOffset:o};function i(a){let s=-1;if(typeof a=="number"&&a>-1&&a<n[n.length-1]){for(;++s<n.length;)if(n[s]>a)return{line:s+1,column:a-(s>0?n[s-1]:0)+1,offset:a}}return{line:void 0,column:void 0,offset:void 0}}function o(a){const s=a&&a.line,l=a&&a.column;if(typeof s=="number"&&typeof l=="number"&&!Number.isNaN(s)&&!Number.isNaN(l)&&s-1 in n){const c=(n[s-2]||0)+l-1||0;if(c>-1&&c<n[n.length-1])return c}return-1}}const B_={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},UTe={}.hasOwnProperty,lYt=Object.prototype;function cYt(e,t){const n=t||{};let r,i;return fYt(n)?(i=n,r={}):(i=n.file||void 0,r=n),Eq({schema:r.space==="svg"?DC:w4,file:i,verbose:r.verbose,location:!1},e)}function Eq(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},f3(e,r,n),n}case"#document":case"#document-fragment":{const r=t,i="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:WTe(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const o=String(e.file),a=sYt(o),s=a.toPoint(0),l=a.toPoint(o.length);n.position={start:s,end:l}}return n}case"#documentType":{const r=t;return n={type:"doctype"},f3(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},f3(e,r,n),n}default:return n=uYt(e,t),n}}function WTe(e,t){let n=-1;const r=[];for(;++n<t.length;)r[n]=Eq(e,t[n]);return r}function uYt(e,t){const n=e.schema;e.schema=t.namespaceURI===B_.svg?DC:w4;let r=-1;const i={};for(;++r<t.attrs.length;){const s=t.attrs[r],l=(s.prefix?s.prefix+":":"")+s.name;UTe.call(lYt,l)||(i[l]=s.value)}const a=(e.schema.space==="svg"?aYt:iYt)(t.tagName,i,WTe(e,t.childNodes));if(f3(e,t,a),a.tagName==="template"){const s=t,l=s.sourceCodeLocation,c=l&&l.startTag&&Vy(l.startTag),u=l&&l.endTag&&Vy(l.endTag),d=Eq(e,s.content);c&&u&&e.file&&(d.position={start:c.end,end:u.start}),a.content=d}return e.schema=n,a}function f3(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=dYt(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function dYt(e,t,n){const r=Vy(n);if(t.type==="element"){const i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){const o={};let a;if(n.attrs)for(a in n.attrs)UTe.call(n.attrs,a)&&(o[cI(e.schema,a).property]=Vy(n.attrs[a]));t.data={position:{opening:Vy(n.startTag),closing:n.endTag?Vy(n.endTag):null,properties:o}}}}return r}function Vy(e){const t=fle({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=fle({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function fle(e){return e.line&&e.column?e:void 0}function fYt(e){return"messages"in e}const hle={}.hasOwnProperty;function Tq(e,t){const n=t||{};function r(i,...o){let a=r.invalid;const s=r.handlers;if(i&&hle.call(i,e)){const l=String(i[e]);a=hle.call(s,l)?s[l]:r.unknown}if(a)return a.call(this,i,...o)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const hYt={}.hasOwnProperty,VTe=Tq("type",{handlers:{root:mYt,element:SYt,text:yYt,comment:bYt,doctype:vYt}});function pYt(e,t){return VTe(e,w4)}function mYt(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=kq(e.children,n,t),LC(e,n),n}function gYt(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=kq(e.children,n,t),LC(e,n),n}function vYt(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:void 0};return LC(e,t),t}function yYt(e){const t={nodeName:"#text",value:e.value,parentNode:void 0};return LC(e,t),t}function bYt(e){const t={nodeName:"#comment",data:e.value,parentNode:void 0};return LC(e,t),t}function SYt(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=DC);const i=[];let o;if(e.properties){for(o in e.properties)if(o!=="children"&&hYt.call(e.properties,o)){const s=CYt(r,o,e.properties[o]);s&&i.push(s)}}const a={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:B_[r.space],childNodes:[],parentNode:void 0};return a.childNodes=kq(e.children,a,r),LC(e,a),e.tagName==="template"&&e.content&&(a.content=gYt(e.content,r)),a}function CYt(e,t,n){const r=cI(e,t);if(n==null||n===!1||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?HTe(n):BTe(n));const i={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const o=i.name.indexOf(":");o<0?i.prefix="":(i.name=i.name.slice(o+1),i.prefix=r.attribute.slice(0,o)),i.namespace=B_[r.space]}return i}function kq(e,t,n){let r=-1;const i=[];if(e)for(;++r<e.length;){const o=VTe(e[r],n);o.parentNode=t,i.push(o)}return i}function LC(e,t){const n=e.position;n&&n.start&&n.end&&(t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const KTe=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"],xYt="IN_TEMPLATE_MODE",wYt="DATA_STATE",_Yt="CHARACTER_TOKEN",EYt="START_TAG_TOKEN",TYt="END_TAG_TOKEN",kYt="COMMENT_TOKEN",OYt="DOCTYPE_TOKEN",PYt={sourceCodeLocationInfo:!0,scriptingEnabled:!1},qTe=function(e,t,n){let r=-1;const i=new zGt(PYt),o=Tq("type",{handlers:{root:v,element:y,text:S,comment:C,doctype:b,raw:_},unknown:RYt});let a,s,l,c,u;if(NYt(t)&&(n=t,t=void 0),n&&n.passThrough)for(;++r<n.passThrough.length;)o.handlers[n.passThrough[r]]=T;const d=cYt(AYt(e)?p():h(),t);if(a&&v4(d,"comment",(E,k,M)=>{const P=E;if(P.value.stitch&&M!==null&&k!==null)return M.children[k]=P.value.stitch,k}),e.type!=="root"&&d.type==="root"&&d.children.length===1)return d.children[0];return d;function h(){const E={nodeName:"template",tagName:"template",attrs:[],namespaceURI:B_.html,childNodes:[]},k={nodeName:"documentmock",tagName:"documentmock",attrs:[],namespaceURI:B_.html,childNodes:[]},M={nodeName:"#document-fragment",childNodes:[]};if(i._bootstrap(k,E),i._pushTmplInsertionMode(xYt),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),s=i.tokenizer,!s)throw new Error("Expected `tokenizer`");return l=s.preprocessor,u=s.__mixins[0],c=u.posTracker,o(e),x(),i._adoptNodes(k.childNodes[0],M),M}function p(){const E=i.treeAdapter.createDocument();if(i._bootstrap(E,void 0),s=i.tokenizer,!s)throw new Error("Expected `tokenizer`");return l=s.preprocessor,u=s.__mixins[0],c=u.posTracker,o(e),x(),E}function m(E){let k=-1;if(E)for(;++k<E.length;)o(E[k])}function v(E){m(E.children)}function y(E){x(),i._processInputToken(MYt(E)),m(E.children),KTe.includes(E.tagName)||(x(),i._processInputToken($Yt(E)))}function S(E){x(),i._processInputToken({type:_Yt,chars:E.value,location:Ky(E)})}function b(E){x(),i._processInputToken({type:OYt,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Ky(E)})}function C(E){x(),i._processInputToken({type:kYt,data:E.value,location:Ky(E)})}function _(E){const k=C4(E),M=k.line||1,P=k.column||1,D=k.offset||0;if(!l)throw new Error("Expected `preprocessor`");if(!s)throw new Error("Expected `tokenizer`");if(!c)throw new Error("Expected `posTracker`");if(!u)throw new Error("Expected `locationTracker`");l.html=void 0,l.pos=-1,l.lastGapPos=-1,l.lastCharPos=-1,l.gapStack=[],l.skipNextNewLine=!1,l.lastChunkWritten=!1,l.endOfChunkHit=!1,c.isEol=!1,c.lineStartPos=-P+1,c.droppedBufferSize=D,c.offset=0,c.col=1,c.line=M,u.currentAttrLocation=void 0,u.ctLoc=Ky(E),s.write(E.value),i._runParsingLoop(null),(s.state==="NAMED_CHARACTER_REFERENCE_STATE"||s.state==="NUMERIC_CHARACTER_REFERENCE_END_STATE")&&(l.lastChunkWritten=!0,s[s.state](s._consume()))}function T(E){a=!0;let k;"children"in E?k={...E,children:qTe({type:"root",children:E.children},t,n).children}:k={...E},C({type:"comment",value:{stitch:k}})}function x(){if(!s)throw new Error("Expected `tokenizer`");if(!c)throw new Error("Expected `posTracker`");const E=s.currentCharacterToken;E&&(E.location.endLine=c.line,E.location.endCol=c.col+1,E.location.endOffset=c.offset+1,i._processInputToken(E)),s.tokenQueue=[],s.state=wYt,s.returnState="",s.charRefCode=-1,s.tempBuff=[],s.lastStartTagName="",s.consumedAfterSnapshot=-1,s.active=!1,s.currentCharacterToken=void 0,s.currentToken=void 0,s.currentAttr=void 0}};function MYt(e){const t=Object.assign(Ky(e));return t.startTag=Object.assign({},t),{type:EYt,tagName:e.tagName,selfClosing:!1,attrs:IYt(e),location:t}}function IYt(e){return pYt({tagName:e.tagName,type:"element",properties:e.properties,children:[]}).attrs}function $Yt(e){const t=Object.assign(Ky(e));return t.startTag=Object.assign({},t),{type:TYt,tagName:e.tagName,attrs:[],location:t}}function RYt(e){throw new Error("Cannot compile `"+e.type+"` node")}function AYt(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName==="html"))}function Ky(e){const t=C4(e),n=lI(e);return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function NYt(e){return!!(e&&!("message"in e&&"messages"in e))}function DYt(e={}){return(t,n)=>qTe(t,n,e)}function LYt(e=fq){return t=>jVt(t,e)}const FYt=/["&'<>`]/g,jYt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,BYt=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,HYt=/[|\\{}()[\]^$+*?.]/g,ple=new WeakMap;function zYt(e,t){if(e=e.replace(t.subset?UYt(t.subset):FYt,r),t.subset||t.escapeOnly)return e;return e.replace(jYt,n).replace(BYt,r);function n(i,o,a){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,a.charCodeAt(o+2),t)}function r(i,o,a){return t.format(i.charCodeAt(0),a.charCodeAt(o+1),t)}}function UYt(e){let t=ple.get(e);return t||(t=WYt(e),ple.set(e,t)),t}function WYt(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(HYt,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const VYt=/[\dA-Fa-f]/;function KYt(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!VYt.test(String.fromCharCode(t))?r:r+";"}const qYt=/\d/;function GYt(e,t,n){const r="&#"+String(e);return n&&t&&!qYt.test(String.fromCharCode(t))?r:r+";"}const YYt=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],bN={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},XYt=["cent","copy","divide","gt","lt","not","para","times"],GTe={}.hasOwnProperty,YB={};let F5;for(F5 in bN)GTe.call(bN,F5)&&(YB[bN[F5]]=F5);const QYt=/[^\dA-Za-z]/;function ZYt(e,t,n,r){const i=String.fromCharCode(e);if(GTe.call(YB,i)){const o=YB[i],a="&"+o;return n&&YYt.includes(o)&&!XYt.includes(o)&&(!r||t&&t!==61&&QYt.test(String.fromCharCode(t)))?a:a+";"}return""}function JYt(e,t,n){let r=KYt(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=ZYt(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){const o=GYt(e,t,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function vb(e,t){return zYt(e,Object.assign({format:JYt},t))}function eXt(e,t,n,r){return r.settings.bogusComments?"<?"+vb(e.value,Object.assign({},r.settings.characterReferences,{subset:[">"]}))+">":"<!--"+e.value.replace(/^>|^->|<!--|-->|--!>|<!-$/g,i)+"-->";function i(o){return vb(o,Object.assign({},r.settings.characterReferences,{subset:["<",">"]}))}}function tXt(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function Dk(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function Oq(e){const t=e&&typeof e=="object"&&e.type==="text"?e.value||"":e;return typeof t=="string"&&t.replace(/[ \t\n\f\r]/g,"")===""}const Ia=XTe(1),YTe=XTe(-1);function XTe(e){return t;function t(n,r,i){const o=n?n.children:[];let a=(r||0)+e,s=o&&o[a];if(!i)for(;s&&Oq(s);)a+=e,s=o[a];return s}}const nXt={}.hasOwnProperty;function QTe(e){return t;function t(n,r,i){return nXt.call(e,n.tagName)&&e[n.tagName](n,r,i)}}const Pq=QTe({html:rXt,head:SN,body:iXt,p:oXt,li:aXt,dt:sXt,dd:lXt,rt:mle,rp:mle,optgroup:cXt,option:uXt,menuitem:dXt,colgroup:SN,caption:SN,thead:fXt,tbody:hXt,tfoot:pXt,tr:mXt,td:gle,th:gle});function SN(e,t,n){const r=Ia(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Oq(r.value.charAt(0)))}function rXt(e,t,n){const r=Ia(n,t);return!r||r.type!=="comment"}function iXt(e,t,n){const r=Ia(n,t);return!r||r.type!=="comment"}function oXt(e,t,n){const r=Ia(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function aXt(e,t,n){const r=Ia(n,t);return!r||r.type==="element"&&r.tagName==="li"}function sXt(e,t,n){const r=Ia(n,t);return r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function lXt(e,t,n){const r=Ia(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function mle(e,t,n){const r=Ia(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function cXt(e,t,n){const r=Ia(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function uXt(e,t,n){const r=Ia(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function dXt(e,t,n){const r=Ia(n,t);return!r||r.type==="element"&&(r.tagName==="menuitem"||r.tagName==="hr"||r.tagName==="menu")}function fXt(e,t,n){const r=Ia(n,t);return r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function hXt(e,t,n){const r=Ia(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function pXt(e,t,n){return!Ia(n,t)}function mXt(e,t,n){const r=Ia(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function gle(e,t,n){const r=Ia(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const gXt=QTe({html:vXt,head:yXt,body:bXt,colgroup:SXt,tbody:CXt});function vXt(e){const t=Ia(e,-1);return!t||t.type!=="comment"}function yXt(e){const t=e.children,n=[];let r=-1;for(;++r<t.length;){const i=t[r];if(i.type==="element"&&(i.tagName==="title"||i.tagName==="base")){if(n.includes(i.tagName))return!1;n.push(i.tagName)}}return t.length>0}function bXt(e){const t=Ia(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&Oq(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function SXt(e,t,n){const r=YTe(n,t),i=Ia(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&Pq(r,n.children.indexOf(r),n)?!1:i&&i.type==="element"&&i.tagName==="col"}function CXt(e,t,n){const r=YTe(n,t),i=Ia(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&Pq(r,n.children.indexOf(r),n)?!1:i&&i.type==="element"&&i.tagName==="tr"}const j5={name:[[`
|
||
\f\r &/=>`.split(""),`
|
||
\f\r "&'/=>\``.split("")],[`\0
|
||
\f\r "&'/<=>`.split(""),`\0
|
||
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
||
\f\r &>`.split(""),`\0
|
||
\f\r "&'<=>\``.split("")],[`\0
|
||
\f\r "&'<=>\``.split(""),`\0
|
||
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function xXt(e,t,n,r){const i=r.schema,o=i.space==="svg"?!1:r.settings.omitOptionalTags;let a=i.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const s=[];let l;i.space==="html"&&e.tagName==="svg"&&(r.schema=DC);const c=wXt(r,e.properties),u=r.all(i.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=i,u&&(a=!1),(c||!o||!gXt(e,t,n))&&(s.push("<",e.tagName,c?" "+c:""),a&&(i.space==="svg"||r.settings.closeSelfClosing)&&(l=c.charAt(c.length-1),(!r.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&s.push(" "),s.push("/")),s.push(">")),s.push(u),!a&&(!o||!Pq(e,t,n))&&s.push("</"+e.tagName+">"),s.join("")}function wXt(e,t){const n=[];let r=-1,i;if(t){for(i in t)if(t[i]!==void 0&&t[i]!==null){const o=_Xt(e,i,t[i]);o&&n.push(o)}}for(;++r<n.length;){const o=e.settings.tightAttributes?n[r].charAt(n[r].length-1):null;r!==n.length-1&&o!=='"'&&o!=="'"&&(n[r]+=" ")}return n.join("")}function _Xt(e,t,n){const r=cI(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,o=e.settings.allowDangerousCharacters?0:1;let a=e.quote,s;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean&&typeof n!="string")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const l=vb(r.attribute,Object.assign({},e.settings.characterReferences,{subset:j5.name[i][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?HTe:BTe)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(s=vb(n,Object.assign({},e.settings.characterReferences,{subset:j5.unquoted[i][o],attribute:!0}))),s!==n&&(e.settings.quoteSmart&&Dk(n,a)>Dk(n,e.alternative)&&(a=e.alternative),s=a+vb(n,Object.assign({},e.settings.characterReferences,{subset:(a==="'"?j5.single:j5.double)[i][o],attribute:!0}))+a),l+(s&&"="+s))}function ZTe(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:vb(e.value,Object.assign({},r.settings.characterReferences,{subset:["<","&"]}))}function EXt(e,t,n,r){return r.settings.allowDangerousHtml?e.value:ZTe(e,t,n,r)}function TXt(e,t,n,r){return r.all(e)}const kXt=Tq("type",{invalid:OXt,unknown:PXt,handlers:{comment:eXt,doctype:tXt,element:xXt,raw:EXt,root:TXt,text:ZTe}});function OXt(e){throw new Error("Expected node, not `"+e+"`")}function PXt(e){throw new Error("Cannot compile unknown node `"+e.type+"`")}function MXt(e,t){const n=t||{},r=n.quote||'"',i=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:IXt,all:$Xt,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||KTe,characterReferences:n.characterReferences||n.entities||{},closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?DC:w4,quote:r,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function IXt(e,t,n){return kXt(e,t,n,this)}function $Xt(e){const t=[],n=e&&e.children||[];let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function RXt(e){const t=this.data("settings"),n=Object.assign({},t,e);Object.assign(this,{Compiler:r});function r(i){return MXt(i,n)}}const AXt={};function NXt(e,t){const n=AXt,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return JTe(e,r,i)}function JTe(e,t,n){if(DXt(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return vle(e.children,t,n)}return Array.isArray(e)?vle(e,t,n):""}function vle(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=JTe(e[i],t,n);return r.join("")}function DXt(e){return!!(e&&typeof e=="object")}function $c(e,t,n,r){const i=e.length;let o=0,a;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);o<r.length;)a=r.slice(o,o+1e4),a.unshift(t,0),e.splice(...a),o+=1e4,t+=1e4}function fu(e,t){return e.length>0?($c(e,e.length,0,t),e):t}const yle={}.hasOwnProperty;function e5e(e){const t={};let n=-1;for(;++n<e.length;)LXt(t,e[n]);return t}function LXt(e,t){let n;for(n in t){const i=(yle.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let a;if(o)for(a in o){yle.call(i,a)||(i[a]=[]);const s=o[a];FXt(i[a],Array.isArray(s)?s:s?[s]:[])}}}function FXt(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);$c(e,0,0,r)}const jXt=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,dl=kg(/[A-Za-z]/),Hs=kg(/[\dA-Za-z]/),BXt=kg(/[#-'*+\--9=?A-Z^-~]/);function Lk(e){return e!==null&&(e<32||e===127)}const XB=kg(/\d/),HXt=kg(/[\dA-Fa-f]/),zXt=kg(/[!-/:-@[-`{-~]/);function br(e){return e!==null&&e<-2}function to(e){return e!==null&&(e<0||e===32)}function Zr(e){return e===-2||e===-1||e===32}const uI=kg(jXt),Av=kg(/\s/);function kg(e){return t;function t(n){return n!==null&&e.test(String.fromCharCode(n))}}function bi(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(l){return Zr(l)?(e.enter(n),s(l)):t(l)}function s(l){return Zr(l)&&o++<i?(e.consume(l),s):(e.exit(n),t(l))}}const UXt={tokenize:WXt};function WXt(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),bi(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),o(s)}function o(s){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,a(s)}function a(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return br(s)?(e.consume(s),e.exit("chunkText"),o):(e.consume(s),a)}}const VXt={tokenize:KXt},ble={tokenize:qXt};function KXt(e){const t=this,n=[];let r=0,i,o,a;return s;function s(C){if(r<n.length){const _=n[r];return t.containerState=_[1],e.attempt(_[0].continuation,l,c)(C)}return c(C)}function l(C){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&b();const _=t.events.length;let T=_,x;for(;T--;)if(t.events[T][0]==="exit"&&t.events[T][1].type==="chunkFlow"){x=t.events[T][1].end;break}S(r);let E=_;for(;E<t.events.length;)t.events[E][1].end=Object.assign({},x),E++;return $c(t.events,T+1,0,t.events.slice(_)),t.events.length=E,c(C)}return s(C)}function c(C){if(r===n.length){if(!i)return h(C);if(i.currentConstruct&&i.currentConstruct.concrete)return m(C);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(ble,u,d)(C)}function u(C){return i&&b(),S(r),h(C)}function d(C){return t.parser.lazy[t.now().line]=r!==n.length,a=t.now().offset,m(C)}function h(C){return t.containerState={},e.attempt(ble,p,m)(C)}function p(C){return r++,n.push([t.currentConstruct,t.containerState]),h(C)}function m(C){if(C===null){i&&b(),S(0),e.consume(C);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:o,_tokenizer:i}),v(C)}function v(C){if(C===null){y(e.exit("chunkFlow"),!0),S(0),e.consume(C);return}return br(C)?(e.consume(C),y(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(C),v)}function y(C,_){const T=t.sliceStream(C);if(_&&T.push(null),C.previous=o,o&&(o.next=C),o=C,i.defineSkip(C.start),i.write(T),t.parser.lazy[C.start.line]){let x=i.events.length;for(;x--;)if(i.events[x][1].start.offset<a&&(!i.events[x][1].end||i.events[x][1].end.offset>a))return;const E=t.events.length;let k=E,M,P;for(;k--;)if(t.events[k][0]==="exit"&&t.events[k][1].type==="chunkFlow"){if(M){P=t.events[k][1].end;break}M=!0}for(S(r),x=E;x<t.events.length;)t.events[x][1].end=Object.assign({},P),x++;$c(t.events,k+1,0,t.events.slice(E)),t.events.length=x}}function S(C){let _=n.length;for(;_-- >C;){const T=n[_];t.containerState=T[1],T[0].exit.call(t,e)}n.length=C}function b(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function qXt(e,t,n){return bi(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Fk(e){if(e===null||to(e)||Av(e))return 1;if(uI(e))return 2}function dI(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const QB={name:"attention",tokenize:YXt,resolveAll:GXt};function GXt(e,t){let n=-1,r,i,o,a,s,l,c,u;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d=Object.assign({},e[r][1].end),h=Object.assign({},e[n][1].start);Sle(d,-l),Sle(h,l),a={type:l>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[r][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:h},o={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},a.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},a.start),e[n][1].start=Object.assign({},s.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=fu(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=fu(c,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",o,t]]),c=fu(c,dI(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=fu(c,[["exit",o,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,c=fu(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):u=0,$c(e,r-1,n-r+3,c),n=r+c.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function YXt(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Fk(r);let o;return a;function a(l){return o=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===o)return e.consume(l),s;const c=e.exit("attentionSequence"),u=Fk(l),d=!u||u===2&&i||n.includes(l),h=!i||i===2&&u||n.includes(r);return c._open=!!(o===42?d:d&&(i||!h)),c._close=!!(o===42?h:h&&(u||!d)),t(l)}}function Sle(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const XXt={name:"autolink",tokenize:QXt};function QXt(e,t,n){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(p){return dl(p)?(e.consume(p),a):c(p)}function a(p){return p===43||p===45||p===46||Hs(p)?(r=1,s(p)):c(p)}function s(p){return p===58?(e.consume(p),r=0,l):(p===43||p===45||p===46||Hs(p))&&r++<32?(e.consume(p),s):(r=0,c(p))}function l(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||Lk(p)?n(p):(e.consume(p),l)}function c(p){return p===64?(e.consume(p),u):BXt(p)?(e.consume(p),c):n(p)}function u(p){return Hs(p)?d(p):n(p)}function d(p){return p===46?(e.consume(p),r=0,u):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):h(p)}function h(p){if((p===45||Hs(p))&&r++<63){const m=p===45?h:d;return e.consume(p),m}return n(p)}}const _4={tokenize:ZXt,partial:!0};function ZXt(e,t,n){return r;function r(o){return Zr(o)?bi(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||br(o)?t(o):n(o)}}const t5e={name:"blockQuote",tokenize:JXt,continuation:{tokenize:eQt},exit:tQt};function JXt(e,t,n){const r=this;return i;function i(a){if(a===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),o}return n(a)}function o(a){return Zr(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function eQt(e,t,n){const r=this;return i;function i(a){return Zr(a)?bi(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):o(a)}function o(a){return e.attempt(t5e,t,n)(a)}}function tQt(e){e.exit("blockQuote")}const n5e={name:"characterEscape",tokenize:nQt};function nQt(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return zXt(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const Cle=document.createElement("i");function Mq(e){const t="&"+e+";";Cle.innerHTML=t;const n=Cle.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}const r5e={name:"characterReference",tokenize:rQt};function rQt(e,t,n){const r=this;let i=0,o,a;return s;function s(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),l}function l(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),o=31,a=Hs,u(d))}function c(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,a=HXt,u):(e.enter("characterReferenceValue"),o=7,a=XB,u(d))}function u(d){if(d===59&&i){const h=e.exit("characterReferenceValue");return a===Hs&&!Mq(r.sliceSerialize(h))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return a(d)&&i++<o?(e.consume(d),u):n(d)}}const xle={tokenize:oQt,partial:!0},wle={name:"codeFenced",tokenize:iQt,concrete:!0};function iQt(e,t,n){const r=this,i={tokenize:T,partial:!0};let o=0,a=0,s;return l;function l(x){return c(x)}function c(x){const E=r.events[r.events.length-1];return o=E&&E[1].type==="linePrefix"?E[2].sliceSerialize(E[1],!0).length:0,s=x,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(x)}function u(x){return x===s?(a++,e.consume(x),u):a<3?n(x):(e.exit("codeFencedFenceSequence"),Zr(x)?bi(e,d,"whitespace")(x):d(x))}function d(x){return x===null||br(x)?(e.exit("codeFencedFence"),r.interrupt?t(x):e.check(xle,v,_)(x)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(x))}function h(x){return x===null||br(x)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(x)):Zr(x)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),bi(e,p,"whitespace")(x)):x===96&&x===s?n(x):(e.consume(x),h)}function p(x){return x===null||br(x)?d(x):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(x))}function m(x){return x===null||br(x)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(x)):x===96&&x===s?n(x):(e.consume(x),m)}function v(x){return e.attempt(i,_,y)(x)}function y(x){return e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),S}function S(x){return o>0&&Zr(x)?bi(e,b,"linePrefix",o+1)(x):b(x)}function b(x){return x===null||br(x)?e.check(xle,v,_)(x):(e.enter("codeFlowValue"),C(x))}function C(x){return x===null||br(x)?(e.exit("codeFlowValue"),b(x)):(e.consume(x),C)}function _(x){return e.exit("codeFenced"),t(x)}function T(x,E,k){let M=0;return P;function P(F){return x.enter("lineEnding"),x.consume(F),x.exit("lineEnding"),D}function D(F){return x.enter("codeFencedFence"),Zr(F)?bi(x,R,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):R(F)}function R(F){return F===s?(x.enter("codeFencedFenceSequence"),A(F)):k(F)}function A(F){return F===s?(M++,x.consume(F),A):M>=a?(x.exit("codeFencedFenceSequence"),Zr(F)?bi(x,H,"whitespace")(F):H(F)):k(F)}function H(F){return F===null||br(F)?(x.exit("codeFencedFence"),E(F)):k(F)}}}function oQt(e,t,n){const r=this;return i;function i(a){return a===null?n(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}const CN={name:"codeIndented",tokenize:sQt},aQt={tokenize:lQt,partial:!0};function sQt(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),bi(e,o,"linePrefix",5)(c)}function o(c){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?a(c):n(c)}function a(c){return c===null?l(c):br(c)?e.attempt(aQt,a,l)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||br(c)?(e.exit("codeFlowValue"),a(c)):(e.consume(c),s)}function l(c){return e.exit("codeIndented"),t(c)}}function lQt(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):br(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):bi(e,o,"linePrefix",5)(a)}function o(a){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):br(a)?i(a):n(a)}}const cQt={name:"codeText",tokenize:fQt,resolve:uQt,previous:dQt};function uQt(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function dQt(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function fQt(e,t,n){let r=0,i,o;return a;function a(d){return e.enter("codeText"),e.enter("codeTextSequence"),s(d)}function s(d){return d===96?(e.consume(d),r++,s):(e.exit("codeTextSequence"),l(d))}function l(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),l):d===96?(o=e.enter("codeTextSequence"),i=0,u(d)):br(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(d))}function c(d){return d===null||d===32||d===96||br(d)?(e.exit("codeTextData"),l(d)):(e.consume(d),c)}function u(d){return d===96?(e.consume(d),i++,u):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(o.type="codeTextData",c(d))}}function i5e(e){const t={};let n=-1,r,i,o,a,s,l,c;for(;++n<e.length;){for(;n in t;)n=t[n];if(r=e[n],n&&r[1].type==="chunkFlow"&&e[n-1][1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,o=0,o<l.length&&l[o][1].type==="lineEndingBlank"&&(o+=2),o<l.length&&l[o][1].type==="content"))for(;++o<l.length&&l[o][1].type!=="content";)l[o][1].type==="chunkText"&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,hQt(e,n)),n=t[n],c=!0);else if(r[1]._container){for(o=n,i=void 0;o--&&(a=e[o],a[1].type==="lineEnding"||a[1].type==="lineEndingBlank");)a[0]==="enter"&&(i&&(e[i][1].type="lineEndingBlank"),a[1].type="lineEnding",i=o);i&&(r[1].end=Object.assign({},e[i][1].start),s=e.slice(i,n),s.unshift(r),$c(e,i,n-i+1,s))}}return!c}function hQt(e,t){const n=e[t][1],r=e[t][2];let i=t-1;const o=[],a=n._tokenizer||r.parser[n.contentType](n.start),s=a.events,l=[],c={};let u,d,h=-1,p=n,m=0,v=0;const y=[v];for(;p;){for(;e[++i][1]!==p;);o.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&a.defineSkip(p.start),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++h<s.length;)s[h][0]==="exit"&&s[h-1][0]==="enter"&&s[h][1].type===s[h-1][1].type&&s[h][1].start.line!==s[h][1].end.line&&(v=h+1,y.push(v),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(a.events=[],p?(p._tokenizer=void 0,p.previous=void 0):y.pop(),h=y.length;h--;){const S=s.slice(y[h],y[h+1]),b=o.pop();l.unshift([b,b+S.length-1]),$c(e,b,2,S)}for(h=-1;++h<l.length;)c[m+l[h][0]]=m+l[h][1],m+=l[h][1]-l[h][0]-1;return c}const pQt={tokenize:vQt,resolve:gQt},mQt={tokenize:yQt,partial:!0};function gQt(e){return i5e(e),e}function vQt(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?o(s):br(s)?e.check(mQt,a,o)(s):(e.consume(s),i)}function o(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function a(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function yQt(e,t,n){const r=this;return i;function i(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),bi(e,o,"linePrefix")}function o(a){if(a===null||br(a))return n(a);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function o5e(e,t,n,r,i,o,a,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return d;function d(S){return S===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(S),e.exit(o),h):S===null||S===32||S===41||Lk(S)?n(S):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),v(S))}function h(S){return S===62?(e.enter(o),e.consume(S),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(S))}function p(S){return S===62?(e.exit("chunkString"),e.exit(s),h(S)):S===null||S===60||br(S)?n(S):(e.consume(S),S===92?m:p)}function m(S){return S===60||S===62||S===92?(e.consume(S),p):p(S)}function v(S){return!u&&(S===null||S===41||to(S))?(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(S)):u<c&&S===40?(e.consume(S),u++,v):S===41?(e.consume(S),u--,v):S===null||S===32||S===40||Lk(S)?n(S):(e.consume(S),S===92?y:v)}function y(S){return S===40||S===41||S===92?(e.consume(S),v):v(S)}}function a5e(e,t,n,r,i,o){const a=this;let s=0,l;return c;function c(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(o),u}function u(p){return s>999||p===null||p===91||p===93&&!l||p===94&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(p):p===93?(e.exit(o),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):br(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||br(p)||s++>999?(e.exit("chunkString"),u(p)):(e.consume(p),l||(l=!Zr(p)),p===92?h:d)}function h(p){return p===91||p===92||p===93?(e.consume(p),s++,d):d(p)}}function s5e(e,t,n,r,i,o){let a;return s;function s(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),a=h===40?41:h,l):n(h)}function l(h){return h===a?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):(e.enter(o),c(h))}function c(h){return h===a?(e.exit(o),l(a)):h===null?n(h):br(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),bi(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(h))}function u(h){return h===a||h===null||br(h)?(e.exit("chunkString"),c(h)):(e.consume(h),h===92?d:u)}function d(h){return h===a||h===92?(e.consume(h),u):u(h)}}function yw(e,t){let n;return r;function r(i){return br(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Zr(i)?bi(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function $d(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const bQt={name:"definition",tokenize:CQt},SQt={tokenize:xQt,partial:!0};function CQt(e,t,n){const r=this;let i;return o;function o(p){return e.enter("definition"),a(p)}function a(p){return a5e.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function s(p){return i=$d(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),l):n(p)}function l(p){return to(p)?yw(e,c)(p):c(p)}function c(p){return o5e(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function u(p){return e.attempt(SQt,d,d)(p)}function d(p){return Zr(p)?bi(e,h,"whitespace")(p):h(p)}function h(p){return p===null||br(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function xQt(e,t,n){return r;function r(s){return to(s)?yw(e,i)(s):n(s)}function i(s){return s5e(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function o(s){return Zr(s)?bi(e,a,"whitespace")(s):a(s)}function a(s){return s===null||br(s)?t(s):n(s)}}const wQt={name:"hardBreakEscape",tokenize:_Qt};function _Qt(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return br(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const EQt={name:"headingAtx",tokenize:kQt,resolve:TQt};function TQt(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},$c(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function kQt(e,t,n){let r=0;return i;function i(u){return e.enter("atxHeading"),o(u)}function o(u){return e.enter("atxHeadingSequence"),a(u)}function a(u){return u===35&&r++<6?(e.consume(u),a):u===null||to(u)?(e.exit("atxHeadingSequence"),s(u)):n(u)}function s(u){return u===35?(e.enter("atxHeadingSequence"),l(u)):u===null||br(u)?(e.exit("atxHeading"),t(u)):Zr(u)?bi(e,s,"whitespace")(u):(e.enter("atxHeadingText"),c(u))}function l(u){return u===35?(e.consume(u),l):(e.exit("atxHeadingSequence"),s(u))}function c(u){return u===null||u===35||to(u)?(e.exit("atxHeadingText"),s(u)):(e.consume(u),c)}}const OQt=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],_le=["pre","script","style","textarea"],PQt={name:"htmlFlow",tokenize:RQt,resolveTo:$Qt,concrete:!0},MQt={tokenize:NQt,partial:!0},IQt={tokenize:AQt,partial:!0};function $Qt(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function RQt(e,t,n){const r=this;let i,o,a,s,l;return c;function c(G){return u(G)}function u(G){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(G),d}function d(G){return G===33?(e.consume(G),h):G===47?(e.consume(G),o=!0,v):G===63?(e.consume(G),i=3,r.interrupt?t:N):dl(G)?(e.consume(G),a=String.fromCharCode(G),y):n(G)}function h(G){return G===45?(e.consume(G),i=2,p):G===91?(e.consume(G),i=5,s=0,m):dl(G)?(e.consume(G),i=4,r.interrupt?t:N):n(G)}function p(G){return G===45?(e.consume(G),r.interrupt?t:N):n(G)}function m(G){const ie="CDATA[";return G===ie.charCodeAt(s++)?(e.consume(G),s===ie.length?r.interrupt?t:R:m):n(G)}function v(G){return dl(G)?(e.consume(G),a=String.fromCharCode(G),y):n(G)}function y(G){if(G===null||G===47||G===62||to(G)){const ie=G===47,ce=a.toLowerCase();return!ie&&!o&&_le.includes(ce)?(i=1,r.interrupt?t(G):R(G)):OQt.includes(a.toLowerCase())?(i=6,ie?(e.consume(G),S):r.interrupt?t(G):R(G)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(G):o?b(G):C(G))}return G===45||Hs(G)?(e.consume(G),a+=String.fromCharCode(G),y):n(G)}function S(G){return G===62?(e.consume(G),r.interrupt?t:R):n(G)}function b(G){return Zr(G)?(e.consume(G),b):P(G)}function C(G){return G===47?(e.consume(G),P):G===58||G===95||dl(G)?(e.consume(G),_):Zr(G)?(e.consume(G),C):P(G)}function _(G){return G===45||G===46||G===58||G===95||Hs(G)?(e.consume(G),_):T(G)}function T(G){return G===61?(e.consume(G),x):Zr(G)?(e.consume(G),T):C(G)}function x(G){return G===null||G===60||G===61||G===62||G===96?n(G):G===34||G===39?(e.consume(G),l=G,E):Zr(G)?(e.consume(G),x):k(G)}function E(G){return G===l?(e.consume(G),l=null,M):G===null||br(G)?n(G):(e.consume(G),E)}function k(G){return G===null||G===34||G===39||G===47||G===60||G===61||G===62||G===96||to(G)?T(G):(e.consume(G),k)}function M(G){return G===47||G===62||Zr(G)?C(G):n(G)}function P(G){return G===62?(e.consume(G),D):n(G)}function D(G){return G===null||br(G)?R(G):Zr(G)?(e.consume(G),D):n(G)}function R(G){return G===45&&i===2?(e.consume(G),z):G===60&&i===1?(e.consume(G),W):G===62&&i===4?(e.consume(G),B):G===63&&i===3?(e.consume(G),N):G===93&&i===5?(e.consume(G),Z):br(G)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(MQt,V,A)(G)):G===null||br(G)?(e.exit("htmlFlowData"),A(G)):(e.consume(G),R)}function A(G){return e.check(IQt,H,V)(G)}function H(G){return e.enter("lineEnding"),e.consume(G),e.exit("lineEnding"),F}function F(G){return G===null||br(G)?A(G):(e.enter("htmlFlowData"),R(G))}function z(G){return G===45?(e.consume(G),N):R(G)}function W(G){return G===47?(e.consume(G),a="",q):R(G)}function q(G){if(G===62){const ie=a.toLowerCase();return _le.includes(ie)?(e.consume(G),B):R(G)}return dl(G)&&a.length<8?(e.consume(G),a+=String.fromCharCode(G),q):R(G)}function Z(G){return G===93?(e.consume(G),N):R(G)}function N(G){return G===62?(e.consume(G),B):G===45&&i===2?(e.consume(G),N):R(G)}function B(G){return G===null||br(G)?(e.exit("htmlFlowData"),V(G)):(e.consume(G),B)}function V(G){return e.exit("htmlFlow"),t(G)}}function AQt(e,t,n){const r=this;return i;function i(a){return br(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):n(a)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}function NQt(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(_4,t,n)}}const DQt={name:"htmlText",tokenize:LQt};function LQt(e,t,n){const r=this;let i,o,a;return s;function s(N){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(N),l}function l(N){return N===33?(e.consume(N),c):N===47?(e.consume(N),T):N===63?(e.consume(N),C):dl(N)?(e.consume(N),k):n(N)}function c(N){return N===45?(e.consume(N),u):N===91?(e.consume(N),o=0,m):dl(N)?(e.consume(N),b):n(N)}function u(N){return N===45?(e.consume(N),p):n(N)}function d(N){return N===null?n(N):N===45?(e.consume(N),h):br(N)?(a=d,W(N)):(e.consume(N),d)}function h(N){return N===45?(e.consume(N),p):d(N)}function p(N){return N===62?z(N):N===45?h(N):d(N)}function m(N){const B="CDATA[";return N===B.charCodeAt(o++)?(e.consume(N),o===B.length?v:m):n(N)}function v(N){return N===null?n(N):N===93?(e.consume(N),y):br(N)?(a=v,W(N)):(e.consume(N),v)}function y(N){return N===93?(e.consume(N),S):v(N)}function S(N){return N===62?z(N):N===93?(e.consume(N),S):v(N)}function b(N){return N===null||N===62?z(N):br(N)?(a=b,W(N)):(e.consume(N),b)}function C(N){return N===null?n(N):N===63?(e.consume(N),_):br(N)?(a=C,W(N)):(e.consume(N),C)}function _(N){return N===62?z(N):C(N)}function T(N){return dl(N)?(e.consume(N),x):n(N)}function x(N){return N===45||Hs(N)?(e.consume(N),x):E(N)}function E(N){return br(N)?(a=E,W(N)):Zr(N)?(e.consume(N),E):z(N)}function k(N){return N===45||Hs(N)?(e.consume(N),k):N===47||N===62||to(N)?M(N):n(N)}function M(N){return N===47?(e.consume(N),z):N===58||N===95||dl(N)?(e.consume(N),P):br(N)?(a=M,W(N)):Zr(N)?(e.consume(N),M):z(N)}function P(N){return N===45||N===46||N===58||N===95||Hs(N)?(e.consume(N),P):D(N)}function D(N){return N===61?(e.consume(N),R):br(N)?(a=D,W(N)):Zr(N)?(e.consume(N),D):M(N)}function R(N){return N===null||N===60||N===61||N===62||N===96?n(N):N===34||N===39?(e.consume(N),i=N,A):br(N)?(a=R,W(N)):Zr(N)?(e.consume(N),R):(e.consume(N),H)}function A(N){return N===i?(e.consume(N),i=void 0,F):N===null?n(N):br(N)?(a=A,W(N)):(e.consume(N),A)}function H(N){return N===null||N===34||N===39||N===60||N===61||N===96?n(N):N===47||N===62||to(N)?M(N):(e.consume(N),H)}function F(N){return N===47||N===62||to(N)?M(N):n(N)}function z(N){return N===62?(e.consume(N),e.exit("htmlTextData"),e.exit("htmlText"),t):n(N)}function W(N){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),q}function q(N){return Zr(N)?bi(e,Z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):Z(N)}function Z(N){return e.enter("htmlTextData"),a(N)}}const Iq={name:"labelEnd",tokenize:UQt,resolveTo:zQt,resolveAll:HQt},FQt={tokenize:WQt},jQt={tokenize:VQt},BQt={tokenize:KQt};function HQt(e){let t=-1;for(;++t<e.length;){const n=e[t][1];(n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd")&&(e.splice(t+1,n.type==="labelImage"?4:2),n.type="data",t++)}return e}function zQt(e,t){let n=e.length,r=0,i,o,a,s;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(a=n);const l={type:e[o][1].type==="labelLink"?"link":"image",start:Object.assign({},e[o][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[o][1].start),end:Object.assign({},e[a][1].end)},u={type:"labelText",start:Object.assign({},e[o+r+2][1].end),end:Object.assign({},e[a-2][1].start)};return s=[["enter",l,t],["enter",c,t]],s=fu(s,e.slice(o+1,o+r+3)),s=fu(s,[["enter",u,t]]),s=fu(s,dI(t.parser.constructs.insideSpan.null,e.slice(o+r+4,a-3),t)),s=fu(s,[["exit",u,t],e[a-2],e[a-1],["exit",c,t]]),s=fu(s,e.slice(a+1)),s=fu(s,[["exit",l,t]]),$c(e,o,e.length,s),e}function UQt(e,t,n){const r=this;let i=r.events.length,o,a;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return s;function s(h){return o?o._inactive?d(h):(a=r.parser.defined.includes($d(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),l):n(h)}function l(h){return h===40?e.attempt(FQt,u,a?u:d)(h):h===91?e.attempt(jQt,u,a?c:d)(h):a?u(h):d(h)}function c(h){return e.attempt(BQt,u,d)(h)}function u(h){return t(h)}function d(h){return o._balanced=!0,n(h)}}function WQt(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),i}function i(d){return to(d)?yw(e,o)(d):o(d)}function o(d){return d===41?u(d):o5e(e,a,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function a(d){return to(d)?yw(e,l)(d):u(d)}function s(d){return n(d)}function l(d){return d===34||d===39||d===40?s5e(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):u(d)}function c(d){return to(d)?yw(e,u)(d):u(d)}function u(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function VQt(e,t,n){const r=this;return i;function i(s){return a5e.call(r,e,o,a,"reference","referenceMarker","referenceString")(s)}function o(s){return r.parser.defined.includes($d(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function a(s){return n(s)}}function KQt(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const qQt={name:"labelStartImage",tokenize:GQt,resolveAll:Iq.resolveAll};function GQt(e,t,n){const r=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),o}function o(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),a):n(s)}function a(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const YQt={name:"labelStartLink",tokenize:XQt,resolveAll:Iq.resolveAll};function XQt(e,t,n){const r=this;return i;function i(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),o}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const xN={name:"lineEnding",tokenize:QQt};function QQt(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),bi(e,t,"linePrefix")}}const h3={name:"thematicBreak",tokenize:ZQt};function ZQt(e,t,n){let r=0,i;return o;function o(c){return e.enter("thematicBreak"),a(c)}function a(c){return i=c,s(c)}function s(c){return c===i?(e.enter("thematicBreakSequence"),l(c)):r>=3&&(c===null||br(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===i?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),Zr(c)?bi(e,s,"whitespace")(c):s(c))}}const Ol={name:"list",tokenize:tZt,continuation:{tokenize:nZt},exit:iZt},JQt={tokenize:oZt,partial:!0},eZt={tokenize:rZt,partial:!0};function tZt(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return s;function s(p){const m=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:XB(p)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(h3,n,c)(p):c(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(p)}return n(p)}function l(p){return XB(p)&&++a<10?(e.consume(p),l):(!r.interrupt||a<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),c(p)):n(p)}function c(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(_4,r.interrupt?n:u,e.attempt(JQt,h,d))}function u(p){return r.containerState.initialBlankLine=!0,o++,h(p)}function d(p){return Zr(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),h):n(p)}function h(p){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function nZt(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(_4,i,o);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,bi(e,t,"listItemIndent",r.containerState.size+1)(s)}function o(s){return r.containerState.furtherBlankLines||!Zr(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(eZt,t,a)(s))}function a(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,bi(e,e.attempt(Ol,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function rZt(e,t,n){const r=this;return bi(e,i,"listItemIndent",r.containerState.size+1);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(o):n(o)}}function iZt(e){e.exit(this.containerState.type)}function oZt(e,t,n){const r=this;return bi(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const a=r.events[r.events.length-1];return!Zr(o)&&a&&a[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const Ele={name:"setextUnderline",tokenize:sZt,resolveTo:aZt};function aZt(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const a={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",a,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[o][1].end)):e[r][1]=a,e.push(["exit",a,t]),e}function sZt(e,t,n){const r=this;let i;return o;function o(c){let u=r.events.length,d;for(;u--;)if(r.events[u][1].type!=="lineEnding"&&r.events[u][1].type!=="linePrefix"&&r.events[u][1].type!=="content"){d=r.events[u][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=c,a(c)):n(c)}function a(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===i?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),Zr(c)?bi(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||br(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const lZt={tokenize:cZt};function cZt(e){const t=this,n=e.attempt(_4,r,e.attempt(this.parser.constructs.flowInitial,i,bi(e,e.attempt(this.parser.constructs.flow,i,e.attempt(pQt,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const uZt={resolveAll:c5e()},dZt=l5e("string"),fZt=l5e("text");function l5e(e){return{tokenize:t,resolveAll:c5e(e==="text"?hZt:void 0)};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,a,s);return a;function a(u){return c(u)?o(u):s(u)}function s(u){if(u===null){n.consume(u);return}return n.enter("data"),n.consume(u),l}function l(u){return c(u)?(n.exit("data"),o(u)):(n.consume(u),l)}function c(u){if(u===null)return!0;const d=i[u];let h=-1;if(d)for(;++h<d.length;){const p=d[h];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function c5e(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function hZt(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,a=-1,s=0,l;for(;o--;){const c=i[o];if(typeof c=="string"){for(a=c.length;c.charCodeAt(a-1)===32;)s++,a--;if(a)break;a=-1}else if(c===-2)l=!0,s++;else if(c!==-1){o++;break}}if(s){const c={type:n===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-s,offset:r.end.offset-s,_index:r.start._index+o,_bufferIndex:o?a:r.start._bufferIndex+a},end:Object.assign({},r.end)};r.end=Object.assign({},c.start),r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}function pZt(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},o=[];let a=[],s=[];const l={consume:b,enter:C,exit:_,attempt:E(T),check:E(x),interrupt:E(x,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:p,sliceSerialize:h,now:m,defineSkip:v,write:d};let u=t.tokenize.call(c,l);return t.resolveAll&&o.push(t),c;function d(D){return a=fu(a,D),y(),a[a.length-1]!==null?[]:(k(t,0),c.events=dI(o,c.events,c),c.events)}function h(D,R){return gZt(p(D),R)}function p(D){return mZt(a,D)}function m(){const{line:D,column:R,offset:A,_index:H,_bufferIndex:F}=r;return{line:D,column:R,offset:A,_index:H,_bufferIndex:F}}function v(D){i[D.line]=D.column,P()}function y(){let D;for(;r._index<a.length;){const R=a[r._index];if(typeof R=="string")for(D=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===D&&r._bufferIndex<R.length;)S(R.charCodeAt(r._bufferIndex));else S(R)}}function S(D){u=u(D)}function b(D){br(D)?(r.line++,r.column=1,r.offset+=D===-3?2:1,P()):D!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=D}function C(D,R){const A=R||{};return A.type=D,A.start=m(),c.events.push(["enter",A,c]),s.push(A),A}function _(D){const R=s.pop();return R.end=m(),c.events.push(["exit",R,c]),R}function T(D,R){k(D,R.from)}function x(D,R){R.restore()}function E(D,R){return A;function A(H,F,z){let W,q,Z,N;return Array.isArray(H)?V(H):"tokenize"in H?V([H]):B(H);function B(fe){return ee;function ee(ne){const ue=ne!==null&&fe[ne],ye=ne!==null&&fe.null,me=[...Array.isArray(ue)?ue:ue?[ue]:[],...Array.isArray(ye)?ye:ye?[ye]:[]];return V(me)(ne)}}function V(fe){return W=fe,q=0,fe.length===0?z:G(fe[q])}function G(fe){return ee;function ee(ne){return N=M(),Z=fe,fe.partial||(c.currentConstruct=fe),fe.name&&c.parser.constructs.disable.null.includes(fe.name)?ce():fe.tokenize.call(R?Object.assign(Object.create(c),R):c,l,ie,ce)(ne)}}function ie(fe){return D(Z,N),F}function ce(fe){return N.restore(),++q<W.length?G(W[q]):z}}}function k(D,R){D.resolveAll&&!o.includes(D)&&o.push(D),D.resolve&&$c(c.events,R,c.events.length-R,D.resolve(c.events.slice(R),c)),D.resolveTo&&(c.events=D.resolveTo(c.events,c))}function M(){const D=m(),R=c.previous,A=c.currentConstruct,H=c.events.length,F=Array.from(s);return{restore:z,from:H};function z(){r=D,c.previous=R,c.currentConstruct=A,c.events.length=H,s=F,P()}}function P(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function mZt(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let a;if(n===i)a=[e[n].slice(r,o)];else{if(a=e.slice(n,i),r>-1){const s=a[0];typeof s=="string"?a[0]=s.slice(r):a.shift()}o>0&&a.push(e[i].slice(0,o))}return a}function gZt(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let a;if(typeof o=="string")a=o;else switch(o){case-5:{a="\r";break}case-4:{a=`
|
||
`;break}case-3:{a=`\r
|
||
`;break}case-2:{a=t?" ":" ";break}case-1:{if(!t&&i)continue;a=" ";break}default:a=String.fromCharCode(o)}i=o===-2,r.push(a)}return r.join("")}const vZt={42:Ol,43:Ol,45:Ol,48:Ol,49:Ol,50:Ol,51:Ol,52:Ol,53:Ol,54:Ol,55:Ol,56:Ol,57:Ol,62:t5e},yZt={91:bQt},bZt={[-2]:CN,[-1]:CN,32:CN},SZt={35:EQt,42:h3,45:[Ele,h3],60:PQt,61:Ele,95:h3,96:wle,126:wle},CZt={38:r5e,92:n5e},xZt={[-5]:xN,[-4]:xN,[-3]:xN,33:qQt,38:r5e,42:QB,60:[XXt,DQt],91:YQt,92:[wQt,n5e],93:Iq,95:QB,96:cQt},wZt={null:[QB,uZt]},_Zt={null:[42,95]},EZt={null:[]},TZt=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:_Zt,contentInitial:yZt,disable:EZt,document:vZt,flow:SZt,flowInitial:bZt,insideSpan:wZt,string:CZt,text:xZt},Symbol.toStringTag,{value:"Module"}));function kZt(e){const n=e5e([TZt,...(e||{}).extensions||[]]),r={defined:[],lazy:{},constructs:n,content:i(UXt),document:i(VXt),flow:i(lZt),string:i(dZt),text:i(fZt)};return r;function i(o){return a;function a(s){return pZt(r,o,s)}}}const Tle=/[\0\t\n\r]/g;function OZt(){let e=1,t="",n=!0,r;return i;function i(o,a,s){const l=[];let c,u,d,h,p;for(o=t+o.toString(a),d=0,t="",n&&(o.charCodeAt(0)===65279&&d++,n=void 0);d<o.length;){if(Tle.lastIndex=d,c=Tle.exec(o),h=c&&c.index!==void 0?c.index:o.length,p=o.charCodeAt(h),!c){t=o.slice(d);break}if(p===10&&d===h&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),d<h&&(l.push(o.slice(d,h)),e+=h-d),p){case 0:{l.push(65533),e++;break}case 9:{for(u=Math.ceil(e/4)*4,l.push(-2);e++<u;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}d=h+1}return s&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}function PZt(e){for(;!i5e(e););return e}function u5e(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"<22>":String.fromCharCode(n)}const MZt=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function d5e(e){return e.replace(MZt,IZt)}function IZt(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return u5e(n.slice(o?2:1),o?16:10)}return Mq(n)||e}function bw(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?kle(e.position):"start"in e||"end"in e?kle(e):"line"in e||"column"in e?ZB(e):""}function ZB(e){return Ole(e&&e.line)+":"+Ole(e&&e.column)}function kle(e){return ZB(e&&e.start)+"-"+ZB(e&&e.end)}function Ole(e){return e&&typeof e=="number"?e:1}const f5e={}.hasOwnProperty,$Zt=function(e,t,n){return typeof t!="string"&&(n=t,t=void 0),RZt(n)(PZt(kZt(n).document().write(OZt()(e,t,!0))))};function RZt(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Ce),autolinkProtocol:D,autolinkEmail:D,atxHeading:s(xe),blockQuote:s(me),characterEscape:D,characterReference:D,codeFenced:s(pe),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:s(pe,l),codeText:s(he,l),codeTextData:D,data:D,codeFlowValue:D,definition:s(_e),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:s(le),hardBreakEscape:s(we),hardBreakTrailing:s(we),htmlFlow:s(De,l),htmlFlowData:D,htmlText:s(De,l),htmlTextData:D,image:s(Fe),label:l,link:s(Ce),listItem:s(ke),listItemValue:m,listOrdered:s(Te,p),listUnordered:s(Te),paragraph:s(Pe),reference:ce,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:s(xe),strong:s(Ne),thematicBreak:s(Q)},exit:{atxHeading:u(),atxHeadingSequence:E,autolink:u(),autolinkEmail:ye,autolinkProtocol:ue,blockQuote:u(),characterEscapeValue:R,characterReferenceMarkerHexadecimal:ee,characterReferenceMarkerNumeric:ee,characterReferenceValue:ne,codeFenced:u(b),codeFencedFence:S,codeFencedFenceInfo:v,codeFencedFenceMeta:y,codeFlowValue:R,codeIndented:u(C),codeText:u(W),codeTextData:R,data:R,definition:u(),definitionDestinationString:x,definitionLabelString:_,definitionTitleString:T,emphasis:u(),hardBreakEscape:u(H),hardBreakTrailing:u(H),htmlFlow:u(F),htmlFlowData:R,htmlText:u(z),htmlTextData:R,image:u(Z),label:B,labelText:N,lineEnding:A,link:u(q),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:fe,resourceDestinationString:V,resourceTitleString:G,resource:ie,setextHeading:u(P),setextHeadingLineSequence:M,setextHeadingText:k,strong:u(),thematicBreak:u()}};h5e(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(K){let J={type:"root",children:[]};const be={stack:[J],tokenStack:[],config:t,enter:c,exit:d,buffer:l,resume:h,setData:o,getData:a},Oe=[];let Se=-1;for(;++Se<K.length;)if(K[Se][1].type==="listOrdered"||K[Se][1].type==="listUnordered")if(K[Se][0]==="enter")Oe.push(Se);else{const Ke=Oe.pop();Se=i(K,Ke,Se)}for(Se=-1;++Se<K.length;){const Ke=t[K[Se][0]];f5e.call(Ke,K[Se][1].type)&&Ke[K[Se][1].type].call(Object.assign({sliceSerialize:K[Se][2].sliceSerialize},be),K[Se][1])}if(be.tokenStack.length>0){const Ke=be.tokenStack[be.tokenStack.length-1];(Ke[1]||Ple).call(be,void 0,Ke[0])}for(J.position={start:tm(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:tm(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},Se=-1;++Se<t.transforms.length;)J=t.transforms[Se](J)||J;return J}function i(K,J,be){let Oe=J-1,Se=-1,Ke=!1,tt,se,ze,Ye;for(;++Oe<=be;){const Ue=K[Oe];if(Ue[1].type==="listUnordered"||Ue[1].type==="listOrdered"||Ue[1].type==="blockQuote"?(Ue[0]==="enter"?Se++:Se--,Ye=void 0):Ue[1].type==="lineEndingBlank"?Ue[0]==="enter"&&(tt&&!Ye&&!Se&&!ze&&(ze=Oe),Ye=void 0):Ue[1].type==="linePrefix"||Ue[1].type==="listItemValue"||Ue[1].type==="listItemMarker"||Ue[1].type==="listItemPrefix"||Ue[1].type==="listItemPrefixWhitespace"||(Ye=void 0),!Se&&Ue[0]==="enter"&&Ue[1].type==="listItemPrefix"||Se===-1&&Ue[0]==="exit"&&(Ue[1].type==="listUnordered"||Ue[1].type==="listOrdered")){if(tt){let Je=Oe;for(se=void 0;Je--;){const Ze=K[Je];if(Ze[1].type==="lineEnding"||Ze[1].type==="lineEndingBlank"){if(Ze[0]==="exit")continue;se&&(K[se][1].type="lineEndingBlank",Ke=!0),Ze[1].type="lineEnding",se=Je}else if(!(Ze[1].type==="linePrefix"||Ze[1].type==="blockQuotePrefix"||Ze[1].type==="blockQuotePrefixWhitespace"||Ze[1].type==="blockQuoteMarker"||Ze[1].type==="listItemIndent"))break}ze&&(!se||ze<se)&&(tt._spread=!0),tt.end=Object.assign({},se?K[se][1].start:Ue[1].end),K.splice(se||Oe,0,["exit",tt,Ue[2]]),Oe++,be++}Ue[1].type==="listItemPrefix"&&(tt={type:"listItem",_spread:!1,start:Object.assign({},Ue[1].start),end:void 0},K.splice(Oe,0,["enter",tt,Ue[2]]),Oe++,be++,ze=void 0,Ye=!0)}}return K[J][1]._spread=Ke,be}function o(K,J){n[K]=J}function a(K){return n[K]}function s(K,J){return be;function be(Oe){c.call(this,K(Oe),Oe),J&&J.call(this,Oe)}}function l(){this.stack.push({type:"fragment",children:[]})}function c(K,J,be){return this.stack[this.stack.length-1].children.push(K),this.stack.push(K),this.tokenStack.push([J,be]),K.position={start:tm(J.start)},K}function u(K){return J;function J(be){K&&K.call(this,be),d.call(this,be)}}function d(K,J){const be=this.stack.pop(),Oe=this.tokenStack.pop();if(Oe)Oe[0].type!==K.type&&(J?J.call(this,K,Oe[0]):(Oe[1]||Ple).call(this,K,Oe[0]));else throw new Error("Cannot close `"+K.type+"` ("+bw({start:K.start,end:K.end})+"): it’s not open");return be.position.end=tm(K.end),be}function h(){return NXt(this.stack.pop())}function p(){o("expectingFirstListItemValue",!0)}function m(K){if(a("expectingFirstListItemValue")){const J=this.stack[this.stack.length-2];J.start=Number.parseInt(this.sliceSerialize(K),10),o("expectingFirstListItemValue")}}function v(){const K=this.resume(),J=this.stack[this.stack.length-1];J.lang=K}function y(){const K=this.resume(),J=this.stack[this.stack.length-1];J.meta=K}function S(){a("flowCodeInside")||(this.buffer(),o("flowCodeInside",!0))}function b(){const K=this.resume(),J=this.stack[this.stack.length-1];J.value=K.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),o("flowCodeInside")}function C(){const K=this.resume(),J=this.stack[this.stack.length-1];J.value=K.replace(/(\r?\n|\r)$/g,"")}function _(K){const J=this.resume(),be=this.stack[this.stack.length-1];be.label=J,be.identifier=$d(this.sliceSerialize(K)).toLowerCase()}function T(){const K=this.resume(),J=this.stack[this.stack.length-1];J.title=K}function x(){const K=this.resume(),J=this.stack[this.stack.length-1];J.url=K}function E(K){const J=this.stack[this.stack.length-1];if(!J.depth){const be=this.sliceSerialize(K).length;J.depth=be}}function k(){o("setextHeadingSlurpLineEnding",!0)}function M(K){const J=this.stack[this.stack.length-1];J.depth=this.sliceSerialize(K).charCodeAt(0)===61?1:2}function P(){o("setextHeadingSlurpLineEnding")}function D(K){const J=this.stack[this.stack.length-1];let be=J.children[J.children.length-1];(!be||be.type!=="text")&&(be=We(),be.position={start:tm(K.start)},J.children.push(be)),this.stack.push(be)}function R(K){const J=this.stack.pop();J.value+=this.sliceSerialize(K),J.position.end=tm(K.end)}function A(K){const J=this.stack[this.stack.length-1];if(a("atHardBreak")){const be=J.children[J.children.length-1];be.position.end=tm(K.end),o("atHardBreak");return}!a("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(J.type)&&(D.call(this,K),R.call(this,K))}function H(){o("atHardBreak",!0)}function F(){const K=this.resume(),J=this.stack[this.stack.length-1];J.value=K}function z(){const K=this.resume(),J=this.stack[this.stack.length-1];J.value=K}function W(){const K=this.resume(),J=this.stack[this.stack.length-1];J.value=K}function q(){const K=this.stack[this.stack.length-1];if(a("inReference")){const J=a("referenceType")||"shortcut";K.type+="Reference",K.referenceType=J,delete K.url,delete K.title}else delete K.identifier,delete K.label;o("referenceType")}function Z(){const K=this.stack[this.stack.length-1];if(a("inReference")){const J=a("referenceType")||"shortcut";K.type+="Reference",K.referenceType=J,delete K.url,delete K.title}else delete K.identifier,delete K.label;o("referenceType")}function N(K){const J=this.sliceSerialize(K),be=this.stack[this.stack.length-2];be.label=d5e(J),be.identifier=$d(J).toLowerCase()}function B(){const K=this.stack[this.stack.length-1],J=this.resume(),be=this.stack[this.stack.length-1];if(o("inReference",!0),be.type==="link"){const Oe=K.children;be.children=Oe}else be.alt=J}function V(){const K=this.resume(),J=this.stack[this.stack.length-1];J.url=K}function G(){const K=this.resume(),J=this.stack[this.stack.length-1];J.title=K}function ie(){o("inReference")}function ce(){o("referenceType","collapsed")}function fe(K){const J=this.resume(),be=this.stack[this.stack.length-1];be.label=J,be.identifier=$d(this.sliceSerialize(K)).toLowerCase(),o("referenceType","full")}function ee(K){o("characterReferenceType",K.type)}function ne(K){const J=this.sliceSerialize(K),be=a("characterReferenceType");let Oe;be?(Oe=u5e(J,be==="characterReferenceMarkerNumeric"?10:16),o("characterReferenceType")):Oe=Mq(J);const Se=this.stack.pop();Se.value+=Oe,Se.position.end=tm(K.end)}function ue(K){R.call(this,K);const J=this.stack[this.stack.length-1];J.url=this.sliceSerialize(K)}function ye(K){R.call(this,K);const J=this.stack[this.stack.length-1];J.url="mailto:"+this.sliceSerialize(K)}function me(){return{type:"blockquote",children:[]}}function pe(){return{type:"code",lang:null,meta:null,value:""}}function he(){return{type:"inlineCode",value:""}}function _e(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function le(){return{type:"emphasis",children:[]}}function xe(){return{type:"heading",depth:void 0,children:[]}}function we(){return{type:"break"}}function De(){return{type:"html",value:""}}function Fe(){return{type:"image",title:null,url:"",alt:null}}function Ce(){return{type:"link",title:null,url:"",children:[]}}function Te(K){return{type:"list",ordered:K.type==="listOrdered",start:null,spread:K._spread,children:[]}}function ke(K){return{type:"listItem",spread:K._spread,checked:null,children:[]}}function Pe(){return{type:"paragraph",children:[]}}function Ne(){return{type:"strong",children:[]}}function We(){return{type:"text",value:""}}function Q(){return{type:"thematicBreak"}}}function tm(e){return{line:e.line,column:e.column,offset:e.offset}}function h5e(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?h5e(e,r):AZt(e,r)}}function AZt(e,t){let n;for(n in t)if(f5e.call(t,n)){if(n==="canContainEols"){const r=t[n];r&&e[n].push(...r)}else if(n==="transforms"){const r=t[n];r&&e[n].push(...r)}else if(n==="enter"||n==="exit"){const r=t[n];r&&Object.assign(e[n],r)}}}function Ple(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+bw({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+bw({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+bw({start:t.start,end:t.end})+") is still open")}function NZt(e){Object.assign(this,{Parser:n=>{const r=this.data("settings");return $Zt(n,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function DZt(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function LZt(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
||
`}]}function FZt(e,t){const n=t.value?t.value+`
|
||
`:"",r=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,i={};r&&(i.className=["language-"+r]);let o={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function jZt(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function BZt(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function FC(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let a="";if(o===37&&Hs(e.charCodeAt(n+1))&&Hs(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(a=String.fromCharCode(o));else if(o>55295&&o<57344){const s=e.charCodeAt(n+1);o<56320&&s>56319&&s<57344?(a=String.fromCharCode(o,s),i=1):a="<22>"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function p5e(e,t){const n=String(t.identifier).toUpperCase(),r=FC(n.toLowerCase()),i=e.footnoteOrder.indexOf(n);let o;i===-1?(e.footnoteOrder.push(n),e.footnoteCounts[n]=1,o=e.footnoteOrder.length):(e.footnoteCounts[n]++,o=i+1);const a=e.footnoteCounts[n],s={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+r,id:e.clobberPrefix+"fnref-"+r+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,s);const l={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,l),e.applyData(t,l)}function HZt(e,t){const n=e.footnoteById;let r=1;for(;r in n;)r++;const i=String(r);return n[i]={type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:t.children}],position:t.position},p5e(e,{type:"footnoteReference",identifier:i,position:t.position})}function zZt(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function UZt(e,t){if(e.dangerous){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null}function m5e(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return{type:"text",value:"!["+t.alt+r};const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&a.type==="text"?a.value+=r:i.push({type:"text",value:r}),i}function WZt(e,t){const n=e.definition(t.identifier);if(!n)return m5e(e,t);const r={src:FC(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)}function VZt(e,t){const n={src:FC(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function KZt(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function qZt(e,t){const n=e.definition(t.identifier);if(!n)return m5e(e,t);const r={href:FC(n.url||"")};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function GZt(e,t){const n={href:FC(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function YZt(e,t,n){const r=e.all(t),i=n?XZt(n):g5e(t),o={},a=[];if(typeof t.checked=="boolean"){const u=r[0];let d;u&&u.type==="element"&&u.tagName==="p"?d=u:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const u=r[s];(i||s!==0||u.type!=="element"||u.tagName!=="p")&&a.push({type:"text",value:`
|
||
`}),u.type==="element"&&u.tagName==="p"&&!i?a.push(...u.children):a.push(u)}const l=r[r.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&a.push({type:"text",value:`
|
||
`});const c={type:"element",tagName:"li",properties:o,children:a};return e.patch(t,c),e.applyData(t,c)}function XZt(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=g5e(n[r])}return t}function g5e(e){const t=e.spread;return t??e.children.length>1}function QZt(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const a=r[i];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function ZZt(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function JZt(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function eJt(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function tJt(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const a={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],a),i.push(a)}if(n.length>0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=C4(t.children[1]),l=lI(t.children[t.children.length-1]);s.line&&l.line&&(a.position={start:s,end:l}),i.push(a)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function nJt(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,s=a?a.length:t.children.length;let l=-1;const c=[];for(;++l<s;){const d=t.children[l],h={},p=a?a[l]:void 0;p&&(h.align=p);let m={type:"element",tagName:o,properties:h,children:[]};d&&(m.children=e.all(d),e.patch(d,m),m=e.applyData(t,m)),c.push(m)}const u={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,u),e.applyData(t,u)}function rJt(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Mle=9,Ile=32;function iJt(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push($le(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push($le(t.slice(i),i>0,!1)),o.join("")}function $le(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===Mle||o===Ile;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===Mle||o===Ile;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function oJt(e,t){const n={type:"text",value:iJt(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function aJt(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const sJt={blockquote:DZt,break:LZt,code:FZt,delete:jZt,emphasis:BZt,footnoteReference:p5e,footnote:HZt,heading:zZt,html:UZt,imageReference:WZt,image:VZt,inlineCode:KZt,linkReference:qZt,link:GZt,listItem:YZt,list:QZt,paragraph:ZZt,root:JZt,strong:eJt,table:tJt,tableCell:rJt,tableRow:nJt,text:oJt,thematicBreak:aJt,toml:B5,yaml:B5,definition:B5,footnoteDefinition:B5};function B5(){return null}function lJt(e){return!e||!e.position||!e.position.start||!e.position.start.line||!e.position.start.column||!e.position.end||!e.position.end.line||!e.position.end.column}const Rle={}.hasOwnProperty;function cJt(e){const t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return v4(e,"definition",r=>{const i=Ale(r.identifier);i&&!Rle.call(t,i)&&(t[i]=r)}),n;function n(r){const i=Ale(r);return i&&Rle.call(t,i)?t[i]:null}}function Ale(e){return String(e||"").toUpperCase()}const jk={}.hasOwnProperty;function uJt(e,t){const n=t||{},r=n.allowDangerousHtml||!1,i={};return a.dangerous=r,a.clobberPrefix=n.clobberPrefix===void 0||n.clobberPrefix===null?"user-content-":n.clobberPrefix,a.footnoteLabel=n.footnoteLabel||"Footnotes",a.footnoteLabelTagName=n.footnoteLabelTagName||"h2",a.footnoteLabelProperties=n.footnoteLabelProperties||{className:["sr-only"]},a.footnoteBackLabel=n.footnoteBackLabel||"Back to content",a.unknownHandler=n.unknownHandler,a.passThrough=n.passThrough,a.handlers={...sJt,...n.handlers},a.definition=cJt(e),a.footnoteById=i,a.footnoteOrder=[],a.footnoteCounts={},a.patch=dJt,a.applyData=fJt,a.one=s,a.all=l,a.wrap=pJt,a.augment=o,v4(e,"footnoteDefinition",c=>{const u=String(c.identifier).toUpperCase();jk.call(i,u)||(i[u]=c)}),a;function o(c,u){if(c&&"data"in c&&c.data){const d=c.data;d.hName&&(u.type!=="element"&&(u={type:"element",tagName:"",properties:{},children:[]}),u.tagName=d.hName),u.type==="element"&&d.hProperties&&(u.properties={...u.properties,...d.hProperties}),"children"in u&&u.children&&d.hChildren&&(u.children=d.hChildren)}if(c){const d="type"in c?c:{position:c};lJt(d)||(u.position={start:C4(d),end:lI(d)})}return u}function a(c,u,d,h){return Array.isArray(d)&&(h=d,d={}),o(c,{type:"element",tagName:u,properties:d||{},children:h||[]})}function s(c,u){return v5e(a,c,u)}function l(c){return $q(a,c)}}function dJt(e,t){e.position&&(t.position=UGt(e))}function fJt(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;typeof r=="string"&&(n.type==="element"?n.tagName=r:n={type:"element",tagName:r,properties:{},children:[]}),n.type==="element"&&o&&(n.properties={...n.properties,...o}),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function v5e(e,t,n){const r=t&&t.type;if(!r)throw new Error("Expected node, got `"+t+"`");return jk.call(e.handlers,r)?e.handlers[r](e,t,n):e.passThrough&&e.passThrough.includes(r)?"children"in t?{...t,children:$q(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,n):hJt(e,t)}function $q(e,t){const n=[];if("children"in t){const r=t.children;let i=-1;for(;++i<r.length;){const o=v5e(e,r[i],t);if(o){if(i&&r[i-1].type==="break"&&(!Array.isArray(o)&&o.type==="text"&&(o.value=o.value.replace(/^\s+/,"")),!Array.isArray(o)&&o.type==="element")){const a=o.children[0];a&&a.type==="text"&&(a.value=a.value.replace(/^\s+/,""))}Array.isArray(o)?n.push(...o):n.push(o)}}}return n}function hJt(e,t){const n=t.data||{},r="value"in t&&!(jk.call(n,"hProperties")||jk.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:$q(e,t)};return e.patch(t,r),e.applyData(t,r)}function pJt(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
||
`});++r<e.length;)r&&n.push({type:"text",value:`
|
||
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
||
`}),n}function mJt(e){const t=[];let n=-1;for(;++n<e.footnoteOrder.length;){const r=e.footnoteById[e.footnoteOrder[n]];if(!r)continue;const i=e.all(r),o=String(r.identifier).toUpperCase(),a=FC(o.toLowerCase());let s=0;const l=[];for(;++s<=e.footnoteCounts[o];){const d={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};s>1&&d.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(s)}]}),l.length>0&&l.push({type:"text",value:" "}),l.push(d)}const c=i[i.length-1];if(c&&c.type==="element"&&c.tagName==="p"){const d=c.children[c.children.length-1];d&&d.type==="text"?d.value+=" ":c.children.push({type:"text",value:" "}),c.children.push(...l)}else i.push(...l);const u={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+a},children:e.wrap(i,!0)};e.patch(r,u),t.push(u)}if(t.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:`
|
||
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:`
|
||
`}]}}function y5e(e,t){const n=uJt(e,t),r=n.one(e,null),i=mJt(n);return i&&r.children.push({type:"text",value:`
|
||
`},i),Array.isArray(r)?{type:"root",children:r}:r}const gJt=function(e,t){return e&&"run"in e?vJt(e,t):yJt(e||t)};function vJt(e,t){return(n,r,i)=>{e.run(y5e(n,t),r,o=>{i(o)})}}function yJt(e){return t=>y5e(t,e)}function Nle(e){if(e)throw e}/*!
|
||
* Determine if an object is a Buffer
|
||
*
|
||
* @author Feross Aboukhadijeh <https://feross.org>
|
||
* @license MIT
|
||
*/var bJt=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)};const b5e=vi(bJt);var p3=Object.prototype.hasOwnProperty,S5e=Object.prototype.toString,Dle=Object.defineProperty,Lle=Object.getOwnPropertyDescriptor,Fle=function(t){return typeof Array.isArray=="function"?Array.isArray(t):S5e.call(t)==="[object Array]"},jle=function(t){if(!t||S5e.call(t)!=="[object Object]")return!1;var n=p3.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&p3.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||p3.call(t,i)},Ble=function(t,n){Dle&&n.name==="__proto__"?Dle(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Hle=function(t,n){if(n==="__proto__")if(p3.call(t,n)){if(Lle)return Lle(t,n).value}else return;return t[n]},SJt=function e(){var t,n,r,i,o,a,s=arguments[0],l=1,c=arguments.length,u=!1;for(typeof s=="boolean"&&(u=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});l<c;++l)if(t=arguments[l],t!=null)for(n in t)r=Hle(s,n),i=Hle(t,n),s!==i&&(u&&i&&(jle(i)||(o=Fle(i)))?(o?(o=!1,a=r&&Fle(r)?r:[]):a=r&&jle(r)?r:{},Ble(s,{name:n,newValue:e(u,a,i)})):typeof i<"u"&&Ble(s,{name:n,newValue:i}));return s};const zle=vi(SJt);function JB(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function CJt(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);s(null,...i);function s(l,...c){const u=e[++o];let d=-1;if(l){a(l);return}for(;++d<i.length;)(c[d]===null||c[d]===void 0)&&(c[d]=i[d]);i=c,u?xJt(u,s)(...c):a(null,...c)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function xJt(e,t){let n;return r;function r(...a){const s=e.length>a.length;let l;s&&a.push(i);try{l=e.apply(this,a)}catch(c){const u=c;if(s&&n)throw u;return i(u)}s||(l&&l.then&&typeof l.then=="function"?l.then(o,i):l instanceof Error?i(l):o(l))}function i(a,...s){n||(n=!0,t(a,...s))}function o(a){i(null,a)}}class zu extends Error{constructor(t,n,r){const i=[null,null];let o={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof n=="string"&&(r=n,n=void 0),typeof r=="string"){const a=r.indexOf(":");a===-1?i[1]=r:(i[0]=r.slice(0,a),i[1]=r.slice(a+1))}n&&("type"in n||"position"in n?n.position&&(o=n.position):"start"in n||"end"in n?o=n:("line"in n||"column"in n)&&(o.start=n)),this.name=bw(n)||"1:1",this.message=typeof t=="object"?t.message:t,this.stack="",typeof t=="object"&&t.stack&&(this.stack=t.stack),this.reason=this.message,this.fatal,this.line=o.start.line,this.column=o.start.column,this.position=o,this.source=i[0],this.ruleId=i[1],this.file,this.actual,this.expected,this.url,this.note}}zu.prototype.file="";zu.prototype.name="";zu.prototype.reason="";zu.prototype.message="";zu.prototype.stack="";zu.prototype.fatal=null;zu.prototype.column=null;zu.prototype.line=null;zu.prototype.source=null;zu.prototype.ruleId=null;zu.prototype.position=null;const yf={basename:wJt,dirname:_Jt,extname:EJt,join:TJt,sep:"/"};function wJt(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');E4(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.charCodeAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let a=-1,s=t.length-1;for(;i--;)if(e.charCodeAt(i)===47){if(o){n=i+1;break}}else a<0&&(o=!0,a=i+1),s>-1&&(e.charCodeAt(i)===t.charCodeAt(s--)?s<0&&(r=i):(s=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)}function _Jt(e){if(E4(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.charCodeAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.charCodeAt(0)===47?"/":".":t===1&&e.charCodeAt(0)===47?"//":e.slice(0,t)}function EJt(e){E4(e);let t=e.length,n=-1,r=0,i=-1,o=0,a;for(;t--;){const s=e.charCodeAt(t);if(s===47){if(a){r=t+1;break}continue}n<0&&(a=!0,n=t+1),s===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function TJt(...e){let t=-1,n;for(;++t<e.length;)E4(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":kJt(n)}function kJt(e){E4(e);const t=e.charCodeAt(0)===47;let n=OJt(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.charCodeAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function OJt(e,t){let n="",r=0,i=-1,o=0,a=-1,s,l;for(;++a<=e.length;){if(a<e.length)s=e.charCodeAt(a);else{if(s===47)break;s=47}if(s===47){if(!(i===a-1||o===1))if(i!==a-1&&o===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=a,o=0;continue}}else if(n.length>0){n="",r=0,i=a,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,o=0}else s===46&&o>-1?o++:o=-1}return n}function E4(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const PJt={cwd:MJt};function MJt(){return"/"}function eH(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function IJt(e){if(typeof e=="string")e=new URL(e);else if(!eH(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return $Jt(e)}function $Jt(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.charCodeAt(n)===37&&t.charCodeAt(n+1)===50){const r=t.charCodeAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const wN=["history","path","basename","stem","extname","dirname"];class RJt{constructor(t){let n;t?typeof t=="string"||AJt(t)?n={value:t}:eH(t)?n={path:t}:n=t:n={},this.data={},this.messages=[],this.history=[],this.cwd=PJt.cwd(),this.value,this.stored,this.result,this.map;let r=-1;for(;++r<wN.length;){const o=wN[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)wN.includes(i)||(this[i]=n[i])}get path(){return this.history[this.history.length-1]}set path(t){eH(t)&&(t=IJt(t)),EN(t,"path"),this.path!==t&&this.history.push(t)}get dirname(){return typeof this.path=="string"?yf.dirname(this.path):void 0}set dirname(t){Ule(this.basename,"dirname"),this.path=yf.join(t||"",this.basename)}get basename(){return typeof this.path=="string"?yf.basename(this.path):void 0}set basename(t){EN(t,"basename"),_N(t,"basename"),this.path=yf.join(this.dirname||"",t)}get extname(){return typeof this.path=="string"?yf.extname(this.path):void 0}set extname(t){if(_N(t,"extname"),Ule(this.dirname,"extname"),t){if(t.charCodeAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=yf.join(this.dirname,this.stem+(t||""))}get stem(){return typeof this.path=="string"?yf.basename(this.path,this.extname):void 0}set stem(t){EN(t,"stem"),_N(t,"stem"),this.path=yf.join(this.dirname||"",t+(this.extname||""))}toString(t){return(this.value||"").toString(t||void 0)}message(t,n,r){const i=new zu(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=null,i}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}}function _N(e,t){if(e&&e.includes(yf.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+yf.sep+"`")}function EN(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Ule(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function AJt(e){return b5e(e)}const NJt=x5e().freeze(),C5e={}.hasOwnProperty;function x5e(){const e=CJt(),t=[];let n={},r,i=-1;return o.data=a,o.Parser=void 0,o.Compiler=void 0,o.freeze=s,o.attachers=t,o.use=l,o.parse=c,o.stringify=u,o.run=d,o.runSync=h,o.process=p,o.processSync=m,o;function o(){const v=x5e();let y=-1;for(;++y<t.length;)v.use(...t[y]);return v.data(zle(!0,{},n)),v}function a(v,y){return typeof v=="string"?arguments.length===2?(ON("data",r),n[v]=y,o):C5e.call(n,v)&&n[v]||null:v?(ON("data",r),n=v,o):n}function s(){if(r)return o;for(;++i<t.length;){const[v,...y]=t[i];if(y[0]===!1)continue;y[0]===!0&&(y[0]=void 0);const S=v.call(o,...y);typeof S=="function"&&e.use(S)}return r=!0,i=Number.POSITIVE_INFINITY,o}function l(v,...y){let S;if(ON("use",r),v!=null)if(typeof v=="function")T(v,...y);else if(typeof v=="object")Array.isArray(v)?_(v):C(v);else throw new TypeError("Expected usable value, not `"+v+"`");return S&&(n.settings=Object.assign(n.settings||{},S)),o;function b(x){if(typeof x=="function")T(x);else if(typeof x=="object")if(Array.isArray(x)){const[E,...k]=x;T(E,...k)}else C(x);else throw new TypeError("Expected usable value, not `"+x+"`")}function C(x){_(x.plugins),x.settings&&(S=Object.assign(S||{},x.settings))}function _(x){let E=-1;if(x!=null)if(Array.isArray(x))for(;++E<x.length;){const k=x[E];b(k)}else throw new TypeError("Expected a list of plugins, not `"+x+"`")}function T(x,E){let k=-1,M;for(;++k<t.length;)if(t[k][0]===x){M=t[k];break}M?(JB(M[1])&&JB(E)&&(E=zle(!0,M[1],E)),M[1]=E):t.push([...arguments])}}function c(v){o.freeze();const y=a2(v),S=o.Parser;return TN("parse",S),Wle(S,"parse")?new S(String(y),y).parse():S(String(y),y)}function u(v,y){o.freeze();const S=a2(y),b=o.Compiler;return kN("stringify",b),Vle(v),Wle(b,"compile")?new b(v,S).compile():b(v,S)}function d(v,y,S){if(Vle(v),o.freeze(),!S&&typeof y=="function"&&(S=y,y=void 0),!S)return new Promise(b);b(null,S);function b(C,_){e.run(v,a2(y),T);function T(x,E,k){E=E||v,x?_(x):C?C(E):S(null,E,k)}}}function h(v,y){let S,b;return o.run(v,y,C),Kle("runSync","run",b),S;function C(_,T){Nle(_),S=T,b=!0}}function p(v,y){if(o.freeze(),TN("process",o.Parser),kN("process",o.Compiler),!y)return new Promise(S);S(null,y);function S(b,C){const _=a2(v);o.run(o.parse(_),_,(x,E,k)=>{if(x||!E||!k)T(x);else{const M=o.stringify(E,k);M==null||(FJt(M)?k.value=M:k.result=M),T(x,k)}});function T(x,E){x||!E?C(x):b?b(E):y(null,E)}}}function m(v){let y;o.freeze(),TN("processSync",o.Parser),kN("processSync",o.Compiler);const S=a2(v);return o.process(S,b),Kle("processSync","process",y),S;function b(C){y=!0,Nle(C)}}}function Wle(e,t){return typeof e=="function"&&e.prototype&&(DJt(e.prototype)||t in e.prototype)}function DJt(e){let t;for(t in e)if(C5e.call(e,t))return!0;return!1}function TN(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Parser`")}function kN(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Compiler`")}function ON(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Vle(e){if(!JB(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Kle(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function a2(e){return LJt(e)?e:new RJt(e)}function LJt(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function FJt(e){return typeof e=="string"||b5e(e)}var jJt="[object Symbol]";function BJt(e){return typeof e=="symbol"||vC(e)&&VE(e)==jJt}var HJt=/\s/;function zJt(e){for(var t=e.length;t--&&HJt.test(e.charAt(t)););return t}var UJt=/^\s+/;function WJt(e){return e&&e.slice(0,zJt(e)+1).replace(UJt,"")}var qle=NaN,VJt=/^[-+]0x[0-9a-f]+$/i,KJt=/^0b[01]+$/i,qJt=/^0o[0-7]+$/i,GJt=parseInt;function Gle(e){if(typeof e=="number")return e;if(BJt(e))return qle;if(Wd(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Wd(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=WJt(e);var n=KJt.test(e);return n||qJt.test(e)?GJt(e.slice(2),n?2:8):VJt.test(e)?qle:+e}var PN=function(){return t0.Date.now()},YJt="Expected a function",XJt=Math.max,QJt=Math.min;function w5e(e,t,n){var r,i,o,a,s,l,c=0,u=!1,d=!1,h=!0;if(typeof e!="function")throw new TypeError(YJt);t=Gle(t)||0,Wd(n)&&(u=!!n.leading,d="maxWait"in n,o=d?XJt(Gle(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h);function p(x){var E=r,k=i;return r=i=void 0,c=x,a=e.apply(k,E),a}function m(x){return c=x,s=setTimeout(S,t),u?p(x):a}function v(x){var E=x-l,k=x-c,M=t-E;return d?QJt(M,o-k):M}function y(x){var E=x-l,k=x-c;return l===void 0||E>=t||E<0||d&&k>=o}function S(){var x=PN();if(y(x))return b(x);s=setTimeout(S,v(x))}function b(x){return s=void 0,h&&r?p(x):(r=i=void 0,a)}function C(){s!==void 0&&clearTimeout(s),c=0,r=l=i=s=void 0}function _(){return s===void 0?a:b(PN())}function T(){var x=PN(),E=y(x);if(r=arguments,i=this,l=x,E){if(s===void 0)return m(l);if(d)return clearTimeout(s),s=setTimeout(S,t),p(l)}return s===void 0&&(s=setTimeout(S,t)),a}return T.cancel=C,T.flush=_,T}var ZJt="Expected a function";function JJt(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(ZJt);return Wd(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),w5e(e,t,{leading:r,maxWait:t,trailing:i})}function Bc(){}function _5e(e){return e()}function Yle(){return Object.create(null)}function ah(e){e.forEach(_5e)}function E5e(e){return typeof e=="function"}function T5e(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function fI(e,t){return e!=e?t==t:e!==t}function een(e){return Object.keys(e).length===0}function Lr(e,t){e.appendChild(t)}function Pa(e,t,n){e.insertBefore(t,n||null)}function ma(e){e.parentNode&&e.parentNode.removeChild(e)}function H_(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function Wr(e){return document.createElement(e)}function wa(e){return document.createTextNode(e)}function T4(){return wa("")}function Pc(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function kS(e){return function(t){t.target===this&&e.call(this,t)}}function ii(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function ten(e){return Array.from(e.childNodes)}function gs(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function Ta(e,t,n){e.classList[n?"add":"remove"](t)}function nen(e,t,{bubbles:n=!1,cancelable:r=!1}={}){const i=document.createEvent("CustomEvent");return i.initCustomEvent(e,n,r,t),i}let z_;function Sw(e){z_=e}function hI(){if(!z_)throw new Error("Function called outside component initialization");return z_}function Rq(e){hI().$$.on_mount.push(e)}function ren(e){hI().$$.after_update.push(e)}function k5e(e){hI().$$.on_destroy.push(e)}function k4(){const e=hI();return(t,n,{cancelable:r=!1}={})=>{const i=e.$$.callbacks[t];if(i){const o=nen(t,n,{cancelable:r});return i.slice().forEach(a=>{a.call(e,o)}),!o.defaultPrevented}return!0}}const wy=[],iv=[];let yb=[];const Xle=[],O5e=Promise.resolve();let tH=!1;function P5e(){tH||(tH=!0,O5e.then(M5e))}function m3(){return P5e(),O5e}function nH(e){yb.push(e)}const MN=new Set;let py=0;function M5e(){if(py!==0)return;const e=z_;do{try{for(;py<wy.length;){const t=wy[py];py++,Sw(t),ien(t.$$)}}catch(t){throw wy.length=0,py=0,t}for(Sw(null),wy.length=0,py=0;iv.length;)iv.pop()();for(let t=0;t<yb.length;t+=1){const n=yb[t];MN.has(n)||(MN.add(n),n())}yb.length=0}while(wy.length);for(;Xle.length;)Xle.pop()();tH=!1,MN.clear(),Sw(e)}function ien(e){if(e.fragment!==null){e.update(),ah(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(nH)}}function oen(e){const t=[],n=[];yb.forEach(r=>e.indexOf(r)===-1?t.push(r):n.push(r)),n.forEach(r=>r()),yb=t}const g3=new Set;let A1;function aen(){A1={r:0,c:[],p:A1}}function sen(){A1.r||ah(A1.c),A1=A1.p}function Fh(e,t){e&&e.i&&(g3.delete(e),e.i(t))}function u1(e,t,n,r){if(e&&e.o){if(g3.has(e))return;g3.add(e),A1.c.push(()=>{g3.delete(e),r&&(n&&e.d(1),r())}),e.o(t)}else r&&r()}function $2(e){e&&e.c()}function qy(e,t,n,r){const{fragment:i,after_update:o}=e.$$;i&&i.m(t,n),r||nH(()=>{const a=e.$$.on_mount.map(_5e).filter(E5e);e.$$.on_destroy?e.$$.on_destroy.push(...a):ah(a),e.$$.on_mount=[]}),o.forEach(nH)}function Gy(e,t){const n=e.$$;n.fragment!==null&&(oen(n.after_update),ah(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function len(e,t){e.$$.dirty[0]===-1&&(wy.push(e),P5e(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function jC(e,t,n,r,i,o,a,s=[-1]){const l=z_;Sw(e);const c=e.$$={fragment:null,ctx:[],props:o,update:Bc,not_equal:i,bound:Yle(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:Yle(),dirty:s,skip_bound:!1,root:t.target||l.$$.root};a&&a(c.root);let u=!1;if(c.ctx=n?n(e,t.props||{},(d,h,...p)=>{const m=p.length?p[0]:h;return c.ctx&&i(c.ctx[d],c.ctx[d]=m)&&(!c.skip_bound&&c.bound[d]&&c.bound[d](m),u&&len(e,d)),h}):[],c.update(),u=!0,ah(c.before_update),c.fragment=r?r(c.ctx):!1,t.target){if(t.hydrate){const d=ten(t.target);c.fragment&&c.fragment.l(d),d.forEach(ma)}else c.fragment&&c.fragment.c();t.intro&&Fh(e.$$.fragment),qy(e,t.target,t.anchor,t.customElement),M5e()}Sw(l)}class BC{$destroy(){Gy(this,1),this.$destroy=Bc}$on(t,n){if(!E5e(n))return Bc;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}$set(t){this.$$set&&!een(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const cen="Bold",uen="bold text",den="Markdown Cheatsheet",fen="Close help",hen="Close table of contents",pen="Code",men="Code block",gen="lang",ven="code",yen="Exit fullscreen",ben="Exit preview only",Sen="Exit write only",Cen="Fullscreen",xen="Heading 1",wen="Heading 2",_en="Heading 3",Een="Heading 4",Ten="Heading 5",ken="Heading 6",Oen="heading",Pen="Help",Men="Horizontal rule",Ien="Image",$en="alt",Ren="title",Aen="Italic",Nen="italic text",Den="The maximum character limit has been reached",Len="Lines",Fen="Link",jen="link text",Ben="Ordered list",Hen="item",zen="Preview",Uen="Preview only",Wen="Quote",Ven="quoted text",Ken="Shortcuts",qen="Source code",Gen="Scroll sync",Yen="Table of contents",Xen="Scroll to top",Qen="Unordered list",Zen="item",Jen="Words",etn="Write",ttn="Write only",ntn={bold:cen,boldText:uen,cheatsheet:den,closeHelp:fen,closeToc:hen,code:pen,codeBlock:men,codeLang:gen,codeText:ven,exitFullscreen:yen,exitPreviewOnly:ben,exitWriteOnly:Sen,fullscreen:Cen,h1:xen,h2:wen,h3:_en,h4:Een,h5:Ten,h6:ken,headingText:Oen,help:Pen,hr:Men,image:Ien,imageAlt:$en,imageTitle:Ren,italic:Aen,italicText:Nen,limited:Den,lines:Len,link:Fen,linkText:jen,ol:Ben,olItem:Hen,preview:zen,previewOnly:Uen,quote:Wen,quotedText:Ven,shortcuts:Ken,source:qen,sync:Gen,toc:Yen,top:Xen,ul:Qen,ulItem:Zen,words:Jen,write:etn,writeOnly:ttn},ho={Close:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="m8 8 32 32M8 40 40 8"/></svg>',H:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M12 5v38M36 5v38M12 24h24"/></svg>',H1:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M6 8v32M25 8v32M6 24h19M34.226 24 39 19.017V40"/></svg>',H2:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M6 8v32M24 8v32M7 24h16M32 25c0-3.167 2.667-5 5-5s5 1.833 5 5c0 5.7-10 9.933-10 15h10"/></svg>',H3:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M6 8v32M24 8v32M7 24h16M32 20h10l-7 9c4 0 7 2 7 6s-3 5-5 5c-2.381 0-4-1-5-2.1"/></svg>',LevelFourTitle:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M6 8v32M24 8v32M7 24h16M39.977 40V20L31 32.997v2.023h12"/></svg>',LevelFiveTitle:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M6 8v32M24 8v32M7 24h16M40 21.01h-8v7.024C32 28 34 27 37 27s4 2.534 4 6.5-1 6.5-5 6.5c-3 0-4-2-4-3.992"/></svg>',LevelSixTitle:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M6 8v32M24 8v32M7 24h16"/><path stroke="currentColor" stroke-width="4" d="M36.5 40a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11Z"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M41.596 24.74C40.778 22.545 38.804 21 36.5 21c-3.038 0-5.5 2.686-5.5 6v7"/></svg>',TextBold:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M24 24c5.506 0 9.969-4.477 9.969-10S29.506 4 24 4H11v20h13ZM28.031 44C33.537 44 38 39.523 38 34s-4.463-10-9.969-10H11v20h17.031Z" clip-rule="evenodd"/></svg>',TextItalic:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M20 6h16M12 42h16M29 5.952 19 42"/></svg>',Quote:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path fill="currentColor" fill-rule="evenodd" d="M18.853 9.116C11.323 13.952 7.14 19.58 6.303 26.003 5 36 13.94 40.893 18.47 36.497 23 32.1 20.285 26.52 17.005 24.994c-3.28-1.525-5.286-.994-4.936-3.033.35-2.038 5.016-7.69 9.116-10.322a.749.749 0 0 0 .114-1.02L20.285 9.3c-.44-.572-.862-.55-1.432-.185ZM38.679 9.116c-7.53 4.836-11.714 10.465-12.55 16.887-1.303 9.997 7.637 14.89 12.167 10.494 4.53-4.397 1.815-9.977-1.466-11.503-3.28-1.525-5.286-.994-4.936-3.033.35-2.038 5.017-7.69 9.117-10.322a.749.749 0 0 0 .113-1.02L40.11 9.3c-.44-.572-.862-.55-1.431-.185Z" clip-rule="evenodd"/></svg>',LinkOne:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="m26.24 16.373-9.14-9.14c-2.661-2.661-7.035-2.603-9.768.131-2.734 2.734-2.793 7.107-.131 9.768l7.935 7.936M32.903 23.003l7.935 7.935c2.661 2.662 2.603 7.035-.13 9.769-2.735 2.734-7.108 2.792-9.77.13l-9.14-9.14"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M26.11 26.142c2.733-2.734 2.792-7.108.13-9.769M21.799 21.798c-2.734 2.734-2.792 7.108-.131 9.769"/></svg>',Pic:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M5 10a2 2 0 0 1 2-2h34a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V10Z" clip-rule="evenodd"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M14.5 18a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z" clip-rule="evenodd"/><path stroke="currentColor" stroke-linejoin="round" stroke-width="4" d="m15 24 5 4 6-7 17 13v4a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-4l10-10Z"/></svg>',Code:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M16 13 4 25.432 16 37M32 13l12 12.432L32 37"/><path stroke="currentColor" stroke-linecap="round" stroke-width="4" d="m28 4-7 40"/></svg>',CodeBrackets:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M16 4c-2 0-5 1-5 5v9c0 3-5 5-5 5s5 2 5 5v11c0 4 3 5 5 5M32 4c2 0 5 1 5 5v9c0 3 5 5 5 5s-5 2-5 5v11c0 4-3 5-5 5"/></svg>',ListTwo:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linejoin="round" stroke-width="4" d="M9 42a4 4 0 1 0 0-8 4 4 0 0 0 0 8ZM9 14a4 4 0 1 0 0-8 4 4 0 0 0 0 8ZM9 28a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M21 24h22M21 38h22M21 10h22"/></svg>',OrderedList:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M9 4v9M12 13H6M12 27H6M6 20s3-3 5 0-5 7-5 7M6 34.5s2-3 5-1 0 4.5 0 4.5 3 2.5 0 4.5-5-1-5-1M11 38H9M9 4 6 6M21 24h22M21 38h22M21 10h22"/></svg>',DividingLine:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M5 24h38M21 38h6M37 38h6M21 10h6M5 38h6M5 10h6M37 10h6"/></svg>',AlignTextLeftOne:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linejoin="round" stroke-width="4" d="M39 6H9a3 3 0 0 0-3 3v30a3 3 0 0 0 3 3h30a3 3 0 0 0 3-3V9a3 3 0 0 0-3-3Z"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M26 24H14M34 15H14M32 33H14"/></svg>',Helpcenter:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linejoin="round" stroke-width="4" d="M39 6H9a3 3 0 0 0-3 3v30a3 3 0 0 0 3 3h30a3 3 0 0 0 3-3V9a3 3 0 0 0-3-3Z"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M24 28.625v-4a6 6 0 1 0-6-6"/><path fill="currentColor" fill-rule="evenodd" d="M24 37.625a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z" clip-rule="evenodd"/></svg>',LeftExpand:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><rect width="28" height="36" x="6" y="6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" rx="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M42 6v36"/></svg>',RightExpand:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><rect width="28" height="36" x="14" y="6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" rx="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M6 6v36"/></svg>',OffScreen:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M33 6v9h9M15 6v9H6M15 42v-9H6M33 42v-9h8.9"/></svg>',FullScreen:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M33 6h9v9M42 33v9h-9M15 42H6v-9M6 15V6h9"/></svg>',GithubOne:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-width="4" d="M29.344 30.477c2.404-.5 4.585-1.366 6.28-2.638C38.52 25.668 40 22.314 40 19c0-2.324-.881-4.494-2.407-6.332-.85-1.024 1.636-8.667-.573-7.638-2.21 1.03-5.45 3.308-7.147 2.805A20.712 20.712 0 0 0 24 7c-1.8 0-3.532.223-5.147.634C16.505 8.232 14.259 6 12 5.03c-2.26-.97-1.026 6.934-1.697 7.765C8.84 14.605 8 16.73 8 19c0 3.314 1.79 6.668 4.686 8.84 1.93 1.446 4.348 2.368 7.054 2.822M19.74 30.662c-1.159 1.275-1.738 2.486-1.738 3.632v8.717M29.345 30.477c1.097 1.44 1.646 2.734 1.646 3.88v8.654M6 31.215c.899.11 1.566.524 2 1.24.652 1.075 3.074 5.063 5.825 5.063h4.177"/></svg>'};function rtn(){const e=HUt();return zUt(e),WUt(e),qUt(e),KUt(e),VUt(e),YUt(e),GUt(e),UUt(e),e}function itn(e,t){return{wrapText(n,r=n){const i=t.somethingSelected()?t.listSelections()[0]:t.findWordAt(t.getCursor()),o=i.from(),a=i.to(),s=t.getRange(o,a),l=e.Pos(o.line,o.ch-n.length),c=e.Pos(a.line,a.ch+r.length);if(t.getRange(l,o)===n&&t.getRange(a,c)===r)t.replaceRange(s,l,c),t.setSelection(l,e.Pos(l.line,l.ch+s.length));else{t.replaceRange(n+s+r,o,a);const u=t.getCursor();t.setSelection(e.Pos(u.line,u.ch-r.length-s.length),e.Pos(u.line,u.ch-r.length))}},replaceLines(n){const[r]=t.listSelections(),i=[e.Pos(r.from().line,0),e.Pos(r.to().line)],o=t.getRange(...i).split(`
|
||
`);t.replaceRange(o.map(n).join(`
|
||
`),...i),t.setSelection(...i)},appendBlock(n){const r=t.getCursor();let i=-1;for(let o=r.line;o<t.lineCount();o++)if(!t.getLine(o).trim()){i=o;break}return i===-1&&(t.replaceRange(`
|
||
`,e.Pos(t.lineCount())),i=t.lineCount()),t.replaceRange(`
|
||
`+n,e.Pos(i)),e.Pos(i+1,0)},selectFiles:D4e}}function IN(e,t){let n=t.length-2;for(let r=0;r<t.length;r++)if(e<t[r]){n=r-1;break}return n=Math.max(n,0),n}const nm=(e,t=!1)=>{const n=t?"Shift-":"",r=typeof navigator<"u"&&/Mac/.test(navigator.platform)?"Cmd-":"Ctrl-";return n+r+e};async function I5e({editor:e,appendBlock:t,codemirror:n},r,i){const o=await r(i),a=t(o.map(({url:s,alt:l,title:c},u)=>(l=l??i[u].name,``)).join(`
|
||
|
||
`));e.setSelection(a,n.Pos(a.line+o.length*2-2)),e.focus()}function otn(e,t,n){const r=[{icon:ho.H,handler:{type:"dropdown",actions:[1,2,3,4,5,6].map(o=>({title:e[`h${o}`],icon:[ho.H1,ho.H2,ho.H3,ho.LevelFourTitle,ho.LevelFiveTitle,ho.LevelSixTitle][o-1],cheatsheet:o<=3?`${"#".repeat(o)} ${e.headingText}`:void 0,handler:{type:"action",click({replaceLines:a,editor:s}){a(l=>(l=l.trim().replace(/^#*/,"").trim(),l="#".repeat(o)+" "+l,l)),s.focus()}}}))}},{title:e.bold,icon:ho.TextBold,cheatsheet:`**${e.boldText}**`,handler:{type:"action",shortcut:nm("B"),click({wrapText:o,editor:a}){o("**"),a.focus()}}},{title:e.italic,icon:ho.TextItalic,cheatsheet:`*${e.italicText}*`,handler:{type:"action",shortcut:nm("I"),click({wrapText:o,editor:a}){o("*"),a.focus()}}},{title:e.quote,icon:ho.Quote,cheatsheet:`> ${e.quotedText}`,handler:{type:"action",click({replaceLines:o,editor:a}){o(s=>"> "+s),a.focus()}}},{title:e.link,icon:ho.LinkOne,cheatsheet:`[${e.linkText}](url)`,handler:{type:"action",shortcut:nm("K"),click({editor:o,wrapText:a,codemirror:s}){a("[","](url)");const l=o.getCursor();o.setSelection(s.Pos(l.line,l.ch+2),s.Pos(l.line,l.ch+5)),o.focus()}}},{title:e.image,icon:ho.Pic,cheatsheet:``,handler:n?{type:"action",shortcut:nm("I",!0),async click(o){const a=await D4e({accept:"image/*",multiple:!0});a!=null&&a.length&&await I5e(o,n,Array.from(a))}}:void 0},{title:e.code,icon:ho.Code,cheatsheet:"`"+e.codeText+"`",handler:{type:"action",shortcut:nm("K",!0),click({wrapText:o,editor:a}){o("`"),a.focus()}}},{title:e.codeBlock,icon:ho.CodeBrackets,cheatsheet:"```"+e.codeLang+"↵",handler:{type:"action",shortcut:nm("C",!0),click({editor:o,appendBlock:a,codemirror:s}){const l=a("```js\n```");o.setSelection(s.Pos(l.line,3),s.Pos(l.line,5)),o.focus()}}},{title:e.ul,icon:ho.ListTwo,cheatsheet:`- ${e.ulItem}`,handler:{type:"action",shortcut:nm("U",!0),click({replaceLines:o,editor:a}){o(s=>"- "+s),a.focus()}}},{title:e.ol,icon:ho.OrderedList,cheatsheet:`1. ${e.olItem}`,handler:{type:"action",shortcut:nm("O",!0),click({replaceLines:o,editor:a}){o((s,l)=>`${l+1}. ${s}`),a.focus()}}},{title:e.hr,icon:ho.DividingLine,cheatsheet:"---"}],i=[];return t.forEach(({actions:o})=>{o&&o.forEach(a=>{!a.position||a.position!=="right"?r.push(a):i.unshift(a)})}),{leftActions:r,rightActions:i}}function Qle(e,t,n){const r=e.slice();return r[5]=t[n],r}function Zle(e,t,n){const r=e.slice();return r[5]=t[n],r}function Jle(e){let t,n,r=e[5].icon+"",i,o=e[5].title+"",a,s,l,c=e[5].cheatsheet+"",u;return{c(){t=Wr("li"),n=Wr("div"),i=Wr("div"),a=wa(o),s=Wr("div"),l=Wr("code"),u=wa(c),ii(n,"class","bytemd-help-icon"),ii(i,"class","bytemd-help-title"),ii(s,"class","bytemd-help-content")},m(d,h){Pa(d,t,h),Lr(t,n),n.innerHTML=r,Lr(t,i),Lr(i,a),Lr(t,s),Lr(s,l),Lr(l,u)},p(d,h){h&4&&r!==(r=d[5].icon+"")&&(n.innerHTML=r),h&4&&o!==(o=d[5].title+"")&&gs(a,o),h&4&&c!==(c=d[5].cheatsheet+"")&&gs(u,c)},d(d){d&&ma(t)}}}function ece(e){let t,n=e[5].cheatsheet&&Jle(e);return{c(){n&&n.c(),t=T4()},m(r,i){n&&n.m(r,i),Pa(r,t,i)},p(r,i){r[5].cheatsheet?n?n.p(r,i):(n=Jle(r),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(r){n&&n.d(r),r&&ma(t)}}}function tce(e){let t,n,r=e[5].icon+"",i,o=e[5].title+"",a,s,l,c=e[5].handler.shortcut+"",u;return{c(){t=Wr("li"),n=Wr("div"),i=Wr("div"),a=wa(o),s=Wr("div"),l=Wr("kbd"),u=wa(c),ii(n,"class","bytemd-help-icon"),ii(i,"class","bytemd-help-title"),ii(s,"class","bytemd-help-content")},m(d,h){Pa(d,t,h),Lr(t,n),n.innerHTML=r,Lr(t,i),Lr(i,a),Lr(t,s),Lr(s,l),Lr(l,u)},p(d,h){h&4&&r!==(r=d[5].icon+"")&&(n.innerHTML=r),h&4&&o!==(o=d[5].title+"")&&gs(a,o),h&4&&c!==(c=d[5].handler.shortcut+"")&&gs(u,c)},d(d){d&&ma(t)}}}function nce(e){let t,n=e[5].handler&&e[5].handler.type==="action"&&e[5].handler.shortcut&&tce(e);return{c(){n&&n.c(),t=T4()},m(r,i){n&&n.m(r,i),Pa(r,t,i)},p(r,i){r[5].handler&&r[5].handler.type==="action"&&r[5].handler.shortcut?n?n.p(r,i):(n=tce(r),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(r){n&&n.d(r),r&&ma(t)}}}function atn(e){let t,n,r=e[0].cheatsheet+"",i,o,a,s=e[0].shortcuts+"",l,c,u=e[2],d=[];for(let m=0;m<u.length;m+=1)d[m]=ece(Zle(e,u,m));let h=e[2],p=[];for(let m=0;m<h.length;m+=1)p[m]=nce(Qle(e,h,m));return{c(){t=Wr("div"),n=Wr("h2"),i=wa(r),o=Wr("ul");for(let m=0;m<d.length;m+=1)d[m].c();a=Wr("h2"),l=wa(s),c=Wr("ul");for(let m=0;m<p.length;m+=1)p[m].c();ii(t,"class","bytemd-help"),Ta(t,"bytemd-hidden",!e[1])},m(m,v){Pa(m,t,v),Lr(t,n),Lr(n,i),Lr(t,o);for(let y=0;y<d.length;y+=1)d[y]&&d[y].m(o,null);Lr(t,a),Lr(a,l),Lr(t,c);for(let y=0;y<p.length;y+=1)p[y]&&p[y].m(c,null)},p(m,[v]){if(v&1&&r!==(r=m[0].cheatsheet+"")&&gs(i,r),v&4){u=m[2];let y;for(y=0;y<u.length;y+=1){const S=Zle(m,u,y);d[y]?d[y].p(S,v):(d[y]=ece(S),d[y].c(),d[y].m(o,null))}for(;y<d.length;y+=1)d[y].d(1);d.length=u.length}if(v&1&&s!==(s=m[0].shortcuts+"")&&gs(l,s),v&4){h=m[2];let y;for(y=0;y<h.length;y+=1){const S=Qle(m,h,y);p[y]?p[y].p(S,v):(p[y]=nce(S),p[y].c(),p[y].m(c,null))}for(;y<p.length;y+=1)p[y].d(1);p.length=h.length}v&2&&Ta(t,"bytemd-hidden",!m[1])},i:Bc,o:Bc,d(m){m&&ma(t),H_(d,m),H_(p,m)}}}function stn(e,t,n){let r,{actions:i}=t,{locale:o}=t,{visible:a}=t;function s(l){let c=[];return l.forEach(u=>{const{handler:d,cheatsheet:h}=u;(d==null?void 0:d.type)==="dropdown"&&c.push(...s(d.actions)),h&&c.push(u)}),c}return e.$$set=l=>{"actions"in l&&n(3,i=l.actions),"locale"in l&&n(0,o=l.locale),"visible"in l&&n(1,a=l.visible)},e.$$.update=()=>{e.$$.dirty&8&&n(2,r=s(i))},[o,a,r,i]}class ltn extends BC{constructor(t){super(),jC(this,t,stn,atn,T5e,{actions:3,locale:0,visible:1})}}function rce(e){let t,n=e[2].limited+"",r;return{c(){t=Wr("span"),r=wa(n),ii(t,"class","bytemd-status-error")},m(i,o){Pa(i,t,o),Lr(t,r)},p(i,o){o&4&&n!==(n=i[2].limited+"")&&gs(r,n)},d(i){i&&ma(t)}}}function ice(e){let t,n,r=e[2].sync+"",i,o,a;return{c(){t=Wr("label"),n=Wr("input"),i=wa(r),ii(n,"type","checkbox"),n.checked=e[1]},m(s,l){Pa(s,t,l),Lr(t,n),Lr(t,i),o||(a=Pc(n,"change",e[8]),o=!0)},p(s,l){l&2&&(n.checked=s[1]),l&4&&r!==(r=s[2].sync+"")&&gs(i,r)},d(s){s&&ma(t),o=!1,a()}}}function ctn(e){let t,n,r,i=e[2].words+"",o,a,s,l,c,u=e[2].lines+"",d,h,p,m,v,y,S=e[2].top+"",b,C,_,T=e[3]&&rce(e),x=e[0]&&ice(e);return{c(){t=Wr("div"),n=Wr("div"),r=Wr("span"),o=wa(i),a=wa(": "),s=Wr("strong"),l=wa(e[5]),c=Wr("span"),d=wa(u),h=wa(": "),p=Wr("strong"),m=wa(e[4]),T&&T.c(),v=Wr("div"),x&&x.c(),y=Wr("span"),b=wa(S),ii(n,"class","bytemd-status-left"),ii(v,"class","bytemd-status-right"),ii(t,"class","bytemd-status")},m(E,k){Pa(E,t,k),Lr(t,n),Lr(n,r),Lr(r,o),Lr(r,a),Lr(r,s),Lr(s,l),Lr(n,c),Lr(c,d),Lr(c,h),Lr(c,p),Lr(p,m),T&&T.m(n,null),Lr(t,v),x&&x.m(v,null),Lr(v,y),Lr(y,b),C||(_=[Pc(y,"click",e[9]),Pc(y,"keydown",kS(e[10]))],C=!0)},p(E,[k]){k&4&&i!==(i=E[2].words+"")&&gs(o,i),k&32&&gs(l,E[5]),k&4&&u!==(u=E[2].lines+"")&&gs(d,u),k&16&&gs(m,E[4]),E[3]?T?T.p(E,k):(T=rce(E),T.c(),T.m(n,null)):T&&(T.d(1),T=null),E[0]?x?x.p(E,k):(x=ice(E),x.c(),x.m(v,y)):x&&(x.d(1),x=null),k&4&&S!==(S=E[2].top+"")&&gs(b,S)},i:Bc,o:Bc,d(E){E&&ma(t),T&&T.d(),x&&x.d(),C=!1,ah(_)}}}function utn(e,t,n){let r,i,{showSync:o}=t,{value:a}=t,{syncEnabled:s}=t,{locale:l}=t,{islimited:c}=t;const u=k4(),d=()=>u("sync",!s),h=()=>u("top"),p=m=>["Enter","Space"].includes(m.code)&&u("top");return e.$$set=m=>{"showSync"in m&&n(0,o=m.showSync),"value"in m&&n(7,a=m.value),"syncEnabled"in m&&n(1,s=m.syncEnabled),"locale"in m&&n(2,l=m.locale),"islimited"in m&&n(3,c=m.islimited)},e.$$.update=()=>{e.$$.dirty&128&&n(5,r=JUt(a)),e.$$.dirty&128&&n(4,i=a.split(`
|
||
`).length)},[o,s,l,c,i,r,u,a,d,h,p]}class dtn extends BC{constructor(t){super(),jC(this,t,utn,ctn,T5e,{showSync:0,value:7,syncEnabled:1,locale:2,islimited:3})}}function oce(e,t,n){const r=e.slice();return r[11]=t[n],r[13]=n,r}function ace(e){let t,n=e[11].text+"",r,i,o,a,s;function l(){return e[8](e[13])}function c(...u){return e[9](e[13],...u)}return{c(){t=Wr("li"),r=wa(n),ii(t,"class",i=`bytemd-toc-${e[11].level}`),ii(t,"style",o=`padding-left:${(e[11].level-e[3])*16+8}px`),Ta(t,"bytemd-toc-active",e[4]===e[13]),Ta(t,"bytemd-toc-first",e[11].level===e[3])},m(u,d){Pa(u,t,d),Lr(t,r),a||(s=[Pc(t,"click",l),Pc(t,"keydown",kS(c))],a=!0)},p(u,d){e=u,d&4&&n!==(n=e[11].text+"")&&gs(r,n),d&4&&i!==(i=`bytemd-toc-${e[11].level}`)&&ii(t,"class",i),d&12&&o!==(o=`padding-left:${(e[11].level-e[3])*16+8}px`)&&ii(t,"style",o),d&20&&Ta(t,"bytemd-toc-active",e[4]===e[13]),d&12&&Ta(t,"bytemd-toc-first",e[11].level===e[3])},d(u){u&&ma(t),a=!1,ah(s)}}}function ftn(e){let t,n,r=e[0].toc+"",i,o,a=e[2],s=[];for(let l=0;l<a.length;l+=1)s[l]=ace(oce(e,a,l));return{c(){t=Wr("div"),n=Wr("h2"),i=wa(r),o=Wr("ul");for(let l=0;l<s.length;l+=1)s[l].c();ii(t,"class","bytemd-toc"),Ta(t,"bytemd-hidden",!e[1])},m(l,c){Pa(l,t,c),Lr(t,n),Lr(n,i),Lr(t,o);for(let u=0;u<s.length;u+=1)s[u]&&s[u].m(o,null)},p(l,[c]){if(c&1&&r!==(r=l[0].toc+"")&&gs(i,r),c&60){a=l[2];let u;for(u=0;u<a.length;u+=1){const d=oce(l,a,u);s[u]?s[u].p(d,c):(s[u]=ace(d),s[u].c(),s[u].m(o,null))}for(;u<s.length;u+=1)s[u].d(1);s.length=a.length}c&2&&Ta(t,"bytemd-hidden",!l[1])},i:Bc,o:Bc,d(l){l&&ma(t),H_(s,l)}}}function htn(e,t,n){let{hast:r}=t,{currentBlockIndex:i}=t,{locale:o}=t,{visible:a}=t;const s=k4();let l,c=6,u=0;function d(m){let v="";return v4(m,y=>{y.type==="text"&&(v+=y.value)}),v}const h=m=>{s("click",m)},p=(m,v)=>{["Enter","Space"].includes(v.code)&&s("click",m)};return e.$$set=m=>{"hast"in m&&n(6,r=m.hast),"currentBlockIndex"in m&&n(7,i=m.currentBlockIndex),"locale"in m&&n(0,o=m.locale),"visible"in m&&n(1,a=m.visible)},e.$$.update=()=>{e.$$.dirty&204&&(n(2,l=[]),n(4,u=0),r.children.filter(m=>m.type==="element").forEach((m,v)=>{if(m.tagName[0]==="h"&&m.children.length){const y=Number(m.tagName[1]);n(3,c=Math.min(c,y)),l.push({level:y,text:d(m)})}i>=v&&n(4,u=l.length-1)}))},[o,a,l,c,u,s,r,i,h,p]}class ptn extends BC{constructor(t){super(),jC(this,t,htn,ftn,fI,{hast:6,currentBlockIndex:7,locale:0,visible:1})}}function sce(e,t,n){const r=e.slice();return r[25]=t[n],r[27]=n,r}function lce(e,t,n){const r=e.slice();return r[25]=t[n],r[27]=n,r}function mtn(e){let t,n=e[2].write+"",r,i,o=e[2].preview+"",a,s,l;return{c(){t=Wr("div"),r=wa(n),i=Wr("div"),a=wa(o),ii(t,"class","bytemd-toolbar-tab"),Ta(t,"bytemd-toolbar-tab-active",e[1]!=="preview"),ii(i,"class","bytemd-toolbar-tab"),Ta(i,"bytemd-toolbar-tab-active",e[1]==="preview")},m(c,u){Pa(c,t,u),Lr(t,r),Pa(c,i,u),Lr(i,a),s||(l=[Pc(t,"click",e[16]),Pc(t,"keydown",kS(e[17])),Pc(i,"click",e[18]),Pc(i,"keydown",kS(e[19]))],s=!0)},p(c,u){u&4&&n!==(n=c[2].write+"")&&gs(r,n),u&2&&Ta(t,"bytemd-toolbar-tab-active",c[1]!=="preview"),u&4&&o!==(o=c[2].preview+"")&&gs(a,o),u&2&&Ta(i,"bytemd-toolbar-tab-active",c[1]==="preview")},d(c){c&&ma(t),c&&ma(i),s=!1,ah(l)}}}function gtn(e){let t,n=e[3],r=[];for(let i=0;i<n.length;i+=1)r[i]=uce(lce(e,n,i));return{c(){for(let i=0;i<r.length;i+=1)r[i].c();t=T4()},m(i,o){for(let a=0;a<r.length;a+=1)r[a]&&r[a].m(i,o);Pa(i,t,o)},p(i,o){if(o&8){n=i[3];let a;for(a=0;a<n.length;a+=1){const s=lce(i,n,a);r[a]?r[a].p(s,o):(r[a]=uce(s),r[a].c(),r[a].m(t.parentNode,t))}for(;a<r.length;a+=1)r[a].d(1);r.length=n.length}},d(i){H_(r,i),i&&ma(t)}}}function cce(e){let t,n=e[25].icon+"";return{c(){t=Wr("div"),ii(t,"class",["bytemd-toolbar-icon",Bk].join(" ")),ii(t,"bytemd-tippy-path",e[27])},m(r,i){Pa(r,t,i),t.innerHTML=n},p(r,i){i&8&&n!==(n=r[25].icon+"")&&(t.innerHTML=n)},d(r){r&&ma(t)}}}function uce(e){let t,n=e[25].handler&&cce(e);return{c(){n&&n.c(),t=T4()},m(r,i){n&&n.m(r,i),Pa(r,t,i)},p(r,i){r[25].handler?n?n.p(r,i):(n=cce(r),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(r){n&&n.d(r),r&&ma(t)}}}function dce(e){let t,n=e[25].icon+"";return{c(){t=Wr("div"),ii(t,"class",["bytemd-toolbar-icon",Bk,v3].join(" ")),ii(t,"bytemd-tippy-path",e[27]),Ta(t,"bytemd-toolbar-icon-active",e[25].active)},m(r,i){Pa(r,t,i),t.innerHTML=n},p(r,i){i&32&&n!==(n=r[25].icon+"")&&(t.innerHTML=n),i&32&&Ta(t,"bytemd-toolbar-icon-active",r[25].active)},d(r){r&&ma(t)}}}function fce(e){let t,n=!e[25].hidden&&dce(e);return{c(){n&&n.c(),t=T4()},m(r,i){n&&n.m(r,i),Pa(r,t,i)},p(r,i){r[25].hidden?n&&(n.d(1),n=null):n?n.p(r,i):(n=dce(r),n.c(),n.m(t.parentNode,t))},d(r){n&&n.d(r),r&&ma(t)}}}function vtn(e){let t,n,r,i,o;function a(d,h){return d[0]?gtn:mtn}let s=a(e),l=s(e),c=e[5],u=[];for(let d=0;d<c.length;d+=1)u[d]=fce(sce(e,c,d));return{c(){t=Wr("div"),n=Wr("div"),l.c(),r=Wr("div");for(let d=0;d<u.length;d+=1)u[d].c();ii(n,"class","bytemd-toolbar-left"),ii(r,"class","bytemd-toolbar-right"),ii(t,"class","bytemd-toolbar")},m(d,h){Pa(d,t,h),Lr(t,n),l.m(n,null),Lr(t,r);for(let p=0;p<u.length;p+=1)u[p]&&u[p].m(r,null);e[20](t),i||(o=[Pc(t,"click",e[7]),Pc(t,"keydown",kS(e[21]))],i=!0)},p(d,[h]){if(s===(s=a(d))&&l?l.p(d,h):(l.d(1),l=s(d),l&&(l.c(),l.m(n,null))),h&32){c=d[5];let p;for(p=0;p<c.length;p+=1){const m=sce(d,c,p);u[p]?u[p].p(m,h):(u[p]=fce(m),u[p].c(),u[p].m(r,null))}for(;p<u.length;p+=1)u[p].d(1);u.length=c.length}},i:Bc,o:Bc,d(d){d&&ma(t),l.d(),H_(u,d),e[20](null),i=!1,ah(o)}}}const Bk="bytemd-tippy",v3="bytemd-tippy-right",$N="bytemd-tippy-path";function ytn(e,t,n){let r,i,o,a,s;const l=k4();let c,{context:u}=t,{split:d}=t,{activeTab:h}=t,{fullscreen:p}=t,{sidebar:m}=t,{locale:v}=t,{actions:y}=t,{rightAfferentActions:S}=t;function b(R){var A,H;const F=(H=(A=R.getAttribute($N))==null?void 0:A.split("-"))==null?void 0:H.map(W=>parseInt(W,10));if(!F)return;let z={title:"",handler:{type:"dropdown",actions:R.classList.contains(v3)?s:y}};return F==null||F.forEach(W=>{var q;((q=z.handler)==null?void 0:q.type)==="dropdown"&&(z=z.handler.actions[W])}),{paths:F,item:z}}let C;function _(){C=FVt(c,{target:`.${Bk}`,onCreate({setProps:R,reference:A}){const H=b(A);if(!H)return;const{item:F,paths:z}=H,{handler:W}=F;if(W){if(W.type==="action")R({content:F.title,onHidden(q){q.destroy()}});else if(W.type==="dropdown"){const q=document.createElement("div");if(q.classList.add("bytemd-dropdown"),F.title){const Z=document.createElement("div");Z.classList.add("bytemd-dropdown-title"),Z.appendChild(document.createTextNode(F.title)),q.appendChild(Z)}W.actions.forEach((Z,N)=>{var B;const V=document.createElement("div");V.classList.add("bytemd-dropdown-item"),V.setAttribute($N,[...z,N].join("-")),((B=Z.handler)==null?void 0:B.type)==="dropdown"&&V.classList.add(Bk),A.classList.contains(v3)&&V.classList.add(v3),V.innerHTML=`${Z.icon?`<div class="bytemd-dropdown-item-icon">${Z.icon}</div>`:""}<div class="bytemd-dropdown-item-title">${Z.title}</div>`,q.appendChild(V)}),R({allowHTML:!0,showOnCreate:!0,theme:"light-border",placement:"bottom-start",interactive:!0,interactiveDebounce:50,arrow:!1,offset:[0,4],content:q.outerHTML,onHidden(Z){Z.destroy()},onCreate(Z){[...Z.popper.querySelectorAll(".bytemd-dropdown-item")].forEach((N,B)=>{var V;const G=(V=W.actions[B])==null?void 0:V.handler;if((G==null?void 0:G.type)==="action"){const{mouseenter:ie,mouseleave:ce}=G;ie&&N.addEventListener("mouseenter",()=>{ie(u)}),ce&&N.addEventListener("mouseleave",()=>{ce(u)})}})}})}}}})}Rq(()=>{_()});function T(R){var A,H;const F=R.target.closest(`[${$N}]`);if(!F)return;const z=(H=(A=b(F))==null?void 0:A.item)==null?void 0:H.handler;(z==null?void 0:z.type)==="action"&&z.click(u),C==null||C.destroy(),_()}const x=()=>l("tab","write"),E=R=>["Enter","Space"].includes(R.code)&&l("tab","write"),k=()=>l("tab","preview"),M=R=>["Enter","Space"].includes(R.code)&&l("tab","preview");function P(R){iv[R?"unshift":"push"](()=>{c=R,n(4,c)})}const D=R=>["Enter","Space"].includes(R.code)&&T(R);return e.$$set=R=>{"context"in R&&n(8,u=R.context),"split"in R&&n(0,d=R.split),"activeTab"in R&&n(1,h=R.activeTab),"fullscreen"in R&&n(9,p=R.fullscreen),"sidebar"in R&&n(10,m=R.sidebar),"locale"in R&&n(2,v=R.locale),"actions"in R&&n(3,y=R.actions),"rightAfferentActions"in R&&n(11,S=R.rightAfferentActions)},e.$$.update=()=>{e.$$.dirty&1024&&n(15,r=m==="toc"),e.$$.dirty&1024&&n(14,i=m==="help"),e.$$.dirty&2&&n(13,o=h==="write"),e.$$.dirty&2&&n(12,a=h==="preview"),e.$$.dirty&64005&&n(5,s=[{title:r?v.closeToc:v.toc,icon:ho.AlignTextLeftOne,handler:{type:"action",click(){l("click","toc")}},active:r},{title:i?v.closeHelp:v.help,icon:ho.Helpcenter,handler:{type:"action",click(){l("click","help")}},active:i},{title:o?v.exitWriteOnly:v.writeOnly,icon:ho.LeftExpand,handler:{type:"action",click(){l("tab","write")}},active:o,hidden:!d},{title:a?v.exitPreviewOnly:v.previewOnly,icon:ho.RightExpand,handler:{type:"action",click(){l("tab","preview")}},active:a,hidden:!d},{title:p?v.exitFullscreen:v.fullscreen,icon:p?ho.OffScreen:ho.FullScreen,handler:{type:"action",click(){l("click","fullscreen")}}},{title:v.source,icon:ho.GithubOne,handler:{type:"action",click(){window.open("https://github.com/bytedance/bytemd")}}},...S])},[d,h,v,y,c,s,l,T,u,p,m,S,a,o,i,r,x,E,k,M,P,D]}class btn extends BC{constructor(t){super(),jC(this,t,ytn,vtn,fI,{context:8,split:0,activeTab:1,fullscreen:9,sidebar:10,locale:2,actions:3,rightAfferentActions:11})}}const Stn=JSON.stringify(fq);function $5e({sanitize:e,plugins:t,remarkRehype:n={}}){let r=NJt().use(NZt);t==null||t.forEach(({remark:o})=>{o&&(r=o(r))}),r=r.use(gJt,{allowDangerousHtml:!0,...n}).use(DYt);let i=JSON.parse(Stn);return i.attributes["*"].push("className"),typeof e=="function"&&(i=e(i)),r=r.use(LYt,i),t==null||t.forEach(({rehype:o})=>{o&&(r=o(r))}),r.use(RXt)}function Ctn(e){let t;return{c(){t=Wr("div"),ii(t,"class","markdown-body")},m(n,r){Pa(n,t,r),t.innerHTML=e[1],e[8](t)},p(n,[r]){r&2&&(t.innerHTML=n[1])},i:Bc,o:Bc,d(n){n&&ma(t),e[8](null)}}}function xtn(e,t,n){let r;const i=k4();let{value:o=""}=t,{plugins:a=[]}=t,{sanitize:s=void 0}=t,{remarkRehype:l=void 0}=t,c,u=[];function d(){u=a.map(S=>{var b;return(b=S.viewerEffect)==null?void 0:b.call(S,{markdownBody:c,file:p})})}function h(){u.forEach(S=>S==null?void 0:S())}Rq(()=>{c.addEventListener("click",S=>{var b;const C=S.target;if(C.tagName!=="A")return;const _=C.getAttribute("href");_!=null&&_.startsWith("#")&&((b=c.querySelector("#user-content-"+_.slice(1)))==null||b.scrollIntoView())})}),k5e(h);let p,m=0;const v=()=>(S,b)=>{m3().then(()=>{i("hast",{hast:S,file:b})})};ren(()=>{h(),d()});function y(S){iv[S?"unshift":"push"](()=>{c=S,n(0,c)})}return e.$$set=S=>{"value"in S&&n(2,o=S.value),"plugins"in S&&n(3,a=S.plugins),"sanitize"in S&&n(4,s=S.sanitize),"remarkRehype"in S&&n(5,l=S.remarkRehype)},e.$$.update=()=>{if(e.$$.dirty&188)try{n(6,p=$5e({sanitize:s,plugins:[...a,{rehype:S=>S.use(v)}],remarkRehype:l}).processSync(o)),n(7,m++,m)}catch(S){console.error(S)}e.$$.dirty&192&&n(1,r=`${p}<!--${m}-->`)},[c,r,o,a,s,l,p,m,y]}let wtn=class extends BC{constructor(t){super(),jC(this,t,xtn,Ctn,fI,{value:2,plugins:3,sanitize:4,remarkRehype:5})}};function hce(e){let t,n;return t=new wtn({props:{value:e[16],plugins:e[1],sanitize:e[2],remarkRehype:e[3]}}),t.$on("hast",e[35]),{c(){$2(t.$$.fragment)},m(r,i){qy(t,r,i),n=!0},p(r,i){const o={};i[0]&65536&&(o.value=r[16]),i[0]&2&&(o.plugins=r[1]),i[0]&4&&(o.sanitize=r[2]),i[0]&8&&(o.remarkRehype=r[3]),t.$set(o)},i(r){n||(Fh(t.$$.fragment,r),n=!0)},o(r){u1(t.$$.fragment,r),n=!1},d(r){Gy(t,r)}}}function _tn(e){let t,n,r,i,o,a,s,l,c,u=ho.Close+"",d,h,p,m,v,y;n=new btn({props:{context:e[10],split:e[11],activeTab:e[8],sidebar:e[9],fullscreen:e[15],rightAfferentActions:e[21].rightActions,locale:e[12],actions:e[21].leftActions}}),n.$on("key",e[31]),n.$on("tab",e[32]),n.$on("click",e[33]);let S=!e[4]&&(e[11]||e[8]==="preview")&&hce(e);return d=new ltn({props:{locale:e[12],actions:e[21].leftActions,visible:e[9]==="help"}}),h=new ptn({props:{hast:e[18],locale:e[12],currentBlockIndex:e[20],visible:e[9]==="toc"}}),h.$on("click",e[39]),p=new dtn({props:{locale:e[12],showSync:!e[4]&&e[11],value:e[16],syncEnabled:e[17],islimited:e[0].length>e[5]}}),p.$on("sync",e[40]),p.$on("top",e[41]),{c(){t=Wr("div"),$2(n.$$.fragment),r=Wr("div"),i=Wr("div"),a=Wr("div"),S&&S.c(),l=Wr("div"),c=Wr("div"),$2(d.$$.fragment),$2(h.$$.fragment),$2(p.$$.fragment),ii(i,"class","bytemd-editor"),ii(i,"style",o=e[22].edit),ii(a,"class","bytemd-preview"),ii(a,"style",s=e[22].preview),ii(c,"class","bytemd-sidebar-close"),ii(l,"class","bytemd-sidebar"),Ta(l,"bytemd-hidden",e[9]===!1),ii(r,"class","bytemd-body"),ii(t,"class","bytemd"),Ta(t,"bytemd-split",e[11]&&e[8]===!1),Ta(t,"bytemd-fullscreen",e[15])},m(b,C){Pa(b,t,C),qy(n,t,null),Lr(t,r),Lr(r,i),e[34](i),Lr(r,a),S&&S.m(a,null),e[36](a),Lr(r,l),Lr(l,c),c.innerHTML=u,qy(d,l,null),qy(h,l,null),qy(p,t,null),e[42](t),m=!0,v||(y=[Pc(c,"click",e[37]),Pc(c,"keydown",kS(e[38]))],v=!0)},p(b,C){const _={};C[0]&1024&&(_.context=b[10]),C[0]&2048&&(_.split=b[11]),C[0]&256&&(_.activeTab=b[8]),C[0]&512&&(_.sidebar=b[9]),C[0]&32768&&(_.fullscreen=b[15]),C[0]&2097152&&(_.rightAfferentActions=b[21].rightActions),C[0]&4096&&(_.locale=b[12]),C[0]&2097152&&(_.actions=b[21].leftActions),n.$set(_),(!m||C[0]&4194304&&o!==(o=b[22].edit))&&ii(i,"style",o),!b[4]&&(b[11]||b[8]==="preview")?S?(S.p(b,C),C[0]&2320&&Fh(S,1)):(S=hce(b),S.c(),Fh(S,1),S.m(a,null)):S&&(aen(),u1(S,1,1,()=>{S=null}),sen()),(!m||C[0]&4194304&&s!==(s=b[22].preview))&&ii(a,"style",s);const T={};C[0]&4096&&(T.locale=b[12]),C[0]&2097152&&(T.actions=b[21].leftActions),C[0]&512&&(T.visible=b[9]==="help"),d.$set(T);const x={};C[0]&262144&&(x.hast=b[18]),C[0]&4096&&(x.locale=b[12]),C[0]&1048576&&(x.currentBlockIndex=b[20]),C[0]&512&&(x.visible=b[9]==="toc"),h.$set(x),(!m||C[0]&512)&&Ta(l,"bytemd-hidden",b[9]===!1);const E={};C[0]&4096&&(E.locale=b[12]),C[0]&2064&&(E.showSync=!b[4]&&b[11]),C[0]&65536&&(E.value=b[16]),C[0]&131072&&(E.syncEnabled=b[17]),C[0]&33&&(E.islimited=b[0].length>b[5]),p.$set(E),(!m||C[0]&2304)&&Ta(t,"bytemd-split",b[11]&&b[8]===!1),(!m||C[0]&32768)&&Ta(t,"bytemd-fullscreen",b[15])},i(b){m||(Fh(n.$$.fragment,b),Fh(S),Fh(d.$$.fragment,b),Fh(h.$$.fragment,b),Fh(p.$$.fragment,b),m=!0)},o(b){u1(n.$$.fragment,b),u1(S),u1(d.$$.fragment,b),u1(h.$$.fragment,b),u1(p.$$.fragment,b),m=!1},d(b){b&&ma(t),Gy(n),e[34](null),S&&S.d(),e[36](null),Gy(d),Gy(h),Gy(p),e[42](null),v=!1,ah(y)}}}function Etn(e,t,n){let r,i,o,a,s,{value:l=""}=t,{plugins:c=[]}=t,{sanitize:u=void 0}=t,{remarkRehype:d=void 0}=t,{mode:h="auto"}=t,{previewDebounce:p=300}=t,{placeholder:m=void 0}=t,{editorConfig:v=void 0}=t,{locale:y=void 0}=t,{uploadImages:S=void 0}=t,{overridePreview:b=void 0}=t,{maxLength:C=1/0}=t;const _=k4();let T,x,E,k=1/0,M,P,D,R=!1,A=!1,H=[],F={};function z(){H=c.map(Ce=>{var Te;return(Te=Ce.editorEffect)==null?void 0:Te.call(Ce,s)}),F={},i.leftActions.forEach(({handler:Ce})=>{(Ce==null?void 0:Ce.type)==="action"&&Ce.shortcut&&(F[Ce.shortcut]=()=>{Ce.click(s)})}),P.addKeyMap(F)}function W(){H.forEach(Ce=>Ce&&Ce()),P==null||P.removeKeyMap(F)}let q=l;const Z=w5e(Ce=>{n(16,q=Ce),b==null||b(E,{value:q,plugins:c,sanitize:u,remarkRehype:d})},p);let N=!0,B=!1,V=!1,G,ie,ce={type:"root",children:[]},fe,ee=0;Rq(async()=>{n(30,M=rtn()),n(7,P=M(x,{value:l,mode:"yaml-frontmatter",lineWrapping:!0,tabSize:8,indentUnit:4,extraKeys:{Enter:"newlineAndIndentContinueMarkdownList"},...v,placeholder:m})),P.addKeyMap({Tab:"indentMore","Shift-Tab":"indentLess"}),P.on("change",()=>{_("change",{value:P.getValue()})});const Ce=JJt(()=>{G=[],ie=[];const Ne=P.getScrollInfo(),We=E.childNodes[0];if(!(We instanceof HTMLElement))return;const Q=ce.children.filter(J=>J.type==="element"),K=[...We.childNodes].filter(J=>J instanceof HTMLElement);for(let J=0;J<Q.length;J++){const be=Q[J],Oe=K[J];if(!be.position)continue;const Se=P.heightAtLine(be.position.start.line-1,"local")/(Ne.height-Ne.clientHeight),Ke=(Oe.offsetTop-We.offsetTop)/(E.scrollHeight-E.clientHeight);if(Se>=1||Ke>=1)break;G.push(Se),ie.push(Ke)}G.push(1),ie.push(1)},1e3),Te=()=>{if(b||!N)return;if(V){V=!1;return}Ce();const Ne=P.getScrollInfo(),We=Ne.top/(Ne.height-Ne.clientHeight),Q=IN(We,G),K=(We-G[Q])*(ie[Q+1]-ie[Q])/(G[Q+1]-G[Q])+ie[Q];E.scrollTo(0,K*(E.scrollHeight-E.clientHeight)),B=!0},ke=()=>{if(b||(Ce(),n(20,ee=IN(E.scrollTop/(E.scrollHeight-E.offsetHeight),ie)),!N))return;if(B){B=!1;return}const Ne=E.scrollTop/(E.scrollHeight-E.clientHeight),We=IN(Ne,ie),Q=(Ne-ie[We])*(G[We+1]-G[We])/(ie[We+1]-ie[We])+G[We];if(isNaN(Q))return;const K=P.getScrollInfo();P.scrollTo(0,Q*(K.height-K.clientHeight)),V=!0};P.on("scroll",Te),E.addEventListener("scroll",ke,{passive:!0});const Pe=async(Ne,We)=>{if(!S)return;const Q=Array.from(We??[]).map(K=>{if(K.type.startsWith("image/"))return K.getAsFile()}).filter(K=>K!=null);Q.length&&(Ne.preventDefault(),await I5e(s,S,Q))};P.on("drop",async(Ne,We)=>{var Q;Pe(We,(Q=We.dataTransfer)==null?void 0:Q.items)}),P.on("paste",async(Ne,We)=>{var Q;Pe(We,(Q=We.clipboardData)==null?void 0:Q.items)}),new ResizeObserver(Ne=>{n(29,k=Ne[0].contentRect.width)}).observe(T,{box:"border-box"})}),k5e(W);const ne=Ce=>{P.setOption("keyMap",Ce.detail),P.focus()},ue=Ce=>{const Te=Ce.detail;o?n(8,D=D===Te?!1:Te):n(8,D=Te),D==="write"&&m3().then(()=>{P&&P.focus()}),Te==="write"&&m3().then(()=>{P&&P.setSize(null,null)})},ye=Ce=>{switch(Ce.detail){case"fullscreen":n(15,R=!R);break;case"help":n(9,A=A==="help"?!1:"help");break;case"toc":n(9,A=A==="toc"?!1:"toc");break}};function me(Ce){iv[Ce?"unshift":"push"](()=>{x=Ce,n(13,x)})}const pe=Ce=>{n(18,ce=Ce.detail.hast),n(19,fe=Ce.detail.file)};function he(Ce){iv[Ce?"unshift":"push"](()=>{E=Ce,n(14,E)})}const _e=()=>{n(9,A=!1)},le=Ce=>{["Enter","Space"].includes(Ce.code)&&n(9,A=!1)},xe=Ce=>{E.querySelectorAll("h1,h2,h3,h4,h5,h6")[Ce.detail].scrollIntoView()},we=Ce=>{n(17,N=Ce.detail)},De=()=>{P.scrollTo(null,0),E.scrollTo({top:0})};function Fe(Ce){iv[Ce?"unshift":"push"](()=>{T=Ce,n(6,T)})}return e.$$set=Ce=>{"value"in Ce&&n(0,l=Ce.value),"plugins"in Ce&&n(1,c=Ce.plugins),"sanitize"in Ce&&n(2,u=Ce.sanitize),"remarkRehype"in Ce&&n(3,d=Ce.remarkRehype),"mode"in Ce&&n(23,h=Ce.mode),"previewDebounce"in Ce&&n(24,p=Ce.previewDebounce),"placeholder"in Ce&&n(25,m=Ce.placeholder),"editorConfig"in Ce&&n(26,v=Ce.editorConfig),"locale"in Ce&&n(27,y=Ce.locale),"uploadImages"in Ce&&n(28,S=Ce.uploadImages),"overridePreview"in Ce&&n(4,b=Ce.overridePreview),"maxLength"in Ce&&n(5,C=Ce.maxLength)},e.$$.update=()=>{e.$$.dirty[0]&134217728&&n(12,r={...ntn,...y}),e.$$.dirty[0]&268439554&&n(21,i=otn(r,c,S)),e.$$.dirty[0]&545259520&&n(11,o=h==="split"||h==="auto"&&k>=800),e.$$.dirty[0]&2048&&(Ce=>{o&&n(8,D=!1)})(),e.$$.dirty[0]&2816&&n(22,a=(()=>{let Ce,Te;return o&&D===!1?A?(Ce=`width:calc(50% - ${A?140:0}px)`,Te=`width:calc(50% - ${A?140:0}px)`):(Ce="width:50%",Te="width:50%"):D==="preview"?(Ce="display:none",Te=`width:calc(100% - ${A?280:0}px)`):(Ce=`width:calc(100% - ${A?280:0}px)`,Te="display:none"),{edit:Ce,preview:Te}})()),e.$$.dirty[0]&1073742016&&n(10,s={codemirror:M,editor:P,root:T,...itn(M,P)}),e.$$.dirty[0]&1&&Z(l),e.$$.dirty[0]&129&&P&&l!==P.getValue()&&P.setValue(l),e.$$.dirty[0]&130&&P&&c&&(W(),m3().then(()=>{z()}))},[l,c,u,d,b,C,T,P,D,A,s,o,r,x,E,R,q,N,ce,fe,ee,i,a,h,p,m,v,y,S,k,M,ne,ue,ye,me,pe,he,_e,le,xe,we,De,Fe]}let Ttn=class extends BC{constructor(t){super(),jC(this,t,Etn,_tn,fI,{value:0,plugins:1,sanitize:2,remarkRehype:3,mode:23,previewDebounce:24,placeholder:25,editorConfig:26,locale:27,uploadImages:28,overridePreview:4,maxLength:5},null,[-1,-1])}};const ktn=({onChange:e,...t})=>{const n=f.useRef(),r=f.useRef(null),i=f.useRef();return f.useEffect(()=>{if(!r.current)return;const o=new Ttn({target:r.current,props:t});return o.$on("change",a=>{var s;(s=i.current)==null||s.call(i,a.detail.value)}),n.current=o,()=>{o.$destroy()}},[]),f.useEffect(()=>{i.current=e},[e]),f.useEffect(()=>{var o;(o=n.current)==null||o.$set(t)},[t]),ge.createElement("div",{ref:r})},Otn=({value:e,sanitize:t,plugins:n,remarkRehype:r})=>{var i;const o=f.useRef(null),a=f.useMemo(()=>{try{return $5e({sanitize:t,plugins:n,remarkRehype:r}).processSync(e)}catch(s){console.error(s)}},[e,t,n,r]);return f.useEffect(()=>{const s=o.current;if(!s||!a)return;const l=n==null?void 0:n.map(({viewerEffect:c})=>c==null?void 0:c({markdownBody:s,file:a}));return()=>{l==null||l.forEach(c=>c&&c())}},[a,n]),ge.createElement("div",{onClick:s=>{var l,c;const u=s.target;if(u.tagName!=="A")return;const d=u.getAttribute("href");d!=null&&d.startsWith("#")&&((c=(l=o.current)==null?void 0:l.querySelector("#user-content-"+d.slice(1)))==null||c.scrollIntoView())},ref:o,className:"markdown-body",dangerouslySetInnerHTML:{__html:(i=a==null?void 0:a.toString())!=null?i:""}})},Ptn={tokenize:Ntn,partial:!0},R5e={tokenize:Dtn,partial:!0},A5e={tokenize:Ltn,partial:!0},N5e={tokenize:Ftn,partial:!0},Mtn={tokenize:jtn,partial:!0},D5e={tokenize:Rtn,previous:F5e},L5e={tokenize:Atn,previous:j5e},Dp={tokenize:$tn,previous:B5e},sh={},Itn={text:sh};let t1=48;for(;t1<123;)sh[t1]=Dp,t1++,t1===58?t1=65:t1===91&&(t1=97);sh[43]=Dp;sh[45]=Dp;sh[46]=Dp;sh[95]=Dp;sh[72]=[Dp,L5e];sh[104]=[Dp,L5e];sh[87]=[Dp,D5e];sh[119]=[Dp,D5e];function $tn(e,t,n){const r=this;let i,o;return a;function a(d){return!rH(d)||!B5e.call(r,r.previous)||Aq(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(d))}function s(d){return rH(d)?(e.consume(d),s):d===64?(e.consume(d),l):n(d)}function l(d){return d===46?e.check(Mtn,u,c)(d):d===45||d===95||Hs(d)?(o=!0,e.consume(d),l):u(d)}function c(d){return e.consume(d),i=!0,l}function u(d){return o&&i&&dl(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function Rtn(e,t,n){const r=this;return i;function i(a){return a!==87&&a!==119||!F5e.call(r,r.previous)||Aq(r.events)?n(a):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Ptn,e.attempt(R5e,e.attempt(A5e,o),n),n)(a))}function o(a){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(a)}}function Atn(e,t,n){const r=this;let i="",o=!1;return a;function a(d){return(d===72||d===104)&&j5e.call(r,r.previous)&&!Aq(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),e.consume(d),s):n(d)}function s(d){if(dl(d)&&i.length<5)return i+=String.fromCodePoint(d),e.consume(d),s;if(d===58){const h=i.toLowerCase();if(h==="http"||h==="https")return e.consume(d),l}return n(d)}function l(d){return d===47?(e.consume(d),o?c:(o=!0,l)):n(d)}function c(d){return d===null||Lk(d)||to(d)||Av(d)||uI(d)?n(d):e.attempt(R5e,e.attempt(A5e,u),n)(d)}function u(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function Ntn(e,t,n){let r=0;return i;function i(a){return(a===87||a===119)&&r<3?(r++,e.consume(a),i):a===46&&r===3?(e.consume(a),o):n(a)}function o(a){return a===null?n(a):t(a)}}function Dtn(e,t,n){let r,i,o;return a;function a(c){return c===46||c===95?e.check(N5e,l,s)(c):c===null||to(c)||Av(c)||c!==45&&uI(c)?l(c):(o=!0,e.consume(c),a)}function s(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),a}function l(c){return i||r||!o?n(c):t(c)}}function Ltn(e,t){let n=0,r=0;return i;function i(a){return a===40?(n++,e.consume(a),i):a===41&&r<n?o(a):a===33||a===34||a===38||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===60||a===63||a===93||a===95||a===126?e.check(N5e,t,o)(a):a===null||to(a)||Av(a)?t(a):(e.consume(a),i)}function o(a){return a===41&&r++,e.consume(a),i}}function Ftn(e,t,n){return r;function r(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),r):s===38?(e.consume(s),o):s===93?(e.consume(s),i):s===60||s===null||to(s)||Av(s)?t(s):n(s)}function i(s){return s===null||s===40||s===91||to(s)||Av(s)?t(s):r(s)}function o(s){return dl(s)?a(s):n(s)}function a(s){return s===59?(e.consume(s),r):dl(s)?(e.consume(s),a):n(s)}}function jtn(e,t,n){return r;function r(o){return e.consume(o),i}function i(o){return Hs(o)?n(o):t(o)}}function F5e(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||to(e)}function j5e(e){return!dl(e)}function B5e(e){return!(e===47||rH(e))}function rH(e){return e===43||e===45||e===46||e===95||Hs(e)}function Aq(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Btn={tokenize:Gtn,partial:!0};function Htn(){return{document:{91:{tokenize:Vtn,continuation:{tokenize:Ktn},exit:qtn}},text:{91:{tokenize:Wtn},93:{add:"after",tokenize:ztn,resolveTo:Utn}}}}function ztn(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){a=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!a||!a._balanced)return n(l);const c=$d(r.sliceSerialize({start:a.end,end:r.now()}));return c.codePointAt(0)!==94||!o.includes(c.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function Utn(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function Wtn(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,a;return s;function s(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(d){if(o>999||d===93&&!a||d===null||d===91||to(d))return n(d);if(d===93){e.exit("chunkString");const h=e.exit("gfmFootnoteCallString");return i.includes($d(r.sliceSerialize(h)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return to(d)||(a=!0),o++,e.consume(d),d===92?u:c}function u(d){return d===91||d===92||d===93?(e.consume(d),o++,c):c(d)}}function Vtn(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a=0,s;return l;function l(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(m)}function u(m){if(a>999||m===93&&!s||m===null||m===91||to(m))return n(m);if(m===93){e.exit("chunkString");const v=e.exit("gfmFootnoteDefinitionLabelString");return o=$d(r.sliceSerialize(v)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return to(m)||(s=!0),a++,e.consume(m),m===92?d:u}function d(m){return m===91||m===92||m===93?(e.consume(m),a++,u):u(m)}function h(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),i.includes(o)||i.push(o),bi(e,p,"gfmFootnoteDefinitionWhitespace")):n(m)}function p(m){return t(m)}}function Ktn(e,t,n){return e.check(_4,t,e.attempt(Btn,t,n))}function qtn(e){e.exit("gfmFootnoteDefinition")}function Gtn(e,t,n){const r=this;return bi(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?t(o):n(o)}}function Ytn(e){let n=(e||{}).singleTilde;const r={tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(a,s){let l=-1;for(;++l<a.length;)if(a[l][0]==="enter"&&a[l][1].type==="strikethroughSequenceTemporary"&&a[l][1]._close){let c=l;for(;c--;)if(a[c][0]==="exit"&&a[c][1].type==="strikethroughSequenceTemporary"&&a[c][1]._open&&a[l][1].end.offset-a[l][1].start.offset===a[c][1].end.offset-a[c][1].start.offset){a[l][1].type="strikethroughSequence",a[c][1].type="strikethroughSequence";const u={type:"strikethrough",start:Object.assign({},a[c][1].start),end:Object.assign({},a[l][1].end)},d={type:"strikethroughText",start:Object.assign({},a[c][1].end),end:Object.assign({},a[l][1].start)},h=[["enter",u,s],["enter",a[c][1],s],["exit",a[c][1],s],["enter",d,s]],p=s.parser.constructs.insideSpan.null;p&&$c(h,h.length,0,dI(p,a.slice(c+1,l),s)),$c(h,h.length,0,[["exit",d,s],["enter",a[l][1],s],["exit",a[l][1],s],["exit",u,s]]),$c(a,c-1,l-c+3,h),l=c+h.length-2;break}}for(l=-1;++l<a.length;)a[l][1].type==="strikethroughSequenceTemporary"&&(a[l][1].type="data");return a}function o(a,s,l){const c=this.previous,u=this.events;let d=0;return h;function h(m){return c===126&&u[u.length-1][1].type!=="characterEscape"?l(m):(a.enter("strikethroughSequenceTemporary"),p(m))}function p(m){const v=Fk(c);if(m===126)return d>1?l(m):(a.consume(m),d++,p);if(d<2&&!n)return l(m);const y=a.exit("strikethroughSequenceTemporary"),S=Fk(m);return y._open=!S||S===2&&!!v,y._close=!v||v===2&&!!S,s(m)}}}class Xtn{constructor(){this.map=[]}add(t,n,r){Qtn(this,t,n,r)}consume(t){if(this.map.sort((o,a)=>o[0]-a[0]),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1])),r.push(this.map[n][2]),t.length=this.map[n][0];r.push([...t]),t.length=0;let i=r.pop();for(;i;)t.push(...i),i=r.pop();this.map.length=0}}function Qtn(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function Ztn(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}const Jtn={flow:{null:{tokenize:enn,resolveAll:tnn}}};function enn(e,t,n){const r=this;let i=0,o=0,a;return s;function s(P){let D=r.events.length-1;for(;D>-1;){const H=r.events[D][1].type;if(H==="lineEnding"||H==="linePrefix")D--;else break}const R=D>-1?r.events[D][1].type:null,A=R==="tableHead"||R==="tableRow"?x:l;return A===x&&r.parser.lazy[r.now().line]?n(P):A(P)}function l(P){return e.enter("tableHead"),e.enter("tableRow"),c(P)}function c(P){return P===124||(a=!0,o+=1),u(P)}function u(P){return P===null?n(P):br(P)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),p):n(P):Zr(P)?bi(e,u,"whitespace")(P):(o+=1,a&&(a=!1,i+=1),P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),a=!0,u):(e.enter("data"),d(P)))}function d(P){return P===null||P===124||to(P)?(e.exit("data"),u(P)):(e.consume(P),P===92?h:d)}function h(P){return P===92||P===124?(e.consume(P),d):d(P)}function p(P){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(P):(e.enter("tableDelimiterRow"),a=!1,Zr(P)?bi(e,m,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):m(P))}function m(P){return P===45||P===58?y(P):P===124?(a=!0,e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),v):T(P)}function v(P){return Zr(P)?bi(e,y,"whitespace")(P):y(P)}function y(P){return P===58?(o+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),S):P===45?(o+=1,S(P)):P===null||br(P)?_(P):T(P)}function S(P){return P===45?(e.enter("tableDelimiterFiller"),b(P)):T(P)}function b(P){return P===45?(e.consume(P),b):P===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),C):(e.exit("tableDelimiterFiller"),C(P))}function C(P){return Zr(P)?bi(e,_,"whitespace")(P):_(P)}function _(P){return P===124?m(P):P===null||br(P)?!a||i!==o?T(P):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(P)):T(P)}function T(P){return n(P)}function x(P){return e.enter("tableRow"),E(P)}function E(P){return P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),E):P===null||br(P)?(e.exit("tableRow"),t(P)):Zr(P)?bi(e,E,"whitespace")(P):(e.enter("data"),k(P))}function k(P){return P===null||P===124||to(P)?(e.exit("data"),E(P)):(e.consume(P),P===92?M:k)}function M(P){return P===92||P===124?(e.consume(P),k):k(P)}}function tnn(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],a=[0,0,0,0],s=!1,l=0,c,u,d;const h=new Xtn;for(;++n<e.length;){const p=e[n],m=p[1];p[0]==="enter"?m.type==="tableHead"?(s=!1,l!==0&&(pce(h,t,l,c,u),u=void 0,l=0),c={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},h.add(n,0,[["enter",c,t]])):m.type==="tableRow"||m.type==="tableDelimiterRow"?(r=!0,d=void 0,o=[0,0,0,0],a=[0,n+1,0,0],s&&(s=!1,u={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},h.add(n,0,[["enter",u,t]])),i=m.type==="tableDelimiterRow"?2:u?3:1):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(r=!1,a[2]===0&&(o[1]!==0&&(a[0]=a[1],d=H5(h,t,o,i,void 0,d),o=[0,0,0,0]),a[2]=n)):m.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(a[0]=a[1],d=H5(h,t,o,i,void 0,d)),o=a,a=[o[1],n,0,0])):m.type==="tableHead"?(s=!0,l=n):m.type==="tableRow"||m.type==="tableDelimiterRow"?(l=n,o[1]!==0?(a[0]=a[1],d=H5(h,t,o,i,n,d)):a[1]!==0&&(d=H5(h,t,a,i,n,d)),i=0):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(a[3]=n)}for(l!==0&&pce(h,t,l,c,u),h.consume(t.events),n=-1;++n<t.events.length;){const p=t.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=Ztn(t.events,n))}return e}function H5(e,t,n,r,i,o){const a=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(o.end=Object.assign({},_y(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const l=_y(t.events,n[1]);if(o={type:a,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const c=_y(t.events,n[2]),u=_y(t.events,n[3]),d={type:s,start:Object.assign({},c),end:Object.assign({},u)};if(e.add(n[2],0,[["enter",d,t]]),r!==2){const h=t.events[n[2]],p=t.events[n[3]];if(h[1].end=Object.assign({},p[1].end),h[1].type="chunkText",h[1].contentType="text",n[3]>n[2]+1){const m=n[2]+1,v=n[3]-n[2]-1;e.add(m,v,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(o.end=Object.assign({},_y(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function pce(e,t,n,r,i){const o=[],a=_y(t.events,n);i&&(i.end=Object.assign({},a),o.push(["exit",i,t])),r.end=Object.assign({},a),o.push(["exit",r,t]),e.add(n+1,0,o)}function _y(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const nnn={tokenize:inn},rnn={text:{91:nnn}};function inn(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),o)}function o(l){return to(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),a):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),a):n(l)}function a(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(l)}function s(l){return br(l)?t(l):Zr(l)?e.check({tokenize:onn},t,n)(l):n(l)}}function onn(e,t,n){return bi(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function ann(e){return e5e([Itn,Htn(),Ytn(e),Jtn,rnn])}function snn(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const lnn={}.hasOwnProperty,H5e=function(e,t,n,r){let i,o;typeof t=="string"||t instanceof RegExp?(o=[[t,n]],i=r):(o=t,i=n),i||(i={});const a=rq(i.ignore||[]),s=cnn(o);let l=-1;for(;++l<s.length;)L4e(e,"text",c);return e;function c(d,h){let p=-1,m;for(;++p<h.length;){const v=h[p];if(a(v,m?m.children.indexOf(v):void 0,m))return;m=v}if(m)return u(d,h)}function u(d,h){const p=h[h.length-1],m=s[l][0],v=s[l][1];let y=0;const S=p.children.indexOf(d);let b=!1,C=[];m.lastIndex=0;let _=m.exec(d.value);for(;_;){const T=_.index,x={index:_.index,input:_.input,stack:[...h,d]};let E=v(..._,x);if(typeof E=="string"&&(E=E.length>0?{type:"text",value:E}:void 0),E!==!1&&(y!==T&&C.push({type:"text",value:d.value.slice(y,T)}),Array.isArray(E)?C.push(...E):E&&C.push(E),y=T+_[0].length,b=!0),!m.global)break;_=m.exec(d.value)}return b?(y<d.value.length&&C.push({type:"text",value:d.value.slice(y)}),p.children.splice(S,1,...C)):C=[d],S+C.length}};function cnn(e){const t=[];if(typeof e!="object")throw new TypeError("Expected array or object as schema");if(Array.isArray(e)){let n=-1;for(;++n<e.length;)t.push([mce(e[n][0]),gce(e[n][1])])}else{let n;for(n in e)lnn.call(e,n)&&t.push([mce(n),gce(e[n])])}return t}function mce(e){return typeof e=="string"?new RegExp(snn(e),"g"):e}function gce(e){return typeof e=="function"?e:()=>e}const RN="phrasing",AN=["autolink","link","image","label"],unn={transforms:[vnn],enter:{literalAutolink:fnn,literalAutolinkEmail:NN,literalAutolinkHttp:NN,literalAutolinkWww:NN},exit:{literalAutolink:gnn,literalAutolinkEmail:mnn,literalAutolinkHttp:hnn,literalAutolinkWww:pnn}},dnn={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:RN,notInConstruct:AN},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:RN,notInConstruct:AN},{character:":",before:"[ps]",after:"\\/",inConstruct:RN,notInConstruct:AN}]};function fnn(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function NN(e){this.config.enter.autolinkProtocol.call(this,e)}function hnn(e){this.config.exit.autolinkProtocol.call(this,e)}function pnn(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}function mnn(e){this.config.exit.autolinkEmail.call(this,e)}function gnn(e){this.exit(e)}function vnn(e){H5e(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,ynn],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,bnn]],{ignore:["link","linkReference"]})}function ynn(e,t,n,r,i){let o="";if(!z5e(i)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!Snn(n)))return!1;const a=Cnn(n+r);if(!a[0])return!1;const s={type:"link",title:null,url:o+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function bnn(e,t,n,r){return!z5e(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Snn(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function Cnn(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Dk(e,"(");let o=Dk(e,")");for(;r!==-1&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function z5e(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Av(n)||uI(n))&&(!t||n!==47)}function U5e(e){return e.label||!e.identifier?e.label||"":d5e(e.identifier)}function xnn(e,t,n){const r=t.indexStack,i=e.children||[],o=t.createTracker(n),a=[];let s=-1;for(r.push(-1);++s<i.length;){const l=i[s];r[r.length-1]=s,a.push(o.move(t.handle(l,e,t,{before:`
|
||
`,after:`
|
||
`,...o.current()}))),l.type!=="list"&&(t.bulletLastUsed=void 0),s<i.length-1&&a.push(o.move(wnn(l,i[s+1],e,t)))}return r.pop(),a.join("")}function wnn(e,t,n,r){let i=r.join.length;for(;i--;){const o=r.join[i](e,t,n,r);if(o===!0||o===1)break;if(typeof o=="number")return`
|
||
`.repeat(1+o);if(o===!1)return`
|
||
|
||
<!---->
|
||
|
||
`}return`
|
||
|
||
`}const _nn=/\r?\n|\r/g;function Enn(e,t){const n=[];let r=0,i=0,o;for(;o=_nn.exec(e);)a(e.slice(r,o.index)),n.push(o[0]),r=o.index+o[0].length,i++;return a(e.slice(r)),n.join("");function a(s){n.push(t(s,i,!s))}}function W5e(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function Tnn(e,t){return vce(e,t.inConstruct,!0)&&!vce(e,t.notInConstruct,!1)}function vce(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function V5e(e,t,n){const r=(n.before||"")+(t||"")+(n.after||""),i=[],o=[],a={};let s=-1;for(;++s<e.unsafe.length;){const u=e.unsafe[s];if(!Tnn(e.stack,u))continue;const d=W5e(u);let h;for(;h=d.exec(r);){const p="before"in u||!!u.atBreak,m="after"in u,v=h.index+(p?h[1].length:0);i.includes(v)?(a[v].before&&!p&&(a[v].before=!1),a[v].after&&!m&&(a[v].after=!1)):(i.push(v),a[v]={before:p,after:m})}}i.sort(knn);let l=n.before?n.before.length:0;const c=r.length-(n.after?n.after.length:0);for(s=-1;++s<i.length;){const u=i[s];u<l||u>=c||u+1<c&&i[s+1]===u+1&&a[u].after&&!a[u+1].before&&!a[u+1].after||i[s-1]===u-1&&a[u].before&&!a[u-1].before&&!a[u-1].after||(l!==u&&o.push(yce(r.slice(l,u),"\\")),l=u,/[!-/:-@[-`{-~]/.test(r.charAt(u))&&(!n.encode||!n.encode.includes(r.charAt(u)))?o.push("\\"):(o.push("&#x"+r.charCodeAt(u).toString(16).toUpperCase()+";"),l++))}return o.push(yce(r.slice(l,c),n.after)),o.join("")}function knn(e,t){return e-t}function yce(e,t){const n=/\\(?=[!-/:-@[-`{-~])/g,r=[],i=[],o=e+t;let a=-1,s=0,l;for(;l=n.exec(o);)r.push(l.index);for(;++a<r.length;)s!==r[a]&&i.push(e.slice(s,r[a])),i.push("\\"),s=r[a];return i.push(e.slice(s)),i.join("")}function pI(e){const t=e||{},n=t.now||{};let r=t.lineShift||0,i=n.line||1,o=n.column||1;return{move:l,current:a,shift:s};function a(){return{now:{line:i,column:o},lineShift:r}}function s(c){r+=c}function l(c){const u=c||"",d=u.split(/\r?\n|\r/g),h=d[d.length-1];return i+=d.length-1,o=d.length===1?o+h.length:1+h.length+r,u}}K5e.peek=Fnn;function Onn(){return{enter:{gfmFootnoteDefinition:Mnn,gfmFootnoteDefinitionLabelString:Inn,gfmFootnoteCall:Ann,gfmFootnoteCallString:Nnn},exit:{gfmFootnoteDefinition:Rnn,gfmFootnoteDefinitionLabelString:$nn,gfmFootnoteCall:Lnn,gfmFootnoteCallString:Dnn}}}function Pnn(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:jnn,footnoteReference:K5e}}}function Mnn(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Inn(){this.buffer()}function $nn(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=$d(this.sliceSerialize(e)).toLowerCase()}function Rnn(e){this.exit(e)}function Ann(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Nnn(){this.buffer()}function Dnn(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=$d(this.sliceSerialize(e)).toLowerCase()}function Lnn(e){this.exit(e)}function K5e(e,t,n,r){const i=pI(r);let o=i.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference");return o+=i.move(V5e(n,U5e(e),{...i.current(),before:o,after:"]"})),s(),a(),o+=i.move("]"),o}function Fnn(){return"["}function jnn(e,t,n,r){const i=pI(r);let o=i.move("[^");const a=n.enter("footnoteDefinition"),s=n.enter("label");return o+=i.move(V5e(n,U5e(e),{...i.current(),before:o,after:"]"})),s(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(Enn(xnn(e,n,i.current()),Bnn)),a(),o}function Bnn(e,t,n){return t===0?e:(n?"":" ")+e}function q5e(e,t,n){const r=t.indexStack,i=e.children||[],o=[];let a=-1,s=n.before;r.push(-1);let l=t.createTracker(n);for(;++a<i.length;){const c=i[a];let u;if(r[r.length-1]=a,a+1<i.length){let d=t.handle.handlers[i[a+1].type];d&&d.peek&&(d=d.peek),u=d?d(i[a+1],e,t,{before:"",after:"",...l.current()}).charAt(0):""}else u=n.after;o.length>0&&(s==="\r"||s===`
|
||
`)&&c.type==="html"&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),s=" ",l=t.createTracker(n),l.move(o.join(""))),o.push(l.move(t.handle(c,e,t,{...l.current(),before:s,after:u}))),s=o[o.length-1].slice(-1)}return r.pop(),o.join("")}const Hnn=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];G5e.peek=Knn;const znn={canContainEols:["delete"],enter:{strikethrough:Wnn},exit:{strikethrough:Vnn}},Unn={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Hnn}],handlers:{delete:G5e}};function Wnn(e){this.enter({type:"delete",children:[]},e)}function Vnn(e){this.exit(e)}function G5e(e,t,n,r){const i=pI(r),o=n.enter("strikethrough");let a=i.move("~~");return a+=q5e(e,n,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function Knn(){return"~"}Y5e.peek=qnn;function Y5e(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const a=n.unsafe[o],s=W5e(a);let l;if(a.atBreak)for(;l=s.exec(r);){let c=l.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(l.index+1)}}return i+r+i}function qnn(){return"`"}function Gnn(e){return e.length}function Ynn(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||Gnn,o=[],a=[],s=[],l=[];let c=0,u=-1;for(;++u<e.length;){const v=[],y=[];let S=-1;for(e[u].length>c&&(c=e[u].length);++S<e[u].length;){const b=Xnn(e[u][S]);if(n.alignDelimiters!==!1){const C=i(b);y[S]=C,(l[S]===void 0||C>l[S])&&(l[S]=C)}v.push(b)}a[u]=v,s[u]=y}let d=-1;if(typeof r=="object"&&"length"in r)for(;++d<c;)o[d]=bce(r[d]);else{const v=bce(r);for(;++d<c;)o[d]=v}d=-1;const h=[],p=[];for(;++d<c;){const v=o[d];let y="",S="";v===99?(y=":",S=":"):v===108?y=":":v===114&&(S=":");let b=n.alignDelimiters===!1?1:Math.max(1,l[d]-y.length-S.length);const C=y+"-".repeat(b)+S;n.alignDelimiters!==!1&&(b=y.length+b+S.length,b>l[d]&&(l[d]=b),p[d]=b),h[d]=C}a.splice(1,0,h),s.splice(1,0,p),u=-1;const m=[];for(;++u<a.length;){const v=a[u],y=s[u];d=-1;const S=[];for(;++d<c;){const b=v[d]||"";let C="",_="";if(n.alignDelimiters!==!1){const T=l[d]-(y[d]||0),x=o[d];x===114?C=" ".repeat(T):x===99?T%2?(C=" ".repeat(T/2+.5),_=" ".repeat(T/2-.5)):(C=" ".repeat(T/2),_=C):_=" ".repeat(T)}n.delimiterStart!==!1&&!d&&S.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&b==="")&&(n.delimiterStart!==!1||d)&&S.push(" "),n.alignDelimiters!==!1&&S.push(C),S.push(b),n.alignDelimiters!==!1&&S.push(_),n.padding!==!1&&S.push(" "),(n.delimiterEnd!==!1||d!==c-1)&&S.push("|")}m.push(n.delimiterEnd===!1?S.join("").replace(/ +$/,""):S.join(""))}return m.join(`
|
||
`)}function Xnn(e){return e==null?"":String(e)}function bce(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}const Qnn={enter:{table:Znn,tableData:Sce,tableHeader:Sce,tableRow:ern},exit:{codeText:trn,table:Jnn,tableData:DN,tableHeader:DN,tableRow:DN}};function Znn(e){const t=e._align;this.enter({type:"table",align:t.map(n=>n==="none"?null:n),children:[]},e),this.setData("inTable",!0)}function Jnn(e){this.exit(e),this.setData("inTable")}function ern(e){this.enter({type:"tableRow",children:[]},e)}function DN(e){this.exit(e)}function Sce(e){this.enter({type:"tableCell",children:[]},e)}function trn(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,nrn));const n=this.stack[this.stack.length-1];n.value=t,this.exit(e)}function nrn(e,t){return t==="|"?t:e}function rrn(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
||
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:a,tableRow:s,tableCell:l,inlineCode:h}};function a(p,m,v,y){return c(u(p,v,y),p.align)}function s(p,m,v,y){const S=d(p,v,y),b=c([S]);return b.slice(0,b.indexOf(`
|
||
`))}function l(p,m,v,y){const S=v.enter("tableCell"),b=v.enter("phrasing"),C=q5e(p,v,{...y,before:o,after:o});return b(),S(),C}function c(p,m){return Ynn(p,{align:m,alignDelimiters:r,padding:n,stringLength:i})}function u(p,m,v){const y=p.children;let S=-1;const b=[],C=m.enter("table");for(;++S<y.length;)b[S]=d(y[S],m,v);return C(),b}function d(p,m,v){const y=p.children;let S=-1;const b=[],C=m.enter("tableRow");for(;++S<y.length;)b[S]=l(y[S],p,m,v);return C(),b}function h(p,m,v){let y=Y5e(p,m,v);return v.stack.includes("tableCell")&&(y=y.replace(/\|/g,"\\$&")),y}}function irn(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function orn(e){const t=e.options.listItemIndent||"tab";if(t===1||t==="1")return"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function arn(e,t,n,r){const i=orn(n);let o=n.bulletCurrent||irn(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let a=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4);const s=n.createTracker(r);s.move(o+" ".repeat(a-o.length)),s.shift(a);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),u);return l(),c;function u(d,h,p){return h?(p?"":" ".repeat(a))+d:(p?o:o+" ".repeat(a-o.length))+d}}const srn={exit:{taskListCheckValueChecked:Cce,taskListCheckValueUnchecked:Cce,paragraph:crn}},lrn={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:urn}};function Cce(e){const t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function crn(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1],r=n.children[0];if(r&&r.type==="text"){const i=t.children;let o=-1,a;for(;++o<i.length;){const s=i[o];if(s.type==="paragraph"){a=s;break}}a===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function urn(e,t,n,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",a="["+(e.checked?"x":" ")+"] ",s=pI(r);o&&s.move(a);let l=arn(e,t,n,{...r,...s.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),l;function c(u){return u+a}}function drn(){return[unn,Onn(),znn,Qnn,srn]}function frn(e){return{extensions:[dnn,Pnn(),Unn,rrn(e),lrn]}}function hrn(e={}){const t=this.data();n("micromarkExtensions",ann(e)),n("fromMarkdownExtensions",drn()),n("toMarkdownExtensions",frn(e));function n(r,i){(t[r]?t[r]:t[r]=[]).push(i)}}const LN={Strikethrough:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M5 24h38M24 24c16 6 10 20 0 20s-12-8-12-8M36 12s-3-8-12-8-12.564 7.6-8.39 14"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M12 36s4 8 12 8 12.564-7.6 8.39-14"/></svg>',CheckCorrect:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><g stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" clip-path="url(#a)"><path d="M42 20v19a3 3 0 0 1-3 3H9a3 3 0 0 1-3-3V9a3 3 0 0 1 3-3h21"/><path d="m16 20 10 8L41 7"/></g><defs><clipPath id="a"><path fill="currentColor" d="M0 0h48v48H0z"/></clipPath></defs></svg>',InsertTable:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-width="4" d="M39.3 6H8.7A2.7 2.7 0 0 0 6 8.7v30.6A2.7 2.7 0 0 0 8.7 42h30.6a2.7 2.7 0 0 0 2.7-2.7V8.7A2.7 2.7 0 0 0 39.3 6Z"/><path stroke="currentColor" stroke-linecap="round" stroke-width="4" d="M18 6v36M30 6v36M6 18h36M6 30h36"/></svg>'},prn="Strikethrough",mrn="text",grn="Table",vrn="Heading",yrn="Task list",brn="todo",Srn={strike:prn,strikeText:mrn,table:grn,tableHeading:vrn,task:yrn,taskText:brn};function X5e({locale:e,...t}={}){const n={...Srn,...e};return{remark:r=>r.use(hrn,t),actions:[{title:n.strike,icon:LN.Strikethrough,cheatsheet:`~~${n.strikeText}~~`,handler:{type:"action",click({wrapText:r,editor:i}){r("~~"),i.focus()}}},{title:n.task,icon:LN.CheckCorrect,cheatsheet:`- [ ] ${n.taskText}`,handler:{type:"action",click({replaceLines:r,editor:i}){r(o=>"- [ ] "+o),i.focus()}}},{title:n.table,icon:LN.InsertTable,handler:{type:"action",click({editor:r,appendBlock:i,codemirror:o}){const{line:a}=i(`| ${n.tableHeading} | |
|
||
| --- | --- |
|
||
| | |
|
||
`);r.setSelection(o.Pos(a,2),o.Pos(a,2+n.tableHeading.length)),r.focus()}}}]}}function Q5e({init:e}={}){let t;return{viewerEffect({markdownBody:n}){(async()=>{const r=n.querySelectorAll("pre>code");r.length!==0&&(t||(t=await $z(()=>import("./index-DkdxAJ_C.js"),[]).then(i=>i.default),e&&await e(t)),r.forEach(i=>{t.highlightElement(i)}))})()}}}/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function Z5e(e){return typeof e>"u"||e===null}function Crn(e){return typeof e=="object"&&e!==null}function xrn(e){return Array.isArray(e)?e:Z5e(e)?[]:[e]}function wrn(e,t){var n,r,i,o;if(t)for(o=Object.keys(t),n=0,r=o.length;n<r;n+=1)i=o[n],e[i]=t[i];return e}function _rn(e,t){var n="",r;for(r=0;r<t;r+=1)n+=e;return n}function Ern(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Trn=Z5e,krn=Crn,Orn=xrn,Prn=_rn,Mrn=Ern,Irn=wrn,fl={isNothing:Trn,isObject:krn,toArray:Orn,repeat:Prn,isNegativeZero:Mrn,extend:Irn};function J5e(e,t){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+=`
|
||
|
||
`+e.mark.snippet),r+" "+n):r}function U_(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=J5e(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}U_.prototype=Object.create(Error.prototype);U_.prototype.constructor=U_;U_.prototype.toString=function(t){return this.name+": "+J5e(this,t)};var Uh=U_;function FN(e,t,n,r,i){var o="",a="",s=Math.floor(i/2)-1;return r-t>s&&(o=" ... ",t=r-s+o.length),n-r>s&&(a=" ...",n=r+s-a.length),{str:o+e.slice(t,n).replace(/\t/g,"→")+a,pos:r-t+o.length}}function jN(e,t){return fl.repeat(" ",t-e.length)+e}function $rn(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],i=[],o,a=-1;o=n.exec(e.buffer);)i.push(o.index),r.push(o.index+o[0].length),e.position<=o.index&&a<0&&(a=r.length-2);a<0&&(a=r.length-1);var s="",l,c,u=Math.min(e.line+t.linesAfter,i.length).toString().length,d=t.maxLength-(t.indent+u+3);for(l=1;l<=t.linesBefore&&!(a-l<0);l++)c=FN(e.buffer,r[a-l],i[a-l],e.position-(r[a]-r[a-l]),d),s=fl.repeat(" ",t.indent)+jN((e.line-l+1).toString(),u)+" | "+c.str+`
|
||
`+s;for(c=FN(e.buffer,r[a],i[a],e.position,d),s+=fl.repeat(" ",t.indent)+jN((e.line+1).toString(),u)+" | "+c.str+`
|
||
`,s+=fl.repeat("-",t.indent+u+3+c.pos)+`^
|
||
`,l=1;l<=t.linesAfter&&!(a+l>=i.length);l++)c=FN(e.buffer,r[a+l],i[a+l],e.position-(r[a]-r[a+l]),d),s+=fl.repeat(" ",t.indent)+jN((e.line+l+1).toString(),u)+" | "+c.str+`
|
||
`;return s.replace(/\n$/,"")}var Rrn=$rn,Arn=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Nrn=["scalar","sequence","mapping"];function Drn(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}function Lrn(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(Arn.indexOf(n)===-1)throw new Uh('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(n){return n},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=Drn(t.styleAliases||null),Nrn.indexOf(this.kind)===-1)throw new Uh('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Us=Lrn;function xce(e,t){var n=[];return e[t].forEach(function(r){var i=n.length;n.forEach(function(o,a){o.tag===r.tag&&o.kind===r.kind&&o.multi===r.multi&&(i=a)}),n[i]=r}),n}function Frn(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(r);return e}function iH(e){return this.extend(e)}iH.prototype.extend=function(t){var n=[],r=[];if(t instanceof Us)r.push(t);else if(Array.isArray(t))r=r.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(n=n.concat(t.implicit)),t.explicit&&(r=r.concat(t.explicit));else throw new Uh("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(o){if(!(o instanceof Us))throw new Uh("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new Uh("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(o.multi)throw new Uh("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(o){if(!(o instanceof Us))throw new Uh("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(iH.prototype);return i.implicit=(this.implicit||[]).concat(n),i.explicit=(this.explicit||[]).concat(r),i.compiledImplicit=xce(i,"implicit"),i.compiledExplicit=xce(i,"explicit"),i.compiledTypeMap=Frn(i.compiledImplicit,i.compiledExplicit),i};var jrn=iH,Brn=new Us("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),Hrn=new Us("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),zrn=new Us("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),Urn=new jrn({explicit:[Brn,Hrn,zrn]});function Wrn(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function Vrn(){return null}function Krn(e){return e===null}var qrn=new Us("tag:yaml.org,2002:null",{kind:"scalar",resolve:Wrn,construct:Vrn,predicate:Krn,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Grn(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function Yrn(e){return e==="true"||e==="True"||e==="TRUE"}function Xrn(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var Qrn=new Us("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Grn,construct:Yrn,predicate:Xrn,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function Zrn(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function Jrn(e){return 48<=e&&e<=55}function ein(e){return 48<=e&&e<=57}function tin(e){if(e===null)return!1;var t=e.length,n=0,r=!1,i;if(!t)return!1;if(i=e[n],(i==="-"||i==="+")&&(i=e[++n]),i==="0"){if(n+1===t)return!0;if(i=e[++n],i==="b"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(i!=="0"&&i!=="1")return!1;r=!0}return r&&i!=="_"}if(i==="x"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(!Zrn(e.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}if(i==="o"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(!Jrn(e.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}}if(i==="_")return!1;for(;n<t;n++)if(i=e[n],i!=="_"){if(!ein(e.charCodeAt(n)))return!1;r=!0}return!(!r||i==="_")}function nin(e){var t=e,n=1,r;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),r=t[0],(r==="-"||r==="+")&&(r==="-"&&(n=-1),t=t.slice(1),r=t[0]),t==="0")return 0;if(r==="0"){if(t[1]==="b")return n*parseInt(t.slice(2),2);if(t[1]==="x")return n*parseInt(t.slice(2),16);if(t[1]==="o")return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function rin(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!fl.isNegativeZero(e)}var iin=new Us("tag:yaml.org,2002:int",{kind:"scalar",resolve:tin,construct:nin,predicate:rin,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),oin=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function ain(e){return!(e===null||!oin.test(e)||e[e.length-1]==="_")}function sin(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var lin=/^[-+]?[0-9]+e/;function cin(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(fl.isNegativeZero(e))return"-0.0";return n=e.toString(10),lin.test(n)?n.replace("e",".e"):n}function uin(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||fl.isNegativeZero(e))}var din=new Us("tag:yaml.org,2002:float",{kind:"scalar",resolve:ain,construct:sin,predicate:uin,represent:cin,defaultStyle:"lowercase"}),fin=Urn.extend({implicit:[qrn,Qrn,iin,din]}),hin=fin,e8e=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),t8e=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function pin(e){return e===null?!1:e8e.exec(e)!==null||t8e.exec(e)!==null}function min(e){var t,n,r,i,o,a,s,l=0,c=null,u,d,h;if(t=e8e.exec(e),t===null&&(t=t8e.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(o=+t[4],a=+t[5],s=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(u=+t[10],d=+(t[11]||0),c=(u*60+d)*6e4,t[9]==="-"&&(c=-c)),h=new Date(Date.UTC(n,r,i,o,a,s,l)),c&&h.setTime(h.getTime()-c),h}function gin(e){return e.toISOString()}var vin=new Us("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:pin,construct:min,instanceOf:Date,represent:gin});function yin(e){return e==="<<"||e===null}var bin=new Us("tag:yaml.org,2002:merge",{kind:"scalar",resolve:yin}),Nq=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
||
\r`;function Sin(e){if(e===null)return!1;var t,n,r=0,i=e.length,o=Nq;for(n=0;n<i;n++)if(t=o.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;r+=6}return r%8===0}function Cin(e){var t,n,r=e.replace(/[\r\n=]/g,""),i=r.length,o=Nq,a=0,s=[];for(t=0;t<i;t++)t%4===0&&t&&(s.push(a>>16&255),s.push(a>>8&255),s.push(a&255)),a=a<<6|o.indexOf(r.charAt(t));return n=i%4*6,n===0?(s.push(a>>16&255),s.push(a>>8&255),s.push(a&255)):n===18?(s.push(a>>10&255),s.push(a>>2&255)):n===12&&s.push(a>>4&255),new Uint8Array(s)}function xin(e){var t="",n=0,r,i,o=e.length,a=Nq;for(r=0;r<o;r++)r%3===0&&r&&(t+=a[n>>18&63],t+=a[n>>12&63],t+=a[n>>6&63],t+=a[n&63]),n=(n<<8)+e[r];return i=o%3,i===0?(t+=a[n>>18&63],t+=a[n>>12&63],t+=a[n>>6&63],t+=a[n&63]):i===2?(t+=a[n>>10&63],t+=a[n>>4&63],t+=a[n<<2&63],t+=a[64]):i===1&&(t+=a[n>>2&63],t+=a[n<<4&63],t+=a[64],t+=a[64]),t}function win(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var _in=new Us("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Sin,construct:Cin,predicate:win,represent:xin}),Ein=Object.prototype.hasOwnProperty,Tin=Object.prototype.toString;function kin(e){if(e===null)return!0;var t=[],n,r,i,o,a,s=e;for(n=0,r=s.length;n<r;n+=1){if(i=s[n],a=!1,Tin.call(i)!=="[object Object]")return!1;for(o in i)if(Ein.call(i,o))if(!a)a=!0;else return!1;if(!a)return!1;if(t.indexOf(o)===-1)t.push(o);else return!1}return!0}function Oin(e){return e!==null?e:[]}var Pin=new Us("tag:yaml.org,2002:omap",{kind:"sequence",resolve:kin,construct:Oin}),Min=Object.prototype.toString;function Iin(e){if(e===null)return!0;var t,n,r,i,o,a=e;for(o=new Array(a.length),t=0,n=a.length;t<n;t+=1){if(r=a[t],Min.call(r)!=="[object Object]"||(i=Object.keys(r),i.length!==1))return!1;o[t]=[i[0],r[i[0]]]}return!0}function $in(e){if(e===null)return[];var t,n,r,i,o,a=e;for(o=new Array(a.length),t=0,n=a.length;t<n;t+=1)r=a[t],i=Object.keys(r),o[t]=[i[0],r[i[0]]];return o}var Rin=new Us("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Iin,construct:$in}),Ain=Object.prototype.hasOwnProperty;function Nin(e){if(e===null)return!0;var t,n=e;for(t in n)if(Ain.call(n,t)&&n[t]!==null)return!1;return!0}function Din(e){return e!==null?e:{}}var Lin=new Us("tag:yaml.org,2002:set",{kind:"mapping",resolve:Nin,construct:Din}),Fin=hin.extend({implicit:[vin,bin],explicit:[_in,Pin,Rin,Lin]}),cg=Object.prototype.hasOwnProperty,Hk=1,n8e=2,r8e=3,zk=4,BN=1,jin=2,wce=3,Bin=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Hin=/[\x85\u2028\u2029]/,zin=/[,\[\]\{\}]/,i8e=/^(?:!|!!|![a-z\-]+!)$/i,o8e=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _ce(e){return Object.prototype.toString.call(e)}function Wf(e){return e===10||e===13}function ov(e){return e===9||e===32}function Hl(e){return e===9||e===32||e===10||e===13}function Yy(e){return e===44||e===91||e===93||e===123||e===125}function Uin(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function Win(e){return e===120?2:e===117?4:e===85?8:0}function Vin(e){return 48<=e&&e<=57?e-48:-1}function Ece(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
||
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"
":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function Kin(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var a8e=new Array(256),s8e=new Array(256);for(var my=0;my<256;my++)a8e[my]=Ece(my)?1:0,s8e[my]=Ece(my);function qin(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Fin,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function l8e(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=Rrn(n),new Uh(t,n)}function Sr(e,t){throw l8e(e,t)}function Uk(e,t){e.onWarning&&e.onWarning.call(null,l8e(e,t))}var Tce={YAML:function(t,n,r){var i,o,a;t.version!==null&&Sr(t,"duplication of %YAML directive"),r.length!==1&&Sr(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),i===null&&Sr(t,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),a=parseInt(i[2],10),o!==1&&Sr(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&Uk(t,"unsupported YAML version of the document")},TAG:function(t,n,r){var i,o;r.length!==2&&Sr(t,"TAG directive accepts exactly two arguments"),i=r[0],o=r[1],i8e.test(i)||Sr(t,"ill-formed tag handle (first argument) of the TAG directive"),cg.call(t.tagMap,i)&&Sr(t,'there is a previously declared suffix for "'+i+'" tag handle'),o8e.test(o)||Sr(t,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{Sr(t,"tag prefix is malformed: "+o)}t.tagMap[i]=o}};function Zm(e,t,n,r){var i,o,a,s;if(t<n){if(s=e.input.slice(t,n),r)for(i=0,o=s.length;i<o;i+=1)a=s.charCodeAt(i),a===9||32<=a&&a<=1114111||Sr(e,"expected valid JSON character");else Bin.test(s)&&Sr(e,"the stream contains non-printable characters");e.result+=s}}function kce(e,t,n,r){var i,o,a,s;for(fl.isObject(n)||Sr(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(n),a=0,s=i.length;a<s;a+=1)o=i[a],cg.call(t,o)||(t[o]=n[o],r[o]=!0)}function Xy(e,t,n,r,i,o,a,s,l){var c,u;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),c=0,u=i.length;c<u;c+=1)Array.isArray(i[c])&&Sr(e,"nested arrays are not supported inside keys"),typeof i=="object"&&_ce(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&_ce(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(c=0,u=o.length;c<u;c+=1)kce(e,t,o[c],n);else kce(e,t,o,n);else!e.json&&!cg.call(n,i)&&cg.call(t,i)&&(e.line=a||e.line,e.lineStart=s||e.lineStart,e.position=l||e.position,Sr(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:o}):t[i]=o,delete n[i];return t}function Dq(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):Sr(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Oa(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);i!==0;){for(;ov(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(Wf(i))for(Dq(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&r!==0&&e.lineIndent<n&&Uk(e,"deficient indentation"),r}function mI(e){var t=e.position,n;return n=e.input.charCodeAt(t),!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||Hl(n)))}function Lq(e,t){t===1?e.result+=" ":t>1&&(e.result+=fl.repeat(`
|
||
`,t-1))}function Gin(e,t,n){var r,i,o,a,s,l,c,u,d=e.kind,h=e.result,p;if(p=e.input.charCodeAt(e.position),Hl(p)||Yy(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(i=e.input.charCodeAt(e.position+1),Hl(i)||n&&Yy(i)))return!1;for(e.kind="scalar",e.result="",o=a=e.position,s=!1;p!==0;){if(p===58){if(i=e.input.charCodeAt(e.position+1),Hl(i)||n&&Yy(i))break}else if(p===35){if(r=e.input.charCodeAt(e.position-1),Hl(r))break}else{if(e.position===e.lineStart&&mI(e)||n&&Yy(p))break;if(Wf(p))if(l=e.line,c=e.lineStart,u=e.lineIndent,Oa(e,!1,-1),e.lineIndent>=t){s=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=l,e.lineStart=c,e.lineIndent=u;break}}s&&(Zm(e,o,a,!1),Lq(e,e.line-l),o=a=e.position,s=!1),ov(p)||(a=e.position+1),p=e.input.charCodeAt(++e.position)}return Zm(e,o,a,!1),e.result?!0:(e.kind=d,e.result=h,!1)}function Yin(e,t){var n,r,i;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(Zm(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,i=e.position;else return!0;else Wf(n)?(Zm(e,r,i,!0),Lq(e,Oa(e,!1,t)),r=i=e.position):e.position===e.lineStart&&mI(e)?Sr(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);Sr(e,"unexpected end of the stream within a single quoted scalar")}function Xin(e,t){var n,r,i,o,a,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return Zm(e,n,e.position,!0),e.position++,!0;if(s===92){if(Zm(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),Wf(s))Oa(e,!1,t);else if(s<256&&a8e[s])e.result+=s8e[s],e.position++;else if((a=Win(s))>0){for(i=a,o=0;i>0;i--)s=e.input.charCodeAt(++e.position),(a=Uin(s))>=0?o=(o<<4)+a:Sr(e,"expected hexadecimal character");e.result+=Kin(o),e.position++}else Sr(e,"unknown escape sequence");n=r=e.position}else Wf(s)?(Zm(e,n,r,!0),Lq(e,Oa(e,!1,t)),n=r=e.position):e.position===e.lineStart&&mI(e)?Sr(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}Sr(e,"unexpected end of the stream within a double quoted scalar")}function Qin(e,t){var n=!0,r,i,o,a=e.tag,s,l=e.anchor,c,u,d,h,p,m=Object.create(null),v,y,S,b;if(b=e.input.charCodeAt(e.position),b===91)u=93,p=!1,s=[];else if(b===123)u=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),b=e.input.charCodeAt(++e.position);b!==0;){if(Oa(e,!0,t),b=e.input.charCodeAt(e.position),b===u)return e.position++,e.tag=a,e.anchor=l,e.kind=p?"mapping":"sequence",e.result=s,!0;n?b===44&&Sr(e,"expected the node content, but found ','"):Sr(e,"missed comma between flow collection entries"),y=v=S=null,d=h=!1,b===63&&(c=e.input.charCodeAt(e.position+1),Hl(c)&&(d=h=!0,e.position++,Oa(e,!0,t))),r=e.line,i=e.lineStart,o=e.position,OS(e,t,Hk,!1,!0),y=e.tag,v=e.result,Oa(e,!0,t),b=e.input.charCodeAt(e.position),(h||e.line===r)&&b===58&&(d=!0,b=e.input.charCodeAt(++e.position),Oa(e,!0,t),OS(e,t,Hk,!1,!0),S=e.result),p?Xy(e,s,m,y,v,S,r,i,o):d?s.push(Xy(e,null,m,y,v,S,r,i,o)):s.push(v),Oa(e,!0,t),b=e.input.charCodeAt(e.position),b===44?(n=!0,b=e.input.charCodeAt(++e.position)):n=!1}Sr(e,"unexpected end of the stream within a flow collection")}function Zin(e,t){var n,r,i=BN,o=!1,a=!1,s=t,l=0,c=!1,u,d;if(d=e.input.charCodeAt(e.position),d===124)r=!1;else if(d===62)r=!0;else return!1;for(e.kind="scalar",e.result="";d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)BN===i?i=d===43?wce:jin:Sr(e,"repeat of a chomping mode identifier");else if((u=Vin(d))>=0)u===0?Sr(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?Sr(e,"repeat of an indentation width identifier"):(s=t+u-1,a=!0);else break;if(ov(d)){do d=e.input.charCodeAt(++e.position);while(ov(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!Wf(d)&&d!==0)}for(;d!==0;){for(Dq(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!a||e.lineIndent<s)&&d===32;)e.lineIndent++,d=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>s&&(s=e.lineIndent),Wf(d)){l++;continue}if(e.lineIndent<s){i===wce?e.result+=fl.repeat(`
|
||
`,o?1+l:l):i===BN&&o&&(e.result+=`
|
||
`);break}for(r?ov(d)?(c=!0,e.result+=fl.repeat(`
|
||
`,o?1+l:l)):c?(c=!1,e.result+=fl.repeat(`
|
||
`,l+1)):l===0?o&&(e.result+=" "):e.result+=fl.repeat(`
|
||
`,l):e.result+=fl.repeat(`
|
||
`,o?1+l:l),o=!0,a=!0,l=0,n=e.position;!Wf(d)&&d!==0;)d=e.input.charCodeAt(++e.position);Zm(e,n,e.position,!1)}return!0}function Oce(e,t){var n,r=e.tag,i=e.anchor,o=[],a,s=!1,l;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),l=e.input.charCodeAt(e.position);l!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Sr(e,"tab characters must not be used in indentation")),!(l!==45||(a=e.input.charCodeAt(e.position+1),!Hl(a))));){if(s=!0,e.position++,Oa(e,!0,-1)&&e.lineIndent<=t){o.push(null),l=e.input.charCodeAt(e.position);continue}if(n=e.line,OS(e,t,r8e,!1,!0),o.push(e.result),Oa(e,!0,-1),l=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&l!==0)Sr(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return s?(e.tag=r,e.anchor=i,e.kind="sequence",e.result=o,!0):!1}function Jin(e,t,n){var r,i,o,a,s,l,c=e.tag,u=e.anchor,d={},h=Object.create(null),p=null,m=null,v=null,y=!1,S=!1,b;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=d),b=e.input.charCodeAt(e.position);b!==0;){if(!y&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Sr(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),o=e.line,(b===63||b===58)&&Hl(r))b===63?(y&&(Xy(e,d,h,p,m,null,a,s,l),p=m=v=null),S=!0,y=!0,i=!0):y?(y=!1,i=!0):Sr(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,b=r;else{if(a=e.line,s=e.lineStart,l=e.position,!OS(e,n,n8e,!1,!0))break;if(e.line===o){for(b=e.input.charCodeAt(e.position);ov(b);)b=e.input.charCodeAt(++e.position);if(b===58)b=e.input.charCodeAt(++e.position),Hl(b)||Sr(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(Xy(e,d,h,p,m,null,a,s,l),p=m=v=null),S=!0,y=!1,i=!1,p=e.tag,m=e.result;else if(S)Sr(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=u,!0}else if(S)Sr(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=u,!0}if((e.line===o||e.lineIndent>t)&&(y&&(a=e.line,s=e.lineStart,l=e.position),OS(e,t,zk,!0,i)&&(y?m=e.result:v=e.result),y||(Xy(e,d,h,p,m,v,a,s,l),p=m=v=null),Oa(e,!0,-1),b=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>t)&&b!==0)Sr(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&Xy(e,d,h,p,m,null,a,s,l),S&&(e.tag=c,e.anchor=u,e.kind="mapping",e.result=d),S}function eon(e){var t,n=!1,r=!1,i,o,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&Sr(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(n=!0,a=e.input.charCodeAt(++e.position)):a===33?(r=!0,i="!!",a=e.input.charCodeAt(++e.position)):i="!",t=e.position,n){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(o=e.input.slice(t,e.position),a=e.input.charCodeAt(++e.position)):Sr(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!Hl(a);)a===33&&(r?Sr(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),i8e.test(i)||Sr(e,"named tag handle cannot contain such characters"),r=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);o=e.input.slice(t,e.position),zin.test(o)&&Sr(e,"tag suffix cannot contain flow indicator characters")}o&&!o8e.test(o)&&Sr(e,"tag name cannot contain such characters: "+o);try{o=decodeURIComponent(o)}catch{Sr(e,"tag name is malformed: "+o)}return n?e.tag=o:cg.call(e.tagMap,i)?e.tag=e.tagMap[i]+o:i==="!"?e.tag="!"+o:i==="!!"?e.tag="tag:yaml.org,2002:"+o:Sr(e,'undeclared tag handle "'+i+'"'),!0}function ton(e){var t,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&Sr(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!Hl(n)&&!Yy(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&Sr(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function non(e){var t,n,r;if(r=e.input.charCodeAt(e.position),r!==42)return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Hl(r)&&!Yy(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&Sr(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),cg.call(e.anchorMap,n)||Sr(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],Oa(e,!0,-1),!0}function OS(e,t,n,r,i){var o,a,s,l=1,c=!1,u=!1,d,h,p,m,v,y;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=a=s=zk===n||r8e===n,r&&Oa(e,!0,-1)&&(c=!0,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)),l===1)for(;eon(e)||ton(e);)Oa(e,!0,-1)?(c=!0,s=o,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)):s=!1;if(s&&(s=c||i),(l===1||zk===n)&&(Hk===n||n8e===n?v=t:v=t+1,y=e.position-e.lineStart,l===1?s&&(Oce(e,y)||Jin(e,y,v))||Qin(e,v)?u=!0:(a&&Zin(e,v)||Yin(e,v)||Xin(e,v)?u=!0:non(e)?(u=!0,(e.tag!==null||e.anchor!==null)&&Sr(e,"alias node should not have any properties")):Gin(e,v,Hk===n)&&(u=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):l===0&&(u=s&&Oce(e,y))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&Sr(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),d=0,h=e.implicitTypes.length;d<h;d+=1)if(m=e.implicitTypes[d],m.resolve(e.result)){e.result=m.construct(e.result),e.tag=m.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(cg.call(e.typeMap[e.kind||"fallback"],e.tag))m=e.typeMap[e.kind||"fallback"][e.tag];else for(m=null,p=e.typeMap.multi[e.kind||"fallback"],d=0,h=p.length;d<h;d+=1)if(e.tag.slice(0,p[d].tag.length)===p[d].tag){m=p[d];break}m||Sr(e,"unknown tag !<"+e.tag+">"),e.result!==null&&m.kind!==e.kind&&Sr(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+m.kind+'", not "'+e.kind+'"'),m.resolve(e.result,e.tag)?(e.result=m.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):Sr(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||u}function ron(e){var t=e.position,n,r,i,o=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(a=e.input.charCodeAt(e.position))!==0&&(Oa(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(o=!0,a=e.input.charCodeAt(++e.position),n=e.position;a!==0&&!Hl(a);)a=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),i=[],r.length<1&&Sr(e,"directive name must not be less than one character in length");a!==0;){for(;ov(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!Wf(a));break}if(Wf(a))break;for(n=e.position;a!==0&&!Hl(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}a!==0&&Dq(e),cg.call(Tce,r)?Tce[r](e,r,i):Uk(e,'unknown document directive "'+r+'"')}if(Oa(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Oa(e,!0,-1)):o&&Sr(e,"directives end mark is expected"),OS(e,e.lineIndent-1,zk,!1,!0),Oa(e,!0,-1),e.checkLineBreaks&&Hin.test(e.input.slice(t,e.position))&&Uk(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&mI(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Oa(e,!0,-1));return}if(e.position<e.length-1)Sr(e,"end of the stream or a document separator is expected");else return}function c8e(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
||
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new qin(e,t),r=e.indexOf("\0");for(r!==-1&&(n.position=r,Sr(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)ron(n);return n.documents}function ion(e,t,n){t!==null&&typeof t=="object"&&typeof n>"u"&&(n=t,t=null);var r=c8e(e,n);if(typeof t!="function")return r;for(var i=0,o=r.length;i<o;i+=1)t(r[i])}function oon(e,t){var n=c8e(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new Uh("expected a single document in the stream, but found more")}}var aon=ion,son=oon,lon={loadAll:aon,load:son},con=lon.load,u8e={exports:{}};(function(e){(function(){var t;t=e.exports=i,t.format=i,t.vsprintf=r,typeof console<"u"&&typeof console.log=="function"&&(t.printf=n);function n(){console.log(i.apply(null,arguments))}function r(o,a){return i.apply(null,[o].concat(a))}function i(o){for(var a=1,s=[].slice.call(arguments),l=0,c=o.length,u="",d,h=!1,p,m,v=!1,y,S=function(){return s[a++]},b=function(){for(var C="";/\d/.test(o[l]);)C+=o[l++],d=o[l];return C.length>0?parseInt(C):null};l<c;++l)if(d=o[l],h)switch(h=!1,d=="."?(v=!1,d=o[++l]):d=="0"&&o[l+1]=="."?(v=!0,l+=2,d=o[l]):v=!0,y=b(),d){case"b":u+=parseInt(S(),10).toString(2);break;case"c":p=S(),typeof p=="string"||p instanceof String?u+=p:u+=String.fromCharCode(parseInt(p,10));break;case"d":u+=parseInt(S(),10);break;case"f":m=String(parseFloat(S()).toFixed(y||6)),u+=v?m:m.replace(/^0/,"");break;case"j":u+=JSON.stringify(S());break;case"o":u+="0"+parseInt(S(),10).toString(8);break;case"s":u+=S();break;case"x":u+="0x"+parseInt(S(),10).toString(16);break;case"X":u+="0x"+parseInt(S(),10).toString(16).toUpperCase();break;default:u+=d;break}else d==="%"?h=!0:u+=d;return u}})()})(u8e);var uon=u8e.exports;const don=vi(uon),z5=Object.assign(n1(Error),{eval:n1(EvalError),range:n1(RangeError),reference:n1(ReferenceError),syntax:n1(SyntaxError),type:n1(TypeError),uri:n1(URIError)});function n1(e){return t.displayName=e.displayName||e.name,t;function t(n,...r){const i=n&&don(n,...r);return new e(i)}}const U5={}.hasOwnProperty,Pce={yaml:"-",toml:"+"};function Fq(e){const t=[];let n=-1;const r=Array.isArray(e)?e:e?[e]:["yaml"];for(;++n<r.length;)t[n]=fon(r[n]);return t}function fon(e){let t=e;if(typeof t=="string"){if(!U5.call(Pce,t))throw z5("Missing matter definition for `%s`",t);t={type:t,marker:Pce[t]}}else if(typeof t!="object")throw z5("Expected matter to be an object, not `%j`",t);if(!U5.call(t,"type"))throw z5("Missing `type` in matter `%j`",t);if(!U5.call(t,"fence")&&!U5.call(t,"marker"))throw z5("Missing `marker` or `fence` in matter `%j`",t);return t}function hon(e){const t=Fq(e),n={};let r=-1;for(;++r<t.length;){const i=t[r],o=oH(i,"open").charCodeAt(0),a=pon(i),s=n[o];Array.isArray(s)?s.push(a):n[o]=[a]}return{flow:n}}function pon(e){const t=e.anywhere,n=e.type,r=n+"Fence",i=r+"Sequence",o=n+"Value",a={tokenize:u,partial:!0};let s,l=0;return{tokenize:c,concrete:!0};function c(d,h,p){const m=this;return v;function v(E){const k=m.now();return k.column===1&&(k.line===1||t)&&(s=oH(e,"open"),l=0,E===s.charCodeAt(l))?(d.enter(n),d.enter(r),d.enter(i),y(E)):p(E)}function y(E){return l===s.length?(d.exit(i),Zr(E)?(d.enter("whitespace"),S(E)):b(E)):E===s.charCodeAt(l++)?(d.consume(E),y):p(E)}function S(E){return Zr(E)?(d.consume(E),S):(d.exit("whitespace"),b(E))}function b(E){return br(E)?(d.exit(r),d.enter("lineEnding"),d.consume(E),d.exit("lineEnding"),s=oH(e,"close"),l=0,d.attempt(a,x,C)):p(E)}function C(E){return E===null||br(E)?T(E):(d.enter(o),_(E))}function _(E){return E===null||br(E)?(d.exit(o),T(E)):(d.consume(E),_)}function T(E){return E===null?p(E):(d.enter("lineEnding"),d.consume(E),d.exit("lineEnding"),d.attempt(a,x,C))}function x(E){return d.exit(n),h(E)}}function u(d,h,p){let m=0;return v;function v(C){return C===s.charCodeAt(m)?(d.enter(r),d.enter(i),y(C)):p(C)}function y(C){return m===s.length?(d.exit(i),Zr(C)?(d.enter("whitespace"),S(C)):b(C)):C===s.charCodeAt(m++)?(d.consume(C),y):p(C)}function S(C){return Zr(C)?(d.consume(C),S):(d.exit("whitespace"),b(C))}function b(C){return C===null||br(C)?(d.exit(r),h(C)):p(C)}}}function oH(e,t){return e.marker?Mce(e.marker,t).repeat(3):Mce(e.fence,t)}function Mce(e,t){return typeof e=="string"?e:e[t]}function mon(e){const t=Fq(e),n={},r={};let i=-1;for(;++i<t.length;){const o=t[i];n[o.type]=gon(o),r[o.type]=von,r[o.type+"Value"]=yon}return{enter:n,exit:r}}function gon(e){return t;function t(n){this.enter({type:e.type,value:""},n),this.buffer()}}function von(e){const t=this.resume(),n=this.exit(e);n.value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}function yon(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function bon(e){const t=[],n={},r=Fq(e);let i=-1;for(;++i<r.length;){const o=r[i];n[o.type]=Son(o),t.push({atBreak:!0,character:aH(o,"open").charAt(0)})}return{unsafe:t,handlers:n}}function Son(e){const t=aH(e,"open"),n=aH(e,"close");return r;function r(i){return t+(i.value?`
|
||
`+i.value:"")+`
|
||
`+n}}function aH(e,t){return e.marker?Ice(e.marker,t).repeat(3):Ice(e.fence,t)}function Ice(e,t){return typeof e=="string"?e:e[t]}function Con(e="yaml"){const t=this.data();n("micromarkExtensions",hon(e)),n("fromMarkdownExtensions",mon(e)),n("toMarkdownExtensions",bon(e));function n(r,i){(t[r]?t[r]:t[r]=[]).push(i)}}function xon({onError:e}={}){return{remark:t=>t.use(Con).use(()=>(n,r)=>{const i=n.children[0];if((i==null?void 0:i.type)==="yaml")try{r.frontmatter=con(i.value)}catch(o){e==null||e(o)}})}}const won={ChartGraph:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linejoin="round" stroke-width="4" d="M17 6h14v9H17zM6 33h14v9H6zM28 33h14v9H28z"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M24 16v8M13 33v-9h22v9"/></svg>'},_on="Entity relationship diagram",Eon="Flow chart",Ton="Gantt chart",kon="Mermaid diagrams",Oon="Mindmaps",Pon="Pie chart",Mon="Sequence diagram",Ion="State diagram",$on="Timeline",Ron="User journey diagram",Aon={class:"Class diagram",er:_on,flowchart:Eon,gantt:Ton,mermaid:kon,mindmap:Oon,pie:Pon,sequence:Mon,state:Ion,timeline:$on,uj:Ron};function d8e({locale:e,...t}={}){const n={...Aon,...e};let r;const i=[{title:n.flowchart,code:`graph TD
|
||
Start --> Stop`},{title:n.sequence,code:`sequenceDiagram
|
||
Alice->>John: Hello John, how are you?
|
||
John-->>Alice: Great!
|
||
Alice-)John: See you later!`},{title:n.class,code:`classDiagram
|
||
Animal <|-- Duck
|
||
Animal <|-- Fish
|
||
Animal <|-- Zebra
|
||
Animal : +int age
|
||
Animal : +String gender
|
||
Animal: +isMammal()
|
||
Animal: +mate()
|
||
class Duck{
|
||
+String beakColor
|
||
+swim()
|
||
+quack()
|
||
}
|
||
class Fish{
|
||
-int sizeInFeet
|
||
-canEat()
|
||
}
|
||
class Zebra{
|
||
+bool is_wild
|
||
+run()
|
||
}`},{title:n.state,code:`stateDiagram-v2
|
||
[*] --> Still
|
||
Still --> [*]
|
||
|
||
Still --> Moving
|
||
Moving --> Still
|
||
Moving --> Crash
|
||
Crash --> [*]`},{title:n.er,code:`erDiagram
|
||
CUSTOMER ||--o{ ORDER : places
|
||
ORDER ||--|{ LINE-ITEM : contains
|
||
CUSTOMER }|..|{ DELIVERY-ADDRESS : uses`},{title:n.uj,code:`journey
|
||
title My working day
|
||
section Go to work
|
||
Make tea: 5: Me
|
||
Go upstairs: 3: Me
|
||
Do work: 1: Me, Cat
|
||
section Go home
|
||
Go downstairs: 5: Me
|
||
Sit down: 5: Me`},{title:n.gantt,code:`gantt
|
||
title A Gantt Diagram
|
||
dateFormat YYYY-MM-DD
|
||
section Section
|
||
A task :a1, 2014-01-01, 30d
|
||
Another task :after a1 , 20d
|
||
section Another
|
||
Task in sec :2014-01-12 , 12d
|
||
another task : 24d`},{title:n.pie,code:`pie title Pets adopted by volunteers
|
||
"Dogs" : 386
|
||
"Cats" : 85
|
||
"Rats" : 15`},{title:n.mindmap,code:`mindmap
|
||
Root
|
||
A
|
||
B
|
||
C
|
||
`},{title:n.timeline,code:`timeline
|
||
title History of Social Media Platform
|
||
2002 : LinkedIn
|
||
2004 : Facebook
|
||
: Google
|
||
2005 : Youtube
|
||
2006 : Twitter
|
||
`}];return{viewerEffect({markdownBody:o}){(async()=>{const a=o.querySelectorAll("pre>code.language-mermaid");a.length!==0&&(r||(r=await $z(()=>import("./mermaid.core-DO_s7ZFp.js").then(s=>s.au),[]).then(s=>s.default),t&&r.initialize(t)),a.forEach((s,l)=>{const c=s.parentElement,u=s.innerText,d=document.createElement("div");d.classList.add("bytemd-mermaid"),d.style.lineHeight="initial",c.replaceWith(d),r.render(`bytemd-mermaid-${Date.now()}-${l}`,u,d).then(h=>{d.innerHTML=h.svg}).catch(h=>{})}))})()},actions:[{title:n.mermaid,icon:won.ChartGraph,cheatsheet:"```mermaid",handler:{type:"dropdown",actions:i.map(({title:o,code:a})=>({title:o,handler:{type:"action",click({editor:s,appendBlock:l,codemirror:c}){const{line:u}=l("```mermaid\n"+a+"\n```");s.setSelection(c.Pos(u+1,0),c.Pos(u+a.split(`
|
||
`).length)),s.focus()}}})),...n}}]}}const $ce={100:"💯",1234:"🔢",grinning:"😀",smiley:"😃",smile:"😄",grin:"😁",laughing:"😆",satisfied:"😆",sweat_smile:"😅",rofl:"🤣",joy:"😂",slightly_smiling_face:"🙂",upside_down_face:"🙃",wink:"😉",blush:"😊",innocent:"😇",smiling_face_with_three_hearts:"🥰",heart_eyes:"😍",star_struck:"🤩",kissing_heart:"😘",kissing:"😗",relaxed:"☺️",kissing_closed_eyes:"😚",kissing_smiling_eyes:"😙",smiling_face_with_tear:"🥲",yum:"😋",stuck_out_tongue:"😛",stuck_out_tongue_winking_eye:"😜",zany_face:"🤪",stuck_out_tongue_closed_eyes:"😝",money_mouth_face:"🤑",hugs:"🤗",hand_over_mouth:"🤭",shushing_face:"🤫",thinking:"🤔",zipper_mouth_face:"🤐",raised_eyebrow:"🤨",neutral_face:"😐",expressionless:"😑",no_mouth:"😶",face_in_clouds:"😶🌫️",smirk:"😏",unamused:"😒",roll_eyes:"🙄",grimacing:"😬",face_exhaling:"😮💨",lying_face:"🤥",relieved:"😌",pensive:"😔",sleepy:"😪",drooling_face:"🤤",sleeping:"😴",mask:"😷",face_with_thermometer:"🤒",face_with_head_bandage:"🤕",nauseated_face:"🤢",vomiting_face:"🤮",sneezing_face:"🤧",hot_face:"🥵",cold_face:"🥶",woozy_face:"🥴",dizzy_face:"😵",face_with_spiral_eyes:"😵💫",exploding_head:"🤯",cowboy_hat_face:"🤠",partying_face:"🥳",disguised_face:"🥸",sunglasses:"😎",nerd_face:"🤓",monocle_face:"🧐",confused:"😕",worried:"😟",slightly_frowning_face:"🙁",frowning_face:"☹️",open_mouth:"😮",hushed:"😯",astonished:"😲",flushed:"😳",pleading_face:"🥺",frowning:"😦",anguished:"😧",fearful:"😨",cold_sweat:"😰",disappointed_relieved:"😥",cry:"😢",sob:"😭",scream:"😱",confounded:"😖",persevere:"😣",disappointed:"😞",sweat:"😓",weary:"😩",tired_face:"😫",yawning_face:"🥱",triumph:"😤",rage:"😡",pout:"😡",angry:"😠",cursing_face:"🤬",smiling_imp:"😈",imp:"👿",skull:"💀",skull_and_crossbones:"☠️",hankey:"💩",poop:"💩",shit:"💩",clown_face:"🤡",japanese_ogre:"👹",japanese_goblin:"👺",ghost:"👻",alien:"👽",space_invader:"👾",robot:"🤖",smiley_cat:"😺",smile_cat:"😸",joy_cat:"😹",heart_eyes_cat:"😻",smirk_cat:"😼",kissing_cat:"😽",scream_cat:"🙀",crying_cat_face:"😿",pouting_cat:"😾",see_no_evil:"🙈",hear_no_evil:"🙉",speak_no_evil:"🙊",kiss:"💋",love_letter:"💌",cupid:"💘",gift_heart:"💝",sparkling_heart:"💖",heartpulse:"💗",heartbeat:"💓",revolving_hearts:"💞",two_hearts:"💕",heart_decoration:"💟",heavy_heart_exclamation:"❣️",broken_heart:"💔",heart_on_fire:"❤️🔥",mending_heart:"❤️🩹",heart:"❤️",orange_heart:"🧡",yellow_heart:"💛",green_heart:"💚",blue_heart:"💙",purple_heart:"💜",brown_heart:"🤎",black_heart:"🖤",white_heart:"🤍",anger:"💢",boom:"💥",collision:"💥",dizzy:"💫",sweat_drops:"💦",dash:"💨",hole:"🕳️",bomb:"💣",speech_balloon:"💬",eye_speech_bubble:"👁️🗨️",left_speech_bubble:"🗨️",right_anger_bubble:"🗯️",thought_balloon:"💭",zzz:"💤",wave:"👋",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐️",hand:"✋",raised_hand:"✋",vulcan_salute:"🖖",ok_hand:"👌",pinched_fingers:"🤌",pinching_hand:"🤏",v:"✌️",crossed_fingers:"🤞",love_you_gesture:"🤟",metal:"🤘",call_me_hand:"🤙",point_left:"👈",point_right:"👉",point_up_2:"👆",middle_finger:"🖕",fu:"🖕",point_down:"👇",point_up:"☝️","+1":"👍",thumbsup:"👍","-1":"👎",thumbsdown:"👎",fist_raised:"✊",fist:"✊",fist_oncoming:"👊",facepunch:"👊",punch:"👊",fist_left:"🤛",fist_right:"🤜",clap:"👏",raised_hands:"🙌",open_hands:"👐",palms_up_together:"🤲",handshake:"🤝",pray:"🙏",writing_hand:"✍️",nail_care:"💅",selfie:"🤳",muscle:"💪",mechanical_arm:"🦾",mechanical_leg:"🦿",leg:"🦵",foot:"🦶",ear:"👂",ear_with_hearing_aid:"🦻",nose:"👃",brain:"🧠",anatomical_heart:"🫀",lungs:"🫁",tooth:"🦷",bone:"🦴",eyes:"👀",eye:"👁️",tongue:"👅",lips:"👄",baby:"👶",child:"🧒",boy:"👦",girl:"👧",adult:"🧑",blond_haired_person:"👱",man:"👨",bearded_person:"🧔",man_beard:"🧔♂️",woman_beard:"🧔♀️",red_haired_man:"👨🦰",curly_haired_man:"👨🦱",white_haired_man:"👨🦳",bald_man:"👨🦲",woman:"👩",red_haired_woman:"👩🦰",person_red_hair:"🧑🦰",curly_haired_woman:"👩🦱",person_curly_hair:"🧑🦱",white_haired_woman:"👩🦳",person_white_hair:"🧑🦳",bald_woman:"👩🦲",person_bald:"🧑🦲",blond_haired_woman:"👱♀️",blonde_woman:"👱♀️",blond_haired_man:"👱♂️",older_adult:"🧓",older_man:"👴",older_woman:"👵",frowning_person:"🙍",frowning_man:"🙍♂️",frowning_woman:"🙍♀️",pouting_face:"🙎",pouting_man:"🙎♂️",pouting_woman:"🙎♀️",no_good:"🙅",no_good_man:"🙅♂️",ng_man:"🙅♂️",no_good_woman:"🙅♀️",ng_woman:"🙅♀️",ok_person:"🙆",ok_man:"🙆♂️",ok_woman:"🙆♀️",tipping_hand_person:"💁",information_desk_person:"💁",tipping_hand_man:"💁♂️",sassy_man:"💁♂️",tipping_hand_woman:"💁♀️",sassy_woman:"💁♀️",raising_hand:"🙋",raising_hand_man:"🙋♂️",raising_hand_woman:"🙋♀️",deaf_person:"🧏",deaf_man:"🧏♂️",deaf_woman:"🧏♀️",bow:"🙇",bowing_man:"🙇♂️",bowing_woman:"🙇♀️",facepalm:"🤦",man_facepalming:"🤦♂️",woman_facepalming:"🤦♀️",shrug:"🤷",man_shrugging:"🤷♂️",woman_shrugging:"🤷♀️",health_worker:"🧑⚕️",man_health_worker:"👨⚕️",woman_health_worker:"👩⚕️",student:"🧑🎓",man_student:"👨🎓",woman_student:"👩🎓",teacher:"🧑🏫",man_teacher:"👨🏫",woman_teacher:"👩🏫",judge:"🧑⚖️",man_judge:"👨⚖️",woman_judge:"👩⚖️",farmer:"🧑🌾",man_farmer:"👨🌾",woman_farmer:"👩🌾",cook:"🧑🍳",man_cook:"👨🍳",woman_cook:"👩🍳",mechanic:"🧑🔧",man_mechanic:"👨🔧",woman_mechanic:"👩🔧",factory_worker:"🧑🏭",man_factory_worker:"👨🏭",woman_factory_worker:"👩🏭",office_worker:"🧑💼",man_office_worker:"👨💼",woman_office_worker:"👩💼",scientist:"🧑🔬",man_scientist:"👨🔬",woman_scientist:"👩🔬",technologist:"🧑💻",man_technologist:"👨💻",woman_technologist:"👩💻",singer:"🧑🎤",man_singer:"👨🎤",woman_singer:"👩🎤",artist:"🧑🎨",man_artist:"👨🎨",woman_artist:"👩🎨",pilot:"🧑✈️",man_pilot:"👨✈️",woman_pilot:"👩✈️",astronaut:"🧑🚀",man_astronaut:"👨🚀",woman_astronaut:"👩🚀",firefighter:"🧑🚒",man_firefighter:"👨🚒",woman_firefighter:"👩🚒",police_officer:"👮",cop:"👮",policeman:"👮♂️",policewoman:"👮♀️",detective:"🕵️",male_detective:"🕵️♂️",female_detective:"🕵️♀️",guard:"💂",guardsman:"💂♂️",guardswoman:"💂♀️",ninja:"🥷",construction_worker:"👷",construction_worker_man:"👷♂️",construction_worker_woman:"👷♀️",prince:"🤴",princess:"👸",person_with_turban:"👳",man_with_turban:"👳♂️",woman_with_turban:"👳♀️",man_with_gua_pi_mao:"👲",woman_with_headscarf:"🧕",person_in_tuxedo:"🤵",man_in_tuxedo:"🤵♂️",woman_in_tuxedo:"🤵♀️",person_with_veil:"👰",man_with_veil:"👰♂️",woman_with_veil:"👰♀️",bride_with_veil:"👰♀️",pregnant_woman:"🤰",breast_feeding:"🤱",woman_feeding_baby:"👩🍼",man_feeding_baby:"👨🍼",person_feeding_baby:"🧑🍼",angel:"👼",santa:"🎅",mrs_claus:"🤶",mx_claus:"🧑🎄",superhero:"🦸",superhero_man:"🦸♂️",superhero_woman:"🦸♀️",supervillain:"🦹",supervillain_man:"🦹♂️",supervillain_woman:"🦹♀️",mage:"🧙",mage_man:"🧙♂️",mage_woman:"🧙♀️",fairy:"🧚",fairy_man:"🧚♂️",fairy_woman:"🧚♀️",vampire:"🧛",vampire_man:"🧛♂️",vampire_woman:"🧛♀️",merperson:"🧜",merman:"🧜♂️",mermaid:"🧜♀️",elf:"🧝",elf_man:"🧝♂️",elf_woman:"🧝♀️",genie:"🧞",genie_man:"🧞♂️",genie_woman:"🧞♀️",zombie:"🧟",zombie_man:"🧟♂️",zombie_woman:"🧟♀️",massage:"💆",massage_man:"💆♂️",massage_woman:"💆♀️",haircut:"💇",haircut_man:"💇♂️",haircut_woman:"💇♀️",walking:"🚶",walking_man:"🚶♂️",walking_woman:"🚶♀️",standing_person:"🧍",standing_man:"🧍♂️",standing_woman:"🧍♀️",kneeling_person:"🧎",kneeling_man:"🧎♂️",kneeling_woman:"🧎♀️",person_with_probing_cane:"🧑🦯",man_with_probing_cane:"👨🦯",woman_with_probing_cane:"👩🦯",person_in_motorized_wheelchair:"🧑🦼",man_in_motorized_wheelchair:"👨🦼",woman_in_motorized_wheelchair:"👩🦼",person_in_manual_wheelchair:"🧑🦽",man_in_manual_wheelchair:"👨🦽",woman_in_manual_wheelchair:"👩🦽",runner:"🏃",running:"🏃",running_man:"🏃♂️",running_woman:"🏃♀️",woman_dancing:"💃",dancer:"💃",man_dancing:"🕺",business_suit_levitating:"🕴️",dancers:"👯",dancing_men:"👯♂️",dancing_women:"👯♀️",sauna_person:"🧖",sauna_man:"🧖♂️",sauna_woman:"🧖♀️",climbing:"🧗",climbing_man:"🧗♂️",climbing_woman:"🧗♀️",person_fencing:"🤺",horse_racing:"🏇",skier:"⛷️",snowboarder:"🏂",golfing:"🏌️",golfing_man:"🏌️♂️",golfing_woman:"🏌️♀️",surfer:"🏄",surfing_man:"🏄♂️",surfing_woman:"🏄♀️",rowboat:"🚣",rowing_man:"🚣♂️",rowing_woman:"🚣♀️",swimmer:"🏊",swimming_man:"🏊♂️",swimming_woman:"🏊♀️",bouncing_ball_person:"⛹️",bouncing_ball_man:"⛹️♂️",basketball_man:"⛹️♂️",bouncing_ball_woman:"⛹️♀️",basketball_woman:"⛹️♀️",weight_lifting:"🏋️",weight_lifting_man:"🏋️♂️",weight_lifting_woman:"🏋️♀️",bicyclist:"🚴",biking_man:"🚴♂️",biking_woman:"🚴♀️",mountain_bicyclist:"🚵",mountain_biking_man:"🚵♂️",mountain_biking_woman:"🚵♀️",cartwheeling:"🤸",man_cartwheeling:"🤸♂️",woman_cartwheeling:"🤸♀️",wrestling:"🤼",men_wrestling:"🤼♂️",women_wrestling:"🤼♀️",water_polo:"🤽",man_playing_water_polo:"🤽♂️",woman_playing_water_polo:"🤽♀️",handball_person:"🤾",man_playing_handball:"🤾♂️",woman_playing_handball:"🤾♀️",juggling_person:"🤹",man_juggling:"🤹♂️",woman_juggling:"🤹♀️",lotus_position:"🧘",lotus_position_man:"🧘♂️",lotus_position_woman:"🧘♀️",bath:"🛀",sleeping_bed:"🛌",people_holding_hands:"🧑🤝🧑",two_women_holding_hands:"👭",couple:"👫",two_men_holding_hands:"👬",couplekiss:"💏",couplekiss_man_woman:"👩❤️💋👨",couplekiss_man_man:"👨❤️💋👨",couplekiss_woman_woman:"👩❤️💋👩",couple_with_heart:"💑",couple_with_heart_woman_man:"👩❤️👨",couple_with_heart_man_man:"👨❤️👨",couple_with_heart_woman_woman:"👩❤️👩",family:"👪",family_man_woman_boy:"👨👩👦",family_man_woman_girl:"👨👩👧",family_man_woman_girl_boy:"👨👩👧👦",family_man_woman_boy_boy:"👨👩👦👦",family_man_woman_girl_girl:"👨👩👧👧",family_man_man_boy:"👨👨👦",family_man_man_girl:"👨👨👧",family_man_man_girl_boy:"👨👨👧👦",family_man_man_boy_boy:"👨👨👦👦",family_man_man_girl_girl:"👨👨👧👧",family_woman_woman_boy:"👩👩👦",family_woman_woman_girl:"👩👩👧",family_woman_woman_girl_boy:"👩👩👧👦",family_woman_woman_boy_boy:"👩👩👦👦",family_woman_woman_girl_girl:"👩👩👧👧",family_man_boy:"👨👦",family_man_boy_boy:"👨👦👦",family_man_girl:"👨👧",family_man_girl_boy:"👨👧👦",family_man_girl_girl:"👨👧👧",family_woman_boy:"👩👦",family_woman_boy_boy:"👩👦👦",family_woman_girl:"👩👧",family_woman_girl_boy:"👩👧👦",family_woman_girl_girl:"👩👧👧",speaking_head:"🗣️",bust_in_silhouette:"👤",busts_in_silhouette:"👥",people_hugging:"🫂",footprints:"👣",monkey_face:"🐵",monkey:"🐒",gorilla:"🦍",orangutan:"🦧",dog:"🐶",dog2:"🐕",guide_dog:"🦮",service_dog:"🐕🦺",poodle:"🐩",wolf:"🐺",fox_face:"🦊",raccoon:"🦝",cat:"🐱",cat2:"🐈",black_cat:"🐈⬛",lion:"🦁",tiger:"🐯",tiger2:"🐅",leopard:"🐆",horse:"🐴",racehorse:"🐎",unicorn:"🦄",zebra:"🦓",deer:"🦌",bison:"🦬",cow:"🐮",ox:"🐂",water_buffalo:"🐃",cow2:"🐄",pig:"🐷",pig2:"🐖",boar:"🐗",pig_nose:"🐽",ram:"🐏",sheep:"🐑",goat:"🐐",dromedary_camel:"🐪",camel:"🐫",llama:"🦙",giraffe:"🦒",elephant:"🐘",mammoth:"🦣",rhinoceros:"🦏",hippopotamus:"🦛",mouse:"🐭",mouse2:"🐁",rat:"🐀",hamster:"🐹",rabbit:"🐰",rabbit2:"🐇",chipmunk:"🐿️",beaver:"🦫",hedgehog:"🦔",bat:"🦇",bear:"🐻",polar_bear:"🐻❄️",koala:"🐨",panda_face:"🐼",sloth:"🦥",otter:"🦦",skunk:"🦨",kangaroo:"🦘",badger:"🦡",feet:"🐾",paw_prints:"🐾",turkey:"🦃",chicken:"🐔",rooster:"🐓",hatching_chick:"🐣",baby_chick:"🐤",hatched_chick:"🐥",bird:"🐦",penguin:"🐧",dove:"🕊️",eagle:"🦅",duck:"🦆",swan:"🦢",owl:"🦉",dodo:"🦤",feather:"🪶",flamingo:"🦩",peacock:"🦚",parrot:"🦜",frog:"🐸",crocodile:"🐊",turtle:"🐢",lizard:"🦎",snake:"🐍",dragon_face:"🐲",dragon:"🐉",sauropod:"🦕","t-rex":"🦖",whale:"🐳",whale2:"🐋",dolphin:"🐬",flipper:"🐬",seal:"🦭",fish:"🐟",tropical_fish:"🐠",blowfish:"🐡",shark:"🦈",octopus:"🐙",shell:"🐚",snail:"🐌",butterfly:"🦋",bug:"🐛",ant:"🐜",bee:"🐝",honeybee:"🐝",beetle:"🪲",lady_beetle:"🐞",cricket:"🦗",cockroach:"🪳",spider:"🕷️",spider_web:"🕸️",scorpion:"🦂",mosquito:"🦟",fly:"🪰",worm:"🪱",microbe:"🦠",bouquet:"💐",cherry_blossom:"🌸",white_flower:"💮",rosette:"🏵️",rose:"🌹",wilted_flower:"🥀",hibiscus:"🌺",sunflower:"🌻",blossom:"🌼",tulip:"🌷",seedling:"🌱",potted_plant:"🪴",evergreen_tree:"🌲",deciduous_tree:"🌳",palm_tree:"🌴",cactus:"🌵",ear_of_rice:"🌾",herb:"🌿",shamrock:"☘️",four_leaf_clover:"🍀",maple_leaf:"🍁",fallen_leaf:"🍂",leaves:"🍃",grapes:"🍇",melon:"🍈",watermelon:"🍉",tangerine:"🍊",orange:"🍊",mandarin:"🍊",lemon:"🍋",banana:"🍌",pineapple:"🍍",mango:"🥭",apple:"🍎",green_apple:"🍏",pear:"🍐",peach:"🍑",cherries:"🍒",strawberry:"🍓",blueberries:"🫐",kiwi_fruit:"🥝",tomato:"🍅",olive:"🫒",coconut:"🥥",avocado:"🥑",eggplant:"🍆",potato:"🥔",carrot:"🥕",corn:"🌽",hot_pepper:"🌶️",bell_pepper:"🫑",cucumber:"🥒",leafy_green:"🥬",broccoli:"🥦",garlic:"🧄",onion:"🧅",mushroom:"🍄",peanuts:"🥜",chestnut:"🌰",bread:"🍞",croissant:"🥐",baguette_bread:"🥖",flatbread:"🫓",pretzel:"🥨",bagel:"🥯",pancakes:"🥞",waffle:"🧇",cheese:"🧀",meat_on_bone:"🍖",poultry_leg:"🍗",cut_of_meat:"🥩",bacon:"🥓",hamburger:"🍔",fries:"🍟",pizza:"🍕",hotdog:"🌭",sandwich:"🥪",taco:"🌮",burrito:"🌯",tamale:"🫔",stuffed_flatbread:"🥙",falafel:"🧆",egg:"🥚",fried_egg:"🍳",shallow_pan_of_food:"🥘",stew:"🍲",fondue:"🫕",bowl_with_spoon:"🥣",green_salad:"🥗",popcorn:"🍿",butter:"🧈",salt:"🧂",canned_food:"🥫",bento:"🍱",rice_cracker:"🍘",rice_ball:"🍙",rice:"🍚",curry:"🍛",ramen:"🍜",spaghetti:"🍝",sweet_potato:"🍠",oden:"🍢",sushi:"🍣",fried_shrimp:"🍤",fish_cake:"🍥",moon_cake:"🥮",dango:"🍡",dumpling:"🥟",fortune_cookie:"🥠",takeout_box:"🥡",crab:"🦀",lobster:"🦞",shrimp:"🦐",squid:"🦑",oyster:"🦪",icecream:"🍦",shaved_ice:"🍧",ice_cream:"🍨",doughnut:"🍩",cookie:"🍪",birthday:"🎂",cake:"🍰",cupcake:"🧁",pie:"🥧",chocolate_bar:"🍫",candy:"🍬",lollipop:"🍭",custard:"🍮",honey_pot:"🍯",baby_bottle:"🍼",milk_glass:"🥛",coffee:"☕",teapot:"🫖",tea:"🍵",sake:"🍶",champagne:"🍾",wine_glass:"🍷",cocktail:"🍸",tropical_drink:"🍹",beer:"🍺",beers:"🍻",clinking_glasses:"🥂",tumbler_glass:"🥃",cup_with_straw:"🥤",bubble_tea:"🧋",beverage_box:"🧃",mate:"🧉",ice_cube:"🧊",chopsticks:"🥢",plate_with_cutlery:"🍽️",fork_and_knife:"🍴",spoon:"🥄",hocho:"🔪",knife:"🔪",amphora:"🏺",earth_africa:"🌍",earth_americas:"🌎",earth_asia:"🌏",globe_with_meridians:"🌐",world_map:"🗺️",japan:"🗾",compass:"🧭",mountain_snow:"🏔️",mountain:"⛰️",volcano:"🌋",mount_fuji:"🗻",camping:"🏕️",beach_umbrella:"🏖️",desert:"🏜️",desert_island:"🏝️",national_park:"🏞️",stadium:"🏟️",classical_building:"🏛️",building_construction:"🏗️",bricks:"🧱",rock:"🪨",wood:"🪵",hut:"🛖",houses:"🏘️",derelict_house:"🏚️",house:"🏠",house_with_garden:"🏡",office:"🏢",post_office:"🏣",european_post_office:"🏤",hospital:"🏥",bank:"🏦",hotel:"🏨",love_hotel:"🏩",convenience_store:"🏪",school:"🏫",department_store:"🏬",factory:"🏭",japanese_castle:"🏯",european_castle:"🏰",wedding:"💒",tokyo_tower:"🗼",statue_of_liberty:"🗽",church:"⛪",mosque:"🕌",hindu_temple:"🛕",synagogue:"🕍",shinto_shrine:"⛩️",kaaba:"🕋",fountain:"⛲",tent:"⛺",foggy:"🌁",night_with_stars:"🌃",cityscape:"🏙️",sunrise_over_mountains:"🌄",sunrise:"🌅",city_sunset:"🌆",city_sunrise:"🌇",bridge_at_night:"🌉",hotsprings:"♨️",carousel_horse:"🎠",ferris_wheel:"🎡",roller_coaster:"🎢",barber:"💈",circus_tent:"🎪",steam_locomotive:"🚂",railway_car:"🚃",bullettrain_side:"🚄",bullettrain_front:"🚅",train2:"🚆",metro:"🚇",light_rail:"🚈",station:"🚉",tram:"🚊",monorail:"🚝",mountain_railway:"🚞",train:"🚋",bus:"🚌",oncoming_bus:"🚍",trolleybus:"🚎",minibus:"🚐",ambulance:"🚑",fire_engine:"🚒",police_car:"🚓",oncoming_police_car:"🚔",taxi:"🚕",oncoming_taxi:"🚖",car:"🚗",red_car:"🚗",oncoming_automobile:"🚘",blue_car:"🚙",pickup_truck:"🛻",truck:"🚚",articulated_lorry:"🚛",tractor:"🚜",racing_car:"🏎️",motorcycle:"🏍️",motor_scooter:"🛵",manual_wheelchair:"🦽",motorized_wheelchair:"🦼",auto_rickshaw:"🛺",bike:"🚲",kick_scooter:"🛴",skateboard:"🛹",roller_skate:"🛼",busstop:"🚏",motorway:"🛣️",railway_track:"🛤️",oil_drum:"🛢️",fuelpump:"⛽",rotating_light:"🚨",traffic_light:"🚥",vertical_traffic_light:"🚦",stop_sign:"🛑",construction:"🚧",anchor:"⚓",boat:"⛵",sailboat:"⛵",canoe:"🛶",speedboat:"🚤",passenger_ship:"🛳️",ferry:"⛴️",motor_boat:"🛥️",ship:"🚢",airplane:"✈️",small_airplane:"🛩️",flight_departure:"🛫",flight_arrival:"🛬",parachute:"🪂",seat:"💺",helicopter:"🚁",suspension_railway:"🚟",mountain_cableway:"🚠",aerial_tramway:"🚡",artificial_satellite:"🛰️",rocket:"🚀",flying_saucer:"🛸",bellhop_bell:"🛎️",luggage:"🧳",hourglass:"⌛",hourglass_flowing_sand:"⏳",watch:"⌚",alarm_clock:"⏰",stopwatch:"⏱️",timer_clock:"⏲️",mantelpiece_clock:"🕰️",clock12:"🕛",clock1230:"🕧",clock1:"🕐",clock130:"🕜",clock2:"🕑",clock230:"🕝",clock3:"🕒",clock330:"🕞",clock4:"🕓",clock430:"🕟",clock5:"🕔",clock530:"🕠",clock6:"🕕",clock630:"🕡",clock7:"🕖",clock730:"🕢",clock8:"🕗",clock830:"🕣",clock9:"🕘",clock930:"🕤",clock10:"🕙",clock1030:"🕥",clock11:"🕚",clock1130:"🕦",new_moon:"🌑",waxing_crescent_moon:"🌒",first_quarter_moon:"🌓",moon:"🌔",waxing_gibbous_moon:"🌔",full_moon:"🌕",waning_gibbous_moon:"🌖",last_quarter_moon:"🌗",waning_crescent_moon:"🌘",crescent_moon:"🌙",new_moon_with_face:"🌚",first_quarter_moon_with_face:"🌛",last_quarter_moon_with_face:"🌜",thermometer:"🌡️",sunny:"☀️",full_moon_with_face:"🌝",sun_with_face:"🌞",ringed_planet:"🪐",star:"⭐",star2:"🌟",stars:"🌠",milky_way:"🌌",cloud:"☁️",partly_sunny:"⛅",cloud_with_lightning_and_rain:"⛈️",sun_behind_small_cloud:"🌤️",sun_behind_large_cloud:"🌥️",sun_behind_rain_cloud:"🌦️",cloud_with_rain:"🌧️",cloud_with_snow:"🌨️",cloud_with_lightning:"🌩️",tornado:"🌪️",fog:"🌫️",wind_face:"🌬️",cyclone:"🌀",rainbow:"🌈",closed_umbrella:"🌂",open_umbrella:"☂️",umbrella:"☔",parasol_on_ground:"⛱️",zap:"⚡",snowflake:"❄️",snowman_with_snow:"☃️",snowman:"⛄",comet:"☄️",fire:"🔥",droplet:"💧",ocean:"🌊",jack_o_lantern:"🎃",christmas_tree:"🎄",fireworks:"🎆",sparkler:"🎇",firecracker:"🧨",sparkles:"✨",balloon:"🎈",tada:"🎉",confetti_ball:"🎊",tanabata_tree:"🎋",bamboo:"🎍",dolls:"🎎",flags:"🎏",wind_chime:"🎐",rice_scene:"🎑",red_envelope:"🧧",ribbon:"🎀",gift:"🎁",reminder_ribbon:"🎗️",tickets:"🎟️",ticket:"🎫",medal_military:"🎖️",trophy:"🏆",medal_sports:"🏅","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉",soccer:"⚽",baseball:"⚾",softball:"🥎",basketball:"🏀",volleyball:"🏐",football:"🏈",rugby_football:"🏉",tennis:"🎾",flying_disc:"🥏",bowling:"🎳",cricket_game:"🏏",field_hockey:"🏑",ice_hockey:"🏒",lacrosse:"🥍",ping_pong:"🏓",badminton:"🏸",boxing_glove:"🥊",martial_arts_uniform:"🥋",goal_net:"🥅",golf:"⛳",ice_skate:"⛸️",fishing_pole_and_fish:"🎣",diving_mask:"🤿",running_shirt_with_sash:"🎽",ski:"🎿",sled:"🛷",curling_stone:"🥌",dart:"🎯",yo_yo:"🪀",kite:"🪁","8ball":"🎱",crystal_ball:"🔮",magic_wand:"🪄",nazar_amulet:"🧿",video_game:"🎮",joystick:"🕹️",slot_machine:"🎰",game_die:"🎲",jigsaw:"🧩",teddy_bear:"🧸",pinata:"🪅",nesting_dolls:"🪆",spades:"♠️",hearts:"♥️",diamonds:"♦️",clubs:"♣️",chess_pawn:"♟️",black_joker:"🃏",mahjong:"🀄",flower_playing_cards:"🎴",performing_arts:"🎭",framed_picture:"🖼️",art:"🎨",thread:"🧵",sewing_needle:"🪡",yarn:"🧶",knot:"🪢",eyeglasses:"👓",dark_sunglasses:"🕶️",goggles:"🥽",lab_coat:"🥼",safety_vest:"🦺",necktie:"👔",shirt:"👕",tshirt:"👕",jeans:"👖",scarf:"🧣",gloves:"🧤",coat:"🧥",socks:"🧦",dress:"👗",kimono:"👘",sari:"🥻",one_piece_swimsuit:"🩱",swim_brief:"🩲",shorts:"🩳",bikini:"👙",womans_clothes:"👚",purse:"👛",handbag:"👜",pouch:"👝",shopping:"🛍️",school_satchel:"🎒",thong_sandal:"🩴",mans_shoe:"👞",shoe:"👞",athletic_shoe:"👟",hiking_boot:"🥾",flat_shoe:"🥿",high_heel:"👠",sandal:"👡",ballet_shoes:"🩰",boot:"👢",crown:"👑",womans_hat:"👒",tophat:"🎩",mortar_board:"🎓",billed_cap:"🧢",military_helmet:"🪖",rescue_worker_helmet:"⛑️",prayer_beads:"📿",lipstick:"💄",ring:"💍",gem:"💎",mute:"🔇",speaker:"🔈",sound:"🔉",loud_sound:"🔊",loudspeaker:"📢",mega:"📣",postal_horn:"📯",bell:"🔔",no_bell:"🔕",musical_score:"🎼",musical_note:"🎵",notes:"🎶",studio_microphone:"🎙️",level_slider:"🎚️",control_knobs:"🎛️",microphone:"🎤",headphones:"🎧",radio:"📻",saxophone:"🎷",accordion:"🪗",guitar:"🎸",musical_keyboard:"🎹",trumpet:"🎺",violin:"🎻",banjo:"🪕",drum:"🥁",long_drum:"🪘",iphone:"📱",calling:"📲",phone:"☎️",telephone:"☎️",telephone_receiver:"📞",pager:"📟",fax:"📠",battery:"🔋",electric_plug:"🔌",computer:"💻",desktop_computer:"🖥️",printer:"🖨️",keyboard:"⌨️",computer_mouse:"🖱️",trackball:"🖲️",minidisc:"💽",floppy_disk:"💾",cd:"💿",dvd:"📀",abacus:"🧮",movie_camera:"🎥",film_strip:"🎞️",film_projector:"📽️",clapper:"🎬",tv:"📺",camera:"📷",camera_flash:"📸",video_camera:"📹",vhs:"📼",mag:"🔍",mag_right:"🔎",candle:"🕯️",bulb:"💡",flashlight:"🔦",izakaya_lantern:"🏮",lantern:"🏮",diya_lamp:"🪔",notebook_with_decorative_cover:"📔",closed_book:"📕",book:"📖",open_book:"📖",green_book:"📗",blue_book:"📘",orange_book:"📙",books:"📚",notebook:"📓",ledger:"📒",page_with_curl:"📃",scroll:"📜",page_facing_up:"📄",newspaper:"📰",newspaper_roll:"🗞️",bookmark_tabs:"📑",bookmark:"🔖",label:"🏷️",moneybag:"💰",coin:"🪙",yen:"💴",dollar:"💵",euro:"💶",pound:"💷",money_with_wings:"💸",credit_card:"💳",receipt:"🧾",chart:"💹",envelope:"✉️",email:"📧","e-mail":"📧",incoming_envelope:"📨",envelope_with_arrow:"📩",outbox_tray:"📤",inbox_tray:"📥",package:"📦",mailbox:"📫",mailbox_closed:"📪",mailbox_with_mail:"📬",mailbox_with_no_mail:"📭",postbox:"📮",ballot_box:"🗳️",pencil2:"✏️",black_nib:"✒️",fountain_pen:"🖋️",pen:"🖊️",paintbrush:"🖌️",crayon:"🖍️",memo:"📝",pencil:"📝",briefcase:"💼",file_folder:"📁",open_file_folder:"📂",card_index_dividers:"🗂️",date:"📅",calendar:"📆",spiral_notepad:"🗒️",spiral_calendar:"🗓️",card_index:"📇",chart_with_upwards_trend:"📈",chart_with_downwards_trend:"📉",bar_chart:"📊",clipboard:"📋",pushpin:"📌",round_pushpin:"📍",paperclip:"📎",paperclips:"🖇️",straight_ruler:"📏",triangular_ruler:"📐",scissors:"✂️",card_file_box:"🗃️",file_cabinet:"🗄️",wastebasket:"🗑️",lock:"🔒",unlock:"🔓",lock_with_ink_pen:"🔏",closed_lock_with_key:"🔐",key:"🔑",old_key:"🗝️",hammer:"🔨",axe:"🪓",pick:"⛏️",hammer_and_pick:"⚒️",hammer_and_wrench:"🛠️",dagger:"🗡️",crossed_swords:"⚔️",gun:"🔫",boomerang:"🪃",bow_and_arrow:"🏹",shield:"🛡️",carpentry_saw:"🪚",wrench:"🔧",screwdriver:"🪛",nut_and_bolt:"🔩",gear:"⚙️",clamp:"🗜️",balance_scale:"⚖️",probing_cane:"🦯",link:"🔗",chains:"⛓️",hook:"🪝",toolbox:"🧰",magnet:"🧲",ladder:"🪜",alembic:"⚗️",test_tube:"🧪",petri_dish:"🧫",dna:"🧬",microscope:"🔬",telescope:"🔭",satellite:"📡",syringe:"💉",drop_of_blood:"🩸",pill:"💊",adhesive_bandage:"🩹",stethoscope:"🩺",door:"🚪",elevator:"🛗",mirror:"🪞",window:"🪟",bed:"🛏️",couch_and_lamp:"🛋️",chair:"🪑",toilet:"🚽",plunger:"🪠",shower:"🚿",bathtub:"🛁",mouse_trap:"🪤",razor:"🪒",lotion_bottle:"🧴",safety_pin:"🧷",broom:"🧹",basket:"🧺",roll_of_paper:"🧻",bucket:"🪣",soap:"🧼",toothbrush:"🪥",sponge:"🧽",fire_extinguisher:"🧯",shopping_cart:"🛒",smoking:"🚬",coffin:"⚰️",headstone:"🪦",funeral_urn:"⚱️",moyai:"🗿",placard:"🪧",atm:"🏧",put_litter_in_its_place:"🚮",potable_water:"🚰",wheelchair:"♿",mens:"🚹",womens:"🚺",restroom:"🚻",baby_symbol:"🚼",wc:"🚾",passport_control:"🛂",customs:"🛃",baggage_claim:"🛄",left_luggage:"🛅",warning:"⚠️",children_crossing:"🚸",no_entry:"⛔",no_entry_sign:"🚫",no_bicycles:"🚳",no_smoking:"🚭",do_not_litter:"🚯","non-potable_water":"🚱",no_pedestrians:"🚷",no_mobile_phones:"📵",underage:"🔞",radioactive:"☢️",biohazard:"☣️",arrow_up:"⬆️",arrow_upper_right:"↗️",arrow_right:"➡️",arrow_lower_right:"↘️",arrow_down:"⬇️",arrow_lower_left:"↙️",arrow_left:"⬅️",arrow_upper_left:"↖️",arrow_up_down:"↕️",left_right_arrow:"↔️",leftwards_arrow_with_hook:"↩️",arrow_right_hook:"↪️",arrow_heading_up:"⤴️",arrow_heading_down:"⤵️",arrows_clockwise:"🔃",arrows_counterclockwise:"🔄",back:"🔙",end:"🔚",on:"🔛",soon:"🔜",top:"🔝",place_of_worship:"🛐",atom_symbol:"⚛️",om:"🕉️",star_of_david:"✡️",wheel_of_dharma:"☸️",yin_yang:"☯️",latin_cross:"✝️",orthodox_cross:"☦️",star_and_crescent:"☪️",peace_symbol:"☮️",menorah:"🕎",six_pointed_star:"🔯",aries:"♈",taurus:"♉",gemini:"♊",cancer:"♋",leo:"♌",virgo:"♍",libra:"♎",scorpius:"♏",sagittarius:"♐",capricorn:"♑",aquarius:"♒",pisces:"♓",ophiuchus:"⛎",twisted_rightwards_arrows:"🔀",repeat:"🔁",repeat_one:"🔂",arrow_forward:"▶️",fast_forward:"⏩",next_track_button:"⏭️",play_or_pause_button:"⏯️",arrow_backward:"◀️",rewind:"⏪",previous_track_button:"⏮️",arrow_up_small:"🔼",arrow_double_up:"⏫",arrow_down_small:"🔽",arrow_double_down:"⏬",pause_button:"⏸️",stop_button:"⏹️",record_button:"⏺️",eject_button:"⏏️",cinema:"🎦",low_brightness:"🔅",high_brightness:"🔆",signal_strength:"📶",vibration_mode:"📳",mobile_phone_off:"📴",female_sign:"♀️",male_sign:"♂️",transgender_symbol:"⚧️",heavy_multiplication_x:"✖️",heavy_plus_sign:"➕",heavy_minus_sign:"➖",heavy_division_sign:"➗",infinity:"♾️",bangbang:"‼️",interrobang:"⁉️",question:"❓",grey_question:"❔",grey_exclamation:"❕",exclamation:"❗",heavy_exclamation_mark:"❗",wavy_dash:"〰️",currency_exchange:"💱",heavy_dollar_sign:"💲",medical_symbol:"⚕️",recycle:"♻️",fleur_de_lis:"⚜️",trident:"🔱",name_badge:"📛",beginner:"🔰",o:"⭕",white_check_mark:"✅",ballot_box_with_check:"☑️",heavy_check_mark:"✔️",x:"❌",negative_squared_cross_mark:"❎",curly_loop:"➰",loop:"➿",part_alternation_mark:"〽️",eight_spoked_asterisk:"✳️",eight_pointed_black_star:"✴️",sparkle:"❇️",copyright:"©️",registered:"®️",tm:"™️",hash:"#️⃣",asterisk:"*️⃣",zero:"0️⃣",one:"1️⃣",two:"2️⃣",three:"3️⃣",four:"4️⃣",five:"5️⃣",six:"6️⃣",seven:"7️⃣",eight:"8️⃣",nine:"9️⃣",keycap_ten:"🔟",capital_abcd:"🔠",abcd:"🔡",symbols:"🔣",abc:"🔤",a:"🅰️",ab:"🆎",b:"🅱️",cl:"🆑",cool:"🆒",free:"🆓",information_source:"ℹ️",id:"🆔",m:"Ⓜ️",new:"🆕",ng:"🆖",o2:"🅾️",ok:"🆗",parking:"🅿️",sos:"🆘",up:"🆙",vs:"🆚",koko:"🈁",sa:"🈂️",u6708:"🈷️",u6709:"🈶",u6307:"🈯",ideograph_advantage:"🉐",u5272:"🈹",u7121:"🈚",u7981:"🈲",accept:"🉑",u7533:"🈸",u5408:"🈴",u7a7a:"🈳",congratulations:"㊗️",secret:"㊙️",u55b6:"🈺",u6e80:"🈵",red_circle:"🔴",orange_circle:"🟠",yellow_circle:"🟡",green_circle:"🟢",large_blue_circle:"🔵",purple_circle:"🟣",brown_circle:"🟤",black_circle:"⚫",white_circle:"⚪",red_square:"🟥",orange_square:"🟧",yellow_square:"🟨",green_square:"🟩",blue_square:"🟦",purple_square:"🟪",brown_square:"🟫",black_large_square:"⬛",white_large_square:"⬜",black_medium_square:"◼️",white_medium_square:"◻️",black_medium_small_square:"◾",white_medium_small_square:"◽",black_small_square:"▪️",white_small_square:"▫️",large_orange_diamond:"🔶",large_blue_diamond:"🔷",small_orange_diamond:"🔸",small_blue_diamond:"🔹",small_red_triangle:"🔺",small_red_triangle_down:"🔻",diamond_shape_with_a_dot_inside:"💠",radio_button:"🔘",white_square_button:"🔳",black_square_button:"🔲",checkered_flag:"🏁",triangular_flag_on_post:"🚩",crossed_flags:"🎌",black_flag:"🏴",white_flag:"🏳️",rainbow_flag:"🏳️🌈",transgender_flag:"🏳️⚧️",pirate_flag:"🏴☠️",ascension_island:"🇦🇨",andorra:"🇦🇩",united_arab_emirates:"🇦🇪",afghanistan:"🇦🇫",antigua_barbuda:"🇦🇬",anguilla:"🇦🇮",albania:"🇦🇱",armenia:"🇦🇲",angola:"🇦🇴",antarctica:"🇦🇶",argentina:"🇦🇷",american_samoa:"🇦🇸",austria:"🇦🇹",australia:"🇦🇺",aruba:"🇦🇼",aland_islands:"🇦🇽",azerbaijan:"🇦🇿",bosnia_herzegovina:"🇧🇦",barbados:"🇧🇧",bangladesh:"🇧🇩",belgium:"🇧🇪",burkina_faso:"🇧🇫",bulgaria:"🇧🇬",bahrain:"🇧🇭",burundi:"🇧🇮",benin:"🇧🇯",st_barthelemy:"🇧🇱",bermuda:"🇧🇲",brunei:"🇧🇳",bolivia:"🇧🇴",caribbean_netherlands:"🇧🇶",brazil:"🇧🇷",bahamas:"🇧🇸",bhutan:"🇧🇹",bouvet_island:"🇧🇻",botswana:"🇧🇼",belarus:"🇧🇾",belize:"🇧🇿",canada:"🇨🇦",cocos_islands:"🇨🇨",congo_kinshasa:"🇨🇩",central_african_republic:"🇨🇫",congo_brazzaville:"🇨🇬",switzerland:"🇨🇭",cote_divoire:"🇨🇮",cook_islands:"🇨🇰",chile:"🇨🇱",cameroon:"🇨🇲",cn:"🇨🇳",colombia:"🇨🇴",clipperton_island:"🇨🇵",costa_rica:"🇨🇷",cuba:"🇨🇺",cape_verde:"🇨🇻",curacao:"🇨🇼",christmas_island:"🇨🇽",cyprus:"🇨🇾",czech_republic:"🇨🇿",de:"🇩🇪",diego_garcia:"🇩🇬",djibouti:"🇩🇯",denmark:"🇩🇰",dominica:"🇩🇲",dominican_republic:"🇩🇴",algeria:"🇩🇿",ceuta_melilla:"🇪🇦",ecuador:"🇪🇨",estonia:"🇪🇪",egypt:"🇪🇬",western_sahara:"🇪🇭",eritrea:"🇪🇷",es:"🇪🇸",ethiopia:"🇪🇹",eu:"🇪🇺",european_union:"🇪🇺",finland:"🇫🇮",fiji:"🇫🇯",falkland_islands:"🇫🇰",micronesia:"🇫🇲",faroe_islands:"🇫🇴",fr:"🇫🇷",gabon:"🇬🇦",gb:"🇬🇧",uk:"🇬🇧",grenada:"🇬🇩",georgia:"🇬🇪",french_guiana:"🇬🇫",guernsey:"🇬🇬",ghana:"🇬🇭",gibraltar:"🇬🇮",greenland:"🇬🇱",gambia:"🇬🇲",guinea:"🇬🇳",guadeloupe:"🇬🇵",equatorial_guinea:"🇬🇶",greece:"🇬🇷",south_georgia_south_sandwich_islands:"🇬🇸",guatemala:"🇬🇹",guam:"🇬🇺",guinea_bissau:"🇬🇼",guyana:"🇬🇾",hong_kong:"🇭🇰",heard_mcdonald_islands:"🇭🇲",honduras:"🇭🇳",croatia:"🇭🇷",haiti:"🇭🇹",hungary:"🇭🇺",canary_islands:"🇮🇨",indonesia:"🇮🇩",ireland:"🇮🇪",israel:"🇮🇱",isle_of_man:"🇮🇲",india:"🇮🇳",british_indian_ocean_territory:"🇮🇴",iraq:"🇮🇶",iran:"🇮🇷",iceland:"🇮🇸",it:"🇮🇹",jersey:"🇯🇪",jamaica:"🇯🇲",jordan:"🇯🇴",jp:"🇯🇵",kenya:"🇰🇪",kyrgyzstan:"🇰🇬",cambodia:"🇰🇭",kiribati:"🇰🇮",comoros:"🇰🇲",st_kitts_nevis:"🇰🇳",north_korea:"🇰🇵",kr:"🇰🇷",kuwait:"🇰🇼",cayman_islands:"🇰🇾",kazakhstan:"🇰🇿",laos:"🇱🇦",lebanon:"🇱🇧",st_lucia:"🇱🇨",liechtenstein:"🇱🇮",sri_lanka:"🇱🇰",liberia:"🇱🇷",lesotho:"🇱🇸",lithuania:"🇱🇹",luxembourg:"🇱🇺",latvia:"🇱🇻",libya:"🇱🇾",morocco:"🇲🇦",monaco:"🇲🇨",moldova:"🇲🇩",montenegro:"🇲🇪",st_martin:"🇲🇫",madagascar:"🇲🇬",marshall_islands:"🇲🇭",macedonia:"🇲🇰",mali:"🇲🇱",myanmar:"🇲🇲",mongolia:"🇲🇳",macau:"🇲🇴",northern_mariana_islands:"🇲🇵",martinique:"🇲🇶",mauritania:"🇲🇷",montserrat:"🇲🇸",malta:"🇲🇹",mauritius:"🇲🇺",maldives:"🇲🇻",malawi:"🇲🇼",mexico:"🇲🇽",malaysia:"🇲🇾",mozambique:"🇲🇿",namibia:"🇳🇦",new_caledonia:"🇳🇨",niger:"🇳🇪",norfolk_island:"🇳🇫",nigeria:"🇳🇬",nicaragua:"🇳🇮",netherlands:"🇳🇱",norway:"🇳🇴",nepal:"🇳🇵",nauru:"🇳🇷",niue:"🇳🇺",new_zealand:"🇳🇿",oman:"🇴🇲",panama:"🇵🇦",peru:"🇵🇪",french_polynesia:"🇵🇫",papua_new_guinea:"🇵🇬",philippines:"🇵🇭",pakistan:"🇵🇰",poland:"🇵🇱",st_pierre_miquelon:"🇵🇲",pitcairn_islands:"🇵🇳",puerto_rico:"🇵🇷",palestinian_territories:"🇵🇸",portugal:"🇵🇹",palau:"🇵🇼",paraguay:"🇵🇾",qatar:"🇶🇦",reunion:"🇷🇪",romania:"🇷🇴",serbia:"🇷🇸",ru:"🇷🇺",rwanda:"🇷🇼",saudi_arabia:"🇸🇦",solomon_islands:"🇸🇧",seychelles:"🇸🇨",sudan:"🇸🇩",sweden:"🇸🇪",singapore:"🇸🇬",st_helena:"🇸🇭",slovenia:"🇸🇮",svalbard_jan_mayen:"🇸🇯",slovakia:"🇸🇰",sierra_leone:"🇸🇱",san_marino:"🇸🇲",senegal:"🇸🇳",somalia:"🇸🇴",suriname:"🇸🇷",south_sudan:"🇸🇸",sao_tome_principe:"🇸🇹",el_salvador:"🇸🇻",sint_maarten:"🇸🇽",syria:"🇸🇾",swaziland:"🇸🇿",tristan_da_cunha:"🇹🇦",turks_caicos_islands:"🇹🇨",chad:"🇹🇩",french_southern_territories:"🇹🇫",togo:"🇹🇬",thailand:"🇹🇭",tajikistan:"🇹🇯",tokelau:"🇹🇰",timor_leste:"🇹🇱",turkmenistan:"🇹🇲",tunisia:"🇹🇳",tonga:"🇹🇴",tr:"🇹🇷",trinidad_tobago:"🇹🇹",tuvalu:"🇹🇻",taiwan:"🇹🇼",tanzania:"🇹🇿",ukraine:"🇺🇦",uganda:"🇺🇬",us_outlying_islands:"🇺🇲",united_nations:"🇺🇳",us:"🇺🇸",uruguay:"🇺🇾",uzbekistan:"🇺🇿",vatican_city:"🇻🇦",st_vincent_grenadines:"🇻🇨",venezuela:"🇻🇪",british_virgin_islands:"🇻🇬",us_virgin_islands:"🇻🇮",vietnam:"🇻🇳",vanuatu:"🇻🇺",wallis_futuna:"🇼🇫",samoa:"🇼🇸",kosovo:"🇽🇰",yemen:"🇾🇪",mayotte:"🇾🇹",south_africa:"🇿🇦",zambia:"🇿🇲",zimbabwe:"🇿🇼",england:"🏴",scotland:"🏴",wales:"🏴"},W5=/:(\+1|[-\w]+):/g,Non={}.hasOwnProperty;function Don(){return e=>{v4(e,"text",t=>{const n=t.value,r=[];W5.lastIndex=0;let i=W5.exec(n),o=0;for(;i;){const a=i[1],s=i.index;Non.call($ce,a)?(o!==s&&r.push(n.slice(o,s)),r.push($ce[a]),o=s+i[0].length):W5.lastIndex=s+1,i=W5.exec(n)}r.length>0&&(r.push(n.slice(o)),t.value=r.join(""))})}}function Lon(){return{remark:e=>e.use(Don)}}function Fon(e){H5e(e,/\r?\n|\r/g,jon)}function jon(){return{type:"break"}}function Bon(){return Fon}function Hon(){return{remark:e=>e.use(Bon)}}const zon="粗体",Uon="粗体文本",Won="Markdown 语法",Von="关闭帮助",Kon="关闭目录",qon="代码",Gon="代码块",Yon="编程语言",Xon="代码",Qon="退出全屏",Zon="恢复默认",Jon="恢复默认",ean="全屏",tan="一级标题",nan="二级标题",ran="三级标题",ian="四级标题",oan="五级标题",aan="六级标题",san="标题",lan="帮助",can="分割线",uan="图片",dan="alt",fan="图片描述",han="斜体",pan="斜体文本",man="已达最大字符数限制",gan="行数",van="链接",yan="链接描述",ban="有序列表",San="项目",Can="预览",xan="仅预览区",wan="引用",_an="引用文本",Ean="快捷键",Tan="源代码",kan="同步滚动",Oan="目录",Pan="回到顶部",Man="无序列表",Ian="项目",$an="字数",Ran="编辑",Aan="仅编辑区",Nan={bold:zon,boldText:Uon,cheatsheet:Won,closeHelp:Von,closeToc:Kon,code:qon,codeBlock:Gon,codeLang:Yon,codeText:Xon,exitFullscreen:Qon,exitPreviewOnly:Zon,exitWriteOnly:Jon,fullscreen:ean,h1:tan,h2:nan,h3:ran,h4:ian,h5:oan,h6:aan,headingText:san,help:lan,hr:can,image:uan,imageAlt:dan,imageTitle:fan,italic:han,italicText:pan,limited:man,lines:gan,link:van,linkText:yan,ol:ban,olItem:San,preview:Can,previewOnly:xan,quote:wan,quotedText:_an,shortcuts:Ean,source:Tan,sync:kan,toc:Oan,top:Pan,ul:Man,ulItem:Ian,words:$an,write:Ran,writeOnly:Aan},Dan=[X5e(),Q5e(),xon(),d8e(),Lon(),Hon()],Lan=mi.div`
|
||
height: 100%;
|
||
.bytemd {
|
||
height: 100%;
|
||
}
|
||
`,Fan=({value:e,onChange:t})=>U.jsx(Lan,{children:U.jsx(ktn,{value:e,plugins:Dan,onChange:t,locale:Nan,uploadImages:async n=>n.map(r=>({url:URL.createObjectURL(r),alt:r.name}))})}),f8e=Uc(e=>({currentDocument:null,saving:!1,setCurrentDocument:t=>e({currentDocument:t}),setSaving:t=>e({saving:t}),fetchDocument:async t=>{await new Promise(r=>setTimeout(r,1e3));const n={id:t,title:"示例文档",content:`# 示例文档
|
||
|
||
这是一个示例文档。`,spaceId:"1",type:"markdown",parentId:null,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),createdBy:"1"};e({currentDocument:n})},updateDocument:async t=>{await new Promise(n=>setTimeout(n,1e3)),e({currentDocument:t})}})),{Option:HN}=ys,jan=({document:e,visible:t,onClose:n})=>{const[r]=Or.useForm(),[i,o]=ge.useState(!1),a=async s=>{try{o(!0),console.log("Updating document settings:",s),xs.success("更新成功"),n()}catch(l){console.error("Update document settings failed:",l),xs.error("更新失败")}finally{o(!1)}};return U.jsx(Ma,{title:"文档设置",open:t,onCancel:n,onOk:()=>r.submit(),confirmLoading:i,children:U.jsxs(Or,{form:r,layout:"vertical",initialValues:{title:e.title,type:e.type},onFinish:a,children:[U.jsx(Or.Item,{name:"title",label:"文档标题",rules:[{required:!0,message:"请输入文档标题"}],children:U.jsx($i,{placeholder:"请输入文档标题"})}),U.jsx(Or.Item,{name:"type",label:"文档类型",rules:[{required:!0,message:"请选择文档类型"}],children:U.jsxs(ys,{children:[U.jsx(HN,{value:"markdown",children:"Markdown"}),U.jsx(HN,{value:"rich-text",children:"富文本"}),U.jsx(HN,{value:"code",children:"代码"})]})})]})})},{Header:Ban,Content:Han}=Co,zan=mi(Co)`
|
||
height: 100vh;
|
||
`,Uan=mi(Ban)`
|
||
background: #fff;
|
||
padding: 0 24px;
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
|
||
z-index: 100;
|
||
`,Wan=mi(Han)`
|
||
height: calc(100vh - 64px);
|
||
padding: 24px;
|
||
overflow: auto;
|
||
background: #fff;
|
||
`,Van=()=>{const{documentId:e}=lV(),t=as(),{currentDocument:n,fetchDocument:r,updateDocument:i,saving:o,setSaving:a}=f8e(),[s,l]=ge.useState(""),[c,u]=ge.useState(!0),[d,h]=ge.useState(!1);ge.useEffect(()=>{(async()=>{if(e)try{await r(e),l((n==null?void 0:n.content)||"")}finally{u(!1)}})()},[e,r,n==null?void 0:n.content]);const p=async()=>{if(n)try{a(!0),await i({...n,content:s}),xs.success("保存成功")}catch(m){console.error("Save document failed:",m),xs.error("保存失败")}finally{a(!1)}};return c||!n?U.jsx("div",{style:{textAlign:"center",padding:"50px"},children:U.jsx(Sl,{size:"large"})}):U.jsxs(zan,{children:[U.jsxs(Uan,{children:[U.jsxs(pa,{children:[U.jsx(pr,{icon:U.jsx(HSe,{}),onClick:()=>t(`/spaces/${n.spaceId}`),children:"返回"}),U.jsx("span",{style:{fontSize:16},children:n.title})]}),U.jsxs(pa,{children:[U.jsx(pr,{icon:U.jsx(iC,{}),children:"预览"}),U.jsx(pr,{icon:U.jsx(gP,{}),onClick:()=>h(!0),children:"设置"}),U.jsx(pr,{type:"primary",icon:U.jsx(_lt,{}),loading:o,onClick:p,children:"保存"})]})]}),U.jsx(Wan,{children:U.jsx(Fan,{value:s,onChange:l})}),U.jsx(jan,{document:n,visible:d,onClose:()=>h(!1)})]})},{Header:Kan,Content:qan}=Co,Gan=mi(Co)`
|
||
height: 100vh;
|
||
`,Yan=mi(Kan)`
|
||
background: #fff;
|
||
padding: 0 24px;
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
|
||
z-index: 100;
|
||
`,Xan=mi(qan)`
|
||
height: calc(100vh - 64px);
|
||
padding: 24px;
|
||
overflow: auto;
|
||
background: #fff;
|
||
`,Qan=[X5e(),Q5e(),d8e()],Zan=()=>{const{documentId:e}=lV(),t=as(),{currentDocument:n,fetchDocument:r}=f8e(),[i,o]=ge.useState(!0),[a,s]=ge.useState(!1);ge.useEffect(()=>{(async()=>{if(e)try{await r(e)}finally{o(!1)}})()},[e,r]);const l=()=>{t(`/documents/${e}/edit`)},c=()=>{xs.info("分享功能开发中")},u=()=>{s(!a),xs.success(a?"已取消收藏":"已收藏")};return i||!n?U.jsx("div",{style:{textAlign:"center",padding:"50px"},children:U.jsx(Sl,{size:"large"})}):U.jsxs(Gan,{children:[U.jsxs(Yan,{children:[U.jsxs(pa,{children:[U.jsx(pr,{icon:U.jsx(HSe,{}),onClick:()=>t(`/spaces/${n.spaceId}`),children:"返回"}),U.jsx("span",{style:{fontSize:16},children:n.title})]}),U.jsxs(pa,{children:[U.jsx(pr,{type:"text",icon:a?U.jsx(tS,{}):U.jsx(y_,{}),onClick:u}),U.jsx(pr,{icon:U.jsx(Plt,{}),onClick:c,children:"分享"}),U.jsx(pr,{type:"primary",icon:U.jsx(v_,{}),onClick:l,children:"编辑"})]})]}),U.jsx(Xan,{children:U.jsx(Otn,{value:n.content,plugins:Qan})})]})},zN=mi(pr)`
|
||
padding: 0 4px;
|
||
height: 24px;
|
||
line-height: 24px;
|
||
`,Jan=({spaceId:e})=>{const[t,n]=ge.useState(!0),[r,i]=ge.useState([]),o=as();ge.useEffect(()=>{const s=[{id:"1",title:"快速开始",content:`# 快速开始
|
||
|
||
欢迎使用...`,spaceId:e,type:"markdown",parentId:null,createdAt:"2024-01-24T10:00:00Z",updatedAt:"2024-01-24T10:00:00Z",createdBy:"1"}];setTimeout(()=>{i(s),n(!1)},1e3)},[e]);const a=[{title:"标题",dataIndex:"title",key:"title",render:(s,l)=>U.jsxs(pa,{children:[U.jsx(_rt,{}),U.jsx("a",{onClick:()=>o(`/documents/${l.id}`),children:s}),l.type==="markdown"&&U.jsx(CP,{color:"blue",children:"Markdown"})]})},{title:"更新时间",dataIndex:"updatedAt",key:"updatedAt",render:s=>new Date(s).toLocaleString()},{title:"操作",key:"action",render:(s,l)=>U.jsxs(pa,{size:"small",children:[U.jsx(zN,{type:"link",icon:U.jsx(iC,{}),onClick:()=>o(`/documents/${l.id}`),children:"预览"}),U.jsx(zN,{type:"link",icon:U.jsx(v_,{}),onClick:()=>o(`/documents/${l.id}/edit`),children:"编辑"}),U.jsx(zN,{type:"link",icon:U.jsx(pP,{}),danger:!0,children:"删除"})]})}];return U.jsx(nh,{columns:a,dataSource:r,loading:t,rowKey:"id",pagination:!1})},Rce=mi(Qv)`
|
||
margin-bottom: 24px;
|
||
`,esn=mi.div`
|
||
max-width: 600px;
|
||
`,tsn=({space:e})=>{const[t]=Or.useForm(),[n,r]=ge.useState(!1),[i,o]=ge.useState([{uid:"-1",name:"cover",status:"done",url:e.coverImage}]),a=async s=>{var l,c,u;try{r(!0),console.log("Updating space:",{...s,coverImage:((l=i[0])==null?void 0:l.url)||((u=(c=i[0])==null?void 0:c.response)==null?void 0:u.url)}),xs.success("更新成功")}catch(d){console.error("Update space failed:",d),xs.error("更新失败")}finally{r(!1)}};return U.jsx(esn,{children:U.jsxs(Or,{form:t,layout:"vertical",initialValues:{name:e.name,description:e.description,type:e.type},onFinish:a,children:[U.jsxs(Rce,{title:"基本信息",children:[U.jsx(Or.Item,{name:"name",label:"空间名称",rules:[{required:!0,message:"请输入空间名称"}],children:U.jsx($i,{placeholder:"请输入空间名称"})}),U.jsx(Or.Item,{name:"description",label:"空间描述",rules:[{required:!0,message:"请输入空间描述"}],children:U.jsx($i.TextArea,{placeholder:"请输入空间描述",rows:4})}),U.jsx(Or.Item,{name:"type",label:"空间类型",rules:[{required:!0,message:"请选择空间类型"}],children:U.jsxs(ti.Group,{children:[U.jsx(ti,{value:"public",children:"公开空间"}),U.jsx(ti,{value:"private",children:"私有空间"})]})}),U.jsx(Or.Item,{label:"封面图片",children:U.jsx(uC,{listType:"picture-card",maxCount:1,fileList:i,onChange:({fileList:s})=>o(s),action:"/api/upload",accept:"image/*",children:i.length===0&&U.jsxs("div",{children:[U.jsx(eC,{}),U.jsx("div",{style:{marginTop:8},children:"上传图片"})]})})})]}),U.jsxs(Rce,{title:"高级设置",children:[U.jsx(Or.Item,{name:"allowComment",valuePropName:"checked",children:U.jsxs(ti.Group,{children:[U.jsx(ti,{value:!0,children:"允许评论"}),U.jsx(ti,{value:!1,children:"禁止评论"})]})}),U.jsx(Or.Item,{name:"allowShare",valuePropName:"checked",children:U.jsxs(ti.Group,{children:[U.jsx(ti,{value:!0,children:"允许分享"}),U.jsx(ti,{value:!1,children:"禁止分享"})]})})]}),U.jsx(Or.Item,{children:U.jsx(pr,{type:"primary",htmlType:"submit",loading:n,children:"保存更改"})})]})})},{Option:s2}=ys,nsn=mi(pr)`
|
||
padding: 0 4px;
|
||
height: 24px;
|
||
line-height: 24px;
|
||
`,rsn=mi.div`
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
margin-bottom: 16px;
|
||
`,isn=({spaceId:e})=>{const[t,n]=ge.useState(!0),[r,i]=ge.useState([]),[o,a]=ge.useState(!1),[s]=Or.useForm();ge.useEffect(()=>{const u=[{id:"1",name:"管理员",email:"admin@example.com",role:"admin"},{id:"2",name:"测试用户",email:"test@example.com",role:"member"}];setTimeout(()=>{i(u),n(!1)},1e3)},[e]);const l=async u=>{try{console.log("Inviting member:",u),xs.success("邀请已发送"),a(!1),s.resetFields()}catch(d){console.error("Invite member failed:",d),xs.error("邀请失败")}},c=[{title:"成员",dataIndex:"name",key:"name",render:(u,d)=>U.jsxs(pa,{children:[U.jsx(BW,{}),u,U.jsxs("span",{style:{color:"#999"},children:["(",d.email,")"]})]})},{title:"角色",dataIndex:"role",key:"role",render:u=>U.jsx(CP,{color:u==="admin"?"blue":"default",children:u==="admin"?"管理员":"成员"})},{title:"操作",key:"action",render:u=>U.jsxs(pa,{size:"small",children:[U.jsxs(ys,{defaultValue:u.role,style:{width:100},bordered:!1,disabled:u.role==="admin",children:[U.jsx(s2,{value:"admin",children:"管理员"}),U.jsx(s2,{value:"member",children:"成员"}),U.jsx(s2,{value:"readonly",children:"只读"})]}),U.jsx(nsn,{type:"link",icon:U.jsx(pP,{}),danger:!0,disabled:u.role==="admin",children:"移除"})]})}];return U.jsxs("div",{children:[U.jsxs(rsn,{children:[U.jsxs("span",{children:["共 ",r.length," 名成员"]}),U.jsx(pr,{type:"primary",icon:U.jsx(eC,{}),onClick:()=>a(!0),children:"邀请成员"})]}),U.jsx(nh,{columns:c,dataSource:r,loading:t,rowKey:"id",pagination:!1}),U.jsx(Ma,{title:"邀请成员",open:o,onCancel:()=>a(!1),onOk:()=>s.submit(),children:U.jsxs(Or,{form:s,layout:"vertical",onFinish:l,children:[U.jsx(Or.Item,{name:"email",label:"邮箱地址",rules:[{required:!0,message:"请输入邮箱地址"},{type:"email",message:"请输入有效的邮箱地址"}],children:U.jsx($i,{prefix:U.jsx(Ust,{}),placeholder:"请输入邮箱地址"})}),U.jsx(Or.Item,{name:"role",label:"角色",initialValue:"member",rules:[{required:!0,message:"请选择角色"}],children:U.jsxs(ys,{children:[U.jsx(s2,{value:"member",children:"成员"}),U.jsx(s2,{value:"readonly",children:"只读"})]})}),U.jsx(Or.Item,{name:"message",label:"邀请消息",children:U.jsx($i.TextArea,{placeholder:"可选:添加一条邀请消息",rows:3})})]})})]})},osn=mi.div`
|
||
margin-bottom: 24px;
|
||
padding: 16px 24px;
|
||
background: #fff;
|
||
border-radius: 2px;
|
||
box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
|
||
`,asn=mi(uW)`
|
||
margin-bottom: 16px;
|
||
`,ssn=mi.div`
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
margin-bottom: 16px;
|
||
|
||
h1 {
|
||
margin: 0;
|
||
font-size: 20px;
|
||
line-height: 32px;
|
||
}
|
||
`,lsn=mi.div`
|
||
color: rgba(0, 0, 0, 0.45);
|
||
`,csn=()=>{const{spaceId:e}=lV(),{currentSpace:t,fetchSpaceDetail:n,toggleStarSpace:r}=QM(),[i,o]=ge.useState(!0),[a,s]=ge.useState("documents"),l=as();if(ge.useEffect(()=>{(async()=>{if(e)try{await n(e)}finally{o(!1)}})()},[e,n]),i||!t)return U.jsx("div",{style:{textAlign:"center",padding:"50px"},children:U.jsx(Sl,{size:"large"})});const c={items:[{key:"edit",icon:U.jsx(v_,{}),label:"编辑空间"},{key:"settings",icon:U.jsx(gP,{}),label:"空间设置"},{type:"divider"},{key:"delete",icon:U.jsx(pP,{}),label:"删除空间",danger:!0}]},u=[{key:"documents",label:"文档",children:U.jsx(Jan,{spaceId:e||""})},{key:"settings",label:"设置",children:U.jsx(tsn,{space:t})},{key:"members",label:"成员",children:U.jsx(isn,{spaceId:e||""})}],d=()=>{const h=String(Date.now());l(`/documents/${h}/edit`)};return U.jsxs("div",{children:[U.jsxs(osn,{children:[U.jsx(asn,{items:[{title:"所有空间",onClick:h=>{h.preventDefault(),l("/")}},{title:U.jsx(U.Fragment,{children:t==null?void 0:t.name})}]}),U.jsxs(ssn,{children:[U.jsxs(pa,{size:"middle",align:"center",children:[U.jsx("h1",{children:t.name}),U.jsx(pr,{type:"text",icon:t.starred?U.jsx(tS,{}):U.jsx(y_,{}),onClick:()=>r(t.id)}),U.jsx(pr,{type:"primary",icon:U.jsx(v_,{}),onClick:d,children:"新建文档"})]}),U.jsxs(pa,{children:[U.jsx(pr,{icon:U.jsx(FW,{}),children:"邀请成员"}),U.jsx(uP,{menu:c,placement:"bottomRight",children:U.jsx(pr,{icon:U.jsx(nlt,{})})})]})]}),U.jsx(lsn,{children:t.description})]}),U.jsx(tC,{activeKey:a,onChange:s,items:u,size:"large"})]})};function usn({children:e}){const{isLoggedIn:t}=f.useContext(Ks),n=hC();return t?e:U.jsx(cgt,{to:"/auth/login",replace:!0,state:{from:n}})}const Ace=[{path:"/",element:U.jsx(U.Fragment,{children:U.jsx(usn,{children:U.jsx(Tzt,{})})}),children:[{path:"",element:U.jsx(kae,{})},{path:"spaces",element:U.jsx(kae,{})},{path:"spaces/:spaceId",element:U.jsx(csn,{})},{path:"documents/:documentId",element:U.jsx(Zan,{})},{path:"documents/:documentId/edit",element:U.jsx(Van,{})},{path:"/setting",element:U.jsx(fEe,{}),children:[{path:"/setting",element:U.jsx(pae,{})},{path:"/setting/profile",element:U.jsx(pae,{})},{path:"/setting/agentProfile",element:U.jsx(Vzt,{})},{path:"/setting/memberProfile",element:U.jsx(Lzt,{})},{path:"/setting/basic",element:U.jsx($zt,{})},{path:"/setting/certification",element:U.jsx(Uzt,{})},{path:"/setting/qrcode",element:U.jsx(Rzt,{})},{path:"/setting/shortcut",element:U.jsx(Azt,{})}]}]},{path:"/auth",element:U.jsx(kzt,{}),children:[{path:"/auth",element:U.jsx(gB,{isModel:!1})},{path:"/auth/login",element:U.jsx(gB,{isModel:!1})},{path:"/auth/register",element:U.jsx(ALt,{})},{path:"/auth/server",element:U.jsx(M_e,{})}]},{path:"/anonymous",element:U.jsx(xUt,{}),children:[{path:"/anonymous",element:U.jsx(AB,{})},{path:"/anonymous/home",element:U.jsx(AB,{})},{path:"/anonymous/setting",element:U.jsx(EUt,{})}]},{path:"*",element:U.jsx(Nzt,{})}];let sH;is?sH=vgt(Ace,{future:{v7_normalizeFormMethod:!0,v7_relativeSplatPath:!0,v7_partialHydration:!0,v7_fetcherPersist:!0,v7_skipActionErrorRevalidation:!0}}):sH=ggt(Ace,{basename:"/notebase",future:{v7_normalizeFormMethod:!0,v7_relativeSplatPath:!0,v7_partialHydration:!0,v7_fetcherPersist:!0,v7_skipActionErrorRevalidation:!0}});const dsn=sH;var fsn=typeof Element<"u",hsn=typeof Map=="function",psn=typeof Set=="function",msn=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function y3(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!y3(e[r],t[r]))return!1;return!0}var o;if(hsn&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!y3(r.value[1],t.get(r.value[0])))return!1;return!0}if(psn&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(msn&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(fsn&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!y3(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var gsn=function(t,n){try{return y3(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const vsn=vi(gsn);var ysn=function(e,t,n,r,i,o,a,s){if(!e){var l;if(t===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,o,a,s],u=0;l=new Error(t.replace(/%s/g,function(){return c[u++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},bsn=ysn;const Nce=vi(bsn);var h8e=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(h8e||{}),UN={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},Dce=Object.values(h8e),jq={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Ssn=Object.entries(jq).reduce((e,[t,n])=>(e[n]=t,e),{}),Cd="data-rh",bb={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},Sb=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},Csn=e=>{let t=Sb(e,"title");const n=Sb(e,bb.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=Sb(e,bb.DEFAULT_TITLE);return t||r||void 0},xsn=e=>Sb(e,bb.ON_CHANGE_CLIENT_STATE)||(()=>{}),WN=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),wsn=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const i=Object.keys(r);for(let o=0;o<i.length;o+=1){const s=i[o].toLowerCase();if(e.indexOf(s)!==-1&&r[s])return n.concat(r)}}return n},[]),_sn=e=>console&&typeof console.warn=="function"&&console.warn(e),l2=(e,t,n)=>{const r={};return n.filter(i=>Array.isArray(i[e])?!0:(typeof i[e]<"u"&&_sn(`Helmet: ${e} should be of type "Array". Instead found type "${typeof i[e]}"`),!1)).map(i=>i[e]).reverse().reduce((i,o)=>{const a={};o.filter(l=>{let c;const u=Object.keys(l);for(let h=0;h<u.length;h+=1){const p=u[h],m=p.toLowerCase();t.indexOf(m)!==-1&&!(c==="rel"&&l[c].toLowerCase()==="canonical")&&!(m==="rel"&&l[m].toLowerCase()==="stylesheet")&&(c=m),t.indexOf(p)!==-1&&(p==="innerHTML"||p==="cssText"||p==="itemprop")&&(c=p)}if(!c||!l[c])return!1;const d=l[c].toLowerCase();return r[c]||(r[c]={}),a[c]||(a[c]={}),r[c][d]?!1:(a[c][d]=!0,!0)}).reverse().forEach(l=>i.push(l));const s=Object.keys(a);for(let l=0;l<s.length;l+=1){const c=s[l],u={...r[c],...a[c]};r[c]=u}return i},[]).reverse()},Esn=(e,t)=>{if(Array.isArray(e)&&e.length){for(let n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},Tsn=e=>({baseTag:wsn(["href"],e),bodyAttributes:WN("bodyAttributes",e),defer:Sb(e,bb.DEFER),encode:Sb(e,bb.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:WN("htmlAttributes",e),linkTags:l2("link",["rel","href"],e),metaTags:l2("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:l2("noscript",["innerHTML"],e),onChangeClientState:xsn(e),scriptTags:l2("script",["src","innerHTML"],e),styleTags:l2("style",["cssText"],e),title:Csn(e),titleAttributes:WN("titleAttributes",e),prioritizeSeoTags:Esn(e,bb.PRIORITIZE_SEO_TAGS)}),p8e=e=>Array.isArray(e)?e.join(""):e,ksn=(e,t)=>{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1},VN=(e,t)=>Array.isArray(e)?e.reduce((n,r)=>(ksn(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},Lce=(e,t)=>({...e,[t]:void 0}),Osn=["noscript","script","style"],lH=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),m8e=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),Psn=(e,t,n,r)=>{const i=m8e(n),o=p8e(t);return i?`<${e} ${Cd}="true" ${i}>${lH(o,r)}</${e}>`:`<${e} ${Cd}="true">${lH(o,r)}</${e}>`},Msn=(e,t,n=!0)=>t.reduce((r,i)=>{const o=i,a=Object.keys(o).filter(c=>!(c==="innerHTML"||c==="cssText")).reduce((c,u)=>{const d=typeof o[u]>"u"?u:`${u}="${lH(o[u],n)}"`;return c?`${c} ${d}`:d},""),s=o.innerHTML||o.cssText||"",l=Osn.indexOf(e)===-1;return`${r}<${e} ${Cd}="true" ${a}${l?"/>":`>${s}</${e}>`}`},""),g8e=(e,t={})=>Object.keys(e).reduce((n,r)=>{const i=jq[r];return n[i||r]=e[r],n},t),Isn=(e,t,n)=>{const r={key:t,[Cd]:!0},i=g8e(n,r);return[ge.createElement("title",i,t)]},b3=(e,t)=>t.map((n,r)=>{const i={key:r,[Cd]:!0};return Object.keys(n).forEach(o=>{const s=jq[o]||o;if(s==="innerHTML"||s==="cssText"){const l=n.innerHTML||n.cssText;i.dangerouslySetInnerHTML={__html:l}}else i[s]=n[o]}),ge.createElement(e,i)}),iu=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>Isn(e,t.title,t.titleAttributes),toString:()=>Psn(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>g8e(t),toString:()=>m8e(t)};default:return{toComponent:()=>b3(e,t),toString:()=>Msn(e,t,n)}}},$sn=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const i=VN(e,UN.meta),o=VN(t,UN.link),a=VN(n,UN.script);return{priorityMethods:{toComponent:()=>[...b3("meta",i.priority),...b3("link",o.priority),...b3("script",a.priority)],toString:()=>`${iu("meta",i.priority,r)} ${iu("link",o.priority,r)} ${iu("script",a.priority,r)}`},metaTags:i.default,linkTags:o.default,scriptTags:a.default}},Rsn=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:i,noscriptTags:o,styleTags:a,title:s="",titleAttributes:l,prioritizeSeoTags:c}=e;let{linkTags:u,metaTags:d,scriptTags:h}=e,p={toComponent:()=>{},toString:()=>""};return c&&({priorityMethods:p,linkTags:u,metaTags:d,scriptTags:h}=$sn(e)),{priority:p,base:iu("base",t,r),bodyAttributes:iu("bodyAttributes",n,r),htmlAttributes:iu("htmlAttributes",i,r),link:iu("link",u,r),meta:iu("meta",d,r),noscript:iu("noscript",o,r),script:iu("script",h,r),style:iu("style",a,r),title:iu("title",{title:s,titleAttributes:l},r)}},cH=Rsn,V5=[],v8e=!!(typeof window<"u"&&window.document&&window.document.createElement),uH=class{constructor(e,t){xi(this,"instances",[]);xi(this,"canUseDOM",v8e);xi(this,"context");xi(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?V5:this.instances,add:e=>{(this.canUseDOM?V5:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?V5:this.instances).indexOf(e);(this.canUseDOM?V5:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=cH({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},Asn={},y8e=ge.createContext(Asn),j1,b8e=(j1=class extends f.Component{constructor(n){super(n);xi(this,"helmetData");this.helmetData=new uH(this.props.context||{},j1.canUseDOM)}render(){return ge.createElement(y8e.Provider,{value:this.helmetData.value},this.props.children)}},xi(j1,"canUseDOM",v8e),j1),gy=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${Cd}]`),i=[].slice.call(r),o=[];let a;return t&&t.length&&t.forEach(s=>{const l=document.createElement(e);for(const c in s)if(Object.prototype.hasOwnProperty.call(s,c))if(c==="innerHTML")l.innerHTML=s.innerHTML;else if(c==="cssText")l.styleSheet?l.styleSheet.cssText=s.cssText:l.appendChild(document.createTextNode(s.cssText));else{const u=c,d=typeof s[u]>"u"?"":s[u];l.setAttribute(c,d)}l.setAttribute(Cd,"true"),i.some((c,u)=>(a=u,l.isEqualNode(c)))?i.splice(a,1):o.push(l)}),i.forEach(s=>{var l;return(l=s.parentNode)==null?void 0:l.removeChild(s)}),o.forEach(s=>n.appendChild(s)),{oldTags:i,newTags:o}},dH=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(Cd),i=r?r.split(","):[],o=[...i],a=Object.keys(t);for(const s of a){const l=t[s]||"";n.getAttribute(s)!==l&&n.setAttribute(s,l),i.indexOf(s)===-1&&i.push(s);const c=o.indexOf(s);c!==-1&&o.splice(c,1)}for(let s=o.length-1;s>=0;s-=1)n.removeAttribute(o[s]);i.length===o.length?n.removeAttribute(Cd):n.getAttribute(Cd)!==a.join(",")&&n.setAttribute(Cd,a.join(","))},Nsn=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=p8e(e)),dH("title",t)},Fce=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:i,linkTags:o,metaTags:a,noscriptTags:s,onChangeClientState:l,scriptTags:c,styleTags:u,title:d,titleAttributes:h}=e;dH("body",r),dH("html",i),Nsn(d,h);const p={baseTag:gy("base",n),linkTags:gy("link",o),metaTags:gy("meta",a),noscriptTags:gy("noscript",s),scriptTags:gy("script",c),styleTags:gy("style",u)},m={},v={};Object.keys(p).forEach(y=>{const{newTags:S,oldTags:b}=p[y];S.length&&(m[y]=S),b.length&&(v[y]=p[y].oldTags)}),t&&t(),l(e,m,v)},c2=null,Dsn=e=>{c2&&cancelAnimationFrame(c2),e.defer?c2=requestAnimationFrame(()=>{Fce(e,()=>{c2=null})}):(Fce(e),c2=null)},Lsn=Dsn,jce=class extends f.Component{constructor(){super(...arguments);xi(this,"rendered",!1)}shouldComponentUpdate(t){return!hHt(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let r=null;const i=Tsn(t.get().map(o=>{const a={...o.props};return delete a.context,a}));b8e.canUseDOM?Lsn(i):cH&&(r=cH(i)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},KN,Fsn=(KN=class extends f.Component{shouldComponentUpdate(e){return!vsn(Lce(this.props,"helmetData"),Lce(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(r=>{n={...n,[r]:e[r]}}),n}warnOnInvalidChildren(e,t){return Nce(Dce.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${Dce.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),Nce(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return ge.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:i,...o}=r.props,a=Object.keys(o).reduce((l,c)=>(l[Ssn[c]||c]=o[c],l),{});let{type:s}=r;switch(typeof s=="symbol"?s=s.toString():this.warnOnInvalidChildren(r,i),s){case"Symbol(react.fragment)":t=this.mapChildrenToProps(i,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,a,i);break;default:t=this.mapObjectTypeChildren(r,t,a,i);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof uH)){const i=r;r=new uH(i.context,!0),delete n.helmetData}return r?ge.createElement(jce,{...n,context:r.value}):ge.createElement(y8e.Consumer,null,i=>ge.createElement(jce,{...n,context:i}))}},xi(KN,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),KN);const jsn={i18_file_assistant:"文件助手",slogan:"对话即服务","menu.dashboard.chat":"消息","menu.dashboard.contact":"通讯录","menu.dashboard.queue":"排队","menu.dashboard.ticket":"工单","menu.dashboard.leavemsg":"留言","menu.dashboard.visitor":"访客","menu.dashboard.monitor":"监控","menu.dashboard.plugins":"插件","menu.dashboard.mine":"我的","chat.toolbar.emoji":"表情","chat.toolbar.image":"图片","chat.toolbar.file":"文件","chat.toolbar.audio":"录音","chat.toolbar.webrtc":"视频","chat.toolbar.history":"历史消息","chat.toolbar.block":"拉黑","chat.toolbar.screenshot":"截图","chat.toolbar.invite.rate":"邀请评价","chat.toolbar.autoreply":"自动回复","chat.toolbar.autoreply.on":"自动回复(已开启)","chat.navbar.transfer":"转接","chat.navbar.ticket":"工单","chat.navbar.crm":"Crm","chat.navbar.close":"结束","chat.navbar.category":"分类","chat.navbar.ai":"AI","chat.navbar.queue":"排队","chat.right.ai":"Copilot","chat.right.quickreply":"快捷回复","chat.right.ticket":"工单","chat.right.userinfo":"用户信息","chat.right.llm":"大模型","chat.right.docview":"文档预览","chat.right.group":"群详情","chat.right.member":"联系人","chat.ai.summary":"会话小结","chat.ai.switch":"切换AI","chat.thread.nomore":"没有更多了","chat.message.loadmore":"加载更多","dashboard.footbar.logout":"退出",SERVICE:"客服机器人(对外)",MARKETING:"营销机器人(对外)",KNOWLEDGEBASE:"知识库机器人(内部)",QA:"问答机器人(直接调用大模型)",AGENT_ASSISTANT:"客服助手(内部)",loading:"加载中",create:"创建",creating:"创建中...","create.success":"创建成功","create.fail":"创建失败",update:"更新",updating:"更新中...","update.success":"更新成功","update.fail":"更新失败",save:"保存",saving:"正在保存...",email:"邮箱","email.verified":"邮箱(已验证)","email.unverified":"邮箱(待验证)",mobile:"手机号","mobile.verified":"手机号(已验证)","mobile.unverified":"手机号(待验证)",captcha:"验证码",logging:"登录中...","login.success":"登录成功","login.error":"登录失败,请稍后重试",registering:"注册中...","register.success":"注册成功","register.error":"注册失败","username.change.tip":"登录用户名(修改用户名之后,需要重新登录)",createKb:"创建知识库",createDept:"创建部门",upload:"上传",import:"导入",export:"导出","download.template":"下载模板",open:"打开",copy:"复制","copy.success":"复制成功",ok:"确定",cancel:"取消",bind:"绑定",edit:"编辑",editing:"修改中...","edit.success":"修改成功","edit.fail":"修改失败",delete:"删除",deleting:"删除中...",deleteTip:"删除提示",deleteAffirm:"确定要删除","delete.success":"删除成功","delete.fail":"删除失败","process.success":"处理成功","process.fail":"处理失败",preview:"预览",close:"关闭",closing:"关闭中...",closeTip:"关闭提示",closeASure:"确定要关闭","close.success":"关闭成功",choose:"选择","leavemsg.enabled":"留言启用",transfer:"转接","transfer.success":"转接成功","transfer.fail":"转接失败","transfer.reason":"转接原因",refresh:"刷新",noAgent:"暂无客服在线"},Bsn={"menu.anonymous.title":"Anonymous Mode","menu.anonymous.home":"Messages","menu.anonymous.contact":"Contacts","menu.anonymous.robot":"Robot","menu.anonymous.setting":"Settings","menu.anonymous.status":"Anonymous Status","menu.anonymous.status.tip":"Anonymous mode only supports communication between online devices in the same LAN","menu.anonymous.login.tip":"Login to access offline messages and more features","menu.anonymous.login":"Login","menu.anonymous.current.users":"Current Users","menu.dashboard.chat":"聊天","menu.dashboard.contact":"联系人","menu.dashboard.ai":"AI助手","menu.dashboard.note":"笔记","menu.dashboard.kbase":"知识库","menu.dashboard.mine":"设置","menu.dashboard.queue":"排队","menu.dashboard.ticket":"工单","menu.dashboard.leavemsg":"留言","menu.dashboard.visitor":"访客","menu.dashboard.monitor":"监控","menu.dashboard.plugins":"插件","menu.settings":"Settings","menu.settings.logout":"Logout","menu.agent.status":"Agent Status","menu.agent.status.available":"Available","menu.agent.status.rest":"Rest","menu.agent.status.offline":"Offline","menu.language":"Language","menu.mode":"Mode","menu.mode.team":"Team Mode","menu.mode.agent":"Agent Mode","menu.mode.personal":"Personal Mode","menu.agent.offline.warning":"Please end all ongoing conversations before going offline","menu.mode.personal.coming":"Coming soon...","menu.dashboard.notebase":"知识库"},Hsn={"pages.login.title":"登录","pages.login.subtitle":"欢迎使用微语客服系统","pages.login.accountLogin.tab":"账户密码登录","pages.login.accountLogin.errorMessage":"错误的用户名和密码","pages.login.failure":"登录失败,请检查用户名密码!","pages.login.failureCode":"验证错误","pages.login.success":"登录成功!","pages.login.username.placeholder":"请输入用户名","pages.login.username.required":"用户名是必填项!","pages.login.password.placeholder":"请输入密码","pages.login.repassword.placeholder":"确认密码","pages.login.password.required":"密码是必填项!","pages.login.repassword.required":"确认密码是必填项!","pages.login.phoneLogin.tab":"手机号登录","pages.login.phoneLogin.errorMessage":"验证码错误","pages.login.phoneNumber.placeholder":"请输入手机号!","pages.login.phoneNumber.required":"手机号是必填项!","pages.login.phoneNumber.invalid":"不合法的手机号!","pages.login.captcha.placeholder":"请输入验证码!","pages.login.captcha.required":"验证码是必填项!","pages.login.phoneLogin.getVerificationCode":"获取验证码","pages.login.anonymousLogin":"匿名登录","pages.getCaptchaSecondText":"秒后重新获取","pages.login.scanLogin.tab":"扫码登录","pages.login.rememberMe":"自动登录","pages.login.forgotPassword":"忘记密码","pages.login.submit":"登录","pages.login.loginWith":"其他登录方式 :","pages.login.register":"注册账号","pages.login.registerAccount":"注册账户","pages.login.auto.register":"未注册手机号会自动注册","pages.welcome.link":"欢迎使用","pages.robot.new":"新建","pages.robot.chat":"聊天","pages.robot.edit":"编辑","pages.robot.delete":"删除","pages.robot.upload":"上传","pages.robot.tab.basic":"基本信息","pages.robot.tab.kb":"知识库","pages.robot.tab.channel":"渠道对接","pages.robot.tab.statistic":"数据统计","pages.robot.tab.advanced":"高级设置","pages.robot.tab.flow":"流程设计","pages.robot.tab.avatar":"头像","pages.robot.tab.title":"标题","pages.robot.tab.welcomeTip":"欢迎语","pages.robot.tab.description":"简介","pages.robot.tab.preview":"实时预览","pages.robot.tab.website":"官网","pages.robot.tab.helpdesk":"帮助文档","pages.robot.tab.icp":"京ICP备案 17041763号-1","pages.robot.tab.police":"粤公安备案 44030502008688号","pages.robot.kb.file":"文件","pages.robot.kb.text":"文本","pages.robot.kb.qa":"问答","pages.robot.kb.web":"网站","pages.robot.file.title":"文件名","pages.robot.file.type":"文件类型","pages.robot.file.size":"文件大小","pages.robot.file.action":"操作","pages.robot.file.delete":"删除","pages.robot.file.save":"保存","pages.robot.file.cancel":"取消","pages.robot.file.uploading":"上传中...","pages.robot.file.name_invalid":"文件名不能包含 _ ","pages.robot.file.parse":"解析文件内容","pages.setting":"设置","pages.logout":"退出登录","pages.footer.website":"微语官网","pages.footer.helpcenter":"帮助文档","pages.login.remember":"记住密码","pages.agent.tab.basic":"基本信息","pages.agent.robot":"机器人","pages.agent.service.settings":"服务设置","pages.agent.service.settings.topTip":"顶部提示","pages.agent.service.settings.welcomeTip":"欢迎语","pages.agent.service.settings.leavemsgTip":"离线留言提示","pages.agent.service.settings.autoCloseMin":"自动关闭分钟","pages.agent.service.settings.showLogo":"显示Logo","pages.agent.service.settings.maxThreadCount":"最大线程数","pages.advanced.faq":"常见问题","pages.advanced.quickButton":"快捷按钮","pages.advanced.faqGuess":"智能推荐","pages.advanced.faqHot":"热门问题","pages.advanced.faqShortcut":"快捷回复","pages.advanced.rate":"满意度评价","pages.advanced.autoreply":"自动回复","pages.advanced.leaveMsg":"留言设置","pages.advanced.survey":"调查问卷","pages.advanced.history":"历史记录","pages.advanced.inputAssociation":"输入联想","pages.advanced.antiHarassment":"验证码设置","pages.advanced.captcha":"验证码设置","pages.advanced.showPreForm":"显示预览","pages.advanced.showHistory":"显示历史","pages.advanced.showInputAssociation":"显示输入联想","pages.advanced.showCaptcha":"显示验证码","pages.login.country.placeholder":"选择国家/地区","pages.login.country.china":"中国大陆","pages.login.country.hongkong":"中国香港","pages.login.country.taiwan":"中国台湾","pages.login.country.macao":"中国澳门","pages.login.country.japan":"日本","pages.login.country.korea":"韩国","pages.login.country.usa":"美国","pages.login.country.canada":"加拿大","pages.login.country.uk":"英国","pages.login.country.germany":"德国","pages.login.country.france":"法国","pages.login.country.australia":"澳大利亚","pages.login.country.singapore":"新加坡","pages.login.country.malaysia":"马来西亚","pages.login.country.thailand":"泰国","pages.login.country.vietnam":"越南","pages.login.country.philippines":"菲律宾","pages.login.country.indonesia":"印度尼西亚","pages.login.country.italy":"意大利","pages.login.country.spain":"西班牙","pages.login.country.russia":"俄罗斯","pages.login.country.newzealand":"新西兰","pages.anonymous.title":"匿名模式","pages.anonymous.home":"首页","pages.anonymous.contact":"联系人","pages.anonymous.robot":"机器人","pages.anonymous.setting":"设置","pages.anonymous.welcome":"欢迎使用匿名模式","pages.anonymous.description":"您可以在此模式下匿名使用系统功能","block.title":"拉黑设置","block.type":"拉黑类型","block.user":"拉黑用户","block.ip":"拉黑IP","block.permanent":"永久封禁","block.until":"封禁至","block.until.required":"请选择封禁结束时间","pages.register.title":"注册","pages.register.subtitle":"创建您的账号","pages.register.username":"用户名","pages.register.password":"密码","pages.register.confirm":"确认密码","pages.register.email":"邮箱","pages.register.mobile":"手机号","pages.register.code":"验证码","pages.register.agreement":"我已阅读并同意","pages.register.agreement.terms":"服务条款","pages.register.submit":"注册","pages.register.login":"使用已有账号登录","pages.404.title":"404","pages.404.subtitle":"抱歉,您访问的页面不存在","pages.404.description":"您可以尝试以下操作:","pages.404.actions.back":"返回上一页","pages.404.actions.home":"返回首页","pages.403.title":"403","pages.403.subtitle":"抱歉,您没有访问该页面的权限","pages.403.description":"请联系管理员获取权限","pages.403.actions.back":"返回上一页","pages.500.title":"500","pages.500.subtitle":"抱歉,服务器出错了","pages.500.description":"请稍后再试或联系技术支持","pages.500.actions.back":"返回上一页","pages.500.actions.home":"返回首页","pages.welcome.title":"欢迎","pages.welcome.description":"微语客服系统是一个开源的客服系统","pages.welcome.getting-started":"开始使用","pages.welcome.view-docs":"查看文档"},zsn={"app.title":"微语","app.logout":"登出","app.copyright.produced":"微语出品","app.preview.down.block":"下载此页面到本地项目","app.welcome.link.fetch-blocks":"获取全部区块","app.welcome.link.block-list":"基于 block 开发,快速构建标准页面","navBar.lang":"语言","layout.user.link.help":"帮助","layout.user.link.privacy":"隐私","layout.user.link.terms":"条款","theme.light":"浅色","theme.dark":"深色","theme.system":"自动","setting.lang":"Languages","setting.theme":"主题","app.name":"微语客服","app.description":"新一代智能客服系统","app.welcome":"欢迎使用微语客服系统","app.copyright":"© 2024 微语客服. 保留所有权利.","app.version":"版本","app.action.back":"返回","app.action.confirm":"确认","app.action.cancel":"取消","app.action.save":"保存","app.action.edit":"编辑","app.action.delete":"删除","app.action.refresh":"刷新","app.action.search":"搜索","app.action.more":"更多","app.action.settings":"设置","app.action.help":"帮助","app.tip.loading":"加载中...","app.tip.success":"操作成功","app.tip.error":"操作失败","app.tip.warning":"警告","app.tip.info":"提示","app.tip.confirm":"确认要执行此操作吗?","app.tip.nodata":"暂无数据","app.tip.network.error":"网络连接失败","app.tip.server.error":"服务器错误","app.status.online":"在线","app.status.offline":"离线","app.status.busy":"忙碌","app.status.away":"离开","app.status.invisible":"隐身","app.status.disabled":"已禁用","app.status.expired":"已过期","app.time.today":"今天","app.time.yesterday":"昨天","app.time.tomorrow":"明天","app.time.just":"刚刚","app.time.minutes":"{count} 分钟前","app.time.hours":"{count} 小时前","app.time.days":"{count} 天前","app.file.upload":"上传文件","app.file.download":"下载文件","app.file.preview":"预览文件","app.file.size.limit":"文件大小不能超过 {size}","app.file.type.unsupported":"不支持的文件类型","app.file.upload.success":"上传成功","app.file.upload.failed":"上传失败","app.file.download.success":"下载成功","app.file.download.failed":"下载失败","app.layout.sidebar.collapse":"收起侧边栏","app.layout.sidebar.expand":"展开侧边栏","app.layout.header.profile":"个人中心","app.layout.header.logout":"退出登录","app.layout.footer.copyright":"版权所有","app.layout.footer.terms":"服务条款","app.layout.footer.privacy":"隐私政策"},Usn={"auth.login.title":"登录","auth.login.subtitle":"欢迎使用微语客服系统","auth.login.username":"用户名","auth.login.username.required":"请输入用户名","auth.login.password":"密码","auth.login.password.required":"请输入密码","auth.login.remember":"记住密码","auth.login.forgot":"忘记密码?","auth.login.submit":"登录","auth.login.other":"其他登录方式","auth.login.register":"注册账号","auth.login.success":"登录成功","auth.login.failed":"登录失败","auth.register.title":"注册","auth.register.subtitle":"创建新账号","auth.register.username":"用户名","auth.register.username.required":"请输入用户名","auth.register.email":"邮箱","auth.register.email.required":"请输入邮箱","auth.register.password":"密码","auth.register.password.required":"请输入密码","auth.register.confirm":"确认密码","auth.register.confirm.required":"请确认密码","auth.register.submit":"注册","auth.register.login":"已有账号?登录","auth.register.success":"注册成功","auth.register.failed":"注册失败","auth.forgot.title":"忘记密码","auth.forgot.subtitle":"重置密码","auth.forgot.email":"邮箱","auth.forgot.email.required":"请输入邮箱","auth.forgot.submit":"提交","auth.forgot.back":"返回登录","auth.forgot.success":"重置密码邮件已发送","auth.forgot.failed":"重置密码失败","auth.reset.title":"重置密码","auth.reset.subtitle":"设置新密码","auth.reset.password":"新密码","auth.reset.password.required":"请输入新密码","auth.reset.confirm":"确认密码","auth.reset.confirm.required":"请确认新密码","auth.reset.submit":"提交","auth.reset.success":"密码重置成功","auth.reset.failed":"密码重置失败","auth.verify.code":"验证码","auth.verify.code.required":"请输入验证码","auth.verify.code.send":"发送验证码","auth.verify.code.resend":"重新发送","auth.verify.code.success":"验证码发送成功","auth.verify.code.failed":"验证码发送失败","auth.password.strength.weak":"密码强度:弱","auth.password.strength.medium":"密码强度:中","auth.password.strength.strong":"密码强度:强","auth.agreement.text":"我已阅读并同意","auth.agreement.terms":"服务条款","auth.agreement.privacy":"隐私政策","server.button.back":"返回","server.button.save":"保存","server.button.reset":"重置","server.button.help":"帮助","server.save.success":"保存成功","server.reset.success":"重置成功,已恢复默认云服务器","server.custom.enable":"启用自定义服务器","server.api.url.label":"API服务器地址 (例如: http://127.0.0.1:9003 或 https://api.bytedesk.com)","server.api.url.placeholder":"http://127.0.0.1:9003","server.websocket.url.label":"WebSocket服务器地址 (例如: ws://127.0.0.1:9885/websocket 或 wss://api.bytedesk.com/websocket)","server.websocket.url.placeholder":"ws://127.0.0.1:9885/websocket","server.input.error":"请输入正确的服务器地址"},Wsn={"chat.title":"会话","chat.empty":"暂无会话","chat.loading":"加载中...","chat.load.error":"加载失败","chat.load.more":"加载更多","chat.no.more":"没有更多了","chat.refresh":"刷新","chat.status.connecting":"连接中...","chat.status.connected":"已连接","chat.status.disconnected":"连接断开","chat.status.reconnecting":"重新连接中...","chat.network.error":"网络连接失败,请检查网络","chat.thread.closing":"结束会话中...","chat.thread.close.success":"结束会话成功","chat.thread.close.failed":"结束会话失败","chat.thread.close.confirm.title":"确定要结束会话?","chat.rate.invite.confirm.title":"确认要邀请评价?","chat.message.send.failed":"发送失败","chat.message.resend":"重新发送","chat.message.recall":"撤回消息","chat.message.copy.success":"复制成功","chat.copy.success":"复制成功","chat.menu.copy":"复制","chat.menu.translate":"翻译","chat.menu.recall":"撤回","chat.menu.enlarge":"放大阅读","chat.menu.quickreply.add":"添加快捷回复...","chat.menu.browser.open":"浏览器打开","chat.menu.forward":"转发...","chat.menu.collect":"收藏","chat.menu.quote":"引用","chat.input.placeholder":"请输入内容, Ctrl+V 粘贴截图/图片","chat.translation.placeholder":"请输入翻译内容...","chat.input.send":"发送","chat.input.sending":"发送中...","chat.toolbar.emoji":"表情","chat.toolbar.image":"图片","chat.toolbar.file":"文件","chat.toolbar.screenshot":"截图","chat.toolbar.autoreply":"自动回复","chat.toolbar.audio":"录音","chat.toolbar.webrtc":"视频会话","chat.toolbar.history":"历史","chat.toolbar.block":"拉黑","chat.toolbar.invite.rate":"邀请评价","chat.navbar.transfer":"转接","chat.navbar.close":"结束","chat.navbar.note":"笔记","chat.navbar.kbase":"知识库","chat.right.quickreply":"快捷回复","chat.right.userinfo":"访客信息","chat.right.ai":"AI助手","chat.right.ticket":"工单","chat.right.llm":"大模型","chat.right.group":"群组信息","chat.right.member":"成员信息","chat.right.docview":"文档查看","chat.upload.size.limit":"文件大小不能超过 {size}","chat.upload.type.unsupported":"不支持的文件类型","chat.upload.failed":"上传失败","chat.upload.success":"上传成功","chat.upload.progress":"上传中 {progress}%","chat.webrtc.calling":"呼叫中...","chat.webrtc.incoming":"来电...","chat.webrtc.connected":"通话中...","chat.webrtc.ended":"通话结束","chat.webrtc.rejected":"对方拒绝","chat.webrtc.busy":"对方忙","chat.webrtc.failed":"通话失败","chat.webrtc.accept":"接受","chat.webrtc.reject":"拒绝","chat.webrtc.hangup":"挂断","chat.group.notice":"群公告","chat.group.members":"群成员","chat.group.admins":"管理员","chat.group.robots":"机器人","chat.group.qrcode":"二维码","chat.group.uid.error":"群组ID错误"},Vsn={"common.confirm":"确认","common.cancel":"取消","common.submit":"提交","common.reset":"重置","common.save":"保存","common.delete":"删除","common.edit":"编辑","common.add":"添加","common.search":"搜索","common.back":"返回","common.next":"下一步","common.previous":"上一步","common.more":"更多","common.loading":"加载中...","common.success":"操作成功","common.failed":"操作失败","common.error":"错误","common.warning":"警告","common.info":"提示","common.status.online":"在线","common.status.offline":"离线","common.status.busy":"忙碌","common.status.away":"离开","common.status.invisible":"隐身","common.operation.success":"操作成功","common.operation.failed":"操作失败","common.operation.confirm":"确认要执行此操作吗?","common.operation.processing":"处理中...","common.operation.completed":"处理完成","common.operation.error":"处理出错","common.form.required":"此项为必填项","common.form.optional":"选填","common.form.invalid":"输入无效","common.form.validate.error":"表单验证失败","common.form.validate.success":"表单验证通过"},Ksn={"customer.list.title":"客户列表","customer.list.empty":"暂无客户","customer.list.loading":"加载中...","customer.list.load.error":"加载失败","customer.list.load.more":"加载更多","customer.list.no.more":"没有更多了","customer.list.refresh":"刷新","customer.info.basic":"基本信息","customer.info.name":"姓名","customer.info.nickname":"昵称","customer.info.gender":"性别","customer.info.age":"年龄","customer.info.birthday":"生日","customer.info.mobile":"手机号","customer.info.email":"邮箱","customer.info.address":"地址","customer.info.company":"公司","customer.info.position":"职位","customer.info.remark":"备注","customer.info.tags":"标签","customer.info.source":"来源","customer.info.created":"创建时间","customer.info.updated":"更新时间","customer.status.online":"在线","customer.status.offline":"离线","customer.status.away":"离开","customer.status.busy":"忙碌","customer.status.blocked":"已拉黑","customer.action.edit":"编辑","customer.action.delete":"删除","customer.action.block":"拉黑","customer.action.unblock":"取消拉黑","customer.action.transfer":"转移","customer.action.merge":"合并","customer.action.export":"导出","customer.form.name":"姓名","customer.form.name.required":"请输入姓名","customer.form.nickname":"昵称","customer.form.gender":"性别","customer.form.age":"年龄","customer.form.birthday":"生日","customer.form.mobile":"手机号","customer.form.email":"邮箱","customer.form.address":"地址","customer.form.company":"公司","customer.form.position":"职位","customer.form.remark":"备注","customer.form.tags":"标签","customer.form.source":"来源","customer.create.success":"客户创建成功","customer.create.failed":"客户创建失败","customer.update.success":"客户更新成功","customer.update.failed":"客户更新失败","customer.delete.success":"客户删除成功","customer.delete.failed":"客户删除失败","customer.block.success":"客户拉黑成功","customer.block.failed":"客户拉黑失败","customer.unblock.success":"取消拉黑成功","customer.unblock.failed":"取消拉黑失败","customer.transfer.success":"客户转移成功","customer.transfer.failed":"客户转移失败","customer.merge.success":"客户合并成功","customer.merge.failed":"客户合并失败","customer.export.success":"客户导出成功","customer.export.failed":"客户导出失败","black.title":"拉黑设置","black.type":"拉黑类型","black.type.required":"请选择至少一种拉黑类型","black.user":"拉黑用户","black.ip":"拉黑IP","black.permanent":"永久拉黑","black.until":"拉黑截至","black.until.required":"请选择拉黑截至时间","black.reason":"拉黑原因","black.reason.required":"请输入拉黑原因","black.reason.placeholder":"请输入拉黑原因","black.success":"拉黑成功"},qsn={"dashboard.error.message":"获取数据失败","dashboard.init.organization":"初始化组织","dashboard.init.profile":"初始化个人信息","dashboard.init.workgroups":"初始化工作组","dashboard.init.agent":"初始化客服信息","dashboard.transfer.accept":"{nickname} 已接受转接","dashboard.transfer.reject":"{nickname} 已拒绝转接","dashboard.transfer.success":"转接请求已发送,等待对方响应"},Gsn={"i18n.lang.en-US":"English","i18n.lang.zh-CN":"简体中文","i18n.lang.zh-TW":"繁体中文","i18n.queue.tip":"排队队列","i18n.queue.message.template":"当前排队人数:{0},大约等待时间:{1} 分钟","i18n.queue.empty":"暂无排队用户","i18n.queue.accept":"接入","i18n.system.notification":"系统通知","i18n.old.password.wrong":"旧密码错误","i18n.change.password":"修改密码","i18n.auth.captcha.send.success":"验证码发送成功","i18n.auth.captcha.error":"验证码错误","i18n.auth.captcha.expired":"验证码过期","i18n.auth.captcha.already.send":"验证码已经发送,请等待","i18n.auth.captcha.validate.failed":"验证码验证失败","i18n.faq":"常见问题","i18n.rate":"评价","i18n.input.placeholder":"请输入内容","i18n.loading":"加载中...","i18n.load.more":"加载更多","i18n.load.nomore":"没有更多了","i18n.typing":"正在输入...","i18n.robot":"[机器人]","i18n.agent":"[一对一]","i18n.workgroup":"[技能组]","i18n.group":"[群聊]","i18n.rate.invite":"邀请评价","i18n.ticket":"[工单]","i18n.notice":"通知","i18n.notice.title":"标题","i18n.notice.content":"内容","i18n.notice.ip":"IP","i18n.notice.ipLocation":"IP地址","i18n.notice.parse.file.success":"解析文件成功","i18n.notice.parse.file.error":"解析文件失败","i18n.DEPT.ALL":"全部","i18n.DEPT.ADMIN":"管理员","i18n.DEPT.HR":"人事部","i18n.DEPT.ORG":"行政部","i18n.DEPT.IT":"技术部","i18n.DEPT.MONEY":"财务部","i18n.DEPT.MARKETING":"市场部","i18n.DEPT.SALES":"销售部","i18n.DEPT.CS":"客服部","i18n.new.message":"新消息","i18n.file.assistant":"文件助手","i18n.clipboard.assistant":"剪切板助手","i18n.thread.content.image":"图片","i18n.thread.content.file":"文件","i18n.top.tip":"默认置顶语","i18n.top.make":"置顶","i18n.top.cancel":"取消置顶","i18n.unread.make":"设置未读","i18n.unread.cancel":"取消未读","i18n.star.make":"星标","i18n.star.cancel":"取消星标","i18n.disturb.make":"免打扰","i18n.disturb.cancel":"取消免打扰","i18n.transfer":"转接","i18n.hide":"隐藏","i18n.network.disconnected":"网络已断开","i18n.message.pulling":"消息拉取中...","i18n.leavemsg.tip":"无客服在线,请留言","i18n.welcome.tip":"您好,有什么可以帮您的?","i18n.reenter.tip":"继续会话","i18n.under.development":"开发中...","i18n.user.description":"默认用户描述","i18n.robot.nickname":"默认机器人","i18n.robot.description":"默认机器人描述","i18n.robot.noreply":"未找到相应答案","i18n.robot.agent.assistant.nickname":"默认机器人助手","i18n.llm.prompt":"你是一个聪明、对人类有帮助的人工智能,你可以对人类提出的问题给出有用、详细、礼貌的回答","i18n.agent.nickname":"默认客服","i18n.agent.description":"默认客服描述","i18n.workgroup.nickname":"默认技能组","i18n.workgroup.description":"默认技能组描述","i18n.contact":"询问联系方式","i18n.thanks":"感谢","i18n.welcome":"问候","i18n.bye":"告别","i18n.tip.title":"提示","i18n.tip.network.disconnected":"网络已断开","i18n.tip.network.connected":"网络已连接","i18n.kb.name":"默认知识库","i18n.kb.platform.name":"平台知识库","i18n.kb.helpcenter.name":"帮助文档知识库","i18n.kb.llm.name":"大模型知识库","i18n.kb.keyword.name":"关键词知识库","i18n.kb.faq.name":"常见问题知识库","i18n.kb.autoreply.name":"自动回复知识库","i18n.kb.quickreply.name":"快捷回复知识库","i18n.kb.taboo.name":"敏感词知识库","i18n.kb.description":"知识库默认描述","i18n.agent.nicknameKb":"默认客服知识库","i18n.contact.title":"方便的话请您提供一下您的联系电话","i18n.contact.content":"方便的话请您提供一下您的联系电话,我电话给您沟通一下,这样更加直观","i18n.thanks.title":"感谢光临","i18n.thanks.content":"感谢光临,欢迎再来","i18n.welcome.title":"您好","i18n.welcome.content":"您好,有什么可以帮您的","i18n.bye.title":"您的满意一直是我们的目标","i18n.bye.content":"您的满意一直是我们的目标,如果有任何疑问欢迎您随时联系","i18n.vip.api":"VIP接口,暂无权限,请联系:weiyuai.cn","i18n.faq.category.demo.1":"常见问题分类Demo1","i18n.faq.category.demo.2":"常见问题分类Demo2","i18n.faq.demo.title.1":"常见问题文字Demo1","i18n.faq.demo.content.1":"常见问题文字Demo1","i18n.faq.demo.title.2":"常见问题图片Demo2","i18n.faq.demo.content.2":"https://www.weiyuai.cn/logo.png","i18n.quick.button.demo.title.1":"快捷按钮文字Demo1","i18n.quick.button.demo.content.1":"快捷按钮文字Demo1","i18n.quick.button.demo.title.2":"快捷按钮链接Demo2","i18n.quick.button.demo.content.2":"https://www.weiyuai.cn","i18n.preview.title":"预览","i18n.cancel":"取消","i18n.confirm":"确定","i18n.send":"发送","i18n.transferToAgent":"转人工服务","i18n.auto.closed":"会话自动关闭","i18n.agent.closed":"客服关闭会话","i18n.online.chat":"在线客服","i18n.JOB":"工作","i18n.LANGUAGE":"语言","i18n.TOOL":"工具","i18n.WRITING":"写作","i18n.RAG":"知识库问答","i18n.module.ai":"AI","i18n.module.void":"空白","i18n.module.service":"客服","i18n.module.ticket":"工单","i18n.black.user.already.exists":"用户已拉黑","i18n.ticket.category.technical_support":"技术支持","i18n.ticket.category.service_request":"服务请求","i18n.ticket.category.consultation":"咨询","i18n.ticket.category.complaint_suggestion":"投诉建议","i18n.ticket.category.operation_maintenance":"运维","i18n.ticket.category.other":"其他","i18n.vip.component":"VIP组件, 联系我们了解更多详情","i18n.vip.contactUs":"联系我们","i18n.vip.contactUrl":"https://www.weiyuai.cn/contact.html"},Ysn={"message.type.text":"文本消息","message.type.image":"图片消息","message.type.file":"文件消息","message.type.voice":"语音消息","message.type.video":"视频消息","message.type.location":"位置消息","message.type.link":"链接消息","message.type.card":"卡片消息","message.type.system":"系统消息","message.type.notification":"通知消息","message.type.custom":"自定义消息","message.status.sending":"发送中","message.status.sent":"已发送","message.status.delivered":"已送达","message.status.read":"已读","message.status.failed":"发送失败","message.status.recalled":"已撤回","message.status.deleted":"已删除","message.action.send":"发送","message.action.recall":"撤回","message.action.delete":"删除","message.action.resend":"重新发送","message.action.forward":"转发","message.action.quote":"引用","message.action.copy":"复制","message.action.translate":"翻译","message.action.download":"下载","message.action.preview":"预览","message.tip.sending":"消息发送中...","message.tip.sent":"消息已发送","message.tip.delivered":"消息已送达","message.tip.read":"消息已读","message.tip.failed":"消息发送失败","message.tip.recalled":"消息已撤回","message.tip.deleted":"消息已删除","message.tip.copy.success":"复制成功","message.tip.download.start":"开始下载...","message.tip.download.success":"下载成功","message.tip.download.failed":"下载失败","message.input.placeholder":"请输入消息","message.input.send.button":"发送","message.input.emoji.button":"表情","message.input.image.button":"图片","message.input.file.button":"文件","message.input.voice.button":"语音","message.input.video.button":"视频","message.input.location.button":"位置","message.list.load.more":"加载更多","message.list.loading":"加载中...","message.list.no.more":"没有更多消息","message.list.empty":"暂无消息","message.list.search.placeholder":"搜索消息","message.list.search.no.result":"未找到相关消息","message.time.just":"刚刚","message.time.minutes":"{count}分钟前","message.time.hours":"{count}小时前","message.time.days":"{count}天前","message.time.weeks":"{count}周前","message.time.months":"{count}个月前","message.time.years":"{count}年前","message.file.size.limit":"文件大小不能超过 {size}","message.file.type.unsupported":"不支持的文件类型","message.file.uploading":"上传中...","message.file.download":"下载文件","message.file.preview":"预览文件","message.image.loading":"图片加载中","message.image.load.error":"图片加载失败","message.image.save":"保存图片","message.image.save.success":"图片保存成功","message.image.save.failed":"图片保存失败","quickreply.search.placeholder":"搜索","quickreply.button.send":"发送","quickreply.button.copy":"复制","quickreply.button.create.category":"创建分类","quickreply.button.create.reply":"创建快捷回复","quickreply.copy.success":"{content} 已复制到剪贴板","category.form.edit.title":"编辑分类","category.form.create.title":"创建分类","category.form.name":"分类名称","category.form.name.required":"请输入分类名称!","category.form.name.placeholder":"输入分类名称","category.create.failed":"创建分类失败","quickreply.drawer.title":"{isEdit, select, true {编辑快捷回复} other {新建快捷回复}}","quickreply.form.category":"分类","quickreply.form.category.required":"请选择分类","quickreply.form.category.placeholder":"选择分类","quickreply.form.type":"类型","quickreply.form.type.required":"请选择类型","quickreply.form.type.placeholder":"选择类型","quickreply.form.title":"标题","quickreply.form.title.required":"请输入标题","quickreply.form.content":"内容","quickreply.type.text":"文本","quickreply.type.image":"图片","quickreply.type.video":"视频","quickreply.type.audio":"音频","quickreply.type.file":"文件","quickreply.upload.text":"点击或拖拽文件上传","quickreply.upload.success":"{filename} 上传成功","quickreply.upload.error":"{filename} 上传失败","quickreply.upload.uploading":"{filename} 上传中","quickreply.form.validate.error":"请检查表单"},Xsn={"profile.update.success":"个人信息更新成功","profile.form.avatar":"头像","profile.form.upload":"上传","profile.form.username":"用户名","profile.form.nickname":"昵称","profile.form.description":"描述","profile.button.change.password":"修改密码","profile.button.change.email":"修改邮箱","profile.button.change.mobile":"修改手机号","profile.email.verified":"邮箱已验证","profile.email.unverified":"邮箱未验证","profile.mobile.verified":"手机已验证","profile.mobile.unverified":"手机未验证","profile.email.change.title":"修改邮箱","profile.email.placeholder":"请输入邮箱地址","profile.email.required":"请输入邮箱地址!","profile.email.format.invalid":"邮箱格式不正确","profile.email.length.limit":"邮箱不得超过50字符","profile.email.verification.code.placeholder":"请输入验证码","profile.email.verification.code.countdown":"秒后重新获取","profile.email.verification.code.get":"获取验证码","profile.email.verification.code.required":"请输入验证码!","profile.email.not.changed":"邮箱未更改!","profile.email.change.success":"邮箱修改成功!","profile.email.format.error":"邮箱格式错误","profile.mobile.change.title":"修改手机号","profile.mobile.placeholder":"请输入手机号","profile.mobile.required":"请输入手机号!","profile.mobile.format.invalid":"手机号格式错误!","profile.mobile.verification.code.placeholder":"请输入验证码","profile.mobile.verification.code.countdown":"秒后重新获取","profile.mobile.verification.code.get":"获取验证码","profile.mobile.verification.code.required":"请输入验证码!","profile.mobile.not.changed":"手机号未更改!","profile.mobile.change.success":"手机号修改成功!","profile.mobile.format.error":"手机号格式错误","profile.password.change.title":"修改密码","profile.password.old":"原密码","profile.password.old.empty":"手机号直接登录用户,可以留空","profile.password.new":"新密码","profile.password.confirm":"确认密码","profile.password.length.error":"密码最小长度不能小于6","profile.password.mismatch":"两次输入密码不一致","profile.password.change.success":"密码修改成功!"},Qsn={"setting.menu.title":"设置","setting.menu.profile":"个人信息","setting.menu.basic":"基本设置","setting.menu.agent":"客服设置","setting.menu.model":"大模型","setting.menu.certification":"实名认证","setting.menu.qrcode":"二维码","setting.menu.shortcut":"快捷键","setting.menu.click":"菜单点击","setting.save.success":"设置保存成功","setting.save.error":"设置保存失败","setting.load.error":"设置加载失败","setting.header.profile":"个人信息","setting.header.basic":"基本设置","setting.header.agent":"客服设置","setting.header.model":"大模型设置","setting.basic.sound.on":"已开启消息提示音","setting.basic.sound.off":"已关闭消息提示音","setting.basic.notification.on":"已开启网络状态通知","setting.basic.notification.off":"已关闭网络状态通知","setting.basic.connection.status":"长链接状态:","setting.basic.connection.connected":"✅连接正常","setting.basic.connection.disconnected":"❌连接断开","setting.basic.startup":"开机启动:","setting.basic.startup.on":"开机启动","setting.basic.startup.off":"不开机启动","setting.basic.theme":"颜色主题:","setting.basic.language":"语言设置:","setting.basic.mode":"模式设置:","setting.basic.mode.team":"团队模式","setting.basic.mode.agent":"客服模式","setting.basic.mode.personal":"个人模式"},Zsn={"thread.error.message":"获取数据失败","thread.feature.unavailable":"TODO: 该功能暂未开放","thread.menu.top":"置顶","thread.menu.untop":"取消置顶","thread.menu.read":"标记已读","thread.menu.unread":"标记未读","thread.menu.mute":"静音","thread.menu.unmute":"取消静音","thread.menu.transfer":"转接","thread.menu.block":"拉黑","thread.menu.ticket":"创建工单","thread.menu.crm":"查看CRM","thread.menu.summary":"会话总结","thread.status.robot":"[机器人]","thread.status.agent":"[一对一]","thread.status.workgroup":"[工作组]","thread.search.placeholder":"搜索会话...","thread.menu.filter":"会话过滤","thread.menu.groupThread":"群聊会话","thread.menu.robotThread":"机器人会话","thread.menu.workgroupThread":"工作组会话","thread.menu.agentThread":"一对一会话","thread.menu.ticketThread":"工单会话","thread.menu.memberThread":"成员会话","thread.menu.deviceThread":"设备会话","thread.menu.systemThread":"系统会话","thread.dropdown.create.group":"创建群聊","thread.dropdown.create.ai":"创建AI对话","thread.agent.status.online":"😀 - 在线接待","thread.agent.status.offline":"🔻 - 客服下线","thread.agent.status.busy":"🏃♀️ - 客服忙碌","thread.refresh.pull":"↓ 下拉刷新","thread.refresh.release":"↑ 松开刷新","thread.list.no.more":"没有更多了","thread.coming.soon":"即将上线,敬请期待","thread.set.success":"设置成功","thread.set.error":"设置失败","thread.menu.star":"星标","thread.menu.star.1":"星标1","thread.menu.star.2":"星标2","thread.menu.star.3":"星标3","thread.menu.star.4":"星标4","thread.menu.hide":"隐藏","thread.status.text":"{status}","thread.status.online":"😀接待","thread.status.offline":"🔻下线","thread.status.busy":"🏃♀️忙碌","thread.status.loading":"加载中...","thread.status.empty":"暂无会话","thread.status.error":"加载会话失败","thread.status.queue":"排队({count})","thread.status.network.offline":"网络已断开","thread.status.network.online":"网络已连接","thread.status.message.pulling":"消息拉取中...","thread.status.message.empty":"暂无消息","thread.status.message.error":"加载消息失败","thread.status.message.end":"没有更多消息","thread.status.message.typing":"正在输入...","thread.status.message.transfer":"转接中...","thread.status.message.transferred":"已转接","thread.status.message.closed":"会话已关闭","thread.menu.star.cancel":"取消星标","thread.loading.more":"加载更多..."},Jsn={"ticket.create.title":"创建工单","ticket.edit.title":"编辑工单","ticket.form.uid":"编号","ticket.form.title":"标题","ticket.form.title.required":"请输入工单标题","ticket.form.title.placeholder":"请输入工单标题","ticket.form.description":"描述","ticket.form.description.required":"请输入工单描述","ticket.form.description.placeholder":"请输入工单描述","ticket.form.status":"状态","ticket.form.status.required":"请选择工单状态","ticket.form.priority":"优先级","ticket.form.priority.required":"请选择优先级","ticket.form.category":"分类","ticket.form.category.required":"请选择工单分类","ticket.form.category.placeholder":"请选择工单分类","ticket.form.user":"客户","ticket.form.user.placeholder":"请选择客户","ticket.form.assignee":"处理人","ticket.form.assignee.placeholder":"请选择处理人","ticket.form.reporter":"报告人","ticket.form.reporter.placeholder":"请选择报告人","ticket.form.workgroup":"技能组","ticket.form.workgroup.required":"请选择技能组","ticket.form.workgroup.placeholder":"请选择技能组","ticket.workgroup.load.error":"加载技能组失败","ticket.status.all":"全部状态","ticket.status.new":"新建","ticket.status.assigned":"已分配","ticket.status.in_progress":"处理中","ticket.status.pending":"待处理","ticket.status.on_hold":"挂起","ticket.status.reopened":"重新打开","ticket.status.resolved":"已解决","ticket.status.closed":"已关闭","ticket.status.cancelled":"已取消","ticket.priority.all":"全部优先级","ticket.priority.lowest":"最低","ticket.priority.low":"低","ticket.priority.medium":"中","ticket.priority.high":"高","ticket.priority.urgent":"紧急","ticket.priority.critical":"严重","ticket.create.success":"工单创建成功","ticket.create.failed":"工单创建失败","ticket.update.success":"工单更新成功","ticket.update.failed":"工单更新失败","ticket.submit.error":"工单提交失败","ticket.delete.success":"工单删除成功","ticket.delete.error":"工单删除失败","ticket.load.error":"工单数据加载失败","ticket.list.title":"工单列表","ticket.list.empty":"暂无工单","ticket.list.search.placeholder":"搜索工单","ticket.list.filter.all":"全部工单","ticket.list.filter.my":"我的工单","ticket.list.filter.unassigned":"未分配","ticket.list.create":"创建工单","ticket.list.total":"工单总数","ticket.action.edit":"编辑","ticket.action.delete":"删除","ticket.action.assign":"分配","ticket.action.close":"关闭","ticket.action.reopen":"重新打开","ticket.delete.confirm":"确定要删除此工单吗?","ticket.category.load.error":"加载工单分类失败","ticket.conversation.title":"工单对话","ticket.conversation.empty":"请选择工单查看对话","ticket.conversation.input.placeholder":"请输入消息...","ticket.details.title":"工单详情","ticket.details.empty":"请选择工单查看详情","ticket.messages.load.error":"加载工单消息失败","ticket.message.send.error":"发送消息失败","ticket.form.thread":"关联会话","ticket.form.thread.placeholder":"选择关联会话","ticket.form.thread.none":"不关联","ticket.form.createdAt":"创建时间","ticket.form.updatedAt":"更新时间","ticket.type.agent":"指定客服","ticket.type.workgroup":"技能组","ticket.assignee":"处理人","ticket.reporter":"报告人","ticket.type":"类型","ticket.category":"分类","ticket.steps.title":"流转过程","ticket.form.upload.button":"上传附件","ticket.upload.success":"文件上传成功","ticket.upload.failed":"文件上传失败","ticket.current.filters":"当前筛选","ticket.filter.by.status":"按状态筛选","ticket.filter.by.priority":"按优先级筛选","ticket.filter.by.assignment":"按分配筛选","ticket.filter.by.time":"按时间筛选","ticket.filter.status_all":"全部状态","ticket.filter.status_new":"新建","ticket.filter.status_assigned":"已分配","ticket.filter.status_in_progress":"处理中","ticket.filter.status_pending":"待处理","ticket.filter.status_on_hold":"挂起","ticket.filter.status_reopened":"重新打开","ticket.filter.status_resolved":"已解决","ticket.filter.status_closed":"已关闭","ticket.filter.status_cancelled":"已取消","ticket.filter.priority_all":"全部优先级","ticket.filter.priority_lowest":"最低","ticket.filter.priority_low":"低","ticket.filter.priority_medium":"中","ticket.filter.priority_high":"高","ticket.filter.priority_urgent":"紧急","ticket.filter.priority_critical":"严重","ticket.filter.assignment_all":"全部","ticket.filter.assignment_my_tickets":"我的工单","ticket.filter.assignment_unassigned":"未分配","ticket.filter.assignment_my_workgroup":"我的技能组","ticket.filter.assignment_my_created":"我创建的","ticket.filter.assignment_my_assigned":"待我处理","ticket.filter.time_all":"全部时间","ticket.filter.time_today":"今天","ticket.filter.time_yesterday":"昨天","ticket.filter.time_this_week":"本周","ticket.filter.time_last_week":"上周","ticket.filter.time_this_month":"本月","ticket.filter.time_last_month":"上月","ticket.content.title":"工单","ticket.content.number":"编号","ticket.delete.title":"删除工单","ticket.delete.content":"确定要删除此工单吗?","ticket.delete.failed":"工单删除失败","ticket.loading":"加载工单...","ticket.empty":"暂无工单"},eln={"contact.list.new":"新朋友","contact.list.device":"内网设备","contact.list.group":"群聊","contact.list.channel":"频道","contact.list.company":"企业联系人","contact.list.friend":"联系人","contact.search.placeholder":"搜索联系人...","contact.manager.button":"通讯录管理","contact.manager.coming":"敬请期待","member.detail.nickname":"昵称","member.detail.jobno":"工号","member.detail.seatno":"座位号","member.detail.telephone":"电话","member.detail.loading":"加载中...","member.detail.chat.button":"开始聊天"},tln={"group.create.title":"发起群聊","group.create.contacts":"好友","group.create.members":"群成员","group.create.members.min":"至少选择2名成员","group.create.creating":"创建群组中...","group.create.org.empty":"未选择组织","group.create.success":"创建群组成功","group.create.failed":"创建群组失败","group.create.loading":"加载成员中...","group.create.error":"加载成员失败"},nln={"robot.create.title":"创建机器人","robot.create.available":"可选机器人","robot.create.selected":"已选机器人","robot.create.success":"创建机器人成功","robot.create.failed":"创建机器人失败","robot.create.loading":"创建机器人中...","robot.create.error":"加载机器人失败","robot.create.empty":"暂无可用机器人","robot.create.min":"请至少选择一个机器人"},rln={"autoreply.title":"自动回复","autoreply.enable.label":"是否启用自动回复","autoreply.type.label":"自动回复类型","autoreply.type.fixed":"固定回复","autoreply.type.keyword":"关键字匹配","autoreply.type.llm":"大模型回复","autoreply.fixed.add":"添加固定回复内容","autoreply.fixed.select":"选择固定回复内容","autoreply.fixed.type":"固定回复类型","autoreply.fixed.content":"固定回复内容","autoreply.content.text":"文本","autoreply.content.image":"图片","autoreply.content.video":"视频","autoreply.content.audio":"音频","autoreply.content.file":"文件","autoreply.save.loading":"正在保存,请稍后...","autoreply.save.success":"保存成功","autoreply.save.error":"保存失败","autoreply.keyword.add":"添加关键词知识库","autoreply.keyword.select":"选择关键词知识库","autoreply.llm.add":"添加大模型知识库","autoreply.llm.select":"选择大模型知识库"},iln={"upload.modal.title":"上传文件","upload.drag.text":"点击或拖拽文件至此处上传","upload.drag.hint":"支持单个或批量上传","upload.uploading":"{filename} 上传中...","upload.success":"{filename} 上传成功","upload.failed":"{filename} 上传失败","upload.delete.confirm":"确定要删除此文件吗?","upload.preview.image":"图片预览","upload.preview.file":"文件预览","upload.button.ok":"确定","upload.button.cancel":"取消"},oln={...zsn,...Usn,...Wsn,...Vsn,...Ksn,...qsn,...Gsn,...Bsn,...Ysn,...Hsn,...Xsn,...Qsn,...Zsn,...Jsn,...jsn,...eln,...tln,...nln,...rln,...iln},aln={i18_file_assistant:"檔案助手",slogan:"对话即服务","menu.dashboard.chat":"消息","menu.dashboard.contact":"通讯录","menu.dashboard.queue":"排队","menu.dashboard.ticket":"工单","menu.dashboard.leavemsg":"留言","menu.dashboard.visitor":"访客","menu.dashboard.monitor":"监控","menu.dashboard.plugins":"插件","menu.dashboard.mine":"我的","chat.toolbar.emoji":"表情","chat.toolbar.image":"图片","chat.toolbar.file":"文件","chat.toolbar.audio":"录音","chat.toolbar.webrtc":"视频","chat.toolbar.history":"历史消息","chat.toolbar.block":"拉黑","chat.toolbar.screenshot":"截图","chat.toolbar.invite.rate":"邀请评价","chat.toolbar.autoreply":"自动回复","chat.toolbar.autoreply.on":"自动回复(已开启)","chat.navbar.transfer":"转接","chat.navbar.ticket":"工单","chat.navbar.crm":"Crm","chat.navbar.close":"结束","chat.navbar.category":"分类","chat.navbar.ai":"AI","chat.navbar.queue":"排队","chat.right.ai":"Copilot","chat.right.quickreply":"快捷回复","chat.right.ticket":"工单","chat.right.userinfo":"用户信息","chat.right.llm":"大模型","chat.right.docview":"文档预览","chat.right.group":"群详情","chat.right.member":"联系人","chat.ai.summary":"会话小结","chat.ai.switch":"切换AI","chat.thread.nomore":"没有更多了","chat.message.loadmore":"加载更多","dashboard.footbar.logout":"退出",SERVICE:"客服機器人",MARKETING:"營銷機器人",KNOWLEDGEBASE:"知識庫機器人(内部)",QA:"問答機器人(直接调用大模型)",AGENT_ASSISTANT:"客服助手(内部)",loading:"載入中",create:"新增",creating:"新增中...","create.success":"新增成功","create.fail":"新增失敗",update:"更新",updating:"更新中...","update.success":"更新成功","update.fail":"更新失敗",save:"儲存",saving:"正在儲存...",email:"電子郵件","email.verified":"電子郵件(已驗證)","email.unverified":"電子郵件(待驗證)",mobile:"手機號碼","mobile.verified":"手機號碼(已驗證)","mobile.unverified":"手機號碼(待驗證)",captcha:"验证码",logging:"登录中...","login.success":"登录成功","login.error":"登录失败,请稍后重试",registering:"注册中...","register.success":"注册成功","register.error":"注册失败","username.change.tip":"登入用戶名(修改用戶名之後,需要重新登入)",createKb:"创建知识库",createDept:"创建部门",upload:"上传",import:"匯入",export:"匯出","download.template":"下载模板",open:"開啟",copy:"複製","copy.success":"複製成功",ok:"確定",cancel:"取消",bind:"綁定",edit:"編輯",editing:"編輯中...","edit.success":"編輯成功","edit.fail":"編輯失敗",delete:"刪除",deleting:"删除中...",deleteTip:"刪除提示",deleteAffirm:"確定要刪除","delete.success":"刪除成功","delete.fail":"删除失败","process.success":"处理成功","process.fail":"处理失败",preview:"預覽",close:"關閉",closing:"關閉中...",closeTip:"關閉提示",closeASure:"確定要關閉","close.success":"關閉成功",choose:"選擇","leavemsg.enabled":"留言啟用",transfer:"转接","transfer.success":"转接成功","transfer.fail":"转接失败","transfer.reason":"转接原因",refresh:"刷新",noAgent:"无客服在线"},sln={"menu.anonymous.title":"匿名模式","menu.anonymous.home":"訊息","menu.anonymous.contact":"聯絡人","menu.anonymous.robot":"機器人","menu.anonymous.setting":"設定","menu.anonymous.status":"匿名狀態","menu.anonymous.status.tip":"匿名模式僅支援同一區域網內的在線設備之間的通訊","menu.anonymous.login.tip":"登入以訪問離線訊息和更多功能","menu.anonymous.login":"登入","menu.anonymous.current.users":"當前用戶","menu.dashboard.chat":"聊天","menu.dashboard.contact":"聯絡人","menu.dashboard.ai":"AI助手","menu.dashboard.note":"筆記","menu.dashboard.kbase":"知識庫","menu.dashboard.mine":"設定","menu.dashboard.queue":"排隊","menu.dashboard.ticket":"工單","menu.dashboard.leavemsg":"留言","menu.dashboard.visitor":"訪客","menu.dashboard.monitor":"監控","menu.dashboard.plugins":"插件","menu.settings":"設定","menu.settings.logout":"登出","menu.agent.status":"客服狀態","menu.agent.status.available":"可用","menu.agent.status.rest":"休息","menu.agent.status.offline":"離線","menu.language":"語言","menu.mode":"模式","menu.mode.team":"團隊模式","menu.mode.agent":"一對一模式","menu.mode.personal":"個人模式","menu.agent.offline.warning":"請在離線前結束所有正在進行中的會話","menu.mode.personal.coming":"即將推出...","menu.dashboard.notebase":"知識庫"},lln={"pages.login.title":"登錄","pages.login.subtitle":"歡迎使用微語客服系統","pages.layouts.userLayout.title":"對話即服務","pages.login.accountLogin.tab":"帳戶密碼登錄","pages.login.accountLogin.errorMessage":"錯誤的用戶名和密碼","pages.login.failure":"登錄失敗,請檢查用戶名密碼!","pages.login.failureCode":"驗證碼錯誤","pages.login.success":"登錄成功!","pages.login.username.placeholder":"請輸入用戶名","pages.login.username.required":"用戶名是必填項!","pages.login.password.placeholder":"請輸入密碼","pages.login.repassword.placeholder":"確認密碼","pages.login.password.required":"密碼是必填項!","pages.login.repassword.required":"確認密碼是必填項!","pages.login.phoneLogin.tab":"手機號登錄","pages.login.phoneLogin.errorMessage":"驗證碼錯誤","pages.login.phoneNumber.placeholder":"請輸入手機號!","pages.login.phoneNumber.required":"手機號是必填項!","pages.login.phoneNumber.invalid":"不合法的手機號!","pages.login.captcha.placeholder":"請輸入驗證碼!","pages.login.captcha.required":"驗證碼是必填項!","pages.login.phoneLogin.getVerificationCode":"獲取驗證碼","pages.login.anonymousLogin":"匿名登錄","pages.getCaptchaSecondText":"秒後重新獲取","pages.login.scanLogin.tab":"掃碼登錄","pages.login.rememberMe":"自動登錄","pages.login.forgot":"忘記密碼","pages.login.submit":"登錄","pages.login.loginWith":"其他登錄方式 :","pages.login.register":"註冊賬號","pages.login.registerAccount":" 註冊帳戶","pages.login.auto.register":"未註冊手機號會自動註冊","pages.welcome.link":"歡迎使用","pages.welcome.title":"歡迎","pages.welcome.description":"微語客服系統是一個開源的客服系統","pages.welcome.getting-started":"開始使用","pages.welcome.view-docs":"查看文檔","pages.robot.new":"新建","pages.robot.chat":"聊天","pages.robot.edit":"编辑","pages.robot.delete":"刪除","pages.robot.upload":"上傳","pages.robot.tab.basic":"基本信息","pages.robot.tab.kb":"知識庫","pages.robot.tab.channel":"渠道對接","pages.robot.tab.statistic":"數據統計","pages.robot.tab.advanced":"高級設置","pages.robot.tab.flow":"流程設計","pages.robot.tab.avatar":"頭像","pages.robot.tab.title":"標題","pages.robot.tab.welcomeTip":"歡迎語","pages.robot.tab.description":"簡介","pages.robot.tab.preview":"實時預覽","pages.robot.tab.website":"官網","pages.robot.tab.helpdesk":"幫助文檔","pages.robot.tab.icp":"京ICP備案 17041763號-1","pages.robot.tab.police":"粵公安備案 44030502008688號","pages.robot.kb.file":"文件","pages.robot.kb.text":"文本","pages.robot.kb.qa":"問答","pages.robot.kb.web":"網站","pages.robot.file.title":"文件名","pages.robot.file.type":"文件類型","pages.robot.file.size":"文件大小","pages.robot.file.action":"操作","pages.robot.file.delete":"刪除","pages.robot.file.save":"保存","pages.robot.file.cancel":"取消","pages.robot.file.uploading":"上傳中...","pages.robot.file.name_invalid":"文件名不能包含 _ ","pages.robot.file.parse":"解析文件內容","pages.setting":"設置","pages.logout":"退出登錄","pages.footer.website":"微語官網","pages.footer.helpcenter":"帮助文档","pages.login.remember":"記住密碼","pages.agent.tab.basic":"基本信息","pages.agent.robot":"機器人","pages.agent.service.settings":"服务设置","pages.agent.service.settings.topTip":"顶部提示","pages.agent.service.settings.welcomeTip":"欢迎语","pages.agent.service.settings.leavemsgTip":"离线留言提示","pages.agent.service.settings.autoCloseMin":"自动关闭分钟","pages.agent.service.settings.showLogo":"显示Logo","pages.agent.service.settings.maxThreadCount":"最大线程数","pages.advanced.faq":"常見問題","pages.advanced.quickButton":"快捷按鈕","pages.advanced.faqGuess":"智能推薦","pages.advanced.faqHot":"熱門問題","pages.advanced.faqShortcut":"快捷回覆","pages.advanced.rate":"滿意度評價","pages.advanced.autoreply":"自動回覆","pages.advanced.leaveMsg":"留言設置","pages.advanced.survey":"調查問卷","pages.advanced.history":"歷史記錄","pages.advanced.inputAssociation":"輸入聯想","pages.advanced.antiHarassment":"驗證碼設置","pages.advanced.captcha":"驗證碼設置","pages.advanced.showPreForm":"顯示預覽","pages.advanced.showHistory":"顯示歷史","pages.advanced.showInputAssociation":"顯示輸入聯想","pages.advanced.showCaptcha":"顯示驗證碼","pages.login.country.placeholder":"選擇國家/地區","pages.login.country.china":"中國大陸","pages.login.country.hongkong":"中國香港","pages.login.country.taiwan":"中國台灣","pages.login.country.macao":"中國澳門","pages.login.country.japan":"日本","pages.login.country.korea":"韓國","pages.login.country.usa":"美國","pages.login.country.canada":"加拿大","pages.login.country.uk":"英國","pages.login.country.germany":"德國","pages.login.country.france":"法國","pages.login.country.australia":"澳大利亞","pages.login.country.singapore":"新加坡","pages.login.country.malaysia":"馬來西亞","pages.login.country.thailand":"泰國","pages.login.country.vietnam":"越南","pages.login.country.philippines":"菲律賓","pages.login.country.indonesia":"印度尼西亞","pages.login.country.italy":"意大利","pages.login.country.spain":"西班牙","pages.login.country.russia":"俄羅斯","pages.login.country.newzealand":"新西蘭","block.title":"拉黑設置","block.type":"拉黑類型","block.user":"拉黑用戶","block.ip":"拉黑IP","block.permanent":"永久封禁","block.until":"封禁至","block.until.required":"請選擇封禁結束時間","pages.register.title":"註冊","pages.register.subtitle":"創建您的賬號","pages.register.username":"用戶名","pages.register.password":"密碼","pages.register.confirm":"確認密碼","pages.register.email":"郵箱","pages.register.mobile":"手機號","pages.register.code":"驗證碼","pages.register.agreement":"我已閱讀並同意","pages.register.agreement.terms":"服務條款","pages.register.submit":"註冊","pages.register.login":"使用已有賬號登錄","pages.404.title":"404","pages.404.subtitle":"抱歉,您訪問的頁面不存在","pages.404.description":"您可以嘗試以下操作:","pages.404.actions.back":"返回上一頁","pages.404.actions.home":"返回首頁","pages.403.title":"403","pages.403.subtitle":"抱歉,您沒有訪問該頁面的權限","pages.403.description":"請聯繫管理員獲取權限","pages.403.actions.back":"返回上一頁","pages.500.title":"500","pages.500.subtitle":"抱歉,服務器出錯了","pages.500.description":"請稍後再試或聯繫技術支持","pages.500.actions.back":"返回上一頁","pages.500.actions.home":"返回首頁"},cln={"app.title":"微語","app.logout":"登出","app.copyright.produced":"微語出品","app.preview.down.block":"下載此頁面到本地項目","app.welcome.link.fetch-blocks":"獲取全部區塊","app.welcome.link.block-list":"基於 block 開發,快速構建標準頁面","navBar.lang":"語言","layout.user.link.help":"幫助","layout.user.link.privacy":"隱私","layout.user.link.terms":"條款","theme.light":"淺色","theme.dark":"深色","theme.system":"自動","setting.lang":"Languages","setting.theme":"主題","app.name":"微語客服","app.description":"新一代智能客服系統","app.welcome":"歡迎使用微語客服系統","app.copyright":"© 2024 微語客服. 保留所有權利.","app.version":"版本","app.action.back":"返回","app.action.confirm":"確認","app.action.cancel":"取消","app.action.save":"保存","app.action.edit":"編輯","app.action.delete":"刪除","app.action.refresh":"刷新","app.action.search":"搜索","app.action.more":"更多","app.action.settings":"設置","app.action.help":"幫助","app.tip.loading":"加載中...","app.tip.success":"操作成功","app.tip.error":"操作失敗","app.tip.warning":"警告","app.tip.info":"提示","app.tip.confirm":"確認要執行此操作嗎?","app.tip.nodata":"暫無數據","app.tip.network.error":"網絡連接失敗","app.tip.server.error":"服務器錯誤","app.status.online":"在線","app.status.offline":"離線","app.status.busy":"忙碌","app.status.away":"離開","app.status.invisible":"隱身","app.status.disabled":"已禁用","app.status.expired":"已過期","app.time.today":"今天","app.time.yesterday":"昨天","app.time.tomorrow":"明天","app.time.just":"剛剛","app.time.minutes":"{count} 分鐘前","app.time.hours":"{count} 小時前","app.time.days":"{count} 天前","app.file.upload":"上傳文件","app.file.download":"下載文件","app.file.preview":"預覽文件","app.file.size.limit":"文件大小不能超過 {size}","app.file.type.unsupported":"不支持的文件類型","app.file.upload.success":"上傳成功","app.file.upload.failed":"上傳失敗","app.file.download.success":"下載成功","app.file.download.failed":"下載失敗","app.layout.sidebar.collapse":"收起側邊欄","app.layout.sidebar.expand":"展開側邊欄","app.layout.header.profile":"個人中心","app.layout.header.logout":"退出登錄","app.layout.footer.copyright":"版權所有","app.layout.footer.terms":"服務條款","app.layout.footer.privacy":"隱私政策"},uln={"auth.login.title":"登錄","auth.login.subtitle":"歡迎使用微語客服系統","auth.login.username":"用戶名","auth.login.username.required":"請輸入用戶名","auth.login.password":"密碼","auth.login.password.required":"請輸入密碼","auth.login.remember":"記住密碼","auth.login.forgot":"忘記密碼?","auth.login.submit":"登錄","auth.login.other":"其他登錄方式","auth.login.register":"註冊賬號","auth.login.success":"登錄成功","auth.login.failed":"登錄失敗","auth.register.title":"註冊","auth.register.subtitle":"創建新賬號","auth.register.username":"用戶名","auth.register.username.required":"請輸入用戶名","auth.register.email":"郵箱","auth.register.email.required":"請輸入郵箱","auth.register.password":"密碼","auth.register.password.required":"請輸入密碼","auth.register.confirm":"確認密碼","auth.register.confirm.required":"請確認密碼","auth.register.submit":"註冊","auth.register.login":"已有賬號?登錄","auth.register.success":"註冊成功","auth.register.failed":"註冊失敗","auth.forgot.title":"忘記密碼","auth.forgot.subtitle":"重置密碼","auth.forgot.email":"郵箱","auth.forgot.email.required":"請輸入郵箱","auth.forgot.submit":"提交","auth.forgot.back":"返回登錄","auth.forgot.success":"重置密碼郵件已發送","auth.forgot.failed":"重置密碼失敗","auth.reset.title":"重置密碼","auth.reset.subtitle":"設置新密碼","auth.reset.password":"新密碼","auth.reset.password.required":"請輸入新密碼","auth.reset.confirm":"確認密碼","auth.reset.confirm.required":"請確認新密碼","auth.reset.submit":"提交","auth.reset.success":"密碼重置成功","auth.reset.failed":"密碼重置失敗","auth.verify.code":"驗證碼","auth.verify.code.required":"請輸入驗證碼","auth.verify.code.send":"發送驗證碼","auth.verify.code.resend":"重新發送","auth.verify.code.success":"驗證碼發送成功","auth.verify.code.failed":"驗證碼發送失敗","auth.password.strength.weak":"密碼強度:弱","auth.password.strength.medium":"密碼強度:中","auth.password.strength.strong":"密碼強度:強","auth.agreement.text":"我已閱讀並同意","auth.agreement.terms":"服務條款","auth.agreement.privacy":"隱私政策","server.button.back":"返回","server.button.save":"保存","server.button.reset":"重置","server.button.help":"幫助","server.save.success":"保存成功","server.reset.success":"重置成功,已恢復默認雲服務器","server.custom.enable":"啟用自定義服務器","server.api.url.label":"API服務器地址 (例如: http://127.0.0.1:9003 或 https://api.bytedesk.com)","server.api.url.placeholder":"http://127.0.0.1:9003","server.websocket.url.label":"WebSocket服務器地址 (例如: ws://127.0.0.1:9885/websocket 或 wss://api.bytedesk.com/websocket)","server.websocket.url.placeholder":"ws://127.0.0.1:9885/websocket","server.input.error":"請輸入正確的服務器地址"},dln={"chat.title":"會話","chat.empty":"暫無會話","chat.loading":"加載中...","chat.load.error":"加載失敗","chat.load.more":"加載更多","chat.no.more":"沒有更多了","chat.refresh":"刷新","chat.status.connecting":"連接中...","chat.status.connected":"已連接","chat.status.disconnected":"連接斷開","chat.status.reconnecting":"重新連接中...","chat.network.error":"網絡連接失敗,請檢查網絡","chat.thread.closing":"結束會話中...","chat.thread.close.success":"結束會話成功","chat.thread.close.failed":"結束會話失敗","chat.thread.close.confirm.title":"確定要結束會話?","chat.rate.invite.confirm.title":"確認要邀請評價?","chat.message.send.failed":"發送失敗","chat.message.resend":"重新發送","chat.message.recall":"撤回消息","chat.message.copy.success":"複製成功","chat.copy.success":"複製成功","chat.menu.copy":"複製","chat.menu.translate":"翻譯","chat.menu.recall":"撤回","chat.menu.enlarge":"放大閱讀","chat.menu.quickreply.add":"添加快捷回復...","chat.menu.browser.open":"瀏覽器打開","chat.menu.forward":"轉發...","chat.menu.collect":"收藏","chat.menu.quote":"引用","chat.input.placeholder":"請輸入內容, Ctrl+V 粘貼截圖/圖片","chat.translation.placeholder":"請輸入翻譯內容...","chat.input.send":"發送","chat.input.sending":"發送中...","chat.toolbar.emoji":"表情","chat.toolbar.image":"圖片","chat.toolbar.file":"文件","chat.toolbar.screenshot":"截圖","chat.toolbar.autoreply":"自動回復","chat.toolbar.audio":"錄音","chat.toolbar.webrtc":"視頻會話","chat.upload.size.limit":"文件大小不能超過 {size}","chat.upload.type.unsupported":"不支持的文件類型","chat.upload.failed":"上傳失敗","chat.upload.success":"上傳成功","chat.upload.progress":"上傳中 {progress}%","chat.webrtc.calling":"呼叫中...","chat.webrtc.incoming":"來電...","chat.webrtc.connected":"通話中...","chat.webrtc.ended":"通話結束","chat.webrtc.rejected":"對方拒絕","chat.webrtc.busy":"對方忙","chat.webrtc.failed":"通話失敗","chat.webrtc.accept":"接受","chat.webrtc.reject":"拒絕","chat.webrtc.hangup":"掛斷","chat.navbar.transfer":"轉接","chat.navbar.close":"結束","chat.navbar.note":"筆記","chat.navbar.kbase":"知識庫","chat.right.quickreply":"快捷回覆","chat.right.userinfo":"訪客信息","chat.right.ai":"AI助手","chat.right.ticket":"工單","chat.right.llm":"大模型","chat.right.docview":"文檔查看","chat.right.group":"群組信息","chat.right.member":"成員信息","chat.group.notice":"群公告","chat.group.members":"群成員","chat.group.admins":"管理員","chat.group.robots":"機器人","chat.group.qrcode":"二維碼","chat.group.uid.error":"群組ID錯誤"},fln={"common.confirm":"確認","common.cancel":"取消","common.submit":"提交","common.reset":"重置","common.save":"保存","common.delete":"刪除","common.edit":"編輯","common.add":"添加","common.search":"搜索","common.back":"返回","common.next":"下一步","common.previous":"上一步","common.more":"更多","common.loading":"加載中...","common.success":"操作成功","common.failed":"操作失敗","common.error":"錯誤","common.warning":"警告","common.info":"提示","common.status.online":"在線","common.status.offline":"離線","common.status.busy":"忙碌","common.status.away":"離開","common.status.invisible":"隱身","common.operation.success":"操作成功","common.operation.failed":"操作失敗","common.operation.confirm":"確認要執行此操作嗎?","common.operation.processing":"處理中...","common.operation.completed":"處理完成","common.operation.error":"處理出錯","common.form.required":"此項為必填項","common.form.optional":"選填","common.form.invalid":"輸入無效","common.form.validate.error":"表單驗證失敗","common.form.validate.success":"表單驗證通過"},hln={"customer.list.title":"客戶列表","customer.list.empty":"暫無客戶","customer.list.loading":"加載中...","customer.list.load.error":"加載失敗","customer.list.load.more":"加載更多","customer.list.no.more":"沒有更多了","customer.list.refresh":"刷新","customer.info.basic":"基本信息","customer.info.name":"姓名","customer.info.nickname":"暱稱","customer.info.gender":"性別","customer.info.age":"年齡","customer.info.birthday":"生日","customer.info.mobile":"手機號","customer.info.email":"郵箱","customer.info.address":"地址","customer.info.company":"公司","customer.info.position":"職位","customer.info.remark":"備註","customer.info.tags":"標籤","customer.info.source":"來源","customer.info.created":"創建時間","customer.info.updated":"更新時間","customer.status.online":"在線","customer.status.offline":"離線","customer.status.away":"離開","customer.status.busy":"忙碌","customer.status.blocked":"已拉黑","customer.action.edit":"編輯","customer.action.delete":"刪除","customer.action.block":"拉黑","customer.action.unblock":"取消拉黑","customer.action.transfer":"轉移","customer.action.merge":"合併","customer.action.export":"導出","customer.form.name":"姓名","customer.form.name.required":"請輸入姓名","customer.form.nickname":"暱稱","customer.form.gender":"性別","customer.form.age":"年齡","customer.form.birthday":"生日","customer.form.mobile":"手機號","customer.form.email":"郵箱","customer.form.address":"地址","customer.form.company":"公司","customer.form.position":"職位","customer.form.remark":"備註","customer.form.tags":"標籤","customer.form.source":"來源","customer.create.success":"客戶創建成功","customer.create.failed":"客戶創建失敗","customer.update.success":"客戶更新成功","customer.update.failed":"客戶更新失敗","customer.delete.success":"客戶刪除成功","customer.delete.failed":"客戶刪除失敗","customer.block.success":"客戶拉黑成功","customer.block.failed":"客戶拉黑失敗","customer.unblock.success":"取消拉黑成功","customer.unblock.failed":"取消拉黑失敗","customer.transfer.success":"客戶轉移成功","customer.transfer.failed":"客戶轉移失敗","customer.merge.success":"客戶合併成功","customer.merge.failed":"客戶合併失敗","customer.export.success":"客戶導出成功","customer.export.failed":"客戶導出失敗","black.title":"拉黑設置","black.type":"拉黑類型","black.type.required":"請選擇至少一種拉黑類型","black.user":"拉黑用戶","black.ip":"拉黑IP","black.permanent":"永久拉黑","black.until":"拉黑截至","black.until.required":"請選擇拉黑截至時間","black.reason":"拉黑原因","black.reason.required":"請輸入拉黑原因","black.reason.placeholder":"請輸入拉黑原因","black.success":"拉黑成功"},pln={"dashboard.menu.overview":"總覽","dashboard.menu.workbench":"工作台","dashboard.menu.monitor":"監控台","dashboard.menu.workplace":"工作區","dashboard.menu.message":"消息中心","dashboard.menu.settings":"系統設置","dashboard.overview.title":"總覽","dashboard.overview.total.conversations":"總會話數","dashboard.overview.total.customers":"總客戶數","dashboard.overview.total.tickets":"總工單數","dashboard.overview.total.agents":"總客服數","dashboard.overview.online.agents":"在線客服","dashboard.overview.waiting.customers":"排隊訪客","dashboard.overview.avg.response.time":"平均響應時間","dashboard.overview.avg.handle.time":"平均處理時間","dashboard.stats.title":"數據統計","dashboard.stats.realtime":"實時數據","dashboard.stats.today":"今日統計","dashboard.stats.yesterday":"昨日統計","dashboard.stats.week":"本週統計","dashboard.stats.month":"本月統計","dashboard.stats.custom":"自定義時段","dashboard.workbench.online":"在線狀態","dashboard.workbench.offline":"離線狀態","dashboard.workbench.busy":"忙碌狀態","dashboard.workbench.away":"離開狀態","dashboard.workbench.auto.distribution":"自動分配","dashboard.workbench.manual.distribution":"手動分配","dashboard.workbench.max.session":"最大會話數","dashboard.workbench.current.session":"當前會話數","dashboard.monitor.system":"系統監控","dashboard.monitor.performance":"性能監控","dashboard.monitor.network":"網絡監控","dashboard.monitor.server":"服務器狀態","dashboard.monitor.database":"數據庫狀態","dashboard.monitor.cache":"緩存狀態","dashboard.monitor.queue":"隊列狀態","dashboard.workplace.quick.start":"快速開始","dashboard.workplace.recent":"最近訪問","dashboard.workplace.todo":"待辦事項","dashboard.workplace.announcement":"系統公告","dashboard.workplace.calendar":"工作日曆","dashboard.workplace.links":"常用鏈接","dashboard.message.all":"全部消息","dashboard.message.unread":"未讀消息","dashboard.message.system":"系統消息","dashboard.message.business":"業務消息","dashboard.message.operation":"運營消息","dashboard.monitor.title":"實時監控","dashboard.monitor.online.status":"在線狀態","dashboard.monitor.conversation.status":"會話狀態","dashboard.monitor.queue.status":"排隊狀態","dashboard.monitor.system.status":"系統狀態","dashboard.monitor.refresh":"刷新","dashboard.monitor.auto.refresh":"自動刷新","dashboard.analysis.title":"數據分析","dashboard.analysis.conversation.trend":"會話趨勢","dashboard.analysis.customer.trend":"客戶趨勢","dashboard.analysis.ticket.trend":"工單趨勢","dashboard.analysis.satisfaction.trend":"滿意度趨勢","dashboard.analysis.time.range":"時間範圍","dashboard.analysis.export":"導出數據","dashboard.workplace.title":"工作台","dashboard.workplace.my.conversations":"我的會話","dashboard.workplace.my.tickets":"我的工單","dashboard.workplace.my.tasks":"我的任務","dashboard.workplace.my.performance":"我的績效","dashboard.workplace.quick.actions":"快捷操作","dashboard.workplace.announcements":"公告通知","dashboard.report.title":"統計報表","dashboard.report.conversation":"會話報表","dashboard.report.customer":"客戶報表","dashboard.report.ticket":"工單報表","dashboard.report.agent":"客服報表","dashboard.report.satisfaction":"滿意度報表","dashboard.report.export":"導出報表","dashboard.chart.today":"今日","dashboard.chart.yesterday":"昨日","dashboard.chart.last7days":"最近7天","dashboard.chart.last30days":"最近30天","dashboard.chart.thisMonth":"本月","dashboard.chart.lastMonth":"上月","dashboard.chart.custom":"自定義","dashboard.chart.loading":"加載中...","dashboard.chart.no.data":"暫無數據","dashboard.tip.refresh.success":"刷新成功","dashboard.tip.refresh.failed":"刷新失敗","dashboard.tip.export.success":"導出成功","dashboard.tip.export.failed":"導出失敗","dashboard.tip.data.loading":"數據加載中...","dashboard.tip.data.load.failed":"數據加載失敗"},mln={"i18n.lang.en-US":"English","i18n.lang.zh-CN":"简体中文","i18n.lang.zh-TW":"繁體中文","i18n.queue.tip":"排隊隊列","i18n.queue.message.template":"當前排隊人數:{0},大約等待時間:{1} 分鐘","i18n.queue.empty":"隊列為空","i18n.queue.accept":"接入","i18n.system.notification":"系統通知","i18n.system.notification.tip":"系統通知","i18n.old.password.wrong":"舊密碼錯誤","i18n.change.password":"修改密碼","i18n.auth.captcha.send.success":"驗證碼發送成功","i18n.auth.captcha.error":"驗證碼錯誤","i18n.auth.captcha.expired":"驗證碼過期","i18n.auth.captcha.already.send":"驗證碼已發送,請等待","i18n.auth.captcha.validate.failed":"驗證碼驗證失敗","i18n.faq":"常見問題","i18n.rate":"評價","i18n.input.placeholder":"請輸入內容","i18n.loading":"加载中...","i18n.load.more":"加载更多","i18n.load.nomore":"没有更多了","i18n.typing":"正在輸入...","i18n.robot":"[机器人]","i18n.agent":"[一对一]","i18n.workgroup":"[技能组]","i18n.group":"[群聊]","i18n.rate.invite":"邀請評價","i18n.ticket":"[工單]","i18n.notice":"通知","i18n.notice.title":"通知標題","i18n.notice.content":"通知內容","i18n.notice.ip":"IP","i18n.notice.ipLocation":"IP地址","i18n.notice.parse.file.success":"解析文件成功","i18n.notice.parse.file.error":"解析文件失败","i18n.DEPT.ALL":"全部","i18n.DEPT.ADMIN":"管理員","i18n.DEPT.HR":"人事部","i18n.DEPT.ORG":"行政部","i18n.DEPT.IT":"技術部","i18n.DEPT.MONEY":"財務部","i18n.DEPT.MARKETING":"市場部","i18n.DEPT.SALES":"銷售部","i18n.DEPT.CS":"客服部","i18n.new.message":"新消息","i18n.file.assistant":"文件助手","i18n.clipboard.assistant":"剪切板助手","i18n.thread.content.image":"圖片","i18n.thread.content.file":"文件","i18n.top.tip":"默認置顶語","i18n.top.make":"置頂","i18n.top.cancel":"取消置頂","i18n.unread.make":"设置未读","i18n.unread.cancel":"取消未读","i18n.star.make":"星标","i18n.star.cancel":"取消星标","i18n.disturb.make":"免打扰","i18n.disturb.cancel":"取消免打扰","i18n.transfer":"转接","i18n.hide":"隐藏","i18n.network.disconnected":"网络已断开","i18n.message.pulling":"消息拉取中...","i18n.leavemsg.tip":"無客服在線,請留言","i18n.welcome.tip":"您好,有什麼可以幫您的?","i18n.reenter.tip":"继续会话","i18n.under.development":"開發中...","i18n.user.description":"默認用戶描述","i18n.robot.nickname":"默認機器人","i18n.robot.description":"默認機器人描述","i18n.robot.noreply":"未找到相应答案","i18n.robot.agent.assistant.nickname":"默认机器人助手","i18n.llm.prompt":"你是一個聰明、對人類有幫助的人工智能,你可以對人類提出的問題給出有用、詳細、禮貌的回答","i18n.agent.nickname":"默認客服","i18n.agent.description":"默認客服描述","i18n.workgroup.nickname":"預設技能組","i18n.workgroup.description":"預設技能組描述","i18n.contact":"詢問聯繫方式","i18n.thanks":"感謝","i18n.welcome":"問候","i18n.bye":"告別","i18n.tip.title":"提示","i18n.tip.network.disconnected":"网络已断开","i18n.tip.network.connected":"网络已连接","i18n.kb.name":"默认知识库","i18n.kb.platform.name":"平台知识库","i18n.kb.helpcenter.name":"帮助文档知识库","i18n.kb.llm.name":"大模型知识库","i18n.kb.keyword.name":"关键词知识库","i18n.kb.faq.name":"常见问题知识库","i18n.kb.autoreply.name":"自动回复知识库","i18n.kb.quickreply.name":"快捷回复知识库","i18n.kb.taboo.name":"敏感词知识库","i18n.kb.description":"知识库默认描述","i18n.agent.nicknameKb":"默认客服知识库","i18n.contact.title":"方便的話請您提供一下您的聯繫電話","i18n.contact.content":"方便的話請您提供一下您的聯繫電話,我電話給您溝通一下,這樣更加直觀","i18n.thanks.title":"感謝光臨","i18n.thanks.content":"感謝光臨,歡迎再來","i18n.welcome.title":"您好","i18n.welcome.content":"您好,有什麼可以幫您的","i18n.bye.title":"您的滿意一直是我們的目標","i18n.bye.content":"您的滿意一直是我們的目標,如果有任何疑問歡迎您隨時聯繫","i18n.vip.api":"VIP API","i18n.faq.category.demo.1":"常見問題分類Demo1","i18n.faq.category.demo.2":"常見問題分類Demo2","i18n.faq.demo.title.1":"常見問題文字Demo1","i18n.faq.demo.content.1":"常見問題文字Demo1","i18n.faq.demo.title.2":"常見問題圖片Demo2","i18n.faq.demo.content.2":"https://www.weiyuai.cn/logo.png","i18n.quick.button.demo.title.1":"快捷按鈕文字Demo1","i18n.quick.button.demo.content.1":"快捷按鈕文字Demo1","i18n.quick.button.demo.title.2":"快捷按鈕連結Demo2","i18n.quick.button.demo.content.2":"https://www.weiyuai.cn","i18n.preview.title":"預覽","i18n.cancel":"取消","i18n.confirm":"確定","i18n.send":"發送","i18n.transferToAgent":"轉人工服務","i18n.auto.closed":"會話自動關閉","i18n.agent.closed":"客服關閉會話","i18n.online.chat":"在線客服","i18n.JOB":"工作","i18n.LANGUAGE":"語言","i18n.TOOL":"工具","i18n.WRITING":"寫作","i18n.RAG":"知識庫問答","i18n.module.ai":"AI","i18n.module.void":"空白","i18n.module.service":"客服","i18n.module.ticket":"工單","i18n.black.user.already.exists":"用戶已拉黑","i18n.ticket.category.technical_support":"技術支持","i18n.ticket.category.service_request":"服務請求","i18n.ticket.category.consultation":"咨詢","i18n.ticket.category.complaint_suggestion":"投訴建議","i18n.ticket.category.operation_maintenance":"運維","i18n.ticket.category.other":"其他","i18n.vip.component":"VIP組件, 聯繫我們了解更多詳情","i18n.vip.contactUs":"聯繫我們","i18n.vip.contactUrl":"https://www.weiyuai.cn/contact.html"},gln={"message.type.text":"文本消息","message.type.image":"圖片消息","message.type.file":"文件消息","message.type.voice":"語音消息","message.type.video":"視頻消息","message.type.location":"位置消息","message.type.link":"鏈接消息","message.type.card":"卡片消息","message.type.system":"系統消息","message.type.notification":"通知消息","message.type.custom":"自定義消息","message.status.sending":"發送中","message.status.sent":"已發送","message.status.delivered":"已送達","message.status.read":"已讀","message.status.failed":"發送失敗","message.status.recalled":"已撤回","message.status.deleted":"已刪除","quickreply.search.placeholder":"搜索","quickreply.button.send":"發送","quickreply.button.copy":"複製","quickreply.button.create.category":"創建分類","quickreply.button.create.reply":"創建快捷回復","quickreply.copy.success":"{content} 已複製到剪貼板","category.form.edit.title":"編輯分類","category.form.create.title":"創建分類","category.form.name":"分類名稱","category.form.name.required":"請輸入分類名稱!","category.form.name.placeholder":"輸入分類名稱","category.create.failed":"創建分類失敗","quickreply.drawer.title":"{isEdit, select, true {編輯快捷回復} other {新建快捷回復}}","quickreply.form.category":"分類","quickreply.form.category.required":"請選擇分類","quickreply.form.category.placeholder":"選擇分類","quickreply.form.type":"類型","quickreply.form.type.required":"請選擇類型","quickreply.form.type.placeholder":"選擇類型","quickreply.form.title":"標題","quickreply.form.title.required":"請輸入標題","quickreply.form.content":"內容","quickreply.type.text":"文本","quickreply.type.image":"圖片","quickreply.type.video":"視頻","quickreply.type.audio":"音頻","quickreply.type.file":"文件","quickreply.upload.text":"點擊或拖拽文件上傳","quickreply.upload.success":"{filename} 上傳成功","quickreply.upload.error":"{filename} 上傳失敗","quickreply.upload.uploading":"{filename} 上傳中","quickreply.form.validate.error":"請檢查表單","message.action.send":"發送","message.action.recall":"撤回","message.action.delete":"刪除","message.action.resend":"重新發送","message.action.forward":"轉發","message.action.quote":"引用","message.action.copy":"複製","message.action.translate":"翻譯","message.action.download":"下載","message.action.preview":"預覽","message.tip.sending":"消息發送中...","message.tip.sent":"消息已發送","message.tip.delivered":"消息已送達","message.tip.read":"消息已讀","message.tip.failed":"消息發送失敗","message.tip.recalled":"消息已撤回","message.tip.deleted":"消息已刪除","message.tip.copy.success":"複製成功","message.tip.download.start":"開始下載...","message.tip.download.success":"下載成功","message.tip.download.failed":"下載失敗","message.input.placeholder":"請輸入消息","message.input.send.button":"發送","message.input.emoji.button":"表情","message.input.image.button":"圖片","message.input.file.button":"文件","message.input.voice.button":"語音","message.input.video.button":"視頻","message.input.location.button":"位置","message.list.load.more":"加載更多","message.list.loading":"加載中...","message.list.no.more":"沒有更多消息","message.list.empty":"暫無消息","message.list.search.placeholder":"搜索消息","message.list.search.no.result":"未找到相關消息","message.time.just":"剛剛","message.time.minutes":"{count}分鐘前","message.time.hours":"{count}小時前","message.time.days":"{count}天前","message.time.weeks":"{count}周前","message.time.months":"{count}個月前","message.time.years":"{count}年前","message.file.size.limit":"文件大小不能超過 {size}","message.file.type.unsupported":"不支持的文件類型","message.file.uploading":"上傳中...","message.file.download":"下載文件","message.file.preview":"預覽文件","message.image.loading":"圖片加載中","message.image.load.error":"圖片加載失敗","message.image.save":"保存圖片","message.image.save.success":"圖片保存成功","message.image.save.failed":"圖片保存失敗"},vln={"profile.update.success":"個人信息更新成功","profile.form.avatar":"頭像","profile.form.upload":"上傳","profile.form.username":"用戶名","profile.form.nickname":"暱稱","profile.form.description":"描述","profile.button.change.password":"修改密碼","profile.button.change.email":"修改郵箱","profile.button.change.mobile":"修改手機號","profile.email.verified":"郵箱已驗證","profile.email.unverified":"郵箱未驗證","profile.mobile.verified":"手機已驗證","profile.mobile.unverified":"手機未驗證","profile.email.change.title":"修改郵箱","profile.email.placeholder":"請輸入郵箱地址","profile.email.required":"請輸入郵箱地址!","profile.email.format.invalid":"郵箱格式不正確","profile.email.length.limit":"郵箱不得超過50字符","profile.email.verification.code.placeholder":"請輸入驗證碼","profile.email.verification.code.countdown":"秒後重新獲取","profile.email.verification.code.get":"獲取驗證碼","profile.email.verification.code.required":"請輸入驗證碼!","profile.email.not.changed":"郵箱未更改!","profile.email.change.success":"郵箱修改成功!","profile.email.format.error":"郵箱格式錯誤","profile.mobile.change.title":"修改手機號","profile.mobile.placeholder":"請輸入手機號","profile.mobile.required":"請輸入手機號!","profile.mobile.format.invalid":"手機號格式錯誤!","profile.mobile.verification.code.placeholder":"請輸入驗證碼","profile.mobile.verification.code.countdown":"秒後重新獲取","profile.mobile.verification.code.get":"獲取驗證碼","profile.mobile.verification.code.required":"請輸入驗證碼!","profile.mobile.not.changed":"手機號未更改!","profile.mobile.change.success":"手機號修改成功!","profile.mobile.format.error":"手機號格式錯誤","profile.password.change.title":"修改密碼","profile.password.old":"原密碼","profile.password.old.empty":"手機號直接登錄用戶,可以留空","profile.password.new":"新密碼","profile.password.confirm":"確認密碼","profile.password.length.error":"密碼最小長度不能小於6","profile.password.mismatch":"兩次輸入密碼不一致","profile.password.change.success":"密碼修改成功!"},yln={"setting.menu.title":"設置","setting.menu.profile":"個人信息","setting.menu.basic":"基本設置","setting.menu.agent":"客服設置","setting.menu.model":"大模型","setting.menu.certification":"實名認證","setting.menu.qrcode":"二維碼","setting.menu.shortcut":"快捷鍵","setting.menu.click":"菜單點擊","setting.save.success":"設置保存成功","setting.save.error":"設置保存失敗","setting.load.error":"設置加載失敗","setting.header.profile":"個人信息","setting.header.basic":"基本設置","setting.header.agent":"客服設置","setting.header.model":"大模型設置","setting.basic.sound.on":"已開啟消息提示音","setting.basic.sound.off":"已關閉消息提示音","setting.basic.notification.on":"已開啟網絡狀態通知","setting.basic.notification.off":"已關閉網絡狀態通知","setting.basic.connection.status":"長鏈接狀態:","setting.basic.connection.connected":"✅連接正常","setting.basic.connection.disconnected":"❌連接斷開","setting.basic.startup":"開機啟動:","setting.basic.startup.on":"開機啟動","setting.basic.startup.off":"不開機啟動","setting.basic.theme":"顏色主題:","setting.basic.language":"語言設置:","setting.basic.mode":"模式設置:","setting.basic.mode.team":"團隊模式","setting.basic.mode.agent":"客服模式","setting.basic.mode.personal":"個人模式"},bln={"thread.error.message":"獲取數據失敗","thread.feature.unavailable":"TODO: 該功能暫未開放","thread.menu.top":"置頂","thread.menu.untop":"取消置頂","thread.menu.read":"標記已讀","thread.menu.unread":"標記未讀","thread.menu.mute":"靜音","thread.menu.unmute":"取消靜音","thread.menu.transfer":"轉接","thread.menu.block":"拉黑","thread.menu.ticket":"創建工單","thread.menu.crm":"查看CRM","thread.menu.summary":"會話總結","thread.menu.filter":"會話過濾","thread.menu.groupThread":"群聊會話","thread.menu.robotThread":"機器人會話","thread.menu.workgroupThread":"工作組會話","thread.menu.agentThread":"一對一會話","thread.menu.ticketThread":"工單會話","thread.menu.memberThread":"成員會話","thread.menu.deviceThread":"設備會話","thread.menu.systemThread":"系統會話","thread.status.robot":"[機器人]","thread.status.agent":"[一對一]","thread.status.workgroup":"[工作組]","thread.search.placeholder":"搜索會話...","thread.dropdown.create.group":"創建群聊","thread.dropdown.create.ai":"創建AI對話","thread.agent.status.online":"😀 - 在線接待","thread.agent.status.offline":"🔻 - 客服下線","thread.agent.status.busy":"🏃♀️ - 客服忙碌","thread.refresh.pull":"↓ 下拉刷新","thread.refresh.release":"↑ 鬆開刷新","thread.list.no.more":"沒有更多了","thread.coming.soon":"即將上線,敬請期待","thread.set.success":"設置成功","thread.set.error":"設置失敗","thread.menu.star":"星標","thread.menu.star.1":"星標1","thread.menu.star.2":"星標2","thread.menu.star.3":"星標3","thread.menu.star.4":"星標4","thread.menu.hide":"隱藏","thread.status.text":"{status}","thread.status.online":"😀接待","thread.status.offline":"🔻下線","thread.status.busy":"🏃♀️忙碌","thread.status.loading":"加載中...","thread.status.empty":"暫無會話","thread.status.error":"加載會話失敗","thread.status.queue":"排隊({count})","thread.status.network.offline":"網絡已斷開","thread.status.network.online":"網絡已連接","thread.status.message.pulling":"消息拉取中...","thread.status.message.empty":"暫無消息","thread.status.message.error":"加載消息失敗","thread.status.message.end":"沒有更多消息","thread.status.message.typing":"正在輸入...","thread.status.message.transfer":"轉接中...","thread.status.message.transferred":"已轉接","thread.status.message.closed":"會話已關閉","thread.menu.star.cancel":"取消星標","thread.loading.more":"加載更多..."},Sln={"ticket.create.title":"創建工單","ticket.edit.title":"編輯工單","ticket.form.uid":"編號","ticket.form.title":"標題","ticket.form.title.required":"請輸入工單標題","ticket.form.title.placeholder":"請輸入工單標題","ticket.form.description":"描述","ticket.form.description.required":"請輸入工單描述","ticket.form.description.placeholder":"請輸入工單描述","ticket.form.status":"狀態","ticket.form.status.required":"請選擇工單狀態","ticket.form.priority":"優先級","ticket.form.priority.required":"請選擇優先級","ticket.form.category":"分類","ticket.form.category.required":"請選擇工單分類","ticket.form.category.placeholder":"請選擇工單分類","ticket.form.user":"客戶","ticket.form.user.placeholder":"請選擇客戶","ticket.form.assignee":"處理人","ticket.form.assignee.placeholder":"請選擇處理人","ticket.form.reporter":"報告人","ticket.form.reporter.placeholder":"請選擇報告人","ticket.form.workgroup":"技能組","ticket.form.workgroup.required":"請選擇技能組","ticket.form.workgroup.placeholder":"請選擇技能組","ticket.workgroup.load.error":"加載技能組失敗","ticket.status.all":"全部狀態","ticket.status.new":"新建","ticket.status.assigned":"已分配","ticket.status.in_progress":"處理中","ticket.status.pending":"待處理","ticket.status.on_hold":"掛起","ticket.status.reopened":"重新打開","ticket.status.resolved":"已解決","ticket.status.closed":"已關閉","ticket.status.cancelled":"已取消","ticket.priority.all":"全部優先級","ticket.priority.lowest":"最低","ticket.priority.low":"低","ticket.priority.medium":"中","ticket.priority.high":"高","ticket.priority.urgent":"緊急","ticket.priority.critical":"嚴重","ticket.create.success":"工單創建成功","ticket.create.failed":"工單創建失敗","ticket.update.success":"工單更新成功","ticket.update.failed":"工單更新失敗","ticket.submit.error":"工單提交失敗","ticket.delete.success":"工單刪除成功","ticket.delete.error":"工單刪除失敗","ticket.load.error":"工單數據加載失敗","ticket.messages.load.error":"工單消息加載失敗","ticket.message.send.error":"消息發送失敗","ticket.category.load.error":"分類加載失敗","ticket.list.title":"工單列表","ticket.list.empty":"暫無工單","ticket.list.search.placeholder":"搜索工單","ticket.list.create":"創建工單","ticket.list.total":"工單總數","ticket.action.edit":"編輯","ticket.action.delete":"刪除","ticket.action.assign":"分配","ticket.action.close":"關閉","ticket.action.reopen":"重新打開","ticket.delete.confirm":"確定要刪除此工單嗎?","ticket.conversation.title":"工單對話","ticket.conversation.empty":"請選擇工單查看對話","ticket.conversation.input.placeholder":"請輸入消息...","ticket.details.title":"工單詳情","ticket.details.empty":"請選擇工單查看詳情","ticket.category.technical_support":"技術支持","ticket.category.service_request":"服務請求","ticket.category.consultation":"咨詢","ticket.category.complaint_suggestion":"投訴建議","ticket.category.operation_maintenance":"運維","ticket.category.other":"其他","ticket.form.thread":"關聯會話","ticket.form.thread.placeholder":"選擇關聯會話","ticket.form.thread.none":"不關聯","ticket.form.createdAt":"創建時間","ticket.form.updatedAt":"更新時間","ticket.type.agent":"指定客服","ticket.type.workgroup":"技能組","ticket.assignee":"處理人","ticket.reporter":"報告人","ticket.type":"類型","ticket.category":"分類","ticket.steps.title":"轉移過程","ticket.filter.by.status":"按狀態篩選","ticket.filter.by.priority":"按優先級篩選","ticket.filter.by.assignment":"按分配篩選","ticket.filter.by.time":"按時間篩選","ticket.filter.status_all":"全部狀態","ticket.filter.status_new":"新建","ticket.filter.status_assigned":"已分配","ticket.filter.status_in_progress":"處理中","ticket.filter.status_pending":"待處理","ticket.filter.status_on_hold":"掛起","ticket.filter.status_reopened":"重新打開","ticket.filter.status_resolved":"已解決","ticket.filter.status_closed":"已關閉","ticket.filter.status_cancelled":"已取消","ticket.filter.priority_all":"全部優先級","ticket.filter.priority_lowest":"最低","ticket.filter.priority_low":"低","ticket.filter.priority_medium":"中","ticket.filter.priority_high":"高","ticket.filter.priority_urgent":"緊急","ticket.filter.priority_critical":"嚴重","ticket.filter.assignment_all":"全部","ticket.filter.assignment_my_tickets":"我的工單","ticket.filter.assignment_unassigned":"未分配","ticket.filter.assignment_my_workgroup":"我的技能組","ticket.filter.assignment_my_created":"我創建的","ticket.filter.assignment_my_assigned":"待我處理","ticket.filter.time_all":"全部時間","ticket.filter.time_today":"今天","ticket.filter.time_yesterday":"昨天","ticket.filter.time_this_week":"本週","ticket.filter.time_last_week":"上週","ticket.filter.time_this_month":"本月","ticket.filter.time_last_month":"上月","ticket.content.title":"工單","ticket.content.number":"編號","ticket.delete.title":"刪除工單","ticket.delete.content":"確定要刪除此工單嗎?","ticket.delete.failed":"工單刪除失敗","ticket.loading":"加載工單...","ticket.empty":"暫無工單"},Cln={"contact.list.new":"新朋友","contact.list.device":"內網設備","contact.list.group":"群聊","contact.list.channel":"頻道","contact.list.company":"企業聯繫人","contact.list.friend":"聯繫人","contact.search.placeholder":"搜索聯繫人...","contact.manager.button":"通訊錄管理","contact.manager.coming":"敬請期待","member.detail.nickname":"暱稱","member.detail.jobno":"工號","member.detail.seatno":"座位號","member.detail.telephone":"電話","member.detail.loading":"加載中...","member.detail.chat.button":"開始聊天"},xln={"group.create.title":"發起群聊","group.create.contacts":"好友","group.create.members":"群成員","group.create.members.min":"至少選擇2名成員","group.create.creating":"創建群組中...","group.create.org.empty":"未選擇組織","group.create.success":"創建群組成功","group.create.failed":"創建群組失敗","group.create.loading":"加載成員中...","group.create.error":"加載成員失敗"},wln={"robot.list.add":"添加智能體","robot.list.loading":"加載中","robot.list.delete.confirm":"刪除【{name}】?","robot.list.deleting":"刪除中","robot.list.delete.success":"刪除成功","robot.list.update.success":"更新成功","robot.list.create.success":"創建成功","robot.list.chat":"對話","robot.list.edit":"編輯","robot.list.delete":"刪除"},_ln={"autoreply.title":"自动回复","autoreply.enable.label":"是否启用自动回复","autoreply.type.label":"自动回复类型","autoreply.type.fixed":"固定回复","autoreply.type.keyword":"关键字匹配","autoreply.type.llm":"大模型回复","autoreply.fixed.add":"添加固定回复内容","autoreply.fixed.select":"选择固定回复内容","autoreply.fixed.type":"固定回复类型","autoreply.fixed.content":"固定回复内容","autoreply.content.text":"文本","autoreply.content.image":"图片","autoreply.content.video":"视频","autoreply.content.audio":"音频","autoreply.content.file":"文件","autoreply.save.loading":"正在保存,请稍后...","autoreply.save.success":"保存成功","autoreply.save.error":"保存失败","autoreply.keyword.add":"添加关键词知识库","autoreply.keyword.select":"选择关键词知识库","autoreply.llm.add":"添加大模型知识库","autoreply.llm.select":"选择大模型知识库"},Eln={"upload.modal.title":"上傳文件","upload.drag.text":"點擊或拖拽文件至此處上傳","upload.drag.hint":"支持單個或批量上傳","upload.uploading":"{filename} 上傳中...","upload.success":"{filename} 上傳成功","upload.failed":"{filename} 上傳失敗","upload.delete.confirm":"確定要刪除此文件嗎?","upload.preview.image":"圖片預覽","upload.preview.file":"文件預覽","upload.button.ok":"確定","upload.button.cancel":"取消"},Tln={...cln,...uln,...dln,...fln,...hln,...pln,...mln,...sln,...gln,...lln,...vln,...yln,...bln,...Sln,...aln,...Cln,...xln,...wln,..._ln,...Eln},kln={"app.title":"Bytedesk","app.logout":"Logout","app.copyright.produced":"Produced by Bytedesk.com","app.preview.down.block":"Download this page to your local project","app.welcome.link.fetch-blocks":"Get all block","app.welcome.link.block-list":"Quickly build standard, pages based on `block` development","footbar.network.normal":"Network Normal","footbar.network.disconnected":"Network Disconnected","footbar.anonymous.tip":"Anonymous mode, only supports communication between online devices in the same LAN","footbar.login.tip":"After login, supports offline messages and more features","footbar.login.skip":"Skip Login","footbar.anonymous.status":"Anonymous","footbar.login":"Login","footbar.logout":"Logout","footbar.logout.title":"Logout","footbar.logout.confirm":"Are you sure to logout?","footbar.serving.count":"Current serving count","footbar.serving.text":"Current serving: 0"},Oln={"common.confirm":"Confirm","common.cancel":"Cancel","navBar.lang":"Languages","layout.user.link.help":"Help","layout.user.link.privacy":"Privacy","layout.user.link.terms":"Terms","theme.light":"Light","theme.dark":"Dark","theme.system":"System"},Pln={"chat.copy.success":"Copy successful","chat.network.error":"Network connection failed, please check network","chat.thread.closing":"Ending conversation...","chat.thread.close.success":"Conversation ended successfully","chat.thread.close.confirm.title":"Are you sure to end the conversation?","chat.rate.invite.confirm.title":"Confirm to invite rating?","chat.menu.copy":"Copy","chat.menu.translate":"Translate","chat.menu.recall":"Recall","chat.menu.enlarge":"Enlarge","chat.menu.quickreply.add":"Add Quick Reply...","chat.menu.browser.open":"Open in Browser","chat.menu.forward":"Forward...","chat.menu.collect":"Collect","chat.menu.quote":"Quote","chat.translation.placeholder":"Please enter translation content...","chat.input.placeholder":"Please enter content, Ctrl+V to paste screenshot/image","chat.toolbar.emoji":"Emoji","chat.toolbar.image":"Image","chat.toolbar.file":"File","chat.toolbar.screenshot":"Screenshot","chat.toolbar.autoreply":"Auto Reply","chat.toolbar.audio":"Audio","chat.toolbar.webrtc":"Video Call","chat.toolbar.history":"History","chat.toolbar.block":"Block","chat.toolbar.invite.rate":"Invite Rating","chat.navbar.transfer":"Transfer","chat.navbar.close":"End","chat.navbar.note":"Notebase","chat.navbar.kbase":"Knowledge Base","chat.right.quickreply":"Quick Reply","chat.right.userinfo":"User Info","chat.right.ai":"Copilot","chat.right.ticket":"Ticket","chat.right.llm":"LLM","chat.right.group":"Group Info","chat.right.member":"Member Info","chat.right.docview":"Doc View","chat.group.notice":"Notice","chat.group.members":"Members","chat.group.admins":"Admins","chat.group.robots":"Robots","chat.group.qrcode":"QR Code","chat.group.uid.error":"Group ID error"},Mln={"dashboard.error.message":"Failed to get data","dashboard.init.organization":"Initializing organization","dashboard.init.profile":"Initializing profile","dashboard.init.workgroups":"Initializing workgroups","dashboard.init.agent":"Initializing agent profile","dashboard.transfer.accept":"{nickname} has accepted the transfer","dashboard.transfer.reject":"{nickname} has rejected the transfer","dashboard.transfer.success":"Transfer request sent successfully, waiting for response"},Iln={"menu.anonymous.title":"Anonymous Mode","menu.anonymous.home":"Messages","menu.anonymous.contact":"Contacts","menu.anonymous.robot":"Robot","menu.anonymous.setting":"Settings","menu.anonymous.status":"Anonymous Status","menu.anonymous.status.tip":"Anonymous mode only supports communication between online devices in the same LAN","menu.anonymous.login.tip":"Login to access offline messages and more features","menu.anonymous.login":"Login","menu.anonymous.current.users":"Current Users","menu.dashboard.chat":"Chat","menu.dashboard.contact":"Contact","menu.dashboard.ai":"AI Assistant","menu.dashboard.note":"Notebase","menu.dashboard.kbase":"Knowledge Base","menu.dashboard.mine":"Settings","menu.dashboard.queue":"Queue","menu.dashboard.ticket":"Tickets","menu.dashboard.leavemsg":"Messages","menu.dashboard.visitor":"Visitors","menu.dashboard.monitor":"Monitor","menu.dashboard.plugins":"Plugins","menu.settings":"Settings","menu.settings.logout":"Logout","menu.agent.status":"Agent Status","menu.agent.status.available":"Available","menu.agent.status.rest":"Rest","menu.agent.status.offline":"Offline","menu.language":"Language","menu.mode":"Mode","menu.mode.team":"Team Mode","menu.mode.agent":"Agent Mode","menu.mode.personal":"Personal Mode","menu.agent.offline.warning":"Please end all ongoing conversations before going offline","menu.mode.personal.coming":"Coming soon...","menu.dashboard.notebase":"Notebase"},$ln={"profile.update.success":"Profile updated successfully","profile.form.avatar":"Avatar","profile.form.upload":"Upload","profile.form.username":"Username","profile.form.nickname":"Nickname","profile.form.description":"Description","profile.button.change.password":"Change Password","profile.button.change.email":"Change Email","profile.button.change.mobile":"Change Mobile","profile.email.verified":"Email Verified","profile.email.unverified":"Email Unverified","profile.mobile.verified":"Mobile Verified","profile.mobile.unverified":"Mobile Unverified","profile.email.change.title":"Change Email","profile.email.placeholder":"Enter email address","profile.email.required":"Please enter email address!","profile.email.format.invalid":"Invalid email format","profile.email.length.limit":"Email cannot exceed 50 characters","profile.email.verification.code.placeholder":"Enter verification code","profile.email.verification.code.countdown":"seconds","profile.email.verification.code.get":"Get Code","profile.email.verification.code.required":"Please enter verification code!","profile.email.not.changed":"Email is not changed!","profile.email.change.success":"Email changed successfully!","profile.email.format.error":"Invalid email format","profile.mobile.change.title":"Change Mobile","profile.mobile.placeholder":"Enter mobile number","profile.mobile.required":"Please enter mobile number!","profile.mobile.format.invalid":"Invalid mobile format","profile.mobile.verification.code.placeholder":"Enter verification code","profile.mobile.verification.code.countdown":"seconds","profile.mobile.verification.code.get":"Get Code","profile.mobile.verification.code.required":"Please enter verification code!","profile.mobile.not.changed":"Mobile number is not changed!","profile.mobile.change.success":"Mobile number changed successfully!","profile.mobile.format.error":"Invalid mobile format","profile.password.change.title":"Change Password","profile.password.old":"Old Password","profile.password.old.empty":"Old password can be empty for phone login users","profile.password.new":"New Password","profile.password.confirm":"Confirm Password","profile.password.length.error":"Password must be at least 6 characters","profile.password.mismatch":"The two passwords do not match","profile.password.change.success":"Password changed successfully!"},Rln={"setting.menu.title":"Settings","setting.menu.profile":"Profile","setting.menu.basic":"Basic Settings","setting.menu.agent":"Agent Settings","setting.menu.model":"AI Model","setting.menu.certification":"Certification","setting.menu.qrcode":"QR Code","setting.menu.shortcut":"Shortcuts","setting.menu.click":"Menu clicked","setting.save.success":"Settings saved successfully","setting.save.error":"Failed to save settings","setting.load.error":"Failed to load settings","setting.header.profile":"Personal Profile","setting.header.basic":"Basic Settings","setting.header.agent":"Agent Settings","setting.header.model":"AI Model Settings","setting.basic.sound.on":"Message Sound On","setting.basic.sound.off":"Message Sound Off","setting.basic.notification.on":"Network Status Notification On","setting.basic.notification.off":"Network Status Notification Off","setting.basic.connection.status":"Connection Status:","setting.basic.connection.connected":"✅Connected","setting.basic.connection.disconnected":"❌Disconnected","setting.basic.startup":"Start on Boot:","setting.basic.startup.on":"Enable","setting.basic.startup.off":"Disable","setting.basic.theme":"Theme:","setting.basic.language":"Language:","setting.basic.mode":"Mode:","setting.basic.mode.team":"Team Mode","setting.basic.mode.agent":"Agent Mode","setting.basic.mode.personal":"Personal Mode"},Aln={"ticket.create.title":"Create Ticket","ticket.edit.title":"Edit Ticket","ticket.form.uid":"UID","ticket.form.title":"Title","ticket.form.title.required":"Please enter ticket title","ticket.form.title.placeholder":"Enter ticket title","ticket.form.description":"Description","ticket.form.description.required":"Please enter ticket description","ticket.form.description.placeholder":"Enter ticket description","ticket.form.status":"Status","ticket.form.status.required":"Please select ticket status","ticket.form.priority":"Priority","ticket.form.priority.required":"Please select priority","ticket.form.category":"Category","ticket.form.category.required":"Please select category","ticket.form.category.placeholder":"Select category","ticket.form.user":"Customer","ticket.form.user.placeholder":"Select customer","ticket.form.assignee":"Assignee","ticket.form.assignee.placeholder":"Select assignee","ticket.form.reporter":"Reporter","ticket.form.reporter.placeholder":"Select reporter","ticket.form.workgroup":"Workgroup","ticket.form.workgroup.required":"Please select workgroup","ticket.form.workgroup.placeholder":"Select workgroup","ticket.form.thread":"Related Conversation","ticket.form.thread.placeholder":"Select related conversation","ticket.form.thread.none":"No Association","ticket.create.success":"Ticket created successfully","ticket.create.failed":"Failed to create ticket","ticket.update.success":"Ticket updated successfully","ticket.update.failed":"Failed to update ticket","ticket.submit.error":"Failed to submit ticket","ticket.delete.success":"Ticket deleted successfully","ticket.delete.error":"Failed to delete ticket","ticket.load.error":"Failed to load tickets","ticket.messages.load.error":"Failed to load ticket messages","ticket.message.send.error":"Failed to send message","ticket.workgroup.load.error":"Failed to load workgroups","ticket.category.load.error":"Failed to load categories","ticket.list.title":"Tickets","ticket.list.empty":"No tickets found","ticket.list.search.placeholder":"Search tickets","ticket.list.create":"Create Ticket","ticket.list.total":"Total","ticket.action.edit":"Edit","ticket.action.delete":"Delete","ticket.action.assign":"Assign","ticket.action.close":"Close","ticket.action.reopen":"Reopen","ticket.delete.confirm":"Are you sure to delete this ticket?","ticket.conversation.title":"Conversation","ticket.conversation.empty":"Select a ticket to view conversation","ticket.conversation.input.placeholder":"Type your message...","ticket.details.title":"Ticket Details","ticket.details.empty":"Select a ticket to view details","ticket.form.createdAt":"Created At","ticket.form.updatedAt":"Updated At","ticket.type.agent":"Agent","ticket.type.workgroup":"Workgroup","ticket.type":"Type","ticket.assignee":"Assignee","ticket.reporter":"Reporter","ticket.category":"Category","ticket.steps.title":"Processing Steps","ticket.form.upload.button":"Upload Attachments","ticket.upload.success":"File uploaded successfully","ticket.upload.failed":"File upload failed","ticket.current.filters":"Current Filters","ticket.filter.by.status":"Filter by Status","ticket.filter.by.priority":"Filter by Priority","ticket.filter.by.assignment":"Filter by Assignment","ticket.filter.by.time":"Filter by Time","ticket.filter.status_all":"All Status","ticket.filter.status_new":"New","ticket.filter.status_assigned":"Assigned","ticket.filter.status_in_progress":"In Progress","ticket.filter.status_pending":"Pending","ticket.filter.status_on_hold":"On Hold","ticket.filter.status_reopened":"Reopened","ticket.filter.status_resolved":"Resolved","ticket.filter.status_closed":"Closed","ticket.filter.status_cancelled":"Cancelled","ticket.filter.priority_all":"All Priority","ticket.filter.priority_lowest":"Lowest","ticket.filter.priority_low":"Low","ticket.filter.priority_medium":"Medium","ticket.filter.priority_high":"High","ticket.filter.priority_urgent":"Urgent","ticket.filter.priority_critical":"Critical","ticket.filter.assignment_all":"All","ticket.filter.assignment_my_tickets":"My Tickets","ticket.filter.assignment_unassigned":"Unassigned","ticket.filter.assignment_my_workgroup":"My Workgroup","ticket.filter.assignment_my_created":"Created by Me","ticket.filter.assignment_my_assigned":"Assigned to Me","ticket.filter.time_all":"All Time","ticket.filter.time_today":"Today","ticket.filter.time_yesterday":"Yesterday","ticket.filter.time_this_week":"This Week","ticket.filter.time_last_week":"Last Week","ticket.filter.time_this_month":"This Month","ticket.filter.time_last_month":"Last Month","ticket.content.title":"Ticket","ticket.content.number":"No.","ticket.delete.title":"Delete Ticket","ticket.delete.content":"Are you sure you want to delete this ticket?","ticket.delete.failed":"Failed to delete ticket","ticket.loading":"Loading tickets...","ticket.empty":"No tickets found"},Nln={i18_file_assistant:"File Assistant",slogan:"Chat As A Service","menu.dashboard.chat":"Chat","menu.dashboard.contact":"Contact","menu.dashboard.queue":"Queue","menu.dashboard.ticket":"Ticket","menu.dashboard.leavemsg":"Leave Msg","menu.dashboard.visitor":"Visitor","menu.dashboard.monitor":"Monitor","menu.dashboard.plugins":"Plugins","menu.dashboard.mine":"Mine","chat.toolbar.emoji":"Emoji","chat.toolbar.image":"Image","chat.toolbar.file":"File","chat.toolbar.audio":"Audio","chat.toolbar.webrtc":"Webrtc","chat.toolbar.history":"History","chat.toolbar.block":"Block","chat.toolbar.screenshot":"Screenshot","chat.toolbar.invite.rate":"InviteRate","chat.toolbar.autoreply":"AutoReply","chat.toolbar.autoreply.on":"AutoReply(On)","chat.navbar.transfer":"Transfer","chat.navbar.ticket":"Ticket","chat.navbar.crm":"Crm","chat.navbar.close":"Close","chat.navbar.category":"Category","chat.navbar.ai":"AI","chat.navbar.queue":"Queue","chat.right.ai":"Copilot","chat.right.quickreply":"QuickReply","chat.right.ticket":"Ticket","chat.right.userinfo":"UserInfo","chat.right.llm":"Llm","chat.right.docview":"DocView","chat.right.group":"Group","chat.right.member":"Member","chat.ai.summary":"Thread Summary","chat.ai.switch":"Switch","chat.thread.nomore":"No More","chat.message.loadmore":"Load More","dashboard.footbar.logout":"Logout",SERVICE:"Customer Service Robot",MARKETING:"Marketing Robot",KNOWLEDGEBASE:"Knowledgebase Robot",QA:"QA Robot",AGENT_ASSISTANT:"Agent Asistant",loading:"Loading",create:"Create",creating:"Creating","create.success":"Create success","create.fail":"Create fail",update:"Update",updating:"Updating","update.success":"Update success","update.fail":"Update fail",save:"Save",saving:"Saving",email:"Email","email.verified":"Email Verified","email.unverified":"Email Unverified",mobile:"Mobile","mobile.verified":"Mobile Verified","mobile.unverified":"Mobile Unverified",captcha:"Captcha",logging:"Logging","login.success":"Login Success","login.error":"Login Failed",registering:"Registering","register.success":"Register Success","register.error":"Register Failed","username.change.tip":"Username(should re login after changed)",createKb:"Create Knowledge Base",createDept:"Create Department",upload:"Upload",import:"Import",export:"Export","download.template":"Download Template",open:"Open",copy:"Copy","copy.success":"Copy success",ok:"OK",cancel:"Cancel",bind:"Bind",edit:"Edit",editing:"Editing","edit.success":"Edit success","edit.fail":"Edit fail",delete:"Delete",deleting:"Deleting",deleteTip:"Delete Tip",deleteAffirm:"Are u sure to delete","delete.success":"Delete success","delete.fail":"Delete fail","process.success":"Process success","process.fail":"Process fail",preview:"Preview",close:"Close",closing:"Closing",closeTip:"Close Tip",closeASure:"Are u sure to close","close.success":"Close success",choose:"Choose","leavemsg.enabled":"Leave Message Enabled",transfer:"Transfer","transfer.success":"Transfer success","transfer.fail":"Transfer fail","transfer.reason":"Transfer Reason",refresh:"Refresh",noAgent:"No Agent Available"},Dln={"pages.login.title":"Bytedesk","pages.layouts.userLayout.title":"Chat As A Service","pages.login.accountLogin.tab":"Account Login","pages.login.accountLogin.errorMessage":"Incorrect username/password(admin/ant.design)","pages.login.failure":"Login failed, please try again!","pages.login.success":"Login successful!","pages.login.username.placeholder":"Email","pages.login.username.required":"Please input your username!","pages.login.password.placeholder":"Password","pages.login.repassword.placeholder":"RePassword","pages.login.password.required":"Please input your password!","pages.login.repassword.required":"Please input your password!","pages.login.phoneLogin.tab":"Phone Login","pages.login.phoneLogin.errorMessage":"Verification Code Error","pages.login.phoneNumber.placeholder":"Phone Number","pages.login.phoneNumber.required":"Please input your phone number!","pages.login.phoneNumber.invalid":"Phone number is invalid!","pages.login.captcha.placeholder":"Verification Code","pages.login.captcha.required":"Please input verification code!","pages.login.phoneLogin.getVerificationCode":"Get Code","pages.login.anonymousLogin":"Anonymous Login","pages.getCaptchaSecondText":"sec(s)","pages.login.scanLogin.tab":"Scan Login","pages.login.rememberMe":"Remember me","pages.login.forgotPassword":"Forgot Password ?","pages.login.submit":"Login","pages.login.loginWith":"Login with :","pages.login.register":"Register","pages.login.registerAccount":"Register Account","pages.login.auto.register":"Unregisterd Mobile will auto register","pages.welcome.link":"Welcome","pages.robot.new":"New","pages.robot.chat":"Chat","pages.robot.edit":"Edit","pages.robot.delete":"Delete","pages.robot.upload":"Upload","pages.robot.tab.basic":"Basic","pages.robot.tab.kb":"Knowledge Base","pages.robot.tab.channel":"Channel","pages.robot.tab.statistic":"Statistic","pages.robot.tab.advanced":"Advanced","pages.robot.tab.flow":"Flow","pages.robot.tab.avatar":"Avatar","pages.robot.tab.title":"Title","pages.robot.tab.welcomeTip":"welcomeTip","pages.robot.tab.description":"Description","pages.robot.tab.preview":"Preview","pages.robot.tab.website":"Website","pages.robot.tab.helpdesk":"Helpdesk","pages.robot.tab.icp":"ICP 17041763-1","pages.robot.tab.police":"44030502008688","pages.robot.kb.file":"File","pages.robot.kb.text":"Text","pages.robot.kb.qa":"Q&A","pages.robot.kb.web":"Website","pages.robot.file.title":"Title","pages.robot.file.content":"Content","pages.robot.file.type":"Type","pages.robot.file.size":"Size","pages.robot.file.action":"Action","pages.robot.file.delete":"Delete","pages.robot.file.save":"Save","pages.robot.file.cancel":"Cancel","pages.robot.file.uploading":"Uploading...","pages.robot.file.name_invalid":"File name should not contain _","pages.robot.file.parse":"Parse File Content","pages.setting":"Settings","pages.logout":"Logout","pages.footer.website":"Bytedesk","pages.footer.helpcenter":"help","pages.login.remember":"remember me","pages.agent.tab.basic":"Basic","pages.agent.robot":"Robot","pages.agent.service.settings":"Service Settings","pages.agent.service.settings.topTip":"Top Tip","pages.agent.service.settings.welcomeTip":"Welcome Tip","pages.agent.service.settings.leavemsgTip":"Leavemsg Tip","pages.agent.service.settings.autoCloseMin":"Auto Close Min","pages.agent.service.settings.showLogo":"Show Logo","pages.agent.service.settings.maxThreadCount":"Max Thread Count","pages.advanced.faq":"FAQ","pages.advanced.quickButton":"Quick Buttons","pages.advanced.faqGuess":"Smart Suggestions","pages.advanced.faqHot":"Hot Questions","pages.advanced.faqShortcut":"Quick Replies","pages.advanced.rate":"Satisfaction Rating","pages.advanced.autoreply":"Auto Reply","pages.advanced.leaveMsg":"Leave Message","pages.advanced.survey":"Survey","pages.advanced.history":"History","pages.advanced.inputAssociation":"Input Association","pages.advanced.antiHarassment":"Captcha Settings","pages.advanced.captcha":"Captcha Settings","pages.advanced.showPreForm":"Show PreForm","pages.advanced.showHistory":"Show History","pages.advanced.showInputAssociation":"Show Input Association","pages.advanced.showCaptcha":"Show Captcha","pages.login.country.placeholder":"Select Country/Region","pages.login.country.china":"China","pages.login.country.hongkong":"Hong Kong","pages.login.country.taiwan":"Taiwan","pages.login.country.macao":"Macao","pages.login.country.japan":"Japan","pages.login.country.korea":"Korea","pages.login.country.usa":"United States","pages.login.country.canada":"Canada","pages.login.country.uk":"United Kingdom","pages.login.country.germany":"Germany","pages.login.country.france":"France","pages.login.country.australia":"Australia","pages.login.country.singapore":"Singapore","pages.login.country.malaysia":"Malaysia","pages.login.country.thailand":"Thailand","pages.login.country.vietnam":"Vietnam","pages.login.country.philippines":"Philippines","pages.login.country.indonesia":"Indonesia","pages.login.country.italy":"Italy","pages.login.country.spain":"Spain","pages.login.country.russia":"Russia","pages.login.country.newzealand":"New Zealand","pages.anonymous.title":"Anonymous Mode","pages.anonymous.home":"Home","pages.anonymous.contact":"Contacts","pages.anonymous.robot":"Robot","pages.anonymous.setting":"Settings","pages.anonymous.welcome":"Welcome to Anonymous Mode","pages.anonymous.description":"You can use system features anonymously in this mode","block.title":"Block Settings","block.type":"Block Type","block.user":"Block User","block.ip":"Block IP","block.permanent":"Permanent Block","block.until":"Block Until","block.until.required":"Please select block end time"},Lln={"i18n.lang.en-US":"English","i18n.lang.zh-CN":"简体中文","i18n.lang.zh-TW":"繁體中文","i18n.queue.tip":"Queue","i18n.queue.message.template":"Current Queuing: {0} people, Wait {1} minutes","i18n.queue.empty":"Queue empty","i18n.queue.accept":"accept","i18n.system.notification":"System Notification","i18n.old.password.wrong":"Old password is incorrect","i18n.change.password":"Change Password","i18n.auth.captcha.send.success":"Captcha Send success","i18n.auth.captcha.error":"Captcha Error","i18n.auth.captcha.expired":"Captcha Expired","i18n.auth.captcha.already.send":"Captcha Already Send","i18n.auth.captcha.validate.failed":"Captcha Validate Failed","i18n.faq":"Faq","i18n.rate":"Rate","i18n.input.placeholder":"Please input","i18n.loading":"Loading","i18n.load.more":"Load more","i18n.load.nomore":"No more","i18n.typing":"Typing","i18n.robot":"Robot","i18n.agent":"Agent","i18n.workgroup":"WorkGroup","i18n.group":"Group","i18n.rate.invite":"Rate Invite","i18n.ticket":"Ticket","i18n.notice":"Notice","i18n.notice.title":"Notice","i18n.notice.content":"Notice Content","i18n.notice.ip":"IP Address","i18n.notice.ipLocation":"IP Location","i18n.notice.parse.file.success":"Parse file success","i18n.notice.parse.file.error":"Parse file error","i18n.DEPT.ALL":"All","i18n.DEPT.ADMIN":"Admin","i18n.DEPT.HR":"HR","i18n.DEPT.ORG":"Org","i18n.DEPT.IT":"IT","i18n.DEPT.MONEY":"Money","i18n.DEPT.MARKETING":"Marketing","i18n.DEPT.SALES":"Sales","i18n.DEPT.CS":"CustomerService","i18n.new.message":"New Message","i18n.file.assistant":"file assistant","i18n.clipboard.assistant":"clipboard assistant","i18n.thread.content.image":"image","i18n.thread.content.file":"file","i18n.top.tip":"Top Tip","i18n.top.make":"Make Top","i18n.top.cancel":"Cancel Top","i18n.unread.make":"Mark as unread","i18n.unread.cancel":"Mark as read","i18n.star.make":"Make Star","i18n.star.cancel":"Cancel Star","i18n.disturb.make":"Make Disturb","i18n.disturb.cancel":"Cancel Disturb","i18n.transfer":"Transfer","i18n.hide":"Hide","i18n.network.disconnected":"Network disconnected","i18n.message.pulling":"Message pulling","i18n.leavemsg.tip":"Leave a message","i18n.welcome.tip":"What can i help you?","i18n.reenter.tip":"continue chat","i18n.under.development":"Under development","i18n.user.description":"User Description","i18n.robot.nickname":"DefaultRobot","i18n.robot.description":"Default Robot Description","i18n.robot.noreply":"Answer Not Found","i18n.robot.agent.assistant.nickname":"DefaultRobotAgent","i18n.llm.prompt":"You are a smart and helpful artificial intelligence, capable of providing useful, detailed, and polite answers to human questions.","i18n.agent.nickname":"DefaultAgent","i18n.agent.description":"Default Agent Description","i18n.workgroup.nickname":"DefaultWorkgroup","i18n.workgroup.description":"Default Workgroup Description","i18n.contact":"Ask Contact","i18n.thanks":"Thanks","i18n.welcome":"Welcome","i18n.bye":"Bye","i18n.tip.title":"Tip","i18n.tip.network.disconnected":"Network disconnected","i18n.tip.network.connected":"Network connected","i18n.kb.name":"KbName","i18n.kb.platform.name":"Platform KbName","i18n.kb.helpcenter.name":"Helpdoc KbName","i18n.kb.llm.name":"Llm KbName","i18n.kb.keyword.name":"Keyword KbName","i18n.kb.faq.name":"Faq KbName","i18n.kb.autoreply.name":"AutoReply KbName","i18n.kb.quickreply.name":"QuickReply KbName","i18n.kb.taboo.name":"Taboo KbName","i18n.kb.description":"KbDescription","i18n.agent.nicknameKb":"DefaultAgentKbName","i18n.contact.title":"If it's convenient, please provide your contact number so that I can communicate with you via phone for a more intuitive conversation.","i18n.contact.content":"If it's convenient, please provide your contact number so that I can communicate with you via phone for a more intuitive conversation.","i18n.thanks.title":"Thank you for visiting, we look forward to seeing you again.","i18n.thanks.content":"Thank you for visiting, we look forward to seeing you again.","i18n.welcome.title":"Hello, how can I assist you?","i18n.welcome.content":"Hello, how can I assist you?","i18n.bye.title":"Your satisfaction is always our goal. If you have any questions, please feel free to contact us.","i18n.bye.content":"Your satisfaction is always our goal. If you have any questions, please feel free to contact us.","i18n.vip.api":"VIP API","i18n.faq.category.demo.1":"CategoryDemo1","i18n.faq.category.demo.2":"CategoryDemo2","i18n.faq.demo.title.1":"FaqTitleText1","i18n.faq.demo.content.1":"FaqContentText1","i18n.faq.demo.title.2":"FaqTitleImage2","i18n.faq.demo.content.2":"https://www.weiyuai.cn/logo.png","i18n.quick.button.demo.title.1":"QuickButtonTitleText1","i18n.quick.button.demo.content.1":"QuickButtonContentText1","i18n.quick.button.demo.title.2":"QuickButtonTitleUrl2","i18n.quick.button.demo.content.2":"https://www.weiyuai.cn","i18n.preview.title":"Preview","i18n.cancel":"Cancel","i18n.confirm":"Confirm","i18n.send":"Send","i18n.transferToAgent":"Transfer to Agent","i18n.auto.closed":"Auto closed","i18n.agent.closed":"Agent closed","i18n.online.chat":"Online Chat","i18n.JOB":"Job","i18n.LANGUAGE":"Language","i18n.TOOL":"Tool","i18n.WRITING":"Writing","i18n.RAG":"RAG","i18n.module.ai":"AI","i18n.module.void":"Void","i18n.module.service":"Service","i18n.module.ticket":"Ticket","i18n.black.user.already.exists":"User already blocked","i18n.ticket.category.technical_support":"Technical Support","i18n.ticket.category.service_request":"Service Request","i18n.ticket.category.consultation":"Consultation","i18n.ticket.category.complaint_suggestion":"Complaint Suggestion","i18n.ticket.category.operation_maintenance":"Operation Maintenance","i18n.ticket.category.other":"Other","i18n.vip.component":"VIP Component, Contact us for more details","i18n.vip.contactUs":"Contact us","i18n.vip.contactUrl":"https://www.bytedesk.com"},Fln={"login.privacy.required":"Please read and agree to the privacy agreement","login.privacy.agreement":"Agree to Privacy Agreement","login.switch.server":"Switch Server","login.success":"Login successful","login.failed":"Login failed","login.anonymous":"Anonymous Login","login.other.methods":"Other login methods","login.remember":"Remember me","login.forgot":"Forgot password?","login.register":"Register account","server.button.back":"Back","server.button.save":"Save","server.button.reset":"Reset","server.button.help":"Help","server.save.success":"Save successfully","server.reset.success":"Reset successfully, restored to default cloud server","server.custom.enable":"Enable Custom Server","server.api.url.label":"API Server URL (e.g. http://127.0.0.1:9003 or https://api.bytedesk.com)","server.api.url.placeholder":"http://127.0.0.1:9003","server.websocket.url.label":"WebSocket Server URL (e.g. ws://127.0.0.1:9885/websocket or wss://api.bytedesk.com/websocket)","server.websocket.url.placeholder":"ws://127.0.0.1:9885/websocket","server.input.error":"Please enter correct server address"},jln={"thread.error.message":"Failed to get data","thread.feature.unavailable":"TODO: This feature is not available yet","thread.menu.top":"Pin to Top","thread.menu.untop":"Unpin","thread.menu.read":"Mark as Read","thread.menu.unread":"Mark as Unread","thread.menu.mute":"Mute","thread.menu.unmute":"Unmute","thread.menu.transfer":"Transfer","thread.menu.block":"Block","thread.menu.ticket":"Create Ticket","thread.menu.crm":"View in CRM","thread.menu.summary":"Summary","thread.status.robot":"[Robot]","thread.status.agent":"[1-on-1]","thread.status.workgroup":"[Group]","thread.search.placeholder":"Search conversations...","thread.menu.filter":"Filter Threads","thread.menu.groupThread":"Group Thread","thread.menu.robotThread":"Robot Thread","thread.menu.workgroupThread":"Workgroup Thread","thread.menu.agentThread":"Agent Thread","thread.menu.ticketThread":"Ticket Thread","thread.menu.memberThread":"Member Thread","thread.menu.deviceThread":"Device Thread","thread.menu.systemThread":"System Thread","thread.status.loading":"Loading...","thread.status.empty":"No conversations","thread.status.error":"Failed to load conversations","thread.status.queue":"Queue ({count})","thread.status.network.offline":"Network disconnected","thread.status.network.online":"Network connected","thread.status.message.pulling":"Pulling messages...","thread.status.message.empty":"No messages","thread.status.message.error":"Failed to load messages","thread.status.message.end":"No more messages","thread.status.message.typing":"Typing...","thread.status.message.transfer":"Transferring...","thread.status.message.transferred":"Transferred","thread.status.message.closed":"Conversation closed","thread.dropdown.create.group":"Create Group Chat","thread.dropdown.create.ai":"Create AI Chat","thread.agent.status.online":"Online","thread.agent.status.offline":"Offline","thread.agent.status.busy":"Busy","thread.refresh.pull":"↓ Pull to refresh","thread.refresh.release":"↑ Release to refresh","thread.list.no.more":"No more data","thread.set.success":"Set successfully","thread.set.error":"Set failed","thread.menu.star":"Star","thread.menu.star.1":"Star Level 1","thread.menu.star.2":"Star Level 2","thread.menu.star.3":"Star Level 3","thread.menu.star.4":"Star Level 4","thread.menu.hide":"Hide","thread.status.text":"{status}","thread.status.online":"Online","thread.status.offline":"Offline","thread.status.busy":"🏃♀️Busy","thread.coming.soon":"Coming soon...","thread.menu.star.cancel":"Remove Star","thread.loading.more":"Loading more..."},Bln={"message.status.read":"Read","message.status.delivered":"Delivered","message.status.sending":"Sending","message.status.sent":"Sent","message.status.failed":"Failed to send","message.status.retry":"Retry","quickreply.search.placeholder":"Search","quickreply.button.send":"Send","quickreply.button.copy":"Copy","quickreply.button.create.category":"Create Category","quickreply.button.create.reply":"Create Quick Reply","quickreply.copy.success":"{content} copied to clipboard","category.form.edit.title":"Edit Category","category.form.create.title":"Create Category","category.form.name":"Category Name","category.form.name.required":"Please enter category name!","category.form.name.placeholder":"Enter category name","category.create.failed":"Failed to create category","quickreply.drawer.title":"{isEdit, select, true {Edit Quick Reply} other {New Quick Reply}}","quickreply.form.category":"Category","quickreply.form.category.required":"Please select a category","quickreply.form.category.placeholder":"Select a category","quickreply.form.type":"Type","quickreply.form.type.required":"Please select a type","quickreply.form.type.placeholder":"Select a type","quickreply.form.title":"Title","quickreply.form.title.required":"Please enter a title","quickreply.form.content":"Content","quickreply.type.text":"Text","quickreply.type.image":"Image","quickreply.type.video":"Video","quickreply.type.audio":"Audio","quickreply.type.file":"File","quickreply.upload.text":"Click or drag file to upload","quickreply.upload.success":"{filename} uploaded successfully","quickreply.upload.error":"{filename} upload failed","quickreply.upload.uploading":"{filename} uploading","quickreply.form.validate.error":"Please check the form"},Hln={"customer.info.basic":"Basic Info","customer.info.browser":"Browser Info","customer.info.os":"OS Info","customer.info.device":"Device Info","customer.info.browse.record":"Browse Record","customer.info.tag":"Tag Info","customer.info.load.error":"Failed to load visitor info","customer.info.add.crm":"Add to CRM","customer.info.add.tag":"Add Tag","customer.basic.nickname":"Nickname","customer.basic.location":"IP Location","customer.basic.note":"Note","customer.basic.client":"Client","customer.basic.status":"Status","customer.basic.empty":"N/A","black.title":"Block Settings","black.type":"Block Type","black.type.required":"Please select at least one block type","black.user":"Block User","black.ip":"Block IP","black.permanent":"Permanent Block","black.until":"Block Until","black.until.required":"Please select block end time","black.reason":"Block Reason","black.reason.required":"Please enter block reason","black.reason.placeholder":"Enter reason for blocking","black.success":"Block successfully"},zln={"contact.list.new":"New Friends","contact.list.device":"LAN Devices","contact.list.group":"Groups","contact.list.channel":"Channels","contact.list.company":"Company Contacts","contact.list.friend":"Contacts","contact.search.placeholder":"Search contacts...","contact.manager.button":"Contact Manager","contact.manager.coming":"Coming soon...","member.detail.nickname":"Nickname","member.detail.jobno":"Job No.","member.detail.seatno":"Seat No.","member.detail.telephone":"Telephone","member.detail.loading":"Loading...","member.detail.chat.button":"Start Chat"},Uln={"autoreply.title":"Auto Reply","autoreply.enable.label":"Enable Auto Reply","autoreply.type.label":"Auto Reply Type","autoreply.type.fixed":"Fixed Reply","autoreply.type.keyword":"Keyword Match","autoreply.type.llm":"AI Model Reply","autoreply.fixed.add":"Add Fixed Reply","autoreply.fixed.select":"Select Fixed Reply","autoreply.fixed.type":"Fixed Reply Type","autoreply.fixed.content":"Fixed Reply Content","autoreply.content.text":"Text","autoreply.content.image":"Image","autoreply.content.video":"Video","autoreply.content.audio":"Audio","autoreply.content.file":"File","autoreply.save.loading":"Saving...","autoreply.save.success":"Saved successfully","autoreply.save.error":"Failed to save","autoreply.keyword.add":"Add Keyword Knowledge Base","autoreply.keyword.select":"Select Keyword Knowledge Base","autoreply.llm.add":"Add AI Model Knowledge Base","autoreply.llm.select":"Select AI Model Knowledge Base"},Wln={"queue.accepting":"Accepting...","queue.accept.success":"Accepted successfully","queue.accept.failed":"Failed to accept","queue.accept":"Accept","queue.empty":"No queuing visitors","queue.loading":"Loading queue...","queue.error":"Failed to load queue","queue.count":"{count} visitors queuing","queue.wait.time":"Estimated wait time: {minutes} minutes"},Vln={"group.create.title":"Create Group Chat","group.create.contacts":"Contacts","group.create.members":"Members","group.create.members.min":"Please select at least 2 members","group.create.creating":"Creating group...","group.create.org.empty":"No organization selected","group.create.success":"Group created successfully","group.create.failed":"Failed to create group","group.create.loading":"Loading members...","group.create.error":"Failed to load members"},Kln={"upload.modal.title":"Upload Files","upload.drag.text":"Click or drag files here to upload","upload.drag.hint":"Support for single or bulk upload","upload.uploading":"{filename} uploading...","upload.success":"{filename} uploaded successfully","upload.failed":"{filename} upload failed","upload.delete.confirm":"Are you sure to delete this file?","upload.preview.image":"Image Preview","upload.preview.file":"File Preview","upload.button.ok":"OK","upload.button.cancel":"Cancel"},qln={...kln,...Oln,...Pln,...Mln,...Iln,...$ln,...Rln,...Aln,...Nln,...Dln,...Lln,...Fln,...jln,...Bln,...Hln,...zln,...Uln,...Wln,...Vln,...Kln},Gln={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},S8e={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},aa={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},tl={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},mm={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class vn{static getFirstMatch(t,n){const r=n.match(t);return r&&r.length>0&&r[1]||""}static getSecondMatch(t,n){const r=n.match(t);return r&&r.length>1&&r[2]||""}static matchAndReturnConst(t,n,r){if(t.test(n))return r}static getWindowsVersionName(t){switch(t){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),n[0]===10)switch(n[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),!(n[0]===1&&n[1]<5)){if(n[0]===1&&n[1]<6)return"Cupcake";if(n[0]===1&&n[1]>=6)return"Donut";if(n[0]===2&&n[1]<2)return"Eclair";if(n[0]===2&&n[1]===2)return"Froyo";if(n[0]===2&&n[1]>2)return"Gingerbread";if(n[0]===3)return"Honeycomb";if(n[0]===4&&n[1]<1)return"Ice Cream Sandwich";if(n[0]===4&&n[1]<4)return"Jelly Bean";if(n[0]===4&&n[1]>=4)return"KitKat";if(n[0]===5)return"Lollipop";if(n[0]===6)return"Marshmallow";if(n[0]===7)return"Nougat";if(n[0]===8)return"Oreo";if(n[0]===9)return"Pie"}}static getVersionPrecision(t){return t.split(".").length}static compareVersions(t,n,r=!1){const i=vn.getVersionPrecision(t),o=vn.getVersionPrecision(n);let a=Math.max(i,o),s=0;const l=vn.map([t,n],c=>{const u=a-vn.getVersionPrecision(c),d=c+new Array(u+1).join(".0");return vn.map(d.split("."),h=>new Array(20-h.length).join("0")+h).reverse()});for(r&&(s=a-Math.min(i,o)),a-=1;a>=s;){if(l[0][a]>l[1][a])return 1;if(l[0][a]===l[1][a]){if(a===s)return 0;a-=1}else if(l[0][a]<l[1][a])return-1}}static map(t,n){const r=[];let i;if(Array.prototype.map)return Array.prototype.map.call(t,n);for(i=0;i<t.length;i+=1)r.push(n(t[i]));return r}static find(t,n){let r,i;if(Array.prototype.find)return Array.prototype.find.call(t,n);for(r=0,i=t.length;r<i;r+=1){const o=t[r];if(n(o,r))return o}}static assign(t,...n){const r=t;let i,o;if(Object.assign)return Object.assign(t,...n);for(i=0,o=n.length;i<o;i+=1){const a=n[i];typeof a=="object"&&a!==null&&Object.keys(a).forEach(l=>{r[l]=a[l]})}return t}static getBrowserAlias(t){return Gln[t]}static getBrowserTypeByAlias(t){return S8e[t]||""}}const Ji=/version\/(\d+(\.?_?\d+)+)/i,Yln=[{test:[/googlebot/i],describe(e){const t={name:"Googlebot"},n=vn.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||vn.getFirstMatch(Ji,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){const t={name:"Opera"},n=vn.getFirstMatch(Ji,e)||vn.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){const t={name:"Opera"},n=vn.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||vn.getFirstMatch(Ji,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){const t={name:"Samsung Internet for Android"},n=vn.getFirstMatch(Ji,e)||vn.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){const t={name:"NAVER Whale Browser"},n=vn.getFirstMatch(Ji,e)||vn.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){const t={name:"MZ Browser"},n=vn.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||vn.getFirstMatch(Ji,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){const t={name:"Focus"},n=vn.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||vn.getFirstMatch(Ji,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){const t={name:"Swing"},n=vn.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||vn.getFirstMatch(Ji,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){const t={name:"Opera Coast"},n=vn.getFirstMatch(Ji,e)||vn.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){const t={name:"Opera Touch"},n=vn.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||vn.getFirstMatch(Ji,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){const t={name:"Yandex Browser"},n=vn.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||vn.getFirstMatch(Ji,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){const t={name:"UC Browser"},n=vn.getFirstMatch(Ji,e)||vn.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){const t={name:"Maxthon"},n=vn.getFirstMatch(Ji,e)||vn.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){const t={name:"Epiphany"},n=vn.getFirstMatch(Ji,e)||vn.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){const t={name:"Puffin"},n=vn.getFirstMatch(Ji,e)||vn.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){const t={name:"Sleipnir"},n=vn.getFirstMatch(Ji,e)||vn.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){const t={name:"K-Meleon"},n=vn.getFirstMatch(Ji,e)||vn.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){const t={name:"WeChat"},n=vn.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||vn.getFirstMatch(Ji,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){const t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=vn.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||vn.getFirstMatch(Ji,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){const t={name:"Internet Explorer"},n=vn.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){const t={name:"Microsoft Edge"},n=vn.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){const t={name:"Microsoft Edge"},n=vn.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){const t={name:"Vivaldi"},n=vn.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){const t={name:"SeaMonkey"},n=vn.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){const t={name:"Sailfish"},n=vn.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){const t={name:"Amazon Silk"},n=vn.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){const t={name:"PhantomJS"},n=vn.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){const t={name:"SlimerJS"},n=vn.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t={name:"BlackBerry"},n=vn.getFirstMatch(Ji,e)||vn.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){const t={name:"WebOS Browser"},n=vn.getFirstMatch(Ji,e)||vn.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){const t={name:"Bada"},n=vn.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){const t={name:"Tizen"},n=vn.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||vn.getFirstMatch(Ji,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){const t={name:"QupZilla"},n=vn.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||vn.getFirstMatch(Ji,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){const t={name:"Firefox"},n=vn.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){const t={name:"Electron"},n=vn.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){const t={name:"Miui"},n=vn.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){const t={name:"Chromium"},n=vn.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||vn.getFirstMatch(Ji,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){const t={name:"Chrome"},n=vn.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){const t={name:"Google Search"},n=vn.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t={name:"Android Browser"},n=vn.getFirstMatch(Ji,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){const t={name:"PlayStation 4"},n=vn.getFirstMatch(Ji,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){const t={name:"Safari"},n=vn.getFirstMatch(Ji,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){const t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,i=e.search("\\(")!==-1?n:t;return{name:vn.getFirstMatch(i,e),version:vn.getSecondMatch(i,e)}}}],Xln=[{test:[/Roku\/DVP/],describe(e){const t=vn.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:tl.Roku,version:t}}},{test:[/windows phone/i],describe(e){const t=vn.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:tl.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){const t=vn.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=vn.getWindowsVersionName(t);return{name:tl.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const t={name:tl.iOS},n=vn.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){const t=vn.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=vn.getMacOSVersionName(t),r={name:tl.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){const t=vn.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:tl.iOS,version:t}}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t=vn.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=vn.getAndroidVersionName(t),r={name:tl.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){const t=vn.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:tl.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t=vn.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||vn.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||vn.getFirstMatch(/\bbb(\d+)/i,e);return{name:tl.BlackBerry,version:t}}},{test:[/bada/i],describe(e){const t=vn.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:tl.Bada,version:t}}},{test:[/tizen/i],describe(e){const t=vn.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:tl.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:tl.Linux}}},{test:[/CrOS/],describe(){return{name:tl.ChromeOS}}},{test:[/PlayStation 4/],describe(e){const t=vn.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:tl.PlayStation4,version:t}}}],Qln=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){const t=vn.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:aa.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:aa.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:aa.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:aa.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:aa.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:aa.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:aa.tablet}}},{test(e){const t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){const t=vn.getFirstMatch(/(ipod|iphone)/i,e);return{type:aa.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:aa.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:aa.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:aa.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:aa.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:aa.mobile,vendor:"Microsoft"}}},{test(e){const t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:aa.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:aa.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:aa.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:aa.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:aa.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:aa.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:aa.tv}}}],Zln=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:mm.Blink};const n=vn.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:mm.EdgeHTML,version:n}}},{test:[/trident/i],describe(e){const t={name:mm.Trident},n=vn.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){const t={name:mm.Presto},n=vn.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){const t={name:mm.Gecko},n=vn.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:mm.Blink}}},{test:[/(apple)?webkit/i],describe(e){const t={name:mm.WebKit},n=vn.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];class Bce{constructor(t,n=!1){if(t==null||t==="")throw new Error("UserAgent parameter can't be empty");this._ua=t,this.parsedResult={},n!==!0&&this.parse()}getUA(){return this._ua}test(t){return t.test(this._ua)}parseBrowser(){this.parsedResult.browser={};const t=vn.find(Yln,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(t){return t?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};const t=vn.find(Xln,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os}getOSName(t){const{name:n}=this.getOS();return t?String(n).toLowerCase()||"":n||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(t=!1){const{type:n}=this.getPlatform();return t?String(n).toLowerCase()||"":n||""}parsePlatform(){this.parsedResult.platform={};const t=vn.find(Qln,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(t){return t?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};const t=vn.find(Zln,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return vn.assign({},this.parsedResult)}satisfies(t){const n={};let r=0;const i={};let o=0;if(Object.keys(t).forEach(s=>{const l=t[s];typeof l=="string"?(i[s]=l,o+=1):typeof l=="object"&&(n[s]=l,r+=1)}),r>0){const s=Object.keys(n),l=vn.find(s,u=>this.isOS(u));if(l){const u=this.satisfies(n[l]);if(u!==void 0)return u}const c=vn.find(s,u=>this.isPlatform(u));if(c){const u=this.satisfies(n[c]);if(u!==void 0)return u}}if(o>0){const s=Object.keys(i),l=vn.find(s,c=>this.isBrowser(c,!0));if(l!==void 0)return this.compareVersion(i[l])}}isBrowser(t,n=!1){const r=this.getBrowserName().toLowerCase();let i=t.toLowerCase();const o=vn.getBrowserTypeByAlias(i);return n&&o&&(i=o.toLowerCase()),i===r}compareVersion(t){let n=[0],r=t,i=!1;const o=this.getBrowserVersion();if(typeof o=="string")return t[0]===">"||t[0]==="<"?(r=t.substr(1),t[1]==="="?(i=!0,r=t.substr(2)):n=[],t[0]===">"?n.push(1):n.push(-1)):t[0]==="="?r=t.substr(1):t[0]==="~"&&(i=!0,r=t.substr(1)),n.indexOf(vn.compareVersions(o,r,i))>-1}isOS(t){return this.getOSName(!0)===String(t).toLowerCase()}isPlatform(t){return this.getPlatformType(!0)===String(t).toLowerCase()}isEngine(t){return this.getEngineName(!0)===String(t).toLowerCase()}is(t,n=!1){return this.isBrowser(t,n)||this.isOS(t)||this.isPlatform(t)}some(t=[]){return t.some(n=>this.is(n))}}/*!
|
||
* Bowser - a browser detector
|
||
* https://github.com/lancedikson/bowser
|
||
* MIT License | (c) Dustin Diaz 2012-2015
|
||
* MIT License | (c) Denis Demchenko 2015-2019
|
||
*/class Jln{static getParser(t,n=!1){if(typeof t!="string")throw new Error("UserAgent should be a string");return new Bce(t,n)}static parse(t){return new Bce(t).getResult()}static get BROWSER_MAP(){return S8e}static get ENGINE_MAP(){return mm}static get OS_MAP(){return tl}static get PLATFORMS_MAP(){return aa}}const{defaultAlgorithm:ecn,darkAlgorithm:tcn}=ol,ncn={"zh-cn":oln,"zh-tw":Tln,en:qln},rcn=()=>{const{isDarkMode:e,locale:t}=f.useContext(Ks),n=new Gpt({defaultOptions:{queries:{refetchOnWindowFocus:!1}}}),[r,i]=f.useState(!1),o=()=>{const s=Jln.getParser(window.navigator.userAgent);console.log("browser:",s),is?console.log("OsName:",s.getOSName()):console.log("BrowserName:",s.getBrowserName()),s.getOSName().toLocaleLowerCase().indexOf("mac")===-1&&i(!0)},a=async()=>{if(console.log("getConfig"),await _Ie(),is)console.log("is electron");else{await xIe();const s=R6();console.log("Base URL:",s)}};return f.useEffect(()=>{BDe(),o(),a()},[]),U.jsx(ar,{locale:t,theme:{algorithm:e?tcn:ecn},children:U.jsx(Xpt,{client:n,children:U.jsx(b8e,{children:U.jsx(f.Suspense,{fallback:U.jsx("div",{children:"loading..."}),children:U.jsxs(SLt,{messages:ncn[t.locale],locale:t.locale,defaultLocale:"zh-cn",children:[r&&U.jsx(Fsn,{children:U.jsx("link",{rel:"stylesheet",type:"text/css",href:kOe})}),U.jsxs(jO,{children:[U.jsx(upt,{}),U.jsx(Egt,{router:dsn})]})]})})})})})},icn=()=>U.jsx("div",{className:"App",children:U.jsx(Tpt,{children:U.jsx(rcn,{})})});qN.createRoot(document.getElementById("root")).render(U.jsx(icn,{}));postMessage({payload:"removeLoading"},"*");export{Ayt as $,X0e as A,Gle as B,Zbt as C,Vbt as D,Jbt as E,eSt as F,Yxe as G,AP as H,Iyt as I,bV as J,BJt as K,Qxe as L,Lxe as M,Wd as N,Gxe as O,Mbt as P,Tbt as Q,Kbt as R,vo as S,ak as T,bre as U,Lbt as V,gC as W,vC as X,Ibt as Y,jxe as Z,$z as _,pg as a,Nyt as a0,_re as a1,Dyt as a2,Ryt as a3,Byt as a4,zxe as a5,Vyt as a6,$Zt as a7,yV as b,t0 as c,VE as d,SV as e,$j as f,vi as g,Wxe as h,Bxe as i,qxe as j,Ij as k,mC as l,Fr as m,nSt as n,Fyt as o,OFe as p,MFe as q,Uo as r,tF as s,tyt as t,bd as u,ebt as v,vV as w,PDe as x,h$t as y,Z0e as z};
|